PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.7
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.7
16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 All 506 releases
jetpack / jetpack_vendor / automattic / jetpack-forms / dist / blocks / editor.js

editor.js in Jetpack – WP Security, Backup, Speed, & Growth 16.3-a.7, at jetpack_vendor/automattic/jetpack-forms/dist/blocks/editor.js

26 lines 390.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (()=>{var e,t,o,r,a,n,i={39904(e,t){"use strict";var o=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;t.t=function(e){if(!e)return!1;if(e.length>254)return!1;if(!o.test(e))return!1;var t=e.split("@");return!(t[0].length>64)&&!t[1].split(".").some(function(e){return e.length>63})}},87682(e,t,o){"use strict";o.d(t,{A:()=>r});const r={placeholder:"NisihrgiIKl_knpYJtfg",pulse:"R2i0K45dEF157drbVRPI"}},8706(e,t,o){"use strict";o.d(t,{A:()=>r});const r={global:"_fUXxnSp5pagKBp9gSN7"}},48297(){},75070(){},13371(){},99761(){},25036(){},70478(){},70324(){},2750(){},13210(){},1676(){},85253(){},49467(){},8331(){},8372(){},6882(){},7377(){},98493(){},23541(){},76271(){},44997(e){var t=1e3,o=60*t,r=60*o,a=24*r,n=7*a,i=365.25*a;function s(e,t,o,r){var a=t>=1.5*o;return Math.round(e/o)+" "+r+(a?"s":"")}e.exports=function(e,c){c=c||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*n;case"days":case"day":case"d":return c*a;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*o;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===l&&isFinite(e))return c.long?function(e){var n=Math.abs(e);if(n>=a)return s(e,n,a,"day");if(n>=r)return s(e,n,r,"hour");if(n>=o)return s(e,n,o,"minute");if(n>=t)return s(e,n,t,"second");return e+" ms"}(e):function(e){var n=Math.abs(e);if(n>=a)return Math.round(e/a)+"d";if(n>=r)return Math.round(e/r)+"h";if(n>=o)return Math.round(e/o)+"m";if(n>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},90372(e,t,o){"use strict";o.d(t,{A:()=>c});var r=o(10067);const a=o.n(r)()("dops:analytics");let n,i;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const s={initialize:function(e,t,o){s.setUser(e,t),s.setSuperProps(o),s.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){i={ID:e,username:t}},setSuperProps:function(e){n=e},assignSuperProps:function(e){n=Object.assign(n||{},e)},mc:{bumpStat:function(e,t){const o=function(e,t){let o="";if("object"==typeof e){for(const t in e)o+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);a("Bumping stats %o",e)}else o="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),a('Bumping stat "%s" in group "%s"',t,e);return o}(e,t);s.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+o+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const o=function(e,t){let o="";if("object"==typeof e){for(const t in e)o+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);a("Built stats %o",e)}else o="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),a('Built stat "%s" in group "%s"',t,e);return o}(e,t);s.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+o+"&t="+Math.random())}},pageView:{record:function(e,t){s.tracks.recordPageView(e),s.ga.recordPageView(e,t)}},purchase:{record:function(e,t,o,r,a,n,i){s.ga.recordPurchase(e,t,o,r,a,n,i)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(!t.blog_id&&"object"==typeof window.jpTracksContext&&window.jpTracksContext.blog_id&&(t.blog_id=window.jpTracksContext.blog_id),n&&(a("- Super Props: %o",n),t=Object.assign(t,n)),a('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):a('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};s.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){s.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){a("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};s.ga.initialized||(i&&(e={userId:"u-"+i.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),s.ga.initialized=!0)},recordPageView:function(e,t){s.ga.initialize(),a("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,o,r){s.ga.initialize();let n="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==o&&(n+=" [Option Label: "+o+"]"),void 0!==r&&(n+=" [Option Value: "+r+"]"),a(n),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,o,r)},recordPurchase:function(e,t,o,r,a,n,i){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:i}),window.ga("ecommerce:addItem",{id:e,name:t,sku:o,price:a,quantity:n}),window.ga("ecommerce:send")}},identifyUser:function(){i&&window._tkq.push(["identifyUser",i.ID,i.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},c=s},5932(e,t,o){"use strict";o.d(t,{Ay:()=>u});var r=o(56439),a=o(93832);function n(e){class t extends Error{constructor(...t){super(...t),this.name=e}}return t}const i=n("JsonParseError"),s=n("JsonParseAfterRedirectError"),c=n("Api404Error"),l=n("Api404AfterRedirectError"),d=n("FetchNetworkError");const u=new function(e,t){let o=e,n=e,i={"X-WP-Nonce":t},s={credentials:"same-origin",headers:i},c={method:"post",credentials:"same-origin",headers:Object.assign({},i,{"Content-type":"application/json"})},l=function(e){const t=e.split("?"),o=t.length>1?t[1]:"",r=o.length?o.split("&"):[];return r.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+r.join("&")};const d={setApiRoot(e){o=e},setWpcomOriginApiUrl(e){n=e},setApiNonce(e){i={"X-WP-Nonce":e},s={credentials:"same-origin",headers:i},c={method:"post",credentials:"same-origin",headers:Object.assign({},i,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{l=e},registerSite:(e,t,a)=>{const n={};return(0,r.jetpackConfigHas)("consumer_slug")&&(n.plugin_slug=(0,r.jetpackConfigGet)("consumer_slug")),null!==t&&(n.redirect_uri=t),a&&(n.from=a),m(`${o}jetpack/v4/connection/register`,c,{body:JSON.stringify(n)}).then(p).then(f)},fetchAuthorizationUrl:e=>u((0,a.addQueryArgs)(`${o}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),s).then(p).then(f),fetchSiteConnectionData:()=>u(`${o}jetpack/v4/connection/data`,s).then(f),fetchSiteConnectionStatus:()=>u(`${o}jetpack/v4/connection`,s).then(f),fetchSiteConnectionTest:()=>u(`${o}jetpack/v4/connection/test`,s).then(p).then(f),fetchUserConnectionData:()=>u(`${o}jetpack/v4/connection/data`,s).then(f),fetchUserTrackingSettings:()=>u(`${o}jetpack/v4/tracking/settings`,s).then(p).then(f),updateUserTrackingSettings:e=>m(`${o}jetpack/v4/tracking/settings`,c,{body:JSON.stringify(e)}).then(p).then(f),disconnectSite:()=>m(`${o}jetpack/v4/connection`,c,{body:JSON.stringify({isActive:!1})}).then(p).then(f),fetchConnectUrl:()=>u(`${o}jetpack/v4/connection/url`,s).then(p).then(f),unlinkUser:(e=!1,t={})=>{const r={linked:!1,force:!!e};return t.disconnectAllUsers&&(r["disconnect-all-users"]=!0),m(`${o}jetpack/v4/connection/user`,c,{body:JSON.stringify(r)}).then(p).then(f)},reconnect:()=>m(`${o}jetpack/v4/connection/reconnect`,c).then(p).then(f),fetchConnectedPlugins:()=>u(`${o}jetpack/v4/connection/plugins`,s).then(p).then(f),fetchModules:()=>u(`${o}jetpack/v4/module/all`,s).then(p).then(f),fetchModule:e=>u(`${o}jetpack/v4/module/${e}`,s).then(p).then(f),activateModule:e=>m(`${o}jetpack/v4/module/${e}/active`,c,{body:JSON.stringify({active:!0})}).then(p).then(f),deactivateModule:e=>m(`${o}jetpack/v4/module/${e}/active`,c,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>m(`${o}jetpack/v4/module/${e}`,c,{body:JSON.stringify(t)}).then(p).then(f),updateSettings:e=>m(`${o}jetpack/v4/settings`,c,{body:JSON.stringify(e)}).then(p).then(f),getProtectCount:()=>u(`${o}jetpack/v4/module/protect/data`,s).then(p).then(f),resetOptions:e=>m(`${o}jetpack/v4/options/${e}`,c,{body:JSON.stringify({reset:!0})}).then(p).then(f),activateVaultPress:()=>m(`${o}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(p).then(f),getVaultPressData:()=>u(`${o}jetpack/v4/module/vaultpress/data`,s).then(p).then(f),installPlugin:(e,t)=>{const r={slug:e,status:"active"};return t&&(r.source=t),m(`${o}jetpack/v4/plugins`,c,{body:JSON.stringify(r)}).then(p).then(f)},activateAkismet:()=>m(`${o}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(p).then(f),getAkismetData:()=>u(`${o}jetpack/v4/module/akismet/data`,s).then(p).then(f),checkAkismetKey:()=>u(`${o}jetpack/v4/module/akismet/key/check`,s).then(p).then(f),checkAkismetKeyTyped:e=>m(`${o}jetpack/v4/module/akismet/key/check`,c,{body:JSON.stringify({api_key:e})}).then(p).then(f),getFeatureTypeStatus:e=>u(`${o}jetpack/v4/feature/${e}`,s).then(p).then(f),fetchStatsData:e=>u(function(e){let t=`${o}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),s).then(p).then(f).then(g),getPluginUpdates:()=>u(`${o}jetpack/v4/updates/plugins`,s).then(p).then(f),getPlans:()=>u(`${o}jetpack/v4/plans`,s).then(p).then(f),fetchSettings:()=>u(`${o}jetpack/v4/settings`,s).then(p).then(f),updateSetting:e=>m(`${o}jetpack/v4/settings`,c,{body:JSON.stringify(e)}).then(p).then(f),fetchSiteData:()=>u(`${o}jetpack/v4/site`,s).then(p).then(f).then(e=>JSON.parse(e.data)),fetchSiteFeatures:()=>u(`${o}jetpack/v4/site/features`,s).then(p).then(f).then(e=>JSON.parse(e.data)),fetchSitePurchases:()=>u(`${o}jetpack/v4/site/purchases`,s).then(p).then(f).then(e=>JSON.parse(e.data)),fetchSiteBenefits:()=>u(`${o}jetpack/v4/site/benefits`,s).then(p).then(f).then(e=>JSON.parse(e.data)),fetchSetupQuestionnaire:()=>u(`${o}jetpack/v4/setup/questionnaire`,s).then(p).then(f),fetchRewindStatus:()=>u(`${o}jetpack/v4/rewind`,s).then(p).then(f).then(e=>JSON.parse(e.data)),fetchScanStatus:()=>u(`${o}jetpack/v4/scan`,s).then(p).then(f).then(e=>JSON.parse(e.data)),dismissJetpackNotice:e=>m(`${o}jetpack/v4/notice/${e}`,c,{body:JSON.stringify({dismissed:!0})}).then(p).then(f),fetchPluginsData:()=>u(`${o}jetpack/v4/plugins`,s).then(p).then(f),fetchVerifySiteGoogleStatus:e=>u(null!==e?`${o}jetpack/v4/verify-site/google/${e}`:`${o}jetpack/v4/verify-site/google`,s).then(p).then(f),verifySiteGoogle:e=>m(`${o}jetpack/v4/verify-site/google`,c,{body:JSON.stringify({keyring_id:e})}).then(p).then(f),submitSurvey:e=>m(`${o}jetpack/v4/marketing/survey`,c,{body:JSON.stringify(e)}).then(p).then(f),saveSetupQuestionnaire:e=>m(`${o}jetpack/v4/setup/questionnaire`,c,{body:JSON.stringify(e)}).then(p).then(f),updateLicensingError:e=>m(`${o}jetpack/v4/licensing/error`,c,{body:JSON.stringify(e)}).then(p).then(f),updateLicenseKey:e=>m(`${o}jetpack/v4/licensing/set-license`,c,{body:JSON.stringify({license:e})}).then(p).then(f),getUserLicensesCounts:()=>u(`${o}jetpack/v4/licensing/user/counts`,s).then(p).then(f),getUserLicenses:()=>u(`${o}jetpack/v4/licensing/user/licenses`,s).then(p).then(f),updateLicensingActivationNoticeDismiss:e=>m(`${o}jetpack/v4/licensing/user/activation-notice-dismiss`,c,{body:JSON.stringify({last_detached_count:e})}).then(p).then(f),confirmIDCSafeMode:()=>m(`${o}jetpack/v4/identity-crisis/confirm-safe-mode`,c).then(p),startIDCFresh:e=>m(`${o}jetpack/v4/identity-crisis/start-fresh`,c,{body:JSON.stringify({redirect_uri:e})}).then(p).then(f),migrateIDC:()=>m(`${o}jetpack/v4/identity-crisis/migrate`,c).then(p),attachLicenses:e=>m(`${o}jetpack/v4/licensing/attach-licenses`,c,{body:JSON.stringify({licenses:e})}).then(p).then(f),fetchSearchPlanInfo:()=>u(`${n}jetpack/v4/search/plan`,s).then(p).then(f),fetchSearchSettings:()=>u(`${n}jetpack/v4/search/settings`,s).then(p).then(f),updateSearchSettings:e=>m(`${n}jetpack/v4/search/settings`,c,{body:JSON.stringify(e)}).then(p).then(f),fetchSearchStats:()=>u(`${n}jetpack/v4/search/stats`,s).then(p).then(f),fetchWafSettings:()=>u(`${o}jetpack/v4/waf`,s).then(p).then(f),updateWafSettings:e=>m(`${o}jetpack/v4/waf`,c,{body:JSON.stringify(e)}).then(p).then(f),fetchWordAdsSettings:()=>u(`${o}jetpack/v4/wordads/settings`,s).then(p).then(f),updateWordAdsSettings:e=>m(`${o}jetpack/v4/wordads/settings`,c,{body:JSON.stringify(e)}),fetchSearchPricing:()=>u(`${n}jetpack/v4/search/pricing`,s).then(p).then(f),fetchMigrationStatus:()=>u(`${o}jetpack/v4/migration/status`,s).then(p).then(f),fetchBackupUndoEvent:()=>u(`${o}jetpack/v4/site/backup/undo-event`,s).then(p).then(f),fetchBackupPreflightStatus:()=>u(`${o}jetpack/v4/site/backup/preflight`,s).then(p).then(f)};function u(e,t){return fetch(l(e),t)}function m(e,t,o){return fetch(e,Object.assign({},t,o)).catch(b)}function g(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}Object.assign(this,d)};function p(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise(()=>{throw e.redirected?new l(e.redirected):new c}):e.json().catch(e=>m(e)).then(t=>{const o=new Error(`${t.message} (Status ${e.status})`);throw o.response=t,o.name="ApiError",o})}function f(e){return e.json().catch(t=>m(t,e.redirected,e.url))}function m(e,t,o){throw t?new s(o):new i}function b(){throw new d}},11876(e,t,o){"use strict";o.d(t,{A:()=>i});var r=o(13022),a=o(87682),n=o(10790);const i=({children:e=null,width:t=null,height:o=null,className:i=""})=>(0,n.jsx)("div",{className:(0,r.A)(a.A.placeholder,i),style:{width:t,height:o},children:e})},50723(e,t,o){"use strict";o.d(t,{Ay:()=>p});var r=o(51609),a=o(8706),n=o(10790);const i={"--font-headline-medium":"48px","--font-headline-small":"36px","--font-title-medium":"24px","--font-title-small":"20px","--font-body":"16px","--font-body-small":"14px","--font-body-extra-small":"12px","--font-title-large":"var(--font-headline-small)","--font-label":"var(--font-body-extra-small)"},s={"--jp-black":"#000000","--jp-black-80":"#2c3338","--jp-white":"#ffffff","--jp-white-off":"#f9f9f6","--jp-gray":"#dcdcde","--jp-gray-0":"#F6F7F7","--jp-gray-5":"var(--jp-gray)","--jp-gray-10":"#C3C4C7","--jp-gray-20":"#A7AAAD","--jp-gray-40":"#787C82","--jp-gray-50":"#646970","--jp-gray-60":"#50575E","--jp-gray-70":"#3C434A","--jp-gray-80":"#2C3338","--jp-gray-90":"#1d2327","--jp-gray-off":"#e2e2df","--jp-red-0":"#F7EBEC","--jp-red-5":"#FACFD2","--jp-red-40":"#E65054","--jp-red-50":"#D63638","--jp-red-60":"#B32D2E","--jp-red-70":"#8A2424","--jp-red-80":"#691C1C","--jp-red":"#d63639","--jp-yellow-5":"#F5E6B3","--jp-yellow-10":"#F2CF75","--jp-yellow-20":"#F0C930","--jp-yellow-30":"#DEB100","--jp-yellow-40":"#C08C00","--jp-yellow-50":"#9D6E00","--jp-yellow-60":"#7D5600","--jp-blue-20":"#68B3E8","--jp-blue-40":"#1689DB","--jp-pink":"#C9356E","--jp-green-0":"#f0f2eb","--jp-green-5":"#d0e6b8","--jp-green-10":"#9dd977","--jp-green-20":"#64ca43","--jp-green-30":"#2fb41f","--jp-green-40":"#069e08","--jp-green-50":"#008710","--jp-green-60":"#007117","--jp-green-70":"#005b18","--jp-green-80":"#004515","--jp-green-90":"#003010","--jp-green-100":"#001c09","--jp-green":"#069e08","--jp-green-primary":"var( --jp-green-40 )","--jp-green-secondary":"var( --jp-green-30 )"},c={"--jp-border-radius":"4px","--jp-menu-border-height":"1px","--jp-underline-thickness":"2px"},l={"--spacing-base":"8px"},d={},u=(e,t,o)=>{const r={...i,...s,...c,...l};for(const t in r)e.style.setProperty(t,r[t]);o&&e.classList.add(a.A.global),t&&(d[t]={provided:!0,root:e})},p=({children:e=null,targetDom:t,id:o,withGlobalStyles:a=!0})=>{const i=(0,r.useRef)(),s=d?.[o]?.provided;return(0,r.useLayoutEffect)(()=>{if(!s)return t?u(t,o,a):void(i?.current&&u(i.current,o,a))},[t,i,s,o,a]),t?(0,n.jsx)(n.Fragment,{children:e}):(0,n.jsx)("div",{ref:i,children:e})}},56439(e,t,o){let r={};try{r=o(15875)}catch{globalThis.jetpackConfig?r=globalThis.jetpackConfig:(console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),r={missingConfig:!0})}const a=e=>Object.hasOwn(r,e);e.exports={jetpackConfigHas:a,jetpackConfigGet:e=>{if(!a(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return r[e]}}},14882(e,t,o){"use strict";o.d(t,{A:()=>u});var r=o(5932),a=o(97999),n=o(47143),i=o(51609),s=o(34293);const c={},l={},d=window?.JP_CONNECTION_INITIAL_STATE||(0,a.getScriptData)()?.connection||{};function u({registrationNonce:e=d.registrationNonce,apiRoot:t=d.apiRoot,apiNonce:o=d.apiNonce,redirectUri:a,autoTrigger:u,from:p,skipUserConnection:f,skipPricingPage:m}={}){const{registerSite:b,connectUser:g,refreshConnectedPlugins:k}=(0,n.useDispatch)(s.a),h=(0,n.useSelect)(e=>e(s.a).getRegistrationError(),[]),{siteIsRegistering:v,userIsConnecting:j,userConnectionData:y,connectedPlugins:x,connectionOwner:w,connectionErrors:_,connectionHealthErrors:C,isRegistered:A,isUserConnected:S,hasConnectedOwner:B,isOfflineMode:I}=(0,n.useSelect)(e=>{const t=e(s.a).getConnectionStatus(),o=e(s.a).getConnectionOwner?.();return{siteIsRegistering:e(s.a).getSiteIsRegistering(),userIsConnecting:e(s.a).getUserIsConnecting(),userConnectionData:e(s.a).getUserConnectionData()||c,connectedPlugins:e(s.a).getConnectedPlugins(),connectionOwner:(r=o,r&&"object"==typeof r&&"id"in r&&"number"==typeof r.id&&"displayName"in r&&"string"==typeof r.displayName?o:null),connectionErrors:e(s.a).getConnectionErrors(),connectionHealthErrors:e(s.a).getConnectionHealthErrors?.()??l,isOfflineMode:e(s.a).getIsOfflineMode(),isRegistered:t.isRegistered??!1,isUserConnected:t.isUserConnected??!1,hasConnectedOwner:t.hasConnectedOwner??!1};var r},[]),N=()=>f?a?(window.location.href=a,Promise.resolve(a)):Promise.resolve():g({from:p,redirectUri:a,skipPricingPage:m}),M=t=>(t&&t.preventDefault(),A?N():b({registrationNonce:e,redirectUri:a,from:p}).then(()=>N()));return(0,i.useEffect)(()=>{r.Ay.setApiRoot(t),r.Ay.setApiNonce(o)},[t,o]),(0,i.useEffect)(()=>{!u||v||j||M()},[]),{handleRegisterSite:M,handleConnectUser:N,refreshConnectedPlugins:k,isRegistered:A,isUserConnected:S,siteIsRegistering:v,userIsConnecting:j,registrationError:h,userConnectionData:y,connectionOwner:w,hasConnectedOwner:B,connectedPlugins:x,connectionErrors:_,connectionHealthErrors:C,isOfflineMode:I}}},14750(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(27723);const __=r.__;function a(e){if(!e||"string"!=typeof e)return{};const t=e.indexOf(" :");if(-1===t)return{};const o=e.slice(0,t).trim(),r=e.slice(t+2).trim(),a={};return r&&(a.action_url=r),o&&(a.action_label=o),a}function n(e){const t={};for(const o of function(e){if(!e||"object"!=typeof e)return[];const t=e;return t.code?[{code:t.code,message:t.message??"",data:t.data||{}},...(Array.isArray(t.additional_errors)?t.additional_errors:[]).map(e=>({code:e.code??"",message:e.message??"",data:e.data||{}}))]:[]}(e))o.code.startsWith("failed_")&&(t[o.code]={0:{error_code:o.code,error_message:o.message||__("A connection check failed.","jetpack-forms"),error_type:"connection_health",error_data:a(o.data.resolution)}});return t}},33935(e,t,o){"use strict";o.d(t,{A1:()=>u,Ay:()=>S,DO:()=>d,Ij:()=>l,Kl:()=>g,LW:()=>p,MU:()=>h,XY:()=>f,ZO:()=>c,dz:()=>m,gH:()=>b,j4:()=>k,v_:()=>s});var r=o(5932),a=o(1455),n=o.n(a),i=o(14750);const s="SET_CONNECTION_STATUS",c="SET_CONNECTION_STATUS_IS_FETCHING",l="SET_SITE_IS_REGISTERING",d="SET_USER_IS_CONNECTING",u="SET_REGISTRATION_ERROR",p="CLEAR_REGISTRATION_ERROR",f="SET_AUTHORIZATION_URL",m="DISCONNECT_USER_SUCCESS",b="SET_CONNECTED_PLUGINS",g="SET_CONNECTION_ERRORS",k="SET_CONNECTION_HEALTH_ERRORS",h="SET_IS_OFFLINE_MODE",v=e=>({type:s,connectionStatus:e}),j=e=>({type:l,isRegistering:e}),y=e=>({type:d,isConnecting:e}),x=e=>({type:u,registrationError:e}),w=()=>({type:p}),_=e=>({type:f,authorizationUrl:e}),C=e=>({type:b,connectedPlugins:e}),A=e=>({type:k,connectionHealthErrors:e});const S={setConnectionStatus:v,setConnectionStatusIsFetching:e=>({type:c,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:j,setUserIsConnecting:y,setRegistrationError:x,clearRegistrationError:w,setAuthorizationUrl:_,registerSite:function*({registrationNonce:e,redirectUri:t,from:o=""}){yield w(),yield j(!0);try{const r=yield{type:"REGISTER_SITE",registrationNonce:e,redirectUri:t,from:o};return yield v({isRegistered:!0}),yield _(r.authorizeUrl),yield j(!1),Promise.resolve(r)}catch(e){return yield x(e),yield j(!1),Promise.reject(e)}},connectUser:function*({from:e,redirectFunc:t,redirectUri:o,skipPricingPage:r}={}){yield y(!0),yield{type:"CONNECT_USER",from:e,redirectFunc:t,redirectUri:o,skipPricingPage:r}},disconnectUserSuccess:()=>({type:m}),setConnectedPlugins:C,refreshConnectedPlugins:()=>async({dispatch:e})=>await new Promise(t=>r.Ay.fetchConnectedPlugins().then(o=>{e(C(o)),t(o)})),setConnectionErrors:e=>({type:g,connectionErrors:e}),setConnectionHealthErrors:A,runConnectionHealthCheck:()=>async({dispatch:e})=>{try{return await n()({path:"/jetpack/v4/connection/test"}),e(A({})),{}}catch(t){const o=(0,i.A)(t);return e(A(o)),o}},setIsOfflineMode:e=>({type:h,isOfflineMode:e})}},27938(e,t,o){"use strict";function r(e){return window.location.assign(e)}o.d(t,{d:()=>r})},22494(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(5932),a=o(47143),n=o(27938),i=o(32279);const s={FETCH_AUTHORIZATION_URL:({redirectUri:e})=>r.Ay.fetchAuthorizationUrl(e),REGISTER_SITE:({redirectUri:e,from:t})=>r.Ay.registerSite(null,e,t),CONNECT_USER:(0,a.createRegistryControl)(({resolveSelect:e})=>({from:t,redirectFunc:o,redirectUri:r,skipPricingPage:a}={})=>new Promise((s,c)=>{e(i.A).getAuthorizationUrl(r).then(e=>{const r=o||(e=>(0,n.d)(e)),i=new URL(e);a&&i.searchParams.set("skip_pricing","true"),t&&i.searchParams.set("from",encodeURIComponent(t));const c=i.toString();r(c),s(c)}).catch(e=>{c(e)})}))}},5051(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(47143),a=o(33935);const n=(0,r.combineReducers)({connectionStatus:(e={},t)=>{switch(t.type){case a.v_:return{...e,...t.connectionStatus};case a.dz:return{...e,isUserConnected:!1}}return e},connectionStatusIsFetching:(e=!1,t)=>t.type===a.ZO?t.isFetching:e,siteIsRegistering:(e=!1,t)=>t.type===a.Ij?t.isRegistering:e,userIsConnecting:(e=!1,t)=>t.type===a.DO?t.isConnecting:e,registrationError:(e,t)=>{switch(t.type){case a.LW:return!1;case a.A1:return t.registrationError;default:return e}},authorizationUrl:(e,t)=>t.type===a.XY?t.authorizationUrl:e,userConnectionData:(e,t)=>(t.type,e),connectedPlugins:(e={},t)=>t.type===a.gH?t.connectedPlugins:e,connectionOwner:(e=null,t)=>(t.type,e),hasProtectedOwner:(e=null)=>e,requiresProtectedOwner:(e=null)=>e,useDefaultProtectedOwnerUi:(e=null)=>e,connectionErrors:(e={},t)=>t.type===a.Kl?t.connectionErrors:e,connectionHealthErrors:(e={},t)=>t.type===a.j4?t.connectionHealthErrors:e,isOfflineMode:(e=!1,t)=>t.type===a.MU?t.isConnecting:e})},58019(e,t,o){"use strict";o.d(t,{A:()=>i});var r=o(47143),a=o(33935),n=o(32279);const i={...{getAuthorizationUrl:{isFulfilled:(e,...t)=>{const o=Boolean(e.authorizationUrl),a=(0,r.select)(n.A).hasFinishedResolution("getAuthorizationUrl",t);return o&&!a&&(0,r.dispatch)(n.A).finishResolution("getAuthorizationUrl",t),o},*fulfill(e){const t=yield a.Ay.fetchAuthorizationUrl(e);yield a.Ay.setAuthorizationUrl(t.authorizeUrl)}}}}},52676(e,t,o){"use strict";o.d(t,{A:()=>r});const r={...{getConnectionStatus:e=>e.connectionStatus||{},getConnectionStatusIsFetching:()=>!1,getSiteIsRegistering:e=>e.siteIsRegistering||!1,getUserIsConnecting:e=>e.userIsConnecting||!1,getRegistrationError:e=>e.registrationError||!1,getAuthorizationUrl:e=>e.authorizationUrl||!1,getUserConnectionData:e=>e.userConnectionData||!1,getConnectedPlugins:e=>e.connectedPlugins||[],getConnectionOwner:e=>e.connectionOwner||null,getConnectionErrors:e=>e.connectionErrors||[],getConnectionHealthErrors:e=>e.connectionHealthErrors||{},getIsOfflineMode:e=>e.isOfflineMode||!1,getHasProtectedOwner:e=>e.hasProtectedOwner??null,getRequiresProtectedOwner:e=>e.requiresProtectedOwner??null,getUseDefaultProtectedOwnerUi:e=>e.useDefaultProtectedOwnerUi??null,getWpcomUser:e=>e?.userConnectionData?.currentUser?.wpcomUser,getBlogId:e=>e?.userConnectionData?.currentUser?.blogId}}},18734(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(47143);class a{static store=null;static mayBeInit(e,t){if(null===a.store){if((0,r.select)(e))return console.error(function(e){return[`Jetpack Connection: the "${e}" store was already registered by another script on this page, so this copy was skipped.`,"","Nothing is broken — the first registration is used — but two scripts on this page have each bundled their own copy of @automattic/jetpack-connection, so the package ships to visitors more than once.","","The usual cause is a subpath import. The webpack externals map matches the package root only, so:"," import { useConnection } from '@automattic/jetpack-connection'; // shared, loaded once"," import useConnection from '@automattic/jetpack-connection/use-connection'; // bundled into this script","","To fix: import from the package root, then rebuild. If the symbol is not exported there, add it to the package index rather than reaching for the subpath.","See defaultRequestMap in js-packages/webpack-config/src/webpack.js for the mapping."].join("\n")}(e)),void(a.store=(0,r.createReduxStore)(e,t));a.store=(0,r.createReduxStore)(e,t),(0,r.register)(a.store)}}}const n=a},32279(e,t,o){"use strict";o.d(t,{A:()=>r});const r="jetpack-connection"},34293(e,t,o){"use strict";o.d(t,{a:()=>d.A});var r=o(97999),a=o(33935),n=o(22494),i=o(5051),s=o(58019),c=o(52676),l=o(18734),d=o(32279);const u=window.JP_CONNECTION_INITIAL_STATE||(0,r.getScriptData)()?.connection;u||console.error("Jetpack Connection package: Initial state is missing. Check documentation to see how to use the Connection composer package to set up the initial state."),l.A.mayBeInit(d.A,{__experimentalUseThunks:!0,reducer:i.A,actions:a.Ay,selectors:c.A,resolvers:s.A,controls:n.A,initialState:u||{}})},85985(e,t,o){"use strict";o.d(t,{$i:()=>r.A,BT:()=>n.A,FB:()=>a.A,_6:()=>d.A,aq:()=>i.aq,lG:()=>l.A,q7:()=>c.A,st:()=>s.A});var r=o(34972),a=(o(54815),o(41409),o(8573)),n=(o(82034),o(65595)),i=o(53265),s=o(73489),c=(o(89581),o(58406),o(76923)),l=(o(30335),o(87687),o(34638)),d=(o(9061),o(25929));o(5765)},5765(e,t,o){"use strict";o(98490)},82201(e,t,o){"use strict";o.d(t,{cb:()=>r.c});o(15877);var r=o(30984);o(82308)},15877(e,t,o){"use strict";o(97999),o(27723),o(48297),o(10790)},30984(e,t,o){"use strict";o.d(t,{c:()=>s});var r=o(56427),a=o(27723),n=o(13022),i=(o(75070),o(10790));const __=a.__,s=({className:e,description:t,align:o=null,title:a=null,buttonText:s=null,visible:c=!0,context:l=null,checkoutUrl:d=null,goToCheckoutPage:u=null,isRedirecting:p=!1,showButton:f=!0,target:m="_top"})=>{const b=(0,n.A)(e,"jetpack-upgrade-plan-banner",{"jetpack-nudge-canvas":"editor-canvas"===l,"block-editor-block-list__block":"editor-canvas"===l,"jetpack-upgrade-plan__hidden":!c}),g=__("Redirecting…","jetpack-forms");return(0,i.jsx)("div",{className:b,"data-align":o,children:(0,i.jsxs)("div",{className:"jetpack-upgrade-plan-banner__wrapper",children:[a&&(0,i.jsx)("strong",{className:(0,n.A)("banner-title",{[`${e}__title`]:e}),children:a}),t&&(0,i.jsx)("span",{className:(0,n.A)("banner-description",{[`${e}__description`]:e}),children:t}),f&&(0,i.jsx)(r.Button,{href:p?null:d,onClick:u,target:m,className:(0,n.A)("is-primary",{"jetpack-upgrade-plan__hidden":!d}),isBusy:p,children:(0,i.jsx)("span",{children:p?g:s})})]})})}},82308(e,t,o){"use strict";o(47143),o(51609),o(10790)},30335(e,t,o){"use strict";o(86087)},34972(e,t,o){"use strict";o.d(t,{A:()=>r});function r(){return"object"==typeof window?window?.Jetpack_Editor_Initial_State??null:null}},8573(e,t,o){"use strict";o.d(t,{A:()=>a});var r=o(34972);function a(e){const t=(0,r.A)(),o=t?.available_blocks?.[e]?.available??!1,a=t?.available_blocks?.[e]?.unavailable_reason??"unknown";return{available:o,...!o&&{details:t?.available_blocks?.[e]?.details??{},unavailableReason:a}}}},54815(e,t,o){"use strict";o.d(t,{A:()=>a});var r=o(97999);function a(){return window&&window.Jetpack_Editor_Initial_State&&window.Jetpack_Editor_Initial_State.siteFragment?window.Jetpack_Editor_Initial_State.siteFragment:(0,r.getScriptData)()?.site?.suffix??null}},34638(e,t,o){"use strict";o.d(t,{A:()=>a});var r=o(34972);function a(e){const t=(0,r.A)();return!!t&&(!!t?.feature_flags&&Boolean(t.feature_flags?.[e]))}},73489(e,t,o){"use strict";o.d(t,{A:()=>c});var r=o(90372),a=o(14882),n=o(86087);const{tracks:i}=r.A,{recordEvent:s}=i,c=({pageViewEventName:e=null,pageViewNamespace:t="jetpack",pageViewSuffix:o="page_view",pageViewEventProperties:c={}}={})=>{const[l,d]=(0,n.useState)(!1),{isUserConnected:u,isRegistered:p,userConnectionData:f={}}=(0,a.A)(),{wpcomUser:{login:m,ID:b}={},blogId:g}=f.currentUser||{},k=(0,n.useCallback)(async(e,t={})=>{u&&b&&m&&s(e,t)},[u,b,m]);return(0,n.useEffect)(()=>{u&&b&&m&&g&&r.A.initialize(b,m,{blog_id:g})},[g,b,m,u]),(0,n.useEffect)(()=>{const r=e?`${t}_${e}_${o}`:null;p&&r&&(l||(k(r,c),d(!0)))},[l,t,e,o,p,c,k]),{recordEvent:k,tracks:i}}},89581(e,t,o){"use strict";o.d(t,{A:()=>i});var r=o(47143),a=o(86087);const n=()=>{};function i(e=null,t=n){const[o,i]=(0,a.useState)(!1),{isAutosaveablePost:s,isDirtyPost:c,currentPost:l}=(0,r.useSelect)(e=>{const t=e("core/editor");return{isAutosaveablePost:t.isEditedPostAutosaveable(),isDirtyPost:t.isEditedPostDirty(),currentPost:t.getCurrentPost()}},[]),d=Object.keys(l).length>0,u=(0,r.useSelect)(e=>!!window.wp?.customize||!!e("core/edit-widgets")),p=(0,r.dispatch)("core/editor").savePost,f=(0,r.useSelect)(e=>e("core").__experimentalGetDirtyEntityRecords()),m=async e=>{e?.preventDefault(),d?c&&s&&await p(e):await(async()=>{for(let e=0;e<f.length;e++)await(0,r.dispatch)("core").saveEditedEntityRecord(f[e].kind,f[e].name,f[e].key)})()};return{autosave:m,autosaveAndRedirect:async r=>{r?.preventDefault(),o||(i(!0),m(r).then(()=>{e&&function(e,t,o=!1){t&&t(e),o?window.open(e,"_blank"):window.top.location.href=e}(e,t,u)}))},isRedirecting:o}}},76923(e,t,o){"use strict";o.d(t,{A:()=>i});var r=o(87687),a=o(47143),n=o(86087);const i=e=>{const{isModuleActive:t,isChangingStatus:o,isLoadingModules:i}=(0,a.useSelect)(t=>{const o=t(r.store);return{isModuleActive:o.isModuleActive(e),isChangingStatus:o.isModuleUpdating(e),isLoadingModules:o.areModulesLoading(e)}},[e]),{updateJetpackModuleStatus:s}=(0,a.useDispatch)(r.store),c=(0,n.useCallback)(t=>s({name:e,active:t}),[e,s]);return(0,n.useMemo)(()=>({isLoadingModules:i,isChangingStatus:o,isModuleActive:t,changeStatus:c}),[i,o,t,c])}},58406(e,t,o){"use strict";o(86087)},25929(e,t,o){"use strict";o.d(t,{A:()=>l});var r=o(47143),a=o(52619),n=o(53265),i=o(89581);const s=()=>{},c="a8c.wpcom-block-editor.openCheckoutModal";function l(e,t=s){const{checkoutUrl:o,planData:l}=(0,r.useSelect)(t=>{const o=t("core/editor"),r=t("wordpress-com/plans"),{id:a,type:i}=o.getCurrentPost(),s=r&&r.getPlan(e);return{checkoutUrl:(0,n.Q4)({plan:s,planSlug:e,postId:a,postType:i}),planData:s}},[e]),{autosave:d,autosaveAndRedirect:u,isRedirecting:p}=(0,i.A)(o,t);return[o,async e=>{if(e.preventDefault(),(0,a.hasAction)(c))return e.preventDefault(),d(e),void(0,a.doAction)(c,{products:[l]});u(e)},p,l]}},9520(e,t,o){"use strict";o(97999);var r=o(10067),a=o.n(r);window,a()("shared-extension-utils:connection")},9061(e,t,o){"use strict";o(9520)},53265(e,t,o){"use strict";o.d(t,{Q4:()=>s,aq:()=>c});var r=o(97999),a=o(27723),n=o(93832),i=o(54815);const __=a.__;function s({planSlug:e,plan:t,postId:o,postType:a}){const s=e.startsWith("jetpack_")?e:t?.path_slug,c=(void 0===a?()=>{const e=new URLSearchParams(window.location.search);return(0,n.addQueryArgs)(window.location.protocol+`//${(0,i.A)().replace("::","/")}/wp-admin/site-editor.php`,{postId:e.get("postId"),postType:e.get("postType"),plan_upgraded:1})}:()=>{const e=["page","post"].includes(a)?"":"edit";return(0,r.isSimpleSite)()?(0,n.addQueryArgs)("/"+[e,a,(0,i.A)(),o].filter(Boolean).join("/"),{plan_upgraded:1}):(0,n.addQueryArgs)(window.location.protocol+`//${(0,i.A)().replace("::","/")}/wp-admin/post.php`,{action:"edit",post:o,plan_upgraded:1})})();return(0,r.isWoASite)()?(0,n.addQueryArgs)(`https://wordpress.com/plans/${(0,i.A)()}`,{redirect_to:c,customerType:"business"}):s&&(0,n.addQueryArgs)(`https://wordpress.com/checkout/${(0,i.A)()}/${s}`,{redirect_to:c})}function c(e,t){return"missing_plan"===e&&t.required_plan}__("Upgrade your plan to use video covers","jetpack-forms"),__("Upgrade your plan to upload audio","jetpack-forms")},82034(e,t,o){"use strict";o(92279)},41409(e,t,o){"use strict";o(97999)},65595(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(29491),a=(o(13371),o(10790));const n=e=>(0,r.createHigherOrderComponent)(t=>o=>(0,a.jsx)(t,{...o,className:o.name===e?"has-warning is-interactive":o.className}),"withHasWarningIsInteractiveClassNames");o.dn(n)},32797(e,t,o){"use strict";o.d(t,{A:()=>a});var r=o(27723);const a={ref:{type:"number"},subject:{type:"string",default:""},to:{type:"string",default:""},customThankyou:{type:"string",default:""},customThankyouHeading:{type:"string",default:(0,r.__)("Thank you for your response.","jetpack-forms")},customThankyouMessage:{type:"string",default:""},customThankyouRedirect:{type:"string",default:""},confirmationType:{enum:["text","redirect"],default:"text"},jetpackCRM:{type:"boolean"},formTitle:{type:"string",default:""},variationName:{type:"string",default:""},salesforceData:{type:"object",default:{organizationId:""}},mailpoet:{type:"object",default:{listId:null,listName:null}},hostingerReach:{type:"object",default:{groupName:""}},saveResponses:{type:"boolean",default:!0},emailNotifications:{type:"boolean",default:!0},disableGoBack:{type:"boolean",default:!1},disableSummary:{type:"boolean",default:!1},formNotifications:{type:"boolean",default:!0},notificationRecipients:{type:"array",default:[]},webhooks:{type:"array",default:[]}}},19971(e,t,o){"use strict";o.d(t,{t:()=>m});var r=o(94715),a=o(56427),n=o(47143),i=o(43656),s=o(27723),c=o(692),l=o(82441),d=o(84203),u=o(1295),p=o(10790);const __=s.__,f="jetpack-form-conversion";function m({clientId:e,attributes:t,onBeforeNavigate:o}){const s=(0,d.f)(),m="widget"===s,{block:b,formTitle:g,currentPostId:k,isLocked:h,onNavigateToEntityRecord:v}=(0,n.useSelect)(t=>{const{getBlock:o,getSettings:a}=t(r.store);let n=null;if(m)try{const o=t("core/edit-widgets");n=o?.getParentWidgetAreaBlock?.(e)?.attributes?.name}catch{}const s=m?null:t(i.store).getEditedPostAttribute("title"),c=m?0:t(i.store).getEditedPostAttribute("id"),l=!m&&t(i.store).isPostSavingLocked();return{block:o(e),formTitle:n||s||"Untitled",currentPostId:c,isLocked:l,onNavigateToEntityRecord:a().onNavigateToEntityRecord}},[e,m]),{replaceInnerBlocks:j,updateBlockAttributes:y}=(0,n.useDispatch)(r.store),{lockPostSaving:x,unlockPostSaving:w}=(0,n.useDispatch)(i.store),{createErrorNotice:_}=(0,n.useDispatch)(c.store),C=!!t.ref;return(0,p.jsx)(a.ToolbarGroup,{children:C?(0,p.jsx)(a.ToolbarButton,{onClick:()=>{t.ref&&(o?.(),(0,u.h)(t.ref,s,v))},children:__("Edit Form","jetpack-forms")}):(0,p.jsx)(a.ToolbarButton,{onClick:async()=>{if(b&&!h){x?.(f);try{const{ref:o,...r}=t,a=await(0,l.r)({attributes:r,innerBlocks:b.innerBlocks||[]},g,k);j(e,[],!1);const n=Object.keys(t).reduce((e,t)=>"ref"===t?e:{...e,[t]:void 0},{ref:a});y(e,n),(0,u.h)(a,s,v)}catch{_(__("Failed to create a form. Please try again.","jetpack-forms"),{type:"snackbar",isDismissible:!0})}finally{w?.(f)}}},disabled:h,children:__("Edit Form","jetpack-forms")})})}},77831(e,t,o){"use strict";o.d(t,{A:()=>m});var r=o(94715),a=o(56427),n=o(3582),i=o(47143),s=o(38443),c=o(86087),l=o(27723),d=o(692),u=o(11435),p=o(10790);const __=l.__,f={trash:{status:"error",getMessage:()=>__("Trashed form. Currently hidden from site visitors and not accepting any responses.","jetpack-forms")},draft:{status:"warning",getMessage:()=>__("Draft form. Currently hidden from site visitors and not accepting any responses.","jetpack-forms")},pending:{status:"warning",getMessage:()=>__("Pending review form. Currently hidden from site visitors until approved and published.","jetpack-forms")},private:{status:"info",getMessage:()=>__("Private form. Currently hidden from site visitors.","jetpack-forms")},future:{status:"info",getMessage:e=>{const t=(0,s.getSettings)().formats.datetime||"F j, Y g:i a";return e?.date?(0,l.sprintf)(/* translators: %s: scheduled publish date */
2 __("Scheduled form. It will be published on %s but will remain hidden from site visitors until then.","jetpack-forms"),(0,s.dateI18n)(t,e.date)):__("Scheduled form. It will not be displayed to site visitors until its publish date.","jetpack-forms")}}};function m({syncedForm:e,formRef:t,isVisible:o,clientId:s}){const[m,b]=(0,c.useState)(!1),[g,k]=(0,c.useState)(!1),[h,v]=(0,c.useState)(!1),{editEntityRecord:j,saveEditedEntityRecord:y,deleteEntityRecord:x}=(0,i.useDispatch)(n.store),{createErrorNotice:w,createSuccessNotice:_}=(0,i.useDispatch)(d.store),{removeBlocks:C}=(0,i.useDispatch)(r.store),A=(0,c.useCallback)(async(e,o)=>{if(t)try{"trash"===e&&(e="draft"),await j("postType",u.$8,t,{status:e,date:o}),await y("postType",u.$8,t)}catch{w(__("Failed to undo. Refresh this page and try again.","jetpack-forms"),{type:"snackbar"})}},[t,j,y,w]),S=(0,c.useCallback)(async()=>{if(!t)return;const o=e?.status,r=e?.date;b(!0);try{const e={status:"publish"};"future"===o&&(e.date=(new Date).toISOString()),await j("postType",u.$8,t,e),await y("postType",u.$8,t),_(__("Form is live and ready to accept responses.","jetpack-forms"),{type:"snackbar",actions:o?[{label:__("Undo","jetpack-forms"),onClick:()=>A(o,r)}]:[]})}catch{w(__("Failed to publish form. Refresh this page and try again.","jetpack-forms"),{type:"snackbar"})}finally{b(!1)}},[t,e?.status,e?.date,j,y,_,w,A]),B=(0,c.useCallback)(async()=>{if(t){k(!0);try{await x("postType",u.$8,t,{force:!0}),_(__("Form deleted permanently.","jetpack-forms"),{type:"snackbar"}),C([s])}catch{w(__("Failed to delete form permanently. Refresh this page and try again.","jetpack-forms"),{type:"snackbar"})}finally{k(!1)}}},[t,_,w,C,x,s]),I=e?.status;if(!o||!t||!I||"publish"===I)return null;const N=f[I],M=N?.status||"warning",T=N?.getMessage(e)||(0,l.sprintf)(/* translators: %s: form status */
3 __('This form has status "%s" and will not be displayed on the frontend until it is published.',"jetpack-forms"),I),P=[];return P.push({label:__("Publish","jetpack-forms"),onClick:S,variant:"secondary",disabled:m}),"trash"===I&&P.push({label:__("Delete","jetpack-forms"),onClick:()=>v(!0),variant:"secondary",disabled:g}),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.Notice,{status:M,isDismissible:!1,className:"jetpack-contact-form__status-notice",actions:P,children:T}),h&&(0,p.jsxs)(a.Modal,{title:__("Delete form permanently?","jetpack-forms"),onRequestClose:()=>v(!1),size:"small",children:[(0,p.jsx)("p",{children:__("Are you sure you want to delete this form? This action cannot be undone.","jetpack-forms")}),(0,p.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",gap:"8px",marginTop:"16px"},children:[(0,p.jsx)(a.Button,{variant:"tertiary",onClick:()=>v(!1),children:__("Cancel","jetpack-forms")}),(0,p.jsx)(a.Button,{variant:"primary",isDestructive:!0,isBusy:g,onClick:()=>{v(!1),B()},children:__("Delete Permanently","jetpack-forms")})]})]})]})}},90319(e,t,o){"use strict";o.d(t,{o:()=>s});var r=o(56427),a=o(27723),n=o(51460),i=o(10790);const __=a.__,s=({changeStatus:e,isLoading:t,isModuleActive:o})=>(0,i.jsx)(r.Placeholder,{icon:n.W0.icon.src,instructions:__("You’ll need to activate the Forms feature to use this block.","jetpack-forms"),label:n.W0.title,children:(0,i.jsx)(r.Button,{disabled:o||t,isBusy:t,onClick:()=>e(!0),variant:"secondary",children:t?__("Activating Forms","jetpack-forms"):__("Activate Forms","jetpack-forms",0)})})},68435(e,t,o){"use strict";o.d(t,{A:()=>i});var r=o(11876),a=o(56427),n=o(10790);const i=function(){return(0,n.jsx)(a.Placeholder,{children:(0,n.jsxs)(a.Flex,{gap:2,direction:"column",style:{width:"100%"},children:[(0,n.jsxs)(a.Flex,{gap:4,children:[(0,n.jsx)(a.FlexItem,{children:(0,n.jsx)(r.A,{width:30,height:30})}),(0,n.jsx)(a.FlexBlock,{children:(0,n.jsx)(r.A,{width:"90%",height:30})})]}),(0,n.jsx)(a.Flex,{style:{marginTop:12},children:(0,n.jsx)(a.FlexBlock,{children:(0,n.jsx)(r.A,{height:30,width:"60%"})})}),(0,n.jsx)(a.Flex,{style:{marginTop:12},children:(0,n.jsx)(a.FlexBlock,{children:(0,n.jsx)(r.A,{width:150,height:50})})}),(0,n.jsx)(a.Flex,{style:{marginTop:18},children:(0,n.jsx)(a.FlexBlock,{children:(0,n.jsx)(r.A,{width:"90%",height:16})})})]})})}},23071(e,t,o){"use strict";o.d(t,{A:()=>u});var r=o(56427),a=o(86087),n=o(27723),i=o(88050),s=o(61868),c=o(39904),l=o(91550),d=o(10790);const __=n.__,u=({emailAddress:e="",emailSubject:t="",emailNotifications:o=!0,instanceId:u,setAttributes:p,autoRecipient:f="",autoRecipientSource:m="site_admin",autoSubject:b=""})=>{const[g,k]=(0,a.useState)(!1),h=e=>0!==(e=e.trim()).length&&(!(0,c.t)(e)&&{email:e}),v=()=>g&&g.length>0,j=`${(0,l.B)(m)} ${__("You can enter multiple email addresses separated by commas.","jetpack-forms")}`;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(r.ToggleControl,{label:__("Email me new responses","jetpack-forms"),checked:o,onChange:e=>p({emailNotifications:e}),__nextHasNoMarginBottom:!0}),o&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(r.TextControl,{"aria-describedby":`contact-form-${u}-email-${v()?"error":"help"}`,label:__("Send email notifications to","jetpack-forms"),placeholder:f||__("[email protected]","jetpack-forms"),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation())},value:e,onBlur:e=>{if(0===e.target.value.length)return void k(!1);const t=e.target.value.split(",").map(h).filter(Boolean);t&&t.length&&k(t)},onChange:e=>{k(!1),p({to:e.trim()})},help:j,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),v()&&(0,d.jsx)(i.b,{intent:"error",id:`contact-form-${u}-email-error`,style:{marginBottom:"16px"},children:(0,d.jsx)(s.V,{children:(()=>{if(g){if(1===g.length)return g[0]&&g[0].email?(0,n.sprintf)(/* translators: %s: an email address. */
4 __("%s is not a valid email address.","jetpack-forms"),g[0].email):g[0];if(2===g.length)return(0,n.sprintf)(/* translators: %1$s, %2$s: email addresses. */
5 __("%1$s and %2$s are not valid email addresses.","jetpack-forms"),g[0].email,g[1].email);const e=g.map(e=>e.email);return(0,n.sprintf)(/* translators: %s: a list of email addresses. */
6 __("%s are not valid email addresses.","jetpack-forms"),e.join(", "))}return null})()})}),(0,d.jsx)(r.TextControl,{label:__("Email subject line","jetpack-forms"),value:t,placeholder:b||__("Enter a subject","jetpack-forms"),onChange:e=>p({subject:e}),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})]})]})}},51213(e,t,o){"use strict";o.d(t,{A:()=>u});var r=o(56427),a=o(3582),n=o(47143),i=o(43656),s=o(86087),c=o(27723),l=o(23071),d=o(10790);const __=c.__,u=({setAttributes:e,notificationRecipients:t,emailAddress:o,emailSubject:c,emailNotifications:u,instanceId:p,autoRecipient:f,autoRecipientSource:m,autoSubject:b})=>{const[g,k]=(0,s.useState)(t),[h,v]=(0,s.useState)(t?.length>0),j=(0,n.useSelect)(e=>{const{getUsers:t}=e(a.store);return t({who:"authors",per_page:-1})||[]},[]).filter(e=>e.capabilities?.edit_posts||e.capabilities?.edit_pages),y={};j.forEach(e=>{y[e.id.toString()]=e.name||e.slug});const{postAuthorId:x}=(0,n.useSelect)(e=>{const{getEditedPostAttribute:t}=e(i.store);return{postAuthorId:t("author")}},[]),w=g.filter(e=>y[e]).map(e=>y[e]),_=j.map(e=>e.name||e.slug);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(l.A,{emailAddress:o,emailSubject:c,emailNotifications:u,instanceId:p,autoRecipient:f,autoRecipientSource:m,autoSubject:b,setAttributes:e}),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(r.ToggleControl,{label:__("Send me push notifications","jetpack-forms"),checked:h,onChange:t=>{if(t){const t=x?.toString();let o=g;0===o.length&&t&&j.some(e=>e.id===x)&&(o=[t]),k(o),e({notificationRecipients:o})}else e({notificationRecipients:[]});v(t)},__nextHasNoMarginBottom:!0}),h&&(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(r.FormTokenField,{label:__("Send notifications to","jetpack-forms"),value:w,suggestions:_,onChange:t=>{if(0===t.length){const t=x?.toString();if(t&&j.some(e=>e.id===x)){const o=[t];return k(o),void e({notificationRecipients:o})}}const o=t.map(e=>{const t=j.find(t=>(t.name||t.slug)===e);return t?t.id.toString():null}).filter(Boolean);k(o),e({notificationRecipients:o})},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,__experimentalExpandOnFocus:!0,__experimentalAutoSelectFirstMatch:!0})})]})]})}},51195(e,t,o){"use strict";o.d(t,{A:()=>c});var r=o(90372),a=o(56427),n=o(86087),i=o(27723),s=o(10790);const __=i.__,c=({setAttributes:e,webhooks:t,clientId:o})=>{const i=t?.[0]||null,c=(0,n.useCallback)((e=1)=>`webhook-${o?.substring(0,8)||"unknown"}-${e}`,[o]),[l,d]=(0,n.useState)(i?.webhook_id||c(1)),[u,p]=(0,n.useState)(i?.url||""),[f,m]=(0,n.useState)(i?.enabled||!1);(0,n.useEffect)(()=>{i&&(d(i.webhook_id||c(1)),p(i.url||""),m(i.enabled||!1))},[i,c]);const b=(t,o,r)=>{if(!o&&!r)return void e({webhooks:[]});e({webhooks:[{webhook_id:t||"",url:o||"",format:"json",method:"POST",enabled:r}]})};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.ToggleControl,{label:__("Enable webhook","jetpack-forms"),help:__("Send form submission data to an external URL.","jetpack-forms"),checked:f,onChange:e=>{r.A.tracks.recordEvent("jetpack_forms_webhook_toggle",{origin:"block-editor",enabled:e}),m(e);const o=l||c(t?.length+1||1);d(o),b(o,u,e)},__nextHasNoMarginBottom:!0}),f&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.TextControl,{label:__("Webhook URL","jetpack-forms"),value:u,onChange:e=>{p(e),b(l,e,f)},placeholder:"https://example.com/webhook",help:__("Enter the URL where form submission data should be sent.","jetpack-forms"),type:"url",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,s.jsx)(a.TextControl,{label:__("Webhook ID","jetpack-forms"),value:l,onChange:e=>{d(e),b(e,u,f)},help:__("Auto-generated unique identifier. You can customize it if needed.","jetpack-forms"),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})]})]})}},83124(e,t,o){"use strict";o.d(t,{A:()=>l});var r=o(94715),a=o(56427),n=o(27723),i=o(1295),s=o(68435),c=(o(99761),o(10790));const __=n.__;function l({blockProps:e,innerBlocksProps:t,isResolvingSyncedForm:o,formRef:n,flushPendingSave:l}){(0,r.useBlockEditingMode)("contentOnly");return(0,c.jsxs)("div",{...e,children:[(0,c.jsx)(a.Notice,{className:"jetpack-contact-form-widget-readonly-notice",status:"info",isDismissible:!1,actions:[{label:__("Edit Form","jetpack-forms"),onClick:()=>{l(),(0,i.h)(n,"widget")},variant:"primary"}],children:__("Forms are edited in the Form Editor. Changes will sync back to this widget.","jetpack-forms")}),o?(0,c.jsx)(s.A,{}):(0,c.jsx)(a.Disabled,{children:(0,c.jsx)("div",{...t})})]})}},26597(e,t,o){"use strict";o.d(t,{A:()=>l});var r=o(94715),a=o(74997),n=o(27723),i=o(32797),s=o(10790);const __=n.__,c=["submit_button_text","has_form_settings_set","submitButtonText","backgroundButtonColor","textButtonColor","customBackgroundButtonColor","customTextButtonColor","submitButtonClasses","hasFormSettingsSet"],l=[{attributes:{...i.A},supports:{html:!1},save:()=>(0,s.jsx)(r.InnerBlocks.Content,{})},{attributes:{submit_button_text:{type:"string",default:__("Submit","jetpack-forms")},has_form_settings_set:{type:"string",default:null},submitButtonText:{type:"string",default:__("Submit","jetpack-forms")},backgroundButtonColor:{type:"string"},textButtonColor:{type:"string"},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},submitButtonClasses:{type:"string"},...i.A},migrate:(e,t)=>{const o=Object.fromEntries(Object.entries(e).filter(([e])=>!c.includes(e))),r={text:e.submitButtonText||e.submit_button_text||__("Submit","jetpack-forms"),backgroundColor:e.backgroundButtonColor,textColor:e.textButtonColor,customBackgroundColor:e.customBackgroundButtonColor,customTextColor:e.customTextButtonColor};return[o,t.concat((0,a.createBlock)("jetpack/button",{element:"button",...r}))]},isEligible:e=>!(!e.has_form_settings_set&&!e.hasFormSettingsSet),save:()=>(0,s.jsx)(r.InnerBlocks.Content,{})}]},97560(e,t,o){"use strict";o.d(t,{A:()=>ne});var r=o(50723),a=o(85985),n=o(94715),i=o(74997),s=o(56427),c=o(29491),l=o(3582),d=o(47143),u=o(43656),p=o(86087),f=o(27723),m=o(79654),b=o(88050),g=o(42472),k=o(61868),h=o(13022),v=o(18824),j=o(74506),y=o(53792),x=o(91983),w=o(66634),_=o(86026),C=o(39355),A=o(41002),S=o(62111),B=o(11435),I=o(82966),N=o(19971),M=o(77831),T=o(90319),P=o(68435),E=o(51213),L=o(51195),F=o(83124),R=o(1803),V=o(30782),H=o(39190),z=o(32952),D=o(53389),O=o(91550),q=o(84203),$=o(65403),G=o(99076),U=(o(75205),o(10790));const __=f.__,_x=f._x,Z=(0,p.lazy)(()=>Promise.all([o.e(187),o.e(93)]).then(o.bind(o,30093))),W="to-multistep",J="to-form",K="is-multistep",Y="is-form",Q=I.P.filter(e=>{const t=e.settings;return!t.parent||"jetpack/contact-form"===t.parent||Array.isArray(t.parent)&&t.parent.includes("jetpack/contact-form")}),X=[...Q.map(e=>`jetpack/${e.name}`)],ee=["jetpack/form-step-navigation","jetpack/form-progress-indicator","jetpack/form-step-container","jetpack/form-step-divider"].concat(B.BY),te=["jetpack/form-step-navigation","jetpack/form-progress-indicator","jetpack/form-step-container"],oe=X.concat(B.BY).filter(e=>!te.includes(e)),re=["jetpack/field-name","jetpack/field-email","jetpack/field-textarea","jetpack/field-text","jetpack/field-telephone","jetpack/field-select"],ae=(()=>{const e=Q.map(e=>`jetpack/${e.name}`);return[...re.filter(t=>e.includes(t)),...e.filter(e=>!re.includes(e))]})();const ne=function e({name:t,attributes:o,setAttributes:f,clientId:Q,className:X,isSelected:te}){(0,D.A)({attributes:o,setAttributes:f});const{ref:re,to:ne,subject:ie,customThankyou:se,customThankyouHeading:ce,customThankyouMessage:le,customThankyouRedirect:de,confirmationType:ue,formTitle:pe,variationName:fe,emailNotifications:me,disableGoBack:be,disableSummary:ge,notificationRecipients:ke,webhooks:he,layout:ve}=o,je=(0,j.A)("isIntegrationsEnabled"),ye=(0,j.A)("isWebhooksEnabled")&&(0,a.lG)("form-webhooks"),xe=(0,j.A)("showBlockIntegrations"),we=(0,a.lG)("central-form-management"),_e=(0,c.useInstanceId)(e),Ce=!!re&&"widget"===(0,q.f)(),{syncedForm:Ae,isLoading:Se,syncedAttributes:Be,syncedInnerBlocks:Ie,errorType:Ne}=(0,z._)(re);(0,p.useEffect)(()=>{"redirect"===se&&"redirect"!==ue&&f({confirmationType:"redirect"}),["noSummary","message"].includes(se)&&!ge&&f({disableSummary:!0})},[ue,se,ge,f]);const Me=(0,A.A)(Q),Te=(0,d.useSelect)(e=>e(y.M).getCurrentStepInfo(Q,Me),[Q,Me]),Pe=(0,p.useCallback)(e=>"jetpack/button"===e.name||"core/button"===e.name&&"button"===e.attributes?.tagName,[]),Ee=(0,C.l)(Q,Pe),{postTitle:Le,hasAnyInnerBlocks:Fe,postAuthorEmail:Re,selectedBlockClientId:Ve,onlySubmitBlock:He,isJetpackFormEditor:ze,hasChildSelected:De}=(0,d.useSelect)(e=>{const{getBlocks:t,getBlock:o,getSelectedBlockClientId:r,getBlockParentsByBlockName:a,hasSelectedInnerBlock:i}=e(n.store),{getEditedPostAttribute:s,getCurrentPostType:c}=e(u.store),d=r(),p=o(d);let f=d;p&&"jetpack/form-step"!==p.name&&(f=a(d,"jetpack/form-step")[0]);const{getUser:m}=e(l.store),b=t(Q),g=1===b.length&&("jetpack/button"===b[0].name||"core/button"===b[0].name&&"button"===b[0].attributes?.tagName),k=s("title"),h=s("author"),v=h&&m(h)?.email;return{postTitle:k,hasAnyInnerBlocks:b.length>0||Ie?.length>0,postAuthorEmail:v,selectedBlockClientId:f,onlySubmitBlock:g,isJetpackFormEditor:c()===B.$8,hasChildSelected:i(Q,!0)}},[Q,Ie]),Oe=window.jpFormsBlocks?.defaults||{},qe=(0,O.R)({serverSource:Oe.toSource,serverAddress:Oe.to,postAuthorEmail:Re,isStandaloneForm:ze});(0,p.useEffect)(()=>{if(Ee&&!Ee.attributes.lock){const e={move:!1,remove:!0};Ee.attributes.lock=e}},[Ee]);const $e=(0,d.useSelect)(e=>{if(!ze)return null;const t=e(v.$p);return t?.getActivePanel?.()??null},[ze]),{closePanel:Ge}=(0,d.useDispatch)(v.$p),[Ue,Ze]=(0,p.useState)({});(0,p.useEffect)(()=>{$e&&(Ze(e=>({...e,[$e]:!0})),Ge())},[$e,Ge]);const{isSingleStep:We,isFirstStep:Je,isLastStep:Ke,currentStepClientId:Ye}=(0,d.useSelect)(e=>{const{getCurrentStepInfo:t,isSingleStepMode:o,getActiveStepId:r}=e(y.M),a=t(Q,Me);return{isSingleStep:o(Q),isFirstStep:!!a&&a.isFirstStep,isLastStep:!!a&&a.isLastStep,currentStepClientId:r(Q)}},[Q,Me]),Qe=(0,p.useRef)(),Xe=(0,p.useRef)(),et=(0,n.useBlockProps)({ref:Qe,className:(0,h.A)(X,{"is-multistep":"multistep"===fe})}),tt=(0,h.A)(X,"jetpack-contact-form",Je&&"is-first-step",Ke&&"is-last-step","multistep"===fe&&We&&"is-previewing-step",o?.layout?"has-jetpack-form-layout":"has-no-jetpack-form-layout"),ot=(0,n.useInnerBlocksProps)({ref:Xe,className:tt,style:window.jetpackForms.generateStyleVariables(Xe.current)},{allowedBlocks:"multistep"===fe?ee:oe,prioritizedInserterBlocks:ae,templateInsertUpdatesSelection:!1}),{isLoadingModules:rt,isChangingStatus:at,isModuleActive:nt,changeStatus:it}=(0,a.q7)("contact-form"),{replaceInnerBlocks:st,__unstableMarkNextChangeAsNotPersistent:ct,updateBlockAttributes:lt}=(0,d.useDispatch)(n.store),{editEntityRecord:dt}=(0,d.useDispatch)(l.store),{setActiveStep:ut}=(0,d.useDispatch)(y.M),pt=(0,d.useSelect)(e=>e(n.store).getBlocks(Q),[Q]),{isSyncingRef:ft,syncGeneration:mt}=(0,H.Z)({ref:re,syncedFormBlocks:Ie,syncedFormAttributes:Be,clientId:Q,setAttributes:f,replaceInnerBlocks:st,__unstableMarkNextChangeAsNotPersistent:ct,setActiveStep:ut}),{flushPendingSave:bt}=(0,V.E8)({ref:re,syncedForm:Ae,attributes:o,currentInnerBlocks:pt,isSyncingRef:ft,syncGeneration:mt,editEntityRecord:dt});(0,R.G)({clientId:Q,ref:re,innerBlocks:pt,attributes:o,setAttributes:f});const gt=(0,p.useRef)(pt.length),kt=(0,p.useCallback)(e=>{const t=[],o=e=>{e.forEach(e=>{(e=>{if(!e||!e.startsWith("jetpack/"))return!1;const t=e.slice(8),o=I.P.find(e=>e.name===t);return o&&void 0!==o?.settings?.attributes?.required&&!("field-hidden"===o?.name)&&!("field-consent"===o?.name&&"explicit"!==o?.settings?.attributes?.consentType)})(e.name)&&t.push(e),e.innerBlocks&&e.innerBlocks.length>0&&o(e.innerBlocks)})};return o(e),t},[]);(0,p.useEffect)(()=>{const e=pt.length;if(e>gt.current&&pt.length>1){const e=pt.findIndex(e=>!("core/button"!==e.name&&"jetpack/button"!==e.name||"submit"!==e.attributes?.customVariant&&"button"!==e.attributes?.element&&"button"!==e.attributes?.tagName));if(-1!==e&&e===pt.length-2){const t=[...pt],[o]=t.splice(e,1);t.push(o),ct(),st(Q,t,!1)}}gt.current=e},[pt,Q,st,ct]),(0,p.useEffect)(()=>{const e=kt(pt);if(1===e.length){const t=e[0];t.attributes?.required||lt(t.clientId,{required:!0})}},[pt,kt,lt]);const ht=(0,p.useCallback)(e=>{const t=[],o=e=>{e.forEach(e=>{e.name.startsWith(B.qt)&&t.push(e),e.innerBlocks&&e.innerBlocks.length>0&&o(e.innerBlocks)})};return o(e),t},[]),vt=(0,p.useRef)(null);(0,p.useEffect)(()=>{const e=ve?.orientation??"horizontal";if(null!==vt.current&&vt.current!==e){const t=ht(pt),o="vertical"===e?100:"auto";t.forEach(e=>{lt(e.clientId,{width:o})})}vt.current=e},[ve?.orientation,pt,ht,lt]);const jt=(0,p.useCallback)(function e(t){return t.some(t=>"jetpack/form-step"===t.name||"jetpack/form-step-container"===t.name||"jetpack/form-step-divider"===t.name||t.innerBlocks?.length&&e(t.innerBlocks))},[]),yt=(0,p.useRef)(null);(0,p.useEffect)(()=>{const e=jt(pt);e||"multistep"===fe?"multistep"===fe&&e?yt.current=K:yt.current!==K?yt.current=W:yt.current=J:yt.current=Y},[fe,pt,jt]),(0,p.useEffect)(()=>{if(yt.current!==W)return;const e=(t,o)=>t.reduce((t,r)=>t+(o(r)?1:0)+e(r.innerBlocks||[],o),0),t=e(pt,e=>"jetpack/form-step-container"===e.name),o=(e,t=!1)=>{for(const r of e){const e=t||"jetpack/form-step-container"===r.name;if("jetpack/form-step"===r.name&&!e)return!0;if(r.innerBlocks?.length&&o(r.innerBlocks,e))return!0}return!1};if(1===t&&!o(pt))return;const r=(()=>{const e=pt.findIndex(e=>"jetpack/button"===e.name||"core/button"===e.name&&"button"===e.attributes?.tagName);return-1!==e?{block:pt[e],index:e}:null})(),a=r?r.block:null,n=r?pt.filter((e,t)=>t!==r.index):pt;let s=[];const c=n.findIndex(e=>"jetpack/form-step-container"===e.name);if(-1!==c){const e=n.slice(0,c),t=n.slice(c+1),o=n[c];o.innerBlocks&&o.innerBlocks.length>0?s=o.innerBlocks:(e.length>0&&s.push((0,i.createBlock)("jetpack/form-step",{},e)),t.length>0&&s.push((0,i.createBlock)("jetpack/form-step",{},t)),0===s.length&&s.push((0,i.createBlock)("jetpack/form-step",{},[])))}else{const e=n.findIndex(e=>"jetpack/form-step"===e.name);if(-1!==e){const t=n.slice(0,e),o=n.slice(e+1);t.length>0&&s.push((0,i.createBlock)("jetpack/form-step",{},t)),s.push(n[e]),o.length>0&&s.push((0,i.createBlock)("jetpack/form-step",{},o))}else if(n.length>0){if(n.some(e=>"jetpack/form-step-divider"===e.name)){const e=[];let t=[];n.forEach(o=>{"jetpack/form-step-divider"===o.name?(e.push(t),t=[]):t.push(o)}),e.push(t),s=e.map(e=>(0,i.createBlock)("jetpack/form-step",{},e))}else s=n.map(e=>(0,i.createBlock)("jetpack/form-step",{},[e]));0===s.length&&(s=[(0,i.createBlock)("jetpack/form-step",{},[])])}else s=[(0,i.createBlock)("jetpack/form-step",{},[])]}const l=(0,i.createBlock)("jetpack/form-step-container",{},s),d=(e=>{const t=pt.find(e=>"jetpack/form-step-navigation"===e.name);return t&&e?(0,i.createBlock)("jetpack/form-step-navigation",t.attributes,[...t.innerBlocks||[],e]):t||(0,i.createBlock)("jetpack/form-step-navigation",{layout:{type:"flex",justifyContent:"right"}},e?[(0,i.createBlock)(...x.WU),(0,i.createBlock)(...x.GM),e]:x.se.map(e=>(0,i.createBlock)(...e)))})((e=>{if(!e)return null;const t=e,o=t.attributes.className||"",r=o.split(/\s+/).filter(Boolean),a=[];return r.includes("form-button-submit")||a.push("form-button-submit"),r.includes("is-submit")||a.push("is-submit"),a.length>0&&(t.attributes.className=o?`${o} ${a.join(" ")}`:a.join(" ")),t.attributes.metadata={...t.attributes.metadata||{},name:__("Submit button","jetpack-forms")},t})(a)),u=pt.find(e=>"jetpack/form-progress-indicator"===e.name)||(0,i.createBlock)("jetpack/form-progress-indicator",{},[]);ct(),st(Q,[u,l,d],!1),l.innerBlocks.length>0&&ut(Q,l.innerBlocks[0].clientId),"multistep"!==fe&&f({variationName:"multistep"}),yt.current=K},[fe,pt,Q,st,ut,f,jt,ct]),(0,p.useEffect)(()=>{if(J!==yt.current)return;let e=null;const t=(t=>{let o=[];return t.forEach(t=>{"jetpack/form-step-container"!==t.name?"jetpack/form-step"!==t.name?"jetpack/form-step-navigation"!==t.name&&"jetpack/form-progress-indicator"!==t.name&&"jetpack/form-step-divider"!==t.name?o.push(t):e||(e=t.innerBlocks?.find(e=>{if("jetpack/button"===e.name&&"submit"===e.attributes?.customVariant)return!0;if("core/button"===e.name){return(e.attributes?.className||"").split(/\s+/).includes("form-button-submit")}return!1})):o=o.concat(t.innerBlocks):t.innerBlocks.forEach(e=>{"jetpack/form-step"===e.name&&(o=o.concat(e.innerBlocks))})}),o})(pt);e||(e=(0,i.createBlock)("core/button",{text:__("Submit","jetpack-forms"),type:"submit",tagName:"button"}));const o=[...t,e];ct(),st(Q,o,!1),"default-empty"!==fe&&(ct(),f({variationName:"default-empty"})),yt.current=Y},[fe,pt,jt,Q,st,ct,f]),(0,p.useEffect)(()=>{"multistep"===fe&&We&&Me.length>0&&!Ye&&ut(Q,Me[0].clientId)},[fe,We,Me,Ye,Q,ut]);const xt=(0,C.l)(Ve,e=>e.clientId===Ve),wt=(0,C.l)(xt?.clientId||"",e=>"jetpack/form-step"===e.name);(0,p.useEffect)(()=>{We&&Ve&&wt&&wt.clientId!==Ye&&Ye&&ut(Q,wt.clientId)},[Ve,Q,Me,ut,We,Ye,wt]);const _t=te||De;let Ct;if(re&&Se&&!Fe)return(0,U.jsx)("div",{...et,children:(0,U.jsx)(P.A,{})});if(!re||Ae||Se){if(Ce)return(0,U.jsx)(F.A,{blockProps:et,innerBlocksProps:ot,isResolvingSyncedForm:Se,formRef:re,flushPendingSave:bt});if(nt)Ct=Fe?He?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("div",{className:"is-form-empty",children:(0,U.jsx)(n.InnerBlocks.ButtonBlockAppender,{})}),(0,U.jsx)("div",{...ot})]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(n.BlockControls,{children:[we&&!ze&&(0,U.jsx)(N.t,{clientId:Q,attributes:o,onBeforeNavigate:bt}),"multistep"===fe&&(0,U.jsx)(w.A,{formClientId:Q})]}),(0,U.jsxs)(n.InspectorControls,{children:[!(0,$.N)(o)&&(0,U.jsxs)(b.b,{intent:"warning",className:"jetpack-contact-form__not-collecting-notice",children:[(0,U.jsx)(g.h,{children:__("This form isn’t collecting responses","jetpack-forms")}),(0,U.jsx)(k.V,{children:(0,p.createInterpolateElement)(__("Turn on <email>email notifications</email> or <storage>response storage</storage> settings to start collecting.","jetpack-forms"),{email:(0,U.jsx)(s.Button,{variant:"link",onClick:()=>Ze(e=>({...e,"form-notifications":!0})),children:null}),storage:(0,U.jsx)(s.Button,{variant:"link",onClick:()=>Ze(e=>({...e,"responses-storage":!0})),children:null})})})]}),(0,U.jsxs)(s.PanelBody,{title:__("Action after submit","jetpack-forms"),initialOpen:!1,opened:Ue["action-after-submit"],onToggle:()=>Ze(e=>({...e,"action-after-submit":!e["action-after-submit"]})),className:"jetpack-contact-form__panel",children:[(0,U.jsx)(s.RadioControl,{label:__("Confirmation type","jetpack-forms"),selected:ue,options:[{label:__("Text","jetpack-forms"),value:"text"},{label:__("Redirect link","jetpack-forms"),value:"redirect"}],onChange:e=>f({confirmationType:e})}),"text"===ue&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(s.TextControl,{label:__("Message heading","jetpack-forms"),value:ce,placeholder:__("Thank you for your response.","jetpack-forms"),onChange:e=>f({customThankyouHeading:e}),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,U.jsx)(s.TextareaControl,{label:__("Message text","jetpack-forms"),value:le,placeholder:__("Thank you for your submission!","jetpack-forms"),onChange:e=>f({customThankyouMessage:e}),__nextHasNoMarginBottom:!0}),(0,U.jsx)(s.ToggleControl,{label:__("Show summary","jetpack-forms"),checked:!ge,onChange:e=>f({disableSummary:!e}),__nextHasNoMarginBottom:!0}),(0,U.jsx)(s.ToggleControl,{label:__('Show "Go back" link',"jetpack-forms"),checked:!be,onChange:e=>f({disableGoBack:!e}),__nextHasNoMarginBottom:!0})]}),"redirect"===ue&&(0,U.jsx)("div",{children:(0,U.jsx)(n.URLInput,{label:__("Redirect address","jetpack-forms"),value:de,className:"jetpack-contact-form__thankyou-redirect-url",onChange:e=>f({customThankyouRedirect:e})})})]}),(0,U.jsx)(s.PanelBody,{title:__("Form notifications","jetpack-forms"),initialOpen:!1,opened:Ue["form-notifications"],onToggle:()=>Ze(e=>({...e,"form-notifications":!e["form-notifications"]})),className:"jetpack-contact-form__panel",children:(0,U.jsx)(E.A,{notificationRecipients:ke,emailAddress:ne,emailSubject:ie,emailNotifications:me,instanceId:_e,autoRecipient:qe.address,autoRecipientSource:qe.source,autoSubject:Oe.subject||"",setAttributes:f})}),ye&&(0,U.jsx)(s.PanelBody,{title:__("Webhooks","jetpack-forms"),className:"jetpack-contact-form__panel",initialOpen:!1,children:(0,U.jsx)(L.A,{webhooks:he,setAttributes:f,clientId:Q})}),(0,U.jsx)(s.PanelBody,{title:__("Responses storage","jetpack-forms"),className:"jetpack-contact-form__panel jetpack-contact-form__responses-storage-panel",initialOpen:!1,opened:Ue["responses-storage"],onToggle:()=>Ze(e=>({...e,"responses-storage":!e["responses-storage"]})),children:(0,U.jsx)(_.A,{attributes:o,setAttributes:f})})]}),je&&xe&&_t&&(0,U.jsx)(p.Suspense,{fallback:(0,U.jsx)("div",{}),children:(0,U.jsx)(Z,{attributes:o,setAttributes:f})}),(0,U.jsxs)(n.InspectorAdvancedControls,{children:[(0,U.jsx)(s.TextControl,{label:__("Accessible name","jetpack-forms"),value:pe,placeholder:Le,onChange:e=>f({formTitle:e}),help:__("Add an accessible name to help people using assistive technology identify the form. Defaults to page or post title.","jetpack-forms"),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,U.jsx)("p",{children:(0,U.jsx)(m.N,{openInNewTab:!0,href:"https://developer.mozilla.org/docs/Glossary/Accessible_name",children:__("Read more.","jetpack-forms")})})]}),(0,U.jsx)(n.BlockContextProvider,{value:{"jetpack/form-steps":Me,"jetpack/form-current-step":Te},children:(0,U.jsx)("div",{...ot})})]}):(0,U.jsx)(G.A,{blockName:t,setAttributes:f,clientId:Q,classNames:tt});else{if(rt)return(0,U.jsx)("div",{...et,children:(0,U.jsx)(P.A,{})});Ct=(0,U.jsx)(T.o,{changeStatus:it,isModuleActive:nt,isLoading:at})}}else{const e="permission_denied"===Ne?__("You don't have permission to edit this form.","jetpack-forms"):_x("The referenced form could not be found.","synced form error","jetpack-forms");Ct=(0,U.jsx)(s.Notice,{status:"warning",isDismissible:!1,children:e})}return(0,U.jsx)(S.w,{children:(0,U.jsx)(r.Ay,{targetDom:Qe.current,children:(0,U.jsxs)("div",{...et,children:[re&&(0,U.jsx)(M.A,{syncedForm:Ae,formRef:re,isVisible:_t,clientId:Q}),Ct]})})})}},1803(e,t,o){"use strict";o.d(t,{G:()=>b});var r=o(85985),a=o(94715),n=o(74997),i=o(3582),s=o(47143),c=o(43656),l=o(86087),d=o(27723),u=o(692),p=o(11435),f=o(82441),m=o(45248);const __=d.__;function b({clientId:e,ref:t,innerBlocks:o,attributes:d,setAttributes:b}){const g=(0,l.useRef)(!1),{createSuccessNotice:k,createErrorNotice:h}=(0,s.useDispatch)(u.store),v=(0,r.lG)("central-form-management"),{currentPostId:j,shouldCreate:y}=(0,s.useSelect)(r=>{if(g.current)return{currentPostId:0,shouldCreate:!1};const{getCurrentPostType:n,getCurrentPostId:i}=r(c.store);return{currentPostId:i(),shouldCreate:v&&!!d.variationName&&r(a.store).wasBlockJustInserted(e)&&!t&&o?.length>0&&n()!==p.$8}},[e,t,o,d.variationName,v]);(0,l.useEffect)(()=>{if(g.current||!y)return;g.current=!0;let e=!1;return(async()=>{try{const t=d.variationName,r=m.A.find(e=>e.attributes?.variationName===t)?.title||__("Form","jetpack-forms"),a=(0,n.createBlock)("jetpack/contact-form",d,o),c=await(0,f.r)(a,r,Number(j));if(e)return;try{await(0,s.resolveSelect)(i.store).getEntityRecord("postType",p.$8,c)}catch{}if(e)return;b({ref:c}),k(__("New form created.","jetpack-forms"),{type:"snackbar",isDismissible:!0})}catch(t){if(e)return;console.error("Failed to create synced form on insertion:",t),h(__("Failed to create form. Using inline form instead.","jetpack-forms"),{type:"snackbar",isDismissible:!0})}})(),()=>{e=!0,g.current=!1}},[])}},30782(e,t,o){"use strict";o.d(t,{E8:()=>l});var r=o(74997),a=o(86087),n=o(11435),i=o(88645);function s(e,t,o,r,a,n){if(!e||!t||o)return null;if(n.current?.ref===e)return n.current.serialized;const s=(0,i.N8)(r,a);return n.current={ref:e,serialized:s},s}function c(e,t,o,a){const s=(0,i.y$)(t,o),c=(0,r.serialize)(s);a("postType",n.$8,e,{content:c,blocks:[s]})}function l({ref:e,syncedForm:t,attributes:o,currentInnerBlocks:r,isSyncingRef:n,syncGeneration:l,editEntityRecord:d}){const u=(0,a.useRef)(null),p=(0,a.useRef)(null);(0,a.useEffect)(()=>{p.current=null,u.current&&(clearTimeout(u.current),u.current=null)},[e]),(0,a.useEffect)(()=>{if(!e)return;const a=p.current?.ref===e,l=s(e,t,n.current,o,r,p);if(!l||!a)return;if((0,i.N8)(o,r)===l)return;const f=setTimeout(()=>{u.current=null,n.current||c(e,o,r,d)},1e3);return u.current=f,()=>{clearTimeout(f),u.current=null}},[r,e,t,d,o,n,l]);return{flushPendingSave:(0,a.useCallback)(()=>{if(!e)return;const a=s(e,t,n.current,o,r,p);if(!a)return;u.current&&(clearTimeout(u.current),u.current=null);(0,i.N8)(o,r)!==a&&c(e,o,r,d)},[e,t,o,r,n,d])}}},39190(e,t,o){"use strict";o.d(t,{Z:()=>i});var r=o(86087),a=o(88645);function n(e){for(const t of e){if("jetpack/form-step-container"===t.name&&t.innerBlocks?.length){const e=t.innerBlocks.find(e=>"jetpack/form-step"===e.name);return e?.clientId||null}if(t.innerBlocks?.length){const e=n(t.innerBlocks);if(e)return e}}return null}function i({ref:e,syncedFormBlocks:t,syncedFormAttributes:o,clientId:i,setAttributes:s,replaceInnerBlocks:c,__unstableMarkNextChangeAsNotPersistent:l,setActiveStep:d}){const u=(0,r.useRef)(!1),[p,f]=(0,r.useState)(0),m=(0,r.useRef)(null),b=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(!e||!t)return;if(m.current===e)return;if(m.current=e,u.current=!0,o){const e=(0,a.KM)(o);l(),s(e)}l(),c(i,t,!1);const r=n(t);return r&&d(i,r),b.current=requestAnimationFrame(()=>{b.current=null,u.current=!1,f(e=>e+1)}),()=>{null!==b.current&&(cancelAnimationFrame(b.current),b.current=null,u.current=!1)}},[e,t,o,i,l,c,s,d]),{isSyncingRef:u,syncGeneration:p}}},32952(e,t,o){"use strict";o.d(t,{_:()=>l});var r=o(74997),a=o(3582),n=o(47143),i=o(86087),s=o(11435);const c={syncedAttributes:null,syncedInnerBlocks:null};function l(e){const{record:t,isResolving:o,status:l,hasEdits:d}=(0,a.useEntityRecord)("postType",s.$8,e,{enabled:!!e}),u=(0,n.useSelect)(t=>{if(!e)return null;const o=t(a.store);return"function"!=typeof o.getResolutionError?null:o.getResolutionError("getEntityRecord",["postType",s.$8,e])},[e]),p=(0,n.useSelect)(t=>e?t(a.store).getEntityRecordEdits("postType",s.$8,e):null,[e]),f=(0,i.useMemo)(()=>{if(!d||!p)return null;const e=p;if(e.blocks&&Array.isArray(e.blocks))return e.blocks;if("string"==typeof e.content){const t=(0,r.parse)(e.content);return t.length>0?t:null}return null},[d,p]),{syncedAttributes:m,syncedInnerBlocks:b}=(0,i.useMemo)(()=>{if(f&&f.length>0){const t=f[0];if("jetpack/contact-form"!==t.name)return{syncedAttributes:null,syncedInnerBlocks:null};const o=t.attributes||{},{lock:r,...a}=o;return{syncedAttributes:{...a,ref:e},syncedInnerBlocks:t.innerBlocks||[]}}if(!t?.content?.raw)return c;const o=(0,r.parse)(t.content.raw);if(!o||0===o.length)return c;const a=o[0];if("jetpack/contact-form"!==a.name)return c;const n=a.attributes||{},{lock:i,...s}=n;return{syncedAttributes:{...s,ref:e},syncedInnerBlocks:a.innerBlocks||[]}},[f,t,e]);let g=null;if(e&&!t&&!o&&"IDLE"!==l){g=403===(u?.status??u?.data?.status)?"permission_denied":"not_found"}return e?"IDLE"===l?{isLoading:!0,syncedAttributes:m,syncedInnerBlocks:b,syncedForm:t,errorType:g}:{isLoading:o,syncedAttributes:m,syncedInnerBlocks:b,syncedForm:t,errorType:g}:{isLoading:!1,syncedAttributes:null,syncedInnerBlocks:null,syncedForm:null,errorType:null}}},81425(e,t,o){"use strict";o.d(t,{K:()=>n});var r=o(5573),a=o(10790);const n=(0,a.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,a.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 9H13V7.5H18V9Z"}),(0,a.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 16.5H13V15H18V16.5Z"}),(0,a.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 7.5H7.5V9.5H9.5V7.5ZM7.5 6H9.5C10.3284 6 11 6.67157 11 7.5V9.5C11 10.3284 10.3284 11 9.5 11H7.5C6.67157 11 6 10.3284 6 9.5V7.5C6 6.67157 6.67157 6 7.5 6Z"}),(0,a.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 14.5H7.5V16.5H9.5V14.5ZM7.5 13H9.5C10.3284 13 11 13.6716 11 14.5V16.5C11 17.3284 10.3284 18 9.5 18H7.5C6.67157 18 6 17.3284 6 16.5V14.5C6 13.6716 6.67157 13 7.5 13Z"}),(0,a.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19 4.5H5C4.72386 4.5 4.5 4.72386 4.5 5V19C4.5 19.2761 4.72386 19.5 5 19.5H19C19.2761 19.5 19.5 19.2761 19.5 19V5C19.5 4.72386 19.2761 4.5 19 4.5ZM5 3C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5Z"})]})},51460(e,t,o){"use strict";o.d(t,{UU:()=>h,W0:()=>_});var r=o(94715),a=o(3582),n=o(47143),i=o(18537),s=o(27723),c=(o(25036),o(11435)),l=o(32797),d=o(73423),u=o(26597),p=o(97560),f=o(81425),m=o(62612),b=o(97329),g=o(45248),k=o(10790);const __=s.__,_x=s._x,h="contact-form",{editorScript:v,style:j,name:y,$schema:x,...w}=d,_={...w,title:__("Form","jetpack-forms"),description:__("Create forms to collect data from site visitors and manage their responses.","jetpack-forms"),icon:{src:f.K},keywords:[_x("email","block search term","jetpack-forms"),_x("feedback","block search term","jetpack-forms"),_x("contact form","block search term","jetpack-forms")],attributes:l.A,providesContext:{"jetpack/form-class-name":"className"},edit:p.A,save:({attributes:e})=>{if(e.ref)return null;const t=r.useBlockProps.save();return(0,k.jsx)("div",{...t,children:(0,k.jsx)(r.InnerBlocks.Content,{})})},example:{innerBlocks:[{name:"jetpack/field-name",attributes:{required:!0,label:__("Name","jetpack-forms")}},{name:"jetpack/field-email",attributes:{required:!0,label:__("Email","jetpack-forms")}},{name:"jetpack/field-textarea",attributes:{label:__("Message","jetpack-forms")}},{name:"jetpack/button",attributes:{text:__("Contact Us","jetpack-forms"),element:"button",lock:{remove:!0}}}]},styles:[{name:"default",label:__("Default","jetpack-forms"),isDefault:!0},{name:"animated",label:__("Animated","jetpack-forms")},{name:"outlined",label:__("Outlined","jetpack-forms")}],variations:g.A,category:"contact-form",transforms:m.A,deprecated:u.A,label:({ref:e})=>{if(!e)return b.u6;const t=(0,n.select)(a.store).getEditedEntityRecord("postType",c.$8,e);if(!t?.status)return b.u6;const o=(0,b.Vv)(t?.title),r=o?(0,i.decodeEntities)(o):"";return(0,b.o8)({title:r,status:t.status,defaultLabel:b.u6})}}},91550(e,t,o){"use strict";o.d(t,{B:()=>n,R:()=>a});var r=o(27723);const __=r.__;function a({serverSource:e,serverAddress:t="",postAuthorEmail:o="",isStandaloneForm:r=!1}){return r?{address:"",source:"embedding_post_author"}:"post_author"===e?{address:o||t,source:"post_author"}:{address:t,source:"site_admin"}}function n(e){const t={post_author:__("Leave empty to send responses to the post author.","jetpack-forms"),embedding_post_author:__("Leave empty to send responses to the author of the page where this form appears.","jetpack-forms"),site_admin:__("Leave empty to send responses to the site admin email.","jetpack-forms")};return t[e]||t.site_admin}},82441(e,t,o){"use strict";o.d(t,{r:()=>c});var r=o(74997),a=o(3582),n=o(47143),i=o(27723),s=o(11435);const __=i.__;async function c(e,t,o){const i=(0,r.serialize)([{name:s.bp,attributes:e?.attributes,innerBlocks:e?.innerBlocks}]),c=o>0?{[s.lP]:o}:{};return(await(0,n.dispatch)(a.store).saveEntityRecord("postType",s.$8,{title:t||__("Untitled Form","jetpack-forms"),content:i,status:"publish",meta:c})).id}},88645(e,t,o){"use strict";o.d(t,{KM:()=>a,N8:()=>i,y$:()=>n});var r=o(74997);function a(e){const t={...e};return delete t.className,delete t.align,delete t.style,delete t.ref,delete t.lock,t}function n(e,t){const o={...e};return delete o.ref,delete o.lock,(0,r.createBlock)("jetpack/contact-form",o,t)}function i(e,t){const o=n(e,t);return(0,r.serialize)(o)}},84203(e,t,o){"use strict";function r(){const e=window.location.pathname;return e.endsWith("/widgets.php")?"widget":e.endsWith("/site-editor.php")?"site":"post"}o.d(t,{f:()=>r})},65403(e,t,o){"use strict";function r(e,t){return null==e?t:"string"==typeof e?!["","no","false","0"].includes(e.trim().toLowerCase()):!!e}function a(e={}){const t=r(e.emailNotifications,!0),o=r(e.saveResponses,!0),a=r(e.jetpackCRM,!1)||!!e.mailpoet?.enabledForForm||!!e.hostingerReach?.enabledForForm||!!e.salesforceData?.sendToSalesforce&&!!e.salesforceData?.organizationId;return t||o||a}o.d(t,{N:()=>a})},1295(e,t,o){"use strict";o.d(t,{h:()=>n});var r=o(76449),a=o(11435);const n=(e,t,o)=>{"widget"===t||"site"===t?window.location.href=(0,r.w)(e):o&&o({postId:e,postType:a.$8})}},99076(e,t,o){"use strict";o.d(t,{A:()=>w});var r=o(85985),a=o(94715),n=o(74997),i=o(56427),s=o(3582),c=o(47143),l=o(43656),d=o(86087),u=o(18537),p=o(27723),f=o(692),m=o(13022),b=o(11435),g=(o(75205),o(49226)),k=o(82441),h=o(53926),v=o(10790);const __=p.__,j=e=>e.map(([e,t,o=[]])=>(0,n.createBlock)(e,t,j(o))),y=[],x={per_page:100,status:"publish",orderby:"modified"};function w({blockName:e,setAttributes:t,clientId:o,classNames:p}){const w=(0,c.useRegistry)(),[_,C]=(0,d.useState)(!1),[A,S]=(0,d.useState)(!1),B=(0,d.useRef)(!1),{replaceInnerBlocks:I,selectBlock:N}=(0,c.useDispatch)(a.store),{createSuccessNotice:M}=(0,c.useDispatch)(f.store),T=(0,r.lG)("central-form-management"),{blockType:P,defaultVariation:E,variations:L,currentPostType:F,currentPostId:R,jetpackForms:V}=(0,c.useSelect)(t=>{const{getBlockType:o,getBlockVariations:r,getDefaultBlockVariation:a}=t(n.store),{getCurrentPostType:i,getCurrentPostId:c}=t(l.store),{getEntityRecords:d}=t(s.store);return{blockType:o(e),defaultVariation:a(e,"block"),variations:r(e,"block"),currentPostType:i(),currentPostId:c(),jetpackForms:d("postType",b.$8,x)??y}},[e]),H=F===b.$8;(0,d.useEffect)(()=>{_||-1===window.location.search.indexOf("showJetpackFormsPatterns")||C(!0)},[]);const z=V&&V.length>0,D=!H&&T&&z,O=e=>(0,g.A)({batch:w.batch,setAttributes:t,replaceInnerBlocks:I,selectBlock:N,clientId:o,variation:e,createBlocksFromTemplate:j}),q=(()=>{if(A){return __("Creating your form…","jetpack-forms")}if(T&&D){return __("Start by selecting one of these templates or select an existing form below.","jetpack-forms")}if(T){return __("Start by selecting one of these templates.","jetpack-forms")}if(z){return __("Start by selecting one of these templates, browse patterns, or select an existing form below.","jetpack-forms")}return __("Start by selecting one of these templates or browse patterns.","jetpack-forms")})();return(0,v.jsxs)("div",{className:(0,m.A)(p,"is-placeholder"),children:[(0,v.jsx)(i.VisuallyHidden,{role:"status",children:A?__("Creating your form…","jetpack-forms"):""}),(0,v.jsxs)("div",{className:(0,m.A)("form-placeholder__body",{"is-creating-form":A}),inert:A?"":void 0,children:[(0,v.jsx)(a.__experimentalBlockVariationPicker,{icon:P?.icon?.src,label:P?.title,instructions:q,variations:L.filter(e=>!e.hiddenFromPicker),onSelect:async(e=E)=>{if(!H&&T&&"regular-form"!==e.name){if(!B.current){B.current=!0,S(!0);try{const r=j(e.innerBlocks),a=(0,n.createBlock)("jetpack/contact-form",e.attributes||{},r),i=await(0,k.r)(a,e.title||"Form",R);w.batch(()=>{t({ref:i}),N(o)}),M(__("New form created.","jetpack-forms"),{type:"snackbar",isDismissible:!0})}catch(t){console.error("Failed to create synced form:",t),O(e)}finally{B.current=!1,S(!1)}}}else O(e)}}),!T&&(0,v.jsx)("div",{className:"form-placeholder__shell",children:(0,v.jsx)(i.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>C(!0),children:__("Browse form patterns","jetpack-forms")})}),D&&(0,v.jsx)("div",{className:"form-placeholder__shell",children:(0,v.jsx)(i.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:__("Or select an existing form","jetpack-forms"),options:[{label:__("Select a form…","jetpack-forms"),value:""},...V.map(e=>({label:(0,u.decodeEntities)(e.title?.rendered||"")||__("(Untitled)","jetpack-forms"),value:e.id.toString()}))],onChange:e=>{(0,h.f)({formId:e,batch:w.batch,setAttributes:t,selectBlock:N,clientId:o})}})})]}),_&&(0,v.jsx)(i.Modal,{className:"form-placeholder__patterns-modal",title:__("Choose a pattern","jetpack-forms"),closeLabel:__("Cancel","jetpack-forms"),onRequestClose:()=>C(!1),children:(0,v.jsx)(a.__experimentalBlockPatternSetup,{initialViewMode:"grid",filterPatternsFn:e=>-1!==e.content.indexOf("jetpack/contact-form"),clientId:o})})]})}},45248(e,t,o){"use strict";o.d(t,{A:()=>d});var r=o(97999),a=o(85985),n=o(27723),i=o(92634),s=o(5573),c=o(11435),l=o(10790);const __=n.__,_x=n._x,d=[{name:"regular-form",title:__("Form","jetpack-forms"),icon:{src:(0,l.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,l.jsx)(s.Path,{d:"m13 7.5 h 5 v 1.5 h -5 v -1.5z"}),(0,l.jsx)(s.Path,{d:"m13 15 h 5 v 1.5 h -5 v -1.5z"}),(0,l.jsx)(s.Path,{d:"m19.01,3H4.99c-1.1,0-1.99.89-1.99,1.99v14.02c0,1.1.89,1.99,1.99,1.99h14.02c1.1,0,1.99-.89,1.99-1.99V4.99c0-1.1-.89-1.99-1.99-1.99Zm.49,15.99c0,.28-.23.51-.51.51H5.01c-.28,0-.51-.23-.51-.51V5.01c0-.28.23-.51.51-.51h13.98c.28,0,.51.23.51.51v13.98Z"}),(0,l.jsx)(s.Path,{d:"m9.46,13h-1.92c-.85,0-1.54.69-1.54,1.54v1.92c0,.85.69,1.54,1.54,1.54h1.92c.85,0,1.54-.69,1.54-1.54v-1.92c0-.85-.69-1.54-1.54-1.54Zm.04,3.5h-2v-2h2v2Z"}),(0,l.jsx)(s.Path,{d:"m9.46,6h-1.92c-.85,0-1.54.69-1.54,1.54v1.92c0,.85.69,1.54,1.54,1.54h1.92c.85,0,1.54-.69,1.54-1.54v-1.92c0-.85-.69-1.54-1.54-1.54Zm.04,3.5h-2v-2h2v2Z"})]})},attributes:{variationName:"default-empty",layout:c.US},scope:["transform"],isActive:({variationName:e})=>"multistep"!==e},{name:"contact-form",title:__("Contact Form","jetpack-forms"),description:__("Add a contact form to your page.","jetpack-forms"),icon:{src:(0,l.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,l.jsx)(s.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.3203L6.6477 9L12 12.6797L17.3523 9L12 5.3203ZM12 3.5L4 9L12 14.5L20 9L12 3.5Z"}),(0,l.jsx)(s.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M4 18V9H5.5V18C5.5 18.4142 5.83579 18.75 6.25 18.75H17.75C18.1642 18.75 18.5 18.4142 18.5 18V9H20V18C20 19.2426 18.9926 20.25 17.75 20.25H6.25C5.00736 20.25 4 19.2426 4 18Z"})]})},innerBlocks:[["jetpack/field-name",{required:!0},[["jetpack/label",{label:__("Name","jetpack-forms")}],["jetpack/input"]]],["jetpack/field-email",{required:!0},[["jetpack/label",{label:__("Email","jetpack-forms")}],["jetpack/input"]]],["jetpack/field-textarea",{},[["jetpack/label",{label:__("Message","jetpack-forms")}],["jetpack/input",{type:"textarea"}]]],["core/button",{text:__("Contact us","jetpack-forms"),tagName:"button",type:"submit"}]],attributes:{variationName:"default",layout:c.US}},{name:"rsvp-form",title:__("RSVP Form","jetpack-forms"),description:__("Add an RSVP form to your page","jetpack-forms"),icon:{src:(0,l.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,l.jsx)(s.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M7.87868 15.5L5.5 17.8787L5.5 6C5.5 5.72386 5.72386 5.5 6 5.5L18 5.5C18.2761 5.5 18.5 5.72386 18.5 6L18.5 15C18.5 15.2761 18.2761 15.5 18 15.5L7.87868 15.5ZM8.5 17L18 17C19.1046 17 20 16.1046 20 15L20 6C20 4.89543 19.1046 4 18 4L6 4C4.89543 4 4 4.89543 4 6L4 18.9393C4 19.5251 4.47487 20 5.06066 20C5.34196 20 5.61175 19.8883 5.81066 19.6893L8.5 17Z"}),(0,l.jsx)(s.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6087 7.93847L11.4826 13.6692L8.45898 10.5196L9.54107 9.48084L11.3175 11.3313L14.3914 7.06201L15.6087 7.93847Z"})]})},innerBlocks:[["jetpack/field-name",{required:!0},[["jetpack/label",{label:__("Name","jetpack-forms")}],["jetpack/input"]]],["jetpack/field-email",{required:!0},[["jetpack/label",{label:__("Email","jetpack-forms")}],["jetpack/input"]]],["jetpack/field-radio",{required:!0},[["jetpack/label",{label:__("Attending?","jetpack-forms")}],["jetpack/options",{type:"radio"},[["jetpack/option",{label:__("Yes","jetpack-forms"),placeholder:__("Add option…","jetpack-forms")}],["jetpack/option",{label:__("No","jetpack-forms"),placeholder:__("Add option…","jetpack-forms")}]]]]],["jetpack/field-textarea",{},[["jetpack/label",{label:__("Other details","jetpack-forms")}],["jetpack/input",{type:"textarea"}]]],["core/button",{text:__("Send RSVP","jetpack-forms"),tagName:"button",type:"submit"}]],attributes:{variationName:"rsvp-form",subject:__("A new RSVP from your website","jetpack-forms"),layout:c.US},example:{innerBlocks:[{name:"jetpack/field-name",attributes:{required:!0},innerBlocks:[{name:"jetpack/label",attributes:{label:__("Name","jetpack-forms")}},{name:"jetpack/input"}]},{name:"jetpack/field-email",attributes:{required:!0},innerBlocks:[{name:"jetpack/label",attributes:{label:__("Email","jetpack-forms")}},{name:"jetpack/input"}]},{name:"jetpack/field-radio",attributes:{required:!0},innerBlocks:[{name:"jetpack/label",attributes:{label:__("Attending?","jetpack-forms")}},{name:"jetpack/options",attributes:{type:"radio"},innerBlocks:[{name:"jetpack/option",attributes:{label:__("Yes","jetpack-forms"),placeholder:__("Add option…","jetpack-forms")}},{name:"jetpack/option",attributes:{label:__("No","jetpack-forms"),placeholder:__("Add option…","jetpack-forms")}}]}]},{name:"jetpack/field-textarea",innerBlocks:[{name:"jetpack/label",attributes:{label:__("Other details","jetpack-forms")}},{name:"jetpack/input",attributes:{type:"textarea"}}]},{name:"core/button",attributes:{text:__("Send RSVP","jetpack-forms"),tagName:"button",lock:{remove:!0}}}]}},{name:"registration-form",title:__("Registration Form","jetpack-forms"),description:__("Add a Registration form to your page","jetpack-forms"),icon:{src:(0,l.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,l.jsx)(s.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 5.5V8H20V5.5H22.5V4H20V1.5H18.5V4H16V5.5H18.5ZM12 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V12H18.5V18C18.5 18.2761 18.2761 18.5 18 18.5H6C5.72386 18.5 5.5 18.2761 5.5 18V6C5.5 5.72386 5.72386 5.5 6 5.5H12V4Z"}),(0,l.jsx)(s.Path,{d:"M16.75 17.5V15.5C16.75 13.9812 15.5188 12.75 14 12.75H10C8.48122 12.75 7.25 13.9812 7.25 15.5V17.5H8.75V15.5C8.75 14.8096 9.30964 14.25 10 14.25H14C14.6904 14.25 15.25 14.8096 15.25 15.5V17.5H16.75Z"}),(0,l.jsx)(s.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5 9C14.5 10.3807 13.3807 11.5 12 11.5C10.6193 11.5 9.5 10.3807 9.5 9C9.5 7.61929 10.6193 6.5 12 6.5C13.3807 6.5 14.5 7.61929 14.5 9ZM13 9C13 9.55228 12.5523 10 12 10C11.4477 10 11 9.55228 11 9C11 8.44772 11.4477 8 12 8C12.5523 8 13 8.44772 13 9Z"})]})},innerBlocks:[["jetpack/field-name",{required:!0},[["jetpack/label",{label:__("Name","jetpack-forms")}],["jetpack/input"]]],["jetpack/field-email",{required:!0},[["jetpack/label",{label:__("Email","jetpack-forms")}],["jetpack/input"]]],["jetpack/field-telephone",{},[["jetpack/label",{label:__("Phone","jetpack-forms")}],["jetpack/phone-input"]]],["jetpack/field-select",{options:[__("Search engine","jetpack-forms"),__("Social media","jetpack-forms"),__("TV","jetpack-forms"),__("Radio","jetpack-forms"),__("Friend or family","jetpack-forms")]},[["jetpack/label",{label:__("How did you hear about us?","jetpack-forms")}],["jetpack/input",{type:"dropdown",placeholder:__("Select one option","jetpack-forms")}]]],["jetpack/field-textarea",{},[["jetpack/label",{label:__("Other details","jetpack-forms")}],["jetpack/input",{type:"textarea"}]]],["core/button",{text:__("Send","jetpack-forms"),tagName:"button",type:"submit"}]],attributes:{variationName:"registration-form",subject:__("A new registration from your website","jetpack-forms"),layout:c.US},example:{innerBlocks:[{name:"jetpack/field-name",attributes:{required:!0},innerBlocks:[{name:"jetpack/label",attributes:{label:__("Name","jetpack-forms")}},{name:"jetpack/input"}]},{name:"jetpack/field-email",attributes:{required:!0},innerBlocks:[{name:"jetpack/label",attributes:{label:__("Email","jetpack-forms")}},{name:"jetpack/input"}]},{name:"jetpack/field-telephone",innerBlocks:[{name:"jetpack/label",attributes:{label:__("Phone","jetpack-forms")}},{name:"jetpack/phone-input"}]},{name:"jetpack/field-select",attributes:{options:[__("Search Engine","jetpack-forms"),__("Social Media","jetpack-forms"),__("TV","jetpack-forms"),__("Radio","jetpack-forms"),__("Friend or Family","jetpack-forms")]},innerBlocks:[{name:"jetpack/label",attributes:{label:__("How did you hear about us?","jetpack-forms")}},{name:"jetpack/input",attributes:{type:"dropdown",placeholder:__("Select one option","jetpack-forms")}}]},{name:"jetpack/field-textarea",innerBlocks:[{name:"jetpack/label",attributes:{label:__("Other details","jetpack-forms")}},{name:"jetpack/input",attributes:{type:"textarea"}}]},{name:"core/button",attributes:{text:__("Send","jetpack-forms"),tagName:"button",lock:{remove:!0}}}]}},{name:"appointment-form",title:__("Appointment Form","jetpack-forms"),description:__("Add an Appointment booking form to your page","jetpack-forms"),icon:{src:(0,l.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,l.jsx)(s.Path,{d:"M4 6C4 4.89543 4.89543 4 6 4H18C19.1046 4 20 4.89543 20 6V8H4V6Z"}),(0,l.jsx)(s.Path,{d:"M7 9.25H11V13.25H7V9.25Z"}),(0,l.jsx)(s.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5H18C18.2761 5.5 18.5 5.72386 18.5 6V12H20V6C20 4.89543 19.1046 4 18 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H12V18.5H6C5.72386 18.5 5.5 18.2761 5.5 18V6C5.5 5.72386 5.72386 5.5 6 5.5Z"}),(0,l.jsx)(s.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M17.25 21V15H18.75V21H17.25Z"}),(0,l.jsx)(s.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 17.25L21 17.25L21 18.75L15 18.75L15 17.25Z"})]})},innerBlocks:[["jetpack/field-name",{required:!0},[["jetpack/label",{label:__("Name","jetpack-forms")}],["jetpack/input"]]],["jetpack/field-email",{required:!0},[["jetpack/label",{label:__("Email","jetpack-forms")}],["jetpack/input"]]],["jetpack/field-telephone",{required:!0},[["jetpack/label",{label:__("Phone","jetpack-forms")}],["jetpack/phone-input"]]],["jetpack/field-date",{required:!0},[["jetpack/label",{label:__("Date","jetpack-forms")}],["jetpack/input"]]],["jetpack/field-radio",{required:!0},[["jetpack/label",{label:__("Time","jetpack-forms")}],["jetpack/options",{type:"radio"},[["jetpack/option",{label:__("Morning","jetpack-forms"),placeholder:__("Add option…","jetpack-forms")}],["jetpack/option",{label:__("Afternoon","jetpack-forms"),placeholder:__("Add option…","jetpack-forms")}]]]]],["jetpack/field-textarea",{},[["jetpack/label",{label:__("Notes","jetpack-forms")}],["jetpack/input",{type:"textarea"}]]],["core/button",{text:__("Book appointment","jetpack-forms"),tagName:"button",type:"submit"}]],attributes:{variationName:"appointment-form",subject:__("A new appointment booked from your website","jetpack-forms"),layout:c.US},example:{innerBlocks:[{name:"jetpack/field-name",attributes:{required:!0},innerBlocks:[{name:"jetpack/label",attributes:{label:__("Name","jetpack-forms")}},{name:"jetpack/input"}]},{name:"jetpack/field-email",attributes:{required:!0},innerBlocks:[{name:"jetpack/label",attributes:{label:__("Email","jetpack-forms")}},{name:"jetpack/input"}]},{name:"jetpack/field-telephone",attributes:{required:!0},innerBlocks:[{name:"jetpack/label",attributes:{label:__("Phone","jetpack-forms")}},{name:"jetpack/phone-input"}]},{name:"jetpack/field-date",attributes:{required:!0},innerBlocks:[{name:"jetpack/label",attributes:{label:__("Date","jetpack-forms")}},{name:"jetpack/input"}]},{name:"jetpack/field-radio",attributes:{required:!0},innerBlocks:[{name:"jetpack/label",attributes:{label:__("Time","jetpack-forms")}},{name:"jetpack/options",attributes:{type:"radio"},innerBlocks:[{name:"jetpack/option",attributes:{label:__("Morning","jetpack-forms"),placeholder:__("Add option…","jetpack-forms")}},{name:"jetpack/option",attributes:{label:__("Afternoon","jetpack-forms"),placeholder:__("Add option…","jetpack-forms")}}]}]},{name:"jetpack/field-textarea",innerBlocks:[{name:"jetpack/label",attributes:{label:__("Notes","jetpack-forms")}},{name:"jetpack/input",attributes:{type:"textarea"}}]},{name:"core/button",attributes:{text:__("Book appointment","jetpack-forms"),tagName:"button",lock:{remove:!0}}}]}},{name:"feedback-form",title:__("Feedback Form","jetpack-forms"),description:__("Add a feedback form to your page","jetpack-forms"),icon:{src:(0,l.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,l.jsx)(s.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5C15.5899 18.5 18.5 15.5899 18.5 12C18.5 8.41015 15.5899 5.5 12 5.5C8.41015 5.5 5.5 8.41015 5.5 12C5.5 15.5899 8.41015 18.5 12 18.5ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z"}),(0,l.jsx)(s.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 11C10.3284 11 11 10.3284 11 9.5C11 8.67157 10.3284 8 9.5 8C8.67157 8 8 8.67157 8 9.5C8 10.3284 8.67157 11 9.5 11Z"}),(0,l.jsx)(s.Path,{d:"M16 9.5C16 10.3284 15.3284 11 14.5 11C13.6716 11 13 10.3284 13 9.5C13 8.67157 13.6716 8 14.5 8C15.3284 8 16 8.67157 16 9.5Z"}),(0,l.jsx)(s.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5 11C15.3284 11 16 10.3284 16 9.5C16 8.67157 15.3284 8 14.5 8C13.6716 8 13 8.67157 13 9.5C13 10.3284 13.6716 11 14.5 11Z"}),(0,l.jsx)(s.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M8.16492 14.6566L7.41431 13.7183L8.58561 12.7812L9.33622 13.7195C9.98358 14.5287 10.9637 14.9998 12 14.9998C13.0362 14.9998 14.0163 14.5287 14.6637 13.7195L15.4143 12.7812L16.5856 13.7183L15.835 14.6566C14.903 15.8216 13.4919 16.4998 12 16.4998C10.508 16.4998 9.09693 15.8216 8.16492 14.6566Z"})]})},innerBlocks:[["jetpack/field-name",{required:!0},[["jetpack/label",{label:__("Name","jetpack-forms")}],["jetpack/input"]]],["jetpack/field-email",{required:!0},[["jetpack/label",{label:__("Email","jetpack-forms")}],["jetpack/input"]]],["jetpack/field-rating",{required:!0,max:5},[["jetpack/label",{label:__("Rate your experience","jetpack-forms")}]]],["jetpack/field-textarea",{},[["jetpack/label",{label:__("How could we improve?","jetpack-forms")}],["jetpack/input",{type:"textarea"}]]],["core/button",{text:__("Send feedback","jetpack-forms"),tagName:"button",type:"submit"}]],attributes:{variationName:"feedback-form",subject:__("New feedback received from your website","jetpack-forms"),layout:c.US},example:{innerBlocks:[{name:"jetpack/field-name",attributes:{required:!0},innerBlocks:[{name:"jetpack/label",attributes:{label:__("Name","jetpack-forms")}},{name:"jetpack/input"}]},{name:"jetpack/field-email",attributes:{required:!0},innerBlocks:[{name:"jetpack/label",attributes:{label:__("Email","jetpack-forms")}},{name:"jetpack/input"}]},{name:"jetpack/field-rating",attributes:{required:!0,max:5},innerBlocks:[{name:"jetpack/label",attributes:{label:__("Rate your experience","jetpack-forms")}}]},{name:"jetpack/field-textarea",innerBlocks:[{name:"jetpack/label",attributes:{label:__("How could we improve?","jetpack-forms")}},{name:"jetpack/input",attributes:{type:"textarea"}}]},{name:"core/button",attributes:{text:__("Send Feedback","jetpack-forms"),tagName:"button",lock:{remove:!0}}}]}},(0,a.lG)("multistep-form")&&{name:"multistep-form",title:__("Multistep Form","jetpack-forms"),description:__("Create a form that spans multiple steps.","jetpack-forms"),icon:{src:(0,l.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,l.jsx)(s.Path,{d:"M7.3501 12C7.3501 10.7574 6.34274 9.75 5.1001 9.75C3.85746 9.75 2.8501 10.7574 2.8501 12C2.8501 13.2426 3.85746 14.25 5.1001 14.25C6.34274 14.25 7.3501 13.2426 7.3501 12Z",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,l.jsx)(s.Path,{d:"M14.3501 12C14.3501 10.7574 13.3427 9.75 12.1001 9.75C10.8575 9.75 9.8501 10.7574 9.8501 12C9.8501 13.2426 10.8575 14.25 12.1001 14.25C13.3427 14.25 14.3501 13.2426 14.3501 12Z",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,l.jsx)(s.Path,{d:"M21.3501 12C21.3501 10.7574 20.3427 9.75 19.1001 9.75C17.8575 9.75 16.8501 10.7574 16.8501 12C16.8501 13.2426 17.8575 14.25 19.1001 14.25C20.3427 14.25 21.3501 13.2426 21.3501 12Z",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,l.jsx)(s.Path,{d:"M19.1001 18.8636C19.1001 21.1364 17.4668 22.5 15.6001 22.5C13.7334 22.5 12.1001 21.5 12.1001 18.8636V16.5",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,l.jsx)(s.Path,{d:"M21.6001 19H20.1001H18.6001H16.6001L19.1001 16L21.6001 19Z"}),(0,l.jsx)(s.Path,{d:"M12.1001 5.1364C12.1001 2.8636 10.4668 1.5 8.6001 1.5C6.73343 1.5 5.1001 2.5 5.1001 5.1364V7.5",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,l.jsx)(s.Path,{d:"M14.6001 5H13.1001H11.6001H9.6001L12.1001 8L14.6001 5Z"})]})},innerBlocks:[["jetpack/form-progress-indicator",{}],["jetpack/form-step-container",{},[["jetpack/form-step",{stepLabel:__("Let's get acquainted","jetpack-forms")},[["jetpack/field-name",{placeholder:__("Jamie Smith","jetpack-forms")},[["jetpack/label",{label:__("Name","jetpack-forms")}],["jetpack/input"]]],["jetpack/field-email",{required:!0,placeholder:__("[email protected]","jetpack-forms")},[["jetpack/label",{label:__("Email Address","jetpack-forms")}],["jetpack/input"]]],["jetpack/field-select",{options:[__("I need help","jetpack-forms"),__("I'm interested in your services","jetpack-forms"),__("Just exploring","jetpack-forms")]},[["jetpack/label",{label:__("What brings you here today?","jetpack-forms")}],["jetpack/input",{type:"dropdown",placeholder:__("Select one option","jetpack-forms")}]]]]],["jetpack/form-step",{stepLabel:__("How can we help?","jetpack-forms")},[["jetpack/field-textarea",{},[["jetpack/label",{label:__("What do you need help with?","jetpack-forms")}],["jetpack/input",{type:"textarea"}]]],["jetpack/field-select",{options:[__("Urgent (within 1 business day)","jetpack-forms"),__("High priority (1–2 business days)","jetpack-forms"),__("Normal (3–5 business days)","jetpack-forms"),__("Flexible / No specific deadline","jetpack-forms")]},[["jetpack/label",{label:__("How soon do you need a response?","jetpack-forms")}],["jetpack/input",{type:"dropdown",placeholder:__("Select one option","jetpack-forms")}]]]]],["jetpack/form-step",{stepLabel:__("Preferences","jetpack-forms")},[["jetpack/field-select",{options:[__("Email","jetpack-forms"),__("Phone call","jetpack-forms"),__("Text message","jetpack-forms"),__("WhatsApp","jetpack-forms")]},[["jetpack/label",{label:__("Preferred way to hear from us","jetpack-forms")}],["jetpack/input",{type:"dropdown",placeholder:__("Select one option","jetpack-forms")}]]],["jetpack/field-telephone",{},[["jetpack/label",{label:__("Phone Number","jetpack-forms")}],["jetpack/phone-input",{placeholder:__("If you'd rather chat by phone, just leave your number here.","jetpack-forms")}]]],["core/paragraph",{content:__("✨ That's it! Send it over and we'll take care of the rest.","jetpack-forms")}]]]]],["jetpack/form-step-navigation",{layout:{type:"flex",justifyContent:"right"}},[["core/button",{tagName:"button",text:__("← Back","jetpack-forms"),className:"is-style-outline form-button-previous is-previous",metadata:{name:__("Previous button","jetpack-forms")}}],["core/button",{tagName:"button",className:"form-button-next is-next",text:__("Next →","jetpack-forms"),metadata:{name:__("Next button","jetpack-forms")}}],["core/button",{tagName:"button",className:"form-button-submit is-submit",type:"submit",text:__("Submit","jetpack-forms"),metadata:{name:__("Submit button","jetpack-forms")}}]]]],attributes:{variationName:"multistep",layout:c.US},scope:["block","inserter","transform"],isActive:["variationName"]},!(0,r.isWpcomPlatformSite)()&&{name:"lead-capture-form",title:__("Lead capture","jetpack-forms"),description:__("A simple way to collect leads using forms on your site.","jetpack-forms"),keywords:[_x("subscribe","block search term","jetpack-forms"),_x("email","block search term","jetpack-forms"),_x("signup","block search term","jetpack-forms")],icon:{src:i.A},innerBlocks:[["jetpack/field-name",{required:!0},[["jetpack/label",{label:__("Name","jetpack-forms")}],["jetpack/input"]]],["jetpack/field-email",{required:!0},[["jetpack/label",{label:__("Email","jetpack-forms")}],["jetpack/input"]]],["jetpack/field-consent",{},[["jetpack/label"],["jetpack/input",{type:"checkbox"}]]],["core/button",{text:__("Subscribe","jetpack-forms"),tagName:"button",type:"submit"}]],attributes:{variationName:"lead-capture-form",layout:c.US},example:{innerBlocks:[{name:"jetpack/field-name",attributes:{required:!0},innerBlocks:[{name:"jetpack/label",attributes:{label:__("Name","jetpack-forms")}},{name:"jetpack/input"}]},{name:"jetpack/field-email",attributes:{required:!0},innerBlocks:[{name:"jetpack/label",attributes:{label:__("Email","jetpack-forms")}},{name:"jetpack/input"}]},{name:"jetpack/field-consent",attributes:{},innerBlocks:[{name:"jetpack/label"},{name:"jetpack/input",attributes:{type:"checkbox"}}]},{name:"core/button",attributes:{text:__("Subscribe","jetpack-forms"),tagName:"button",lock:{remove:!0}}}]}}].filter(Boolean)},83112(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(94715),a=o(27723),n=(o(70478),o(10790));const i=[["core/paragraph",{content:(0,a.__)("Drag and drop or click to select a file.","jetpack-forms")}]];function s(){const e=(0,r.useBlockProps)({className:"jetpack-form-file-field__dropzone"}),t=(0,r.useInnerBlocksProps)(e,{template:i});return(0,n.jsx)("div",{...t})}},34394(e,t,o){"use strict";o.d(t,{A:()=>c});var r=o(27723),a=o(5573),n=o(83112),i=o(78207),s=o(10790);const __=r.__,c={name:"dropzone",settings:{apiVersion:3,title:__("File upload dropzone","jetpack-forms"),description:__("A dropzone for file uploads.","jetpack-forms"),parent:["jetpack/field-file"],allowedBlocks:["core/button","core/heading","core/icon","core/image","core/list","core/paragraph","core/separator","core/spacer"],category:"contact-form",icon:{src:(0,s.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(a.Path,{d:"M3.5 16.5a.5.5 0 0 0 .5.5h1.333v1.5H4l-.204-.01a1.98 1.98 0 0 1-.16-.024l-.076-.018-.072-.016a1.998 1.998 0 0 1-.246-.082l-.008-.003v-.001a2.003 2.003 0 0 1-1.082-1.082l-.006-.017a1.993 1.993 0 0 1-.055-.155l-.022-.072a1.962 1.962 0 0 1-.024-.105c-.004-.02-.01-.04-.013-.061a1.972 1.972 0 0 1-.021-.15L2 16.5v-1.125h1.5V16.5Zm7.167 2H8V17h2.667v1.5Zm5.333 0h-2.667V17H16v1.5Zm6-2-.01.204c-.006.05-.013.1-.022.15-.006.033-.015.065-.023.098l-.011.052a2 2 0 0 1-1.296 1.39l-.017.004a1.93 1.93 0 0 1-.117.036l-.052.011c-.03.007-.061.015-.093.02-.05.01-.102.019-.155.024L20 18.5h-1.333V17H20a.5.5 0 0 0 .5-.5v-1.125H22V16.5ZM3.5 13.125H2v-2.25h1.5v2.25Zm18.5 0h-1.5v-2.25H22v2.25ZM5.333 7H4a.5.5 0 0 0-.5.5v1.125H2V7.5c0-.13.012-.259.036-.383.007-.036.017-.072.026-.107l.022-.085.019-.056a2.004 2.004 0 0 1 1.131-1.217l.011-.005.046-.016c.026-.01.051-.02.077-.028l.06-.02.035-.009a1.98 1.98 0 0 1 .333-.063L4 5.5h1.333V7Zm14.871-1.49c.05.006.098.013.146.021l.04.007c.018.003.034.009.051.013l.09.021a1.985 1.985 0 0 1 .16.053l.053.019.02.008A2 2 0 0 1 22 7.5v1.125h-1.5V7.5A.5.5 0 0 0 20 7h-1.333V5.5H20l.204.01ZM10.667 7H8V5.5h2.667V7ZM16 7h-2.667V5.5H16V7Z"})})},attributes:{style:{type:"object",default:{layout:{type:"flex",justifyContent:"center",orientation:"vertical"}}}},supports:{reusable:!1,html:!1,visibility:!1,layout:{type:"flex",allowSwitching:!1,allowInheriting:!1,allowJustification:!0,allowVerticalAlignment:!1,allowOrientation:!1,default:{type:"flex"}},color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:["top","bottom"],padding:!0},dimensions:{minHeight:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},align:["wide","full"]},edit:n.A,save:i.A}}},78207(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useBlockProps.save(),t=r.useInnerBlocksProps.save(e);return(0,a.jsx)("div",{...t})};o.dn(n)},17749(e,t,o){"use strict";o.d(t,{A:()=>m});var r=o(94715),a=o(56427),n=o(47143),i=o(86087),s=o(27723),c=o(5853),l=o(33932),d=o(54334),u=o(77930),p=o(11435),f=o(10790);const __=s.__;function m(e){const{setAttributes:t,attributes:o}=e,{defaultValue:s,required:m,width:b,className:g}=o,{__unstableMarkNextChangeAsNotPersistent:k}=(0,n.useDispatch)(r.store);(0,d.Ay)(e);const{blockStyle:h}=(0,u.A)(o),v=(0,r.useBlockProps)({className:"jetpack-field jetpack-field-checkbox",style:{...h}}),j=[["jetpack/option",{isStandalone:!0,placeholder:__("Add label…","jetpack-forms")}]],y=(0,r.useInnerBlocksProps)(v,{allowedBlocks:p.lJ,template:j,templateLock:"all"}),x=(0,i.useCallback)(e=>t({defaultValue:e?"true":""}),[t]),w=(0,i.useCallback)(()=>t({required:!m}),[t,m]),_=(0,i.useCallback)(e=>t({required:e}),[t]),C=(0,i.useCallback)(e=>t({shareFieldAttributes:e}),[t]),A=(0,i.useRef)(1);return(0,i.useEffect)(()=>{g||1!==A.current||(k(),t({className:"is-style-list"}),A.current=2)},[g,t,k]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{...y}),(0,f.jsx)(r.BlockControls,{__experimentalShareWithChildBlocks:!0,children:(0,f.jsx)(l.A,{required:m,onClick:w})}),(0,f.jsx)(r.InspectorControls,{children:(0,f.jsx)(a.PanelBody,{title:__("Checkbox settings","jetpack-forms"),className:"jetpack-contact-form__panel",children:(0,f.jsx)(a.ToggleControl,{label:__("Checked by default","jetpack-forms"),checked:!!s,onChange:x,__nextHasNoMarginBottom:!0})})}),(0,f.jsx)(r.InspectorControls,{children:(0,f.jsxs)(a.PanelBody,{title:__("Field settings","jetpack-forms"),className:"jetpack-contact-form__panel",children:[(0,f.jsx)(a.ToggleControl,{label:__("Field is required","jetpack-forms"),checked:m,onChange:_,help:__('You can edit the "required" label in the editor',"jetpack-forms"),__nextHasNoMarginBottom:!0}),(0,f.jsx)(c.A,{setAttributes:t,width:b}),(0,f.jsx)(a.ToggleControl,{label:__("Sync fields style","jetpack-forms"),checked:o.shareFieldAttributes,onChange:C,help:__("Deactivate for individual styling of this block","jetpack-forms"),__nextHasNoMarginBottom:!0})]})})]})}},86082(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790);const n={src:(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(r.Path,{fillRule:"evenodd",d:"M6.125 6H17.875C17.944 6 18 6.05596 18 6.125V17.875C18 17.944 17.944 18 17.875 18H6.125C6.05596 18 6 17.944 6 17.875V6.125C6 6.05596 6.05596 6 6.125 6ZM4.5 6.125C4.5 5.22754 5.22754 4.5 6.125 4.5H17.875C18.7725 4.5 19.5 5.22754 19.5 6.125V17.875C19.5 18.7725 18.7725 19.5 17.875 19.5H6.125C5.22754 19.5 4.5 18.7725 4.5 17.875V6.125ZM10.5171 16.4421L16.5897 8.71335L15.4103 7.78662L10.4828 14.0579L8.57616 11.7698L7.42383 12.7301L10.5171 16.4421Z"})})}},4174(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useInnerBlocksProps.save();return(0,a.jsx)("div",{...e})};o.dn(n)},12598(e,t,o){"use strict";o.d(t,{A:()=>g});var r=o(94715),a=o(74997),n=o(56427),i=o(29491),s=o(47143),c=o(86087),l=o(27723),d=o(5853),u=o(33932),p=o(54334),f=o(96839),m=o(10790);const __=l.__;function b(e){return(0,l.sprintf)(/* translators: %s a type of consent: implicit or explicit */
7 __("Add %s consent message…","jetpack-forms"),e)}function g(e){const{attributes:t,clientId:o,setAttributes:l}=e,{consentType:g,width:k,implicitConsentMessage:h,explicitConsentMessage:v,className:j,required:y}=t;(0,p.Ay)(e);const x=(0,r.useBlockProps)({className:"jetpack-field jetpack-field-consent"}),w=(0,c.useMemo)(()=>{const e=(0,a.getBlockType)("jetpack/consent"),t=e?.attributes||{};return{implicit:t.implicitConsentMessage?.default||"",explicit:t.explicitConsentMessage?.default||""}},[]),_=(0,c.useMemo)(()=>[["jetpack/option",{label:h,placeholder:b("implicit"),isStandalone:!0,hideInput:!0,required:"explicit"===g&&y}]],[h,y,g]),C=(0,r.useInnerBlocksProps)(x,{allowedBlocks:["jetpack/option"],template:_,templateLock:"all"}),A=(0,s.useSelect)(e=>e(r.store).getBlocks(o)[0],[o]),{clientId:S}=A??{},{updateBlockAttributes:B,__unstableMarkNextChangeAsNotPersistent:I}=(0,s.useDispatch)(r.store),N=(0,i.usePrevious)(g),M=(0,i.usePrevious)(A?.attributes?.label);(0,c.useEffect)(()=>{if(!S)return;const e="explicit"!==g,t=e?h:v,o=b(g);(A?.attributes?.hideInput!==e||g!==N)&&(I(),B(S,{label:t,placeholder:o,hideInput:e}))},[S,A?.attributes?.hideInput,g,N,v,h,B,I]),(0,c.useEffect)(()=>{if(!A?.attributes?.label||g!==N)return;const e=A.attributes.label,t=w[g];M&&e!==M&&e!==t&&(I(),l({["explicit"===g?"explicitConsentMessage":"implicitConsentMessage"]:e}))},[A?.attributes?.label,M,g,N,w,l,I]);const T=(0,c.useRef)(1);(0,c.useEffect)(()=>{j||1!==T.current||(I(),l({className:"is-style-list"}),T.current=2)},[j,l,I]);const P=(0,c.useCallback)(e=>{l({shareFieldAttributes:e})},[l]),E=(0,c.useCallback)(e=>{l({consentType:e,..."implicit"===e?{required:!1}:{}})},[l]);return(0,f.A)({clientId:o,blockName:"jetpack/field-sync",isSynced:t?.shareFieldAttributes,attributes:t,setAttributes:l}),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{...C}),(0,m.jsx)(r.BlockControls,{__experimentalShareWithChildBlocks:!0,children:(0,m.jsx)(u.A,{required:y,onClick:()=>l({required:!y}),disabled:"explicit"!==g,disabledTooltip:__("Implicit consent cannot be required. Please add a privacy checkbox from the block settings to make it required.","jetpack-forms")})}),(0,m.jsxs)(r.InspectorControls,{children:[(0,m.jsxs)(n.PanelBody,{title:__("Field settings","jetpack-forms"),className:"jetpack-contact-form__panel",children:[(0,m.jsx)(d.A,{setAttributes:l,width:k}),(0,m.jsx)(n.ToggleControl,{label:__("Sync fields style","jetpack-forms"),checked:t.shareFieldAttributes,onChange:P,help:__("Deactivate for individual styling of this block","jetpack-forms"),__nextHasNoMarginBottom:!0})]}),(0,m.jsx)(n.PanelBody,{title:__("Consent settings","jetpack-forms"),className:"jetpack-contact-form__panel",children:(0,m.jsx)(n.BaseControl,{__nextHasNoMarginBottom:!0,children:(0,m.jsx)(n.SelectControl,{label:__("Permission to email","jetpack-forms"),value:g,options:[{label:__("Mention that you can email","jetpack-forms"),value:"implicit"},{label:__("Add a privacy checkbox","jetpack-forms"),value:"explicit"}],onChange:E,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})})})]})]})}},43421(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790);const n={src:(0,a.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,a.jsx)(r.Path,{d:"M7 5.5H17C17.2761 5.5 17.5 5.72386 17.5 6V13H19V6C19 4.89543 18.1046 4 17 4H7C5.89543 4 5 4.89543 5 6V18C5 19.1046 5.89543 20 7 20H11.5V18.5H7C6.72386 18.5 6.5 18.2761 6.5 18V6C6.5 5.72386 6.72386 5.5 7 5.5ZM16 7.75H8V9.25H16V7.75ZM8 11H13V12.5H8V11Z"}),(0,a.jsx)(r.Path,{d:"M20.1087 15.9382L15.9826 21.6689L12.959 18.5194L14.0411 17.4806L15.8175 19.331L18.8914 15.0618L20.1087 15.9382Z"})]})}},31861(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useInnerBlocksProps.save();return(0,a.jsx)("div",{...e})};o.dn(n)},24928(e,t,o){"use strict";o.d(t,{A:()=>b});var r=o(94715),a=o(56427),n=o(86087),i=o(27723),s=o(13022),c=o(34611),l=o(28367),d=o(72704),u=o(54334),p=o(77930),f=o(11435),m=o(10790);const __=i.__;function b(e){const{attributes:t,clientId:o,isSelected:i,name:b,setAttributes:g}=e,{id:k,required:h,width:v,dateFormat:j}=t;(0,u.Ay)({attributes:t,clientId:o,name:b});const{blockStyle:y}=(0,p.A)(t),{isInnerBlockSelected:x,hasPlaceholder:w}=(0,d.A)(o),_=(0,r.useBlockProps)({className:(0,s.A)("jetpack-field",{"is-selected":i||x,"has-placeholder":w}),style:y}),C=(0,n.useMemo)(()=>[["jetpack/label",{label:__("Date","jetpack-forms"),required:h}],["jetpack/input"]],[h]),A=(0,r.useInnerBlocksProps)({className:"jetpack-field__control"},{allowedBlocks:f.lJ,template:C,templateLock:"all"}),S=(0,n.useCallback)(e=>{g({dateFormat:e})},[g]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("div",{..._,children:[(0,m.jsx)("div",{...A}),(0,m.jsx)(l.A,{attributes:t,setAttributes:g,isActive:i||x,isDateField:!0})]}),(0,m.jsx)(c.A,{id:k,required:h,width:v,setAttributes:g,attributes:t,type:"date",helpTextSupport:!0,extraFieldSettings:[{index:1,element:(0,m.jsx)(a.SelectControl,{label:__("Date Format","jetpack-forms"),options:f.kl,onChange:S,value:j,help:__("Select the format in which the date will be displayed.","jetpack-forms"),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0},"date-format")}]})]})}},235(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790);const n={src:(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(r.Path,{fillRule:"evenodd",d:"M4.5 7H19.5V19C19.5 19.2761 19.2761 19.5 19 19.5H5C4.72386 19.5 4.5 19.2761 4.5 19V7ZM3 5V7V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V7V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5ZM11 9.25H7V13.25H11V9.25Z"})})}},10023(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useInnerBlocksProps.save();return(0,a.jsx)("div",{...e})};o.dn(n)},56536(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(27723),a=o(14462),n=o(54334),i=o(10790);const __=r.__;function s(e){return(0,n.Ay)(e),(0,i.jsx)(a.A,{clientId:e.clientId,type:"email",label:__("Email","jetpack-forms"),required:e.attributes.required,requiredText:e.attributes.requiredText,requiredIndicator:e.attributes.requiredIndicator,setAttributes:e.setAttributes,isSelected:e.isSelected,defaultValue:e.attributes.defaultValue,placeholder:e.attributes.placeholder,id:e.attributes.id,width:e.attributes.width,attributes:e.attributes,insertBlocksAfter:e.insertBlocksAfter})}},73802(e,t,o){"use strict";o.d(t,{Ay:()=>u});var r=o(56427),a=o(27723),n=o(20071),i=o(23083),s=o(14228),c=o(56536),l=o(55919),d=o(10790);const __=a.__,u={name:"field-email",settings:{...i.A,title:__("Email field","jetpack-forms"),keywords:[__("e-mail","jetpack-forms"),__("mail","jetpack-forms"),"email"],description:__("Collect email addresses from your visitors.","jetpack-forms"),icon:{src:(0,d.jsx)(r.Icon,{icon:n.A})},edit:c.A,deprecated:s.A,save:l.A,example:{innerBlocks:[{name:"jetpack/label",attributes:{label:__("Email","jetpack-forms")}},{name:"jetpack/input",attributes:{type:"email"}}]}},form_editor:{category:"contact-info"},conditional_logic:{type:"string"}}},55919(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useInnerBlocksProps.save();return(0,a.jsx)("div",{...e})};o.dn(n)},69334(e,t,o){"use strict";o.d(t,{A:()=>h});var r=o(85985),a=o(94715),n=o(56427),i=o(47143),s=o(86087),c=o(27723),l=o(13022),d=o(34611),u=o(54503),p=o(54334),f=o(77930),m=o(76523),b=(o(70324),o(10790));const __=c.__,g=[],k=[["jetpack/label",{label:__("Upload a file","jetpack-forms"),lock:{move:!0,remove:!0}}],["jetpack/dropzone",{lock:{move:!0,remove:!0},layout:{type:"flex",justifyContent:"center",orientation:"vertical"}}]];function h(e){const{attributes:t,clientId:o,isSelected:c,setAttributes:h,name:v,className:j}=e,{id:y,required:x,width:w,maxfiles:_=1}=t,C=window.jpFormsBlocks?.defaults?.maxFilesLimit||10,A=(0,r.FB)("field-file");(0,p.Ay)({attributes:t,clientId:o,name:v});const{blockStyle:S}=(0,f.A)(t),B=(0,l.A)(j,"jetpack-field is-non-animated-label",{"is-selected":c,[`jetpack-field__width-${w}`]:w}),I=(0,a.useBlockProps)({className:B,style:S}),{children:N,...M}=(0,a.useInnerBlocksProps)(I,{template:k,allowedBlocks:g,renderAppender:!1}),T=(0,m.A)(o),P=(0,i.useSelect)(e=>{const{getSelectedBlockClientId:t}=e(a.store);return t()}),E=(0,m.A)(P),L=(0,s.useCallback)(e=>{const t=parseInt(e,10);Number.isNaN(t)||h({maxfiles:Math.min(Math.max(t,1),C)})},[h,C]),F=(0,s.useMemo)(()=>(!A||!A.available)&&A?.unavailableReason?.includes("nudge_disabled"),[A]);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{...M,children:[F&&(E===T||T===P)&&(0,b.jsx)(u.L,{requiredPlan:A?.details?.required_plan}),N]}),(0,b.jsx)(d.A,{id:y,required:x,setAttributes:h,width:w,attributes:t,hidePlaceholder:!0,extraFieldSettings:[{index:2,element:(0,b.jsx)(n.__experimentalNumberControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:__("Maximum files","jetpack-forms"),min:1,max:C,step:1,value:_,onChange:L,help:__("How many files a visitor may upload to this field.","jetpack-forms")},"maxfiles")}]})]})}},67104(e,t,o){"use strict";o.d(t,{Ay:()=>d});var r=o(56427),a=o(27723),n=o(58384),i=o(23083),s=o(69334),c=o(88597),l=o(10790);const __=a.__,d={name:"field-file",settings:{...i.A,attributes:{...i.A.attributes,maxfiles:{type:"number",default:1}},title:__("File upload field","jetpack-forms"),keywords:[__("File","jetpack-forms"),__("Upload","jetpack-forms"),__("Attachment","jetpack-forms"),__("Dropzone","jetpack-forms")],description:__("Allow visitors to upload files through your form.","jetpack-forms"),icon:{src:(0,l.jsx)(r.Icon,{icon:n.A})},edit:s.A,save:c.A,example:{innerBlocks:[{name:"jetpack/label",attributes:{label:__("File upload","jetpack-forms")}},{name:"jetpack/dropzone"}]}},form_editor:{category:"advanced"},conditional_logic:{type:"file"}}},88597(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useInnerBlocksProps.save();return(0,a.jsx)("div",{...e})};o.dn(n)},7740(e,t,o){"use strict";o.d(t,{A:()=>u});var r=o(94715),a=o(56427),n=o(27723),i=o(28755),s=o(90438),c=o(54334),l=o(97622),d=(o(2750),o(10790));const __=n.__;function u(e){const{attributes:t,setAttributes:o,clientId:n}=e,u=(0,r.useBlockProps)();(0,c.Ay)(e);const p=(0,l.A)(n,!0);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{...u,children:(0,d.jsx)(a.Placeholder,{icon:i.A,label:__("Hidden field","jetpack-forms"),children:(0,d.jsxs)(a.__experimentalHStack,{alignment:"top",className:"jetpack-form-hidden-field-inputs",children:[(0,d.jsx)(a.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,onChange:e=>{o({label:e})},label:__("Name","jetpack-forms"),value:t.label,help:__("Internal name used to identify this field in form responses.","jetpack-forms"),onKeyDown:p}),(0,d.jsx)(a.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,onChange:e=>{o({default:e})},label:__("Value","jetpack-forms"),value:t.default,help:__("The value that will be submitted with the form.","jetpack-forms"),onKeyDown:p})]})})}),(0,d.jsx)(s.A,{id:t.id,setAttributes:o})]})}},74602(e,t,o){"use strict";o.d(t,{A:()=>b});var r=o(94715),a=o(56427),n=o(3582),i=o(47143),s=o(86087),c=o(27723),l=o(13022),d=o(34611),u=o(10528),p=o(54334),f=o(77930),m=(o(1676),o(13210),o(10790));const __=c.__;function b(e){const{attributes:t,clientId:o,setAttributes:c,name:b}=e,{id:g,required:k,width:h}=t,{updateBlockAttributes:v}=(0,i.useDispatch)(r.store),{blockStyle:j}=(0,f.A)(t),{optionsBlock:y,imageOptionsInnerBlocks:x}=(0,i.useSelect)(e=>{const{getBlock:t}=e(r.store),a=t(o)?.innerBlocks.find(e=>"jetpack/fieldset-image-options"===e.name);return{optionsBlock:a,imageOptionsInnerBlocks:a?.innerBlocks?.[0]?.innerBlocks}},[o]),w=(0,s.useMemo)(()=>x?.filter(e=>void 0!==e.attributes?.id)?.map(e=>({clientId:e.clientId,mediaId:e.attributes.id}))??[],[x]);(0,i.useSelect)(e=>w.map(t=>e(n.store).getEntityRecord("postType","attachment",t.mediaId,{context:"view"})),[w]),(0,p.Ay)({attributes:t,clientId:o,name:b});const{addOption:_}=(0,u.A)(y?.clientId),C=(0,r.useBlockProps)({className:(0,l.A)("jetpack-field jetpack-field-image-select is-non-animated-label is-non-outlined-block"),style:j}),A=(0,s.useMemo)(()=>[["jetpack/label",{label:__("Choose one image","jetpack-forms"),required:k}],["jetpack/fieldset-image-options",{multiple:!1}]],[k]),S=(0,r.useInnerBlocksProps)({className:"jetpack-field-image-select__wrapper"},{allowedBlocks:["jetpack/label","jetpack/fieldset-image-options"],template:A,templateLock:"all"}),B=(0,s.useCallback)(e=>{c({isSupersized:e});const t=y?.innerBlocks;if(t&&t.length>0){const o=t.map(e=>e.innerBlocks[0]),r=e?"full":"medium";o.forEach(e=>{v(e.clientId,{sizeSlug:r});const t=(0,i.select)(n.store).getEntityRecord("postType","attachment",e.attributes.id,{context:"view"}),o=t?.media_details?.sizes?.[r]?.source_url;o&&v(e.clientId,{url:o})})}},[c,y?.innerBlocks,v]);return(0,m.jsxs)("div",{...C,children:[(0,m.jsx)("div",{...S}),(0,m.jsx)(r.BlockControls,{children:(0,m.jsx)(a.ToolbarGroup,{children:(0,m.jsx)(a.ToolbarButton,{onClick:()=>_(),children:__("Add choice","jetpack-forms")})})}),(0,m.jsx)(d.A,{id:g,required:k,attributes:t,setAttributes:c,width:h,extraFieldSettings:[{index:1,element:(0,m.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Show labels","jetpack-forms"),checked:t?.showLabels,onChange:e=>c({showLabels:e}),help:__("Displays the labels for the images in the published form. They are always visible for you in the editor and in the responses.","jetpack-forms")},"show-labels")},{index:2,element:(0,m.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Supersized","jetpack-forms"),checked:t?.isSupersized,onChange:e=>B(e),help:__("Changes the size of the images.","jetpack-forms")},"is-supersized")},{index:3,element:(0,m.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Multiple selection","jetpack-forms"),checked:t?.isMultiple,onChange:e=>c({isMultiple:e}),help:__("Allows visitors to select more than one image.","jetpack-forms")},"is-multiple")},{index:4,element:(0,m.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:__("Randomize","jetpack-forms"),checked:t?.randomizeOptions,onChange:e=>c({randomizeOptions:e}),help:__("Randomizes the order of the images in the published form to avoid order bias. This setting does not affect the order in the editor.","jetpack-forms")},"randomize-options")}]})]})}},50233(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790);const n={src:(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(r.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})})}},91912(e,t,o){"use strict";o.d(t,{Ay:()=>c});var r=o(27723),a=o(23083),n=o(74602),i=o(50233),s=o(6893);const __=r.__,c={name:"field-image-select",settings:{...a.A,title:__("Image Select Field","jetpack-forms"),keywords:[__("Image","jetpack-forms"),__("Image select","jetpack-forms"),__("Image select field","jetpack-forms")],description:__("Add a field that allows visitors to select images from a list of options.","jetpack-forms"),icon:i.A,edit:n.A,attributes:{...a.A.attributes,showLabels:{type:"boolean",default:!0},isSupersized:{type:"boolean",default:!1},isMultiple:{type:"boolean",default:!1},randomizeOptions:{type:"boolean",default:!1},showOtherOption:{type:"boolean",default:!1}},providesContext:{...a.A.providesContext,"jetpack/field-image-select-show-labels":"showLabels","jetpack/field-image-select-is-supersized":"isSupersized","jetpack/field-image-select-is-multiple":"isMultiple","jetpack/field-image-select-randomize-options":"randomizeOptions","jetpack/field-image-select-show-other-option":"showOtherOption"},save:s.A,example:{innerBlocks:[{name:"jetpack/label",attributes:{label:__("Image select","jetpack-forms")}},{name:"jetpack/fieldset-image-options",innerBlocks:[{name:"jetpack/input-image-option",innerBlocks:[{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg",scale:"cover",aspectRatio:"1"}}]},{name:"jetpack/input-image-option",innerBlocks:[{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg",scale:"cover",aspectRatio:"1"}}]}]}]}},form_editor:{category:"choice"}}},6893(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useBlockProps.save(),t=r.useInnerBlocksProps.save();return(0,a.jsx)("div",{...e,children:(0,a.jsx)("div",{...t})})};o.dn(n)},55463(e,t,o){"use strict";o.d(t,{A:()=>p});var r=o(94715),a=o(27723),n=o(43943),i=o(30162),s=o(71799),c=o(80611),l=o(10790);const __=a.__,d=(0,c.A)("checkbox"),u={attributes:{...n.A.attributes,label:{type:"string",default:__("Choose several options","jetpack-forms")}},supports:n.A.supports,migrate:(e,t)=>!t?.length&&e.options?.length?(0,s.A)(e,"checkbox"):(0,i.A)(e,t,"checkbox"),save:()=>(0,l.jsx)(r.InnerBlocks.Content,{})},p=[{...n.A,attributes:{...n.A.attributes,label:{type:"string",default:"Choose several options"}},isEligible:(e,t)=>2!==t.length||t.some(e=>"jetpack/label"!==e.name&&"jetpack/options"!==e.name),migrate:(e,t)=>(0,i.A)(e,t,"checkbox"),save:()=>(0,l.jsx)("div",{...r.useBlockProps.save(),children:(0,l.jsx)(r.InnerBlocks.Content,{})})},u,d]},78332(e,t,o){"use strict";o.d(t,{A:()=>d});var r=o(94715),a=o(47143),n=o(27723),i=o(13022),s=o(34611),c=o(54334),l=o(10790);const __=n.__;function d(e){const{className:t,clientId:o,setAttributes:n,isSelected:d,attributes:u}=e,{required:p,id:f,width:m}=u;(0,c.Ay)(e);const b=(0,a.useSelect)(e=>e(r.store).getBlock(o).innerBlocks,[o]),g=b?.[1]?.innerBlocks,k=(0,i.A)(t,"jetpack-field jetpack-field-multiple",{"is-selected":d,"has-placeholder":!!g?.length}),h=(0,r.useBlockProps)({className:k}),v=(0,r.useInnerBlocksProps)(h,{template:[["jetpack/label",{label:__("Choose several options","jetpack-forms"),placeholder:__("Add label…","jetpack-forms")}],["jetpack/options",{type:"checkbox"}]],templateLock:"all"});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{...v}),(0,l.jsx)(s.A,{clientId:o,id:f,required:p,attributes:u,setAttributes:n,type:"checkbox",width:m,hidePlaceholder:!0})]})}},15887(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790);const n={src:(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(r.Path,{d:"M7.0812 10.1419L10.6001 5.45005L9.40006 4.55005L6.91891 7.85824L5.53039 6.46972L4.46973 7.53038L7.0812 10.1419ZM12 8.5H20V7H12V8.5ZM12 17H20V15.5H12V17ZM8.5 14.5H5.5V17.5H8.5V14.5ZM5.5 13H8.5C9.32843 13 10 13.6716 10 14.5V17.5C10 18.3284 9.32843 19 8.5 19H5.5C4.67157 19 4 18.3284 4 17.5V14.5C4 13.6716 4.67157 13 5.5 13Z"})})}},51483(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useInnerBlocksProps.save();return(0,a.jsx)("div",{...e})};o.dn(n)},175(e,t,o){"use strict";o.d(t,{A:()=>d});var r=o(86087),a=o(27723),n=o(14462),i=o(54334),s=o(90097),c=o(24320),l=o(10790);const __=a.__;function d(e){const{clientId:t,attributes:o,setAttributes:a}=e,{id:d,fieldVariant:u}=o||{};return(0,i.Ay)(e),(0,r.useEffect)(()=>{if(u)return;let e=c.uD;(0,c.Yq)(d)?e=c.XU:(0,c.QO)(d)&&(e=c.p1),a({fieldVariant:e})},[u,d,a]),(0,s.A)({clientId:t,fieldVariant:u}),(0,l.jsx)(n.A,{clientId:e.clientId,type:"text",label:__("Name","jetpack-forms"),required:e.attributes.required,requiredText:e.attributes.requiredText,requiredIndicator:e.attributes.requiredIndicator,setAttributes:e.setAttributes,isSelected:e.isSelected,defaultValue:e.attributes.defaultValue,placeholder:e.attributes.placeholder,id:e.attributes.id,width:e.attributes.width,attributes:e.attributes,insertBlocksAfter:e.insertBlocksAfter})}},43688(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790);const n={src:(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(r.Path,{d:"M8.25 11.5C9.63071 11.5 10.75 10.3807 10.75 9C10.75 7.61929 9.63071 6.5 8.25 6.5C6.86929 6.5 5.75 7.61929 5.75 9C5.75 10.3807 6.86929 11.5 8.25 11.5ZM8.25 10C8.80228 10 9.25 9.55228 9.25 9C9.25 8.44772 8.80228 8 8.25 8C7.69772 8 7.25 8.44772 7.25 9C7.25 9.55228 7.69772 10 8.25 10ZM13 15.5V17.5H11.5V15.5C11.5 14.8096 10.9404 14.25 10.25 14.25H6.25C5.55964 14.25 5 14.8096 5 15.5V17.5H3.5V15.5C3.5 13.9812 4.73122 12.75 6.25 12.75H10.25C11.7688 12.75 13 13.9812 13 15.5ZM20.5 11H14.5V9.5H20.5V11ZM20.5 14.5H14.5V13H20.5V14.5Z"})})}},88664(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useInnerBlocksProps.save();return(0,a.jsx)("div",{...e})};o.dn(n)},80773(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(27723),a=o(14462),n=o(54334),i=o(10790);const __=r.__;function s(e){return(0,n.Ay)(e),(0,i.jsx)(a.A,{clientId:e.clientId,type:"number",label:__("Number","jetpack-forms"),required:e.attributes.required,requiredText:e.attributes.requiredText,requiredIndicator:e.attributes.requiredIndicator,setAttributes:e.setAttributes,isSelected:e.isSelected,defaultValue:e.attributes.defaultValue,placeholder:e.attributes.placeholder,id:e.attributes.id,width:e.attributes.width,attributes:e.attributes,insertBlocksAfter:e.insertBlocksAfter})}},92850(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790);const n={src:(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(r.Path,{d:"M12 7H4V8.5H12V7ZM19.75 17.25V10.75H4.25V17.25H19.75ZM5.75 15.75V12.25H18.25V15.75H5.75Z"})})}},93982(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useInnerBlocksProps.save();return(0,a.jsx)("div",{...e})};o.dn(n)},5993(e,t,o){"use strict";o.d(t,{A:()=>u});var r=o(94715),a=o(56427),n=o(86087),i=o(27723),s=o(34611),c=o(54334),l=o(20402),d=o(10790);const __=i.__;function u(e){const{attributes:t,setAttributes:o,clientId:u}=e,{max:p=5,default:f=0,required:m,id:b,width:g}=t;(0,c.Ay)(e);const k=(0,n.useCallback)(e=>{const t=Math.min(Math.max(parseInt(e)||0,0),p);o({default:t})},[p,o]),h=(0,r.useBlockProps)({className:"jetpack-field jetpack-field-rating"+(g?` jetpack-field__width-${g}`:"")}),v=(0,r.useInnerBlocksProps)(h,{allowedBlocks:["jetpack/label","jetpack/input-rating"],template:[["jetpack/label",{label:__("Rating","jetpack-forms"),placeholder:__("Add label…","jetpack-forms")}],["jetpack/input-rating",{}]],templateLock:"all",__experimentalCaptureToolbars:!0});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(r.BlockContextProvider,{value:{"jetpack/field-rating-max":p,"jetpack/field-rating-default":f,"jetpack/field-rating-iconStyle":t.iconStyle||"stars","jetpack/field-rating-onChangeDefault":k},children:(0,d.jsx)("div",{...v})}),(0,d.jsx)(s.A,{clientId:u,id:b,required:m,attributes:t,setAttributes:o,width:g,extraFieldSettings:[{index:1,element:(0,d.jsxs)("div",{children:[(0,d.jsx)(a.__experimentalNumberControl,{__next40pxDefaultSize:!0,__unstableInputWidth:"50%",help:(0,i.sprintf)(/* translators: %d: maximum rating value (e.g. 10) */
8 __("Highest rating users can select (2–%d).","jetpack-forms"),l.Ao),label:__("Maximum rating","jetpack-forms"),max:l.Ao,min:2,onChange:e=>{const t=Math.min(Math.max(parseInt(e)||5,2),l.Ao),r=Math.min(f,t);o({max:t,default:r})},spinControls:"custom",value:p}),(0,d.jsx)(a.RangeControl,{label:__("Default rating","jetpack-forms"),help:__("Pre-selected rating value (0 for no selection)","jetpack-forms"),min:0,max:p,value:f,onChange:k})]},"ratingFieldControls")}]})]})}},51918(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790);const n={src:(0,a.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,a.jsx)(r.Path,{d:"M4.90821 9.05978C4.91669 9.04183 4.92977 9.02672 4.94599 9.01616C4.96221 9.0056 4.98091 9 5 9C5.01909 9 5.03779 9.0056 5.05401 9.01616C5.07023 9.02672 5.08331 9.04183 5.09179 9.05978L5.93962 10.8628C5.94695 10.8785 5.95779 10.892 5.97121 10.9023C5.98463 10.9125 6.00023 10.9192 6.01666 10.9217L7.91228 11.2108C7.93118 11.2137 7.94893 11.222 7.96354 11.2349C7.97814 11.2478 7.98902 11.2648 7.99495 11.2838C8.00087 11.3029 8.0016 11.3233 7.99706 11.3428C7.99252 11.3622 7.98288 11.38 7.96924 11.394L6.59731 12.7975C6.58536 12.8097 6.57643 12.8247 6.57129 12.8414C6.56615 12.858 6.56495 12.8757 6.5678 12.893L6.89153 14.8745C6.89467 14.8942 6.89251 14.9144 6.8853 14.9329C6.87809 14.9514 6.86611 14.9675 6.8507 14.9792C6.8353 14.991 6.81707 14.998 6.79808 14.9995C6.77909 15.0009 6.76008 14.9968 6.74319 14.9876L5.04753 14.0521C5.03287 14.044 5.01656 14.0398 5 14.0398C4.98344 14.0398 4.96713 14.044 4.95247 14.0521L3.25681 14.9876C3.23991 14.997 3.22085 15.0012 3.20179 14.9997C3.18273 14.9983 3.16443 14.9913 3.14896 14.9795C3.13348 14.9678 3.12145 14.9517 3.11423 14.9331C3.107 14.9146 3.10487 14.8943 3.10806 14.8745L3.43178 12.893C3.43469 12.8758 3.43356 12.8581 3.42849 12.8414C3.42342 12.8248 3.41456 12.8097 3.40269 12.7975L2.03076 11.394C2.01712 11.38 2.00748 11.3622 2.00294 11.3428C1.9984 11.3233 1.99913 11.3029 2.00505 11.2838C2.01098 11.2648 2.02185 11.2478 2.03646 11.2349C2.05107 11.222 2.06882 11.2137 2.08772 11.2108L3.98334 10.9217C3.99977 10.9192 4.01537 10.9125 4.02879 10.9023C4.04221 10.892 4.05305 10.8785 4.06038 10.8628L4.90821 9.05978Z"}),(0,a.jsx)(r.Path,{d:"M11.9082 9.05978C11.9167 9.04183 11.9298 9.02672 11.946 9.01616C11.9622 9.0056 11.9809 9 12 9C12.0191 9 12.0378 9.0056 12.054 9.01616C12.0702 9.02672 12.0833 9.04183 12.0918 9.05978L12.9396 10.8628C12.9469 10.8785 12.9578 10.892 12.9712 10.9023C12.9846 10.9125 13.0002 10.9192 13.0167 10.9217L14.9123 11.2108C14.9312 11.2137 14.9489 11.222 14.9635 11.2349C14.9781 11.2478 14.989 11.2648 14.9949 11.2838C15.0009 11.3029 15.0016 11.3233 14.9971 11.3428C14.9925 11.3622 14.9829 11.38 14.9692 11.394L13.5973 12.7975C13.5854 12.8097 13.5764 12.8247 13.5713 12.8414C13.5661 12.858 13.565 12.8757 13.5678 12.893L13.8915 14.8745C13.8947 14.8942 13.8925 14.9144 13.8853 14.9329C13.8781 14.9514 13.8661 14.9675 13.8507 14.9792C13.8353 14.991 13.8171 14.998 13.7981 14.9995C13.7791 15.0009 13.7601 14.9968 13.7432 14.9876L12.0475 14.0521C12.0329 14.044 12.0166 14.0398 12 14.0398C11.9834 14.0398 11.9671 14.044 11.9525 14.0521L10.2568 14.9876C10.2399 14.997 10.2208 15.0012 10.2018 14.9997C10.1827 14.9983 10.1644 14.9913 10.149 14.9795C10.1335 14.9678 10.1215 14.9517 10.1142 14.9331C10.107 14.9146 10.1049 14.8943 10.1081 14.8745L10.4318 12.893C10.4347 12.8758 10.4336 12.8581 10.4285 12.8414C10.4234 12.8248 10.4146 12.8097 10.4027 12.7975L9.03076 11.394C9.01712 11.38 9.00748 11.3622 9.00294 11.3428C8.9984 11.3233 8.99913 11.3029 9.00505 11.2838C9.01098 11.2648 9.02185 11.2478 9.03646 11.2349C9.05107 11.222 9.06882 11.2137 9.08772 11.2108L10.9833 10.9217C10.9998 10.9192 11.0154 10.9125 11.0288 10.9023C11.0422 10.892 11.0531 10.8785 11.0604 10.8628L11.9082 9.05978Z"}),(0,a.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.0605 10.8627C18.0532 10.8784 18.0423 10.8919 18.0289 10.9022C18.0155 10.9125 17.9999 10.9191 17.9835 10.9217L16.0881 11.2107C16.0691 11.2135 16.0513 11.2219 16.0366 11.2348C16.0219 11.2477 16.011 11.2647 16.005 11.2839C15.9991 11.303 15.9984 11.3235 16.003 11.343C16.0076 11.3626 16.0174 11.3803 16.0311 11.3943L17.4029 12.7973C17.4148 12.8095 17.4238 12.8246 17.4289 12.8412C17.434 12.8579 17.4352 12.8756 17.4324 12.8928L17.1087 14.8743C17.1055 14.894 17.1076 14.9143 17.1147 14.9329C17.1219 14.9515 17.1339 14.9675 17.1493 14.9794C17.1647 14.9912 17.183 14.9982 17.202 14.9997C17.221 15.0012 17.2401 14.9971 17.257 14.9878L18.9525 14.0519C18.9672 14.0438 18.9836 14.0395 19.0002 14.0395C19.0168 14.0395 19.0332 14.0438 19.0479 14.0519L20.743 14.9874C20.7599 14.9967 20.7789 15.0009 20.798 14.9995C20.817 14.9981 20.8353 14.9911 20.8508 14.9793C20.8663 14.9676 20.8783 14.9515 20.8855 14.9329C20.8928 14.9144 20.8949 14.894 20.8917 14.8743L20.568 12.8928C20.5652 12.8756 20.5664 12.8579 20.5715 12.8412C20.5766 12.8246 20.5856 12.8095 20.5975 12.7973L21.9689 11.3943C21.9826 11.3803 21.9924 11.3626 21.997 11.343C22.0016 11.3235 22.0009 11.303 21.995 11.2839C21.989 11.2647 21.9781 11.2477 21.9634 11.2348C21.9487 11.2219 21.9309 11.2135 21.9119 11.2107L20.0165 10.9217C20.0001 10.9191 19.9845 10.9125 19.9711 10.9022C19.9577 10.8919 19.9468 10.8784 19.9395 10.8627L19.0918 9.05978C19.0833 9.04183 19.0702 9.02672 19.054 9.01616C19.0378 9.0056 19.0191 9 19 9C18.9809 9 18.9622 9.0056 18.946 9.01616C18.9298 9.02672 18.9167 9.04183 18.9082 9.05978L18.0605 10.8627ZM19.0004 10.3225L18.612 11.1488C18.5605 11.2581 18.4846 11.3527 18.3906 11.4244C18.2966 11.4961 18.1874 11.5428 18.0724 11.5604L17.2038 11.6928L17.8323 12.3358C18.0011 12.5087 18.0781 12.7582 18.0384 13.0025L17.8901 13.91L18.6669 13.4812C18.7698 13.4244 18.8843 13.3947 19.0006 13.3947C19.1169 13.3947 19.2314 13.4244 19.3343 13.4812L20.1108 13.91L19.9624 13.0025C19.9428 12.8821 19.9513 12.7585 19.9873 12.6424C20.0232 12.5262 20.0856 12.421 20.1689 12.3358L20.7971 11.6928L19.9284 11.5604C19.8135 11.5428 19.7043 11.4961 19.6103 11.4244C19.5163 11.3527 19.4403 11.2581 19.3888 11.1488L19.0004 10.3225Z"})]})}},43854(e,t,o){"use strict";o.d(t,{H:()=>i});var r=o(5573),a=o(20402),n=o(10790);const i=({iconStyle:e,strokeColor:t="currentColor",fillColor:o="none",strokeWidth:i=2})=>{const s=a.Tz[e]||a.Tz.stars;return(0,n.jsx)(r.SVG,{className:"jetpack-field-rating__icon",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,n.jsx)(r.Path,{d:s,fill:o,stroke:t,strokeWidth:i,strokeLinejoin:"round"})})}},86922(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);function n(){const e=r.useInnerBlocksProps.save();return(0,a.jsx)("div",{...e})}},7407(e,t,o){"use strict";o.d(t,{A:()=>c});var r=o(27723),a=o(5573),n=o(20402),i=o(10790);const __=r.__;function s(e){const t=n.Tz[e]||n.Tz.stars;return(0,i.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(a.Path,{d:t,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"})})}const c=[{name:"stars",title:__("Stars rating field","jetpack-forms"),description:__("Rating field with star icons.","jetpack-forms"),icon:{src:s("stars")},attributes:{iconStyle:"stars"},isActive:["iconStyle"],scope:["inserter","transform"],isDefault:!0},{name:"hearts",title:__("Hearts rating field","jetpack-forms"),description:__("Rating field with heart icons.","jetpack-forms"),icon:{src:s("hearts")},attributes:{iconStyle:"hearts"},isActive:["iconStyle"],scope:["inserter","transform"],isDefault:!1}]},92652(e,t,o){"use strict";o.d(t,{A:()=>v});var r=o(94715),a=o(56427),n=o(47143),i=o(86087),s=o(27723),c=o(51489),l=o(13022),d=o(34611),u=o(28367),p=o(54334),f=o(77930),m=o(89125),b=o(11435),g=o(42211),k=o(10790);const __=s.__,h=()=>{};function v(e){const{attributes:t,clientId:o,isSelected:s,name:v,setAttributes:j}=e,{id:y,options:x,required:w,width:_}=t,{blockStyle:C}=(0,f.A)(t),{isInnerBlockSelected:A,inputBlockAttributes:S}=(0,n.useSelect)(e=>{const{getBlock:t,hasSelectedInnerBlock:a}=e(r.store);return{isInnerBlockSelected:a(o,!0),inputBlockAttributes:t(o).innerBlocks[1]?.attributes}},[o]),B=(0,r.useBlockProps)({className:(0,l.A)("jetpack-field jetpack-field-dropdown",{"is-selected":s||A,"has-placeholder":!!S?.placeholder}),style:C}),I=(0,i.useRef)(void 0);(0,p.Ay)({attributes:t,clientId:o,name:v});const N=(0,i.useMemo)(()=>[["jetpack/label",{required:w}],["jetpack/input",{type:"dropdown",placeholder:__("Select one option","jetpack-forms")}]],[w]),M=(0,r.useInnerBlocksProps)({className:"jetpack-field__control jetpack-field-dropdown__wrapper"},{allowedBlocks:b.lJ,template:N,templateLock:"all"}),T=(e,t)=>(0,g.A)(I.current,"[role=textbox]",e,t),P=(e,o)=>{const r=[...t.options],a=""!==o[o.length-1];r[e]&&(r[e]=o.shift(),e++),r.splice(e,0,...o),j({options:r}),T(e+o.length-1,a)},E=e=>t=>{const o=(t||"").split("\n").filter(e=>e&&""!==e.trim());o.length&&(o.length>1?P(e,o):((e,t)=>{const o=[...x];o[e]=t,j({options:o}),T(e)})(e,o.pop()))},L=e=>o=>{if("Enter"!==o.key)return;o.preventDefault();const r=t.options[e];if(!r)return;const a=(0,m.J)(o.target),n=a?r.slice(a):"";P(e,n?[r.slice(0,a),n]:[r,""])},F=e=>()=>{if(1===t.options.length)return;const o=[...t.options];o.splice(e,1),0!==o.length&&0!==o.filter(e=>e).length&&(j({options:o}),T(Math.max(e-1,0),!0))};return(0,k.jsxs)("div",{...B,children:[(0,k.jsx)("div",{...M}),(0,k.jsx)(u.A,{attributes:t,setAttributes:j,isActive:s||A}),(s||A)&&(0,k.jsx)("div",{ref:I,className:"jetpack-field-dropdown__popover",children:x.map((e,t)=>(0,k.jsxs)(a.Flex,{className:"jetpack-field-dropdown__option",children:[(0,k.jsx)(a.FlexItem,{isBlock:!0,children:(0,k.jsx)(r.RichText,{value:e,onChange:E(t),onKeyDown:L(t),onRemove:F(t),onReplace:h,placeholder:__("Add option…","jetpack-forms"),__unstableDisableFormats:!0})}),(0,k.jsx)(a.FlexItem,{children:(x.filter(e=>e).length>1||""===e)&&(0,k.jsx)(a.Button,{className:"jetpack-field-dropdown__option-remove",label:__("Remove","jetpack-forms"),onClick:F(t),children:(0,k.jsx)(a.Icon,{icon:c.A})})})]},t))}),(0,k.jsx)(d.A,{id:y,required:w,attributes:t,setAttributes:j,width:_,type:"dropdown",helpTextSupport:!0})]})}},6559(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790);const n={src:(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(r.Path,{d:"M5 4.5H19C19.2761 4.5 19.5 4.72386 19.5 5V19C19.5 19.2761 19.2761 19.5 19 19.5H5C4.72386 19.5 4.5 19.2761 4.5 19V5C4.5 4.72386 4.72386 4.5 5 4.5ZM19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3ZM8.93582 10.1396L8.06396 11.3602L11.9999 14.1716L15.9358 11.3602L15.064 10.1396L11.9999 12.3283L8.93582 10.1396Z"})})}},86347(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useInnerBlocksProps.save();return(0,a.jsx)("div",{...e})};o.dn(n)},79219(e,t,o){"use strict";o.d(t,{A:()=>p});var r=o(94715),a=o(27723),n=o(43943),i=o(30162),s=o(71799),c=o(80611),l=o(10790);const __=a.__,d=(0,c.A)("radio"),u={attributes:{...n.A.attributes,label:{type:"string",default:__("Choose one option","jetpack-forms")}},supports:n.A.supports,migrate:(e,t)=>!t?.length&&e.options?.length?(0,s.A)(e,"checkbox"):(0,i.A)(e,t,"radio"),save:()=>(0,l.jsx)(r.InnerBlocks.Content,{})},p=[{...n.A,attributes:{...n.A.attributes,label:{type:"string",default:"Choose one option"}},isEligible:(e,t)=>2!==t.length||t.some(e=>"jetpack/label"!==e.name&&"jetpack/options"!==e.name),migrate:(e,t)=>(0,i.A)(e,t,"radio"),save:()=>(0,l.jsx)("div",{...r.useBlockProps.save(),children:(0,l.jsx)(r.InnerBlocks.Content,{})})},u,d]},60288(e,t,o){"use strict";o.d(t,{A:()=>p});var r=o(94715),a=o(74997),n=o(56427),i=o(47143),s=o(27723),c=o(13022),l=o(34611),d=o(54334),u=o(10790);const __=s.__;function p(e){const{className:t,clientId:o,setAttributes:s,isSelected:p,attributes:f}=e,{required:m,id:b,width:g}=f;(0,d.Ay)(e);const k=(0,i.useSelect)(e=>e(r.store).getBlock(o).innerBlocks,[o]),{insertBlock:h,removeBlock:v}=(0,i.useDispatch)(r.store),j=k?.[1]?.innerBlocks,y=(0,c.A)(t,"jetpack-field jetpack-field-multiple",{"is-selected":p,"has-placeholder":!!j?.length}),x=(0,r.useBlockProps)({className:y}),w=(0,r.useInnerBlocksProps)(x,{template:[["jetpack/label",{label:__("Choose one option","jetpack-forms"),placeholder:__("Add label…","jetpack-forms")}],["jetpack/options",{type:"radio"}]],templateLock:"all"}),_=(0,i.useSelect)(e=>{const t=e(r.store).getBlock(o),a=t?.innerBlocks?.[1];return a?.innerBlocks?.some(e=>!0===e?.attributes?.isOther)??!1},[o]),C=[{element:(0,u.jsx)(n.ToggleControl,{label:__('Include "Other" option',"jetpack-forms"),checked:!!_,onChange:e=>{const t=k?.[1];if(t)if(e){const e=(0,a.createBlock)("jetpack/option",{label:__("Other","jetpack-forms"),isOther:!0});h(e,t.innerBlocks.length,t.clientId,!1)}else t.innerBlocks.forEach(e=>{e?.attributes?.isOther&&v(e.clientId,!1)})},help:__('Include an "Other" option with a text input field below it',"jetpack-forms"),__nextHasNoMarginBottom:!0}),index:2}];return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{...w}),(0,u.jsx)(l.A,{clientId:o,id:b,required:m,attributes:f,setAttributes:s,type:"radio",width:g,hidePlaceholder:!0,extraFieldSettings:C})]})}},44907(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790);const n={src:(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(r.Path,{d:"M4 7.75C4 9.40685 5.34315 10.75 7 10.75C8.65685 10.75 10 9.40685 10 7.75C10 6.09315 8.65685 4.75 7 4.75C5.34315 4.75 4 6.09315 4 7.75ZM20 8.5H12V7H20V8.5ZM20 17H12V15.5H20V17ZM7 17.75C6.17157 17.75 5.5 17.0784 5.5 16.25C5.5 15.4216 6.17157 14.75 7 14.75C7.82843 14.75 8.5 15.4216 8.5 16.25C8.5 17.0784 7.82843 17.75 7 17.75ZM4 16.25C4 17.9069 5.34315 19.25 7 19.25C8.65685 19.25 10 17.9069 10 16.25C10 14.5931 8.65685 13.25 7 13.25C5.34315 13.25 4 14.5931 4 16.25Z"})})}},89671(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useInnerBlocksProps.save();return(0,a.jsx)("div",{...e})};o.dn(n)},97077(e,t,o){"use strict";o.d(t,{A:()=>p});var r=o(94715),a=o(56427),n=o(86087),i=o(27723),s=o(34611),c=o(28367),l=o(72704),d=o(54334),u=(o(85253),o(10790));const __=i.__;function p(e){(0,d.Ay)(e);const{attributes:t,clientId:o,isSelected:i,setAttributes:p}=e,{isInnerBlockSelected:f}=(0,l.A)(o),{min:m=0,max:b=100,default:g=0,step:k=1,width:h,id:v,required:j,minLabel:y="",maxLabel:x=""}=t,[w,_]=(0,n.useState)(String(g)),[C,A]=(0,n.useState)(!1);(0,n.useEffect)(()=>{C||_(String(g))},[g,C]);const S=(0,n.useCallback)((e,t,o=m)=>{const r=Math.min(Math.max(e,o),b);return o+Math.round((r-o)/t)*t},[m,b]),B=(0,n.useCallback)(e=>{const t=parseInt(e)||0,o=Math.min(t,b),r=Math.max(g,o),a=S(r,k,o);p({min:o,default:a})},[b,g,k,p,S]),I=(0,n.useCallback)(e=>{const t=parseInt(e)||0,o=Math.max(t,m),r=Math.min(g,o);p({max:o,default:r})},[m,g,p]),N=(0,n.useCallback)(e=>{const t=S(e,k);p({default:t}),_(String(t))},[S,k,p]),M=(0,n.useCallback)(e=>{const t=e>0?e:1,o=S(g,t);p({step:t,default:o})},[g,p,S]),T=(0,n.useCallback)(e=>{p({minLabel:e})},[p]),P=(0,n.useCallback)(e=>{p({maxLabel:e})},[p]);(0,n.useEffect)(()=>{void 0!==t.min&&void 0!==t.max&&void 0!==t.default&&void 0!==t.step||p({min:t.min??0,max:t.max??100,default:t.default??0,step:t.step??1})},[t.min,t.max,t.default,t.step,p]);const E=(0,r.useBlockProps)({className:"jetpack-field jetpack-field-slider"+(h?` jetpack-field__width-${h}`:"")}),L=(0,r.useInnerBlocksProps)({className:"jetpack-field__control"},{allowedBlocks:["jetpack/label","jetpack/input-range"],template:[["jetpack/label",{label:__("Slider","jetpack-forms"),placeholder:__("Add label…","jetpack-forms")}],["jetpack/input-range",{}]],templateLock:"all"});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(r.BlockContextProvider,{value:{"jetpack/field-slider-onChangeDefault":N,"jetpack/field-slider-onChangeMin":B,"jetpack/field-slider-onChangeMax":I,"jetpack/field-slider-minLabel":y,"jetpack/field-slider-maxLabel":x,"jetpack/field-slider-onChangeMinLabel":T,"jetpack/field-slider-onChangeMaxLabel":P},children:(0,u.jsxs)("div",{...E,children:[(0,u.jsx)("div",{...L}),(0,u.jsx)(c.A,{attributes:t,setAttributes:p,isActive:i||f})]})}),(0,u.jsx)(s.A,{attributes:t,id:v,required:j,setAttributes:p,width:h,helpTextSupport:!0,extraFieldSettings:[{index:2,element:(0,u.jsxs)(a.BaseControl,{__nextHasNoMarginBottom:!0,children:[(0,u.jsxs)(a.__experimentalHStack,{alignment:"top",className:"jp-field-slider-inspector-row",children:[(0,u.jsx)(a.__experimentalNumberControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:__("Min value","jetpack-forms"),max:b,min:Number.MIN_SAFE_INTEGER,onChange:B,value:m,spinControls:"custom"}),(0,u.jsx)(a.__experimentalNumberControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:__("Max value","jetpack-forms"),max:Number.MAX_SAFE_INTEGER,min:m,onChange:I,value:b,spinControls:"custom"})]}),(0,u.jsxs)(a.__experimentalHStack,{alignment:"top",className:"jp-field-slider-inspector-row",children:[(0,u.jsx)(a.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:__("Min label","jetpack-forms"),value:y,onChange:T}),(0,u.jsx)(a.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:__("Max label","jetpack-forms"),value:x,onChange:P})]}),(0,u.jsxs)(a.__experimentalHStack,{alignment:"top",className:"jp-field-slider-inspector-row",children:[(0,u.jsx)(a.__experimentalNumberControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:__("Default value","jetpack-forms"),min:m,max:b,value:w,onChange:e=>{_(e);const t=S(e,k);p({default:t})},onFocus:()=>A(!0),onBlur:()=>A(!1),spinControls:"custom",step:k||1}),(0,u.jsx)(a.__experimentalNumberControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:__("Increment","jetpack-forms"),min:0,step:1,value:k,onChange:M,spinControls:"custom"})]})]},"sliderFieldControls")}]})]})}},63677(e,t,o){"use strict";o.d(t,{Ay:()=>l});var r=o(27723),a=o(79822),n=o(23083),i=o(97077),s=o(94894),c=o(10790);const __=r.__,l={name:"field-slider",settings:{...n.A,title:__("Slider field","jetpack-forms"),description:__("Collect a value from site visitors using a slider field.","jetpack-forms"),icon:{src:(0,c.jsx)(a.A,{})},attributes:{...n.A.attributes,min:{type:"number",default:0},max:{type:"number",default:100},default:{type:"number",default:0},step:{type:"number",default:1},minLabel:{type:"string",default:""},maxLabel:{type:"string",default:""}},edit:i.A,save:s.A,supports:{...n.A.supports,interactivity:!0},providesContext:{...n.A.providesContext,"jetpack/field-slider-min":"min","jetpack/field-slider-max":"max","jetpack/field-slider-default":"default","jetpack/field-slider-step":"step","jetpack/field-slider-minLabel":"minLabel","jetpack/field-slider-maxLabel":"maxLabel"},example:{attributes:{min:0,max:100,default:0,step:1},innerBlocks:[{name:"jetpack/label",attributes:{label:__("Slider","jetpack-forms")}},{name:"jetpack/input-range",attributes:{}}]}},form_editor:{category:"advanced"},conditional_logic:{type:"number"}}},94894(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useInnerBlocksProps.save();return(0,a.jsx)("div",{...e})};o.dn(n)},84444(e,t,o){"use strict";o.d(t,{A:()=>j});var r=o(94715),a=o(56427),n=o(47143),i=o(86087),s=o(27723),c=o(41490),l=o(13022),d=o(15297),u=o(34611),p=o(28367),f=o(72704),m=o(54334),b=o(77930),g=o(96839),k=o(53512),h=o(10790);const __=s.__,v=[];function j(e){const{setAttributes:t,attributes:o,clientId:s,isSelected:j}=e,{showCountrySelector:y,width:x,id:w,required:_,requiredText:C,placeholder:A,searchPlaceholder:S,default:B,requiredIndicator:I}=o,[N,M]=(0,i.useState)(v),{__unstableMarkNextChangeAsNotPersistent:T}=(0,n.useDispatch)("core/block-editor"),{isInnerBlockSelected:P,hasPlaceholder:E}=(0,f.A)(s),{blockStyle:L}=(0,b.A)(o),F=(0,r.useBlockProps)({className:(0,l.A)("jetpack-field","jetpack-field-phone","jetpack-field-telephone",{[`jetpack-field__width-${x}`]:x,"is-selected":j||P,"has-placeholder":E}),style:L});(0,m.Ay)(e);const R=(0,i.useMemo)(()=>k.X.map(e=>({...e,country:(0,d.k)(e.code)})),[]),V=e=>{(e=>!0===e||!1===e)(e)||(e=!y),t({showCountrySelector:e}),M(e?R:v)};(0,i.useEffect)(()=>{void 0!==y&&!0!==y||(T(),t({showCountrySelector:!0,default:B||"US"}),M(R))},[y,t,R,B,T]);const H=(0,r.useInnerBlocksProps)({className:"jetpack-field__control"},{allowedBlocks:["jetpack/label","jetpack/phone-input"],template:[["jetpack/label",{label:__("Phone number","jetpack-forms"),placeholder:A,required:_,requiredText:C,requiredIndicator:I}],["jetpack/phone-input",{}]],templateLock:"all",__experimentalCaptureToolbars:!0});(0,g.A)({clientId:s,blockName:"jetpack/field-sync",isSynced:o?.shareFieldAttributes,attributes:o,setAttributes:t});const z=(0,i.useCallback)(e=>{t({default:e.target.value})},[t]);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(r.BlockContextProvider,{value:{"jetpack/field-prefix-onChange":z,"jetpack/field-prefix-options":N,"jetpack/field-phone-search-placeholder":S},children:(0,h.jsxs)("div",{...F,children:[(0,h.jsx)("div",{...H}),(0,h.jsx)(p.A,{attributes:o,setAttributes:t,isActive:j||P})]})}),(0,h.jsx)(r.BlockControls,{__experimentalShareWithChildBlocks:!0,children:(0,h.jsx)(a.ToolbarGroup,{children:(0,h.jsx)(a.ToolbarButton,{title:__("Show country selector","jetpack-forms"),icon:c.A,onClick:V,className:y?"is-pressed":void 0})})}),(0,h.jsx)(u.A,{clientId:s,id:w,required:_,attributes:o,setAttributes:t,width:x,helpTextSupport:!0,extraFieldSettings:[{index:2,element:(0,h.jsxs)(a.BaseControl,{__nextHasNoMarginBottom:!0,children:[(0,h.jsx)(a.ToggleControl,{label:__("Show country selector","jetpack-forms"),checked:y||!1,onChange:V,__nextHasNoMarginBottom:!0}),y&&(0,h.jsx)(a.TextControl,{label:__("Search placeholder","jetpack-forms"),value:S,placeholder:__("Search countries…","jetpack-forms"),onChange:e=>t({searchPlaceholder:e}),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,help:__("Set placeholder text shown in the country selector search.","jetpack-forms")})]},"phoneFieldControls")}]})]})}},74294(e,t,o){"use strict";o.d(t,{Ay:()=>u});var r=o(56427),a=o(27723),n=o(55173),i=o(23083),s=o(11940),c=o(84444),l=o(57595),d=o(10790);const __=a.__,u={name:"field-telephone",settings:{...i.A,title:__("Phone number field","jetpack-forms"),keywords:[__("Phone","jetpack-forms"),__("Cellular phone","jetpack-forms"),__("Mobile","jetpack-forms")],description:__("Collect phone numbers from site visitors.","jetpack-forms"),icon:{src:(0,d.jsx)(r.Icon,{icon:n.A})},edit:c.A,attributes:{...i.A.attributes,showCountrySelector:{type:"boolean"},default:{type:"string"},searchPlaceholder:{type:"string",default:""}},supports:{...i.A.supports,interactivity:!0},providesContext:{...i.A.providesContext,"jetpack/field-prefix-default":"default","jetpack/field-phone-search-placeholder":"searchPlaceholder","jetpack/field-phone-country-toggle":"showCountrySelector"},allowedBlocks:["jetpack/label","jetpack/phone-input"],deprecated:s.A,save:l.A,example:{attributes:{default:"US"},innerBlocks:[{name:"jetpack/label",attributes:{label:__("Phone","jetpack-forms")}},{name:"jetpack/phone-input",attributes:{}}]}},form_editor:{category:"contact-info"},conditional_logic:{type:"string"}}},57595(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useInnerBlocksProps.save();return(0,a.jsx)("div",{...e})};o.dn(n)},72351(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(27723),a=o(14462),n=o(54334),i=o(10790);const __=r.__;function s(e){return(0,n.Ay)(e),(0,i.jsx)(a.A,{clientId:e.clientId,type:"text",label:__("Text","jetpack-forms"),required:e.attributes.required,requiredText:e.attributes.requiredText,requiredIndicator:e.attributes.requiredIndicator,setAttributes:e.setAttributes,isSelected:e.isSelected,defaultValue:e.attributes.defaultValue,placeholder:e.attributes.placeholder,id:e.attributes.id,width:e.attributes.width,attributes:e.attributes,insertBlocksAfter:e.insertBlocksAfter})}},71288(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790);const n={src:(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(r.Path,{d:"M12 7H4V8.5H12V7ZM19.75 17.25V10.75H4.25V17.25H19.75ZM5.75 15.75V12.25H18.25V15.75H5.75Z"})})}},50056(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useInnerBlocksProps.save();return(0,a.jsx)("div",{...e})};o.dn(n)},92506(e,t,o){"use strict";o.d(t,{A:()=>b});var r=o(94715),a=o(86087),n=o(27723),i=o(13022),s=o(34611),c=o(28367),l=o(72704),d=o(54334),u=o(77930),p=o(96839),f=o(11435),m=o(10790);const __=n.__;function b(e){const{attributes:t,clientId:o,isSelected:n,setAttributes:b}=e,{id:g,required:k,width:h,requiredIndicator:v}=t;(0,d.Ay)(e);const{blockStyle:j}=(0,u.A)(t),{isInnerBlockSelected:y,hasPlaceholder:x}=(0,l.A)(o),w=(0,r.useBlockProps)({className:(0,i.A)("jetpack-field jetpack-field-textarea",{"is-selected":n||y,"has-placeholder":x}),style:j}),_=(0,a.useMemo)(()=>[["jetpack/label",{label:__("Message","jetpack-forms"),requiredIndicator:v}],["jetpack/input",{type:"textarea"}]],[v]),C=(0,r.useInnerBlocksProps)({className:"jetpack-field__control"},{allowedBlocks:f.lJ,template:_,templateLock:"all"});return(0,p.A)({clientId:o,blockName:"jetpack/field-sync",isSynced:t?.shareFieldAttributes,attributes:t,setAttributes:b}),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("div",{...w,children:[(0,m.jsx)("div",{...C}),(0,m.jsx)(c.A,{attributes:t,setAttributes:b,isActive:n||y})]}),(0,m.jsx)(s.A,{id:g,required:k,setAttributes:b,width:h,attributes:t,type:"textarea",helpTextSupport:!0})]})}},39705(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790);const n={src:(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(r.Path,{d:"M20 5H4V6.5H20V5ZM5.5 11.5H18.5V18.5H5.5V11.5ZM20 20V10H4V20H20Z"})})}},65041(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useInnerBlocksProps.save();return(0,a.jsx)("div",{...e})};o.dn(n)},70929(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(27723),a=o(14462),n=o(54334),i=o(10790);const __=r.__;function s(e){return(0,n.Ay)(e),(0,i.jsx)(a.A,{clientId:e.clientId,type:"time",label:__("Time","jetpack-forms"),required:e.attributes.required,requiredText:e.attributes.requiredText,requiredIndicator:e.attributes.requiredIndicator,setAttributes:e.setAttributes,isSelected:e.isSelected,defaultValue:e.attributes.defaultValue,placeholder:e.attributes.placeholder,id:e.attributes.id,width:e.attributes.width,attributes:e.attributes,insertBlocksAfter:e.insertBlocksAfter})}},43926(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790);const n={src:(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5C10.2761 18.5 8.62279 17.8152 7.40381 16.5962C6.18482 15.3772 5.5 13.7239 5.5 12C5.5 10.2761 6.18482 8.62279 7.40381 7.40381C8.62279 6.18482 10.2761 5.5 12 5.5C13.7239 5.5 15.3772 6.18482 16.5962 7.40381C17.8152 8.62279 18.5 10.2761 18.5 12C18.5 13.7239 17.8152 15.3772 16.5962 16.5962C15.3772 17.8152 13.7239 18.5 12 18.5ZM4 12C4 9.87827 4.84285 7.84344 6.34315 6.34315C7.84344 4.84285 9.87827 4 12 4C14.1217 4 16.1566 4.84285 17.6569 6.34315C19.1571 7.84344 20 9.87827 20 12C20 14.1217 19.1571 16.1566 17.6569 17.6569C16.1566 19.1571 14.1217 20 12 20C9.87827 20 7.84344 19.1571 6.34315 17.6569C4.84285 16.1566 4 14.1217 4 12ZM13 13V8H11.5V11.5H9.5V13H13Z"})})}},97058(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useInnerBlocksProps.save();return(0,a.jsx)("div",{...e})};o.dn(n)},51945(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(27723),a=o(14462),n=o(54334),i=o(10790);const __=r.__;function s(e){return(0,n.Ay)(e),(0,i.jsx)(a.A,{clientId:e.clientId,type:"url",label:__("Website","jetpack-forms"),required:e.attributes.required,requiredText:e.attributes.requiredText,requiredIndicator:e.attributes.requiredIndicator,setAttributes:e.setAttributes,isSelected:e.isSelected,defaultValue:e.attributes.defaultValue,placeholder:e.attributes.placeholder,id:e.attributes.id,width:e.attributes.width,attributes:e.attributes,insertBlocksAfter:e.insertBlocksAfter})}},62377(e,t,o){"use strict";o.d(t,{Ay:()=>u});var r=o(56427),a=o(27723),n=o(41490),i=o(23083),s=o(94027),c=o(51945),l=o(76426),d=o(10790);const __=a.__,u={name:"field-url",settings:{...i.A,title:__("Website field","jetpack-forms"),keywords:[__("url","jetpack-forms"),__("internet page","jetpack-forms"),__("link","jetpack-forms"),__("website","jetpack-forms")],description:__("Collect a website address from your site visitors.","jetpack-forms"),icon:{src:(0,d.jsx)(r.Icon,{icon:n.A})},edit:c.A,deprecated:s.A,save:l.A,example:{innerBlocks:[{name:"jetpack/label",attributes:{label:__("Website","jetpack-forms")}},{name:"jetpack/input",attributes:{type:"url"}}]}},form_editor:{category:"contact-info"},conditional_logic:{type:"string"}}},76426(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useInnerBlocksProps.save();return(0,a.jsx)("div",{...e})};o.dn(n)},59462(e,t,o){"use strict";o.d(t,{A:()=>u});var r=o(94715),a=o(56427),n=o(86087),i=o(27723),s=o(13022),c=o(10528),l=o(77930),d=o(10790);const __=i.__;function u(e){const{attributes:t,clientId:o}=e,{blockStyle:i}=(0,l.A)(t),{addOption:u,newImageOption:p}=(0,c.A)(o),f=(0,r.useBlockProps)({className:(0,s.A)("jetpack-field jetpack-fieldset-image-options"),style:i}),m=(0,n.useMemo)(()=>p(),[p]),b=(0,r.useInnerBlocksProps)({className:"jetpack-fieldset-image-options__wrapper"},{allowedBlocks:["jetpack/input-image-option"],template:[["jetpack/input-image-option"],["jetpack/input-image-option"],["jetpack/input-image-option"]],templateLock:!1,orientation:"horizontal",defaultBlock:m,directInsert:!0});return(0,d.jsxs)("div",{...f,children:[(0,d.jsx)("div",{...b}),(0,d.jsx)(r.BlockControls,{children:(0,d.jsx)(a.ToolbarGroup,{children:(0,d.jsx)(a.ToolbarButton,{onClick:()=>u(),children:__("Add choice","jetpack-forms")})})})]})}},46381(e,t,o){"use strict";o.d(t,{A:()=>i});var r=o(56427),a=o(41831),n=o(10790);const i={src:(0,n.jsx)(r.Icon,{icon:a.A})}},68252(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(27723),a=o(59462),n=o(46381),i=o(87873);const __=r.__,s={name:"fieldset-image-options",settings:{apiVersion:3,title:__("Image Options","jetpack-forms"),description:__("A list of image options for an image select field.","jetpack-forms"),icon:n.A,parent:["jetpack/field-image-select"],allowedBlocks:["jetpack/input-image-option"],supports:{visibility:!1},edit:a.A,save:i.A}}},87873(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useBlockProps.save(),t=r.useInnerBlocksProps.save();return(0,a.jsx)("div",{...e,children:(0,a.jsx)("div",{...t})})};o.dn(n)},17623(e,t,o){"use strict";o.d(t,{A:()=>u});var r=o(94715),a=o(27723),n=o(5573),i=o(13022),s=o(66634),c=o(76523),l=o(98047),d=(o(49467),o(10790));const __=a.__,u=({clientId:e,context:t,attributes:o,setAttributes:a})=>{const u=(0,c.A)(e),p=t?.["jetpack/form-steps"]||[1,2,3],f=t?.["jetpack/form-current-step"]||{index:0},{variant:m="line",progressColor:b,progressBackgroundColor:g,textColor:k,style:h}=o,v=(0,r.__experimentalUseMultipleOriginColorsAndGradients)(),j={"--jp-progress-active-color":b,"--jp-progress-track-color":g,"--jp-progress-text-color":k||h?.color?.text},y=(0,r.useBlockProps)({style:j,className:`is-variant-${m}`}),x="dots"===m,w=f.index+1;let _=(0,l.u)(w,p.length,x);return!x&&-1===f.index&&p.length>0&&(_=25),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(r.InspectorControls,{group:"color",children:(0,d.jsx)(r.__experimentalColorGradientSettingsDropdown,{panelId:e,settings:[{colorValue:b,onColorChange:e=>a({progressColor:e}),label:__("Progress color","jetpack-forms")},{colorValue:g,onColorChange:e=>a({progressBackgroundColor:e}),label:__("Track color","jetpack-forms")}],...v})}),(0,d.jsx)("div",{...y,children:(0,d.jsxs)("div",{className:"jetpack-form-progress-indicator-steps",children:[p.map((e,t)=>{const o=t===f.index,r=t<f.index;return(0,d.jsxs)("div",{className:(0,i.A)("jetpack-form-progress-indicator-step",{"is-active":o,"is-completed":r}),"data-step-index":t,children:[(0,d.jsx)("div",{className:"jetpack-form-progress-indicator-line"}),x&&(0,d.jsx)("div",{className:"jetpack-form-progress-indicator-dot",children:(0,d.jsx)("span",{className:"jetpack-form-progress-indicator-step-number",children:r?(0,d.jsx)(n.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)(n.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z",fill:"currentColor"})}):t+1})})]},t)}),(0,d.jsx)("div",{className:"jetpack-form-progress-indicator-progress",style:{width:`${_}%`}})]})}),(0,d.jsx)(s.A,{formClientId:u,showToggle:!1,showNavigation:!0})]})}},71263(e,t,o){"use strict";o.d(t,{Ay:()=>l});var r=o(27723),a=o(5573),n=o(17623),i=o(10790);const __=r.__,s=(0,i.jsxs)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,i.jsx)(a.Rect,{x:"3.75",y:"9.75",width:"16.5",height:"4.5",rx:"2.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),(0,i.jsx)(a.Rect,{x:"2",y:"9",width:"8",height:"6",rx:"3"})]}),c=(0,i.jsxs)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,i.jsx)(a.Circle,{cx:"6",cy:"12",r:"2",fill:"currentColor"}),(0,i.jsx)(a.Circle,{cx:"12",cy:"12",r:"2",fill:"currentColor"}),(0,i.jsx)(a.Circle,{cx:"18",cy:"12",r:"2",fill:"currentColor"})]}),l={name:"form-progress-indicator",settings:{apiVersion:3,category:"contact-form",ancestor:["jetpack/contact-form"],supports:{html:!1,reusable:!1,spacing:{margin:["top","bottom"],padding:!0},color:{text:!0,gradients:!0,__experimentalDefaultControls:{text:!0}}},title:__("Progress indicator","jetpack-forms"),description:__("Show a visual indicator of progress through multi-step forms.","jetpack-forms"),icon:{src:s},edit:n.A,save:()=>null,attributes:{variant:{type:"string",default:"line"},progressColor:{type:"string"},progressBackgroundColor:{type:"string"}},usesContext:["jetpack/form-steps","jetpack/form-current-step"],variations:[{name:"line",title:__("Line","jetpack-forms"),description:__("Display progress as a continuous line","jetpack-forms"),scope:["transform"],isDefault:!0,attributes:{variant:"line"},isActive:["variant"],icon:s},{name:"dots",title:__("Dots","jetpack-forms"),description:__("Display progress as dots for each step","jetpack-forms"),scope:["transform"],attributes:{variant:"dots"},isActive:["variant"],icon:c}],transforms:{},example:{attributes:{variant:"dots"},innerBlocks:[]},deprecated:[{apiVersion:2,attributes:{variant:{type:"string",default:"line"},progressColor:{type:"string"},progressBackgroundColor:{type:"string"}},supports:{html:!1,reusable:!1,dimensions:{minHeight:!0},spacing:{margin:!0,padding:!0},color:{text:!0,background:!0,gradients:!0,__experimentalDefaultControls:{text:!0,background:!0}}},save:()=>(0,i.jsx)("div",{className:"jetpack-form-progress-indicator--wrapper",children:(0,i.jsx)("div",{className:"wp-block-jetpack-form-progress-indicator",children:(0,i.jsx)("div",{className:"jetpack-form-progress-indicator-bar"})})}),migrate:e=>({...e,variant:e.variant||"line"})}]},form_editor:{category:"multistep"}}},58676(e,t,o){"use strict";o.d(t,{A:()=>c});var r=o(94715),a=o(47528),n=o(66634),i=o(76523),s=o(10790);function c({clientId:e}){const t=(0,r.useBlockProps)({className:"jetpack-form-step-container"}),o=(0,i.A)(e),c=(0,r.useInnerBlocksProps)(t,{allowedBlocks:["jetpack/form-step"],defaultBlock:{name:"jetpack/form-step"},directInsert:!0});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"jetpack-form-steps-wrapper",children:(0,s.jsx)("div",{...c})}),(0,s.jsx)(n.A,{formClientId:o}),(0,s.jsx)(a.A,{formClientId:o,clientId:e})]})}},53703(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790);function n(){return(0,a.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",children:[(0,a.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19 4.5H5C4.72386 4.5 4.5 4.72386 4.5 5V19C4.5 19.2761 4.72386 19.5 5 19.5H19C19.2761 19.5 19.5 19.2761 19.5 19V5C19.5 4.72386 19.2761 4.5 19 4.5ZM5 3C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5Z"}),(0,a.jsx)(r.Path,{d:"M6.1001 6H12.1001V7.5H6.1001V6Z"}),(0,a.jsx)(r.Path,{d:"M7.6001 9.75H16.6001C17.0143 9.75 17.3501 10.0858 17.3501 10.5V11.5C17.3501 11.9142 17.0143 12.25 16.6001 12.25H7.6001C7.18588 12.25 6.8501 11.9142 6.8501 11.5V10.5C6.8501 10.0858 7.18588 9.75 7.6001 9.75Z",strokeWidth:"1.5",stroke:"currentColor",fill:"none"}),(0,a.jsx)(r.Path,{d:"M7.6001 14.75H16.6001C17.0143 14.75 17.3501 15.0858 17.3501 15.5V16.5C17.3501 16.9142 17.0143 17.25 16.6001 17.25H7.6001C7.18588 17.25 6.8501 16.9142 6.8501 16.5V15.5C6.8501 15.0858 7.18588 14.75 7.6001 14.75Z",strokeWidth:"1.5",stroke:"currentColor",fill:"none"})]})}},28899(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);function n(){const e=r.useBlockProps.save({className:"jetpack-form-step-container"}),t=r.useInnerBlocksProps.save(e);return(0,a.jsx)("div",{className:"jetpack-form-steps-wrapper",children:(0,a.jsx)("div",{...t})})}},16064(e,t,o){"use strict";o.d(t,{Ay:()=>s});var r=o(27723),a=o(5573),n=o(29999),i=o(10790);const __=r.__,s={name:"form-step-divider",settings:{apiVersion:3,title:__("Step Divider","jetpack-forms"),description:__("Split the current step into two steps.","jetpack-forms"),category:"contact-form",parent:["jetpack/form-step","jetpack/contact-form"],icon:{src:(0,i.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(a.Path,{d:"M19 13H5v-2h14v2z"})})},supports:{html:!1,reusable:!1},edit:n.A,save:()=>null},form_editor:{category:"multistep"}}},91983(e,t,o){"use strict";o.d(t,{Ay:()=>j,GM:()=>m,WU:()=>f,se:()=>g});var r=o(94715),a=o(74997),n=o(47143),i=o(86087),s=o(27723),c=o(53792),l=o(66634),d=o(41002),u=o(76523),p=(o(8331),o(10790));const __=s.__,f=["core/button",{tagName:"button",text:__("Previous","jetpack-forms"),className:"is-style-outline form-button-previous is-previous",metadata:{name:__("Previous button","jetpack-forms")}}],m=["core/button",{tagName:"button",text:__("Next","jetpack-forms"),className:"form-button-next is-next",metadata:{name:__("Next button","jetpack-forms")}}],b=["core/button",{tagName:"button",type:"submit",text:__("Submit","jetpack-forms"),className:"form-button-submit is-submit",metadata:{name:__("Submit button","jetpack-forms")}}],g=[f,m,b],k=["core/button"],h={previous:f,next:m,submit:b},v=(e,t)=>{const o=h[t],[r,n]=o,i=e.attributes||{},s=i.text,c=(e=>{const t={};if(e.backgroundColor&&(t.backgroundColor=e.backgroundColor),e.textColor&&(t.textColor=e.textColor),e.gradient&&(t.gradient=e.gradient),e.width){const o=parseInt(e.width,10);isNaN(o)||(t.width=o)}e.fontSize&&(t.fontSize=e.fontSize);const o=e.style||{},r={...o.color||{}};e.customBackgroundColor&&(r.background=e.customBackgroundColor),e.customTextColor&&(r.text=e.customTextColor),e.customGradient&&(r.gradient=e.customGradient);const a={...o.border||{}};void 0!==e.borderRadius&&(a.radius=`${e.borderRadius}px`);const n={...o,...Object.keys(r).length&&{color:r},...Object.keys(a).length&&{border:a}};return Object.keys(n).length&&(t.style=n),t})(i);return(0,a.createBlock)(r,{...n,...c,...s&&{text:s}})};function j({clientId:e}){const t=(0,r.useBlockProps)(),{replaceInnerBlocks:o,__unstableMarkNextChangeAsNotPersistent:s}=(0,n.useDispatch)(r.store),{ancestorStepClientId:f,navigationBlocks:m}=(0,n.useSelect)(t=>{const{getBlockParentsByBlockName:o,getBlocks:a}=t(r.store),n=o(e,["jetpack/form-step"]);return{ancestorStepClientId:n.length>0?n[0]:null,navigationBlocks:a(e)}},[e]),b=(0,u.A)(e),j=(0,d.A)(b),{isSingleStep:y,activeStepId:x}=(0,n.useSelect)(e=>{if(!b)return{isSingleStep:!1,activeStepId:null};const{isSingleStepMode:t,getActiveStepId:o}=e(c.M);return{isSingleStep:t(b),activeStepId:o(b)}},[b]),w=!f;let _=0;if(w&&y&&x){const e=j.findIndex(e=>e.clientId===x);-1!==e&&(_=e)}else if(!w){const e=j.findIndex(e=>e.clientId===f);_=e}const C=(0,r.useInnerBlocksProps)(t,{template:g,templateLock:"all",allowedBlocks:k,renderAppender:!1});return(0,i.useEffect)(()=>{if(void 0===_)return;const t={previous:null,next:null,submit:null};m.forEach(e=>{const o=(e=>{if("core/button"===e.name){const t=(e.attributes?.className||"").split(/\s+/);if(t.includes("form-button-previous"))return"previous";if(t.includes("form-button-next"))return"next";if(t.includes("form-button-submit"))return"submit"}if("jetpack/button"===e.name){const t=e.attributes?.uniqueId||"";if("previous-step"===t)return"previous";if("next-step"===t)return"next";if("submit-step"===t)return"submit"}return null})(e);o&&!t[o]&&(t[o]=e)});const r=!t.previous||!t.next||!t.submit,n=m.some(e=>"jetpack/button"===e.name);if(!r&&!n)return;const i=["previous","next","submit"].map(e=>{const o=t[e];if(!o){const[t,o]=h[e];return(0,a.createBlock)(t,o)}return"jetpack/button"===o.name?v(o,e):o});s(),o(e,i,!1)},[m,o,e,_,s]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"wp-block-jetpack-form-step-navigation__wrapper",children:(0,p.jsx)("div",{...C})}),(0,p.jsx)(l.A,{formClientId:b,showToggle:!1,showNavigation:!0})]})}},80472(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);function n(){const e=r.useBlockProps.save(),t=r.useInnerBlocksProps.save(e);return(0,a.jsx)("div",{className:"wp-block-jetpack-form-step-navigation__wrapper",children:(0,a.jsx)("div",{...t})})}},1654(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(94715),a=o(56427),n=o(27723),i=o(10790);const __=n.__,s=({attributes:e,setAttributes:t})=>{const{stepLabel:o=""}=e;return(0,i.jsx)(r.InspectorControls,{children:(0,i.jsx)(a.PanelBody,{title:__("Settings","jetpack-forms"),initialOpen:!0,className:"jetpack-contact-form__panel",children:(0,i.jsx)(a.TextControl,{label:__("Step label","jetpack-forms"),value:o,onChange:e=>{t({stepLabel:e})},help:__("Name the step.","jetpack-forms"),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})})})}},27994(e,t,o){"use strict";o.d(t,{A:()=>v});var r=o(94715),a=o(47143),n=o(86087),i=o(27723),s=o(53792),c=o(47528),l=o(66634),d=o(41002),u=o(76523),p=o(11435),f=o(37128),m=o(1654),b=(o(8372),o(10790));const __=i.__,g=["jetpack/field-text","jetpack/field-name","jetpack/field-email","jetpack/field-url","jetpack/field-date","jetpack/field-telephone","jetpack/field-number","jetpack/field-time","jetpack/field-textarea","jetpack/field-checkbox","jetpack/field-checkbox-multiple","jetpack/field-option-checkbox","jetpack/field-radio","jetpack/field-option-radio","jetpack/field-select","jetpack/field-file","jetpack/field-consent","jetpack/field-rating","jetpack/field-slider","jetpack/field-image-select","jetpack/field-hidden","jetpack/form-step-navigation","jetpack/form-step-divider",...p.BY],k=e=>{if(e)return[["core/paragraph",{}],["jetpack/form-step-navigation",{}]]};function h({stepLabel:e,currentIndex:t,setAttributes:o,clientId:s}){const{updateBlockAttributes:c,__unstableMarkNextChangeAsNotPersistent:l}=(0,a.useDispatch)("core/block-editor"),{metadata:d}=(0,a.useSelect)(e=>{const{getBlockAttributes:t}=e("core/block-editor");return{metadata:t(s)?.metadata}},[s]),u=(0,f.$)(t,e),p=(0,i.sprintf)(
9 // translators: %d is the step number (1, 2, 3, etc.)
10 __("Step %d","jetpack-forms"),t+1);(0,n.useEffect)(()=>{d?.name!==u&&(l(),c(s,{metadata:{...d,name:u}}))},[u,d,s,c,l]);
11 // translators: %d: Step number
12 const m=(0,i.sprintf)(__("Step %d label","jetpack-forms"),t+1);return(0,b.jsx)("div",{className:"jetpack-form-step__break",children:(0,b.jsx)(r.RichText,{allowedFormats:[],tagName:"span",className:"jetpack-form-step__label",value:e,placeholder:p,onChange:e=>{o({stepLabel:e})},"aria-label":m})})}function v({attributes:e,setAttributes:t,clientId:o,isSelected:i}){const p=(0,r.useBlockProps)();p.className+=" jetpack-form-step__container";const f=(0,u.A)(o),v=(0,d.A)(f),{setActiveStep:j}=(0,a.useDispatch)(s.M),{currentIndex:y,selectedStepClientId:x,isSingleStep:w,hasPrevNavigation:_,hasInnerBlocks:C,isInnerBlockSelected:A}=(0,a.useSelect)(e=>{const{isSingleStepMode:t,getActiveStepId:r}=e(s.M),{getBlocks:a,getBlock:n,hasSelectedInnerBlock:i}=e("core/block-editor"),c=v.findIndex(e=>e.clientId===o),l=c>0&&v[c-1]?v[c-1].clientId:null,d=l?a(l):[],u=n(o);return{currentIndex:c,selectedStepClientId:r(f),isSingleStep:t(f),hasPrevNavigation:d.some(e=>"jetpack/form-step-navigation"===e.name),hasInnerBlocks:!(!u||!u.innerBlocks.length),isInnerBlockSelected:i(o,!0)}},[o,v,f]);let S;C||w||(S=r.InnerBlocks.ButtonBlockAppender);const B=(0,r.useInnerBlocksProps)({className:"wp-block-jetpack-form-step jetpack-form-step__container"},{template:k(_),allowedBlocks:g,renderAppender:S});return(0,n.useEffect)(()=>{w&&(i||A)&&x!==o&&j(f,o)},[w,i,A,x,o,f,j]),w&&x!==o?null:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{...p,children:[!w&&(0,b.jsx)(h,{stepLabel:e.stepLabel,currentIndex:y,setAttributes:t,clientId:o}),(0,b.jsx)("div",{...B}),(0,b.jsx)(m.A,{attributes:e,setAttributes:t,clientId:o})]}),(0,b.jsx)(l.A,{formClientId:f,updateStepSelected:!0}),(0,b.jsx)(c.A,{clientId:o,formClientId:f})]})}},11961(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790);function n(){return(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",children:(0,a.jsx)(r.Path,{d:"M17.5 9V6C17.5 5.46957 17.2893 4.96086 16.9142 4.58579C16.5391 4.21071 16.0304 4 15.5 4H8.5C7.96957 4 7.46086 4.21071 7.08579 4.58579C6.71071 4.96086 6.5 5.46957 6.5 6V9H8V6C8 5.86739 8.05268 5.74021 8.14645 5.64645C8.24021 5.55268 8.36739 5.5 8.5 5.5H15.5C15.6326 5.5 15.7598 5.55268 15.8536 5.64645C15.9473 5.74021 16 5.86739 16 6V9H17.5ZM17.5 15.5V18C17.5 18.5304 17.2893 19.0391 16.9142 19.4142C16.5391 19.7893 16.0304 20 15.5 20H8.5C7.96957 20 7.46086 19.7893 7.08579 19.4142C6.71071 19.0391 6.5 18.5304 6.5 18V15.5H8V18C8 18.1326 8.05268 18.2598 8.14645 18.3536C8.24021 18.4473 8.36739 18.5 8.5 18.5H15.5C15.6326 18.5 15.7598 18.4473 15.8536 18.3536C15.9473 18.2598 16 18.1326 16 18V15.5H17.5ZM4 13H20V11.5H4V13Z"})})}},96529(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);function n(){const e=r.useBlockProps.save(),t=r.useInnerBlocksProps.save(e);return(0,a.jsx)("div",{...t})}},44255(e,t,o){"use strict";o.d(t,{A:()=>m});var r=o(94715),a=o(47143),n=o(86087),i=o(27723),s=o(13022),c=o(10528),l=o(77930),d=o(62111),u=o(54965),p=o(10790);const __=i.__,f=["backgroundColor","borderColor","textColor","fontSize","style"];function m(e){const{clientId:t,context:o,name:i,attributes:m,setAttributes:b}=e,{"jetpack/field-share-attributes":g}=o,{label:k}=m;(0,d.d)(i,g,f,m,b);const{"jetpack/field-image-select-is-supersized":h}=o||{},{positionIndex:v,positionLetter:j,rowOptionsCount:y,parentId:x}=(0,a.useSelect)(e=>{const o=e(r.store),{getBlock:a}=o,n=o.getBlockParentsByBlockName(t,"jetpack/fieldset-image-options"),i=n[n.length-1],s=a(i),c=s.innerBlocks.findIndex(e=>e.clientId===t)+1,l=s.innerBlocks.length,d=h?2:4,p=Math.min(l,d);return{positionIndex:c,positionLetter:(0,u.F)(c),rowOptionsCount:p,parentId:i}},[t,h]),{addOption:w}=(0,c.A)(x),_=(0,n.useCallback)(e=>{"Enter"===e.key&&(e.preventDefault(),w(v))},[w,v]),C=(0,n.useCallback)(e=>{e.preventDefault();const t=(e.clipboardData?.getData("text/plain")||"").replace(/[\r\n]+/g," ").trim();t&&b({label:t})},[b]),{blockStyle:A}=(0,l.A)(m),S=(0,r.useBlockProps)({className:(0,s.A)("jetpack-field jetpack-input-image-option",{"is-supersized":h}),style:{...A,"--row-options-count":y>=1?y:1}}),B=(0,n.useMemo)(()=>[["core/image",{scale:"cover",aspectRatio:"1",sizeSlug:h?"full":"medium"}]],[h]),I=(0,r.useInnerBlocksProps)({className:"jetpack-input-image-option__wrapper"},{allowedBlocks:["core/image"],template:B,templateLock:"all"});return(0,p.jsxs)("div",{...S,children:[(0,p.jsx)("div",{...I}),(0,p.jsxs)("div",{className:"jetpack-input-image-option__label-wrapper",children:[(0,p.jsx)("div",{className:"jetpack-input-image-option__label-code",children:j}),(0,p.jsx)(r.RichText,{tagName:"span",className:"jetpack-input-image-option__label",value:k,placeholder:__("Add label","jetpack-forms"),__unstableDisableFormats:!0,onChange:e=>b({label:e}),onKeyDown:_,onPaste:C})]})]})}},46184(e,t,o){"use strict";o.d(t,{A:()=>i});var r=o(56427),a=o(36092),n=o(10790);const i={src:(0,n.jsx)(r.Icon,{icon:a.A})}},64439(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(27723),a=o(44255),n=o(46184),i=o(22988);const __=r.__,s={name:"input-image-option",settings:{apiVersion:3,title:__("Image Option","jetpack-forms"),description:__("A single image option for an image select field.","jetpack-forms"),icon:n.A,parent:["jetpack/fieldset-image-options"],usesContext:["jetpack/field-image-select-is-supersized","jetpack/field-image-select-show-labels","jetpack/field-image-select-is-multiple","jetpack/field-share-attributes"],providesContext:{allowResize:"allowResize",imageCrop:"imageCrop",fixedHeight:"fixedHeight"},supports:{visibility:!1,color:{background:!0,text:!0,gradients:!1,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!0,padding:!0}}},edit:a.A,attributes:{allowResize:{type:"boolean",default:!1},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},label:{type:"string",default:""},style:{type:"object",default:{border:{radius:"4px",width:"1px"},spacing:{padding:{top:"8px",right:"8px",bottom:"8px",left:"8px"}}}}},save:i.A}}},54965(e,t,o){"use strict";o.d(t,{F:()=>r});const r=e=>{if(e<1)return"";let t="";for(;e>0;)e--,t=String.fromCharCode(65+e%26)+t,e=Math.floor(e/26);return t}},22988(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useBlockProps.save(),t=r.useInnerBlocksProps.save();return(0,a.jsx)("div",{...e,children:(0,a.jsx)("div",{...t})})};o.dn(n)},34680(e,t,o){"use strict";o.d(t,{A:()=>p});var r=o(94715),a=o(86087),n=o(27723),i=o(53547),s=o(97622),c=o(62111),l=o(97103),d=(o(6882),o(76271),o(10790));const __=n.__,u=["backgroundColor","borderColor","fontFamily","fontSize","style","textColor"],p=({attributes:e,clientId:t,isSelected:o,name:n,setAttributes:p,context:f})=>{const{"jetpack/field-share-attributes":m}=f,[b,g]=(0,a.useState)(!1),k=(0,a.useRef)(null);(0,c.d)("jetpack/input",m,u,e,p);const{placeholder:h}=e,v=(0,l.A)({clientId:t,inputBlockName:n,inputBlockAttributes:e}),j=(0,r.useBlockProps)({className:"jetpack-field__input jetpack-field__input-phone",style:v?.cssVars}),y=(0,s.A)(t),x=(0,a.useCallback)(e=>{p({placeholder:e.target.value})},[p]),w=f?.["jetpack/field-prefix-default"]||"US",_=f?.["jetpack/field-phone-country-toggle"]||!1,C=f?.["jetpack/field-phone-search-placeholder"]||__("Search countries…","jetpack-forms"),A=(0,a.useCallback)(e=>{(f?.["jetpack/field-prefix-onChange"]||(()=>{}))(e),g(!1),setTimeout(()=>{k.current&&k.current.focus()},0)},[f,g]);(0,a.useEffect)(()=>{o||g(o)},[o]);const S=(0,a.useMemo)(()=>f?.["jetpack/field-prefix-options"]||[],[f]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)("div",{...j,children:[_&&S.length>1&&w&&(0,d.jsx)("div",{className:"jetpack-field__input-prefix",children:(0,d.jsx)(i.A,{options:S,selectedOptionCode:w,onOptionChange:A,isOpen:b,onOpenChange:g,placeholder:C,parentStyle:j?.style})}),(0,d.jsx)("input",{ref:k,className:"jetpack-field__input-element",onChange:x,onKeyDown:y,onClick:()=>g(!1),type:"text",value:o?h:"",placeholder:h})]})})}},74666(e,t,o){"use strict";o.d(t,{A:()=>c});var r=o(27723),a=o(5573),n=o(34680),i=o(33704),s=o(10790);const __=r.__,c={name:"phone-input",settings:{apiVersion:3,title:__("Phone input","jetpack-forms"),description:__("Phone number input.","jetpack-forms"),category:"contact-form",icon:{src:(0,s.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(a.Path,{d:"M19 6.5C19.5304 6.5 20.039 6.71086 20.4141 7.08594C20.7891 7.46101 21 7.96957 21 8.5V15C21 15.5304 20.7891 16.039 20.4141 16.4141C20.039 16.7891 19.5304 17 19 17H5C4.46957 17 3.96101 16.7891 3.58594 16.4141C3.21086 16.039 3 15.5304 3 15V8.5C3 7.96957 3.21086 7.46101 3.58594 7.08594C3.96101 6.71086 4.46957 6.5 5 6.5H19ZM5 8C4.86739 8 4.74025 8.05272 4.64648 8.14648C4.55272 8.24025 4.5 8.36739 4.5 8.5V15C4.5 15.1326 4.55272 15.2597 4.64648 15.3535C4.74025 15.4473 4.86739 15.5 5 15.5H19C19.1326 15.5 19.2597 15.4473 19.3535 15.3535C19.4473 15.2597 19.5 15.1326 19.5 15V8.5C19.5 8.36739 19.4473 8.24025 19.3535 8.14648C19.2597 8.05272 19.1326 8 19 8H5Z"})})},parent:["jetpack/field-phone"],usesContext:["jetpack/field-share-attributes","jetpack/field-prefix-options","jetpack/field-prefix-default","jetpack/field-prefix-onChange","jetpack/field-phone-country-toggle","jetpack/field-phone-search-placeholder"],supports:{reusable:!1,html:!1,visibility:!1,color:{text:!0,background:!0,gradients:!1},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},attributes:{placeholder:{type:"string",default:""}},edit:n.A,save:i.A}}},40969(e,t,o){"use strict";o.d(t,{A:()=>d});var r=o(94715),a=o(56427),n=o(27723),i=o(51609),s=o(97622),c=o(4349),l=(o(98493),o(7377),o(10790));const __=n.__;function d(e){const{context:t={},isSelected:o,clientId:n}=e,d=(0,i.useRef)(null),u=(0,i.useRef)(null),p=t["jetpack/field-slider-min"],f=t["jetpack/field-slider-max"],m=t["jetpack/field-slider-default"],b=t["jetpack/field-slider-step"],g=t["jetpack/field-slider-onChangeDefault"],k=t["jetpack/field-slider-onChangeMin"],h=t["jetpack/field-slider-onChangeMax"],v=(0,s.A)(n),j=t["jetpack/field-slider-minLabel"],y=t["jetpack/field-slider-maxLabel"],x=t["jetpack/field-slider-onChangeMinLabel"],w=t["jetpack/field-slider-onChangeMaxLabel"],[_,C]=(0,i.useState)(String(p)),[A,S]=(0,i.useState)(String(f)),[B,I]=(0,i.useState)(!1),[N,M]=(0,i.useState)(!1),[T,P]=(0,i.useState)(String(j)),[E,L]=(0,i.useState)(String(y)),[F,R]=(0,i.useState)(!1),[V,H]=(0,i.useState)(!1),z=Number(_)<=Number(A),D=Number(A)>=Number(_),O=(0,r.useBlockProps)({className:"jetpack-input-range"+(o?" is-selected":"")}),q=e=>"string"==typeof e&&e.length>1?e.replace(/^0+/,"")||"0":e;return(0,i.useEffect)(()=>{B||C(String(p)),N||S(String(f))},[p,f,B,N]),(0,i.useEffect)(()=>{F||P(String(j??"")),V||L(String(y??""))},[j,y,F,V]),(0,l.jsxs)("div",{...O,children:[(0,l.jsxs)("div",{className:"jetpack-field-slider__input-row",children:[(0,l.jsx)(a.VisuallyHidden,{as:"label",htmlFor:`${n}-slider-min`,children:__("Slider minimum value","jetpack-forms")}),(0,l.jsx)("input",{id:`${n}-slider-min`,type:"number",className:"jetpack-field-slider__min-input"+(!z&&B?" has-error":""),value:q(_),placeholder:"0",onChange:e=>C(e.target.value),ref:d,onClick:e=>{d.current?.ownerDocument.activeElement===e.target||e.target.focus()},onFocus:()=>I(!0),onBlur:()=>{I(!1),k(_)},onKeyDown:v}),(0,l.jsxs)("div",{className:"jetpack-field-slider__input-container",children:[(0,l.jsx)(a.VisuallyHidden,{as:"label",htmlFor:`${n}-slider-default`,children:__("Slider default value","jetpack-forms")}),(0,l.jsx)("input",{id:`${n}-slider-default`,type:"range",min:p,max:f,step:b||1,value:m,onChange:e=>g(e.target.value),onKeyDown:v,className:"jetpack-field-slider__range"}),(0,l.jsx)("div",{className:"jetpack-field-slider__value-indicator",style:{left:(0,c.h)(p,f,m)},children:m})]}),(0,l.jsx)(a.VisuallyHidden,{as:"label",htmlFor:`${n}-slider-max`,children:__("Slider maximum value","jetpack-forms")}),(0,l.jsx)("input",{id:`${n}-slider-max`,type:"number",className:"jetpack-field-slider__max-input"+(!D&&N?" has-error":""),value:q(A),placeholder:"0",onChange:e=>S(e.target.value),ref:u,onClick:e=>{u.current?.ownerDocument.activeElement===e.target||e.target.focus()},onFocus:()=>M(!0),onBlur:()=>{M(!1),h(A)},onKeyDown:v})]}),(0,l.jsxs)("div",{className:"jetpack-field-slider__text-labels",children:[(0,l.jsx)("input",{className:"jetpack-field-slider__min-text-label",type:"text",size:Math.max(3,T.length),value:T,placeholder:__("Add label…","jetpack-forms"),onChange:e=>P(e.target.value),onFocus:()=>R(!0),onBlur:()=>{R(!1),x?.(T)}}),(0,l.jsx)("input",{className:"jetpack-field-slider__max-text-label",autoComplete:"off",type:"text",size:Math.max(3,E.length),value:E,placeholder:__("Add label…","jetpack-forms"),onChange:e=>L(e.target.value),onFocus:()=>H(!0),onBlur:()=>{H(!1),w?.(E)}})]})]})}},79822(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790);function n(e){return(0,a.jsxs)(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:[(0,a.jsx)(r.Line,{x1:"4",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0,a.jsx)(r.Circle,{cx:"12",cy:"12",r:"2",fill:"currentColor"})]})}},44713(e,t,o){"use strict";o.d(t,{A:()=>c});var r=o(27723),a=o(40969),n=o(79822),i=o(65450),s=o(10790);const __=r.__,c={name:"input-range",settings:{apiVersion:3,title:__("Slider input","jetpack-forms"),description:__("A slider input for selecting a value.","jetpack-forms"),icon:(0,s.jsx)(n.A,{}),category:"contact-form",parent:["jetpack/field-slider"],edit:a.A,save:i.A,usesContext:["jetpack/field-slider-min","jetpack/field-slider-max","jetpack/field-slider-default","jetpack/field-slider-onChangeDefault","jetpack/field-slider-onChangeMin","jetpack/field-slider-onChangeMax","jetpack/field-slider-step","jetpack/field-slider-minLabel","jetpack/field-slider-maxLabel","jetpack/field-slider-onChangeMinLabel","jetpack/field-slider-onChangeMaxLabel"],supports:{reusable:!1,html:!1,visibility:!1,color:{text:!0,background:!1},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}}}},65450(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useBlockProps.save();return(0,a.jsx)("div",{...e})};o.dn(n)},34661(e,t,o){"use strict";o.d(t,{A:()=>c});var r=o(94715),a=o(43854),n=o(20402),i=o(97622),s=o(10790);function c({context:e,clientId:t}){const o=Math.min(e?.["jetpack/field-rating-max"]||5,n.Ao),c=e?.["jetpack/field-rating-default"]||0,l=e?.["jetpack/field-rating-iconStyle"]||"stars",d=e?.["jetpack/field-rating-onChangeDefault"]||(()=>{}),u=(0,i.A)(t),p=(0,r.useBlockProps)({className:"jetpack-field-rating__options"}),f=[];for(let e=1;e<=o;e++){const r=`rating-${t}-${e}`;f.push((0,s.jsxs)("div",{className:"jetpack-field-rating__option",children:[(0,s.jsx)("input",{id:r,type:"radio",name:`rating-${t}`,value:`${e}/${o}`,className:"jetpack-field-rating__input visually-hidden",checked:c===e,onChange:()=>{var t;d(c===(t=e)?0:t)},onKeyDown:u}),(0,s.jsx)("label",{htmlFor:r,className:"jetpack-field-rating__label",children:(0,s.jsx)(a.H,{iconStyle:l})})]},e))}return(0,s.jsx)("div",{...p,children:f})}},76141(e,t,o){"use strict";o.d(t,{A:()=>c});var r=o(27723),a=o(5573),n=(o(23541),o(34661)),i=o(10790);const __=r.__,s={src:(0,i.jsxs)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,i.jsx)(a.Path,{d:"M4.90821 9.05978C4.91669 9.04183 4.92977 9.02672 4.94599 9.01616C4.96221 9.0056 4.98091 9 5 9C5.01909 9 5.03779 9.0056 5.05401 9.01616C5.07023 9.02672 5.08331 9.04183 5.09179 9.05978L5.93962 10.8628C5.94695 10.8785 5.95779 10.892 5.97121 10.9023C5.98463 10.9125 6.00023 10.9192 6.01666 10.9217L7.91228 11.2108C7.93118 11.2137 7.94893 11.222 7.96354 11.2349C7.97814 11.2478 7.98902 11.2648 7.99495 11.2838C8.00087 11.3029 8.0016 11.3233 7.99706 11.3428C7.99252 11.3622 7.98288 11.38 7.96924 11.394L6.59731 12.7975C6.58536 12.8097 6.57643 12.8247 6.57129 12.8414C6.56615 12.858 6.56495 12.8757 6.5678 12.893L6.89153 14.8745C6.89467 14.8942 6.89251 14.9144 6.8853 14.9329C6.87809 14.9514 6.86611 14.9675 6.8507 14.9792C6.8353 14.991 6.81707 14.998 6.79808 14.9995C6.77909 15.0009 6.76008 14.9968 6.74319 14.9876L5.04753 14.0521C5.03287 14.044 5.01656 14.0398 5 14.0398C4.98344 14.0398 4.96713 14.044 4.95247 14.0521L3.25681 14.9876C3.23991 14.997 3.22085 15.0012 3.20179 14.9997C3.18273 14.9983 3.16443 14.9913 3.14896 14.9795C3.13348 14.9678 3.12145 14.9517 3.11423 14.9331C3.107 14.9146 3.10487 14.8943 3.10806 14.8745L3.43178 12.893C3.43469 12.8758 3.43356 12.8581 3.42849 12.8414C3.42342 12.8248 3.41456 12.8097 3.40269 12.7975L2.03076 11.394C2.01712 11.38 2.00748 11.3622 2.00294 11.3428C1.9984 11.3233 1.99913 11.3029 2.00505 11.2838C2.01098 11.2648 2.02185 11.2478 2.03646 11.2349C2.05107 11.222 2.06882 11.2137 2.08772 11.2108L3.98334 10.9217C3.99977 10.9192 4.01537 10.9125 4.02879 10.9023C4.04221 10.892 4.05305 10.8785 4.06038 10.8628L4.90821 9.05978Z"}),(0,i.jsx)(a.Path,{d:"M11.9082 9.05978C11.9167 9.04183 11.9298 9.02672 11.946 9.01616C11.9622 9.0056 11.9809 9 12 9C12.0191 9 12.0378 9.0056 12.054 9.01616C12.0702 9.02672 12.0833 9.04183 12.0918 9.05978L12.9396 10.8628C12.9469 10.8785 12.9578 10.892 12.9712 10.9023C12.9846 10.9125 13.0002 10.9192 13.0167 10.9217L14.9123 11.2108C14.9312 11.2137 14.9489 11.222 14.9635 11.2349C14.9781 11.2478 14.989 11.2648 14.9949 11.2838C15.0009 11.3029 15.0016 11.3233 14.9971 11.3428C14.9925 11.3622 14.9829 11.38 14.9692 11.394L13.5973 12.7975C13.5854 12.8097 13.5764 12.8247 13.5713 12.8414C13.5661 12.858 13.565 12.8757 13.5678 12.893L13.8915 14.8745C13.8947 14.8942 13.8925 14.9144 13.8853 14.9329C13.8781 14.9514 13.8661 14.9675 13.8507 14.9792C13.8353 14.991 13.8171 14.998 13.7981 14.9995C13.7791 15.0009 13.7601 14.9968 13.7432 14.9876L12.0475 14.0521C12.0329 14.044 12.0166 14.0398 12 14.0398C11.9834 14.0398 11.9671 14.044 11.9525 14.0521L10.2568 14.9876C10.2399 14.997 10.2208 15.0012 10.2018 14.9997C10.1827 14.9983 10.1644 14.9913 10.149 14.9795C10.1335 14.9678 10.1215 14.9517 10.1142 14.9331C10.107 14.9146 10.1049 14.8943 10.1081 14.8745L10.4318 12.893C10.4347 12.8758 10.4336 12.8581 10.4285 12.8414C10.4234 12.8248 10.4146 12.8097 10.4027 12.7975L9.03076 11.394C9.01712 11.38 9.00748 11.3622 9.00294 11.3428C8.9984 11.3233 8.99913 11.3029 9.00505 11.2838C9.01098 11.2648 9.02185 11.2478 9.03646 11.2349C9.05107 11.222 9.06882 11.2137 9.08772 11.2108L10.9833 10.9217C10.9998 10.9192 11.0154 10.9125 11.0288 10.9023C11.0422 10.892 11.0531 10.8785 11.0604 10.8628L11.9082 9.05978Z"}),(0,i.jsx)(a.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.0605 10.8627C18.0532 10.8784 18.0423 10.8919 18.0289 10.9022C18.0155 10.9125 17.9999 10.9191 17.9835 10.9217L16.0881 11.2107C16.0691 11.2135 16.0513 11.2219 16.0366 11.2348C16.0219 11.2477 16.011 11.2647 16.005 11.2839C15.9991 11.303 15.9984 11.3235 16.003 11.343C16.0076 11.3626 16.0174 11.3803 16.0311 11.3943L17.4029 12.7973C17.4148 12.8095 17.4238 12.8246 17.4289 12.8412C17.434 12.8579 17.4352 12.8756 17.4324 12.8928L17.1087 14.8743C17.1055 14.894 17.1076 14.9143 17.1147 14.9329C17.1219 14.9515 17.1339 14.9675 17.1493 14.9794C17.1647 14.9912 17.183 14.9982 17.202 14.9997C17.221 15.0012 17.2401 14.9971 17.257 14.9878L18.9525 14.0519C18.9672 14.0438 18.9836 14.0395 19.0002 14.0395C19.0168 14.0395 19.0332 14.0438 19.0479 14.0519L20.743 14.9874C20.7599 14.9967 20.7789 15.0009 20.798 14.9995C20.817 14.9981 20.8353 14.9911 20.8508 14.9793C20.8663 14.9676 20.8783 14.9515 20.8855 14.9329C20.8928 14.9144 20.8949 14.894 20.8917 14.8743L20.568 12.8928C20.5652 12.8756 20.5664 12.8579 20.5715 12.8412C20.5766 12.8246 20.5856 12.8095 20.5975 12.7973L21.9689 11.3943C21.9826 11.3803 21.9924 11.3626 21.997 11.343C22.0016 11.3235 22.0009 11.303 21.995 11.2839C21.989 11.2647 21.9781 11.2477 21.9634 11.2348C21.9487 11.2219 21.9309 11.2135 21.9119 11.2107L20.0165 10.9217C20.0001 10.9191 19.9845 10.9125 19.9711 10.9022C19.9577 10.8919 19.9468 10.8784 19.9395 10.8627L19.0918 9.05978C19.0833 9.04183 19.0702 9.02672 19.054 9.01616C19.0378 9.0056 19.0191 9 19 9C18.9809 9 18.9622 9.0056 18.946 9.01616C18.9298 9.02672 18.9167 9.04183 18.9082 9.05978L18.0605 10.8627ZM19.0004 10.3225L18.612 11.1488C18.5605 11.2581 18.4846 11.3527 18.3906 11.4244C18.2966 11.4961 18.1874 11.5428 18.0724 11.5604L17.2038 11.6928L17.8323 12.3358C18.0011 12.5087 18.0781 12.7582 18.0384 13.0025L17.8901 13.91L18.6669 13.4812C18.7698 13.4244 18.8843 13.3947 19.0006 13.3947C19.1169 13.3947 19.2314 13.4244 19.3343 13.4812L20.1108 13.91L19.9624 13.0025C19.9428 12.8821 19.9513 12.7585 19.9873 12.6424C20.0232 12.5262 20.0856 12.421 20.1689 12.3358L20.7971 11.6928L19.9284 11.5604C19.8135 11.5428 19.7043 11.4961 19.6103 11.4244C19.5163 11.3527 19.4403 11.2581 19.3888 11.1488L19.0004 10.3225Z"})]})},c={name:"input-rating",settings:{apiVersion:3,title:__("Rating input","jetpack-forms"),description:__("Interactive rating.","jetpack-forms"),parent:["jetpack/field-rating"],category:"contact-form",icon:s,attributes:{},usesContext:["jetpack/field-rating-max","jetpack/field-rating-default","jetpack/field-rating-iconStyle","jetpack/field-rating-onChangeDefault"],supports:{reusable:!1,html:!1,visibility:!1,color:{text:!0,background:!1},typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}}},edit:n.A,save:()=>null}}},82989(e,t,o){"use strict";o.d(t,{A:()=>b});var r=o(94715),a=o(56427),n=o(86087),i=o(27723),s=o(13022),c=o(97622),l=o(62111),d=o(97103),u=o(11435),p=o(10790);const __=i.__,f=["backgroundColor","borderColor","fontFamily","fontSize","style","textColor"],m=["number","text","email","url","tel","time"],b=({attributes:e,clientId:t,isSelected:o,name:i,setAttributes:b,context:g})=>{const{"jetpack/field-share-attributes":k}=g;(0,l.d)(i,k,f,e,b);const{max:h,min:v,placeholder:j,type:y}=e,x=(0,d.A)({clientId:t,inputBlockName:i,inputBlockAttributes:e}),w=(0,s.$)((e=>"dropdown"===e?"jetpack-field-dropdown__toggle":e&&!m.includes(e)?`jetpack-field__${e}`:"jetpack-field__input")(e.type),{inline:"checkbox"===y||"radio"===y}),_=(0,r.useBlockProps)({className:w,style:x?.cssVars}),C=(0,c.A)(t),A=(0,n.useCallback)(e=>{"time"!==y&&b({placeholder:e.target.value})},[b,y]);return"dropdown"===y?(0,p.jsxs)("div",{..._,children:[(0,p.jsx)(r.RichText,{allowedFormats:u.uO,onChange:e=>b({placeholder:e}),value:j||__("Select one option","jetpack-forms"),withoutInteractiveFormatting:!0}),(0,p.jsx)("span",{className:"jetpack-field-dropdown__icon"})]}):"textarea"===y?(0,p.jsx)("textarea",{..._,onChange:A,value:o?j:"",placeholder:j}):"time"===y?(0,p.jsx)("input",{..._,onChange:A,onKeyDown:C,type:"time",value:""}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("input",{..._,onChange:A,onKeyDown:C,type:"text",value:o?j:"",placeholder:j}),"number"===y&&(0,p.jsx)(r.InspectorControls,{children:(0,p.jsxs)(a.PanelBody,{title:__("Settings","jetpack-forms"),className:"jetpack-contact-form__panel",children:[(0,p.jsx)(a.__experimentalNumberControl,{label:__("Minimum value","jetpack-forms"),value:v,onChange:e=>{const t=parseFloat(e);b({min:Number.isFinite(t)?t:void 0})},max:h,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,help:__("The minimum value to accept in the input. Leaving empty allows any negative and positive values.","jetpack-forms")},"min"),(0,p.jsx)(a.__experimentalNumberControl,{label:__("Maximum value","jetpack-forms"),value:h,onChange:e=>{const t=parseFloat(e);b({max:Number.isFinite(t)?t:void 0})},min:v,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,help:__("The maximum value to accept in the input.","jetpack-forms")},"max")]})})]})}},23045(e,t,o){"use strict";o.d(t,{A:()=>l});var r=o(27723),a=o(5573),n=o(71019),i=o(82989),s=o(25127),c=o(10790);const __=r.__,l={name:"input",settings:{apiVersion:3,title:__("Input","jetpack-forms"),description:__("An input for a form field","jetpack-forms"),category:"contact-form",icon:{src:(0,c.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(a.Path,{d:"M19 6.5C19.5304 6.5 20.039 6.71086 20.4141 7.08594C20.7891 7.46101 21 7.96957 21 8.5V15C21 15.5304 20.7891 16.039 20.4141 16.4141C20.039 16.7891 19.5304 17 19 17H5C4.46957 17 3.96101 16.7891 3.58594 16.4141C3.21086 16.039 3 15.5304 3 15V8.5C3 7.96957 3.21086 7.46101 3.58594 7.08594C3.96101 6.71086 4.46957 6.5 5 6.5H19ZM5 8C4.86739 8 4.74025 8.05272 4.64648 8.14648C4.55272 8.24025 4.5 8.36739 4.5 8.5V15C4.5 15.1326 4.55272 15.2597 4.64648 15.3535C4.74025 15.4473 4.86739 15.5 5 15.5H19C19.1326 15.5 19.2597 15.4473 19.3535 15.3535C19.4473 15.2597 19.5 15.1326 19.5 15V8.5C19.5 8.36739 19.4473 8.24025 19.3535 8.14648C19.2597 8.05272 19.1326 8 19 8H5Z"})})},parent:["jetpack/field-date","jetpack/field-email","jetpack/field-name","jetpack/field-number","jetpack/field-select","jetpack/field-telephone","jetpack/field-text","jetpack/field-textarea","jetpack/field-time"],usesContext:["jetpack/field-share-attributes"],supports:{reusable:!1,html:!1,visibility:!1,color:{text:!0,background:!0,gradients:!1},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},attributes:{placeholder:{type:"string",default:""},type:{type:"string"},min:{type:"number"},max:{type:"number"}},edit:i.A,deprecated:n.A,save:s.A}}},39583(e,t,o){"use strict";o.d(t,{A:()=>h});var r=o(94715),a=o(47143),n=o(86087),i=o(27723),s=o(13022),c=o(62111),l=o(97103),d=o(11435),u=o(60594),p=o(10790);const __=i.__,f=["textColor","fontFamily","fontSize","style","requiredIndicator"],m=["jetpack/field-radio","jetpack/field-checkbox-multiple"],b=["jetpack/field-slider","jetpack/field-rating"],g={};const k=({formStyle:e,styles:t,cssVars:o,className:r,children:a,forcePlainStyle:n=!1})=>e!==d.pC.OUTLINED||n?(0,p.jsx)(p.Fragment,{children:a}):(0,p.jsxs)("div",{className:"notched-label",style:o,children:[(0,p.jsx)("div",{className:(0,s.$)("notched-label__leading",r),style:t}),(0,p.jsx)("div",{className:(0,s.$)("notched-label__notch",r),style:t,children:a}),(0,p.jsx)("div",{className:(0,s.$)("notched-label__filler",r),style:t}),(0,p.jsx)("div",{className:(0,s.$)("notched-label__trailing",r),style:t})]}),h=({clientId:e,attributes:t,name:o,setAttributes:i,context:h})=>{const{"jetpack/form-class-name":v,"jetpack/field-required":j,"jetpack/field-share-attributes":y}=h;(0,c.d)(o,y,f,t,i);const{label:x,placeholder:w,requiredText:_,requiredIndicator:C}=t,A=""!==w?w:__("Add label…","jetpack-forms"),S=(0,u.A)(v),{inputBlock:B,parentName:I}=function(e){return(0,a.useSelect)(t=>{const{getBlock:o,getBlockRootClientId:a}=t(r.store),n=a(e);if(!n)return{inputBlock:g,parentName:void 0};const i=o(n);if(!i)return{inputBlock:g,parentName:void 0};let s=m.includes(i.name)?"jetpack/options":"jetpack/input";return"jetpack/field-telephone"===i.name&&(s="jetpack/phone-input"),{inputBlock:i.innerBlocks.find(e=>e.name===s),parentName:i.name}},[e])}(e),N=!b.includes(I),M=(0,s.$)("jetpack-field-label",{"notched-label__label":N&&S===d.pC.OUTLINED,"animated-label__label":N&&S===d.pC.ANIMATED,"below-label__label":S===d.pC.BELOW}),T=(0,l.A)({clientId:e,inputBlockName:B?.name,inputBlockAttributes:B?.attributes}),P=(0,r.useBlockProps)({className:M,style:T?.cssVars}),E=(0,n.useCallback)(e=>{"Enter"===e.key&&d.pC.DEFAULT!==S&&e.preventDefault()},[S]),L=(0,a.useSelect)(e=>e(r.store).getSettings().isPreviewMode,[])?((e,t)=>""===e?t:e??t)(x,A):x;return(0,p.jsx)(k,{formStyle:S,forcePlainStyle:!B||!N,styles:T?.style,cssVars:T?.cssVars,className:T?.className,children:(0,p.jsxs)("div",{...P,children:[(0,p.jsx)(r.RichText,{allowedFormats:d.uO,className:"jetpack-field-label__input",onChange:e=>i({label:e}),placeholder:A,onKeyDown:E,tagName:"label",value:L,withoutInteractiveFormatting:!0}),j&&C&&(0,p.jsx)(r.RichText,{allowedFormats:d.uO,className:"required",onChange:e=>i({requiredText:e}),tagName:"span",value:_||__("(required)","jetpack-forms"),withoutInteractiveFormatting:!0})]})})}},70551(e,t,o){"use strict";o.d(t,{A:()=>c});var r=o(27723),a=o(5573),n=o(39583),i=o(63013),s=o(10790);const __=r.__,c={name:"label",settings:{apiVersion:3,title:__("Label","jetpack-forms"),description:__("A label for a form field","jetpack-forms"),category:"contact-form",icon:{src:(0,s.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(a.Path,{d:"M12.9 6H10.9L6.90002 17H8.80002L9.90002 14H14.1L15.2 17H17.1L12.9 6ZM10.4 12.5L11.9 7.6L13.6 12.5H10.4Z"})})},parent:["jetpack/field-date","jetpack/field-email","jetpack/field-multiple-choice","jetpack/field-name","jetpack/field-number","jetpack/field-rating","jetpack/field-select","jetpack/field-single-choice","jetpack/field-telephone","jetpack/field-text","jetpack/field-textarea","jetpack/field-time","jetpack/field-image-select"],supports:{reusable:!1,html:!1,color:{text:!0,background:!1,gradients:!1},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},visibility:!0},attributes:{label:{type:"string",default:""},placeholder:{type:"string",default:""},requiredText:{type:"string",default:""},requiredIndicator:{type:"boolean",default:!0},metadata:{type:"object",default:{}}},usesContext:["jetpack/form-class-name","jetpack/field-required","jetpack/field-share-attributes"],edit:n.A,save:i.A}}},35802(e,t,o){"use strict";o.d(t,{A:()=>b});var r=o(94715),a=o(56427),n=o(47143),i=o(86087),s=o(27723),c=o(13022),l=o(62111),d=o(11435),u=o(94581),p=o(10790);const __=s.__,f=["textColor","fontFamily","fontSize","style"],m=()=>{},b=({attributes:e,clientId:t,context:o,isSelected:s,mergeBlocks:b,name:g,setAttributes:k})=>{const{"jetpack/field-default-value":h,"jetpack/field-options-type":v="checkbox","jetpack/field-required":j,"jetpack/field-share-attributes":y}=o,{hideInput:x,label:w,isStandalone:_,requiredText:C,placeholder:A,isOther:S,otherPlaceholder:B}=e;(0,l.d)(g,y,f,e,k);const{removeBlock:I}=(0,n.useDispatch)(r.store),N=(0,n.useSelect)(e=>{const{getBlockCount:o,getBlockRootClientId:a}=e(r.store);return o(a(t))},[t]),M=(0,n.useSelect)(e=>{const{getBlockRootClientId:o,getSelectedBlockClientId:a}=e(r.store),n=o(t);if(!n)return!1;return a()===n},[t]),T=()=>{N<=1||I(t)},[P,E]=(0,i.useState)(!1),L=(0,r.useBlockProps)({className:`jetpack-field-option field-option-${v}`}),F=(0,u.A)({content:w,clientId:t,isStandalone:_}),R=(0,u.A)({content:w,clientId:t,isStandalone:_}),V=(0,n.useSelect)(e=>e(r.store).getSettings().isPreviewMode,[]),H=__("Other","jetpack-forms"),z=__("Add option…","jetpack-forms"),D=""!==A?A:S?H:z,O=V?((e,t)=>""===e?t:e??t)(w,D):w;return _?(0,p.jsxs)("div",{...L,children:[!x&&(0,p.jsx)("input",{className:"jetpack-field-option__checkbox",checked:!!h,onChange:m,type:v}),(0,p.jsxs)("div",{className:(0,c.A)("jetpack-field-option__label-wrapper",{"is-other":S}),children:[(0,p.jsx)(r.RichText,{ref:F,identifier:"label",tagName:"div",className:"wp-block",value:O,placeholder:D,__unstableDisableFormats:!0,onChange:e=>k({label:e}),onRemove:T}),j&&(0,p.jsx)(r.RichText,{ref:R,allowedFormats:d.uO,className:"required",onChange:e=>k({requiredText:e}),tagName:"span",value:C||__("(required)","jetpack-forms"),withoutInteractiveFormatting:!0})]})]}):(0,p.jsxs)(p.Fragment,{children:["radio"===v&&(0,p.jsx)(r.InspectorControls,{children:(0,p.jsx)(a.PanelBody,{title:__("Settings","jetpack-forms"),className:"jetpack-contact-form__panel",children:(0,p.jsx)(a.ToggleControl,{label:__('"Other" option',"jetpack-forms"),checked:!!S,onChange:e=>k({isOther:e}),help:__('Show as "Other" option with a text input field below it.',"jetpack-forms"),__nextHasNoMarginBottom:!0})})}),(0,p.jsxs)("li",{...L,children:[(0,p.jsx)("input",{type:v,className:"jetpack-option__type",tabIndex:"-1"}),(0,p.jsx)(r.RichText,{ref:F,identifier:"label",tagName:"div",className:"wp-block",value:O,placeholder:D,__unstableDisableFormats:!0,onChange:e=>k({label:e}),onMerge:b,onRemove:T})]}),"radio"===v&&S&&(s||M)&&(0,p.jsxs)("li",{className:"jetpack-other-text-input-wrapper is-visible",children:[(0,p.jsx)(a.VisuallyHidden,{as:"label",htmlFor:`${t}-other-text`,children:B||__("Please specify…","jetpack-forms")}),(0,p.jsx)("input",{id:`${t}-other-text`,className:"grunion-field jetpack-field__input",onChange:e=>k({otherPlaceholder:e.target.value}),onFocus:()=>E(!0),onBlur:()=>E(!1),type:"text",value:P?B:"",placeholder:B})]})]})}},17660(e,t,o){"use strict";o.d(t,{A:()=>c});var r=o(27723),a=o(5573),n=o(35802),i=o(74440),s=o(10790);const __=r.__,c={name:"option",settings:{apiVersion:3,title:__("Option","jetpack-forms"),description:__("An option for a form choice field","jetpack-forms"),category:"contact-form",icon:{src:(0,s.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(a.Path,{d:"M5 11.25H19V12.75H5V11.25Z"})})},parent:["jetpack/field-checkbox","jetpack/field-consent","jetpack/options"],supports:{reusable:!1,html:!1,visibility:!1,splitting:!0,color:{text:!0,background:!1,gradients:!1},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},merge:(e,{label:t=""})=>({...e,label:(e.label||"")+t}),attributes:{placeholder:{type:"string",default:""},label:{type:"string",default:"",role:"content"},requiredText:{type:"string",default:""},hideInput:{type:"boolean",default:!1},isStandalone:{type:"boolean",default:!1},isOther:{type:"boolean",default:!1,role:"content"},otherPlaceholder:{type:"string",default:__("Please specify…","jetpack-forms"),role:"content"}},usesContext:["jetpack/field-default-value","jetpack/field-options-type","jetpack/field-required","jetpack/field-share-attributes"],edit:n.A,save:i.A,__experimentalLabel:({isOther:e})=>{const t=__("Option (other)","jetpack-forms"),o=__("Option","jetpack-forms");return e?t:o}}}},63087(e,t,o){"use strict";o.d(t,{A:()=>l});var r=o(94715),a=o(13022),n=o(62111),i=o(97103),s=o(10790);const c=["backgroundColor","borderColor","style","textColor"],l=({clientId:e,name:t,context:o,attributes:l,setAttributes:d})=>{const{"jetpack/field-share-attributes":u}=o;(0,n.d)(t,u,c,l,d);const p=(0,i.A)({clientId:e,inputBlockName:t,inputBlockAttributes:l}),f=(0,r.useBlockProps)({className:(0,a.A)("jetpack-field-multiple__list",p?.className),style:p?.cssVars}),m=(0,r.useInnerBlocksProps)(f,{allowedBlocks:["jetpack/option"],defaultBlock:"jetpack/option",template:[["jetpack/option"]],templateInsertUpdatesSelection:!0,templateLock:!1});return(0,s.jsx)("ul",{...m})}},39847(e,t,o){"use strict";o.d(t,{A:()=>c});var r=o(27723),a=o(5573),n=o(63087),i=o(35224),s=o(10790);const __=r.__,c={name:"options",settings:{apiVersion:3,title:__("Options","jetpack-forms"),description:__("A collection of option blocks","jetpack-forms"),category:"contact-form",icon:{src:(0,s.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(a.Path,{d:"M11.1 15.8H20V14.3H11.1V15.8ZM11.1 7.2V8.7H20V7.2H11.1ZM6 13C4.9 13 4 13.9 4 15C4 16.1 4.9 17 6 17C7.1 17 8 16.1 8 15C8 13.9 7.1 13 6 13ZM6 6C4.9 6 4 6.9 4 8C4 9.1 4.9 10 6 10C7.1 10 8 9.1 8 8C8 6.9 7.1 6 6 6Z"})})},parent:["jetpack/field-multiple-choice","jetpack/field-single-choice"],attributes:{type:{type:"string",default:"checkbox"}},allowedBlocks:["jetpack/field-options"],providesContext:{"jetpack/field-options-type":"type"},usesContext:["jetpack/field-share-attributes"],supports:{visibility:!1,spacing:{blockGap:!1},color:{text:!1,background:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}}},edit:n.A,save:i.A}}},35224(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(10790);const n=()=>{const e=r.useBlockProps.save(),t=r.useInnerBlocksProps.save(e);return(0,a.jsx)("ul",{...t})};o.dn(n)},47528(e,t,o){"use strict";o.d(t,{A:()=>f});var r=o(94715),a=o(74997),n=o(56427),i=o(47143),s=o(86087),c=o(27723),l=o(53792),d=o(41002),u=o(71076),p=o(10790);const __=c.__;function f({clientId:e,formClientId:t}){const{setActiveStep:o}=(0,i.useDispatch)(l.M),{insertBlock:c}=(0,i.useDispatch)(r.store),f=(0,u.A)(t),m=(0,d.A)(t),{isSingleStep:b}=(0,i.useSelect)(e=>{const{isSingleStepMode:o}=e(l.M);return{isSingleStep:o(t)}},[t]),g=(0,s.useCallback)((e,t,r,n)=>{const i=(0,a.createBlock)("jetpack/form-step");c(i,t,e),n&&setTimeout(()=>{o(r,i.clientId)},10)},[c,o]);if(!m||0===m.length)return null;const k=m.findIndex(t=>t.clientId===e);return(0,p.jsx)(r.BlockControls,{children:(0,p.jsx)(n.ToolbarGroup,{children:(0,p.jsx)(n.ToolbarDropdownMenu,{icon:null,text:__("Add","jetpack-forms"),popoverProps:{placement:"bottom-start"},toggleProps:{showTooltip:!0,children:__("Add step","jetpack-forms")},children:({onClose:e})=>(0,p.jsxs)(n.MenuGroup,{children:[-1!==k&&(0,p.jsx)(n.MenuItem,{onClick:()=>{g(f,k,t,b),e()},children:__("Add step before","jetpack-forms")}),-1!==k&&(0,p.jsx)(n.MenuItem,{onClick:()=>{g(f,k+1,t,b),e()},children:__("Add step after","jetpack-forms")}),-1===k&&(0,p.jsx)(n.MenuItem,{onClick:()=>{g(f,0,t,b),e()},children:__("Add at the beginning","jetpack-forms")}),-1===k&&(0,p.jsx)(n.MenuItem,{onClick:()=>{g(f,m.length,t,b),e()},children:__("Add at the end","jetpack-forms")})]})})})})}},66634(e,t,o){"use strict";o.d(t,{A:()=>g});var r=o(94715),a=o(56427),n=o(47143),i=o(27723),s=o(88901),c=o(94996),l=o(12528),d=o(53792),u=o(11961),p=o(53703),f=o(63631),m=o(37128),b=o(10790);const __=i.__;function g({formClientId:e}){const{setActiveStep:t,enableSingleStepMode:o,disableSingleStepMode:i}=(0,n.useDispatch)(d.M),{navigateToNextStep:g,navigateToPreviousStep:k,currentStepInfo:h,steps:v}=(0,f.A)(e,!1),{selectedStepId:j,isSingleStep:y}=(0,n.useSelect)(t=>{const{isSingleStepMode:o,getActiveStepId:r}=t(d.M);return{selectedStepId:r(e),isSingleStep:o(e)}},[e]);if(!v||0===v.length)return null;const{index:x,isFirstStep:w,isLastStep:_}=h,C=__("Step navigation is only available in single step mode","jetpack-forms");let A;return A=y?x>=0?`${x+1}`:__("Select step","jetpack-forms"):__("All steps","jetpack-forms"),(0,b.jsx)(r.BlockControls,{children:(0,b.jsxs)(a.ToolbarGroup,{children:[(0,b.jsx)(a.ToolbarDropdownMenu,{icon:y?(0,b.jsx)(u.A,{}):(0,b.jsx)(p.A,{}),text:y?A:__("All steps","jetpack-forms"),label:y?/* translators: %d: step number */
13 __("Currently editing step %d","jetpack-forms").replace("%d",x+1):__("Currently editing all steps","jetpack-forms"),showTooltip:!0,children:({onClose:r})=>(0,b.jsxs)(a.MenuGroup,{label:__("Edit mode","jetpack-forms"),children:[(0,b.jsx)(a.MenuItem,{onClick:()=>{y&&i(e),r()},isSelected:!y,icon:(0,b.jsx)(p.A,{}),suffix:y?null:(0,b.jsx)(a.Icon,{icon:s.A}),children:__("All steps","jetpack-forms")}),(0,b.jsx)("hr",{}),(0,b.jsx)(a.MenuItem,{disabled:!0,icon:(0,b.jsx)(u.A,{}),children:__("Single step","jetpack-forms")}),v.map((n,i)=>(0,b.jsx)(a.MenuItem,{onClick:()=>{t(e,n.clientId),o(e),r()},isSelected:j===n.clientId&&y,suffix:j===n.clientId&&y?(0,b.jsx)(a.Icon,{icon:s.A}):null,children:(0,b.jsx)(a.__experimentalTruncate,{limit:50,children:(0,m.$)(i,n?.attributes?.stepLabel)})},n.clientId))]},"choose-steps")}),(0,b.jsx)(a.ToolbarButton,{showTooltip:!0,label:y?__("Previous step","jetpack-forms"):C,disabled:!y||w,onClick:k,children:(0,b.jsx)(a.Icon,{icon:l.A})}),(0,b.jsx)(a.ToolbarButton,{showTooltip:!0,label:y?__("Next step","jetpack-forms"):C,disabled:!y||_,onClick:g,children:(0,b.jsx)(a.Icon,{icon:c.A})})]})})}},34611(e,t,o){"use strict";o.d(t,{A:()=>u});var r=o(94715),a=o(56427),n=o(86087),i=o(27723),s=o(90438),c=o(5853),l=o(33932),d=o(10790);const __=i.__,u=({attributes:e,helpTextSupport:t=!1,id:o,required:i,setAttributes:u,width:p,extraFieldSettings:f=[]})=>{let m=[(0,d.jsx)(a.ToggleControl,{label:__("Field is required","jetpack-forms"),checked:i,onChange:e=>u({required:e}),help:__('You can edit the "required" label in the editor',"jetpack-forms"),__nextHasNoMarginBottom:!0},"required"),i&&(0,d.jsx)(a.ToggleControl,{label:__("Show required text","jetpack-forms"),checked:!!e.requiredIndicator,onChange:e=>u({requiredIndicator:e}),help:__("Toggle whether to display the required indicator text for this field.","jetpack-forms"),__nextHasNoMarginBottom:!0},"requiredIndicator"),t&&(0,d.jsx)(a.TextControl,{label:__("Help text","jetpack-forms"),value:e.helpText||"",onChange:e=>u({helpText:e||void 0}),help:__("Shown below the field to explain what to enter.","jetpack-forms"),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0},"helpText"),(0,d.jsx)(c.A,{setAttributes:u,width:p},"width"),(0,d.jsx)(a.ToggleControl,{label:__("Sync fields style","jetpack-forms"),checked:e.shareFieldAttributes,onChange:e=>u({shareFieldAttributes:e}),help:__("Deactivate for individual styling of this block","jetpack-forms"),__nextHasNoMarginBottom:!0},"shareFieldAttributes")];return f.forEach(({element:e,index:t})=>{(0,n.isValidElement)(e)&&(t>=0&&t<m.length?m=[...m.slice(0,t),e,...m.slice(t)]:m.push(e))}),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(r.BlockControls,{__experimentalShareWithChildBlocks:!0,children:(0,d.jsx)(l.A,{required:i,onClick:()=>u({required:!i})})}),(0,d.jsx)(r.InspectorControls,{children:(0,d.jsx)(a.PanelBody,{title:__("Field settings","jetpack-forms"),className:"jetpack-contact-form__panel",children:(0,d.jsx)(d.Fragment,{children:m})})}),(0,d.jsx)(s.A,{id:o,setAttributes:u})]})}},28367(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(94715),a=o(27723),n=o(11435),i=o(10790);const __=a.__,s=({attributes:e,setAttributes:t,isActive:o=!1,isDateField:a=!1})=>{const s=e.helpText??"",c=""!==s.trim()||o,l=a?(0,n.fF)(e.dateFormat):null;return c||l?(0,i.jsxs)("div",{className:"contact-form__field-hints",children:[c&&(0,i.jsx)(r.RichText,{tagName:"span",className:"contact-form__field-help",value:s,onChange:e=>t({helpText:e||void 0}),placeholder:__("Add help text…","jetpack-forms"),__unstableDisableFormats:!0,disableLineBreaks:!0}),l&&(0,i.jsx)("span",{className:"contact-form__field-format",children:l})]}):null}},90438(e,t,o){"use strict";o.d(t,{A:()=>l});var r=o(94715),a=o(56427),n=o(86087),i=o(27723),s=o(10790);const __=i.__,c=["accept","action","autocomplete","enctype","method","name","novalidate","target","type","value"],l=({id:e,setAttributes:t})=>{const o=__("Customize the input's name/ID. Only alphanumeric, dash and underscore characters are allowed","jetpack-forms"),[l,d]=(0,n.useState)({error:!1,message:""});return(0,s.jsx)(r.InspectorAdvancedControls,{children:(0,s.jsx)(a.TextControl,{className:l.error?"jetpack-forms-field-controls__input-error":"",label:__("Name/ID","jetpack-forms"),value:e||"",onChange:e=>{const o=e.replace(/[^a-zA-Z0-9_-]/g,"");var r;c.some(e=>e.toLowerCase()===o.toLowerCase())?d({error:!0,message:(r=o,(0,i.sprintf)(/* translators: %s is the reserved attribute name causing an error */
14 __('The name/ID "%s" is a reserved word. Please use a different name.',"jetpack-forms"),r))}):(d({error:!1,message:""}),t({id:o}))},help:l.error?l.message:o,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})})}},5853(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(56427),a=o(27723),n=o(10790);const __=a.__,i=[25,33,50,75,100,"auto"];function s({setAttributes:e,width:t}){return(0,n.jsx)(r.BaseControl,{help:__("Adjust the width of the field to include multiple fields on a single line.","jetpack-forms"),__nextHasNoMarginBottom:!0,children:(0,n.jsx)(r.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,"aria-label":__("Width","jetpack-forms"),isBlock:!0,label:__("Width","jetpack-forms"),onChange:t=>e({width:t}),value:t,children:i.map(e=>(0,n.jsx)(r.__experimentalToggleGroupControlOption,{label:"auto"===e?__("Auto","jetpack-forms"):`${e}%`,value:e},e))})})}},14462(e,t,o){"use strict";o.d(t,{A:()=>b});var r=o(94715),a=o(29491),n=o(86087),i=o(52619),s=o(13022),c=o(72704),l=o(77930),d=o(96839),u=o(11435),p=o(34611),f=o(28367),m=o(10790);const b=e=>{const{attributes:t,clientId:o,id:a,isSelected:i,label:b,required:g,requiredText:k,requiredIndicator:h,setAttributes:v,type:j,width:y}=e,{isInnerBlockSelected:x,hasPlaceholder:w}=(0,c.A)(o),{blockStyle:_}=(0,l.A)(t),C=(0,r.useBlockProps)({className:(0,s.A)("jetpack-field",{"is-selected":i||x,"has-placeholder":w}),style:_}),A=(0,n.useMemo)(()=>[["jetpack/label",{label:b,required:g,requiredText:k,requiredIndicator:h}],["jetpack/input",{type:j}]],[b,g,k,h,j]);(0,d.A)({clientId:o,blockName:"jetpack/field-sync",isSynced:t?.shareFieldAttributes,attributes:t,setAttributes:v});const S=(0,r.useInnerBlocksProps)({className:"jetpack-field__control"},{allowedBlocks:u.lJ,template:A,templateLock:"all"});return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("div",{...C,children:[(0,m.jsx)("div",{...S}),(0,m.jsx)(f.A,{attributes:t,setAttributes:v,isActive:i||x})]}),(0,m.jsx)(p.A,{id:a,required:g,width:y,setAttributes:v,attributes:t,type:j,helpTextSupport:!0})]})},g=(0,a.createHigherOrderComponent)(e=>t=>{if(t.name.indexOf("jetpack/field")>-1){const o=t.attributes.width?"jetpack-field__width-"+t.attributes.width:"";return(0,m.jsx)(e,{...t,className:o})}return(0,m.jsx)(e,{...t})},"withCustomClassName");(0,i.addFilter)("editor.BlockListBlock","jetpack/contact-form",g)},86026(e,t,o){"use strict";o.d(t,{A:()=>l});var r=o(56427),a=o(27723),n=o(33245),i=o(13102),s=o(91980),c=o(10790);const __=a.__,l=({attributes:e,setAttributes:t})=>{const{saveResponses:o=!0,ref:a}=e,l=a?(0,i.o)(a):s.x;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(r.ToggleControl,{label:__("Save responses","jetpack-forms"),checked:o,onChange:e=>t({saveResponses:e}),__nextHasNoMarginBottom:!0}),o&&(0,c.jsx)(n.z,{className:"jetpack-contact-form__view-responses-button",variant:"outline",href:l,children:__("View form responses","jetpack-forms")})]})}},53547(e,t,o){"use strict";o.d(t,{A:()=>l});var r=o(56427),a=o(86087),n=o(27723),i=o(5573),s=o(13022),c=o(10790);const __=n.__,l=({options:e=[],selectedOptionCode:t=null,onOptionChange:o,isOpen:n=!1,onOpenChange:l,className:d="",disabled:u=!1,placeholder:p=__("Search…","jetpack-forms"),parentStyle:f={}})=>{const[m,b]=(0,a.useState)(!1),[g,k]=(0,a.useState)([]),[h,v]=(0,a.useState)(""),[j,y]=(0,a.useState)(null),[x,w]=(0,a.useState)(-1),_=(0,a.useRef)(null),C=(0,a.useRef)([]),A=l?n:m,S=l||b;(0,a.useEffect)(()=>{k(e)},[e]),(0,a.useEffect)(()=>{if(!t||!e.length)return void y(null);const o=e.find(e=>e.code===t);y(o||null)},[t,e]),(0,a.useEffect)(()=>{if(!h)return void k(e);const t=e.filter(e=>e.country.toLowerCase().includes(h.toLowerCase())||e.value.toLowerCase().includes(h.toLowerCase())||e.code.toLowerCase().includes(h.toLowerCase()));k(t)},[h,e]),(0,a.useEffect)(()=>{A&&_.current&&setTimeout(()=>{_.current.focus()},0)},[A]),(0,a.useEffect)(()=>{A||(v(""),w(-1))},[A]),(0,a.useEffect)(()=>{w(-1)},[g]),(0,a.useEffect)(()=>{x>=0&&C.current[x]&&C.current[x].scrollIntoView({block:"nearest",behavior:"auto"})},[x]),(0,a.useEffect)(()=>{if(A&&j&&g.length>0){const e=g.findIndex(e=>e.code===j.code);e>=0&&C.current[e]&&setTimeout(()=>{C.current[e].scrollIntoView({block:"nearest",container:"nearest",behavior:"instant"})},0)}},[A,j,g]);const B=(0,a.useCallback)(()=>{u||S(!A)},[A,S,u]),I=(0,a.useCallback)(e=>{o&&o(e),S(!1)},[o,S]),N=(0,a.useCallback)(e=>{v(e.target.value)},[]),M={down:(0,a.useCallback)(e=>{A&&(e.preventDefault(),w(e=>e<g.length-1?e+1:0))},[A,g.length,w]),up:(0,a.useCallback)(e=>{A&&(e.preventDefault(),w(e=>e>0?e-1:g.length-1))},[A,g.length,w]),enter:(0,a.useCallback)(e=>{if(!A)return;e.preventDefault();let t=null;if(x>=0&&x<g.length?t=g[x]:g.length>0&&h&&(t=g[0]),t){const e={target:{value:t.code},currentTarget:{value:t.code}};o&&o(e),S(!1)}},[A,x,g,o,S,h]),esc:(0,a.useCallback)(e=>{A&&(e.preventDefault(),S(!1))},[A,S])};if(!e.length||!j)return null;const T=(0,s.A)("jetpack-combobox-trigger-arrow",{"is-open":A});return(0,c.jsxs)("div",{className:(0,s.A)("jetpack-custom-combobox",d),children:[(0,c.jsxs)("button",{className:"jetpack-combobox-trigger",role:"button",tabIndex:0,onClick:B,onKeyDown:e=>{"Enter"===e.key||" "===e.key?(e.preventDefault(),B()):"ArrowDown"===e.key&&(e.preventDefault(),A||B())},disabled:u,"aria-expanded":A,"aria-haspopup":"listbox",children:[(0,c.jsx)("span",{className:"jetpack-combobox-selected",children:j.flag}),(0,c.jsx)("span",{className:T,children:(0,c.jsx)(i.SVG,{width:"10",height:"6",viewBox:"0 0 10 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(i.Path,{d:"M1 1L5 5L9 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,c.jsx)("span",{className:"jetpack-combobox-selected",children:j.value})]}),A&&(0,c.jsx)(r.KeyboardShortcuts,{bindGlobal:!0,shortcuts:M,children:(0,c.jsxs)("div",{className:"jetpack-combobox-dropdown jetpack-combobox-open",style:f,children:[(0,c.jsx)("input",{ref:_,className:"jetpack-combobox-search",type:"text",placeholder:p,value:h,onChange:N,role:"combobox","aria-expanded":A,"aria-autocomplete":"list","aria-activedescendant":x>=0?`option-${g[x]?.code}`:void 0}),(0,c.jsx)("div",{className:"jetpack-combobox-options",role:"listbox",children:g.map(({country:e,flag:t,value:o,code:r},a)=>{const n=a===x,i=j?.code===r;return(0,c.jsxs)("button",{ref:e=>{C.current[a]=e},id:`option-${r}`,className:(0,s.A)("jetpack-combobox-option",{"is-focused":n,"jetpack-combobox-option-selected":i}),value:r,onClick:I,role:"option","aria-selected":i,tabIndex:-1,children:[(0,c.jsx)("span",{className:"jetpack-combobox-option-icon",children:t}),(0,c.jsx)("span",{className:"jetpack-combobox-option-value",children:o}),(0,c.jsx)("span",{className:"jetpack-combobox-option-description",children:e})]},r)})})]})})]})}},33932(e,t,o){"use strict";o.d(t,{A:()=>c});var r=o(56427),a=o(27723),n=o(5573),i=o(10790);const __=a.__,s=(0,i.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(n.Path,{d:"M8.23118 8L16 16M8 16L15.7688 8 M6.5054 11.893L17.6567 11.9415M12.0585 17.6563L12 6.5",stroke:"currentColor"})}),c=({required:e,onClick:t,disabled:o=!1,disabledTooltip:a=""})=>{const n=o&&a?a:__("Required","jetpack-forms");return(0,i.jsx)(r.ToolbarGroup,{children:(0,i.jsx)(r.ToolbarButton,{title:n,icon:s,onClick:t,className:e?"is-pressed":void 0,disabled:o})})}},54503(e,t,o){"use strict";o.d(t,{L:()=>c});var r=o(90372),a=o(85985),n=o(82201),i=o(27723),s=o(10790);const __=i.__,c=({requiredPlan:e})=>{const[t,o,i]=(0,a._6)(e,()=>{r.A.tracks.recordEvent("jetpack_editor_block_upgrade_click",{plan:e,context:"editor-canvas",block:"jetpack/field-file"})});return(0,s.jsx)(n.cb,{className:"",title:__("Upgrade to a paid plan to use file uploads.","jetpack-forms"),buttonText:__("Upgrade","jetpack-forms"),checkoutUrl:t,isRedirecting:i,goToCheckoutPage:o})}},54889(e,t,o){"use strict";var r=o(85985),a=o(29491),n=o(86087),i=o(52619),s=o(11435),c=o(1799),l=o(10790);const d=(0,n.lazy)(()=>Promise.all([o.e(662),o.e(913)]).then(o.bind(o,21913))),u="jetpack/forms-conditional-logic",p=(0,a.createHigherOrderComponent)(e=>t=>{return t.isSelected&&("string"==typeof(o=t.name)&&o.startsWith(s.qt)&&null!==(0,c.x)(o))?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(e,{...t}),(0,l.jsx)(n.Suspense,{fallback:null,children:(0,l.jsx)(d,{clientId:t.clientId,attributes:t.attributes,setAttributes:t.setAttributes})})]}):(0,l.jsx)(e,{...t});var o},"withConditionalLogic");!!(0,r.lG)("forms-conditional-logic")&&!(0,i.hasFilter)("editor.BlockEdit",u)&&(0,i.addFilter)("editor.BlockEdit",u,p)},10528(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(94715),a=o(74997),n=o(47143),i=o(86087);function s(e){const{insertBlock:t}=(0,n.useDispatch)(r.store),{getBlock:o}=(0,n.useSelect)(r.store,[]),s=(0,i.useCallback)(()=>({name:"jetpack/input-image-option",attributes:{label:""}}),[]),c=(0,i.useCallback)(r=>{const n=o(e);if(!n)return;const{name:i,attributes:c}=s(),l=(0,a.createBlock)(i,c);(!Number.isInteger(r)||r<0||r>n.innerBlocks.length)&&(r=n.innerBlocks.length),t(l,r,e)},[o,e,s,t]);return{newImageOption:s,addOption:c}}},62111(e,t,o){"use strict";o.d(t,{d:()=>u,w:()=>l});var r=o(29491),a=o(47143),n=o(86087),i=o(66087),s=o(10790);const c=(0,n.createContext)([{},()=>{}]);function l({children:e}){const t=(0,n.useReducer)((e,t)=>{const{name:o,attributes:r}=t;return{...e,[o]:{...e[o]??{},...r}}},{});return(0,s.jsx)(c.Provider,{value:t,children:e})}function d(e,t){return e?Object.keys(e).reduce((o,r)=>(t.every(t=>!(0,i.isEqual)(e[r],t?.[r]))&&(o[r]=e[r]),o),{}):{}}function u(e,t,o,i,s){const{__unstableMarkNextChangeAsNotPersistent:l}=(0,a.useDispatch)("core/block-editor"),u=(0,n.useContext)(c),[p,f]=function(e,t){const[o,r]=t;return(0,n.useMemo)(()=>[o[e],t=>r({name:e,attributes:t})],[e,r,o])}(e,u),m=(0,n.useMemo)(()=>function(e,t){return t.reduce((t,o)=>(t[o]=e[o],t),{})}(i,o),[i,o]),b=(0,r.usePrevious)(m)??m;(0,n.useEffect)(()=>{if(!t||!u)return;if(!p&&m)return void f(m);const e=d(m,[p,b]);if(Object.keys(e).length>0)return void f(e);const o=d(p,[m]);Object.keys(o).length>0&&(l(),s(o))},[t,f,s,m,b,p,l,u])}},76449(e,t,o){"use strict";o.d(t,{L:()=>i,w:()=>n});var r=o(93832),a=o(11435);function n(e,t){return`${t??""}post.php?post=${e}&action=edit`}function i(e,t){return(0,r.addQueryArgs)(`${t??""}post-new.php`,{post_type:a.$8,post_title:e?.trim()||void 0})}},13102(e,t,o){"use strict";o.d(t,{o:()=>a});var r=o(93832);const a=e=>{const t=window.jpFormsBlocks?.defaults?.formsResponsesUrl||"/wp-admin/admin.php?page=jetpack-forms-responses-wp-admin";return(0,r.addQueryArgs)(t,{p:`/responses/inbox?sourceId=${e}`})}},18824(e,t,o){"use strict";o.d(t,{$p:()=>a});var r=o(47143);const a="jetpack-forms/panel-state",n={activePanel:null},i={openPanel:e=>({type:"OPEN_PANEL",panelName:e}),closePanel:()=>({type:"CLOSE_PANEL"})},s={getActivePanel:e=>e.activePanel},c=(0,r.createReduxStore)(a,{reducer:(e=n,t)=>{switch(t.type){case"OPEN_PANEL":return{...e,activePanel:t.panelName};case"CLOSE_PANEL":return{...e,activePanel:null};default:return e}},actions:i,selectors:s});(0,r.select)(a)||(0,r.register)(c)},74506(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(47143),a=o(30036);function n(e){return(0,r.useSelect)(t=>{const o=t(a.Dn).getConfig();return o?.[e]},[e])}},43960(e,t,o){"use strict";o.d(t,{Xw:()=>s,bN:()=>i,bv:()=>r,tN:()=>a,xr:()=>n});const r="RECEIVE_CONFIG",a="RECEIVE_CONFIG_VALUE",n="INVALIDATE_CONFIG",i="SET_CONFIG_LOADING",s="SET_CONFIG_ERROR"},99235(e,t,o){"use strict";o.r(t),o.d(t,{invalidateConfig:()=>s,receiveConfig:()=>n,receiveConfigValue:()=>i,refreshConfig:()=>d,setConfigError:()=>l,setConfigLoading:()=>c});var r=o(43960),a=o(96295);const n=e=>({type:r.bv,config:e}),i=(e,t)=>({type:r.tN,key:e,value:t}),s=()=>({type:r.xr}),c=e=>({type:r.bN,isLoading:e}),l=e=>({type:r.Xw,error:e}),d=()=>(0,a.getConfig)()},30036(e,t,o){"use strict";o.d(t,{Dn:()=>c});var r=o(47143),a=o(99235),n=o(62904),i=o(96295),s=o(39342);const c="jetpack/forms/config",l=(0,r.createReduxStore)(c,{reducer:n.A,actions:a,selectors:s,resolvers:i});(0,r.select)(c)||(0,r.register)(l)},62904(e,t,o){"use strict";o.d(t,{A:()=>i});var r=o(13344),a=o(43960);const n={config:null,isLoading:!1,error:null};function i(e=n,t){switch(t.type){case a.bN:return{...e,isLoading:!!t.isLoading,error:t.isLoading?null:e.error};case a.Xw:return{...e,isLoading:!1,error:t.error??r.m};case a.bv:return{...e,config:t.config??null,isLoading:!1,error:null};case a.tN:return{...e,config:{...e.config??{},[t.key]:t.value}};case a.xr:return{...e,config:null,isLoading:!1};default:return e}}},96295(e,t,o){"use strict";o.r(t),o.d(t,{getConfig:()=>c});var r=o(1455),a=o.n(r),n=o(13344),i=o(43960),s=o(99235);function c(){return async({dispatch:e})=>{await(async e=>{e((0,s.setConfigLoading)(!0));try{const t=await a()({path:"/wp/v2/feedback/config"});e((0,s.receiveConfig)(t))}catch(t){const o=t instanceof Error?t.message:n.m;e((0,s.setConfigError)(o))}finally{e((0,s.setConfigLoading)(!1))}})(e)}}c.isFulfilled=e=>null!==e.config||e.isLoading,c.shouldInvalidate=e=>e.type===i.xr},39342(e,t,o){"use strict";o.r(t),o.d(t,{getConfig:()=>r,getConfigError:()=>i,getConfigValue:()=>a,isConfigLoading:()=>n});const r=e=>e.config,a=(e,t)=>e.config?.[t],n=e=>e.isLoading,i=e=>e.error},13344(e,t,o){"use strict";o.d(t,{m:()=>a});var r=o(27723);const a=(0,r.__)("Unknown error","jetpack-forms")},10355(e,t,o){"use strict";o.d(t,{SS:()=>r,iL:()=>a,uf:()=>i,yc:()=>n});const r="RECEIVE_INTEGRATIONS",a="INVALIDATE_INTEGRATIONS",n="SET_INTEGRATIONS_LOADING",i="SET_INTEGRATIONS_ERROR"},12146(e,t,o){"use strict";o.r(t),o.d(t,{invalidateIntegrations:()=>i,receiveIntegrations:()=>n,refreshIntegrations:()=>l,setIntegrationsError:()=>c,setIntegrationsLoading:()=>s});var r=o(10355),a=o(66226);const n=e=>({type:r.SS,items:e}),i=()=>({type:r.iL}),s=e=>({type:r.yc,isLoading:e}),c=e=>({type:r.uf,error:e}),l=()=>(0,a.getIntegrations)()},75517(e,t,o){"use strict";o.d(t,{Qf:()=>c});var r=o(47143),a=o(12146),n=o(27845),i=o(66226),s=o(58507);const c="jetpack/forms/integrations",l=(0,r.createReduxStore)(c,{reducer:n.A,actions:a,selectors:s,resolvers:i});(0,r.select)(c)||(0,r.register)(l)},27845(e,t,o){"use strict";o.d(t,{A:()=>i});var r=o(13344),a=o(10355);const n={items:null,isLoading:!1,error:null};function i(e=n,t){switch(t.type){case a.yc:return{...e,isLoading:!!t.isLoading,error:t.isLoading?null:e.error};case a.uf:return{...e,isLoading:!1,error:t.error??r.m};case a.SS:return{...e,items:t.items,isLoading:!1,error:null};case a.iL:return{...e,items:null,isLoading:!1};default:return e}}},66226(e,t,o){"use strict";o.r(t),o.d(t,{getIntegrations:()=>u,resetMetadataFlag:()=>d});var r=o(1455),a=o.n(r),n=o(93832),i=o(13344),s=o(10355),c=o(12146);let l=!1;const d=()=>{l=!1},u=()=>async({dispatch:e})=>{e((0,c.setIntegrationsLoading)(!0));try{l||(await(async({dispatch:e})=>{const t=(await a()({path:"/wp/v2/feedback/integrations-metadata"})).map(e=>({...e,pluginFile:null,isInstalled:!1,isActive:!1,isConnected:!1,needsConnection:"service"===e.type,version:null,settingsUrl:null,details:{},__isPartial:!0}));e((0,c.receiveIntegrations)(t))})({dispatch:e}),l=!0),await(async({dispatch:e})=>{const t=(0,n.addQueryArgs)("/wp/v2/feedback/integrations",{version:2}),o=await a()({path:t});e((0,c.receiveIntegrations)(o))})({dispatch:e})}catch(t){const o=t instanceof Error?t.message:i.m;e((0,c.setIntegrationsError)(o))}finally{e((0,c.setIntegrationsLoading)(!1))}};u.shouldInvalidate=e=>e.type===s.iL},58507(e,t,o){"use strict";o.r(t),o.d(t,{getIntegrations:()=>r,getIntegrationsError:()=>n,isIntegrationsLoading:()=>a});const r=e=>e.items,a=e=>e.isLoading,n=e=>e.error},10067(e,t,o){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const o="color: "+this.color;t.splice(1,0,o,"color: inherit");let r=0,a=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(a=r))}),t.splice(a,0,o)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=o(78926)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},78926(e,t,o){e.exports=function(e){function t(e){let o,a,n,i=null;function s(...e){if(!s.enabled)return;const r=s,a=Number(new Date),n=a-(o||a);r.diff=n,r.prev=o,r.curr=a,o=a,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(o,a)=>{if("%%"===o)return"%";i++;const n=t.formatters[a];if("function"==typeof n){const t=e[i];o=n.call(r,t),e.splice(i,1),i--}return o}),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(a!==t.namespaces&&(a=t.namespaces,n=t.enabled(e)),n),set:e=>{i=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,o){const r=t(this.namespace+(void 0===o?":":o)+e);return r.log=this.log,r}function a(e,t){let o=0,r=0,a=-1,n=0;for(;o<e.length;)if(r<t.length&&(t[r]===e[o]||"*"===t[r]))"*"===t[r]?(a=r,n=o,r++):(o++,r++);else{if(-1===a)return!1;r=a+1,n++,o=n}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const o=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of o)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const o of t.skips)if(a(e,o))return!1;for(const o of t.names)if(a(e,o))return!0;return!1},t.humanize=o(44997),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(o=>{t[o]=e[o]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let o=0;for(let t=0;t<e.length;t++)o=(o<<5)-o+e.charCodeAt(t),o|=0;return t.colors[Math.abs(o)%t.colors.length]},t.enable(t.load()),t}},15875(e){"use strict";e.exports={consumer_slug:"jetpack-forms"}},97999(e){"use strict";e.exports=window.JetpackScriptDataModule},87687(e){"use strict";e.exports=window.JetpackSharedStores},51609(e){"use strict";e.exports=window.React},75795(e){"use strict";e.exports=window.ReactDOM},10790(e){"use strict";e.exports=window.ReactJSXRuntime},66087(e){"use strict";e.exports=window.lodash},20195(e){"use strict";e.exports=window.wp.a11y},1455(e){"use strict";e.exports=window.wp.apiFetch},94715(e){"use strict";e.exports=window.wp.blockEditor},74997(e){"use strict";e.exports=window.wp.blocks},56427(e){"use strict";e.exports=window.wp.components},29491(e){"use strict";e.exports=window.wp.compose},3582(e){"use strict";e.exports=window.wp.coreData},47143(e){"use strict";e.exports=window.wp.data},38443(e){"use strict";e.exports=window.wp.date},98490(e){"use strict";e.exports=window.wp.domReady},43656(e){"use strict";e.exports=window.wp.editor},86087(e){"use strict";e.exports=window.wp.element},52619(e){"use strict";e.exports=window.wp.hooks},18537(e){"use strict";e.exports=window.wp.htmlEntities},27723(e){"use strict";e.exports=window.wp.i18n},94252(e){"use strict";e.exports=window.wp.jpI18nLoader},692(e){"use strict";e.exports=window.wp.notices},92279(e){"use strict";e.exports=window.wp.plugins},5573(e){"use strict";e.exports=window.wp.primitives},13053(e){"use strict";e.exports=window.wp.privateApis},21052(e){"use strict";e.exports=window.wp.theme},93832(e){"use strict";e.exports=window.wp.url},60266(e,t,o){"use strict";function r(e,t){const o={};for(const r in e){const a=e[r];if(t?.hasOwnProperty(r)){const e=t[r](a);null!=e&&Object.assign(o,e);continue}!0===a?o[`data-${r.toLowerCase()}`]="":a&&(o[`data-${r.toLowerCase()}`]=a.toString())}return o}o.d(t,{v:()=>r})},93307(e,t,o){"use strict";o.d(t,{o:()=>f});var r=o(53169),a=o(51609),n=o(8970),i=o(28641),s=o(70071),c=o(12570),l=o(60266),d=o(73850),u=o(21044),p=o(45339);function f(e,t,o={}){let f=t.render;!1!==o.enabled&&(f=function(e){if(e?.$$typeof!==m)return e;const t=a.Children.toArray(e)[0];return a.isValidElement(t)?t:e}(f));const b=function(e,t,o){const{className:r,style:a}=e,{state:f=c.t0,ref:m,props:b,stateAttributesMapping:g,enabled:k=!0}=t,h=k?(0,d.S)(r,f):void 0,v=k?(0,u.m)(a,f):void 0,j=k?(0,l.v)(f,g):c.t0,y=k&&b?function(e){if(Array.isArray(e))return(0,p.lZ)(e);return(0,p.v6)(void 0,e)}(b):void 0,x=k?(0,s.r)(j,y)??{}:c.t0;"undefined"!=typeof document&&(k?Array.isArray(m)?x.ref=(0,n.U)([x.ref,(0,i.v)(o),...m]):x.ref=(0,n.a)(x.ref,(0,i.v)(o),m):(0,n.a)(null,null));if(!k)return c.t0;void 0!==h&&(x.className=(0,p.VN)(x.className,h));void 0!==v&&(x.style=(0,s.r)(x.style,v));return x}(t,o,f);if(!1===o.enabled)return null;return function(e,t,o,n){if(t){if("function"==typeof t)return t(o,n);const e=(0,p.v6)(o,t.props);return e.ref=o.ref,a.cloneElement(t,e)}if(e&&"string"==typeof e)return function(e,t){if("button"===e)return(0,a.createElement)("button",{type:"button",...t,key:t.key});if("img"===e)return(0,a.createElement)("img",{alt:"",...t,key:t.key});return a.createElement(e,t)}(e,o);throw new Error((0,r.A)(8))}(e,f,b,o.state??c.t0)}const m=Symbol.for("react.lazy")},45339(e,t,o){"use strict";o.d(t,{PT:()=>m,VN:()=>b,lZ:()=>i,v6:()=>n});var r=o(70071);const a={};function n(e,t,o,r,a){if(!(o||r||a||e))return s(t);let n=s(e);return t&&(n=c(n,t)),o&&(n=c(n,o)),r&&(n=c(n,r)),a&&(n=c(n,a)),n}function i(e){if(0===e.length)return a;if(1===e.length)return s(e[0]);let t=s(e[0]);for(let o=1;o<e.length;o+=1)t=c(t,e[o]);return t}function s(e){return d(e)?{...u(e,a)}:function(e){const t={...e};for(const e in t){const o=t[e];l(e,o)&&(t[e]=f(o))}return t}(e)}function c(e,t){return d(t)?u(t,e):function(e,t){if(!t)return e;for(const o in t){const a=t[o];switch(o){case"style":e[o]=(0,r.r)(e.style,a);break;case"className":e[o]=b(e.className,a);break;default:l(o,a)?e[o]=p(e[o],a):e[o]=a}}return e}(e,t)}function l(e,t){const o=e.charCodeAt(0),r=e.charCodeAt(1),a=e.charCodeAt(2);return 111===o&&110===r&&a>=65&&a<=90&&("function"==typeof t||void 0===t)}function d(e){return"function"==typeof e}function u(e,t){return d(e)?e(t):e??a}function p(e,t){return t?e?(...o)=>{const r=o[0];if(g(r)){const a=r;m(a);const n=t(...o);return a.baseUIHandlerPrevented||e?.(...o),n}const a=t(...o);return e?.(...o),a}:f(t):e}function f(e){return e?(...t)=>{const o=t[0];return g(o)&&m(o),e(...t)}:e}function m(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function b(e,t){return t?e?t+" "+e:t:e}function g(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}},899(e,t,o){"use strict";o.d(t,{C:()=>a});var r=o(93307);function a(e){return(0,r.o)(e.defaultTagName??"div",e,e)}},73850(e,t,o){"use strict";function r(e,t){return"function"==typeof e?e(t):e}o.d(t,{S:()=>r})},21044(e,t,o){"use strict";function r(e,t){return"function"==typeof e?e(t):e}o.d(t,{m:()=>r})},12570(e,t,o){"use strict";function r(){}o.d(t,{Ml:()=>a,t0:()=>n,tE:()=>r});const a=Object.freeze([]),n=Object.freeze({})},53169(e,t,o){"use strict";o.d(t,{A:()=>n});var r,a;const n=(r="https://base-ui.com/production-error",a="Base UI",function(e,...t){const o=new URL(r);return o.searchParams.set("code",e.toString()),t.forEach(e=>o.searchParams.append("args[]",e)),`${a} error #${e}; visit ${o} for the full message.`})},28641(e,t,o){"use strict";o.d(t,{v:()=>n});var r=o(51609),a=o(83100);function n(e){if(!r.isValidElement(e))return null;const t=e,o=t.props;return((0,a._)(19)?o?.ref:t.ref)??null}},70071(e,t,o){"use strict";function r(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}o.d(t,{r:()=>r})},83100(e,t,o){"use strict";o.d(t,{_:()=>n});var r=o(51609);const a=parseInt(r.version,10);function n(e){return a>=e}},8970(e,t,o){"use strict";o.d(t,{U:()=>n,a:()=>a});var r=o(31749);function a(e,t,o,a){const n=(0,r.j)(i).current;return function(e,t,o,r,a){return e.refs[0]!==t||e.refs[1]!==o||e.refs[2]!==r||e.refs[3]!==a}(n,e,t,o,a)&&s(n,[e,t,o,a]),n.callback}function n(e){const t=(0,r.j)(i).current;return function(e,t){return e.refs.length!==t.length||e.refs.some((e,o)=>e!==t[o])}(t,e)&&s(t,e),t.callback}function i(){return{callback:null,cleanup:null,refs:[]}}function s(e,t){e.refs=t,t.every(e=>null==e)?e.callback=null:e.callback=o=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=o){const r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){const a=t[e];if(null!=a)switch(typeof a){case"function":{const t=a(o);"function"==typeof t&&(r[e]=t);break}case"object":a.current=o}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){const o=t[e];if(null!=o)switch(typeof o){case"function":{const t=r[e];"function"==typeof t?t():o(null);break}case"object":o.current=null}}}}}}},31749(e,t,o){"use strict";o.d(t,{j:()=>n});var r=o(51609);const a={};function n(e,t){const o=r.useRef(a);return o.current===a&&(o.current=e(t)),o}},53758(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790),n=(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,a.jsx)(r.Path,{d:"M12 8L12 13M12 14.5L12 16M4.75 12C4.75 7.99593 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})})},88901(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790),n=(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,a.jsx)(r.Path,{d:"M7 12L10 15L17 8",vectorEffect:"non-scaling-stroke"})})},51489(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790),n=(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,a.jsx)(r.Path,{d:"M5 19L19 5M19 19L5 5",vectorEffect:"non-scaling-stroke"})})},20071(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790),n=(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M3 7c0-1.1.9-2 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Zm2-.5h14c.3 0 .5.2.5.5v1L12 13.5 4.5 7.9V7c0-.3.2-.5.5-.5Zm-.5 3.3V17c0 .3.2.5.5.5h14c.3 0 .5-.2.5-.5V9.8L12 15.4 4.5 9.8Z"})})},49099(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790),n=(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.218 5.377a.25.25 0 0 0-.436 0l-7.29 12.96a.25.25 0 0 0 .218.373h14.58a.25.25 0 0 0 .218-.372l-7.29-12.96Zm-1.743-.735c.669-1.19 2.381-1.19 3.05 0l7.29 12.96a1.75 1.75 0 0 1-1.525 2.608H4.71a1.75 1.75 0 0 1-1.525-2.608l7.29-12.96ZM12.75 17.46h-1.5v-1.5h1.5v1.5Zm-1.5-3h1.5v-5h-1.5v5Z"})})},41831(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790),n=(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M16.375 4.5H4.625a.125.125 0 0 0-.125.125v8.254l2.859-1.54a.75.75 0 0 1 .68-.016l2.384 1.142 2.89-2.074a.75.75 0 0 1 .874 0l2.313 1.66V4.625a.125.125 0 0 0-.125-.125Zm.125 9.398-2.75-1.975-2.813 2.02a.75.75 0 0 1-.76.067l-2.444-1.17L4.5 14.583v1.792c0 .069.056.125.125.125h11.75a.125.125 0 0 0 .125-.125v-2.477ZM4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.273 3.728 18 4.625 18h11.75c.898 0 1.625-.727 1.625-1.625V4.625C18 3.728 17.273 3 16.375 3H4.625ZM20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})})},41490(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790),n=(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)(r.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm6.5 8c0 .6 0 1.2-.2 1.8h-2.7c0-.6.2-1.1.2-1.8s0-1.2-.2-1.8h2.7c.2.6.2 1.1.2 1.8Zm-.9-3.2h-2.4c-.3-.9-.7-1.8-1.1-2.4-.1-.2-.2-.4-.3-.5 1.6.5 3 1.6 3.8 3ZM12.8 17c-.3.5-.6 1-.8 1.3-.2-.3-.5-.8-.8-1.3-.3-.5-.6-1.1-.8-1.7h3.3c-.2.6-.5 1.2-.8 1.7Zm-2.9-3.2c-.1-.6-.2-1.1-.2-1.8s0-1.2.2-1.8H14c.1.6.2 1.1.2 1.8s0 1.2-.2 1.8H9.9ZM11.2 7c.3-.5.6-1 .8-1.3.2.3.5.8.8 1.3.3.5.6 1.1.8 1.7h-3.3c.2-.6.5-1.2.8-1.7Zm-1-1.2c-.1.2-.2.3-.3.5-.4.7-.8 1.5-1.1 2.4H6.4c.8-1.4 2.2-2.5 3.8-3Zm-1.8 8H5.7c-.2-.6-.2-1.1-.2-1.8s0-1.2.2-1.8h2.7c0 .6-.2 1.1-.2 1.8s0 1.2.2 1.8Zm-2 1.4h2.4c.3.9.7 1.8 1.1 2.4.1.2.2.4.3.5-1.6-.5-3-1.6-3.8-3Zm7.4 3c.1-.2.2-.3.3-.5.4-.7.8-1.5 1.1-2.4h2.4c-.8 1.4-2.2 2.5-3.8 3Z"})})},36092(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790),n=(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)(r.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"})})},28847(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790),n=(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,a.jsx)(r.Path,{d:"M12 16V11M12 9.5V8M19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12C4.75 7.99594 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})})},55173(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790),n=(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)(r.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"})})},94996(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790),n=(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,a.jsx)(r.Path,{d:"M7 17.5L12 12L7 6.5M13 17.5L18 12L13 6.5",vectorEffect:"non-scaling-stroke"})})},92634(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790),n=(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)(r.Path,{fillRule:"evenodd",d:"M15.5 9.5a1 1 0 100-2 1 1 0 000 2zm0 1.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5zm-2.25 6v-2a2.75 2.75 0 00-2.75-2.75h-4A2.75 2.75 0 003.75 15v2h1.5v-2c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v2h1.5zm7-2v2h-1.5v-2c0-.69-.56-1.25-1.25-1.25H15v-1.5h2.5A2.75 2.75 0 0120.25 15zM9.5 8.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0z"})})},12528(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790),n=(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,a.jsx)(r.Path,{d:"M17 6.5L12 12L17 17.5M11 6.5L6 12L11 17.5",vectorEffect:"non-scaling-stroke"})})},42243(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790),n=(0,a.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,a.jsx)(r.Path,{d:"M12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,a.jsx)(r.Path,{d:"M9 12L11 14L15 10",vectorEffect:"non-scaling-stroke"})]})},28755(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790),n=(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)(r.Path,{d:"M20.7 12.7s0-.1-.1-.2c0-.2-.2-.4-.4-.6-.3-.5-.9-1.2-1.6-1.8-.7-.6-1.5-1.3-2.6-1.8l-.6 1.4c.9.4 1.6 1 2.1 1.5.6.6 1.1 1.2 1.4 1.6.1.2.3.4.3.5v.1l.7-.3.7-.3Zm-5.2-9.3-1.8 4c-.5-.1-1.1-.2-1.7-.2-3 0-5.2 1.4-6.6 2.7-.7.7-1.2 1.3-1.6 1.8-.2.3-.3.5-.4.6 0 0 0 .1-.1.2s0 0 .7.3l.7.3V13c0-.1.2-.3.3-.5.3-.4.7-1 1.4-1.6 1.2-1.2 3-2.3 5.5-2.3H13v.3c-.4 0-.8-.1-1.1-.1-1.9 0-3.5 1.6-3.5 3.5s.6 2.3 1.6 2.9l-2 4.4.9.4 7.6-16.2-.9-.4Zm-3 12.6c1.7-.2 3-1.7 3-3.5s-.2-1.4-.6-1.9L12.4 16Z"})})},58384(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(5573),a=o(10790),n=(0,a.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,a.jsx)(r.Path,{d:"M4.75 15V19.25H12M12 19.25V4.5M12 19.25H19.25V15M17.5 10L12 4.5L6.5 10",vectorEffect:"non-scaling-stroke"})})},13022(e,t,o){"use strict";function r(e){var t,o,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=r(e[t]))&&(a&&(a+=" "),a+=o)}else for(o in e)e[o]&&(a&&(a+=" "),a+=o);return a}function a(){for(var e,t,o=0,a="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}o.d(t,{$:()=>a,A:()=>n});const n=a},82966(e,t,o){"use strict";o.d(t,{P:()=>z});var r=o(85985),a=(o(54889),o(73750)),n=o(34042),i=o(34394),s=o(62650),c=o(76755),l=o(97495),d=o(73802),u=o(67104),p=o(19579),f=o(91912),m=o(99105),b=o(5804),g=o(13930),k=o(81250),h=o(19083),v=o(90149),j=o(63677),y=o(74294),x=o(21264),w=o(41825),_=o(73826),C=o(62377),A=o(68252),S=o(71263),B=o(52355),I=o(91845),N=o(16064),M=o(31196),T=o(23045),P=o(64439),E=o(74666),L=o(44713),F=o(76141),R=o(70551),V=o(17660),H=o(39847);const z=[R.A,i.A,T.A,V.A,H.A,s.Ay,c.Ay,l.Ay,h.Ay,p.Ay,d.Ay,m.Ay,b.Ay,g.Ay,E.A,v.Ay,x.Ay,C.Ay,y.Ay,w.Ay,_.Ay,u.Ay,k.Ay,F.A,j.Ay,L.A,f.Ay,A.A,P.A,a.A,n.A,...(0,r.lG)("multistep-form")?[B.Ay,I.Ay,N.Ay,M.Ay,S.Ay]:[]]},53389(e,t,o){"use strict";o.d(t,{A:()=>i});var r=o(47143),a=o(86087),n=o(75517);function i({attributes:e,setAttributes:t}){const{__unstableMarkNextChangeAsNotPersistent:o}=(0,r.useDispatch)("core/block-editor"),i=(0,r.useSelect)(e=>e(n.Qf).getIntegrations()||[],[]),s=(0,r.useSelect)(e=>e(n.Qf).isIntegrationsLoading(),[]);(0,a.useEffect)(()=>{if(s||!Array.isArray(i))return;const r=e=>i.find(t=>t?.id===e),a=r("zero-bs-crm"),n=r("mailpoet"),c=r("salesforce");void 0===e?.jetpackCRM&&a&&(o(),t({jetpackCRM:!!a.enabledByDefault})),void 0===e?.mailpoet?.enabledForForm&&n&&(o(),t({mailpoet:{...e.mailpoet,enabledForForm:!!n.enabledByDefault}})),void 0===e?.salesforceData?.sendToSalesforce&&c&&(o(),t({salesforceData:{...e.salesforceData,sendToSalesforce:!!c.enabledByDefault}}))},[s,i,e?.jetpackCRM,e.mailpoet,e.salesforceData,t,o])}},62612(e,t,o){"use strict";o.d(t,{A:()=>c});var r=o(74997),a=o(27723),n=o(66087);const __=a.__,i=(e,t,o)=>{const r=o.match(new RegExp(`\\[${e}[^\\]]* ${t}="([^"]*)"`,"im"));if(r&&r.length)return r[1];const a=o.match(new RegExp(`\\[${e}[^\\]]* ${t}='([^']*)'`,"im"));if(a&&a.length)return a[1];const n=o.match(new RegExp(`\\[${e}[^\\]]* ${t}=([^\\s]*)\\s`,"im"));return!(!n||!n.length)&&n[1]},s={root:{},innerBlocks:[]},c={from:[{type:"shortcode",tag:"contact-form",isMatch:function(e){return void 0!==e.named.ref},attributes:{ref:{type:"number",shortcode:({named:{ref:e}})=>{const t=parseInt(e,10);return Number.isNaN(t)||t<=0?void 0:t}}}},{type:"raw",priority:1,isMatch:e=>!("P"!==e.nodeName||!(/\[contact-form(\s.*?)?\](?:([^\[]+)?)?/g.test(e.textContent)||/\[contact-field(\s.*?)?\](?:([^\[]+)?)?/g.test(e.textContent)||/\[\/contact-form]/g.test(e.textContent))),transform:e=>{const t=e.textContent.replace("<br>","");if(t.includes("[contact-form")&&(s.root={},s.innerBlocks=[],s.root=(e=>{const t={to:i("contact-form","to",e),subject:i("contact-form","subject",e),submitButtonText:i("contact-form","submit_button_text",e)};return{blockName:"jetpack/contact-form",attrs:(0,n.pickBy)(t,n.identity)}})(t)),t.includes("[contact-field")){const e=t.match(/(\[contact-field[\s\S]*?\/?])/g);e&&e.length>0&&e.forEach(e=>{s.innerBlocks.push((e=>{const t={label:i("contact-field","label",e),placeholder:i("contact-field","placeholder",e),required:i("contact-field","required",e),options:i("contact-field","options",e),helpText:i("contact-field","helptext",e)},o=(e=>{const t="jetpack",o={text:`${t}/field-text`,url:`${t}/field-text`,textarea:`${t}/field-textarea`,radio:`${t}/field-radio`,checkbox:`${t}/field-checkbox`,"checkbox-multiple":`${t}/field-checkbox-multiple`,select:`${t}/field-select`,email:`${t}/field-email`,name:`${t}/field-name`,number:`${t}/field-number`,default:`${t}/field-text`,time:`${t}/field-time`};return o[e]?o[e]:o.default})(i("contact-field","type",e));return t.options&&(t.options=t.options.split(",")),(0,r.createBlock)(o,(0,n.pickBy)(t,n.identity))})(e))})}if(t.includes("[/contact-form]")){s.innerBlocks.push((0,r.createBlock)("jetpack/button",{element:"button",text:s.root.attrs.submitButtonText||__("Contact Us","jetpack-forms")}));return(0,r.createBlock)(s.root.blockName,s.root.attrs,s.innerBlocks)}return!1}}],to:[{type:"block",blocks:["jetpack/subscriptions"],transform:()=>(0,r.createBlock)("jetpack/subscriptions")}]}},49226(e,t,o){"use strict";o.d(t,{A:()=>r});const r=function({batch:e,setAttributes:t,replaceInnerBlocks:o,selectBlock:r,clientId:a,variation:n,createBlocksFromTemplate:i}){e(()=>{n?.attributes&&t(n.attributes),n?.innerBlocks&&o(a,i(n.innerBlocks)),r(a)})}},97329(e,t,o){"use strict";o.d(t,{Vv:()=>i,o8:()=>s,u6:()=>n});var r=o(27723);const __=r.__,_x=r._x,a={draft:_x("Draft","form status","jetpack-forms"),pending:_x("Pending","form status","jetpack-forms"),future:_x("Scheduled","form status","jetpack-forms"),private:_x("Private","form status","jetpack-forms"),trash:_x("Trashed","form status","jetpack-forms")},n=__("Form","jetpack-forms");function i(e){return"string"==typeof e?e:e&&"object"==typeof e&&"rendered"in e?e.rendered:""}function s({title:e,status:t,defaultLabel:o=n}){const i=e||o;if("publish"===t)
15 /* translators: %s: Form title, e.g., "Contact Us" */
16 return(0,r.sprintf)(__("Form: %s","jetpack-forms"),i);const s=a[t]||t;
17 /* translators: 1: Form title, 2: Form status (e.g., Draft, Scheduled) */return(0,r.sprintf)(__("Form: %1$s (%2$s)","jetpack-forms"),i,s)}},75205(){"use strict";function e(e){return"rgba(0, 0, 0, 0)"===e||"transparent"===e||"#00000000"===e||"none"===e||"transparent none"===e}window.jetpackForms=window.jetpackForms||{},window.jetpackForms.getBackgroundColor=function(e){let t=window.getComputedStyle(e).backgroundColor;for(;"rgba(0, 0, 0, 0)"===t&&e.parentNode&&e.parentNode.nodeType===window.Node.ELEMENT_NODE;){if("wp-block-cover"===(e=e.parentNode).className){const o=e.querySelector(".wp-block-cover__background");t=window.getComputedStyle(o).backgroundColor;continue}t=window.getComputedStyle(e).backgroundColor}return t},window.jetpackForms.getInverseReadableColor=function(e){if(!e)return"#FFFFFF";let t,o,r;if(e.startsWith("#")){let a=e.slice(1);3===a.length&&(a=a.split("").map(e=>e+e).join("")),t=parseInt(a.slice(0,2),16),o=parseInt(a.slice(2,4),16),r=parseInt(a.slice(4,6),16)}else{const a=e.match(/(\d+),\s*(\d+),\s*(\d+)/);if(!a)return"#000000";t=+a[1],o=+a[2],r=+a[3]}return.299*t+.587*o+.114*r>186?"#000000":"#FFFFFF"},window.jetpackForms.generateStyleVariables=function(t){if(!t)return;const o=window["editor-canvas"]?window["editor-canvas"].document:document,r=o.querySelector("body"),a=o.createElement("div");a.className="contact-form__style-probe",a.style="position: absolute; z-index: -1; width: 1px; height: 1px; visibility: hidden",a.innerHTML='\n\t\t\t<div class="contact-form">\n\t\t\t\t<div class="wp-block-buttons">\n\t\t\t\t\t<div class="wp-block-button">\n\t\t\t\t\t\t<div class="wp-block-button__link wp-element-button btn-primary">Test</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="wp-block-buttons">\n\t\t\t\t\t<div class="wp-block-button is-style-outline">\n\t\t\t\t\t\t<div class="wp-block-button__link wp-element-button btn-outline">Test</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="jetpack-field">\n\t\t\t\t\t<input class="jetpack-field__input" type="text">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t',t.parentNode.appendChild(a);const n=a.querySelector(".contact-form"),i=a.querySelector(".btn-primary"),s=a.querySelector(".btn-outline"),c=a.querySelector('input[type="text"]'),l=window.jetpackForms.getBackgroundColor(r),d=window.jetpackForms.getBackgroundColor(c),u=window.getComputedStyle(n).color,p=window.jetpackForms.getInverseReadableColor(u),{border:f,borderColor:m,backgroundColor:b,color:g,padding:k}=window.getComputedStyle(i),{backgroundColor:h,border:v,borderWidth:j,borderRadius:y,color:x,padding:w,lineHeight:_}=window.getComputedStyle(s),C=window.jetpackForms.getBackgroundColor(s),A=h===x?"transparent":h,{color:S,padding:B,paddingTop:I,paddingLeft:N,border:M,borderColor:T,borderWidth:P,borderStyle:E,borderRadius:L,fontSize:F,fontFamily:R,lineHeight:V,height:H,backdropFilter:z,backgroundColor:D,filter:O}=window.getComputedStyle(c);return a.remove(),{"--jetpack--contact-form--primary-color":b,"--jetpack--contact-form--background-color":l,"--jetpack--contact-form--body-text-color":u,"--jetpack--contact-form--inverted-body-text-color":p,"--jetpack--contact-form--text-color":S,"--jetpack--contact-form--border":M,"--jetpack--contact-form--border-color":T,"--jetpack--contact-form--border-size":P,"--jetpack--contact-form--border-style":E,"--jetpack--contact-form--border-radius":L,...e(D)?{}:{"--jetpack--contact-form--input-background":D},"--jetpack--contact-form--input-backdrop-filter":z,"--jetpack--contact-form--input-background-fallback":d,"--jetpack--contact-form--input-padding":B,"--jetpack--contact-form--input-padding-top":I,"--jetpack--contact-form--input-padding-left":N,"--jetpack--contact-form--input-height":H,"--jetpack--contact-form--input-filter":O,"--jetpack--contact-form--font-size":F,"--jetpack--contact-form--font-family":R,"--jetpack--contact-form--line-height":"normal"===V?"1.2em":V,"--jetpack--contact-form--button-primary--color":g,"--jetpack--contact-form--button-primary--background-color":b,"--jetpack--contact-form--button-primary--border":f,"--jetpack--contact-form--button-primary--border-color":m,"--jetpack--contact-form--button-primary--padding":k,"--jetpack--contact-form--button-outline--padding":w,"--jetpack--contact-form--button-outline--border":v,...e(h)?{}:{"--jetpack--contact-form--button-outline--background-color":A},"--jetpack--contact-form--button-outline--background-color-fallback":C,"--jetpack--contact-form--button-outline--border-size":j,"--jetpack--contact-form--button-outline--border-radius":y,"--jetpack--contact-form--button-outline--text-color":x,"--jetpack--contact-form--button-outline--line-height":_}}},53926(e,t,o){"use strict";function r({formId:e,batch:t,setAttributes:o,selectBlock:r,clientId:a}){e&&t(()=>{const t=parseInt(e,10);Number.isNaN(t)||(o({ref:t}),r(a))})}o.d(t,{f:()=>r})},53042(e,t,o){"use strict";o.d(t,{A:()=>i});var r=o(85985),a=o(74997),n=o(52619);function i(e,t,o=[],i=!0){const{available:s,details:c,unavailableReason:l}=(0,r.FB)(e),d=(0,r.$i)(),u="beta"===d?.blocks_variation,p=(0,r.aq)(l,c),f=i?"jetpack/":"";if(!s&&!p)return!1;const m=(0,a.registerBlockType)(f+e,t);return p&&(0,n.addFilter)("editor.BlockListBlock",`${f+e}-with-has-warning-is-interactive-class-names`,(0,r.BT)(f+e)),o.forEach(e=>{e.settings?.isBeta&&!u||(0,a.registerBlockType)(f+e.name,e.settings)}),m}},73750(e,t,o){"use strict";o.d(t,{A:()=>r});const r={name:"field-option-checkbox",settings:{apiVersion:3,category:"contact-form",attributes:{label:{type:"string",role:"content"},fieldType:{enum:["checkbox","radio"],default:"checkbox"}},supports:{visibility:!1,html:!1,inserter:!1,reusable:!1,splitting:!0},title:(0,o(27723).__)("Multiple Choice Option","jetpack-forms"),edit:()=>null,save:()=>null}}},34042(e,t,o){"use strict";o.d(t,{A:()=>r});const r={name:"field-option-radio",settings:{apiVersion:3,category:"contact-form",attributes:{label:{type:"string",role:"content"},fieldType:{enum:["checkbox","radio"],default:"checkbox"}},supports:{visibility:!1,html:!1,inserter:!1,reusable:!1,splitting:!0},title:(0,o(27723).__)("Single Choice Option","jetpack-forms"),edit:()=>null,save:()=>null}}},69781(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(74997),a=o(27723),n=o(43943),i=o(28391);const __=a.__,s=[{...n.A,attributes:{...n.A.attributes,label:{type:"string",default:"",role:"content"}},migrate(e){const{restAttributes:t,labelStyles:o}=(0,i.A)(e);return[t,[(0,r.createBlock)("jetpack/option",{label:e.label,placeholder:__("Add option…","jetpack-forms"),isStandalone:!0,style:o})]]}}]},62650(e,t,o){"use strict";o.d(t,{Ay:()=>l});var r=o(27723),a=o(23083),n=o(69781),i=o(17749),s=o(86082),c=o(4174);const __=r.__,l={name:"field-checkbox",settings:{...a.A,title:__("Checkbox","jetpack-forms"),keywords:[__("Confirm","jetpack-forms"),__("Accept","jetpack-forms")],description:__("Confirm or select information with a single checkbox.","jetpack-forms"),icon:s.A,edit:i.A,attributes:{...a.A.attributes,defaultValue:{type:"string",default:""}},providesContext:{...a.A.providesContext,"jetpack/field-default-value":"defaultValue"},deprecated:n.A,save:c.A,example:{attributes:{defaulValue:""},innerBlocks:[{name:"jetpack/option",attributes:{label:__("Option","jetpack-forms"),isStandalone:!0}}]}},form_editor:{category:"choice"},conditional_logic:{type:"boolean"}}},87778(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(74997),a=o(27723),n=o(43943),i=o(28391);const __=a.__,s=[{...n.A,attributes:{...n.A.attributes,label:{type:"string",default:__("Consent","jetpack-forms")},consentType:{type:"string",default:"implicit"},implicitConsentMessage:{type:"string",default:__("By submitting your information, you're giving us permission to email you. You may unsubscribe at any time.","jetpack-forms")},explicitConsentMessage:{type:"string",default:__("Can we send you an email from time to time?","jetpack-forms")}},migrate(e){const{restAttributes:t,labelStyles:o}=(0,i.A)(e);return[t,[(0,r.createBlock)("jetpack/option",{placeholder:__("Add option…","jetpack-forms"),hideInput:"implicit"===e.consentType,isStandalone:!0,label:e.label,requiredText:e.requiredText,style:o})]]}}]},76755(e,t,o){"use strict";o.d(t,{Ay:()=>l});var r=o(27723),a=o(23083),n=o(87778),i=o(12598),s=o(43421),c=o(31861);const __=r.__,l={name:"field-consent",settings:{...a.A,title:__("Terms consent","jetpack-forms"),keywords:[__("Consent","jetpack-forms")],description:__("Communicate site terms and offer visitors consent to those terms.","jetpack-forms"),icon:s.A,edit:i.A,attributes:{...a.A.attributes,consentType:{type:"string",default:"implicit"},defaultValue:{type:"string",default:""},implicitConsentMessage:{type:"string",default:__("By submitting your information, you're giving us permission to email you. You may unsubscribe at any time.","jetpack-forms")},explicitConsentMessage:{type:"string",default:__("Can we send you an email from time to time?","jetpack-forms")}},providesContext:{...a.A.providesContext,"jetpack/field-default-value":"defaultValue"},deprecated:n.A,save:c.A,example:{innerBlocks:[{name:"jetpack/option",attributes:{label:__("By submitting your information, you're giving us permission to email you. You may unsubscribe at any time.","jetpack-forms"),isStandalone:!0,hideInput:!0}}]}},form_editor:{category:"advanced"},conditional_logic:{type:"boolean"}}},10038(e,t,o){"use strict";o.d(t,{A:()=>a});var r=o(43943);const a=[{...r.A,attributes:{...r.A.attributes,label:{type:"string",default:"Date"},dateFormat:{type:"string",default:"yy-mm-dd"}}}]},97495(e,t,o){"use strict";o.d(t,{Ay:()=>l});var r=o(27723),a=o(23083),n=o(10038),i=o(24928),s=o(235),c=o(10023);const __=r.__,_x=r._x,l={name:"field-date",settings:{...a.A,title:__("Date picker","jetpack-forms"),keywords:[__("Calendar","jetpack-forms"),_x("day month year","block search term","jetpack-forms")],description:__("Capture date information with a date picker.","jetpack-forms"),icon:s.A,edit:i.A,attributes:{...a.A.attributes,dateFormat:{type:"string",default:"yy-mm-dd"}},deprecated:n.A,save:c.A,example:{innerBlocks:[{name:"jetpack/label",attributes:{label:__("Date","jetpack-forms")}},{name:"jetpack/input",attributes:{type:"text"}}]}},form_editor:{category:"advanced"},conditional_logic:{type:"date"}}},14228(e,t,o){"use strict";o.d(t,{A:()=>a});var r=o(43943);const a=[{...r.A,attributes:{...r.A.attributes,label:{type:"string",default:"Email"}}}]},19579(e,t,o){"use strict";o.d(t,{Ay:()=>c});var r=o(27723),a=o(28755),n=o(23083),i=o(7740),s=o(38886);const __=r.__,c={name:"field-hidden",settings:{...n.A,title:__("Hidden field","jetpack-forms"),description:__("Invisible to site visitors. Allows you to store extra values with each form submission.","jetpack-forms"),icon:{src:a.A},edit:i.A,save:s.A,attributes:{id:{type:"string",default:""},label:{type:"string",default:""},default:{type:"string",default:""}},example:{attributes:{label:__("Company_ID","jetpack-forms"),default:__("ACME Inc.","jetpack-forms")}}},form_editor:{category:"advanced"},conditional_logic:{type:"hidden"}}},38886(e,t,o){"use strict";o.d(t,{A:()=>r});const r=()=>"";o.dn(r)},99105(e,t,o){"use strict";o.d(t,{Ay:()=>l});var r=o(27723),a=o(23083),n=o(55463),i=o(78332),s=o(15887),c=o(51483);const __=r.__,l={name:"field-checkbox-multiple",settings:{...a.A,title:__("Multiple choice (checkbox)","jetpack-forms"),keywords:[__("Choose multiple","jetpack-forms"),__("Option","jetpack-forms")],description:__("Offer users a list of choices, and allow them to select multiple options.","jetpack-forms"),icon:s.A,edit:i.A,example:{innerBlocks:[{name:"jetpack/label",attributes:{label:__("Choose several options","jetpack-forms")}},{name:"jetpack/options",attributes:{type:"checkbox"},innerBlocks:[{name:"jetpack/option",attributes:{label:__("First option","jetpack-forms")}},{name:"jetpack/option",attributes:{label:__("Second option","jetpack-forms")}},{name:"jetpack/option",attributes:{label:__("Third option","jetpack-forms")}}]}]},allowedBlocks:["jetpack/label","jetpack/field-options"],deprecated:n.A,save:c.A,styles:[{name:"list",label:__("List","jetpack-forms"),isDefault:!0},{name:"button",label:__("Button","jetpack-forms")}]},form_editor:{category:"choice"},conditional_logic:{type:"multichoice"}}},47191(e,t,o){"use strict";o.d(t,{A:()=>a});var r=o(43943);const a=[{...r.A,attributes:{...r.A.attributes,label:{type:"string",default:"Name"}}}]},90097(e,t,o){"use strict";o.d(t,{A:()=>c});var r=o(94715),a=o(47143),n=o(86087),i=o(13549),s=o(24320);function c({clientId:e,fieldVariant:t}){const o=(0,n.useRef)(t),c=!!t&&o.current!==t,{updateBlockAttributes:l}=(0,a.useDispatch)(r.store),d=t||s.uD,u=(p=d)===s.XU?s.yb:p===s.p1?s.ez:s.lc;var p;const f=(0,a.useSelect)(t=>{const{getBlock:o,getBlocks:a,getBlockParents:n}=t(r.store),i=(n(e)||[]).find(e=>{const t=o(e);return"jetpack/contact-form"===t?.name});return(i?a(i):a()).filter(t=>t.clientId!==e&&t.attributes?.id).map(e=>e.attributes.id)},[e]),m=(0,i.C)(d,f),b=(0,a.useSelect)(t=>{const o=t(r.store).getBlock(e),a=o?.innerBlocks?.find(e=>"jetpack/label"===e.name);return a?.clientId},[e]);(0,n.useEffect)(()=>{c&&l(e,{id:m})},[m,e,l,c]),(0,n.useEffect)(()=>{b&&c&&l(b,{label:u})},[u,b,l,c]),(0,n.useEffect)(()=>{o.current=t},[t])}},5804(e,t,o){"use strict";o.d(t,{Ay:()=>m});var r=o(27723),a=o(23083),n=o(12110),i=o(47191),s=o(175),c=o(43688),l=o(88664),d=o(24320);const __=r.__,u="field-name",p={...n.A,to:n.A.to.filter(e=>!e.blocks.includes("jetpack/"+u))},f={...a.A,attributes:{...a.A.attributes,fieldVariant:{type:"string",default:""}},title:__("Name field","jetpack-forms"),description:__("Collect the site visitor’s name.","jetpack-forms"),icon:c.A,variations:d.Ay,transforms:p,edit:s.A,deprecated:i.A,save:l.A,example:{innerBlocks:[{name:"jetpack/label",attributes:{label:__("Name","jetpack-forms")}},{name:"jetpack/input",attributes:{type:"text"}}]}},m={name:u,settings:f,form_editor:{category:"contact-info"},conditional_logic:{type:"string"}}},24320(e,t,o){"use strict";o.d(t,{Ay:()=>m,QO:()=>f,XU:()=>i,Yq:()=>p,ez:()=>d,lc:()=>u,p1:()=>s,uD:()=>c,yb:()=>l});var r=o(27723),a=o(43688);const __=r.__,n=a.A,i="first-name",s="last-name",c="name",l=__("First name","jetpack-forms"),d=__("Last name","jetpack-forms"),u=__("Name","jetpack-forms"),p=e=>"string"==typeof e&&/^first-name(?:-\d+)?$/.test(e),f=e=>"string"==typeof e&&/^last-name(?:-\d+)?$/.test(e),m=[{name:c,title:u,description:__("Collect the site visitor’s name.","jetpack-forms"),icon:n,scope:["transform"],isActive:e=>e.fieldVariant===c,attributes:{id:"",fieldVariant:c},innerBlocks:[["jetpack/label",{label:u}],["jetpack/input",{type:"text"}]]},{name:i,title:l,description:__("Collect the visitor’s first name.","jetpack-forms"),icon:n,scope:["inserter","transform"],isActive:e=>e.fieldVariant===i,attributes:{id:i,fieldVariant:i},innerBlocks:[["jetpack/label",{label:l}],["jetpack/input",{type:"text"}]],example:{innerBlocks:[{name:"jetpack/label",attributes:{label:l}},{name:"jetpack/input",attributes:{type:"text"}}]}},{name:s,title:d,description:__("Collect the visitor’s last name.","jetpack-forms"),icon:n,scope:["inserter","transform"],isActive:e=>e.fieldVariant===s,attributes:{id:s,fieldVariant:s},innerBlocks:[["jetpack/label",{label:d}],["jetpack/input",{type:"text"}]],example:{innerBlocks:[{name:"jetpack/label",attributes:{label:d}},{name:"jetpack/input",attributes:{type:"text"}}]}}]},43781(e,t,o){"use strict";o.d(t,{A:()=>a});var r=o(43943);const a=[{...r.A,attributes:{...r.A.attributes,label:{type:"string",default:"Number"},max:{type:"string"},min:{type:"string"}}}]},13930(e,t,o){"use strict";o.d(t,{Ay:()=>l});var r=o(27723),a=o(23083),n=o(43781),i=o(80773),s=o(92850),c=o(93982);const __=r.__,l={name:"field-number",settings:{...a.A,title:__("Number input field","jetpack-forms"),description:__("Collect numbers from site visitors.","jetpack-forms"),icon:s.A,edit:i.A,deprecated:n.A,save:c.A,example:{innerBlocks:[{name:"jetpack/label",attributes:{label:__("Number","jetpack-forms")}},{name:"jetpack/input",attributes:{type:"number"}}]}},form_editor:{category:"basic"},conditional_logic:{type:"number"}}},81250(e,t,o){"use strict";o.d(t,{Ay:()=>l});var r=o(27723),a=o(23083),n=o(5993),i=o(51918),s=o(86922),c=o(7407);const __=r.__,l={name:"field-rating",settings:{...a.A,title:__("Rating field","jetpack-forms"),description:__("Allow visitors to select a rating.","jetpack-forms"),icon:i.A,attributes:{...a.A.attributes,max:{type:"number",default:5,role:"content"},default:{type:"number",default:0,role:"content"},iconStyle:{type:"string",default:"stars",role:"appearance"}},providesContext:{...a.A.providesContext,"jetpack/field-rating-max":"max","jetpack/field-rating-default":"default","jetpack/field-rating-iconStyle":"iconStyle"},variations:c.A,allowedBlocks:["jetpack/label","jetpack/input-rating"],edit:n.A,save:s.A,example:{attributes:{max:5,default:3},innerBlocks:[{name:"jetpack/label",attributes:{label:__("Rate your experience","jetpack-forms")}}]}},form_editor:{category:"advanced"},conditional_logic:{type:"rating"}}},20402(e,t,o){"use strict";o.d(t,{Ao:()=>r,Tz:()=>a});const r=10,a={stars:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.62L12 2 9.19 8.62 2 9.24l5.46 4.73L5.82 21z",hearts:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"}},3578(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(74997),a=o(27723),n=o(43943),i=o(28391);const __=a.__,s=[{...n.A,attributes:{...n.A.attributes,toggleLabel:{type:"string",default:null,role:"content"},options:{type:"array",default:[""],role:"content"}},migrate(e){const{restAttributes:t,labelStyles:o,inputStyles:a}=(0,i.A)(e),{toggleLabel:n,...s}=t;return[s,[(0,r.createBlock)("jetpack/label",{label:e.label,requiredText:e.requiredText,style:o}),(0,r.createBlock)("jetpack/input",{placeholder:n??__("Select one option","jetpack-forms"),style:a,type:"dropdown"})]]},isEligible:(e,t)=>e.toggleLabel&&""!==e.toggleLabel||!t.length}]},19083(e,t,o){"use strict";o.d(t,{Ay:()=>l});var r=o(27723),a=o(23083),n=o(3578),i=o(92652),s=o(6559),c=o(86347);const __=r.__,l={name:"field-select",settings:{...a.A,title:__("Dropdown field","jetpack-forms"),keywords:[__("Choose","jetpack-forms"),__("Dropdown","jetpack-forms"),__("Option","jetpack-forms")],description:__("Add a compact select box, that when expanded, allows visitors to choose one value from the list.","jetpack-forms"),icon:s.A,edit:i.A,attributes:{...a.A.attributes,options:{type:"array",default:[""],role:"content"}},deprecated:n.A,save:c.A,example:{attributes:{options:[__("First option","jetpack-forms"),__("Second option","jetpack-forms"),__("Third option","jetpack-forms")]},innerBlocks:[{name:"jetpack/label",attributes:{label:__("Dropdown","jetpack-forms")}},{name:"jetpack/input",attributes:{type:"dropdown",placeholder:__("Select one option","jetpack-forms")}}]}},form_editor:{category:"choice"},conditional_logic:{type:"choice"}}},90149(e,t,o){"use strict";o.d(t,{Ay:()=>l});var r=o(27723),a=o(23083),n=o(79219),i=o(60288),s=o(44907),c=o(89671);const __=r.__,l={name:"field-radio",settings:{...a.A,title:__("Single choice (radio)","jetpack-forms"),keywords:[__("Choose","jetpack-forms"),__("Select","jetpack-forms"),__("Option","jetpack-forms")],description:__("Offer users a list of choices, and allow them to select a single option.","jetpack-forms"),icon:s.A,edit:i.A,allowedBlocks:["jetpack/label","jetpack/field-options"],deprecated:n.A,save:c.A,styles:[{name:"list",label:__("List","jetpack-forms"),isDefault:!0},{name:"button",label:__("Button","jetpack-forms")}],example:{innerBlocks:[{name:"jetpack/label",attributes:{label:__("Choose one option","jetpack-forms")}},{name:"jetpack/options",attributes:{type:"radio"},innerBlocks:[{name:"jetpack/option",attributes:{label:__("First option","jetpack-forms")}},{name:"jetpack/option",attributes:{label:__("Second option","jetpack-forms")}}]}]}},form_editor:{category:"choice"},conditional_logic:{type:"choice"}}},53512(e,t,o){"use strict";o.d(t,{X:()=>r});const r=[{code:"AF",label:"🇦🇫 +93",value:"+93",country:"Afghanistan",flag:"🇦🇫"},{code:"AL",label:"🇦🇱 +355",value:"+355",country:"Albania",flag:"🇦🇱"},{code:"DZ",label:"🇩🇿 +213",value:"+213",country:"Algeria",flag:"🇩🇿"},{code:"AS",label:"🇦🇸 +1(684)",value:"+1684",country:"American Samoa",flag:"🇦🇸"},{code:"AD",label:"🇦🇩 +376",value:"+376",country:"Andorra",flag:"🇦🇩"},{code:"AO",label:"🇦🇴 +244",value:"+244",country:"Angola",flag:"🇦🇴"},{code:"AI",label:"🇦🇮 +1(264)",value:"+1264",country:"Anguilla",flag:"🇦🇮"},{code:"AG",label:"🇦🇬 +1(268)",value:"+1268",country:"Antigua and Barbuda",flag:"🇦🇬"},{code:"AR",label:"🇦🇷 +54",value:"+54",country:"Argentina",flag:"🇦🇷"},{code:"AM",label:"🇦🇲 +374",value:"+374",country:"Armenia",flag:"🇦🇲"},{code:"AW",label:"🇦🇼 +297",value:"+297",country:"Aruba",flag:"🇦🇼"},{code:"AU",label:"🇦🇺 +61",value:"+61",country:"Australia",flag:"🇦🇺"},{code:"AT",label:"🇦🇹 +43",value:"+43",country:"Austria",flag:"🇦🇹"},{code:"AZ",label:"🇦🇿 +994",value:"+994",country:"Azerbaijan",flag:"🇦🇿"},{code:"BS",label:"🇧🇸 +1(242)",value:"+1242",country:"Bahamas",flag:"🇧🇸"},{code:"BH",label:"🇧🇭 +973",value:"+973",country:"Bahrain",flag:"🇧🇭"},{code:"BD",label:"🇧🇩 +880",value:"+880",country:"Bangladesh",flag:"🇧🇩"},{code:"BB",label:"🇧🇧 +1(246)",value:"+1246",country:"Barbados",flag:"🇧🇧"},{code:"BY",label:"🇧🇾 +375",value:"+375",country:"Belarus",flag:"🇧🇾"},{code:"BE",label:"🇧🇪 +32",value:"+32",country:"Belgium",flag:"🇧🇪"},{code:"BZ",label:"🇧🇿 +501",value:"+501",country:"Belize",flag:"🇧🇿"},{code:"BJ",label:"🇧🇯 +229",value:"+229",country:"Benin",flag:"🇧🇯"},{code:"BM",label:"🇧🇲 +1(441)",value:"+1441",country:"Bermuda",flag:"🇧🇲"},{code:"BT",label:"🇧🇹 +975",value:"+975",country:"Bhutan",flag:"🇧🇹"},{code:"BO",label:"🇧🇴 +591",value:"+591",country:"Bolivia",flag:"🇧🇴"},{code:"BA",label:"🇧🇦 +387",value:"+387",country:"Bosnia and Herzegovina",flag:"🇧🇦"},{code:"BW",label:"🇧🇼 +267",value:"+267",country:"Botswana",flag:"🇧🇼"},{code:"BR",label:"🇧🇷 +55",value:"+55",country:"Brazil",flag:"🇧🇷"},{code:"IO",label:"🇮🇴 +246",value:"+246",country:"British Indian Ocean Territory",flag:"🇮🇴"},{code:"VG",label:"🇻🇬 +1(284)",value:"+1284",country:"British Virgin Islands",flag:"🇻🇬"},{code:"BN",label:"🇧🇳 +673",value:"+673",country:"Brunei",flag:"🇧🇳"},{code:"BG",label:"🇧🇬 +359",value:"+359",country:"Bulgaria",flag:"🇧🇬"},{code:"BF",label:"🇧🇫 +226",value:"+226",country:"Burkina Faso",flag:"🇧🇫"},{code:"BI",label:"🇧🇮 +257",value:"+257",country:"Burundi",flag:"🇧🇮"},{code:"KH",label:"🇰🇭 +855",value:"+855",country:"Cambodia",flag:"🇰🇭"},{code:"CM",label:"🇨🇲 +237",value:"+237",country:"Cameroon",flag:"🇨🇲"},{code:"CA",label:"🇨🇦 +1",value:"+1",country:"Canada",flag:"🇨🇦"},{code:"CV",label:"🇨🇻 +238",value:"+238",country:"Cape Verde",flag:"🇨🇻"},{code:"KY",label:"🇰🇾 +1345",value:"+1345",country:"Cayman Islands",flag:"🇰🇾"},{code:"CF",label:"🇨🇫 +236",value:"+236",country:"Central African Republic",flag:"🇨🇫"},{code:"TD",label:"🇹🇩 +235",value:"+235",country:"Chad",flag:"🇹🇩"},{code:"CL",label:"🇨🇱 +56",value:"+56",country:"Chile",flag:"🇨🇱"},{code:"CN",label:"🇨🇳 +86",value:"+86",country:"China",flag:"🇨🇳"},{code:"CX",label:"🇨🇽 +61",value:"+61",country:"Christmas Island",flag:"🇨🇽"},{code:"CC",label:"🇨🇨 +61",value:"+61",country:"Cocos (Keeling) Islands",flag:"🇨🇨"},{code:"CO",label:"🇨🇴 +57",value:"+57",country:"Colombia",flag:"🇨🇴"},{code:"KM",label:"🇰🇲 +269",value:"+269",country:"Comoros",flag:"🇰🇲"},{code:"CG",label:"🇨🇬 +242",value:"+242",country:"Congo - Brazzaville",flag:"🇨🇬"},{code:"CD",label:"🇨🇩 +243",value:"+243",country:"Congo - Kinshasa",flag:"🇨🇩"},{code:"CK",label:"🇨🇰 +682",value:"+682",country:"Cook Islands",flag:"🇨🇰"},{code:"CR",label:"🇨🇷 +506",value:"+506",country:"Costa Rica",flag:"🇨🇷"},{code:"HR",label:"🇭🇷 +385",value:"+385",country:"Croatia",flag:"🇭🇷"},{code:"CU",label:"🇨🇺 +53",value:"+53",country:"Cuba",flag:"🇨🇺"},{code:"CY",label:"🇨🇾 +357",value:"+357",country:"Cyprus",flag:"🇨🇾"},{code:"CZ",label:"🇨🇿 +420",value:"+420",country:"Czech Republic",flag:"🇨🇿"},{code:"CI",label:"🇨🇮 +225",value:"+225",country:"Côte d'Ivoire",flag:"🇨🇮"},{code:"DK",label:"🇩🇰 +45",value:"+45",country:"Denmark",flag:"🇩🇰"},{code:"DJ",label:"🇩🇯 +253",value:"+253",country:"Djibouti",flag:"🇩🇯"},{code:"DM",label:"🇩🇲 +1(767)",value:"+1767",country:"Dominica",flag:"🇩🇲"},{code:"DO",label:"🇩🇴 +1(849)",value:"+1849",country:"Dominican Republic",flag:"🇩🇴"},{code:"EC",label:"🇪🇨 +593",value:"+593",country:"Ecuador",flag:"🇪🇨"},{code:"EG",label:"🇪🇬 +20",value:"+20",country:"Egypt",flag:"🇪🇬"},{code:"SV",label:"🇸🇻 +503",value:"+503",country:"El Salvador",flag:"🇸🇻"},{code:"GQ",label:"🇬🇶 +240",value:"+240",country:"Equatorial Guinea",flag:"🇬🇶"},{code:"ER",label:"🇪🇷 +291",value:"+291",country:"Eritrea",flag:"🇪🇷"},{code:"EE",label:"🇪🇪 +372",value:"+372",country:"Estonia",flag:"🇪🇪"},{code:"SZ",label:"🇸🇿 +268",value:"+268",country:"Eswatini",flag:"🇸🇿"},{code:"ET",label:"🇪🇹 +251",value:"+251",country:"Ethiopia",flag:"🇪🇹"},{code:"FK",label:"🇫🇰 +500",value:"+500",country:"Falkland Islands",flag:"🇫🇰"},{code:"FO",label:"🇫🇴 +298",value:"+298",country:"Faroe Islands",flag:"🇫🇴"},{code:"FJ",label:"🇫🇯 +679",value:"+679",country:"Fiji",flag:"🇫🇯"},{code:"FI",label:"🇫🇮 +358",value:"+358",country:"Finland",flag:"🇫🇮"},{code:"FR",label:"🇫🇷 +33",value:"+33",country:"France",flag:"🇫🇷"},{code:"GF",label:"🇬🇫 +594",value:"+594",country:"French Guiana",flag:"🇬🇫"},{code:"PF",label:"🇵🇫 +689",value:"+689",country:"French Polynesia",flag:"🇵🇫"},{code:"GA",label:"🇬🇦 +241",value:"+241",country:"Gabon",flag:"🇬🇦"},{code:"GM",label:"🇬🇲 +220",value:"+220",country:"Gambia",flag:"🇬🇲"},{code:"GE",label:"🇬🇪 +995",value:"+995",country:"Georgia",flag:"🇬🇪"},{code:"DE",label:"🇩🇪 +49",value:"+49",country:"Germany",flag:"🇩🇪"},{code:"GH",label:"🇬🇭 +233",value:"+233",country:"Ghana",flag:"🇬🇭"},{code:"GI",label:"🇬🇮 +350",value:"+350",country:"Gibraltar",flag:"🇬🇮"},{code:"GR",label:"🇬🇷 +30",value:"+30",country:"Greece",flag:"🇬🇷"},{code:"GL",label:"🇬🇱 +299",value:"+299",country:"Greenland",flag:"🇬🇱"},{code:"GD",label:"🇬🇩 +1(473)",value:"+1473",country:"Grenada",flag:"🇬🇩"},{code:"GP",label:"🇬🇵 +590",value:"+590",country:"Guadeloupe",flag:"🇬🇵"},{code:"GU",label:"🇬🇺 +1(671)",value:"+1671",country:"Guam",flag:"🇬🇺"},{code:"GT",label:"🇬🇹 +502",value:"+502",country:"Guatemala",flag:"🇬🇹"},{code:"GG",label:"🇬🇬 +44",value:"+44",country:"Guernsey",flag:"🇬🇬"},{code:"GN",label:"🇬🇳 +224",value:"+224",country:"Guinea",flag:"🇬🇳"},{code:"GW",label:"🇬🇼 +245",value:"+245",country:"Guinea-Bissau",flag:"🇬🇼"},{code:"GY",label:"🇬🇾 +592",value:"+592",country:"Guyana",flag:"🇬🇾"},{code:"HT",label:"🇭🇹 +509",value:"+509",country:"Haiti",flag:"🇭🇹"},{code:"HN",label:"🇭🇳 +504",value:"+504",country:"Honduras",flag:"🇭🇳"},{code:"HK",label:"🇭🇰 +852",value:"+852",country:"Hong Kong",flag:"🇭🇰"},{code:"HU",label:"🇭🇺 +36",value:"+36",country:"Hungary",flag:"🇭🇺"},{code:"IS",label:"🇮🇸 +354",value:"+354",country:"Iceland",flag:"🇮🇸"},{code:"IN",label:"🇮🇳 +91",value:"+91",country:"India",flag:"🇮🇳"},{code:"ID",label:"🇮🇩 +62",value:"+62",country:"Indonesia",flag:"🇮🇩"},{code:"IR",label:"🇮🇷 +98",value:"+98",country:"Iran",flag:"🇮🇷"},{code:"IQ",label:"🇮🇶 +964",value:"+964",country:"Iraq",flag:"🇮🇶"},{code:"IE",label:"🇮🇪 +353",value:"+353",country:"Ireland",flag:"🇮🇪"},{code:"IM",label:"🇮🇲 +44",value:"+44",country:"Isle of Man",flag:"🇮🇲"},{code:"IL",label:"🇮🇱 +972",value:"+972",country:"Israel",flag:"🇮🇱"},{code:"IT",label:"🇮🇹 +39",value:"+39",country:"Italy",flag:"🇮🇹"},{code:"JM",label:"🇯🇲 +1(876)",value:"+1876",country:"Jamaica",flag:"🇯🇲"},{code:"JP",label:"🇯🇵 +81",value:"+81",country:"Japan",flag:"🇯🇵"},{code:"JE",label:"🇯🇪 +44",value:"+44",country:"Jersey",flag:"🇯🇪"},{code:"JO",label:"🇯🇴 +962",value:"+962",country:"Jordan",flag:"🇯🇴"},{code:"KZ",label:"🇰🇿 +77",value:"+77",country:"Kazakhstan",flag:"🇰🇿"},{code:"KE",label:"🇰🇪 +254",value:"+254",country:"Kenya",flag:"🇰🇪"},{code:"KI",label:"🇰🇮 +686",value:"+686",country:"Kiribati",flag:"🇰🇮"},{code:"XK",label:"🇽🇰 +383",value:"+383",country:"Kosovo",flag:"🇽🇰"},{code:"KW",label:"🇰🇼 +965",value:"+965",country:"Kuwait",flag:"🇰🇼"},{code:"KG",label:"🇰🇬 +996",value:"+996",country:"Kyrgyzstan",flag:"🇰🇬"},{code:"LA",label:"🇱🇦 +856",value:"+856",country:"Laos",flag:"🇱🇦"},{code:"LV",label:"🇱🇻 +371",value:"+371",country:"Latvia",flag:"🇱🇻"},{code:"LB",label:"🇱🇧 +961",value:"+961",country:"Lebanon",flag:"🇱🇧"},{code:"LS",label:"🇱🇸 +266",value:"+266",country:"Lesotho",flag:"🇱🇸"},{code:"LR",label:"🇱🇷 +231",value:"+231",country:"Liberia",flag:"🇱🇷"},{code:"LY",label:"🇱🇾 +218",value:"+218",country:"Libya",flag:"🇱🇾"},{code:"LI",label:"🇱🇮 +423",value:"+423",country:"Liechtenstein",flag:"🇱🇮"},{code:"LT",label:"🇱🇹 +370",value:"+370",country:"Lithuania",flag:"🇱🇹"},{code:"LU",label:"🇱🇺 +352",value:"+352",country:"Luxembourg",flag:"🇱🇺"},{code:"MO",label:"🇲🇴 +853",value:"+853",country:"Macao",flag:"🇲🇴"},{code:"MG",label:"🇲🇬 +261",value:"+261",country:"Madagascar",flag:"🇲🇬"},{code:"MW",label:"🇲🇼 +265",value:"+265",country:"Malawi",flag:"🇲🇼"},{code:"MY",label:"🇲🇾 +60",value:"+60",country:"Malaysia",flag:"🇲🇾"},{code:"MV",label:"🇲🇻 +960",value:"+960",country:"Maldives",flag:"🇲🇻"},{code:"ML",label:"🇲🇱 +223",value:"+223",country:"Mali",flag:"🇲🇱"},{code:"MT",label:"🇲🇹 +356",value:"+356",country:"Malta",flag:"🇲🇹"},{code:"MH",label:"🇲🇭 +692",value:"+692",country:"Marshall Islands",flag:"🇲🇭"},{code:"MQ",label:"🇲🇶 +596",value:"+596",country:"Martinique",flag:"🇲🇶"},{code:"MR",label:"🇲🇷 +222",value:"+222",country:"Mauritania",flag:"🇲🇷"},{code:"MU",label:"🇲🇺 +230",value:"+230",country:"Mauritius",flag:"🇲🇺"},{code:"YT",label:"🇾🇹 +262",value:"+262",country:"Mayotte",flag:"🇾🇹"},{code:"MX",label:"🇲🇽 +52",value:"+52",country:"Mexico",flag:"🇲🇽"},{code:"FM",label:"🇫🇲 +691",value:"+691",country:"Micronesia",flag:"🇫🇲"},{code:"MD",label:"🇲🇩 +373",value:"+373",country:"Moldova",flag:"🇲🇩"},{code:"MC",label:"🇲🇨 +377",value:"+377",country:"Monaco",flag:"🇲🇨"},{code:"MN",label:"🇲🇳 +976",value:"+976",country:"Mongolia",flag:"🇲🇳"},{code:"ME",label:"🇲🇪 +382",value:"+382",country:"Montenegro",flag:"🇲🇪"},{code:"MS",label:"🇲🇸 +1(664)",value:"+1664",country:"Montserrat",flag:"🇲🇸"},{code:"MA",label:"🇲🇦 +212",value:"+212",country:"Morocco",flag:"🇲🇦"},{code:"MZ",label:"🇲🇿 +258",value:"+258",country:"Mozambique",flag:"🇲🇿"},{code:"MM",label:"🇲🇲 +95",value:"+95",country:"Myanmar",flag:"🇲🇲"},{code:"NA",label:"🇳🇦 +264",value:"+264",country:"Namibia",flag:"🇳🇦"},{code:"NR",label:"🇳🇷 +674",value:"+674",country:"Nauru",flag:"🇳🇷"},{code:"NP",label:"🇳🇵 +977",value:"+977",country:"Nepal",flag:"🇳🇵"},{code:"NL",label:"🇳🇱 +31",value:"+31",country:"Netherlands",flag:"🇳🇱"},{code:"NC",label:"🇳🇨 +687",value:"+687",country:"New Caledonia",flag:"🇳🇨"},{code:"NZ",label:"🇳🇿 +64",value:"+64",country:"New Zealand",flag:"🇳🇿"},{code:"NI",label:"🇳🇮 +505",value:"+505",country:"Nicaragua",flag:"🇳🇮"},{code:"NE",label:"🇳🇪 +227",value:"+227",country:"Niger",flag:"🇳🇪"},{code:"NG",label:"🇳🇬 +234",value:"+234",country:"Nigeria",flag:"🇳🇬"},{code:"NU",label:"🇳🇺 +683",value:"+683",country:"Niue",flag:"🇳🇺"},{code:"NF",label:"🇳🇫 +672",value:"+672",country:"Norfolk Island",flag:"🇳🇫"},{code:"KP",label:"🇰🇵 +850",value:"+850",country:"North Korea",flag:"🇰🇵"},{code:"MK",label:"🇲🇰 +389",value:"+389",country:"North Macedonia",flag:"🇲🇰"},{code:"MP",label:"🇲🇵 +1(670)",value:"+1670",country:"Northern Mariana Islands",flag:"🇲🇵"},{code:"NO",label:"🇳🇴 +47",value:"+47",country:"Norway",flag:"🇳🇴"},{code:"OM",label:"🇴🇲 +968",value:"+968",country:"Oman",flag:"🇴🇲"},{code:"PK",label:"🇵🇰 +92",value:"+92",country:"Pakistan",flag:"🇵🇰"},{code:"PW",label:"🇵🇼 +680",value:"+680",country:"Palau",flag:"🇵🇼"},{code:"PS",label:"🇵🇸 +970",value:"+970",country:"Palestine",flag:"🇵🇸"},{code:"PA",label:"🇵🇦 +507",value:"+507",country:"Panama",flag:"🇵🇦"},{code:"PG",label:"🇵🇬 +675",value:"+675",country:"Papua New Guinea",flag:"🇵🇬"},{code:"PY",label:"🇵🇾 +595",value:"+595",country:"Paraguay",flag:"🇵🇾"},{code:"PE",label:"🇵🇪 +51",value:"+51",country:"Peru",flag:"🇵🇪"},{code:"PH",label:"🇵🇭 +63",value:"+63",country:"Philippines",flag:"🇵🇭"},{code:"PN",label:"🇵🇳 +872",value:"+872",country:"Pitcairn Islands",flag:"🇵🇳"},{code:"PL",label:"🇵🇱 +48",value:"+48",country:"Poland",flag:"🇵🇱"},{code:"PT",label:"🇵🇹 +351",value:"+351",country:"Portugal",flag:"🇵🇹"},{code:"PR",label:"🇵🇷 +1(939)",value:"+1939",country:"Puerto Rico",flag:"🇵🇷"},{code:"QA",label:"🇶🇦 +974",value:"+974",country:"Qatar",flag:"🇶🇦"},{code:"RO",label:"🇷🇴 +40",value:"+40",country:"Romania",flag:"🇷🇴"},{code:"RU",label:"🇷🇺 +7",value:"+7",country:"Russia",flag:"🇷🇺"},{code:"RW",label:"🇷🇼 +250",value:"+250",country:"Rwanda",flag:"🇷🇼"},{code:"RE",label:"🇷🇪 +262",value:"+262",country:"Réunion",flag:"🇷🇪"},{code:"BL",label:"🇧🇱 +590",value:"+590",country:"Saint Barthélemy",flag:"🇧🇱"},{code:"SH",label:"🇸🇭 +290",value:"+290",country:"Saint Helena",flag:"🇸🇭"},{code:"KN",label:"🇰🇳 +1(869)",value:"+1869",country:"Saint Kitts and Nevis",flag:"🇰🇳"},{code:"LC",label:"🇱🇨 +1(758)",value:"+1758",country:"Saint Lucia",flag:"🇱🇨"},{code:"MF",label:"🇲🇫 +590",value:"+590",country:"Saint Martin",flag:"🇲🇫"},{code:"PM",label:"🇵🇲 +508",value:"+508",country:"Saint Pierre and Miquelon",flag:"🇵🇲"},{code:"VC",label:"🇻🇨 +1(784)",value:"+1784",country:"Saint Vincent and the Grenadines",flag:"🇻🇨"},{code:"WS",label:"🇼🇸 +685",value:"+685",country:"Samoa",flag:"🇼🇸"},{code:"SM",label:"🇸🇲 +378",value:"+378",country:"San Marino",flag:"🇸🇲"},{code:"SA",label:"🇸🇦 +966",value:"+966",country:"Saudi Arabia",flag:"🇸🇦"},{code:"SN",label:"🇸🇳 +221",value:"+221",country:"Senegal",flag:"🇸🇳"},{code:"RS",label:"🇷🇸 +381",value:"+381",country:"Serbia",flag:"🇷🇸"},{code:"SC",label:"🇸🇨 +248",value:"+248",country:"Seychelles",flag:"🇸🇨"},{code:"SL",label:"🇸🇱 +232",value:"+232",country:"Sierra Leone",flag:"🇸🇱"},{code:"SG",label:"🇸🇬 +65",value:"+65",country:"Singapore",flag:"🇸🇬"},{code:"SK",label:"🇸🇰 +421",value:"+421",country:"Slovakia",flag:"🇸🇰"},{code:"SI",label:"🇸🇮 +386",value:"+386",country:"Slovenia",flag:"🇸🇮"},{code:"SB",label:"🇸🇧 +677",value:"+677",country:"Solomon Islands",flag:"🇸🇧"},{code:"SO",label:"🇸🇴 +252",value:"+252",country:"Somalia",flag:"🇸🇴"},{code:"ZA",label:"🇿🇦 +27",value:"+27",country:"South Africa",flag:"🇿🇦"},{code:"GS",label:"🇬🇸 +500",value:"+500",country:"South Georgia and the South Sandwich Islands",flag:"🇬🇸"},{code:"KR",label:"🇰🇷 +82",value:"+82",country:"South Korea",flag:"🇰🇷"},{code:"ES",label:"🇪🇸 +34",value:"+34",country:"Spain",flag:"🇪🇸"},{code:"LK",label:"🇱🇰 +94",value:"+94",country:"Sri Lanka",flag:"🇱🇰"},{code:"SD",label:"🇸🇩 +249",value:"+249",country:"Sudan",flag:"🇸🇩"},{code:"SR",label:"🇸🇷 +597",value:"+597",country:"Suriname",flag:"🇸🇷"},{code:"SJ",label:"🇸🇯 +47",value:"+47",country:"Svalbard and Jan Mayen",flag:"🇸🇯"},{code:"SE",label:"🇸🇪 +46",value:"+46",country:"Sweden",flag:"🇸🇪"},{code:"CH",label:"🇨🇭 +41",value:"+41",country:"Switzerland",flag:"🇨🇭"},{code:"SY",label:"🇸🇾 +963",value:"+963",country:"Syria",flag:"🇸🇾"},{code:"ST",label:"🇸🇹 +239",value:"+239",country:"São Tomé and Príncipe",flag:"🇸🇹"},{code:"TW",label:"🇹🇼 +886",value:"+886",country:"Taiwan",flag:"🇹🇼"},{code:"TJ",label:"🇹🇯 +992",value:"+992",country:"Tajikistan",flag:"🇹🇯"},{code:"TZ",label:"🇹🇿 +255",value:"+255",country:"Tanzania",flag:"🇹🇿"},{code:"TH",label:"🇹🇭 +66",value:"+66",country:"Thailand",flag:"🇹🇭"},{code:"TL",label:"🇹🇱 +670",value:"+670",country:"Timor-Leste",flag:"🇹🇱"},{code:"TG",label:"🇹🇬 +228",value:"+228",country:"Togo",flag:"🇹🇬"},{code:"TK",label:"🇹🇰 +690",value:"+690",country:"Tokelau",flag:"🇹🇰"},{code:"TO",label:"🇹🇴 +676",value:"+676",country:"Tonga",flag:"🇹🇴"},{code:"TT",label:"🇹🇹 +1(868)",value:"+1868",country:"Trinidad and Tobago",flag:"🇹🇹"},{code:"TN",label:"🇹🇳 +216",value:"+216",country:"Tunisia",flag:"🇹🇳"},{code:"TR",label:"🇹🇷 +90",value:"+90",country:"Turkey",flag:"🇹🇷"},{code:"TM",label:"🇹🇲 +993",value:"+993",country:"Turkmenistan",flag:"🇹🇲"},{code:"TC",label:"🇹🇨 +1(649)",value:"+1649",country:"Turks and Caicos Islands",flag:"🇹🇨"},{code:"TV",label:"🇹🇻 +688",value:"+688",country:"Tuvalu",flag:"🇹🇻"},{code:"VI",label:"🇻🇮 +1(340)",value:"+1340",country:"U.S. Virgin Islands",flag:"🇻🇮"},{code:"UG",label:"🇺🇬 +256",value:"+256",country:"Uganda",flag:"🇺🇬"},{code:"UA",label:"🇺🇦 +380",value:"+380",country:"Ukraine",flag:"🇺🇦"},{code:"AE",label:"🇦🇪 +971",value:"+971",country:"United Arab Emirates",flag:"🇦🇪"},{code:"GB",label:"🇬🇧 +44",value:"+44",country:"United Kingdom",flag:"🇬🇧"},{code:"US",label:"🇺🇸 +1",value:"+1",country:"United States",flag:"🇺🇸"},{code:"UY",label:"🇺🇾 +598",value:"+598",country:"Uruguay",flag:"🇺🇾"},{code:"UZ",label:"🇺🇿 +998",value:"+998",country:"Uzbekistan",flag:"🇺🇿"},{code:"VU",label:"🇻🇺 +678",value:"+678",country:"Vanuatu",flag:"🇻🇺"},{code:"VA",label:"🇻🇦 +379",value:"+379",country:"Vatican City",flag:"🇻🇦"},{code:"VE",label:"🇻🇪 +58",value:"+58",country:"Venezuela",flag:"🇻🇪"},{code:"VN",label:"🇻🇳 +84",value:"+84",country:"Vietnam",flag:"🇻🇳"},{code:"WF",label:"🇼🇫 +681",value:"+681",country:"Wallis and Futuna",flag:"🇼🇫"},{code:"YE",label:"🇾🇪 +967",value:"+967",country:"Yemen",flag:"🇾🇪"},{code:"ZM",label:"🇿🇲 +260",value:"+260",country:"Zambia",flag:"🇿🇲"},{code:"ZW",label:"🇿🇼 +263",value:"+263",country:"Zimbabwe",flag:"🇿🇼"}]},11940(e,t,o){"use strict";o.d(t,{A:()=>i});var r=o(74997),a=o(43943),n=o(57595);const i=[{...a.A,attributes:{...a.A.attributes,showCountrySelector:{type:"boolean"},default:{type:"string"},onChangeDefaultCountry:{type:"function"}},apiVersion:3,migrate:(e,t)=>{const o={...e,showCountrySelector:!1};let a={};if(t.length>0){a=t.find(e=>"jetpack/label"===e.name).attributes}return[o,[(0,r.createBlock)("jetpack/label",{...a}),(0,r.createBlock)("jetpack/phone-input",{})]]},isEligible:(e,t)=>{const o=t.find(e=>"jetpack/input"===e.name);return void 0===e.showCountrySelector||Boolean(o&&o.attributes&&"tel"===o.attributes.type)},save:n.A},{...a.A,attributes:{...a.A.attributes,label:{type:"string",default:"Phone"}}}]},55387(e,t,o){"use strict";o.d(t,{A:()=>a});var r=o(43943);const a=[{...r.A,attributes:{...r.A.attributes,label:{type:"string",default:"Text"}}}]},21264(e,t,o){"use strict";o.d(t,{Ay:()=>l});var r=o(27723),a=o(23083),n=o(55387),i=o(72351),s=o(71288),c=o(50056);const __=r.__,l={name:"field-text",settings:{...a.A,title:__("Text input field","jetpack-forms"),description:__("Collect short text responses from site visitors.","jetpack-forms"),icon:s.A,edit:i.A,deprecated:n.A,save:c.A,example:{innerBlocks:[{name:"jetpack/label",attributes:{label:__("Text","jetpack-forms")}},{name:"jetpack/input",attributes:{type:"text"}}]}},form_editor:{category:"basic"},conditional_logic:{type:"string"}}},10976(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(74997),a=o(27723),n=o(43943),i=o(28391);const __=a.__,s=[{...n.A,migrate(e){const{restAttributes:t,labelStyles:o,inputStyles:a}=(0,i.A)(e);return[t,[(0,r.createBlock)("jetpack/label",{label:e.label??__("Message","jetpack-forms"),requiredText:e.requiredText,style:o}),(0,r.createBlock)("jetpack/input",{placeholder:e.placeholder,style:a,type:"textarea"})]]}}]},41825(e,t,o){"use strict";o.d(t,{Ay:()=>l});var r=o(27723),a=o(23083),n=o(10976),i=o(92506),s=o(39705),c=o(65041);const __=r.__,l={name:"field-textarea",settings:{...a.A,title:__("Multi-line text field","jetpack-forms"),keywords:[__("Textarea","jetpack-forms"),"textarea",__("Multiline text","jetpack-forms")],description:__("Capture longform text responses from site visitors.","jetpack-forms"),icon:s.A,edit:i.A,deprecated:n.A,save:c.A,example:{innerBlocks:[{name:"jetpack/label",attributes:{label:__("Message","jetpack-forms")}},{name:"jetpack/input",attributes:{type:"textarea"}}]}},form_editor:{category:"basic"},conditional_logic:{type:"string"}}},73826(e,t,o){"use strict";o.d(t,{Ay:()=>c});var r=o(27723),a=o(23083),n=o(70929),i=o(43926),s=o(97058);const __=r.__,c={name:"field-time",settings:{...a.A,title:__("Time input field","jetpack-forms"),description:__("Capture time information with a time picker.","jetpack-forms"),icon:i.A,edit:n.A,save:s.A,example:{innerBlocks:[{name:"jetpack/label",attributes:{label:__("Time","jetpack-forms")}},{name:"jetpack/input",attributes:{type:"time"}}]}},form_editor:{category:"advanced"},conditional_logic:{type:"time"}}},94027(e,t,o){"use strict";o.d(t,{A:()=>a});var r=o(43943);const a=[{...r.A,attributes:{...r.A.attributes,label:{type:"string",default:"Website"}}}]},91845(e,t,o){"use strict";o.d(t,{Ay:()=>s});var r=o(27723),a=o(58676),n=o(53703),i=o(28899);const __=r.__,s={name:"form-step-container",settings:{apiVersion:3,title:__("Steps","jetpack-forms"),allowedBlocks:["jetpack/form-step"],ancestor:["jetpack/contact-form"],category:"contact-form",description:__("A container that organizes multiple form steps.","jetpack-forms"),icon:{src:n.A},supports:{html:!1,reusable:!1,color:{gradients:!0,link:!0,background:!0},spacing:{padding:!0,margin:!0},dimensions:{minHeight:!0},shadow:!0,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0}},attributes:{},template:[["jetpack/form-step",{}]],edit:a.A,save:i.A,example:{}},form_editor:{category:"multistep"}}},29999(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(94715),a=o(74997),n=o(47143),i=o(86087);const s=({clientId:e})=>{const{getBlock:t,getBlockRootClientId:o,getBlockIndex:s,getBlocks:c}=(0,n.useSelect)(r.store),{replaceInnerBlocks:l,insertBlock:d,removeBlock:u}=(0,n.useDispatch)(r.store);return(0,i.useEffect)(()=>{const r=o(e);if(!r)return;const n=t(r);if(!n||"jetpack/form-step"!==n.name)return;const i=c(r),p=i.findIndex(t=>t.clientId===e);if(-1===p)return;const f=i.slice(0,p),m=i.slice(p+1);l(r,f);const b=o(r),g=s(r,b),k=(0,a.createBlock)("jetpack/form-step",{},m);d(k,g+1,b),u(e)},[e,t,o,s,c,l,d,u]),null}},31196(e,t,o){"use strict";o.d(t,{Ay:()=>s});var r=o(27723),a=o(94996),n=o(91983),i=o(80472);const __=r.__,s={name:"form-step-navigation",settings:{apiVersion:3,category:"contact-form",ancestor:["jetpack/contact-form"],supports:{html:!1,reusable:!1,spacing:{margin:!0},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex",justifyContent:"right"}}},title:__("Step navigation","jetpack-forms"),description:__("Responsible for the navigation between steps.","jetpack-forms"),icon:{src:a.A},edit:n.Ay,save:i.A,transforms:{},example:{}},form_editor:{category:"multistep"}}},52355(e,t,o){"use strict";o.d(t,{Ay:()=>s});var r=o(27723),a=o(27994),n=o(11961),i=o(96529);const __=r.__,s={name:"form-step",settings:{apiVersion:3,title:__("Step","jetpack-forms"),category:"contact-form",description:__("A single step in a multi-step form.","jetpack-forms"),icon:{src:n.A},parent:["jetpack/form-step-container"],supports:{html:!1,reusable:!1,inserter:!0,align:!0,color:{gradients:!0,link:!0},background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},spacing:{padding:!0,margin:!0}},attributes:{align:{type:"string"},backgroundColor:{type:"string"},gradient:{type:"string"},textColor:{type:"string"},style:{type:"object"},stepLabel:{type:"string"}},edit:a.A,save:i.A,example:{}},form_editor:{category:"multistep"}}},33704(e,t,o){"use strict";o.d(t,{A:()=>r});const r=()=>null;o.dn(r)},4349(e,t,o){"use strict";function r(e,t,o){const r=Number(e),a=Number(t);let n=Number(o);n=Number.isNaN(n)?r:n,n=Math.max(r,Math.min(n,a));const i=100*(n-r)/(a-r);return`calc(${i}% + (${16-.32*i}px))`}o.d(t,{h:()=>r})},71019(e,t,o){"use strict";o.d(t,{A:()=>r});const r=[{attributes:{placeholder:{type:"string",default:""},type:{type:"string"},min:{type:"string"},max:{type:"string"}},supports:{reusable:!1,html:!1},save:()=>null,migrate:e=>{const{min:t,max:o,...r}=e,a=parseFloat(t),n=parseFloat(o);return{...r,min:Number.isFinite(a)?a:void 0,max:Number.isFinite(n)?n:void 0}},isEligible:e=>"string"==typeof e.min||"string"==typeof e.max}]},25127(e,t,o){"use strict";o.d(t,{A:()=>r});const r=()=>null;o.dn(r)},63013(e,t,o){"use strict";o.d(t,{A:()=>r});const r=()=>null;o.dn(r)},74440(e,t,o){"use strict";o.d(t,{A:()=>r});const r=()=>null;o.dn(r)},94581(e,t,o){"use strict";o.d(t,{A:()=>c});var r=o(94715),a=o(74997),n=o(29491),i=o(47143),s=o(86087);const c=e=>{const{replaceBlocks:t,insertBlock:o,selectionChange:c}=(0,i.useDispatch)(r.store),{getBlock:l,getBlockRootClientId:d,getBlockIndex:u}=(0,i.useSelect)(r.store),p=(0,s.useRef)(e);return p.current=e,(0,n.useRefEffect)(e=>{function r(e){if(e.defaultPrevented||"Enter"!==e.key)return;const{clientId:r,content:n,isStandalone:i}=p.current;if(!n.length||i)if(e.preventDefault(),i){const e=d(r),t=d(e),n=u(e),i=(0,a.createBlock)((0,a.getDefaultBlockName)());o(i,n+1,t),c(i.clientId)}else{const e=d(r),o=l(e),n=d(e),i=l(n);if(!o||!i)return;const s=u(r),p=o.innerBlocks,f=p.slice(0,s),m=p.slice(s+1),b=i.innerBlocks[0],g=u(n),k=e=>(0,a.cloneBlock)({...i,innerBlocks:[(0,a.cloneBlock)(b),(0,a.cloneBlock)({...o,innerBlocks:e})]}),h=k(f),v=(0,a.createBlock)((0,a.getDefaultBlockName)()),j=m.length?[k(m)]:[];t(i.clientId,[h,v,...j],g),c(v.clientId)}}return e.addEventListener("keydown",r),()=>e.removeEventListener("keydown",r)},[])}},1799(e,t,o){"use strict";o.d(t,{x:()=>i});var r=o(82966);let a=null;const n=()=>{if(a)return a;a={};for(const e of r.P){const t=e?.conditional_logic?.type;t&&e?.name&&(a[`jetpack/${e.name}`]=t)}return a},i=e=>e?n()[e]??null:null},43943(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(74997),a=o(28391);const n={attributes:{label:{type:"string",default:null},required:{type:"boolean",default:!1},requiredText:{type:"string"},requiredIndicator:{type:"boolean",default:!0},options:{type:"array",default:[]},defaultValue:{type:"string",default:""},placeholder:{type:"string",default:""},id:{type:"string",default:""},width:{type:"number",default:100},borderRadius:{type:"number",default:""},borderWidth:{type:"number",default:""},labelFontSize:{type:"string"},fieldFontSize:{type:"string"},lineHeight:{type:"number"},labelLineHeight:{type:"number"},inputColor:{type:"string"},labelColor:{type:"string"},fieldBackgroundColor:{type:"string"},buttonBackgroundColor:{type:"string"},buttonBorderRadius:{type:"number",default:""},buttonBorderWidth:{type:"number",default:""},borderColor:{type:"string"},shareFieldAttributes:{type:"boolean",default:!0}},supports:{reusable:!1,html:!1},migrate:e=>{const{restAttributes:t,labelStyles:o,inputStyles:n}=(0,a.A)(e);return[t,[(0,r.createBlock)("jetpack/label",{label:e.label,requiredText:e.requiredText,requiredIndicator:e.requiredIndicator,style:o}),(0,r.createBlock)("jetpack/input",{placeholder:e.placeholder,style:n})]]},isEligible:(e,t)=>!t.length,save:()=>null}},30162(e,t,o){"use strict";o.d(t,{A:()=>i});var r=o(74997),a=o(27723),n=o(28391);const __=a.__;function i(e,t,o){const{restAttributes:a,labelStyles:i,optionStyles:s}=(0,n.A)(e),{options:c,...l}=a,d=t.map(e=>(0,r.createBlock)("jetpack/option",{label:e.attributes.label,placeholder:__("Add option…","jetpack-forms"),style:s}));return[l,[(0,r.createBlock)("jetpack/label",{label:e.label,requiredText:e.requiredText,style:i}),(0,r.createBlock)("jetpack/options",{type:o},d)]]}},71799(e,t,o){"use strict";o.d(t,{A:()=>i});var r=o(74997),a=o(27723),n=o(28391);const __=a.__;function i(e,t){const{restAttributes:o,labelStyles:a,optionStyles:i}=(0,n.A)(e),{options:s,...c}=o,l=(s?s.filter(e=>{return"string"==typeof(t=e)&&t.trim().length>0;var t}):[]).map(e=>(0,r.createBlock)("jetpack/option",{label:e,placeholder:__("Add option…","jetpack-forms"),style:i}));return[c,[(0,r.createBlock)("jetpack/label",{label:e.label,requiredText:e.requiredText,style:a}),(0,r.createBlock)("jetpack/options",{type:t},l)]]}},80611(e,t,o){"use strict";o.d(t,{A:()=>l});var r=o(74997),a=o(27723),n=o(28391),i=o(43943);const __=a.__,s=__("Choose several options","jetpack-forms"),c=__("Choose one option","jetpack-forms");function l(e){return{attributes:{...i.A.attributes,label:{type:"string",default:"checkbox"===e?s:c}},supports:i.A.supports,migrate:t=>{const{restAttributes:o,labelStyles:a,optionStyles:i}=(0,n.A)(t),{options:s,...c}=o,l=(s?s.filter(e=>{return"string"==typeof(t=e)&&t.trim().length>0;var t}):[]).map(e=>(0,r.createBlock)("jetpack/option",{label:e,placeholder:__("Add option…","jetpack-forms"),style:i}));return[c,[(0,r.createBlock)("jetpack/label",{label:t.label,requiredText:t.requiredText,style:a}),(0,r.createBlock)("jetpack/options",{type:e},l)]]},save:()=>null}}},72704(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(47143);function n(e){return(0,a.useSelect)(t=>{const{getBlock:o,hasSelectedInnerBlock:a}=t(r.store);return{isInnerBlockSelected:a(e,!0),hasPlaceholder:!!o(e).innerBlocks[1]?.attributes?.placeholder}},[e])}},39355(e,t,o){"use strict";o.d(t,{l:()=>n});var r=o(94715),a=o(47143);const n=(e,t)=>{const o=(0,a.useSelect)(t=>{if(!e)return[];const{getBlocks:o}=t(r.store);return o(e)},[e]);return(0,a.useSelect)(()=>{const e=(t,o)=>{if(!t||0===t.length)return null;for(const r of t){if(o(r))return r;if(r.innerBlocks&&r.innerBlocks.length>0){const t=e(r.innerBlocks,o);if(t)return t}}return null};return e(o,t)},[o,t])}},41002(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(47143),a=o(39355);function n(e){const t=(0,a.l)(e,e=>"jetpack/form-step-container"===e.name);return(0,r.useSelect)(()=>t&&t.innerBlocks&&t.innerBlocks.length>0?t.innerBlocks:[],[t])}},17988(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(94715),a=o(47143),n=o(11435),i=o(60594);const s=e=>{const t=(0,a.useSelect)(t=>{const[o]=t(r.store).getBlockParentsByBlockName(e,n.bp);return t(r.store).getBlockAttributes(o)});return(0,i.A)(t?.className)||n.pC.DEFAULT}},54334(e,t,o){"use strict";o.d(t,{Ay:()=>f});var r=o(94715),a=o(74997),n=o(3582),i=o(47143),s=o(43656),c=o(86087),l=o(27723),d=o(74506),u=o(82441),p=o(11435);const __=l.__;function f({attributes:e,clientId:t,name:o}){const{replaceBlock:l,updateBlockAttributes:f,__unstableMarkNextChangeAsNotPersistent:m}=(0,i.useDispatch)(r.store),{getBlocks:b}=(0,i.useSelect)(r.store),g=(0,d.A)("isCentralFormManagementEnabled"),{parentForms:k,currentPostId:h,currentPostType:v,wasBlockJustInserted:j}=(0,i.useSelect)(e=>({parentForms:e(r.store).getBlockParentsByBlockName(t,p.bp),currentPostId:e(s.store).getEditedPostAttribute("id"),currentPostType:e(s.store).getCurrentPostType(),wasBlockJustInserted:e(r.store).wasBlockJustInserted(t)}),[t]),y=(0,c.useRef)(!1);(0,c.useEffect)(()=>{if(y.current)return;if(!function(e,t){return e!==p.$8&&!t?.length}(v,k))return;y.current=!0;const r=function(e){const t=(0,a.getBlockType)(e);return t?.title||__("Untitled","jetpack-forms")}(o),s=b(t),{formBlock:c,fieldBlock:d,submitButton:x}=function(e,t,o=[]){const r=(0,a.createBlock)(e,t,o),n=(0,a.createBlock)("core/button",{text:__("Submit","jetpack-forms"),type:"submit",tagName:"button"});return{formBlock:(0,a.createBlock)(p.bp,{layout:p.US},[r,n]),fieldBlock:r,submitButton:n}}(o,e,s);m(),l(t,c),g&&j&&async function(e,t,o,r,a,s,c){const l=await(0,u.r)({attributes:{},innerBlocks:[t,o]},r,a);await(0,i.resolveSelect)(n.store).getEntityRecord("postType",p.$8,l),c(),s(e.clientId,{ref:l})}(c,d,x,r,h,f,m).catch(()=>{})},[])}},97622(e,t,o){"use strict";o.d(t,{A:()=>s}),o.dn(s);var r=o(94715),a=o(74997),n=o(47143),i=o(86087);function s(e,t=!1){const{fieldParentId:o,parentIndex:s,formParentId:c}=(0,n.useSelect)(o=>{const a=o(r.store),n=a.getBlockParents(e),i=n[n.length-1];return t?{fieldParentId:e,parentIndex:a.getBlockIndex(e),formParentId:n[n.length-1]}:{fieldParentId:i,parentIndex:i?a.getBlockIndex(i):void 0,formParentId:n[n.length-2]}},[e,t]),{insertBlock:l}=(0,n.useDispatch)(r.store);return(0,i.useCallback)(e=>{"Enter"===e.key&&!e.shiftKey&&o&&void 0!==s&&(e.preventDefault(),l((0,a.createBlock)((0,a.getDefaultBlockName)()),s+1,c))},[l,o,c,s])}},77930(e,t,o){"use strict";o.d(t,{A:()=>a});const r=e=>"number"==typeof e&&!isNaN(e),a=e=>{const t={"--jetpack--contact-form--border-color":e.borderColor,"--jetpack--contact-form--border-radius":r(e.borderRadius)?`${e.borderRadius}px`:null,"--jetpack--contact-form--border-size":r(e.borderWidth)?`${e.borderWidth}px`:null,"--jetpack--contact-form--input-background":e.fieldBackgroundColor,"--jetpack--contact-form--font-size":e.fieldFontSize,"--jetpack--contact-form--line-height":e.lineHeight,"--jetpack--contact-form--text-color":e.inputColor,"--jetpack--contact-form--button-outline--text-color":e.inputColor,"--jetpack--contact-form--button-outline--background-color":e.buttonBackgroundColor,"--jetpack--contact-form--button-outline--border-radius":r(e.buttonBorderRadius)?`${e.buttonBorderRadius}px`:null,"--jetpack--contact-form--button-outline--border-size":r(e.buttonBorderWidth)?`${e.buttonBorderWidth}px`:null},o={color:e.labelColor,fontSize:e.labelFontSize,lineHeight:e.labelLineHeight},a={backgroundColor:e.fieldBackgroundColor,borderColor:e.borderColor,borderRadius:r(e.borderRadius)?e.borderRadius:null,borderWidth:r(e.borderWidth)?e.borderWidth:null,color:e.inputColor,fontSize:e.fieldFontSize,lineHeight:e.lineHeight};return{blockStyle:t,fieldStyle:a,labelStyle:o,optionStyle:{color:a.color,fontSize:a.fontSize,lineHeight:a.lineHeight}}}},76523(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(47143);const n=e=>(0,a.useSelect)(t=>{if(!e)return null;const{getBlockParentsByBlockName:o}=t(r.store),a=o(e,["jetpack/contact-form"]);return a?.[0]||null},[e])},71076(e,t,o){"use strict";o.d(t,{A:()=>n});var r=o(94715),a=o(47143);function n(e){return(0,a.useSelect)(t=>{if(!e)return null;const{getBlocksByName:o,getBlockParentsByBlockName:a}=t(r.store),n=o("jetpack/form-step-container");if(!n||0===n.length)return null;const i=n.find(t=>{const o=a(t,["jetpack/contact-form"])[0];return o&&o===e});return i||null},[e])}},63631(e,t,o){"use strict";o.d(t,{A:()=>c});var r=o(94715),a=o(47143),n=o(86087),i=o(53792),s=o(41002);const c=(e,t)=>{const{setActiveStep:o}=(0,a.useDispatch)(i.M),{selectBlock:c}=(0,a.useDispatch)(r.store),l=(0,s.A)(e),d=(0,a.useSelect)(t=>t(i.M).getCurrentStepInfo(e,l),[e,l]);return{navigateToNextStep:(0,n.useCallback)(()=>{const{index:r,isLastStep:a}=d;if(a||!l.length)return;const n=l[r+1].clientId;o(e,n),t&&c(n)},[d,l,o,e,t,c]),navigateToPreviousStep:(0,n.useCallback)(()=>{const{index:r,isFirstStep:a}=d;if(a||!l.length)return;const n=l[r-1].clientId;o(e,n),t&&c(n)},[d,l,o,e,t,c]),navigateToStep:(0,n.useCallback)(r=>{if(r<0||r>=l.length)return;const a=l[r].clientId;o(e,a),t&&c(a)},[l,o,e,t,c]),currentStepInfo:d,steps:l}}},96839(e,t,o){"use strict";o.d(t,{A:()=>s});var r=o(94715),a=o(47143),n=o(86087),i=o(62111);const s=({clientId:e,blockName:t,isSynced:o,attributes:s,setAttributes:c})=>{(0,i.d)(t,o,["requiredIndicator"],s,c);const l=(0,a.useSelect)(t=>{const{getBlock:o}=t(r.store),a=o(e);if(!a)return;const n=a.innerBlocks.find(e=>"jetpack/label"===e.name);return n?.clientId},[e]),{updateBlockAttributes:d}=(0,a.useDispatch)(r.store);(0,n.useEffect)(()=>{l&&d(l,{requiredIndicator:s?.requiredIndicator})},[l,s?.requiredIndicator,d])}},97103(e,t,o){"use strict";o.d(t,{A:()=>p});var r=o(94715),a=o(3582),n=o(47143),i=o(86087),s=o(66087),c=o(11435),l=o(17988);function d(e){return"number"==typeof e||e instanceof Number?`${e}px`:e}function u(e){return e?.borderRadius?d(e?.borderRadius):e?.borderTopLeftRadius||e?.borderBottomLeftRadius?`max( ${e?.borderTopLeftRadius??0}, ${e?.borderBottomLeftRadius??0} )`:void 0}function p({clientId:e,inputBlockName:t,inputBlockAttributes:o}){const p=(0,l.A)(e),{userConfig:f,baseConfig:m}=(0,n.useSelect)(e=>{const{__experimentalGetCurrentGlobalStylesId:t,getEditedEntityRecord:o,__experimentalGetCurrentThemeBaseGlobalStyles:r}=e(a.store),n=t();return n?{userConfig:o("root","globalStyles",n),baseConfig:r()}:{userConfig:null,baseConfig:null}},[]),b=m?.styles?.blocks?.[t],g=f?.styles?.blocks?.[t],k=(0,i.useMemo)(()=>(0,s.merge)(b,g),[b,g]);return(0,i.useMemo)(()=>{const e=(0,r.__experimentalGetBorderClassesAndStyles)(o??{}),a=(0,r.__experimentalGetBorderClassesAndStyles)({style:k}),n=function(e,t){const o=d(e?.borderWidth)||t?.borderWidth;return o?{borderTopWidth:o,borderRightWidth:o,borderBottomWidth:o,borderLeftWidth:o}:{borderTopWidth:e?.borderTopWidth||t?.borderTopWidth,borderRightWidth:e?.borderRightWidth||t?.borderRightWidth,borderBottomWidth:e?.borderBottomWidth||t?.borderBottomWidth,borderLeftWidth:e?.borderLeftWidth||t?.borderLeftWidth}}(e?.style,a?.style),i="jetpack/options"===t&&!!n?.borderLeftWidth&&parseInt(n?.borderLeftWidth)>0?"jetpack-field-multiple__list--has-border":"";if(p!==c.pC.OUTLINED&&p!==c.pC.ANIMATED)return{className:i};const s=o?{backgroundColor:o?.backgroundColor,style:{color:{background:o?.style?.color?.background}}}:{},l=(0,r.__experimentalGetColorClassesAndStyles)(s),f=[e?.className,l?.className,i].filter(Boolean).join(" ");let m={};return p===c.pC.OUTLINED&&(m={"--jetpack--contact-form--notch-width":"max(var(--jetpack--contact-form--input-padding-left, 16px), var(--jetpack--contact-form--border-radius))"}),p===c.pC.ANIMATED&&(m={"--jetpack--contact-form--animated-left-offset":"16px"}),{className:f,style:{...e?.style,backgroundColor:l?.style?.backgroundColor},cssVars:{"--jetpack--contact-form--border-radius":u(e.style)||u(a.style),"--jetpack--contact-form--border-left-size":n?.borderLeftWidth,"--jetpack--contact-form--border-right-size":n?.borderRightWidth,"--jetpack--contact-form--border-top-size":n?.borderTopWidth,"--jetpack--contact-form--border-bottom-size":n?.borderBottomWidth,...m}}},[o,k,p,t])}},23083(e,t,o){"use strict";o.d(t,{A:()=>r});const r={apiVersion:3,attributes:{id:{type:"string"},required:{type:"boolean",default:!1},requiredIndicator:{type:"boolean",default:!0},width:{enum:[25,33,50,75,100,"auto"],default:100},shareFieldAttributes:{type:"boolean",default:!0},conditionalLogic:{type:"object",default:{enabled:!1,action:"show",logicalOperator:"any",groups:[]}},helpText:{type:"string"}},category:"contact-form",providesContext:{"jetpack/field-required":"required","jetpack/field-share-attributes":"shareFieldAttributes"},save:()=>null,supports:{reusable:!1,html:!1,visibility:!1,__experimentalExposeControlsToChildren:!0},transforms:o(12110).A}},12110(e,t,o){"use strict";o.d(t,{A:()=>c});var r=o(74997),a=o(27723);const __=a.__,n={"jetpack/field-text":{type:"text",label:__("Text","jetpack-forms"),labelPlaceholder:__("Add label…","jetpack-forms")},"jetpack/field-name":{type:"text",label:__("Name","jetpack-forms"),labelPlaceholder:__("Add label…","jetpack-forms")},"jetpack/field-email":{type:"email",label:__("Email","jetpack-forms"),labelPlaceholder:__("Add label…","jetpack-forms")},"jetpack/field-url":{type:"url",label:__("Website","jetpack-forms"),labelPlaceholder:__("Add label…","jetpack-forms")},"jetpack/field-telephone":{type:"tel",label:__("Phone","jetpack-forms"),labelPlaceholder:__("Add label…","jetpack-forms")},"jetpack/field-textarea":{type:"textarea",label:__("Message","jetpack-forms"),labelPlaceholder:__("Add label…","jetpack-forms")},"jetpack/field-number":{type:"number",label:__("Number","jetpack-forms"),labelPlaceholder:__("Add label…","jetpack-forms")},"jetpack/field-date":{type:"text",label:__("Date","jetpack-forms"),labelPlaceholder:__("Add label…","jetpack-forms")},"jetpack/field-time":{type:"time",label:__("Time","jetpack-forms"),labelPlaceholder:__("Add label…","jetpack-forms")},"jetpack/field-select":{type:"dropdown",label:"",labelPlaceholder:__("Add label…","jetpack-forms")},"jetpack/field-checkbox-multiple":{type:"checkbox",label:__("Choose several options","jetpack-forms"),labelPlaceholder:__("Add label…","jetpack-forms")},"jetpack/field-radio":{type:"radio",label:__("Choose one option","jetpack-forms"),labelPlaceholder:__("Add label…","jetpack-forms")},"jetpack/field-checkbox":{type:"checkbox",label:"",labelPlaceholder:__("Add label…","jetpack-forms"),extraAttributes:{isStandalone:!0,hideInput:!1}},"jetpack/field-consent":{type:"checkbox",label:"",labelPlaceholder:(0,a.sprintf)(/* translators: %s: a type of consent: implicit or explicit */
18 __("Add %s consent message…","jetpack-forms"),"implicit"),extraAttributes:{isStandalone:!0,hideInput:!0}}},i=e=>({required:e.required||!1,width:e.width||100,id:e.id||"",shareFieldAttributes:e.shareFieldAttributes??!0,helpText:e.helpText||void 0}),s=(e,t=[])=>{const o=n[e];if(!o)return[];const a=t.find(e=>"jetpack/label"===e.name),i=t.find(e=>"jetpack/input"===e.name),s=i?.attributes?{...i?.attributes}:{};return"jetpack/field-select"===e&&(s.placeholder=s?.placeholder||__("Select one option","jetpack-forms")),[(0,r.createBlock)("jetpack/label",{...a?.attributes||{},label:a?.attributes?.label||o.label,placeholder:o.labelPlaceholder}),(0,r.createBlock)("jetpack/input",{...s,type:o.type})]},c={from:[],to:[...["jetpack/field-date","jetpack/field-email","jetpack/field-name","jetpack/field-number","jetpack/field-telephone","jetpack/field-text","jetpack/field-textarea","jetpack/field-time","jetpack/field-url"].map(e=>({type:"block",blocks:[e],transform:(t,o=[])=>(0,r.createBlock)(e,i(t),s(e,o))})),...["jetpack/field-checkbox-multiple","jetpack/field-radio"].map(e=>({type:"block",blocks:[e],transform:(t,o=[])=>(0,r.createBlock)(e,i(t),((e,t=[],o={})=>{const a=n[e];if(!a)return[];const i=t.find(e=>"jetpack/label"===e.name),s=t.find(e=>"jetpack/options"===e.name),c=(0,r.createBlock)("jetpack/label",{...i?.attributes||{},label:i?.attributes?.label||a.label,placeholder:a.labelPlaceholder});let l;return l=s?.innerBlocks?s.innerBlocks.map(e=>(0,r.createBlock)("jetpack/option",{...e.attributes})):o.options?.length?o.options.map(e=>(0,r.createBlock)("jetpack/option",{label:e})):[(0,r.createBlock)("jetpack/option")],[c,(0,r.createBlock)("jetpack/options",{...s?.attributes||{},type:a.type},l)]})(e,o,t))})),...["jetpack/field-checkbox","jetpack/field-consent"].map(e=>({type:"block",blocks:[e],transform:(t,o=[])=>{const a=i(t);return(0,r.createBlock)(e,{...a,required:"jetpack/field-consent"!==e&&a.required},((e,t=[])=>{const o=n[e];if(!o)return[];const a=t.find(e=>"jetpack/option"===e.name);return[(0,r.createBlock)("jetpack/option",{...a?.attributes||{},label:o.label,placeholder:o.labelPlaceholder,...o.extraAttributes})]})(e,o))}})),{type:"block",blocks:["jetpack/field-select"],transform:(e,t=[])=>{const o=(e=>{const t=[],o=e.find(e=>"jetpack/options"===e.name);if(o?.innerBlocks?.length)t.push(...o.innerBlocks.map(e=>e.attributes.label??""));else{const o=e.find(e=>"jetpack/option"===e.name);o&&t.push(o.attributes.label??"")}return t})(t);return(0,r.createBlock)("jetpack/field-select",{...i(e),options:o.length?o:[""]},s("jetpack/field-select",t))}}]}},89125(e,t,o){"use strict";o.d(t,{J:()=>r});const r=e=>{const t=e.ownerDocument.defaultView.getSelection();if(0===t.rangeCount)return 0;const o=t.getRangeAt(0),r=o.cloneRange();return r.selectNodeContents(e),r.setEnd(o.endContainer,o.endOffset),r.toString().length}},9143(e,t,o){"use strict";o.d(t,{A:()=>a});const r=e=>{if(null===e||"object"!=typeof e||Array.isArray(e))return e;const t=Object.entries(e).map(([e,t])=>[e,r(t)]).filter(([,e])=>void 0!==e);return t.length?Object.fromEntries(t):void 0},a=r},11435(e,t,o){"use strict";o.d(t,{$8:()=>m,BY:()=>n,US:()=>p,bp:()=>d,fF:()=>l,kl:()=>c,lJ:()=>a,lP:()=>b,pC:()=>f,qt:()=>u,uO:()=>r});const __=o(27723).__,r=["core/bold","core/italic"],a=["jetpack/label","jetpack/input"],n=["core/accordion","core/audio","core/code","core/columns","core/details","core/group","core/heading","core/html","core/icon","core/image","core/list","core/math","core/paragraph","core/row","core/separator","core/spacer","core/stack","core/subhead","core/video"],i=(new Date).getFullYear(),s=[{value:"mm/dd/yy",
19 /* translators: date format. DD is the day of the month, MM the month, and YYYY the year (e.g., 12/31/2023). */
20 label:__("MM/DD/YYYY","jetpack-forms"),example:`12/31/${i}`},{value:"dd/mm/yy",
21 /* translators: date format. DD is the day of the month, MM the month, and YYYY the year (e.g., 31/12/2023). */
22 label:__("DD/MM/YYYY","jetpack-forms"),example:`21/12/${i}`},{value:"yy-mm-dd",
23 /* translators: date format. DD is the day of the month, MM the month, and YYYY the year (e.g., 2023-12-31). */
24 label:__("YYYY-MM-DD","jetpack-forms"),example:`${i}-12-31`}],c=s.map(({value:e,label:t,example:o})=>({label:`${t} (${o})`,value:e})),l=e=>s.find(t=>t.value===e)?.label??null,d="jetpack/contact-form",u="jetpack/field-",p={type:"flex",flexWrap:"nowrap",orientation:"vertical",justifyContent:"left",verticalAlignment:"top"},f={ANIMATED:"animated",BELOW:"below",DEFAULT:"default",OUTLINED:"outlined"},m="jetpack_form",b="_jetpack_forms_source_post_id"},28391(e,t,o){"use strict";o.d(t,{A:()=>a});var r=o(9143);const a=e=>{const{borderColor:t,borderRadius:o,borderWidth:a,fieldBackgroundColor:n,fieldFontSize:i,inputColor:s,labelColor:c,labelFontSize:l,labelLineHeight:d,lineHeight:u,placeholder:p,...f}=e,m=(0,r.A)({color:{text:c},typography:{fontSize:l,lineHeight:d?`${d}`:void 0}});return{inputStyles:(0,r.A)({border:{color:t,radius:o||0===o?`${o}px`:void 0,style:"solid",width:a||0===a?`${a}px`:void 0},color:{text:s,background:n},typography:{fontSize:i,lineHeight:u?`${u}`:void 0}}),labelStyles:m,optionStyles:(0,r.A)({color:{text:s},typography:{fontSize:i,lineHeight:u?`${u}`:void 0}}),restAttributes:f}}},13549(e,t,o){"use strict";function r(e,t){if(!e)return"";if(!Array.isArray(t)||!t.includes(e))return e;let o=2;for(;t.includes(`${e}-${o}`);)o++;return`${e}-${o}`}o.d(t,{C:()=>r})},60594(e,t,o){"use strict";o.d(t,{A:()=>r});const r=e=>{const t=e&&e.match(/is-style-([^\s]+)/i);return t?t[1]:""}},98047(e,t,o){"use strict";o.d(t,{u:()=>r});const r=(e,t,o=!1)=>{if(t<=0)return 0;if(o){const o=Math.max(0,e-1);return t>1?o/(t-1)*100:0}return Math.max(1,e)/t*100}},42211(e,t,o){"use strict";function r(e,t,o,r){setTimeout(()=>{const a=e.querySelectorAll(t)[o];if(a&&(a.focus(),document.createRange&&r)){const e=document.createRange();e.selectNodeContents(a),e.collapse(!1);const t=document.defaultView.getSelection();t.removeAllRanges(),t.addRange(e)}},0)}o.d(t,{A:()=>r})},37128(e,t,o){"use strict";o.d(t,{$:()=>a});var r=o(27723);const __=r.__;function a(e,t=""){const o=e+1;return t&&""!==t?(0,r.sprintf)(/* translators: %1$d is the step number, %2$s is the custom label */
25 __("Step %1$d – %2$s","jetpack-forms"),o,t):(0,r.sprintf)(/* translators: %d is the step number (1, 2, 3, etc.) */
26 __("Step %d","jetpack-forms"),o)}},53792(e,t,o){"use strict";o.d(t,{M:()=>c});var r=o(47143);const a={singleStepMode:{},activeStepId:{}},n={enableSingleStepMode:e=>({type:"ENABLE_SINGLE_STEP_MODE",formClientId:e}),disableSingleStepMode:e=>({type:"DISABLE_SINGLE_STEP_MODE",formClientId:e}),setActiveStep:(e,t)=>({type:"SET_ACTIVE_STEP",formClientId:e,stepClientId:t})},i={isSingleStepMode:(e,t)=>!1!==e.singleStepMode[t],getActiveStepId:(e,t)=>e.activeStepId[t]||null,getCurrentStepInfo(e,t,o){const r=i.getActiveStepId(e,t);if(null==r)return{stepLabel:"",index:-1,isFirstStep:!1,isLastStep:!1};const a=o.findIndex(e=>e.clientId===r);if(a>=0){return{stepLabel:o[a]?.attributes?.stepLabel||"",index:a,isFirstStep:0===a,isLastStep:a===o.length-1}}return{stepLabel:"",index:-1,isFirstStep:!1,isLastStep:!1}}},s="jetpack/forms/single-step",c=(0,r.createReduxStore)(s,{reducer:(e=a,t)=>{switch(t.type){case"ENABLE_SINGLE_STEP_MODE":return{...e,singleStepMode:{...e.singleStepMode,[t.formClientId]:!0}};case"DISABLE_SINGLE_STEP_MODE":return{...e,singleStepMode:{...e.singleStepMode,[t.formClientId]:!1}};case"SET_ACTIVE_STEP":return{...e,activeStepId:{...e.activeStepId,[t.formClientId]:t.stepClientId}};default:return e}},actions:n,selectors:i});(0,r.select)(s)||(0,r.register)(c)},15297(e,t,o){"use strict";o.d(t,{k:()=>a});const __=o(27723).__,r={AF:__("Afghanistan","jetpack-forms"),AL:__("Albania","jetpack-forms"),DZ:__("Algeria","jetpack-forms"),AS:__("American Samoa","jetpack-forms"),AD:__("Andorra","jetpack-forms"),AO:__("Angola","jetpack-forms"),AI:__("Anguilla","jetpack-forms"),AG:__("Antigua and Barbuda","jetpack-forms"),AR:__("Argentina","jetpack-forms"),AM:__("Armenia","jetpack-forms"),AW:__("Aruba","jetpack-forms"),AU:__("Australia","jetpack-forms"),AT:__("Austria","jetpack-forms"),AZ:__("Azerbaijan","jetpack-forms"),BS:__("Bahamas","jetpack-forms"),BH:__("Bahrain","jetpack-forms"),BD:__("Bangladesh","jetpack-forms"),BB:__("Barbados","jetpack-forms"),BY:__("Belarus","jetpack-forms"),BE:__("Belgium","jetpack-forms"),BZ:__("Belize","jetpack-forms"),BJ:__("Benin","jetpack-forms"),BM:__("Bermuda","jetpack-forms"),BT:__("Bhutan","jetpack-forms"),BO:__("Bolivia","jetpack-forms"),BA:__("Bosnia and Herzegovina","jetpack-forms"),BW:__("Botswana","jetpack-forms"),BR:__("Brazil","jetpack-forms"),IO:__("British Indian Ocean Territory","jetpack-forms"),VG:__("British Virgin Islands","jetpack-forms"),BN:__("Brunei","jetpack-forms"),BG:__("Bulgaria","jetpack-forms"),BF:__("Burkina Faso","jetpack-forms"),BI:__("Burundi","jetpack-forms"),KH:__("Cambodia","jetpack-forms"),CM:__("Cameroon","jetpack-forms"),CA:__("Canada","jetpack-forms"),CV:__("Cape Verde","jetpack-forms"),KY:__("Cayman Islands","jetpack-forms"),CF:__("Central African Republic","jetpack-forms"),TD:__("Chad","jetpack-forms"),CL:__("Chile","jetpack-forms"),CN:__("China","jetpack-forms"),CX:__("Christmas Island","jetpack-forms"),CC:__("Cocos (Keeling) Islands","jetpack-forms"),CO:__("Colombia","jetpack-forms"),KM:__("Comoros","jetpack-forms"),CG:__("Congo - Brazzaville","jetpack-forms"),CD:__("Congo - Kinshasa","jetpack-forms"),CK:__("Cook Islands","jetpack-forms"),CR:__("Costa Rica","jetpack-forms"),HR:__("Croatia","jetpack-forms"),CU:__("Cuba","jetpack-forms"),CY:__("Cyprus","jetpack-forms"),CZ:__("Czech Republic","jetpack-forms"),CI:__("Côte d'Ivoire","jetpack-forms"),DK:__("Denmark","jetpack-forms"),DJ:__("Djibouti","jetpack-forms"),DM:__("Dominica","jetpack-forms"),DO:__("Dominican Republic","jetpack-forms"),EC:__("Ecuador","jetpack-forms"),EG:__("Egypt","jetpack-forms"),SV:__("El Salvador","jetpack-forms"),GQ:__("Equatorial Guinea","jetpack-forms"),ER:__("Eritrea","jetpack-forms"),EE:__("Estonia","jetpack-forms"),SZ:__("Eswatini","jetpack-forms"),ET:__("Ethiopia","jetpack-forms"),FK:__("Falkland Islands","jetpack-forms"),FO:__("Faroe Islands","jetpack-forms"),FJ:__("Fiji","jetpack-forms"),FI:__("Finland","jetpack-forms"),FR:__("France","jetpack-forms"),GF:__("French Guiana","jetpack-forms"),PF:__("French Polynesia","jetpack-forms"),GA:__("Gabon","jetpack-forms"),GM:__("Gambia","jetpack-forms"),GE:__("Georgia","jetpack-forms"),DE:__("Germany","jetpack-forms"),GH:__("Ghana","jetpack-forms"),GI:__("Gibraltar","jetpack-forms"),GR:__("Greece","jetpack-forms"),GL:__("Greenland","jetpack-forms"),GD:__("Grenada","jetpack-forms"),GP:__("Guadeloupe","jetpack-forms"),GU:__("Guam","jetpack-forms"),GT:__("Guatemala","jetpack-forms"),GG:__("Guernsey","jetpack-forms"),GN:__("Guinea","jetpack-forms"),GW:__("Guinea-Bissau","jetpack-forms"),GY:__("Guyana","jetpack-forms"),HT:__("Haiti","jetpack-forms"),HN:__("Honduras","jetpack-forms"),HK:__("Hong Kong","jetpack-forms"),HU:__("Hungary","jetpack-forms"),IS:__("Iceland","jetpack-forms"),IN:__("India","jetpack-forms"),ID:__("Indonesia","jetpack-forms"),IR:__("Iran","jetpack-forms"),IQ:__("Iraq","jetpack-forms"),IE:__("Ireland","jetpack-forms"),IM:__("Isle of Man","jetpack-forms"),IL:__("Israel","jetpack-forms"),IT:__("Italy","jetpack-forms"),JM:__("Jamaica","jetpack-forms"),JP:__("Japan","jetpack-forms"),JE:__("Jersey","jetpack-forms"),JO:__("Jordan","jetpack-forms"),KZ:__("Kazakhstan","jetpack-forms"),KE:__("Kenya","jetpack-forms"),KI:__("Kiribati","jetpack-forms"),XK:__("Kosovo","jetpack-forms"),KW:__("Kuwait","jetpack-forms"),KG:__("Kyrgyzstan","jetpack-forms"),LA:__("Laos","jetpack-forms"),LV:__("Latvia","jetpack-forms"),LB:__("Lebanon","jetpack-forms"),LS:__("Lesotho","jetpack-forms"),LR:__("Liberia","jetpack-forms"),LY:__("Libya","jetpack-forms"),LI:__("Liechtenstein","jetpack-forms"),LT:__("Lithuania","jetpack-forms"),LU:__("Luxembourg","jetpack-forms"),MO:__("Macao","jetpack-forms"),MG:__("Madagascar","jetpack-forms"),MW:__("Malawi","jetpack-forms"),MY:__("Malaysia","jetpack-forms"),MV:__("Maldives","jetpack-forms"),ML:__("Mali","jetpack-forms"),MT:__("Malta","jetpack-forms"),MH:__("Marshall Islands","jetpack-forms"),MQ:__("Martinique","jetpack-forms"),MR:__("Mauritania","jetpack-forms"),MU:__("Mauritius","jetpack-forms"),YT:__("Mayotte","jetpack-forms"),MX:__("Mexico","jetpack-forms"),FM:__("Micronesia","jetpack-forms"),MD:__("Moldova","jetpack-forms"),MC:__("Monaco","jetpack-forms"),MN:__("Mongolia","jetpack-forms"),ME:__("Montenegro","jetpack-forms"),MS:__("Montserrat","jetpack-forms"),MA:__("Morocco","jetpack-forms"),MZ:__("Mozambique","jetpack-forms"),MM:__("Myanmar","jetpack-forms"),NA:__("Namibia","jetpack-forms"),NR:__("Nauru","jetpack-forms"),NP:__("Nepal","jetpack-forms"),NL:__("Netherlands","jetpack-forms"),NC:__("New Caledonia","jetpack-forms"),NZ:__("New Zealand","jetpack-forms"),NI:__("Nicaragua","jetpack-forms"),NE:__("Niger","jetpack-forms"),NG:__("Nigeria","jetpack-forms"),NU:__("Niue","jetpack-forms"),NF:__("Norfolk Island","jetpack-forms"),KP:__("North Korea","jetpack-forms"),MK:__("North Macedonia","jetpack-forms"),MP:__("Northern Mariana Islands","jetpack-forms"),NO:__("Norway","jetpack-forms"),OM:__("Oman","jetpack-forms"),PK:__("Pakistan","jetpack-forms"),PW:__("Palau","jetpack-forms"),PS:__("Palestine","jetpack-forms"),PA:__("Panama","jetpack-forms"),PG:__("Papua New Guinea","jetpack-forms"),PY:__("Paraguay","jetpack-forms"),PE:__("Peru","jetpack-forms"),PH:__("Philippines","jetpack-forms"),PN:__("Pitcairn Islands","jetpack-forms"),PL:__("Poland","jetpack-forms"),PT:__("Portugal","jetpack-forms"),PR:__("Puerto Rico","jetpack-forms"),QA:__("Qatar","jetpack-forms"),RO:__("Romania","jetpack-forms"),RU:__("Russia","jetpack-forms"),RW:__("Rwanda","jetpack-forms"),RE:__("Réunion","jetpack-forms"),BL:__("Saint Barthélemy","jetpack-forms"),SH:__("Saint Helena","jetpack-forms"),KN:__("Saint Kitts and Nevis","jetpack-forms"),LC:__("Saint Lucia","jetpack-forms"),MF:__("Saint Martin","jetpack-forms"),PM:__("Saint Pierre and Miquelon","jetpack-forms"),VC:__("Saint Vincent and the Grenadines","jetpack-forms"),WS:__("Samoa","jetpack-forms"),SM:__("San Marino","jetpack-forms"),SA:__("Saudi Arabia","jetpack-forms"),SN:__("Senegal","jetpack-forms"),RS:__("Serbia","jetpack-forms"),SC:__("Seychelles","jetpack-forms"),SL:__("Sierra Leone","jetpack-forms"),SG:__("Singapore","jetpack-forms"),SK:__("Slovakia","jetpack-forms"),SI:__("Slovenia","jetpack-forms"),SB:__("Solomon Islands","jetpack-forms"),SO:__("Somalia","jetpack-forms"),ZA:__("South Africa","jetpack-forms"),GS:__("South Georgia and the South Sandwich Islands","jetpack-forms"),KR:__("South Korea","jetpack-forms"),ES:__("Spain","jetpack-forms"),LK:__("Sri Lanka","jetpack-forms"),SD:__("Sudan","jetpack-forms"),SR:__("Suriname","jetpack-forms"),SJ:__("Svalbard and Jan Mayen","jetpack-forms"),SE:__("Sweden","jetpack-forms"),CH:__("Switzerland","jetpack-forms"),SY:__("Syria","jetpack-forms"),ST:__("São Tomé and Príncipe","jetpack-forms"),TW:__("Taiwan","jetpack-forms"),TJ:__("Tajikistan","jetpack-forms"),TZ:__("Tanzania","jetpack-forms"),TH:__("Thailand","jetpack-forms"),TL:__("Timor-Leste","jetpack-forms"),TG:__("Togo","jetpack-forms"),TK:__("Tokelau","jetpack-forms"),TO:__("Tonga","jetpack-forms"),TT:__("Trinidad and Tobago","jetpack-forms"),TN:__("Tunisia","jetpack-forms"),TR:__("Turkey","jetpack-forms"),TM:__("Turkmenistan","jetpack-forms"),TC:__("Turks and Caicos Islands","jetpack-forms"),TV:__("Tuvalu","jetpack-forms"),VI:__("U.S. Virgin Islands","jetpack-forms"),UG:__("Uganda","jetpack-forms"),UA:__("Ukraine","jetpack-forms"),AE:__("United Arab Emirates","jetpack-forms"),GB:__("United Kingdom","jetpack-forms"),US:__("United States","jetpack-forms"),UY:__("Uruguay","jetpack-forms"),UZ:__("Uzbekistan","jetpack-forms"),VU:__("Vanuatu","jetpack-forms"),VA:__("Vatican City","jetpack-forms"),VE:__("Venezuela","jetpack-forms"),VN:__("Vietnam","jetpack-forms"),WF:__("Wallis and Futuna","jetpack-forms"),YE:__("Yemen","jetpack-forms"),ZM:__("Zambia","jetpack-forms"),ZW:__("Zimbabwe","jetpack-forms")},a=e=>r[e]||e},91980(e,t,o){"use strict";o.d(t,{x:()=>a});var r=o(85985);const a=(0,r.$i)()?.adminUrl+"admin.php?page=jetpack-forms-admin"},26313(e,t,o){"use strict";o.d(t,{a:()=>u});var r=o(13022),a=o(86087),n=o(71100),i=o(10790),s="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[o,r]of t.styles)l(e,o,r)}(document)),e.__wpStyleRuntime}function l(e,t,o){if(!e.head)return;const r=c();let a=r.injectedStyles.get(e);if(a||(a=new Set,r.injectedStyles.set(e,a)),a.has(t))return;if(function(e,t){if(!e.head)return!1;for(const o of e.head.querySelectorAll(`style[${s}]`))if(o.getAttribute(s)===t)return!0;return!1}(e,t))return void a.add(t);const n=e.createElement("style");n.setAttribute(s,t),n.appendChild(e.createTextNode(o)),e.head.appendChild(n),a.add(t)}(function(e,t){const o=c();o.styles.set(e,t);for(const r of o.documents.keys())l(r,e,t)})("effc4e3032",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:var(--wpds-typography-font-weight-emphasis,600);--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8d8d8d);--wp-ui-button-padding-block:var(--wpds-dimension-padding-xs,4px);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height:var(--wpds-dimension-size-lg,40px);--wp-ui-button-aspect-ratio:auto;--wp-ui-button-font-size:var(--wpds-typography-font-size-md,13px);--wp-ui-button-min-width:calc(4ch + var(--wp-ui-button-padding-inline)*2);--wp-ui-button-icon-margin:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2);--wp-ui-button-border-color:var(--wp-ui-button-background-color);--wp-ui-button-border-color-active:var(--wp-ui-button-background-color-active);--wp-ui-button-border-color-disabled:var(--wp-ui-button-background-color-disabled);--_gcd-button-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-button-font-size:var(--wp-ui-button-font-size);--_gcd-button-font-weight:var(--wp-ui-button-font-weight);align-items:center;aspect-ratio:var(--wp-ui-button-aspect-ratio);background-clip:border-box;background-color:var(--wp-ui-button-background-color);border-color:var(--wp-ui-button-border-color);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:1px;color:var(--wp-ui-button-foreground-color);display:inline-flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wp-ui-button-font-size);font-weight:var(--wp-ui-button-font-weight);gap:var(--wpds-dimension-gap-sm,8px);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);max-width:100%;min-height:var(--wp-ui-button-height);min-width:var(--wp-ui-button-min-width);overflow-wrap:anywhere;padding-block:var(--wp-ui-button-padding-block);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-align:center;text-decoration:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}@media not (prefers-reduced-motion){transition:color .1s ease-out;*{transition:opacity .1s ease-out}}&[href]{cursor:pointer}[href]{color:inherit;text-decoration:inherit}&:not([data-disabled]):is(:hover,:active,:focus){background-color:var(--wp-ui-button-background-color-active);border-color:var(--wp-ui-button-border-color-active);color:var(--wp-ui-button-foreground-color-active)}&[data-disabled]:not(._914b42f315c0e580__is-loading){background-color:var(--wp-ui-button-background-color-disabled);border-color:var(--wp-ui-button-border-color-disabled);color:var(--wp-ui-button-foreground-color-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&:before{aspect-ratio:1;border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid;border-block-end-color:transparent;border-block-start-color:var(--wp-ui-button-foreground-color);border-inline-end-color:var(--wp-ui-button-foreground-color);border-inline-start-color:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:var(--wp-ui-button-font-size);left:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);@media not (prefers-reduced-motion){transition:opacity .1s ease-out}@media (forced-colors:active){border-block-end-style:none;border-bottom-color:ButtonText;border-inline-start-style:none;border-left-color:ButtonText;border-right-color:ButtonText;border-top-color:ButtonText}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-block:0px;--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:var(--wpds-dimension-size-sm,24px)}._9f6fc6553aeb36fe__icon{margin:var(--wp-ui-button-icon-margin)}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-brand-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.ad0619a3217c6a5b__is-minimal[aria-pressed=true],&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:var(--wpds-dimension-size-md,32px)}._914b42f315c0e580__is-loading:not(.abbb272e2ce49bd6__is-unstyled){color:transparent;&:not([data-disabled]):is(:hover,:active,:focus){color:transparent}@media (forced-colors:active){color:ButtonFace}*{opacity:0}&:before{opacity:1;transition-delay:.05s;@media not (prefers-reduced-motion){animation:_5a1d53da6f830c8d__loading-animation 1s linear infinite}}}}@keyframes _5a1d53da6f830c8d__loading-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}}');var d="_9f6fc6553aeb36fe__icon",u=(0,a.forwardRef)(function({className:e,icon:t,...o},a){return(0,i.jsx)(n.I,{ref:a,icon:t,className:(0,r.A)(d,e),size:24,...o})})},71100(e,t,o){"use strict";o.d(t,{I:()=>i});var r=o(86087),a=o(5573),n=o(10790),i=(0,r.forwardRef)(function({icon:e,size:t=24,style:o,...r},i){const s=e.props.style||o?{...e.props.style,...o}:void 0;return(0,n.jsx)(a.SVG,{ref:i,...e.props,...r,...s?{style:s}:{},width:t,height:t})})},93056(e,t,o){"use strict";o.d(t,{S:()=>i});var r=o(86087),a=o(26313),n=o(10790),i=(0,r.forwardRef)(function(e,t){return(0,n.jsx)(a.a,{ref:t,...e})})},33245(e,t,o){"use strict";o.d(t,{z:()=>n});var r=o(4324),a=o(93056);a.S.displayName="LinkButton.Icon";var n=Object.assign(r.z,{Icon:a.S})},4324(e,t,o){"use strict";o.d(t,{z:()=>f});var r=o(13022),a=o(86087),n=o(79654),i=o(10790),s="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[o,r]of t.styles)l(e,o,r)}(document)),e.__wpStyleRuntime}function l(e,t,o){if(!e.head)return;const r=c();let a=r.injectedStyles.get(e);if(a||(a=new Set,r.injectedStyles.set(e,a)),a.has(t))return;if(function(e,t){if(!e.head)return!1;for(const o of e.head.querySelectorAll(`style[${s}]`))if(o.getAttribute(s)===t)return!0;return!1}(e,t))return void a.add(t);const n=e.createElement("style");n.setAttribute(s,t),n.appendChild(e.createTextNode(o)),e.head.appendChild(n),a.add(t)}function d(e,t){const o=c();o.styles.set(e,t);for(const r of o.documents.keys())l(r,e,t)}d("effc4e3032",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:var(--wpds-typography-font-weight-emphasis,600);--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8d8d8d);--wp-ui-button-padding-block:var(--wpds-dimension-padding-xs,4px);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height:var(--wpds-dimension-size-lg,40px);--wp-ui-button-aspect-ratio:auto;--wp-ui-button-font-size:var(--wpds-typography-font-size-md,13px);--wp-ui-button-min-width:calc(4ch + var(--wp-ui-button-padding-inline)*2);--wp-ui-button-icon-margin:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2);--wp-ui-button-border-color:var(--wp-ui-button-background-color);--wp-ui-button-border-color-active:var(--wp-ui-button-background-color-active);--wp-ui-button-border-color-disabled:var(--wp-ui-button-background-color-disabled);--_gcd-button-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-button-font-size:var(--wp-ui-button-font-size);--_gcd-button-font-weight:var(--wp-ui-button-font-weight);align-items:center;aspect-ratio:var(--wp-ui-button-aspect-ratio);background-clip:border-box;background-color:var(--wp-ui-button-background-color);border-color:var(--wp-ui-button-border-color);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:1px;color:var(--wp-ui-button-foreground-color);display:inline-flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wp-ui-button-font-size);font-weight:var(--wp-ui-button-font-weight);gap:var(--wpds-dimension-gap-sm,8px);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);max-width:100%;min-height:var(--wp-ui-button-height);min-width:var(--wp-ui-button-min-width);overflow-wrap:anywhere;padding-block:var(--wp-ui-button-padding-block);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-align:center;text-decoration:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}@media not (prefers-reduced-motion){transition:color .1s ease-out;*{transition:opacity .1s ease-out}}&[href]{cursor:pointer}[href]{color:inherit;text-decoration:inherit}&:not([data-disabled]):is(:hover,:active,:focus){background-color:var(--wp-ui-button-background-color-active);border-color:var(--wp-ui-button-border-color-active);color:var(--wp-ui-button-foreground-color-active)}&[data-disabled]:not(._914b42f315c0e580__is-loading){background-color:var(--wp-ui-button-background-color-disabled);border-color:var(--wp-ui-button-border-color-disabled);color:var(--wp-ui-button-foreground-color-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&:before{aspect-ratio:1;border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid;border-block-end-color:transparent;border-block-start-color:var(--wp-ui-button-foreground-color);border-inline-end-color:var(--wp-ui-button-foreground-color);border-inline-start-color:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:var(--wp-ui-button-font-size);left:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);@media not (prefers-reduced-motion){transition:opacity .1s ease-out}@media (forced-colors:active){border-block-end-style:none;border-bottom-color:ButtonText;border-inline-start-style:none;border-left-color:ButtonText;border-right-color:ButtonText;border-top-color:ButtonText}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-block:0px;--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:var(--wpds-dimension-size-sm,24px)}._9f6fc6553aeb36fe__icon{margin:var(--wp-ui-button-icon-margin)}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-brand-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.ad0619a3217c6a5b__is-minimal[aria-pressed=true],&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:var(--wpds-dimension-size-md,32px)}._914b42f315c0e580__is-loading:not(.abbb272e2ce49bd6__is-unstyled){color:transparent;&:not([data-disabled]):is(:hover,:active,:focus){color:transparent}@media (forced-colors:active){color:ButtonFace}*{opacity:0}&:before{opacity:1;transition-delay:.05s;@media not (prefers-reduced-motion){animation:_5a1d53da6f830c8d__loading-animation 1s linear infinite}}}}@keyframes _5a1d53da6f830c8d__loading-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}}');var u={button:"_97b0fc33c028be1a__button","is-unstyled":"abbb272e2ce49bd6__is-unstyled","is-loading":"_914b42f315c0e580__is-loading","is-small":"_908205475f9f2a92__is-small",icon:"_9f6fc6553aeb36fe__icon","is-brand":"dd460c965226cc77__is-brand","is-outline":"_62d5a778b7b258ee__is-outline","is-minimal":"ad0619a3217c6a5b__is-minimal","is-neutral":"e722a8f96726aa99__is-neutral","is-solid":"b50b3358c5fb4d0b__is-solid","is-compact":"cf59cf1b69629838__is-compact","loading-animation":"_5a1d53da6f830c8d__loading-animation"};d("28bf11d4bc","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer compositions{._222ee22ada9c12b2__link-button{--_gcd-a-color:var(--wp-ui-button-foreground-color);--_gcd-a-border-radius:var(--wpds-border-radius-sm,2px);&:visited{--_gcd-a-color:var(--wp-ui-button-foreground-color)}&:is(:hover,:active,:focus){--_gcd-a-color:var(--wp-ui-button-foreground-color-active)}}}}");var p="_222ee22ada9c12b2__link-button",f=(0,a.forwardRef)(function({tone:e="brand",variant:t="solid",size:o="default",className:a,children:s,...c},l){return(0,i.jsx)(n.N,{ref:l,variant:"unstyled",className:(0,r.A)(p,"unstyled"!==t&&u.button,u[`is-${e}`],u[`is-${t}`],u[`is-${o}`],a),...c,children:s})})},79654(e,t,o){"use strict";o.d(t,{N:()=>k});var r=o(899),a=o(45339),n=o(13022),i=o(86087),s=o(27723),c=o(10790),l="data-wp-hash";function d(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=d();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[o,r]of t.styles)u(e,o,r)}(document)),e.__wpStyleRuntime}function u(e,t,o){if(!e.head)return;const r=d();let a=r.injectedStyles.get(e);if(a||(a=new Set,r.injectedStyles.set(e,a)),a.has(t))return;if(function(e,t){if(!e.head)return!1;for(const o of e.head.querySelectorAll(`style[${l}]`))if(o.getAttribute(l)===t)return!0;return!1}(e,t))return void a.add(t);const n=e.createElement("style");n.setAttribute(l,t),n.appendChild(e.createTextNode(o)),e.head.appendChild(n),a.add(t)}function p(e,t){const o=d();o.styles.set(e,t);for(const r of o.documents.keys())u(r,e,t)}p("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var f="_336cd3e4e743482f__box-sizing";p("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var m="abc777e9713fa711__outset-ring--focus-except-active";p("e8e6a9be37",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d4250949359b05ce__link{text-decoration-thickness:from-font;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{--_gcd-a-color:inherit;color:inherit;text-decoration:none}._0cb411afac4c86c7__link-icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}}');var b={link:"d4250949359b05ce__link","is-brand":"c6055659b8e2cd2c__is-brand","is-neutral":"_92e0dfcaeee15b88__is-neutral","is-unstyled":"cf122a9bf1035d42__is-unstyled","link-icon":"_0cb411afac4c86c7__link-icon"};p("e8e31009f5","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var g="_2c0831b0499dbd6e__a",k=(0,i.forwardRef)(function({children:e,variant:t="default",tone:o="brand",openInNewTab:i=!1,target:l,render:d,className:u,...p},k){const h=i||/^_blank$/i.test(l??"");return(0,r.C)({render:d,defaultTagName:"a",ref:k,props:(0,a.v6)(p,{className:(0,n.A)(g,f,m,"unstyled"!==t&&b.link,"unstyled"!==t&&b[`is-${o}`],"unstyled"===t&&b["is-unstyled"],u),target:l??(i?"_blank":void 0),children:(0,c.jsxs)(c.Fragment,{children:[e,h&&(0,c.jsx)("span",{className:b["link-icon"],role:"img","aria-label":/* translators: accessibility text appended to link text */ /* translators: accessibility text appended to link text */(0,s.__)("(opens in a new tab)","jetpack-forms")})]})})})})},61868(e,t,o){"use strict";o.d(t,{V:()=>u});var r=o(86087),a=o(13022),n=o(39968),i=o(10790),s="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[o,r]of t.styles)l(e,o,r)}(document)),e.__wpStyleRuntime}function l(e,t,o){if(!e.head)return;const r=c();let a=r.injectedStyles.get(e);if(a||(a=new Set,r.injectedStyles.set(e,a)),a.has(t))return;if(function(e,t){if(!e.head)return!1;for(const o of e.head.querySelectorAll(`style[${s}]`))if(o.getAttribute(s)===t)return!0;return!1}(e,t))return void a.add(t);const n=e.createElement("style");n.setAttribute(s,t),n.appendChild(e.createTextNode(o)),e.head.appendChild(n),a.add(t)}(function(e,t){const o=c();o.styles.set(e,t);for(const r of o.documents.keys())l(r,e,t)})("2e53930a41","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#adc6e2);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bd7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#936300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#92d39d);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#e0afa7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var d="_1904b570a89bb815__description",u=(0,r.forwardRef)(function({className:e,...t},o){return(0,i.jsx)(n.E,{ref:o,variant:"body-md",className:(0,a.A)(d,e),...t})})},88050(e,t,o){"use strict";o.d(t,{b:()=>w});var r=o(20195),a=o(86087),n=o(53758),i=o(49099),s=o(28847),c=o(42243),l=o(899),d=o(45339),u=o(13022),p=o(71100),f=o(10790),m="data-wp-hash";function b(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=b();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[o,r]of t.styles)g(e,o,r)}(document)),e.__wpStyleRuntime}function g(e,t,o){if(!e.head)return;const r=b();let a=r.injectedStyles.get(e);if(a||(a=new Set,r.injectedStyles.set(e,a)),a.has(t))return;if(function(e,t){if(!e.head)return!1;for(const o of e.head.querySelectorAll(`style[${m}]`))if(o.getAttribute(m)===t)return!0;return!1}(e,t))return void a.add(t);const n=e.createElement("style");n.setAttribute(m,t),n.appendChild(e.createTextNode(o)),e.head.appendChild(n),a.add(t)}function k(e,t){const o=b();o.styles.set(e,t);for(const r of o.documents.keys())g(r,e,t)}k("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var h="_336cd3e4e743482f__box-sizing";k("2e53930a41","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#adc6e2);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bd7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#936300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#92d39d);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#e0afa7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var v={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},j={neutral:null,info:s.A,warning:n.A,success:c.A,error:i.A};function y(e){return"error"===e?"assertive":"polite"}function x(e,t){const o=function(e){if(e){if("string"==typeof e)return e;try{return(0,a.renderToString)(e)}catch{return}}}(e);(0,a.useEffect)(()=>{o&&(0,r.speak)(o,t)},[o,t])}var w=(0,a.forwardRef)(function({intent:e="neutral",children:t,icon:o,spokenMessage:r=t,politeness:a=y(e),render:n,...i},s){x(r,a);const c=null===o?null:o??j[e],m=(0,u.A)(v.notice,v[`is-${e}`],h);return(0,l.C)({defaultTagName:"div",render:n,ref:s,props:(0,d.v6)({className:m,children:(0,f.jsxs)(f.Fragment,{children:[t,c&&(0,f.jsx)(p.I,{className:v.icon,icon:c})]})},i)})})},42472(e,t,o){"use strict";o.d(t,{h:()=>u});var r=o(86087),a=o(13022),n=o(39968),i=o(10790),s="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[o,r]of t.styles)l(e,o,r)}(document)),e.__wpStyleRuntime}function l(e,t,o){if(!e.head)return;const r=c();let a=r.injectedStyles.get(e);if(a||(a=new Set,r.injectedStyles.set(e,a)),a.has(t))return;if(function(e,t){if(!e.head)return!1;for(const o of e.head.querySelectorAll(`style[${s}]`))if(o.getAttribute(s)===t)return!0;return!1}(e,t))return void a.add(t);const n=e.createElement("style");n.setAttribute(s,t),n.appendChild(e.createTextNode(o)),e.head.appendChild(n),a.add(t)}(function(e,t){const o=c();o.styles.set(e,t);for(const r of o.documents.keys())l(r,e,t)})("2e53930a41","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#adc6e2);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bd7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#936300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#92d39d);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#e0afa7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var d="b5397fb9d05389e3__title",u=(0,r.forwardRef)(function({className:e,...t},o){return(0,i.jsx)(n.E,{ref:o,variant:"heading-md",className:(0,a.A)(d,e),...t})})},39968(e,t,o){"use strict";o.d(t,{E:()=>m});var r=o(899),a=o(45339),n=o(13022),i=o(86087),s="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[o,r]of t.styles)l(e,o,r)}(document)),e.__wpStyleRuntime}function l(e,t,o){if(!e.head)return;const r=c();let a=r.injectedStyles.get(e);if(a||(a=new Set,r.injectedStyles.set(e,a)),a.has(t))return;if(function(e,t){if(!e.head)return!1;for(const o of e.head.querySelectorAll(`style[${s}]`))if(o.getAttribute(s)===t)return!0;return!1}(e,t))return void a.add(t);const n=e.createElement("style");n.setAttribute(s,t),n.appendChild(e.createTextNode(o)),e.head.appendChild(n),a.add(t)}function d(e,t){const o=c();o.styles.set(e,t);for(const r of o.documents.keys())l(r,e,t)}d("3167e7d116",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._83ed8a8da5dd50ea__text{text-wrap:pretty;margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var u={text:"_83ed8a8da5dd50ea__text","heading-2xl":"_14437cfb77831647__heading-2xl","heading-xl":"_3c78b7fa9b4072dd__heading-xl","heading-lg":"aa58f227716bcde2__heading-lg","heading-md":"fc4da56d8dfe52c4__heading-md","heading-sm":"a9b78c7c82e8dff7__heading-sm","body-xl":"_305ff559e52180d5__body-xl","body-lg":"ca1aa3fc2029e958__body-lg","body-md":"_131101940be12424__body-md","body-sm":"_0e8d87a42c1f75fa__body-sm"};d("e8e31009f5","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var p="_43cec3e1eec1066d__p",f="e97669c6d9a38497__heading",m=(0,i.forwardRef)(function({variant:e="body-md",render:t,className:o,...i},s){return(0,r.C)({render:t,defaultTagName:"span",ref:s,props:(0,a.v6)(i,{className:(0,n.A)(u.text,f,p,u[e],o)})})})},73423(e){"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jetpack/contact-form","title":"Form","description":"Create forms to collect data from site visitors and manage their responses.","keywords":["email","feedback","contact form"],"version":"12.5.0","textdomain":"jetpack-forms","category":"contact-form","icon":"<svg viewBox=\'0 0 24 24\' width=\'24\' height=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'m13 7.5 h 5 v 1.5 h -5 v -1.5z\'/><path d=\'m13 15 h 5 v 1.5 h -5 v -1.5z\'/><path d=\'m19.01,3H4.99c-1.1,0-1.99.89-1.99,1.99v14.02c0,1.1.89,1.99,1.99,1.99h14.02c1.1,0,1.99-.89,1.99-1.99V4.99c0-1.1-.89-1.99-1.99-1.99Zm.49,15.99c0,.28-.23.51-.51.51H5.01c-.28,0-.51-.23-.51-.51V5.01c0-.28.23-.51.51-.51h13.98c.28,0,.51.23.51.51v13.98Z\'/><path d=\'m9.46,13h-1.92c-.85,0-1.54.69-1.54,1.54v1.92c0,.85.69,1.54,1.54,1.54h1.92c.85,0,1.54-.69,1.54-1.54v-1.92c0-.85-.69-1.54-1.54-1.54Zm.04,3.5h-2v-2h2v2Z\'/><path d=\'m9.46,6h-1.92c-.85,0-1.54.69-1.54,1.54v1.92c0,.85.69,1.54,1.54,1.54h1.92c.85,0,1.54-.69,1.54-1.54v-1.92c0-.85-.69-1.54-1.54-1.54Zm.04,3.5h-2v-2h2v2Z\'/></svg>","supports":{"color":{"link":true,"gradients":true},"background":{"backgroundImage":true,"backgroundSize":true,"__experimentalDefaultControls":{"backgroundImage":true}},"html":false,"spacing":{"padding":true,"margin":true},"align":["wide","full"],"layout":{"default":{"type":"flex","flexWrap":"wrap","orientation":"horizontal","justifyContent":"left","verticalAlignment":"top"},"allowSwitching":false,"allowEditing":true,"allowOrientation":true,"allowVerticalAlignment":true,"allowJustification":true,"allowWrap":false},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"listView":true},"attributes":{},"editorScript":"file:./editor.js","style":"file:../../../dist/contact-form/css/jetpack-forms-layout.css"}')}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var o=s[e]={exports:{}};return i[e](o,o.exports,c),o.exports}c.m=i,e=[],c.O=(t,o,r,a)=>{if(!o){var n=1/0;for(d=0;d<e.length;d++){for(var[o,r,a]=e[d],i=!0,s=0;s<o.length;s++)(!1&a||n>=a)&&Object.keys(c.O).every(e=>c.O[e](o[s]))?o.splice(s--,1):(i=!1,a<n&&(n=a));if(i){e.splice(d--,1);var l=r();void 0!==l&&(t=l)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[o,r,a]},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var a=Object.create(null);c.r(a);var n={};t=t||[null,o({}),o([]),o(o)];for(var i=2&r&&e;("object"==typeof i||"function"==typeof i)&&!~t.indexOf(i);i=o(i))Object.getOwnPropertyNames(i).forEach(t=>n[t]=()=>e[t]);return n.default=()=>e,c.d(a,n),a},c.d=(e,t)=>{for(var o in t)c.o(t,o)&&!c.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce((t,o)=>(c.f[o](e,t),t),[])),c.u=e=>e+".js?minify=false&ver="+{93:"7bb0082fdc0764c25ce0",187:"90ac4efb0818cadc9e54",662:"8d28e4d53d8473652bd6",913:"15998a2d4d11242dead6"}[e],c.miniCssF=e=>e+".css?minify=false&ver="+{93:"261dce00c4f4499d0978",913:"3cb6bf402a9109c9d0e0"}[e],(()=>{if(!c.miniCssF)throw new Error("MiniCSSWithRTLPlugin was loaded before MiniCSSExtractPlugin");var e;c.miniCssF=(e=c.miniCssF,t=>{var o="rtl"===document.dir,r=e(t);return o?r.replace(/\.css(?:$|\?)/,".rtl$&"):r})})(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},a="@automattic/jetpack-forms/blocks:",c.l=(e,t,o,n)=>{if(r[e])r[e].push(t);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var u=l[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==a+o){i=u;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",c.nc&&i.setAttribute("nonce",c.nc),i.setAttribute("data-webpack",a+o),i.src=e),r[e]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(f);var a=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach(e=>e(o)),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),s&&document.head.appendChild(i)}},n={662:0,913:0,93:0},c.f.wpI18n=(e,t)=>{n[e]?t.push(n[e]):0===n[e]&&t.push(n[e]=(e=>{var t=c(94252);return t&&t.downloadI18n?t.downloadI18n("dist/blocks/"+c.u(e),"jetpack-forms","plugin"):Promise.reject(new Error("I18n loader is not available. Check that WordPress is exporting wp.jpI18nLoader."))})(e).then(()=>{n[e]=!1},t=>{n[e]=0,console.error("Failed to fetch i18n data: ",t)}))},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.dn=e=>{(Object.getOwnPropertyDescriptor(e,"name")||{}).writable||Object.defineProperty(e,"name",{value:"default",configurable:!0})},(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var r=o.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=o[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c.p=e})(),(()=>{if("undefined"!=typeof document){var e=e=>new Promise((t,o)=>{var r=c.miniCssF(e),a=c.p+r;if(((e,t)=>{for(var o=document.getElementsByTagName("link"),r=0;r<o.length;r++){var a=(i=o[r]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(a===e||a===t))return i}var n=document.getElementsByTagName("style");for(r=0;r<n.length;r++){var i;if((a=(i=n[r]).getAttribute("data-href"))===e||a===t)return i}})(r,a))return t();((e,t,o,r,a)=>{var n=document.createElement("link");n.rel="stylesheet",n.type="text/css",c.nc&&(n.nonce=c.nc),n.onerror=n.onload=o=>{if(n.onerror=n.onload=null,"load"===o.type)r();else{var i=o&&o.type,s=o&&o.target&&o.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+i+": "+s+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=i,c.request=s,n.parentNode&&n.parentNode.removeChild(n),a(c)}},n.href=t,o?o.parentNode.insertBefore(n,o.nextSibling):document.head.appendChild(n)})(e,a,null,t,o)}),t={8:0,111:0,320:0,625:0};c.f.miniCss=(o,r)=>{t[o]?r.push(t[o]):0!==t[o]&&{93:1,913:1}[o]&&r.push(t[o]=e(o).then(()=>{t[o]=0},e=>{throw delete t[o],e}))}}})(),(()=>{var e={8:0,111:0,320:0,625:0};c.f.j=(t,o)=>{var r=c.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else{var a=new Promise((o,a)=>r=e[t]=[o,a]);o.push(r[2]=a);var n=c.p+c.u(t),i=new Error;c.l(n,o=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=o&&("load"===o.type?"missing":o.type),n=o&&o.target&&o.target.src;i.message="Loading chunk "+t+" failed.\n("+a+": "+n+")",i.name="ChunkLoadError",i.type=a,i.request=n,r[1](i)}},"chunk-"+t,t)}},c.O.j=t=>0===e[t];var t=(t,o)=>{var r,a,[n,i,s]=o,l=0;if(n.some(t=>0!==e[t])){for(r in i)c.o(i,r)&&(c.m[r]=i[r]);if(s)var d=s(c)}for(t&&t(o);l<n.length;l++)a=n[l],c.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return c.O(d)},o=globalThis.webpackChunk_automattic_jetpack_forms_blocks=globalThis.webpackChunk_automattic_jetpack_forms_blocks||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var l={};(()=>{"use strict";var e=c(82966),t=c(53042),o=c(51460);(0,t.A)(o.UU,o.W0,e.P)})(),l=c.O(l)})();