PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 4.0.3
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v4.0.3
4.0.3 4.0.2 4.0.1 4.0.0 3.16.6 3.16.5 3.16.4 3.16.3 3.16.2 3.16.1 3.16.0 3.15.9 3.9.9 3.9.5 3.9.6 3.9.7 3.9.8 1.1.7 1.1.8 1.1.9 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 341 releases
← All changes | form-builder/blocks/build/index.js +17 -17 4.0.0 → 4.0.3 View file →
@@ -1,19 +1,19 @@
1 -(()=>{var e,t={978(e,t,l){var r={"./ffc-columns/block.json":6337,"./field-additional-map/block.json":1743,"./field-avatar/block.json":4576,"./field-campaign-monitor-subscribe/block.json":1645,"./field-checkbox-toa/block.json":37,"./field-checkbox/block.json":2936,"./field-colorpicker/block.json":7654,"./field-datepicker/block.json":4547,"./field-default-about-yourself-heading/block.json":3119,"./field-default-aim/block.json":3854,"./field-default-biographical-info/block.json":6677,"./field-default-blog-details/block.json":9446,"./field-default-contact-info-heading/block.json":5101,"./field-default-display-name/block.json":4695,"./field-default-email/block.json":8423,"./field-default-first-name/block.json":5347,"./field-default-jabber/block.json":9747,"./field-default-last-name/block.json":5711,"./field-default-name-heading/block.json":433,"./field-default-nickname/block.json":1785,"./field-default-password/block.json":6384,"./field-default-repeat-password/block.json":7536,"./field-default-username/block.json":7185,"./field-default-website/block.json":3446,"./field-default-yim/block.json":8934,"./field-email-confirmation/block.json":2391,"./field-email/block.json":3271,"./field-gdpr-checkbox/block.json":2538,"./field-gdpr-communication-preferences/block.json":8986,"./field-gdpr-delete/block.json":4660,"./field-heading/block.json":7701,"./field-honeypot/block.json":7,"./field-html/block.json":460,"./field-input-hidden/block.json":8374,"./field-input-url/block.json":2747,"./field-input/block.json":5495,"./field-international-telephone-input/block.json":8187,"./field-language/block.json":3067,"./field-mailchimp-subscribe/block.json":6320,"./field-mailpoet-subscribe/block.json":9063,"./field-map/block.json":4281,"./field-number/block.json":9576,"./field-phone/block.json":5959,"./field-pms-billing-fields/block.json":9205,"./field-pms-subscription-plans/block.json":6282,"./field-radio/block.json":4740,"./field-recaptcha/block.json":5670,"./field-repeater/block.json":6569,"./field-select-country/block.json":8502,"./field-select-cpt/block.json":757,"./field-select-currency/block.json":1671,"./field-select-multiple/block.json":9612,"./field-select-taxonomy/block.json":8799,"./field-select-timezone/block.json":2679,"./field-select-user-role/block.json":4502,"./field-select/block.json":5529,"./field-select2-multiple/block.json":9508,"./field-select2/block.json":6385,"./field-textarea/block.json":7739,"./field-timepicker/block.json":1734,"./field-turnstile/block.json":795,"./field-upload/block.json":2476,"./field-validation/block.json":5186,"./field-woo-billing-address/block.json":535,"./field-woo-shipping-address/block.json":1248,"./field-wysiwyg/block.json":386,"./msf-step-break/block.json":7399,"./progress-bar/block.json":9017};function i(e){var t=n(e);return l(t)}function n(e){if(!l.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=n,e.exports=i,i.id=978},2910(e,t,l){var r={"./ffc-columns/edit.js":9895,"./field-additional-map/edit.js":3113,"./field-avatar/edit.js":6792,"./field-campaign-monitor-subscribe/edit.js":867,"./field-checkbox-toa/edit.js":9291,"./field-checkbox/edit.js":3616,"./field-colorpicker/edit.js":7242,"./field-datepicker/edit.js":5917,"./field-default-about-yourself-heading/edit.js":5657,"./field-default-aim/edit.js":5682,"./field-default-biographical-info/edit.js":7147,"./field-default-blog-details/edit.js":3370,"./field-default-contact-info-heading/edit.js":2211,"./field-default-display-name/edit.js":5313,"./field-default-email/edit.js":5937,"./field-default-first-name/edit.js":7565,"./field-default-jabber/edit.js":8717,"./field-default-last-name/edit.js":5577,"./field-default-name-heading/edit.js":743,"./field-default-nickname/edit.js":8847,"./field-default-password/edit.js":9352,"./field-default-repeat-password/edit.js":3064,"./field-default-username/edit.js":9911,"./field-default-website/edit.js":3946,"./field-default-yim/edit.js":6602,"./field-email-confirmation/edit.js":4193,"./field-email/edit.js":4161,"./field-gdpr-checkbox/edit.js":46,"./field-gdpr-communication-preferences/edit.js":9774,"./field-gdpr-delete/edit.js":604,"./field-heading/edit.js":7115,"./field-honeypot/edit.js":1121,"./field-html/edit.js":5300,"./field-input-hidden/edit.js":7898,"./field-input-url/edit.js":2181,"./field-input/edit.js":9137,"./field-international-telephone-input/edit.js":9109,"./field-language/edit.js":1765,"./field-mailchimp-subscribe/edit.js":1640,"./field-mailpoet-subscribe/edit.js":3969,"./field-map/edit.js":7023,"./field-number/edit.js":8e3,"./field-phone/edit.js":1713,"./field-pms-billing-fields/edit.js":6059,"./field-pms-subscription-plans/edit.js":3822,"./field-radio/edit.js":6332,"./field-recaptcha/edit.js":7402,"./field-repeater/edit.js":9167,"./field-select-country/edit.js":5354,"./field-select-cpt/edit.js":8955,"./field-select-currency/edit.js":7969,"./field-select-multiple/edit.js":9636,"./field-select-taxonomy/edit.js":4681,"./field-select-timezone/edit.js":7601,"./field-select-user-role/edit.js":554,"./field-select/edit.js":7535,"./field-select2-multiple/edit.js":6636,"./field-select2/edit.js":3124,"./field-textarea/edit.js":8037,"./field-timepicker/edit.js":8010,"./field-turnstile/edit.js":3013,"./field-upload/edit.js":276,"./field-validation/edit.js":6870,"./field-woo-billing-address/edit.js":705,"./field-woo-shipping-address/edit.js":6968,"./field-wysiwyg/edit.js":3750,"./msf-step-break/edit.js":9889,"./progress-bar/edit.js":2383};function i(e){var t=n(e);return l(t)}function n(e){if(!l.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=n,e.exports=i,i.id=2910},4269(e,t,l){var r={"./ffc-columns/save.js":810,"./field-repeater/save.js":9634};function i(e){var t=n(e);return l(t)}function n(e){if(!l.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=n,e.exports=i,i.id=4269},9895(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>p});var r=l(1609),i=l(7723),n=l(4715),a=l(6427),o=l(7143),s=l(2340),d=l(9018);function c(){const e="undefined"!=typeof window&&window.wppbFb&&window.wppbFb.ffc||{};return Array.isArray(e.allowedBlocks)&&e.allowedBlocks.length?e.allowedBlocks:[]}function p({clientId:e}){const t=(0,n.useBlockProps)({className:"wppb-fb-ffc-columns"}),l=(0,o.useSelect)(t=>{const l=t("core/block-editor");if(!l||!e)return null;const r=l.getBlockRootClientId(e);if(r){const e=l.getBlock(r);return e&&e.name===d.V?"in-repeater":"nested"}return null},[e]),p=(0,o.useSelect)(t=>{const l=t("core/block-editor");return l&&e&&l.getBlock(e)?.innerBlocks?.length||0},[e]),u=(0,r.createElement)("span",{className:"wppb-fb-ffc-columns__tab"},(0,r.createElement)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},(0,r.createElement)("rect",{x:"3",y:"4",width:"7",height:"16",rx:"1.5",stroke:"currentColor",strokeWidth:"1.8"}),(0,r.createElement)("rect",{x:"14",y:"4",width:"7",height:"16",rx:"1.5",stroke:"currentColor",strokeWidth:"1.8"})),(0,i.__)("Columns","profile-builder"));return l?(0,r.createElement)("div",{...t,className:`${t.className} is-invalid`},u,(0,r.createElement)(a.Notice,{status:"warning",isDismissible:!1},"in-repeater"===l?(0,i.__)("Columns cannot be placed inside a Repeater. Move it to the top level of the form.","profile-builder"):(0,i.__)("Columns must be placed at the top level of the form, not nested inside another block.","profile-builder"))):(0,r.createElement)("div",{...t},u,(0,r.createElement)("div",{className:"wppb-fb-ffc-columns__row"},(0,r.createElement)(n.InnerBlocks,{allowedBlocks:c(),template:[],templateLock:!1,orientation:"horizontal",renderAppender:()=>null})),(0,r.createElement)(s.A,{rootClientId:e,label:(0,i.__)("Add field","profile-builder")}),p<2&&(0,r.createElement)("p",{className:"wppb-fb-ffc-columns__hint"},(0,i.__)("Add 2 or more fields to form a column row","profile-builder")))}},810(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>n});var r=l(1609),i=l(4715);function n(){return(0,r.createElement)(i.InnerBlocks.Content,null)}},3113(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Map Settings","profile-builder")},(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Latitude","profile-builder"),value:t["map-default-lat"],onChange:e=>l({"map-default-lat":e})}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Longitude","profile-builder"),value:t["map-default-lng"],onChange:e=>l({"map-default-lng":e})}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Zoom","profile-builder"),value:t["map-default-zoom"],onChange:e=>l({"map-default-zoom":e})}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Map Height (px)","profile-builder"),value:t["map-height"],onChange:e=>l({"map-height":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("div",{style:{width:"100%",height:t["map-height"]+"px",backgroundColor:"#e5e3df",display:"flex",alignItems:"center",justifyContent:"center",color:"#666",border:"1px solid #ccc"}},(0,r.createElement)("span",{className:"dashicons dashicons-location-alt",style:{marginRight:"10px"}}),(0,i.__)("Google Map Placeholder (Additional)","profile-builder")))}},6792(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Avatar Settings","profile-builder")},(0,r.createElement)(n.CheckboxControl,{label:(0,i.__)("Use Simple Upload","profile-builder"),help:(0,i.__)("Use a simple upload field instead of the WordPress upload.","profile-builder"),checked:"yes"===t["simple-upload"],onChange:e=>l({"simple-upload":e?"yes":""})}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Avatar Size","profile-builder"),value:t["avatar-size"],onChange:e=>l({"avatar-size":e}),help:(0,i.__)("A value between 20 and 200 (default 100).","profile-builder")}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Allowed Image Extensions","profile-builder"),value:t["allowed-image-extensions"],onChange:e=>l({"allowed-image-extensions":e}),help:(0,i.__)("Comma-separated list (e.g. .jpg,.png,.gif). Default .* allows .jpg,.jpeg,.gif,.png.","profile-builder")}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Maximum File Size (MB)","profile-builder"),value:t["max-file-size"],onChange:e=>l({"max-file-size":e}),help:(0,i.__)("Leave empty to use the server upload limit.","profile-builder")}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("div",{style:{display:"flex",alignItems:"center"}},(0,r.createElement)("div",{style:{width:t["avatar-size"]+"px",height:t["avatar-size"]+"px",backgroundColor:"#eee",marginRight:"15px",display:"flex",alignItems:"center",justifyContent:"center",color:"#999"}},(0,i.__)("Avatar","profile-builder")),(0,r.createElement)(n.Button,{isSecondary:!0,disabled:!0},(0,i.__)("Select Image","profile-builder"))))}},867(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>a});var r=l(1609),i=l(2533);const n={bridgeKey:"campaignMonitor",listAttr:"campaign-monitor-lists",hideFieldAttr:"campaign-monitor-hide-field",listLabel:"Campaign Monitor List",serviceLabel:"Campaign Monitor"};function a(e){return(0,r.createElement)(i.A,{...e,config:n})}},9291(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>n});var r=l(1609),i=l(5978);function n(e){const{attributes:t}=e;return(0,r.createElement)(i.A,{...e,hideLabel:!0},(0,r.createElement)("div",{className:"wppb-fb-toa-preview"},(0,r.createElement)("label",null,(0,r.createElement)("input",{type:"checkbox",disabled:!0}),(0,r.createElement)("span",{style:{marginLeft:"5px"}},t["field-title"],"Yes"===t.required&&(0,r.createElement)("span",{className:"wppb-fb-field-required"},"*")))))}},3616(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>a});var r=l(1609),i=l(7723),n=l(6239);function a(e){return(0,r.createElement)(n.A,{...e,panelTitle:(0,i.__)("Checkbox Settings","profile-builder"),previewType:"checkbox",defaultValueAttr:"default-options",showDefaultHelp:!0})}},7242(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>a});var r=l(1609),i=l(7723),n=l(5978);function a(e){return(0,r.createElement)(n.A,{...e},(0,r.createElement)("div",{style:{display:"flex",alignItems:"center"}},(0,r.createElement)("div",{style:{width:"30px",height:"30px",backgroundColor:"#fff",border:"1px solid #ccc",marginRight:"10px"}}),(0,r.createElement)("input",{type:"text",disabled:!0,placeholder:(0,i.__)("Select color...","profile-builder"),style:{flex:1}})))}},5917(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Datepicker Settings","profile-builder")},(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>l({"default-value":e})}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Date Format","profile-builder"),value:t["date-format"],onChange:e=>l({"date-format":e}),help:(0,i.__)("Example: mm/dd/yy, dd-mm-yy, etc.","profile-builder")}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("input",{type:"text",disabled:!0,style:{width:"100%"},placeholder:t["date-format"]||"mm/dd/yy"}))}},5657(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>n});var r=l(1609),i=l(5978);function n(e){return(0,r.createElement)(i.A,{...e,hidePreview:!0})}},5682(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("AIM Settings","profile-builder")},(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>l({"default-value":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("input",{type:"text",disabled:!0,style:{width:"100%"},placeholder:(0,i.__)("AIM","profile-builder")}))}},7147(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Biographical Info Settings","profile-builder")},(0,r.createElement)(n.TextareaControl,{label:(0,i.__)("Default Value","profile-builder"),value:t["default-content"],onChange:e=>l({"default-content":e})}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Row Count","profile-builder"),value:t["row-count"],onChange:e=>l({"row-count":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("textarea",{disabled:!0,style:{width:"100%"},rows:t["row-count"],placeholder:(0,i.__)("Biographical Info","profile-builder")}))}},3370(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>a});var r=l(1609),i=l(7723),n=l(5978);function a(e){return(0,r.createElement)(n.A,{...e},(0,r.createElement)("div",{style:{padding:"10px",border:"1px dashed #ccc",backgroundColor:"#fafafa",color:"#666",fontSize:"12px"}},(0,r.createElement)("span",{className:"dashicons dashicons-admin-site",style:{marginRight:"5px"}}),(0,i.__)("Blog Details Fields (Multisite)","profile-builder")))}},2211(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>n});var r=l(1609),i=l(5978);function n(e){return(0,r.createElement)(i.A,{...e,hidePreview:!0})}},5313(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Display Name Settings","profile-builder")},(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>l({"default-value":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("select",{disabled:!0,style:{width:"100%"}},(0,r.createElement)("option",null,(0,i.__)("Username","profile-builder")),(0,r.createElement)("option",null,(0,i.__)("First Name","profile-builder")),(0,r.createElement)("option",null,(0,i.__)("Last Name","profile-builder")),(0,r.createElement)("option",null,(0,i.__)("First Name Last Name","profile-builder"))))}},5937(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("E-mail Settings","profile-builder")},(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>l({"default-value":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("input",{type:"email",disabled:!0,style:{width:"100%"},placeholder:(0,i.__)("E-mail","profile-builder")}))}},7565(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("First Name Settings","profile-builder")},(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>l({"default-value":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("input",{type:"text",disabled:!0,style:{width:"100%"},placeholder:(0,i.__)("First Name","profile-builder")}))}},8717(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Jabber Settings","profile-builder")},(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>l({"default-value":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("input",{type:"text",disabled:!0,style:{width:"100%"},placeholder:(0,i.__)("Jabber / Google Talk","profile-builder")}))}},5577(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Last Name Settings","profile-builder")},(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>l({"default-value":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("input",{type:"text",disabled:!0,style:{width:"100%"},placeholder:(0,i.__)("Last Name","profile-builder")}))}},743(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>n});var r=l(1609),i=l(5978);function n(e){return(0,r.createElement)(i.A,{...e,hidePreview:!0})}},8847(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Nickname Settings","profile-builder")},(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>l({"default-value":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("input",{type:"text",disabled:!0,style:{width:"100%"},placeholder:(0,i.__)("Nickname","profile-builder")}))}},9352(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Password Settings","profile-builder")},(0,r.createElement)(n.CheckboxControl,{label:(0,i.__)("Ask for Current Password","profile-builder"),help:(0,i.__)("On Edit Profile forms, require users to enter their current password before changing it. Applies only when users change their own password.","profile-builder"),checked:"yes"===t["ask-current-password"],onChange:e=>l({"ask-current-password":e?"yes":""})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("input",{type:"password",disabled:!0,style:{width:"100%"},placeholder:(0,i.__)("Password","profile-builder")}))}},3064(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>a});var r=l(1609),i=l(7723),n=l(5978);function a(e){return(0,r.createElement)(n.A,{...e},(0,r.createElement)("input",{type:"password",disabled:!0,style:{width:"100%"},placeholder:(0,i.__)("Repeat Password","profile-builder")}))}},9911(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o="email"===("undefined"!=typeof window&&window.wppbFb&&window.wppbFb.generalSettings&&window.wppbFb.generalSettings.loginWith||"usernameemail"),s=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Username Settings","profile-builder")},(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>l({"default-value":e})}),o&&(0,r.createElement)(n.Notice,{status:"info",isDismissible:!1},(0,i.__)('Login is set to "Email" in Profile Builder → Settings → General Settings, so this field will not be rendered on the front-end. It is kept in the form because Registration forms require it server-side.',"profile-builder")));return(0,r.createElement)(a.A,{...e,inspectorPanels:s},o&&(0,r.createElement)(n.Notice,{status:"info",isDismissible:!1,className:"wppb-fb-username-hidden-notice"},(0,i.__)("Not rendered on the front-end (Login with: Email).","profile-builder")),(0,r.createElement)("input",{type:"text",disabled:!0,style:{width:"100%"},placeholder:(0,i.__)("Username","profile-builder")}))}},3946(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Website Settings","profile-builder")},(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>l({"default-value":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("input",{type:"url",disabled:!0,style:{width:"100%"},placeholder:(0,i.__)("Website","profile-builder")}))}},6602(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Yahoo IM Settings","profile-builder")},(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>l({"default-value":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("input",{type:"text",disabled:!0,style:{width:"100%"},placeholder:(0,i.__)("Yahoo IM","profile-builder")}))}},4193(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>a});var r=l(1609),i=l(7723),n=l(5978);function a(e){return(0,r.createElement)(n.A,{...e},(0,r.createElement)("input",{type:"email",disabled:!0,style:{width:"100%"},placeholder:(0,i.__)("Confirm E-mail","profile-builder")}))}},4161(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Email Settings","profile-builder")},(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>l({"default-value":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("input",{type:"email",disabled:!0,style:{width:"100%"},placeholder:(0,i.__)("Email","profile-builder")}))}},46(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>a});var r=l(1609),i=l(7723),n=l(5978);function a(e){const{attributes:t}=e;return(0,r.createElement)(n.A,{...e},(0,r.createElement)("div",{className:"wppb-fb-gdpr-preview"},(0,r.createElement)("label",null,(0,r.createElement)("input",{type:"checkbox",disabled:!0}),(0,r.createElement)("span",{style:{marginLeft:"5px"}},t.description||(0,i.__)("(GDPR agreement text will appear here from the Description field)","profile-builder")))))}},9774(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>d});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);const o=[{value:"email",label:(0,i.__)("Email","profile-builder")},{value:"phone",label:(0,i.__)("Telephone","profile-builder")},{value:"sms",label:(0,i.__)("SMS","profile-builder")},{value:"post",label:(0,i.__)("Post","profile-builder")}];function s(e){return e?e.split(",").map(e=>e.trim()).filter(Boolean):[]}function d(e){const{attributes:t,setAttributes:l}=e,d=s(t["gdpr-communication-preferences"]),c=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Communication Preferences","profile-builder")},(0,r.createElement)("p",{style:{marginBottom:"0.75em"}},(0,i.__)("Select which communication channels users can opt into.","profile-builder")),o.map(e=>(0,r.createElement)(n.CheckboxControl,{key:e.value,label:e.label,checked:d.includes(e.value),onChange:r=>((e,r)=>{let i=s(t["gdpr-communication-preferences"]);r?i.includes(e)||i.push(e):i=i.filter(t=>t!==e),l({"gdpr-communication-preferences":i.join(",")})})(e.value,r)})));return(0,r.createElement)(a.A,{...e,inspectorPanels:c},(0,r.createElement)("ul",{className:"wppb-fb-checkboxes",style:{listStyle:"none",margin:0,padding:0}},d.length>0?d.map(e=>(0,r.createElement)("li",{key:e,style:{marginBottom:"5px"}},(0,r.createElement)("input",{type:"checkbox",disabled:!0}),(0,r.createElement)("label",{style:{marginLeft:"5px"}},function(e){const t=o.find(t=>t.value===e);return t?t.label:e}(e)))):(0,r.createElement)("div",null,(0,i.__)("(no preferences enabled)","profile-builder"))))}},604(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(5978),a=l(6427);function o(e){return(0,r.createElement)(n.A,{...e},(0,r.createElement)("div",null,(0,r.createElement)(a.Button,{isDestructive:!0,isSecondary:!0,disabled:!0},(0,i.__)("Delete","profile-builder"))))}},7115(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Heading Settings","profile-builder")},(0,r.createElement)(n.SelectControl,{label:(0,i.__)("Heading Tag","profile-builder"),value:t["heading-tag"],options:[{label:"h2",value:"h2"},{label:"h3",value:"h3"},{label:"h4",value:"h4"},{label:"h5",value:"h5"}],onChange:e=>l({"heading-tag":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o,hidePreview:!0})}},1121(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>a});var r=l(1609),i=l(7723),n=l(5978);function a(e){return(0,r.createElement)(n.A,{...e},(0,r.createElement)("div",{style:{padding:"10px",border:"1px dashed #ccc",backgroundColor:"#fafafa",color:"#666",fontSize:"12px"}},(0,r.createElement)("span",{className:"dashicons dashicons-shield",style:{marginRight:"5px"}}),(0,i.__)("Invisible Honeypot Field (Spam Protection)","profile-builder")))}},5300(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("HTML Settings","profile-builder")},(0,r.createElement)(n.TextareaControl,{label:(0,i.__)("HTML Content","profile-builder"),value:t["html-content"],onChange:e=>l({"html-content":e}),help:(0,i.__)("Enter custom HTML content.","profile-builder")}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("div",{style:{padding:"10px",border:"1px dashed #ccc",backgroundColor:"#fafafa",color:"#666",fontSize:"12px"}},t["html-content"]?(0,r.createElement)("div",null,(0,i.__)("HTML Content (Preview not available in editor)","profile-builder")):(0,r.createElement)("div",null,(0,i.__)("Empty HTML Block","profile-builder"))))}},7898(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Hidden Input Settings","profile-builder")},(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>l({"default-value":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("div",{style:{padding:"10px",border:"1px dashed #ccc",backgroundColor:"#fafafa",color:"#666",fontSize:"12px"}},(0,r.createElement)("span",{className:"dashicons dashicons-hidden",style:{marginRight:"5px"}}),(0,i.__)("Hidden Input Field","profile-builder"),t["default-value"]&&(0,r.createElement)("span",{style:{marginLeft:"10px",fontStyle:"italic"}},(0,i.__)("Value:","profile-builder")," ",t["default-value"])))}},2181(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("URL Settings","profile-builder")},(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>l({"default-value":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("input",{type:"url",disabled:!0,style:{width:"100%"},placeholder:(0,i.__)("https://example.com","profile-builder")}))}},9137(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Input Settings","profile-builder")},(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>l({"default-value":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("input",{type:"text",disabled:!0,style:{width:"100%"}}))}},9109(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>s});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);const o=()=>(0,r.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 512 512",style:{fill:"#555"}},(0,r.createElement)("path",{d:"M508 213a240 240 0 0 0-449-87l-2 5-2 5c-8 14-13 30-17 46a65 65 0 0 1 56 4c16-10 35-19 56-27l9-3c-6 23-10 48-10 74h-16l4 6c3 4 5 8 6 13h6c0 22 3 44 8 65l2 10-25-10-4 5 12 18 9 3 6 2 8 3 9 26 1 2 16-7h1l-5-13-1-2c24 6 49 9 75 10v26l11 10 7 7v-30l1-13c22 0 44-3 65-8l10-2-21 48-1 1a317 317 0 0 1-14 23l-21 5h-2c6 16 7 33 1 50a240 240 0 0 0 211-265m-401-56-11 6c19-44 54-79 98-98-11 20-21 44-29 69-21 6-40 15-58 23m154 182v4c-29-1-57-6-81-13-7-25-12-52-13-81h94zm0-109h-94c1-29 6-56 13-81 24-7 52-12 81-13zm0-112c-22 1-44 4-65 8l-10 2 12-30 9-17 1-2a332 332 0 0 1 13-23c13-4 26-6 40-7zm187 69 6 4c4 12 6 25 6 38v1h-68c-1-26-4-51-10-74l48 20 1 1 14 8zm-14-44 10 20c-20-11-43-21-68-29-8-25-18-49-29-69 37 16 67 44 87 78M279 49h1c13 1 27 3 39 7l14 23 1 2a343 343 0 0 1 12 26l2 5 6 16c-23-6-48-9-74-10h-1zm0 87h1c29 1 56 6 81 13 7 24 12 51 12 80v1h-94zm2 207h-2v-94h95c-1 29-6 56-13 81-24 7-51 12-80 13m86 60-20 10c11-20 21-43 29-68 25-8 48-18 68-29-16 37-43 67-77 87m87-115-7 5-16 9-2 1a337 337 0 0 1-47 21c6-24 9-49 10-75h68c0 13-2 27-6 39"}),(0,r.createElement)("path",{d:"m261 428-2-2-22-21a40 40 0 0 0-32-11h-1a37 37 0 0 0-18 8l-1 1-4 2-2 2-5 4c-9-3-36-31-47-44s-32-45-34-55l3-2a151 151 0 0 0 11-9v-1a39 39 0 0 0 5-48l-3-3-11-19-3-4-5-7h-1l-3-3-4-3-5-2a35 35 0 0 0-16-3h-5c-4 1-14 5-24 11l-4 2-4 3-4 2c-9 8-17 17-18 27a380 380 0 0 0 212 259h3c12 0 25-10 36-21l10-12 6-11a39 39 0 0 0-8-40"}));function s(e){const{attributes:t,setAttributes:l}=e,s="yes"===t["hide-flags"],d=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("International Telephone Settings","profile-builder")},(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>l({"default-value":e})}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Initial Country","profile-builder"),value:t["initial-country"],onChange:e=>l({"initial-country":e}),help:(0,i.__)('Enter "auto" or a valid ISO 3166-1 alpha-2 country code.',"profile-builder")}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Preferred Countries","profile-builder"),value:t["preferred-countries"],onChange:e=>l({"preferred-countries":e}),help:(0,i.__)("Comma separated list of ISO 3166-1 alpha-2 country codes.","profile-builder")}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Excluded Countries","profile-builder"),value:t["excluded-countries"],onChange:e=>l({"excluded-countries":e}),help:(0,i.__)("Comma separated list of ISO 3166-1 alpha-2 country codes.","profile-builder")}),(0,r.createElement)(n.CheckboxControl,{label:(0,i.__)("National Mode","profile-builder"),help:(0,i.__)("When enabled, numbers are entered in local format. Disable for international format with country prefix.","profile-builder"),checked:"yes"===t["national-mode"],onChange:e=>l({"national-mode":e?"yes":""})}),(0,r.createElement)(n.CheckboxControl,{label:(0,i.__)("Hide Flags","profile-builder"),checked:"yes"===t["hide-flags"],onChange:e=>l({"hide-flags":e?"yes":""})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:d},(0,r.createElement)("div",{style:{display:"flex",alignItems:"center"}},(0,r.createElement)("div",{style:{width:"40px",height:"30px",backgroundColor:"#e5e3df",marginRight:"5px",display:"flex",alignItems:"center",justifyContent:"center"}},s?(0,r.createElement)(o,null):(0,r.createElement)(r.Fragment,null,"🏴")),(0,r.createElement)("input",{type:"tel",disabled:!0,style:{flex:"1"},placeholder:(0,i.__)("Phone Number","profile-builder")})))}},1765(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Language Settings","profile-builder")},(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>l({"default-value":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("div",{style:{padding:"10px",border:"1px dashed #ccc",backgroundColor:"#fafafa",color:"#666",fontSize:"12px"}},(0,r.createElement)("span",{className:"dashicons dashicons-translation",style:{marginRight:"5px"}}),(0,i.__)("Hidden Language Field","profile-builder"),t["default-value"]&&(0,r.createElement)("span",{style:{marginLeft:"10px",fontStyle:"italic"}},(0,i.__)("Value:","profile-builder")," ",t["default-value"])))}},1640(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>a});var r=l(1609),i=l(2533);const n={bridgeKey:"mailchimp",listAttr:"mailchimp-lists",hideFieldAttr:"mailchimp-hide-field",defaultCheckedAttr:"mailchimp-default-checked",listLabel:"MailChimp List",serviceLabel:"MailChimp"};function a(e){return(0,r.createElement)(i.A,{...e,config:n})}},3969(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>a});var r=l(1609),i=l(2533);const n={bridgeKey:"mailpoet",listAttr:"mailpoet-lists",hideFieldAttr:"mailpoet-hide-field",defaultCheckedAttr:"mailpoet-default-checked",listLabel:"MailPoet List",serviceLabel:"MailPoet"};function a(e){return(0,r.createElement)(i.A,{...e,config:n})}},7023(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Map Settings","profile-builder")},(0,r.createElement)(n.TextControl,{label:(0,i.__)("Google Maps API Key","profile-builder"),value:t["map-api-key"],onChange:e=>l({"map-api-key":e}),help:(0,i.__)("When more than one Map field exists on a form, only the first map’s key is used.","profile-builder")}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Latitude","profile-builder"),value:t["map-default-lat"],onChange:e=>l({"map-default-lat":e})}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Longitude","profile-builder"),value:t["map-default-lng"],onChange:e=>l({"map-default-lng":e})}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Zoom Level","profile-builder"),value:t["map-default-zoom"],onChange:e=>l({"map-default-zoom":e}),help:(0,i.__)("0–19. Higher values zoom in further.","profile-builder")}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Map Height (px)","profile-builder"),value:t["map-height"],onChange:e=>l({"map-height":e})}),(0,r.createElement)(n.SelectControl,{label:(0,i.__)("POIs Load Type","profile-builder"),value:t["map-pins-load-type"],options:[{label:(0,i.__)("POIs of the listed users (paginated)","profile-builder"),value:""},{label:(0,i.__)("POIs of all users for the filter (no pagination)","profile-builder"),value:"all"}],onChange:e=>l({"map-pins-load-type":e})}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Number of Users per Map Iteration","profile-builder"),value:t["map-pagination-number"],onChange:e=>l({"map-pagination-number":e}),help:(0,i.__)("Used only when loading all users with no pagination. Recommended max: 300.","profile-builder")}),(0,r.createElement)(n.TextareaControl,{label:(0,i.__)("POI Bubble Info","profile-builder"),value:t["map-bubble-fields"],onChange:e=>l({"map-bubble-fields":e}),help:(0,i.__)("Comma-separated tag names to render in the POI bubble (e.g. avatar_or_gravatar, meta_display_name).","profile-builder")}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("div",{style:{width:"100%",height:t["map-height"]+"px",backgroundColor:"#e5e3df",display:"flex",alignItems:"center",justifyContent:"center",color:"#666",border:"1px solid #ccc"}},(0,r.createElement)("span",{className:"dashicons dashicons-location",style:{marginRight:"10px"}}),(0,i.__)("Google Map Placeholder","profile-builder")))}},8e3(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Number Settings","profile-builder")},(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>l({"default-value":e})}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Min Value","profile-builder"),value:t["min-number-value"],onChange:e=>l({"min-number-value":e})}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Max Value","profile-builder"),value:t["max-number-value"],onChange:e=>l({"max-number-value":e})}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Step","profile-builder"),value:t["number-step-value"],onChange:e=>l({"number-step-value":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("input",{type:"number",disabled:!0,style:{width:"100%"},min:t["min-number-value"],max:t["max-number-value"],step:t["number-step-value"]}))}},1713(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Phone Settings","profile-builder")},(0,r.createElement)(n.TextControl,{label:(0,i.__)("Phone Format","profile-builder"),value:t["phone-format"],onChange:e=>l({"phone-format":e}),help:(0,i.__)("Use # for numbers (e.g., (###) ###-####).","profile-builder")}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("input",{type:"text",disabled:!0,style:{width:"100%"},placeholder:t["phone-format"]||(0,i.__)("Phone Number","profile-builder")}))}},6059(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>s});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){return e?e.split(",").map(e=>e.trim()).filter(Boolean):[]}function s(e){const{attributes:t,setAttributes:l}=e,s=("undefined"!=typeof window&&window.wppbFb||{}).pms||{},d=Array.isArray(s.billingFields)?s.billingFields:[],c=s.addonsUrl||"",p=o(t["pms-billing-fields"]),u=p.length>0?p:d.map(e=>String(e.value)),f=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Billing Fields","profile-builder")},d.length>0?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{style:{marginBottom:"0.75em"}},(0,i.__)("Select which billing fields to display. Leave all unchecked to display every available billing field.","profile-builder")),d.map(e=>(0,r.createElement)(n.CheckboxControl,{key:String(e.value),label:e.label,checked:p.includes(String(e.value)),onChange:r=>((e,r)=>{let i=o(t["pms-billing-fields"]);r?i.includes(e)||i.push(e):i=i.filter(t=>t!==e),l({"pms-billing-fields":i.join(", ")})})(String(e.value),r)}))):(0,r.createElement)(n.Notice,{status:"warning",isDismissible:!1},(0,i.__)("No billing fields are available. Activate the Tax and/or Invoice add-ons.","profile-builder"),c&&" ",c&&(0,r.createElement)(n.ExternalLink,{href:c},(0,i.__)("Paid Member Subscriptions add-ons","profile-builder"))));return(0,r.createElement)(a.A,{...e,inspectorPanels:f,hideDescription:!0},(0,r.createElement)(n.Notice,{status:"info",isDismissible:!1},(0,i.__)("Billing Fields only appear on Edit Profile forms.","profile-builder")),(0,r.createElement)("ul",{className:"wppb-fb-checkboxes",style:{listStyle:"none",margin:0,padding:0}},u.length>0?u.map(e=>(0,r.createElement)("li",{key:e,style:{marginBottom:"5px"}},(0,r.createElement)("label",null,(e=>{const t=d.find(t=>String(t.value)===String(e));return t?t.label:e})(e)),(0,r.createElement)("input",{type:"text",disabled:!0,style:{display:"block",width:"100%"}}))):(0,r.createElement)("div",null,(0,i.__)("(no billing fields available)","profile-builder"))))}},3822(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>p});var r=l(1609),i=l(7723),n=l(6427),a=l(6087),o=l(5978);function s(e){return e?e.split(",").map(e=>e.trim()).filter(Boolean):[]}function d(e){return e.length?", "+e.join(", "):""}function c(e,t){return e.filter(e=>t.has(e)).join(", ")}function p(e){var t;const{attributes:l,setAttributes:p}=e,u=(0,a.useRef)(null),[f,m]=(0,a.useState)(null),b=("undefined"!=typeof window&&window.wppbFb||{}).pms||{},h=Array.isArray(b.subscriptionPlans)?b.subscriptionPlans:[],g=Array.isArray(b.subscriptionPlanSelect)?b.subscriptionPlanSelect:[],y=b.subscriptionsUrl||"",_=h.map(e=>String(e.value)),w=e=>h.find(t=>String(t.value)===String(e)),E=e=>{const t=w(e);return t?t.label:e},v=function(e,t){const l=new Set,r=[];for(const i of s(e))t.includes(i)&&!l.has(i)&&(l.add(i),r.push(i));for(const e of t)l.has(e)||r.push(e);return r}(l["subscription-plans-sort-order"]||"",_),x=new Set(s(l["subscription-plans"])),k=e=>t=>{u.current=e,t.stopPropagation();try{t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",e)}catch(e){}const l=t.currentTarget.closest(".wppb-fb-pms-plans__row");l&&t.dataTransfer.setDragImage&&t.dataTransfer.setDragImage(l,10,10)},C=()=>{u.current=null,m(null)},S=e=>t=>{null!=u.current&&(t.preventDefault(),t.dataTransfer.dropEffect="move",f!==e&&m(e))},T=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Subscription Plans","profile-builder")},h.length>0?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{style:{marginBottom:"0.75em"}},(0,i.__)("Select which plans to show, and drag to reorder. Leave all unchecked to show every plan.","profile-builder")),(0,r.createElement)("div",{className:"wppb-fb-pms-plans"},v.map(e=>{const t=["wppb-fb-pms-plans__row",f===e?"is-drag-over":""].filter(Boolean).join(" ");return(0,r.createElement)("div",{key:e,className:t,onDragOver:S(e),onDrop:(l=e,e=>{e.preventDefault(),e.stopPropagation();const t=u.current;if(u.current=null,m(null),!t||t===l)return;const r=v.slice(),i=r.indexOf(t);if(i<0)return;r.splice(i,1);const n=r.indexOf(l);var a;n<0||(r.splice(n,0,t),p({"subscription-plans-sort-order":d(a=r),"subscription-plans":c(a,x)}))})},(0,r.createElement)("span",{className:"wppb-fb-pms-plans__handle",draggable:!0,onDragStart:k(e),onDragEnd:C,role:"button","aria-label":(0,i.__)("Drag to reorder","profile-builder"),title:(0,i.__)("Drag to reorder","profile-builder")},(0,r.createElement)("span",{className:"dashicons dashicons-menu","aria-hidden":"true"})),(0,r.createElement)("input",{type:"checkbox",className:"wppb-fb-pms-plans__check",checked:x.has(e),"aria-label":E(e),onChange:t=>((e,t)=>{const l=new Set(x);t?l.add(e):l.delete(e),p({"subscription-plans":c(v,l)})})(e,t.target.checked)}),(0,r.createElement)("span",{className:"wppb-fb-pms-plans__label"},E(e)));var l})),g.length>1&&(0,r.createElement)(n.SelectControl,{label:(0,i.__)("Selected Subscription Plan","profile-builder"),value:l["subscription-plan-selected"]||"-1",options:g,onChange:e=>p({"subscription-plan-selected":e}),help:(0,i.__)("The plan selected by default when the form loads.","profile-builder"),__nextHasNoMarginBottom:!0})):(0,r.createElement)(n.Notice,{status:"warning",isDismissible:!1},(0,i.__)("No active subscription plans found.","profile-builder"),y&&" ",y&&(0,r.createElement)(n.ExternalLink,{href:y},(0,i.__)("Create a subscription plan","profile-builder")))),N=v.filter(e=>x.has(e)&&"all"!==e),A=x.has("all")||0===x.size?v.filter(e=>"all"!==e):N,F=1===A.length,P=String(null!==(t=l["subscription-plan-selected"])&&void 0!==t?t:""),B=""===P||"0"===P?A[0]||"":P;return(0,r.createElement)(o.A,{...e,inspectorPanels:T},(0,r.createElement)("div",{className:"wppb-fb-pms-plans-preview"},A.length>0?A.map(e=>{const t=w(e)||{};return(0,r.createElement)("div",{key:e,className:["wppb-fb-pms-plan",F?"is-single":""].filter(Boolean).join(" ")},(0,r.createElement)("div",{className:"wppb-fb-pms-plan__row"},!F&&(0,r.createElement)("input",{type:"radio",disabled:!0,readOnly:!0,checked:String(B)===String(e)}),(0,r.createElement)("span",{className:"wppb-fb-pms-plan__name"},E(e)),t.price&&(0,r.createElement)("span",{className:"wppb-fb-pms-plan__price"},t.price),t.trial&&(0,r.createElement)("span",{className:"wppb-fb-pms-plan__trial"},t.trial),t.signUpFee&&(0,r.createElement)("span",{className:"wppb-fb-pms-plan__fee"},t.signUpFee)),t.description&&(0,r.createElement)("div",{className:"wppb-fb-pms-plan__desc"},t.description))}):(0,r.createElement)("div",{className:"wppb-fb-pms-plans-preview__empty"},(0,i.__)("(no subscription plans available)","profile-builder"))))}},6332(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>a});var r=l(1609),i=l(7723),n=l(6239);function a(e){return(0,r.createElement)(n.A,{...e,panelTitle:(0,i.__)("Radio Settings","profile-builder"),previewType:"radio"})}},7402(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>c});var r=l(1609),i=l(7723),n=l(6427),a=l(5978),o=l(5705);const s=[{value:"pb_login",label:(0,i.__)("PB Login","profile-builder")},{value:"pb_register",label:(0,i.__)("PB Register","profile-builder")},{value:"pb_recover_password",label:(0,i.__)("PB Recover Password","profile-builder")}],d=[{value:"default_wp_login",label:(0,i.__)("Default WP Login","profile-builder")},{value:"default_wp_register",label:(0,i.__)("Default WP Register","profile-builder")},{value:"default_wp_recover_password",label:(0,i.__)("Default WP Recover Password","profile-builder")}];function c(e){const{attributes:t,setAttributes:l}=e,c=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("reCAPTCHA Settings","profile-builder")},(0,r.createElement)(n.SelectControl,{label:(0,i.__)("reCAPTCHA Type","profile-builder"),value:t["recaptcha-type"],options:[{label:"reCAPTCHA V2 Checkbox",value:"v2"},{label:"reCAPTCHA V2 Invisible",value:"invisible"},{label:"reCAPTCHA V3",value:"v3"}],onChange:e=>l({"recaptcha-type":e})}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Site Key","profile-builder"),value:t["public-key"],onChange:e=>l({"public-key":e})}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Secret Key","profile-builder"),value:t["private-key"],onChange:e=>l({"private-key":e})}),"v3"===t["recaptcha-type"]&&(0,r.createElement)(n.TextControl,{label:(0,i.__)("Score Threshold","profile-builder"),value:t["score-threshold"],onChange:e=>l({"score-threshold":e}),help:(0,i.__)("1.0 is very likely a good interaction, 0.0 is very likely a bot.","profile-builder")}),(0,r.createElement)(n.BaseControl,{label:(0,i.__)("Display on PB forms","profile-builder")},s.map(e=>(0,r.createElement)(n.CheckboxControl,{key:e.value,label:e.label,checked:(0,o.m)(t["captcha-pb-forms"],e.value),onChange:r=>l({"captcha-pb-forms":(0,o.U)(t["captcha-pb-forms"],e.value,r)})}))),(0,r.createElement)(n.BaseControl,{label:(0,i.__)("Display on default WP forms","profile-builder")},d.map(e=>(0,r.createElement)(n.CheckboxControl,{key:e.value,label:e.label,checked:(0,o.m)(t["captcha-wp-forms"],e.value),onChange:r=>l({"captcha-wp-forms":(0,o.U)(t["captcha-wp-forms"],e.value,r)})}))));return(0,r.createElement)(a.A,{...e,inspectorPanels:c},(0,r.createElement)("div",{style:{padding:"10px",border:"1px dashed #ccc",backgroundColor:"#fafafa",color:"#666",fontSize:"12px"}},(0,r.createElement)("span",{className:"dashicons dashicons-shield",style:{marginRight:"5px"}}),(0,i.__)("reCAPTCHA Placeholder","profile-builder")))}},9167(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>f});var r=l(1609),i=l(7723),n=l(4715),a=l(6427),o=l(6087),s=l(6036),d=l(8565),c=l(2050),p=l(2340);function u(e){const t=Object.entries(e).filter(([,e])=>""!==e&&void 0!==e).map(([e,t])=>({role:e,value:String(t)}));return t.length?JSON.stringify({rules:t}):""}function f({attributes:e,setAttributes:t,clientId:l,isSelected:f=!1}){const{id:m,"field-title":b,description:h,required:g,"rpf-enable-limit":y,"rpf-limit":_,"rpf-limit-reached-message":w,"rpf-role-limit":E}=e,v=!!f,x=window.wppbFb&&window.wppbFb.repeater||{},k=Array.isArray(x.allowedBlocks)&&x.allowedBlocks.length?x.allowedBlocks:["profile-builder/field-input"],C="yes"===y;(0,s.C)(m,t);const S=(0,o.useMemo)(()=>(window.wppbFb&&window.wppbFb.formSettings&&window.wppbFb.formSettings.roles||[]).filter(e=>"default role"!==e.value),[]),T=(0,o.useMemo)(()=>function(e){if(!e)return{};try{const t=JSON.parse(e);return t&&Array.isArray(t.rules)?t.rules.reduce((e,t)=>{var l;return t&&"string"==typeof t.role&&(e[t.role]=String(null!==(l=t.value)&&void 0!==l?l:"")),e},{}):{}}catch(e){return{}}}(E),[E]);return(0,r.createElement)("div",{...(0,n.useBlockProps)({className:"wppb-fb-field-block wppb-fb-repeater-block"})},v&&(0,r.createElement)(d.h,null,(0,r.createElement)(a.PanelBody,{title:(0,i.__)("Repeater Settings","profile-builder")},(0,r.createElement)(a.TextControl,{label:(0,i.__)("Field Title","profile-builder"),value:b,onChange:e=>t({"field-title":e})})),(0,r.createElement)(a.PanelBody,{title:(0,i.__)("Limit","profile-builder"),initialOpen:!1},(0,r.createElement)(a.CheckboxControl,{label:(0,i.__)("Enable limit","profile-builder"),checked:C,onChange:e=>t({"rpf-enable-limit":e?"yes":""}),help:(0,i.__)("Enable a limit on how many repeater groups users can add on the front-end.","profile-builder")}),C&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.TextControl,{label:(0,i.__)("General Limit","profile-builder"),type:"number",min:0,step:1,value:null!=_?_:"0",onChange:e=>t({"rpf-limit":e}),help:(0,i.__)("Default limit for this repeater group. Leave 0 for unlimited.","profile-builder")}),(0,r.createElement)(a.TextareaControl,{label:(0,i.__)("Limit Reached Message","profile-builder"),value:w,placeholder:(0,i.__)("The maximum number of fields has been reached.","profile-builder"),onChange:e=>t({"rpf-limit-reached-message":e}),help:(0,i.__)("Popup message shown when the limit is reached.","profile-builder")}),(0,r.createElement)(a.BaseControl,{label:(0,i.__)("Limit per Role","profile-builder"),help:(0,i.__)("Override the general limit for specific roles. Leave 0 for unlimited.","profile-builder")},0===S.length&&(0,r.createElement)("em",null,(0,i.__)("No roles available.","profile-builder")),S.map(e=>{var l;return(0,r.createElement)(a.TextControl,{key:e.value,label:e.label,type:"number",min:0,step:1,value:null!==(l=T[e.value])&&void 0!==l?l:"",onChange:l=>((e,l)=>{const r={...T,[e]:l};t({"rpf-role-limit":u(r)})})(e.value,l)})})))),(0,r.createElement)(c.A,{attributes:e,setAttributes:t,insideRepeater:!1})),(0,r.createElement)("div",{className:"wppb-fb-repeater-block__head"},(0,r.createElement)("span",{className:"wppb-fb-repeater-block__icon","aria-hidden":"true"},(0,r.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none"},(0,r.createElement)("rect",{x:"3",y:"4",width:"18",height:"6",rx:"1.5",stroke:"currentColor",strokeWidth:"1.7"}),(0,r.createElement)("rect",{x:"3",y:"14",width:"18",height:"6",rx:"1.5",stroke:"currentColor",strokeWidth:"1.7"}))),(0,r.createElement)("span",{className:"wppb-fb-repeater-block__title"},b||(0,i.__)("Repeater","profile-builder"),"Yes"===g&&(0,r.createElement)("span",{className:"wppb-fb-field-required"},"*")),(0,r.createElement)("span",{className:"wppb-fb-repeater-block__meta"},(0,r.createElement)("span",{className:"wppb-fb-field-tag"},(0,i.__)("Repeater","profile-builder")),(0,r.createElement)("span",{className:"wppb-fb-field-num"},m?(0,i.sprintf)(/* translators: %s: field id */ /* translators: %s: field id */(0,i.__)("Field #%s","profile-builder"),m):(0,i.__)("Field #…","profile-builder")))),h&&(0,r.createElement)("div",{className:"wppb-fb-repeater-block__desc"},h),(0,r.createElement)("div",{className:"wppb-fb-repeater-block__hint"},(0,i.__)("Sub-fields are scoped to this Repeater — add new fields using the inserter inside this box. They can't be dragged in or out.","profile-builder")),(0,r.createElement)("div",{className:"wppb-fb-repeater-block__body"},(0,r.createElement)(n.InnerBlocks,{allowedBlocks:k,template:[["profile-builder/field-input"]],renderAppender:()=>null}),(0,r.createElement)(p.A,{rootClientId:l,label:(0,i.__)("Add sub-field","profile-builder")})))}},9634(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>n});var r=l(1609),i=l(4715);function n(){return(0,r.createElement)(i.InnerBlocks.Content,null)}},5354(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=function(){const e="undefined"!=typeof window&&window.wppbFb||{},t=e.selectFields&&e.selectFields.countries||[];return Array.isArray(t)?t:[]}(),s=o.find(e=>e.value===t["default-option-country"]),d=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Select (Country) Settings","profile-builder")},(0,r.createElement)(n.SelectControl,{label:(0,i.__)("Default Option","profile-builder"),value:t["default-option-country"],options:o,onChange:e=>l({"default-option-country":e}),help:(0,i.__)("The country selected by default on the form.","profile-builder")}));return(0,r.createElement)(a.A,{...e,inspectorPanels:d},(0,r.createElement)("select",{disabled:!0,style:{width:"100%"}},(0,r.createElement)("option",null,s&&s.value?s.label:(0,i.__)("(List of countries will be generated here)","profile-builder"))))}},8955(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=function(){const e="undefined"!=typeof window&&window.wppbFb||{},t=e.selectFields&&e.selectFields.postTypes||[];return Array.isArray(t)?t:[]}(),s=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Select (CPT) Settings","profile-builder")},(0,r.createElement)(n.SelectControl,{label:(0,i.__)("Show Post Type","profile-builder"),value:t.cpt,options:o,onChange:e=>l({cpt:e}),help:(0,i.__)("Posts from this post type will be displayed in the select.","profile-builder")}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Option","profile-builder"),value:t["default-option"],onChange:e=>l({"default-option":e}),help:(0,i.__)("Enter the ID of the default post.","profile-builder")}));return(0,r.createElement)(a.A,{...e,inspectorPanels:s},(0,r.createElement)("select",{disabled:!0,style:{width:"100%"}},(0,r.createElement)("option",null,(0,i.__)("(List of CPT posts will be generated here)","profile-builder"))))}},7969(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=function(){const e="undefined"!=typeof window&&window.wppbFb||{},t=e.selectFields&&e.selectFields.currencies||[];return Array.isArray(t)?t:[]}(),s=o.find(e=>e.value===t["default-option-currency"]),d=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Select (Currency) Settings","profile-builder")},(0,r.createElement)(n.SelectControl,{label:(0,i.__)("Default Option","profile-builder"),value:t["default-option-currency"],options:o,onChange:e=>l({"default-option-currency":e}),help:(0,i.__)("The currency selected by default on the form.","profile-builder")}),(0,r.createElement)(n.SelectControl,{label:(0,i.__)("Show Currency Symbol","profile-builder"),value:t["show-currency-symbol"],options:[{label:(0,i.__)("No","profile-builder"),value:"No"},{label:(0,i.__)("Yes","profile-builder"),value:"Yes"}],onChange:e=>l({"show-currency-symbol":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:d},(0,r.createElement)("select",{disabled:!0,style:{width:"100%"}},(0,r.createElement)("option",null,s&&s.value?s.label:(0,i.__)("(List of currencies will be generated here)","profile-builder"))))}},9636(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>a});var r=l(1609),i=l(7723),n=l(6239);function a(e){return(0,r.createElement)(n.A,{...e,panelTitle:(0,i.__)("Select (Multiple) Settings","profile-builder"),previewType:"select-multiple",defaultValueAttr:"default-options",showDefaultHelp:!0})}},4681(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=function(){const e="undefined"!=typeof window&&window.wppbFb||{},t=e.selectFields&&e.selectFields.taxonomies||[];return Array.isArray(t)?t:[]}(),s=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Select (Taxonomy) Settings","profile-builder")},(0,r.createElement)(n.SelectControl,{label:(0,i.__)("Show Taxonomy Term","profile-builder"),value:t.taxonomy,options:o,onChange:e=>l({taxonomy:e}),help:(0,i.__)("Terms from this taxonomy will be displayed in the select.","profile-builder")}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Option","profile-builder"),value:t["default-option"],onChange:e=>l({"default-option":e}),help:(0,i.__)("Enter the ID of the default term.","profile-builder")}));return(0,r.createElement)(a.A,{...e,inspectorPanels:s},(0,r.createElement)("select",{disabled:!0,style:{width:"100%"}},(0,r.createElement)("option",null,(0,i.__)("(List of taxonomy terms will be generated here)","profile-builder"))))}},7601(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=function(){const e="undefined"!=typeof window&&window.wppbFb||{},t=e.selectFields&&e.selectFields.timezones||[];return Array.isArray(t)?t:[]}(),s=o.find(e=>e.value===t["default-option-timezone"]),d=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Select (Timezone) Settings","profile-builder")},(0,r.createElement)(n.SelectControl,{label:(0,i.__)("Default Option","profile-builder"),value:t["default-option-timezone"],options:o,onChange:e=>l({"default-option-timezone":e}),help:(0,i.__)("The timezone selected by default on the form.","profile-builder")}));return(0,r.createElement)(a.A,{...e,inspectorPanels:d},(0,r.createElement)("select",{disabled:!0,style:{width:"100%"}},(0,r.createElement)("option",null,s&&s.value?s.label:(0,i.__)("(List of timezones will be generated here)","profile-builder"))))}},554(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=function(){const e=("undefined"!=typeof window&&window.wppbFb||{}).userRoleField||{};return Array.isArray(e.roles)?e.roles:[]}(),s={};o.forEach(e=>{s[e.value]=e.label});const d=(c=t["user-roles"],(c||"").split(",").map(e=>e.trim()).filter(Boolean)).filter(e=>Object.prototype.hasOwnProperty.call(s,e));var c;const p=e=>{const t=e.join(", ");l({"user-roles":t,"user-roles-sort-order":t})},u=(e,t)=>{const l=e+t;if(l<0||l>=d.length)return;const r=[...d];[r[e],r[l]]=[r[l],r[e]],p(r)},f=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("User Role Settings","profile-builder")},0===o.length?(0,r.createElement)(n.Notice,{status:"warning",isDismissible:!1},(0,i.__)("No selectable user roles are available on this site.","profile-builder")):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{style:{marginTop:0}},(0,i.__)("Select which roles a user can choose from. Administrator is excluded.","profile-builder")),o.map(e=>(0,r.createElement)(n.CheckboxControl,{key:e.value,label:e.label,checked:d.includes(e.value),onChange:t=>((e,t)=>{t?d.includes(e)||p([...d,e]):p(d.filter(t=>t!==e))})(e.value,t)})),d.length>1&&(0,r.createElement)("div",{style:{marginTop:"12px"}},(0,r.createElement)("p",{style:{fontWeight:600,marginBottom:"4px"}},(0,i.__)("Display order","profile-builder")),d.map((e,t)=>(0,r.createElement)("div",{key:e,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",padding:"2px 0"}},(0,r.createElement)("span",null,s[e]||e),(0,r.createElement)("span",{style:{display:"flex",gap:"2px"}},(0,r.createElement)(n.Button,{isSmall:!0,variant:"tertiary","aria-label":(0,i.__)("Move up","profile-builder"),disabled:0===t,onClick:()=>u(t,-1)},"↑"),(0,r.createElement)(n.Button,{isSmall:!0,variant:"tertiary","aria-label":(0,i.__)("Move down","profile-builder"),disabled:t===d.length-1,onClick:()=>u(t,1)},"↓")))))),(0,r.createElement)(n.CheckboxControl,{label:(0,i.__)("Display on Edit Profile","profile-builder"),help:(0,i.__)("Allow users to change their role from the Edit Profile form.","profile-builder"),checked:"yes"===t["user-roles-on-edit-profile"],onChange:e=>l({"user-roles-on-edit-profile":e?"yes":""})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:f},(0,r.createElement)("select",{disabled:!0,style:{width:"100%"}},(0,r.createElement)("option",null,(0,i.__)("-- Select a role --","profile-builder")),d.map(e=>(0,r.createElement)("option",{key:e},s[e]||e))))}},7535(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>a});var r=l(1609),i=l(7723),n=l(6239);function a(e){return(0,r.createElement)(n.A,{...e,panelTitle:(0,i.__)("Select Settings","profile-builder"),previewType:"select"})}},6636(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(6239);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(r.Fragment,null,(0,r.createElement)(n.SelectControl,{label:(0,i.__)("Allow Tags","profile-builder"),value:t["select2-multiple-tags"],options:[{label:(0,i.__)("No","profile-builder"),value:"no"},{label:(0,i.__)("Yes","profile-builder"),value:"yes"}],onChange:e=>l({"select2-multiple-tags":e})}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Limit","profile-builder"),value:t["select2-multiple-limit"],onChange:e=>l({"select2-multiple-limit":e}),help:(0,i.__)("Limit the number of selections.","profile-builder")}));return(0,r.createElement)(a.A,{...e,panelTitle:(0,i.__)("Select2 (Multiple) Settings","profile-builder"),previewType:"select-multiple",defaultValueAttr:"default-options",showDefaultHelp:!0,extraControls:o})}},3124(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>a});var r=l(1609),i=l(7723),n=l(6239);function a(e){return(0,r.createElement)(n.A,{...e,panelTitle:(0,i.__)("Select2 Settings","profile-builder"),previewType:"select"})}},8037(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Textarea Settings","profile-builder")},(0,r.createElement)(n.TextareaControl,{label:(0,i.__)("Default Value","profile-builder"),value:t["default-content"],onChange:e=>l({"default-content":e})}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Row Count","profile-builder"),value:t["row-count"],onChange:e=>l({"row-count":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("textarea",{disabled:!0,style:{width:"100%"},rows:t["row-count"]}))}},8010(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Timepicker Settings","profile-builder")},(0,r.createElement)(n.SelectControl,{label:(0,i.__)("Time Format","profile-builder"),value:t["time-format"],options:[{label:(0,i.__)("12 Hours","profile-builder"),value:"12"},{label:(0,i.__)("24 Hours","profile-builder"),value:"24"}],onChange:e=>l({"time-format":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("div",{style:{display:"flex",alignItems:"center"}},(0,r.createElement)("select",{disabled:!0,style:{marginRight:"5px",padding:"5px"}},(0,r.createElement)("option",null,"12")),(0,r.createElement)("span",null,":"),(0,r.createElement)("select",{disabled:!0,style:{marginLeft:"5px",padding:"5px"}},(0,r.createElement)("option",null,"00")),"12"===t["time-format"]&&(0,r.createElement)("span",{style:{marginLeft:"5px"}},"am")))}},3013(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>c});var r=l(1609),i=l(7723),n=l(6427),a=l(5978),o=l(5705);const s=[{value:"pb_login",label:(0,i.__)("PB Login","profile-builder")},{value:"pb_register",label:(0,i.__)("PB Register","profile-builder")},{value:"pb_recover_password",label:(0,i.__)("PB Recover Password","profile-builder")}],d=[{value:"default_wp_login",label:(0,i.__)("Default WP Login","profile-builder")},{value:"default_wp_register",label:(0,i.__)("Default WP Register","profile-builder")},{value:"default_wp_recover_password",label:(0,i.__)("Default WP Recover Password","profile-builder")}];function c(e){const{attributes:t,setAttributes:l}=e,c=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Turnstile Settings","profile-builder")},(0,r.createElement)(n.SelectControl,{label:(0,i.__)("Turnstile Theme","profile-builder"),value:t.theme,options:[{label:(0,i.__)("Auto","profile-builder"),value:"auto"},{label:(0,i.__)("Light","profile-builder"),value:"light"},{label:(0,i.__)("Dark","profile-builder"),value:"dark"}],onChange:e=>l({theme:e})}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Site Key","profile-builder"),value:t["turnstile-site-key"],onChange:e=>l({"turnstile-site-key":e})}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Secret Key","profile-builder"),value:t["turnstile-secret-key"],onChange:e=>l({"turnstile-secret-key":e})}),(0,r.createElement)(n.BaseControl,{label:(0,i.__)("Display on PB forms","profile-builder")},s.map(e=>(0,r.createElement)(n.CheckboxControl,{key:e.value,label:e.label,checked:(0,o.m)(t["turnstile-pb-forms"],e.value),onChange:r=>l({"turnstile-pb-forms":(0,o.U)(t["turnstile-pb-forms"],e.value,r)})}))),(0,r.createElement)(n.BaseControl,{label:(0,i.__)("Display on default WP forms","profile-builder")},d.map(e=>(0,r.createElement)(n.CheckboxControl,{key:e.value,label:e.label,checked:(0,o.m)(t["turnstile-wp-forms"],e.value),onChange:r=>l({"turnstile-wp-forms":(0,o.U)(t["turnstile-wp-forms"],e.value,r)})}))));return(0,r.createElement)(a.A,{...e,inspectorPanels:c},(0,r.createElement)("div",{style:{padding:"10px",border:"1px dashed #ccc",backgroundColor:"#fafafa",color:"#666",fontSize:"12px"}},(0,r.createElement)("span",{className:"dashicons dashicons-shield",style:{marginRight:"5px"}}),(0,i.__)("Cloudflare Turnstile Placeholder","profile-builder")))}},276(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Upload Settings","profile-builder")},(0,r.createElement)(n.CheckboxControl,{label:(0,i.__)("Use Simple Upload","profile-builder"),help:(0,i.__)("Use a simple upload field instead of the WordPress upload.","profile-builder"),checked:"yes"===t["simple-upload"],onChange:e=>l({"simple-upload":e?"yes":""})}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Allowed Upload Extensions","profile-builder"),value:t["allowed-upload-extensions"],onChange:e=>l({"allowed-upload-extensions":e}),help:(0,i.__)("Comma-separated list (e.g. .jpg,.png,.pdf). Default .* allows all WP-permitted extensions.","profile-builder")}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Maximum File Size (MB)","profile-builder"),value:t["max-file-size"],onChange:e=>l({"max-file-size":e}),help:(0,i.__)("Leave empty to use the server upload limit.","profile-builder")}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("div",{style:{padding:"10px",border:"1px dashed #ccc",textAlign:"center"}},(0,r.createElement)(n.Button,{isSecondary:!0,disabled:!0},(0,i.__)("Select File","profile-builder"))))}},6870(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Validation Settings","profile-builder")},(0,r.createElement)(n.TextareaControl,{label:(0,i.__)("Possible Values","profile-builder"),value:t["validation-possible-values"],onChange:e=>l({"validation-possible-values":e}),help:(0,i.__)("Enter possible values separated by comma.","profile-builder")}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Custom Error Message","profile-builder"),value:t["custom-error-message"],onChange:e=>l({"custom-error-message":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("input",{type:"text",disabled:!0,style:{width:"100%"},placeholder:(0,i.__)("Validation input...","profile-builder")}))}},705(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(846);const a={fieldsKey:"billingFields",csvAttr:"woo-billing-fields",nameAttr:"woo-billing-fields-name",sortAttr:"woo-billing-fields-sort-order",panelTitle:(0,i.__)("Billing Fields","profile-builder")};function o(e){return(0,r.createElement)(n.A,{...e,config:a})}},6968(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(846);const a={fieldsKey:"shippingFields",csvAttr:"woo-shipping-fields",nameAttr:"woo-shipping-fields-name",sortAttr:"woo-shipping-fields-sort-order",panelTitle:(0,i.__)("Shipping Fields","profile-builder")};function o(e){return(0,r.createElement)(n.A,{...e,config:a})}},3750(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{attributes:t,setAttributes:l}=e,o=(0,r.createElement)(n.PanelBody,{title:(0,i.__)("WYSIWYG Settings","profile-builder")},(0,r.createElement)(n.TextareaControl,{label:(0,i.__)("Default Value","profile-builder"),value:t["default-content"],onChange:e=>l({"default-content":e})}));return(0,r.createElement)(a.A,{...e,inspectorPanels:o},(0,r.createElement)("div",{style:{border:"1px solid #ddd",borderRadius:"4px",overflow:"hidden"}},(0,r.createElement)("div",{style:{backgroundColor:"#f1f1f1",padding:"5px",borderBottom:"1px solid #ddd",display:"flex",gap:"5px"}},(0,r.createElement)("span",{className:"dashicons dashicons-editor-bold"}),(0,r.createElement)("span",{className:"dashicons dashicons-editor-italic"}),(0,r.createElement)("span",{className:"dashicons dashicons-editor-ul"}),(0,r.createElement)("span",{className:"dashicons dashicons-editor-ol"})),(0,r.createElement)("textarea",{disabled:!0,style:{width:"100%",border:"none",padding:"10px",resize:"none"},rows:5})))}},9889(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>s});var r=l(1609),i=l(7723),n=l(4715),a=l(7143),o=l(6427);function s({clientId:e}){const t=(0,n.useBlockProps)({className:"wppb-fb-msf-step-break"}),{stepFrom:l,stepTo:s,problem:d,titleFrom:c,titleTo:p}=(0,a.useSelect)(t=>{const l=t("core/block-editor"),r=t("core");let i=[];try{const e=t("core/editor").getCurrentPostType(),l=t("core/editor").getCurrentPostId(),n=r.getEditedEntityRecord("postType",e,l);n&&n.meta&&Array.isArray(n.meta.wppb_fb_msf_tab_titles)&&(i=n.meta.wppb_fb_msf_tab_titles)}catch(e){}if(!l||!e)return{stepFrom:0,stepTo:0,problem:"unmounted",titleFrom:"",titleTo:""};if(l.getBlockRootClientId(e))return{stepFrom:0,stepTo:0,problem:"nested",titleFrom:"",titleTo:""};const n=l.getBlocks(),a=n.findIndex(t=>t.clientId===e);if(a<0)return{stepFrom:0,stepTo:0,problem:"unmounted",titleFrom:"",titleTo:""};if(0===a)return{stepFrom:0,stepTo:0,problem:"leading",titleFrom:"",titleTo:""};if(a===n.length-1)return{stepFrom:0,stepTo:0,problem:"trailing",titleFrom:"",titleTo:""};const o=n[a-1];if(o&&"profile-builder/msf-step-break"===o.name)return{stepFrom:0,stepTo:0,problem:"adjacent",titleFrom:"",titleTo:""};let s=0;for(let e=0;e<=a;e++)n[e]&&"profile-builder/msf-step-break"===n[e].name&&s++;const d=s+1;return{stepFrom:s,stepTo:d,problem:null,titleFrom:i[s-1]||"",titleTo:i[d-1]||""}},[e]);if(d){const e={leading:(0,i.__)("Step Break placed before the first field has no effect. Move it between two fields.","profile-builder"),trailing:(0,i.__)("Step Break placed after the last field is ignored on save. Move it between two fields.","profile-builder"),adjacent:(0,i.__)("Two Step Breaks in a row only create one step boundary. Remove the duplicate or insert a field between them.","profile-builder"),nested:(0,i.__)("Step Break cannot be placed inside a Repeater. Move it to the top level of the form.","profile-builder"),unmounted:""};return(0,r.createElement)("div",{...t},(0,r.createElement)("div",{className:"wppb-fb-msf-step-break__divider is-inert"},(0,r.createElement)("span",{className:"wppb-fb-msf-step-break__line"}),(0,r.createElement)("span",{className:"wppb-fb-msf-step-break__core"},(0,r.createElement)("span",{className:"wppb-fb-msf-step-break__pill is-inert"},(0,i.__)("Step Break","profile-builder"))),(0,r.createElement)("span",{className:"wppb-fb-msf-step-break__line"})),(0,r.createElement)("div",{className:"wppb-fb-msf-step-break__caption"},(0,i.__)("Invalid position","profile-builder")),e[d]&&(0,r.createElement)(o.Notice,{status:"warning",isDismissible:!1},e[d]))}return(0,r.createElement)("div",{...t},(0,r.createElement)("div",{className:"wppb-fb-msf-step-break__divider"},(0,r.createElement)("span",{className:"wppb-fb-msf-step-break__line"}),(0,r.createElement)("span",{className:"wppb-fb-msf-step-break__core"},(0,r.createElement)("span",{className:"wppb-fb-msf-step-break__pill"},(0,r.createElement)("span",{className:"wppb-fb-msf-step-break__dot is-done"},l),c||(0,i.sprintf)((0,i.__)("Step %d","profile-builder"),l)),(0,r.createElement)("span",{className:"wppb-fb-msf-step-break__arrow","aria-hidden":"true"},(0,r.createElement)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none"},(0,r.createElement)("path",{d:"M5 12h14M14 6l6 6-6 6",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}))),(0,r.createElement)("span",{className:"wppb-fb-msf-step-break__pill"},(0,r.createElement)("span",{className:"wppb-fb-msf-step-break__dot"},s),p||(0,i.sprintf)((0,i.__)("Step %d","profile-builder"),s))),(0,r.createElement)("span",{className:"wppb-fb-msf-step-break__line"})),(0,r.createElement)("div",{className:"wppb-fb-msf-step-break__caption"},(0,i.__)("Step break","profile-builder")))}},2383(e,t,l){"use strict";l.r(t),l.d(t,{default:()=>o});var r=l(1609),i=l(7723),n=l(4715),a=l(7143);function o({attributes:e}){const t=e["position-context"]||"top",l=(0,n.useBlockProps)({className:`wppb-fb-progress-bar wppb-fb-progress-bar--${t}`}),{calculationMode:o,displayOptions:s}=(0,a.useSelect)(e=>{try{const t=e("core/editor").getCurrentPostType(),l=e("core/editor").getCurrentPostId(),r=e("core").getEditedEntityRecord("postType",t,l),i=r&&r.meta||{};return{calculationMode:i.wppb_fb_progress_bar_calculation_mode||"All Fields",displayOptions:i.wppb_fb_progress_bar_display_options||"Bar Only"}}catch(e){return{calculationMode:"All Fields",displayOptions:"Bar Only"}}},[]),d="Bar and Percentage Label"===s,c="top"===t?(0,i.__)("Top of Form","profile-builder"):(0,i.__)("Bottom of Form","profile-builder");return(0,r.createElement)("div",{...l},(0,r.createElement)("div",{className:"wppb-fb-progress-bar__chrome"},(0,r.createElement)("span",{className:"wppb-fb-progress-bar__badge"},(0,i.__)("Progress Bar","profile-builder")),(0,r.createElement)("span",{className:"wppb-fb-progress-bar__meta"},c," · ",o)),(0,r.createElement)("div",{className:`wppb-progress-bar-container ${t}`},(0,r.createElement)("div",{className:"wppb-progress-bar-fill",style:{width:"42%"}}),d&&(0,r.createElement)("div",{className:"wppb-progress-bar-text"},(0,r.createElement)("span",null,42,"%"))))}},2340(e,t,l){"use strict";l.d(t,{A:()=>c});var r=l(1609),i=l(4715),n=l(6427),a=l(6087),o=l(2716),s=l(6642);const d=()=>(0,r.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false"},(0,r.createElement)("path",{d:"M12 5v14M5 12h14",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}));function c({rootClientId:e,label:t}){const[l,c]=(0,a.useState)("bottom center");return(0,r.createElement)(i.Inserter,{rootClientId:e,isAppender:!0,position:l,onToggle:t=>t?(0,s.Xi)({rootClientId:e}):(0,s.CR)(),renderToggle:({onToggle:e,disabled:l})=>(0,r.createElement)(n.Button,{className:"wppb-fb-add-button",onClick:t=>{c((0,o.WW)(t.currentTarget)),e()},disabled:l,"aria-haspopup":"true","aria-label":t},(0,r.createElement)(d,null),(0,r.createElement)("span",null,t))})}},5978(e,t,l){"use strict";l.d(t,{A:()=>h});var r=l(1609),i=l(7723),n=l(4715),a=l(6427),o=l(6087),s=l(7143),d=l(2050),c=l(6036),p=l(8565),u=l(9018);function f(e,t,l){for(const r of e)r&&(r.clientId!==t&&l.add(r.name),Array.isArray(r.innerBlocks)&&r.innerBlocks.length&&f(r.innerBlocks,t,l));return l}const m=/[.*+?^${}()|[\]\\]/g,b=/^(.+)_[0-9]+$/;function h({attributes:e,setAttributes:t,name:l,clientId:h,children:g,inspectorPanels:y=null,isSelected:_=!1,hidePreview:w=!1,hideLabel:E=!1,hideDescription:v=!1}){const x=function(){const e="undefined"!=typeof window&&window.wppbFb||{},t=e.metaNames||{};return{blockToFieldType:(e.conditionalFields||{}).blockToFieldType||{},defaultFieldTypes:t.defaultFieldTypes||[],defaultMetaNames:t.defaultMetaNames||{},fixedMetaNameFieldTypes:t.fixedMetaNameFieldTypes||[],noMetaNameFieldTypes:t.noMetaNameFieldTypes||[],noOverwriteFieldTypes:t.noOverwriteFieldTypes||[],reservedNames:t.reservedNames||[],reservedSubstrings:t.reservedSubstrings||[],customFieldPrefix:t.customFieldPrefix||"custom_field_",maxLength:t.maxLength||255,uploadFieldType:t.uploadFieldType||"Upload"}}(),k=x.blockToFieldType[l]||"",C=x.defaultFieldTypes.includes(k),S=x.fixedMetaNameFieldTypes.includes(k),T=!x.noMetaNameFieldTypes.includes(k),N=T&&!C&&!S,A=T&&!C&&!x.noOverwriteFieldTypes.includes(k),F=(0,s.useSelect)(e=>{if(!_)return[];const t=e("core/block-editor");if(!t)return[];const r=f(t.getBlocks(),h,new Set);return function(e,t){const l="undefined"!=typeof window&&window.wppbFb||{},r=l.uniqueness||{},i=Array.isArray(r.exclusiveBlockGroups)?r.exclusiveBlockGroups:[],n=l.conditionalFields&&l.conditionalFields.blockToFieldType||{},a=[];for(const l of i)if(l.includes(e))for(const r of l)r!==e&&t.has(r)&&a.push(n[r]||r);return a}(l,r)},[l,h,_]),P=!!_,{id:B,"field-title":M,"meta-name":I,description:j,required:D,"overwrite-existing":O}=e,L=(0,s.useSelect)(e=>{const t=e("core/block-editor");if(!t||!h)return!1;const l=t.getBlockParents(h);for(const e of l){const l=t.getBlock(e);if(l&&l.name===u.V)return!0}return!1},[h]),R=(0,s.useSelect)(t=>{if(!_)return null;if(!N)return null;const l=e["meta-name"];if(!l)return null;const r=t("core/block-editor");if(!r)return null;const{subMetaNames:i,allMetaNames:n}=function(e,t,l){const r=[],i=[],n=(e,a)=>{for(const o of e){if(!o||o.clientId===t)continue;const e=o.attributes&&o.attributes["meta-name"];if(e&&(i.push(e),a&&r.push(e)),Array.isArray(o.innerBlocks)&&o.innerBlocks.length){const e=a||o.name===l;n(o.innerBlocks,e)}}};return n(e,!1),{subMetaNames:r,allMetaNames:i}}(r.getBlocks(),h,u.V);return function(e,t,l,r){if("string"!=typeof e||""===e)return null;const i=e.match(b);if(i){const e=i[1];for(const t of l)if(t&&t===e)return{direction:"forward",conflictName:t}}if(t)for(const t of r){if(!t)continue;const l=t.match(b);if(l&&l[1]===e)return{direction:"reverse",conflictName:t}}return null}(l,L,i,n)},[h,e["meta-name"],N,L,_]),V=(0,o.useRef)(void 0),W=new RegExp("^"+x.customFieldPrefix.replace(m,"\\$&")+"\\d+$"),q=N&&"Yes"!==O&&V.current&&V.current!==I&&W.test(I||"")?V.current:null;(0,c.C)(B,t);const $=(0,o.useRef)(I);(0,o.useEffect)(()=>{void 0===$.current&&void 0!==I&&($.current=I)},[I]);const z=N?function(e,t,l){if("string"!=typeof e&&(e=""),""===e)return null;if(/\s/.test(e))return(0,i.__)("Meta key cannot contain whitespace.","profile-builder");if(t===l.uploadFieldType&&!/^[a-z0-9_\-]+$/.test(e))return(0,i.__)("Upload fields require lowercase letters, digits, underscores or hyphens only.","profile-builder");if(e.length>l.maxLength)return(0,i.sprintf)(/* translators: %d: maximum number of characters */ /* translators: %d: maximum number of characters */
2 -(0,i.__)("Meta key is too long (max %d characters).","profile-builder"),l.maxLength);if(l.reservedNames.includes(e))return(0,i.__)("This meta key is reserved by WordPress and cannot be used.","profile-builder");for(const t of l.reservedSubstrings)if(e.toLowerCase().includes(t))return(0,i.sprintf)(/* translators: %s: reserved substring */ /* translators: %s: reserved substring */
3 -(0,i.__)('"%s" is reserved and cannot appear in a meta key.',"profile-builder"),t);return null}(I,k,x):null,H=N&&B>0&&void 0!==$.current&&I!==$.current&&""!==$.current,J=N?(0,i.sprintf)(/* translators: %s: example custom_field_? */ /* translators: %s: example custom_field_? */
4 -(0,i.__)("auto-generated on save (e.g. %s?)","profile-builder"),x.customFieldPrefix):"";return(0,r.createElement)("div",{...(0,n.useBlockProps)({className:"wppb-fb-field-block"})},P&&(0,r.createElement)(p.h,null,(0,r.createElement)(a.PanelBody,{title:(0,i.__)("Field Settings","profile-builder")},(0,r.createElement)(a.TextControl,{label:(0,i.__)("Field Title","profile-builder"),value:M,onChange:e=>t({"field-title":e})}),T&&N&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.TextControl,{label:(0,i.__)("Meta Name","profile-builder"),value:I||"",onChange:e=>{V.current=e,t({"meta-name":e})},placeholder:J,help:z||(0,i.__)("The wp_usermeta key used to store this field value. Leave blank to auto-generate.","profile-builder"),className:z?"wppb-fb-meta-name-invalid":void 0}),H&&(0,r.createElement)(a.Notice,{status:"warning",isDismissible:!1},(0,i.__)("Renaming the meta key on a saved field leaves user data under the old key. Existing entries will not be migrated automatically.","profile-builder")),R&&(0,r.createElement)(a.Notice,{status:"warning",isDismissible:!1},"forward"===R.direction?(0,i.sprintf)(/* translators: 1: typed meta name, 2: conflicting sub-field meta name */ /* translators: 1: typed meta name, 2: conflicting sub-field meta name */
5 -(0,i.__)('"%1$s" matches the runtime pattern of Repeater sub-field "%2$s" (which writes to keys like %2$s_1, %2$s_2 …). On save the server will store this field as "%1$s_pb" to avoid clobbering that sub-field\'s data.',"profile-builder"),I,R.conflictName):(0,i.sprintf)(/* translators: 1: typed sub-field meta name, 2: conflicting other meta name */ /* translators: 1: typed sub-field meta name, 2: conflicting other meta name */
6 -(0,i.__)('Sub-field "%1$s" would write to keys like %1$s_1, %1$s_2 … which conflicts with existing meta key "%2$s". On save the server will store this sub-field as "%1$s_pb" to avoid clobbering "%2$s".',"profile-builder"),I,R.conflictName)),q&&!R&&(0,r.createElement)(a.Notice,{status:"warning",isDismissible:!1},(0,i.sprintf)(/* translators: 1: the (duplicate) meta key the user entered, 2: the auto-allocated meta key it was replaced with */ /* translators: 1: the (duplicate) meta key the user entered, 2: the auto-allocated meta key it was replaced with */
7 -(0,i.__)('The meta key "%1$s" is already used by another field, so it was replaced with "%2$s" to keep keys unique. Enable "Overwrite existing user meta" below to intentionally share this key.',"profile-builder"),q,I))),T&&!N&&(0,r.createElement)(a.TextControl,{label:(0,i.__)("Meta Name","profile-builder"),value:I||x.defaultMetaNames[k]||"",disabled:!0,help:C?(0,i.__)("Default field — meta key is fixed and cannot be changed.","profile-builder"):(0,i.__)("This field type uses a fixed meta key that cannot be changed.","profile-builder"),onChange:()=>{}}),A&&(0,r.createElement)(a.ToggleControl,{label:(0,i.__)("Overwrite existing user meta","profile-builder"),checked:"Yes"===O,onChange:e=>t({"overwrite-existing":e?"Yes":"No"}),help:(0,i.__)("Allow saving even if the meta key already exists in wp_usermeta. Use with care — incoming submissions will overwrite stored values.","profile-builder")}),void 0!==j&&!v&&(0,r.createElement)(a.TextareaControl,{label:(0,i.__)("Description","profile-builder"),value:j,onChange:e=>t({description:e})}),void 0!==D&&(0,r.createElement)(a.SelectControl,{label:(0,i.__)("Required","profile-builder"),value:D,options:[{label:(0,i.__)("No","profile-builder"),value:"No"},{label:(0,i.__)("Yes","profile-builder"),value:"Yes"}],onChange:e=>t({required:e})})),y,(0,r.createElement)(d.A,{attributes:e,setAttributes:t,insideRepeater:L})),!E&&(0,r.createElement)("div",{className:"wppb-fb-field-label"},M,"Yes"===D&&(0,r.createElement)("span",{className:"wppb-fb-field-required"},"*")),F.length>0&&(0,r.createElement)(a.Notice,{status:"warning",isDismissible:!1},(0,i.sprintf)(/* translators: %s: conflicting field type name */ /* translators: %s: conflicting field type name */
8 -(0,i.__)("This field cannot coexist with %s. The form will only keep one of them on save — remove the other to choose which.","profile-builder"),F.join(", "))),!w&&(0,r.createElement)("div",{className:"wppb-fb-field-preview"},g||(0,r.createElement)("input",{type:"text",disabled:!0,style:{width:"100%"}})),j&&(0,r.createElement)("div",{className:"wppb-fb-field-desc"},j),(0,r.createElement)("div",{className:"wppb-fb-field-meta"},k&&(0,r.createElement)("span",{className:"wppb-fb-field-tag"},k),(0,r.createElement)("span",{className:"wppb-fb-field-num"},B?(0,i.sprintf)(/* translators: %s: field id */ /* translators: %s: field id */(0,i.__)("Field #%s","profile-builder"),B):(0,i.__)("Field #…","profile-builder"))))}},2050(e,t,l){"use strict";l.d(t,{A:()=>x});var r=l(1609),i=l(7723),n=l(6427),a=l(7143),o=l(6087),s=l(7962);const d=["is","is not","less than","more than"],c=["less than","more than"],p=()=>(0,r.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false"},(0,r.createElement)("path",{d:"M12 5v14M5 12h14",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}));function u(){const e=("undefined"!=typeof window&&window.wppbFb||{}).conditionalFields||{};return{blockToFieldType:e.blockToFieldType||{},notAllowedAsSource:e.notAllowedAsSource||[],numericFieldTypes:e.numericFieldTypes||[],restRoot:e.restRoot||"",restNonce:e.restNonce||""}}function f(e,t,l=new Map){for(const r of e){const e=t.blockToFieldType[r.name],i=r.attributes?.id;e&&i&&l.set(i,{title:r.attributes["field-title"]||`(field #${i})`,fieldType:e,attributes:r.attributes}),r.innerBlocks&&r.innerBlocks.length&&f(r.innerBlocks,t,l)}return l}function m({sourceField:e,value:t,onChange:l}){const a=u(),[s,d]=(0,o.useState)(null),[c,p]=(0,o.useState)(!1),f=e&&["Select (CPT)","Select (Taxonomy)","Select (User Role)","Select (Country)","Select (Currency)"].includes(e.fieldType),m=f?e.fieldType+"|"+(e.attributes?.cpt||e.attributes?.taxonomy||e.attributes?.["user-roles"]||""):null;if((0,o.useEffect)(()=>{if(!f||!m||!a.restRoot)return void d(null);let t=!1;p(!0);const l=new URLSearchParams({field_type:e.fieldType});return e.attributes?.cpt&&l.set("cpt",e.attributes.cpt),e.attributes?.taxonomy&&l.set("taxonomy",e.attributes.taxonomy),e.attributes?.["user-roles"]&&l.set("user_roles",e.attributes["user-roles"]),fetch(a.restRoot+"?"+l.toString(),{credentials:"same-origin",headers:{"X-WP-Nonce":a.restNonce}}).then(e=>e.json()).then(e=>{t||d(e&&e.values?e:{values:[],labels:[]})}).catch(()=>{t||d({values:[],labels:[]})}).finally(()=>{t||p(!1)}),()=>{t=!0}},[m]),!e)return(0,r.createElement)(n.TextControl,{label:(0,i.__)("Value","profile-builder"),value:t,onChange:l});let b=[],h=[];const g=e.attributes?.options;if("string"==typeof g&&""!==g.trim()){b=g.split(",").map(e=>e.trim());const t=e.attributes?.labels;h="string"==typeof t&&""!==t.trim()?t.split(",").map(e=>e.trim()):b}const y=s?.values||[],_=s?.labels||[];if(f){if(c)return(0,r.createElement)(n.TextControl,{label:(0,i.__)("Value","profile-builder"),value:t,disabled:!0});if(0===y.length)return(0,r.createElement)(n.TextControl,{label:(0,i.__)("Value","profile-builder"),value:t,onChange:l,help:(0,i.__)("No options resolved from server. Type the value/ID directly.","profile-builder")});const e=[{label:(0,i.__)("Choose…","profile-builder"),value:""},...y.map((e,t)=>({value:e,label:_[t]||e}))];return(0,r.createElement)(n.SelectControl,{label:(0,i.__)("Value","profile-builder"),value:t,options:e,onChange:l})}if(b.length>0){const e=[{label:(0,i.__)("Choose…","profile-builder"),value:""},...b.map((e,t)=>({value:e,label:h[t]||e}))];return(0,r.createElement)(n.SelectControl,{label:(0,i.__)("Value","profile-builder"),value:t,options:e,onChange:l})}return(0,r.createElement)(n.TextControl,{label:(0,i.__)("Value","profile-builder"),value:t,onChange:l})}function b({attributes:e,setAttributes:t}){const l=u(),b="yes"===e["conditional-logic-enabled"],h=(0,o.useMemo)(()=>function(e){if(!e)return{action_type:"show",logic_type:"all",rules:[]};let t;try{t=JSON.parse(e)}catch(e){return{action_type:"show",logic_type:"all",rules:[]}}let l=t.rules;return l&&!Array.isArray(l)&&(l=Object.keys(l).map(e=>l[e])),{action_type:"hide"===t.action_type?"hide":"show",logic_type:"any"===t.logic_type?"any":"all",rules:Array.isArray(l)?l:[]}}(e["conditional-logic"]),[e["conditional-logic"]]),g=(0,a.useSelect)(e=>f(e("core/block-editor").getBlocks(),l),[]),y=(0,s.Qt)(),_=(0,o.useMemo)(()=>function(e,t,l,r){const i=new Set,n=[],a=(e,t)=>e&&e!==r&&t&&!l.notAllowedAsSource.includes(t);t.forEach((e,t)=>{a(t,e.fieldType)&&(i.add(t),n.push({id:t,title:e.title,fieldType:e.fieldType,attributes:e.attributes,inForm:!0}))});for(const t of e){const e=t.id;i.has(e)||a(e,t.fieldType)&&n.push({id:e,title:t.title||`(field #${e})`,fieldType:t.fieldType,attributes:t.attributes||{},inForm:!1})}return n}(y,g,l,e.id),[y,g,e.id]),w=(0,o.useMemo)(()=>{const e={};return _.forEach(t=>{e[t.id]=t}),e},[_]),E=(0,o.useMemo)(()=>{const e=(e,t)=>e.title.localeCompare(t.title);return{inForm:_.filter(e=>e.inForm).sort(e),offForm:_.filter(e=>!e.inForm).sort(e)}},[_]);function v(e){t({"conditional-logic":JSON.stringify(e)})}const x=h.rules;function k(e,t){v({...h,rules:x.map((l,r)=>r===e?{...l,...t}:l)})}return(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Conditional Logic","profile-builder"),initialOpen:!1},(0,r.createElement)(n.ToggleControl,{label:(0,i.__)("Enable conditional logic","profile-builder"),checked:b,onChange:function(l){t(l?{"conditional-logic-enabled":"yes","conditional-logic":e["conditional-logic"]||JSON.stringify({action_type:"show",logic_type:"all",rules:[]})}:{"conditional-logic-enabled":""})}}),b&&(0,r.createElement)(r.Fragment,null,!e.id&&(0,r.createElement)(n.Notice,{status:"warning",isDismissible:!1},(0,i.__)("Save the form once so this field gets an ID before referencing it from other rules.","profile-builder")),(0,r.createElement)(n.Flex,null,(0,r.createElement)(n.FlexItem,null,(0,r.createElement)(n.SelectControl,{label:(0,i.__)("Action","profile-builder"),value:h.action_type,options:[{label:(0,i.__)("Show","profile-builder"),value:"show"},{label:(0,i.__)("Hide","profile-builder"),value:"hide"}],onChange:function(e){v({...h,action_type:e})}})),(0,r.createElement)(n.FlexItem,null,(0,r.createElement)(n.SelectControl,{label:(0,i.__)("Match","profile-builder"),value:h.logic_type,options:[{label:(0,i.__)("All rules","profile-builder"),value:"all"},{label:(0,i.__)("Any rule","profile-builder"),value:"any"}],onChange:function(e){v({...h,logic_type:e})}}))),0===_.length&&(0,r.createElement)(n.Notice,{status:"info",isDismissible:!1},(0,i.__)("No fields available as rule sources yet. Add a field to this form or to the global field list first.","profile-builder")),0===x.length&&_.length>0&&(0,r.createElement)("p",{style:{margin:"8px 0 0",color:"#757575"}},(0,i.__)("No rules yet. Add a rule to control when this field is shown.","profile-builder")),x.map((e,t)=>{const a=w[Number(e.field)],o=a&&l.numericFieldTypes.includes(a.fieldType),s=e.field?Number(e.field):0,p=!(!s||a&&a.inForm),u=e=>`${e.title} [${e.fieldType}]`,f=E.inForm,b=E.offForm,g=[{label:(0,i.__)("Choose…","profile-builder"),value:""}];f.length&&(b.length&&g.push({value:"__hdr_in_form__",label:"── "+(0,i.__)("In this form","profile-builder")+" ──",disabled:!0}),f.forEach(e=>g.push({value:String(e.id),label:u(e)}))),b.length&&(g.push({value:"__hdr_off_form__",label:"── "+(0,i.__)("Not in this form","profile-builder")+" ──",disabled:!0}),b.forEach(e=>g.push({value:String(e.id),label:u(e)}))),s&&!a&&(g.push({value:"__hdr_missing__",label:"── "+(0,i.__)("Missing field","profile-builder")+" ──",disabled:!0}),g.push({value:String(s),label:`(${(0,i.__)("missing field","profile-builder")} #${s})`}));const y={is:(0,i.__)("is","profile-builder"),"is not":(0,i.__)("is not","profile-builder"),"less than":(0,i.__)("less than","profile-builder"),"more than":(0,i.__)("more than","profile-builder")},_=d.map(e=>({label:y[e]||e,value:e,disabled:c.includes(e)&&a&&!o}));return(0,r.createElement)("div",{key:t,style:{border:"1px solid #ddd",padding:"8px",marginTop:"8px",borderRadius:"3px"}},(0,r.createElement)(n.SelectControl,{label:(0,i.__)("Field","profile-builder"),value:e.field?String(e.field):"",options:g,onChange:e=>k(t,{field:e?String(Number(e)):"",value:""})}),p&&(0,r.createElement)(n.Notice,{status:"warning",isDismissible:!1},a?(0,i.__)("This rule references a field that is not in this form, so the rule will never trigger for the form.","profile-builder"):(0,i.__)("This rule references a field that no longer exists. Pick a different field or remove the rule.","profile-builder")),(0,r.createElement)(n.SelectControl,{label:(0,i.__)("Operator","profile-builder"),value:e.operator||"is",options:_,onChange:e=>k(t,{operator:e})}),(0,r.createElement)(m,{sourceField:a,value:e.value||"",onChange:e=>k(t,{value:e})}),(0,r.createElement)(n.Flex,{justify:"flex-end",style:{marginTop:"8px"}},(0,r.createElement)(n.Button,{variant:"tertiary",size:"small",isDestructive:!0,onClick:()=>function(e){v({...h,rules:x.filter((t,l)=>l!==e)})}(t)},(0,i.__)("Remove","profile-builder"))))}),(0,r.createElement)(n.Button,{variant:"secondary",icon:(0,r.createElement)(p,null),onClick:function(){v({...h,rules:[...x,{field:"",operator:"is",value:""}]})},style:{marginTop:"12px"}},(0,i.__)("Add rule","profile-builder"))))}function h(e){return e?e.split(",").map(e=>e.trim()).filter(Boolean):[]}function g(e,t){return h(e).includes(t)}function y(e,t,l){if("all"===t)return"all";let r=h(e).filter(e=>"all"!==e);return l&&!r.includes(t)&&r.push(t),l||(r=r.filter(e=>e!==t)),0===r.length?"all":r.join(", ")}function _({attributes:e,setAttributes:t}){const l="undefined"!=typeof window&&window.wppbFb&&window.wppbFb.fieldVisibility||null;if(!l)return null;const a=e.visibility||"all",o=e["user-role-visibility"]||"all",s=e["location-visibility"]||"all",d=l.userRoles||{},c=l.locations||{},p=l.visibilityOptions||{},u=Object.keys(p).map(e=>({value:e,label:p[e]}));return(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Field Visibility","profile-builder"),initialOpen:!1},(0,r.createElement)(n.SelectControl,{label:(0,i.__)("Visibility","profile-builder"),value:a,options:u,onChange:e=>t({visibility:e}),help:(0,i.__)("Admin Only: visible only for administrators. User Locked: visible for everyone, but only administrators can edit.","profile-builder")}),(0,r.createElement)("p",{style:{marginTop:"1em",marginBottom:"0.25em",fontWeight:600}},(0,i.__)("User Role Visibility","profile-builder")),(0,r.createElement)(n.CheckboxControl,{label:(0,i.__)("All","profile-builder"),checked:g(o,"all"),onChange:e=>t({"user-role-visibility":y(o,"all",e)})}),Object.keys(d).map(e=>(0,r.createElement)(n.CheckboxControl,{key:e,label:d[e],checked:g(o,e),onChange:l=>t({"user-role-visibility":y(o,e,l)})})),(0,r.createElement)("p",{style:{color:"#757575",fontSize:"12px",marginTop:"0.25em"}},(0,i.__)("Select which user roles see this field.","profile-builder")),(0,r.createElement)("p",{style:{marginTop:"1em",marginBottom:"0.25em",fontWeight:600}},(0,i.__)("Location Visibility","profile-builder")),(0,r.createElement)(n.CheckboxControl,{label:(0,i.__)("All","profile-builder"),checked:g(s,"all"),onChange:e=>t({"location-visibility":y(s,"all",e)})}),Object.keys(c).map(e=>(0,r.createElement)(n.CheckboxControl,{key:e,label:c[e],checked:g(s,e),onChange:l=>t({"location-visibility":y(s,e,l)})})),(0,r.createElement)("p",{style:{color:"#757575",fontSize:"12px",marginTop:"0.25em"}},(0,i.__)("Select the locations you wish the field to appear.","profile-builder")))}function w({attributes:e,setAttributes:t}){const l="yes"===e["edit-profile-approved-by-admin"];return(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Admin Approval","profile-builder"),initialOpen:!1},(0,r.createElement)(n.ToggleControl,{label:(0,i.__)("Requires admin approval on Edit Profile","profile-builder"),checked:l,onChange:e=>t({"edit-profile-approved-by-admin":e?"yes":""}),help:(0,i.__)("When a non-admin user edits their profile, this field's value is held for admin review instead of being saved directly. Affects every form this field appears in.","profile-builder")}))}function E({attributes:e,setAttributes:t,insideRepeater:l=!1}){const a="undefined"!=typeof window&&window.wppbFb||{},o=Array.isArray(a.extraControls)?a.extraControls:[],s=new Set,d=[];for(let t=o.length-1;t>=0;t--){const r=o[t];r&&r.attribute&&!s.has(r.attribute)&&Object.prototype.hasOwnProperty.call(e,r.attribute)&&(l&&r.hideInsideRepeater||(s.add(r.attribute),d.unshift(r)))}return 0===d.length?null:(0,r.createElement)(n.PanelBody,{title:(0,i.__)("Additional Settings","profile-builder"),initialOpen:!1},d.map(l=>{if("toggle"===l.control){const i=null!=l.onValue?l.onValue:"Yes",a=null!=l.offValue?l.offValue:"No";return(0,r.createElement)(n.ToggleControl,{key:l.attribute,label:l.label||l.attribute,help:l.help||void 0,checked:e[l.attribute]===i,onChange:e=>t({[l.attribute]:e?i:a})})}return(0,r.createElement)(n.TextControl,{key:l.attribute,label:l.label||l.attribute,help:l.help||void 0,type:"number"===l.control?"number":"text",value:null!=e[l.attribute]?e[l.attribute]:"",onChange:e=>t({[l.attribute]:e})})}))}const v=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function x({attributes:e,setAttributes:t,insideRepeater:l=!1}){const i=!1!==window.wppbFb?.conditionalFields?.available,n=v(e,"conditional-logic-enabled")&&!l&&i,a=v(e,"visibility")&&!l,o=v(e,"edit-profile-approved-by-admin");return(0,r.createElement)(r.Fragment,null,n&&(0,r.createElement)(b,{attributes:e,setAttributes:t}),a&&(0,r.createElement)(_,{attributes:e,setAttributes:t}),o&&(0,r.createElement)(w,{attributes:e,setAttributes:t}),(0,r.createElement)(E,{attributes:e,setAttributes:t,insideRepeater:l}))}},8565(e,t,l){"use strict";l.d(t,{h:()=>a,k:()=>o});var r=l(6427);const{Fill:i,Slot:n}=(0,r.createSlotFill)("WppbFbFieldSettings"),a=i,o=n},6239(e,t,l){"use strict";l.d(t,{A:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o({panelTitle:e,previewType:t="select",defaultValueAttr:l="default-option",showDefaultHelp:o=!1,extraControls:s=null,...d}){const{attributes:c,setAttributes:p}=d,u=(0,r.createElement)(n.PanelBody,{title:e},(0,r.createElement)(n.TextareaControl,{label:(0,i.__)("Options","profile-builder"),value:c.options,onChange:e=>p({options:e}),help:(0,i.__)("Enter options separated by comma.","profile-builder")}),(0,r.createElement)(n.TextareaControl,{label:(0,i.__)("Labels","profile-builder"),value:c.labels,onChange:e=>p({labels:e}),help:(0,i.__)("Enter labels separated by comma. If empty, options will be used.","profile-builder")}),(0,r.createElement)(n.TextControl,{label:(0,i.__)("Default Value","profile-builder"),value:c[l],onChange:e=>p({[l]:e}),help:o?(0,i.__)("Enter default selected options separated by comma.","profile-builder"):void 0}),s),f=c.options?c.options.split(","):[],m=c.labels?c.labels.split(","):[];return(0,r.createElement)(a.A,{...d,inspectorPanels:u},function(e,t,l){const n=t.length>0?t:null;if("radio"===e||"checkbox"===e){const t="radio"===e?"wppb-fb-radios":"wppb-fb-checkboxes";return(0,r.createElement)("div",{className:t},n?n.map((t,i)=>(0,r.createElement)("div",{key:i,style:{marginBottom:"5px"}},(0,r.createElement)("input",{type:e,disabled:!0}),(0,r.createElement)("label",{style:{marginLeft:"5px"}},l[i]?l[i].trim():t.trim()))):(0,r.createElement)("div",null,(0,i.__)("(no options defined)","profile-builder")))}const a="select-multiple"===e;return(0,r.createElement)("select",{disabled:!0,multiple:a,style:a?{width:"100%",height:"100px"}:{width:"100%"}},n?n.map((e,t)=>(0,r.createElement)("option",{key:t,value:e.trim()},l[t]?l[t].trim():e.trim())):(0,r.createElement)("option",null,(0,i.__)("(no options defined)","profile-builder")))}(t,f,m))}},2533(e,t,l){"use strict";l.d(t,{A:()=>o});var r=l(1609),i=l(7723),n=l(6427),a=l(5978);function o(e){const{config:t,...l}=e,{attributes:o,setAttributes:s}=e,d="undefined"!=typeof window&&window.wppbFb||{},c=t&&d[t.bridgeKey]||{},p=Array.isArray(c.lists)?c.lists:[],u=c.settingsUrl||"",f=(e,t)=>s({[e]:t?"yes":""}),m=(0,r.createElement)(n.PanelBody,{title:`${t.serviceLabel} ${(0,i.__)("Settings","profile-builder")}`},p.length>0?(0,r.createElement)(n.SelectControl,{label:t.listLabel,value:o[t.listAttr]||"",options:[{value:"",label:(0,i.__)("Select a list…","profile-builder")},...p],onChange:e=>s({[t.listAttr]:e}),help:(0,i.__)("The list new subscribers are added to.","profile-builder")}):(0,r.createElement)(n.Notice,{status:"warning",isDismissible:!1},(0,i.__)("No lists available — configure the integration in its settings page, then reopen this form.","profile-builder"),u&&" ",u&&(0,r.createElement)(n.ExternalLink,{href:u},`${t.serviceLabel} ${(0,i.__)("settings","profile-builder")}`)),t.defaultCheckedAttr&&(0,r.createElement)(n.ToggleControl,{label:(0,i.__)("Checked by default (register forms)","profile-builder"),checked:"yes"===o[t.defaultCheckedAttr],onChange:e=>f(t.defaultCheckedAttr,e),help:(0,i.__)("Pre-check the subscribe box on registration forms.","profile-builder")}),(0,r.createElement)(n.ToggleControl,{label:(0,i.__)("Hide on Edit Profile forms","profile-builder"),checked:"yes"===o[t.hideFieldAttr],onChange:e=>f(t.hideFieldAttr,e)}));return(0,r.createElement)(a.A,{...l,inspectorPanels:m,hideDescription:!0},(0,r.createElement)("label",{style:{display:"flex",alignItems:"center",gap:"6px"}},(0,r.createElement)("input",{type:"checkbox",disabled:!0,readOnly:!0,checked:!!t.defaultCheckedAttr&&"yes"===o[t.defaultCheckedAttr]}),(0,r.createElement)("span",null,o["field-title"])))}},846(e,t,l){"use strict";l.d(t,{A:()=>u});var r=l(1609),i=l(7723),n=l(6427),a=l(6087),o=l(5978);const s="required_";function d(e){return e?e.split(",").map(e=>e.trim()).filter(Boolean):[]}function c(e,t,l){const r=[];for(const i of e)t.has(i)&&(r.push(i),l.has(i)&&r.push(s+i));return r.join(",")}function p(e){return e.length?e.join(", "):""}function u(e){const{config:t,...l}=e,{attributes:u,setAttributes:f}=e,m=(0,a.useRef)(null),[b,h]=(0,a.useState)(null),g=("undefined"!=typeof window&&window.wppbFb||{}).woocommerce||{},y=Array.isArray(g[t.fieldsKey])?g[t.fieldsKey]:[],_=y.map(e=>e.key),w=e=>y.find(t=>t.key===e),E=_.find(e=>e.endsWith("_country")),v=_.find(e=>e.endsWith("_state")),x=function(e,t){const l=new Set,r=[];for(const i of d(e))0!==i.indexOf(s)&&t.includes(i)&&!l.has(i)&&(l.add(i),r.push(i));for(const e of t)l.has(e)||r.push(e);return r}(u[t.sortAttr]||"",_),k=u[t.csvAttr]||"",C=""===k?{included:new Set(_),required:new Set(y.filter(e=>"Yes"===e.required).map(e=>e.key))}:function(e,t){const l=new Set,r=new Set;for(const i of d(e))0===i.indexOf(s)?l.add(i.slice(9)):t.includes(i)&&r.add(i);return{included:r,required:l}}(k,_);let S={};try{S=JSON.parse(u[t.nameAttr]||"{}")||{}}catch(e){S={}}const T=(e,l,r)=>f({[t.csvAttr]:c(x,e,l),[t.nameAttr]:JSON.stringify(r)}),N=e=>t=>{m.current=e,t.stopPropagation();try{t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",e)}catch(e){}const l=t.currentTarget.closest(".wppb-fb-woo-fields__row");l&&t.dataTransfer.setDragImage&&t.dataTransfer.setDragImage(l,10,10)},A=()=>{m.current=null,h(null)},F=e=>t=>{null!=m.current&&(t.preventDefault(),t.dataTransfer.dropEffect="move",b!==e&&h(e))},P=(0,r.createElement)(n.PanelBody,{title:t.panelTitle},0===y.length?(0,r.createElement)("p",null,(0,i.__)("WooCommerce field list unavailable — activate the WooCommerce integration.","profile-builder")):(0,r.createElement)("div",{className:"wppb-fb-woo-fields"},(0,r.createElement)("div",{className:"wppb-fb-woo-fields__head"},(0,r.createElement)("span",{className:"wppb-fb-woo-fields__head-name"},(0,i.__)("Field Name","profile-builder")),(0,r.createElement)("span",{className:"wppb-fb-woo-fields__head-req"},(0,i.__)("Required","profile-builder"))),x.map(e=>{const l=w(e);if(!l)return null;const n=(e=>C.included.has(e))(e),a=["wppb-fb-woo-fields__row",n?"is-included":"",b===e?"is-drag-over":""].filter(Boolean).join(" ");return(0,r.createElement)("div",{key:e,className:a,onDragOver:F(e),onDrop:(o=e,e=>{e.preventDefault(),e.stopPropagation();const l=m.current;if(m.current=null,h(null),!l||l===o)return;const r=x.slice(),i=r.indexOf(l);if(i<0)return;r.splice(i,1);const n=r.indexOf(o);var a;n<0||(r.splice(n,0,l),a=r,f({[t.sortAttr]:p(a),[t.csvAttr]:c(a,C.included,C.required)}))})},(0,r.createElement)("span",{className:"wppb-fb-woo-fields__handle",draggable:!0,onDragStart:N(e),onDragEnd:A,role:"button","aria-label":(0,i.__)("Drag to reorder","profile-builder"),title:(0,i.__)("Drag to reorder","profile-builder")},(0,r.createElement)("span",{className:"dashicons dashicons-menu","aria-hidden":"true"})),(0,r.createElement)("input",{type:"checkbox",className:"wppb-fb-woo-fields__include",checked:n,"aria-label":l.label,onChange:t=>((e,t)=>{const l=new Set(C.included),r=new Set(C.required);t?l.add(e):(l.delete(e),r.delete(e),e===E&&v&&(l.delete(v),r.delete(v))),T(l,r,S)})(e,t.target.checked)}),(0,r.createElement)("div",{className:"wppb-fb-woo-fields__name"},(0,r.createElement)("input",{type:"text",value:null!=S[e]?S[e]:"",placeholder:l.label,disabled:!n,title:(0,i.__)("Click to rename","profile-builder"),onChange:t=>((e,t)=>{const l={...S};t?l[e]=t:delete l[e],T(C.included,C.required,l)})(e,t.target.value)}),(0,r.createElement)("span",{className:"dashicons dashicons-edit","aria-hidden":"true"})),(0,r.createElement)("span",{className:"wppb-fb-woo-fields__req-cell"},(0,r.createElement)("input",{type:"checkbox",className:"wppb-fb-woo-fields__req",checked:C.required.has(e),disabled:!n,"aria-label":`${l.label} — ${(0,i.__)("required","profile-builder")}`,onChange:t=>((e,t)=>{const l=new Set(C.required);t?l.add(e):l.delete(e),T(C.included,l,S)})(e,t.target.checked)})));var o}))),B=x.filter(e=>C.included.has(e));return(0,r.createElement)(o.A,{...l,inspectorPanels:P,hideDescription:!0},(0,r.createElement)("div",{className:"wppb-fb-woo-address"},B.length>0?B.map(e=>{const t=w(e),l=S[e]||(t?t.label:e);return(0,r.createElement)("div",{className:"wppb-fb-woo-address__field",key:e},(0,r.createElement)("label",{className:"wppb-fb-woo-address__label"},l,C.required.has(e)&&(0,r.createElement)("span",{className:"wppb-fb-field-required"},"*")),(0,r.createElement)("input",{type:"text",disabled:!0}))}):(0,r.createElement)("div",null,(0,i.__)("(no fields selected)","profile-builder"))))}},5705(e,t,l){"use strict";function r(e,t,l){const r=e?e.split(",").map(e=>e.trim()).filter(Boolean):[],i=r.indexOf(t);return l&&-1===i&&r.push(t),l||-1===i||r.splice(i,1),r.join(",")}function i(e,t){return!!e&&e.split(",").map(e=>e.trim()).includes(t)}l.d(t,{U:()=>r,m:()=>i})},6036(e,t,l){"use strict";l.d(t,{C:()=>o});var r=l(6087),i=l(7143);const n=new Set;function a(e,t=[]){for(const l of e){const e=l.attributes?.id;"number"==typeof e&&e>0&&t.push(e),l.innerBlocks&&l.innerBlocks.length&&a(l.innerBlocks,t)}return t}function o(e,t){const l=(0,r.useRef)(!1),o=(0,r.useRef)(0);(0,r.useEffect)(()=>{if(e>0)return;if(l.current)return;l.current=!0;const r="undefined"!=typeof window&&window.wppbFb&&window.wppbFb.allocate||{};if(!r.restRoot||!r.restNonce)return;const s=a((0,i.select)("core/block-editor").getBlocks()),d=Array.from(new Set([...s,...n]));function c(){o.current+=1,o.current<3&&(l.current=!1)}fetch(r.restRoot,{method:"POST",credentials:"same-origin",headers:{"X-WP-Nonce":r.restNonce,"Content-Type":"application/json"},body:JSON.stringify({claimed:d})}).then(e=>e.ok?e.json():null).then(e=>{const l=e&&"number"==typeof e.id?e.id:0;if(l>0)return n.add(l),void t({id:l});c()}).catch(c)},[e])}},5851(e,t,l){"use strict";const r=window.wp.hooks,i=()=>"undefined"!=typeof window&&window.wppbFb||{},n=(e,t)=>{const l=e.attributes||{},r={...l};let i=!1;for(const[e,n]of Object.entries(t))Object.prototype.hasOwnProperty.call(l,e)||(r[e]=n,i=!0);return i?{...e,attributes:r}:e},a=[(e,t)=>"string"==typeof t&&t.startsWith("profile-builder/")?"undefined"!=typeof window&&!0===window.wppbFbIsFormScreen?e:{...e,supports:{...e.supports||{},inserter:!1}}:e,(e,t)=>{const l=i().uniqueness||{};return(Array.isArray(l.uniqueBlocks)?l.uniqueBlocks:[]).includes(t)?{...e,supports:{...e.supports||{},multiple:!1}}:e},(e,t)=>"string"==typeof t&&t.startsWith("profile-builder/")?{...e,supports:{...e.supports||{},customClassName:!1,anchor:!1,lock:!1}}:e,(e,t)=>{if("string"!=typeof t||!t.startsWith("profile-builder/field-"))return e;const l=i().conditionalFields||{},r=l.blockToFieldType||{},a=Array.isArray(l.disabledFieldTypes)?l.disabledFieldTypes:[],o=r[t];return!o||a.includes(o)?e:n(e,{"conditional-logic-enabled":{type:"string",default:""},"conditional-logic":{type:"string",default:""}})},(e,t)=>{if("string"!=typeof t||!t.startsWith("profile-builder/field-"))return e;const l=i(),r=l.metaNames||{},a=l.conditionalFields&&l.conditionalFields.blockToFieldType||{},o=Array.isArray(r.defaultFieldTypes)?r.defaultFieldTypes:[],s=Array.isArray(r.noMetaNameFieldTypes)?r.noMetaNameFieldTypes:[],d=a[t];return!d||o.includes(d)||s.includes(d)?e:n(e,{"overwrite-existing":{type:"string",default:"No"}})},(e,t)=>{if("string"!=typeof t||!t.startsWith("profile-builder/field-"))return e;const l=i(),r=l.extraAttributes||null;if(!r)return e;const a=(l.conditionalFields&&l.conditionalFields.blockToFieldType||{})[t];if(!a)return e;const o=r[a];return o&&"object"==typeof o?n(e,o):e}];(0,r.addFilter)("blocks.registerBlockType","profile-builder/field-block-schema",(e,t)=>a.reduce((e,l)=>l(e,t),e));var o=l(1609),s=l(7723),d=l(4715),c=l(6427),p=l(7143);function u(e,t={}){const l=t.select||p.select,r=t.dispatch||p.dispatch,i=(Array.isArray(e)?e:[e]).filter(Boolean);if(!i.length)return;const n=l("core/block-editor"),{removeBlocks:a,insertBlock:o}=r("core/block-editor");if(!n)return;const d=i.map(e=>({block:n.getBlock(e),rootClientId:n.getBlockRootClientId(e)||"",index:n.getBlockIndex(e)})).filter(e=>!!e.block).sort((e,t)=>e.index-t.index);a(i);const c=r("core/notices");if(!c||!d.length)return;const u=t.message||(0,s.__)("Field removed from this form.","profile-builder");c.createInfoNotice(u,{type:"snackbar",actions:[{label:(0,s.__)("Undo","profile-builder"),onClick:()=>{d.forEach(({block:e,index:t,rootClientId:l})=>{o(e,t,l||void 0)})}}]})}const f=new Set("undefined"!=typeof window&&window.wppbFb&&Array.isArray(window.wppbFb.mandatoryTypes)&&window.wppbFb.mandatoryTypes.length?window.wppbFb.mandatoryTypes:["Default - Username","Default - E-mail","Default - Password"]),m=()=>(0,o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false"},(0,o.createElement)("path",{style:{fill:"currentColor"},d:"M9 3h6v2h5v2H4V5h5V3zm-3 6h2v9H6V9zm5 0h2v9h-2V9zm5 0h2v9h-2V9zM5 7h14l-1 13a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1L5 7z"}));function b({clientId:e}){return(0,p.useSelect)(t=>t("core/block-editor").canRemoveBlock(e),[e])?(0,o.createElement)(d.BlockControls,null,(0,o.createElement)(c.ToolbarGroup,null,(0,o.createElement)(c.ToolbarButton,{icon:(0,o.createElement)(m,null),label:(0,s.__)("Remove field","profile-builder"),onClick:()=>u([e])}))):null}(0,r.addFilter)("editor.BlockEdit","profile-builder/block-toolbar-delete",e=>t=>{const{name:l,isSelected:r,clientId:i}=t,n="string"==typeof l&&l.startsWith("profile-builder/")&&r&&!function(e){const t="undefined"!=typeof window&&window.wppbFb||{},l=t.conditionalFields&&t.conditionalFields.blockToFieldType||{};return f.has(l[e])}(l);return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(e,{...t}),n&&(0,o.createElement)(b,{clientId:i}))});const h={width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",style:{fill:"none",stroke:"currentColor"}},g={style:{fill:"currentColor",stroke:"none"}},y={"profile-builder/field-default-name-heading":(0,o.createElement)("svg",{...h},(0,o.createElement)("circle",{cx:"6.3",cy:"7.3",r:"2.3"}),(0,o.createElement)("path",{d:"M3 12.8c0-1.9 1.5-3 3.3-3s3.3 1.1 3.3 3"}),(0,o.createElement)("line",{x1:"11.5",y1:"8",x2:"21",y2:"8"}),(0,o.createElement)("line",{x1:"3",y1:"18.5",x2:"21",y2:"18.5"})),"profile-builder/field-default-contact-info-heading":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"3",y:"6",width:"7.6",height:"5.6",rx:"1.2"}),(0,o.createElement)("path",{d:"M3.4 6.7 6.8 9.1 10.2 6.7"}),(0,o.createElement)("line",{x1:"12.4",y1:"8.8",x2:"21",y2:"8.8"}),(0,o.createElement)("line",{x1:"3",y1:"18.5",x2:"21",y2:"18.5"})),"profile-builder/field-default-about-yourself-heading":(0,o.createElement)("svg",{...h},(0,o.createElement)("line",{x1:"3",y1:"6.6",x2:"9.5",y2:"6.6"}),(0,o.createElement)("line",{x1:"3",y1:"9.8",x2:"9.5",y2:"9.8"}),(0,o.createElement)("line",{x1:"12.4",y1:"8.2",x2:"21",y2:"8.2"}),(0,o.createElement)("line",{x1:"3",y1:"18.5",x2:"21",y2:"18.5"})),"profile-builder/field-default-username":(0,o.createElement)("svg",{...h},(0,o.createElement)("circle",{cx:"12",cy:"12",r:"9"}),(0,o.createElement)("circle",{cx:"12",cy:"9.6",r:"2.8"}),(0,o.createElement)("path",{d:"M6.6 18.4c.8-2.3 2.9-3.6 5.4-3.6s4.6 1.3 5.4 3.6"})),"profile-builder/field-default-first-name":(0,o.createElement)("svg",{...h},(0,o.createElement)("circle",{cx:"12",cy:"7.3",r:"3"}),(0,o.createElement)("path",{d:"M6 14.7c0-2.6 2.7-4.2 6-4.2s6 1.6 6 4.2"}),(0,o.createElement)("line",{x1:"7",y1:"19.6",x2:"17",y2:"19.6"})),"profile-builder/field-default-last-name":(0,o.createElement)("svg",{...h},(0,o.createElement)("circle",{cx:"12",cy:"6.8",r:"2.9"}),(0,o.createElement)("path",{d:"M6.4 13.6c0-2.5 2.5-4 5.6-4s5.6 1.5 5.6 4"}),(0,o.createElement)("line",{x1:"7",y1:"18.2",x2:"17",y2:"18.2"}),(0,o.createElement)("line",{x1:"9",y1:"21",x2:"15",y2:"21"})),"profile-builder/field-default-nickname":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M9 7.5C6.8 7.5 5 9.3 5 11.5 5 13.4 6.3 14.5 8 14.5c1 0 1.9-.7 1.9-1.8 0-1-.8-1.7-1.8-1.7-.3 0-.5 0-.7.1.2-1.4 1.3-2.5 2.6-2.6z"}),(0,o.createElement)("path",{d:"M18 7.5c-2.2 0-4 1.8-4 4 0 1.9 1.3 3 3 3 1 0 1.9-.7 1.9-1.8 0-1-.8-1.7-1.8-1.7-.3 0-.5 0-.7.1.2-1.4 1.3-2.5 2.6-2.6z"})),"profile-builder/field-default-email":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),(0,o.createElement)("path",{d:"M4 7.5 12 13 20 7.5"})),"profile-builder/field-default-website":(0,o.createElement)("svg",{...h},(0,o.createElement)("circle",{cx:"12",cy:"12",r:"8.5"}),(0,o.createElement)("line",{x1:"3.5",y1:"12",x2:"20.5",y2:"12"}),(0,o.createElement)("path",{d:"M12 3.5c2.6 2.4 2.6 14.6 0 17"}),(0,o.createElement)("path",{d:"M12 3.5c-2.6 2.4-2.6 14.6 0 17"})),"profile-builder/field-default-password":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"5",y:"10",width:"14",height:"10.5",rx:"2.3"}),(0,o.createElement)("path",{d:"M8 10V7.5a4 4 0 0 1 8 0V10"}),(0,o.createElement)("circle",{cx:"12",cy:"14.5",r:"1.2",...g}),(0,o.createElement)("line",{x1:"12",y1:"15.4",x2:"12",y2:"17.6"})),"profile-builder/field-default-repeat-password":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"5",y:"10",width:"14",height:"10.5",rx:"2.3"}),(0,o.createElement)("path",{d:"M8 10V7.5a4 4 0 0 1 8 0V10"}),(0,o.createElement)("path",{d:"M9 15.2 11.2 17.4 15.2 13"})),"profile-builder/field-default-biographical-info":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M12 6c-1.8-1.3-4-2-6.5-2H3.5v13H6c2.4 0 4.5.7 6 2"}),(0,o.createElement)("path",{d:"M12 6c1.8-1.3 4-2 6.5-2h1.5v13H18c-2.4 0-4.5.7-6 2"}),(0,o.createElement)("line",{x1:"12",y1:"6",x2:"12",y2:"19"})),"profile-builder/field-default-display-name":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2.3"}),(0,o.createElement)("circle",{cx:"8",cy:"10",r:"2"}),(0,o.createElement)("path",{d:"M5 16c0-1.7 1.3-3 3-3s3 1.3 3 3"}),(0,o.createElement)("line",{x1:"13.5",y1:"9.5",x2:"18",y2:"9.5"}),(0,o.createElement)("line",{x1:"13.5",y1:"13",x2:"18",y2:"13"})),"profile-builder/field-default-aim":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M4 4.5h16a1.5 1.5 0 0 1 1.5 1.5v7.5A1.5 1.5 0 0 1 20 15H10l-4.5 4v-4H4a1.5 1.5 0 0 1-1.5-1.5V6A1.5 1.5 0 0 1 4 4.5z"}),(0,o.createElement)("circle",{cx:"8.5",cy:"9.7",r:"1",...g}),(0,o.createElement)("circle",{cx:"12",cy:"9.7",r:"1",...g}),(0,o.createElement)("circle",{cx:"15.5",cy:"9.7",r:"1",...g})),"profile-builder/field-default-yim":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M4 4.5h16a1.5 1.5 0 0 1 1.5 1.5v7.5A1.5 1.5 0 0 1 20 15H10l-4.5 4v-4H4a1.5 1.5 0 0 1-1.5-1.5V6A1.5 1.5 0 0 1 4 4.5z"}),(0,o.createElement)("circle",{cx:"9.6",cy:"8.3",r:"0.85",...g}),(0,o.createElement)("circle",{cx:"14.4",cy:"8.3",r:"0.85",...g}),(0,o.createElement)("path",{d:"M9.3 10.6a3.2 3.2 0 0 0 5.4 0"})),"profile-builder/field-default-jabber":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M4 4.5h16a1.5 1.5 0 0 1 1.5 1.5v7.5A1.5 1.5 0 0 1 20 15H10l-4.5 4v-4H4a1.5 1.5 0 0 1-1.5-1.5V6A1.5 1.5 0 0 1 4 4.5z"}),(0,o.createElement)("circle",{cx:"11.8",cy:"9.5",r:"1.7"}),(0,o.createElement)("path",{d:"M13.5 9.5c0 1 .1 2 1.2 2 1 0 1.4-1 1.2-2.3-.3-1.8-2-2.7-3.6-2.4"})),"profile-builder/field-input":(0,o.createElement)("svg",{...h},(0,o.createElement)("line",{x1:"4",y1:"8",x2:"20",y2:"8"}),(0,o.createElement)("line",{x1:"4",y1:"12",x2:"20",y2:"12"}),(0,o.createElement)("line",{x1:"4",y1:"16",x2:"13",y2:"16"})),"profile-builder/field-textarea":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),(0,o.createElement)("line",{x1:"6",y1:"9",x2:"18",y2:"9"}),(0,o.createElement)("line",{x1:"6",y1:"12",x2:"18",y2:"12"}),(0,o.createElement)("line",{x1:"6",y1:"15",x2:"13",y2:"15"})),"profile-builder/field-select":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2.5"}),(0,o.createElement)("line",{x1:"6.5",y1:"12",x2:"11.5",y2:"12"}),(0,o.createElement)("path",{d:"M15 10.8 16.8 12.6 18.6 10.8"})),"profile-builder/field-select-multiple":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M3.3 7 4.5 8.2 6.8 5.8"}),(0,o.createElement)("path",{d:"M3.3 12 4.5 13.2 6.8 10.8"}),(0,o.createElement)("path",{d:"M3.3 17 4.5 18.2 6.8 15.8"}),(0,o.createElement)("line",{x1:"9.5",y1:"7",x2:"20",y2:"7"}),(0,o.createElement)("line",{x1:"9.5",y1:"12",x2:"20",y2:"12"}),(0,o.createElement)("line",{x1:"9.5",y1:"17",x2:"20",y2:"17"})),"profile-builder/field-checkbox":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"4",y:"4",width:"16",height:"16",rx:"3.5"}),(0,o.createElement)("path",{d:"M8 12 10.6 14.6 16.2 9"})),"profile-builder/field-radio":(0,o.createElement)("svg",{...h},(0,o.createElement)("circle",{cx:"6.5",cy:"8",r:"2.7"}),(0,o.createElement)("circle",{cx:"6.5",cy:"8",r:"1.1",...g}),(0,o.createElement)("line",{x1:"11",y1:"8",x2:"20",y2:"8"}),(0,o.createElement)("circle",{cx:"6.5",cy:"16",r:"2.7"}),(0,o.createElement)("line",{x1:"11",y1:"16",x2:"20",y2:"16"})),"profile-builder/field-heading":(0,o.createElement)("svg",{...h},(0,o.createElement)("line",{x1:"6",y1:"5",x2:"6",y2:"19"}),(0,o.createElement)("line",{x1:"18",y1:"5",x2:"18",y2:"19"}),(0,o.createElement)("line",{x1:"6",y1:"12",x2:"18",y2:"12"})),"profile-builder/field-avatar":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"3.5",y:"3.5",width:"17",height:"17",rx:"3.5"}),(0,o.createElement)("circle",{cx:"12",cy:"10",r:"2.8"}),(0,o.createElement)("path",{d:"M6.6 18c.8-2.4 3-3.8 5.4-3.8s4.6 1.4 5.4 3.8"})),"profile-builder/field-number":(0,o.createElement)("svg",{...h},(0,o.createElement)("line",{x1:"9.5",y1:"4",x2:"7.5",y2:"20"}),(0,o.createElement)("line",{x1:"16.5",y1:"4",x2:"14.5",y2:"20"}),(0,o.createElement)("line",{x1:"5",y1:"9",x2:"19",y2:"9"}),(0,o.createElement)("line",{x1:"4",y1:"15",x2:"18",y2:"15"})),"profile-builder/field-input-hidden":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M4 12s3.4-5.5 8-5.5 8 5.5 8 5.5-3.4 5.5-8 5.5c-1 0-2-.2-2.9-.5"}),(0,o.createElement)("circle",{cx:"12",cy:"12",r:"2.4"}),(0,o.createElement)("line",{x1:"4.5",y1:"4.5",x2:"19.5",y2:"19.5"})),"profile-builder/field-language":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M3 13 6 5l3 8"}),(0,o.createElement)("line",{x1:"4",y1:"10.5",x2:"8",y2:"10.5"}),(0,o.createElement)("line",{x1:"13",y1:"6",x2:"20.5",y2:"6"}),(0,o.createElement)("path",{d:"M16.7 6v1.8c0 3-1.6 5.2-3.7 6.4"}),(0,o.createElement)("path",{d:"M14.8 9.6c.6 2.1 2.2 3.7 5.4 4.8"})),"profile-builder/field-wysiwyg":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),(0,o.createElement)("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),(0,o.createElement)("line",{x1:"6",y1:"6.5",x2:"8.5",y2:"6.5"}),(0,o.createElement)("line",{x1:"11",y1:"6.5",x2:"13.5",y2:"6.5"}),(0,o.createElement)("line",{x1:"6",y1:"13",x2:"18",y2:"13"}),(0,o.createElement)("line",{x1:"6",y1:"16.5",x2:"14",y2:"16.5"})),"profile-builder/field-html":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M8.5 8 4.5 12 8.5 16"}),(0,o.createElement)("path",{d:"M15.5 8 19.5 12 15.5 16"}),(0,o.createElement)("line",{x1:"13.4",y1:"6",x2:"10.6",y2:"18"})),"profile-builder/field-upload":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M12 15V4"}),(0,o.createElement)("path",{d:"M7.5 8.5 12 4 16.5 8.5"}),(0,o.createElement)("path",{d:"M5 15v3a1.5 1.5 0 0 0 1.5 1.5h11A1.5 1.5 0 0 0 19 18v-3"})),"profile-builder/field-international-telephone-input":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M3.6 4.4h2.3l1.2 3-1.5 1.1a8.5 8.5 0 0 0 3.9 3.9l1.1-1.5 3 1.2v2.3a1.6 1.6 0 0 1-1.6 1.6A11.5 11.5 0 0 1 2 6 1.6 1.6 0 0 1 3.6 4.4z"}),(0,o.createElement)("circle",{cx:"17.5",cy:"6.5",r:"3.6"}),(0,o.createElement)("line",{x1:"13.9",y1:"6.5",x2:"21.1",y2:"6.5"}),(0,o.createElement)("path",{d:"M17.5 2.9c1.4 1.1 1.4 6.1 0 7.2"})),"profile-builder/field-select2":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2.5"}),(0,o.createElement)("circle",{cx:"8.8",cy:"11.4",r:"2.3"}),(0,o.createElement)("line",{x1:"10.6",y1:"13.2",x2:"12.4",y2:"15"}),(0,o.createElement)("path",{d:"M15.4 10.8 17.1 12.5 18.8 10.8"})),"profile-builder/field-phone":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M6.5 3.5h2.8l1.4 4-2 1.5a11 11 0 0 0 4.8 4.8l1.5-2 4 1.4V20a2 2 0 0 1-2 2A15.5 15.5 0 0 1 4 6.5a2 2 0 0 1 2-2z"})),"profile-builder/field-select-country":(0,o.createElement)("svg",{...h},(0,o.createElement)("line",{x1:"6",y1:"3",x2:"6",y2:"21"}),(0,o.createElement)("path",{d:"M6 4h12l-2.6 3.3L18 10.6H6z"})),"profile-builder/field-select-timezone":(0,o.createElement)("svg",{...h},(0,o.createElement)("circle",{cx:"12",cy:"12",r:"8.3"}),(0,o.createElement)("line",{x1:"3.7",y1:"12",x2:"20.3",y2:"12"}),(0,o.createElement)("path",{d:"M12 7v5l3.4 2"})),"profile-builder/field-select-currency":(0,o.createElement)("svg",{...h},(0,o.createElement)("circle",{cx:"12",cy:"12",r:"8.3"}),(0,o.createElement)("path",{d:"M14.6 9.4c-.7-.8-1.7-1.2-2.7-1.2-1.5 0-2.6.8-2.6 2 0 1.3 1.1 1.8 2.6 2.1 1.5.3 2.7.8 2.7 2.1 0 1.2-1.1 2-2.7 2-1.1 0-2.1-.4-2.8-1.2"}),(0,o.createElement)("line",{x1:"12",y1:"6",x2:"12",y2:"18"})),"profile-builder/field-select-cpt":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M7 3h7l4 4v13a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"}),(0,o.createElement)("path",{d:"M13.5 3v4h4"}),(0,o.createElement)("line",{x1:"9",y1:"13",x2:"15",y2:"13"}),(0,o.createElement)("line",{x1:"9",y1:"16.5",x2:"13",y2:"16.5"})),"profile-builder/field-select-taxonomy":(0,o.createElement)("svg",{...h},(0,o.createElement)("circle",{cx:"5.5",cy:"12",r:"2"}),(0,o.createElement)("circle",{cx:"18.5",cy:"6.5",r:"2"}),(0,o.createElement)("circle",{cx:"18.5",cy:"17.5",r:"2"}),(0,o.createElement)("path",{d:"M7.5 12h4.5a1.5 1.5 0 0 0 1.5-1.5V8a1.5 1.5 0 0 1 1.5-1.5h1.5"}),(0,o.createElement)("path",{d:"M7.5 12h4.5a1.5 1.5 0 0 1 1.5 1.5V16a1.5 1.5 0 0 0 1.5 1.5h1.5"})),"profile-builder/field-checkbox-toa":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"5",y:"3",width:"14",height:"18",rx:"2"}),(0,o.createElement)("line",{x1:"8",y1:"7.5",x2:"16",y2:"7.5"}),(0,o.createElement)("line",{x1:"8",y1:"10.5",x2:"16",y2:"10.5"}),(0,o.createElement)("line",{x1:"8",y1:"13.5",x2:"12.5",y2:"13.5"}),(0,o.createElement)("path",{d:"M8 17.3 9.4 18.7 13 15.2"})),"profile-builder/field-datepicker":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"4",y:"5.5",width:"16",height:"14.5",rx:"2.5"}),(0,o.createElement)("line",{x1:"4",y1:"9.5",x2:"20",y2:"9.5"}),(0,o.createElement)("line",{x1:"8.5",y1:"3.5",x2:"8.5",y2:"7"}),(0,o.createElement)("line",{x1:"15.5",y1:"3.5",x2:"15.5",y2:"7"}),(0,o.createElement)("circle",{cx:"9",cy:"14",r:"1.2",...g})),"profile-builder/field-timepicker":(0,o.createElement)("svg",{...h},(0,o.createElement)("circle",{cx:"12",cy:"12",r:"8.3"}),(0,o.createElement)("path",{d:"M12 7v5l3.5 2"})),"profile-builder/field-colorpicker":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M12 3.5c3.2 3.8 5.2 6.4 5.2 9.2a5.2 5.2 0 0 1-10.4 0c0-2.8 2-5.4 5.2-9.2z"})),"profile-builder/field-validation":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"5",y:"4.5",width:"14",height:"16.5",rx:"2"}),(0,o.createElement)("rect",{x:"9",y:"2.5",width:"6",height:"3.6",rx:"1"}),(0,o.createElement)("path",{d:"M8.5 13 10.5 15 14.5 10.5"})),"profile-builder/field-map":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M12 21c4.5-4.3 7-7.6 7-11a7 7 0 1 0-14 0c0 3.4 2.5 6.7 7 11z"}),(0,o.createElement)("circle",{cx:"12",cy:"10",r:"2.5"})),"profile-builder/field-additional-map":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M9.5 18.6c3.4-3.3 5.3-5.8 5.3-8.4a5.3 5.3 0 1 0-10.6 0c0 2.6 1.9 5.1 5.3 8.4z"}),(0,o.createElement)("circle",{cx:"9.5",cy:"10.2",r:"1.9"}),(0,o.createElement)("line",{x1:"18.5",y1:"4",x2:"18.5",y2:"9"}),(0,o.createElement)("line",{x1:"16",y1:"6.5",x2:"21",y2:"6.5"})),"profile-builder/field-recaptcha":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M19.2 12a7.2 7.2 0 1 1-2.1-5.1"}),(0,o.createElement)("path",{d:"M19.5 5v3.2h-3.2"}),(0,o.createElement)("path",{d:"M9 12.2 11 14.2 15 10"})),"profile-builder/field-turnstile":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M7 17h9.6a3.5 3.5 0 0 0 .4-7 5 5 0 0 0-9.7-1.4A4 4 0 0 0 7 17z"}),(0,o.createElement)("path",{d:"M10 12.3 11.6 13.9 15 10.5"})),"profile-builder/field-select-user-role":(0,o.createElement)("svg",{...h},(0,o.createElement)("circle",{cx:"9",cy:"8",r:"3"}),(0,o.createElement)("path",{d:"M3.5 18c0-3 2.5-5 5.5-5 .8 0 1.6.1 2.3.4"}),(0,o.createElement)("path",{d:"M17.5 11l3 1.2v2.2c0 1.9-1.3 3.4-3 3.9-1.7-.5-3-2-3-3.9v-2.2z"})),"profile-builder/field-default-blog-details":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),(0,o.createElement)("line",{x1:"3",y1:"8",x2:"21",y2:"8"}),(0,o.createElement)("circle",{cx:"5.6",cy:"6",r:"0.6",...g}),(0,o.createElement)("line",{x1:"6",y1:"12",x2:"18",y2:"12"}),(0,o.createElement)("line",{x1:"6",y1:"15.5",x2:"14",y2:"15.5"})),"profile-builder/field-mailchimp-subscribe":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"3",y:"6",width:"14",height:"11",rx:"1.8"}),(0,o.createElement)("path",{d:"M3.4 7 10 11.5 16.6 7"}),(0,o.createElement)("path",{d:"M19 3 19.9 4.8 21.9 5.1 20.4 6.5 20.8 8.5 19 7.5 17.2 8.5 17.6 6.5 16.1 5.1 18.1 4.8z"})),"profile-builder/field-mailpoet-subscribe":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"3",y:"6",width:"14",height:"11",rx:"1.8"}),(0,o.createElement)("path",{d:"M3.4 7 10 11.5 16.6 7"}),(0,o.createElement)("path",{d:"M21.5 3.5c-3 0-5 1.8-5 4 0 .7.2 1.2.6 1.7 2-1 3.8-3 4.4-5.7z"}),(0,o.createElement)("path",{d:"M17.2 9c.8-1.3 2.1-2.6 4.3-4.5"})),"profile-builder/field-campaign-monitor-subscribe":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"3",y:"6",width:"14",height:"11",rx:"1.8"}),(0,o.createElement)("path",{d:"M3.4 7 10 11.5 16.6 7"}),(0,o.createElement)("line",{x1:"16.8",y1:"8",x2:"16.8",y2:"4"}),(0,o.createElement)("line",{x1:"19.4",y1:"8",x2:"19.4",y2:"3"}),(0,o.createElement)("line",{x1:"22",y1:"8",x2:"22",y2:"5.5"})),"profile-builder/field-woo-billing-address":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),(0,o.createElement)("line",{x1:"3",y1:"10",x2:"21",y2:"10"}),(0,o.createElement)("line",{x1:"6",y1:"14",x2:"11",y2:"14"})),"profile-builder/field-woo-shipping-address":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M12 3 20 7v9l-8 4-8-4V7z"}),(0,o.createElement)("path",{d:"M4 7 12 11 20 7"}),(0,o.createElement)("line",{x1:"12",y1:"11",x2:"12",y2:"20"})),"profile-builder/field-email":(0,o.createElement)("svg",{...h},(0,o.createElement)("circle",{cx:"12",cy:"12",r:"3.2"}),(0,o.createElement)("path",{d:"M15.2 12c0 1.1.1 3 2 3 1.7 0 2.6-1.6 2.6-3.8 0-4.2-3.1-6.7-6.9-6.7a8 8 0 1 0 4.4 14.7"})),"profile-builder/field-email-confirmation":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"2.5",y:"5.5",width:"14",height:"11",rx:"2"}),(0,o.createElement)("path",{d:"M3 6.5 9.5 11 16 6.5"}),(0,o.createElement)("circle",{cx:"18",cy:"16",r:"4"}),(0,o.createElement)("path",{d:"M16.3 16 17.5 17.2 19.8 14.8"})),"profile-builder/field-gdpr-checkbox":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M12 3 19 5.5v5c0 4.5-3 8-7 9.5-4-1.5-7-5-7-9.5v-5z"}),(0,o.createElement)("path",{d:"M8.8 12 11 14.2 15.2 9.8"})),"profile-builder/field-gdpr-communication-preferences":(0,o.createElement)("svg",{...h},(0,o.createElement)("line",{x1:"4",y1:"7",x2:"20",y2:"7"}),(0,o.createElement)("circle",{cx:"9",cy:"7",r:"2.2",...g}),(0,o.createElement)("line",{x1:"4",y1:"12",x2:"20",y2:"12"}),(0,o.createElement)("circle",{cx:"15",cy:"12",r:"2.2",...g}),(0,o.createElement)("line",{x1:"4",y1:"17",x2:"20",y2:"17"}),(0,o.createElement)("circle",{cx:"11",cy:"17",r:"2.2",...g})),"profile-builder/field-pms-subscription-plans":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"3.5",y:"13",width:"4.4",height:"6",rx:"1"}),(0,o.createElement)("rect",{x:"9.8",y:"9",width:"4.4",height:"10",rx:"1"}),(0,o.createElement)("rect",{x:"16.1",y:"5",width:"4.4",height:"14",rx:"1",...g})),"profile-builder/field-pms-billing-fields":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M6 4h12v16l-2-1.3-2 1.3-2-1.3-2 1.3-2-1.3-2 1.3z"}),(0,o.createElement)("line",{x1:"9",y1:"8.5",x2:"15",y2:"8.5"}),(0,o.createElement)("line",{x1:"9",y1:"12",x2:"15",y2:"12"})),"profile-builder/field-gdpr-delete":(0,o.createElement)("svg",{...h},(0,o.createElement)("line",{x1:"5",y1:"7",x2:"19",y2:"7"}),(0,o.createElement)("path",{d:"M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2"}),(0,o.createElement)("path",{d:"M6.5 7l.8 12a1.5 1.5 0 0 0 1.5 1.4h6.4a1.5 1.5 0 0 0 1.5-1.4L17.5 7"}),(0,o.createElement)("line",{x1:"10",y1:"10.5",x2:"10",y2:"16.5"}),(0,o.createElement)("line",{x1:"14",y1:"10.5",x2:"14",y2:"16.5"})),"profile-builder/field-honeypot":(0,o.createElement)("svg",{...h},(0,o.createElement)("ellipse",{cx:"12",cy:"13.5",rx:"4.3",ry:"5.5"}),(0,o.createElement)("line",{x1:"12",y1:"8.5",x2:"12",y2:"19"}),(0,o.createElement)("circle",{cx:"12",cy:"6.4",r:"2"}),(0,o.createElement)("line",{x1:"10.6",y1:"5",x2:"9.2",y2:"3.6"}),(0,o.createElement)("line",{x1:"13.4",y1:"5",x2:"14.8",y2:"3.6"}),(0,o.createElement)("line",{x1:"7.8",y1:"11",x2:"4.6",y2:"9.5"}),(0,o.createElement)("line",{x1:"7.5",y1:"13.5",x2:"4",y2:"13.5"}),(0,o.createElement)("line",{x1:"7.8",y1:"16",x2:"4.6",y2:"17.5"}),(0,o.createElement)("line",{x1:"16.2",y1:"11",x2:"19.4",y2:"9.5"}),(0,o.createElement)("line",{x1:"16.5",y1:"13.5",x2:"20",y2:"13.5"}),(0,o.createElement)("line",{x1:"16.2",y1:"16",x2:"19.4",y2:"17.5"})),"profile-builder/field-input-url":(0,o.createElement)("svg",{...h},(0,o.createElement)("path",{d:"M9.4 14.6 14.6 9.4"}),(0,o.createElement)("path",{d:"M10.7 6.7 12.7 4.8a4.65 4.65 0 0 1 6.58 6.58l-1.97 1.97"}),(0,o.createElement)("path",{d:"M13.3 17.3 11.3 19.2a4.65 4.65 0 0 1-6.58-6.58l1.97-1.97"})),"profile-builder/field-select2-multiple":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2.2"}),(0,o.createElement)("rect",{x:"5.5",y:"6.6",width:"13",height:"4.2",rx:"2.1"}),(0,o.createElement)("rect",{x:"5.5",y:"13.2",width:"8",height:"4.2",rx:"2.1"})),"profile-builder/field-repeater":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"8",y:"3.5",width:"12.5",height:"12.5",rx:"2.2"}),(0,o.createElement)("path",{d:"M16 16v2.3a2.2 2.2 0 0 1-2.2 2.2H5.7a2.2 2.2 0 0 1-2.2-2.2V10.2A2.2 2.2 0 0 1 5.7 8H8"})),"profile-builder/msf-step-break":(0,o.createElement)("svg",{...h},(0,o.createElement)("circle",{cx:"4.6",cy:"12",r:"2.1"}),(0,o.createElement)("line",{x1:"7",y1:"12",x2:"10",y2:"12"}),(0,o.createElement)("circle",{cx:"12",cy:"12",r:"2.1",...g}),(0,o.createElement)("line",{x1:"14",y1:"12",x2:"17",y2:"12"}),(0,o.createElement)("circle",{cx:"19.4",cy:"12",r:"2.1"})),"profile-builder/ffc-columns":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"3.5",y:"5",width:"7",height:"14",rx:"1.5"}),(0,o.createElement)("rect",{x:"13.5",y:"5",width:"7",height:"14",rx:"1.5"})),"profile-builder/progress-bar":(0,o.createElement)("svg",{...h},(0,o.createElement)("rect",{x:"3",y:"9.5",width:"18",height:"5",rx:"2.5"}),(0,o.createElement)("rect",{x:"5",y:"11.1",width:"7",height:"1.8",rx:"0.9",...g}))},_={viewBox:"0 0 240 110",xmlns:"http://www.w3.org/2000/svg",strokeLinecap:"round",strokeLinejoin:"round",style:{fill:"none",stroke:"currentColor",display:"block",width:"224px",height:"103px",maxWidth:"none"}},w={fill:"currentColor",stroke:"none"},E={fontFamily:"sans-serif",fontSize:15,fontWeight:600,style:w},v={fontFamily:"sans-serif",fontSize:13,opacity:.5,style:w},x={fontFamily:"sans-serif",fontSize:13,opacity:.8,style:w},k={fontFamily:"sans-serif",fontSize:11,opacity:.65,style:w},C=e=>(0,o.createElement)("text",{x:"16",y:"27",...E},e),S=(e,t)=>(0,o.createElement)("rect",{x:"16",y:e,width:"208",height:t,rx:"7",strokeWidth:"1.6"}),T=(0,o.createElement)("path",{d:"M198 59 205 66 212 59",strokeWidth:"1.8"}),N=(0,o.createElement)("g",{strokeWidth:"1.4"},(0,o.createElement)("rect",{x:"28",y:"56",width:"17",height:"12",rx:"2"}),(0,o.createElement)("path",{d:"M28.6 57 36.5 63 44.4 57"})),A=(0,o.createElement)("g",{strokeWidth:"1.4"},(0,o.createElement)("rect",{x:"30",y:"60",width:"13",height:"9",rx:"1.6"}),(0,o.createElement)("path",{d:"M32.6 60V58a3.9 3.9 0 0 1 7.8 0v2"})),F=(0,o.createElement)("g",{strokeWidth:"1.4"},(0,o.createElement)("circle",{cx:"37",cy:"62",r:"7"}),(0,o.createElement)("path",{d:"M30 62h14"}),(0,o.createElement)("path",{d:"M37 55c2.4 2 2.4 12 0 14"}),(0,o.createElement)("path",{d:"M37 55c-2.4 2-2.4 12 0 14"})),P=(0,o.createElement)("path",{strokeWidth:"1.4",d:"M31 55h2.1l1 3-1.3 1a7 7 0 0 0 3.2 3.2l1-1.3 3 1v2.1a1.3 1.3 0 0 1-1.3 1.3A9.5 9.5 0 0 1 29.7 56.3 1.3 1.3 0 0 1 31 55z"}),B=(0,o.createElement)("g",{strokeWidth:"1.4"},(0,o.createElement)("circle",{cx:"37",cy:"62",r:"2.9"}),(0,o.createElement)("path",{d:"M39.9 62c0 1.5 0 3 1.7 3 1.4 0 2.1-1.5 2.1-3.4 0-3.6-2.8-5.6-6-5.6a6.4 6.4 0 1 0 3.7 11.7"})),M=(0,o.createElement)("g",{strokeWidth:"1.4"},(0,o.createElement)("path",{d:"M34 65 41 58"}),(0,o.createElement)("path",{d:"M35 56.6 36.5 55a3 3 0 0 1 4.2 4.2L39 61"}),(0,o.createElement)("path",{d:"M40 67.4 38.5 69a3 3 0 0 1-4.2-4.2L36 63"})),I=(0,o.createElement)("g",{strokeWidth:"1.4"},(0,o.createElement)("circle",{cx:"37",cy:"59.4",r:"2.6"}),(0,o.createElement)("path",{d:"M32.4 69c0-2.5 2-4 4.6-4s4.6 1.5 4.6 4"})),j=(0,o.createElement)("g",{strokeWidth:"1.4"},(0,o.createElement)("path",{d:"M32 55v14"}),(0,o.createElement)("path",{d:"M32 56h8.2l-1.8 2.3 1.8 2.3H32z"})),D=(0,o.createElement)("g",{strokeWidth:"1.4"},(0,o.createElement)("circle",{cx:"36",cy:"61",r:"4.4"}),(0,o.createElement)("path",{d:"M39.4 64.4 43 68"})),O=(0,o.createElement)("g",{strokeWidth:"1.4"},(0,o.createElement)("rect",{x:"196",y:"55",width:"16",height:"14",rx:"2"}),(0,o.createElement)("path",{d:"M196 59.5h16"}),(0,o.createElement)("path",{d:"M200 53v3M208 53v3"})),L=(0,o.createElement)("g",{strokeWidth:"1.4"},(0,o.createElement)("circle",{cx:"205",cy:"62",r:"6.8"}),(0,o.createElement)("path",{d:"M205 58v4.2l2.6 1.6"})),R=(e,t,l=null)=>(0,o.createElement)("svg",{..._},C(e),S(42,40),l,(0,o.createElement)("text",{x:l?54:30,y:"67",...v},t)),V=(e,t,l=null)=>(0,o.createElement)("svg",{..._},C(e),S(42,40),l,(0,o.createElement)("text",{x:l?54:30,y:"67",...x},t),T),W=(e,t)=>(0,o.createElement)("svg",{..._},C(e),S(42,40),t.map((e,t)=>{const l=28+76*t;return(0,o.createElement)("g",{key:t},(0,o.createElement)("rect",{x:l,y:"52",width:"70",height:"20",rx:"10",strokeWidth:"1.3"}),(0,o.createElement)("text",{x:l+12,y:"66",...x},e))}),T),q=e=>(0,o.createElement)("svg",{..._},C(e),S(40,58),(0,o.createElement)("line",{x1:"30",y1:"56",x2:"210",y2:"56",strokeWidth:"1.3",opacity:"0.45"}),(0,o.createElement)("line",{x1:"30",y1:"68",x2:"210",y2:"68",strokeWidth:"1.3",opacity:"0.45"}),(0,o.createElement)("line",{x1:"30",y1:"80",x2:"150",y2:"80",strokeWidth:"1.3",opacity:"0.45"})),$=(e,t,l)=>(0,o.createElement)("svg",{..._},C(e),S(42,40),(0,o.createElement)("text",{x:"30",y:"67",...v},t),l),z=(e,t)=>(0,o.createElement)("svg",{..._},C(e),(0,o.createElement)("rect",{x:"16",y:"48",width:"18",height:"18",rx:"4",strokeWidth:"1.6"}),(0,o.createElement)("path",{d:"M20 57.5 23 60.5 30 53.5",strokeWidth:"1.6"}),(0,o.createElement)("text",{x:"44",y:"62",...x},t)),H=e=>(0,o.createElement)("svg",{..._},(0,o.createElement)("text",{x:"16",y:"44",fontFamily:"sans-serif",fontSize:"20",fontWeight:"700",style:w},e),(0,o.createElement)("line",{x1:"16",y1:"56",x2:"150",y2:"56",strokeWidth:"2"})),J=e=>(0,o.createElement)("svg",{..._},C(e),S(40,58),(0,o.createElement)("path",{d:"M16 64 70 52 130 70 224 54",strokeWidth:"1.2",opacity:"0.4"}),(0,o.createElement)("path",{d:"M90 98 86 56",strokeWidth:"1.2",opacity:"0.4"}),(0,o.createElement)("path",{d:"M120 70c4-3.8 6.2-6.7 6.2-9.7a6.2 6.2 0 1 0-12.4 0c0 3 2.2 5.9 6.2 9.7z",strokeWidth:"1.6"}),(0,o.createElement)("circle",{cx:"120",cy:"60.5",r:"2.2",strokeWidth:"1.6"})),U=(e,t)=>(0,o.createElement)("svg",{..._},(0,o.createElement)("rect",{x:"36",y:"38",width:"168",height:"46",rx:"6",strokeWidth:"1.6"}),(0,o.createElement)("rect",{x:"50",y:"53",width:"16",height:"16",rx:"3",strokeWidth:"1.5"}),(0,o.createElement)("text",{x:"76",y:"65",...x},e),t),Y=(e,t)=>(0,o.createElement)("svg",{..._},C(e),(0,o.createElement)("rect",{x:"16",y:"44",width:"208",height:"38",rx:"7",strokeWidth:"1.5",strokeDasharray:"5 4",opacity:"0.55"}),(0,o.createElement)("g",{strokeWidth:"1.4",opacity:"0.7"},(0,o.createElement)("path",{d:"M34 63s4-6 9-6 9 6 9 6-4 6-9 6-9-6-9-6z"}),(0,o.createElement)("circle",{cx:"43",cy:"63",r:"2.4"}),(0,o.createElement)("path",{d:"M35 55 51 71"})),(0,o.createElement)("text",{x:"60",y:"67",...k},t)),G=(e,t)=>(0,o.createElement)("svg",{..._},C(e),t.map((e,t)=>{const l=40+30*t;return(0,o.createElement)("g",{key:t},(0,o.createElement)("text",{x:"16",y:l,...k},e),(0,o.createElement)("rect",{x:"16",y:l+5,width:"208",height:"20",rx:"5",strokeWidth:"1.4"}))})),K=(0,o.createElement)("svg",{..._},(0,o.createElement)("text",{x:"16",y:"27",...E},"Step Break"),(0,o.createElement)("circle",{cx:"40",cy:"64",r:"9",strokeWidth:"1.6"}),(0,o.createElement)("text",{x:"40",y:"68.5",textAnchor:"middle",...x},"1"),(0,o.createElement)("line",{x1:"52",y1:"64",x2:"108",y2:"64",strokeWidth:"1.6",strokeDasharray:"4 4"}),(0,o.createElement)("circle",{cx:"120",cy:"64",r:"9",strokeWidth:"1.6",style:{fill:"currentColor"}}),(0,o.createElement)("text",{x:"120",y:"68.5",textAnchor:"middle",fontFamily:"sans-serif",fontSize:"13",style:{fill:"#fff",stroke:"none"}},"2"),(0,o.createElement)("line",{x1:"132",y1:"64",x2:"188",y2:"64",strokeWidth:"1.6",strokeDasharray:"4 4"}),(0,o.createElement)("circle",{cx:"200",cy:"64",r:"9",strokeWidth:"1.6"}),(0,o.createElement)("text",{x:"200",y:"68.5",textAnchor:"middle",...x},"3")),X=(0,o.createElement)("svg",{..._},(0,o.createElement)("text",{x:"16",y:"27",...E},"Columns"),(0,o.createElement)("rect",{x:"16",y:"40",width:"98",height:"58",rx:"6",strokeWidth:"1.6"}),(0,o.createElement)("rect",{x:"126",y:"40",width:"98",height:"58",rx:"6",strokeWidth:"1.6"}),(0,o.createElement)("line",{x1:"30",y1:"58",x2:"100",y2:"58",strokeWidth:"1.3",opacity:"0.45"}),(0,o.createElement)("line",{x1:"30",y1:"74",x2:"90",y2:"74",strokeWidth:"1.3",opacity:"0.45"}),(0,o.createElement)("line",{x1:"140",y1:"58",x2:"210",y2:"58",strokeWidth:"1.3",opacity:"0.45"}),(0,o.createElement)("line",{x1:"140",y1:"74",x2:"200",y2:"74",strokeWidth:"1.3",opacity:"0.45"})),Q=(0,o.createElement)("svg",{..._},(0,o.createElement)("text",{x:"16",y:"27",...E},"Progress Bar"),(0,o.createElement)("rect",{x:"16",y:"48",width:"208",height:"16",rx:"8",strokeWidth:"1.6"}),(0,o.createElement)("rect",{x:"19",y:"51",width:"100",height:"10",rx:"5",style:w}),(0,o.createElement)("text",{x:"120",y:"86",textAnchor:"middle",...k},"50% complete")),Z={"profile-builder/field-default-name-heading":H("Name"),"profile-builder/field-default-contact-info-heading":H("Contact Info"),"profile-builder/field-default-about-yourself-heading":H("About Yourself"),"profile-builder/field-default-username":R("Username *","your_username",I),"profile-builder/field-default-first-name":R("First Name","Jane"),"profile-builder/field-default-last-name":R("Last Name","Doe"),"profile-builder/field-default-nickname":R("Nickname","jane"),"profile-builder/field-default-email":R("E-mail *","[email protected]",N),"profile-builder/field-default-website":R("Website","https://example.com",F),"profile-builder/field-default-password":R("Password *","••••••••",A),"profile-builder/field-default-repeat-password":R("Repeat Password *","••••••••",A),"profile-builder/field-default-biographical-info":q("Biographical Info"),"profile-builder/field-default-display-name":V("Display name publicly as","Jane Doe"),"profile-builder/field-default-aim":R("AIM","screenname"),"profile-builder/field-default-yim":R("Yahoo IM","screenname"),"profile-builder/field-default-jabber":R("Jabber / Google Talk","[email protected]"),"profile-builder/field-input":R("Text","Type here…"),"profile-builder/field-textarea":q("Textarea"),"profile-builder/field-select":V("Choose an option","Select…"),"profile-builder/field-select-multiple":W("Select (Multiple)",["Option A","Option B"]),"profile-builder/field-checkbox":z("Checkbox","Yes, sign me up"),"profile-builder/field-radio":(ee=[{label:"Option one",selected:!0},{label:"Option two"}],(0,o.createElement)("svg",{..._},C("Radio"),ee.map((e,t)=>{const l=50+22*t;return(0,o.createElement)("g",{key:t},(0,o.createElement)("circle",{cx:"24",cy:l,r:"7.5",strokeWidth:"1.5"}),e.selected&&(0,o.createElement)("circle",{cx:"24",cy:l,r:"3.4",style:w}),(0,o.createElement)("text",{x:"40",y:l+4.5,...x},e.label))}))),"profile-builder/field-heading":H("Heading"),"profile-builder/field-avatar":(0,o.createElement)("svg",{..._},C("Avatar"),(0,o.createElement)("circle",{cx:"42",cy:"68",r:"16",strokeWidth:"1.6"}),(0,o.createElement)("circle",{cx:"42",cy:"63",r:"5",strokeWidth:"1.4"}),(0,o.createElement)("path",{d:"M33 78c1.4-3.6 16.6-3.6 18 0",strokeWidth:"1.4"}),(0,o.createElement)("rect",{x:"70",y:"60",width:"86",height:"17",rx:"8.5",strokeWidth:"1.4"}),(0,o.createElement)("text",{x:"113",y:"72",textAnchor:"middle",...x},"Upload")),"profile-builder/field-number":R("Number","0"),"profile-builder/field-input-hidden":Y("Hidden Field","Not shown on the form"),"profile-builder/field-language":V("Language","English (United States)"),"profile-builder/field-wysiwyg":(0,o.createElement)("svg",{..._},C("WYSIWYG"),S(40,58),(0,o.createElement)("line",{x1:"16",y1:"56",x2:"224",y2:"56",strokeWidth:"1.3"}),(0,o.createElement)("line",{x1:"28",y1:"48",x2:"38",y2:"48",strokeWidth:"1.6"}),(0,o.createElement)("line",{x1:"46",y1:"48",x2:"56",y2:"48",strokeWidth:"1.6"}),(0,o.createElement)("line",{x1:"64",y1:"48",x2:"74",y2:"48",strokeWidth:"1.6"}),(0,o.createElement)("line",{x1:"30",y1:"70",x2:"210",y2:"70",strokeWidth:"1.3",opacity:"0.45"}),(0,o.createElement)("line",{x1:"30",y1:"82",x2:"150",y2:"82",strokeWidth:"1.3",opacity:"0.45"})),"profile-builder/field-html":q("HTML"),"profile-builder/field-upload":(0,o.createElement)("svg",{..._},C("Upload"),(0,o.createElement)("rect",{x:"16",y:"40",width:"208",height:"56",rx:"7",strokeWidth:"1.6",strokeDasharray:"5 4"}),(0,o.createElement)("path",{d:"M120 76V58",strokeWidth:"1.6"}),(0,o.createElement)("path",{d:"M114 64 120 58 126 64",strokeWidth:"1.6"}),(0,o.createElement)("text",{x:"120",y:"89",textAnchor:"middle",...k},"Drop a file or browse")),"profile-builder/field-international-telephone-input":R("Phone","+1 (555) 000-0000",j),"profile-builder/field-select2":(0,o.createElement)("svg",{..._},C("Select2"),S(42,40),D,(0,o.createElement)("text",{x:"54",y:"67",...x},"Search…"),T),"profile-builder/field-phone":R("Phone","+1 (555) 000-0000",P),"profile-builder/field-select-country":V("Country","United States",j),"profile-builder/field-select-timezone":V("Timezone","UTC+00:00 — London"),"profile-builder/field-select-currency":V("Currency","USD — US Dollar ($)"),"profile-builder/field-select-cpt":V("Select (CPT)","Choose a post…"),"profile-builder/field-select-taxonomy":V("Select (Taxonomy)","Choose a category…"),"profile-builder/field-checkbox-toa":z("Terms and Conditions","I agree to the Terms"),"profile-builder/field-datepicker":$("Datepicker","YYYY-MM-DD",O),"profile-builder/field-timepicker":$("Timepicker","HH : MM",L),"profile-builder/field-colorpicker":(0,o.createElement)("svg",{..._},C("Colorpicker"),S(42,40),(0,o.createElement)("rect",{x:"29",y:"54",width:"16",height:"16",rx:"3",style:w,opacity:"0.85"}),(0,o.createElement)("text",{x:"56",y:"67",...x},"#3858E9")),"profile-builder/field-validation":R("Validation","Enter the code"),"profile-builder/field-map":J("Map"),"profile-builder/field-additional-map":J("Additional Map"),"profile-builder/field-recaptcha":U("I'm not a robot",(0,o.createElement)("g",{strokeWidth:"1.4",opacity:"0.75"},(0,o.createElement)("path",{d:"M188 53a6 6 0 1 0 1.7 4.2"}),(0,o.createElement)("path",{d:"M188 49v4h-4"}),(0,o.createElement)("text",{x:"186",y:"78",textAnchor:"middle",fontFamily:"sans-serif",fontSize:"8",style:w,opacity:"0.6"},"reCAPTCHA"))),"profile-builder/field-turnstile":U("Verify you are human",(0,o.createElement)("path",{strokeWidth:"1.4",opacity:"0.75",d:"M180 64h11a3 3 0 0 0 .3-6 4 4 0 0 0-7.7-1.1A3.2 3.2 0 0 0 180 64z"})),"profile-builder/field-select-user-role":V("User Role","Subscriber"),"profile-builder/field-default-blog-details":R("Blog Title","My blog"),"profile-builder/field-mailchimp-subscribe":z("MailChimp","Subscribe to our newsletter"),"profile-builder/field-mailpoet-subscribe":z("MailPoet","Subscribe to our newsletter"),"profile-builder/field-campaign-monitor-subscribe":z("Campaign Monitor","Subscribe to our newsletter"),"profile-builder/field-woo-billing-address":G("Billing Address",["Full name","Street address"]),"profile-builder/field-woo-shipping-address":G("Shipping Address",["Full name","Street address"]),"profile-builder/field-email":R("Email","[email protected]",B),"profile-builder/field-email-confirmation":R("Confirm E-mail","[email protected]",N),"profile-builder/field-gdpr-checkbox":z("GDPR Agreement","I consent to my data being stored"),"profile-builder/field-gdpr-communication-preferences":(0,o.createElement)("svg",{..._},C("Communication Preferences"),[{label:"E-mail",checked:!0},{label:"Phone"},{label:"SMS"}].map((e,t)=>{const l=42+22*t;return(0,o.createElement)("g",{key:t},(0,o.createElement)("rect",{x:"16",y:l,width:"15",height:"15",rx:"3.5",strokeWidth:"1.5"}),e.checked&&(0,o.createElement)("path",{d:`M19.5 ${l+7.5} 22 ${l+10} 27.5 ${l+4}`,strokeWidth:"1.5"}),(0,o.createElement)("text",{x:"40",y:l+12,...x},e.label))})),"profile-builder/field-gdpr-delete":(0,o.createElement)("svg",{..._},(0,o.createElement)("rect",{x:"16",y:"44",width:"168",height:"36",rx:"7",strokeWidth:"1.6"}),(0,o.createElement)("text",{x:"100",y:"66",textAnchor:"middle",...x},"Delete my account")),"profile-builder/field-pms-subscription-plans":(0,o.createElement)("svg",{..._},C("Subscription Plans"),[{label:"Free",price:"$0",selected:!0},{label:"Monthly",price:"$9 / mo"},{label:"Yearly",price:"$90 / yr"}].map((e,t)=>{const l=48+22*t;return(0,o.createElement)("g",{key:t},(0,o.createElement)("circle",{cx:"24",cy:l,r:"7.5",strokeWidth:"1.5"}),e.selected&&(0,o.createElement)("circle",{cx:"24",cy:l,r:"3.4",style:w}),(0,o.createElement)("text",{x:"40",y:l+4.5,...x},e.label),(0,o.createElement)("text",{x:"224",y:l+4.5,textAnchor:"end",...k},e.price))})),"profile-builder/field-pms-billing-fields":(0,o.createElement)("svg",{..._},C("Billing Fields"),["Billing First Name","Billing Address","Billing Country"].map((e,t)=>{const l=38+24*t;return(0,o.createElement)("g",{key:t},(0,o.createElement)("rect",{x:"16",y:l,width:"208",height:"20",rx:"5",strokeWidth:"1.4"}),(0,o.createElement)("text",{x:"30",y:l+14,...v},e))})),"profile-builder/field-honeypot":Y("Honeypot","Anti-spam — hidden from users"),"profile-builder/field-input-url":R("URL","https://example.com",M),"profile-builder/field-select2-multiple":W("Select2 (Multiple)",["Tag one","Tag two"]),"profile-builder/field-repeater":(0,o.createElement)("svg",{..._},C("Repeater"),(0,o.createElement)("rect",{x:"16",y:"38",width:"208",height:"62",rx:"7",strokeWidth:"1.6"}),(0,o.createElement)("rect",{x:"28",y:"48",width:"184",height:"16",rx:"4",strokeWidth:"1.3"}),(0,o.createElement)("rect",{x:"28",y:"68",width:"184",height:"16",rx:"4",strokeWidth:"1.3"}),(0,o.createElement)("path",{d:"M30 92h7M33.5 88.5v7",strokeWidth:"1.5"}),(0,o.createElement)("text",{x:"46",y:"95",...k},"Add row")),"profile-builder/msf-step-break":K,"profile-builder/ffc-columns":X,"profile-builder/progress-bar":Q};var ee;const te="__wppbPreview",le=({name:e})=>{const t=(0,d.useBlockProps)({className:"wppb-fb-field-art-preview",style:{width:"224px",maxWidth:"none",margin:"6px auto",padding:0,color:"#1e1e1e"}});return(0,o.createElement)("div",{...t},Z[e]||null)};(0,r.addFilter)("blocks.registerBlockType","profile-builder/field-art",(e,t)=>{if("string"!=typeof t||!t.startsWith("profile-builder/"))return e;let l=e;if(y[t]&&(l={...l,icon:y[t]}),Z[t]){const e=l.edit;l={...l,attributes:{...l.attributes||{},[te]:{type:"boolean",default:!1}},example:{attributes:{[te]:!0},viewportWidth:248},edit:l=>l?.attributes?.[te]?(0,o.createElement)(le,{name:t}):(0,o.createElement)(e,{...l})}}return l});const re=window.wp.blocks;function ie(){return null}const ne=l(978),ae=l(2910),oe=l(4269),se=["field-input","field-textarea","field-select","field-select-multiple","field-select2","field-select2-multiple","field-select-country","field-select-timezone","field-select-currency","field-select-cpt","field-select-taxonomy","field-checkbox","field-checkbox-toa","field-radio","field-number","field-phone","field-upload","field-avatar","field-colorpicker","field-datepicker","field-timepicker","field-wysiwyg","field-html","field-input-hidden","field-language","field-input-url","field-validation","field-gdpr-checkbox","field-gdpr-delete","field-gdpr-communication-preferences","field-mailchimp-subscribe","field-mailpoet-subscribe","field-campaign-monitor-subscribe","field-woo-billing-address","field-woo-shipping-address","field-pms-subscription-plans","field-pms-billing-fields","field-international-telephone-input","field-map","field-additional-map","field-email","field-honeypot","field-default-aim","field-default-yim","field-default-jabber","field-default-blog-details","field-recaptcha","field-turnstile","field-heading","field-repeater","field-default-username","field-default-email","field-default-password","field-default-first-name","field-default-last-name","field-default-nickname","field-default-biographical-info","field-default-display-name","field-default-website","field-default-name-heading","field-default-contact-info-heading","field-default-about-yourself-heading","field-default-repeat-password","field-email-confirmation","field-select-user-role","msf-step-break","ffc-columns","progress-bar"],de=e=>e.replace(/^\.\//,"").split("/")[0],ce=e=>e&&void 0!==e.default?e.default:e,pe=e=>{const t=se.indexOf(e);return-1===t?se.length:t},ue=oe.keys();ne.keys().sort((e,t)=>pe(de(e))-pe(de(t))).forEach(e=>{const t=de(e),l=ce(ne(e)),r=ce(ae(`./${t}/edit.js`)),i=`./${t}/save.js`,n=ue.includes(i)?ce(oe(i)):ie;(0,re.registerBlockType)(l.name,{...l,edit:r,save:n})});const fe=window.wp.plugins;var me=l(6087);const be=["wppb-rf-cpt","wppb-epf-cpt"],he="wppb-fb-block-editor";function ge(){document.body&&document.body.classList.add(he);const e=function(){const e=document.querySelector('iframe[name="editor-canvas"]');return e&&e.contentDocument?e.contentDocument:null}();e&&e.body&&e.body.classList.add(he)}(0,fe.registerPlugin)("wppb-fb-editor-body-class",{render:()=>{const e=(0,p.useSelect)(e=>be.includes(e("core/editor").getCurrentPostType()),[]);return(0,me.useEffect)(()=>{if(!e)return;let t=null;const l=()=>{t||(t=requestAnimationFrame(()=>{t=null,ge()}))};ge();const r=new MutationObserver(l);r.observe(document.body,{childList:!0,subtree:!0});const i=document.querySelector('iframe[name="editor-canvas"]');return i&&i.addEventListener("load",l),()=>{r.disconnect(),t&&cancelAnimationFrame(t),i&&i.removeEventListener("load",l)}},[e]),null}});const ye=window.wp.editPost,_e=window.wp.coreData,we=window.wp.compose,Ee=()=>(0,o.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",style:{fill:"none"},"aria-hidden":"true",focusable:"false"},(0,o.createElement)("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.createElement)("path",{d:"M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2",stroke:"currentColor",strokeWidth:"1.6"})),ve=()=>(0,o.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",style:{fill:"none"},"aria-hidden":"true",focusable:"false"},(0,o.createElement)("path",{d:"M5 12l5 5 9-10",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})),xe=({text:e})=>{const[t,l]=(0,me.useState)(!1),r=(0,we.useCopyToClipboard)(e,()=>l(!0));return(0,me.useEffect)(()=>{if(!t)return;const e=setTimeout(()=>l(!1),2e3);return()=>clearTimeout(e)},[t]),(0,o.createElement)(c.Button,{ref:r,className:"wppb-fb-shortcode-copy",showTooltip:!0,label:t?(0,s.__)("Copied!","profile-builder"):(0,s.__)("Copy shortcode","profile-builder")},t?(0,o.createElement)(ve,null):(0,o.createElement)(Ee,null))};(0,fe.registerPlugin)("wppb-form-shortcode-plugin",{render:()=>{const e=(0,p.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),[t]=(0,_e.useEntityProp)("postType",e,"meta");if(!["wppb-rf-cpt","wppb-epf-cpt"].includes(e))return null;const l=t&&t.wppb_fb_form_shortcode||"";return(0,o.createElement)(ye.PluginDocumentSettingPanel,{name:"wppb-form-shortcode",title:(0,s.__)("Form Shortcode","profile-builder")},""===l?(0,o.createElement)(c.Notice,{status:"warning",isDismissible:!1},(0,s.__)("The shortcode will be available after you publish this form.","profile-builder")):(0,o.createElement)(o.Fragment,null,(0,o.createElement)("p",{className:"wppb-fb-shortcode-intro"},(0,s.__)("Use this shortcode on the page where you want the form to be displayed.","profile-builder")),(0,o.createElement)("div",{className:"wppb-fb-shortcode-box"},(0,o.createElement)("code",{className:"wppb-fb-shortcode-code"},l),(0,o.createElement)(xe,{text:l})),l.includes("form_name=")&&(0,o.createElement)("p",{className:"wppb-fb-shortcode-help"},(0,s.__)("Changing the form title also changes the shortcode!","profile-builder"))))}});var ke=l(9018);function Ce(e){const t={},l=(e,r)=>{for(let i=0;i<e.length;i++){const n=e[i];t[n.clientId]={parent:r,index:i,name:n.name},n.innerBlocks&&n.innerBlocks.length&&l(n.innerBlocks,n.clientId)}};return l(e,""),t}const Se=()=>(function(){const{positionMap:e,isDragging:t,dragOrigin:l,allowedParentId:r}=(0,p.useSelect)(e=>{const t=e("core/block-editor"),l=t.getDraggedBlockClientIds?t.getDraggedBlockClientIds():[],r=!(!l||!l.length);let i=null,n=null;if(r){const e=l[0],r=t.getBlockParents(e)||[];for(let e=r.length-1;e>=0;e--){const l=t.getBlock(r[e]);if(l&&l.name===ke.V){i="inside",n=r[e];break}}i||(i="outside")}return{positionMap:Ce(t.getBlocks()),isDragging:r,dragOrigin:i,allowedParentId:n}},[]),i=(0,me.useRef)(null),{moveBlocksToPosition:n}=(0,p.useDispatch)("core/block-editor");(0,me.useEffect)(()=>{const e=function(){const e=document.querySelector('iframe[name="editor-canvas"]'),t=e&&e.contentDocument;return t&&t.body?t.body:document.querySelector(".editor-styles-wrapper")}();if(!e)return;e.classList.remove("wppb-fb-drag-from-outside","wppb-fb-drag-from-repeater");const t=e.querySelectorAll(".wppb-fb-drag-allowed-parent");for(const e of t)e.classList.remove("wppb-fb-drag-allowed-parent");if("outside"===l)e.classList.add("wppb-fb-drag-from-outside");else if("inside"===l&&(e.classList.add("wppb-fb-drag-from-repeater"),r)){const t=e.querySelector('[data-block="'+r+'"]');t&&t.classList.add("wppb-fb-drag-allowed-parent")}},[l,r]),(0,me.useEffect)(()=>{if(t)return;const l=i.current;if(!l)return void(i.current=e);const r=(0,p.select)("core/block-editor"),a=e=>{if(!e)return!1;const t=r.getBlock(e);return!(!t||t.name!==ke.V)},o={...e},s=[];for(const t in e){if(!(t in l))continue;const r=l[t],i=e[t];if(r.parent===i.parent)continue;const n=a(r.parent),d=a(i.parent);(n||d)&&(s.push({clientId:t,fromParent:i.parent||"",toParent:r.parent||"",toIndex:r.index}),o[t]=r)}i.current=o;for(const e of s)n([e.clientId],e.fromParent,e.toParent,e.toIndex)},[e,t,n])}(),null);(0,fe.registerPlugin)("wppb-repeater-scope-guard",{render:()=>{const e=(0,p.useSelect)(e=>e("core/editor").getCurrentPostType(),[]);return["wppb-rf-cpt","wppb-epf-cpt"].includes(e)?(0,o.createElement)(Se,null):null}}),(0,fe.registerPlugin)("wppb-form-settings-plugin",{render:()=>{const e=(0,p.useSelect)(e=>e("core/editor").getCurrentPostType(),[]);if(!["wppb-rf-cpt","wppb-epf-cpt"].includes(e))return null;const[t,l]=(0,_e.useEntityProp)("postType",e,"meta");return t?(0,o.createElement)(ye.PluginDocumentSettingPanel,{name:"wppb-form-settings",title:(0,s.__)("Form Settings","profile-builder")},(0,o.createElement)(c.SelectControl,{label:(0,s.__)("Redirect","profile-builder"),value:t.wppb_fb_redirect||"-",options:[{label:(0,s.__)("Default","profile-builder"),value:"-"},{label:(0,s.__)("No","profile-builder"),value:"No"},{label:(0,s.__)("Yes","profile-builder"),value:"Yes"}],onChange:e=>l({wppb_fb_redirect:e}),help:(0,s.__)("Whether to redirect the user to a specific page after submission.","profile-builder")}),"Yes"===t.wppb_fb_redirect&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(c.TextControl,{label:(0,s.__)("URL","profile-builder"),value:t.wppb_fb_url||"",onChange:e=>l({wppb_fb_url:e}),help:(0,s.__)("Destination URL. Use the format: https://www.example.com","profile-builder")}),(0,o.createElement)(c.TextControl,{label:(0,s.__)("Display Messages (seconds)","profile-builder"),type:"number",min:0,max:250,step:1,value:String(t.wppb_fb_display_messages||"1"),onChange:e=>{const t=Math.max(0,Math.min(250,parseInt(e,10)||0));l({wppb_fb_display_messages:String(t)})},help:(0,s.__)("Allowed time to display any success messages (in seconds). 0 disables.","profile-builder")})),"wppb-rf-cpt"===e&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(c.SelectControl,{label:(0,s.__)("Set Role","profile-builder"),value:t.wppb_fb_set_role||"default role",options:window.wppbFb&&window.wppbFb.formSettings&&window.wppbFb.formSettings.roles||[{label:(0,s.__)("Default Role","profile-builder"),value:"default role"}],onChange:e=>l({wppb_fb_set_role:e}),help:(0,s.__)("Role assigned to users registered through this form.","profile-builder")}),(0,o.createElement)(c.ToggleControl,{label:(0,s.__)("Automatically Log In","profile-builder"),checked:"Yes"===t.wppb_fb_automatically_log_in,onChange:e=>l({wppb_fb_automatically_log_in:e?"Yes":"No"})})),(0,o.createElement)(c.ToggleControl,{label:(0,s.__)("Ajax Validation","profile-builder"),checked:"true"===t.wppb_fb_ajax,onChange:e=>l({wppb_fb_ajax:e?"true":""}),help:(0,s.__)("Validate this form without reloading the page.","profile-builder")})):null}});const Te="profile-builder/progress-bar";function Ne(e){return(e||[]).filter(e=>e&&e.name!==Te)}function Ae(e,t){const l=e[t];return!(!l||"profile-builder/msf-step-break"!==l.name)&&0!==t&&t!==e.length-1}const Fe=({postType:e})=>{const[t,l]=(0,_e.useEntityProp)("postType",e,"meta");return t?(0,o.createElement)(Pe,{meta:t,setMeta:l}):null},Pe=({meta:e,setMeta:t})=>{const l="Yes"===e.wppb_fb_progress_bar_enable;return function(e,t){const l=(0,p.useSelect)(e=>Ne(e("core/block-editor").getBlocks()).map(e=>`${e.name}:${e.clientId}`).join("|"),[]),{insertBlock:r,removeBlock:i,updateBlockAttributes:n}=(0,p.useDispatch)("core/block-editor");(0,me.useEffect)(()=>{const l=e=>{n(e,{lock:{}}),i(e,!1)},a=(0,p.select)("core/block-editor").getBlocks(),o=Ne(a);if(!e){for(const e of a)e.name===Te&&l(e.clientId);return}const s=function(e,t){const l="Top of Form"===t||"Both"===t,r="Bottom of Form"===t||"Both"===t,i=[];if(l){const t=e.length>0?e[0].clientId:null;i.push({context:"top",before:t})}for(let t=0;t<e.length;t++){const n=e[t];if(Ae(e,t)&&(r&&i.push({context:"bottom",before:n.clientId}),l)){const l=t+1<e.length?e[t+1].clientId:null;i.push({context:"top",before:l})}}return r&&i.push({context:"bottom",before:null}),i}(o,t),{removes:d,inserts:c}=function(e,t){const l=[],r=[];let i=0;const n=e.map(e=>({clientId:e.clientId,name:e.name,context:e.attributes&&e.attributes["position-context"]})),a=e=>{const t=[];for(let l=e-1;l>=0&&n[l].name===Te;l--)t.unshift(n[l]);return t},o=new Set;for(;i<t.length;i++){const e=t[i];if(null===e.before)break;const l=n.findIndex(t=>t.clientId===e.before);if(l<0){r.push({context:e.context,beforeNonBarClientId:e.before});continue}const s=a(l).filter(e=>!o.has(e.clientId)).find(t=>t.context===e.context);s?o.add(s.clientId):r.push({context:e.context,beforeNonBarClientId:e.before})}const s=t.slice(i);if(s.length>0){let e=-1;for(let t=n.length-1;t>=0;t--)if(n[t].name!==Te){e=t;break}const t=[];for(let l=e+1;l<n.length;l++)n[l].name!==Te||o.has(n[l].clientId)||t.push(n[l]);for(const e of s){const l=t.find(t=>t.context===e.context&&!o.has(t.clientId));l?o.add(l.clientId):r.push({context:e.context,beforeNonBarClientId:null})}}for(const e of n)e.name!==Te||o.has(e.clientId)||l.push(e.clientId);return{removes:l,inserts:r}}(a,s);for(const e of d)l(e);for(const e of c){const t=(0,p.select)("core/block-editor").getBlocks();let l=t.length;null!==e.beforeNonBarClientId&&(l=t.findIndex(t=>t.clientId===e.beforeNonBarClientId),l<0&&(l=t.length)),r((0,re.createBlock)(Te,{"position-context":e.context,lock:{move:!0,remove:!0}}),l,void 0,!1)}},[e,t,l,r,i,n])}(l,e.wppb_fb_progress_bar_position||"Top of Form"),(0,o.createElement)(ye.PluginDocumentSettingPanel,{name:"wppb-progress-bar-settings",title:(0,s.__)("Progress Bar","profile-builder")},(0,o.createElement)(c.ToggleControl,{label:(0,s.__)("Enable Progress Bar","profile-builder"),checked:l,onChange:e=>t({wppb_fb_progress_bar_enable:e?"Yes":"No"}),help:(0,s.__)("Show a completion progress bar on the form.","profile-builder")}),l&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(c.SelectControl,{label:(0,s.__)("Calculation Mode","profile-builder"),value:e.wppb_fb_progress_bar_calculation_mode||"All Fields",options:[{label:(0,s.__)("All Fields","profile-builder"),value:"All Fields"},{label:(0,s.__)("Required Fields","profile-builder"),value:"Required Fields"}],onChange:e=>t({wppb_fb_progress_bar_calculation_mode:e}),help:(0,s.__)("Choose how progress is calculated.","profile-builder")}),(0,o.createElement)(c.SelectControl,{label:(0,s.__)("Style / Display Options","profile-builder"),value:e.wppb_fb_progress_bar_display_options||"Bar Only",options:[{label:(0,s.__)("Bar Only","profile-builder"),value:"Bar Only"},{label:(0,s.__)("Bar and Percentage Label","profile-builder"),value:"Bar and Percentage Label"}],onChange:e=>t({wppb_fb_progress_bar_display_options:e})}),(0,o.createElement)(c.SelectControl,{label:(0,s.__)("Position","profile-builder"),value:e.wppb_fb_progress_bar_position||"Top of Form",options:[{label:(0,s.__)("Top of Form","profile-builder"),value:"Top of Form"},{label:(0,s.__)("Bottom of Form","profile-builder"),value:"Bottom of Form"},{label:(0,s.__)("Both","profile-builder"),value:"Both"}],onChange:e=>t({wppb_fb_progress_bar_position:e}),help:(0,s.__)("Where to display the progress bar.","profile-builder")})))};(0,fe.registerPlugin)("wppb-progress-bar-settings-plugin",{render:()=>{const e=(0,p.useSelect)(e=>e("core/editor").getCurrentPostType(),[]);return["wppb-rf-cpt","wppb-epf-cpt"].includes(e)&&window.wppbFb&&window.wppbFb.progressBar&&window.wppbFb.progressBar.active?(0,o.createElement)(Fe,{postType:e}):null}});var Be=l(7962);const Me="undefined"!=typeof window&&window.wppbFb&&Array.isArray(window.wppbFb.mandatoryTypes)&&window.wppbFb.mandatoryTypes.length?window.wppbFb.mandatoryTypes:["Default - Username","Default - E-mail","Default - Password"];(0,fe.registerPlugin)("wppb-auto-seed-registration-form",{render:()=>(function(){const e=(0,p.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),t=(0,p.useSelect)(e=>e("core/editor").getEditedPostAttribute("status"),[]),l=(0,p.useSelect)(e=>e("core/block-editor").getBlocks().length,[]),{insertBlocks:r,__unstableMarkNextChangeAsNotPersistent:i}=(0,p.useDispatch)("core/block-editor"),n=(0,me.useRef)(!1);(0,me.useEffect)(()=>{if(n.current)return;if("wppb-rf-cpt"!==e)return;if("auto-draft"!==t)return;if(0!==l)return;const a=(0,Be.n8)();if(!a.length)return;const o=new Map;for(const e of a)e&&e.fieldType&&!o.has(e.fieldType)&&o.set(e.fieldType,e);const s=[];for(const e of Me){const t=o.get(e);t&&s.push((0,re.createBlock)(t.blockName,{...t.attributes||{},id:t.id,lock:{remove:!0}}))}s.length&&(n.current=!0,"function"==typeof i&&i(),r(s,0,void 0,!1))},[e,t,l])}(),null)});const Ie=window.wp.url,je="data-wppb-fb-preview-slot",De=()=>(0,o.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false"},(0,o.createElement)("path",{style:{fill:"currentColor"},d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.4l-6.6 6.6 1 1 6.7-6.6v3.4h1.5V3h-6z"}));(0,fe.registerPlugin)("wppb-fb-form-preview-button",{render:()=>{const{postType:e,postId:t,isSaving:l,isAutosaving:r}=(0,p.useSelect)(e=>{const t=e("core/editor");return{postType:t.getCurrentPostType(),postId:t.getCurrentPostId(),isSaving:t.isSavingPost(),isAutosaving:t.isAutosavingPost()}},[]),{savePost:i}=(0,p.useDispatch)("core/editor"),[n,a]=(0,me.useState)(null),d=["wppb-rf-cpt","wppb-epf-cpt"].includes(e);(0,me.useEffect)(()=>{if(!d)return;const e=()=>{const e=(()=>{const e=document.querySelector(".edit-post-header__settings, .editor-header__settings");if(!e)return null;let t=e.querySelector(`[${je}]`);return t||(t=document.createElement("div"),t.setAttribute(je,""),t.style.display="flex",t.style.alignItems="center"),e.firstChild!==t&&e.insertBefore(t,e.firstChild),t})();a(t=>t===e?t:e)};let t=0;e();const l=new MutationObserver(()=>{t||(t=window.requestAnimationFrame(()=>{t=0,e()}))}),r=document.querySelector(".interface-interface-skeleton")||document.body;return l.observe(r,{childList:!0,subtree:!0}),()=>{l.disconnect(),t&&window.cancelAnimationFrame(t)}},[d]);const u=(0,me.useCallback)(()=>{const e=window.open("about:blank","_blank");Promise.resolve(i()).then(()=>{const t=window.wppbFb&&window.wppbFb.preview||{},l=(0,p.select)("core/editor").getCurrentPostId();if(!t.home||!l)return void(e&&e.close());const r=(0,Ie.addQueryArgs)(t.home,{wppb_fb_preview:l,_wppbnonce:t.nonce});e?e.location=r:window.open(r,"_blank")}).catch(()=>{e&&e.close()})},[i]);return d&&n?(0,me.createPortal)((0,o.createElement)(c.Button,{variant:"secondary",className:"wppb-fb-preview-button",icon:(0,o.createElement)(De,null),iconPosition:"right",onClick:u,disabled:l&&!r,"aria-haspopup":"dialog"},(0,s.__)("Save and preview","profile-builder")),n):null}});const Oe=window.wp.apiFetch;var Le=l.n(Oe),Re=l(8565);const Ve=new Set(["conditional-logic"]),We=new Map,qe=new Map,$e=new Map,ze=new Map,He=new Map;function Je(){for(const e of Array.from($e.keys())){const t=$e.get(e),l=He.get(e);$e.delete(e),We.has(e)&&(clearTimeout(We.get(e)),We.delete(e)),l&&t&&0!==Object.keys(t).length&&rt({...l,patch:t},!0)}}let Ue=!1,Ye=null;const Ge=new Map;function Ke(e,t){return Ge.set(e,t),()=>{Ge.delete(e)}}function Xe(e,t){return e+":"+t}function Qe(e,t,l){qe.set(Xe(e,t),{...l})}function Ze(e,t){const l=Xe(e,t);We.has(l)&&(clearTimeout(We.get(l)),We.delete(l)),qe.delete(l),$e.delete(l),ze.delete(l),He.delete(l)}function et(e,t,l){Ue||"undefined"==typeof window||(Ue=!0,window.addEventListener("pagehide",Je)),He.set(e,{scope:t.scope,id:t.id,fieldType:t.fieldType,clientId:t.clientId}),We.has(e)&&clearTimeout(We.get(e)),We.set(e,setTimeout(()=>{We.delete(e);const l=$e.get(e);$e.delete(e),l&&0!==Object.keys(l).length&&rt({...t,patch:l})},l))}function tt(e,t,l){const r=Xe(e,t),i=Xe(l.scope,l.id);if(r===i)return;if(qe.has(r)&&(qe.set(i,qe.get(r)),qe.delete(r)),$e.has(r)){const e=$e.get(r),t=$e.get(i)||{};$e.set(i,{...e,...t}),$e.delete(r)}ze.has(r)&&(ze.set(i,ze.get(r)),ze.delete(r)),We.has(r)&&(clearTimeout(We.get(r)),We.delete(r));const n=$e.get(i);n&&Object.keys(n).length>0&&et(i,l,500)}function lt({scope:e,id:t,fieldType:l,clientId:r,attributes:i}){if(!t||t<=0)return;if(!e||!i)return;const n=Xe(e,t),a=qe.get(n);if(!a)return void qe.set(n,{...i});const o={};for(const e of Object.keys(i))"id"!==e&&"field"!==e&&i[e]!==a[e]&&(o[e]=i[e]);if(0===Object.keys(o).length)return;qe.set(n,{...a,...o});const s=$e.get(n)||{};Object.assign(s,o),$e.set(n,s),ze.delete(n),et(n,{scope:e,id:t,fieldType:l,clientId:r},500)}function rt({scope:e,id:t,fieldType:l,clientId:r,patch:i},n=!1){const a=Xe(e,t),o="top"===e?`/wppb/v1/existing-fields/${t}`:`/wppb/v1/existing-fields/sub/${encodeURIComponent(e.slice(4))}/${t}`,d={attributes:i};l&&(d.field=l);const c={path:o,method:"PUT",data:d};n&&(c.keepalive=!0),Le()(c).then(t=>{if(!t||!t.field)return;const l=t.field.attributes||{},n=i,o={};for(const e of Object.keys(n))Ve.has(e)||void 0!==l[e]&&l[e]!==n[e]&&(o[e]=l[e]);void 0===t.field.metaName||void 0!==n["meta-name"]||qe.get(a)&&qe.get(a)["meta-name"]===t.field.metaName||(o["meta-name"]=t.field.metaName),ze.delete(a);const s={...qe.get(a)||{},...l};void 0!==t.field.metaName&&(s["meta-name"]=t.field.metaName);const d=$e.get(a);if(d&&Object.assign(s,d),qe.set(a,s),Object.keys(o).length>0){const e=Ge.get(r);e&&e(o,n)}Ye&&Ye(t.field,e)}).catch(n=>{console.warn("[wppb-fb] attribute persist failed",{path:o,patch:i,err:n});const d=(ze.get(a)||0)+1;if(d>5){const e=qe.get(a);if(e){for(const t of Object.keys(i))delete e[t];qe.set(a,e)}return ze.delete(a),void function(){const e=(0,p.dispatch)("core/notices");e&&"function"==typeof e.createErrorNotice&&e.createErrorNotice((0,s.__)("Profile Builder could not save one or more field settings. Check your connection, then re-apply the change or save the form to retry.","profile-builder"),{id:"wppb-fb-persist-failed",isDismissible:!0})}()}ze.set(a,d);const c=$e.get(a)||{};$e.set(a,{...i,...c}),et(a,{scope:e,id:t,fieldType:l,clientId:r},500*d)})}function it({getBlock:e,updateBlockAttributes:t,markNonPersistent:l}){return r=>(i,n)=>{const a=e(r);if(!a||!a.attributes)return;const o={};for(const e of Object.keys(i))void 0!==n[e]?a.attributes[e]===n[e]&&(o[e]=i[e]):a.attributes[e]||(o[e]=i[e]);0!==Object.keys(o).length&&("function"==typeof l&&l(),t(r,o))}}var nt=l(6948),at=l(6642);const ot='[role="tab"][id$="-media"]',st="wppb-fb-existing-fields-injected",dt=(0,s.__)("Existing Fields","profile-builder"),ct="field-settings",pt=`wppb-fb-existing-fields-sidebar/${ct}`,ut=e=>{const t=[["core/edit-post.openGeneralSidebar",()=>(0,p.dispatch)("core/edit-post")&&(0,p.dispatch)("core/edit-post").openGeneralSidebar(e)],["core/editor.openGeneralSidebar",()=>(0,p.dispatch)("core/editor")&&(0,p.dispatch)("core/editor").openGeneralSidebar(e)],["core/interface.enableComplementaryArea",()=>(0,p.dispatch)("core/interface")&&(0,p.dispatch)("core/interface").enableComplementaryArea("core/edit-post",e)]],l=[];for(const[e,i]of t)try{const e=i();if(void 0!==e&&!1!==e)return}catch(t){var r;l.push(`${e}: ${null!==(r=t?.message)&&void 0!==r?r:t}`)}l.length===t.length&&console.warn("[wppb-fb] openSidebar: all dispatch targets failed for",e,l)},ft=[{selector:'[role="tab"][id$="-blocks"]',label:(0,s.__)("New Fields","profile-builder")},{selector:'[role="tab"][id$="-patterns"]',label:(0,s.__)("Examples","profile-builder")},{selector:ot,label:dt}],mt=(e,t)=>{if(!e||e.dataset.wppbRenamed===t)return;const l=e.querySelectorAll("span");let r=!1;for(const e of l)if(0===e.children.length&&e.textContent.trim().length>0){e.textContent=t,r=!0;break}if(!r){const l=document.createElement("span");l.textContent=t,e.appendChild(l)}e.hasAttribute("aria-label")&&e.setAttribute("aria-label",t),e.dataset.wppbRenamed=t},bt=e=>{e.classList.add("wppb-fb-existing-fields-hijacked");let t=e.querySelector(`.${st}`);return t||(t=document.createElement("div"),t.className=st,e.appendChild(t)),t},ht=(e,t)=>{for(const l of e)l.name&&l.name.startsWith("profile-builder/")&&t(l),l.innerBlocks&&l.innerBlocks.length&&ht(l.innerBlocks,t)},gt=(0,nt.d)({id:null,parentMetaName:null},(e,t)=>e.id===t.id&&e.parentMetaName===t.parentMetaName),yt=(e,t=null)=>{gt.set({id:e,parentMetaName:t})},_t=()=>(0,me.useSyncExternalStore)(gt.subscribe,gt.get),wt=Be.d1,Et=Be.Qt,vt=(e,t=new Map)=>{for(const l of e)t.set(l.id,l),l.innerBlocks&&l.innerBlocks.length&&vt(l.innerBlocks,t);return t},xt=new Set(window.wppbFb&&Array.isArray(window.wppbFb.mandatoryTypes)?window.wppbFb.mandatoryTypes:[]),kt=e=>{const t=Number(e),l=[];return ht((0,p.select)("core/block-editor").getBlocks(),e=>{e.attributes&&e.attributes.id&&Number(e.attributes.id)===t&&l.push(e.clientId)}),l},Ct=({field:e,children:t})=>(0,o.createElement)("div",{className:"wppb-fb-existing-fields__title"},e.title||(0,s.__)("(Untitled)","profile-builder"),(e=>(e=>{const t=e?(0,re.getBlockType)(e):null;return!!(t&&t.attributes&&t.attributes.required)})(e.blockName)&&"yes"===String(e.attributes&&e.attributes.required||"").toLowerCase())(e)&&(0,o.createElement)("span",{className:"wppb-fb-existing-fields__required",title:(0,s.__)("Required field","profile-builder")},"*"),t),St=({field:e})=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"wppb-fb-existing-fields__row"},(0,o.createElement)("span",{className:"wppb-fb-existing-fields__label"},(0,s.__)("Field Type:","profile-builder")),(0,o.createElement)("span",{className:"wppb-fb-existing-fields__type"},e.fieldType)),(0,o.createElement)("div",{className:"wppb-fb-existing-fields__row"},(0,o.createElement)("span",{className:"wppb-fb-existing-fields__label"},(0,s.__)("Meta Name:","profile-builder")),(0,o.createElement)("span",{className:"wppb-fb-existing-fields__meta"},e.metaName||"—")),(0,o.createElement)("div",{className:"wppb-fb-existing-fields__row"},(0,o.createElement)("span",{className:"wppb-fb-existing-fields__label"},(0,s.__)("ID:","profile-builder")),(0,o.createElement)("span",{className:"wppb-fb-existing-fields__id"},e.id))),Tt="all",Nt="in",At="notin",Ft=()=>(0,o.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",style:{fill:"none"},"aria-hidden":"true",focusable:"false"},(0,o.createElement)("line",{x1:"4",y1:"7",x2:"20",y2:"7",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.createElement)("line",{x1:"4",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,o.createElement)("line",{x1:"4",y1:"17",x2:"20",y2:"17",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})),Pt=()=>(0,o.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",style:{fill:"none"},"aria-hidden":"true",focusable:"false"},(0,o.createElement)("circle",{cx:"12",cy:"12",r:"8",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.createElement)("path",{d:"M8.5 12l2.5 2.5 4.5-5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})),Bt=()=>(0,o.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",style:{fill:"none"},"aria-hidden":"true",focusable:"false"},(0,o.createElement)("circle",{cx:"12",cy:"12",r:"8",stroke:"currentColor",strokeWidth:"1.6"}),(0,o.createElement)("path",{d:"M12 8.5v7M8.5 12h7",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})),Mt=({inMiniInserter:e=!1})=>{const{insertBlock:t,updateBlockAttributes:l,selectBlock:r,clearSelectedBlock:i,removeBlocks:n,__unstableMarkNextChangeAsNotPersistent:a}=(0,p.useDispatch)("core/block-editor"),d=Et(),f=(0,at.ug)(),m=_t(),b=m.id,h=m.parentMetaName,[g,y]=(0,me.useState)(null),[_,w]=(0,me.useState)(""),[E,v]=(0,me.useState)(Tt),[x,k]=(0,me.useState)("");(0,me.useEffect)(()=>{const e=setTimeout(()=>k(_),150);return()=>clearTimeout(e)},[_]);const[C,S]=(0,me.useState)(null),[T,N]=(0,me.useState)({loading:!1,forms:null,error:!1}),[A,F]=(0,me.useState)(null),P=(0,me.useRef)(null),{isSaving:B,isAutosaving:M,selectedBlockClientId:I,selectedBlockAttrs:j,currentPostId:D}=(0,p.useSelect)(e=>{const t=e("core/editor"),l=e("core/block-editor"),r=l.getSelectedBlockClientId(),i=r?l.getBlock(r):null;return{isSaving:t.isSavingPost(),isAutosaving:t.isAutosavingPost(),selectedBlockClientId:r,selectedBlockAttrs:i?i.attributes:null,currentPostId:t.getCurrentPostId()}},[]),O=I&&j&&j.id?Number(j.id):null;(0,me.useEffect)(()=>{null!==O&&null!==b&&yt(null)},[O,b]);const L=null!==O?O:b;(0,me.useEffect)(()=>{if(e)return;if(null==L)return;let t=0,l=0;const r=()=>{const e=document.querySelector(".wppb-fb-existing-fields:not(.is-mini) .wppb-fb-existing-fields__card.is-selected");e&&null!==e.offsetParent?(e=>{const t=e.closest(".block-editor-tabbed-sidebar__tabpanel");if(!t)return void e.scrollIntoView({block:"nearest"});const l=t.querySelector(".wppb-fb-existing-fields__toolbar"),r=l?l.offsetHeight:0,i=e.getBoundingClientRect(),n=t.getBoundingClientRect(),a=i.top-(n.top+r),o=i.bottom-n.bottom;a<0?t.scrollTop+=a-8:o>0&&(t.scrollTop+=o+8)})(e):++l>=30||(t=window.requestAnimationFrame(r))};return t=window.requestAnimationFrame(r),()=>window.cancelAnimationFrame(t)},[L,e]);const R=(0,me.useRef)(!1);(0,me.useEffect)(()=>{if(e)return;const t=B&&!M;R.current&&!B&&Le()({path:"/wppb/v1/existing-fields"}).then(e=>{if(!e||!Array.isArray(e.fields))return;wt(e.fields);const t=vt(e.fields);ht((0,p.select)("core/block-editor").getBlocks(),e=>{if(!e.attributes||!e.attributes.id)return;const r=t.get(Number(e.attributes.id));r&&e.attributes["meta-name"]!==r.metaName&&("function"==typeof a&&a(),l(e.clientId,{"meta-name":r.metaName}))})}).catch(()=>{}),R.current=t},[B,M]);const V=(0,p.useSelect)(e=>e("core/block-editor").getBlocks(),[]),{fields:W,canvasById:q,canvasOrder:$}=(0,me.useMemo)(()=>{const e=new Map;var t;t=e,ht(V,e=>{e.attributes&&e.attributes.id&&t.set(Number(e.attributes.id),{clientId:e.clientId,attributes:e.attributes})});const l=new Map;let r=0;for(const t of e.keys())l.set(t,r++);return{fields:d.map(t=>{const l=e.get(t.id);if(!l)return t;const{id:r,...i}=l.attributes;return{...t,title:void 0!==i["field-title"]?i["field-title"]:t.title,metaName:void 0!==i["meta-name"]?i["meta-name"]:t.metaName,attributes:{...t.attributes,...i}}}),canvasById:e,canvasOrder:l}},[V,d]),z=e=>{const t=(e.innerBlocks||[]).map(z);return(0,re.createBlock)(e.blockName,{id:e.id,...e.attributes},t)},H=(e,t=null)=>{const l=q.get(e.id);l&&l.clientId?(r(l.clientId),yt(null)):(i(),yt(e.id,t)),ut(pt)},J=x.trim().toLowerCase(),U=(0,me.useMemo)(()=>W.filter(e=>(e=>{if(!J)return!0;const t=[e.title,e.fieldType,e.metaName];if(Array.isArray(e.innerBlocks))for(const l of e.innerBlocks)t.push(l.title,l.fieldType,l.metaName);return t.some(e=>"string"==typeof e&&e.toLowerCase().includes(J))})(e)&&(e=>E===Nt?q.has(e.id):E!==At||!q.has(e.id))(e)).sort((e,t)=>{const l=q.has(e.id),r=q.has(t.id);return l&&r?$.get(e.id)-$.get(t.id):(r?1:0)-(l?1:0)}),[W,q,$,J,E]);return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"wppb-fb-existing-fields__toolbar"},(0,o.createElement)(c.SearchControl,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",value:_,onChange:w,label:(0,s.__)("Search","profile-builder"),placeholder:(0,s.__)("Search","profile-builder")}),(0,o.createElement)("div",{className:"wppb-fb-existing-fields__filter"},(0,o.createElement)(c.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,isBlock:!0,hideLabelFromVision:!0,label:(0,s.__)("Filter fields","profile-builder"),value:E,onChange:e=>v(e||Tt)},(0,o.createElement)(c.__experimentalToggleGroupControlOptionIcon,{value:Tt,icon:Ft,label:(0,s.__)("All fields","profile-builder")}),(0,o.createElement)(c.__experimentalToggleGroupControlOptionIcon,{value:Nt,icon:Pt,label:(0,s.__)("In this form","profile-builder")}),(0,o.createElement)(c.__experimentalToggleGroupControlOptionIcon,{value:At,icon:Bt,label:(0,s.__)("Not in this form","profile-builder")})))),0===U.length?(0,o.createElement)("div",{className:"block-editor-inserter__no-results"},(0,o.createElement)("p",null,J?(0,s.__)("No results found.","profile-builder"):E===Nt?(0,s.__)("No fields are in this form yet.","profile-builder"):E===At?(0,s.__)("All fields are already in this form.","profile-builder"):(0,s.__)("No existing fields found.","profile-builder"))):(0,o.createElement)("ul",{className:"wppb-fb-existing-fields__list"},U.map(l=>{const r=q.has(l.id),i=L===l.id,n="Repeater"===l.fieldType,a=Array.isArray(l.innerBlocks)?l.innerBlocks:[],d=n&&l.metaName&&a.length>0,m=a.length,b=r&&m?[...a].sort((e,t)=>($.has(e.id)?$.get(e.id):1/0)-($.has(t.id)?$.get(t.id):1/0)):a,y=a.map(e=>e.id),_=null!==O&&y.includes(O),w=h&&h===l.metaName,E=d&&(i||_||w),v=["wppb-fb-existing-fields__card",n?"is-repeater":"",E?"is-expanded":"",r?"is-in-form":"",i?"is-selected":""].filter(Boolean).join(" ");return(0,o.createElement)("li",{key:l.id,className:v},(0,o.createElement)("div",{className:"wppb-fb-existing-fields__card-main",role:"button",tabIndex:0,"aria-pressed":i||void 0,"aria-expanded":d?E:void 0,onClick:()=>H(l),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),H(l))}},(0,o.createElement)("div",{className:"wppb-fb-existing-fields__body"},(0,o.createElement)("div",{className:"wppb-fb-existing-fields__header"},(0,o.createElement)(Ct,{field:l},n&&m>0&&(0,o.createElement)("span",{className:"wppb-fb-existing-fields__subfield-count",title:(0,s.sprintf)(/* translators: %d: number of sub-fields */ /* translators: %d: number of sub-fields */
9 -(0,s._n)("%d sub-field","%d sub-fields",m,"profile-builder"),m)},m)),(0,o.createElement)("div",{className:"wppb-fb-existing-fields__actions"},!e&&!xt.has(l.fieldType)&&(0,o.createElement)(c.Tooltip,{text:(0,s.__)("Permanently delete this field from every form. This cannot be undone.","profile-builder")},(0,o.createElement)(c.Button,{variant:"tertiary",size:"small",isDestructive:!0,isBusy:g===l.id,disabled:null!==g,onClick:e=>((e,t)=>{e.stopPropagation(),F(null),S(t),P.current=t.id,N({loading:!0,forms:null,error:!1}),Le()({path:`/wppb/v1/existing-fields/${t.id}/usage`}).then(e=>{if(P.current!==t.id)return;const l=e&&Array.isArray(e.forms)?e.forms:[];N({loading:!1,forms:l,error:!1})}).catch(()=>{P.current===t.id&&N({loading:!1,forms:[],error:!0})})})(e,l),"aria-label":/* translators: %s: field title */ /* translators: %s: field title */
10 -(0,s.__)("Delete %s","profile-builder").replace("%s",l.title||l.fieldType)},(0,s.__)("Delete","profile-builder"))),r?!xt.has(l.fieldType)&&(0,o.createElement)(c.Tooltip,{text:(0,s.__)("Remove this field from this form only. It stays available to add again and is not deleted.","profile-builder")},(0,o.createElement)(c.Button,{variant:"secondary",size:"small",onClick:e=>((e,t)=>{e.stopPropagation();const l=kt(t.id);l.length>0&&u(l,{select:p.select,dispatch:p.dispatch,message:(0,s.sprintf)(
1 +(()=>{var e={978(e,t,i){const l={"./ffc-columns/block.json":6337,"./field-additional-map/block.json":1743,"./field-avatar/block.json":4576,"./field-campaign-monitor-subscribe/block.json":1645,"./field-checkbox-toa/block.json":37,"./field-checkbox/block.json":2936,"./field-colorpicker/block.json":7654,"./field-datepicker/block.json":4547,"./field-default-about-yourself-heading/block.json":3119,"./field-default-aim/block.json":3854,"./field-default-biographical-info/block.json":6677,"./field-default-blog-details/block.json":9446,"./field-default-contact-info-heading/block.json":5101,"./field-default-display-name/block.json":4695,"./field-default-email/block.json":8423,"./field-default-first-name/block.json":5347,"./field-default-jabber/block.json":9747,"./field-default-last-name/block.json":5711,"./field-default-name-heading/block.json":433,"./field-default-nickname/block.json":1785,"./field-default-password/block.json":6384,"./field-default-repeat-password/block.json":7536,"./field-default-username/block.json":7185,"./field-default-website/block.json":3446,"./field-default-yim/block.json":8934,"./field-email-confirmation/block.json":2391,"./field-email/block.json":3271,"./field-gdpr-checkbox/block.json":2538,"./field-gdpr-communication-preferences/block.json":8986,"./field-gdpr-delete/block.json":4660,"./field-heading/block.json":7701,"./field-honeypot/block.json":7,"./field-html/block.json":460,"./field-input-hidden/block.json":8374,"./field-input-url/block.json":2747,"./field-input/block.json":5495,"./field-international-telephone-input/block.json":8187,"./field-language/block.json":3067,"./field-mailchimp-subscribe/block.json":6320,"./field-mailpoet-subscribe/block.json":9063,"./field-map/block.json":4281,"./field-number/block.json":9576,"./field-phone/block.json":5959,"./field-pms-billing-fields/block.json":9205,"./field-pms-subscription-plans/block.json":6282,"./field-radio/block.json":4740,"./field-recaptcha/block.json":5670,"./field-repeater/block.json":6569,"./field-select-country/block.json":8502,"./field-select-cpt/block.json":757,"./field-select-currency/block.json":1671,"./field-select-multiple/block.json":9612,"./field-select-taxonomy/block.json":8799,"./field-select-timezone/block.json":2679,"./field-select-user-role/block.json":4502,"./field-select/block.json":5529,"./field-select2-multiple/block.json":9508,"./field-select2/block.json":6385,"./field-textarea/block.json":7739,"./field-timepicker/block.json":1734,"./field-turnstile/block.json":795,"./field-upload/block.json":2476,"./field-validation/block.json":5186,"./field-woo-billing-address/block.json":535,"./field-woo-shipping-address/block.json":1248,"./field-wysiwyg/block.json":386,"./msf-step-break/block.json":7399,"./progress-bar/block.json":9017};function r(e){const t=s(e);return i(t)}function s(e){if(!i.o(l,e)){const t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return l[e]}r.keys=function(){return Object.keys(l)},r.resolve=s,e.exports=r,r.id=978},2910(e,t,i){const l={"./ffc-columns/edit.js":9895,"./field-additional-map/edit.js":3113,"./field-avatar/edit.js":6792,"./field-campaign-monitor-subscribe/edit.js":867,"./field-checkbox-toa/edit.js":9291,"./field-checkbox/edit.js":3616,"./field-colorpicker/edit.js":7242,"./field-datepicker/edit.js":5917,"./field-default-about-yourself-heading/edit.js":5657,"./field-default-aim/edit.js":5682,"./field-default-biographical-info/edit.js":7147,"./field-default-blog-details/edit.js":3370,"./field-default-contact-info-heading/edit.js":2211,"./field-default-display-name/edit.js":5313,"./field-default-email/edit.js":5937,"./field-default-first-name/edit.js":7565,"./field-default-jabber/edit.js":8717,"./field-default-last-name/edit.js":5577,"./field-default-name-heading/edit.js":743,"./field-default-nickname/edit.js":8847,"./field-default-password/edit.js":9352,"./field-default-repeat-password/edit.js":3064,"./field-default-username/edit.js":9911,"./field-default-website/edit.js":3946,"./field-default-yim/edit.js":6602,"./field-email-confirmation/edit.js":4193,"./field-email/edit.js":4161,"./field-gdpr-checkbox/edit.js":46,"./field-gdpr-communication-preferences/edit.js":9774,"./field-gdpr-delete/edit.js":604,"./field-heading/edit.js":7115,"./field-honeypot/edit.js":1121,"./field-html/edit.js":5300,"./field-input-hidden/edit.js":7898,"./field-input-url/edit.js":2181,"./field-input/edit.js":9137,"./field-international-telephone-input/edit.js":9109,"./field-language/edit.js":1765,"./field-mailchimp-subscribe/edit.js":1640,"./field-mailpoet-subscribe/edit.js":3969,"./field-map/edit.js":7023,"./field-number/edit.js":8e3,"./field-phone/edit.js":1713,"./field-pms-billing-fields/edit.js":6059,"./field-pms-subscription-plans/edit.js":3822,"./field-radio/edit.js":6332,"./field-recaptcha/edit.js":7402,"./field-repeater/edit.js":9167,"./field-select-country/edit.js":5354,"./field-select-cpt/edit.js":8955,"./field-select-currency/edit.js":7969,"./field-select-multiple/edit.js":9636,"./field-select-taxonomy/edit.js":4681,"./field-select-timezone/edit.js":7601,"./field-select-user-role/edit.js":554,"./field-select/edit.js":7535,"./field-select2-multiple/edit.js":6636,"./field-select2/edit.js":3124,"./field-textarea/edit.js":8037,"./field-timepicker/edit.js":8010,"./field-turnstile/edit.js":3013,"./field-upload/edit.js":276,"./field-validation/edit.js":6870,"./field-woo-billing-address/edit.js":705,"./field-woo-shipping-address/edit.js":6968,"./field-wysiwyg/edit.js":3750,"./msf-step-break/edit.js":9889,"./progress-bar/edit.js":2383};function r(e){const t=s(e);return i(t)}function s(e){if(!i.o(l,e)){const t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return l[e]}r.keys=function(){return Object.keys(l)},r.resolve=s,e.exports=r,r.id=2910},4269(e,t,i){const l={"./ffc-columns/save.js":810,"./field-repeater/save.js":9634};function r(e){const t=s(e);return i(t)}function s(e){if(!i.o(l,e)){const t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return l[e]}r.keys=function(){return Object.keys(l)},r.resolve=s,e.exports=r,r.id=4269},9895(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>p});var l=i(7723),r=i(4715),s=i(6427),n=i(7143),o=i(2340),a=i(9018),d=i(790);function c(){const e="undefined"!=typeof window&&window.wppbFb&&window.wppbFb.ffc||{};return Array.isArray(e.allowedBlocks)&&e.allowedBlocks.length?e.allowedBlocks:[]}function p({clientId:e}){const t=(0,r.useBlockProps)({className:"wppb-fb-ffc-columns"}),i=(0,n.useSelect)(t=>{const i=t("core/block-editor");if(!i||!e)return null;const l=i.getBlockRootClientId(e);if(l){const e=i.getBlock(l);return e&&e.name===a.V?"in-repeater":"nested"}return null},[e]),p=(0,n.useSelect)(t=>{const i=t("core/block-editor");return i&&e&&i.getBlock(e)?.innerBlocks?.length||0},[e]),u=(0,d.jsxs)("span",{className:"wppb-fb-ffc-columns__tab",children:[(0,d.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,d.jsx)("rect",{x:"3",y:"4",width:"7",height:"16",rx:"1.5",stroke:"currentColor",strokeWidth:"1.8"}),(0,d.jsx)("rect",{x:"14",y:"4",width:"7",height:"16",rx:"1.5",stroke:"currentColor",strokeWidth:"1.8"})]}),(0,l.__)("Columns","profile-builder")]});return i?(0,d.jsxs)("div",{...t,className:`${t.className} is-invalid`,children:[u,(0,d.jsx)(s.Notice,{status:"warning",isDismissible:!1,children:"in-repeater"===i?(0,l.__)("Columns cannot be placed inside a Repeater. Move it to the top level of the form.","profile-builder"):(0,l.__)("Columns must be placed at the top level of the form, not nested inside another block.","profile-builder")})]}):(0,d.jsxs)("div",{...t,children:[u,(0,d.jsx)("div",{className:"wppb-fb-ffc-columns__row",children:(0,d.jsx)(r.InnerBlocks,{allowedBlocks:c(),template:[],templateLock:!1,orientation:"horizontal",renderAppender:()=>null})}),(0,d.jsx)(o.A,{rootClientId:e,label:(0,l.__)("Add field","profile-builder")}),p<2&&(0,d.jsx)("p",{className:"wppb-fb-ffc-columns__hint",children:(0,l.__)("Add 2 or more fields to form a column row","profile-builder")})]})}},810(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var l=i(4715),r=i(790);function s(){return(0,r.jsx)(l.InnerBlocks.Content,{})}},3113(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsxs)(r.PanelBody,{title:(0,l.__)("Map Settings","profile-builder"),children:[(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Latitude","profile-builder"),value:t["map-default-lat"],onChange:e=>i({"map-default-lat":e})}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Longitude","profile-builder"),value:t["map-default-lng"],onChange:e=>i({"map-default-lng":e})}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Zoom","profile-builder"),value:t["map-default-zoom"],onChange:e=>i({"map-default-zoom":e})}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Map Height (px)","profile-builder"),value:t["map-height"],onChange:e=>i({"map-height":e})})]});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsxs)("div",{style:{width:"100%",height:t["map-height"]+"px",backgroundColor:"#e5e3df",display:"flex",alignItems:"center",justifyContent:"center",color:"#666",border:"1px solid #ccc"},children:[(0,n.jsx)("span",{className:"dashicons dashicons-location-alt",style:{marginRight:"10px"}}),(0,l.__)("Google Map Placeholder (Additional)","profile-builder")]})})}},6792(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsxs)(r.PanelBody,{title:(0,l.__)("Avatar Settings","profile-builder"),children:[(0,n.jsx)(r.CheckboxControl,{label:(0,l.__)("Use Simple Upload","profile-builder"),help:(0,l.__)("Use a simple upload field instead of the WordPress upload.","profile-builder"),checked:"yes"===t["simple-upload"],onChange:e=>i({"simple-upload":e?"yes":""})}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Avatar Size","profile-builder"),value:t["avatar-size"],onChange:e=>i({"avatar-size":e}),help:(0,l.__)("A value between 20 and 800 (default 100).","profile-builder")}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Allowed Image Extensions","profile-builder"),value:t["allowed-image-extensions"],onChange:e=>i({"allowed-image-extensions":e}),help:(0,l.__)("Comma-separated list (e.g. .jpg,.png,.gif). Default .* allows .jpg,.jpeg,.gif,.png.","profile-builder")}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Maximum File Size (MB)","profile-builder"),value:t["max-file-size"],onChange:e=>i({"max-file-size":e}),help:(0,l.__)("Leave empty to use the server upload limit.","profile-builder")})]});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,n.jsx)("div",{style:{width:t["avatar-size"]+"px",height:t["avatar-size"]+"px",backgroundColor:"#eee",marginRight:"15px",display:"flex",alignItems:"center",justifyContent:"center",color:"#999"},children:(0,l.__)("Avatar","profile-builder")}),(0,n.jsx)(r.Button,{isSecondary:!0,disabled:!0,children:(0,l.__)("Select Image","profile-builder")})]})})}},867(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>n});var l=i(2533),r=i(790);const s={bridgeKey:"campaignMonitor",listAttr:"campaign-monitor-lists",hideFieldAttr:"campaign-monitor-hide-field",listLabel:"Campaign Monitor List",serviceLabel:"Campaign Monitor"};function n(e){return(0,r.jsx)(l.A,{...e,config:s})}},9291(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var l=i(5978),r=i(790);function s(e){const{attributes:t}=e;return(0,r.jsx)(l.A,{...e,hideLabel:!0,children:(0,r.jsx)("div",{className:"wppb-fb-toa-preview",children:(0,r.jsxs)("label",{children:[(0,r.jsx)("input",{type:"checkbox",disabled:!0}),(0,r.jsxs)("span",{style:{marginLeft:"5px"},children:[t["field-title"],"Yes"===t.required&&(0,r.jsx)("span",{className:"wppb-fb-field-required",children:"*"})]})]})})})}},3616(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>n});var l=i(7723),r=i(6239),s=i(790);function n(e){return(0,s.jsx)(r.A,{...e,panelTitle:(0,l.__)("Checkbox Settings","profile-builder"),previewType:"checkbox",defaultValueAttr:"default-options",showDefaultHelp:!0})}},7242(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>n});var l=i(7723),r=i(5978),s=i(790);function n(e){return(0,s.jsx)(r.A,{...e,children:(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,s.jsx)("div",{style:{width:"30px",height:"30px",backgroundColor:"#fff",border:"1px solid #ccc",marginRight:"10px"}}),(0,s.jsx)("input",{type:"text",disabled:!0,placeholder:(0,l.__)("Select color...","profile-builder"),style:{flex:1}})]})})}},5917(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsxs)(r.PanelBody,{title:(0,l.__)("Datepicker Settings","profile-builder"),children:[(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>i({"default-value":e})}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Date Format","profile-builder"),value:t["date-format"],onChange:e=>i({"date-format":e}),help:(0,l.__)("Example: mm/dd/yy, dd-mm-yy, etc.","profile-builder")})]});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsx)("input",{type:"text",disabled:!0,style:{width:"100%"},placeholder:t["date-format"]||"mm/dd/yy"})})}},5657(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var l=i(5978),r=i(790);function s(e){return(0,r.jsx)(l.A,{...e,hidePreview:!0})}},5682(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("AIM Settings","profile-builder"),children:(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>i({"default-value":e})})});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsx)("input",{type:"text",disabled:!0,style:{width:"100%"},placeholder:(0,l.__)("AIM","profile-builder")})})}},7147(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsxs)(r.PanelBody,{title:(0,l.__)("Biographical Info Settings","profile-builder"),children:[(0,n.jsx)(r.TextareaControl,{label:(0,l.__)("Default Value","profile-builder"),value:t["default-content"],onChange:e=>i({"default-content":e})}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Row Count","profile-builder"),value:t["row-count"],onChange:e=>i({"row-count":e})})]});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsx)("textarea",{disabled:!0,style:{width:"100%"},rows:t["row-count"],placeholder:(0,l.__)("Biographical Info","profile-builder")})})}},3370(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>n});var l=i(7723),r=i(5978),s=i(790);function n(e){return(0,s.jsx)(r.A,{...e,children:(0,s.jsxs)("div",{style:{padding:"10px",border:"1px dashed #ccc",backgroundColor:"#fafafa",color:"#666",fontSize:"12px"},children:[(0,s.jsx)("span",{className:"dashicons dashicons-admin-site",style:{marginRight:"5px"}}),(0,l.__)("Blog Details Fields (Multisite)","profile-builder")]})})}},2211(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var l=i(5978),r=i(790);function s(e){return(0,r.jsx)(l.A,{...e,hidePreview:!0})}},5313(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("Display Name Settings","profile-builder"),children:(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>i({"default-value":e})})});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsxs)("select",{disabled:!0,style:{width:"100%"},children:[(0,n.jsx)("option",{children:(0,l.__)("Username","profile-builder")}),(0,n.jsx)("option",{children:(0,l.__)("First Name","profile-builder")}),(0,n.jsx)("option",{children:(0,l.__)("Last Name","profile-builder")}),(0,n.jsx)("option",{children:(0,l.__)("First Name Last Name","profile-builder")})]})})}},5937(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("E-mail Settings","profile-builder"),children:(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>i({"default-value":e})})});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsx)("input",{type:"email",disabled:!0,style:{width:"100%"},placeholder:(0,l.__)("E-mail","profile-builder")})})}},7565(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("First Name Settings","profile-builder"),children:(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>i({"default-value":e})})});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsx)("input",{type:"text",disabled:!0,style:{width:"100%"},placeholder:(0,l.__)("First Name","profile-builder")})})}},8717(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("Jabber Settings","profile-builder"),children:(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>i({"default-value":e})})});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsx)("input",{type:"text",disabled:!0,style:{width:"100%"},placeholder:(0,l.__)("Jabber / Google Talk","profile-builder")})})}},5577(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("Last Name Settings","profile-builder"),children:(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>i({"default-value":e})})});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsx)("input",{type:"text",disabled:!0,style:{width:"100%"},placeholder:(0,l.__)("Last Name","profile-builder")})})}},743(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var l=i(5978),r=i(790);function s(e){return(0,r.jsx)(l.A,{...e,hidePreview:!0})}},8847(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("Nickname Settings","profile-builder"),children:(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>i({"default-value":e})})});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsx)("input",{type:"text",disabled:!0,style:{width:"100%"},placeholder:(0,l.__)("Nickname","profile-builder")})})}},9352(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("Password Settings","profile-builder"),children:(0,n.jsx)(r.CheckboxControl,{label:(0,l.__)("Ask for Current Password","profile-builder"),help:(0,l.__)("On Edit Profile forms, require users to enter their current password before changing it. Applies only when users change their own password.","profile-builder"),checked:"yes"===t["ask-current-password"],onChange:e=>i({"ask-current-password":e?"yes":""})})});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsx)("input",{type:"password",disabled:!0,style:{width:"100%"},placeholder:(0,l.__)("Password","profile-builder")})})}},3064(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>n});var l=i(7723),r=i(5978),s=i(790);function n(e){return(0,s.jsx)(r.A,{...e,children:(0,s.jsx)("input",{type:"password",disabled:!0,style:{width:"100%"},placeholder:(0,l.__)("Repeat Password","profile-builder")})})}},9911(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o="email"===("undefined"!=typeof window&&window.wppbFb&&window.wppbFb.generalSettings&&window.wppbFb.generalSettings.loginWith||"usernameemail"),a=(0,n.jsxs)(r.PanelBody,{title:(0,l.__)("Username Settings","profile-builder"),children:[(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>i({"default-value":e})}),o&&(0,n.jsx)(r.Notice,{status:"info",isDismissible:!1,children:(0,l.__)('Login is set to "Email" in Profile Builder → Settings → General Settings, so this field will not be rendered on the front-end. It is kept in the form because Registration forms require it server-side.',"profile-builder")})]});return(0,n.jsxs)(s.A,{...e,inspectorPanels:a,children:[o&&(0,n.jsx)(r.Notice,{status:"info",isDismissible:!1,className:"wppb-fb-username-hidden-notice",children:(0,l.__)("Not rendered on the front-end (Login with: Email).","profile-builder")}),(0,n.jsx)("input",{type:"text",disabled:!0,style:{width:"100%"},placeholder:(0,l.__)("Username","profile-builder")})]})}},3946(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("Website Settings","profile-builder"),children:(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>i({"default-value":e})})});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsx)("input",{type:"url",disabled:!0,style:{width:"100%"},placeholder:(0,l.__)("Website","profile-builder")})})}},6602(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("Yahoo IM Settings","profile-builder"),children:(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>i({"default-value":e})})});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsx)("input",{type:"text",disabled:!0,style:{width:"100%"},placeholder:(0,l.__)("Yahoo IM","profile-builder")})})}},4193(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>n});var l=i(7723),r=i(5978),s=i(790);function n(e){return(0,s.jsx)(r.A,{...e,children:(0,s.jsx)("input",{type:"email",disabled:!0,style:{width:"100%"},placeholder:(0,l.__)("Confirm E-mail","profile-builder")})})}},4161(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("Email Settings","profile-builder"),children:(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>i({"default-value":e})})});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsx)("input",{type:"email",disabled:!0,style:{width:"100%"},placeholder:(0,l.__)("Email","profile-builder")})})}},46(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>n});var l=i(7723),r=i(5978),s=i(790);function n(e){const{attributes:t}=e;return(0,s.jsx)(r.A,{...e,children:(0,s.jsx)("div",{className:"wppb-fb-gdpr-preview",children:(0,s.jsxs)("label",{children:[(0,s.jsx)("input",{type:"checkbox",disabled:!0}),(0,s.jsx)("span",{style:{marginLeft:"5px"},children:t.description||(0,l.__)("(GDPR agreement text will appear here from the Description field)","profile-builder")})]})})})}},9774(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>c});var l=i(7723),r=i(6427),s=i(5978),n=i(790);const o=[{value:"email",label:(0,l.__)("Email","profile-builder")},{value:"phone",label:(0,l.__)("Telephone","profile-builder")},{value:"sms",label:(0,l.__)("SMS","profile-builder")},{value:"post",label:(0,l.__)("Post","profile-builder")}];function a(e){return e?e.split(",").map(e=>e.trim()).filter(Boolean):[]}function d(e){const t=o.find(t=>t.value===e);return t?t.label:e}function c(e){const{attributes:t,setAttributes:i}=e,c=a(t["gdpr-communication-preferences"]),p=(0,n.jsxs)(r.PanelBody,{title:(0,l.__)("Communication Preferences","profile-builder"),children:[(0,n.jsx)("p",{style:{marginBottom:"0.75em"},children:(0,l.__)("Select which communication channels users can opt into.","profile-builder")}),o.map(e=>(0,n.jsx)(r.CheckboxControl,{label:e.label,checked:c.includes(e.value),onChange:l=>((e,l)=>{let r=a(t["gdpr-communication-preferences"]);l?r.includes(e)||r.push(e):r=r.filter(t=>t!==e),i({"gdpr-communication-preferences":r.join(",")})})(e.value,l)},e.value))]});return(0,n.jsx)(s.A,{...e,inspectorPanels:p,children:(0,n.jsx)("ul",{className:"wppb-fb-checkboxes",style:{listStyle:"none",margin:0,padding:0},children:c.length>0?c.map(e=>(0,n.jsxs)("li",{style:{marginBottom:"5px"},children:[(0,n.jsx)("input",{type:"checkbox",disabled:!0}),(0,n.jsx)("label",{style:{marginLeft:"5px"},children:d(e)})]},e)):(0,n.jsx)("div",{children:(0,l.__)("(no preferences enabled)","profile-builder")})})})}},604(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(5978),s=i(6427),n=i(790);function o(e){return(0,n.jsx)(r.A,{...e,children:(0,n.jsx)("div",{children:(0,n.jsx)(s.Button,{isDestructive:!0,isSecondary:!0,disabled:!0,children:(0,l.__)("Delete","profile-builder")})})})}},7115(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("Heading Settings","profile-builder"),children:(0,n.jsx)(r.SelectControl,{label:(0,l.__)("Heading Tag","profile-builder"),value:t["heading-tag"],options:[{label:"h2",value:"h2"},{label:"h3",value:"h3"},{label:"h4",value:"h4"},{label:"h5",value:"h5"}],onChange:e=>i({"heading-tag":e})})});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,hidePreview:!0})}},1121(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>n});var l=i(7723),r=i(5978),s=i(790);function n(e){return(0,s.jsx)(r.A,{...e,children:(0,s.jsxs)("div",{style:{padding:"10px",border:"1px dashed #ccc",backgroundColor:"#fafafa",color:"#666",fontSize:"12px"},children:[(0,s.jsx)("span",{className:"dashicons dashicons-shield",style:{marginRight:"5px"}}),(0,l.__)("Invisible Honeypot Field (Spam Protection)","profile-builder")]})})}},5300(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("HTML Settings","profile-builder"),children:(0,n.jsx)(r.TextareaControl,{label:(0,l.__)("HTML Content","profile-builder"),value:t["html-content"],onChange:e=>i({"html-content":e}),help:(0,l.__)("Enter custom HTML content.","profile-builder")})});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsx)("div",{style:{padding:"10px",border:"1px dashed #ccc",backgroundColor:"#fafafa",color:"#666",fontSize:"12px"},children:t["html-content"]?(0,n.jsx)("div",{children:(0,l.__)("HTML Content (Preview not available in editor)","profile-builder")}):(0,n.jsx)("div",{children:(0,l.__)("Empty HTML Block","profile-builder")})})})}},7898(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("Hidden Input Settings","profile-builder"),children:(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>i({"default-value":e})})});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsxs)("div",{style:{padding:"10px",border:"1px dashed #ccc",backgroundColor:"#fafafa",color:"#666",fontSize:"12px"},children:[(0,n.jsx)("span",{className:"dashicons dashicons-hidden",style:{marginRight:"5px"}}),(0,l.__)("Hidden Input Field","profile-builder"),t["default-value"]&&(0,n.jsxs)("span",{style:{marginLeft:"10px",fontStyle:"italic"},children:[(0,l.__)("Value:","profile-builder")," ",t["default-value"]]})]})})}},2181(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("URL Settings","profile-builder"),children:(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>i({"default-value":e})})});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsx)("input",{type:"url",disabled:!0,style:{width:"100%"},placeholder:(0,l.__)("https://example.com","profile-builder")})})}},9137(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("Input Settings","profile-builder"),children:(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>i({"default-value":e})})});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsx)("input",{type:"text",disabled:!0,style:{width:"100%"}})})}},9109(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>a});var l=i(7723),r=i(6427),s=i(5978),n=i(790);const o=()=>(0,n.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 512 512",style:{fill:"#555"},children:[(0,n.jsx)("path",{d:"M508 213a240 240 0 0 0-449-87l-2 5-2 5c-8 14-13 30-17 46a65 65 0 0 1 56 4c16-10 35-19 56-27l9-3c-6 23-10 48-10 74h-16l4 6c3 4 5 8 6 13h6c0 22 3 44 8 65l2 10-25-10-4 5 12 18 9 3 6 2 8 3 9 26 1 2 16-7h1l-5-13-1-2c24 6 49 9 75 10v26l11 10 7 7v-30l1-13c22 0 44-3 65-8l10-2-21 48-1 1a317 317 0 0 1-14 23l-21 5h-2c6 16 7 33 1 50a240 240 0 0 0 211-265m-401-56-11 6c19-44 54-79 98-98-11 20-21 44-29 69-21 6-40 15-58 23m154 182v4c-29-1-57-6-81-13-7-25-12-52-13-81h94zm0-109h-94c1-29 6-56 13-81 24-7 52-12 81-13zm0-112c-22 1-44 4-65 8l-10 2 12-30 9-17 1-2a332 332 0 0 1 13-23c13-4 26-6 40-7zm187 69 6 4c4 12 6 25 6 38v1h-68c-1-26-4-51-10-74l48 20 1 1 14 8zm-14-44 10 20c-20-11-43-21-68-29-8-25-18-49-29-69 37 16 67 44 87 78M279 49h1c13 1 27 3 39 7l14 23 1 2a343 343 0 0 1 12 26l2 5 6 16c-23-6-48-9-74-10h-1zm0 87h1c29 1 56 6 81 13 7 24 12 51 12 80v1h-94zm2 207h-2v-94h95c-1 29-6 56-13 81-24 7-51 12-80 13m86 60-20 10c11-20 21-43 29-68 25-8 48-18 68-29-16 37-43 67-77 87m87-115-7 5-16 9-2 1a337 337 0 0 1-47 21c6-24 9-49 10-75h68c0 13-2 27-6 39"}),(0,n.jsx)("path",{d:"m261 428-2-2-22-21a40 40 0 0 0-32-11h-1a37 37 0 0 0-18 8l-1 1-4 2-2 2-5 4c-9-3-36-31-47-44s-32-45-34-55l3-2a151 151 0 0 0 11-9v-1a39 39 0 0 0 5-48l-3-3-11-19-3-4-5-7h-1l-3-3-4-3-5-2a35 35 0 0 0-16-3h-5c-4 1-14 5-24 11l-4 2-4 3-4 2c-9 8-17 17-18 27a380 380 0 0 0 212 259h3c12 0 25-10 36-21l10-12 6-11a39 39 0 0 0-8-40"})]});function a(e){const{attributes:t,setAttributes:i}=e,a="yes"===t["hide-flags"],d=(0,n.jsxs)(r.PanelBody,{title:(0,l.__)("International Telephone Settings","profile-builder"),children:[(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>i({"default-value":e})}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Initial Country","profile-builder"),value:t["initial-country"],onChange:e=>i({"initial-country":e}),help:(0,l.__)('Enter "auto" or a valid ISO 3166-1 alpha-2 country code.',"profile-builder")}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Preferred Countries","profile-builder"),value:t["preferred-countries"],onChange:e=>i({"preferred-countries":e}),help:(0,l.__)("Comma separated list of ISO 3166-1 alpha-2 country codes.","profile-builder")}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Excluded Countries","profile-builder"),value:t["excluded-countries"],onChange:e=>i({"excluded-countries":e}),help:(0,l.__)("Comma separated list of ISO 3166-1 alpha-2 country codes.","profile-builder")}),(0,n.jsx)(r.CheckboxControl,{label:(0,l.__)("National Mode","profile-builder"),help:(0,l.__)("When enabled, numbers are entered in local format. Disable for international format with country prefix.","profile-builder"),checked:"yes"===t["national-mode"],onChange:e=>i({"national-mode":e?"yes":""})}),(0,n.jsx)(r.CheckboxControl,{label:(0,l.__)("Hide Flags","profile-builder"),checked:"yes"===t["hide-flags"],onChange:e=>i({"hide-flags":e?"yes":""})})]});return(0,n.jsx)(s.A,{...e,inspectorPanels:d,children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,n.jsx)("div",{style:{width:"40px",height:"30px",backgroundColor:"#e5e3df",marginRight:"5px",display:"flex",alignItems:"center",justifyContent:"center"},children:a?(0,n.jsx)(o,{}):(0,n.jsx)(n.Fragment,{children:"🏴"})}),(0,n.jsx)("input",{type:"tel",disabled:!0,style:{flex:"1"},placeholder:(0,l.__)("Phone Number","profile-builder")})]})})}},1765(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("Language Settings","profile-builder"),children:(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>i({"default-value":e})})});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsxs)("div",{style:{padding:"10px",border:"1px dashed #ccc",backgroundColor:"#fafafa",color:"#666",fontSize:"12px"},children:[(0,n.jsx)("span",{className:"dashicons dashicons-translation",style:{marginRight:"5px"}}),(0,l.__)("Hidden Language Field","profile-builder"),t["default-value"]&&(0,n.jsxs)("span",{style:{marginLeft:"10px",fontStyle:"italic"},children:[(0,l.__)("Value:","profile-builder")," ",t["default-value"]]})]})})}},1640(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>n});var l=i(2533),r=i(790);const s={bridgeKey:"mailchimp",listAttr:"mailchimp-lists",hideFieldAttr:"mailchimp-hide-field",defaultCheckedAttr:"mailchimp-default-checked",listLabel:"MailChimp List",serviceLabel:"MailChimp"};function n(e){return(0,r.jsx)(l.A,{...e,config:s})}},3969(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>n});var l=i(2533),r=i(790);const s={bridgeKey:"mailpoet",listAttr:"mailpoet-lists",hideFieldAttr:"mailpoet-hide-field",defaultCheckedAttr:"mailpoet-default-checked",listLabel:"MailPoet List",serviceLabel:"MailPoet"};function n(e){return(0,r.jsx)(l.A,{...e,config:s})}},7023(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsxs)(r.PanelBody,{title:(0,l.__)("Map Settings","profile-builder"),children:[(0,n.jsx)(r.TextControl,{label:(0,l.__)("Google Maps API Key","profile-builder"),value:t["map-api-key"],onChange:e=>i({"map-api-key":e}),help:(0,l.__)("When more than one Map field exists on a form, only the first map’s key is used.","profile-builder")}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Latitude","profile-builder"),value:t["map-default-lat"],onChange:e=>i({"map-default-lat":e})}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Longitude","profile-builder"),value:t["map-default-lng"],onChange:e=>i({"map-default-lng":e})}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Zoom Level","profile-builder"),value:t["map-default-zoom"],onChange:e=>i({"map-default-zoom":e}),help:(0,l.__)("0–19. Higher values zoom in further.","profile-builder")}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Map Height (px)","profile-builder"),value:t["map-height"],onChange:e=>i({"map-height":e})}),(0,n.jsx)(r.SelectControl,{label:(0,l.__)("POIs Load Type","profile-builder"),value:t["map-pins-load-type"],options:[{label:(0,l.__)("POIs of the listed users (paginated)","profile-builder"),value:""},{label:(0,l.__)("POIs of all users for the filter (no pagination)","profile-builder"),value:"all"}],onChange:e=>i({"map-pins-load-type":e})}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Number of Users per Map Iteration","profile-builder"),value:t["map-pagination-number"],onChange:e=>i({"map-pagination-number":e}),help:(0,l.__)("Used only when loading all users with no pagination. Recommended max: 300.","profile-builder")}),(0,n.jsx)(r.TextareaControl,{label:(0,l.__)("POI Bubble Info","profile-builder"),value:t["map-bubble-fields"],onChange:e=>i({"map-bubble-fields":e}),help:(0,l.__)("Comma-separated tag names to render in the POI bubble (e.g. avatar_or_gravatar, meta_display_name).","profile-builder")})]});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsxs)("div",{style:{width:"100%",height:t["map-height"]+"px",backgroundColor:"#e5e3df",display:"flex",alignItems:"center",justifyContent:"center",color:"#666",border:"1px solid #ccc"},children:[(0,n.jsx)("span",{className:"dashicons dashicons-location",style:{marginRight:"10px"}}),(0,l.__)("Google Map Placeholder","profile-builder")]})})}},8e3(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsxs)(r.PanelBody,{title:(0,l.__)("Number Settings","profile-builder"),children:[(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Value","profile-builder"),value:t["default-value"],onChange:e=>i({"default-value":e})}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Min Value","profile-builder"),value:t["min-number-value"],onChange:e=>i({"min-number-value":e})}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Max Value","profile-builder"),value:t["max-number-value"],onChange:e=>i({"max-number-value":e})}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Step","profile-builder"),value:t["number-step-value"],onChange:e=>i({"number-step-value":e})})]});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsx)("input",{type:"number",disabled:!0,style:{width:"100%"},min:t["min-number-value"],max:t["max-number-value"],step:t["number-step-value"]})})}},1713(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("Phone Settings","profile-builder"),children:(0,n.jsx)(r.TextControl,{label:(0,l.__)("Phone Format","profile-builder"),value:t["phone-format"],onChange:e=>i({"phone-format":e}),help:(0,l.__)("Use # for numbers (e.g., (###) ###-####).","profile-builder")})});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsx)("input",{type:"text",disabled:!0,style:{width:"100%"},placeholder:t["phone-format"]||(0,l.__)("Phone Number","profile-builder")})})}},6059(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>a});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){return e?e.split(",").map(e=>e.trim()).filter(Boolean):[]}function a(e){const{attributes:t,setAttributes:i}=e,a=("undefined"!=typeof window&&window.wppbFb||{}).pms||{},d=Array.isArray(a.billingFields)?a.billingFields:[],c=a.addonsUrl||"",p=o(t["pms-billing-fields"]),u=e=>{const t=d.find(t=>String(t.value)===String(e));return t?t.label:e},f=p.length>0?p:d.map(e=>String(e.value)),b=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("Billing Fields","profile-builder"),children:d.length>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{style:{marginBottom:"0.75em"},children:(0,l.__)("Select which billing fields to display. Leave all unchecked to display every available billing field.","profile-builder")}),d.map(e=>(0,n.jsx)(r.CheckboxControl,{label:e.label,checked:p.includes(String(e.value)),onChange:l=>((e,l)=>{let r=o(t["pms-billing-fields"]);l?r.includes(e)||r.push(e):r=r.filter(t=>t!==e),i({"pms-billing-fields":r.join(", ")})})(String(e.value),l)},String(e.value)))]}):(0,n.jsxs)(r.Notice,{status:"warning",isDismissible:!1,children:[(0,l.__)("No billing fields are available. Activate the Tax and/or Invoice add-ons.","profile-builder"),c&&" ",c&&(0,n.jsx)(r.ExternalLink,{href:c,children:(0,l.__)("Paid Member Subscriptions add-ons","profile-builder")})]})});return(0,n.jsxs)(s.A,{...e,inspectorPanels:b,hideDescription:!0,children:[(0,n.jsx)(r.Notice,{status:"info",isDismissible:!1,children:(0,l.__)("Billing Fields only appear on Edit Profile forms.","profile-builder")}),(0,n.jsx)("ul",{className:"wppb-fb-checkboxes",style:{listStyle:"none",margin:0,padding:0},children:f.length>0?f.map(e=>(0,n.jsxs)("li",{style:{marginBottom:"5px"},children:[(0,n.jsx)("label",{children:u(e)}),(0,n.jsx)("input",{type:"text",disabled:!0,style:{display:"block",width:"100%"}})]},e)):(0,n.jsx)("div",{children:(0,l.__)("(no billing fields available)","profile-builder")})})]})}},3822(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>p});var l=i(7723),r=i(6427),s=i(6087),n=i(5978),o=i(790);function a(e){return e?e.split(",").map(e=>e.trim()).filter(Boolean):[]}function d(e){return e.length?", "+e.join(", "):""}function c(e,t){return e.filter(e=>t.has(e)).join(", ")}function p(e){const{attributes:t,setAttributes:i}=e,p=(0,s.useRef)(null),[u,f]=(0,s.useState)(null),b=("undefined"!=typeof window&&window.wppbFb||{}).pms||{},h=Array.isArray(b.subscriptionPlans)?b.subscriptionPlans:[],m=Array.isArray(b.subscriptionPlanSelect)?b.subscriptionPlanSelect:[],x=b.subscriptionsUrl||"",g=h.map(e=>String(e.value)),y=e=>h.find(t=>String(t.value)===String(e)),j=e=>{const t=y(e);return t?t.label:e},_=function(e,t){const i=new Set,l=[];for(const r of a(e))t.includes(r)&&!i.has(r)&&(i.add(r),l.push(r));for(const e of t)i.has(e)||l.push(e);return l}(t["subscription-plans-sort-order"]||"",g),w=new Set(a(t["subscription-plans"])),v=e=>t=>{p.current=e,t.stopPropagation();try{t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",e)}catch(e){}const i=t.currentTarget.closest(".wppb-fb-pms-plans__row");i&&t.dataTransfer.setDragImage&&t.dataTransfer.setDragImage(i,10,10)},k=()=>{p.current=null,f(null)},C=e=>t=>{null!=p.current&&(t.preventDefault(),t.dataTransfer.dropEffect="move",u!==e&&f(e))},S=(0,o.jsx)(r.PanelBody,{title:(0,l.__)("Subscription Plans","profile-builder"),children:h.length>0?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{style:{marginBottom:"0.75em"},children:(0,l.__)("Select which plans to show, and drag to reorder. Leave all unchecked to show every plan.","profile-builder")}),(0,o.jsx)("div",{className:"wppb-fb-pms-plans",children:_.map(e=>{const t=["wppb-fb-pms-plans__row",u===e?"is-drag-over":""].filter(Boolean).join(" ");return(0,o.jsxs)("div",{className:t,onDragOver:C(e),onDrop:(r=e,e=>{e.preventDefault(),e.stopPropagation();const t=p.current;if(p.current=null,f(null),!t||t===r)return;const l=_.slice(),s=l.indexOf(t);if(s<0)return;l.splice(s,1);const n=l.indexOf(r);var o;n<0||(l.splice(n,0,t),i({"subscription-plans-sort-order":d(o=l),"subscription-plans":c(o,w)}))}),children:[(0,o.jsx)("span",{className:"wppb-fb-pms-plans__handle",draggable:!0,onDragStart:v(e),onDragEnd:k,role:"button","aria-label":(0,l.__)("Drag to reorder","profile-builder"),title:(0,l.__)("Drag to reorder","profile-builder"),children:(0,o.jsx)("span",{className:"dashicons dashicons-menu","aria-hidden":"true"})}),(0,o.jsx)("input",{type:"checkbox",className:"wppb-fb-pms-plans__check",checked:w.has(e),"aria-label":j(e),onChange:t=>((e,t)=>{const l=new Set(w);t?l.add(e):l.delete(e),i({"subscription-plans":c(_,l)})})(e,t.target.checked)}),(0,o.jsx)("span",{className:"wppb-fb-pms-plans__label",children:j(e)})]},e);var r})}),m.length>1&&(0,o.jsx)(r.SelectControl,{label:(0,l.__)("Selected Subscription Plan","profile-builder"),value:t["subscription-plan-selected"]||"-1",options:m,onChange:e=>i({"subscription-plan-selected":e}),help:(0,l.__)("The plan selected by default when the form loads.","profile-builder"),__nextHasNoMarginBottom:!0})]}):(0,o.jsxs)(r.Notice,{status:"warning",isDismissible:!1,children:[(0,l.__)("No active subscription plans found.","profile-builder"),x&&" ",x&&(0,o.jsx)(r.ExternalLink,{href:x,children:(0,l.__)("Create a subscription plan","profile-builder")})]})}),T=_.filter(e=>w.has(e)&&"all"!==e),N=w.has("all")||0===w.size?_.filter(e=>"all"!==e):T,A=1===N.length,F=String(t["subscription-plan-selected"]??""),P=""===F||"0"===F?N[0]||"":F;return(0,o.jsx)(n.A,{...e,inspectorPanels:S,children:(0,o.jsx)("div",{className:"wppb-fb-pms-plans-preview",children:N.length>0?N.map(e=>{const t=y(e)||{};return(0,o.jsxs)("div",{className:["wppb-fb-pms-plan",A?"is-single":""].filter(Boolean).join(" "),children:[(0,o.jsxs)("div",{className:"wppb-fb-pms-plan__row",children:[!A&&(0,o.jsx)("input",{type:"radio",disabled:!0,readOnly:!0,checked:String(P)===String(e)}),(0,o.jsx)("span",{className:"wppb-fb-pms-plan__name",children:j(e)}),t.price&&(0,o.jsx)("span",{className:"wppb-fb-pms-plan__price",children:t.price}),t.trial&&(0,o.jsx)("span",{className:"wppb-fb-pms-plan__trial",children:t.trial}),t.signUpFee&&(0,o.jsx)("span",{className:"wppb-fb-pms-plan__fee",children:t.signUpFee})]}),t.description&&(0,o.jsx)("div",{className:"wppb-fb-pms-plan__desc",children:t.description})]},e)}):(0,o.jsx)("div",{className:"wppb-fb-pms-plans-preview__empty",children:(0,l.__)("(no subscription plans available)","profile-builder")})})})}},6332(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>n});var l=i(7723),r=i(6239),s=i(790);function n(e){return(0,s.jsx)(r.A,{...e,panelTitle:(0,l.__)("Radio Settings","profile-builder"),previewType:"radio"})}},7402(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>c});var l=i(7723),r=i(6427),s=i(5978),n=i(5705),o=i(790);const a=[{value:"pb_login",label:(0,l.__)("PB Login","profile-builder")},{value:"pb_register",label:(0,l.__)("PB Register","profile-builder")},{value:"pb_recover_password",label:(0,l.__)("PB Recover Password","profile-builder")}],d=[{value:"default_wp_login",label:(0,l.__)("Default WP Login","profile-builder")},{value:"default_wp_register",label:(0,l.__)("Default WP Register","profile-builder")},{value:"default_wp_recover_password",label:(0,l.__)("Default WP Recover Password","profile-builder")}];function c(e){const{attributes:t,setAttributes:i}=e,c=(0,o.jsxs)(r.PanelBody,{title:(0,l.__)("reCAPTCHA Settings","profile-builder"),children:[(0,o.jsx)(r.SelectControl,{label:(0,l.__)("reCAPTCHA Type","profile-builder"),value:t["recaptcha-type"],options:[{label:"reCAPTCHA V2 Checkbox",value:"v2"},{label:"reCAPTCHA V2 Invisible",value:"invisible"},{label:"reCAPTCHA V3",value:"v3"}],onChange:e=>i({"recaptcha-type":e})}),(0,o.jsx)(r.TextControl,{label:(0,l.__)("Site Key","profile-builder"),value:t["public-key"],onChange:e=>i({"public-key":e})}),(0,o.jsx)(r.TextControl,{label:(0,l.__)("Secret Key","profile-builder"),value:t["private-key"],onChange:e=>i({"private-key":e})}),"v3"===t["recaptcha-type"]&&(0,o.jsx)(r.TextControl,{label:(0,l.__)("Score Threshold","profile-builder"),value:t["score-threshold"],onChange:e=>i({"score-threshold":e}),help:(0,l.__)("1.0 is very likely a good interaction, 0.0 is very likely a bot.","profile-builder")}),(0,o.jsx)(r.BaseControl,{label:(0,l.__)("Display on PB forms","profile-builder"),children:a.map(e=>(0,o.jsx)(r.CheckboxControl,{label:e.label,checked:(0,n.m)(t["captcha-pb-forms"],e.value),onChange:l=>i({"captcha-pb-forms":(0,n.U)(t["captcha-pb-forms"],e.value,l)})},e.value))}),(0,o.jsx)(r.BaseControl,{label:(0,l.__)("Display on default WP forms","profile-builder"),children:d.map(e=>(0,o.jsx)(r.CheckboxControl,{label:e.label,checked:(0,n.m)(t["captcha-wp-forms"],e.value),onChange:l=>i({"captcha-wp-forms":(0,n.U)(t["captcha-wp-forms"],e.value,l)})},e.value))})]});return(0,o.jsx)(s.A,{...e,inspectorPanels:c,children:(0,o.jsxs)("div",{style:{padding:"10px",border:"1px dashed #ccc",backgroundColor:"#fafafa",color:"#666",fontSize:"12px"},children:[(0,o.jsx)("span",{className:"dashicons dashicons-shield",style:{marginRight:"5px"}}),(0,l.__)("reCAPTCHA Placeholder","profile-builder")]})})}},9167(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>f});var l=i(7723),r=i(4715),s=i(6427),n=i(6087),o=i(6036),a=i(8565),d=i(2050),c=i(2340),p=i(790);function u(e){const t=Object.entries(e).filter(([,e])=>""!==e&&void 0!==e).map(([e,t])=>({role:e,value:String(t)}));return t.length?JSON.stringify({rules:t}):""}function f({attributes:e,setAttributes:t,clientId:i,isSelected:f=!1}){const{id:b,"field-title":h,description:m,required:x,"rpf-enable-limit":g,"rpf-limit":y,"rpf-limit-reached-message":j,"rpf-role-limit":_}=e,w=!!f,v=window.wppbFb&&window.wppbFb.repeater||{},k=Array.isArray(v.allowedBlocks)&&v.allowedBlocks.length?v.allowedBlocks:["profile-builder/field-input"],C="yes"===g;(0,o.C)(b,t);const S=(0,n.useMemo)(()=>(window.wppbFb&&window.wppbFb.formSettings&&window.wppbFb.formSettings.roles||[]).filter(e=>"default role"!==e.value),[]),T=(0,n.useMemo)(()=>function(e){if(!e)return{};try{const t=JSON.parse(e);return t&&Array.isArray(t.rules)?t.rules.reduce((e,t)=>(t&&"string"==typeof t.role&&(e[t.role]=String(t.value??"")),e),{}):{}}catch(e){return{}}}(_),[_]);return(0,p.jsxs)("div",{...(0,r.useBlockProps)({className:"wppb-fb-field-block wppb-fb-repeater-block"}),children:[w&&(0,p.jsxs)(a.h,{children:[(0,p.jsx)(s.PanelBody,{title:(0,l.__)("Repeater Settings","profile-builder"),children:(0,p.jsx)(s.TextControl,{label:(0,l.__)("Field Title","profile-builder"),value:h,onChange:e=>t({"field-title":e})})}),(0,p.jsxs)(s.PanelBody,{title:(0,l.__)("Limit","profile-builder"),initialOpen:!1,children:[(0,p.jsx)(s.CheckboxControl,{label:(0,l.__)("Enable limit","profile-builder"),checked:C,onChange:e=>t({"rpf-enable-limit":e?"yes":""}),help:(0,l.__)("Enable a limit on how many repeater groups users can add on the front-end.","profile-builder")}),C&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(s.TextControl,{label:(0,l.__)("General Limit","profile-builder"),type:"number",min:0,step:1,value:y??"0",onChange:e=>t({"rpf-limit":e}),help:(0,l.__)("Default limit for this repeater group. Leave 0 for unlimited.","profile-builder")}),(0,p.jsx)(s.TextareaControl,{label:(0,l.__)("Limit Reached Message","profile-builder"),value:j,placeholder:(0,l.__)("The maximum number of fields has been reached.","profile-builder"),onChange:e=>t({"rpf-limit-reached-message":e}),help:(0,l.__)("Popup message shown when the limit is reached.","profile-builder")}),(0,p.jsxs)(s.BaseControl,{label:(0,l.__)("Limit per Role","profile-builder"),help:(0,l.__)("Override the general limit for specific roles. Leave 0 for unlimited.","profile-builder"),children:[0===S.length&&(0,p.jsx)("em",{children:(0,l.__)("No roles available.","profile-builder")}),S.map(e=>(0,p.jsx)(s.TextControl,{label:e.label,type:"number",min:0,step:1,value:T[e.value]??"",onChange:i=>((e,i)=>{const l={...T,[e]:i};t({"rpf-role-limit":u(l)})})(e.value,i)},e.value))]})]})]}),(0,p.jsx)(d.A,{attributes:e,setAttributes:t,insideRepeater:!1})]}),(0,p.jsxs)("div",{className:"wppb-fb-repeater-block__head",children:[(0,p.jsx)("span",{className:"wppb-fb-repeater-block__icon","aria-hidden":"true",children:(0,p.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",children:[(0,p.jsx)("rect",{x:"3",y:"4",width:"18",height:"6",rx:"1.5",stroke:"currentColor",strokeWidth:"1.7"}),(0,p.jsx)("rect",{x:"3",y:"14",width:"18",height:"6",rx:"1.5",stroke:"currentColor",strokeWidth:"1.7"})]})}),(0,p.jsxs)("span",{className:"wppb-fb-repeater-block__title",children:[h||(0,l.__)("Repeater","profile-builder"),"Yes"===x&&(0,p.jsx)("span",{className:"wppb-fb-field-required",children:"*"})]}),(0,p.jsxs)("span",{className:"wppb-fb-repeater-block__meta",children:[(0,p.jsx)("span",{className:"wppb-fb-field-tag",children:(0,l.__)("Repeater","profile-builder")}),(0,p.jsx)("span",{className:"wppb-fb-field-num",children:b?(0,l.sprintf)(/* translators: %s: field id */ /* translators: %s: field id */(0,l.__)("Field #%s","profile-builder"),b):(0,l.__)("Field #…","profile-builder")})]})]}),m&&(0,p.jsx)("div",{className:"wppb-fb-repeater-block__desc",children:m}),(0,p.jsx)("div",{className:"wppb-fb-repeater-block__hint",children:(0,l.__)("Sub-fields are scoped to this Repeater — add new fields using the inserter inside this box. They can't be dragged in or out.","profile-builder")}),(0,p.jsxs)("div",{className:"wppb-fb-repeater-block__body",children:[(0,p.jsx)(r.InnerBlocks,{allowedBlocks:k,template:[["profile-builder/field-input"]],renderAppender:()=>null}),(0,p.jsx)(c.A,{rootClientId:i,label:(0,l.__)("Add sub-field","profile-builder")})]})]})}},9634(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var l=i(4715),r=i(790);function s(){return(0,r.jsx)(l.InnerBlocks.Content,{})}},5354(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=function(){const e="undefined"!=typeof window&&window.wppbFb||{},t=e.selectFields&&e.selectFields.countries||[];return Array.isArray(t)?t:[]}(),a=o.find(e=>e.value===t["default-option-country"]),d=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("Select (Country) Settings","profile-builder"),children:(0,n.jsx)(r.SelectControl,{label:(0,l.__)("Default Option","profile-builder"),value:t["default-option-country"],options:o,onChange:e=>i({"default-option-country":e}),help:(0,l.__)("The country selected by default on the form.","profile-builder")})});return(0,n.jsx)(s.A,{...e,inspectorPanels:d,children:(0,n.jsx)("select",{disabled:!0,style:{width:"100%"},children:(0,n.jsx)("option",{children:a&&a.value?a.label:(0,l.__)("(List of countries will be generated here)","profile-builder")})})})}},8955(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=function(){const e="undefined"!=typeof window&&window.wppbFb||{},t=e.selectFields&&e.selectFields.postTypes||[];return Array.isArray(t)?t:[]}(),a=(0,n.jsxs)(r.PanelBody,{title:(0,l.__)("Select (CPT) Settings","profile-builder"),children:[(0,n.jsx)(r.SelectControl,{label:(0,l.__)("Show Post Type","profile-builder"),value:t.cpt,options:o,onChange:e=>i({cpt:e}),help:(0,l.__)("Posts from this post type will be displayed in the select.","profile-builder")}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Option","profile-builder"),value:t["default-option"],onChange:e=>i({"default-option":e}),help:(0,l.__)("Enter the ID of the default post.","profile-builder")})]});return(0,n.jsx)(s.A,{...e,inspectorPanels:a,children:(0,n.jsx)("select",{disabled:!0,style:{width:"100%"},children:(0,n.jsx)("option",{children:(0,l.__)("(List of CPT posts will be generated here)","profile-builder")})})})}},7969(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=function(){const e="undefined"!=typeof window&&window.wppbFb||{},t=e.selectFields&&e.selectFields.currencies||[];return Array.isArray(t)?t:[]}(),a=o.find(e=>e.value===t["default-option-currency"]),d=(0,n.jsxs)(r.PanelBody,{title:(0,l.__)("Select (Currency) Settings","profile-builder"),children:[(0,n.jsx)(r.SelectControl,{label:(0,l.__)("Default Option","profile-builder"),value:t["default-option-currency"],options:o,onChange:e=>i({"default-option-currency":e}),help:(0,l.__)("The currency selected by default on the form.","profile-builder")}),(0,n.jsx)(r.SelectControl,{label:(0,l.__)("Show Currency Symbol","profile-builder"),value:t["show-currency-symbol"],options:[{label:(0,l.__)("No","profile-builder"),value:"No"},{label:(0,l.__)("Yes","profile-builder"),value:"Yes"}],onChange:e=>i({"show-currency-symbol":e})})]});return(0,n.jsx)(s.A,{...e,inspectorPanels:d,children:(0,n.jsx)("select",{disabled:!0,style:{width:"100%"},children:(0,n.jsx)("option",{children:a&&a.value?a.label:(0,l.__)("(List of currencies will be generated here)","profile-builder")})})})}},9636(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>n});var l=i(7723),r=i(6239),s=i(790);function n(e){return(0,s.jsx)(r.A,{...e,panelTitle:(0,l.__)("Select (Multiple) Settings","profile-builder"),previewType:"select-multiple",defaultValueAttr:"default-options",showDefaultHelp:!0})}},4681(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=function(){const e="undefined"!=typeof window&&window.wppbFb||{},t=e.selectFields&&e.selectFields.taxonomies||[];return Array.isArray(t)?t:[]}(),a=(0,n.jsxs)(r.PanelBody,{title:(0,l.__)("Select (Taxonomy) Settings","profile-builder"),children:[(0,n.jsx)(r.SelectControl,{label:(0,l.__)("Show Taxonomy Term","profile-builder"),value:t.taxonomy,options:o,onChange:e=>i({taxonomy:e}),help:(0,l.__)("Terms from this taxonomy will be displayed in the select.","profile-builder")}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Option","profile-builder"),value:t["default-option"],onChange:e=>i({"default-option":e}),help:(0,l.__)("Enter the ID of the default term.","profile-builder")})]});return(0,n.jsx)(s.A,{...e,inspectorPanels:a,children:(0,n.jsx)("select",{disabled:!0,style:{width:"100%"},children:(0,n.jsx)("option",{children:(0,l.__)("(List of taxonomy terms will be generated here)","profile-builder")})})})}},7601(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=function(){const e="undefined"!=typeof window&&window.wppbFb||{},t=e.selectFields&&e.selectFields.timezones||[];return Array.isArray(t)?t:[]}(),a=o.find(e=>e.value===t["default-option-timezone"]),d=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("Select (Timezone) Settings","profile-builder"),children:(0,n.jsx)(r.SelectControl,{label:(0,l.__)("Default Option","profile-builder"),value:t["default-option-timezone"],options:o,onChange:e=>i({"default-option-timezone":e}),help:(0,l.__)("The timezone selected by default on the form.","profile-builder")})});return(0,n.jsx)(s.A,{...e,inspectorPanels:d,children:(0,n.jsx)("select",{disabled:!0,style:{width:"100%"},children:(0,n.jsx)("option",{children:a&&a.value?a.label:(0,l.__)("(List of timezones will be generated here)","profile-builder")})})})}},554(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=function(){const e=("undefined"!=typeof window&&window.wppbFb||{}).userRoleField||{};return Array.isArray(e.roles)?e.roles:[]}(),a={};o.forEach(e=>{a[e.value]=e.label});const d=(c=t["user-roles"],(c||"").split(",").map(e=>e.trim()).filter(Boolean)).filter(e=>Object.prototype.hasOwnProperty.call(a,e));var c;const p=e=>{const t=e.join(", ");i({"user-roles":t,"user-roles-sort-order":t})},u=(e,t)=>{const i=e+t;if(i<0||i>=d.length)return;const l=[...d];[l[e],l[i]]=[l[i],l[e]],p(l)},f=(0,n.jsxs)(r.PanelBody,{title:(0,l.__)("User Role Settings","profile-builder"),children:[0===o.length?(0,n.jsx)(r.Notice,{status:"warning",isDismissible:!1,children:(0,l.__)("No selectable user roles are available on this site.","profile-builder")}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{style:{marginTop:0},children:(0,l.__)("Select which roles a user can choose from. Administrator is excluded.","profile-builder")}),o.map(e=>(0,n.jsx)(r.CheckboxControl,{label:e.label,checked:d.includes(e.value),onChange:t=>((e,t)=>{t?d.includes(e)||p([...d,e]):p(d.filter(t=>t!==e))})(e.value,t)},e.value)),d.length>1&&(0,n.jsxs)("div",{style:{marginTop:"12px"},children:[(0,n.jsx)("p",{style:{fontWeight:600,marginBottom:"4px"},children:(0,l.__)("Display order","profile-builder")}),d.map((e,t)=>(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",padding:"2px 0"},children:[(0,n.jsx)("span",{children:a[e]||e}),(0,n.jsxs)("span",{style:{display:"flex",gap:"2px"},children:[(0,n.jsx)(r.Button,{isSmall:!0,variant:"tertiary","aria-label":(0,l.__)("Move up","profile-builder"),disabled:0===t,onClick:()=>u(t,-1),children:"↑"}),(0,n.jsx)(r.Button,{isSmall:!0,variant:"tertiary","aria-label":(0,l.__)("Move down","profile-builder"),disabled:t===d.length-1,onClick:()=>u(t,1),children:"↓"})]})]},e))]})]}),(0,n.jsx)(r.CheckboxControl,{label:(0,l.__)("Display on Edit Profile","profile-builder"),help:(0,l.__)("Allow users to change their role from the Edit Profile form.","profile-builder"),checked:"yes"===t["user-roles-on-edit-profile"],onChange:e=>i({"user-roles-on-edit-profile":e?"yes":""})})]});return(0,n.jsx)(s.A,{...e,inspectorPanels:f,children:(0,n.jsxs)("select",{disabled:!0,style:{width:"100%"},children:[(0,n.jsx)("option",{children:(0,l.__)("-- Select a role --","profile-builder")}),d.map(e=>(0,n.jsx)("option",{children:a[e]||e},e))]})})}},7535(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>n});var l=i(7723),r=i(6239),s=i(790);function n(e){return(0,s.jsx)(r.A,{...e,panelTitle:(0,l.__)("Select Settings","profile-builder"),previewType:"select"})}},6636(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(6239),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.SelectControl,{label:(0,l.__)("Allow Tags","profile-builder"),value:t["select2-multiple-tags"],options:[{label:(0,l.__)("No","profile-builder"),value:"no"},{label:(0,l.__)("Yes","profile-builder"),value:"yes"}],onChange:e=>i({"select2-multiple-tags":e})}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Limit","profile-builder"),value:t["select2-multiple-limit"],onChange:e=>i({"select2-multiple-limit":e}),help:(0,l.__)("Limit the number of selections.","profile-builder")})]});return(0,n.jsx)(s.A,{...e,panelTitle:(0,l.__)("Select2 (Multiple) Settings","profile-builder"),previewType:"select-multiple",defaultValueAttr:"default-options",showDefaultHelp:!0,extraControls:o})}},3124(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>n});var l=i(7723),r=i(6239),s=i(790);function n(e){return(0,s.jsx)(r.A,{...e,panelTitle:(0,l.__)("Select2 Settings","profile-builder"),previewType:"select"})}},8037(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsxs)(r.PanelBody,{title:(0,l.__)("Textarea Settings","profile-builder"),children:[(0,n.jsx)(r.TextareaControl,{label:(0,l.__)("Default Value","profile-builder"),value:t["default-content"],onChange:e=>i({"default-content":e})}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Row Count","profile-builder"),value:t["row-count"],onChange:e=>i({"row-count":e})})]});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsx)("textarea",{disabled:!0,style:{width:"100%"},rows:t["row-count"]})})}},8010(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("Timepicker Settings","profile-builder"),children:(0,n.jsx)(r.SelectControl,{label:(0,l.__)("Time Format","profile-builder"),value:t["time-format"],options:[{label:(0,l.__)("12 Hours","profile-builder"),value:"12"},{label:(0,l.__)("24 Hours","profile-builder"),value:"24"}],onChange:e=>i({"time-format":e})})});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,n.jsx)("select",{disabled:!0,style:{marginRight:"5px",padding:"5px"},children:(0,n.jsx)("option",{children:"12"})}),(0,n.jsx)("span",{children:":"}),(0,n.jsx)("select",{disabled:!0,style:{marginLeft:"5px",padding:"5px"},children:(0,n.jsx)("option",{children:"00"})}),"12"===t["time-format"]&&(0,n.jsx)("span",{style:{marginLeft:"5px"},children:"am"})]})})}},3013(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>c});var l=i(7723),r=i(6427),s=i(5978),n=i(5705),o=i(790);const a=[{value:"pb_login",label:(0,l.__)("PB Login","profile-builder")},{value:"pb_register",label:(0,l.__)("PB Register","profile-builder")},{value:"pb_recover_password",label:(0,l.__)("PB Recover Password","profile-builder")}],d=[{value:"default_wp_login",label:(0,l.__)("Default WP Login","profile-builder")},{value:"default_wp_register",label:(0,l.__)("Default WP Register","profile-builder")},{value:"default_wp_recover_password",label:(0,l.__)("Default WP Recover Password","profile-builder")}];function c(e){const{attributes:t,setAttributes:i}=e,c=(0,o.jsxs)(r.PanelBody,{title:(0,l.__)("Turnstile Settings","profile-builder"),children:[(0,o.jsx)(r.SelectControl,{label:(0,l.__)("Turnstile Theme","profile-builder"),value:t.theme,options:[{label:(0,l.__)("Auto","profile-builder"),value:"auto"},{label:(0,l.__)("Light","profile-builder"),value:"light"},{label:(0,l.__)("Dark","profile-builder"),value:"dark"}],onChange:e=>i({theme:e})}),(0,o.jsx)(r.TextControl,{label:(0,l.__)("Site Key","profile-builder"),value:t["turnstile-site-key"],onChange:e=>i({"turnstile-site-key":e})}),(0,o.jsx)(r.TextControl,{label:(0,l.__)("Secret Key","profile-builder"),value:t["turnstile-secret-key"],onChange:e=>i({"turnstile-secret-key":e})}),(0,o.jsx)(r.BaseControl,{label:(0,l.__)("Display on PB forms","profile-builder"),children:a.map(e=>(0,o.jsx)(r.CheckboxControl,{label:e.label,checked:(0,n.m)(t["turnstile-pb-forms"],e.value),onChange:l=>i({"turnstile-pb-forms":(0,n.U)(t["turnstile-pb-forms"],e.value,l)})},e.value))}),(0,o.jsx)(r.BaseControl,{label:(0,l.__)("Display on default WP forms","profile-builder"),children:d.map(e=>(0,o.jsx)(r.CheckboxControl,{label:e.label,checked:(0,n.m)(t["turnstile-wp-forms"],e.value),onChange:l=>i({"turnstile-wp-forms":(0,n.U)(t["turnstile-wp-forms"],e.value,l)})},e.value))})]});return(0,o.jsx)(s.A,{...e,inspectorPanels:c,children:(0,o.jsxs)("div",{style:{padding:"10px",border:"1px dashed #ccc",backgroundColor:"#fafafa",color:"#666",fontSize:"12px"},children:[(0,o.jsx)("span",{className:"dashicons dashicons-shield",style:{marginRight:"5px"}}),(0,l.__)("Cloudflare Turnstile Placeholder","profile-builder")]})})}},276(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsxs)(r.PanelBody,{title:(0,l.__)("Upload Settings","profile-builder"),children:[(0,n.jsx)(r.CheckboxControl,{label:(0,l.__)("Use Simple Upload","profile-builder"),help:(0,l.__)("Use a simple upload field instead of the WordPress upload.","profile-builder"),checked:"yes"===t["simple-upload"],onChange:e=>i({"simple-upload":e?"yes":""})}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Allowed Upload Extensions","profile-builder"),value:t["allowed-upload-extensions"],onChange:e=>i({"allowed-upload-extensions":e}),help:(0,l.__)("Comma-separated list (e.g. .jpg,.png,.pdf). Default .* allows all WP-permitted extensions.","profile-builder")}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Maximum File Size (MB)","profile-builder"),value:t["max-file-size"],onChange:e=>i({"max-file-size":e}),help:(0,l.__)("Leave empty to use the server upload limit.","profile-builder")})]});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsx)("div",{style:{padding:"10px",border:"1px dashed #ccc",textAlign:"center"},children:(0,n.jsx)(r.Button,{isSecondary:!0,disabled:!0,children:(0,l.__)("Select File","profile-builder")})})})}},6870(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsxs)(r.PanelBody,{title:(0,l.__)("Validation Settings","profile-builder"),children:[(0,n.jsx)(r.TextareaControl,{label:(0,l.__)("Possible Values","profile-builder"),value:t["validation-possible-values"],onChange:e=>i({"validation-possible-values":e}),help:(0,l.__)("Enter possible values separated by comma.","profile-builder")}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Custom Error Message","profile-builder"),value:t["custom-error-message"],onChange:e=>i({"custom-error-message":e})})]});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsx)("input",{type:"text",disabled:!0,style:{width:"100%"},placeholder:(0,l.__)("Validation input...","profile-builder")})})}},705(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(846),s=i(790);const n={fieldsKey:"billingFields",csvAttr:"woo-billing-fields",nameAttr:"woo-billing-fields-name",sortAttr:"woo-billing-fields-sort-order",panelTitle:(0,l.__)("Billing Fields","profile-builder")};function o(e){return(0,s.jsx)(r.A,{...e,config:n})}},6968(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(846),s=i(790);const n={fieldsKey:"shippingFields",csvAttr:"woo-shipping-fields",nameAttr:"woo-shipping-fields-name",sortAttr:"woo-shipping-fields-sort-order",panelTitle:(0,l.__)("Shipping Fields","profile-builder")};function o(e){return(0,s.jsx)(r.A,{...e,config:n})}},3750(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{attributes:t,setAttributes:i}=e,o=(0,n.jsx)(r.PanelBody,{title:(0,l.__)("WYSIWYG Settings","profile-builder"),children:(0,n.jsx)(r.TextareaControl,{label:(0,l.__)("Default Value","profile-builder"),value:t["default-content"],onChange:e=>i({"default-content":e})})});return(0,n.jsx)(s.A,{...e,inspectorPanels:o,children:(0,n.jsxs)("div",{style:{border:"1px solid #ddd",borderRadius:"4px",overflow:"hidden"},children:[(0,n.jsxs)("div",{style:{backgroundColor:"#f1f1f1",padding:"5px",borderBottom:"1px solid #ddd",display:"flex",gap:"5px"},children:[(0,n.jsx)("span",{className:"dashicons dashicons-editor-bold"}),(0,n.jsx)("span",{className:"dashicons dashicons-editor-italic"}),(0,n.jsx)("span",{className:"dashicons dashicons-editor-ul"}),(0,n.jsx)("span",{className:"dashicons dashicons-editor-ol"})]}),(0,n.jsx)("textarea",{disabled:!0,style:{width:"100%",border:"none",padding:"10px",resize:"none"},rows:5})]})})}},9889(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>a});var l=i(7723),r=i(4715),s=i(7143),n=i(6427),o=i(790);function a({clientId:e}){const t=(0,r.useBlockProps)({className:"wppb-fb-msf-step-break"}),{stepFrom:i,stepTo:a,problem:d,titleFrom:c,titleTo:p}=(0,s.useSelect)(t=>{const i=t("core/block-editor"),l=t("core");let r=[];try{const e=t("core/editor").getCurrentPostType(),i=t("core/editor").getCurrentPostId(),s=l.getEditedEntityRecord("postType",e,i);s&&s.meta&&Array.isArray(s.meta.wppb_fb_msf_tab_titles)&&(r=s.meta.wppb_fb_msf_tab_titles)}catch(e){}if(!i||!e)return{stepFrom:0,stepTo:0,problem:"unmounted",titleFrom:"",titleTo:""};if(i.getBlockRootClientId(e))return{stepFrom:0,stepTo:0,problem:"nested",titleFrom:"",titleTo:""};const s=i.getBlocks(),n=s.findIndex(t=>t.clientId===e);if(n<0)return{stepFrom:0,stepTo:0,problem:"unmounted",titleFrom:"",titleTo:""};if(0===n)return{stepFrom:0,stepTo:0,problem:"leading",titleFrom:"",titleTo:""};if(n===s.length-1)return{stepFrom:0,stepTo:0,problem:"trailing",titleFrom:"",titleTo:""};const o=s[n-1];if(o&&"profile-builder/msf-step-break"===o.name)return{stepFrom:0,stepTo:0,problem:"adjacent",titleFrom:"",titleTo:""};let a=0;for(let e=0;e<=n;e++)s[e]&&"profile-builder/msf-step-break"===s[e].name&&a++;const d=a+1;return{stepFrom:a,stepTo:d,problem:null,titleFrom:r[a-1]||"",titleTo:r[d-1]||""}},[e]);if(d){const e={leading:(0,l.__)("Step Break placed before the first field has no effect. Move it between two fields.","profile-builder"),trailing:(0,l.__)("Step Break placed after the last field is ignored on save. Move it between two fields.","profile-builder"),adjacent:(0,l.__)("Two Step Breaks in a row only create one step boundary. Remove the duplicate or insert a field between them.","profile-builder"),nested:(0,l.__)("Step Break cannot be placed inside a Repeater. Move it to the top level of the form.","profile-builder"),unmounted:""};return(0,o.jsxs)("div",{...t,children:[(0,o.jsxs)("div",{className:"wppb-fb-msf-step-break__divider is-inert",children:[(0,o.jsx)("span",{className:"wppb-fb-msf-step-break__line"}),(0,o.jsx)("span",{className:"wppb-fb-msf-step-break__core",children:(0,o.jsx)("span",{className:"wppb-fb-msf-step-break__pill is-inert",children:(0,l.__)("Step Break","profile-builder")})}),(0,o.jsx)("span",{className:"wppb-fb-msf-step-break__line"})]}),(0,o.jsx)("div",{className:"wppb-fb-msf-step-break__caption",children:(0,l.__)("Invalid position","profile-builder")}),e[d]&&(0,o.jsx)(n.Notice,{status:"warning",isDismissible:!1,children:e[d]})]})}return(0,o.jsxs)("div",{...t,children:[(0,o.jsxs)("div",{className:"wppb-fb-msf-step-break__divider",children:[(0,o.jsx)("span",{className:"wppb-fb-msf-step-break__line"}),(0,o.jsxs)("span",{className:"wppb-fb-msf-step-break__core",children:[(0,o.jsxs)("span",{className:"wppb-fb-msf-step-break__pill",children:[(0,o.jsx)("span",{className:"wppb-fb-msf-step-break__dot is-done",children:i}),c||(0,l.sprintf)((0,l.__)("Step %d","profile-builder"),i)]}),(0,o.jsx)("span",{className:"wppb-fb-msf-step-break__arrow","aria-hidden":"true",children:(0,o.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",children:(0,o.jsx)("path",{d:"M5 12h14M14 6l6 6-6 6",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,o.jsxs)("span",{className:"wppb-fb-msf-step-break__pill",children:[(0,o.jsx)("span",{className:"wppb-fb-msf-step-break__dot",children:a}),p||(0,l.sprintf)((0,l.__)("Step %d","profile-builder"),a)]})]}),(0,o.jsx)("span",{className:"wppb-fb-msf-step-break__line"})]}),(0,o.jsx)("div",{className:"wppb-fb-msf-step-break__caption",children:(0,l.__)("Step break","profile-builder")})]})}},2383(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>o});var l=i(7723),r=i(4715),s=i(7143),n=i(790);function o({attributes:e}){const t=e["position-context"]||"top",i=(0,r.useBlockProps)({className:`wppb-fb-progress-bar wppb-fb-progress-bar--${t}`}),{calculationMode:o,displayOptions:a}=(0,s.useSelect)(e=>{try{const t=e("core/editor").getCurrentPostType(),i=e("core/editor").getCurrentPostId(),l=e("core").getEditedEntityRecord("postType",t,i),r=l&&l.meta||{};return{calculationMode:r.wppb_fb_progress_bar_calculation_mode||"All Fields",displayOptions:r.wppb_fb_progress_bar_display_options||"Bar Only"}}catch(e){return{calculationMode:"All Fields",displayOptions:"Bar Only"}}},[]),d="Bar and Percentage Label"===a,c="top"===t?(0,l.__)("Top of Form","profile-builder"):(0,l.__)("Bottom of Form","profile-builder");return(0,n.jsxs)("div",{...i,children:[(0,n.jsxs)("div",{className:"wppb-fb-progress-bar__chrome",children:[(0,n.jsx)("span",{className:"wppb-fb-progress-bar__badge",children:(0,l.__)("Progress Bar","profile-builder")}),(0,n.jsxs)("span",{className:"wppb-fb-progress-bar__meta",children:[c," · ",o]})]}),(0,n.jsxs)("div",{className:`wppb-progress-bar-container ${t}`,children:[(0,n.jsx)("div",{className:"wppb-progress-bar-fill",style:{width:"42%"}}),d&&(0,n.jsx)("div",{className:"wppb-progress-bar-text",children:(0,n.jsxs)("span",{children:[42,"%"]})})]})]})}},2340(e,t,i){"use strict";i.d(t,{A:()=>c});var l=i(4715),r=i(6427),s=i(6087),n=i(2716),o=i(6642),a=i(790);const d=()=>(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false",children:(0,a.jsx)("path",{d:"M12 5v14M5 12h14",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})});function c({rootClientId:e,label:t}){const[i,c]=(0,s.useState)("bottom center");return(0,a.jsx)(l.Inserter,{rootClientId:e,isAppender:!0,position:i,onToggle:t=>t?(0,o.Xi)({rootClientId:e}):(0,o.CR)(),renderToggle:({onToggle:e,disabled:i})=>(0,a.jsxs)(r.Button,{className:"wppb-fb-add-button",onClick:t=>{c((0,n.WW)(t.currentTarget)),e()},disabled:i,"aria-haspopup":"true","aria-label":t,children:[(0,a.jsx)(d,{}),(0,a.jsx)("span",{children:t})]})})}},5978(e,t,i){"use strict";i.d(t,{A:()=>m});var l=i(7723),r=i(4715),s=i(6427),n=i(6087),o=i(7143),a=i(2050),d=i(6036),c=i(8565),p=i(9018),u=i(790);function f(e,t,i){for(const l of e)l&&(l.clientId!==t&&i.add(l.name),Array.isArray(l.innerBlocks)&&l.innerBlocks.length&&f(l.innerBlocks,t,i));return i}const b=/[.*+?^${}()|[\]\\]/g,h=/^(.+)_[0-9]+$/;function m({attributes:e,setAttributes:t,name:i,clientId:m,children:x,inspectorPanels:g=null,isSelected:y=!1,hidePreview:j=!1,hideLabel:_=!1,hideDescription:w=!1}){const v=function(){const e="undefined"!=typeof window&&window.wppbFb||{},t=e.metaNames||{};return{blockToFieldType:(e.conditionalFields||{}).blockToFieldType||{},defaultFieldTypes:t.defaultFieldTypes||[],defaultMetaNames:t.defaultMetaNames||{},fixedMetaNameFieldTypes:t.fixedMetaNameFieldTypes||[],noMetaNameFieldTypes:t.noMetaNameFieldTypes||[],noOverwriteFieldTypes:t.noOverwriteFieldTypes||[],reservedNames:t.reservedNames||[],reservedSubstrings:t.reservedSubstrings||[],customFieldPrefix:t.customFieldPrefix||"custom_field_",maxLength:t.maxLength||255,uploadFieldType:t.uploadFieldType||"Upload"}}(),k=v.blockToFieldType[i]||"",C=v.defaultFieldTypes.includes(k),S=v.fixedMetaNameFieldTypes.includes(k),T=!v.noMetaNameFieldTypes.includes(k),N=T&&!C&&!S,A=T&&!C&&!v.noOverwriteFieldTypes.includes(k),F=(0,o.useSelect)(e=>{if(!y)return[];const t=e("core/block-editor");if(!t)return[];const l=f(t.getBlocks(),m,new Set);return function(e,t){const i="undefined"!=typeof window&&window.wppbFb||{},l=i.uniqueness||{},r=Array.isArray(l.exclusiveBlockGroups)?l.exclusiveBlockGroups:[],s=i.conditionalFields&&i.conditionalFields.blockToFieldType||{},n=[];for(const i of r)if(i.includes(e))for(const l of i)l!==e&&t.has(l)&&n.push(s[l]||l);return n}(i,l)},[i,m,y]),P=!!y,{id:B,"field-title":M,"meta-name":I,description:D,required:O,"overwrite-existing":E}=e,L=(0,o.useSelect)(e=>{const t=e("core/block-editor");if(!t||!m)return!1;const i=t.getBlockParents(m);for(const e of i){const i=t.getBlock(e);if(i&&i.name===p.V)return!0}return!1},[m]),R=(0,o.useSelect)(t=>{if(!y)return null;if(!N)return null;const i=e["meta-name"];if(!i)return null;const l=t("core/block-editor");if(!l)return null;const{subMetaNames:r,allMetaNames:s}=function(e,t,i){const l=[],r=[],s=(e,n)=>{for(const o of e){if(!o||o.clientId===t)continue;const e=o.attributes&&o.attributes["meta-name"];if(e&&(r.push(e),n&&l.push(e)),Array.isArray(o.innerBlocks)&&o.innerBlocks.length){const e=n||o.name===i;s(o.innerBlocks,e)}}};return s(e,!1),{subMetaNames:l,allMetaNames:r}}(l.getBlocks(),m,p.V);return function(e,t,i,l){if("string"!=typeof e||""===e)return null;const r=e.match(h);if(r){const e=r[1];for(const t of i)if(t&&t===e)return{direction:"forward",conflictName:t}}if(t)for(const t of l){if(!t)continue;const i=t.match(h);if(i&&i[1]===e)return{direction:"reverse",conflictName:t}}return null}(i,L,r,s)},[m,e["meta-name"],N,L,y]),V=(0,n.useRef)(void 0),W=new RegExp("^"+v.customFieldPrefix.replace(b,"\\$&")+"\\d+$"),q=N&&"Yes"!==E&&V.current&&V.current!==I&&W.test(I||"")?V.current:null;(0,d.C)(B,t);const $=(0,n.useRef)(I);(0,n.useEffect)(()=>{void 0===$.current&&void 0!==I&&($.current=I)},[I]);const z=N?function(e,t,i){if("string"!=typeof e&&(e=""),""===e)return null;if(/\s/.test(e))return(0,l.__)("Meta key cannot contain whitespace.","profile-builder");if(t===i.uploadFieldType&&!/^[a-z0-9_\-]+$/.test(e))return(0,l.__)("Upload fields require lowercase letters, digits, underscores or hyphens only.","profile-builder");if(e.length>i.maxLength)return(0,l.sprintf)(/* translators: %d: maximum number of characters */ /* translators: %d: maximum number of characters */
2 +(0,l.__)("Meta key is too long (max %d characters).","profile-builder"),i.maxLength);if(i.reservedNames.includes(e))return(0,l.__)("This meta key is reserved by WordPress and cannot be used.","profile-builder");for(const t of i.reservedSubstrings)if(e.toLowerCase().includes(t))return(0,l.sprintf)(/* translators: %s: reserved substring */ /* translators: %s: reserved substring */
3 +(0,l.__)('"%s" is reserved and cannot appear in a meta key.',"profile-builder"),t);return null}(I,k,v):null,J=N&&B>0&&void 0!==$.current&&I!==$.current&&""!==$.current,H=N?(0,l.sprintf)(/* translators: %s: example custom_field_? */ /* translators: %s: example custom_field_? */
4 +(0,l.__)("auto-generated on save (e.g. %s?)","profile-builder"),v.customFieldPrefix):"";return(0,u.jsxs)("div",{...(0,r.useBlockProps)({className:"wppb-fb-field-block"}),children:[P&&(0,u.jsxs)(c.h,{children:[(0,u.jsxs)(s.PanelBody,{title:(0,l.__)("Field Settings","profile-builder"),children:[(0,u.jsx)(s.TextControl,{label:(0,l.__)("Field Title","profile-builder"),value:M,onChange:e=>t({"field-title":e})}),T&&N&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.TextControl,{label:(0,l.__)("Meta Name","profile-builder"),value:I||"",onChange:e=>{V.current=e,t({"meta-name":e})},placeholder:H,help:z||(0,l.__)("The wp_usermeta key used to store this field value. Leave blank to auto-generate.","profile-builder"),className:z?"wppb-fb-meta-name-invalid":void 0}),J&&(0,u.jsx)(s.Notice,{status:"warning",isDismissible:!1,children:(0,l.__)("Renaming the meta key on a saved field leaves user data under the old key. Existing entries will not be migrated automatically.","profile-builder")}),R&&(0,u.jsx)(s.Notice,{status:"warning",isDismissible:!1,children:"forward"===R.direction?(0,l.sprintf)(/* translators: 1: typed meta name, 2: conflicting sub-field meta name */ /* translators: 1: typed meta name, 2: conflicting sub-field meta name */
5 +(0,l.__)('"%1$s" matches the runtime pattern of Repeater sub-field "%2$s" (which writes to keys like %2$s_1, %2$s_2 …). On save the server will store this field as "%1$s_pb" to avoid clobbering that sub-field\'s data.',"profile-builder"),I,R.conflictName):(0,l.sprintf)(/* translators: 1: typed sub-field meta name, 2: conflicting other meta name */ /* translators: 1: typed sub-field meta name, 2: conflicting other meta name */
6 +(0,l.__)('Sub-field "%1$s" would write to keys like %1$s_1, %1$s_2 … which conflicts with existing meta key "%2$s". On save the server will store this sub-field as "%1$s_pb" to avoid clobbering "%2$s".',"profile-builder"),I,R.conflictName)}),q&&!R&&(0,u.jsx)(s.Notice,{status:"warning",isDismissible:!1,children:(0,l.sprintf)(/* translators: 1: the (duplicate) meta key the user entered, 2: the auto-allocated meta key it was replaced with */ /* translators: 1: the (duplicate) meta key the user entered, 2: the auto-allocated meta key it was replaced with */
7 +(0,l.__)('The meta key "%1$s" is already used by another field, so it was replaced with "%2$s" to keep keys unique. Enable "Overwrite existing user meta" below to intentionally share this key.',"profile-builder"),q,I)})]}),T&&!N&&(0,u.jsx)(s.TextControl,{label:(0,l.__)("Meta Name","profile-builder"),value:I||v.defaultMetaNames[k]||"",disabled:!0,help:C?(0,l.__)("Default field — meta key is fixed and cannot be changed.","profile-builder"):(0,l.__)("This field type uses a fixed meta key that cannot be changed.","profile-builder"),onChange:()=>{}}),A&&(0,u.jsx)(s.ToggleControl,{label:(0,l.__)("Overwrite existing user meta","profile-builder"),checked:"Yes"===E,onChange:e=>t({"overwrite-existing":e?"Yes":"No"}),help:(0,l.__)("Allow saving even if the meta key already exists in wp_usermeta. Use with care — incoming submissions will overwrite stored values.","profile-builder")}),void 0!==D&&!w&&(0,u.jsx)(s.TextareaControl,{label:(0,l.__)("Description","profile-builder"),value:D,onChange:e=>t({description:e})}),void 0!==O&&(0,u.jsx)(s.SelectControl,{label:(0,l.__)("Required","profile-builder"),value:O,options:[{label:(0,l.__)("No","profile-builder"),value:"No"},{label:(0,l.__)("Yes","profile-builder"),value:"Yes"}],onChange:e=>t({required:e})})]}),g,(0,u.jsx)(a.A,{attributes:e,setAttributes:t,insideRepeater:L})]}),!_&&(0,u.jsxs)("div",{className:"wppb-fb-field-label",children:[M,"Yes"===O&&(0,u.jsx)("span",{className:"wppb-fb-field-required",children:"*"})]}),F.length>0&&(0,u.jsx)(s.Notice,{status:"warning",isDismissible:!1,children:(0,l.sprintf)(/* translators: %s: conflicting field type name */ /* translators: %s: conflicting field type name */
8 +(0,l.__)("This field cannot coexist with %s. The form will only keep one of them on save — remove the other to choose which.","profile-builder"),F.join(", "))}),!j&&(0,u.jsx)("div",{className:"wppb-fb-field-preview",children:x||(0,u.jsx)("input",{type:"text",disabled:!0,style:{width:"100%"}})}),D&&(0,u.jsx)("div",{className:"wppb-fb-field-desc",children:D}),(0,u.jsxs)("div",{className:"wppb-fb-field-meta",children:[k&&(0,u.jsx)("span",{className:"wppb-fb-field-tag",children:k}),(0,u.jsx)("span",{className:"wppb-fb-field-num",children:B?(0,l.sprintf)(/* translators: %s: field id */ /* translators: %s: field id */(0,l.__)("Field #%s","profile-builder"),B):(0,l.__)("Field #…","profile-builder")})]})]})}},2050(e,t,i){"use strict";i.d(t,{A:()=>v});var l=i(7723),r=i(6427),s=i(7143),n=i(6087),o=i(7962),a=i(790);const d=["is","is not","less than","more than"],c=["less than","more than"],p=()=>(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false",children:(0,a.jsx)("path",{d:"M12 5v14M5 12h14",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})});function u(){const e=("undefined"!=typeof window&&window.wppbFb||{}).conditionalFields||{};return{blockToFieldType:e.blockToFieldType||{},notAllowedAsSource:e.notAllowedAsSource||[],numericFieldTypes:e.numericFieldTypes||[],restRoot:e.restRoot||"",restNonce:e.restNonce||""}}function f(e,t,i=new Map){for(const l of e){const e=t.blockToFieldType[l.name],r=l.attributes?.id;e&&r&&i.set(r,{title:l.attributes["field-title"]||`(field #${r})`,fieldType:e,attributes:l.attributes}),l.innerBlocks&&l.innerBlocks.length&&f(l.innerBlocks,t,i)}return i}function b({sourceField:e,value:t,onChange:i}){const s=u(),[o,d]=(0,n.useState)(null),[c,p]=(0,n.useState)(!1),f=e&&["Select (CPT)","Select (Taxonomy)","Select (User Role)","Select (Country)","Select (Currency)"].includes(e.fieldType),b=f?e.fieldType+"|"+(e.attributes?.cpt||e.attributes?.taxonomy||e.attributes?.["user-roles"]||""):null;if((0,n.useEffect)(()=>{if(!f||!b||!s.restRoot)return void d(null);let t=!1;p(!0);const i=new URLSearchParams({field_type:e.fieldType});return e.attributes?.cpt&&i.set("cpt",e.attributes.cpt),e.attributes?.taxonomy&&i.set("taxonomy",e.attributes.taxonomy),e.attributes?.["user-roles"]&&i.set("user_roles",e.attributes["user-roles"]),fetch(s.restRoot+"?"+i.toString(),{credentials:"same-origin",headers:{"X-WP-Nonce":s.restNonce}}).then(e=>e.json()).then(e=>{t||d(e&&e.values?e:{values:[],labels:[]})}).catch(()=>{t||d({values:[],labels:[]})}).finally(()=>{t||p(!1)}),()=>{t=!0}},[b]),!e)return(0,a.jsx)(r.TextControl,{label:(0,l.__)("Value","profile-builder"),value:t,onChange:i});let h=[],m=[];const x=e.attributes?.options;if("string"==typeof x&&""!==x.trim()){h=x.split(",").map(e=>e.trim());const t=e.attributes?.labels;m="string"==typeof t&&""!==t.trim()?t.split(",").map(e=>e.trim()):h}const g=o?.values||[],y=o?.labels||[];if(f){if(c)return(0,a.jsx)(r.TextControl,{label:(0,l.__)("Value","profile-builder"),value:t,disabled:!0});if(0===g.length)return(0,a.jsx)(r.TextControl,{label:(0,l.__)("Value","profile-builder"),value:t,onChange:i,help:(0,l.__)("No options resolved from server. Type the value/ID directly.","profile-builder")});const e=[{label:(0,l.__)("Choose…","profile-builder"),value:""},...g.map((e,t)=>({value:e,label:y[t]||e}))];return(0,a.jsx)(r.SelectControl,{label:(0,l.__)("Value","profile-builder"),value:t,options:e,onChange:i})}if(h.length>0){const e=[{label:(0,l.__)("Choose…","profile-builder"),value:""},...h.map((e,t)=>({value:e,label:m[t]||e}))];return(0,a.jsx)(r.SelectControl,{label:(0,l.__)("Value","profile-builder"),value:t,options:e,onChange:i})}return(0,a.jsx)(r.TextControl,{label:(0,l.__)("Value","profile-builder"),value:t,onChange:i})}function h({attributes:e,setAttributes:t}){const i=u(),h="yes"===e["conditional-logic-enabled"],m=(0,n.useMemo)(()=>function(e){if(!e)return{action_type:"show",logic_type:"all",rules:[]};let t;try{t=JSON.parse(e)}catch(e){return{action_type:"show",logic_type:"all",rules:[]}}let i=t.rules;return i&&!Array.isArray(i)&&(i=Object.keys(i).map(e=>i[e])),{action_type:"hide"===t.action_type?"hide":"show",logic_type:"any"===t.logic_type?"any":"all",rules:Array.isArray(i)?i:[]}}(e["conditional-logic"]),[e["conditional-logic"]]),x=(0,s.useSelect)(e=>f(e("core/block-editor").getBlocks(),i),[]),g=(0,o.Qt)(),y=(0,n.useMemo)(()=>function(e,t,i,l){const r=new Set,s=[],n=(e,t)=>e&&e!==l&&t&&!i.notAllowedAsSource.includes(t);t.forEach((e,t)=>{n(t,e.fieldType)&&(r.add(t),s.push({id:t,title:e.title,fieldType:e.fieldType,attributes:e.attributes,inForm:!0}))});for(const t of e){const e=t.id;r.has(e)||n(e,t.fieldType)&&s.push({id:e,title:t.title||`(field #${e})`,fieldType:t.fieldType,attributes:t.attributes||{},inForm:!1})}return s}(g,x,i,e.id),[g,x,e.id]),j=(0,n.useMemo)(()=>{const e={};return y.forEach(t=>{e[t.id]=t}),e},[y]),_=(0,n.useMemo)(()=>{const e=(e,t)=>e.title.localeCompare(t.title);return{inForm:y.filter(e=>e.inForm).sort(e),offForm:y.filter(e=>!e.inForm).sort(e)}},[y]);function w(e){t({"conditional-logic":JSON.stringify(e)})}const v=m.rules;function k(e,t){w({...m,rules:v.map((i,l)=>l===e?{...i,...t}:i)})}return(0,a.jsxs)(r.PanelBody,{title:(0,l.__)("Conditional Logic","profile-builder"),initialOpen:!1,children:[(0,a.jsx)(r.ToggleControl,{label:(0,l.__)("Enable conditional logic","profile-builder"),checked:h,onChange:function(i){t(i?{"conditional-logic-enabled":"yes","conditional-logic":e["conditional-logic"]||JSON.stringify({action_type:"show",logic_type:"all",rules:[]})}:{"conditional-logic-enabled":""})}}),h&&(0,a.jsxs)(a.Fragment,{children:[!e.id&&(0,a.jsx)(r.Notice,{status:"warning",isDismissible:!1,children:(0,l.__)("Save the form once so this field gets an ID before referencing it from other rules.","profile-builder")}),(0,a.jsxs)(r.Flex,{children:[(0,a.jsx)(r.FlexItem,{children:(0,a.jsx)(r.SelectControl,{label:(0,l.__)("Action","profile-builder"),value:m.action_type,options:[{label:(0,l.__)("Show","profile-builder"),value:"show"},{label:(0,l.__)("Hide","profile-builder"),value:"hide"}],onChange:function(e){w({...m,action_type:e})}})}),(0,a.jsx)(r.FlexItem,{children:(0,a.jsx)(r.SelectControl,{label:(0,l.__)("Match","profile-builder"),value:m.logic_type,options:[{label:(0,l.__)("All rules","profile-builder"),value:"all"},{label:(0,l.__)("Any rule","profile-builder"),value:"any"}],onChange:function(e){w({...m,logic_type:e})}})})]}),0===y.length&&(0,a.jsx)(r.Notice,{status:"info",isDismissible:!1,children:(0,l.__)("No fields available as rule sources yet. Add a field to this form or to the global field list first.","profile-builder")}),0===v.length&&y.length>0&&(0,a.jsx)("p",{style:{margin:"8px 0 0",color:"#757575"},children:(0,l.__)("No rules yet. Add a rule to control when this field is shown.","profile-builder")}),v.map((e,t)=>{const s=j[Number(e.field)],n=s&&i.numericFieldTypes.includes(s.fieldType),o=e.field?Number(e.field):0,p=!(!o||s&&s.inForm),u=e=>`${e.title} [${e.fieldType}]`,f=_.inForm,h=_.offForm,x=[{label:(0,l.__)("Choose…","profile-builder"),value:""}];f.length&&(h.length&&x.push({value:"__hdr_in_form__",label:"── "+(0,l.__)("In this form","profile-builder")+" ──",disabled:!0}),f.forEach(e=>x.push({value:String(e.id),label:u(e)}))),h.length&&(x.push({value:"__hdr_off_form__",label:"── "+(0,l.__)("Not in this form","profile-builder")+" ──",disabled:!0}),h.forEach(e=>x.push({value:String(e.id),label:u(e)}))),o&&!s&&(x.push({value:"__hdr_missing__",label:"── "+(0,l.__)("Missing field","profile-builder")+" ──",disabled:!0}),x.push({value:String(o),label:`(${(0,l.__)("missing field","profile-builder")} #${o})`}));const g={is:(0,l.__)("is","profile-builder"),"is not":(0,l.__)("is not","profile-builder"),"less than":(0,l.__)("less than","profile-builder"),"more than":(0,l.__)("more than","profile-builder")},y=d.map(e=>({label:g[e]||e,value:e,disabled:c.includes(e)&&s&&!n}));return(0,a.jsxs)("div",{style:{border:"1px solid #ddd",padding:"8px",marginTop:"8px",borderRadius:"3px"},children:[(0,a.jsx)(r.SelectControl,{label:(0,l.__)("Field","profile-builder"),value:e.field?String(e.field):"",options:x,onChange:e=>k(t,{field:e?String(Number(e)):"",value:""})}),p&&(0,a.jsx)(r.Notice,{status:"warning",isDismissible:!1,children:s?(0,l.__)("This rule references a field that is not in this form, so the rule will never trigger for the form.","profile-builder"):(0,l.__)("This rule references a field that no longer exists. Pick a different field or remove the rule.","profile-builder")}),(0,a.jsx)(r.SelectControl,{label:(0,l.__)("Operator","profile-builder"),value:e.operator||"is",options:y,onChange:e=>k(t,{operator:e})}),(0,a.jsx)(b,{sourceField:s,value:e.value||"",onChange:e=>k(t,{value:e})}),(0,a.jsx)(r.Flex,{justify:"flex-end",style:{marginTop:"8px"},children:(0,a.jsx)(r.Button,{variant:"tertiary",size:"small",isDestructive:!0,onClick:()=>function(e){w({...m,rules:v.filter((t,i)=>i!==e)})}(t),children:(0,l.__)("Remove","profile-builder")})})]},t)}),(0,a.jsx)(r.Button,{variant:"secondary",icon:(0,a.jsx)(p,{}),onClick:function(){w({...m,rules:[...v,{field:"",operator:"is",value:""}]})},style:{marginTop:"12px"},children:(0,l.__)("Add rule","profile-builder")})]})]})}function m(e){return e?e.split(",").map(e=>e.trim()).filter(Boolean):[]}function x(e,t){return m(e).includes(t)}function g(e,t,i){if("all"===t)return"all";let l=m(e).filter(e=>"all"!==e);return i&&!l.includes(t)&&l.push(t),i||(l=l.filter(e=>e!==t)),0===l.length?"all":l.join(", ")}function y({attributes:e,setAttributes:t}){const i="undefined"!=typeof window&&window.wppbFb&&window.wppbFb.fieldVisibility||null;if(!i)return null;const s=e.visibility||"all",n=e["user-role-visibility"]||"all",o=e["location-visibility"]||"all",d=i.userRoles||{},c=i.locations||{},p=i.visibilityOptions||{},u=Object.keys(p).map(e=>({value:e,label:p[e]}));return(0,a.jsxs)(r.PanelBody,{title:(0,l.__)("Field Visibility","profile-builder"),initialOpen:!1,children:[(0,a.jsx)(r.SelectControl,{label:(0,l.__)("Visibility","profile-builder"),value:s,options:u,onChange:e=>t({visibility:e}),help:(0,l.__)("Admin Only: visible only for administrators. User Locked: visible for everyone, but only administrators can edit.","profile-builder")}),(0,a.jsx)("p",{style:{marginTop:"1em",marginBottom:"0.25em",fontWeight:600},children:(0,l.__)("User Role Visibility","profile-builder")}),(0,a.jsx)(r.CheckboxControl,{label:(0,l.__)("All","profile-builder"),checked:x(n,"all"),onChange:e=>t({"user-role-visibility":g(n,"all",e)})}),Object.keys(d).map(e=>(0,a.jsx)(r.CheckboxControl,{label:d[e],checked:x(n,e),onChange:i=>t({"user-role-visibility":g(n,e,i)})},e)),(0,a.jsx)("p",{style:{color:"#757575",fontSize:"12px",marginTop:"0.25em"},children:(0,l.__)("Select which user roles see this field.","profile-builder")}),(0,a.jsx)("p",{style:{marginTop:"1em",marginBottom:"0.25em",fontWeight:600},children:(0,l.__)("Location Visibility","profile-builder")}),(0,a.jsx)(r.CheckboxControl,{label:(0,l.__)("All","profile-builder"),checked:x(o,"all"),onChange:e=>t({"location-visibility":g(o,"all",e)})}),Object.keys(c).map(e=>(0,a.jsx)(r.CheckboxControl,{label:c[e],checked:x(o,e),onChange:i=>t({"location-visibility":g(o,e,i)})},e)),(0,a.jsx)("p",{style:{color:"#757575",fontSize:"12px",marginTop:"0.25em"},children:(0,l.__)("Select the locations you wish the field to appear.","profile-builder")})]})}function j({attributes:e,setAttributes:t}){const i="yes"===e["edit-profile-approved-by-admin"];return(0,a.jsx)(r.PanelBody,{title:(0,l.__)("Admin Approval","profile-builder"),initialOpen:!1,children:(0,a.jsx)(r.ToggleControl,{label:(0,l.__)("Requires admin approval on Edit Profile","profile-builder"),checked:i,onChange:e=>t({"edit-profile-approved-by-admin":e?"yes":""}),help:(0,l.__)("When a non-admin user edits their profile, this field's value is held for admin review instead of being saved directly. Affects every form this field appears in.","profile-builder")})})}function _({attributes:e,setAttributes:t,insideRepeater:i=!1}){const s="undefined"!=typeof window&&window.wppbFb||{},n=Array.isArray(s.extraControls)?s.extraControls:[],o=new Set,d=[];for(let t=n.length-1;t>=0;t--){const l=n[t];l&&l.attribute&&!o.has(l.attribute)&&Object.prototype.hasOwnProperty.call(e,l.attribute)&&(i&&l.hideInsideRepeater||(o.add(l.attribute),d.unshift(l)))}return 0===d.length?null:(0,a.jsx)(r.PanelBody,{title:(0,l.__)("Additional Settings","profile-builder"),initialOpen:!1,children:d.map(i=>{if("toggle"===i.control){const l=null!=i.onValue?i.onValue:"Yes",s=null!=i.offValue?i.offValue:"No";return(0,a.jsx)(r.ToggleControl,{label:i.label||i.attribute,help:i.help||void 0,checked:e[i.attribute]===l,onChange:e=>t({[i.attribute]:e?l:s})},i.attribute)}return(0,a.jsx)(r.TextControl,{label:i.label||i.attribute,help:i.help||void 0,type:"number"===i.control?"number":"text",value:null!=e[i.attribute]?e[i.attribute]:"",onChange:e=>t({[i.attribute]:e})},i.attribute)})})}const w=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function v({attributes:e,setAttributes:t,insideRepeater:i=!1}){const l=!1!==window.wppbFb?.conditionalFields?.available,r=w(e,"conditional-logic-enabled")&&!i&&l,s=w(e,"visibility")&&!i,n=w(e,"edit-profile-approved-by-admin");return(0,a.jsxs)(a.Fragment,{children:[r&&(0,a.jsx)(h,{attributes:e,setAttributes:t}),s&&(0,a.jsx)(y,{attributes:e,setAttributes:t}),n&&(0,a.jsx)(j,{attributes:e,setAttributes:t}),(0,a.jsx)(_,{attributes:e,setAttributes:t,insideRepeater:i})]})}},8565(e,t,i){"use strict";var l=i(6427);const{Fill:r,Slot:s}=(0,l.createSlotFill)("WppbFbFieldSettings"),n=r,o=s;i.d(t,["h",0,n,"k",0,o])},6239(e,t,i){"use strict";i.d(t,{A:()=>a});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e,t,i){const r=t.length>0?t:null;if("radio"===e||"checkbox"===e){const t="radio"===e?"wppb-fb-radios":"wppb-fb-checkboxes";return(0,n.jsx)("div",{className:t,children:r?r.map((t,l)=>(0,n.jsxs)("div",{style:{marginBottom:"5px"},children:[(0,n.jsx)("input",{type:e,disabled:!0}),(0,n.jsx)("label",{style:{marginLeft:"5px"},children:i[l]?i[l].trim():t.trim()})]},l)):(0,n.jsx)("div",{children:(0,l.__)("(no options defined)","profile-builder")})})}const s="select-multiple"===e;return(0,n.jsx)("select",{disabled:!0,multiple:s,style:s?{width:"100%",height:"100px"}:{width:"100%"},children:r?r.map((e,t)=>(0,n.jsx)("option",{value:e.trim(),children:i[t]?i[t].trim():e.trim()},t)):(0,n.jsx)("option",{children:(0,l.__)("(no options defined)","profile-builder")})})}function a({panelTitle:e,previewType:t="select",defaultValueAttr:i="default-option",showDefaultHelp:a=!1,extraControls:d=null,...c}){const{attributes:p,setAttributes:u}=c,f=(0,n.jsxs)(r.PanelBody,{title:e,children:[(0,n.jsx)(r.TextareaControl,{label:(0,l.__)("Options","profile-builder"),value:p.options,onChange:e=>u({options:e}),help:(0,l.__)("Enter options separated by comma.","profile-builder")}),(0,n.jsx)(r.TextareaControl,{label:(0,l.__)("Labels","profile-builder"),value:p.labels,onChange:e=>u({labels:e}),help:(0,l.__)("Enter labels separated by comma. If empty, options will be used.","profile-builder")}),(0,n.jsx)(r.TextControl,{label:(0,l.__)("Default Value","profile-builder"),value:p[i],onChange:e=>u({[i]:e}),help:a?(0,l.__)("Enter default selected options separated by comma.","profile-builder"):void 0}),d]}),b=p.options?p.options.split(","):[],h=p.labels?p.labels.split(","):[];return(0,n.jsx)(s.A,{...c,inspectorPanels:f,children:o(t,b,h)})}},2533(e,t,i){"use strict";i.d(t,{A:()=>o});var l=i(7723),r=i(6427),s=i(5978),n=i(790);function o(e){const{config:t,...i}=e,{attributes:o,setAttributes:a}=e,d="undefined"!=typeof window&&window.wppbFb||{},c=t&&d[t.bridgeKey]||{},p=Array.isArray(c.lists)?c.lists:[],u=c.settingsUrl||"",f=(e,t)=>a({[e]:t?"yes":""}),b=(0,n.jsxs)(r.PanelBody,{title:`${t.serviceLabel} ${(0,l.__)("Settings","profile-builder")}`,children:[p.length>0?(0,n.jsx)(r.SelectControl,{label:t.listLabel,value:o[t.listAttr]||"",options:[{value:"",label:(0,l.__)("Select a list…","profile-builder")},...p],onChange:e=>a({[t.listAttr]:e}),help:(0,l.__)("The list new subscribers are added to.","profile-builder")}):(0,n.jsxs)(r.Notice,{status:"warning",isDismissible:!1,children:[(0,l.__)("No lists available — configure the integration in its settings page, then reopen this form.","profile-builder"),u&&" ",u&&(0,n.jsx)(r.ExternalLink,{href:u,children:`${t.serviceLabel} ${(0,l.__)("settings","profile-builder")}`})]}),t.defaultCheckedAttr&&(0,n.jsx)(r.ToggleControl,{label:(0,l.__)("Checked by default (register forms)","profile-builder"),checked:"yes"===o[t.defaultCheckedAttr],onChange:e=>f(t.defaultCheckedAttr,e),help:(0,l.__)("Pre-check the subscribe box on registration forms.","profile-builder")}),(0,n.jsx)(r.ToggleControl,{label:(0,l.__)("Hide on Edit Profile forms","profile-builder"),checked:"yes"===o[t.hideFieldAttr],onChange:e=>f(t.hideFieldAttr,e)})]});return(0,n.jsx)(s.A,{...i,inspectorPanels:b,hideDescription:!0,children:(0,n.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,n.jsx)("input",{type:"checkbox",disabled:!0,readOnly:!0,checked:!!t.defaultCheckedAttr&&"yes"===o[t.defaultCheckedAttr]}),(0,n.jsx)("span",{children:o["field-title"]})]})})}},846(e,t,i){"use strict";i.d(t,{A:()=>u});var l=i(7723),r=i(6427),s=i(6087),n=i(5978),o=i(790);const a="required_";function d(e){return e?e.split(",").map(e=>e.trim()).filter(Boolean):[]}function c(e,t,i){const l=[];for(const r of e)t.has(r)&&(l.push(r),i.has(r)&&l.push(a+r));return l.join(",")}function p(e){return e.length?e.join(", "):""}function u(e){const{config:t,...i}=e,{attributes:u,setAttributes:f}=e,b=(0,s.useRef)(null),[h,m]=(0,s.useState)(null),x=("undefined"!=typeof window&&window.wppbFb||{}).woocommerce||{},g=Array.isArray(x[t.fieldsKey])?x[t.fieldsKey]:[],y=g.map(e=>e.key),j=e=>g.find(t=>t.key===e),_=y.find(e=>e.endsWith("_country")),w=y.find(e=>e.endsWith("_state")),v=function(e,t){const i=new Set,l=[];for(const r of d(e))0!==r.indexOf(a)&&t.includes(r)&&!i.has(r)&&(i.add(r),l.push(r));for(const e of t)i.has(e)||l.push(e);return l}(u[t.sortAttr]||"",y),k=u[t.csvAttr]||"",C=""===k?{included:new Set(y),required:new Set(g.filter(e=>"Yes"===e.required).map(e=>e.key))}:function(e,t){const i=new Set,l=new Set;for(const r of d(e))0===r.indexOf(a)?i.add(r.slice(9)):t.includes(r)&&l.add(r);return{included:l,required:i}}(k,y);let S={};try{S=JSON.parse(u[t.nameAttr]||"{}")||{}}catch(e){S={}}const T=(e,i,l)=>f({[t.csvAttr]:c(v,e,i),[t.nameAttr]:JSON.stringify(l)}),N=e=>t=>{b.current=e,t.stopPropagation();try{t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",e)}catch(e){}const i=t.currentTarget.closest(".wppb-fb-woo-fields__row");i&&t.dataTransfer.setDragImage&&t.dataTransfer.setDragImage(i,10,10)},A=()=>{b.current=null,m(null)},F=e=>t=>{null!=b.current&&(t.preventDefault(),t.dataTransfer.dropEffect="move",h!==e&&m(e))},P=(0,o.jsx)(r.PanelBody,{title:t.panelTitle,children:0===g.length?(0,o.jsx)("p",{children:(0,l.__)("WooCommerce field list unavailable — activate the WooCommerce integration.","profile-builder")}):(0,o.jsxs)("div",{className:"wppb-fb-woo-fields",children:[(0,o.jsxs)("div",{className:"wppb-fb-woo-fields__head",children:[(0,o.jsx)("span",{className:"wppb-fb-woo-fields__head-name",children:(0,l.__)("Field Name","profile-builder")}),(0,o.jsx)("span",{className:"wppb-fb-woo-fields__head-req",children:(0,l.__)("Required","profile-builder")})]}),v.map(e=>{const i=j(e);if(!i)return null;const r=(e=>C.included.has(e))(e),s=["wppb-fb-woo-fields__row",r?"is-included":"",h===e?"is-drag-over":""].filter(Boolean).join(" ");return(0,o.jsxs)("div",{className:s,onDragOver:F(e),onDrop:(n=e,e=>{e.preventDefault(),e.stopPropagation();const i=b.current;if(b.current=null,m(null),!i||i===n)return;const l=v.slice(),r=l.indexOf(i);if(r<0)return;l.splice(r,1);const s=l.indexOf(n);var o;s<0||(l.splice(s,0,i),o=l,f({[t.sortAttr]:p(o),[t.csvAttr]:c(o,C.included,C.required)}))}),children:[(0,o.jsx)("span",{className:"wppb-fb-woo-fields__handle",draggable:!0,onDragStart:N(e),onDragEnd:A,role:"button","aria-label":(0,l.__)("Drag to reorder","profile-builder"),title:(0,l.__)("Drag to reorder","profile-builder"),children:(0,o.jsx)("span",{className:"dashicons dashicons-menu","aria-hidden":"true"})}),(0,o.jsx)("input",{type:"checkbox",className:"wppb-fb-woo-fields__include",checked:r,"aria-label":i.label,onChange:t=>((e,t)=>{const i=new Set(C.included),l=new Set(C.required);t?i.add(e):(i.delete(e),l.delete(e),e===_&&w&&(i.delete(w),l.delete(w))),T(i,l,S)})(e,t.target.checked)}),(0,o.jsxs)("div",{className:"wppb-fb-woo-fields__name",children:[(0,o.jsx)("input",{type:"text",value:null!=S[e]?S[e]:"",placeholder:i.label,disabled:!r,title:(0,l.__)("Click to rename","profile-builder"),onChange:t=>((e,t)=>{const i={...S};t?i[e]=t:delete i[e],T(C.included,C.required,i)})(e,t.target.value)}),(0,o.jsx)("span",{className:"dashicons dashicons-edit","aria-hidden":"true"})]}),(0,o.jsx)("span",{className:"wppb-fb-woo-fields__req-cell",children:(0,o.jsx)("input",{type:"checkbox",className:"wppb-fb-woo-fields__req",checked:C.required.has(e),disabled:!r,"aria-label":`${i.label} — ${(0,l.__)("required","profile-builder")}`,onChange:t=>((e,t)=>{const i=new Set(C.required);t?i.add(e):i.delete(e),T(C.included,i,S)})(e,t.target.checked)})})]},e);var n})]})}),B=v.filter(e=>C.included.has(e));return(0,o.jsx)(n.A,{...i,inspectorPanels:P,hideDescription:!0,children:(0,o.jsx)("div",{className:"wppb-fb-woo-address",children:B.length>0?B.map(e=>{const t=j(e),i=S[e]||(t?t.label:e);return(0,o.jsxs)("div",{className:"wppb-fb-woo-address__field",children:[(0,o.jsxs)("label",{className:"wppb-fb-woo-address__label",children:[i,C.required.has(e)&&(0,o.jsx)("span",{className:"wppb-fb-field-required",children:"*"})]}),(0,o.jsx)("input",{type:"text",disabled:!0})]},e)}):(0,o.jsx)("div",{children:(0,l.__)("(no fields selected)","profile-builder")})})})}},5705(e,t,i){"use strict";function l(e,t,i){const l=e?e.split(",").map(e=>e.trim()).filter(Boolean):[],r=l.indexOf(t);return i&&-1===r&&l.push(t),i||-1===r||l.splice(r,1),l.join(",")}function r(e,t){return!!e&&e.split(",").map(e=>e.trim()).includes(t)}i.d(t,{U:()=>l,m:()=>r})},6036(e,t,i){"use strict";i.d(t,{C:()=>o});var l=i(6087),r=i(7143);const s=new Set;function n(e,t=[]){for(const i of e){const e=i.attributes?.id;"number"==typeof e&&e>0&&t.push(e),i.innerBlocks&&i.innerBlocks.length&&n(i.innerBlocks,t)}return t}function o(e,t){const i=(0,l.useRef)(!1),o=(0,l.useRef)(0);(0,l.useEffect)(()=>{if(e>0)return;if(i.current)return;i.current=!0;const l="undefined"!=typeof window&&window.wppbFb&&window.wppbFb.allocate||{};if(!l.restRoot||!l.restNonce)return;const a=n((0,r.select)("core/block-editor").getBlocks()),d=Array.from(new Set([...a,...s]));function c(){o.current+=1,o.current<3&&(i.current=!1)}fetch(l.restRoot,{method:"POST",credentials:"same-origin",headers:{"X-WP-Nonce":l.restNonce,"Content-Type":"application/json"},body:JSON.stringify({claimed:d})}).then(e=>e.ok?e.json():null).then(e=>{const i=e&&"number"==typeof e.id?e.id:0;if(i>0)return s.add(i),void t({id:i});c()}).catch(c)},[e])}},5851(e,t,i){"use strict";const l=window.wp.hooks,r=()=>"undefined"!=typeof window&&window.wppbFb||{},s=(e,t)=>{const i=e.attributes||{},l={...i};let r=!1;for(const[e,s]of Object.entries(t))Object.prototype.hasOwnProperty.call(i,e)||(l[e]=s,r=!0);return r?{...e,attributes:l}:e},n=[(e,t)=>"string"==typeof t&&t.startsWith("profile-builder/")?"undefined"!=typeof window&&!0===window.wppbFbIsFormScreen?e:{...e,supports:{...e.supports||{},inserter:!1}}:e,(e,t)=>{const i=r().uniqueness||{};return(Array.isArray(i.uniqueBlocks)?i.uniqueBlocks:[]).includes(t)?{...e,supports:{...e.supports||{},multiple:!1}}:e},(e,t)=>"string"==typeof t&&t.startsWith("profile-builder/")?{...e,supports:{...e.supports||{},customClassName:!1,anchor:!1,lock:!1}}:e,(e,t)=>{if("string"!=typeof t||!t.startsWith("profile-builder/field-"))return e;const i=r().conditionalFields||{},l=i.blockToFieldType||{},n=Array.isArray(i.disabledFieldTypes)?i.disabledFieldTypes:[],o=l[t];return!o||n.includes(o)?e:s(e,{"conditional-logic-enabled":{type:"string",default:""},"conditional-logic":{type:"string",default:""}})},(e,t)=>{if("string"!=typeof t||!t.startsWith("profile-builder/field-"))return e;const i=r(),l=i.metaNames||{},n=i.conditionalFields&&i.conditionalFields.blockToFieldType||{},o=Array.isArray(l.defaultFieldTypes)?l.defaultFieldTypes:[],a=Array.isArray(l.noMetaNameFieldTypes)?l.noMetaNameFieldTypes:[],d=n[t];return!d||o.includes(d)||a.includes(d)?e:s(e,{"overwrite-existing":{type:"string",default:"No"}})},(e,t)=>{if("string"!=typeof t||!t.startsWith("profile-builder/field-"))return e;const i=r(),l=i.extraAttributes||null;if(!l)return e;const n=(i.conditionalFields&&i.conditionalFields.blockToFieldType||{})[t];if(!n)return e;const o=l[n];return o&&"object"==typeof o?s(e,o):e}];(0,l.addFilter)("blocks.registerBlockType","profile-builder/field-block-schema",(e,t)=>n.reduce((e,i)=>i(e,t),e));var o=i(7723),a=i(4715),d=i(6427),c=i(7143);function p(e,t={}){const i=t.select||c.select,l=t.dispatch||c.dispatch,r=(Array.isArray(e)?e:[e]).filter(Boolean);if(!r.length)return;const s=i("core/block-editor"),{removeBlocks:n,insertBlock:a}=l("core/block-editor");if(!s)return;const d=r.map(e=>({block:s.getBlock(e),rootClientId:s.getBlockRootClientId(e)||"",index:s.getBlockIndex(e)})).filter(e=>!!e.block).sort((e,t)=>e.index-t.index);n(r);const p=l("core/notices");if(!p||!d.length)return;const u=t.message||(0,o.__)("Field removed from this form.","profile-builder");p.createInfoNotice(u,{type:"snackbar",actions:[{label:(0,o.__)("Undo","profile-builder"),onClick:()=>{d.forEach(({block:e,index:t,rootClientId:i})=>{a(e,t,i||void 0)})}}]})}var u=i(790);const f=new Set("undefined"!=typeof window&&window.wppbFb&&Array.isArray(window.wppbFb.mandatoryTypes)&&window.wppbFb.mandatoryTypes.length?window.wppbFb.mandatoryTypes:["Default - Username","Default - E-mail","Default - Password"]),b=()=>(0,u.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:(0,u.jsx)("path",{style:{fill:"currentColor"},d:"M9 3h6v2h5v2H4V5h5V3zm-3 6h2v9H6V9zm5 0h2v9h-2V9zm5 0h2v9h-2V9zM5 7h14l-1 13a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1L5 7z"})});function h({clientId:e}){return(0,c.useSelect)(t=>t("core/block-editor").canRemoveBlock(e),[e])?(0,u.jsx)(a.BlockControls,{children:(0,u.jsx)(d.ToolbarGroup,{children:(0,u.jsx)(d.ToolbarButton,{icon:(0,u.jsx)(b,{}),label:(0,o.__)("Remove field","profile-builder"),onClick:()=>p([e])})})}):null}(0,l.addFilter)("editor.BlockEdit","profile-builder/block-toolbar-delete",e=>t=>{const{name:i,isSelected:l,clientId:r}=t,s="string"==typeof i&&i.startsWith("profile-builder/")&&l&&!function(e){const t="undefined"!=typeof window&&window.wppbFb||{},i=t.conditionalFields&&t.conditionalFields.blockToFieldType||{};return f.has(i[e])}(i);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(e,{...t}),s&&(0,u.jsx)(h,{clientId:r})]})});const m={width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",style:{fill:"none",stroke:"currentColor"}},x={style:{fill:"currentColor",stroke:"none"}},g={"profile-builder/field-default-name-heading":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("circle",{cx:"6.3",cy:"7.3",r:"2.3"}),(0,u.jsx)("path",{d:"M3 12.8c0-1.9 1.5-3 3.3-3s3.3 1.1 3.3 3"}),(0,u.jsx)("line",{x1:"11.5",y1:"8",x2:"21",y2:"8"}),(0,u.jsx)("line",{x1:"3",y1:"18.5",x2:"21",y2:"18.5"})]}),"profile-builder/field-default-contact-info-heading":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"3",y:"6",width:"7.6",height:"5.6",rx:"1.2"}),(0,u.jsx)("path",{d:"M3.4 6.7 6.8 9.1 10.2 6.7"}),(0,u.jsx)("line",{x1:"12.4",y1:"8.8",x2:"21",y2:"8.8"}),(0,u.jsx)("line",{x1:"3",y1:"18.5",x2:"21",y2:"18.5"})]}),"profile-builder/field-default-about-yourself-heading":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("line",{x1:"3",y1:"6.6",x2:"9.5",y2:"6.6"}),(0,u.jsx)("line",{x1:"3",y1:"9.8",x2:"9.5",y2:"9.8"}),(0,u.jsx)("line",{x1:"12.4",y1:"8.2",x2:"21",y2:"8.2"}),(0,u.jsx)("line",{x1:"3",y1:"18.5",x2:"21",y2:"18.5"})]}),"profile-builder/field-default-username":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,u.jsx)("circle",{cx:"12",cy:"9.6",r:"2.8"}),(0,u.jsx)("path",{d:"M6.6 18.4c.8-2.3 2.9-3.6 5.4-3.6s4.6 1.3 5.4 3.6"})]}),"profile-builder/field-default-first-name":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("circle",{cx:"12",cy:"7.3",r:"3"}),(0,u.jsx)("path",{d:"M6 14.7c0-2.6 2.7-4.2 6-4.2s6 1.6 6 4.2"}),(0,u.jsx)("line",{x1:"7",y1:"19.6",x2:"17",y2:"19.6"})]}),"profile-builder/field-default-last-name":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("circle",{cx:"12",cy:"6.8",r:"2.9"}),(0,u.jsx)("path",{d:"M6.4 13.6c0-2.5 2.5-4 5.6-4s5.6 1.5 5.6 4"}),(0,u.jsx)("line",{x1:"7",y1:"18.2",x2:"17",y2:"18.2"}),(0,u.jsx)("line",{x1:"9",y1:"21",x2:"15",y2:"21"})]}),"profile-builder/field-default-nickname":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("path",{d:"M9 7.5C6.8 7.5 5 9.3 5 11.5 5 13.4 6.3 14.5 8 14.5c1 0 1.9-.7 1.9-1.8 0-1-.8-1.7-1.8-1.7-.3 0-.5 0-.7.1.2-1.4 1.3-2.5 2.6-2.6z"}),(0,u.jsx)("path",{d:"M18 7.5c-2.2 0-4 1.8-4 4 0 1.9 1.3 3 3 3 1 0 1.9-.7 1.9-1.8 0-1-.8-1.7-1.8-1.7-.3 0-.5 0-.7.1.2-1.4 1.3-2.5 2.6-2.6z"})]}),"profile-builder/field-default-email":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),(0,u.jsx)("path",{d:"M4 7.5 12 13 20 7.5"})]}),"profile-builder/field-default-website":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("circle",{cx:"12",cy:"12",r:"8.5"}),(0,u.jsx)("line",{x1:"3.5",y1:"12",x2:"20.5",y2:"12"}),(0,u.jsx)("path",{d:"M12 3.5c2.6 2.4 2.6 14.6 0 17"}),(0,u.jsx)("path",{d:"M12 3.5c-2.6 2.4-2.6 14.6 0 17"})]}),"profile-builder/field-default-password":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"5",y:"10",width:"14",height:"10.5",rx:"2.3"}),(0,u.jsx)("path",{d:"M8 10V7.5a4 4 0 0 1 8 0V10"}),(0,u.jsx)("circle",{cx:"12",cy:"14.5",r:"1.2",...x}),(0,u.jsx)("line",{x1:"12",y1:"15.4",x2:"12",y2:"17.6"})]}),"profile-builder/field-default-repeat-password":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"5",y:"10",width:"14",height:"10.5",rx:"2.3"}),(0,u.jsx)("path",{d:"M8 10V7.5a4 4 0 0 1 8 0V10"}),(0,u.jsx)("path",{d:"M9 15.2 11.2 17.4 15.2 13"})]}),"profile-builder/field-default-biographical-info":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("path",{d:"M12 6c-1.8-1.3-4-2-6.5-2H3.5v13H6c2.4 0 4.5.7 6 2"}),(0,u.jsx)("path",{d:"M12 6c1.8-1.3 4-2 6.5-2h1.5v13H18c-2.4 0-4.5.7-6 2"}),(0,u.jsx)("line",{x1:"12",y1:"6",x2:"12",y2:"19"})]}),"profile-builder/field-default-display-name":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2.3"}),(0,u.jsx)("circle",{cx:"8",cy:"10",r:"2"}),(0,u.jsx)("path",{d:"M5 16c0-1.7 1.3-3 3-3s3 1.3 3 3"}),(0,u.jsx)("line",{x1:"13.5",y1:"9.5",x2:"18",y2:"9.5"}),(0,u.jsx)("line",{x1:"13.5",y1:"13",x2:"18",y2:"13"})]}),"profile-builder/field-default-aim":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("path",{d:"M4 4.5h16a1.5 1.5 0 0 1 1.5 1.5v7.5A1.5 1.5 0 0 1 20 15H10l-4.5 4v-4H4a1.5 1.5 0 0 1-1.5-1.5V6A1.5 1.5 0 0 1 4 4.5z"}),(0,u.jsx)("circle",{cx:"8.5",cy:"9.7",r:"1",...x}),(0,u.jsx)("circle",{cx:"12",cy:"9.7",r:"1",...x}),(0,u.jsx)("circle",{cx:"15.5",cy:"9.7",r:"1",...x})]}),"profile-builder/field-default-yim":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("path",{d:"M4 4.5h16a1.5 1.5 0 0 1 1.5 1.5v7.5A1.5 1.5 0 0 1 20 15H10l-4.5 4v-4H4a1.5 1.5 0 0 1-1.5-1.5V6A1.5 1.5 0 0 1 4 4.5z"}),(0,u.jsx)("circle",{cx:"9.6",cy:"8.3",r:"0.85",...x}),(0,u.jsx)("circle",{cx:"14.4",cy:"8.3",r:"0.85",...x}),(0,u.jsx)("path",{d:"M9.3 10.6a3.2 3.2 0 0 0 5.4 0"})]}),"profile-builder/field-default-jabber":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("path",{d:"M4 4.5h16a1.5 1.5 0 0 1 1.5 1.5v7.5A1.5 1.5 0 0 1 20 15H10l-4.5 4v-4H4a1.5 1.5 0 0 1-1.5-1.5V6A1.5 1.5 0 0 1 4 4.5z"}),(0,u.jsx)("circle",{cx:"11.8",cy:"9.5",r:"1.7"}),(0,u.jsx)("path",{d:"M13.5 9.5c0 1 .1 2 1.2 2 1 0 1.4-1 1.2-2.3-.3-1.8-2-2.7-3.6-2.4"})]}),"profile-builder/field-input":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("line",{x1:"4",y1:"8",x2:"20",y2:"8"}),(0,u.jsx)("line",{x1:"4",y1:"12",x2:"20",y2:"12"}),(0,u.jsx)("line",{x1:"4",y1:"16",x2:"13",y2:"16"})]}),"profile-builder/field-textarea":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),(0,u.jsx)("line",{x1:"6",y1:"9",x2:"18",y2:"9"}),(0,u.jsx)("line",{x1:"6",y1:"12",x2:"18",y2:"12"}),(0,u.jsx)("line",{x1:"6",y1:"15",x2:"13",y2:"15"})]}),"profile-builder/field-select":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2.5"}),(0,u.jsx)("line",{x1:"6.5",y1:"12",x2:"11.5",y2:"12"}),(0,u.jsx)("path",{d:"M15 10.8 16.8 12.6 18.6 10.8"})]}),"profile-builder/field-select-multiple":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("path",{d:"M3.3 7 4.5 8.2 6.8 5.8"}),(0,u.jsx)("path",{d:"M3.3 12 4.5 13.2 6.8 10.8"}),(0,u.jsx)("path",{d:"M3.3 17 4.5 18.2 6.8 15.8"}),(0,u.jsx)("line",{x1:"9.5",y1:"7",x2:"20",y2:"7"}),(0,u.jsx)("line",{x1:"9.5",y1:"12",x2:"20",y2:"12"}),(0,u.jsx)("line",{x1:"9.5",y1:"17",x2:"20",y2:"17"})]}),"profile-builder/field-checkbox":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"4",y:"4",width:"16",height:"16",rx:"3.5"}),(0,u.jsx)("path",{d:"M8 12 10.6 14.6 16.2 9"})]}),"profile-builder/field-radio":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("circle",{cx:"6.5",cy:"8",r:"2.7"}),(0,u.jsx)("circle",{cx:"6.5",cy:"8",r:"1.1",...x}),(0,u.jsx)("line",{x1:"11",y1:"8",x2:"20",y2:"8"}),(0,u.jsx)("circle",{cx:"6.5",cy:"16",r:"2.7"}),(0,u.jsx)("line",{x1:"11",y1:"16",x2:"20",y2:"16"})]}),"profile-builder/field-heading":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("line",{x1:"6",y1:"5",x2:"6",y2:"19"}),(0,u.jsx)("line",{x1:"18",y1:"5",x2:"18",y2:"19"}),(0,u.jsx)("line",{x1:"6",y1:"12",x2:"18",y2:"12"})]}),"profile-builder/field-avatar":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"3.5",y:"3.5",width:"17",height:"17",rx:"3.5"}),(0,u.jsx)("circle",{cx:"12",cy:"10",r:"2.8"}),(0,u.jsx)("path",{d:"M6.6 18c.8-2.4 3-3.8 5.4-3.8s4.6 1.4 5.4 3.8"})]}),"profile-builder/field-number":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("line",{x1:"9.5",y1:"4",x2:"7.5",y2:"20"}),(0,u.jsx)("line",{x1:"16.5",y1:"4",x2:"14.5",y2:"20"}),(0,u.jsx)("line",{x1:"5",y1:"9",x2:"19",y2:"9"}),(0,u.jsx)("line",{x1:"4",y1:"15",x2:"18",y2:"15"})]}),"profile-builder/field-input-hidden":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("path",{d:"M4 12s3.4-5.5 8-5.5 8 5.5 8 5.5-3.4 5.5-8 5.5c-1 0-2-.2-2.9-.5"}),(0,u.jsx)("circle",{cx:"12",cy:"12",r:"2.4"}),(0,u.jsx)("line",{x1:"4.5",y1:"4.5",x2:"19.5",y2:"19.5"})]}),"profile-builder/field-language":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("path",{d:"M3 13 6 5l3 8"}),(0,u.jsx)("line",{x1:"4",y1:"10.5",x2:"8",y2:"10.5"}),(0,u.jsx)("line",{x1:"13",y1:"6",x2:"20.5",y2:"6"}),(0,u.jsx)("path",{d:"M16.7 6v1.8c0 3-1.6 5.2-3.7 6.4"}),(0,u.jsx)("path",{d:"M14.8 9.6c.6 2.1 2.2 3.7 5.4 4.8"})]}),"profile-builder/field-wysiwyg":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),(0,u.jsx)("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),(0,u.jsx)("line",{x1:"6",y1:"6.5",x2:"8.5",y2:"6.5"}),(0,u.jsx)("line",{x1:"11",y1:"6.5",x2:"13.5",y2:"6.5"}),(0,u.jsx)("line",{x1:"6",y1:"13",x2:"18",y2:"13"}),(0,u.jsx)("line",{x1:"6",y1:"16.5",x2:"14",y2:"16.5"})]}),"profile-builder/field-html":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("path",{d:"M8.5 8 4.5 12 8.5 16"}),(0,u.jsx)("path",{d:"M15.5 8 19.5 12 15.5 16"}),(0,u.jsx)("line",{x1:"13.4",y1:"6",x2:"10.6",y2:"18"})]}),"profile-builder/field-upload":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("path",{d:"M12 15V4"}),(0,u.jsx)("path",{d:"M7.5 8.5 12 4 16.5 8.5"}),(0,u.jsx)("path",{d:"M5 15v3a1.5 1.5 0 0 0 1.5 1.5h11A1.5 1.5 0 0 0 19 18v-3"})]}),"profile-builder/field-international-telephone-input":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("path",{d:"M3.6 4.4h2.3l1.2 3-1.5 1.1a8.5 8.5 0 0 0 3.9 3.9l1.1-1.5 3 1.2v2.3a1.6 1.6 0 0 1-1.6 1.6A11.5 11.5 0 0 1 2 6 1.6 1.6 0 0 1 3.6 4.4z"}),(0,u.jsx)("circle",{cx:"17.5",cy:"6.5",r:"3.6"}),(0,u.jsx)("line",{x1:"13.9",y1:"6.5",x2:"21.1",y2:"6.5"}),(0,u.jsx)("path",{d:"M17.5 2.9c1.4 1.1 1.4 6.1 0 7.2"})]}),"profile-builder/field-select2":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2.5"}),(0,u.jsx)("circle",{cx:"8.8",cy:"11.4",r:"2.3"}),(0,u.jsx)("line",{x1:"10.6",y1:"13.2",x2:"12.4",y2:"15"}),(0,u.jsx)("path",{d:"M15.4 10.8 17.1 12.5 18.8 10.8"})]}),"profile-builder/field-phone":(0,u.jsx)("svg",{...m,children:(0,u.jsx)("path",{d:"M6.5 3.5h2.8l1.4 4-2 1.5a11 11 0 0 0 4.8 4.8l1.5-2 4 1.4V20a2 2 0 0 1-2 2A15.5 15.5 0 0 1 4 6.5a2 2 0 0 1 2-2z"})}),"profile-builder/field-select-country":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("line",{x1:"6",y1:"3",x2:"6",y2:"21"}),(0,u.jsx)("path",{d:"M6 4h12l-2.6 3.3L18 10.6H6z"})]}),"profile-builder/field-select-timezone":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("circle",{cx:"12",cy:"12",r:"8.3"}),(0,u.jsx)("line",{x1:"3.7",y1:"12",x2:"20.3",y2:"12"}),(0,u.jsx)("path",{d:"M12 7v5l3.4 2"})]}),"profile-builder/field-select-currency":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("circle",{cx:"12",cy:"12",r:"8.3"}),(0,u.jsx)("path",{d:"M14.6 9.4c-.7-.8-1.7-1.2-2.7-1.2-1.5 0-2.6.8-2.6 2 0 1.3 1.1 1.8 2.6 2.1 1.5.3 2.7.8 2.7 2.1 0 1.2-1.1 2-2.7 2-1.1 0-2.1-.4-2.8-1.2"}),(0,u.jsx)("line",{x1:"12",y1:"6",x2:"12",y2:"18"})]}),"profile-builder/field-select-cpt":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("path",{d:"M7 3h7l4 4v13a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"}),(0,u.jsx)("path",{d:"M13.5 3v4h4"}),(0,u.jsx)("line",{x1:"9",y1:"13",x2:"15",y2:"13"}),(0,u.jsx)("line",{x1:"9",y1:"16.5",x2:"13",y2:"16.5"})]}),"profile-builder/field-select-taxonomy":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("circle",{cx:"5.5",cy:"12",r:"2"}),(0,u.jsx)("circle",{cx:"18.5",cy:"6.5",r:"2"}),(0,u.jsx)("circle",{cx:"18.5",cy:"17.5",r:"2"}),(0,u.jsx)("path",{d:"M7.5 12h4.5a1.5 1.5 0 0 0 1.5-1.5V8a1.5 1.5 0 0 1 1.5-1.5h1.5"}),(0,u.jsx)("path",{d:"M7.5 12h4.5a1.5 1.5 0 0 1 1.5 1.5V16a1.5 1.5 0 0 0 1.5 1.5h1.5"})]}),"profile-builder/field-checkbox-toa":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"5",y:"3",width:"14",height:"18",rx:"2"}),(0,u.jsx)("line",{x1:"8",y1:"7.5",x2:"16",y2:"7.5"}),(0,u.jsx)("line",{x1:"8",y1:"10.5",x2:"16",y2:"10.5"}),(0,u.jsx)("line",{x1:"8",y1:"13.5",x2:"12.5",y2:"13.5"}),(0,u.jsx)("path",{d:"M8 17.3 9.4 18.7 13 15.2"})]}),"profile-builder/field-datepicker":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"4",y:"5.5",width:"16",height:"14.5",rx:"2.5"}),(0,u.jsx)("line",{x1:"4",y1:"9.5",x2:"20",y2:"9.5"}),(0,u.jsx)("line",{x1:"8.5",y1:"3.5",x2:"8.5",y2:"7"}),(0,u.jsx)("line",{x1:"15.5",y1:"3.5",x2:"15.5",y2:"7"}),(0,u.jsx)("circle",{cx:"9",cy:"14",r:"1.2",...x})]}),"profile-builder/field-timepicker":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("circle",{cx:"12",cy:"12",r:"8.3"}),(0,u.jsx)("path",{d:"M12 7v5l3.5 2"})]}),"profile-builder/field-colorpicker":(0,u.jsx)("svg",{...m,children:(0,u.jsx)("path",{d:"M12 3.5c3.2 3.8 5.2 6.4 5.2 9.2a5.2 5.2 0 0 1-10.4 0c0-2.8 2-5.4 5.2-9.2z"})}),"profile-builder/field-validation":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"5",y:"4.5",width:"14",height:"16.5",rx:"2"}),(0,u.jsx)("rect",{x:"9",y:"2.5",width:"6",height:"3.6",rx:"1"}),(0,u.jsx)("path",{d:"M8.5 13 10.5 15 14.5 10.5"})]}),"profile-builder/field-map":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("path",{d:"M12 21c4.5-4.3 7-7.6 7-11a7 7 0 1 0-14 0c0 3.4 2.5 6.7 7 11z"}),(0,u.jsx)("circle",{cx:"12",cy:"10",r:"2.5"})]}),"profile-builder/field-additional-map":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("path",{d:"M9.5 18.6c3.4-3.3 5.3-5.8 5.3-8.4a5.3 5.3 0 1 0-10.6 0c0 2.6 1.9 5.1 5.3 8.4z"}),(0,u.jsx)("circle",{cx:"9.5",cy:"10.2",r:"1.9"}),(0,u.jsx)("line",{x1:"18.5",y1:"4",x2:"18.5",y2:"9"}),(0,u.jsx)("line",{x1:"16",y1:"6.5",x2:"21",y2:"6.5"})]}),"profile-builder/field-recaptcha":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("path",{d:"M19.2 12a7.2 7.2 0 1 1-2.1-5.1"}),(0,u.jsx)("path",{d:"M19.5 5v3.2h-3.2"}),(0,u.jsx)("path",{d:"M9 12.2 11 14.2 15 10"})]}),"profile-builder/field-turnstile":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("path",{d:"M7 17h9.6a3.5 3.5 0 0 0 .4-7 5 5 0 0 0-9.7-1.4A4 4 0 0 0 7 17z"}),(0,u.jsx)("path",{d:"M10 12.3 11.6 13.9 15 10.5"})]}),"profile-builder/field-select-user-role":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("circle",{cx:"9",cy:"8",r:"3"}),(0,u.jsx)("path",{d:"M3.5 18c0-3 2.5-5 5.5-5 .8 0 1.6.1 2.3.4"}),(0,u.jsx)("path",{d:"M17.5 11l3 1.2v2.2c0 1.9-1.3 3.4-3 3.9-1.7-.5-3-2-3-3.9v-2.2z"})]}),"profile-builder/field-default-blog-details":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),(0,u.jsx)("line",{x1:"3",y1:"8",x2:"21",y2:"8"}),(0,u.jsx)("circle",{cx:"5.6",cy:"6",r:"0.6",...x}),(0,u.jsx)("line",{x1:"6",y1:"12",x2:"18",y2:"12"}),(0,u.jsx)("line",{x1:"6",y1:"15.5",x2:"14",y2:"15.5"})]}),"profile-builder/field-mailchimp-subscribe":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"3",y:"6",width:"14",height:"11",rx:"1.8"}),(0,u.jsx)("path",{d:"M3.4 7 10 11.5 16.6 7"}),(0,u.jsx)("path",{d:"M19 3 19.9 4.8 21.9 5.1 20.4 6.5 20.8 8.5 19 7.5 17.2 8.5 17.6 6.5 16.1 5.1 18.1 4.8z"})]}),"profile-builder/field-mailpoet-subscribe":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"3",y:"6",width:"14",height:"11",rx:"1.8"}),(0,u.jsx)("path",{d:"M3.4 7 10 11.5 16.6 7"}),(0,u.jsx)("path",{d:"M21.5 3.5c-3 0-5 1.8-5 4 0 .7.2 1.2.6 1.7 2-1 3.8-3 4.4-5.7z"}),(0,u.jsx)("path",{d:"M17.2 9c.8-1.3 2.1-2.6 4.3-4.5"})]}),"profile-builder/field-campaign-monitor-subscribe":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"3",y:"6",width:"14",height:"11",rx:"1.8"}),(0,u.jsx)("path",{d:"M3.4 7 10 11.5 16.6 7"}),(0,u.jsx)("line",{x1:"16.8",y1:"8",x2:"16.8",y2:"4"}),(0,u.jsx)("line",{x1:"19.4",y1:"8",x2:"19.4",y2:"3"}),(0,u.jsx)("line",{x1:"22",y1:"8",x2:"22",y2:"5.5"})]}),"profile-builder/field-woo-billing-address":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),(0,u.jsx)("line",{x1:"3",y1:"10",x2:"21",y2:"10"}),(0,u.jsx)("line",{x1:"6",y1:"14",x2:"11",y2:"14"})]}),"profile-builder/field-woo-shipping-address":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("path",{d:"M12 3 20 7v9l-8 4-8-4V7z"}),(0,u.jsx)("path",{d:"M4 7 12 11 20 7"}),(0,u.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"20"})]}),"profile-builder/field-email":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("circle",{cx:"12",cy:"12",r:"3.2"}),(0,u.jsx)("path",{d:"M15.2 12c0 1.1.1 3 2 3 1.7 0 2.6-1.6 2.6-3.8 0-4.2-3.1-6.7-6.9-6.7a8 8 0 1 0 4.4 14.7"})]}),"profile-builder/field-email-confirmation":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"2.5",y:"5.5",width:"14",height:"11",rx:"2"}),(0,u.jsx)("path",{d:"M3 6.5 9.5 11 16 6.5"}),(0,u.jsx)("circle",{cx:"18",cy:"16",r:"4"}),(0,u.jsx)("path",{d:"M16.3 16 17.5 17.2 19.8 14.8"})]}),"profile-builder/field-gdpr-checkbox":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("path",{d:"M12 3 19 5.5v5c0 4.5-3 8-7 9.5-4-1.5-7-5-7-9.5v-5z"}),(0,u.jsx)("path",{d:"M8.8 12 11 14.2 15.2 9.8"})]}),"profile-builder/field-gdpr-communication-preferences":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("line",{x1:"4",y1:"7",x2:"20",y2:"7"}),(0,u.jsx)("circle",{cx:"9",cy:"7",r:"2.2",...x}),(0,u.jsx)("line",{x1:"4",y1:"12",x2:"20",y2:"12"}),(0,u.jsx)("circle",{cx:"15",cy:"12",r:"2.2",...x}),(0,u.jsx)("line",{x1:"4",y1:"17",x2:"20",y2:"17"}),(0,u.jsx)("circle",{cx:"11",cy:"17",r:"2.2",...x})]}),"profile-builder/field-pms-subscription-plans":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"3.5",y:"13",width:"4.4",height:"6",rx:"1"}),(0,u.jsx)("rect",{x:"9.8",y:"9",width:"4.4",height:"10",rx:"1"}),(0,u.jsx)("rect",{x:"16.1",y:"5",width:"4.4",height:"14",rx:"1",...x})]}),"profile-builder/field-pms-billing-fields":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("path",{d:"M6 4h12v16l-2-1.3-2 1.3-2-1.3-2 1.3-2-1.3-2 1.3z"}),(0,u.jsx)("line",{x1:"9",y1:"8.5",x2:"15",y2:"8.5"}),(0,u.jsx)("line",{x1:"9",y1:"12",x2:"15",y2:"12"})]}),"profile-builder/field-gdpr-delete":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("line",{x1:"5",y1:"7",x2:"19",y2:"7"}),(0,u.jsx)("path",{d:"M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2"}),(0,u.jsx)("path",{d:"M6.5 7l.8 12a1.5 1.5 0 0 0 1.5 1.4h6.4a1.5 1.5 0 0 0 1.5-1.4L17.5 7"}),(0,u.jsx)("line",{x1:"10",y1:"10.5",x2:"10",y2:"16.5"}),(0,u.jsx)("line",{x1:"14",y1:"10.5",x2:"14",y2:"16.5"})]}),"profile-builder/field-honeypot":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("ellipse",{cx:"12",cy:"13.5",rx:"4.3",ry:"5.5"}),(0,u.jsx)("line",{x1:"12",y1:"8.5",x2:"12",y2:"19"}),(0,u.jsx)("circle",{cx:"12",cy:"6.4",r:"2"}),(0,u.jsx)("line",{x1:"10.6",y1:"5",x2:"9.2",y2:"3.6"}),(0,u.jsx)("line",{x1:"13.4",y1:"5",x2:"14.8",y2:"3.6"}),(0,u.jsx)("line",{x1:"7.8",y1:"11",x2:"4.6",y2:"9.5"}),(0,u.jsx)("line",{x1:"7.5",y1:"13.5",x2:"4",y2:"13.5"}),(0,u.jsx)("line",{x1:"7.8",y1:"16",x2:"4.6",y2:"17.5"}),(0,u.jsx)("line",{x1:"16.2",y1:"11",x2:"19.4",y2:"9.5"}),(0,u.jsx)("line",{x1:"16.5",y1:"13.5",x2:"20",y2:"13.5"}),(0,u.jsx)("line",{x1:"16.2",y1:"16",x2:"19.4",y2:"17.5"})]}),"profile-builder/field-input-url":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("path",{d:"M9.4 14.6 14.6 9.4"}),(0,u.jsx)("path",{d:"M10.7 6.7 12.7 4.8a4.65 4.65 0 0 1 6.58 6.58l-1.97 1.97"}),(0,u.jsx)("path",{d:"M13.3 17.3 11.3 19.2a4.65 4.65 0 0 1-6.58-6.58l1.97-1.97"})]}),"profile-builder/field-select2-multiple":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2.2"}),(0,u.jsx)("rect",{x:"5.5",y:"6.6",width:"13",height:"4.2",rx:"2.1"}),(0,u.jsx)("rect",{x:"5.5",y:"13.2",width:"8",height:"4.2",rx:"2.1"})]}),"profile-builder/field-repeater":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"8",y:"3.5",width:"12.5",height:"12.5",rx:"2.2"}),(0,u.jsx)("path",{d:"M16 16v2.3a2.2 2.2 0 0 1-2.2 2.2H5.7a2.2 2.2 0 0 1-2.2-2.2V10.2A2.2 2.2 0 0 1 5.7 8H8"})]}),"profile-builder/msf-step-break":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("circle",{cx:"4.6",cy:"12",r:"2.1"}),(0,u.jsx)("line",{x1:"7",y1:"12",x2:"10",y2:"12"}),(0,u.jsx)("circle",{cx:"12",cy:"12",r:"2.1",...x}),(0,u.jsx)("line",{x1:"14",y1:"12",x2:"17",y2:"12"}),(0,u.jsx)("circle",{cx:"19.4",cy:"12",r:"2.1"})]}),"profile-builder/ffc-columns":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"3.5",y:"5",width:"7",height:"14",rx:"1.5"}),(0,u.jsx)("rect",{x:"13.5",y:"5",width:"7",height:"14",rx:"1.5"})]}),"profile-builder/progress-bar":(0,u.jsxs)("svg",{...m,children:[(0,u.jsx)("rect",{x:"3",y:"9.5",width:"18",height:"5",rx:"2.5"}),(0,u.jsx)("rect",{x:"5",y:"11.1",width:"7",height:"1.8",rx:"0.9",...x})]})},y={viewBox:"0 0 240 110",xmlns:"http://www.w3.org/2000/svg",strokeLinecap:"round",strokeLinejoin:"round",style:{fill:"none",stroke:"currentColor",display:"block",width:"224px",height:"103px",maxWidth:"none"}},j={fill:"currentColor",stroke:"none"},_={fontFamily:"sans-serif",fontSize:15,fontWeight:600,style:j},w={fontFamily:"sans-serif",fontSize:13,opacity:.5,style:j},v={fontFamily:"sans-serif",fontSize:13,opacity:.8,style:j},k={fontFamily:"sans-serif",fontSize:11,opacity:.65,style:j},C=e=>(0,u.jsx)("text",{x:"16",y:"27",..._,children:e}),S=(e,t)=>(0,u.jsx)("rect",{x:"16",y:e,width:"208",height:t,rx:"7",strokeWidth:"1.6"}),T=(0,u.jsx)("path",{d:"M198 59 205 66 212 59",strokeWidth:"1.8"}),N=(0,u.jsxs)("g",{strokeWidth:"1.4",children:[(0,u.jsx)("rect",{x:"28",y:"56",width:"17",height:"12",rx:"2"}),(0,u.jsx)("path",{d:"M28.6 57 36.5 63 44.4 57"})]}),A=(0,u.jsxs)("g",{strokeWidth:"1.4",children:[(0,u.jsx)("rect",{x:"30",y:"60",width:"13",height:"9",rx:"1.6"}),(0,u.jsx)("path",{d:"M32.6 60V58a3.9 3.9 0 0 1 7.8 0v2"})]}),F=(0,u.jsxs)("g",{strokeWidth:"1.4",children:[(0,u.jsx)("circle",{cx:"37",cy:"62",r:"7"}),(0,u.jsx)("path",{d:"M30 62h14"}),(0,u.jsx)("path",{d:"M37 55c2.4 2 2.4 12 0 14"}),(0,u.jsx)("path",{d:"M37 55c-2.4 2-2.4 12 0 14"})]}),P=(0,u.jsx)("path",{strokeWidth:"1.4",d:"M31 55h2.1l1 3-1.3 1a7 7 0 0 0 3.2 3.2l1-1.3 3 1v2.1a1.3 1.3 0 0 1-1.3 1.3A9.5 9.5 0 0 1 29.7 56.3 1.3 1.3 0 0 1 31 55z"}),B=(0,u.jsxs)("g",{strokeWidth:"1.4",children:[(0,u.jsx)("circle",{cx:"37",cy:"62",r:"2.9"}),(0,u.jsx)("path",{d:"M39.9 62c0 1.5 0 3 1.7 3 1.4 0 2.1-1.5 2.1-3.4 0-3.6-2.8-5.6-6-5.6a6.4 6.4 0 1 0 3.7 11.7"})]}),M=(0,u.jsxs)("g",{strokeWidth:"1.4",children:[(0,u.jsx)("path",{d:"M34 65 41 58"}),(0,u.jsx)("path",{d:"M35 56.6 36.5 55a3 3 0 0 1 4.2 4.2L39 61"}),(0,u.jsx)("path",{d:"M40 67.4 38.5 69a3 3 0 0 1-4.2-4.2L36 63"})]}),I=(0,u.jsxs)("g",{strokeWidth:"1.4",children:[(0,u.jsx)("circle",{cx:"37",cy:"59.4",r:"2.6"}),(0,u.jsx)("path",{d:"M32.4 69c0-2.5 2-4 4.6-4s4.6 1.5 4.6 4"})]}),D=(0,u.jsxs)("g",{strokeWidth:"1.4",children:[(0,u.jsx)("path",{d:"M32 55v14"}),(0,u.jsx)("path",{d:"M32 56h8.2l-1.8 2.3 1.8 2.3H32z"})]}),O=(0,u.jsxs)("g",{strokeWidth:"1.4",children:[(0,u.jsx)("circle",{cx:"36",cy:"61",r:"4.4"}),(0,u.jsx)("path",{d:"M39.4 64.4 43 68"})]}),E=(0,u.jsxs)("g",{strokeWidth:"1.4",children:[(0,u.jsx)("rect",{x:"196",y:"55",width:"16",height:"14",rx:"2"}),(0,u.jsx)("path",{d:"M196 59.5h16"}),(0,u.jsx)("path",{d:"M200 53v3M208 53v3"})]}),L=(0,u.jsxs)("g",{strokeWidth:"1.4",children:[(0,u.jsx)("circle",{cx:"205",cy:"62",r:"6.8"}),(0,u.jsx)("path",{d:"M205 58v4.2l2.6 1.6"})]}),R=(e,t,i=null)=>(0,u.jsxs)("svg",{...y,children:[C(e),S(42,40),i,(0,u.jsx)("text",{x:i?54:30,y:"67",...w,children:t})]}),V=(e,t,i=null)=>(0,u.jsxs)("svg",{...y,children:[C(e),S(42,40),i,(0,u.jsx)("text",{x:i?54:30,y:"67",...v,children:t}),T]}),W=(e,t)=>(0,u.jsxs)("svg",{...y,children:[C(e),S(42,40),t.map((e,t)=>{const i=28+76*t;return(0,u.jsxs)("g",{children:[(0,u.jsx)("rect",{x:i,y:"52",width:"70",height:"20",rx:"10",strokeWidth:"1.3"}),(0,u.jsx)("text",{x:i+12,y:"66",...v,children:e})]},t)}),T]}),q=e=>(0,u.jsxs)("svg",{...y,children:[C(e),S(40,58),(0,u.jsx)("line",{x1:"30",y1:"56",x2:"210",y2:"56",strokeWidth:"1.3",opacity:"0.45"}),(0,u.jsx)("line",{x1:"30",y1:"68",x2:"210",y2:"68",strokeWidth:"1.3",opacity:"0.45"}),(0,u.jsx)("line",{x1:"30",y1:"80",x2:"150",y2:"80",strokeWidth:"1.3",opacity:"0.45"})]}),$=(e,t,i)=>(0,u.jsxs)("svg",{...y,children:[C(e),S(42,40),(0,u.jsx)("text",{x:"30",y:"67",...w,children:t}),i]}),z=(e,t)=>(0,u.jsxs)("svg",{...y,children:[C(e),(0,u.jsx)("rect",{x:"16",y:"48",width:"18",height:"18",rx:"4",strokeWidth:"1.6"}),(0,u.jsx)("path",{d:"M20 57.5 23 60.5 30 53.5",strokeWidth:"1.6"}),(0,u.jsx)("text",{x:"44",y:"62",...v,children:t})]}),J=e=>(0,u.jsxs)("svg",{...y,children:[(0,u.jsx)("text",{x:"16",y:"44",fontFamily:"sans-serif",fontSize:"20",fontWeight:"700",style:j,children:e}),(0,u.jsx)("line",{x1:"16",y1:"56",x2:"150",y2:"56",strokeWidth:"2"})]}),H=e=>(0,u.jsxs)("svg",{...y,children:[C(e),S(40,58),(0,u.jsx)("path",{d:"M16 64 70 52 130 70 224 54",strokeWidth:"1.2",opacity:"0.4"}),(0,u.jsx)("path",{d:"M90 98 86 56",strokeWidth:"1.2",opacity:"0.4"}),(0,u.jsx)("path",{d:"M120 70c4-3.8 6.2-6.7 6.2-9.7a6.2 6.2 0 1 0-12.4 0c0 3 2.2 5.9 6.2 9.7z",strokeWidth:"1.6"}),(0,u.jsx)("circle",{cx:"120",cy:"60.5",r:"2.2",strokeWidth:"1.6"})]}),U=(e,t)=>(0,u.jsxs)("svg",{...y,children:[(0,u.jsx)("rect",{x:"36",y:"38",width:"168",height:"46",rx:"6",strokeWidth:"1.6"}),(0,u.jsx)("rect",{x:"50",y:"53",width:"16",height:"16",rx:"3",strokeWidth:"1.5"}),(0,u.jsx)("text",{x:"76",y:"65",...v,children:e}),t]}),Y=(e,t)=>(0,u.jsxs)("svg",{...y,children:[C(e),(0,u.jsx)("rect",{x:"16",y:"44",width:"208",height:"38",rx:"7",strokeWidth:"1.5",strokeDasharray:"5 4",opacity:"0.55"}),(0,u.jsxs)("g",{strokeWidth:"1.4",opacity:"0.7",children:[(0,u.jsx)("path",{d:"M34 63s4-6 9-6 9 6 9 6-4 6-9 6-9-6-9-6z"}),(0,u.jsx)("circle",{cx:"43",cy:"63",r:"2.4"}),(0,u.jsx)("path",{d:"M35 55 51 71"})]}),(0,u.jsx)("text",{x:"60",y:"67",...k,children:t})]}),G=(e,t)=>(0,u.jsxs)("svg",{...y,children:[C(e),t.map((e,t)=>{const i=40+30*t;return(0,u.jsxs)("g",{children:[(0,u.jsx)("text",{x:"16",y:i,...k,children:e}),(0,u.jsx)("rect",{x:"16",y:i+5,width:"208",height:"20",rx:"5",strokeWidth:"1.4"})]},t)})]}),K=(0,u.jsxs)("svg",{...y,children:[(0,u.jsx)("text",{x:"16",y:"27",..._,children:"Step Break"}),(0,u.jsx)("circle",{cx:"40",cy:"64",r:"9",strokeWidth:"1.6"}),(0,u.jsx)("text",{x:"40",y:"68.5",textAnchor:"middle",...v,children:"1"}),(0,u.jsx)("line",{x1:"52",y1:"64",x2:"108",y2:"64",strokeWidth:"1.6",strokeDasharray:"4 4"}),(0,u.jsx)("circle",{cx:"120",cy:"64",r:"9",strokeWidth:"1.6",style:{fill:"currentColor"}}),(0,u.jsx)("text",{x:"120",y:"68.5",textAnchor:"middle",fontFamily:"sans-serif",fontSize:"13",style:{fill:"#fff",stroke:"none"},children:"2"}),(0,u.jsx)("line",{x1:"132",y1:"64",x2:"188",y2:"64",strokeWidth:"1.6",strokeDasharray:"4 4"}),(0,u.jsx)("circle",{cx:"200",cy:"64",r:"9",strokeWidth:"1.6"}),(0,u.jsx)("text",{x:"200",y:"68.5",textAnchor:"middle",...v,children:"3"})]}),X=(0,u.jsxs)("svg",{...y,children:[(0,u.jsx)("text",{x:"16",y:"27",..._,children:"Columns"}),(0,u.jsx)("rect",{x:"16",y:"40",width:"98",height:"58",rx:"6",strokeWidth:"1.6"}),(0,u.jsx)("rect",{x:"126",y:"40",width:"98",height:"58",rx:"6",strokeWidth:"1.6"}),(0,u.jsx)("line",{x1:"30",y1:"58",x2:"100",y2:"58",strokeWidth:"1.3",opacity:"0.45"}),(0,u.jsx)("line",{x1:"30",y1:"74",x2:"90",y2:"74",strokeWidth:"1.3",opacity:"0.45"}),(0,u.jsx)("line",{x1:"140",y1:"58",x2:"210",y2:"58",strokeWidth:"1.3",opacity:"0.45"}),(0,u.jsx)("line",{x1:"140",y1:"74",x2:"200",y2:"74",strokeWidth:"1.3",opacity:"0.45"})]}),Q=(0,u.jsxs)("svg",{...y,children:[(0,u.jsx)("text",{x:"16",y:"27",..._,children:"Progress Bar"}),(0,u.jsx)("rect",{x:"16",y:"48",width:"208",height:"16",rx:"8",strokeWidth:"1.6"}),(0,u.jsx)("rect",{x:"19",y:"51",width:"100",height:"10",rx:"5",style:j}),(0,u.jsx)("text",{x:"120",y:"86",textAnchor:"middle",...k,children:"50% complete"})]}),Z={"profile-builder/field-default-name-heading":J("Name"),"profile-builder/field-default-contact-info-heading":J("Contact Info"),"profile-builder/field-default-about-yourself-heading":J("About Yourself"),"profile-builder/field-default-username":R("Username *","your_username",I),"profile-builder/field-default-first-name":R("First Name","Jane"),"profile-builder/field-default-last-name":R("Last Name","Doe"),"profile-builder/field-default-nickname":R("Nickname","jane"),"profile-builder/field-default-email":R("E-mail *","[email protected]",N),"profile-builder/field-default-website":R("Website","https://example.com",F),"profile-builder/field-default-password":R("Password *","••••••••",A),"profile-builder/field-default-repeat-password":R("Repeat Password *","••••••••",A),"profile-builder/field-default-biographical-info":q("Biographical Info"),"profile-builder/field-default-display-name":V("Display name publicly as","Jane Doe"),"profile-builder/field-default-aim":R("AIM","screenname"),"profile-builder/field-default-yim":R("Yahoo IM","screenname"),"profile-builder/field-default-jabber":R("Jabber / Google Talk","[email protected]"),"profile-builder/field-input":R("Text","Type here…"),"profile-builder/field-textarea":q("Textarea"),"profile-builder/field-select":V("Choose an option","Select…"),"profile-builder/field-select-multiple":W("Select (Multiple)",["Option A","Option B"]),"profile-builder/field-checkbox":z("Checkbox","Yes, sign me up"),"profile-builder/field-radio":(ee=[{label:"Option one",selected:!0},{label:"Option two"}],(0,u.jsxs)("svg",{...y,children:[C("Radio"),ee.map((e,t)=>{const i=50+22*t;return(0,u.jsxs)("g",{children:[(0,u.jsx)("circle",{cx:"24",cy:i,r:"7.5",strokeWidth:"1.5"}),e.selected&&(0,u.jsx)("circle",{cx:"24",cy:i,r:"3.4",style:j}),(0,u.jsx)("text",{x:"40",y:i+4.5,...v,children:e.label})]},t)})]})),"profile-builder/field-heading":J("Heading"),"profile-builder/field-avatar":(0,u.jsxs)("svg",{...y,children:[C("Avatar"),(0,u.jsx)("circle",{cx:"42",cy:"68",r:"16",strokeWidth:"1.6"}),(0,u.jsx)("circle",{cx:"42",cy:"63",r:"5",strokeWidth:"1.4"}),(0,u.jsx)("path",{d:"M33 78c1.4-3.6 16.6-3.6 18 0",strokeWidth:"1.4"}),(0,u.jsx)("rect",{x:"70",y:"60",width:"86",height:"17",rx:"8.5",strokeWidth:"1.4"}),(0,u.jsx)("text",{x:"113",y:"72",textAnchor:"middle",...v,children:"Upload"})]}),"profile-builder/field-number":R("Number","0"),"profile-builder/field-input-hidden":Y("Hidden Field","Not shown on the form"),"profile-builder/field-language":V("Language","English (United States)"),"profile-builder/field-wysiwyg":(0,u.jsxs)("svg",{...y,children:[C("WYSIWYG"),S(40,58),(0,u.jsx)("line",{x1:"16",y1:"56",x2:"224",y2:"56",strokeWidth:"1.3"}),(0,u.jsx)("line",{x1:"28",y1:"48",x2:"38",y2:"48",strokeWidth:"1.6"}),(0,u.jsx)("line",{x1:"46",y1:"48",x2:"56",y2:"48",strokeWidth:"1.6"}),(0,u.jsx)("line",{x1:"64",y1:"48",x2:"74",y2:"48",strokeWidth:"1.6"}),(0,u.jsx)("line",{x1:"30",y1:"70",x2:"210",y2:"70",strokeWidth:"1.3",opacity:"0.45"}),(0,u.jsx)("line",{x1:"30",y1:"82",x2:"150",y2:"82",strokeWidth:"1.3",opacity:"0.45"})]}),"profile-builder/field-html":q("HTML"),"profile-builder/field-upload":(0,u.jsxs)("svg",{...y,children:[C("Upload"),(0,u.jsx)("rect",{x:"16",y:"40",width:"208",height:"56",rx:"7",strokeWidth:"1.6",strokeDasharray:"5 4"}),(0,u.jsx)("path",{d:"M120 76V58",strokeWidth:"1.6"}),(0,u.jsx)("path",{d:"M114 64 120 58 126 64",strokeWidth:"1.6"}),(0,u.jsx)("text",{x:"120",y:"89",textAnchor:"middle",...k,children:"Drop a file or browse"})]}),"profile-builder/field-international-telephone-input":R("Phone","+1 (555) 000-0000",D),"profile-builder/field-select2":(0,u.jsxs)("svg",{...y,children:[C("Select2"),S(42,40),O,(0,u.jsx)("text",{x:"54",y:"67",...v,children:"Search…"}),T]}),"profile-builder/field-phone":R("Phone","+1 (555) 000-0000",P),"profile-builder/field-select-country":V("Country","United States",D),"profile-builder/field-select-timezone":V("Timezone","UTC+00:00 — London"),"profile-builder/field-select-currency":V("Currency","USD — US Dollar ($)"),"profile-builder/field-select-cpt":V("Select (CPT)","Choose a post…"),"profile-builder/field-select-taxonomy":V("Select (Taxonomy)","Choose a category…"),"profile-builder/field-checkbox-toa":z("Terms and Conditions","I agree to the Terms"),"profile-builder/field-datepicker":$("Datepicker","YYYY-MM-DD",E),"profile-builder/field-timepicker":$("Timepicker","HH : MM",L),"profile-builder/field-colorpicker":(0,u.jsxs)("svg",{...y,children:[C("Colorpicker"),S(42,40),(0,u.jsx)("rect",{x:"29",y:"54",width:"16",height:"16",rx:"3",style:j,opacity:"0.85"}),(0,u.jsx)("text",{x:"56",y:"67",...v,children:"#3858E9"})]}),"profile-builder/field-validation":R("Validation","Enter the code"),"profile-builder/field-map":H("Map"),"profile-builder/field-additional-map":H("Additional Map"),"profile-builder/field-recaptcha":U("I'm not a robot",(0,u.jsxs)("g",{strokeWidth:"1.4",opacity:"0.75",children:[(0,u.jsx)("path",{d:"M188 53a6 6 0 1 0 1.7 4.2"}),(0,u.jsx)("path",{d:"M188 49v4h-4"}),(0,u.jsx)("text",{x:"186",y:"78",textAnchor:"middle",fontFamily:"sans-serif",fontSize:"8",style:j,opacity:"0.6",children:"reCAPTCHA"})]})),"profile-builder/field-turnstile":U("Verify you are human",(0,u.jsx)("path",{strokeWidth:"1.4",opacity:"0.75",d:"M180 64h11a3 3 0 0 0 .3-6 4 4 0 0 0-7.7-1.1A3.2 3.2 0 0 0 180 64z"})),"profile-builder/field-select-user-role":V("User Role","Subscriber"),"profile-builder/field-default-blog-details":R("Blog Title","My blog"),"profile-builder/field-mailchimp-subscribe":z("MailChimp","Subscribe to our newsletter"),"profile-builder/field-mailpoet-subscribe":z("MailPoet","Subscribe to our newsletter"),"profile-builder/field-campaign-monitor-subscribe":z("Campaign Monitor","Subscribe to our newsletter"),"profile-builder/field-woo-billing-address":G("Billing Address",["Full name","Street address"]),"profile-builder/field-woo-shipping-address":G("Shipping Address",["Full name","Street address"]),"profile-builder/field-email":R("Email","[email protected]",B),"profile-builder/field-email-confirmation":R("Confirm E-mail","[email protected]",N),"profile-builder/field-gdpr-checkbox":z("GDPR Agreement","I consent to my data being stored"),"profile-builder/field-gdpr-communication-preferences":(0,u.jsxs)("svg",{...y,children:[C("Communication Preferences"),[{label:"E-mail",checked:!0},{label:"Phone"},{label:"SMS"}].map((e,t)=>{const i=42+22*t;return(0,u.jsxs)("g",{children:[(0,u.jsx)("rect",{x:"16",y:i,width:"15",height:"15",rx:"3.5",strokeWidth:"1.5"}),e.checked&&(0,u.jsx)("path",{d:`M19.5 ${i+7.5} 22 ${i+10} 27.5 ${i+4}`,strokeWidth:"1.5"}),(0,u.jsx)("text",{x:"40",y:i+12,...v,children:e.label})]},t)})]}),"profile-builder/field-gdpr-delete":(0,u.jsxs)("svg",{...y,children:[(0,u.jsx)("rect",{x:"16",y:"44",width:"168",height:"36",rx:"7",strokeWidth:"1.6"}),(0,u.jsx)("text",{x:"100",y:"66",textAnchor:"middle",...v,children:"Delete my account"})]}),"profile-builder/field-pms-subscription-plans":(0,u.jsxs)("svg",{...y,children:[C("Subscription Plans"),[{label:"Free",price:"$0",selected:!0},{label:"Monthly",price:"$9 / mo"},{label:"Yearly",price:"$90 / yr"}].map((e,t)=>{const i=48+22*t;return(0,u.jsxs)("g",{children:[(0,u.jsx)("circle",{cx:"24",cy:i,r:"7.5",strokeWidth:"1.5"}),e.selected&&(0,u.jsx)("circle",{cx:"24",cy:i,r:"3.4",style:j}),(0,u.jsx)("text",{x:"40",y:i+4.5,...v,children:e.label}),(0,u.jsx)("text",{x:"224",y:i+4.5,textAnchor:"end",...k,children:e.price})]},t)})]}),"profile-builder/field-pms-billing-fields":(0,u.jsxs)("svg",{...y,children:[C("Billing Fields"),["Billing First Name","Billing Address","Billing Country"].map((e,t)=>{const i=38+24*t;return(0,u.jsxs)("g",{children:[(0,u.jsx)("rect",{x:"16",y:i,width:"208",height:"20",rx:"5",strokeWidth:"1.4"}),(0,u.jsx)("text",{x:"30",y:i+14,...w,children:e})]},t)})]}),"profile-builder/field-honeypot":Y("Honeypot","Anti-spam — hidden from users"),"profile-builder/field-input-url":R("URL","https://example.com",M),"profile-builder/field-select2-multiple":W("Select2 (Multiple)",["Tag one","Tag two"]),"profile-builder/field-repeater":(0,u.jsxs)("svg",{...y,children:[C("Repeater"),(0,u.jsx)("rect",{x:"16",y:"38",width:"208",height:"62",rx:"7",strokeWidth:"1.6"}),(0,u.jsx)("rect",{x:"28",y:"48",width:"184",height:"16",rx:"4",strokeWidth:"1.3"}),(0,u.jsx)("rect",{x:"28",y:"68",width:"184",height:"16",rx:"4",strokeWidth:"1.3"}),(0,u.jsx)("path",{d:"M30 92h7M33.5 88.5v7",strokeWidth:"1.5"}),(0,u.jsx)("text",{x:"46",y:"95",...k,children:"Add row"})]}),"profile-builder/msf-step-break":K,"profile-builder/ffc-columns":X,"profile-builder/progress-bar":Q};var ee;const te="__wppbPreview",ie=({name:e})=>{const t=(0,a.useBlockProps)({className:"wppb-fb-field-art-preview",style:{width:"224px",maxWidth:"none",margin:"6px auto",padding:0,color:"#1e1e1e"}});return(0,u.jsx)("div",{...t,children:Z[e]||null})};(0,l.addFilter)("blocks.registerBlockType","profile-builder/field-art",(e,t)=>{if("string"!=typeof t||!t.startsWith("profile-builder/"))return e;let i=e;if(g[t]&&(i={...i,icon:g[t]}),Z[t]){const e=i.edit;i={...i,attributes:{...i.attributes||{},[te]:{type:"boolean",default:!1}},example:{attributes:{[te]:!0},viewportWidth:248},edit:i=>i?.attributes?.[te]?(0,u.jsx)(ie,{name:t}):(0,u.jsx)(e,{...i})}}return i});const le=window.wp.blocks;function re(){return null}const se=i(978),ne=i(2910),oe=i(4269),ae=["field-input","field-textarea","field-select","field-select-multiple","field-select2","field-select2-multiple","field-select-country","field-select-timezone","field-select-currency","field-select-cpt","field-select-taxonomy","field-checkbox","field-checkbox-toa","field-radio","field-number","field-phone","field-upload","field-avatar","field-colorpicker","field-datepicker","field-timepicker","field-wysiwyg","field-html","field-input-hidden","field-language","field-input-url","field-validation","field-gdpr-checkbox","field-gdpr-delete","field-gdpr-communication-preferences","field-mailchimp-subscribe","field-mailpoet-subscribe","field-campaign-monitor-subscribe","field-woo-billing-address","field-woo-shipping-address","field-pms-subscription-plans","field-pms-billing-fields","field-international-telephone-input","field-map","field-additional-map","field-email","field-honeypot","field-default-aim","field-default-yim","field-default-jabber","field-default-blog-details","field-recaptcha","field-turnstile","field-heading","field-repeater","field-default-username","field-default-email","field-default-password","field-default-first-name","field-default-last-name","field-default-nickname","field-default-biographical-info","field-default-display-name","field-default-website","field-default-name-heading","field-default-contact-info-heading","field-default-about-yourself-heading","field-default-repeat-password","field-email-confirmation","field-select-user-role","msf-step-break","ffc-columns","progress-bar"],de=e=>e.replace(/^\.\//,"").split("/")[0],ce=e=>e&&void 0!==e.default?e.default:e,pe=e=>{const t=ae.indexOf(e);return-1===t?ae.length:t},ue=oe.keys();se.keys().sort((e,t)=>pe(de(e))-pe(de(t))).forEach(e=>{const t=de(e),i=ce(se(e)),l=ce(ne(`./${t}/edit.js`)),r=`./${t}/save.js`,s=ue.includes(r)?ce(oe(r)):re;(0,le.registerBlockType)(i.name,{...i,edit:l,save:s})});const fe=window.wp.plugins;var be=i(6087);const he=["wppb-rf-cpt","wppb-epf-cpt"],me="wppb-fb-block-editor";function xe(){document.body&&document.body.classList.add(me);const e=function(){const e=document.querySelector('iframe[name="editor-canvas"]');return e&&e.contentDocument?e.contentDocument:null}();e&&e.body&&e.body.classList.add(me)}(0,fe.registerPlugin)("wppb-fb-editor-body-class",{render:()=>{const e=(0,c.useSelect)(e=>he.includes(e("core/editor").getCurrentPostType()),[]);return(0,be.useEffect)(()=>{if(!e)return;let t=null;const i=()=>{t||(t=requestAnimationFrame(()=>{t=null,xe()}))};xe();const l=new MutationObserver(i);l.observe(document.body,{childList:!0,subtree:!0});const r=document.querySelector('iframe[name="editor-canvas"]');return r&&r.addEventListener("load",i),()=>{l.disconnect(),t&&cancelAnimationFrame(t),r&&r.removeEventListener("load",i)}},[e]),null}});const ge=window.wp.editPost,ye=window.wp.coreData,je=window.wp.compose,_e=()=>(0,u.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",style:{fill:"none"},"aria-hidden":"true",focusable:"false",children:[(0,u.jsx)("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2",stroke:"currentColor",strokeWidth:"1.6"}),(0,u.jsx)("path",{d:"M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2",stroke:"currentColor",strokeWidth:"1.6"})]}),we=()=>(0,u.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",style:{fill:"none"},"aria-hidden":"true",focusable:"false",children:(0,u.jsx)("path",{d:"M5 12l5 5 9-10",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}),ve=({text:e})=>{const[t,i]=(0,be.useState)(!1),l=(0,je.useCopyToClipboard)(e,()=>i(!0));return(0,be.useEffect)(()=>{if(!t)return;const e=setTimeout(()=>i(!1),2e3);return()=>clearTimeout(e)},[t]),(0,u.jsx)(d.Button,{ref:l,className:"wppb-fb-shortcode-copy",showTooltip:!0,label:t?(0,o.__)("Copied!","profile-builder"):(0,o.__)("Copy shortcode","profile-builder"),children:t?(0,u.jsx)(we,{}):(0,u.jsx)(_e,{})})};(0,fe.registerPlugin)("wppb-form-shortcode-plugin",{render:()=>{const e=(0,c.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),[t]=(0,ye.useEntityProp)("postType",e,"meta");if(!["wppb-rf-cpt","wppb-epf-cpt"].includes(e))return null;const i=t&&t.wppb_fb_form_shortcode||"";return(0,u.jsx)(ge.PluginDocumentSettingPanel,{name:"wppb-form-shortcode",title:(0,o.__)("Form Shortcode","profile-builder"),children:""===i?(0,u.jsx)(d.Notice,{status:"warning",isDismissible:!1,children:(0,o.__)("The shortcode will be available after you publish this form.","profile-builder")}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("p",{className:"wppb-fb-shortcode-intro",children:(0,o.__)("Use this shortcode on the page where you want the form to be displayed.","profile-builder")}),(0,u.jsxs)("div",{className:"wppb-fb-shortcode-box",children:[(0,u.jsx)("code",{className:"wppb-fb-shortcode-code",children:i}),(0,u.jsx)(ve,{text:i})]}),i.includes("form_name=")&&(0,u.jsx)("p",{className:"wppb-fb-shortcode-help",children:(0,o.__)("Changing the form title also changes the shortcode!","profile-builder")})]})})}});var ke=i(9018);function Ce(e){const t={},i=(e,l)=>{for(let r=0;r<e.length;r++){const s=e[r];t[s.clientId]={parent:l,index:r,name:s.name},s.innerBlocks&&s.innerBlocks.length&&i(s.innerBlocks,s.clientId)}};return i(e,""),t}const Se=()=>(function(){const{positionMap:e,isDragging:t,dragOrigin:i,allowedParentId:l}=(0,c.useSelect)(e=>{const t=e("core/block-editor"),i=t.getDraggedBlockClientIds?t.getDraggedBlockClientIds():[],l=!(!i||!i.length);let r=null,s=null;if(l){const e=i[0],l=t.getBlockParents(e)||[];for(let e=l.length-1;e>=0;e--){const i=t.getBlock(l[e]);if(i&&i.name===ke.V){r="inside",s=l[e];break}}r||(r="outside")}return{positionMap:Ce(t.getBlocks()),isDragging:l,dragOrigin:r,allowedParentId:s}},[]),r=(0,be.useRef)(null),{moveBlocksToPosition:s}=(0,c.useDispatch)("core/block-editor");(0,be.useEffect)(()=>{const e=function(){const e=document.querySelector('iframe[name="editor-canvas"]'),t=e&&e.contentDocument;return t&&t.body?t.body:document.querySelector(".editor-styles-wrapper")}();if(!e)return;e.classList.remove("wppb-fb-drag-from-outside","wppb-fb-drag-from-repeater");const t=e.querySelectorAll(".wppb-fb-drag-allowed-parent");for(const e of t)e.classList.remove("wppb-fb-drag-allowed-parent");if("outside"===i)e.classList.add("wppb-fb-drag-from-outside");else if("inside"===i&&(e.classList.add("wppb-fb-drag-from-repeater"),l)){const t=e.querySelector('[data-block="'+l+'"]');t&&t.classList.add("wppb-fb-drag-allowed-parent")}},[i,l]),(0,be.useEffect)(()=>{if(t)return;const i=r.current;if(!i)return void(r.current=e);const l=(0,c.select)("core/block-editor"),n=e=>{if(!e)return!1;const t=l.getBlock(e);return!(!t||t.name!==ke.V)},o={...e},a=[];for(const t in e){if(!(t in i))continue;const l=i[t],r=e[t];if(l.parent===r.parent)continue;const s=n(l.parent),d=n(r.parent);(s||d)&&(a.push({clientId:t,fromParent:r.parent||"",toParent:l.parent||"",toIndex:l.index}),o[t]=l)}r.current=o;for(const e of a)s([e.clientId],e.fromParent,e.toParent,e.toIndex)},[e,t,s])}(),null);(0,fe.registerPlugin)("wppb-repeater-scope-guard",{render:()=>{const e=(0,c.useSelect)(e=>e("core/editor").getCurrentPostType(),[]);return["wppb-rf-cpt","wppb-epf-cpt"].includes(e)?(0,u.jsx)(Se,{}):null}}),(0,fe.registerPlugin)("wppb-form-settings-plugin",{render:()=>{const e=(0,c.useSelect)(e=>e("core/editor").getCurrentPostType(),[]);if(!["wppb-rf-cpt","wppb-epf-cpt"].includes(e))return null;const[t,i]=(0,ye.useEntityProp)("postType",e,"meta");return t?(0,u.jsxs)(ge.PluginDocumentSettingPanel,{name:"wppb-form-settings",title:(0,o.__)("Form Settings","profile-builder"),children:[(0,u.jsx)(d.SelectControl,{label:(0,o.__)("Redirect","profile-builder"),value:t.wppb_fb_redirect||"-",options:[{label:(0,o.__)("Default","profile-builder"),value:"-"},{label:(0,o.__)("No","profile-builder"),value:"No"},{label:(0,o.__)("Yes","profile-builder"),value:"Yes"}],onChange:e=>i({wppb_fb_redirect:e}),help:(0,o.__)("Whether to redirect the user to a specific page after submission.","profile-builder")}),"Yes"===t.wppb_fb_redirect&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(d.TextControl,{label:(0,o.__)("URL","profile-builder"),value:t.wppb_fb_url||"",onChange:e=>i({wppb_fb_url:e}),help:(0,o.__)("Destination URL. Use the format: https://www.example.com","profile-builder")}),(0,u.jsx)(d.TextControl,{label:(0,o.__)("Display Messages (seconds)","profile-builder"),type:"number",min:0,max:250,step:1,value:String(t.wppb_fb_display_messages||"1"),onChange:e=>{const t=Math.max(0,Math.min(250,parseInt(e,10)||0));i({wppb_fb_display_messages:String(t)})},help:(0,o.__)("Allowed time to display any success messages (in seconds). 0 disables.","profile-builder")})]}),"wppb-rf-cpt"===e&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(d.SelectControl,{label:(0,o.__)("Set Role","profile-builder"),value:t.wppb_fb_set_role||"default role",options:window.wppbFb&&window.wppbFb.formSettings&&window.wppbFb.formSettings.roles||[{label:(0,o.__)("Default Role","profile-builder"),value:"default role"}],onChange:e=>i({wppb_fb_set_role:e}),help:(0,o.__)("Role assigned to users registered through this form.","profile-builder")}),(0,u.jsx)(d.ToggleControl,{label:(0,o.__)("Automatically Log In","profile-builder"),checked:"Yes"===t.wppb_fb_automatically_log_in,onChange:e=>i({wppb_fb_automatically_log_in:e?"Yes":"No"})})]}),(0,u.jsx)(d.ToggleControl,{label:(0,o.__)("Ajax Validation","profile-builder"),checked:"true"===t.wppb_fb_ajax,onChange:e=>i({wppb_fb_ajax:e?"true":""}),help:(0,o.__)("Validate this form without reloading the page.","profile-builder")})]}):null}});const Te="profile-builder/progress-bar";function Ne(e){return(e||[]).filter(e=>e&&e.name!==Te)}function Ae(e,t){const i=e[t];return!(!i||"profile-builder/msf-step-break"!==i.name)&&0!==t&&t!==e.length-1}const Fe=({postType:e})=>{const[t,i]=(0,ye.useEntityProp)("postType",e,"meta");return t?(0,u.jsx)(Pe,{meta:t,setMeta:i}):null},Pe=({meta:e,setMeta:t})=>{const i="Yes"===e.wppb_fb_progress_bar_enable;return function(e,t){const i=(0,c.useSelect)(e=>Ne(e("core/block-editor").getBlocks()).map(e=>`${e.name}:${e.clientId}`).join("|"),[]),{insertBlock:l,removeBlock:r,updateBlockAttributes:s}=(0,c.useDispatch)("core/block-editor");(0,be.useEffect)(()=>{const i=e=>{s(e,{lock:{}}),r(e,!1)},n=(0,c.select)("core/block-editor").getBlocks(),o=Ne(n);if(!e){for(const e of n)e.name===Te&&i(e.clientId);return}const a=function(e,t){const i="Top of Form"===t||"Both"===t,l="Bottom of Form"===t||"Both"===t,r=[];if(i){const t=e.length>0?e[0].clientId:null;r.push({context:"top",before:t})}for(let t=0;t<e.length;t++){const s=e[t];if(Ae(e,t)&&(l&&r.push({context:"bottom",before:s.clientId}),i)){const i=t+1<e.length?e[t+1].clientId:null;r.push({context:"top",before:i})}}return l&&r.push({context:"bottom",before:null}),r}(o,t),{removes:d,inserts:p}=function(e,t){const i=[],l=[];let r=0;const s=e.map(e=>({clientId:e.clientId,name:e.name,context:e.attributes&&e.attributes["position-context"]})),n=e=>{const t=[];for(let i=e-1;i>=0&&s[i].name===Te;i--)t.unshift(s[i]);return t},o=new Set;for(;r<t.length;r++){const e=t[r];if(null===e.before)break;const i=s.findIndex(t=>t.clientId===e.before);if(i<0){l.push({context:e.context,beforeNonBarClientId:e.before});continue}const a=n(i).filter(e=>!o.has(e.clientId)).find(t=>t.context===e.context);a?o.add(a.clientId):l.push({context:e.context,beforeNonBarClientId:e.before})}const a=t.slice(r);if(a.length>0){let e=-1;for(let t=s.length-1;t>=0;t--)if(s[t].name!==Te){e=t;break}const t=[];for(let i=e+1;i<s.length;i++)s[i].name!==Te||o.has(s[i].clientId)||t.push(s[i]);for(const e of a){const i=t.find(t=>t.context===e.context&&!o.has(t.clientId));i?o.add(i.clientId):l.push({context:e.context,beforeNonBarClientId:null})}}for(const e of s)e.name!==Te||o.has(e.clientId)||i.push(e.clientId);return{removes:i,inserts:l}}(n,a);for(const e of d)i(e);for(const e of p){const t=(0,c.select)("core/block-editor").getBlocks();let i=t.length;null!==e.beforeNonBarClientId&&(i=t.findIndex(t=>t.clientId===e.beforeNonBarClientId),i<0&&(i=t.length)),l((0,le.createBlock)(Te,{"position-context":e.context,lock:{move:!0,remove:!0}}),i,void 0,!1)}},[e,t,i,l,r,s])}(i,e.wppb_fb_progress_bar_position||"Top of Form"),(0,u.jsxs)(ge.PluginDocumentSettingPanel,{name:"wppb-progress-bar-settings",title:(0,o.__)("Progress Bar","profile-builder"),children:[(0,u.jsx)(d.ToggleControl,{label:(0,o.__)("Enable Progress Bar","profile-builder"),checked:i,onChange:e=>t({wppb_fb_progress_bar_enable:e?"Yes":"No"}),help:(0,o.__)("Show a completion progress bar on the form.","profile-builder")}),i&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(d.SelectControl,{label:(0,o.__)("Calculation Mode","profile-builder"),value:e.wppb_fb_progress_bar_calculation_mode||"All Fields",options:[{label:(0,o.__)("All Fields","profile-builder"),value:"All Fields"},{label:(0,o.__)("Required Fields","profile-builder"),value:"Required Fields"}],onChange:e=>t({wppb_fb_progress_bar_calculation_mode:e}),help:(0,o.__)("Choose how progress is calculated.","profile-builder")}),(0,u.jsx)(d.SelectControl,{label:(0,o.__)("Style / Display Options","profile-builder"),value:e.wppb_fb_progress_bar_display_options||"Bar Only",options:[{label:(0,o.__)("Bar Only","profile-builder"),value:"Bar Only"},{label:(0,o.__)("Bar and Percentage Label","profile-builder"),value:"Bar and Percentage Label"}],onChange:e=>t({wppb_fb_progress_bar_display_options:e})}),(0,u.jsx)(d.SelectControl,{label:(0,o.__)("Position","profile-builder"),value:e.wppb_fb_progress_bar_position||"Top of Form",options:[{label:(0,o.__)("Top of Form","profile-builder"),value:"Top of Form"},{label:(0,o.__)("Bottom of Form","profile-builder"),value:"Bottom of Form"},{label:(0,o.__)("Both","profile-builder"),value:"Both"}],onChange:e=>t({wppb_fb_progress_bar_position:e}),help:(0,o.__)("Where to display the progress bar.","profile-builder")})]})]})};(0,fe.registerPlugin)("wppb-progress-bar-settings-plugin",{render:()=>{const e=(0,c.useSelect)(e=>e("core/editor").getCurrentPostType(),[]);return["wppb-rf-cpt","wppb-epf-cpt"].includes(e)&&window.wppbFb&&window.wppbFb.progressBar&&window.wppbFb.progressBar.active?(0,u.jsx)(Fe,{postType:e}):null}});var Be=i(7962);const Me="undefined"!=typeof window&&window.wppbFb&&Array.isArray(window.wppbFb.mandatoryTypes)&&window.wppbFb.mandatoryTypes.length?window.wppbFb.mandatoryTypes:["Default - Username","Default - E-mail","Default - Password"];(0,fe.registerPlugin)("wppb-auto-seed-registration-form",{render:()=>(function(){const e=(0,c.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),t=(0,c.useSelect)(e=>e("core/editor").getEditedPostAttribute("status"),[]),i=(0,c.useSelect)(e=>e("core/block-editor").getBlocks().length,[]),{insertBlocks:l,__unstableMarkNextChangeAsNotPersistent:r}=(0,c.useDispatch)("core/block-editor"),s=(0,be.useRef)(!1);(0,be.useEffect)(()=>{if(s.current)return;if("wppb-rf-cpt"!==e)return;if("auto-draft"!==t)return;if(0!==i)return;const n=(0,Be.n8)();if(!n.length)return;const o=new Map;for(const e of n)e&&e.fieldType&&!o.has(e.fieldType)&&o.set(e.fieldType,e);const a=[];for(const e of Me){const t=o.get(e);t&&a.push((0,le.createBlock)(t.blockName,{...t.attributes||{},id:t.id,lock:{remove:!0}}))}a.length&&(s.current=!0,"function"==typeof r&&r(),l(a,0,void 0,!1))},[e,t,i])}(),null)});const Ie=window.wp.url,De="data-wppb-fb-preview-slot",Oe=()=>(0,u.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:(0,u.jsx)("path",{style:{fill:"currentColor"},d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.4l-6.6 6.6 1 1 6.7-6.6v3.4h1.5V3h-6z"})});(0,fe.registerPlugin)("wppb-fb-form-preview-button",{render:()=>{const{postType:e,postId:t,isSaving:i,isAutosaving:l}=(0,c.useSelect)(e=>{const t=e("core/editor");return{postType:t.getCurrentPostType(),postId:t.getCurrentPostId(),isSaving:t.isSavingPost(),isAutosaving:t.isAutosavingPost()}},[]),{savePost:r}=(0,c.useDispatch)("core/editor"),[s,n]=(0,be.useState)(null),a=["wppb-rf-cpt","wppb-epf-cpt"].includes(e);(0,be.useEffect)(()=>{if(!a)return;const e=()=>{const e=(()=>{const e=document.querySelector(".edit-post-header__settings, .editor-header__settings");if(!e)return null;let t=e.querySelector(`[${De}]`);return t||(t=document.createElement("div"),t.setAttribute(De,""),t.style.display="flex",t.style.alignItems="center"),e.firstChild!==t&&e.insertBefore(t,e.firstChild),t})();n(t=>t===e?t:e)};let t=0;e();const i=new MutationObserver(()=>{t||(t=window.requestAnimationFrame(()=>{t=0,e()}))}),l=document.querySelector(".interface-interface-skeleton")||document.body;return i.observe(l,{childList:!0,subtree:!0}),()=>{i.disconnect(),t&&window.cancelAnimationFrame(t)}},[a]);const p=(0,be.useCallback)(()=>{const e=window.open("about:blank","_blank");Promise.resolve(r()).then(()=>{const t=window.wppbFb&&window.wppbFb.preview||{},i=(0,c.select)("core/editor").getCurrentPostId();if(!t.home||!i)return void(e&&e.close());const l=(0,Ie.addQueryArgs)(t.home,{wppb_fb_preview:i,_wppbnonce:t.nonce});e?e.location=l:window.open(l,"_blank")}).catch(()=>{e&&e.close()})},[r]);return a&&s?(0,be.createPortal)((0,u.jsx)(d.Button,{variant:"secondary",className:"wppb-fb-preview-button",icon:(0,u.jsx)(Oe,{}),iconPosition:"right",onClick:p,disabled:i&&!l,"aria-haspopup":"dialog",children:(0,o.__)("Save and preview","profile-builder")}),s):null}});const Ee=window.wp.apiFetch;var Le=i.n(Ee),Re=i(8565);const Ve=new Set(["conditional-logic"]),We=new Map,qe=new Map,$e=new Map,ze=new Map,Je=new Map;function He(){for(const e of Array.from($e.keys())){const t=$e.get(e),i=Je.get(e);$e.delete(e),We.has(e)&&(clearTimeout(We.get(e)),We.delete(e)),i&&t&&0!==Object.keys(t).length&&lt({...i,patch:t},!0)}}let Ue=!1,Ye=null;const Ge=new Map;function Ke(e,t){return Ge.set(e,t),()=>{Ge.delete(e)}}function Xe(e,t){return e+":"+t}function Qe(e,t,i){qe.set(Xe(e,t),{...i})}function Ze(e,t){const i=Xe(e,t);We.has(i)&&(clearTimeout(We.get(i)),We.delete(i)),qe.delete(i),$e.delete(i),ze.delete(i),Je.delete(i)}function et(e,t,i){Ue||"undefined"==typeof window||(Ue=!0,window.addEventListener("pagehide",He)),Je.set(e,{scope:t.scope,id:t.id,fieldType:t.fieldType,clientId:t.clientId}),We.has(e)&&clearTimeout(We.get(e)),We.set(e,setTimeout(()=>{We.delete(e);const i=$e.get(e);$e.delete(e),i&&0!==Object.keys(i).length&&lt({...t,patch:i})},i))}function tt(e,t,i){const l=Xe(e,t),r=Xe(i.scope,i.id);if(l===r)return;if(qe.has(l)&&(qe.set(r,qe.get(l)),qe.delete(l)),$e.has(l)){const e=$e.get(l),t=$e.get(r)||{};$e.set(r,{...e,...t}),$e.delete(l)}ze.has(l)&&(ze.set(r,ze.get(l)),ze.delete(l)),We.has(l)&&(clearTimeout(We.get(l)),We.delete(l));const s=$e.get(r);s&&Object.keys(s).length>0&&et(r,i,500)}function it({scope:e,id:t,fieldType:i,clientId:l,attributes:r}){if(!t||t<=0)return;if(!e||!r)return;const s=Xe(e,t),n=qe.get(s);if(!n)return void qe.set(s,{...r});const o={};for(const e of Object.keys(r))"id"!==e&&"field"!==e&&r[e]!==n[e]&&(o[e]=r[e]);if(0===Object.keys(o).length)return;qe.set(s,{...n,...o});const a=$e.get(s)||{};Object.assign(a,o),$e.set(s,a),ze.delete(s),et(s,{scope:e,id:t,fieldType:i,clientId:l},500)}function lt({scope:e,id:t,fieldType:i,clientId:l,patch:r},s=!1){const n=Xe(e,t),a="top"===e?`/wppb/v1/existing-fields/${t}`:`/wppb/v1/existing-fields/sub/${encodeURIComponent(e.slice(4))}/${t}`,d={attributes:r};i&&(d.field=i);const p={path:a,method:"PUT",data:d};s&&(p.keepalive=!0),Le()(p).then(t=>{if(!t||!t.field)return;const i=t.field.attributes||{},s=r,o={};for(const e of Object.keys(s))Ve.has(e)||void 0!==i[e]&&i[e]!==s[e]&&(o[e]=i[e]);void 0===t.field.metaName||void 0!==s["meta-name"]||qe.get(n)&&qe.get(n)["meta-name"]===t.field.metaName||(o["meta-name"]=t.field.metaName),ze.delete(n);const a={...qe.get(n)||{},...i};void 0!==t.field.metaName&&(a["meta-name"]=t.field.metaName);const d=$e.get(n);if(d&&Object.assign(a,d),qe.set(n,a),Object.keys(o).length>0){const e=Ge.get(l);e&&e(o,s)}Ye&&Ye(t.field,e)}).catch(s=>{console.warn("[wppb-fb] attribute persist failed",{path:a,patch:r,err:s});const d=(ze.get(n)||0)+1;if(d>5){const e=qe.get(n);if(e){for(const t of Object.keys(r))delete e[t];qe.set(n,e)}return ze.delete(n),void function(){const e=(0,c.dispatch)("core/notices");e&&"function"==typeof e.createErrorNotice&&e.createErrorNotice((0,o.__)("Profile Builder could not save one or more field settings. Check your connection, then re-apply the change or save the form to retry.","profile-builder"),{id:"wppb-fb-persist-failed",isDismissible:!0})}()}ze.set(n,d);const p=$e.get(n)||{};$e.set(n,{...r,...p}),et(n,{scope:e,id:t,fieldType:i,clientId:l},500*d)})}function rt({getBlock:e,updateBlockAttributes:t,markNonPersistent:i}){return l=>(r,s)=>{const n=e(l);if(!n||!n.attributes)return;const o={};for(const e of Object.keys(r))void 0!==s[e]?n.attributes[e]===s[e]&&(o[e]=r[e]):n.attributes[e]||(o[e]=r[e]);0!==Object.keys(o).length&&("function"==typeof i&&i(),t(l,o))}}var st=i(6948),nt=i(6642);const ot='[role="tab"][id$="-media"]',at="wppb-fb-existing-fields-injected",dt=(0,o.__)("Existing Fields","profile-builder"),ct="field-settings",pt=`wppb-fb-existing-fields-sidebar/${ct}`,ut=e=>{const t=[["core/edit-post.openGeneralSidebar",()=>(0,c.dispatch)("core/edit-post")&&(0,c.dispatch)("core/edit-post").openGeneralSidebar(e)],["core/editor.openGeneralSidebar",()=>(0,c.dispatch)("core/editor")&&(0,c.dispatch)("core/editor").openGeneralSidebar(e)],["core/interface.enableComplementaryArea",()=>(0,c.dispatch)("core/interface")&&(0,c.dispatch)("core/interface").enableComplementaryArea("core/edit-post",e)]],i=[];for(const[e,l]of t)try{const e=l();if(void 0!==e&&!1!==e)return}catch(t){i.push(`${e}: ${t?.message??t}`)}i.length===t.length&&console.warn("[wppb-fb] openSidebar: all dispatch targets failed for",e,i)},ft=[{selector:'[role="tab"][id$="-blocks"]',label:(0,o.__)("New Fields","profile-builder")},{selector:'[role="tab"][id$="-patterns"]',label:(0,o.__)("Examples","profile-builder")},{selector:ot,label:dt}],bt=(e,t)=>{if(!e||e.dataset.wppbRenamed===t)return;const i=e.querySelectorAll("span");let l=!1;for(const e of i)if(0===e.children.length&&e.textContent.trim().length>0){e.textContent=t,l=!0;break}if(!l){const i=document.createElement("span");i.textContent=t,e.appendChild(i)}e.hasAttribute("aria-label")&&e.setAttribute("aria-label",t),e.dataset.wppbRenamed=t},ht=e=>{e.classList.add("wppb-fb-existing-fields-hijacked");let t=e.querySelector(`.${at}`);return t||(t=document.createElement("div"),t.className=at,e.appendChild(t)),t},mt=(e,t)=>{for(const i of e)i.name&&i.name.startsWith("profile-builder/")&&t(i),i.innerBlocks&&i.innerBlocks.length&&mt(i.innerBlocks,t)},xt=(0,st.d)({id:null,parentMetaName:null},(e,t)=>e.id===t.id&&e.parentMetaName===t.parentMetaName),gt=(e,t=null)=>{xt.set({id:e,parentMetaName:t})},yt=()=>(0,be.useSyncExternalStore)(xt.subscribe,xt.get),jt=Be.d1,_t=Be.Qt,wt=(e,t=new Map)=>{for(const i of e)t.set(i.id,i),i.innerBlocks&&i.innerBlocks.length&&wt(i.innerBlocks,t);return t},vt=new Set(window.wppbFb&&Array.isArray(window.wppbFb.mandatoryTypes)?window.wppbFb.mandatoryTypes:[]),kt=e=>{const t=Number(e),i=[];return mt((0,c.select)("core/block-editor").getBlocks(),e=>{e.attributes&&e.attributes.id&&Number(e.attributes.id)===t&&i.push(e.clientId)}),i},Ct=e=>(e=>{const t=e?(0,le.getBlockType)(e):null;return!!(t&&t.attributes&&t.attributes.required)})(e.blockName)&&"yes"===String(e.attributes&&e.attributes.required||"").toLowerCase(),St=({field:e,children:t})=>(0,u.jsxs)("div",{className:"wppb-fb-existing-fields__title",children:[e.title||(0,o.__)("(Untitled)","profile-builder"),Ct(e)&&(0,u.jsx)("span",{className:"wppb-fb-existing-fields__required",title:(0,o.__)("Required field","profile-builder"),children:"*"}),t]}),Tt=({field:e})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"wppb-fb-existing-fields__row",children:[(0,u.jsx)("span",{className:"wppb-fb-existing-fields__label",children:(0,o.__)("Field Type:","profile-builder")}),(0,u.jsx)("span",{className:"wppb-fb-existing-fields__type",children:e.fieldType})]}),(0,u.jsxs)("div",{className:"wppb-fb-existing-fields__row",children:[(0,u.jsx)("span",{className:"wppb-fb-existing-fields__label",children:(0,o.__)("Meta Name:","profile-builder")}),(0,u.jsx)("span",{className:"wppb-fb-existing-fields__meta",children:e.metaName||"—"})]}),(0,u.jsxs)("div",{className:"wppb-fb-existing-fields__row",children:[(0,u.jsx)("span",{className:"wppb-fb-existing-fields__label",children:(0,o.__)("ID:","profile-builder")}),(0,u.jsx)("span",{className:"wppb-fb-existing-fields__id",children:e.id})]})]}),Nt="all",At="in",Ft="notin",Pt=()=>(0,u.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",style:{fill:"none"},"aria-hidden":"true",focusable:"false",children:[(0,u.jsx)("line",{x1:"4",y1:"7",x2:"20",y2:"7",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,u.jsx)("line",{x1:"4",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),(0,u.jsx)("line",{x1:"4",y1:"17",x2:"20",y2:"17",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),Bt=()=>(0,u.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",style:{fill:"none"},"aria-hidden":"true",focusable:"false",children:[(0,u.jsx)("circle",{cx:"12",cy:"12",r:"8",stroke:"currentColor",strokeWidth:"1.6"}),(0,u.jsx)("path",{d:"M8.5 12l2.5 2.5 4.5-5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),Mt=()=>(0,u.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",style:{fill:"none"},"aria-hidden":"true",focusable:"false",children:[(0,u.jsx)("circle",{cx:"12",cy:"12",r:"8",stroke:"currentColor",strokeWidth:"1.6"}),(0,u.jsx)("path",{d:"M12 8.5v7M8.5 12h7",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),It=({inMiniInserter:e=!1})=>{const{insertBlock:t,updateBlockAttributes:i,selectBlock:l,clearSelectedBlock:r,removeBlocks:s,__unstableMarkNextChangeAsNotPersistent:n}=(0,c.useDispatch)("core/block-editor"),a=_t(),f=(0,nt.ug)(),b=yt(),h=b.id,m=b.parentMetaName,[x,g]=(0,be.useState)(null),[y,j]=(0,be.useState)(""),[_,w]=(0,be.useState)(Nt),[v,k]=(0,be.useState)("");(0,be.useEffect)(()=>{const e=setTimeout(()=>k(y),150);return()=>clearTimeout(e)},[y]);const[C,S]=(0,be.useState)(null),[T,N]=(0,be.useState)({loading:!1,forms:null,error:!1}),[A,F]=(0,be.useState)(null),P=(0,be.useRef)(null),{isSaving:B,isAutosaving:M,selectedBlockClientId:I,selectedBlockAttrs:D,currentPostId:O}=(0,c.useSelect)(e=>{const t=e("core/editor"),i=e("core/block-editor"),l=i.getSelectedBlockClientId(),r=l?i.getBlock(l):null;return{isSaving:t.isSavingPost(),isAutosaving:t.isAutosavingPost(),selectedBlockClientId:l,selectedBlockAttrs:r?r.attributes:null,currentPostId:t.getCurrentPostId()}},[]),E=I&&D&&D.id?Number(D.id):null;(0,be.useEffect)(()=>{null!==E&&null!==h&&gt(null)},[E,h]);const L=null!==E?E:h;(0,be.useEffect)(()=>{if(e)return;if(null==L)return;let t=0,i=0;const l=()=>{const e=document.querySelector(".wppb-fb-existing-fields:not(.is-mini) .wppb-fb-existing-fields__card.is-selected");e&&null!==e.offsetParent?(e=>{const t=e.closest(".block-editor-tabbed-sidebar__tabpanel");if(!t)return void e.scrollIntoView({block:"nearest"});const i=t.querySelector(".wppb-fb-existing-fields__toolbar"),l=i?i.offsetHeight:0,r=e.getBoundingClientRect(),s=t.getBoundingClientRect(),n=r.top-(s.top+l),o=r.bottom-s.bottom;n<0?t.scrollTop+=n-8:o>0&&(t.scrollTop+=o+8)})(e):++i>=30||(t=window.requestAnimationFrame(l))};return t=window.requestAnimationFrame(l),()=>window.cancelAnimationFrame(t)},[L,e]);const R=(0,be.useRef)(!1);(0,be.useEffect)(()=>{if(e)return;const t=B&&!M;R.current&&!B&&Le()({path:"/wppb/v1/existing-fields"}).then(e=>{if(!e||!Array.isArray(e.fields))return;jt(e.fields);const t=wt(e.fields);mt((0,c.select)("core/block-editor").getBlocks(),e=>{if(!e.attributes||!e.attributes.id)return;const l=t.get(Number(e.attributes.id));l&&e.attributes["meta-name"]!==l.metaName&&("function"==typeof n&&n(),i(e.clientId,{"meta-name":l.metaName}))})}).catch(()=>{}),R.current=t},[B,M]);const V=(0,c.useSelect)(e=>e("core/block-editor").getBlocks(),[]),{fields:W,canvasById:q,canvasOrder:$}=(0,be.useMemo)(()=>{const e=new Map;var t;t=e,mt(V,e=>{e.attributes&&e.attributes.id&&t.set(Number(e.attributes.id),{clientId:e.clientId,attributes:e.attributes})});const i=new Map;let l=0;for(const t of e.keys())i.set(t,l++);return{fields:a.map(t=>{const i=e.get(t.id);if(!i)return t;const{id:l,...r}=i.attributes;return{...t,title:void 0!==r["field-title"]?r["field-title"]:t.title,metaName:void 0!==r["meta-name"]?r["meta-name"]:t.metaName,attributes:{...t.attributes,...r}}}),canvasById:e,canvasOrder:i}},[V,a]),z=e=>{const t=(e.innerBlocks||[]).map(z);return(0,le.createBlock)(e.blockName,{id:e.id,...e.attributes},t)},J=(e,t=null)=>{const i=q.get(e.id);i&&i.clientId?(l(i.clientId),gt(null)):(r(),gt(e.id,t)),ut(pt)},H=v.trim().toLowerCase(),U=(0,be.useMemo)(()=>W.filter(e=>(e=>{if(!H)return!0;const t=[e.title,e.fieldType,e.metaName];if(Array.isArray(e.innerBlocks))for(const i of e.innerBlocks)t.push(i.title,i.fieldType,i.metaName);return t.some(e=>"string"==typeof e&&e.toLowerCase().includes(H))})(e)&&(e=>_===At?q.has(e.id):_!==Ft||!q.has(e.id))(e)).sort((e,t)=>{const i=q.has(e.id),l=q.has(t.id);return i&&l?$.get(e.id)-$.get(t.id):(l?1:0)-(i?1:0)}),[W,q,$,H,_]);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"wppb-fb-existing-fields__toolbar",children:[(0,u.jsx)(d.SearchControl,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",value:y,onChange:j,label:(0,o.__)("Search","profile-builder"),placeholder:(0,o.__)("Search","profile-builder")}),(0,u.jsx)("div",{className:"wppb-fb-existing-fields__filter",children:(0,u.jsxs)(d.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,isBlock:!0,hideLabelFromVision:!0,label:(0,o.__)("Filter fields","profile-builder"),value:_,onChange:e=>w(e||Nt),children:[(0,u.jsx)(d.__experimentalToggleGroupControlOptionIcon,{value:Nt,icon:Pt,label:(0,o.__)("All fields","profile-builder")}),(0,u.jsx)(d.__experimentalToggleGroupControlOptionIcon,{value:At,icon:Bt,label:(0,o.__)("In this form","profile-builder")}),(0,u.jsx)(d.__experimentalToggleGroupControlOptionIcon,{value:Ft,icon:Mt,label:(0,o.__)("Not in this form","profile-builder")})]})})]}),0===U.length?(0,u.jsx)("div",{className:"block-editor-inserter__no-results",children:(0,u.jsx)("p",{children:H?(0,o.__)("No results found.","profile-builder"):_===At?(0,o.__)("No fields are in this form yet.","profile-builder"):_===Ft?(0,o.__)("All fields are already in this form.","profile-builder"):(0,o.__)("No existing fields found.","profile-builder")})}):(0,u.jsx)("ul",{className:"wppb-fb-existing-fields__list",children:U.map(i=>{const l=q.has(i.id),r=L===i.id,s="Repeater"===i.fieldType,n=Array.isArray(i.innerBlocks)?i.innerBlocks:[],a=s&&i.metaName&&n.length>0,b=n.length,h=l&&b?[...n].sort((e,t)=>($.has(e.id)?$.get(e.id):1/0)-($.has(t.id)?$.get(t.id):1/0)):n,g=n.map(e=>e.id),y=null!==E&&g.includes(E),j=m&&m===i.metaName,_=a&&(r||y||j),w=["wppb-fb-existing-fields__card",s?"is-repeater":"",_?"is-expanded":"",l?"is-in-form":"",r?"is-selected":""].filter(Boolean).join(" ");return(0,u.jsxs)("li",{className:w,children:[(0,u.jsx)("div",{className:"wppb-fb-existing-fields__card-main",role:"button",tabIndex:0,"aria-pressed":r||void 0,"aria-expanded":a?_:void 0,onClick:()=>J(i),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),J(i))},children:(0,u.jsxs)("div",{className:"wppb-fb-existing-fields__body",children:[(0,u.jsxs)("div",{className:"wppb-fb-existing-fields__header",children:[(0,u.jsx)(St,{field:i,children:s&&b>0&&(0,u.jsx)("span",{className:"wppb-fb-existing-fields__subfield-count",title:(0,o.sprintf)(/* translators: %d: number of sub-fields */ /* translators: %d: number of sub-fields */
9 +(0,o._n)("%d sub-field","%d sub-fields",b,"profile-builder"),b),children:b})}),(0,u.jsxs)("div",{className:"wppb-fb-existing-fields__actions",children:[!e&&!vt.has(i.fieldType)&&(0,u.jsx)(d.Tooltip,{text:(0,o.__)("Permanently delete this field from every form. This cannot be undone.","profile-builder"),children:(0,u.jsx)(d.Button,{variant:"tertiary",size:"small",isDestructive:!0,isBusy:x===i.id,disabled:null!==x,onClick:e=>((e,t)=>{e.stopPropagation(),F(null),S(t),P.current=t.id,N({loading:!0,forms:null,error:!1}),Le()({path:`/wppb/v1/existing-fields/${t.id}/usage`}).then(e=>{if(P.current!==t.id)return;const i=e&&Array.isArray(e.forms)?e.forms:[];N({loading:!1,forms:i,error:!1})}).catch(()=>{P.current===t.id&&N({loading:!1,forms:[],error:!0})})})(e,i),"aria-label":/* translators: %s: field title */ /* translators: %s: field title */
10 +(0,o.__)("Delete %s","profile-builder").replace("%s",i.title||i.fieldType),children:(0,o.__)("Delete","profile-builder")})}),l?!vt.has(i.fieldType)&&(0,u.jsx)(d.Tooltip,{text:(0,o.__)("Remove this field from this form only. It stays available to add again and is not deleted.","profile-builder"),children:(0,u.jsx)(d.Button,{variant:"secondary",size:"small",onClick:e=>((e,t)=>{e.stopPropagation();const i=kt(t.id);i.length>0&&p(i,{select:c.select,dispatch:c.dispatch,message:(0,o.sprintf)(
11 11 // translators: %s: field title.
12 12 // translators: %s: field title.
13 -(0,s.__)("%s removed from this form.","profile-builder"),t.title||t.fieldType)})})(e,l),"aria-label":/* translators: %s: field title */ /* translators: %s: field title */
14 -(0,s.__)("Remove %s from this form","profile-builder").replace("%s",l.title||l.fieldType)},(0,s.__)("Remove","profile-builder"))):(0,o.createElement)(c.Tooltip,{text:(0,s.__)("Add this existing field to the current form.","profile-builder")},(0,o.createElement)(c.Button,{variant:"secondary",size:"small",onClick:r=>((l,r)=>{l.stopPropagation();const i=l.currentTarget;let n,a;if(e&&(n=f.rootClientId,f.clientId&&!f.isAppender)){const e=(0,p.select)("core/block-editor").getBlockIndex(f.clientId);e>=0&&(a=e)}t(z(r),a,n),e&&(e=>{const t=e&&e.closest(".components-popover");t&&t.dispatchEvent(new KeyboardEvent("keydown",{key:"Escape",keyCode:27,bubbles:!0,cancelable:!0}))})(i)})(r,l),"aria-label":/* translators: %s: field title */ /* translators: %s: field title */
15 -(0,s.__)("Insert %s","profile-builder").replace("%s",l.title||l.fieldType)},(0,s.__)("Insert","profile-builder"))))),(0,o.createElement)(St,{field:l}))),E&&(0,o.createElement)("ul",{className:"wppb-fb-existing-fields__subfields"},b.map(e=>((e,t)=>{const l=q.has(e.id),r=L===e.id,i=["wppb-fb-existing-fields__card","is-subfield",l?"is-in-form":"",r?"is-selected":""].filter(Boolean).join(" ");return(0,o.createElement)("li",{key:e.id,className:i,role:"button",tabIndex:0,"aria-pressed":r||void 0,onClick:l=>{l.stopPropagation(),H(e,t)},onKeyDown:l=>{"Enter"!==l.key&&" "!==l.key||(l.preventDefault(),l.stopPropagation(),H(e,t))}},(0,o.createElement)("div",{className:"wppb-fb-existing-fields__body"},(0,o.createElement)(Ct,{field:e}),(0,o.createElement)(St,{field:e})))})(e,l.metaName))))})),C&&(0,o.createElement)(It,{field:C,usage:T,currentPostId:D,isDeleting:null!==g,error:A,onCancel:()=>{null===g&&(P.current=null,S(null),N({loading:!1,forms:null,error:!1}),F(null))},onConfirm:()=>{const e=C;e&&(F(null),y(e.id),Ze("top",e.id),Le()({path:`/wppb/v1/existing-fields/${e.id}`,method:"DELETE"}).then(()=>{const t=(0,Be.n8)().filter(t=>t.id!==e.id);wt(t);const l=kt(e.id);l.length>0&&n(l),b===e.id&&yt(null),S(null),N({loading:!1,forms:null,error:!1})}).catch(e=>{const t=e&&e.message||(0,s.__)("Failed to delete the field.","profile-builder");F(t)}).finally(()=>y(null)))}}))},It=({field:e,usage:t,currentPostId:l,isDeleting:r,error:i,onCancel:n,onConfirm:a})=>{const d=e.title||e.fieldType,p=(t.forms||[]).filter(e=>Number(e.id)!==Number(l));return(0,o.createElement)(c.Modal,{title:(0,s.__)("Delete field","profile-builder"),className:"wppb-fb-delete-confirm",onRequestClose:n,shouldCloseOnClickOutside:!r,shouldCloseOnEsc:!r},(0,o.createElement)("p",{className:"wppb-fb-delete-confirm__message"},(0,s.sprintf)(/* translators: %s: field title or type */ /* translators: %s: field title or type */
16 -(0,s.__)("Delete the field “%s”? This removes it from every form that uses it and cannot be undone.","profile-builder"),d)),t.loading&&(0,o.createElement)("p",{className:"wppb-fb-delete-confirm__checking"},(0,o.createElement)(c.Spinner,null),(0,s.__)("Checking which other forms use this field…","profile-builder")),!t.loading&&p.length>0&&(0,o.createElement)("div",{className:"wppb-fb-delete-confirm__usage",role:"alert"},(0,o.createElement)("p",{className:"wppb-fb-delete-confirm__usage-lead"},(0,o.createElement)("strong",null,(0,s.sprintf)(/* translators: %d: number of other forms */ /* translators: %d: number of other forms */
17 -(0,s._n)("This field is used on %d other form.","This field is used on %d other forms.",p.length,"profile-builder"),p.length))," ",(0,s.__)("Deleting it will also remove it from:","profile-builder")),(0,o.createElement)("ul",{className:"wppb-fb-delete-confirm__forms"},p.map(e=>(0,o.createElement)("li",{key:e.id},e.title)))),!t.loading&&t.error&&(0,o.createElement)(c.Notice,{status:"warning",isDismissible:!1},(0,s.__)("Could not check which other forms use this field. It will still be removed from every form on delete.","profile-builder")),i&&(0,o.createElement)(c.Notice,{status:"error",isDismissible:!1},i),(0,o.createElement)("div",{className:"wppb-fb-delete-confirm__actions"},(0,o.createElement)(c.Button,{variant:"tertiary",onClick:n,disabled:r},(0,s.__)("Cancel","profile-builder")),(0,o.createElement)(c.Button,{variant:"primary",isDestructive:!0,className:"wppb-fb-delete-confirm__confirm",onClick:a,isBusy:r,disabled:r||t.loading},(0,s.__)("Delete field","profile-builder"))))};(0,fe.registerPlugin)("wppb-fb-existing-fields",{render:()=>{const e=(0,p.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),[t,l]=(0,me.useState)([]),r=["wppb-rf-cpt","wppb-epf-cpt"].includes(e),i=(0,me.useRef)([]),n=(0,me.useCallback)(e=>{const t=i.current;t.length===e.length&&t.every((t,l)=>t===e[l])||(i.current=e,l(e))},[]);return(0,me.useEffect)(()=>{if(!r)return;const e=()=>{for(const{selector:e,label:t}of ft)for(const l of document.querySelectorAll(e))mt(l,t);const e=[];for(const t of document.querySelectorAll(ot)){const l=t.parentNode?t.parentNode.querySelector('[role="tab"][id$="-patterns"]'):null;l&&l.parentNode===t.parentNode&&l.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING&&l.parentNode.insertBefore(t,l);const r=t.getAttribute("aria-controls"),i=r?document.getElementById(r):null;if(!i)continue;const n=bt(i),a=i.closest(".block-editor-inserter__popover");if(a){const e=(0,at._9)();if(a.classList.toggle("wppb-fb-no-existing-fields",!e),!e)continue}a&&i.hasAttribute("hidden")||e.push(n)}n(e)};let t=0;const l=()=>{t||(t=window.requestAnimationFrame(()=>{t=0,e()}))};e();const i=new MutationObserver(l);i.observe(document.body,{attributeFilter:["hidden"],attributes:!0,childList:!0,subtree:!0});const a=(0,at.Rb)(l);return()=>{i.disconnect(),a(),t&&window.cancelAnimationFrame(t)}},[r,n]),r&&0!==t.length?t.map((e,t)=>{const l=!!e.closest(".block-editor-inserter__popover"),r=e.parentElement&&e.parentElement.id||`wppb-fb-existing-fields-${t}`;return(0,me.createPortal)((0,o.createElement)("div",{className:"wppb-fb-existing-fields"+(l?" is-mini":"")},(0,o.createElement)(Mt,{inMiniInserter:l})),e,r)}):null}});const jt=({clientId:e})=>{const t=(0,p.useRegistry)();return(0,me.useEffect)(()=>{e&&t.dispatch("core/block-editor").selectBlock(e)},[e,t]),null},Dt=({clientId:e})=>{const t=(0,p.useRegistry)();return(0,me.useEffect)(()=>{if(!e)return;const l=t.select("core/block-editor"),r=t.dispatch("core/block-editor"),i=it({getBlock:e=>l.getBlock(e),updateBlockAttributes:r.updateBlockAttributes,markNonPersistent:"function"==typeof r.__unstableMarkNextChangeAsNotPersistent?r.__unstableMarkNextChangeAsNotPersistent:void 0});return Ke(e,i(e))},[e,t]),null},Ot=(e,t)=>{for(const l of e){if(l.clientId===t)return l;if(l.innerBlocks&&l.innerBlocks.length){const e=Ot(l.innerBlocks,t);if(e)return e}}return null},Lt=({field:e,scope:t="top",parentMetaName:l=null,parentRepeaterId:r=0,onPatch:i})=>{const n="sub"===t?`sub:${l}`:"top",{initialBlocks:a,initialTargetClientId:p}=(0,me.useMemo)(()=>{const i=((e,t,l,r)=>{try{if(!(0,re.getBlockType)(e.blockName))return{blocks:[],targetClientId:null};const i=e=>(0,re.createBlock)(e.blockName,{id:e.id,...e.attributes||{}},(e.innerBlocks||[]).map(i)),n=(e.innerBlocks||[]).map(i),a=(0,re.createBlock)(e.blockName,{id:e.id,"field-title":e.title,"meta-name":e.metaName,...e.attributes||{}},n);if("top"===t)return{blocks:[a],targetClientId:a.clientId};const o={id:r>0?r:0,"meta-name":l};return{blocks:[(0,re.createBlock)(ke.V,o,[a])],targetClientId:a.clientId}}catch(r){return console.warn("[wppb-fb] buildInitialBlocks: createBlock failed for",{blockName:e?.blockName,fieldType:e?.fieldType,id:e?.id,scope:t,parentMetaName:l},r),{blocks:[],targetClientId:null}}})(e,t,l,r);return{initialBlocks:i.blocks,initialTargetClientId:i.targetClientId}},[e.id,e.blockName,t,l,r]),[u,f]=(0,me.useState)(a),m=(0,me.useRef)(p);(0,me.useEffect)(()=>{f(a),m.current=p},[a,p]);const b=(0,me.useRef)(null);(0,me.useEffect)(()=>{if(0===u.length||!m.current)return;const t=Ot(u,m.current);if(!t)return;const l=n+":"+e.id+":"+t.clientId;b.current!==l&&(Qe(n,e.id,t.attributes),b.current=l)},[u,e.id,n]);const h=(0,me.useCallback)(t=>{if(f(t),0===t.length||!m.current)return;const l=Ot(t,m.current);l&&(lt({scope:n,id:e.id,fieldType:e.fieldType,clientId:l.clientId,attributes:l.attributes}),i&&i(l.attributes))},[e.id,e.fieldType,n,i]);return 0!==u.length&&m.current?(0,o.createElement)("div",{className:"wppb-fb-virtual-field-edit","aria-hidden":"true"},(0,o.createElement)(d.BlockEditorProvider,{value:u,onChange:h,onInput:h,settings:{}},(0,o.createElement)(jt,{clientId:m.current}),(0,o.createElement)(Dt,{clientId:m.current}),(0,o.createElement)(d.BlockList,null))):(0,o.createElement)(c.PanelBody,{title:(0,s.__)("Field Settings","profile-builder")},(0,o.createElement)(c.Notice,{status:"warning",isDismissible:!1},(0,s.__)("Unable to render settings for this field type.","profile-builder")))};Ye=(e,t)=>{if("top"===t){const t=(0,Be.n8)().map(t=>t.id===e.id?e:t);return t.some(t=>t.id===e.id)||t.push(e),void wt(t)}if("string"==typeof t&&t.startsWith("sub:")){const l=t.slice(4),r=(0,Be.n8)().map(t=>{if("Repeater"!==t.fieldType||t.metaName!==l)return t;const r=Array.isArray(t.innerBlocks)?t.innerBlocks.slice():[],i=r.findIndex(t=>t.id===e.id);return i>=0?r[i]=e:r.push(e),{...t,innerBlocks:r}});wt(r)}};const Rt=({blockType:e})=>e?(0,o.createElement)("div",{className:"wppb-fb-field-type-card"},(0,o.createElement)("span",{className:"wppb-fb-field-type-card__icon"},(0,o.createElement)(d.BlockIcon,{icon:e.icon,showColors:!0})),(0,o.createElement)("div",{className:"wppb-fb-field-type-card__content"},(0,o.createElement)("h2",{className:"wppb-fb-field-type-card__title"},e.title),e.description&&(0,o.createElement)("span",{className:"wppb-fb-field-type-card__description"},e.description))):null,Vt=()=>{const{id:e,parentMetaName:t}=_t(),l=Et(),r=(0,p.useSelect)(e=>{const t=e("core/block-editor"),l=t.getSelectedBlockClientId(),r=l?t.getBlock(l):null;return r?r.name:null},[]),i=!(!r||!r.startsWith("profile-builder/")),{field:n,parentRepeater:a}=(0,me.useMemo)(()=>{if(null===e)return{field:null,parentRepeater:null};if(t){const r=l.find(e=>"Repeater"===e.fieldType&&e.metaName===t)||null;return r?{field:(r.innerBlocks||[]).find(t=>t.id===e)||null,parentRepeater:r}:{field:null,parentRepeater:null}}return{field:l.find(t=>t.id===e)||null,parentRepeater:null}},[e,t,l]);if(i){const e=r?(0,re.getBlockType)(r):null;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(Rt,{blockType:e}),(0,o.createElement)(Re.k,{bubblesVirtually:!0}))}if(!n)return(0,o.createElement)(c.PanelBody,{title:(0,s.__)("Field Settings","profile-builder")},(0,o.createElement)("p",null,(0,s.__)("Select a field from the Existing Fields list or click a field block on the canvas to edit its settings.","profile-builder")));const d=n.blockName?(0,re.getBlockType)(n.blockName):null,u=!!t&&!!a,f=u?(0,s.sprintf)(/* translators: %s: parent Repeater title or meta-name */ /* translators: %s: parent Repeater title or meta-name */
18 -(0,s.__)('Sub-field of Repeater "%s". Edits here update the global sub-field definition.',"profile-builder"),a.title||a.metaName):(0,s.__)("This field is not in the current form. Edits here update the global field definition and apply wherever the field is used.","profile-builder");return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(Rt,{blockType:d}),(0,o.createElement)("p",{className:"wppb-fb-field-settings__hint"},f),(0,o.createElement)(Lt,{field:n,scope:u?"sub":"top",parentMetaName:u?t:null,parentRepeaterId:u&&a?a.id:0}),(0,o.createElement)(Re.k,{bubblesVirtually:!0}))},Wt=()=>{const{selectedBlockClientId:e,selectedBlockName:t}=(0,p.useSelect)(e=>{const t=e("core/block-editor"),l=t.getSelectedBlockClientId(),r=l?t.getBlock(l):null;return{selectedBlockClientId:l,selectedBlockName:r?r.name:null}},[]),{id:l}=_t(),r=e&&t&&t.startsWith("profile-builder/")||null!=l?pt:"edit-post/document",i=(0,p.useSelect)(e=>{const t=e("core/edit-post");return t&&"function"==typeof t.getActiveGeneralSidebarName?t.getActiveGeneralSidebarName():null},[]);return(0,me.useEffect)(()=>{i!==r&&queueMicrotask(()=>{const e=(0,p.select)("core/edit-post");(e&&"function"==typeof e.getActiveGeneralSidebarName?e.getActiveGeneralSidebarName():null)!==r&&ut(r)})},[r,i]),null},qt=(e,t)=>{for(const l of e)l.name&&l.name.startsWith("profile-builder/")&&t.add(l.clientId),l.innerBlocks&&l.innerBlocks.length&&qt(l.innerBlocks,t);return t},$t=()=>{const e=(0,p.useSelect)(e=>{const t=e("core/block-editor"),l=t.getSelectedBlockClientId(),r=l?t.getBlock(l):null;return r&&r.name&&r.name.startsWith("profile-builder/")?l:null},[]),t=(0,p.useSelect)(e=>e("core/block-editor").getBlocks(),[]),l=(0,me.useRef)(null);return(0,me.useEffect)(()=>{e&&l.current&&l.current.has(e)&&(()=>{const e=document.querySelector(ot);e&&"true"!==e.getAttribute("aria-selected")&&e.click()})()},[e]),(0,me.useEffect)(()=>{l.current=qt(t,new Set)},[t]),null},zt=()=>{const{id:e}=_t();return(0,me.useEffect)(()=>{if(null==e)return;const t=[],l=(e,l)=>{if(!e)return;const r=(e=>t=>{const l=t.target;l&&"function"==typeof l.closest&&(l.closest("[data-block], .wp-block")||(e||l.closest(".block-editor-writing-flow, .block-editor-block-list__layout, .editor-styles-wrapper"))&&yt(null))})(l);e.addEventListener("pointerdown",r,!0),t.push(()=>e.removeEventListener("pointerdown",r,!0))};l(document,!1);const r=document.querySelector('iframe[name="editor-canvas"]');if(r)try{l(r.contentDocument,!0)}catch(e){}return()=>t.forEach(e=>e())},[e]),null};(0,fe.registerPlugin)("wppb-fb-existing-fields-sidebar",{render:()=>{const e=(0,p.useSelect)(e=>e("core/editor").getCurrentPostType(),[]);return["wppb-rf-cpt","wppb-epf-cpt"].includes(e)?(0,o.createElement)(o.Fragment,null,(0,o.createElement)(Wt,null),(0,o.createElement)($t,null),(0,o.createElement)(zt,null),(0,o.createElement)(ye.PluginSidebar,{name:ct,title:(0,s.__)("Field Settings","profile-builder"),icon:"forms",className:"wppb-fb-field-settings-sidebar",isPinnable:!1},(0,o.createElement)(Vt,null))):null}});var Ht=l(2340);const Jt=["wppb-rf-cpt","wppb-epf-cpt"],Ut="wppb-fb-root-appender";(0,fe.registerPlugin)("wppb-fb-root-canvas-appender",{render:()=>{const e=(0,p.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),t=Jt.includes(e),[l,r]=(0,me.useState)(null),i=(0,me.useRef)(null),n=(0,me.useCallback)(e=>{i.current!==e&&(i.current=e,r(e))},[]);return(0,me.useEffect)(()=>{if(!t)return;let e=0,l=null,r=null;const i=()=>{e||(e=window.requestAnimationFrame(()=>{e=0,a()}))},a=()=>{const e=document.querySelector('iframe[name="editor-canvas"]'),t=e?e.contentDocument:document;t!==l&&(r&&r.disconnect(),l=t,r=null,t&&t.body&&(r=new MutationObserver(i),r.observe(t.body,{childList:!0,subtree:!0})));const a=t?t.querySelector(".block-editor-block-list__layout.is-root-container"):null;if(!a)return void n(null);let o=a.querySelector(`:scope > .${Ut}`);o?a.lastElementChild!==o&&a.appendChild(o):(o=t.createElement("div"),o.className=Ut,a.appendChild(o)),n(o)};a();const o=new MutationObserver(i);return o.observe(document.body,{childList:!0,subtree:!0}),()=>{o.disconnect(),r&&r.disconnect(),e&&window.cancelAnimationFrame(e)}},[t,n]),t&&l?(0,me.createPortal)((0,o.createElement)(Ht.A,{label:(0,s.__)("Add field","profile-builder")}),l):null}});var Yt=l(2716);const Gt=["wppb-rf-cpt","wppb-epf-cpt"],Kt="block-editor-block-list__empty-block-inserter",Xt=`.block-editor-block-list__insertion-point-inserter, .${Kt}`,Qt=({clientId:e,rootClientId:t})=>{const l=document.querySelector('iframe[name="editor-canvas"]'),r=l?l.contentDocument:document;if(!r)return null;const i=l?l.getBoundingClientRect():{left:0,top:0},n=e&&r.querySelector(`[data-block="${e}"]`)||t&&r.querySelector(`[data-block="${t}"]`)||r.querySelector(".block-editor-block-list__layout.is-root-container");if(!n)return null;const a=n.getBoundingClientRect();return{left:i.left+a.left,top:i.top+a.top}},Zt=({onToggle:e})=>{const t=(0,me.useRef)(!1);return(0,me.useEffect)(()=>{t.current||(t.current=!0,e())},[]),(0,o.createElement)("span",{className:"wppb-fb-point-inserter__toggle","aria-hidden":"true"})};(0,fe.registerPlugin)("wppb-fb-canvas-point-inserter",{render:()=>{const e=(0,p.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),t=Gt.includes(e),[l,r]=(0,me.useState)(null),i=(0,me.useCallback)(()=>r(null),[]),n=(0,me.useRef)(null);return(0,me.useEffect)(()=>{if(!t)return;const e=e=>{const t=e.target;if(!t||"function"!=typeof t.closest)return;const l=t.closest(Xt);if(!l)return;const i=(e=>{const t=(0,p.select)("core/block-editor");if(!t)return null;if(e.classList.contains(Kt)){const e=t.getSelectedBlockClientId();return e?{rootClientId:t.getBlockRootClientId(e)||void 0,clientId:e}:null}const l=t.getBlockInsertionPoint();if(!l)return null;const r=l.rootClientId||void 0,i=(t.getBlockOrder(l.rootClientId)||[])[l.index];return i?{rootClientId:r,clientId:i}:{rootClientId:r,isAppender:!0}})(l);if(!i)return;e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();const n=l.getBoundingClientRect();r({rect:{left:n.left,top:n.top,width:n.width,height:n.height},position:(0,Yt.R_)(n),origin:Qt(i),...i})};return document.addEventListener("click",e,!0),()=>document.removeEventListener("click",e,!0)},[t]),(0,me.useEffect)(()=>{if(!l||!l.origin)return;let e=0,t=null;const r=()=>{e=window.requestAnimationFrame(r);const i=n.current,a=Qt(l);if(!i||!a)return;const o=a.left-l.origin.left,s=a.top-l.origin.top;t&&t.dx===o&&t.dy===s||(t={dx:o,dy:s},i.style.left=`${l.rect.left+o}px`,i.style.top=`${l.rect.top+s}px`)};return e=window.requestAnimationFrame(r),()=>window.cancelAnimationFrame(e)},[l]),(0,me.useEffect)(()=>{if(l)return(0,at.Xi)(l),()=>(0,at.CR)()},[l]),t&&l?(0,me.createPortal)((0,o.createElement)("div",{className:"wppb-fb-point-inserter",ref:n,style:{left:`${l.rect.left}px`,top:`${l.rect.top}px`,width:`${l.rect.width}px`,height:`${l.rect.height}px`}},(0,o.createElement)(d.Inserter,{rootClientId:l.rootClientId,clientId:l.clientId,isAppender:!!l.isAppender,position:l.position,onToggle:e=>{e||i()},onSelectOrClose:i,renderToggle:({onToggle:e})=>(0,o.createElement)(Zt,{onToggle:e})})),document.body):null}});const el=["wppb-rf-cpt","wppb-epf-cpt"];(0,fe.registerPlugin)("wppb-fb-mini-inserter-search-focus",{render:()=>{const e=(0,p.useSelect)(e=>el.includes(e("core/editor").getCurrentPostType()),[]);return(0,me.useEffect)(()=>{if(!e)return;let t=null;const l=()=>{if(!(0,at.VT)().open)return t&&t(),void(t=null);t||(t=(()=>{let e=0,t=0,l=0;const r=()=>{l&&window.cancelAnimationFrame(l),l=0,document.removeEventListener("pointerdown",r,!0),document.removeEventListener("keydown",r,!0)},i=()=>{if(l=0,e++>=12||t>=3)return void r();const n=document.querySelector(".block-editor-inserter__popover"),a=n?(e=>{for(const t of e.querySelectorAll(".block-editor-inserter__search")){if(t.closest("[hidden]"))continue;const e=t.querySelector("input");if(e)return e}return null})(n):null;a&&(a.ownerDocument.activeElement===a?t++:(t=0,a.focus({preventScroll:!0}))),l=window.requestAnimationFrame(i)};return document.addEventListener("pointerdown",r,!0),document.addEventListener("keydown",r,!0),l=window.requestAnimationFrame(i),r})())},r=(0,at.Rb)(l);return l(),()=>{r(),t&&t()}},[e]),null}});const tl=["wppb-rf-cpt","wppb-epf-cpt"];(0,fe.registerPlugin)("wppb-fb-canvas-padding-deselect",{render:()=>{const e=(0,p.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),t=tl.includes(e),{clearSelectedBlock:l}=(0,p.useDispatch)(d.store);return(0,me.useEffect)(()=>{if(!t)return;const e=e=>{if(0!==e.button)return;if(!(e=>{const t=e&&e.ownerDocument;if(!t)return!1;const l=t.querySelector(".editor-styles-wrapper");return!!l&&(e===l||l===t.body&&e===t.documentElement)})(e.target))return;const t=(0,p.select)(d.store);if(!t.getSelectedBlockClientId()&&!t.hasMultiSelection())return;l();const r=e.target.ownerDocument,i=r.activeElement;i&&i!==r.body&&"function"==typeof i.blur&&i.blur()};let r=null,i=0;const n=()=>{const t=document.querySelector('iframe[name="editor-canvas"]'),l=t?t.contentDocument:document;l!==r&&(r&&r.removeEventListener("pointerdown",e,!0),r=l,l&&l.addEventListener("pointerdown",e,!0))};n();const a=new MutationObserver(()=>{i||(i=window.requestAnimationFrame(()=>{i=0,n()}))});return a.observe(document.body,{childList:!0,subtree:!0}),()=>{a.disconnect(),i&&window.cancelAnimationFrame(i),r&&r.removeEventListener("pointerdown",e,!0)}},[t,l]),null}});const ll=["wppb-rf-cpt","wppb-epf-cpt"],rl=["core/editor","core/edit-post"];(0,fe.registerPlugin)("wppb-fb-force-open-inserter",{render:()=>{const e=(0,p.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),t=ll.includes(e),l=(0,p.useSelect)(e=>{for(const t of rl){const l=e(t);if(l&&"function"==typeof l.isInserterOpened)return!!l.isInserterOpened()}return!0},[]);return(0,me.useEffect)(()=>{t&&!1===l&&(()=>{for(const e of rl){const t=(0,p.select)(e),l=(0,p.dispatch)(e);if(t&&"function"==typeof t.isInserterOpened&&l&&"function"==typeof l.setIsInserterOpened)return l.setIsInserterOpened(!0),!0}})()},[t,l]),null}});const il=["wppb-rf-cpt","wppb-epf-cpt"];(0,fe.registerPlugin)("wppb-fb-unique-field-tooltip",{render:()=>{const e=(0,p.useSelect)(e=>il.includes(e("core/editor").getCurrentPostType()),[]),[t,l]=(0,me.useState)(null);if((0,me.useEffect)(()=>{if(!e)return;const t=(()=>{const e=window.wppbFb?.uniqueness?.uniqueBlocks;return new Set(Array.isArray(e)?e.map(e=>`editor-block-list-item-${e.replace("/","-")}`):[])})();if(!t.size)return;const r=e=>l((e=>{const l=e?.closest?.(".block-editor-block-types-list__item");return l&&(e=>e.disabled||"true"===e.getAttribute("aria-disabled"))(l)&&Array.from(l.classList).some(e=>t.has(e))?l:null})(e.target)),i=()=>l(null);return document.addEventListener("mouseover",r),document.addEventListener("focusin",r),document.documentElement.addEventListener("mouseleave",i),()=>{document.removeEventListener("mouseover",r),document.removeEventListener("focusin",r),document.documentElement.removeEventListener("mouseleave",i)}},[e]),!t||!t.isConnected)return null;const r=t.querySelector(".block-editor-block-types-list__item-title")?.textContent?.trim();return(0,o.createElement)(c.Popover,{className:"wppb-fb-unique-tip",anchor:t,placement:"bottom",offset:8,focusOnMount:!1,animate:!1},r?(0,s.sprintf)(/* translators: %s: field name, e.g. "Username". */ /* translators: %s: field name, e.g. "Username". */
19 -(0,s.__)("“%s” is already in this form. This field can only be added once per form.","profile-builder"),r):(0,s.__)("This field is already in this form. It can only be added once per form.","profile-builder"))}});const nl=["wppb-rf-cpt","wppb-epf-cpt"],al="is-fullscreen-mode";(0,fe.registerPlugin)("wppb-fb-force-disable-fullscreen",{render:()=>{const e=(0,p.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),t=nl.includes(e);return(0,me.useEffect)(()=>{if(!t)return;const e=document.body;if(!e)return;const l=()=>{e.classList.contains(al)&&e.classList.remove(al)};l();const r=new MutationObserver(l);return r.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>r.disconnect()},[t]),null}});const ol=["wppb-rf-cpt","wppb-epf-cpt"],sl="core/keyboard-shortcuts",dl=["global","block","main","list-view","text","canvas","editor","register","selection","navigation"],cl=()=>{const e=(0,p.dispatch)(sl);if(!e||"function"!=typeof e.unregisterShortcut)return 0;const t=(()=>{const e=(0,p.select)(sl);if(!e||"function"!=typeof e.getCategoryShortcuts)return[];const t=new Set;for(const l of dl){let r;try{r=e.getCategoryShortcuts(l)}catch(e){continue}Array.isArray(r)&&r.forEach(e=>{e&&t.add(e)})}return Array.from(t)})();return t.forEach(t=>e.unregisterShortcut(t)),t.length};(0,fe.registerPlugin)("wppb-fb-disable-keyboard-shortcuts",{render:()=>{const e=(0,p.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),t=ol.includes(e);return(0,me.useEffect)(()=>{if(t)return cl(),(0,p.subscribe)(()=>{cl()},sl)},[t]),null}});const pl=["wppb-rf-cpt","wppb-epf-cpt"],ul=["copy","cut","paste"],fl="wppbFbClipboardGuard",ml=["checkbox","radio","button","submit","reset","file","range","color","image"];function bl(e){(function(e){if(!e||"function"!=typeof e.closest)return!1;if(e.closest('[contenteditable="true"], [contenteditable=""]'))return!0;const t=e.closest("input, textarea");if(!t)return!1;if("TEXTAREA"===t.tagName)return!0;const l=(t.getAttribute("type")||"text").toLowerCase();return!ml.includes(l)})(e.target)||(e.stopImmediatePropagation(),e.preventDefault())}function hl(e){if(!e||!e.documentElement)return;if("1"===e.documentElement.dataset[fl])return;e.documentElement.dataset[fl]="1";const t=e.defaultView?[e,e.defaultView]:[e];for(const e of t)for(const t of ul)e.addEventListener(t,bl,!0)}function gl(){const e=document.querySelector('iframe[name="editor-canvas"]');return e&&e.contentDocument?e.contentDocument:document.querySelector(".editor-styles-wrapper")?document:null}(0,fe.registerPlugin)("wppb-fb-disable-block-clipboard",{render:()=>{const e=(0,p.useSelect)(e=>pl.includes(e("core/editor").getCurrentPostType()),[]);return(0,me.useEffect)(()=>{if(!e)return;let t=null;const l=()=>{t||(t=requestAnimationFrame(()=>{t=null,hl(gl())}))};hl(gl());const r=new MutationObserver(l);r.observe(document.body,{childList:!0,subtree:!0});const i=document.querySelector('iframe[name="editor-canvas"]');return i&&i.addEventListener("load",l),()=>{r.disconnect(),t&&cancelAnimationFrame(t),i&&i.removeEventListener("load",l)}},[e]),null}});const yl=["wppb-rf-cpt","wppb-epf-cpt"],_l=()=>{const e=document.querySelector(".editor-document-bar__command");e&&"-1"!==e.getAttribute("tabindex")&&e.setAttribute("tabindex","-1")};function wl(e,t,l,r,i){for(const n of e)if(n&&n.name){if(n.name.startsWith("profile-builder/")&&n.attributes&&n.attributes.id){const e=i[n.name]||"";r.push({clientId:n.clientId,name:n.name,id:Number(n.attributes.id),attributes:n.attributes,scope:t,fieldType:e})}if(n.innerBlocks&&n.innerBlocks.length)if(n.name===ke.V&&n.attributes){const e="sub:"+(n.attributes["meta-name"]||"");n.attributes["meta-name"]&&wl(n.innerBlocks,e,n.attributes["meta-name"],r,i)}else wl(n.innerBlocks,t,l,r,i)}return r}(0,fe.registerPlugin)("wppb-fb-disable-document-bar",{render:()=>{const e=(0,p.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),t=yl.includes(e);return(0,me.useEffect)(()=>{if(!t)return;_l();const e=new MutationObserver(_l);return e.observe(document.body,{childList:!0,subtree:!0}),()=>e.disconnect()},[t]),null}}),(0,fe.registerPlugin)("wppb-fb-block-attribute-mirror",{render:()=>{const e=(0,p.useRegistry)(),{updateBlockAttributes:t,__unstableMarkNextChangeAsNotPersistent:l}=(0,p.useDispatch)("core/block-editor"),r=(0,p.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),i=["wppb-rf-cpt","wppb-epf-cpt"].includes(r),n=(0,me.useRef)(new Set),a=(0,me.useRef)(new Map);return(0,me.useEffect)(()=>{if(!i)return;const r=window.wppbFb&&window.wppbFb.conditionalFields&&window.wppbFb.conditionalFields.blockToFieldType||{},o=it({getBlock:t=>e.select("core/block-editor").getBlock(t),updateBlockAttributes:t,markNonPersistent:"function"==typeof l?l:void 0});let s=null;const d=new Map,c=()=>{const i=e.select("core/block-editor").getBlocks();if(i===s)return;s=i;const c=wl(i,"top",null,[],r),p=new Set,u=[];for(const e of c)p.has(e.id)?u.push(e.clientId):p.add(e.id);if(u.length>0){"function"==typeof l&&l();for(const e of u)t(e,{id:0});return}const f=new Set;for(const e of c)f.add(e.scope+":"+e.id);const m=[];for(const e of n.current)f.has(e)||m.push(e);if(m.length>0){const e=new Map;for(const t of c){const l=t.scope+":"+t.id;n.current.has(l)||e.set(t.id,t)}for(const t of m){const[l,r]=t.split(/:(?=[^:]+$)/),i=Number(r),a=e.get(i);if(a&&a.scope!==l){const r=a.scope+":"+a.id;tt(l,i,{scope:a.scope,id:a.id,fieldType:a.fieldType,clientId:a.clientId}),n.current.delete(t),n.current.add(r),d.has(t)&&(d.set(r,d.get(t)),d.delete(t)),e.delete(i)}}}for(const e of c){const t=e.scope+":"+e.id;if(!a.current.has(e.clientId)){const t=Ke(e.clientId,o(e.clientId));a.current.set(e.clientId,t)}n.current.has(t)?d.get(t)!==e.attributes&&(d.set(t,e.attributes),lt({scope:e.scope,id:e.id,fieldType:e.fieldType,clientId:e.clientId,attributes:e.attributes})):(Qe(e.scope,e.id,e.attributes),n.current.add(t),d.set(t,e.attributes))}for(const e of Array.from(n.current))if(!f.has(e)){const[t,l]=e.split(/:(?=[^:]+$)/);Ze(t,Number(l)),n.current.delete(e),d.delete(e)}const b=new Set(c.map(e=>e.clientId));for(const[e,t]of Array.from(a.current.entries()))b.has(e)||(t(),a.current.delete(e))};let p=!1,u=!1;c();const f=e.subscribe(()=>{p||(p=!0,Promise.resolve().then(()=>{p=!1,u||c()}))});return()=>{u=!0,f();for(const e of a.current.values())e();a.current.clear(),n.current.clear()}},[i,e,t,l]),null}});const El=({postType:e})=>{const[t,l]=(0,_e.useEntityProp)("postType",e,"meta"),r=(0,p.useSelect)(e=>{const t=e("core/block-editor");return t?function(e){const t=Ne(e);let l=0;for(let e=0;e<t.length;e++)Ae(t,e)&&l++;return l}(t.getBlocks()):0},[]);if(!t)return null;const i=t.wppb_fb_msf_pagination||"",n=t.wppb_fb_msf_tabs||"",a=Array.isArray(t.wppb_fb_msf_tab_titles)?t.wppb_fb_msf_tab_titles:[],d=r+1;return(0,o.createElement)(ye.PluginDocumentSettingPanel,{name:"wppb-msf-settings",title:(0,s.__)("Multi-Step Forms","profile-builder")},0===r&&(0,o.createElement)(c.Notice,{status:"info",isDismissible:!1},(0,s.__)('Insert a "Step Break" block between fields to split this form into steps. Pagination and tabs become active once at least one step break is in place.',"profile-builder")),(0,o.createElement)(c.ToggleControl,{label:(0,s.__)("Show pagination","profile-builder"),checked:"yes"===i,onChange:e=>l({wppb_fb_msf_pagination:e?"yes":"no"}),help:(0,s.__)("Display numeric step pagination next to the Previous / Next buttons.","profile-builder")}),(0,o.createElement)(c.ToggleControl,{label:(0,s.__)("Show step tabs","profile-builder"),checked:"yes"===n,onChange:e=>l({wppb_fb_msf_tabs:e?"yes":"no"}),help:(0,s.__)("Display a tabbed step header above the form. Tab labels are configurable below.","profile-builder")}),"yes"===n&&r>0&&(0,o.createElement)("div",{style:{marginTop:"12px"}},(0,o.createElement)("p",{style:{fontWeight:600,marginBottom:"8px"}},(0,s.__)("Tab Titles","profile-builder")),Array.from({length:d}).map((e,t)=>(0,o.createElement)(c.TextControl,{key:t,label:(0,s.__)("Step","profile-builder")+" "+(t+1),value:a[t]||"",onChange:e=>((e,t)=>{const r=a.slice(0,d);for(;r.length<d;)r.push("");r[e]=t,l({wppb_fb_msf_tab_titles:r})})(t,e),placeholder:(0,s.__)("Step","profile-builder")+" "+(t+1)}))))};(0,fe.registerPlugin)("wppb-msf-settings-plugin",{render:()=>{const e=(0,p.useSelect)(e=>e("core/editor").getCurrentPostType(),[]);return["wppb-rf-cpt","wppb-epf-cpt"].includes(e)&&window.wppbFb&&window.wppbFb.msf?(0,o.createElement)(El,{postType:e}):null}}),(0,fe.registerPlugin)("wppb-ffc-settings-plugin",{render:()=>{const e=(0,p.useSelect)(e=>e("core/editor").getCurrentPostType(),[]);if(!["wppb-rf-cpt","wppb-epf-cpt"].includes(e))return null;if(!window.wppbFb||!window.wppbFb.ffc)return null;const[t,l]=(0,_e.useEntityProp)("postType",e,"meta");if(!t)return null;const r=t.wppb_fb_ffc_enable,i=""===r||void 0===r||"yes"===r,n=(0,p.useSelect)(e=>{const t=e("core/block-editor");return t?t.getBlocks().filter(e=>e&&"profile-builder/ffc-columns"===e.name).length:0},[]);return(0,o.createElement)(ye.PluginDocumentSettingPanel,{name:"wppb-ffc-settings",title:(0,s.__)("Form Fields in Columns","profile-builder")},0===n&&(0,o.createElement)(c.Notice,{status:"info",isDismissible:!1},(0,s.__)('Insert a "Columns" block and drop two or more field blocks inside it to wrap them in a horizontal row on the front end.',"profile-builder")),(0,o.createElement)(c.ToggleControl,{label:(0,s.__)("Render columns on the front end","profile-builder"),checked:i,onChange:e=>l({wppb_fb_ffc_enable:e?"yes":"no"}),help:(0,s.__)("When off, Columns blocks are ignored at render time and their fields render in a normal vertical stack. Useful for temporarily disabling the layout without removing the blocks.","profile-builder")}))}})},6948(e,t,l){"use strict";function r(e,t=Object.is){let l=e;const r=new Set;return{get:()=>l,set:e=>{t(l,e)||(l=e,r.forEach(e=>e()))},subscribe:e=>(r.add(e),()=>r.delete(e))}}l.d(t,{d:()=>r})},7962(e,t,l){"use strict";l.d(t,{Qt:()=>o,d1:()=>n,n8:()=>a});var r=l(6087);const i=(0,l(6948).d)(window.wppbFb&&window.wppbFb.existingFields&&window.wppbFb.existingFields.fields||[]),n=e=>i.set(e),a=()=>i.get(),o=()=>(0,r.useSyncExternalStore)(i.subscribe,i.get)},2716(e,t,l){"use strict";l.d(t,{R_:()=>r,WW:()=>i});const r=e=>{if(!e)return"bottom center";const t=window.innerHeight-e.bottom-8,l=e.top-8;return t<Math.min(520,l)?"top center":"bottom center"},i=e=>r((e=>{if(!e)return null;const t=e.getBoundingClientRect(),l=e.ownerDocument?.defaultView?.frameElement;if(!l)return t;const r=l.getBoundingClientRect();return{top:t.top+r.top,bottom:t.bottom+r.top,left:t.left+r.left,right:t.right+r.left,width:t.width,height:t.height}})(e))},6642(e,t,l){"use strict";l.d(t,{CR:()=>c,Rb:()=>f,VT:()=>u,Xi:()=>d,_9:()=>m,ug:()=>p});var r=l(7143),i=l(6087),n=l(6948),a=l(9018);const o={open:!1,rootClientId:void 0,clientId:void 0,isAppender:!1},s=(0,n.d)(o,(e,t)=>e.open===t.open&&e.rootClientId===t.rootClientId&&e.clientId===t.clientId&&e.isAppender===t.isAppender),d=({rootClientId:e,clientId:t,isAppender:l}={})=>s.set({open:!0,rootClientId:e,clientId:t,isAppender:!!l}),c=()=>s.set(o),p=()=>(0,i.useSyncExternalStore)(s.subscribe,s.get),u=()=>s.get(),f=e=>s.subscribe(e),m=()=>{const{rootClientId:e}=s.get();if(!e)return!0;const t=(0,r.select)("core/block-editor");return t.getBlockName(e)!==a.V&&!(t.getBlockParents(e)||[]).some(e=>t.getBlockName(e)===a.V)}},9018(e,t,l){"use strict";l.d(t,{V:()=>r});const r="undefined"!=typeof window&&window.wppbFb&&window.wppbFb.repeater&&window.wppbFb.repeater.parentBlockName||"profile-builder/field-repeater"},1609(e){"use strict";e.exports=window.React},4715(e){"use strict";e.exports=window.wp.blockEditor},6427(e){"use strict";e.exports=window.wp.components},7143(e){"use strict";e.exports=window.wp.data},6087(e){"use strict";e.exports=window.wp.element},7723(e){"use strict";e.exports=window.wp.i18n},6337(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/ffc-columns","wppbAddonBlock":true,"title":"Columns","category":"profile-builder-structural","description":"Form Fields in Columns: wraps two or more adjacent field blocks into a horizontal row. Drag field blocks into the wrapper to add them to the column group.","icon":"columns","keywords":["columns","row","ffc","horizontal","flex"],"supports":{"html":false,"reusable":false,"multiple":true,"inserter":true},"textdomain":"profile-builder","attributes":{}}')},1743(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-additional-map","title":"Additional Map","wppbFieldType":"Additional Map","category":"profile-builder-advanced","icon":"location-alt","description":"Additional Google Maps location selection field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Additional Map Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"map-default-lat":{"type":"string","default":"40.7127753"},"map-default-lng":{"type":"string","default":"-74.0059728"},"map-default-zoom":{"type":"string","default":"12"},"map-height":{"type":"string","default":"400"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},4576(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-avatar","title":"Avatar","wppbFieldType":"Avatar","category":"profile-builder-standard","icon":"admin-users","description":"User avatar upload field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Avatar"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"simple-upload":{"type":"string","default":""},"allowed-image-extensions":{"type":"string","default":".*"},"avatar-size":{"type":"string","default":"100"},"max-file-size":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},1645(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-campaign-monitor-subscribe","title":"Campaign Monitor Subscribe","wppbFieldType":"Campaign Monitor Subscribe","wppbAddonFieldType":true,"category":"profile-builder-advanced","icon":"megaphone","description":"Adds a checkbox that subscribes the user to a Campaign Monitor list.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Subscribe to our newsletter"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"campaign-monitor-lists":{"type":"string","default":""},"campaign-monitor-hide-field":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},37(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-checkbox-toa","title":"Terms and Conditions","wppbFieldType":"Checkbox (Terms and Conditions)","category":"profile-builder-advanced","icon":"feedback","description":"Checkbox for agreeing to terms and conditions.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"I agree to the Terms and Conditions"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":"Please read our terms and conditions..."},"required":{"type":"string","default":"Yes"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},2936(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-checkbox","title":"Checkbox","wppbFieldType":"Checkbox","category":"profile-builder-standard","icon":"forms","description":"Multi-selection checkbox field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Checkbox Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"options":{"type":"string","default":""},"labels":{"type":"string","default":""},"default-options":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},7654(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-colorpicker","title":"Colorpicker","wppbFieldType":"Colorpicker","category":"profile-builder-advanced","icon":"art","description":"Color selection field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Colorpicker Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},4547(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-datepicker","title":"Datepicker","wppbFieldType":"Datepicker","category":"profile-builder-advanced","icon":"calendar","description":"Date selection field with a calendar popup.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Datepicker Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""},"date-format":{"type":"string","default":"mm/dd/yy"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},3119(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-about-yourself-heading","title":"About Yourself (Heading)","wppbFieldType":"Default - About Yourself (Heading)","category":"profile-builder-default","icon":"heading","description":"Default About Yourself section heading.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"About Yourself"},"description":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},3854(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-aim","title":"AIM","wppbFieldType":"Default - AIM","category":"profile-builder-default","icon":"admin-users","description":"Default AIM field. WordPress removed AIM from user profiles in 3.6 (2013); this block stays registered so legacy forms still render, but it is hidden from the inserter for new forms.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"AIM"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":false},"textdomain":"profile-builder"}')},6677(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-biographical-info","title":"Biographical Info","wppbFieldType":"Default - Biographical Info","category":"profile-builder-default","icon":"admin-users","description":"Biographical info (description) field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Biographical Info"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-content":{"type":"string","default":""},"row-count":{"type":"string","default":"5"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},9446(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-blog-details","title":"Blog Details","wppbFieldType":"Default - Blog Details","category":"profile-builder-advanced","icon":"admin-site","description":"Multisite blog details field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Blog Details"},"description":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},5101(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-contact-info-heading","title":"Contact Info (Heading)","wppbFieldType":"Default - Contact Info (Heading)","category":"profile-builder-default","icon":"heading","description":"Default Contact Info section heading.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Contact Info"},"description":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},4695(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-display-name","title":"Display Name","wppbFieldType":"Default - Display name publicly as","category":"profile-builder-default","icon":"admin-users","description":"Field for selecting how to display name publicly.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Display name publicly as"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},8423(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-email","title":"E-mail","wppbFieldType":"Default - E-mail","category":"profile-builder-default","icon":"email","description":"Required e-mail field for registration.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"E-mail"},"description":{"type":"string","default":""},"required":{"type":"string","default":"Yes"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},5347(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-first-name","title":"First Name","wppbFieldType":"Default - First Name","category":"profile-builder-default","icon":"admin-users","description":"Optional first name field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"First Name"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},9747(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-jabber","title":"Jabber / Google Talk","wppbFieldType":"Default - Jabber / Google Talk","category":"profile-builder-default","icon":"admin-users","description":"Default Jabber / Google Talk field. WordPress removed Jabber from user profiles in 3.6 (2013); this block stays registered so legacy forms still render, but it is hidden from the inserter for new forms.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Jabber / Google Talk"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":false},"textdomain":"profile-builder"}')},5711(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-last-name","title":"Last Name","wppbFieldType":"Default - Last Name","category":"profile-builder-default","icon":"admin-users","description":"Optional last name field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Last Name"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},433(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-name-heading","title":"Name (Heading)","wppbFieldType":"Default - Name (Heading)","category":"profile-builder-default","icon":"heading","description":"Default Name section heading.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Name"},"description":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},1785(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-nickname","title":"Nickname","wppbFieldType":"Default - Nickname","category":"profile-builder-default","icon":"admin-users","description":"Optional nickname field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Nickname"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},6384(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-password","title":"Password","wppbFieldType":"Default - Password","category":"profile-builder-default","icon":"lock","description":"Required password field for registration.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Password"},"description":{"type":"string","default":""},"required":{"type":"string","default":"Yes"},"ask-current-password":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},7536(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-repeat-password","title":"Repeat Password","wppbFieldType":"Default - Repeat Password","category":"profile-builder-default","icon":"lock","description":"Required repeat-password confirmation field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Repeat Password"},"description":{"type":"string","default":"Type your password again."},"required":{"type":"string","default":"Yes"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},7185(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-username","title":"Username","wppbFieldType":"Default - Username","category":"profile-builder-default","icon":"admin-users","description":"Required username field for registration.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Username"},"description":{"type":"string","default":""},"required":{"type":"string","default":"Yes"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},3446(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-website","title":"Website","wppbFieldType":"Default - Website","category":"profile-builder-default","icon":"admin-users","description":"Optional website field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Website"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},8934(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-yim","title":"Yahoo IM","wppbFieldType":"Default - Yahoo IM","category":"profile-builder-default","icon":"admin-users","description":"Default Yahoo IM field. WordPress removed Yahoo IM from user profiles in 3.6 (2013); this block stays registered so legacy forms still render, but it is hidden from the inserter for new forms.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Yahoo IM"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":false},"textdomain":"profile-builder"}')},2391(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-email-confirmation","title":"Email Confirmation","wppbFieldType":"Email Confirmation","category":"profile-builder-other","icon":"email-alt","description":"Confirmation field for the user e-mail address.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Confirm E-mail"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"Yes"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},3271(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-email","title":"Email","wppbFieldType":"Email","category":"profile-builder-other","icon":"email","description":"Additional email input field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Email Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},2538(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-gdpr-checkbox","title":"GDPR Checkbox","wppbFieldType":"GDPR Checkbox","category":"profile-builder-other","icon":"shield","description":"GDPR agreement checkbox field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"GDPR Checkbox"},"meta-name":{"type":"string","default":"user_consent_gdpr"},"description":{"type":"string","default":"I agree to the GDPR terms"},"required":{"type":"string","default":"Yes"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},8986(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-gdpr-communication-preferences","title":"GDPR Communication Preferences","wppbFieldType":"GDPR Communication Preferences","wppbAddonFieldType":true,"category":"profile-builder-other","icon":"shield","description":"Lets users choose which communication channels they consent to (Email, Telephone, SMS, Post).","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Communication Preferences"},"meta-name":{"type":"string","default":"gdpr_communication_preferences"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"gdpr-communication-preferences":{"type":"string","default":"email,phone,sms,post"},"gdpr-communication-preferences-sort-order":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},4660(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-gdpr-delete","title":"GDPR Delete Button","wppbFieldType":"GDPR Delete Button","category":"profile-builder-other","icon":"trash","description":"Button to delete account and all data.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Delete Account"},"description":{"type":"string","default":"Click here to delete your account."}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},7701(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-heading","title":"Heading","wppbFieldType":"Heading","category":"profile-builder-standard","icon":"heading","description":"Section heading field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Heading"},"description":{"type":"string","default":""},"heading-tag":{"type":"string","default":"h3"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},7(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-honeypot","title":"Honeypot","wppbFieldType":"Honeypot","category":"profile-builder-other","icon":"shield","description":"Invisible honeypot field to block spam bots.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Honeypot"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},460(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-html","title":"HTML","wppbFieldType":"HTML","category":"profile-builder-standard","icon":"html","description":"Custom HTML block.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"HTML Field"},"description":{"type":"string","default":""},"html-content":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},8374(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-input-hidden","title":"Input (Hidden)","wppbFieldType":"Input (Hidden)","category":"profile-builder-standard","icon":"hidden","description":"Hidden input field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Hidden Input"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},2747(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-input-url","title":"URL","wppbFieldType":"URL","category":"profile-builder-other","icon":"admin-links","description":"URL input field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"URL Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},5495(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-input","title":"Text","wppbFieldType":"Input","category":"profile-builder-standard","icon":"editor-textcolor","description":"Standard text input field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Text Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},8187(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-international-telephone-input","title":"International Telephone Input","wppbFieldType":"International Telephone Input","category":"profile-builder-standard","icon":"phone","description":"International phone number input field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Phone Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""},"initial-country":{"type":"string","default":"auto"},"preferred-countries":{"type":"string","default":""},"excluded-countries":{"type":"string","default":""},"national-mode":{"type":"string","default":""},"hide-flags":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},3067(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-language","title":"Language","wppbFieldType":"Language","category":"profile-builder-standard","icon":"translation","description":"Hidden language field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Language Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},6320(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-mailchimp-subscribe","title":"MailChimp Subscribe","wppbFieldType":"MailChimp Subscribe","wppbAddonFieldType":true,"category":"profile-builder-advanced","icon":"email-alt","description":"Adds a checkbox that subscribes the user to a MailChimp list.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Subscribe to our newsletter"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"mailchimp-lists":{"type":"string","default":""},"mailchimp-default-checked":{"type":"string","default":""},"mailchimp-hide-field":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},9063(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-mailpoet-subscribe","title":"MailPoet Subscribe","wppbFieldType":"MailPoet Subscribe","wppbAddonFieldType":true,"category":"profile-builder-advanced","icon":"email","description":"Adds a checkbox that subscribes the user to a MailPoet list.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Subscribe to our newsletter"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"mailpoet-lists":{"type":"string","default":""},"mailpoet-default-checked":{"type":"string","default":""},"mailpoet-hide-field":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},4281(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-map","title":"Map","wppbFieldType":"Map","category":"profile-builder-advanced","icon":"location","description":"Google Maps location selection field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Map Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"map-api-key":{"type":"string","default":""},"map-default-lat":{"type":"string","default":"40.7127753"},"map-default-lng":{"type":"string","default":"-74.0059728"},"map-default-zoom":{"type":"string","default":"12"},"map-height":{"type":"string","default":"400"},"map-pins-load-type":{"type":"string","default":""},"map-pagination-number":{"type":"string","default":""},"map-bubble-fields":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},9576(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-number","title":"Number","wppbFieldType":"Number","category":"profile-builder-standard","icon":"editor-ol","description":"Numeric input field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Number Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""},"min-number-value":{"type":"string","default":""},"max-number-value":{"type":"string","default":""},"number-step-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},5959(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-phone","title":"Phone","wppbFieldType":"Phone","category":"profile-builder-advanced","icon":"phone","description":"Phone number input field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Phone Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"phone-format":{"type":"string","default":""},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},9205(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-pms-billing-fields","title":"Billing Fields","wppbFieldType":"PMS Billing Fields","wppbAddonFieldType":true,"category":"profile-builder-other","icon":"id","description":"Displays the Paid Member Subscriptions billing fields (from the Tax and/or Invoice add-ons) on Edit Profile forms.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Billing Fields"},"meta-name":{"type":"string","default":""},"pms-billing-fields":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},6282(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-pms-subscription-plans","title":"Subscription Plans","wppbFieldType":"Subscription Plans","wppbAddonFieldType":true,"category":"profile-builder-other","icon":"cart","description":"Displays the Paid Member Subscriptions plans on the register form so users can pick a plan and pay.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Subscription Plans"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"subscription-plans":{"type":"string","default":""},"subscription-plans-sort-order":{"type":"string","default":""},"subscription-plan-selected":{"type":"string","default":"-1"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},4740(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-radio","title":"Radio","wppbFieldType":"Radio","category":"profile-builder-standard","icon":"marker","description":"Single-selection radio field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Radio Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"options":{"type":"string","default":""},"labels":{"type":"string","default":""},"default-option":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},5670(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-recaptcha","title":"reCAPTCHA","wppbFieldType":"reCAPTCHA","category":"profile-builder-advanced","icon":"shield","description":"Google reCAPTCHA field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"reCAPTCHA"},"description":{"type":"string","default":""},"public-key":{"type":"string","default":""},"private-key":{"type":"string","default":""},"recaptcha-type":{"type":"string","default":"v2"},"score-threshold":{"type":"string","default":"0.5"},"captcha-pb-forms":{"type":"string","default":"pb_register"},"captcha-wp-forms":{"type":"string","default":"default_wp_register"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},6569(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-repeater","title":"Repeater","wppbFieldType":"Repeater","category":"profile-builder-other","icon":"embed-generic","description":"Container for repeating fields.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Repeater"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"rpf-enable-limit":{"type":"string","default":""},"rpf-limit":{"type":"string","default":"0"},"rpf-limit-reached-message":{"type":"string","default":""},"rpf-role-limit":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},8502(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-select-country","title":"Select (Country)","wppbFieldType":"Select (Country)","category":"profile-builder-advanced","icon":"admin-site-alt","description":"Country selection drop-down field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Select (Country) Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-option-country":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},757(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-select-cpt","title":"Select (CPT)","wppbFieldType":"Select (CPT)","category":"profile-builder-advanced","icon":"admin-post","description":"Custom Post Type selection drop-down field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Select (CPT) Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-option":{"type":"string","default":""},"cpt":{"type":"string","default":"post"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},1671(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-select-currency","title":"Select (Currency)","wppbFieldType":"Select (Currency)","category":"profile-builder-advanced","icon":"money","description":"Currency selection drop-down field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Select (Currency) Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-option-currency":{"type":"string","default":""},"show-currency-symbol":{"type":"string","default":"No"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},9612(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-select-multiple","title":"Select (Multiple)","wppbFieldType":"Select (Multiple)","category":"profile-builder-standard","icon":"menu","description":"Multi-selection drop-down field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Select (Multiple) Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"options":{"type":"string","default":""},"labels":{"type":"string","default":""},"default-options":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},8799(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-select-taxonomy","title":"Select (Taxonomy)","wppbFieldType":"Select (Taxonomy)","category":"profile-builder-advanced","icon":"category","description":"Taxonomy selection drop-down field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Select (Taxonomy) Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-option":{"type":"string","default":""},"taxonomy":{"type":"string","default":"category"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},2679(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-select-timezone","title":"Select (Timezone)","wppbFieldType":"Select (Timezone)","category":"profile-builder-advanced","icon":"clock","description":"Timezone selection drop-down field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Select (Timezone) Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-option-timezone":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},4502(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-select-user-role","title":"Select (User Role)","wppbFieldType":"Select (User Role)","category":"profile-builder-advanced","icon":"groups","description":"Lets users pick from a configurable list of WordPress roles at registration.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"User Role"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"user-roles":{"type":"string","default":""},"user-roles-on-edit-profile":{"type":"string","default":""},"user-roles-sort-order":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},5529(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-select","title":"Select","wppbFieldType":"Select","category":"profile-builder-standard","icon":"menu","description":"Drop-down selection field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Select Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"options":{"type":"string","default":""},"labels":{"type":"string","default":""},"default-option":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},9508(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-select2-multiple","title":"Select2 (Multiple)","wppbFieldType":"Select2 (Multiple)","category":"profile-builder-other","icon":"menu","description":"Enhanced multi-selection drop-down field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Select2 (Multiple) Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"options":{"type":"string","default":""},"labels":{"type":"string","default":""},"default-options":{"type":"string","default":""},"select2-multiple-tags":{"type":"string","default":"no"},"select2-multiple-limit":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},6385(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-select2","title":"Select2","wppbFieldType":"Select2","category":"profile-builder-advanced","icon":"menu","description":"Enhanced single-selection drop-down field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Select2 Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"options":{"type":"string","default":""},"labels":{"type":"string","default":""},"default-option":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},7739(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-textarea","title":"Textarea","wppbFieldType":"Textarea","category":"profile-builder-standard","icon":"editor-paragraph","description":"Multi-line text input field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Textarea Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-content":{"type":"string","default":""},"row-count":{"type":"string","default":"5"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},1734(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-timepicker","title":"Timepicker","wppbFieldType":"Timepicker","category":"profile-builder-advanced","icon":"clock","description":"Time selection field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Timepicker Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"time-format":{"type":"string","default":"12"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},795(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-turnstile","title":"Turnstile","wppbFieldType":"Turnstile","category":"profile-builder-advanced","icon":"shield","description":"Cloudflare Turnstile field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Turnstile"},"description":{"type":"string","default":""},"turnstile-site-key":{"type":"string","default":""},"turnstile-secret-key":{"type":"string","default":""},"theme":{"type":"string","default":"auto"},"turnstile-pb-forms":{"type":"string","default":"pb_register"},"turnstile-wp-forms":{"type":"string","default":"default_wp_register"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},2476(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-upload","title":"Upload","wppbFieldType":"Upload","category":"profile-builder-standard","icon":"upload","description":"File upload field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Upload Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"simple-upload":{"type":"string","default":""},"allowed-upload-extensions":{"type":"string","default":".*"},"max-file-size":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},5186(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-validation","title":"Validation","wppbFieldType":"Validation","category":"profile-builder-advanced","icon":"saved","description":"Validation input field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Validation Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"Yes"},"validation-possible-values":{"type":"string","default":""},"custom-error-message":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},535(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-woo-billing-address","title":"WooCommerce Customer Billing Address","wppbFieldType":"WooCommerce Customer Billing Address","wppbAddonFieldType":true,"category":"profile-builder-advanced","icon":"cart","description":"WooCommerce billing address fields (choose which sub-fields to show, which are required, and their labels).","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Billing Address"},"meta-name":{"type":"string","default":"wppbwoo_billing"},"description":{"type":"string","default":""},"woo-billing-fields":{"type":"string","default":""},"woo-billing-fields-required":{"type":"string","default":""},"woo-billing-fields-sort-order":{"type":"string","default":""},"woo-billing-fields-name":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},1248(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-woo-shipping-address","title":"WooCommerce Customer Shipping Address","wppbFieldType":"WooCommerce Customer Shipping Address","wppbAddonFieldType":true,"category":"profile-builder-advanced","icon":"cart","description":"WooCommerce shipping address fields (choose which sub-fields to show, which are required, and their labels).","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Shipping Address"},"meta-name":{"type":"string","default":"wppbwoo_shipping"},"description":{"type":"string","default":""},"woo-shipping-fields":{"type":"string","default":""},"woo-shipping-fields-required":{"type":"string","default":""},"woo-shipping-fields-sort-order":{"type":"string","default":""},"woo-shipping-fields-name":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},386(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-wysiwyg","title":"WYSIWYG","wppbFieldType":"WYSIWYG","category":"profile-builder-standard","icon":"editor-code","description":"Rich text editor field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"WYSIWYG Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-content":{"type":"string","default":""},"row-count":{"type":"string","default":"5"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},7399(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/msf-step-break","wppbAddonBlock":true,"title":"Step Break","category":"profile-builder-structural","description":"Multi-Step Forms: ends the current step and starts a new one. Insert between fields to split the form into pages.","icon":"minus","keywords":["step","break","multi","page","msf"],"supports":{"html":false,"reusable":false,"multiple":true,"inserter":true},"textdomain":"profile-builder","attributes":{}}')},9017(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/progress-bar","wppbAddonBlock":true,"title":"Progress Bar","category":"profile-builder-structural","description":"Visual placeholder for the form\'s completion progress bar. Position and style are controlled from the Progress Bar panel in the document sidebar.","icon":"chart-bar","keywords":["progress","bar","completion"],"supports":{"html":false,"reusable":false,"multiple":true,"inserter":false},"textdomain":"profile-builder","attributes":{"position-context":{"type":"string","default":"top","enum":["top","bottom"]}}}')}},l={};function r(e){var i=l[e];if(void 0!==i)return i.exports;var n=l[e]={exports:{}};return t[e](n,n.exports,r),n.exports}r.m=t,e=[],r.O=(t,l,i,n)=>{if(!l){var a=1/0;for(c=0;c<e.length;c++){for(var[l,i,n]=e[c],o=!0,s=0;s<l.length;s++)(!1&n||a>=n)&&Object.keys(r.O).every(e=>r.O[e](l[s]))?l.splice(s--,1):(o=!1,n<a&&(a=n));if(o){e.splice(c--,1);var d=i();void 0!==d&&(t=d)}}return t}n=n||0;for(var c=e.length;c>0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[l,i,n]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var l in t)r.o(t,l)&&!r.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={57:0,350:0};r.O.j=t=>0===e[t];var t=(t,l)=>{var i,n,[a,o,s]=l,d=0;if(a.some(t=>0!==e[t])){for(i in o)r.o(o,i)&&(r.m[i]=o[i]);if(s)var c=s(r)}for(t&&t(l);d<a.length;d++)n=a[d],r.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return r.O(c)},l=globalThis.webpackChunkprofile_builder=globalThis.webpackChunkprofile_builder||[];l.forEach(t.bind(null,0)),l.push=t.bind(null,l.push.bind(l))})();var i=r.O(void 0,[350],()=>r(5851));i=r.O(i)})();
13 +(0,o.__)("%s removed from this form.","profile-builder"),t.title||t.fieldType)})})(e,i),"aria-label":/* translators: %s: field title */ /* translators: %s: field title */
14 +(0,o.__)("Remove %s from this form","profile-builder").replace("%s",i.title||i.fieldType),children:(0,o.__)("Remove","profile-builder")})}):(0,u.jsx)(d.Tooltip,{text:(0,o.__)("Add this existing field to the current form.","profile-builder"),children:(0,u.jsx)(d.Button,{variant:"secondary",size:"small",onClick:l=>((i,l)=>{i.stopPropagation();const r=i.currentTarget;let s,n;if(e&&(s=f.rootClientId,f.clientId&&!f.isAppender)){const e=(0,c.select)("core/block-editor").getBlockIndex(f.clientId);e>=0&&(n=e)}t(z(l),n,s),e&&(e=>{const t=e&&e.closest(".components-popover");t&&t.dispatchEvent(new KeyboardEvent("keydown",{key:"Escape",keyCode:27,bubbles:!0,cancelable:!0}))})(r)})(l,i),"aria-label":/* translators: %s: field title */ /* translators: %s: field title */
15 +(0,o.__)("Insert %s","profile-builder").replace("%s",i.title||i.fieldType),children:(0,o.__)("Insert","profile-builder")})})]})]}),(0,u.jsx)(Tt,{field:i})]})}),_&&(0,u.jsx)("ul",{className:"wppb-fb-existing-fields__subfields",children:h.map(e=>((e,t)=>{const i=q.has(e.id),l=L===e.id,r=["wppb-fb-existing-fields__card","is-subfield",i?"is-in-form":"",l?"is-selected":""].filter(Boolean).join(" ");return(0,u.jsx)("li",{className:r,role:"button",tabIndex:0,"aria-pressed":l||void 0,onClick:i=>{i.stopPropagation(),J(e,t)},onKeyDown:i=>{"Enter"!==i.key&&" "!==i.key||(i.preventDefault(),i.stopPropagation(),J(e,t))},children:(0,u.jsxs)("div",{className:"wppb-fb-existing-fields__body",children:[(0,u.jsx)(St,{field:e}),(0,u.jsx)(Tt,{field:e})]})},e.id)})(e,i.metaName))})]},i.id)})}),C&&(0,u.jsx)(Dt,{field:C,usage:T,currentPostId:O,isDeleting:null!==x,error:A,onCancel:()=>{null===x&&(P.current=null,S(null),N({loading:!1,forms:null,error:!1}),F(null))},onConfirm:()=>{const e=C;e&&(F(null),g(e.id),Ze("top",e.id),Le()({path:`/wppb/v1/existing-fields/${e.id}`,method:"DELETE"}).then(()=>{const t=(0,Be.n8)().filter(t=>t.id!==e.id);jt(t);const i=kt(e.id);i.length>0&&s(i),h===e.id&&gt(null),S(null),N({loading:!1,forms:null,error:!1})}).catch(e=>{const t=e&&e.message||(0,o.__)("Failed to delete the field.","profile-builder");F(t)}).finally(()=>g(null)))}})]})},Dt=({field:e,usage:t,currentPostId:i,isDeleting:l,error:r,onCancel:s,onConfirm:n})=>{const a=e.title||e.fieldType,c=(t.forms||[]).filter(e=>Number(e.id)!==Number(i));return(0,u.jsxs)(d.Modal,{title:(0,o.__)("Delete field","profile-builder"),className:"wppb-fb-delete-confirm",onRequestClose:s,shouldCloseOnClickOutside:!l,shouldCloseOnEsc:!l,children:[(0,u.jsx)("p",{className:"wppb-fb-delete-confirm__message",children:(0,o.sprintf)(/* translators: %s: field title or type */ /* translators: %s: field title or type */
16 +(0,o.__)("Delete the field “%s”? This removes it from every form that uses it and cannot be undone.","profile-builder"),a)}),t.loading&&(0,u.jsxs)("p",{className:"wppb-fb-delete-confirm__checking",children:[(0,u.jsx)(d.Spinner,{}),(0,o.__)("Checking which other forms use this field…","profile-builder")]}),!t.loading&&c.length>0&&(0,u.jsxs)("div",{className:"wppb-fb-delete-confirm__usage",role:"alert",children:[(0,u.jsxs)("p",{className:"wppb-fb-delete-confirm__usage-lead",children:[(0,u.jsx)("strong",{children:(0,o.sprintf)(/* translators: %d: number of other forms */ /* translators: %d: number of other forms */
17 +(0,o._n)("This field is used on %d other form.","This field is used on %d other forms.",c.length,"profile-builder"),c.length)})," ",(0,o.__)("Deleting it will also remove it from:","profile-builder")]}),(0,u.jsx)("ul",{className:"wppb-fb-delete-confirm__forms",children:c.map(e=>(0,u.jsx)("li",{children:e.title},e.id))})]}),!t.loading&&t.error&&(0,u.jsx)(d.Notice,{status:"warning",isDismissible:!1,children:(0,o.__)("Could not check which other forms use this field. It will still be removed from every form on delete.","profile-builder")}),r&&(0,u.jsx)(d.Notice,{status:"error",isDismissible:!1,children:r}),(0,u.jsxs)("div",{className:"wppb-fb-delete-confirm__actions",children:[(0,u.jsx)(d.Button,{variant:"tertiary",onClick:s,disabled:l,children:(0,o.__)("Cancel","profile-builder")}),(0,u.jsx)(d.Button,{variant:"primary",isDestructive:!0,className:"wppb-fb-delete-confirm__confirm",onClick:n,isBusy:l,disabled:l||t.loading,children:(0,o.__)("Delete field","profile-builder")})]})]})};(0,fe.registerPlugin)("wppb-fb-existing-fields",{render:()=>{const e=(0,c.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),[t,i]=(0,be.useState)([]),l=["wppb-rf-cpt","wppb-epf-cpt"].includes(e),r=(0,be.useRef)([]),s=(0,be.useCallback)(e=>{const t=r.current;t.length===e.length&&t.every((t,i)=>t===e[i])||(r.current=e,i(e))},[]);return(0,be.useEffect)(()=>{if(!l)return;const e=()=>{for(const{selector:e,label:t}of ft)for(const i of document.querySelectorAll(e))bt(i,t);const e=[];for(const t of document.querySelectorAll(ot)){const i=t.parentNode?t.parentNode.querySelector('[role="tab"][id$="-patterns"]'):null;i&&i.parentNode===t.parentNode&&i.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING&&i.parentNode.insertBefore(t,i);const l=t.getAttribute("aria-controls"),r=l?document.getElementById(l):null;if(!r)continue;const s=ht(r),n=r.closest(".block-editor-inserter__popover");if(n){const e=(0,nt._9)();if(n.classList.toggle("wppb-fb-no-existing-fields",!e),!e)continue}n&&r.hasAttribute("hidden")||e.push(s)}s(e)};let t=0;const i=()=>{t||(t=window.requestAnimationFrame(()=>{t=0,e()}))};e();const r=new MutationObserver(i);r.observe(document.body,{attributeFilter:["hidden"],attributes:!0,childList:!0,subtree:!0});const n=(0,nt.Rb)(i);return()=>{r.disconnect(),n(),t&&window.cancelAnimationFrame(t)}},[l,s]),l&&0!==t.length?t.map((e,t)=>{const i=!!e.closest(".block-editor-inserter__popover"),l=e.parentElement&&e.parentElement.id||`wppb-fb-existing-fields-${t}`;return(0,be.createPortal)((0,u.jsx)("div",{className:"wppb-fb-existing-fields"+(i?" is-mini":""),children:(0,u.jsx)(It,{inMiniInserter:i})}),e,l)}):null}});const Ot=({clientId:e})=>{const t=(0,c.useRegistry)();return(0,be.useEffect)(()=>{e&&t.dispatch("core/block-editor").selectBlock(e)},[e,t]),null},Et=({clientId:e})=>{const t=(0,c.useRegistry)();return(0,be.useEffect)(()=>{if(!e)return;const i=t.select("core/block-editor"),l=t.dispatch("core/block-editor"),r=rt({getBlock:e=>i.getBlock(e),updateBlockAttributes:l.updateBlockAttributes,markNonPersistent:"function"==typeof l.__unstableMarkNextChangeAsNotPersistent?l.__unstableMarkNextChangeAsNotPersistent:void 0});return Ke(e,r(e))},[e,t]),null},Lt=(e,t)=>{for(const i of e){if(i.clientId===t)return i;if(i.innerBlocks&&i.innerBlocks.length){const e=Lt(i.innerBlocks,t);if(e)return e}}return null},Rt=({field:e,scope:t="top",parentMetaName:i=null,parentRepeaterId:l=0,onPatch:r})=>{const s="sub"===t?`sub:${i}`:"top",{initialBlocks:n,initialTargetClientId:c}=(0,be.useMemo)(()=>{const r=((e,t,i,l)=>{try{if(!(0,le.getBlockType)(e.blockName))return{blocks:[],targetClientId:null};const r=e=>(0,le.createBlock)(e.blockName,{id:e.id,...e.attributes||{}},(e.innerBlocks||[]).map(r)),s=(e.innerBlocks||[]).map(r),n=(0,le.createBlock)(e.blockName,{id:e.id,"field-title":e.title,"meta-name":e.metaName,...e.attributes||{}},s);if("top"===t)return{blocks:[n],targetClientId:n.clientId};const o={id:l>0?l:0,"meta-name":i};return{blocks:[(0,le.createBlock)(ke.V,o,[n])],targetClientId:n.clientId}}catch(l){return console.warn("[wppb-fb] buildInitialBlocks: createBlock failed for",{blockName:e?.blockName,fieldType:e?.fieldType,id:e?.id,scope:t,parentMetaName:i},l),{blocks:[],targetClientId:null}}})(e,t,i,l);return{initialBlocks:r.blocks,initialTargetClientId:r.targetClientId}},[e.id,e.blockName,t,i,l]),[p,f]=(0,be.useState)(n),b=(0,be.useRef)(c);(0,be.useEffect)(()=>{f(n),b.current=c},[n,c]);const h=(0,be.useRef)(null);(0,be.useEffect)(()=>{if(0===p.length||!b.current)return;const t=Lt(p,b.current);if(!t)return;const i=s+":"+e.id+":"+t.clientId;h.current!==i&&(Qe(s,e.id,t.attributes),h.current=i)},[p,e.id,s]);const m=(0,be.useCallback)(t=>{if(f(t),0===t.length||!b.current)return;const i=Lt(t,b.current);i&&(it({scope:s,id:e.id,fieldType:e.fieldType,clientId:i.clientId,attributes:i.attributes}),r&&r(i.attributes))},[e.id,e.fieldType,s,r]);return 0!==p.length&&b.current?(0,u.jsx)("div",{className:"wppb-fb-virtual-field-edit","aria-hidden":"true",children:(0,u.jsxs)(a.BlockEditorProvider,{value:p,onChange:m,onInput:m,settings:{},children:[(0,u.jsx)(Ot,{clientId:b.current}),(0,u.jsx)(Et,{clientId:b.current}),(0,u.jsx)(a.BlockList,{})]})}):(0,u.jsx)(d.PanelBody,{title:(0,o.__)("Field Settings","profile-builder"),children:(0,u.jsx)(d.Notice,{status:"warning",isDismissible:!1,children:(0,o.__)("Unable to render settings for this field type.","profile-builder")})})};Ye=(e,t)=>{if("top"===t){const t=(0,Be.n8)().map(t=>t.id===e.id?e:t);return t.some(t=>t.id===e.id)||t.push(e),void jt(t)}if("string"==typeof t&&t.startsWith("sub:")){const i=t.slice(4),l=(0,Be.n8)().map(t=>{if("Repeater"!==t.fieldType||t.metaName!==i)return t;const l=Array.isArray(t.innerBlocks)?t.innerBlocks.slice():[],r=l.findIndex(t=>t.id===e.id);return r>=0?l[r]=e:l.push(e),{...t,innerBlocks:l}});jt(l)}};const Vt=({blockType:e})=>e?(0,u.jsxs)("div",{className:"wppb-fb-field-type-card",children:[(0,u.jsx)("span",{className:"wppb-fb-field-type-card__icon",children:(0,u.jsx)(a.BlockIcon,{icon:e.icon,showColors:!0})}),(0,u.jsxs)("div",{className:"wppb-fb-field-type-card__content",children:[(0,u.jsx)("h2",{className:"wppb-fb-field-type-card__title",children:e.title}),e.description&&(0,u.jsx)("span",{className:"wppb-fb-field-type-card__description",children:e.description})]})]}):null,Wt=()=>{const{id:e,parentMetaName:t}=yt(),i=_t(),l=(0,c.useSelect)(e=>{const t=e("core/block-editor"),i=t.getSelectedBlockClientId(),l=i?t.getBlock(i):null;return l?l.name:null},[]),r=!(!l||!l.startsWith("profile-builder/")),{field:s,parentRepeater:n}=(0,be.useMemo)(()=>{if(null===e)return{field:null,parentRepeater:null};if(t){const l=i.find(e=>"Repeater"===e.fieldType&&e.metaName===t)||null;return l?{field:(l.innerBlocks||[]).find(t=>t.id===e)||null,parentRepeater:l}:{field:null,parentRepeater:null}}return{field:i.find(t=>t.id===e)||null,parentRepeater:null}},[e,t,i]);if(r){const e=l?(0,le.getBlockType)(l):null;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Vt,{blockType:e}),(0,u.jsx)(Re.k,{bubblesVirtually:!0})]})}if(!s)return(0,u.jsx)(d.PanelBody,{title:(0,o.__)("Field Settings","profile-builder"),children:(0,u.jsx)("p",{children:(0,o.__)("Select a field from the Existing Fields list or click a field block on the canvas to edit its settings.","profile-builder")})});const a=s.blockName?(0,le.getBlockType)(s.blockName):null,p=!!t&&!!n,f=p?(0,o.sprintf)(/* translators: %s: parent Repeater title or meta-name */ /* translators: %s: parent Repeater title or meta-name */
18 +(0,o.__)('Sub-field of Repeater "%s". Edits here update the global sub-field definition.',"profile-builder"),n.title||n.metaName):(0,o.__)("This field is not in the current form. Edits here update the global field definition and apply wherever the field is used.","profile-builder");return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Vt,{blockType:a}),(0,u.jsx)("p",{className:"wppb-fb-field-settings__hint",children:f}),(0,u.jsx)(Rt,{field:s,scope:p?"sub":"top",parentMetaName:p?t:null,parentRepeaterId:p&&n?n.id:0}),(0,u.jsx)(Re.k,{bubblesVirtually:!0})]})},qt=()=>{const{selectedBlockClientId:e,selectedBlockName:t}=(0,c.useSelect)(e=>{const t=e("core/block-editor"),i=t.getSelectedBlockClientId(),l=i?t.getBlock(i):null;return{selectedBlockClientId:i,selectedBlockName:l?l.name:null}},[]),{id:i}=yt(),l=e&&t&&t.startsWith("profile-builder/")||null!=i?pt:"edit-post/document",r=(0,c.useSelect)(e=>{const t=e("core/edit-post");return t&&"function"==typeof t.getActiveGeneralSidebarName?t.getActiveGeneralSidebarName():null},[]);return(0,be.useEffect)(()=>{r!==l&&queueMicrotask(()=>{const e=(0,c.select)("core/edit-post");(e&&"function"==typeof e.getActiveGeneralSidebarName?e.getActiveGeneralSidebarName():null)!==l&&ut(l)})},[l,r]),null},$t=(e,t)=>{for(const i of e)i.name&&i.name.startsWith("profile-builder/")&&t.add(i.clientId),i.innerBlocks&&i.innerBlocks.length&&$t(i.innerBlocks,t);return t},zt=()=>{const e=(0,c.useSelect)(e=>{const t=e("core/block-editor"),i=t.getSelectedBlockClientId(),l=i?t.getBlock(i):null;return l&&l.name&&l.name.startsWith("profile-builder/")?i:null},[]),t=(0,c.useSelect)(e=>e("core/block-editor").getBlocks(),[]),i=(0,be.useRef)(null);return(0,be.useEffect)(()=>{e&&i.current&&i.current.has(e)&&(()=>{const e=document.querySelector(ot);e&&"true"!==e.getAttribute("aria-selected")&&e.click()})()},[e]),(0,be.useEffect)(()=>{i.current=$t(t,new Set)},[t]),null},Jt=()=>{const{id:e}=yt();return(0,be.useEffect)(()=>{if(null==e)return;const t=[],i=(e,i)=>{if(!e)return;const l=(e=>t=>{const i=t.target;i&&"function"==typeof i.closest&&(i.closest("[data-block], .wp-block")||(e||i.closest(".block-editor-writing-flow, .block-editor-block-list__layout, .editor-styles-wrapper"))&&gt(null))})(i);e.addEventListener("pointerdown",l,!0),t.push(()=>e.removeEventListener("pointerdown",l,!0))};i(document,!1);const l=document.querySelector('iframe[name="editor-canvas"]');if(l)try{i(l.contentDocument,!0)}catch(e){}return()=>t.forEach(e=>e())},[e]),null};(0,fe.registerPlugin)("wppb-fb-existing-fields-sidebar",{render:()=>{const e=(0,c.useSelect)(e=>e("core/editor").getCurrentPostType(),[]);return["wppb-rf-cpt","wppb-epf-cpt"].includes(e)?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(qt,{}),(0,u.jsx)(zt,{}),(0,u.jsx)(Jt,{}),(0,u.jsx)(ge.PluginSidebar,{name:ct,title:(0,o.__)("Field Settings","profile-builder"),icon:"forms",className:"wppb-fb-field-settings-sidebar",isPinnable:!1,children:(0,u.jsx)(Wt,{})})]}):null}});var Ht=i(2340);const Ut=["wppb-rf-cpt","wppb-epf-cpt"],Yt="wppb-fb-root-appender";(0,fe.registerPlugin)("wppb-fb-root-canvas-appender",{render:()=>{const e=(0,c.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),t=Ut.includes(e),[i,l]=(0,be.useState)(null),r=(0,be.useRef)(null),s=(0,be.useCallback)(e=>{r.current!==e&&(r.current=e,l(e))},[]);return(0,be.useEffect)(()=>{if(!t)return;let e=0,i=null,l=null;const r=()=>{e||(e=window.requestAnimationFrame(()=>{e=0,n()}))},n=()=>{const e=document.querySelector('iframe[name="editor-canvas"]'),t=e?e.contentDocument:document;t!==i&&(l&&l.disconnect(),i=t,l=null,t&&t.body&&(l=new MutationObserver(r),l.observe(t.body,{childList:!0,subtree:!0})));const n=t?t.querySelector(".block-editor-block-list__layout.is-root-container"):null;if(!n)return void s(null);let o=n.querySelector(`:scope > .${Yt}`);o?n.lastElementChild!==o&&n.appendChild(o):(o=t.createElement("div"),o.className=Yt,n.appendChild(o)),s(o)};n();const o=new MutationObserver(r);return o.observe(document.body,{childList:!0,subtree:!0}),()=>{o.disconnect(),l&&l.disconnect(),e&&window.cancelAnimationFrame(e)}},[t,s]),t&&i?(0,be.createPortal)((0,u.jsx)(Ht.A,{label:(0,o.__)("Add field","profile-builder")}),i):null}});var Gt=i(2716);const Kt=["wppb-rf-cpt","wppb-epf-cpt"],Xt="block-editor-block-list__empty-block-inserter",Qt=`.block-editor-block-list__insertion-point-inserter, .${Xt}`,Zt=({clientId:e,rootClientId:t})=>{const i=document.querySelector('iframe[name="editor-canvas"]'),l=i?i.contentDocument:document;if(!l)return null;const r=i?i.getBoundingClientRect():{left:0,top:0},s=e&&l.querySelector(`[data-block="${e}"]`)||t&&l.querySelector(`[data-block="${t}"]`)||l.querySelector(".block-editor-block-list__layout.is-root-container");if(!s)return null;const n=s.getBoundingClientRect();return{left:r.left+n.left,top:r.top+n.top}},ei=({onToggle:e})=>{const t=(0,be.useRef)(!1);return(0,be.useEffect)(()=>{t.current||(t.current=!0,e())},[]),(0,u.jsx)("span",{className:"wppb-fb-point-inserter__toggle","aria-hidden":"true"})};(0,fe.registerPlugin)("wppb-fb-canvas-point-inserter",{render:()=>{const e=(0,c.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),t=Kt.includes(e),[i,l]=(0,be.useState)(null),r=(0,be.useCallback)(()=>l(null),[]),s=(0,be.useRef)(null);return(0,be.useEffect)(()=>{if(!t)return;const e=e=>{const t=e.target;if(!t||"function"!=typeof t.closest)return;const i=t.closest(Qt);if(!i)return;const r=(e=>{const t=(0,c.select)("core/block-editor");if(!t)return null;if(e.classList.contains(Xt)){const e=t.getSelectedBlockClientId();return e?{rootClientId:t.getBlockRootClientId(e)||void 0,clientId:e}:null}const i=t.getBlockInsertionPoint();if(!i)return null;const l=i.rootClientId||void 0,r=(t.getBlockOrder(i.rootClientId)||[])[i.index];return r?{rootClientId:l,clientId:r}:{rootClientId:l,isAppender:!0}})(i);if(!r)return;e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();const s=i.getBoundingClientRect();l({rect:{left:s.left,top:s.top,width:s.width,height:s.height},position:(0,Gt.R_)(s),origin:Zt(r),...r})};return document.addEventListener("click",e,!0),()=>document.removeEventListener("click",e,!0)},[t]),(0,be.useEffect)(()=>{if(!i||!i.origin)return;let e=0,t=null;const l=()=>{e=window.requestAnimationFrame(l);const r=s.current,n=Zt(i);if(!r||!n)return;const o=n.left-i.origin.left,a=n.top-i.origin.top;t&&t.dx===o&&t.dy===a||(t={dx:o,dy:a},r.style.left=`${i.rect.left+o}px`,r.style.top=`${i.rect.top+a}px`)};return e=window.requestAnimationFrame(l),()=>window.cancelAnimationFrame(e)},[i]),(0,be.useEffect)(()=>{if(i)return(0,nt.Xi)(i),()=>(0,nt.CR)()},[i]),t&&i?(0,be.createPortal)((0,u.jsx)("div",{className:"wppb-fb-point-inserter",ref:s,style:{left:`${i.rect.left}px`,top:`${i.rect.top}px`,width:`${i.rect.width}px`,height:`${i.rect.height}px`},children:(0,u.jsx)(a.Inserter,{rootClientId:i.rootClientId,clientId:i.clientId,isAppender:!!i.isAppender,position:i.position,onToggle:e=>{e||r()},onSelectOrClose:r,renderToggle:({onToggle:e})=>(0,u.jsx)(ei,{onToggle:e})})}),document.body):null}});const ti=["wppb-rf-cpt","wppb-epf-cpt"];(0,fe.registerPlugin)("wppb-fb-mini-inserter-search-focus",{render:()=>{const e=(0,c.useSelect)(e=>ti.includes(e("core/editor").getCurrentPostType()),[]);return(0,be.useEffect)(()=>{if(!e)return;let t=null;const i=()=>{if(!(0,nt.VT)().open)return t&&t(),void(t=null);t||(t=(()=>{let e=0,t=0,i=0;const l=()=>{i&&window.cancelAnimationFrame(i),i=0,document.removeEventListener("pointerdown",l,!0),document.removeEventListener("keydown",l,!0)},r=()=>{if(i=0,e++>=12||t>=3)return void l();const s=document.querySelector(".block-editor-inserter__popover"),n=s?(e=>{for(const t of e.querySelectorAll(".block-editor-inserter__search")){if(t.closest("[hidden]"))continue;const e=t.querySelector("input");if(e)return e}return null})(s):null;n&&(n.ownerDocument.activeElement===n?t++:(t=0,n.focus({preventScroll:!0}))),i=window.requestAnimationFrame(r)};return document.addEventListener("pointerdown",l,!0),document.addEventListener("keydown",l,!0),i=window.requestAnimationFrame(r),l})())},l=(0,nt.Rb)(i);return i(),()=>{l(),t&&t()}},[e]),null}});const ii=["wppb-rf-cpt","wppb-epf-cpt"];(0,fe.registerPlugin)("wppb-fb-canvas-padding-deselect",{render:()=>{const e=(0,c.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),t=ii.includes(e),{clearSelectedBlock:i}=(0,c.useDispatch)(a.store);return(0,be.useEffect)(()=>{if(!t)return;const e=e=>{if(0!==e.button)return;if(!(e=>{const t=e&&e.ownerDocument;if(!t)return!1;const i=t.querySelector(".editor-styles-wrapper");return!!i&&(e===i||i===t.body&&e===t.documentElement)})(e.target))return;const t=(0,c.select)(a.store);if(!t.getSelectedBlockClientId()&&!t.hasMultiSelection())return;i();const l=e.target.ownerDocument,r=l.activeElement;r&&r!==l.body&&"function"==typeof r.blur&&r.blur()};let l=null,r=0;const s=()=>{const t=document.querySelector('iframe[name="editor-canvas"]'),i=t?t.contentDocument:document;i!==l&&(l&&l.removeEventListener("pointerdown",e,!0),l=i,i&&i.addEventListener("pointerdown",e,!0))};s();const n=new MutationObserver(()=>{r||(r=window.requestAnimationFrame(()=>{r=0,s()}))});return n.observe(document.body,{childList:!0,subtree:!0}),()=>{n.disconnect(),r&&window.cancelAnimationFrame(r),l&&l.removeEventListener("pointerdown",e,!0)}},[t,i]),null}});const li=["wppb-rf-cpt","wppb-epf-cpt"],ri=["core/editor","core/edit-post"];(0,fe.registerPlugin)("wppb-fb-force-open-inserter",{render:()=>{const e=(0,c.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),t=li.includes(e),i=(0,c.useSelect)(e=>{for(const t of ri){const i=e(t);if(i&&"function"==typeof i.isInserterOpened)return!!i.isInserterOpened()}return!0},[]);return(0,be.useEffect)(()=>{t&&!1===i&&(()=>{for(const e of ri){const t=(0,c.select)(e),i=(0,c.dispatch)(e);if(t&&"function"==typeof t.isInserterOpened&&i&&"function"==typeof i.setIsInserterOpened)return i.setIsInserterOpened(!0),!0}})()},[t,i]),null}});const si=["wppb-rf-cpt","wppb-epf-cpt"];(0,fe.registerPlugin)("wppb-fb-unique-field-tooltip",{render:()=>{const e=(0,c.useSelect)(e=>si.includes(e("core/editor").getCurrentPostType()),[]),[t,i]=(0,be.useState)(null);if((0,be.useEffect)(()=>{if(!e)return;const t=(()=>{const e=window.wppbFb?.uniqueness?.uniqueBlocks;return new Set(Array.isArray(e)?e.map(e=>`editor-block-list-item-${e.replace("/","-")}`):[])})();if(!t.size)return;const l=e=>i((e=>{const i=e?.closest?.(".block-editor-block-types-list__item");return i&&(e=>e.disabled||"true"===e.getAttribute("aria-disabled"))(i)&&Array.from(i.classList).some(e=>t.has(e))?i:null})(e.target)),r=()=>i(null);return document.addEventListener("mouseover",l),document.addEventListener("focusin",l),document.documentElement.addEventListener("mouseleave",r),()=>{document.removeEventListener("mouseover",l),document.removeEventListener("focusin",l),document.documentElement.removeEventListener("mouseleave",r)}},[e]),!t||!t.isConnected)return null;const l=t.querySelector(".block-editor-block-types-list__item-title")?.textContent?.trim();return(0,u.jsx)(d.Popover,{className:"wppb-fb-unique-tip",anchor:t,placement:"bottom",offset:8,focusOnMount:!1,animate:!1,children:l?(0,o.sprintf)(/* translators: %s: field name, e.g. "Username". */ /* translators: %s: field name, e.g. "Username". */
19 +(0,o.__)("“%s” is already in this form. This field can only be added once per form.","profile-builder"),l):(0,o.__)("This field is already in this form. It can only be added once per form.","profile-builder")})}});const ni=["wppb-rf-cpt","wppb-epf-cpt"],oi="is-fullscreen-mode";(0,fe.registerPlugin)("wppb-fb-force-disable-fullscreen",{render:()=>{const e=(0,c.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),t=ni.includes(e);return(0,be.useEffect)(()=>{if(!t)return;const e=document.body;if(!e)return;const i=()=>{e.classList.contains(oi)&&e.classList.remove(oi)};i();const l=new MutationObserver(i);return l.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>l.disconnect()},[t]),null}});const ai=["wppb-rf-cpt","wppb-epf-cpt"],di="core/keyboard-shortcuts",ci=["global","block","main","list-view","text","canvas","editor","register","selection","navigation"],pi=()=>{const e=(0,c.dispatch)(di);if(!e||"function"!=typeof e.unregisterShortcut)return 0;const t=(()=>{const e=(0,c.select)(di);if(!e||"function"!=typeof e.getCategoryShortcuts)return[];const t=new Set;for(const i of ci){let l;try{l=e.getCategoryShortcuts(i)}catch(e){continue}Array.isArray(l)&&l.forEach(e=>{e&&t.add(e)})}return Array.from(t)})();return t.forEach(t=>e.unregisterShortcut(t)),t.length};(0,fe.registerPlugin)("wppb-fb-disable-keyboard-shortcuts",{render:()=>{const e=(0,c.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),t=ai.includes(e);return(0,be.useEffect)(()=>{if(t)return pi(),(0,c.subscribe)(()=>{pi()},di)},[t]),null}});const ui=["wppb-rf-cpt","wppb-epf-cpt"],fi=["copy","cut","paste"],bi="wppbFbClipboardGuard",hi=["checkbox","radio","button","submit","reset","file","range","color","image"];function mi(e){(function(e){if(!e||"function"!=typeof e.closest)return!1;if(e.closest('[contenteditable="true"], [contenteditable=""]'))return!0;const t=e.closest("input, textarea");if(!t)return!1;if("TEXTAREA"===t.tagName)return!0;const i=(t.getAttribute("type")||"text").toLowerCase();return!hi.includes(i)})(e.target)||(e.stopImmediatePropagation(),e.preventDefault())}function xi(e){if(!e||!e.documentElement)return;if("1"===e.documentElement.dataset[bi])return;e.documentElement.dataset[bi]="1";const t=e.defaultView?[e,e.defaultView]:[e];for(const e of t)for(const t of fi)e.addEventListener(t,mi,!0)}function gi(){const e=document.querySelector('iframe[name="editor-canvas"]');return e&&e.contentDocument?e.contentDocument:document.querySelector(".editor-styles-wrapper")?document:null}(0,fe.registerPlugin)("wppb-fb-disable-block-clipboard",{render:()=>{const e=(0,c.useSelect)(e=>ui.includes(e("core/editor").getCurrentPostType()),[]);return(0,be.useEffect)(()=>{if(!e)return;let t=null;const i=()=>{t||(t=requestAnimationFrame(()=>{t=null,xi(gi())}))};xi(gi());const l=new MutationObserver(i);l.observe(document.body,{childList:!0,subtree:!0});const r=document.querySelector('iframe[name="editor-canvas"]');return r&&r.addEventListener("load",i),()=>{l.disconnect(),t&&cancelAnimationFrame(t),r&&r.removeEventListener("load",i)}},[e]),null}});const yi=["wppb-rf-cpt","wppb-epf-cpt"],ji=()=>{const e=document.querySelector(".editor-document-bar__command");e&&"-1"!==e.getAttribute("tabindex")&&e.setAttribute("tabindex","-1")};function _i(e,t,i,l,r){for(const s of e)if(s&&s.name){if(s.name.startsWith("profile-builder/")&&s.attributes&&s.attributes.id){const e=r[s.name]||"";l.push({clientId:s.clientId,name:s.name,id:Number(s.attributes.id),attributes:s.attributes,scope:t,fieldType:e})}if(s.innerBlocks&&s.innerBlocks.length)if(s.name===ke.V&&s.attributes){const e="sub:"+(s.attributes["meta-name"]||"");s.attributes["meta-name"]&&_i(s.innerBlocks,e,s.attributes["meta-name"],l,r)}else _i(s.innerBlocks,t,i,l,r)}return l}(0,fe.registerPlugin)("wppb-fb-disable-document-bar",{render:()=>{const e=(0,c.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),t=yi.includes(e);return(0,be.useEffect)(()=>{if(!t)return;ji();const e=new MutationObserver(ji);return e.observe(document.body,{childList:!0,subtree:!0}),()=>e.disconnect()},[t]),null}}),(0,fe.registerPlugin)("wppb-fb-block-attribute-mirror",{render:()=>{const e=(0,c.useRegistry)(),{updateBlockAttributes:t,__unstableMarkNextChangeAsNotPersistent:i}=(0,c.useDispatch)("core/block-editor"),l=(0,c.useSelect)(e=>e("core/editor").getCurrentPostType(),[]),r=["wppb-rf-cpt","wppb-epf-cpt"].includes(l),s=(0,be.useRef)(new Set),n=(0,be.useRef)(new Map);return(0,be.useEffect)(()=>{if(!r)return;const l=window.wppbFb&&window.wppbFb.conditionalFields&&window.wppbFb.conditionalFields.blockToFieldType||{},o=rt({getBlock:t=>e.select("core/block-editor").getBlock(t),updateBlockAttributes:t,markNonPersistent:"function"==typeof i?i:void 0});let a=null;const d=new Map,c=()=>{const r=e.select("core/block-editor").getBlocks();if(r===a)return;a=r;const c=_i(r,"top",null,[],l),p=new Set,u=[];for(const e of c)p.has(e.id)?u.push(e.clientId):p.add(e.id);if(u.length>0){"function"==typeof i&&i();for(const e of u)t(e,{id:0});return}const f=new Set;for(const e of c)f.add(e.scope+":"+e.id);const b=[];for(const e of s.current)f.has(e)||b.push(e);if(b.length>0){const e=new Map;for(const t of c){const i=t.scope+":"+t.id;s.current.has(i)||e.set(t.id,t)}for(const t of b){const[i,l]=t.split(/:(?=[^:]+$)/),r=Number(l),n=e.get(r);if(n&&n.scope!==i){const l=n.scope+":"+n.id;tt(i,r,{scope:n.scope,id:n.id,fieldType:n.fieldType,clientId:n.clientId}),s.current.delete(t),s.current.add(l),d.has(t)&&(d.set(l,d.get(t)),d.delete(t)),e.delete(r)}}}for(const e of c){const t=e.scope+":"+e.id;if(!n.current.has(e.clientId)){const t=Ke(e.clientId,o(e.clientId));n.current.set(e.clientId,t)}s.current.has(t)?d.get(t)!==e.attributes&&(d.set(t,e.attributes),it({scope:e.scope,id:e.id,fieldType:e.fieldType,clientId:e.clientId,attributes:e.attributes})):(Qe(e.scope,e.id,e.attributes),s.current.add(t),d.set(t,e.attributes))}for(const e of Array.from(s.current))if(!f.has(e)){const[t,i]=e.split(/:(?=[^:]+$)/);Ze(t,Number(i)),s.current.delete(e),d.delete(e)}const h=new Set(c.map(e=>e.clientId));for(const[e,t]of Array.from(n.current.entries()))h.has(e)||(t(),n.current.delete(e))};let p=!1,u=!1;c();const f=e.subscribe(()=>{p||(p=!0,Promise.resolve().then(()=>{p=!1,u||c()}))});return()=>{u=!0,f();for(const e of n.current.values())e();n.current.clear(),s.current.clear()}},[r,e,t,i]),null}});const wi=({postType:e})=>{const[t,i]=(0,ye.useEntityProp)("postType",e,"meta"),l=(0,c.useSelect)(e=>{const t=e("core/block-editor");return t?function(e){const t=Ne(e);let i=0;for(let e=0;e<t.length;e++)Ae(t,e)&&i++;return i}(t.getBlocks()):0},[]);if(!t)return null;const r=t.wppb_fb_msf_pagination||"",s=t.wppb_fb_msf_tabs||"",n=Array.isArray(t.wppb_fb_msf_tab_titles)?t.wppb_fb_msf_tab_titles:[],a=l+1;return(0,u.jsxs)(ge.PluginDocumentSettingPanel,{name:"wppb-msf-settings",title:(0,o.__)("Multi-Step Forms","profile-builder"),children:[0===l&&(0,u.jsx)(d.Notice,{status:"info",isDismissible:!1,children:(0,o.__)('Insert a "Step Break" block between fields to split this form into steps. Pagination and tabs become active once at least one step break is in place.',"profile-builder")}),(0,u.jsx)(d.ToggleControl,{label:(0,o.__)("Show pagination","profile-builder"),checked:"yes"===r,onChange:e=>i({wppb_fb_msf_pagination:e?"yes":"no"}),help:(0,o.__)("Display numeric step pagination next to the Previous / Next buttons.","profile-builder")}),(0,u.jsx)(d.ToggleControl,{label:(0,o.__)("Show step tabs","profile-builder"),checked:"yes"===s,onChange:e=>i({wppb_fb_msf_tabs:e?"yes":"no"}),help:(0,o.__)("Display a tabbed step header above the form. Tab labels are configurable below.","profile-builder")}),"yes"===s&&l>0&&(0,u.jsxs)("div",{style:{marginTop:"12px"},children:[(0,u.jsx)("p",{style:{fontWeight:600,marginBottom:"8px"},children:(0,o.__)("Tab Titles","profile-builder")}),Array.from({length:a}).map((e,t)=>(0,u.jsx)(d.TextControl,{label:(0,o.__)("Step","profile-builder")+" "+(t+1),value:n[t]||"",onChange:e=>((e,t)=>{const l=n.slice(0,a);for(;l.length<a;)l.push("");l[e]=t,i({wppb_fb_msf_tab_titles:l})})(t,e),placeholder:(0,o.__)("Step","profile-builder")+" "+(t+1)},t))]})]})};(0,fe.registerPlugin)("wppb-msf-settings-plugin",{render:()=>{const e=(0,c.useSelect)(e=>e("core/editor").getCurrentPostType(),[]);return["wppb-rf-cpt","wppb-epf-cpt"].includes(e)&&window.wppbFb&&window.wppbFb.msf?(0,u.jsx)(wi,{postType:e}):null}}),(0,fe.registerPlugin)("wppb-ffc-settings-plugin",{render:()=>{const e=(0,c.useSelect)(e=>e("core/editor").getCurrentPostType(),[]);if(!["wppb-rf-cpt","wppb-epf-cpt"].includes(e))return null;if(!window.wppbFb||!window.wppbFb.ffc)return null;const[t,i]=(0,ye.useEntityProp)("postType",e,"meta");if(!t)return null;const l=t.wppb_fb_ffc_enable,r=""===l||void 0===l||"yes"===l,s=(0,c.useSelect)(e=>{const t=e("core/block-editor");return t?t.getBlocks().filter(e=>e&&"profile-builder/ffc-columns"===e.name).length:0},[]);return(0,u.jsxs)(ge.PluginDocumentSettingPanel,{name:"wppb-ffc-settings",title:(0,o.__)("Form Fields in Columns","profile-builder"),children:[0===s&&(0,u.jsx)(d.Notice,{status:"info",isDismissible:!1,children:(0,o.__)('Insert a "Columns" block and drop two or more field blocks inside it to wrap them in a horizontal row on the front end.',"profile-builder")}),(0,u.jsx)(d.ToggleControl,{label:(0,o.__)("Render columns on the front end","profile-builder"),checked:r,onChange:e=>i({wppb_fb_ffc_enable:e?"yes":"no"}),help:(0,o.__)("When off, Columns blocks are ignored at render time and their fields render in a normal vertical stack. Useful for temporarily disabling the layout without removing the blocks.","profile-builder")})]})}})},6948(e,t,i){"use strict";function l(e,t=Object.is){let i=e;const l=new Set;return{get:()=>i,set:e=>{t(i,e)||(i=e,l.forEach(e=>e()))},subscribe:e=>(l.add(e),()=>l.delete(e))}}i.d(t,{d:()=>l})},7962(e,t,i){"use strict";var l=i(6087);const r=(0,i(6948).d)(window.wppbFb&&window.wppbFb.existingFields&&window.wppbFb.existingFields.fields||[]);i.d(t,["Qt",0,()=>(0,l.useSyncExternalStore)(r.subscribe,r.get),"d1",0,e=>r.set(e),"n8",0,()=>r.get()])},2716(e,t,i){"use strict";const l=e=>{if(!e)return"bottom center";const t=window.innerHeight-e.bottom-8,i=e.top-8;return t<Math.min(520,i)?"top center":"bottom center"};i.d(t,["R_",0,l,"WW",0,e=>l((e=>{if(!e)return null;const t=e.getBoundingClientRect(),i=e.ownerDocument?.defaultView?.frameElement;if(!i)return t;const l=i.getBoundingClientRect();return{top:t.top+l.top,bottom:t.bottom+l.top,left:t.left+l.left,right:t.right+l.left,width:t.width,height:t.height}})(e))])},6642(e,t,i){"use strict";var l=i(7143),r=i(6087),s=i(6948),n=i(9018);const o={open:!1,rootClientId:void 0,clientId:void 0,isAppender:!1},a=(0,s.d)(o,(e,t)=>e.open===t.open&&e.rootClientId===t.rootClientId&&e.clientId===t.clientId&&e.isAppender===t.isAppender);i.d(t,["CR",0,()=>a.set(o),"Rb",0,e=>a.subscribe(e),"VT",0,()=>a.get(),"Xi",0,({rootClientId:e,clientId:t,isAppender:i}={})=>a.set({open:!0,rootClientId:e,clientId:t,isAppender:!!i}),"_9",0,()=>{const{rootClientId:e}=a.get();if(!e)return!0;const t=(0,l.select)("core/block-editor");return t.getBlockName(e)!==n.V&&!(t.getBlockParents(e)||[]).some(e=>t.getBlockName(e)===n.V)},"ug",0,()=>(0,r.useSyncExternalStore)(a.subscribe,a.get)])},9018(e,t,i){"use strict";const l="undefined"!=typeof window&&window.wppbFb&&window.wppbFb.repeater&&window.wppbFb.repeater.parentBlockName||"profile-builder/field-repeater";i.d(t,["V",0,l])},790(e){"use strict";e.exports=window.ReactJSXRuntime},4715(e){"use strict";e.exports=window.wp.blockEditor},6427(e){"use strict";e.exports=window.wp.components},7143(e){"use strict";e.exports=window.wp.data},6087(e){"use strict";e.exports=window.wp.element},7723(e){"use strict";e.exports=window.wp.i18n},6337(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/ffc-columns","wppbAddonBlock":true,"title":"Columns","category":"profile-builder-structural","description":"Form Fields in Columns: wraps two or more adjacent field blocks into a horizontal row. Drag field blocks into the wrapper to add them to the column group.","icon":"columns","keywords":["columns","row","ffc","horizontal","flex"],"supports":{"html":false,"reusable":false,"multiple":true,"inserter":true},"textdomain":"profile-builder","attributes":{}}')},1743(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-additional-map","title":"Additional Map","wppbFieldType":"Additional Map","category":"profile-builder-advanced","icon":"location-alt","description":"Additional Google Maps location selection field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Additional Map Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"map-default-lat":{"type":"string","default":"40.7127753"},"map-default-lng":{"type":"string","default":"-74.0059728"},"map-default-zoom":{"type":"string","default":"12"},"map-height":{"type":"string","default":"400"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},4576(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-avatar","title":"Avatar","wppbFieldType":"Avatar","category":"profile-builder-standard","icon":"admin-users","description":"User avatar upload field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Avatar"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"simple-upload":{"type":"string","default":""},"allowed-image-extensions":{"type":"string","default":".*"},"avatar-size":{"type":"string","default":"100"},"max-file-size":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},1645(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-campaign-monitor-subscribe","title":"Campaign Monitor Subscribe","wppbFieldType":"Campaign Monitor Subscribe","wppbAddonFieldType":true,"category":"profile-builder-advanced","icon":"megaphone","description":"Adds a checkbox that subscribes the user to a Campaign Monitor list.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Subscribe to our newsletter"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"campaign-monitor-lists":{"type":"string","default":""},"campaign-monitor-hide-field":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},37(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-checkbox-toa","title":"Terms and Conditions","wppbFieldType":"Checkbox (Terms and Conditions)","category":"profile-builder-advanced","icon":"feedback","description":"Checkbox for agreeing to terms and conditions.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"I agree to the Terms and Conditions"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":"Please read our terms and conditions..."},"required":{"type":"string","default":"Yes"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},2936(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-checkbox","title":"Checkbox","wppbFieldType":"Checkbox","category":"profile-builder-standard","icon":"forms","description":"Multi-selection checkbox field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Checkbox Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"options":{"type":"string","default":""},"labels":{"type":"string","default":""},"default-options":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},7654(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-colorpicker","title":"Colorpicker","wppbFieldType":"Colorpicker","category":"profile-builder-advanced","icon":"art","description":"Color selection field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Colorpicker Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},4547(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-datepicker","title":"Datepicker","wppbFieldType":"Datepicker","category":"profile-builder-advanced","icon":"calendar","description":"Date selection field with a calendar popup.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Datepicker Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""},"date-format":{"type":"string","default":"mm/dd/yy"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},3119(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-about-yourself-heading","title":"About Yourself (Heading)","wppbFieldType":"Default - About Yourself (Heading)","category":"profile-builder-default","icon":"heading","description":"Default About Yourself section heading.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"About Yourself"},"description":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},3854(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-aim","title":"AIM","wppbFieldType":"Default - AIM","category":"profile-builder-default","icon":"admin-users","description":"Default AIM field. WordPress removed AIM from user profiles in 3.6 (2013); this block stays registered so legacy forms still render, but it is hidden from the inserter for new forms.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"AIM"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":false},"textdomain":"profile-builder"}')},6677(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-biographical-info","title":"Biographical Info","wppbFieldType":"Default - Biographical Info","category":"profile-builder-default","icon":"admin-users","description":"Biographical info (description) field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Biographical Info"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-content":{"type":"string","default":""},"row-count":{"type":"string","default":"5"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},9446(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-blog-details","title":"Blog Details","wppbFieldType":"Default - Blog Details","category":"profile-builder-advanced","icon":"admin-site","description":"Multisite blog details field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Blog Details"},"description":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},5101(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-contact-info-heading","title":"Contact Info (Heading)","wppbFieldType":"Default - Contact Info (Heading)","category":"profile-builder-default","icon":"heading","description":"Default Contact Info section heading.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Contact Info"},"description":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},4695(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-display-name","title":"Display Name","wppbFieldType":"Default - Display name publicly as","category":"profile-builder-default","icon":"admin-users","description":"Field for selecting how to display name publicly.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Display name publicly as"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},8423(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-email","title":"E-mail","wppbFieldType":"Default - E-mail","category":"profile-builder-default","icon":"email","description":"Required e-mail field for registration.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"E-mail"},"description":{"type":"string","default":""},"required":{"type":"string","default":"Yes"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},5347(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-first-name","title":"First Name","wppbFieldType":"Default - First Name","category":"profile-builder-default","icon":"admin-users","description":"Optional first name field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"First Name"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},9747(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-jabber","title":"Jabber / Google Talk","wppbFieldType":"Default - Jabber / Google Talk","category":"profile-builder-default","icon":"admin-users","description":"Default Jabber / Google Talk field. WordPress removed Jabber from user profiles in 3.6 (2013); this block stays registered so legacy forms still render, but it is hidden from the inserter for new forms.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Jabber / Google Talk"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":false},"textdomain":"profile-builder"}')},5711(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-last-name","title":"Last Name","wppbFieldType":"Default - Last Name","category":"profile-builder-default","icon":"admin-users","description":"Optional last name field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Last Name"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},433(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-name-heading","title":"Name (Heading)","wppbFieldType":"Default - Name (Heading)","category":"profile-builder-default","icon":"heading","description":"Default Name section heading.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Name"},"description":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},1785(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-nickname","title":"Nickname","wppbFieldType":"Default - Nickname","category":"profile-builder-default","icon":"admin-users","description":"Optional nickname field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Nickname"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},6384(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-password","title":"Password","wppbFieldType":"Default - Password","category":"profile-builder-default","icon":"lock","description":"Required password field for registration.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Password"},"description":{"type":"string","default":""},"required":{"type":"string","default":"Yes"},"ask-current-password":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},7536(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-repeat-password","title":"Repeat Password","wppbFieldType":"Default - Repeat Password","category":"profile-builder-default","icon":"lock","description":"Required repeat-password confirmation field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Repeat Password"},"description":{"type":"string","default":"Type your password again."},"required":{"type":"string","default":"Yes"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},7185(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-username","title":"Username","wppbFieldType":"Default - Username","category":"profile-builder-default","icon":"admin-users","description":"Required username field for registration.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Username"},"description":{"type":"string","default":""},"required":{"type":"string","default":"Yes"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},3446(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-website","title":"Website","wppbFieldType":"Default - Website","category":"profile-builder-default","icon":"admin-users","description":"Optional website field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Website"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},8934(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-default-yim","title":"Yahoo IM","wppbFieldType":"Default - Yahoo IM","category":"profile-builder-default","icon":"admin-users","description":"Default Yahoo IM field. WordPress removed Yahoo IM from user profiles in 3.6 (2013); this block stays registered so legacy forms still render, but it is hidden from the inserter for new forms.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Yahoo IM"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":false},"textdomain":"profile-builder"}')},2391(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-email-confirmation","title":"Email Confirmation","wppbFieldType":"Email Confirmation","category":"profile-builder-other","icon":"email-alt","description":"Confirmation field for the user e-mail address.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Confirm E-mail"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"Yes"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},3271(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-email","title":"Email","wppbFieldType":"Email","category":"profile-builder-other","icon":"email","description":"Additional email input field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Email Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},2538(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-gdpr-checkbox","title":"GDPR Checkbox","wppbFieldType":"GDPR Checkbox","category":"profile-builder-other","icon":"shield","description":"GDPR agreement checkbox field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"GDPR Checkbox"},"meta-name":{"type":"string","default":"user_consent_gdpr"},"description":{"type":"string","default":"I agree to the GDPR terms"},"required":{"type":"string","default":"Yes"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},8986(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-gdpr-communication-preferences","title":"GDPR Communication Preferences","wppbFieldType":"GDPR Communication Preferences","wppbAddonFieldType":true,"category":"profile-builder-other","icon":"shield","description":"Lets users choose which communication channels they consent to (Email, Telephone, SMS, Post).","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Communication Preferences"},"meta-name":{"type":"string","default":"gdpr_communication_preferences"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"gdpr-communication-preferences":{"type":"string","default":"email,phone,sms,post"},"gdpr-communication-preferences-sort-order":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},4660(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-gdpr-delete","title":"GDPR Delete Button","wppbFieldType":"GDPR Delete Button","category":"profile-builder-other","icon":"trash","description":"Button to delete account and all data.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Delete Account"},"description":{"type":"string","default":"Click here to delete your account."}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},7701(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-heading","title":"Heading","wppbFieldType":"Heading","category":"profile-builder-standard","icon":"heading","description":"Section heading field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Heading"},"description":{"type":"string","default":""},"heading-tag":{"type":"string","default":"h3"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},7(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-honeypot","title":"Honeypot","wppbFieldType":"Honeypot","category":"profile-builder-other","icon":"shield","description":"Invisible honeypot field to block spam bots.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Honeypot"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},460(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-html","title":"HTML","wppbFieldType":"HTML","category":"profile-builder-standard","icon":"html","description":"Custom HTML block.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"HTML Field"},"description":{"type":"string","default":""},"html-content":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},8374(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-input-hidden","title":"Input (Hidden)","wppbFieldType":"Input (Hidden)","category":"profile-builder-standard","icon":"hidden","description":"Hidden input field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Hidden Input"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},2747(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-input-url","title":"URL","wppbFieldType":"URL","category":"profile-builder-other","icon":"admin-links","description":"URL input field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"URL Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},5495(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-input","title":"Text","wppbFieldType":"Input","category":"profile-builder-standard","icon":"editor-textcolor","description":"Standard text input field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Text Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},8187(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-international-telephone-input","title":"International Telephone Input","wppbFieldType":"International Telephone Input","category":"profile-builder-standard","icon":"phone","description":"International phone number input field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Phone Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""},"initial-country":{"type":"string","default":"auto"},"preferred-countries":{"type":"string","default":""},"excluded-countries":{"type":"string","default":""},"national-mode":{"type":"string","default":""},"hide-flags":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},3067(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-language","title":"Language","wppbFieldType":"Language","category":"profile-builder-standard","icon":"translation","description":"Hidden language field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Language Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},6320(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-mailchimp-subscribe","title":"MailChimp Subscribe","wppbFieldType":"MailChimp Subscribe","wppbAddonFieldType":true,"category":"profile-builder-advanced","icon":"email-alt","description":"Adds a checkbox that subscribes the user to a MailChimp list.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Subscribe to our newsletter"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"mailchimp-lists":{"type":"string","default":""},"mailchimp-default-checked":{"type":"string","default":""},"mailchimp-hide-field":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},9063(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-mailpoet-subscribe","title":"MailPoet Subscribe","wppbFieldType":"MailPoet Subscribe","wppbAddonFieldType":true,"category":"profile-builder-advanced","icon":"email","description":"Adds a checkbox that subscribes the user to a MailPoet list.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Subscribe to our newsletter"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"mailpoet-lists":{"type":"string","default":""},"mailpoet-default-checked":{"type":"string","default":""},"mailpoet-hide-field":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},4281(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-map","title":"Map","wppbFieldType":"Map","category":"profile-builder-advanced","icon":"location","description":"Google Maps location selection field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Map Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"map-api-key":{"type":"string","default":""},"map-default-lat":{"type":"string","default":"40.7127753"},"map-default-lng":{"type":"string","default":"-74.0059728"},"map-default-zoom":{"type":"string","default":"12"},"map-height":{"type":"string","default":"400"},"map-pins-load-type":{"type":"string","default":""},"map-pagination-number":{"type":"string","default":""},"map-bubble-fields":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},9576(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-number","title":"Number","wppbFieldType":"Number","category":"profile-builder-standard","icon":"editor-ol","description":"Numeric input field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Number Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-value":{"type":"string","default":""},"min-number-value":{"type":"string","default":""},"max-number-value":{"type":"string","default":""},"number-step-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},5959(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-phone","title":"Phone","wppbFieldType":"Phone","category":"profile-builder-advanced","icon":"phone","description":"Phone number input field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Phone Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"phone-format":{"type":"string","default":""},"default-value":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},9205(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-pms-billing-fields","title":"Billing Fields","wppbFieldType":"PMS Billing Fields","wppbAddonFieldType":true,"category":"profile-builder-other","icon":"id","description":"Displays the Paid Member Subscriptions billing fields (from the Tax and/or Invoice add-ons) on Edit Profile forms.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Billing Fields"},"meta-name":{"type":"string","default":""},"pms-billing-fields":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},6282(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-pms-subscription-plans","title":"Subscription Plans","wppbFieldType":"Subscription Plans","wppbAddonFieldType":true,"category":"profile-builder-other","icon":"cart","description":"Displays the Paid Member Subscriptions plans on the register form so users can pick a plan and pay.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Subscription Plans"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"subscription-plans":{"type":"string","default":""},"subscription-plans-sort-order":{"type":"string","default":""},"subscription-plan-selected":{"type":"string","default":"-1"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},4740(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-radio","title":"Radio","wppbFieldType":"Radio","category":"profile-builder-standard","icon":"marker","description":"Single-selection radio field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Radio Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"options":{"type":"string","default":""},"labels":{"type":"string","default":""},"default-option":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},5670(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-recaptcha","title":"reCAPTCHA","wppbFieldType":"reCAPTCHA","category":"profile-builder-advanced","icon":"shield","description":"Google reCAPTCHA field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"reCAPTCHA"},"description":{"type":"string","default":""},"public-key":{"type":"string","default":""},"private-key":{"type":"string","default":""},"recaptcha-type":{"type":"string","default":"v2"},"score-threshold":{"type":"string","default":"0.5"},"captcha-pb-forms":{"type":"string","default":"pb_register"},"captcha-wp-forms":{"type":"string","default":"default_wp_register"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},6569(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-repeater","title":"Repeater","wppbFieldType":"Repeater","category":"profile-builder-other","icon":"embed-generic","description":"Container for repeating fields.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Repeater"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"rpf-enable-limit":{"type":"string","default":""},"rpf-limit":{"type":"string","default":"0"},"rpf-limit-reached-message":{"type":"string","default":""},"rpf-role-limit":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},8502(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-select-country","title":"Select (Country)","wppbFieldType":"Select (Country)","category":"profile-builder-advanced","icon":"admin-site-alt","description":"Country selection drop-down field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Select (Country) Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-option-country":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},757(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-select-cpt","title":"Select (CPT)","wppbFieldType":"Select (CPT)","category":"profile-builder-advanced","icon":"admin-post","description":"Custom Post Type selection drop-down field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Select (CPT) Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-option":{"type":"string","default":""},"cpt":{"type":"string","default":"post"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},1671(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-select-currency","title":"Select (Currency)","wppbFieldType":"Select (Currency)","category":"profile-builder-advanced","icon":"money","description":"Currency selection drop-down field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Select (Currency) Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-option-currency":{"type":"string","default":""},"show-currency-symbol":{"type":"string","default":"No"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},9612(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-select-multiple","title":"Select (Multiple)","wppbFieldType":"Select (Multiple)","category":"profile-builder-standard","icon":"menu","description":"Multi-selection drop-down field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Select (Multiple) Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"options":{"type":"string","default":""},"labels":{"type":"string","default":""},"default-options":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},8799(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-select-taxonomy","title":"Select (Taxonomy)","wppbFieldType":"Select (Taxonomy)","category":"profile-builder-advanced","icon":"category","description":"Taxonomy selection drop-down field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Select (Taxonomy) Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-option":{"type":"string","default":""},"taxonomy":{"type":"string","default":"category"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},2679(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-select-timezone","title":"Select (Timezone)","wppbFieldType":"Select (Timezone)","category":"profile-builder-advanced","icon":"clock","description":"Timezone selection drop-down field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Select (Timezone) Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-option-timezone":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},4502(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-select-user-role","title":"Select (User Role)","wppbFieldType":"Select (User Role)","category":"profile-builder-advanced","icon":"groups","description":"Lets users pick from a configurable list of WordPress roles at registration.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"User Role"},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"user-roles":{"type":"string","default":""},"user-roles-on-edit-profile":{"type":"string","default":""},"user-roles-sort-order":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},5529(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-select","title":"Select","wppbFieldType":"Select","category":"profile-builder-standard","icon":"menu","description":"Drop-down selection field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Select Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"options":{"type":"string","default":""},"labels":{"type":"string","default":""},"default-option":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},9508(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-select2-multiple","title":"Select2 (Multiple)","wppbFieldType":"Select2 (Multiple)","category":"profile-builder-other","icon":"menu","description":"Enhanced multi-selection drop-down field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Select2 (Multiple) Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"options":{"type":"string","default":""},"labels":{"type":"string","default":""},"default-options":{"type":"string","default":""},"select2-multiple-tags":{"type":"string","default":"no"},"select2-multiple-limit":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},6385(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-select2","title":"Select2","wppbFieldType":"Select2","category":"profile-builder-advanced","icon":"menu","description":"Enhanced single-selection drop-down field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Select2 Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"options":{"type":"string","default":""},"labels":{"type":"string","default":""},"default-option":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},7739(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-textarea","title":"Textarea","wppbFieldType":"Textarea","category":"profile-builder-standard","icon":"editor-paragraph","description":"Multi-line text input field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Textarea Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-content":{"type":"string","default":""},"row-count":{"type":"string","default":"5"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},1734(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-timepicker","title":"Timepicker","wppbFieldType":"Timepicker","category":"profile-builder-advanced","icon":"clock","description":"Time selection field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Timepicker Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"time-format":{"type":"string","default":"12"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},795(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-turnstile","title":"Turnstile","wppbFieldType":"Turnstile","category":"profile-builder-advanced","icon":"shield","description":"Cloudflare Turnstile field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Turnstile"},"description":{"type":"string","default":""},"turnstile-site-key":{"type":"string","default":""},"turnstile-secret-key":{"type":"string","default":""},"theme":{"type":"string","default":"auto"},"turnstile-pb-forms":{"type":"string","default":"pb_register"},"turnstile-wp-forms":{"type":"string","default":"default_wp_register"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},2476(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-upload","title":"Upload","wppbFieldType":"Upload","category":"profile-builder-standard","icon":"upload","description":"File upload field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Upload Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"simple-upload":{"type":"string","default":""},"allowed-upload-extensions":{"type":"string","default":".*"},"max-file-size":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},5186(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-validation","title":"Validation","wppbFieldType":"Validation","category":"profile-builder-advanced","icon":"saved","description":"Validation input field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Validation Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"Yes"},"validation-possible-values":{"type":"string","default":""},"custom-error-message":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},535(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-woo-billing-address","title":"WooCommerce Customer Billing Address","wppbFieldType":"WooCommerce Customer Billing Address","wppbAddonFieldType":true,"category":"profile-builder-advanced","icon":"cart","description":"WooCommerce billing address fields (choose which sub-fields to show, which are required, and their labels).","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Billing Address"},"meta-name":{"type":"string","default":"wppbwoo_billing"},"description":{"type":"string","default":""},"woo-billing-fields":{"type":"string","default":""},"woo-billing-fields-required":{"type":"string","default":""},"woo-billing-fields-sort-order":{"type":"string","default":""},"woo-billing-fields-name":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},1248(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-woo-shipping-address","title":"WooCommerce Customer Shipping Address","wppbFieldType":"WooCommerce Customer Shipping Address","wppbAddonFieldType":true,"category":"profile-builder-advanced","icon":"cart","description":"WooCommerce shipping address fields (choose which sub-fields to show, which are required, and their labels).","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"Shipping Address"},"meta-name":{"type":"string","default":"wppbwoo_shipping"},"description":{"type":"string","default":""},"woo-shipping-fields":{"type":"string","default":""},"woo-shipping-fields-required":{"type":"string","default":""},"woo-shipping-fields-sort-order":{"type":"string","default":""},"woo-shipping-fields-name":{"type":"string","default":""}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},386(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/field-wysiwyg","title":"WYSIWYG","wppbFieldType":"WYSIWYG","category":"profile-builder-standard","icon":"editor-code","description":"Rich text editor field.","attributes":{"id":{"type":"number","default":0},"field-title":{"type":"string","default":"WYSIWYG Field"},"meta-name":{"type":"string","default":""},"description":{"type":"string","default":""},"required":{"type":"string","default":"No"},"default-content":{"type":"string","default":""},"row-count":{"type":"string","default":"5"}},"supports":{"html":false,"reusable":false,"inserter":true},"textdomain":"profile-builder"}')},7399(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/msf-step-break","wppbAddonBlock":true,"title":"Step Break","category":"profile-builder-structural","description":"Multi-Step Forms: ends the current step and starts a new one. Insert between fields to split the form into pages.","icon":"minus","keywords":["step","break","multi","page","msf"],"supports":{"html":false,"reusable":false,"multiple":true,"inserter":true},"textdomain":"profile-builder","attributes":{}}')},9017(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"profile-builder/progress-bar","wppbAddonBlock":true,"title":"Progress Bar","category":"profile-builder-structural","description":"Visual placeholder for the form\'s completion progress bar. Position and style are controlled from the Progress Bar panel in the document sidebar.","icon":"chart-bar","keywords":["progress","bar","completion"],"supports":{"html":false,"reusable":false,"multiple":true,"inserter":false},"textdomain":"profile-builder","attributes":{"position-context":{"type":"string","default":"top","enum":["top","bottom"]}}}')}};const t={};function i(l){const r=t[l];if(void 0!==r)return r.exports;const s=t[l]={exports:{}};return e[l](s,s.exports,i),s.exports}i.m=e,(()=>{const e=[];i.O=(t,l,r,s)=>{if(l){s=s||0;for(var n=e.length;n>0&&e[n-1][2]>s;n--)e[n]=e[n-1];return void(e[n]=[l,r,s])}let o=1/0;for(n=0;n<e.length;n++){let[l,r,s]=e[n],d=!0;for(var a=0;a<l.length;a++)(!1&s||o>=s)&&Object.keys(i.O).every(e=>i.O[e](l[a]))?l.splice(a--,1):(d=!1,s<o&&(o=s));if(d){e.splice(n--,1);const i=r();void 0!==i&&(t=i)}}return t}})(),i.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{if(Array.isArray(t))for(var l=0;l<t.length;){var r=t[l++],s=t[l++];i.o(e,r)?0===s&&l++:0===s?Object.defineProperty(e,r,{enumerable:!0,value:t[l++]}):Object.defineProperty(e,r,{enumerable:!0,get:s})}else for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.hasOwn(e,t),i.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{const e={57:0,350:0};i.O.j=t=>0===e[t];const t=(t,l)=>{let[r,s,n]=l;var o,a,d=0;if(r.some(t=>0!==e[t])){for(o in s)i.o(s,o)&&(i.m[o]=s[o]);if(n)var c=n(i)}for(t&&t(l);d<r.length;d++)a=r[d],i.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return i.O(c)},l=globalThis.webpackChunkprofile_builder||=[];l.forEach(t.bind(null,0)),l.push=t.bind(null,l.push.bind(l))})();let l=i.O(void 0,[350],()=>i(5851));l=i.O(l)})();