File: //wordpress/plugins/jetpack/latest/jetpack_vendor/automattic/jetpack-forms/dist/blocks/editor.js
(()=>{var e,t,a,o,r={9904(e,t){"use strict";var a=/^[-!#$%&'*+\/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(!a.test(e))return!1;var t=e.split("@");return!(t[0].length>64)&&!t[1].split(".").some(function(e){return e.length>63})}},7682(e,t,a){"use strict";a.d(t,{A:()=>o});const o={placeholder:"NisihrgiIKl_knpYJtfg",pulse:"R2i0K45dEF157drbVRPI"}},8706(e,t,a){"use strict";a.d(t,{A:()=>o});const o={global:"_fUXxnSp5pagKBp9gSN7"}},8297(){},5070(){},3371(){},8477(){},2142(){},5036(){},478(){},324(){},2750(){},3210(){},1676(){},5253(){},9467(){},8331(){},8372(){},6882(){},7377(){},8493(){},3541(){},6271(){},4997(e){var t=1e3,a=60*t,o=60*a,r=24*o,n=7*r,s=365.25*r;function i(e,t,a,o){var r=t>=1.5*a;return Math.round(e/a)+" "+o+(r?"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 i=/^(-?(?:\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(!i)return;var c=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*n;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*a;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>=r)return i(e,n,r,"day");if(n>=o)return i(e,n,o,"hour");if(n>=a)return i(e,n,a,"minute");if(n>=t)return i(e,n,t,"second");return e+" ms"}(e):function(e){var n=Math.abs(e);if(n>=r)return Math.round(e/r)+"d";if(n>=o)return Math.round(e/o)+"h";if(n>=a)return Math.round(e/a)+"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))}},372(e,t,a){"use strict";a.d(t,{A:()=>c});var o=a(67);const r=a.n(o)()("dops:analytics");let n,s;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const i={initialize:function(e,t,a){i.setUser(e,t),i.setSuperProps(a),i.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){s={ID:e,username:t}},setSuperProps:function(e){n=e},assignSuperProps:function(e){n=Object.assign(n||{},e)},mc:{bumpStat:function(e,t){const a=function(e,t){let a="";if("object"==typeof e){for(const t in e)a+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);r("Bumping stats %o",e)}else a="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),r('Bumping stat "%s" in group "%s"',t,e);return a}(e,t);i.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+a+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const a=function(e,t){let a="";if("object"==typeof e){for(const t in e)a+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);r("Built stats %o",e)}else a="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),r('Built stat "%s" in group "%s"',t,e);return a}(e,t);i.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+a+"&t="+Math.random())}},pageView:{record:function(e,t){i.tracks.recordPageView(e),i.ga.recordPageView(e,t)}},purchase:{record:function(e,t,a,o,r,n,s){i.ga.recordPurchase(e,t,a,o,r,n,s)}},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&&(r("- Super Props: %o",n),t=Object.assign(t,n)),r('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):r('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};i.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){i.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){r("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};i.ga.initialized||(s&&(e={userId:"u-"+s.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),i.ga.initialized=!0)},recordPageView:function(e,t){i.ga.initialize(),r("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,a,o){i.ga.initialize();let n="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==a&&(n+=" [Option Label: "+a+"]"),void 0!==o&&(n+=" [Option Value: "+o+"]"),r(n),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,a,o)},recordPurchase:function(e,t,a,o,r,n,s){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:o,currency:s}),window.ga("ecommerce:addItem",{id:e,name:t,sku:a,price:r,quantity:n}),window.ga("ecommerce:send")}},identifyUser:function(){s&&window._tkq.push(["identifyUser",s.ID,s.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},c=i},5932(e,t,a){"use strict";a.d(t,{Ay:()=>u});var o=a(6439),r=a(3832);function n(e){class t extends Error{constructor(...t){super(...t),this.name=e}}return t}const s=n("JsonParseError"),i=n("JsonParseAfterRedirectError"),c=n("Api404Error"),l=n("Api404AfterRedirectError"),d=n("FetchNetworkError");const u=new function(e,t){let a=e,n=e,s={"X-WP-Nonce":t},i={credentials:"same-origin",headers:s},c={method:"post",credentials:"same-origin",headers:Object.assign({},s,{"Content-type":"application/json"})},l=function(e){const t=e.split("?"),a=t.length>1?t[1]:"",o=a.length?a.split("&"):[];return o.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+o.join("&")};const d={setApiRoot(e){a=e},setWpcomOriginApiUrl(e){n=e},setApiNonce(e){s={"X-WP-Nonce":e},i={credentials:"same-origin",headers:s},c={method:"post",credentials:"same-origin",headers:Object.assign({},s,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{l=e},registerSite:(e,t,r)=>{const n={};return(0,o.jetpackConfigHas)("consumer_slug")&&(n.plugin_slug=(0,o.jetpackConfigGet)("consumer_slug")),null!==t&&(n.redirect_uri=t),r&&(n.from=r),m(`${a}jetpack/v4/connection/register`,c,{body:JSON.stringify(n)}).then(p).then(f)},fetchAuthorizationUrl:e=>u((0,r.addQueryArgs)(`${a}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),i).then(p).then(f),fetchSiteConnectionData:()=>u(`${a}jetpack/v4/connection/data`,i).then(f),fetchSiteConnectionStatus:()=>u(`${a}jetpack/v4/connection`,i).then(f),fetchSiteConnectionTest:()=>u(`${a}jetpack/v4/connection/test`,i).then(p).then(f),fetchUserConnectionData:()=>u(`${a}jetpack/v4/connection/data`,i).then(f),fetchUserTrackingSettings:()=>u(`${a}jetpack/v4/tracking/settings`,i).then(p).then(f),updateUserTrackingSettings:e=>m(`${a}jetpack/v4/tracking/settings`,c,{body:JSON.stringify(e)}).then(p).then(f),disconnectSite:()=>m(`${a}jetpack/v4/connection`,c,{body:JSON.stringify({isActive:!1})}).then(p).then(f),fetchConnectUrl:()=>u(`${a}jetpack/v4/connection/url`,i).then(p).then(f),unlinkUser:(e=!1,t={})=>{const o={linked:!1,force:!!e};return t.disconnectAllUsers&&(o["disconnect-all-users"]=!0),m(`${a}jetpack/v4/connection/user`,c,{body:JSON.stringify(o)}).then(p).then(f)},reconnect:()=>m(`${a}jetpack/v4/connection/reconnect`,c).then(p).then(f),fetchConnectedPlugins:()=>u(`${a}jetpack/v4/connection/plugins`,i).then(p).then(f),setHasSeenWCConnectionModal:()=>m(`${a}jetpack/v4/seen-wc-connection-modal`,c).then(p).then(f),fetchModules:()=>u(`${a}jetpack/v4/module/all`,i).then(p).then(f),fetchModule:e=>u(`${a}jetpack/v4/module/${e}`,i).then(p).then(f),activateModule:e=>m(`${a}jetpack/v4/module/${e}/active`,c,{body:JSON.stringify({active:!0})}).then(p).then(f),deactivateModule:e=>m(`${a}jetpack/v4/module/${e}/active`,c,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>m(`${a}jetpack/v4/module/${e}`,c,{body:JSON.stringify(t)}).then(p).then(f),updateSettings:e=>m(`${a}jetpack/v4/settings`,c,{body:JSON.stringify(e)}).then(p).then(f),getProtectCount:()=>u(`${a}jetpack/v4/module/protect/data`,i).then(p).then(f),resetOptions:e=>m(`${a}jetpack/v4/options/${e}`,c,{body:JSON.stringify({reset:!0})}).then(p).then(f),activateVaultPress:()=>m(`${a}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(p).then(f),getVaultPressData:()=>u(`${a}jetpack/v4/module/vaultpress/data`,i).then(p).then(f),installPlugin:(e,t)=>{const o={slug:e,status:"active"};return t&&(o.source=t),m(`${a}jetpack/v4/plugins`,c,{body:JSON.stringify(o)}).then(p).then(f)},activateAkismet:()=>m(`${a}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(p).then(f),getAkismetData:()=>u(`${a}jetpack/v4/module/akismet/data`,i).then(p).then(f),checkAkismetKey:()=>u(`${a}jetpack/v4/module/akismet/key/check`,i).then(p).then(f),checkAkismetKeyTyped:e=>m(`${a}jetpack/v4/module/akismet/key/check`,c,{body:JSON.stringify({api_key:e})}).then(p).then(f),getFeatureTypeStatus:e=>u(`${a}jetpack/v4/feature/${e}`,i).then(p).then(f),fetchStatsData:e=>u(function(e){let t=`${a}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),i).then(p).then(f).then(k),getPluginUpdates:()=>u(`${a}jetpack/v4/updates/plugins`,i).then(p).then(f),getPlans:()=>u(`${a}jetpack/v4/plans`,i).then(p).then(f),fetchSettings:()=>u(`${a}jetpack/v4/settings`,i).then(p).then(f),updateSetting:e=>m(`${a}jetpack/v4/settings`,c,{body:JSON.stringify(e)}).then(p).then(f),fetchSiteData:()=>u(`${a}jetpack/v4/site`,i).then(p).then(f).then(e=>JSON.parse(e.data)),fetchSiteFeatures:()=>u(`${a}jetpack/v4/site/features`,i).then(p).then(f).then(e=>JSON.parse(e.data)),fetchSiteProducts:()=>u(`${a}jetpack/v4/site/products`,i).then(p).then(f),fetchSitePurchases:()=>u(`${a}jetpack/v4/site/purchases`,i).then(p).then(f).then(e=>JSON.parse(e.data)),fetchSiteBenefits:()=>u(`${a}jetpack/v4/site/benefits`,i).then(p).then(f).then(e=>JSON.parse(e.data)),fetchSiteDiscount:()=>u(`${a}jetpack/v4/site/discount`,i).then(p).then(f).then(e=>e.data),fetchSetupQuestionnaire:()=>u(`${a}jetpack/v4/setup/questionnaire`,i).then(p).then(f),fetchRecommendationsData:()=>u(`${a}jetpack/v4/recommendations/data`,i).then(p).then(f),fetchRecommendationsProductSuggestions:()=>u(`${a}jetpack/v4/recommendations/product-suggestions`,i).then(p).then(f),fetchRecommendationsUpsell:()=>u(`${a}jetpack/v4/recommendations/upsell`,i).then(p).then(f),fetchRecommendationsConditional:()=>u(`${a}jetpack/v4/recommendations/conditional`,i).then(p).then(f),saveRecommendationsData:e=>m(`${a}jetpack/v4/recommendations/data`,c,{body:JSON.stringify({data:e})}).then(p),fetchProducts:()=>u(`${a}jetpack/v4/products`,i).then(p).then(f),fetchRewindStatus:()=>u(`${a}jetpack/v4/rewind`,i).then(p).then(f).then(e=>JSON.parse(e.data)),fetchScanStatus:()=>u(`${a}jetpack/v4/scan`,i).then(p).then(f).then(e=>JSON.parse(e.data)),dismissJetpackNotice:e=>m(`${a}jetpack/v4/notice/${e}`,c,{body:JSON.stringify({dismissed:!0})}).then(p).then(f),fetchPluginsData:()=>u(`${a}jetpack/v4/plugins`,i).then(p).then(f),fetchIntroOffers:()=>u(`${a}jetpack/v4/intro-offers`,i).then(p).then(f),fetchVerifySiteGoogleStatus:e=>u(null!==e?`${a}jetpack/v4/verify-site/google/${e}`:`${a}jetpack/v4/verify-site/google`,i).then(p).then(f),verifySiteGoogle:e=>m(`${a}jetpack/v4/verify-site/google`,c,{body:JSON.stringify({keyring_id:e})}).then(p).then(f),submitSurvey:e=>m(`${a}jetpack/v4/marketing/survey`,c,{body:JSON.stringify(e)}).then(p).then(f),saveSetupQuestionnaire:e=>m(`${a}jetpack/v4/setup/questionnaire`,c,{body:JSON.stringify(e)}).then(p).then(f),updateLicensingError:e=>m(`${a}jetpack/v4/licensing/error`,c,{body:JSON.stringify(e)}).then(p).then(f),updateLicenseKey:e=>m(`${a}jetpack/v4/licensing/set-license`,c,{body:JSON.stringify({license:e})}).then(p).then(f),getUserLicensesCounts:()=>u(`${a}jetpack/v4/licensing/user/counts`,i).then(p).then(f),getUserLicenses:()=>u(`${a}jetpack/v4/licensing/user/licenses`,i).then(p).then(f),updateLicensingActivationNoticeDismiss:e=>m(`${a}jetpack/v4/licensing/user/activation-notice-dismiss`,c,{body:JSON.stringify({last_detached_count:e})}).then(p).then(f),updateRecommendationsStep:e=>m(`${a}jetpack/v4/recommendations/step`,c,{body:JSON.stringify({step:e})}).then(p),confirmIDCSafeMode:()=>m(`${a}jetpack/v4/identity-crisis/confirm-safe-mode`,c).then(p),startIDCFresh:e=>m(`${a}jetpack/v4/identity-crisis/start-fresh`,c,{body:JSON.stringify({redirect_uri:e})}).then(p).then(f),migrateIDC:()=>m(`${a}jetpack/v4/identity-crisis/migrate`,c).then(p),attachLicenses:e=>m(`${a}jetpack/v4/licensing/attach-licenses`,c,{body:JSON.stringify({licenses:e})}).then(p).then(f),fetchSearchPlanInfo:()=>u(`${n}jetpack/v4/search/plan`,i).then(p).then(f),fetchSearchSettings:()=>u(`${n}jetpack/v4/search/settings`,i).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`,i).then(p).then(f),fetchWafSettings:()=>u(`${a}jetpack/v4/waf`,i).then(p).then(f),updateWafSettings:e=>m(`${a}jetpack/v4/waf`,c,{body:JSON.stringify(e)}).then(p).then(f),fetchWordAdsSettings:()=>u(`${a}jetpack/v4/wordads/settings`,i).then(p).then(f),updateWordAdsSettings:e=>m(`${a}jetpack/v4/wordads/settings`,c,{body:JSON.stringify(e)}),fetchSearchPricing:()=>u(`${n}jetpack/v4/search/pricing`,i).then(p).then(f),fetchMigrationStatus:()=>u(`${a}jetpack/v4/migration/status`,i).then(p).then(f),fetchBackupUndoEvent:()=>u(`${a}jetpack/v4/site/backup/undo-event`,i).then(p).then(f),fetchBackupPreflightStatus:()=>u(`${a}jetpack/v4/site/backup/preflight`,i).then(p).then(f)};function u(e,t){return fetch(l(e),t)}function m(e,t,a){return fetch(e,Object.assign({},t,a)).catch(g)}function k(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 a=new Error(`${t.message} (Status ${e.status})`);throw a.response=t,a.name="ApiError",a})}function f(e){return e.json().catch(t=>m(t,e.redirected,e.url))}function m(e,t,a){throw t?new i(a):new s}function g(){throw new d}},1876(e,t,a){"use strict";a.d(t,{A:()=>s});var o=a(3022),r=a(7682),n=a(790);const s=({children:e=null,width:t=null,height:a=null,className:s=""})=>(0,n.jsx)("div",{className:(0,o.A)(r.A.placeholder,s),style:{width:t,height:a},children:e})},723(e,t,a){"use strict";a.d(t,{Ay:()=>p});var o=a(1609),r=a(8706),n=a(790);const s={"--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)"},i={"--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,a)=>{const o={...s,...i,...c,...l};for(const t in o)e.style.setProperty(t,o[t]);a&&e.classList.add(r.A.global),t&&(d[t]={provided:!0,root:e})},p=({children:e=null,targetDom:t,id:a,withGlobalStyles:r=!0})=>{const s=(0,o.useRef)(),i=d?.[a]?.provided;return(0,o.useLayoutEffect)(()=>{if(!i)return t?u(t,a,r):void(s?.current&&u(s.current,a,r))},[t,s,i,a,r]),t?(0,n.jsx)(n.Fragment,{children:e}):(0,n.jsx)("div",{ref:s,children:e})}},6439(e,t,a){let o={};try{o=a(5875)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),o={missingConfig:!0}}const r=e=>Object.hasOwn(o,e);e.exports={jetpackConfigHas:r,jetpackConfigGet:e=>{if(!r(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 o[e]}}},4882(e,t,a){"use strict";a.d(t,{A:()=>l});var o=a(5932),r=a(7999),n=a(7143),s=a(1609),i=a(4293);const c=window?.JP_CONNECTION_INITIAL_STATE||(0,r.getScriptData)()?.connection||{};function l({registrationNonce:e=c.registrationNonce,apiRoot:t=c.apiRoot,apiNonce:a=c.apiNonce,redirectUri:r,autoTrigger:l,from:d,skipUserConnection:u,skipPricingPage:p}={}){const{registerSite:f,connectUser:m,refreshConnectedPlugins:g}=(0,n.useDispatch)(i.a),k=(0,n.useSelect)(e=>e(i.a).getRegistrationError(),[]),{siteIsRegistering:b,userIsConnecting:h,userConnectionData:j,connectedPlugins:v,connectionErrors:y,isRegistered:x,isUserConnected:_,hasConnectedOwner:w,isOfflineMode:C}=(0,n.useSelect)(e=>{const t=e(i.a).getConnectionStatus();return{siteIsRegistering:e(i.a).getSiteIsRegistering(),userIsConnecting:e(i.a).getUserIsConnecting(),userConnectionData:e(i.a).getUserConnectionData()||{},connectedPlugins:e(i.a).getConnectedPlugins(),connectionErrors:e(i.a).getConnectionErrors(),isOfflineMode:e(i.a).getIsOfflineMode(),isRegistered:t.isRegistered??!1,isUserConnected:t.isUserConnected??!1,hasConnectedOwner:t.hasConnectedOwner??!1}},[]),A=()=>u?r?(window.location.href=r,Promise.resolve(r)):Promise.resolve():m({from:d,redirectUri:r,skipPricingPage:p}),S=t=>(t&&t.preventDefault(),x?A():f({registrationNonce:e,redirectUri:r,from:d}).then(()=>A()));return(0,s.useEffect)(()=>{o.Ay.setApiRoot(t),o.Ay.setApiNonce(a)},[t,a]),(0,s.useEffect)(()=>{!l||b||h||S()},[]),{handleRegisterSite:S,handleConnectUser:A,refreshConnectedPlugins:g,isRegistered:x,isUserConnected:_,siteIsRegistering:b,userIsConnecting:h,registrationError:k,userConnectionData:j,hasConnectedOwner:w,connectedPlugins:v,connectionErrors:y,isOfflineMode:C}}},3935(e,t,a){"use strict";a.d(t,{A1:()=>c,Ay:()=>x,DO:()=>i,Ij:()=>s,Kl:()=>f,LW:()=>l,MU:()=>m,XY:()=>d,ZO:()=>n,dz:()=>u,gH:()=>p,v_:()=>r});var o=a(5932);const r="SET_CONNECTION_STATUS",n="SET_CONNECTION_STATUS_IS_FETCHING",s="SET_SITE_IS_REGISTERING",i="SET_USER_IS_CONNECTING",c="SET_REGISTRATION_ERROR",l="CLEAR_REGISTRATION_ERROR",d="SET_AUTHORIZATION_URL",u="DISCONNECT_USER_SUCCESS",p="SET_CONNECTED_PLUGINS",f="SET_CONNECTION_ERRORS",m="SET_IS_OFFLINE_MODE",g=e=>({type:r,connectionStatus:e}),k=e=>({type:s,isRegistering:e}),b=e=>({type:i,isConnecting:e}),h=e=>({type:c,registrationError:e}),j=()=>({type:l}),v=e=>({type:d,authorizationUrl:e}),y=e=>({type:p,connectedPlugins:e});const x={setConnectionStatus:g,setConnectionStatusIsFetching:e=>({type:n,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:k,setUserIsConnecting:b,setRegistrationError:h,clearRegistrationError:j,setAuthorizationUrl:v,registerSite:function*({registrationNonce:e,redirectUri:t,from:a=""}){yield j(),yield k(!0);try{const o=yield{type:"REGISTER_SITE",registrationNonce:e,redirectUri:t,from:a};return yield g({isRegistered:!0}),yield v(o.authorizeUrl),yield k(!1),Promise.resolve(o)}catch(e){return yield h(e),yield k(!1),Promise.reject(e)}},connectUser:function*({from:e,redirectFunc:t,redirectUri:a,skipPricingPage:o}={}){yield b(!0),yield{type:"CONNECT_USER",from:e,redirectFunc:t,redirectUri:a,skipPricingPage:o}},disconnectUserSuccess:()=>({type:u}),setConnectedPlugins:y,refreshConnectedPlugins:()=>async({dispatch:e})=>await new Promise(t=>o.Ay.fetchConnectedPlugins().then(a=>{e(y(a)),t(a)})),setConnectionErrors:e=>({type:f,connectionErrors:e}),setIsOfflineMode:e=>({type:m,isOfflineMode:e})}},7938(e,t,a){"use strict";function o(e){return window.location.assign(e)}a.d(t,{d:()=>o})},2494(e,t,a){"use strict";a.d(t,{A:()=>i});var o=a(5932),r=a(7143),n=a(7938),s=a(4660);const i={FETCH_AUTHORIZATION_URL:({redirectUri:e})=>o.Ay.fetchAuthorizationUrl(e),REGISTER_SITE:({redirectUri:e,from:t})=>o.Ay.registerSite(null,e,t),CONNECT_USER:(0,r.createRegistryControl)(({resolveSelect:e})=>({from:t,redirectFunc:a,redirectUri:o,skipPricingPage:r}={})=>new Promise((i,c)=>{e(s.A).getAuthorizationUrl(o).then(e=>{const o=a||(e=>(0,n.d)(e)),s=new URL(e);r&&s.searchParams.set("skip_pricing","true"),t&&s.searchParams.set("from",encodeURIComponent(t));const c=s.toString();o(c),i(c)}).catch(e=>{c(e)})}))}},5051(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(7143),r=a(3935);const n=(0,o.combineReducers)({connectionStatus:(e={},t)=>{switch(t.type){case r.v_:return{...e,...t.connectionStatus};case r.dz:return{...e,isUserConnected:!1}}return e},connectionStatusIsFetching:(e=!1,t)=>t.type===r.ZO?t.isFetching:e,siteIsRegistering:(e=!1,t)=>t.type===r.Ij?t.isRegistering:e,userIsConnecting:(e=!1,t)=>t.type===r.DO?t.isConnecting:e,registrationError:(e,t)=>{switch(t.type){case r.LW:return!1;case r.A1:return t.registrationError;default:return e}},authorizationUrl:(e,t)=>t.type===r.XY?t.authorizationUrl:e,userConnectionData:(e,t)=>(t.type,e),connectedPlugins:(e={},t)=>t.type===r.gH?t.connectedPlugins:e,connectionErrors:(e={},t)=>t.type===r.Kl?t.connectionErrors:e,isOfflineMode:(e=!1,t)=>t.type===r.MU?t.isConnecting:e})},8019(e,t,a){"use strict";a.d(t,{A:()=>s});var o=a(7143),r=a(3935),n=a(4660);const s={...{getAuthorizationUrl:{isFulfilled:(e,...t)=>{const a=Boolean(e.authorizationUrl),r=(0,o.select)(n.A).hasFinishedResolution("getAuthorizationUrl",t);return a&&!r&&(0,o.dispatch)(n.A).finishResolution("getAuthorizationUrl",t),a},*fulfill(e){const t=yield r.Ay.fetchAuthorizationUrl(e);yield r.Ay.setAuthorizationUrl(t.authorizeUrl)}}}}},2676(e,t,a){"use strict";a.d(t,{A:()=>o});const o={...{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||[],getConnectionErrors:e=>e.connectionErrors||[],getIsOfflineMode:e=>e.isOfflineMode||!1,getWpcomUser:e=>e?.userConnectionData?.currentUser?.wpcomUser,getBlogId:e=>e?.userConnectionData?.currentUser?.blogId}}},8734(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(7143);class r{static store=null;static mayBeInit(e,t){null===r.store&&(r.store=(0,o.createReduxStore)(e,t),(0,o.register)(r.store))}}const n=r},4660(e,t,a){"use strict";a.d(t,{A:()=>o});const o="jetpack-connection"},4293(e,t,a){"use strict";a.d(t,{a:()=>d.A});var o=a(7999),r=a(3935),n=a(2494),s=a(5051),i=a(8019),c=a(2676),l=a(8734),d=a(4660);const u=window.JP_CONNECTION_INITIAL_STATE||(0,o.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:s.A,actions:r.Ay,selectors:c.A,resolvers:i.A,controls:n.A,initialState:u||{}})},5985(e,t,a){"use strict";a.d(t,{$i:()=>o.A,BT:()=>n.A,FB:()=>r.A,_6:()=>d.A,aq:()=>s.aq,lG:()=>l.A,q7:()=>c.A,st:()=>i.A});var o=a(4972),r=(a(4815),a(1409),a(8573)),n=(a(2034),a(5595)),s=a(3265),i=a(3489),c=(a(9581),a(8406),a(6923)),l=(a(335),a(7687),a(4638)),d=(a(9061),a(5929));a(5765)},5765(e,t,a){"use strict";a(8490)},2201(e,t,a){"use strict";a.d(t,{cb:()=>o.c,k4:()=>r.k});a(5877);var o=a(984),r=a(2308)},5877(e,t,a){"use strict";a(7999),a(7723),a(8297),a(790)},984(e,t,a){"use strict";a.d(t,{c:()=>i});var o=a(6427),r=a(7723),n=a(3022),s=(a(5070),a(790));const __=r.__,i=({className:e,description:t,align:a=null,title:r=null,buttonText:i=null,visible:c=!0,context:l=null,checkoutUrl:d=null,goToCheckoutPage:u=null,isRedirecting:p=!1,showButton:f=!0,target:m="_top"})=>{const g=(0,n.A)(e,"jetpack-upgrade-plan-banner",{"wp-block":"editor-canvas"===l,"block-editor-block-list__block":"editor-canvas"===l,"jetpack-upgrade-plan__hidden":!c}),k=__("Redirecting…","jetpack-forms");return(0,s.jsx)("div",{className:g,"data-align":a,children:(0,s.jsxs)("div",{className:"jetpack-upgrade-plan-banner__wrapper",children:[r&&(0,s.jsx)("strong",{className:(0,n.A)("banner-title",{[`${e}__title`]:e}),children:r}),t&&(0,s.jsx)("span",{className:`${e}__description banner-description`,children:t}),f&&(0,s.jsx)(o.Button,{href:p?null:d,onClick:u,target:m,className:(0,n.A)("is-primary",{"jetpack-upgrade-plan__hidden":!d}),isBusy:p,children:(0,s.jsx)("span",{children:p?k:i})})]})})}},2308(e,t,a){"use strict";a.d(t,{k:()=>i});var o=a(7143),r=a(9654),n=a(1609),s=a(790);const i=(0,n.forwardRef)(({supportLink:e,supportPostId:t,children:a,onClick:n,style:i},c)=>{const l=(0,o.useDispatch)("automattic/help-center"),d=l?.setShowSupportDoc;return d?(0,s.jsx)("a",{href:e,onClick:a=>{a.preventDefault(),n?.(),d(e,t)},style:i,ref:c,children:a}):(0,s.jsx)(r.N,{openInNewTab:!0,href:e,onClick:n,style:i,ref:c,children:a})})},335(e,t,a){"use strict";a(6087)},4972(e,t,a){"use strict";a.d(t,{A:()=>o});function o(){return"object"==typeof window?window?.Jetpack_Editor_Initial_State??null:null}},8573(e,t,a){"use strict";a.d(t,{A:()=>r});var o=a(4972);function r(e){const t=(0,o.A)(),a=t?.available_blocks?.[e]?.available??!1,r=t?.available_blocks?.[e]?.unavailable_reason??"unknown";return{available:a,...!a&&{details:t?.available_blocks?.[e]?.details??{},unavailableReason:r}}}},4815(e,t,a){"use strict";a.d(t,{A:()=>r});var o=a(7999);function r(){return window&&window.Jetpack_Editor_Initial_State&&window.Jetpack_Editor_Initial_State.siteFragment?window.Jetpack_Editor_Initial_State.siteFragment:(0,o.getScriptData)()?.site?.suffix??null}},4638(e,t,a){"use strict";a.d(t,{A:()=>r});var o=a(4972);function r(e){const t=(0,o.A)();return!!t&&(!!t?.feature_flags&&Boolean(t.feature_flags?.[e]))}},3489(e,t,a){"use strict";a.d(t,{A:()=>c});var o=a(372),r=a(4882),n=a(6087);const{tracks:s}=o.A,{recordEvent:i}=s,c=({pageViewEventName:e=null,pageViewNamespace:t="jetpack",pageViewSuffix:a="page_view",pageViewEventProperties:c={}}={})=>{const[l,d]=(0,n.useState)(!1),{isUserConnected:u,isRegistered:p,userConnectionData:f={}}=(0,r.A)(),{wpcomUser:{login:m,ID:g}={},blogId:k}=f.currentUser||{},b=(0,n.useCallback)(async(e,t={})=>{u&&g&&m&&i(e,t)},[u,g,m]);return(0,n.useEffect)(()=>{u&&g&&m&&k&&o.A.initialize(g,m,{blog_id:k})},[k,g,m,u]),(0,n.useEffect)(()=>{const o=e?`${t}_${e}_${a}`:null;p&&o&&(l||(b(o,c),d(!0)))},[l,t,e,a,p,c,b]),{recordEvent:b,tracks:s}}},9581(e,t,a){"use strict";a.d(t,{A:()=>s});var o=a(7143),r=a(6087);const n=()=>{};function s(e=null,t=n){const[a,s]=(0,r.useState)(!1),{isAutosaveablePost:i,isDirtyPost:c,currentPost:l}=(0,o.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,o.useSelect)(e=>!!window.wp?.customize||!!e("core/edit-widgets")),p=(0,o.dispatch)("core/editor").savePost,f=(0,o.useSelect)(e=>e("core").__experimentalGetDirtyEntityRecords()),m=async e=>{e?.preventDefault(),d?c&&i&&await p(e):await(async()=>{for(let e=0;e<f.length;e++)await(0,o.dispatch)("core").saveEditedEntityRecord(f[e].kind,f[e].name,f[e].key)})()};return{autosave:m,autosaveAndRedirect:async o=>{o?.preventDefault(),a||(s(!0),m(o).then(()=>{e&&function(e,t,a=!1){t&&t(e),a?window.open(e,"_blank"):window.top.location.href=e}(e,t,u)}))},isRedirecting:a}}},6923(e,t,a){"use strict";a.d(t,{A:()=>s});var o=a(7687),r=a(7143),n=a(6087);const s=e=>{const{isModuleActive:t,isChangingStatus:a,isLoadingModules:s}=(0,r.useSelect)(t=>{const a=t(o.store);return{isModuleActive:a.isModuleActive(e),isChangingStatus:a.isModuleUpdating(e),isLoadingModules:a.areModulesLoading(e)}},[e]),{updateJetpackModuleStatus:i}=(0,r.useDispatch)(o.store),c=(0,n.useCallback)(t=>i({name:e,active:t}),[e,i]);return(0,n.useMemo)(()=>({isLoadingModules:s,isChangingStatus:a,isModuleActive:t,changeStatus:c}),[s,a,t,c])}},8406(e,t,a){"use strict";a(6087)},5929(e,t,a){"use strict";a.d(t,{A:()=>l});var o=a(7143),r=a(2619),n=a(3265),s=a(9581);const i=()=>{},c="a8c.wpcom-block-editor.openCheckoutModal";function l(e,t=i){const{checkoutUrl:a,planData:l}=(0,o.useSelect)(t=>{const a=t("core/editor"),o=t("wordpress-com/plans"),{id:r,type:s}=a.getCurrentPost(),i=o&&o.getPlan(e);return{checkoutUrl:(0,n.Q4)({plan:i,planSlug:e,postId:r,postType:s}),planData:i}},[e]),{autosave:d,autosaveAndRedirect:u,isRedirecting:p}=(0,s.A)(a,t);return[a,async e=>{if(e.preventDefault(),(0,r.hasAction)(c))return e.preventDefault(),d(e),void(0,r.doAction)(c,{products:[l]});u(e)},p,l]}},9520(e,t,a){"use strict";a(7999);var o=a(67),r=a.n(o);window,r()("shared-extension-utils:connection")},9061(e,t,a){"use strict";a(9520)},3265(e,t,a){"use strict";a.d(t,{Q4:()=>i,aq:()=>c});var o=a(7999),r=a(7723),n=a(3832),s=a(4815);const __=r.__;function i({planSlug:e,plan:t,postId:a,postType:r}){const i=e.startsWith("jetpack_")?e:t?.path_slug,c=(void 0===r?()=>{const e=new URLSearchParams(window.location.search);return(0,n.addQueryArgs)(window.location.protocol+`//${(0,s.A)().replace("::","/")}/wp-admin/site-editor.php`,{postId:e.get("postId"),postType:e.get("postType"),plan_upgraded:1})}:()=>{const e=["page","post"].includes(r)?"":"edit";return(0,o.isSimpleSite)()?(0,n.addQueryArgs)("/"+[e,r,(0,s.A)(),a].filter(Boolean).join("/"),{plan_upgraded:1}):(0,n.addQueryArgs)(window.location.protocol+`//${(0,s.A)().replace("::","/")}/wp-admin/post.php`,{action:"edit",post:a,plan_upgraded:1})})();return(0,o.isWoASite)()?(0,n.addQueryArgs)(`https://wordpress.com/plans/${(0,s.A)()}`,{redirect_to:c,customerType:"business"}):i&&(0,n.addQueryArgs)(`https://wordpress.com/checkout/${(0,s.A)()}/${i}`,{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")},2034(e,t,a){"use strict";a(2279)},1409(e,t,a){"use strict";a(7999)},5595(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(9491),r=(a(3371),a(790));const n=e=>(0,o.createHigherOrderComponent)(t=>a=>(0,r.jsx)(t,{...a,className:a.name===e?"has-warning is-interactive":a.className}),"withHasWarningIsInteractiveClassNames");a.dn(n)},2797(e,t,a){"use strict";a.d(t,{A:()=>r});var o=a(7723);const __=o.__,r={ref:{type:"number"},subject:{type:"string",default:window.jpFormsBlocks?.defaults?.subject||""},to:{type:"string",default:window.jpFormsBlocks?.defaults?.to||""},customThankyou:{type:"string",default:""},customThankyouHeading:{type:"string",default:__("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:[]}}},9971(e,t,a){"use strict";a.d(t,{t:()=>m});var o=a(4715),r=a(6427),n=a(7143),s=a(3656),i=a(7723),c=a(692),l=a(2441),d=a(4203),u=a(1295),p=a(790);const __=i.__,f="jetpack-form-conversion";function m({clientId:e,attributes:t,onBeforeNavigate:a}){const i=(0,d.f)(),m="widget"===i,{block:g,formTitle:k,currentPostId:b,isLocked:h,onNavigateToEntityRecord:j}=(0,n.useSelect)(t=>{const{getBlock:a,getSettings:r}=t(o.store);let n=null;if(m)try{const a=t("core/edit-widgets");n=a?.getParentWidgetAreaBlock?.(e)?.attributes?.name}catch{}const i=m?null:t(s.store).getEditedPostAttribute("title"),c=m?0:t(s.store).getEditedPostAttribute("id"),l=!m&&t(s.store).isPostSavingLocked();return{block:a(e),formTitle:n||i||"Untitled",currentPostId:c,isLocked:l,onNavigateToEntityRecord:r().onNavigateToEntityRecord}},[e,m]),{replaceInnerBlocks:v,updateBlockAttributes:y}=(0,n.useDispatch)(o.store),{lockPostSaving:x,unlockPostSaving:_}=(0,n.useDispatch)(s.store),{createErrorNotice:w}=(0,n.useDispatch)(c.store),C=!!t.ref;return(0,p.jsx)(r.ToolbarGroup,{children:C?(0,p.jsx)(r.ToolbarButton,{onClick:()=>{t.ref&&(a?.(),(0,u.h)(t.ref,i,j))},children:__("Edit Form","jetpack-forms")}):(0,p.jsx)(r.ToolbarButton,{onClick:async()=>{if(g&&!h){x?.(f);try{const{ref:a,...o}=t,r=await(0,l.r)({attributes:o,innerBlocks:g.innerBlocks||[]},k,b);v(e,[],!1);const n=Object.keys(t).reduce((e,t)=>"ref"===t?e:{...e,[t]:void 0},{ref:r});y(e,n),(0,u.h)(r,i,j)}catch{w(__("Failed to create a form. Please try again.","jetpack-forms"),{type:"snackbar",isDismissible:!0})}finally{_?.(f)}}},disabled:h,children:__("Edit Form","jetpack-forms")})})}},7831(e,t,a){"use strict";a.d(t,{A:()=>m});var o=a(4715),r=a(6427),n=a(3582),s=a(7143),i=a(8443),c=a(6087),l=a(7723),d=a(692),u=a(1435),p=a(790);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,i.getSettings)().formats.datetime||"F j, Y g:i a";return e?.date?(0,l.sprintf)(/* translators: %s: scheduled publish date */
__("Scheduled form. It will be published on %s but will remain hidden from site visitors until then.","jetpack-forms"),(0,i.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:a,clientId:i}){const[m,g]=(0,c.useState)(!1),[k,b]=(0,c.useState)(!1),[h,j]=(0,c.useState)(!1),{editEntityRecord:v,saveEditedEntityRecord:y,deleteEntityRecord:x}=(0,s.useDispatch)(n.store),{createErrorNotice:_,createSuccessNotice:w}=(0,s.useDispatch)(d.store),{removeBlocks:C}=(0,s.useDispatch)(o.store),A=(0,c.useCallback)(async(e,a)=>{if(t)try{"trash"===e&&(e="draft"),await v("postType",u.$8,t,{status:e,date:a}),await y("postType",u.$8,t)}catch{_(__("Failed to undo. Refresh this page and try again.","jetpack-forms"),{type:"snackbar"})}},[t,v,y,_]),S=(0,c.useCallback)(async()=>{if(!t)return;const a=e?.status,o=e?.date;g(!0);try{const e={status:"publish"};"future"===a&&(e.date=(new Date).toISOString()),await v("postType",u.$8,t,e),await y("postType",u.$8,t),w(__("Form is live and ready to accept responses.","jetpack-forms"),{type:"snackbar",actions:a?[{label:__("Undo","jetpack-forms"),onClick:()=>A(a,o)}]:[]})}catch{_(__("Failed to publish form. Refresh this page and try again.","jetpack-forms"),{type:"snackbar"})}finally{g(!1)}},[t,e?.status,e?.date,v,y,w,_,A]),B=(0,c.useCallback)(async()=>{if(t){b(!0);try{await x("postType",u.$8,t,{force:!0}),w(__("Form deleted permanently.","jetpack-forms"),{type:"snackbar"}),C([i])}catch{_(__("Failed to delete form permanently. Refresh this page and try again.","jetpack-forms"),{type:"snackbar"})}finally{b(!1)}}},[t,w,_,C,x,i]),I=e?.status;if(!a||!t||!I||"publish"===I)return null;const N=f[I],M=N?.status||"warning",P=N?.getMessage(e)||(0,l.sprintf)(/* translators: %s: form status */
__('This form has status "%s" and will not be displayed on the frontend until it is published.',"jetpack-forms"),I),T=[];return T.push({label:__("Publish","jetpack-forms"),onClick:S,variant:"secondary",disabled:m}),"trash"===I&&T.push({label:__("Delete","jetpack-forms"),onClick:()=>j(!0),variant:"secondary",disabled:k}),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(r.Notice,{status:M,isDismissible:!1,className:"jetpack-contact-form__status-notice",actions:T,children:P}),h&&(0,p.jsxs)(r.Modal,{title:__("Delete form permanently?","jetpack-forms"),onRequestClose:()=>j(!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)(r.Button,{variant:"tertiary",onClick:()=>j(!1),children:__("Cancel","jetpack-forms")}),(0,p.jsx)(r.Button,{variant:"primary",isDestructive:!0,isBusy:k,onClick:()=>{j(!1),B()},children:__("Delete Permanently","jetpack-forms")})]})]})]})}},3309(e,t,a){"use strict";a.d(t,{A:()=>i});var o=a(3022),r=a(9789),n=(a(8477),a(790));const s=r.A.default||r.A,i=({children:e=null,isError:t=!1,...a})=>{const r=(0,o.A)("help-message",{"help-message-is-error":t});return e&&(0,n.jsxs)("div",{className:r,...a,children:[t&&(0,n.jsx)(s,{size:"24","aria-hidden":"true",role:"img",focusable:"false"}),(0,n.jsx)("span",{children:e})]})};a.dn(i)},3124(e,t,a){"use strict";a.d(t,{A:()=>l});var o=a(4715),r=a(6427),n=a(7723),s=a(1295),i=a(5540),c=(a(2142),a(790));const __=n.__;function l({blockProps:e,innerBlocksProps:t,isResolvingSyncedForm:a,formRef:n,flushPendingSave:l}){(0,o.useBlockEditingMode)("contentOnly");return(0,c.jsxs)("div",{...e,children:[(0,c.jsx)(r.Notice,{className:"jetpack-contact-form-widget-readonly-notice",status:"info",isDismissible:!1,actions:[{label:__("Edit Form","jetpack-forms"),onClick:()=>{l(),(0,s.h)(n,"widget")},variant:"primary"}],children:__("Forms are edited in the Form Editor. Changes will sync back to this widget.","jetpack-forms")}),a?(0,c.jsx)(i.A,{}):(0,c.jsx)(r.Disabled,{children:(0,c.jsx)("div",{...t})})]})}},7560(e,t,a){"use strict";a.d(t,{A:()=>oe});var o=a(723),r=a(5985),n=a(4715),s=a(7378),i=a(6427),c=a(9491),l=a(3582),d=a(7143),u=a(3656),p=a(6087),f=a(7723),m=a(9654),g=a(8050),k=a(2472),b=a(1868),h=a(3022),j=a(8824),v=a(4506),y=a(3792),x=a(3286),_=a(9055),w=a(7173),C=a(9355),A=a(1002),S=a(7664),B=a(1435),I=a(2966),N=a(9971),M=a(7831),P=a(7396),T=a(5540),E=a(7338),L=a(7522),F=a(3124),R=a(1803),V=a(782),H=a(9190),D=a(2952),z=a(3389),O=a(4203),$=a(5403),q=a(9835),G=(a(5205),a(790));const __=f.__,_x=f._x,U=(0,p.lazy)(()=>Promise.all([a.e(415),a.e(687)]).then(a.bind(a,9202))),Z="to-multistep",W="to-form",J="is-multistep",K="is-form",Y=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")}),Q=[...Y.map(e=>`jetpack/${e.name}`)],X=["jetpack/form-step-navigation","jetpack/form-progress-indicator","jetpack/form-step-container","jetpack/form-step-divider"].concat(B.BY),ee=["jetpack/form-step-navigation","jetpack/form-progress-indicator","jetpack/form-step-container"],te=Q.concat(B.BY).filter(e=>!ee.includes(e)),ae=[...Y.map(e=>`jetpack/${e.name}`)];const oe=function e({name:t,attributes:a,setAttributes:f,clientId:Y,className:Q,isSelected:ee}){(0,z.A)({attributes:a,setAttributes:f});const{ref:oe,to:re,subject:ne,customThankyou:se,customThankyouHeading:ie,customThankyouMessage:ce,customThankyouRedirect:le,confirmationType:de,formTitle:ue,variationName:pe,emailNotifications:fe,disableGoBack:me,disableSummary:ge,notificationRecipients:ke,webhooks:be,layout:he}=a,je=(0,v.A)("isIntegrationsEnabled"),ve=(0,v.A)("isWebhooksEnabled")&&(0,r.lG)("form-webhooks"),ye=(0,v.A)("showBlockIntegrations"),xe=(0,r.lG)("central-form-management"),_e=(0,c.useInstanceId)(e),we=!!oe&&"widget"===(0,O.f)(),{syncedForm:Ce,isLoading:Ae,syncedAttributes:Se,syncedInnerBlocks:Be,errorType:Ie}=(0,D._)(oe);(0,p.useEffect)(()=>{"redirect"===se&&"redirect"!==de&&f({confirmationType:"redirect"}),["noSummary","message"].includes(se)&&!ge&&f({disableSummary:!0})},[de,se,ge,f]);const Ne=(0,A.A)(Y),Me=(0,d.useSelect)(e=>e(y.M).getCurrentStepInfo(Y,Ne),[Y,Ne]),Pe=(0,p.useCallback)(e=>"jetpack/button"===e.name||"core/button"===e.name&&"button"===e.attributes?.tagName,[]),Te=(0,C.l)(Y,Pe),{postTitle:Ee,hasAnyInnerBlocks:Le,postAuthorEmail:Fe,selectedBlockClientId:Re,onlySubmitBlock:Ve,isJetpackFormEditor:He,hasChildSelected:De}=(0,d.useSelect)(e=>{const{getBlocks:t,getBlock:a,getSelectedBlockClientId:o,getBlockParentsByBlockName:r,hasSelectedInnerBlock:s}=e(n.store),{getEditedPostAttribute:i,getCurrentPostType:c}=e(u.store),d=o(),p=a(d);let f=d;p&&"jetpack/form-step"!==p.name&&(f=r(d,"jetpack/form-step")[0]);const{getUser:m}=e(l.store),g=t(Y),k=1===g.length&&("jetpack/button"===g[0].name||"core/button"===g[0].name&&"button"===g[0].attributes?.tagName),b=i("title"),h=i("author"),j=h&&m(h)?.email;return{postTitle:b,hasAnyInnerBlocks:g.length>0||Be?.length>0,postAuthorEmail:j,selectedBlockClientId:f,onlySubmitBlock:k,isJetpackFormEditor:c()===B.$8,hasChildSelected:s(Y,!0)}},[Y,Be]);(0,p.useEffect)(()=>{if(Te&&!Te.attributes.lock){const e={move:!1,remove:!0};Te.attributes.lock=e}},[Te]);const ze=(0,d.useSelect)(e=>{if(!He)return null;const t=e(j.$p);return t?.getActivePanel?.()??null},[He]),{closePanel:Oe}=(0,d.useDispatch)(j.$p),[$e,qe]=(0,p.useState)({});(0,p.useEffect)(()=>{ze&&(qe(e=>({...e,[ze]:!0})),Oe())},[ze,Oe]);const{isSingleStep:Ge,isFirstStep:Ue,isLastStep:Ze,currentStepClientId:We}=(0,d.useSelect)(e=>{const{getCurrentStepInfo:t,isSingleStepMode:a,getActiveStepId:o}=e(y.M),r=t(Y,Ne);return{isSingleStep:a(Y),isFirstStep:!!r&&r.isFirstStep,isLastStep:!!r&&r.isLastStep,currentStepClientId:o(Y)}},[Y,Ne]),Je=(0,p.useRef)(),Ke=(0,p.useRef)(),Ye=(0,n.useBlockProps)({ref:Je,className:(0,h.A)(Q,{"is-multistep":"multistep"===pe})}),Qe=(0,h.A)(Q,"jetpack-contact-form",Ue&&"is-first-step",Ze&&"is-last-step","multistep"===pe&&Ge&&"is-previewing-step",a?.layout?"has-jetpack-form-layout":"has-no-jetpack-form-layout"),Xe=(0,n.useInnerBlocksProps)({ref:Ke,className:Qe,style:window.jetpackForms.generateStyleVariables(Ke.current)},{allowedBlocks:"multistep"===pe?X:te,prioritizedInserterBlocks:ae,templateInsertUpdatesSelection:!1}),{isLoadingModules:et,isChangingStatus:tt,isModuleActive:at,changeStatus:ot}=(0,r.q7)("contact-form"),{replaceInnerBlocks:rt,__unstableMarkNextChangeAsNotPersistent:nt,updateBlockAttributes:st}=(0,d.useDispatch)(n.store),{editEntityRecord:it}=(0,d.useDispatch)(l.store),{setActiveStep:ct}=(0,d.useDispatch)(y.M),lt=(0,d.useSelect)(e=>e(n.store).getBlocks(Y),[Y]),{isSyncingRef:dt}=(0,H.Z)({ref:oe,syncedFormBlocks:Be,syncedFormAttributes:Se,clientId:Y,setAttributes:f,replaceInnerBlocks:rt,__unstableMarkNextChangeAsNotPersistent:nt,setActiveStep:ct}),{flushPendingSave:ut}=(0,V.E8)({ref:oe,syncedForm:Ce,attributes:a,currentInnerBlocks:lt,isSyncingRef:dt,editEntityRecord:it});(0,R.G)({clientId:Y,ref:oe,innerBlocks:lt,attributes:a,setAttributes:f});const pt=(0,p.useRef)(lt.length),ft=(0,p.useCallback)(e=>{const t=[],a=e=>{e.forEach(e=>{(e=>{if(!e||!e.startsWith("jetpack/"))return!1;const t=e.slice(8),a=I.P.find(e=>e.name===t);return a&&void 0!==a?.settings?.attributes?.required&&!("field-hidden"===a?.name)&&!("field-consent"===a?.name&&"explicit"!==a?.settings?.attributes?.consentType)})(e.name)&&t.push(e),e.innerBlocks&&e.innerBlocks.length>0&&a(e.innerBlocks)})};return a(e),t},[]);(0,p.useEffect)(()=>{const e=lt.length;if(e>pt.current&<.length>1){const e=lt.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===lt.length-2){const t=[...lt],[a]=t.splice(e,1);t.push(a),nt(),rt(Y,t,!1)}}pt.current=e},[lt,Y,rt,nt]),(0,p.useEffect)(()=>{const e=ft(lt);if(1===e.length){const t=e[0];t.attributes?.required||st(t.clientId,{required:!0})}},[lt,ft,st]);const mt=(0,p.useCallback)(e=>{const t=[],a=e=>{e.forEach(e=>{e.name.startsWith("jetpack/field-")&&t.push(e),e.innerBlocks&&e.innerBlocks.length>0&&a(e.innerBlocks)})};return a(e),t},[]),gt=(0,p.useRef)(null);(0,p.useEffect)(()=>{const e=he?.orientation??"horizontal";if(null!==gt.current&>.current!==e){const t=mt(lt),a="vertical"===e?100:"auto";t.forEach(e=>{st(e.clientId,{width:a})})}gt.current=e},[he?.orientation,lt,mt,st]);const kt=(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))},[]),bt=(0,p.useRef)(null);(0,p.useEffect)(()=>{const e=kt(lt);e||"multistep"===pe?"multistep"===pe&&e?bt.current=J:bt.current!==J?bt.current=Z:bt.current=W:bt.current=K},[pe,lt,kt]),(0,p.useEffect)(()=>{if(bt.current!==Z)return;const e=(t,a)=>t.reduce((t,o)=>t+(a(o)?1:0)+e(o.innerBlocks||[],a),0),t=e(lt,e=>"jetpack/form-step-container"===e.name),a=(e,t=!1)=>{for(const o of e){const e=t||"jetpack/form-step-container"===o.name;if("jetpack/form-step"===o.name&&!e)return!0;if(o.innerBlocks?.length&&a(o.innerBlocks,e))return!0}return!1};if(1===t&&!a(lt))return;const o=(()=>{const e=lt.findIndex(e=>"jetpack/button"===e.name||"core/button"===e.name&&"button"===e.attributes?.tagName);return-1!==e?{block:lt[e],index:e}:null})(),r=o?o.block:null,n=o?lt.filter((e,t)=>t!==o.index):lt;let i=[];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),a=n[c];a.innerBlocks&&a.innerBlocks.length>0?i=a.innerBlocks:(e.length>0&&i.push((0,s.createBlock)("jetpack/form-step",{},e)),t.length>0&&i.push((0,s.createBlock)("jetpack/form-step",{},t)),0===i.length&&i.push((0,s.createBlock)("jetpack/form-step",{},[])))}else{const e=n.findIndex(e=>"jetpack/form-step"===e.name);if(-1!==e){const t=n.slice(0,e),a=n.slice(e+1);t.length>0&&i.push((0,s.createBlock)("jetpack/form-step",{},t)),i.push(n[e]),a.length>0&&i.push((0,s.createBlock)("jetpack/form-step",{},a))}else if(n.length>0){if(n.some(e=>"jetpack/form-step-divider"===e.name)){const e=[];let t=[];n.forEach(a=>{"jetpack/form-step-divider"===a.name?(e.push(t),t=[]):t.push(a)}),e.push(t),i=e.map(e=>(0,s.createBlock)("jetpack/form-step",{},e))}else i=n.map(e=>(0,s.createBlock)("jetpack/form-step",{},[e]));0===i.length&&(i=[(0,s.createBlock)("jetpack/form-step",{},[])])}else i=[(0,s.createBlock)("jetpack/form-step",{},[])]}const l=(0,s.createBlock)("jetpack/form-step-container",{},i),d=(e=>{const t=lt.find(e=>"jetpack/form-step-navigation"===e.name);return t&&e?(0,s.createBlock)("jetpack/form-step-navigation",t.attributes,[...t.innerBlocks||[],e]):t||(0,s.createBlock)("jetpack/form-step-navigation",{layout:{type:"flex",justifyContent:"right"}},e?[(0,s.createBlock)(...x.WU),(0,s.createBlock)(...x.GM),e]:x.se.map(e=>(0,s.createBlock)(...e)))})((e=>{if(!e)return null;const t=e,a=t.attributes.className||"",o=a.split(/\s+/).filter(Boolean),r=[];return o.includes("form-button-submit")||r.push("form-button-submit"),o.includes("is-submit")||r.push("is-submit"),r.length>0&&(t.attributes.className=a?`${a} ${r.join(" ")}`:r.join(" ")),t.attributes.metadata={...t.attributes.metadata||{},name:__("Submit button","jetpack-forms")},t})(r)),u=lt.find(e=>"jetpack/form-progress-indicator"===e.name)||(0,s.createBlock)("jetpack/form-progress-indicator",{},[]);nt(),rt(Y,[u,l,d],!1),l.innerBlocks.length>0&&ct(Y,l.innerBlocks[0].clientId),"multistep"!==pe&&f({variationName:"multistep"}),bt.current=J},[pe,lt,Y,rt,ct,f,kt,nt]),(0,p.useEffect)(()=>{if(W!==bt.current)return;let e=null;const t=(t=>{let a=[];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?a.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})):a=a.concat(t.innerBlocks):t.innerBlocks.forEach(e=>{"jetpack/form-step"===e.name&&(a=a.concat(e.innerBlocks))})}),a})(lt);e||(e=(0,s.createBlock)("core/button",{text:__("Submit","jetpack-forms"),type:"submit",tagName:"button"}));const a=[...t,e];nt(),rt(Y,a,!1),"default-empty"!==pe&&(nt(),f({variationName:"default-empty"})),bt.current=K},[pe,lt,kt,Y,rt,nt,f]),(0,p.useEffect)(()=>{"multistep"===pe&&Ge&&Ne.length>0&&!We&&ct(Y,Ne[0].clientId)},[pe,Ge,Ne,We,Y,ct]);const ht=(0,C.l)(Re,e=>e.clientId===Re),jt=(0,C.l)(ht?.clientId||"",e=>"jetpack/form-step"===e.name);(0,p.useEffect)(()=>{Ge&&Re&&jt&&jt.clientId!==We&&We&&ct(Y,jt.clientId)},[Re,Y,Ne,ct,Ge,We,jt]);const vt=ee||De;let yt;if(oe&&Ae&&!Le)return(0,G.jsx)("div",{...Ye,children:(0,G.jsx)(T.A,{})});if(!oe||Ce||Ae){if(we)return(0,G.jsx)(F.A,{blockProps:Ye,innerBlocksProps:Xe,isResolvingSyncedForm:Ae,formRef:oe,flushPendingSave:ut});if(at)yt=Le?Ve?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)("div",{className:"is-form-empty",children:(0,G.jsx)(n.InnerBlocks.ButtonBlockAppender,{})}),(0,G.jsx)("div",{...Xe})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(n.BlockControls,{children:[xe&&!He&&(0,G.jsx)(N.t,{clientId:Y,attributes:a,onBeforeNavigate:ut}),"multistep"===pe&&(0,G.jsx)(_.A,{formClientId:Y})]}),(0,G.jsxs)(n.InspectorControls,{children:[!(0,$.N)(a)&&(0,G.jsxs)(g.b,{intent:"warning",className:"jetpack-contact-form__not-collecting-notice",children:[(0,G.jsx)(k.h,{children:__("This form isn’t collecting responses","jetpack-forms")}),(0,G.jsx)(b.V,{children:(0,p.createInterpolateElement)(__("Turn on <email>email notifications</email> or <storage>response storage</storage> settings to start collecting.","jetpack-forms"),{email:(0,G.jsx)(i.Button,{variant:"link",onClick:()=>qe(e=>({...e,"form-notifications":!0})),children:null}),storage:(0,G.jsx)(i.Button,{variant:"link",onClick:()=>qe(e=>({...e,"responses-storage":!0})),children:null})})})]}),(0,G.jsxs)(i.PanelBody,{title:__("Action after submit","jetpack-forms"),initialOpen:!1,opened:$e["action-after-submit"],onToggle:()=>qe(e=>({...e,"action-after-submit":!e["action-after-submit"]})),className:"jetpack-contact-form__panel",children:[(0,G.jsx)(i.RadioControl,{label:__("Confirmation type","jetpack-forms"),selected:de,options:[{label:__("Text","jetpack-forms"),value:"text"},{label:__("Redirect link","jetpack-forms"),value:"redirect"}],onChange:e=>f({confirmationType:e})}),"text"===de&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(i.TextControl,{label:__("Message heading","jetpack-forms"),value:ie,placeholder:__("Thank you for your response.","jetpack-forms"),onChange:e=>f({customThankyouHeading:e}),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,G.jsx)(i.TextareaControl,{label:__("Message text","jetpack-forms"),value:ce,placeholder:__("Thank you for your submission!","jetpack-forms"),onChange:e=>f({customThankyouMessage:e}),__nextHasNoMarginBottom:!0}),(0,G.jsx)(i.ToggleControl,{label:__("Show summary","jetpack-forms"),checked:!ge,onChange:e=>f({disableSummary:!e}),__nextHasNoMarginBottom:!0}),(0,G.jsx)(i.ToggleControl,{label:__('Show "Go back" link',"jetpack-forms"),checked:!me,onChange:e=>f({disableGoBack:!e}),__nextHasNoMarginBottom:!0})]}),"redirect"===de&&(0,G.jsx)("div",{children:(0,G.jsx)(n.URLInput,{label:__("Redirect address","jetpack-forms"),value:le,className:"jetpack-contact-form__thankyou-redirect-url",onChange:e=>f({customThankyouRedirect:e})})})]}),(0,G.jsx)(i.PanelBody,{title:__("Form notifications","jetpack-forms"),initialOpen:!1,opened:$e["form-notifications"],onToggle:()=>qe(e=>({...e,"form-notifications":!e["form-notifications"]})),className:"jetpack-contact-form__panel",children:(0,G.jsx)(E.A,{notificationRecipients:ke,emailAddress:re,emailSubject:ne,emailNotifications:fe,instanceId:_e,postAuthorEmail:Fe,setAttributes:f})}),je&&ye&&(0,G.jsx)(p.Suspense,{fallback:(0,G.jsx)("div",{}),children:(0,G.jsx)(U,{attributes:a,setAttributes:f})}),ve&&(0,G.jsx)(i.PanelBody,{title:__("Webhooks","jetpack-forms"),className:"jetpack-contact-form__panel",initialOpen:!1,children:(0,G.jsx)(L.A,{webhooks:be,setAttributes:f,clientId:Y})}),(0,G.jsx)(i.PanelBody,{title:__("Responses storage","jetpack-forms"),className:"jetpack-contact-form__panel jetpack-contact-form__responses-storage-panel",initialOpen:!1,opened:$e["responses-storage"],onToggle:()=>qe(e=>({...e,"responses-storage":!e["responses-storage"]})),children:(0,G.jsx)(w.A,{attributes:a,setAttributes:f})})]}),(0,G.jsxs)(n.InspectorAdvancedControls,{children:[(0,G.jsx)(i.TextControl,{label:__("Accessible name","jetpack-forms"),value:ue,placeholder:Ee,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,G.jsx)("p",{children:(0,G.jsx)(m.N,{openInNewTab:!0,href:"https://developer.mozilla.org/docs/Glossary/Accessible_name",children:__("Read more.","jetpack-forms")})})]}),(0,G.jsx)(n.BlockContextProvider,{value:{"jetpack/form-steps":Ne,"jetpack/form-current-step":Me},children:(0,G.jsx)("div",{...Xe})})]}):(0,G.jsx)(q.A,{blockName:t,setAttributes:f,clientId:Y,classNames:Qe});else{if(et)return(0,G.jsx)("div",{...Ye,children:(0,G.jsx)(T.A,{})});yt=(0,G.jsx)(P.o,{changeStatus:ot,isModuleActive:at,isLoading:tt})}}else{const e="permission_denied"===Ie?__("You don't have permission to edit this form.","jetpack-forms"):_x("The referenced form could not be found.","synced form error","jetpack-forms");yt=(0,G.jsx)(i.Notice,{status:"warning",isDismissible:!1,children:e})}return(0,G.jsx)(S.w,{children:(0,G.jsx)(o.Ay,{targetDom:Je.current,children:(0,G.jsxs)("div",{...Ye,children:[oe&&(0,G.jsx)(M.A,{syncedForm:Ce,formRef:oe,isVisible:vt,clientId:Y}),yt]})})})}},1803(e,t,a){"use strict";a.d(t,{G:()=>g});var o=a(5985),r=a(4715),n=a(7378),s=a(3582),i=a(7143),c=a(3656),l=a(6087),d=a(7723),u=a(692),p=a(1435),f=a(2441),m=a(5171);const __=d.__;function g({clientId:e,ref:t,innerBlocks:a,attributes:d,setAttributes:g}){const k=(0,l.useRef)(!1),{createSuccessNotice:b,createErrorNotice:h}=(0,i.useDispatch)(u.store),j=(0,o.lG)("central-form-management"),{currentPostId:v,shouldCreate:y}=(0,i.useSelect)(o=>{if(k.current)return{currentPostId:0,shouldCreate:!1};const{getCurrentPostType:n,getCurrentPostId:s}=o(c.store);return{currentPostId:s(),shouldCreate:j&&!!d.variationName&&o(r.store).wasBlockJustInserted(e)&&!t&&a?.length>0&&n()!==p.$8}},[e,t,a,d.variationName,j]);(0,l.useEffect)(()=>{if(k.current||!y)return;k.current=!0;let e=!1;return(async()=>{try{const t=d.variationName,o=m.A.find(e=>e.attributes?.variationName===t)?.title||__("Form","jetpack-forms"),r=(0,n.createBlock)("jetpack/contact-form",d,a),c=await(0,f.r)(r,o,Number(v));if(e)return;try{await(0,i.resolveSelect)(s.store).getEntityRecord("postType",p.$8,c)}catch{}if(e)return;g({ref:c}),b(__("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,k.current=!1}},[])}},782(e,t,a){"use strict";a.d(t,{E8:()=>l});var o=a(7378),r=a(6087),n=a(1435),s=a(8645);function i(e,t,a,o,r,n){if(!e||!t||a)return null;if(n.current?.ref===e)return n.current.serialized;const i=(0,s.N8)(o,r);return n.current={ref:e,serialized:i},i}function c(e,t,a,r){const i=(0,s.y$)(t,a),c=(0,o.serialize)(i);r("postType",n.$8,e,{content:c,blocks:[i]})}function l({ref:e,syncedForm:t,attributes:a,currentInnerBlocks:o,isSyncingRef:n,editEntityRecord:l}){const d=(0,r.useRef)(null),u=(0,r.useRef)(null);(0,r.useEffect)(()=>{u.current=null,d.current&&(clearTimeout(d.current),d.current=null)},[e]),(0,r.useEffect)(()=>{if(!e)return;const r=i(e,t,n.current,a,o,u);if(!r)return;if((0,s.N8)(a,o)===r)return;const p=setTimeout(()=>{d.current=null,n.current||c(e,a,o,l)},1e3);return d.current=p,()=>{clearTimeout(p),d.current=null}},[o,e,t,l,a,n]);return{flushPendingSave:(0,r.useCallback)(()=>{if(!e)return;const r=i(e,t,n.current,a,o,u);if(!r)return;d.current&&(clearTimeout(d.current),d.current=null);(0,s.N8)(a,o)!==r&&c(e,a,o,l)},[e,t,a,o,n,l])}}},9190(e,t,a){"use strict";a.d(t,{Z:()=>s});var o=a(6087),r=a(8645);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 s({ref:e,syncedFormBlocks:t,syncedFormAttributes:a,clientId:s,setAttributes:i,replaceInnerBlocks:c,__unstableMarkNextChangeAsNotPersistent:l,setActiveStep:d}){const u=(0,o.useRef)(!1),p=(0,o.useRef)(null),f=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(!e||!t)return;if(p.current===e)return;if(p.current=e,u.current=!0,a){const e=(0,r.KM)(a);l(),i(e)}l(),c(s,t,!1);const o=n(t);return o&&d(s,o),f.current=requestAnimationFrame(()=>{f.current=null,u.current=!1}),()=>{null!==f.current&&(cancelAnimationFrame(f.current),f.current=null,u.current=!1)}},[e,t,a,s,l,c,i,d]),{isSyncingRef:u}}},2952(e,t,a){"use strict";a.d(t,{_:()=>l});var o=a(7378),r=a(3582),n=a(7143),s=a(6087),i=a(1435);const c={syncedAttributes:null,syncedInnerBlocks:null};function l(e){const{record:t,isResolving:a,status:l,hasEdits:d}=(0,r.useEntityRecord)("postType",i.$8,e,{enabled:!!e}),u=(0,n.useSelect)(t=>{if(!e)return null;const a=t(r.store);return"function"!=typeof a.getResolutionError?null:a.getResolutionError("getEntityRecord",["postType",i.$8,e])},[e]),p=(0,n.useSelect)(t=>e?t(r.store).getEntityRecordEdits("postType",i.$8,e):null,[e]),f=(0,s.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,o.parse)(e.content);return t.length>0?t:null}return null},[d,p]),{syncedAttributes:m,syncedInnerBlocks:g}=(0,s.useMemo)(()=>{if(f&&f.length>0){const t=f[0];if("jetpack/contact-form"!==t.name)return{syncedAttributes:null,syncedInnerBlocks:null};const a=t.attributes||{},{lock:o,...r}=a;return{syncedAttributes:{...r,ref:e},syncedInnerBlocks:t.innerBlocks||[]}}if(!t?.content?.raw)return c;const a=(0,o.parse)(t.content.raw);if(!a||0===a.length)return c;const r=a[0];if("jetpack/contact-form"!==r.name)return c;const n=r.attributes||{},{lock:s,...i}=n;return{syncedAttributes:{...i,ref:e},syncedInnerBlocks:r.innerBlocks||[]}},[f,t,e]);let k=null;if(e&&!t&&!a&&"IDLE"!==l){k=403===(u?.status??u?.data?.status)?"permission_denied":"not_found"}return e?"IDLE"===l?{isLoading:!0,syncedAttributes:m,syncedInnerBlocks:g,syncedForm:t,errorType:k}:{isLoading:a,syncedAttributes:m,syncedInnerBlocks:g,syncedForm:t,errorType:k}:{isLoading:!1,syncedAttributes:null,syncedInnerBlocks:null,syncedForm:null,errorType:null}}},1425(e,t,a){"use strict";a.d(t,{K:()=>n});var o=a(5573),r=a(790);const n=(0,r.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,r.jsx)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 9H13V7.5H18V9Z"}),(0,r.jsx)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 16.5H13V15H18V16.5Z"}),(0,r.jsx)(o.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,r.jsx)(o.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,r.jsx)(o.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"})]})},2441(e,t,a){"use strict";a.d(t,{r:()=>c});var o=a(7378),r=a(3582),n=a(7143),s=a(7723),i=a(1435);const __=s.__;async function c(e,t,a){const s=(0,o.serialize)([{name:i.bp,attributes:e?.attributes,innerBlocks:e?.innerBlocks}]),c=a>0?{[i.lP]:a}:{};return(await(0,n.dispatch)(r.store).saveEntityRecord("postType",i.$8,{title:t||__("Untitled Form","jetpack-forms"),content:s,status:"publish",meta:c})).id}},8645(e,t,a){"use strict";a.d(t,{KM:()=>r,N8:()=>s,y$:()=>n});var o=a(7378);function r(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 a={...e};return delete a.ref,delete a.lock,(0,o.createBlock)("jetpack/contact-form",a,t)}function s(e,t){const a=n(e,t);return(0,o.serialize)(a)}},4203(e,t,a){"use strict";function o(){const e=window.location.pathname;return e.endsWith("/widgets.php")?"widget":e.endsWith("/site-editor.php")?"site":"post"}a.d(t,{f:()=>o})},5403(e,t,a){"use strict";function o(e,t){return null==e?t:"string"==typeof e?!["","no","false","0"].includes(e.trim().toLowerCase()):!!e}function r(e={}){const t=o(e.emailNotifications,!0),a=o(e.saveResponses,!0),r=o(e.jetpackCRM,!1)||!!e.mailpoet?.enabledForForm||!!e.hostingerReach?.enabledForForm||!!e.salesforceData?.sendToSalesforce&&!!e.salesforceData?.organizationId;return t||a||r}a.d(t,{N:()=>r})},1295(e,t,a){"use strict";a.d(t,{h:()=>n});var o=a(6449),r=a(1435);const n=(e,t,a)=>{"widget"===t||"site"===t?window.location.href=(0,o.w)(e):a&&a({postId:e,postType:r.$8})}},6082(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790);const n={src:(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.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"})})}},3421(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790);const n={src:(0,r.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,r.jsx)(o.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,r.jsx)(o.Path,{d:"M20.1087 15.9382L15.9826 21.6689L12.959 18.5194L14.0411 17.4806L15.8175 19.331L18.8914 15.0618L20.1087 15.9382Z"})]})}},235(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790);const n={src:(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.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"})})}},4602(e,t,a){"use strict";a.d(t,{A:()=>g});var o=a(4715),r=a(6427),n=a(3582),s=a(7143),i=a(6087),c=a(7723),l=a(3022),d=a(8696),u=a(528),p=a(4334),f=a(7930),m=(a(1676),a(3210),a(790));const __=c.__;function g(e){const{attributes:t,clientId:a,setAttributes:c,name:g}=e,{id:k,required:b,width:h}=t,{updateBlockAttributes:j}=(0,s.useDispatch)(o.store),{blockStyle:v}=(0,f.A)(t),{optionsBlock:y,imageOptionsInnerBlocks:x}=(0,s.useSelect)(e=>{const{getBlock:t}=e(o.store),r=t(a)?.innerBlocks.find(e=>"jetpack/fieldset-image-options"===e.name);return{optionsBlock:r,imageOptionsInnerBlocks:r?.innerBlocks?.[0]?.innerBlocks}},[a]),_=(0,i.useMemo)(()=>x?.filter(e=>void 0!==e.attributes?.id)?.map(e=>({clientId:e.clientId,mediaId:e.attributes.id}))??[],[x]);(0,s.useSelect)(e=>_.map(t=>e(n.store).getEntityRecord("postType","attachment",t.mediaId,{context:"view"})),[_]),(0,p.Ay)({attributes:t,clientId:a,name:g});const{addOption:w}=(0,u.A)(y?.clientId),C=(0,o.useBlockProps)({className:(0,l.A)("jetpack-field jetpack-field-image-select is-non-animated-label is-non-outlined-block"),style:v}),A=(0,i.useMemo)(()=>[["jetpack/label",{label:__("Choose one image","jetpack-forms"),required:b}],["jetpack/fieldset-image-options",{multiple:!1}]],[b]),S=(0,o.useInnerBlocksProps)({className:"jetpack-field-image-select__wrapper"},{allowedBlocks:["jetpack/label","jetpack/fieldset-image-options"],template:A,templateLock:"all"}),B=(0,i.useCallback)(e=>{c({isSupersized:e});const t=y?.innerBlocks;if(t&&t.length>0){const a=t.map(e=>e.innerBlocks[0]),o=e?"full":"medium";a.forEach(e=>{j(e.clientId,{sizeSlug:o});const t=(0,s.select)(n.store).getEntityRecord("postType","attachment",e.attributes.id,{context:"view"}),a=t?.media_details?.sizes?.[o]?.source_url;a&&j(e.clientId,{url:a})})}},[c,y?.innerBlocks,j]);return(0,m.jsxs)("div",{...C,children:[(0,m.jsx)("div",{...S}),(0,m.jsx)(o.BlockControls,{children:(0,m.jsx)(r.ToolbarGroup,{children:(0,m.jsx)(r.ToolbarButton,{onClick:()=>w(),children:__("Add choice","jetpack-forms")})})}),(0,m.jsx)(d.A,{id:k,required:b,attributes:t,setAttributes:c,width:h,extraFieldSettings:[{index:1,element:(0,m.jsx)(r.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)(r.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)(r.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)(r.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")}]})]})}},233(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790);const n={src:(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.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"})})}},1912(e,t,a){"use strict";a.d(t,{Ay:()=>c});var o=a(7723),r=a(3083),n=a(4602),s=a(233),i=a(6893);const __=o.__,c={name:"field-image-select",settings:{...r.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:s.A,edit:n.A,attributes:{...r.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:{...r.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:i.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,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useBlockProps.save(),t=o.useInnerBlocksProps.save();return(0,r.jsx)("div",{...e,children:(0,r.jsx)("div",{...t})})};a.dn(n)},5887(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790);const n={src:(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.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"})})}},3688(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790);const n={src:(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.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"})})}},2850(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790);const n={src:(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.Path,{d:"M12 7H4V8.5H12V7ZM19.75 17.25V10.75H4.25V17.25H19.75ZM5.75 15.75V12.25H18.25V15.75H5.75Z"})})}},1918(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790);const n={src:(0,r.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,r.jsx)(o.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,r.jsx)(o.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,r.jsx)(o.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"})]})}},3854(e,t,a){"use strict";a.d(t,{H:()=>s});var o=a(5573),r=a(402),n=a(790);const s=({iconStyle:e,strokeColor:t="currentColor",fillColor:a="none",strokeWidth:s=2})=>{const i=r.Tz[e]||r.Tz.stars;return(0,n.jsx)(o.SVG,{className:"jetpack-field-rating__icon",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,n.jsx)(o.Path,{d:i,fill:a,stroke:t,strokeWidth:s,strokeLinejoin:"round"})})}},6559(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790);const n={src:(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.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"})})}},4907(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790);const n={src:(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.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"})})}},1288(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790);const n={src:(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.Path,{d:"M12 7H4V8.5H12V7ZM19.75 17.25V10.75H4.25V17.25H19.75ZM5.75 15.75V12.25H18.25V15.75H5.75Z"})})}},9705(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790);const n={src:(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.Path,{d:"M20 5H4V6.5H20V5ZM5.5 11.5H18.5V18.5H5.5V11.5ZM20 20V10H4V20H20Z"})})}},3926(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790);const n={src:(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.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"})})}},9462(e,t,a){"use strict";a.d(t,{A:()=>u});var o=a(4715),r=a(6427),n=a(6087),s=a(7723),i=a(3022),c=a(528),l=a(7930),d=a(790);const __=s.__;function u(e){const{attributes:t,clientId:a}=e,{blockStyle:s}=(0,l.A)(t),{addOption:u,newImageOption:p}=(0,c.A)(a),f=(0,o.useBlockProps)({className:(0,i.A)("jetpack-field jetpack-fieldset-image-options"),style:s}),m=(0,n.useMemo)(()=>p(),[p]),g=(0,o.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",{...g}),(0,d.jsx)(o.BlockControls,{children:(0,d.jsx)(r.ToolbarGroup,{children:(0,d.jsx)(r.ToolbarButton,{onClick:()=>u(),children:__("Add choice","jetpack-forms")})})})]})}},6381(e,t,a){"use strict";a.d(t,{A:()=>s});var o=a(6427),r=a(1831),n=a(790);const s={src:(0,n.jsx)(o.Icon,{icon:r.A})}},8252(e,t,a){"use strict";a.d(t,{A:()=>i});var o=a(7723),r=a(9462),n=a(6381),s=a(7873);const __=o.__,i={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:r.A,save:s.A}}},7873(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useBlockProps.save(),t=o.useInnerBlocksProps.save();return(0,r.jsx)("div",{...e,children:(0,r.jsx)("div",{...t})})};a.dn(n)},3703(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790);function n(){return(0,r.jsxs)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",children:[(0,r.jsx)(o.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,r.jsx)(o.Path,{d:"M6.1001 6H12.1001V7.5H6.1001V6Z"}),(0,r.jsx)(o.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,r.jsx)(o.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"})]})}},1961(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790);function n(){return(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",children:(0,r.jsx)(o.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"})})}},4255(e,t,a){"use strict";a.d(t,{A:()=>m});var o=a(4715),r=a(7143),n=a(6087),s=a(7723),i=a(3022),c=a(528),l=a(7930),d=a(7664),u=a(4965),p=a(790);const __=s.__,f=["backgroundColor","borderColor","textColor","fontSize","style"];function m(e){const{clientId:t,context:a,name:s,attributes:m,setAttributes:g}=e,{"jetpack/field-share-attributes":k}=a,{label:b}=m;(0,d.d)(s,k,f,m,g);const{"jetpack/field-image-select-is-supersized":h}=a||{},{positionIndex:j,positionLetter:v,rowOptionsCount:y,parentId:x}=(0,r.useSelect)(e=>{const a=e(o.store),{getBlock:r}=a,n=a.getBlockParentsByBlockName(t,"jetpack/fieldset-image-options"),s=n[n.length-1],i=r(s),c=i.innerBlocks.findIndex(e=>e.clientId===t)+1,l=i.innerBlocks.length,d=h?2:4,p=Math.min(l,d);return{positionIndex:c,positionLetter:(0,u.F)(c),rowOptionsCount:p,parentId:s}},[t,h]),{addOption:_}=(0,c.A)(x),w=(0,n.useCallback)(e=>{"Enter"===e.key&&(e.preventDefault(),_(j))},[_,j]),C=(0,n.useCallback)(e=>{e.preventDefault();const t=(e.clipboardData?.getData("text/plain")||"").replace(/[\r\n]+/g," ").trim();t&&g({label:t})},[g]),{blockStyle:A}=(0,l.A)(m),S=(0,o.useBlockProps)({className:(0,i.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,o.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:v}),(0,p.jsx)(o.RichText,{tagName:"span",className:"jetpack-input-image-option__label",value:b,placeholder:__("Add label","jetpack-forms"),__unstableDisableFormats:!0,onChange:e=>g({label:e}),onKeyDown:w,onPaste:C})]})]})}},6184(e,t,a){"use strict";a.d(t,{A:()=>s});var o=a(6427),r=a(6092),n=a(790);const s={src:(0,n.jsx)(o.Icon,{icon:r.A})}},4439(e,t,a){"use strict";a.d(t,{A:()=>i});var o=a(7723),r=a(4255),n=a(6184),s=a(2988);const __=o.__,i={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:r.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:s.A}}},4965(e,t,a){"use strict";a.d(t,{F:()=>o});const o=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}},2988(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useBlockProps.save(),t=o.useInnerBlocksProps.save();return(0,r.jsx)("div",{...e,children:(0,r.jsx)("div",{...t})})};a.dn(n)},9822(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790);function n(e){return(0,r.jsxs)(o.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:[(0,r.jsx)(o.Line,{x1:"4",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0,r.jsx)(o.Circle,{cx:"12",cy:"12",r:"2",fill:"currentColor"})]})}},528(e,t,a){"use strict";a.d(t,{A:()=>i});var o=a(4715),r=a(7378),n=a(7143),s=a(6087);function i(e){const{insertBlock:t}=(0,n.useDispatch)(o.store),{getBlock:a}=(0,n.useSelect)(o.store,[]),i=(0,s.useCallback)(()=>({name:"jetpack/input-image-option",attributes:{label:""}}),[]),c=(0,s.useCallback)(o=>{const n=a(e);if(!n)return;const{name:s,attributes:c}=i(),l=(0,r.createBlock)(s,c);(!Number.isInteger(o)||o<0||o>n.innerBlocks.length)&&(o=n.innerBlocks.length),t(l,o,e)},[a,e,i,t]);return{newImageOption:i,addOption:c}}},6449(e,t,a){"use strict";function o(e,t){return`${t??""}post.php?post=${e}&action=edit`}a.d(t,{w:()=>o})},3102(e,t,a){"use strict";a.d(t,{o:()=>r});var o=a(3832);const r=e=>{const t=window.jpFormsBlocks?.defaults?.formsResponsesUrl||"/wp-admin/admin.php?page=jetpack-forms-responses-wp-admin";return(0,o.addQueryArgs)(t,{p:`/responses/inbox?sourceId=${e}`})}},8824(e,t,a){"use strict";a.d(t,{$p:()=>r});var o=a(7143);const r="jetpack-forms/panel-state",n={activePanel:null},s={openPanel:e=>({type:"OPEN_PANEL",panelName:e}),closePanel:()=>({type:"CLOSE_PANEL"})},i={getActivePanel:e=>e.activePanel},c=(0,o.createReduxStore)(r,{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:s,selectors:i});(0,o.register)(c)},4506(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(7143),r=a(36);function n(e){return(0,o.useSelect)(t=>{const a=t(r.Dn).getConfig();return a?.[e]},[e])}},3960(e,t,a){"use strict";a.d(t,{Xw:()=>i,bN:()=>s,bv:()=>o,tN:()=>r,xr:()=>n});const o="RECEIVE_CONFIG",r="RECEIVE_CONFIG_VALUE",n="INVALIDATE_CONFIG",s="SET_CONFIG_LOADING",i="SET_CONFIG_ERROR"},9235(e,t,a){"use strict";a.r(t),a.d(t,{invalidateConfig:()=>i,receiveConfig:()=>n,receiveConfigValue:()=>s,refreshConfig:()=>d,setConfigError:()=>l,setConfigLoading:()=>c});var o=a(3960),r=a(6295);const n=e=>({type:o.bv,config:e}),s=(e,t)=>({type:o.tN,key:e,value:t}),i=()=>({type:o.xr}),c=e=>({type:o.bN,isLoading:e}),l=e=>({type:o.Xw,error:e}),d=()=>(0,r.getConfig)()},36(e,t,a){"use strict";a.d(t,{Dn:()=>c});var o=a(7143),r=a(9235),n=a(2904),s=a(6295),i=a(9342);const c="jetpack/forms/config",l=(0,o.createReduxStore)(c,{reducer:n.A,actions:r,selectors:i,resolvers:s});(0,o.register)(l)},2904(e,t,a){"use strict";a.d(t,{A:()=>s});var o=a(3344),r=a(3960);const n={config:null,isLoading:!1,error:null};function s(e=n,t){switch(t.type){case r.bN:return{...e,isLoading:!!t.isLoading,error:t.isLoading?null:e.error};case r.Xw:return{...e,isLoading:!1,error:t.error??o.m};case r.bv:return{...e,config:t.config??null,isLoading:!1,error:null};case r.tN:return{...e,config:{...e.config??{},[t.key]:t.value}};case r.xr:return{...e,config:null,isLoading:!1};default:return e}}},6295(e,t,a){"use strict";a.r(t),a.d(t,{getConfig:()=>c});var o=a(1455),r=a.n(o),n=a(3344),s=a(3960),i=a(9235);function c(){return async({dispatch:e})=>{await(async e=>{e((0,i.setConfigLoading)(!0));try{const t=await r()({path:"/wp/v2/feedback/config"});e((0,i.receiveConfig)(t))}catch(t){const a=t instanceof Error?t.message:n.m;e((0,i.setConfigError)(a))}finally{e((0,i.setConfigLoading)(!1))}})(e)}}c.isFulfilled=e=>null!==e.config||e.isLoading,c.shouldInvalidate=e=>e.type===s.xr},9342(e,t,a){"use strict";a.r(t),a.d(t,{getConfig:()=>o,getConfigError:()=>s,getConfigValue:()=>r,isConfigLoading:()=>n});const o=e=>e.config,r=(e,t)=>e.config?.[t],n=e=>e.isLoading,s=e=>e.error},3344(e,t,a){"use strict";a.d(t,{m:()=>r});var o=a(7723);const r=(0,o.__)("Unknown error","jetpack-forms")},355(e,t,a){"use strict";a.d(t,{SS:()=>o,iL:()=>r,uf:()=>s,yc:()=>n});const o="RECEIVE_INTEGRATIONS",r="INVALIDATE_INTEGRATIONS",n="SET_INTEGRATIONS_LOADING",s="SET_INTEGRATIONS_ERROR"},2146(e,t,a){"use strict";a.r(t),a.d(t,{invalidateIntegrations:()=>s,receiveIntegrations:()=>n,refreshIntegrations:()=>l,setIntegrationsError:()=>c,setIntegrationsLoading:()=>i});var o=a(355),r=a(6226);const n=e=>({type:o.SS,items:e}),s=()=>({type:o.iL}),i=e=>({type:o.yc,isLoading:e}),c=e=>({type:o.uf,error:e}),l=()=>(0,r.getIntegrations)()},5517(e,t,a){"use strict";a.d(t,{Qf:()=>c});var o=a(7143),r=a(2146),n=a(7845),s=a(6226),i=a(8507);const c="jetpack/forms/integrations",l=(0,o.createReduxStore)(c,{reducer:n.A,actions:r,selectors:i,resolvers:s});(0,o.register)(l)},7845(e,t,a){"use strict";a.d(t,{A:()=>s});var o=a(3344),r=a(355);const n={items:null,isLoading:!1,error:null};function s(e=n,t){switch(t.type){case r.yc:return{...e,isLoading:!!t.isLoading,error:t.isLoading?null:e.error};case r.uf:return{...e,isLoading:!1,error:t.error??o.m};case r.SS:return{...e,items:t.items,isLoading:!1,error:null};case r.iL:return{...e,items:null,isLoading:!1};default:return e}}},6226(e,t,a){"use strict";a.r(t),a.d(t,{getIntegrations:()=>u,resetMetadataFlag:()=>d});var o=a(1455),r=a.n(o),n=a(3832),s=a(3344),i=a(355),c=a(2146);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 r()({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}),a=await r()({path:t});e((0,c.receiveIntegrations)(a))})({dispatch:e})}catch(t){const a=t instanceof Error?t.message:s.m;e((0,c.setIntegrationsError)(a))}finally{e((0,c.setIntegrationsLoading)(!1))}};u.shouldInvalidate=e=>e.type===i.iL},8507(e,t,a){"use strict";a.r(t),a.d(t,{getIntegrations:()=>o,getIntegrationsError:()=>n,isIntegrationsLoading:()=>r});const o=e=>e.items,r=e=>e.isLoading,n=e=>e.error},67(e,t,a){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 a="color: "+this.color;t.splice(1,0,a,"color: inherit");let o=0,r=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(o++,"%c"===e&&(r=o))}),t.splice(r,0,a)},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=a(8926)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},8926(e,t,a){e.exports=function(e){function t(e){let a,r,n,s=null;function i(...e){if(!i.enabled)return;const o=i,r=Number(new Date),n=r-(a||r);o.diff=n,o.prev=a,o.curr=r,a=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(a,r)=>{if("%%"===a)return"%";s++;const n=t.formatters[r];if("function"==typeof n){const t=e[s];a=n.call(o,t),e.splice(s,1),s--}return a}),t.formatArgs.call(o,e);(o.log||t.log).apply(o,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=o,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(r!==t.namespaces&&(r=t.namespaces,n=t.enabled(e)),n),set:e=>{s=e}}),"function"==typeof t.init&&t.init(i),i}function o(e,a){const o=t(this.namespace+(void 0===a?":":a)+e);return o.log=this.log,o}function r(e,t){let a=0,o=0,r=-1,n=0;for(;a<e.length;)if(o<t.length&&(t[o]===e[a]||"*"===t[o]))"*"===t[o]?(r=o,n=a,o++):(a++,o++);else{if(-1===r)return!1;o=r+1,n++,a=n}for(;o<t.length&&"*"===t[o];)o++;return o===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 a=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of a)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const a of t.skips)if(r(e,a))return!1;for(const a of t.names)if(r(e,a))return!0;return!1},t.humanize=a(4997),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(a=>{t[a]=e[a]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let a=0;for(let t=0;t<e.length;t++)a=(a<<5)-a+e.charCodeAt(t),a|=0;return t.colors[Math.abs(a)%t.colors.length]},t.enable(t.load()),t}},9789(e,t,a){"use strict";t.A=function(e){var t=e.size,a=void 0===t?24:t,o=e.onClick,i=(e.icon,e.className),c=function(e,t){if(null==e)return{};var a,o,r=function(e,t){if(null==e)return{};var a,o,r={},n=Object.keys(e);for(o=0;o<n.length;o++)a=n[o],0<=t.indexOf(a)||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(o=0;o<n.length;o++)a=n[o],0<=t.indexOf(a)||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}(e,n),l=["gridicon","gridicons-notice-outline",i,!!function(e){return 0==e%18}(a)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return r.default.createElement("svg",s({className:l,height:a,width:a,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),r.default.createElement("g",null,r.default.createElement("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var o,r=(o=a(1609))&&o.__esModule?o:{default:o},n=["size","onClick","icon","className"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t,a=1;a<arguments.length;a++)for(var o in t=arguments[a])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)}},5875(e){"use strict";e.exports={consumer_slug:"jetpack-forms"}},7999(e){"use strict";e.exports=window.JetpackScriptDataModule},7687(e){"use strict";e.exports=window.JetpackSharedStores},1609(e){"use strict";e.exports=window.React},790(e){"use strict";e.exports=window.ReactJSXRuntime},8468(e){"use strict";e.exports=window.lodash},195(e){"use strict";e.exports=window.wp.a11y},1455(e){"use strict";e.exports=window.wp.apiFetch},4715(e){"use strict";e.exports=window.wp.blockEditor},7378(e){"use strict";e.exports=window.wp.blocks},6427(e){"use strict";e.exports=window.wp.components},9491(e){"use strict";e.exports=window.wp.compose},3582(e){"use strict";e.exports=window.wp.coreData},7143(e){"use strict";e.exports=window.wp.data},8443(e){"use strict";e.exports=window.wp.date},8490(e){"use strict";e.exports=window.wp.domReady},3656(e){"use strict";e.exports=window.wp.editor},6087(e){"use strict";e.exports=window.wp.element},2619(e){"use strict";e.exports=window.wp.hooks},8537(e){"use strict";e.exports=window.wp.htmlEntities},7723(e){"use strict";e.exports=window.wp.i18n},4252(e){"use strict";e.exports=window.wp.jpI18nLoader},692(e){"use strict";e.exports=window.wp.notices},2279(e){"use strict";e.exports=window.wp.plugins},5573(e){"use strict";e.exports=window.wp.primitives},3832(e){"use strict";e.exports=window.wp.url},8651(e,t,a){"use strict";function o(e,t){const a={};for(const o in e){const r=e[o];if(t?.hasOwnProperty(o)){const e=t[o](r);null!=e&&Object.assign(a,e);continue}!0===r?a[`data-${o.toLowerCase()}`]="":r&&(a[`data-${o.toLowerCase()}`]=r.toString())}return a}a.d(t,{v:()=>o})},9516(e,t,a){"use strict";a.d(t,{o:()=>f});var o=a(334),r=a(1609),n=a(6211),s=a(9742),i=a(6504),c=a(2147),l=a(8651),d=a(1835),u=a(3057),p=a(9300);function f(e,t,a={}){const f=t.render,g=function(e,t={}){const{className:a,style:o,render:r}=e,{state:f=c.t0,ref:m,props:g,stateAttributesMapping:k,enabled:b=!0}=t,h=b?(0,d.S)(a,f):void 0,j=b?(0,u.m)(o,f):void 0,v=b?(0,l.v)(f,k):c.t0,y=b&&g?function(e){if(Array.isArray(e))return(0,p.lZ)(e);return(0,p.v6)(void 0,e)}(g):void 0,x=b?(0,i.r)(v,y)??{}:c.t0;"undefined"!=typeof document&&(b?Array.isArray(m)?x.ref=(0,n.U)([x.ref,(0,s.v)(r),...m]):x.ref=(0,n.a)(x.ref,(0,s.v)(r),m):(0,n.a)(null,null));if(!b)return c.t0;void 0!==h&&(x.className=(0,p.VN)(x.className,h));void 0!==j&&(x.style=(0,i.r)(x.style,j));return x}(t,a);if(!1===a.enabled)return null;return function(e,t,a,n){if(t){if("function"==typeof t)return t(a,n);const e=(0,p.v6)(a,t.props);e.ref=a.ref;let o=t;if(o?.$$typeof===m){o=r.Children.toArray(t)[0]}return r.cloneElement(o,e)}if(e&&"string"==typeof e)return function(e,t){if("button"===e)return(0,r.createElement)("button",{type:"button",...t,key:t.key});if("img"===e)return(0,r.createElement)("img",{alt:"",...t,key:t.key});return r.createElement(e,t)}(e,a);throw new Error((0,o.A)(8))}(e,f,g,a.state??c.t0)}const m=Symbol.for("react.lazy")},9300(e,t,a){"use strict";a.d(t,{VN:()=>g,lZ:()=>s,v6:()=>n});var o=a(6504);const r={};function n(e,t,a,o,r){if(!(a||o||r||e))return i(t);let n=i(e);return t&&(n=c(n,t)),a&&(n=c(n,a)),o&&(n=c(n,o)),r&&(n=c(n,r)),n}function s(e){if(0===e.length)return r;if(1===e.length)return i(e[0]);let t=i(e[0]);for(let a=1;a<e.length;a+=1)t=c(t,e[a]);return t}function i(e){return d(e)?{...u(e,r)}:function(e){const t={...e};for(const e in t){const a=t[e];l(e,a)&&(t[e]=f(a))}return t}(e)}function c(e,t){return d(t)?u(t,e):function(e,t){if(!t)return e;for(const a in t){const r=t[a];switch(a){case"style":e[a]=(0,o.r)(e.style,r);break;case"className":e[a]=g(e.className,r);break;default:l(a,r)?e[a]=p(e[a],r):e[a]=r}}return e}(e,t)}function l(e,t){const a=e.charCodeAt(0),o=e.charCodeAt(1),r=e.charCodeAt(2);return 111===a&&110===o&&r>=65&&r<=90&&("function"==typeof t||void 0===t)}function d(e){return"function"==typeof e}function u(e,t){return d(e)?e(t):e??r}function p(e,t){return t?e?(...a)=>{const o=a[0];if(k(o)){const r=o;m(r);const n=t(...a);return r.baseUIHandlerPrevented||e?.(...a),n}const r=t(...a);return e?.(...a),r}:f(t):e}function f(e){return e?(...t)=>{const a=t[0];return k(a)&&m(a),e(...t)}:e}function m(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function g(e,t){return t?e?t+" "+e:t:e}function k(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}},3196(e,t,a){"use strict";a.d(t,{C:()=>r});var o=a(9516);function r(e){return(0,o.o)(e.defaultTagName??"div",e,e)}},1835(e,t,a){"use strict";function o(e,t){return"function"==typeof e?e(t):e}a.d(t,{S:()=>o})},3057(e,t,a){"use strict";function o(e,t){return"function"==typeof e?e(t):e}a.d(t,{m:()=>o})},2147(e,t,a){"use strict";a.d(t,{t0:()=>o});Object.freeze([]);const o=Object.freeze({})},334(e,t,a){"use strict";a.d(t,{A:()=>n});var o,r;const n=(o="https://base-ui.com/production-error",r="Base UI",function(e,...t){const a=new URL(o);return a.searchParams.set("code",e.toString()),t.forEach(e=>a.searchParams.append("args[]",e)),`${r} error #${e}; visit ${a} for the full message.`})},9742(e,t,a){"use strict";a.d(t,{v:()=>n});var o=a(1609),r=a(8521);function n(e){if(!o.isValidElement(e))return null;const t=e,a=t.props;return((0,r._)(19)?a?.ref:t.ref)??null}},6504(e,t,a){"use strict";function o(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}a.d(t,{r:()=>o})},8521(e,t,a){"use strict";a.d(t,{_:()=>n});var o=a(1609);const r=parseInt(o.version,10);function n(e){return r>=e}},6211(e,t,a){"use strict";a.d(t,{U:()=>n,a:()=>r});var o=a(3074);function r(e,t,a,r){const n=(0,o.j)(s).current;return function(e,t,a,o,r){return e.refs[0]!==t||e.refs[1]!==a||e.refs[2]!==o||e.refs[3]!==r}(n,e,t,a,r)&&i(n,[e,t,a,r]),n.callback}function n(e){const t=(0,o.j)(s).current;return function(e,t){return e.refs.length!==t.length||e.refs.some((e,a)=>e!==t[a])}(t,e)&&i(t,e),t.callback}function s(){return{callback:null,cleanup:null,refs:[]}}function i(e,t){e.refs=t,t.every(e=>null==e)?e.callback=null:e.callback=a=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=a){const o=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){const r=t[e];if(null!=r)switch(typeof r){case"function":{const t=r(a);"function"==typeof t&&(o[e]=t);break}case"object":r.current=a}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){const a=t[e];if(null!=a)switch(typeof a){case"function":{const t=o[e];"function"==typeof t?t():a(null);break}case"object":a.current=null}}}}}}},3074(e,t,a){"use strict";a.d(t,{j:()=>n});var o=a(1609);const r={};function n(e,t){const a=o.useRef(r);return a.current===r&&(a.current=e(t)),a}},3758(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790),n=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-.75 12v-1.5h1.5V16h-1.5Zm0-8v5h1.5V8h-1.5Z"})})},8901(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790),n=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.Path,{d:"M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z"})})},1489(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790),n=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})})},71(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790),n=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.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"})})},9099(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790),n=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.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"})})},1831(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790),n=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.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"})})},1490(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790),n=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.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"})})},6092(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790),n=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.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"})})},8847(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790),n=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"})})},5173(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790),n=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.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"})})},4996(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790),n=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})})},2634(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790),n=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.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"})})},2528(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790),n=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})})},2243(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790),n=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm11.53-1.47-1.06-1.06L11 12.94l-1.47-1.47-1.06 1.06L11 15.06l4.53-4.53Z"})})},8755(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790),n=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.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"})})},8384(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(5573),r=a(790),n=(0,r.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})})},3022(e,t,a){"use strict";function o(e){var t,a,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(a=o(e[t]))&&(r&&(r+=" "),r+=a)}else for(a in e)e[a]&&(r&&(r+=" "),r+=a);return r}function r(){for(var e,t,a=0,r="",n=arguments.length;a<n;a++)(e=arguments[a])&&(t=o(e))&&(r&&(r+=" "),r+=t);return r}a.d(t,{$:()=>r,A:()=>n});const n=r},2966(e,t,a){"use strict";a.d(t,{P:()=>D});var o=a(5985),r=a(3750),n=a(4042),s=a(1183),i=a(2650),c=a(6755),l=a(7495),d=a(8293),u=a(345),p=a(9579),f=a(1912),m=a(9105),g=a(5804),k=a(3930),b=a(1250),h=a(9083),j=a(149),v=a(1114),y=a(2997),x=a(1264),_=a(1825),w=a(3826),C=a(6048),A=a(8252),S=a(8526),B=a(2355),I=a(1845),N=a(215),M=a(1196),P=a(4928),T=a(4439),E=a(6621),L=a(3828),F=a(5338),R=a(4318),V=a(3293),H=a(5214);const D=[R.A,s.A,P.A,V.A,H.A,i.Ay,c.Ay,l.Ay,h.Ay,p.Ay,d.Ay,m.Ay,g.Ay,k.Ay,E.A,j.Ay,x.Ay,C.Ay,y.Ay,_.Ay,w.Ay,u.Ay,b.Ay,F.A,v.Ay,L.A,f.Ay,A.A,T.A,r.A,n.A,...(0,o.lG)("multistep-form")?[B.Ay,I.Ay,N.Ay,M.Ay,S.Ay]:[]]},7396(e,t,a){"use strict";a.d(t,{o:()=>i});var o=a(6427),r=a(7723),n=a(3365),s=a(790);const __=r.__,i=({changeStatus:e,isLoading:t,isModuleActive:a})=>(0,s.jsx)(o.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,s.jsx)(o.Button,{disabled:a||t,isBusy:t,onClick:()=>e(!0),variant:"secondary",children:t?__("Activating Forms","jetpack-forms"):__("Activate Forms","jetpack-forms",0)})})},5540(e,t,a){"use strict";a.d(t,{A:()=>s});var o=a(1876),r=a(6427),n=a(790);const s=function(){return(0,n.jsx)(r.Placeholder,{children:(0,n.jsxs)(r.Flex,{gap:2,direction:"column",style:{width:"100%"},children:[(0,n.jsxs)(r.Flex,{gap:4,children:[(0,n.jsx)(r.FlexItem,{children:(0,n.jsx)(o.A,{width:30,height:30})}),(0,n.jsx)(r.FlexBlock,{children:(0,n.jsx)(o.A,{width:"90%",height:30})})]}),(0,n.jsx)(r.Flex,{style:{marginTop:12},children:(0,n.jsx)(r.FlexBlock,{children:(0,n.jsx)(o.A,{height:30,width:"60%"})})}),(0,n.jsx)(r.Flex,{style:{marginTop:12},children:(0,n.jsx)(r.FlexBlock,{children:(0,n.jsx)(o.A,{width:150,height:50})})}),(0,n.jsx)(r.Flex,{style:{marginTop:18},children:(0,n.jsx)(r.FlexBlock,{children:(0,n.jsx)(o.A,{width:"90%",height:16})})})]})})}},9738(e,t,a){"use strict";a.d(t,{A:()=>l});var o=a(6427),r=a(6087),n=a(7723),s=a(9904),i=a(3309),c=a(790);const __=n.__,l=({emailAddress:e="",emailSubject:t="",emailNotifications:a=!0,instanceId:l,setAttributes:d,postAuthorEmail:u})=>{const[p,f]=(0,r.useState)(!1),m=e=>0!==(e=e.trim()).length&&(!(0,s.t)(e)&&{email:e});return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(o.ToggleControl,{label:__("Send responses to email","jetpack-forms"),checked:a,help:__("Get incoming form responses sent to your email inbox.","jetpack-forms"),onChange:e=>d({emailNotifications:e}),__nextHasNoMarginBottom:!0}),a&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(o.TextControl,{"aria-describedby":`contact-form-${l}-email-${p&&p.length>0?"error":"help"}`,label:__("Email address to send to","jetpack-forms"),placeholder:__("name@example.com","jetpack-forms"),onKeyDown:e=>{"Enter"===event.key&&(e.preventDefault(),e.stopPropagation())},value:e,onBlur:e=>{if(0===e.target.value.length)return f(!1),void d({to:u});const t=e.target.value.split(",").map(m).filter(Boolean);t&&t.length&&f(t)},onChange:e=>{f(!1),d({to:e.trim()})},help:__("You can enter multiple email addresses separated by commas.","jetpack-forms"),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,c.jsx)(i.A,{isError:!0,id:`contact-form-${l}-email-error`,children:(()=>{if(p){if(1===p.length)return p[0]&&p[0].email?(0,n.sprintf)(/* translators: %s: an email address. */
__("%s is not a valid email address.","jetpack-forms"),p[0].email):p[0];if(2===p.length)return(0,n.sprintf)(/* translators: %1$s, %2$s: email addresses. */
__("%1$s and %2$s are not valid email addresses.","jetpack-forms"),p[0].email,p[1].email);const e=p.map(e=>e.email);return(0,n.sprintf)(/* translators: %s: a list of email addresses. */
__("%s are not valid email addresses.","jetpack-forms"),e.join(", "))}return null})()}),(0,c.jsx)(o.TextControl,{label:__("Email subject line","jetpack-forms"),value:t,placeholder:__("Enter a subject","jetpack-forms"),onChange:e=>d({subject:e}),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})]})]})}},7338(e,t,a){"use strict";a.d(t,{A:()=>m});var o=a(7999),r=a(2201),n=a(6427),s=a(3582),i=a(7143),c=a(3656),l=a(6087),d=a(7723),u=a(9654),p=a(9738),f=a(790);const __=d.__,m=({setAttributes:e,notificationRecipients:t,emailAddress:a,emailSubject:d,emailNotifications:m,instanceId:g,postAuthorEmail:k})=>{const[b,h]=(0,l.useState)(t),[j,v]=(0,l.useState)(t?.length>0),y=(0,i.useSelect)(e=>{const{getUsers:t}=e(s.store);return t({who:"authors",per_page:-1})||[]},[]).filter(e=>e.capabilities?.edit_posts||e.capabilities?.edit_pages),x={};y.forEach(e=>{x[e.id.toString()]=e.name||e.slug});const{postAuthorId:_}=(0,i.useSelect)(e=>{const{getEditedPostAttribute:t}=e(c.store);return{postAuthorId:t("author")}},[]),w=b.filter(e=>x[e]).map(e=>x[e]),C=y.map(e=>e.name||e.slug),A=(0,o.isWpcomPlatformSite)();return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(p.A,{emailAddress:a,emailSubject:d,emailNotifications:m,instanceId:g,postAuthorEmail:k,setAttributes:e}),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(n.ToggleControl,{label:__("Enable notifications for responses","jetpack-forms"),help:(0,l.createInterpolateElement)(__("Receive push notifications when someone fills out your form. <pushNotificationsLink>Learn more.</pushNotificationsLink>","jetpack-forms"),{pushNotificationsLink:A?(0,f.jsx)(r.k4,{supportLink:"https://wordpress.com/support/wordpress-editor/blocks/form-block/view-contact-form-messages/#receive-push-notifications"}):(0,f.jsx)(u.N,{openInNewTab:!0,href:"https://jetpack.com/support/notifications/"})}),checked:j,onChange:t=>{if(t){const t=_?.toString();let a=b;0===a.length&&t&&y.some(e=>e.id===_)&&(a=[t]),h(a),e({notificationRecipients:a})}else e({notificationRecipients:[]});v(t)},__nextHasNoMarginBottom:!0}),j&&(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(n.FormTokenField,{label:__("Send notifications to","jetpack-forms"),value:w,suggestions:C,onChange:t=>{if(0===t.length){const t=_?.toString();if(t&&y.some(e=>e.id===_)){const a=[t];return h(a),void e({notificationRecipients:a})}}const a=t.map(e=>{const t=y.find(t=>(t.name||t.slug)===e);return t?t.id.toString():null}).filter(Boolean);h(a),e({notificationRecipients:a})},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,__experimentalExpandOnFocus:!0,__experimentalAutoSelectFirstMatch:!0})})]})]})}},7522(e,t,a){"use strict";a.d(t,{A:()=>c});var o=a(372),r=a(6427),n=a(6087),s=a(7723),i=a(790);const __=s.__,c=({setAttributes:e,webhooks:t,clientId:a})=>{const s=t?.[0]||null,c=(0,n.useCallback)((e=1)=>`webhook-${a?.substring(0,8)||"unknown"}-${e}`,[a]),[l,d]=(0,n.useState)(s?.webhook_id||c(1)),[u,p]=(0,n.useState)(s?.url||""),[f,m]=(0,n.useState)(s?.enabled||!1);(0,n.useEffect)(()=>{s&&(d(s.webhook_id||c(1)),p(s.url||""),m(s.enabled||!1))},[s,c]);const g=(t,a,o)=>{if(!a&&!o)return void e({webhooks:[]});e({webhooks:[{webhook_id:t||"",url:a||"",format:"json",method:"POST",enabled:o}]})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.ToggleControl,{label:__("Enable webhook","jetpack-forms"),help:__("Send form submission data to an external URL.","jetpack-forms"),checked:f,onChange:e=>{o.A.tracks.recordEvent("jetpack_forms_webhook_toggle",{origin:"block-editor",enabled:e}),m(e);const a=l||c(t?.length+1||1);d(a),g(a,u,e)},__nextHasNoMarginBottom:!0}),f&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.TextControl,{label:__("Webhook URL","jetpack-forms"),value:u,onChange:e=>{p(e),g(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,i.jsx)(r.TextControl,{label:__("Webhook ID","jetpack-forms"),value:l,onChange:e=>{d(e),g(e,u,f)},help:__("Auto-generated unique identifier. You can customize it if needed.","jetpack-forms"),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})]})]})}},8196(e,t,a){"use strict";a.d(t,{A:()=>l});var o=a(4715),r=a(7378),n=a(7723),s=a(2797),i=a(790);const __=n.__,c=["submit_button_text","has_form_settings_set","submitButtonText","backgroundButtonColor","textButtonColor","customBackgroundButtonColor","customTextButtonColor","submitButtonClasses","hasFormSettingsSet"],l=[{attributes:{...s.A},supports:{html:!1},save:()=>(0,i.jsx)(o.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"},...s.A},migrate:(e,t)=>{const a=Object.fromEntries(Object.entries(e).filter(([e])=>!c.includes(e))),o={text:e.submitButtonText||e.submit_button_text||__("Submit","jetpack-forms"),backgroundColor:e.backgroundButtonColor,textColor:e.textButtonColor,customBackgroundColor:e.customBackgroundButtonColor,customTextColor:e.customTextButtonColor};return[a,t.concat((0,r.createBlock)("jetpack/button",{element:"button",...o}))]},isEligible:e=>!(!e.has_form_settings_set&&!e.hasFormSettingsSet),save:()=>(0,i.jsx)(o.InnerBlocks.Content,{})}]},3365(e,t,a){"use strict";a.d(t,{UU:()=>h,W0:()=>C});var o=a(4715),r=a(3582),n=a(7143),s=a(8537),i=a(7723),c=(a(5036),a(1435)),l=a(2797),d=a(3423),u=a(8196),p=a(7560),f=a(1425),m=a(2612),g=a(7329),k=a(5171),b=a(790);const __=i.__,_x=i._x,h="contact-form",j=({ref:e})=>{if(!e)return g.u6;const t=(0,n.select)(r.store).getEditedEntityRecord("postType",c.$8,e);if(!t?.status)return g.u6;const a=(0,g.Vv)(t?.title),o=a?(0,s.decodeEntities)(a):"";return(0,g.o8)({title:o,status:t.status,defaultLabel:g.u6})},{editorScript:v,style:y,name:x,$schema:_,...w}=d,C={...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=o.useBlockProps.save();return(0,b.jsx)("div",{...t,children:(0,b.jsx)(o.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:k.A,category:"contact-form",transforms:m.A,deprecated:u.A,label:j,__experimentalLabel:j}},3389(e,t,a){"use strict";a.d(t,{A:()=>s});var o=a(7143),r=a(6087),n=a(5517);function s({attributes:e,setAttributes:t}){const a=(0,o.useSelect)(e=>e(n.Qf).getIntegrations()||[],[]),s=(0,o.useSelect)(e=>e(n.Qf).isIntegrationsLoading(),[]);(0,r.useEffect)(()=>{if(s||!Array.isArray(a))return;const o=e=>a.find(t=>t?.id===e),r=o("zero-bs-crm"),n=o("mailpoet"),i=o("salesforce");void 0===e?.jetpackCRM&&r&&t({jetpackCRM:!!r.enabledByDefault}),void 0===e?.mailpoet?.enabledForForm&&n&&t({mailpoet:{...e.mailpoet,enabledForForm:!!n.enabledByDefault}}),void 0===e?.salesforceData?.sendToSalesforce&&i&&t({salesforceData:{...e.salesforceData,sendToSalesforce:!!i.enabledByDefault}})},[s,a,e?.jetpackCRM,e.mailpoet,e.salesforceData,t])}},2612(e,t,a){"use strict";a.d(t,{A:()=>c});var o=a(7378),r=a(7723),n=a(8468);const __=r.__,s=(e,t,a)=>{const o=a.match(new RegExp(`\\[${e}[^\\]]* ${t}="([^"]*)"`,"im"));if(o&&o.length)return o[1];const r=a.match(new RegExp(`\\[${e}[^\\]]* ${t}='([^']*)'`,"im"));if(r&&r.length)return r[1];const n=a.match(new RegExp(`\\[${e}[^\\]]* ${t}=([^\\s]*)\\s`,"im"));return!(!n||!n.length)&&n[1]},i={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")&&(i.root={},i.innerBlocks=[],i.root=(e=>{const t={to:s("contact-form","to",e),subject:s("contact-form","subject",e),submitButtonText:s("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=>{i.innerBlocks.push((e=>{const t={label:s("contact-field","label",e),placeholder:s("contact-field","placeholder",e),required:s("contact-field","required",e),options:s("contact-field","options",e)},a=(e=>{const t="jetpack",a={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 a[e]?a[e]:a.default})(s("contact-field","type",e));return t.options&&(t.options=t.options.split(",")),(0,o.createBlock)(a,(0,n.pickBy)(t,n.identity))})(e))})}if(t.includes("[/contact-form]")){i.innerBlocks.push((0,o.createBlock)("jetpack/button",{element:"button",text:i.root.attrs.submitButtonText||__("Contact Us","jetpack-forms")}));return(0,o.createBlock)(i.root.blockName,i.root.attrs,i.innerBlocks)}return!1}}],to:[{type:"block",blocks:["jetpack/subscriptions"],transform:()=>(0,o.createBlock)("jetpack/subscriptions")}]}},9226(e,t,a){"use strict";a.d(t,{A:()=>o});const o=function({batch:e,setAttributes:t,replaceInnerBlocks:a,selectBlock:o,clientId:r,variation:n,createBlocksFromTemplate:s}){e(()=>{n?.attributes&&t(n.attributes),n?.innerBlocks&&a(r,s(n.innerBlocks)),o(r)})}},7329(e,t,a){"use strict";a.d(t,{Vv:()=>s,o8:()=>i,u6:()=>n});var o=a(7723);const __=o.__,_x=o._x,r={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 s(e){return"string"==typeof e?e:e&&"object"==typeof e&&"rendered"in e?e.rendered:""}function i({title:e,status:t,defaultLabel:a=n}){const s=e||a;if("publish"===t)
/* translators: %s: Form title, e.g., "Contact Us" */
return(0,o.sprintf)(__("Form: %s","jetpack-forms"),s);const i=r[t]||t;
/* translators: 1: Form title, 2: Form status (e.g., Draft, Scheduled) */return(0,o.sprintf)(__("Form: %1$s (%2$s)","jetpack-forms"),s,i)}},5205(){"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 a=e.querySelector(".wp-block-cover__background");t=window.getComputedStyle(a).backgroundColor;continue}t=window.getComputedStyle(e).backgroundColor}return t},window.jetpackForms.getInverseReadableColor=function(e){if(!e)return"#FFFFFF";let t,a,o;if(e.startsWith("#")){let r=e.slice(1);3===r.length&&(r=r.split("").map(e=>e+e).join("")),t=parseInt(r.slice(0,2),16),a=parseInt(r.slice(2,4),16),o=parseInt(r.slice(4,6),16)}else{const r=e.match(/(\d+),\s*(\d+),\s*(\d+)/);if(!r)return"#000000";t=+r[1],a=+r[2],o=+r[3]}return.299*t+.587*a+.114*o>186?"#000000":"#FFFFFF"},window.jetpackForms.generateStyleVariables=function(t){if(!t)return;const a=window["editor-canvas"]?window["editor-canvas"].document:document,o=a.querySelector("body"),r=a.createElement("div");r.className="contact-form__style-probe",r.style="position: absolute; z-index: -1; width: 1px; height: 1px; visibility: hidden",r.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(r);const n=r.querySelector(".contact-form"),s=r.querySelector(".btn-primary"),i=r.querySelector(".btn-outline"),c=r.querySelector('input[type="text"]'),l=window.jetpackForms.getBackgroundColor(o),d=window.jetpackForms.getBackgroundColor(c),u=window.getComputedStyle(n).color,p=window.jetpackForms.getInverseReadableColor(u),{border:f,borderColor:m,backgroundColor:g,color:k,padding:b}=window.getComputedStyle(s),{backgroundColor:h,border:j,borderWidth:v,borderRadius:y,color:x,padding:_,lineHeight:w}=window.getComputedStyle(i),C=window.jetpackForms.getBackgroundColor(i),A=h===x?"transparent":h,{color:S,padding:B,paddingTop:I,paddingLeft:N,border:M,borderColor:P,borderWidth:T,borderStyle:E,borderRadius:L,fontSize:F,fontFamily:R,lineHeight:V,height:H,backdropFilter:D,backgroundColor:z,filter:O}=window.getComputedStyle(c);return r.remove(),{"--jetpack--contact-form--primary-color":g,"--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":P,"--jetpack--contact-form--border-size":T,"--jetpack--contact-form--border-style":E,"--jetpack--contact-form--border-radius":L,...e(z)?{}:{"--jetpack--contact-form--input-background":z},"--jetpack--contact-form--input-backdrop-filter":D,"--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":k,"--jetpack--contact-form--button-primary--background-color":g,"--jetpack--contact-form--button-primary--border":f,"--jetpack--contact-form--button-primary--border-color":m,"--jetpack--contact-form--button-primary--padding":b,"--jetpack--contact-form--button-outline--padding":_,"--jetpack--contact-form--button-outline--border":j,...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":v,"--jetpack--contact-form--button-outline--border-radius":y,"--jetpack--contact-form--button-outline--text-color":x,"--jetpack--contact-form--button-outline--line-height":w}}},1545(e,t,a){"use strict";function o({formId:e,batch:t,setAttributes:a,selectBlock:o,clientId:r}){e&&t(()=>{const t=parseInt(e,10);Number.isNaN(t)||(a({ref:t}),o(r))})}a.d(t,{f:()=>o})},3042(e,t,a){"use strict";a.d(t,{A:()=>s});var o=a(5985),r=a(7378),n=a(2619);function s(e,t,a=[],s=!0){const{available:i,details:c,unavailableReason:l}=(0,o.FB)(e),d=(0,o.$i)(),u="beta"===d?.blocks_variation,p=(0,o.aq)(l,c),f=s?"jetpack/":"";if(!i&&!p)return!1;const m=(0,r.registerBlockType)(f+e,t);return p&&(0,n.addFilter)("editor.BlockListBlock",`${f+e}-with-has-warning-is-interactive-class-names`,(0,o.BT)(f+e)),a.forEach(e=>{e.settings?.isBeta&&!u||(0,r.registerBlockType)(f+e.name,e.settings)}),m}},9835(e,t,a){"use strict";a.d(t,{A:()=>_});var o=a(5985),r=a(4715),n=a(7378),s=a(6427),i=a(3582),c=a(7143),l=a(3656),d=a(6087),u=a(8537),p=a(7723),f=a(692),m=a(3022),g=a(1435),k=(a(5205),a(9226)),b=a(2441),h=a(1545),j=a(790);const __=p.__,v=e=>e.map(([e,t,a=[]])=>(0,n.createBlock)(e,t,v(a))),y=[],x={per_page:100,status:"publish",orderby:"modified"};function _({blockName:e,setAttributes:t,clientId:a,classNames:p}){const _=(0,c.useRegistry)(),[w,C]=(0,d.useState)(!1),{replaceInnerBlocks:A,selectBlock:S}=(0,c.useDispatch)(r.store),{createSuccessNotice:B}=(0,c.useDispatch)(f.store),I=(0,o.lG)("central-form-management"),{blockType:N,defaultVariation:M,variations:P,currentPostType:T,currentPostId:E,jetpackForms:L}=(0,c.useSelect)(t=>{const{getBlockType:a,getBlockVariations:o,getDefaultBlockVariation:r}=t(n.store),{getCurrentPostType:s,getCurrentPostId:c}=t(l.store),{getEntityRecords:d}=t(i.store);return{blockType:a(e),defaultVariation:r(e,"block"),variations:o(e,"block"),currentPostType:s(),currentPostId:c(),jetpackForms:d("postType",g.$8,x)??y}},[e]),F=T===g.$8;(0,d.useEffect)(()=>{w||-1===window.location.search.indexOf("showJetpackFormsPatterns")||C(!0)},[]);const R=L&&L.length>0,V=!F&&I&&R;return(0,j.jsxs)("div",{className:(0,m.A)(p,"is-placeholder"),children:[(0,j.jsx)(r.__experimentalBlockVariationPicker,{icon:N?.icon?.src,label:N?.title,instructions:(()=>{if(I&&V){return __("Start by selecting one of these templates or select an existing form below.","jetpack-forms")}if(I){return __("Start by selecting one of these templates.","jetpack-forms")}if(R){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")})(),variations:P.filter(e=>!e.hiddenFromPicker),onSelect:async(e=M)=>{if(F||!I||"regular-form"===e.name)(0,k.A)({batch:_.batch,setAttributes:t,replaceInnerBlocks:A,selectBlock:S,clientId:a,variation:e,createBlocksFromTemplate:v});else try{const o=v(e.innerBlocks),r=(0,n.createBlock)("jetpack/contact-form",e.attributes||{},o),s=await(0,b.r)(r,e.title||"Form",E);_.batch(()=>{t({ref:s}),S(a)}),B(__("New form created.","jetpack-forms"),{type:"snackbar",isDismissible:!0})}catch(o){console.error("Failed to create synced form:",o),(0,k.A)({batch:_.batch,setAttributes:t,replaceInnerBlocks:A,selectBlock:S,clientId:a,variation:e,createBlocksFromTemplate:v})}}}),!I&&(0,j.jsx)("div",{className:"form-placeholder__shell",children:(0,j.jsx)(s.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>C(!0),children:__("Browse form patterns","jetpack-forms")})}),V&&(0,j.jsx)("div",{className:"form-placeholder__shell",children:(0,j.jsx)(s.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:__("Or select an existing form","jetpack-forms"),options:[{label:__("Select a form…","jetpack-forms"),value:""},...L.map(e=>({label:(0,u.decodeEntities)(e.title?.rendered||"")||__("(Untitled)","jetpack-forms"),value:e.id.toString()}))],onChange:e=>{(0,h.f)({formId:e,batch:_.batch,setAttributes:t,selectBlock:S,clientId:a})}})}),w&&(0,j.jsx)(s.Modal,{className:"form-placeholder__patterns-modal",title:__("Choose a pattern","jetpack-forms"),closeLabel:__("Cancel","jetpack-forms"),onRequestClose:()=>C(!1),children:(0,j.jsx)(r.__experimentalBlockPatternSetup,{initialViewMode:"grid",filterPatternsFn:e=>-1!==e.content.indexOf("jetpack/contact-form"),clientId:a})})]})}},5171(e,t,a){"use strict";a.d(t,{A:()=>d});var o=a(7999),r=a(5985),n=a(7723),s=a(2634),i=a(5573),c=a(1435),l=a(790);const __=n.__,_x=n._x,d=[{name:"regular-form",title:__("Form","jetpack-forms"),icon:{src:(0,l.jsxs)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,l.jsx)(i.Path,{d:"m13 7.5 h 5 v 1.5 h -5 v -1.5z"}),(0,l.jsx)(i.Path,{d:"m13 15 h 5 v 1.5 h -5 v -1.5z"}),(0,l.jsx)(i.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)(i.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)(i.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)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,l.jsx)(i.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)(i.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)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,l.jsx)(i.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)(i.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)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,l.jsx)(i.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)(i.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)(i.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)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,l.jsx)(i.Path,{d:"M4 6C4 4.89543 4.89543 4 6 4H18C19.1046 4 20 4.89543 20 6V8H4V6Z"}),(0,l.jsx)(i.Path,{d:"M7 9.25H11V13.25H7V9.25Z"}),(0,l.jsx)(i.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)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M17.25 21V15H18.75V21H17.25Z"}),(0,l.jsx)(i.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)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,l.jsx)(i.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)(i.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)(i.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)(i.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)(i.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,r.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)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,l.jsx)(i.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)(i.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)(i.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)(i.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)(i.Path,{d:"M21.6001 19H20.1001H18.6001H16.6001L19.1001 16L21.6001 19Z"}),(0,l.jsx)(i.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)(i.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:__("jamie.smith@example.com","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,o.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:s.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)},3750(e,t,a){"use strict";a.d(t,{A:()=>o});const o={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,a(7723).__)("Multiple Choice Option","jetpack-forms"),edit:()=>null,save:()=>null}}},4042(e,t,a){"use strict";a.d(t,{A:()=>o});const o={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,a(7723).__)("Single Choice Option","jetpack-forms"),edit:()=>null,save:()=>null}}},4903(e,t,a){"use strict";a.d(t,{A:()=>i});var o=a(4715),r=a(7723),n=(a(478),a(790));const s=[["core/paragraph",{content:(0,r.__)("Drag and drop or click to select a file.","jetpack-forms")}]];function i(){const e=(0,o.useBlockProps)({className:"jetpack-form-file-field__dropzone"}),t=(0,o.useInnerBlocksProps)(e,{template:s});return(0,n.jsx)("div",{...t})}},1183(e,t,a){"use strict";a.d(t,{A:()=>c});var o=a(7723),r=a(5573),n=a(4903),s=a(1514),i=a(790);const __=o.__,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,i.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(r.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:s.A}}},1514(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useBlockProps.save(),t=o.useInnerBlocksProps.save(e);return(0,r.jsx)("div",{...t})};a.dn(n)},9781(e,t,a){"use strict";a.d(t,{A:()=>i});var o=a(7378),r=a(7723),n=a(3943),s=a(8391);const __=r.__,i=[{...n.A,attributes:{...n.A.attributes,label:{type:"string",default:"",role:"content"}},migrate(e){const{restAttributes:t,labelStyles:a}=(0,s.A)(e);return[t,[(0,o.createBlock)("jetpack/option",{label:e.label,placeholder:__("Add option…","jetpack-forms"),isStandalone:!0,style:a})]]}}]},652(e,t,a){"use strict";a.d(t,{A:()=>m});var o=a(4715),r=a(6427),n=a(7143),s=a(6087),i=a(7723),c=a(2224),l=a(8481),d=a(4334),u=a(7930),p=a(1435),f=a(790);const __=i.__;function m(e){const{setAttributes:t,attributes:a}=e,{defaultValue:i,required:m,width:g,className:k}=a,{__unstableMarkNextChangeAsNotPersistent:b}=(0,n.useDispatch)(o.store);(0,d.Ay)(e);const{blockStyle:h}=(0,u.A)(a),j=(0,o.useBlockProps)({className:"jetpack-field jetpack-field-checkbox",style:{...h}}),v=[["jetpack/option",{isStandalone:!0,placeholder:__("Add label…","jetpack-forms")}]],y=(0,o.useInnerBlocksProps)(j,{allowedBlocks:p.lJ,template:v,templateLock:"all"}),x=(0,s.useCallback)(e=>t({defaultValue:e?"true":""}),[t]),_=(0,s.useCallback)(()=>t({required:!m}),[t,m]),w=(0,s.useCallback)(e=>t({required:e}),[t]),C=(0,s.useCallback)(e=>t({shareFieldAttributes:e}),[t]),A=(0,s.useRef)(1);return(0,s.useEffect)(()=>{k||1!==A.current||(b(),t({className:"is-style-list"}),A.current=2)},[k,t,b]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{...y}),(0,f.jsx)(o.BlockControls,{__experimentalShareWithChildBlocks:!0,children:(0,f.jsx)(l.A,{required:m,onClick:_})}),(0,f.jsx)(o.InspectorControls,{children:(0,f.jsx)(r.PanelBody,{title:__("Checkbox settings","jetpack-forms"),className:"jetpack-contact-form__panel",children:(0,f.jsx)(r.ToggleControl,{label:__("Checked by default","jetpack-forms"),checked:!!i,onChange:x,__nextHasNoMarginBottom:!0})})}),(0,f.jsx)(o.InspectorControls,{children:(0,f.jsxs)(r.PanelBody,{title:__("Field settings","jetpack-forms"),className:"jetpack-contact-form__panel",children:[(0,f.jsx)(r.ToggleControl,{label:__("Field is required","jetpack-forms"),checked:m,onChange:w,help:__('You can edit the "required" label in the editor',"jetpack-forms"),__nextHasNoMarginBottom:!0}),(0,f.jsx)(c.A,{setAttributes:t,width:g}),(0,f.jsx)(r.ToggleControl,{label:__("Sync fields style","jetpack-forms"),checked:a.shareFieldAttributes,onChange:C,help:__("Deactivate for individual styling of this block","jetpack-forms"),__nextHasNoMarginBottom:!0})]})})]})}},2650(e,t,a){"use strict";a.d(t,{Ay:()=>l});var o=a(7723),r=a(3083),n=a(9781),s=a(652),i=a(6082),c=a(5297);const __=o.__,l={name:"field-checkbox",settings:{...r.A,title:__("Checkbox","jetpack-forms"),keywords:[__("Confirm","jetpack-forms"),__("Accept","jetpack-forms")],description:__("Confirm or select information with a single checkbox.","jetpack-forms"),icon:i.A,edit:s.A,attributes:{...r.A.attributes,defaultValue:{type:"string",default:""}},providesContext:{...r.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"}}},5297(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useInnerBlocksProps.save();return(0,r.jsx)("div",{...e})};a.dn(n)},7778(e,t,a){"use strict";a.d(t,{A:()=>i});var o=a(7378),r=a(7723),n=a(3943),s=a(8391);const __=r.__,i=[{...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:a}=(0,s.A)(e);return[t,[(0,o.createBlock)("jetpack/option",{placeholder:__("Add option…","jetpack-forms"),hideInput:"implicit"===e.consentType,isStandalone:!0,label:e.label,requiredText:e.requiredText,style:a})]]}}]},7731(e,t,a){"use strict";a.d(t,{A:()=>k});var o=a(4715),r=a(7378),n=a(6427),s=a(9491),i=a(7143),c=a(6087),l=a(7723),d=a(2224),u=a(8481),p=a(4334),f=a(6839),m=a(790);const __=l.__;function g(e){return(0,l.sprintf)(/* translators: %s a type of consent: implicit or explicit */
__("Add %s consent message…","jetpack-forms"),e)}function k(e){const{attributes:t,clientId:a,setAttributes:l}=e,{consentType:k,width:b,implicitConsentMessage:h,explicitConsentMessage:j,className:v,required:y}=t;(0,p.Ay)(e);const x=(0,o.useBlockProps)({className:"jetpack-field jetpack-field-consent"}),_=(0,c.useMemo)(()=>{const e=(0,r.getBlockType)("jetpack/consent"),t=e?.attributes||{};return{implicit:t.implicitConsentMessage?.default||"",explicit:t.explicitConsentMessage?.default||""}},[]),w=(0,c.useMemo)(()=>[["jetpack/option",{label:h,placeholder:g("implicit"),isStandalone:!0,hideInput:!0,required:"explicit"===k&&y}]],[h,y,k]),C=(0,o.useInnerBlocksProps)(x,{allowedBlocks:["jetpack/option"],template:w,templateLock:"all"}),A=(0,i.useSelect)(e=>e(o.store).getBlocks(a)[0],[a]),{clientId:S}=A??{},{updateBlockAttributes:B,__unstableMarkNextChangeAsNotPersistent:I}=(0,i.useDispatch)(o.store),N=(0,s.usePrevious)(k),M=(0,s.usePrevious)(A?.attributes?.label);(0,c.useEffect)(()=>{if(!S)return;const e="explicit"!==k,t=e?h:j,a=g(k);(A?.attributes?.hideInput!==e||k!==N)&&(I(),B(S,{label:t,placeholder:a,hideInput:e}))},[S,A?.attributes?.hideInput,k,N,j,h,B,I]),(0,c.useEffect)(()=>{if(!A?.attributes?.label||k!==N)return;const e=A.attributes.label,t=_[k];M&&e!==M&&e!==t&&(I(),l({["explicit"===k?"explicitConsentMessage":"implicitConsentMessage"]:e}))},[A?.attributes?.label,M,k,N,_,l,I]);const P=(0,c.useRef)(1);(0,c.useEffect)(()=>{v||1!==P.current||(I(),l({className:"is-style-list"}),P.current=2)},[v,l,I]);const T=(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:a,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)(o.BlockControls,{__experimentalShareWithChildBlocks:!0,children:(0,m.jsx)(u.A,{required:y,onClick:()=>l({required:!y}),disabled:"explicit"!==k,disabledTooltip:__("Implicit consent cannot be required. Please add a privacy checkbox from the block settings to make it required.","jetpack-forms")})}),(0,m.jsxs)(o.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:b}),(0,m.jsx)(n.ToggleControl,{label:__("Sync fields style","jetpack-forms"),checked:t.shareFieldAttributes,onChange:T,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:k,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})})})]})]})}},6755(e,t,a){"use strict";a.d(t,{Ay:()=>l});var o=a(7723),r=a(3083),n=a(7778),s=a(7731),i=a(3421),c=a(8942);const __=o.__,l={name:"field-consent",settings:{...r.A,title:__("Terms consent","jetpack-forms"),keywords:[__("Consent","jetpack-forms")],description:__("Communicate site terms and offer visitors consent to those terms.","jetpack-forms"),icon:i.A,edit:s.A,attributes:{...r.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:{...r.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"}}},8942(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useInnerBlocksProps.save();return(0,r.jsx)("div",{...e})};a.dn(n)},38(e,t,a){"use strict";a.d(t,{A:()=>r});var o=a(3943);const r=[{...o.A,attributes:{...o.A.attributes,label:{type:"string",default:"Date"},dateFormat:{type:"string",default:"yy-mm-dd"}}}]},1679(e,t,a){"use strict";a.d(t,{A:()=>m});var o=a(4715),r=a(6427),n=a(6087),s=a(7723),i=a(3022),c=a(8696),l=a(2704),d=a(4334),u=a(7930),p=a(1435),f=a(790);const __=s.__;function m(e){const{attributes:t,clientId:a,isSelected:s,name:m,setAttributes:g}=e,{id:k,required:b,width:h,dateFormat:j}=t;(0,d.Ay)({attributes:t,clientId:a,name:m});const{blockStyle:v}=(0,u.A)(t),{isInnerBlockSelected:y,hasPlaceholder:x}=(0,l.A)(a),_=(0,o.useBlockProps)({className:(0,i.A)("jetpack-field",{"is-selected":s||y,"has-placeholder":x}),style:v}),w=(0,n.useMemo)(()=>[["jetpack/label",{label:__("Date","jetpack-forms"),required:b}],["jetpack/input"]],[b]),C=(0,o.useInnerBlocksProps)(_,{allowedBlocks:p.lJ,template:w,templateLock:"all"}),A=(0,n.useCallback)(e=>{g({dateFormat:e})},[g]);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{...C}),(0,f.jsx)(c.A,{id:k,required:b,width:h,setAttributes:g,attributes:t,type:"date",extraFieldSettings:[{index:1,element:(0,f.jsx)(r.SelectControl,{label:__("Date Format","jetpack-forms"),options:p.kl,onChange:A,value:j,help:__("Select the format in which the date will be displayed.","jetpack-forms"),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0},"date-format")}]})]})}},7495(e,t,a){"use strict";a.d(t,{Ay:()=>l});var o=a(7723),r=a(3083),n=a(38),s=a(1679),i=a(235),c=a(6722);const __=o.__,_x=o._x,l={name:"field-date",settings:{...r.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:i.A,edit:s.A,providesContext:{...r.A.providesContext,"jetpack/field-date-format":"dateFormat"},attributes:{...r.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"}}},6722(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useInnerBlocksProps.save();return(0,r.jsx)("div",{...e})};a.dn(n)},4228(e,t,a){"use strict";a.d(t,{A:()=>r});var o=a(3943);const r=[{...o.A,attributes:{...o.A.attributes,label:{type:"string",default:"Email"}}}]},3245(e,t,a){"use strict";a.d(t,{A:()=>i});var o=a(7723),r=a(1841),n=a(4334),s=a(790);const __=o.__;function i(e){return(0,n.Ay)(e),(0,s.jsx)(r.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})}},8293(e,t,a){"use strict";a.d(t,{Ay:()=>u});var o=a(6427),r=a(7723),n=a(71),s=a(3083),i=a(4228),c=a(3245),l=a(704),d=a(790);const __=r.__,u={name:"field-email",settings:{...s.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)(o.Icon,{icon:n.A})},edit:c.A,deprecated:i.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"}}},704(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useInnerBlocksProps.save();return(0,r.jsx)("div",{...e})};a.dn(n)},5769(e,t,a){"use strict";a.d(t,{A:()=>b});var o=a(5985),r=a(4715),n=a(7143),s=a(6087),i=a(7723),c=a(3022),l=a(8696),d=a(7316),u=a(4334),p=a(7930),f=a(6523),m=(a(324),a(790));const __=i.__,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 b(e){const{attributes:t,clientId:a,isSelected:i,setAttributes:b,name:h,className:j}=e,{id:v,required:y,width:x}=t,_=(0,o.FB)("field-file");(0,u.Ay)({attributes:t,clientId:a,name:h});const{blockStyle:w}=(0,p.A)(t),C=(0,c.A)(j,"jetpack-field is-non-animated-label",{"is-selected":i,[`jetpack-field__width-${x}`]:x}),A=(0,r.useBlockProps)({className:C,style:w}),{children:S,...B}=(0,r.useInnerBlocksProps)(A,{template:k,allowedBlocks:g,renderAppender:!1}),I=(0,f.A)(a),N=(0,n.useSelect)(e=>{const{getSelectedBlockClientId:t}=e(r.store);return t()}),M=(0,f.A)(N),P=(0,s.useMemo)(()=>(!_||!_.available)&&_?.unavailableReason?.includes("nudge_disabled"),[_]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("div",{...B,children:[P&&(M===I||I===N)&&(0,m.jsx)(d.L,{requiredPlan:_?.details?.required_plan}),S]}),(0,m.jsx)(l.A,{id:v,required:y,setAttributes:b,width:x,attributes:t,hidePlaceholder:!0})]})}},345(e,t,a){"use strict";a.d(t,{Ay:()=>d});var o=a(6427),r=a(7723),n=a(8384),s=a(3083),i=a(5769),c=a(8772),l=a(790);const __=r.__,d={name:"field-file",settings:{...s.A,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)(o.Icon,{icon:n.A})},edit:i.A,save:c.A,example:{innerBlocks:[{name:"jetpack/label",attributes:{label:__("File upload","jetpack-forms")}},{name:"jetpack/dropzone"}]}},form_editor:{category:"advanced"}}},8772(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useInnerBlocksProps.save();return(0,r.jsx)("div",{...e})};a.dn(n)},7179(e,t,a){"use strict";a.d(t,{A:()=>u});var o=a(4715),r=a(6427),n=a(7723),s=a(8755),i=a(1227),c=a(4334),l=a(7622),d=(a(2750),a(790));const __=n.__;function u(e){const{attributes:t,setAttributes:a,clientId:n}=e,u=(0,o.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)(r.Placeholder,{icon:s.A,label:__("Hidden field","jetpack-forms"),children:(0,d.jsxs)(r.__experimentalHStack,{alignment:"top",className:"jetpack-form-hidden-field-inputs",children:[(0,d.jsx)(r.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,onChange:e=>{a({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)(r.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,onChange:e=>{a({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)(i.A,{id:t.id,setAttributes:a})]})}},9579(e,t,a){"use strict";a.d(t,{Ay:()=>c});var o=a(7723),r=a(8755),n=a(3083),s=a(7179),i=a(8886);const __=o.__,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:r.A},edit:s.A,save:i.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"}}},8886(e,t,a){"use strict";a.d(t,{A:()=>o});const o=()=>"";a.dn(o)},7968(e,t,a){"use strict";a.d(t,{A:()=>p});var o=a(4715),r=a(7723),n=a(3943),s=a(162),i=a(1799),c=a(611),l=a(790);const __=r.__,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,i.A)(e,"checkbox"):(0,s.A)(e,t,"checkbox"),save:()=>(0,l.jsx)(o.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,s.A)(e,t,"checkbox"),save:()=>(0,l.jsx)("div",{...o.useBlockProps.save(),children:(0,l.jsx)(o.InnerBlocks.Content,{})})},u,d]},7601(e,t,a){"use strict";a.d(t,{A:()=>d});var o=a(4715),r=a(7143),n=a(7723),s=a(3022),i=a(8696),c=a(4334),l=a(790);const __=n.__;function d(e){const{className:t,clientId:a,setAttributes:n,isSelected:d,attributes:u}=e,{required:p,id:f,width:m}=u;(0,c.Ay)(e);const g=(0,r.useSelect)(e=>e(o.store).getBlock(a).innerBlocks,[a]),k=g?.[1]?.innerBlocks,b=(0,s.A)(t,"jetpack-field jetpack-field-multiple",{"is-selected":d,"has-placeholder":!!k?.length}),h=(0,o.useBlockProps)({className:b}),j=(0,o.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",{...j}),(0,l.jsx)(i.A,{clientId:a,id:f,required:p,attributes:u,setAttributes:n,type:"checkbox",width:m,hidePlaceholder:!0})]})}},9105(e,t,a){"use strict";a.d(t,{Ay:()=>l});var o=a(7723),r=a(3083),n=a(7968),s=a(7601),i=a(5887),c=a(7884);const __=o.__,l={name:"field-checkbox-multiple",settings:{...r.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:i.A,edit:s.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"}}},7884(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useInnerBlocksProps.save();return(0,r.jsx)("div",{...e})};a.dn(n)},7191(e,t,a){"use strict";a.d(t,{A:()=>r});var o=a(3943);const r=[{...o.A,attributes:{...o.A.attributes,label:{type:"string",default:"Name"}}}]},6582(e,t,a){"use strict";a.d(t,{A:()=>d});var o=a(6087),r=a(7723),n=a(1841),s=a(4334),i=a(97),c=a(4320),l=a(790);const __=r.__;function d(e){const{clientId:t,attributes:a,setAttributes:r}=e,{id:d,fieldVariant:u}=a||{};return(0,s.Ay)(e),(0,o.useEffect)(()=>{if(u)return;let e=c.uD;(0,c.Yq)(d)?e=c.XU:(0,c.QO)(d)&&(e=c.p1),r({fieldVariant:e})},[u,d,r]),(0,i.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})}},97(e,t,a){"use strict";a.d(t,{A:()=>c});var o=a(4715),r=a(7143),n=a(6087),s=a(3549),i=a(4320);function c({clientId:e,fieldVariant:t}){const a=(0,n.useRef)(t),c=!!t&&a.current!==t,{updateBlockAttributes:l}=(0,r.useDispatch)(o.store),d=t||i.uD,u=(p=d)===i.XU?i.yb:p===i.p1?i.ez:i.lc;var p;const f=(0,r.useSelect)(t=>{const{getBlock:a,getBlocks:r,getBlockParents:n}=t(o.store),s=(n(e)||[]).find(e=>{const t=a(e);return"jetpack/contact-form"===t?.name});return(s?r(s):r()).filter(t=>t.clientId!==e&&t.attributes?.id).map(e=>e.attributes.id)},[e]),m=(0,s.C)(d,f),g=(0,r.useSelect)(t=>{const a=t(o.store).getBlock(e),r=a?.innerBlocks?.find(e=>"jetpack/label"===e.name);return r?.clientId},[e]);(0,n.useEffect)(()=>{c&&l(e,{id:m})},[m,e,l,c]),(0,n.useEffect)(()=>{g&&c&&l(g,{label:u})},[u,g,l,c]),(0,n.useEffect)(()=>{a.current=t},[t])}},5804(e,t,a){"use strict";a.d(t,{Ay:()=>m});var o=a(7723),r=a(3083),n=a(2110),s=a(7191),i=a(6582),c=a(3688),l=a(8947),d=a(4320);const __=o.__,u="field-name",p={...n.A,to:n.A.to.filter(e=>!e.blocks.includes("jetpack/"+u))},f={...r.A,attributes:{...r.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:i.A,deprecated:s.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"}}},8947(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useInnerBlocksProps.save();return(0,r.jsx)("div",{...e})};a.dn(n)},4320(e,t,a){"use strict";a.d(t,{Ay:()=>m,QO:()=>f,XU:()=>s,Yq:()=>p,ez:()=>d,lc:()=>u,p1:()=>i,uD:()=>c,yb:()=>l});var o=a(7723),r=a(3688);const __=o.__,n=r.A,s="first-name",i="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:s,title:l,description:__("Collect the visitor’s first name.","jetpack-forms"),icon:n,scope:["inserter","transform"],isActive:e=>e.fieldVariant===s,attributes:{id:s,fieldVariant:s},innerBlocks:[["jetpack/label",{label:l}],["jetpack/input",{type:"text"}]],example:{innerBlocks:[{name:"jetpack/label",attributes:{label:l}},{name:"jetpack/input",attributes:{type:"text"}}]}},{name:i,title:d,description:__("Collect the visitor’s last name.","jetpack-forms"),icon:n,scope:["inserter","transform"],isActive:e=>e.fieldVariant===i,attributes:{id:i,fieldVariant:i},innerBlocks:[["jetpack/label",{label:d}],["jetpack/input",{type:"text"}]],example:{innerBlocks:[{name:"jetpack/label",attributes:{label:d}},{name:"jetpack/input",attributes:{type:"text"}}]}}]},3781(e,t,a){"use strict";a.d(t,{A:()=>r});var o=a(3943);const r=[{...o.A,attributes:{...o.A.attributes,label:{type:"string",default:"Number"},max:{type:"string"},min:{type:"string"}}}]},1116(e,t,a){"use strict";a.d(t,{A:()=>i});var o=a(7723),r=a(1841),n=a(4334),s=a(790);const __=o.__;function i(e){return(0,n.Ay)(e),(0,s.jsx)(r.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})}},3930(e,t,a){"use strict";a.d(t,{Ay:()=>l});var o=a(7723),r=a(3083),n=a(3781),s=a(1116),i=a(2850),c=a(3441);const __=o.__,l={name:"field-number",settings:{...r.A,title:__("Number input field","jetpack-forms"),description:__("Collect numbers from site visitors.","jetpack-forms"),icon:i.A,edit:s.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"}}},3441(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useInnerBlocksProps.save();return(0,r.jsx)("div",{...e})};a.dn(n)},2132(e,t,a){"use strict";a.d(t,{A:()=>u});var o=a(4715),r=a(6427),n=a(6087),s=a(7723),i=a(8696),c=a(4334),l=a(402),d=a(790);const __=s.__;function u(e){const{attributes:t,setAttributes:a,clientId:u}=e,{max:p=5,default:f=0,required:m,id:g,width:k}=t;(0,c.Ay)(e);const b=(0,n.useCallback)(e=>{const t=Math.min(Math.max(parseInt(e)||0,0),p);a({default:t})},[p,a]),h=(0,o.useBlockProps)({className:"jetpack-field jetpack-field-rating"+(k?` jetpack-field__width-${k}`:"")}),j=(0,o.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)(o.BlockContextProvider,{value:{"jetpack/field-rating-max":p,"jetpack/field-rating-default":f,"jetpack/field-rating-iconStyle":t.iconStyle||"stars","jetpack/field-rating-onChangeDefault":b},children:(0,d.jsx)("div",{...j})}),(0,d.jsx)(i.A,{clientId:u,id:g,required:m,attributes:t,setAttributes:a,width:k,extraFieldSettings:[{index:1,element:(0,d.jsxs)("div",{children:[(0,d.jsx)(r.__experimentalNumberControl,{__next40pxDefaultSize:!0,__unstableInputWidth:"50%",help:(0,s.sprintf)(/* translators: %d: maximum rating value (e.g. 10) */
__("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),o=Math.min(f,t);a({max:t,default:o})},spinControls:"custom",value:p}),(0,d.jsx)(r.RangeControl,{label:__("Default rating","jetpack-forms"),help:__("Pre-selected rating value (0 for no selection)","jetpack-forms"),min:0,max:p,value:f,onChange:b})]},"ratingFieldControls")}]})]})}},1250(e,t,a){"use strict";a.d(t,{Ay:()=>l});var o=a(7723),r=a(3083),n=a(2132),s=a(1918),i=a(8137),c=a(4122);const __=o.__,l={name:"field-rating",settings:{...r.A,title:__("Rating field","jetpack-forms"),description:__("Allow visitors to select a rating.","jetpack-forms"),icon:s.A,attributes:{...r.A.attributes,max:{type:"number",default:5,role:"content"},default:{type:"number",default:0,role:"content"},iconStyle:{type:"string",default:"stars",role:"appearance"}},providesContext:{...r.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:i.A,example:{attributes:{max:5,default:3},innerBlocks:[{name:"jetpack/label",attributes:{label:__("Rate your experience","jetpack-forms")}}]}},form_editor:{category:"advanced"}}},402(e,t,a){"use strict";a.d(t,{Ao:()=>o,Tz:()=>r});const o=10,r={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"}},8137(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);function n(){const e=o.useInnerBlocksProps.save();return(0,r.jsx)("div",{...e})}},4122(e,t,a){"use strict";a.d(t,{A:()=>c});var o=a(7723),r=a(5573),n=a(402),s=a(790);const __=o.__;function i(e){const t=n.Tz[e]||n.Tz.stars;return(0,s.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(r.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:i("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:i("hearts")},attributes:{iconStyle:"hearts"},isActive:["iconStyle"],scope:["inserter","transform"],isDefault:!1}]},3578(e,t,a){"use strict";a.d(t,{A:()=>i});var o=a(7378),r=a(7723),n=a(3943),s=a(8391);const __=r.__,i=[{...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:a,inputStyles:r}=(0,s.A)(e),{toggleLabel:n,...i}=t;return[i,[(0,o.createBlock)("jetpack/label",{label:e.label,requiredText:e.requiredText,style:a}),(0,o.createBlock)("jetpack/input",{placeholder:n??__("Select one option","jetpack-forms"),style:r,type:"dropdown"})]]},isEligible:(e,t)=>e.toggleLabel&&""!==e.toggleLabel||!t.length}]},2251(e,t,a){"use strict";a.d(t,{A:()=>h});var o=a(4715),r=a(6427),n=a(7143),s=a(6087),i=a(7723),c=a(1489),l=a(3022),d=a(8696),u=a(4334),p=a(7930),f=a(9125),m=a(1435),g=a(2211),k=a(790);const __=i.__,b=()=>{};function h(e){const{attributes:t,clientId:a,isSelected:i,name:h,setAttributes:j}=e,{id:v,options:y,required:x,width:_}=t,{blockStyle:w}=(0,p.A)(t),{isInnerBlockSelected:C,inputBlockAttributes:A}=(0,n.useSelect)(e=>{const{getBlock:t,hasSelectedInnerBlock:r}=e(o.store);return{isInnerBlockSelected:r(a,!0),inputBlockAttributes:t(a).innerBlocks[1]?.attributes}},[a]),S=(0,o.useBlockProps)({className:(0,l.A)("jetpack-field jetpack-field-dropdown",{"is-selected":i||C,"has-placeholder":!!A?.placeholder}),style:w}),B=(0,s.useRef)(void 0);(0,u.Ay)({attributes:t,clientId:a,name:h});const I=(0,s.useMemo)(()=>[["jetpack/label",{required:x}],["jetpack/input",{type:"dropdown",placeholder:__("Select one option","jetpack-forms")}]],[x]),N=(0,o.useInnerBlocksProps)({className:"jetpack-field-dropdown__wrapper"},{allowedBlocks:m.lJ,template:I,templateLock:"all"}),M=(e,t)=>(0,g.A)(B.current,"[role=textbox]",e,t),P=(e,a)=>{const o=[...t.options],r=""!==a[a.length-1];o[e]&&(o[e]=a.shift(),e++),o.splice(e,0,...a),j({options:o}),M(e+a.length-1,r)},T=e=>t=>{const a=(t||"").split("\n").filter(e=>e&&""!==e.trim());a.length&&(a.length>1?P(e,a):((e,t)=>{const a=[...y];a[e]=t,j({options:a}),M(e)})(e,a.pop()))},E=e=>a=>{if("Enter"!==a.key)return;a.preventDefault();const o=t.options[e];if(!o)return;const r=(0,f.J)(a.target),n=r?o.slice(r):"";P(e,n?[o.slice(0,r),n]:[o,""])},L=e=>()=>{if(1===t.options.length)return;const a=[...t.options];a.splice(e,1),0!==a.length&&0!==a.filter(e=>e).length&&(j({options:a}),M(Math.max(e-1,0),!0))};return(0,k.jsxs)("div",{...S,children:[(0,k.jsx)("div",{...N}),(i||C)&&(0,k.jsx)("div",{ref:B,className:"jetpack-field-dropdown__popover",children:y.map((e,t)=>(0,k.jsxs)(r.Flex,{className:"jetpack-field-dropdown__option",children:[(0,k.jsx)(r.FlexItem,{isBlock:!0,children:(0,k.jsx)(o.RichText,{value:e,onChange:T(t),onKeyDown:E(t),onRemove:L(t),onReplace:b,placeholder:__("Add option…","jetpack-forms"),__unstableDisableFormats:!0})}),(0,k.jsx)(r.FlexItem,{children:(y.filter(e=>e).length>1||""===e)&&(0,k.jsx)(r.Button,{className:"jetpack-field-dropdown__option-remove",label:__("Remove","jetpack-forms"),onClick:L(t),children:(0,k.jsx)(r.Icon,{icon:c.A})})})]},t))}),(0,k.jsx)(d.A,{id:v,required:x,attributes:t,setAttributes:j,width:_,type:"dropdown"})]})}},9083(e,t,a){"use strict";a.d(t,{Ay:()=>l});var o=a(7723),r=a(3083),n=a(3578),s=a(2251),i=a(6559),c=a(9750);const __=o.__,l={name:"field-select",settings:{...r.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:i.A,edit:s.A,attributes:{...r.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"}}},9750(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useInnerBlocksProps.save();return(0,r.jsx)("div",{...e})};a.dn(n)},4932(e,t,a){"use strict";a.d(t,{A:()=>p});var o=a(4715),r=a(7723),n=a(3943),s=a(162),i=a(1799),c=a(611),l=a(790);const __=r.__,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,i.A)(e,"checkbox"):(0,s.A)(e,t,"radio"),save:()=>(0,l.jsx)(o.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,s.A)(e,t,"radio"),save:()=>(0,l.jsx)("div",{...o.useBlockProps.save(),children:(0,l.jsx)(o.InnerBlocks.Content,{})})},u,d]},5805(e,t,a){"use strict";a.d(t,{A:()=>p});var o=a(4715),r=a(7378),n=a(6427),s=a(7143),i=a(7723),c=a(3022),l=a(8696),d=a(4334),u=a(790);const __=i.__;function p(e){const{className:t,clientId:a,setAttributes:i,isSelected:p,attributes:f}=e,{required:m,id:g,width:k}=f;(0,d.Ay)(e);const b=(0,s.useSelect)(e=>e(o.store).getBlock(a).innerBlocks,[a]),{insertBlock:h,removeBlock:j}=(0,s.useDispatch)(o.store),v=b?.[1]?.innerBlocks,y=(0,c.A)(t,"jetpack-field jetpack-field-multiple",{"is-selected":p,"has-placeholder":!!v?.length}),x=(0,o.useBlockProps)({className:y}),_=(0,o.useInnerBlocksProps)(x,{template:[["jetpack/label",{label:__("Choose one option","jetpack-forms"),placeholder:__("Add label…","jetpack-forms")}],["jetpack/options",{type:"radio"}]],templateLock:"all"}),w=(0,s.useSelect)(e=>{const t=e(o.store).getBlock(a),r=t?.innerBlocks?.[1];return r?.innerBlocks?.some(e=>!0===e?.attributes?.isOther)??!1},[a]),C=[{element:(0,u.jsx)(n.ToggleControl,{label:__('Include "Other" option',"jetpack-forms"),checked:!!w,onChange:e=>{const t=b?.[1];if(t)if(e){const e=(0,r.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&&j(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",{..._}),(0,u.jsx)(l.A,{clientId:a,id:g,required:m,attributes:f,setAttributes:i,type:"radio",width:k,hidePlaceholder:!0,extraFieldSettings:C})]})}},149(e,t,a){"use strict";a.d(t,{Ay:()=>l});var o=a(7723),r=a(3083),n=a(4932),s=a(5805),i=a(4907),c=a(6704);const __=o.__,l={name:"field-radio",settings:{...r.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:i.A,edit:s.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"}}},6704(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useInnerBlocksProps.save();return(0,r.jsx)("div",{...e})};a.dn(n)},1596(e,t,a){"use strict";a.d(t,{A:()=>d});var o=a(4715),r=a(6427),n=a(6087),s=a(7723),i=a(8696),c=a(4334),l=(a(5253),a(790));const __=s.__;function d(e){(0,c.Ay)(e);const{attributes:t,setAttributes:a}=e,{min:s=0,max:d=100,default:u=0,step:p=1,width:f,id:m,required:g,minLabel:k="",maxLabel:b=""}=t,[h,j]=(0,n.useState)(String(u)),[v,y]=(0,n.useState)(!1);(0,n.useEffect)(()=>{v||j(String(u))},[u,v]);const x=(0,n.useCallback)((e,t,a=s)=>{const o=Math.min(Math.max(e,a),d);return a+Math.round((o-a)/t)*t},[s,d]),_=(0,n.useCallback)(e=>{const t=parseInt(e)||0,o=Math.min(t,d),r=Math.max(u,o),n=x(r,p,o);a({min:o,default:n})},[d,u,p,a,x]),w=(0,n.useCallback)(e=>{const t=parseInt(e)||0,o=Math.max(t,s),r=Math.min(u,o);a({max:o,default:r})},[s,u,a]),C=(0,n.useCallback)(e=>{const t=x(e,p);a({default:t}),j(String(t))},[x,p,a]),A=(0,n.useCallback)(e=>{const t=e>0?e:1,o=x(u,t);a({step:t,default:o})},[u,a,x]),S=(0,n.useCallback)(e=>{a({minLabel:e})},[a]),B=(0,n.useCallback)(e=>{a({maxLabel:e})},[a]);(0,n.useEffect)(()=>{void 0!==t.min&&void 0!==t.max&&void 0!==t.default&&void 0!==t.step||a({min:t.min??0,max:t.max??100,default:t.default??0,step:t.step??1})},[t.min,t.max,t.default,t.step,a]);const I=(0,o.useBlockProps)({className:"jetpack-field jetpack-field-slider"+(f?` jetpack-field__width-${f}`:"")}),N=(0,o.useInnerBlocksProps)(I,{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,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.BlockContextProvider,{value:{"jetpack/field-slider-onChangeDefault":C,"jetpack/field-slider-onChangeMin":_,"jetpack/field-slider-onChangeMax":w,"jetpack/field-slider-minLabel":k,"jetpack/field-slider-maxLabel":b,"jetpack/field-slider-onChangeMinLabel":S,"jetpack/field-slider-onChangeMaxLabel":B},children:(0,l.jsx)("div",{...N})}),(0,l.jsx)(i.A,{attributes:t,id:m,required:g,setAttributes:a,width:f,extraFieldSettings:[{index:2,element:(0,l.jsxs)(r.BaseControl,{__nextHasNoMarginBottom:!0,children:[(0,l.jsxs)(r.__experimentalHStack,{alignment:"top",className:"jp-field-slider-inspector-row",children:[(0,l.jsx)(r.__experimentalNumberControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:__("Min value","jetpack-forms"),max:d,min:Number.MIN_SAFE_INTEGER,onChange:_,value:s,spinControls:"custom"}),(0,l.jsx)(r.__experimentalNumberControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:__("Max value","jetpack-forms"),max:Number.MAX_SAFE_INTEGER,min:s,onChange:w,value:d,spinControls:"custom"})]}),(0,l.jsxs)(r.__experimentalHStack,{alignment:"top",className:"jp-field-slider-inspector-row",children:[(0,l.jsx)(r.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:__("Min label","jetpack-forms"),value:k,onChange:S}),(0,l.jsx)(r.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:__("Max label","jetpack-forms"),value:b,onChange:B})]}),(0,l.jsxs)(r.__experimentalHStack,{alignment:"top",className:"jp-field-slider-inspector-row",children:[(0,l.jsx)(r.__experimentalNumberControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:__("Default value","jetpack-forms"),min:s,max:d,value:h,onChange:e=>{j(e);const t=x(e,p);a({default:t})},onFocus:()=>y(!0),onBlur:()=>y(!1),spinControls:"custom",step:p||1}),(0,l.jsx)(r.__experimentalNumberControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:__("Increment","jetpack-forms"),min:0,step:1,value:p,onChange:A,spinControls:"custom"})]})]},"sliderFieldControls")}]})]})}},1114(e,t,a){"use strict";a.d(t,{Ay:()=>l});var o=a(7723),r=a(9822),n=a(3083),s=a(1596),i=a(513),c=a(790);const __=o.__,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)(r.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:s.A,save:i.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"}}},513(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useInnerBlocksProps.save();return(0,r.jsx)("div",{...e})};a.dn(n)},3512(e,t,a){"use strict";a.d(t,{X:()=>o});const o=[{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:"🇿🇼"}]},1940(e,t,a){"use strict";a.d(t,{A:()=>s});var o=a(7378),r=a(3943),n=a(5296);const s=[{...r.A,attributes:{...r.A.attributes,showCountrySelector:{type:"boolean"},default:{type:"string"},onChangeDefaultCountry:{type:"function"}},apiVersion:3,migrate:(e,t)=>{const a={...e,showCountrySelector:!1};let r={};if(t.length>0){r=t.find(e=>"jetpack/label"===e.name).attributes}return[a,[(0,o.createBlock)("jetpack/label",{...r}),(0,o.createBlock)("jetpack/phone-input",{})]]},isEligible:(e,t)=>{const a=t.find(e=>"jetpack/input"===e.name);return void 0===e.showCountrySelector||Boolean(a&&a.attributes&&"tel"===a.attributes.type)},save:n.A},{...r.A,attributes:{...r.A.attributes,label:{type:"string",default:"Phone"}}}]},8701(e,t,a){"use strict";a.d(t,{A:()=>h});var o=a(4715),r=a(6427),n=a(6087),s=a(7723),i=a(1490),c=a(3022),l=a(7678),d=a(8696),u=a(2704),p=a(4334),f=a(7930),m=a(6839),g=a(3512),k=a(790);const __=s.__,b=[];function h(e){const{setAttributes:t,attributes:a,clientId:s,isSelected:h}=e,{showCountrySelector:j,width:v,id:y,required:x,requiredText:_,placeholder:w,searchPlaceholder:C,default:A,requiredIndicator:S}=a,[B,I]=(0,n.useState)(b),{isInnerBlockSelected:N,hasPlaceholder:M}=(0,u.A)(s),{blockStyle:P}=(0,f.A)(a),T=(0,o.useBlockProps)({className:(0,c.A)("jetpack-field","jetpack-field-phone","jetpack-field-telephone",{[`jetpack-field__width-${v}`]:v,"is-selected":h||N,"has-placeholder":M}),style:P});(0,p.Ay)(e);const E=(0,n.useMemo)(()=>g.X.map(e=>({...e,country:(0,l.k)(e.code)})),[]),L=e=>{(e=>!0===e||!1===e)(e)||(e=!j),t({showCountrySelector:e}),I(e?E:b)};(0,n.useEffect)(()=>{void 0!==j&&!0!==j||(t({showCountrySelector:!0,default:A||"US"}),I(E))},[j,t,E,A]);const F=(0,o.useInnerBlocksProps)(T,{allowedBlocks:["jetpack/label","jetpack/phone-input"],template:[["jetpack/label",{label:__("Phone number","jetpack-forms"),placeholder:w,required:x,requiredText:_,requiredIndicator:S}],["jetpack/phone-input",{}]],templateLock:"all",__experimentalCaptureToolbars:!0});(0,m.A)({clientId:s,blockName:"jetpack/field-sync",isSynced:a?.shareFieldAttributes,attributes:a,setAttributes:t});const R=(0,n.useCallback)(e=>{t({default:e.target.value})},[t]);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(o.BlockContextProvider,{value:{"jetpack/field-prefix-onChange":R,"jetpack/field-prefix-options":B,"jetpack/field-phone-search-placeholder":C},children:(0,k.jsx)("div",{...F})}),(0,k.jsx)(o.BlockControls,{__experimentalShareWithChildBlocks:!0,children:(0,k.jsx)(r.ToolbarGroup,{children:(0,k.jsx)(r.ToolbarButton,{title:__("Show country selector","jetpack-forms"),icon:i.A,onClick:L,className:j?"is-pressed":void 0})})}),(0,k.jsx)(d.A,{clientId:s,id:y,required:x,attributes:a,setAttributes:t,width:v,extraFieldSettings:[{index:2,element:(0,k.jsxs)(r.BaseControl,{__nextHasNoMarginBottom:!0,children:[(0,k.jsx)(r.ToggleControl,{label:__("Show country selector","jetpack-forms"),checked:j||!1,onChange:L,__nextHasNoMarginBottom:!0}),j&&(0,k.jsx)(r.TextControl,{label:__("Search placeholder","jetpack-forms"),value:C,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")}]})]})}},2997(e,t,a){"use strict";a.d(t,{Ay:()=>u});var o=a(6427),r=a(7723),n=a(5173),s=a(3083),i=a(1940),c=a(8701),l=a(5296),d=a(790);const __=r.__,u={name:"field-telephone",settings:{...s.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)(o.Icon,{icon:n.A})},edit:c.A,attributes:{...s.A.attributes,showCountrySelector:{type:"boolean"},default:{type:"string"},searchPlaceholder:{type:"string",default:""}},supports:{...s.A.supports,interactivity:!0},providesContext:{...s.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:i.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"}}},5296(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useInnerBlocksProps.save();return(0,r.jsx)("div",{...e})};a.dn(n)},5387(e,t,a){"use strict";a.d(t,{A:()=>r});var o=a(3943);const r=[{...o.A,attributes:{...o.A.attributes,label:{type:"string",default:"Text"}}}]},1186(e,t,a){"use strict";a.d(t,{A:()=>i});var o=a(7723),r=a(1841),n=a(4334),s=a(790);const __=o.__;function i(e){return(0,n.Ay)(e),(0,s.jsx)(r.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})}},1264(e,t,a){"use strict";a.d(t,{Ay:()=>l});var o=a(7723),r=a(3083),n=a(5387),s=a(1186),i=a(1288),c=a(2295);const __=o.__,l={name:"field-text",settings:{...r.A,title:__("Text input field","jetpack-forms"),description:__("Collect short text responses from site visitors.","jetpack-forms"),icon:i.A,edit:s.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"}}},2295(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useInnerBlocksProps.save();return(0,r.jsx)("div",{...e})};a.dn(n)},976(e,t,a){"use strict";a.d(t,{A:()=>i});var o=a(7378),r=a(7723),n=a(3943),s=a(8391);const __=r.__,i=[{...n.A,migrate(e){const{restAttributes:t,labelStyles:a,inputStyles:r}=(0,s.A)(e);return[t,[(0,o.createBlock)("jetpack/label",{label:e.label??__("Message","jetpack-forms"),requiredText:e.requiredText,style:a}),(0,o.createBlock)("jetpack/input",{placeholder:e.placeholder,style:r,type:"textarea"})]]}}]},9761(e,t,a){"use strict";a.d(t,{A:()=>m});var o=a(4715),r=a(6087),n=a(7723),s=a(3022),i=a(8696),c=a(2704),l=a(4334),d=a(7930),u=a(6839),p=a(1435),f=a(790);const __=n.__;function m(e){const{attributes:t,clientId:a,isSelected:n,setAttributes:m}=e,{id:g,required:k,width:b,requiredIndicator:h}=t;(0,l.Ay)(e);const{blockStyle:j}=(0,d.A)(t),{isInnerBlockSelected:v,hasPlaceholder:y}=(0,c.A)(a),x=(0,o.useBlockProps)({className:(0,s.A)("jetpack-field jetpack-field-textarea",{"is-selected":n||v,"has-placeholder":y}),style:j}),_=(0,r.useMemo)(()=>[["jetpack/label",{label:__("Message","jetpack-forms"),requiredIndicator:h}],["jetpack/input",{type:"textarea"}]],[h]),w=(0,o.useInnerBlocksProps)(x,{allowedBlocks:p.lJ,template:_,templateLock:"all"});return(0,u.A)({clientId:a,blockName:"jetpack/field-sync",isSynced:t?.shareFieldAttributes,attributes:t,setAttributes:m}),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{...w}),(0,f.jsx)(i.A,{id:g,required:k,setAttributes:m,width:b,attributes:t,type:"textarea"})]})}},1825(e,t,a){"use strict";a.d(t,{Ay:()=>l});var o=a(7723),r=a(3083),n=a(976),s=a(9761),i=a(9705),c=a(44);const __=o.__,l={name:"field-textarea",settings:{...r.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:i.A,edit:s.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"}}},44(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useInnerBlocksProps.save();return(0,r.jsx)("div",{...e})};a.dn(n)},6340(e,t,a){"use strict";a.d(t,{A:()=>i});var o=a(7723),r=a(1841),n=a(4334),s=a(790);const __=o.__;function i(e){return(0,n.Ay)(e),(0,s.jsx)(r.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})}},3826(e,t,a){"use strict";a.d(t,{Ay:()=>c});var o=a(7723),r=a(3083),n=a(6340),s=a(3926),i=a(3609);const __=o.__,c={name:"field-time",settings:{...r.A,title:__("Time input field","jetpack-forms"),description:__("Capture time information with a time picker.","jetpack-forms"),icon:s.A,edit:n.A,save:i.A,example:{innerBlocks:[{name:"jetpack/label",attributes:{label:__("Time","jetpack-forms")}},{name:"jetpack/input",attributes:{type:"time"}}]}},form_editor:{category:"advanced"}}},3609(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useInnerBlocksProps.save();return(0,r.jsx)("div",{...e})};a.dn(n)},4027(e,t,a){"use strict";a.d(t,{A:()=>r});var o=a(3943);const r=[{...o.A,attributes:{...o.A.attributes,label:{type:"string",default:"Website"}}}]},5682(e,t,a){"use strict";a.d(t,{A:()=>i});var o=a(7723),r=a(1841),n=a(4334),s=a(790);const __=o.__;function i(e){return(0,n.Ay)(e),(0,s.jsx)(r.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})}},6048(e,t,a){"use strict";a.d(t,{Ay:()=>u});var o=a(6427),r=a(7723),n=a(1490),s=a(3083),i=a(4027),c=a(5682),l=a(8247),d=a(790);const __=r.__,u={name:"field-url",settings:{...s.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)(o.Icon,{icon:n.A})},edit:c.A,deprecated:i.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"}}},8247(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useInnerBlocksProps.save();return(0,r.jsx)("div",{...e})};a.dn(n)},2376(e,t,a){"use strict";a.d(t,{A:()=>u});var o=a(4715),r=a(7723),n=a(5573),s=a(3022),i=a(9055),c=a(6523),l=a(8047),d=(a(9467),a(790));const __=r.__,u=({clientId:e,context:t,attributes:a,setAttributes:r})=>{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:g,progressBackgroundColor:k,textColor:b,style:h}=a,j=(0,o.__experimentalUseMultipleOriginColorsAndGradients)(),v={"--jp-progress-active-color":g,"--jp-progress-track-color":k,"--jp-progress-text-color":b||h?.color?.text},y=(0,o.useBlockProps)({style:v,className:`is-variant-${m}`}),x="dots"===m,_=f.index+1;let w=(0,l.u)(_,p.length,x);return!x&&-1===f.index&&p.length>0&&(w=25),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(o.InspectorControls,{group:"color",children:(0,d.jsx)(o.__experimentalColorGradientSettingsDropdown,{panelId:e,settings:[{colorValue:g,onColorChange:e=>r({progressColor:e}),label:__("Progress color","jetpack-forms")},{colorValue:k,onColorChange:e=>r({progressBackgroundColor:e}),label:__("Track color","jetpack-forms")}],...j})}),(0,d.jsx)("div",{...y,children:(0,d.jsxs)("div",{className:"jetpack-form-progress-indicator-steps",children:[p.map((e,t)=>{const a=t===f.index,o=t<f.index;return(0,d.jsxs)("div",{className:(0,s.A)("jetpack-form-progress-indicator-step",{"is-active":a,"is-completed":o}),"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:o?(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:`${w}%`}})]})}),(0,d.jsx)(i.A,{formClientId:u,showToggle:!1,showNavigation:!0})]})}},8526(e,t,a){"use strict";a.d(t,{Ay:()=>l});var o=a(7723),r=a(5573),n=a(2376),s=a(790);const __=o.__,i=(0,s.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,s.jsx)(r.Rect,{x:"3.75",y:"9.75",width:"16.5",height:"4.5",rx:"2.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),(0,s.jsx)(r.Rect,{x:"2",y:"9",width:"8",height:"6",rx:"3"})]}),c=(0,s.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,s.jsx)(r.Circle,{cx:"6",cy:"12",r:"2",fill:"currentColor"}),(0,s.jsx)(r.Circle,{cx:"12",cy:"12",r:"2",fill:"currentColor"}),(0,s.jsx)(r.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:i},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:i},{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,s.jsx)("div",{className:"jetpack-form-progress-indicator--wrapper",children:(0,s.jsx)("div",{className:"wp-block-jetpack-form-progress-indicator",children:(0,s.jsx)("div",{className:"jetpack-form-progress-indicator-bar"})})}),migrate:e=>({...e,variant:e.variant||"line"})}]},form_editor:{category:"multistep"}}},5533(e,t,a){"use strict";a.d(t,{A:()=>c});var o=a(4715),r=a(6941),n=a(9055),s=a(6523),i=a(790);function c({clientId:e}){const t=(0,o.useBlockProps)({className:"jetpack-form-step-container"}),a=(0,s.A)(e),c=(0,o.useInnerBlocksProps)(t,{allowedBlocks:["jetpack/form-step"],defaultBlock:{name:"jetpack/form-step"},directInsert:!0});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"jetpack-form-steps-wrapper",children:(0,i.jsx)("div",{...c})}),(0,i.jsx)(n.A,{formClientId:a}),(0,i.jsx)(r.A,{formClientId:a,clientId:e})]})}},1845(e,t,a){"use strict";a.d(t,{Ay:()=>i});var o=a(7723),r=a(5533),n=a(3703),s=a(6432);const __=o.__,i={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:r.A,save:s.A,example:{}},form_editor:{category:"multistep"}}},6432(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);function n(){const e=o.useBlockProps.save({className:"jetpack-form-step-container"}),t=o.useInnerBlocksProps.save(e);return(0,r.jsx)("div",{className:"jetpack-form-steps-wrapper",children:(0,r.jsx)("div",{...t})})}},9999(e,t,a){"use strict";a.d(t,{A:()=>i});var o=a(4715),r=a(7378),n=a(7143),s=a(6087);const i=({clientId:e})=>{const{getBlock:t,getBlockRootClientId:a,getBlockIndex:i,getBlocks:c}=(0,n.useSelect)(o.store),{replaceInnerBlocks:l,insertBlock:d,removeBlock:u}=(0,n.useDispatch)(o.store);return(0,s.useEffect)(()=>{const o=a(e);if(!o)return;const n=t(o);if(!n||"jetpack/form-step"!==n.name)return;const s=c(o),p=s.findIndex(t=>t.clientId===e);if(-1===p)return;const f=s.slice(0,p),m=s.slice(p+1);l(o,f);const g=a(o),k=i(o,g),b=(0,r.createBlock)("jetpack/form-step",{},m);d(b,k+1,g),u(e)},[e,t,a,i,c,l,d,u]),null}},215(e,t,a){"use strict";a.d(t,{Ay:()=>i});var o=a(7723),r=a(5573),n=a(9999),s=a(790);const __=o.__,i={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,s.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(r.Path,{d:"M19 13H5v-2h14v2z"})})},supports:{html:!1,reusable:!1},edit:n.A,save:()=>null},form_editor:{category:"multistep"}}},3286(e,t,a){"use strict";a.d(t,{Ay:()=>v,GM:()=>m,WU:()=>f,se:()=>k});var o=a(4715),r=a(7378),n=a(7143),s=a(6087),i=a(7723),c=a(3792),l=a(9055),d=a(1002),u=a(6523),p=(a(8331),a(790));const __=i.__,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")}}],g=["core/button",{tagName:"button",type:"submit",text:__("Submit","jetpack-forms"),className:"form-button-submit is-submit",metadata:{name:__("Submit button","jetpack-forms")}}],k=[f,m,g],b=["core/button"],h={previous:f,next:m,submit:g},j=(e,t)=>{const a=h[t],[o,n]=a,s=e.attributes||{},i=s.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 a=parseInt(e.width,10);isNaN(a)||(t.width=a)}e.fontSize&&(t.fontSize=e.fontSize);const a=e.style||{},o={...a.color||{}};e.customBackgroundColor&&(o.background=e.customBackgroundColor),e.customTextColor&&(o.text=e.customTextColor),e.customGradient&&(o.gradient=e.customGradient);const r={...a.border||{}};void 0!==e.borderRadius&&(r.radius=`${e.borderRadius}px`);const n={...a,...Object.keys(o).length&&{color:o},...Object.keys(r).length&&{border:r}};return Object.keys(n).length&&(t.style=n),t})(s);return(0,r.createBlock)(o,{...n,...c,...i&&{text:i}})};function v({clientId:e}){const t=(0,o.useBlockProps)(),{replaceInnerBlocks:a,__unstableMarkNextChangeAsNotPersistent:i}=(0,n.useDispatch)(o.store),{ancestorStepClientId:f,navigationBlocks:m}=(0,n.useSelect)(t=>{const{getBlockParentsByBlockName:a,getBlocks:r}=t(o.store),n=a(e,["jetpack/form-step"]);return{ancestorStepClientId:n.length>0?n[0]:null,navigationBlocks:r(e)}},[e]),g=(0,u.A)(e),v=(0,d.A)(g),{isSingleStep:y,activeStepId:x}=(0,n.useSelect)(e=>{if(!g)return{isSingleStep:!1,activeStepId:null};const{isSingleStepMode:t,getActiveStepId:a}=e(c.M);return{isSingleStep:t(g),activeStepId:a(g)}},[g]),_=!f;let w=0;if(_&&y&&x){const e=v.findIndex(e=>e.clientId===x);-1!==e&&(w=e)}else if(!_){const e=v.findIndex(e=>e.clientId===f);w=e}const C=(0,o.useInnerBlocksProps)(t,{template:k,templateLock:"all",allowedBlocks:b,renderAppender:!1});return(0,s.useEffect)(()=>{if(void 0===w)return;const t={previous:null,next:null,submit:null};m.forEach(e=>{const a=(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);a&&!t[a]&&(t[a]=e)});const o=!t.previous||!t.next||!t.submit,n=m.some(e=>"jetpack/button"===e.name);if(!o&&!n)return;const s=["previous","next","submit"].map(e=>{const a=t[e];if(!a){const[t,a]=h[e];return(0,r.createBlock)(t,a)}return"jetpack/button"===a.name?j(a,e):a});i(),a(e,s,!1)},[m,a,e,w,i]),(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:g,showToggle:!1,showNavigation:!0})]})}},1196(e,t,a){"use strict";a.d(t,{Ay:()=>i});var o=a(7723),r=a(4996),n=a(3286),s=a(2547);const __=o.__,i={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:r.A},edit:n.Ay,save:s.A,transforms:{},example:{}},form_editor:{category:"multistep"}}},2547(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);function n(){const e=o.useBlockProps.save(),t=o.useInnerBlocksProps.save(e);return(0,r.jsx)("div",{className:"wp-block-jetpack-form-step-navigation__wrapper",children:(0,r.jsx)("div",{...t})})}},3905(e,t,a){"use strict";a.d(t,{A:()=>i});var o=a(4715),r=a(6427),n=a(7723),s=a(790);const __=n.__,i=({attributes:e,setAttributes:t})=>{const{stepLabel:a=""}=e;return(0,s.jsx)(o.InspectorControls,{children:(0,s.jsx)(r.PanelBody,{title:__("Settings","jetpack-forms"),initialOpen:!0,className:"jetpack-contact-form__panel",children:(0,s.jsx)(r.TextControl,{label:__("Step label","jetpack-forms"),value:a,onChange:e=>{t({stepLabel:e})},help:__("Name the step.","jetpack-forms"),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})})})}},9171(e,t,a){"use strict";a.d(t,{A:()=>j});var o=a(4715),r=a(7143),n=a(6087),s=a(7723),i=a(3792),c=a(6941),l=a(9055),d=a(1002),u=a(6523),p=a(1435),f=a(7128),m=a(3905),g=(a(8372),a(790));const __=s.__,k=["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],b=e=>{if(e)return[["core/paragraph",{}],["jetpack/form-step-navigation",{}]]};function h({stepLabel:e,currentIndex:t,setAttributes:a,clientId:i}){const{updateBlockAttributes:c,__unstableMarkNextChangeAsNotPersistent:l}=(0,r.useDispatch)("core/block-editor"),{metadata:d}=(0,r.useSelect)(e=>{const{getBlockAttributes:t}=e("core/block-editor");return{metadata:t(i)?.metadata}},[i]),u=(0,f.$)(t,e),p=(0,s.sprintf)(
// translators: %d is the step number (1, 2, 3, etc.)
__("Step %d","jetpack-forms"),t+1);(0,n.useEffect)(()=>{d?.name!==u&&(l(),c(i,{metadata:{...d,name:u}}))},[u,d,i,c,l]);
// translators: %d: Step number
const m=(0,s.sprintf)(__("Step %d label","jetpack-forms"),t+1);return(0,g.jsx)("div",{className:"jetpack-form-step__break",children:(0,g.jsx)(o.RichText,{allowedFormats:[],tagName:"span",className:"jetpack-form-step__label",value:e,placeholder:p,onChange:e=>{a({stepLabel:e})},"aria-label":m})})}function j({attributes:e,setAttributes:t,clientId:a,isSelected:s}){const p=(0,o.useBlockProps)();p.className+=" jetpack-form-step__container";const f=(0,u.A)(a),j=(0,d.A)(f),{setActiveStep:v}=(0,r.useDispatch)(i.M),{currentIndex:y,selectedStepClientId:x,isSingleStep:_,hasPrevNavigation:w,hasInnerBlocks:C,isInnerBlockSelected:A}=(0,r.useSelect)(e=>{const{isSingleStepMode:t,getActiveStepId:o}=e(i.M),{getBlocks:r,getBlock:n,hasSelectedInnerBlock:s}=e("core/block-editor"),c=j.findIndex(e=>e.clientId===a),l=c>0&&j[c-1]?j[c-1].clientId:null,d=l?r(l):[],u=n(a);return{currentIndex:c,selectedStepClientId:o(f),isSingleStep:t(f),hasPrevNavigation:d.some(e=>"jetpack/form-step-navigation"===e.name),hasInnerBlocks:!(!u||!u.innerBlocks.length),isInnerBlockSelected:s(a,!0)}},[a,j,f]);let S;C||_||(S=o.InnerBlocks.ButtonBlockAppender);const B=(0,o.useInnerBlocksProps)(p,{template:b(w),allowedBlocks:k,renderAppender:S});return(0,n.useEffect)(()=>{_&&(s||A)&&x!==a&&v(f,a)},[_,s,A,x,a,f,v]),_&&x!==a?null:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{...p,children:[!_&&(0,g.jsx)(h,{stepLabel:e.stepLabel,currentIndex:y,setAttributes:t,clientId:a}),(0,g.jsx)("div",{...B}),(0,g.jsx)(m.A,{attributes:e,setAttributes:t,clientId:a})]}),(0,g.jsx)(l.A,{formClientId:f,updateStepSelected:!0}),(0,g.jsx)(c.A,{clientId:a,formClientId:f})]})}},2355(e,t,a){"use strict";a.d(t,{Ay:()=>i});var o=a(7723),r=a(9171),n=a(1961),s=a(9294);const __=o.__,i={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},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:r.A,save:s.A,example:{}},form_editor:{category:"multistep"}}},9294(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);function n(){const e=o.useBlockProps.save(),t=o.useInnerBlocksProps.save(e);return(0,r.jsx)("div",{...t})}},6517(e,t,a){"use strict";a.d(t,{A:()=>p});var o=a(4715),r=a(6087),n=a(7723),s=a(2490),i=a(7622),c=a(7664),l=a(7103),d=(a(6882),a(6271),a(790));const __=n.__,u=["backgroundColor","borderColor","fontFamily","fontSize","style","textColor"],p=({attributes:e,clientId:t,isSelected:a,name:n,setAttributes:p,context:f})=>{const{"jetpack/field-share-attributes":m}=f,[g,k]=(0,r.useState)(!1),b=(0,r.useRef)(null);(0,c.d)("jetpack/input",m,u,e,p);const{placeholder:h}=e,j=(0,l.A)({clientId:t,inputBlockName:n,inputBlockAttributes:e}),v=(0,o.useBlockProps)({className:"jetpack-field__input jetpack-field__input-phone",style:j?.cssVars}),y=(0,i.A)(t),x=(0,r.useCallback)(e=>{p({placeholder:e.target.value})},[p]),_=f?.["jetpack/field-prefix-default"]||"US",w=f?.["jetpack/field-phone-country-toggle"]||!1,C=f?.["jetpack/field-phone-search-placeholder"]||__("Search countries…","jetpack-forms"),A=(0,r.useCallback)(e=>{(f?.["jetpack/field-prefix-onChange"]||(()=>{}))(e),k(!1),setTimeout(()=>{b.current&&b.current.focus()},0)},[f,k]);(0,r.useEffect)(()=>{a||k(a)},[a]);const S=(0,r.useMemo)(()=>f?.["jetpack/field-prefix-options"]||[],[f]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)("div",{...v,children:[w&&S.length>1&&_&&(0,d.jsx)("div",{className:"jetpack-field__input-prefix",children:(0,d.jsx)(s.A,{options:S,selectedOptionCode:_,onOptionChange:A,isOpen:g,onOpenChange:k,placeholder:C,parentStyle:v?.style})}),(0,d.jsx)("input",{ref:b,className:"jetpack-field__input-element",onChange:x,onKeyDown:y,onClick:()=>k(!1),type:"text",value:a?h:"",placeholder:h})]})})}},6621(e,t,a){"use strict";a.d(t,{A:()=>c});var o=a(7723),r=a(5573),n=a(6517),s=a(3704),i=a(790);const __=o.__,c={name:"phone-input",settings:{apiVersion:3,title:__("Phone input","jetpack-forms"),description:__("Phone number input.","jetpack-forms"),category:"contact-form",icon:{src:(0,i.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(r.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:s.A}}},3704(e,t,a){"use strict";a.d(t,{A:()=>o});const o=()=>null;a.dn(o)},2382(e,t,a){"use strict";a.d(t,{A:()=>d});var o=a(4715),r=a(6427),n=a(7723),s=a(1609),i=a(7622),c=a(4349),l=(a(8493),a(7377),a(790));const __=n.__;function d(e){const{context:t={},isSelected:a,clientId:n}=e,d=(0,s.useRef)(null),u=(0,s.useRef)(null),p=t["jetpack/field-slider-min"],f=t["jetpack/field-slider-max"],m=t["jetpack/field-slider-default"],g=t["jetpack/field-slider-step"],k=t["jetpack/field-slider-onChangeDefault"],b=t["jetpack/field-slider-onChangeMin"],h=t["jetpack/field-slider-onChangeMax"],j=(0,i.A)(n),v=t["jetpack/field-slider-minLabel"],y=t["jetpack/field-slider-maxLabel"],x=t["jetpack/field-slider-onChangeMinLabel"],_=t["jetpack/field-slider-onChangeMaxLabel"],[w,C]=(0,s.useState)(String(p)),[A,S]=(0,s.useState)(String(f)),[B,I]=(0,s.useState)(!1),[N,M]=(0,s.useState)(!1),[P,T]=(0,s.useState)(String(v)),[E,L]=(0,s.useState)(String(y)),[F,R]=(0,s.useState)(!1),[V,H]=(0,s.useState)(!1),D=Number(w)<=Number(A),z=Number(A)>=Number(w),O=(0,o.useBlockProps)({className:"jetpack-input-range"+(a?" is-selected":"")}),$=e=>"string"==typeof e&&e.length>1?e.replace(/^0+/,"")||"0":e;return(0,s.useEffect)(()=>{B||C(String(p)),N||S(String(f))},[p,f,B,N]),(0,s.useEffect)(()=>{F||T(String(v??"")),V||L(String(y??""))},[v,y,F,V]),(0,l.jsxs)("div",{...O,children:[(0,l.jsxs)("div",{className:"jetpack-field-slider__input-row",children:[(0,l.jsx)(r.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"+(!D&&B?" has-error":""),value:$(w),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),b(w)},onKeyDown:j}),(0,l.jsxs)("div",{className:"jetpack-field-slider__input-container",children:[(0,l.jsx)(r.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:g||1,value:m,onChange:e=>k(e.target.value),onKeyDown:j,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)(r.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"+(!z&&N?" has-error":""),value:$(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:j})]}),(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,P.length),value:P,placeholder:__("Add label…","jetpack-forms"),onChange:e=>T(e.target.value),onFocus:()=>R(!0),onBlur:()=>{R(!1),x?.(P)}}),(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),_?.(E)}})]})]})}},3828(e,t,a){"use strict";a.d(t,{A:()=>c});var o=a(7723),r=a(2382),n=a(9822),s=a(7243),i=a(790);const __=o.__,c={name:"input-range",settings:{apiVersion:3,title:__("Slider input","jetpack-forms"),description:__("A slider input for selecting a value.","jetpack-forms"),icon:(0,i.jsx)(n.A,{}),category:"contact-form",parent:["jetpack/field-slider"],edit:r.A,save:s.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}}}}}},7243(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useBlockProps.save();return(0,r.jsx)("div",{...e})};a.dn(n)},4349(e,t,a){"use strict";function o(e,t,a){const o=Number(e),r=Number(t);let n=Number(a);n=Number.isNaN(n)?o:n,n=Math.max(o,Math.min(n,r));const s=100*(n-o)/(r-o);return`calc(${s}% + (${16-.32*s}px))`}a.d(t,{h:()=>o})},9452(e,t,a){"use strict";a.d(t,{A:()=>i});var o=a(4715),r=a(3854),n=a(7622),s=a(790);function i({context:e,clientId:t}){const a=e?.["jetpack/field-rating-max"]||5,i=e?.["jetpack/field-rating-default"]||0,c=e?.["jetpack/field-rating-iconStyle"]||"stars",l=e?.["jetpack/field-rating-onChangeDefault"]||(()=>{}),d=(0,n.A)(t),u=(0,o.useBlockProps)({className:"jetpack-field-rating__options"}),p=[];for(let e=1;e<=a;e++){const o=`rating-${t}-${e}`;p.push((0,s.jsxs)("div",{className:"jetpack-field-rating__option",children:[(0,s.jsx)("input",{id:o,type:"radio",name:`rating-${t}`,value:`${e}/${a}`,className:"jetpack-field-rating__input visually-hidden",checked:i===e,onChange:()=>{var t;l(i===(t=e)?0:t)},onKeyDown:d}),(0,s.jsx)("label",{htmlFor:o,className:"jetpack-field-rating__label",children:(0,s.jsx)(r.H,{iconStyle:c})})]},e))}return(0,s.jsx)("div",{...u,children:p})}},5338(e,t,a){"use strict";a.d(t,{A:()=>c});var o=a(7723),r=a(5573),n=(a(3541),a(9452)),s=a(790);const __=o.__,i={src:(0,s.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,s.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,s.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,s.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"})]})},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:i,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}}},1019(e,t,a){"use strict";a.d(t,{A:()=>o});const o=[{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:a,...o}=e,r=parseFloat(t),n=parseFloat(a);return{...o,min:Number.isFinite(r)?r:void 0,max:Number.isFinite(n)?n:void 0}},isEligible:e=>"string"==typeof e.min||"string"==typeof e.max}]},8386(e,t,a){"use strict";a.d(t,{A:()=>g});var o=a(4715),r=a(6427),n=a(6087),s=a(7723),i=a(3022),c=a(7622),l=a(7664),d=a(7103),u=a(1435),p=a(790);const __=s.__,f=["backgroundColor","borderColor","fontFamily","fontSize","style","textColor"],m=["number","text","email","url","tel","time"],g=({attributes:e,clientId:t,isSelected:a,name:s,setAttributes:g,context:k})=>{const{"jetpack/field-share-attributes":b}=k;(0,l.d)(s,b,f,e,g);const{max:h,min:j,placeholder:v,type:y}=e,x=(0,d.A)({clientId:t,inputBlockName:s,inputBlockAttributes:e}),_=(0,i.$)((e=>"dropdown"===e?"jetpack-field-dropdown__toggle":e&&!m.includes(e)?`jetpack-field__${e}`:"jetpack-field__input")(e.type),{inline:"checkbox"===y||"radio"===y}),w=(0,o.useBlockProps)({className:_,style:x?.cssVars}),C=(0,c.A)(t),A=(0,n.useCallback)(e=>{"time"!==y&&g({placeholder:e.target.value})},[g,y]);return"dropdown"===y?(0,p.jsxs)("div",{...w,children:[(0,p.jsx)(o.RichText,{allowedFormats:u.uO,onChange:e=>g({placeholder:e}),value:v||__("Select one option","jetpack-forms"),withoutInteractiveFormatting:!0}),(0,p.jsx)("span",{className:"jetpack-field-dropdown__icon"})]}):"textarea"===y?(0,p.jsx)("textarea",{...w,onChange:A,value:a?v:"",placeholder:v}):"time"===y?(0,p.jsx)("input",{...w,onChange:A,onKeyDown:C,type:"time",value:""}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("input",{...w,onChange:A,onKeyDown:C,type:"text",value:a?v:"",placeholder:v}),"number"===y&&(0,p.jsx)(o.InspectorControls,{children:(0,p.jsxs)(r.PanelBody,{title:__("Settings","jetpack-forms"),className:"jetpack-contact-form__panel",children:[(0,p.jsx)(r.__experimentalNumberControl,{label:__("Minimum value","jetpack-forms"),value:j,onChange:e=>{const t=parseFloat(e);g({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)(r.__experimentalNumberControl,{label:__("Maximum value","jetpack-forms"),value:h,onChange:e=>{const t=parseFloat(e);g({max:Number.isFinite(t)?t:void 0})},min:j,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,help:__("The maximum value to accept in the input.","jetpack-forms")},"max")]})})]})}},4928(e,t,a){"use strict";a.d(t,{A:()=>l});var o=a(7723),r=a(5573),n=a(1019),s=a(8386),i=a(5127),c=a(790);const __=o.__,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)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(r.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:s.A,deprecated:n.A,save:i.A}}},5127(e,t,a){"use strict";a.d(t,{A:()=>o});const o=()=>null;a.dn(o)},8376(e,t,a){"use strict";a.d(t,{A:()=>k});var o=a(4715),r=a(7143),n=a(6087),s=a(7723),i=a(3022),c=a(7664),l=a(7103),d=a(1435),u=a(594),p=a(790);const __=s.__,f=["textColor","fontFamily","fontSize","style","requiredIndicator"],m=["jetpack/field-radio","jetpack/field-checkbox-multiple"];const g=({formStyle:e,styles:t,cssVars:a,className:o,children:r,forcePlainStyle:n=!1})=>e!==d.pC.OUTLINED||n?(0,p.jsx)(p.Fragment,{children:r}):(0,p.jsxs)("div",{className:"notched-label",style:a,children:[(0,p.jsx)("div",{className:(0,i.$)("notched-label__leading",o),style:t}),(0,p.jsx)("div",{className:(0,i.$)("notched-label__notch",o),style:t,children:r}),(0,p.jsx)("div",{className:(0,i.$)("notched-label__filler",o),style:t}),(0,p.jsx)("div",{className:(0,i.$)("notched-label__trailing",o),style:t})]}),k=({clientId:e,attributes:t,name:a,setAttributes:s,context:k})=>{const{"jetpack/form-class-name":b,"jetpack/field-required":h,"jetpack/field-date-format":j,"jetpack/field-share-attributes":v}=k;(0,c.d)(a,v,f,t,s);const{label:y,placeholder:x,requiredText:_,requiredIndicator:w}=t,C=""!==x?x:__("Add label…","jetpack-forms"),A=j?`(${d.Kn.find(e=>e.value===j)?.label})`:void 0,S=(0,u.A)(b),B=(0,i.$)("jetpack-field-label",{"notched-label__label":S===d.pC.OUTLINED,"animated-label__label":S===d.pC.ANIMATED,"below-label__label":S===d.pC.BELOW}),I=function(e){return(0,r.useSelect)(t=>{const{getBlock:a,getBlockRootClientId:r}=t(o.store),n=r(e);if(!n)return{};const s=a(n);if(!s)return{};let i=m.includes(s.name)?"jetpack/options":"jetpack/input";return"jetpack/field-telephone"===s.name&&(i="jetpack/phone-input"),s.innerBlocks.find(e=>e.name===i)},[e])}(e),N=(0,l.A)({clientId:e,inputBlockName:I?.name,inputBlockAttributes:I?.attributes}),M=(0,o.useBlockProps)({className:B,style:N?.cssVars}),P=(0,n.useCallback)(e=>{"Enter"===e.key&&d.pC.DEFAULT!==S&&e.preventDefault()},[S]),T=(0,r.useSelect)(e=>e(o.store).getSettings().isPreviewMode,[])?((e,t)=>""===e?t:e??t)(y,C):y;return(0,p.jsx)(g,{formStyle:S,forcePlainStyle:!I,styles:N?.style,cssVars:N?.cssVars,className:N?.className,children:(0,p.jsxs)("div",{...M,children:[(0,p.jsx)(o.RichText,{allowedFormats:d.uO,className:"jetpack-field-label__input",onChange:e=>s({label:e}),placeholder:C,onKeyDown:P,tagName:"label",value:T,withoutInteractiveFormatting:!0}),A&&(0,p.jsx)("span",{className:"jetpack-field-label__suffix",children:A}),h&&w&&(0,p.jsx)(o.RichText,{allowedFormats:d.uO,className:"required",onChange:e=>s({requiredText:e}),tagName:"span",value:_||__("(required)","jetpack-forms"),withoutInteractiveFormatting:!0})]})})}},4318(e,t,a){"use strict";a.d(t,{A:()=>c});var o=a(7723),r=a(5573),n=a(8376),s=a(3013),i=a(790);const __=o.__,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,i.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(r.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-date-format","jetpack/field-share-attributes"],edit:n.A,save:s.A}}},3013(e,t,a){"use strict";a.d(t,{A:()=>o});const o=()=>null;a.dn(o)},4053(e,t,a){"use strict";a.d(t,{A:()=>g});var o=a(4715),r=a(6427),n=a(7143),s=a(6087),i=a(7723),c=a(3022),l=a(7664),d=a(1435),u=a(4581),p=a(790);const __=i.__,f=["textColor","fontFamily","fontSize","style"],m=()=>{},g=({attributes:e,clientId:t,context:a,isSelected:i,mergeBlocks:g,name:k,setAttributes:b})=>{const{"jetpack/field-default-value":h,"jetpack/field-options-type":j="checkbox","jetpack/field-required":v,"jetpack/field-share-attributes":y}=a,{hideInput:x,label:_,isStandalone:w,requiredText:C,placeholder:A,isOther:S,otherPlaceholder:B}=e;(0,l.d)(k,y,f,e,b);const{removeBlock:I}=(0,n.useDispatch)(o.store),N=(0,n.useSelect)(e=>{const{getBlockCount:a,getBlockRootClientId:r}=e(o.store);return a(r(t))},[t]),M=(0,n.useSelect)(e=>{const{getBlockRootClientId:a,getSelectedBlockClientId:r}=e(o.store),n=a(t);if(!n)return!1;return r()===n},[t]),P=()=>{N<=1||I(t)},[T,E]=(0,s.useState)(!1),L=(0,o.useBlockProps)({className:`jetpack-field-option field-option-${j}`}),F=(0,u.A)({content:_,clientId:t,isStandalone:w}),R=(0,u.A)({content:_,clientId:t,isStandalone:w}),V=(0,n.useSelect)(e=>e(o.store).getSettings().isPreviewMode,[]),H=__("Other","jetpack-forms"),D=__("Add option…","jetpack-forms"),z=""!==A?A:S?H:D,O=V?((e,t)=>""===e?t:e??t)(_,z):_;return w?(0,p.jsxs)("div",{...L,children:[!x&&(0,p.jsx)("input",{className:"jetpack-field-option__checkbox",checked:!!h,onChange:m,type:j}),(0,p.jsxs)("div",{className:(0,c.A)("jetpack-field-option__label-wrapper",{"is-other":S}),children:[(0,p.jsx)(o.RichText,{ref:F,identifier:"label",tagName:"div",className:"wp-block",value:O,placeholder:z,__unstableDisableFormats:!0,onChange:e=>b({label:e}),onRemove:P}),v&&(0,p.jsx)(o.RichText,{ref:R,allowedFormats:d.uO,className:"required",onChange:e=>b({requiredText:e}),tagName:"span",value:C||__("(required)","jetpack-forms"),withoutInteractiveFormatting:!0})]})]}):(0,p.jsxs)(p.Fragment,{children:["radio"===j&&(0,p.jsx)(o.InspectorControls,{children:(0,p.jsx)(r.PanelBody,{title:__("Settings","jetpack-forms"),className:"jetpack-contact-form__panel",children:(0,p.jsx)(r.ToggleControl,{label:__('"Other" option',"jetpack-forms"),checked:!!S,onChange:e=>b({isOther:e,label: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:j,className:"jetpack-option__type",tabIndex:"-1"}),(0,p.jsx)(o.RichText,{ref:F,identifier:"label",tagName:"div",className:"wp-block",value:O,placeholder:z,__unstableDisableFormats:!0,onChange:e=>b({label:e}),onMerge:g,onRemove:P})]}),"radio"===j&&S&&(i||M)&&(0,p.jsxs)("li",{className:"jetpack-other-text-input-wrapper is-visible",children:[(0,p.jsx)(r.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=>b({otherPlaceholder:e.target.value}),onFocus:()=>E(!0),onBlur:()=>E(!1),type:"text",value:T?B:"",placeholder:B})]})]})}},3293(e,t,a){"use strict";a.d(t,{A:()=>c});var o=a(7723),r=a(5573),n=a(4053),s=a(4440),i=a(790);const __=o.__,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,i.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(r.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:""},requiredText:{type:"string",default:""},hideInput:{type:"boolean",default:!1},isStandalone:{type:"boolean",default:!1},isOther:{type:"boolean",default:!1},otherPlaceholder:{type:"string",default:__("Please specify…","jetpack-forms")}},usesContext:["jetpack/field-default-value","jetpack/field-options-type","jetpack/field-required","jetpack/field-share-attributes"],edit:n.A,save:s.A,__experimentalLabel:({isOther:e})=>{const t=__("Option (other)","jetpack-forms"),a=__("Option","jetpack-forms");return e?t:a}}}},4440(e,t,a){"use strict";a.d(t,{A:()=>o});const o=()=>null;a.dn(o)},4581(e,t,a){"use strict";a.d(t,{A:()=>c});var o=a(4715),r=a(7378),n=a(9491),s=a(7143),i=a(6087);const c=e=>{const{replaceBlocks:t,insertBlock:a,selectionChange:c}=(0,s.useDispatch)(o.store),{getBlock:l,getBlockRootClientId:d,getBlockIndex:u}=(0,s.useSelect)(o.store),p=(0,i.useRef)(e);return p.current=e,(0,n.useRefEffect)(e=>{function o(e){if(e.defaultPrevented||"Enter"!==e.key)return;const{clientId:o,content:n,isStandalone:s}=p.current;if(!n.length||s)if(e.preventDefault(),s){const e=d(o),t=d(e),n=u(e),s=(0,r.createBlock)((0,r.getDefaultBlockName)());a(s,n+1,t),c(s.clientId)}else{const e=d(o),a=l(e),n=d(e),s=l(n);if(!a||!s)return;const i=u(o),p=a.innerBlocks,f=p.slice(0,i),m=p.slice(i+1),g=s.innerBlocks[0],k=u(n),b=e=>(0,r.cloneBlock)({...s,innerBlocks:[(0,r.cloneBlock)(g),(0,r.cloneBlock)({...a,innerBlocks:e})]}),h=b(f),j=(0,r.createBlock)((0,r.getDefaultBlockName)()),v=m.length?[b(m)]:[];t(s.clientId,[h,j,...v],k),c(j.clientId)}}return e.addEventListener("keydown",o),()=>e.removeEventListener("keydown",o)},[])}},9192(e,t,a){"use strict";a.d(t,{A:()=>l});var o=a(4715),r=a(3022),n=a(7664),s=a(7103),i=a(790);const c=["backgroundColor","borderColor","style","textColor"],l=({clientId:e,name:t,context:a,attributes:l,setAttributes:d})=>{const{"jetpack/field-share-attributes":u}=a;(0,n.d)(t,u,c,l,d);const p=(0,s.A)({clientId:e,inputBlockName:t,inputBlockAttributes:l}),f=(0,o.useBlockProps)({className:(0,r.A)("jetpack-field-multiple__list",p?.className),style:p?.cssVars}),m=(0,o.useInnerBlocksProps)(f,{allowedBlocks:["jetpack/option"],defaultBlock:"jetpack/option",template:[["jetpack/option"]],templateInsertUpdatesSelection:!0,templateLock:!1});return(0,i.jsx)("ul",{...m})}},5214(e,t,a){"use strict";a.d(t,{A:()=>c});var o=a(7723),r=a(5573),n=a(9192),s=a(7685),i=a(790);const __=o.__,c={name:"options",settings:{apiVersion:3,title:__("Options","jetpack-forms"),description:__("A collection of option blocks","jetpack-forms"),category:"contact-form",icon:{src:(0,i.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(r.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:s.A}}},7685(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(790);const n=()=>{const e=o.useBlockProps.save(),t=o.useInnerBlocksProps.save(e);return(0,r.jsx)("ul",{...t})};a.dn(n)},6941(e,t,a){"use strict";a.d(t,{A:()=>f});var o=a(4715),r=a(7378),n=a(6427),s=a(7143),i=a(6087),c=a(7723),l=a(3792),d=a(1002),u=a(1076),p=a(790);const __=c.__;function f({clientId:e,formClientId:t}){const{setActiveStep:a}=(0,s.useDispatch)(l.M),{insertBlock:c}=(0,s.useDispatch)(o.store),f=(0,u.A)(t),m=(0,d.A)(t),{isSingleStep:g}=(0,s.useSelect)(e=>{const{isSingleStepMode:a}=e(l.M);return{isSingleStep:a(t)}},[t]),k=(0,i.useCallback)((e,t,o,n)=>{const s=(0,r.createBlock)("jetpack/form-step");c(s,t,e),n&&setTimeout(()=>{a(o,s.clientId)},10)},[c,a]);if(!m||0===m.length)return null;const b=m.findIndex(t=>t.clientId===e);return(0,p.jsx)(o.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!==b&&(0,p.jsx)(n.MenuItem,{onClick:()=>{k(f,b,t,g),e()},children:__("Add step before","jetpack-forms")}),-1!==b&&(0,p.jsx)(n.MenuItem,{onClick:()=>{k(f,b+1,t,g),e()},children:__("Add step after","jetpack-forms")}),-1===b&&(0,p.jsx)(n.MenuItem,{onClick:()=>{k(f,0,t,g),e()},children:__("Add at the beginning","jetpack-forms")}),-1===b&&(0,p.jsx)(n.MenuItem,{onClick:()=>{k(f,m.length,t,g),e()},children:__("Add at the end","jetpack-forms")})]})})})})}},9055(e,t,a){"use strict";a.d(t,{A:()=>k});var o=a(4715),r=a(6427),n=a(7143),s=a(7723),i=a(8901),c=a(4996),l=a(2528),d=a(3792),u=a(1961),p=a(3703),f=a(3631),m=a(7128),g=a(790);const __=s.__;function k({formClientId:e}){const{setActiveStep:t,enableSingleStepMode:a,disableSingleStepMode:s}=(0,n.useDispatch)(d.M),{navigateToNextStep:k,navigateToPreviousStep:b,currentStepInfo:h,steps:j}=(0,f.A)(e,!1),{selectedStepId:v,isSingleStep:y}=(0,n.useSelect)(t=>{const{isSingleStepMode:a,getActiveStepId:o}=t(d.M);return{selectedStepId:o(e),isSingleStep:a(e)}},[e]);if(!j||0===j.length)return null;const{index:x,isFirstStep:_,isLastStep:w}=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,g.jsx)(o.BlockControls,{children:(0,g.jsxs)(r.ToolbarGroup,{children:[(0,g.jsx)(r.ToolbarDropdownMenu,{icon:y?(0,g.jsx)(u.A,{}):(0,g.jsx)(p.A,{}),text:y?A:__("All steps","jetpack-forms"),label:y?/* translators: %d: step number */
__("Currently editing step %d","jetpack-forms").replace("%d",x+1):__("Currently editing all steps","jetpack-forms"),showTooltip:!0,children:({onClose:o})=>(0,g.jsxs)(r.MenuGroup,{label:__("Edit mode","jetpack-forms"),children:[(0,g.jsx)(r.MenuItem,{onClick:()=>{y&&s(e),o()},isSelected:!y,icon:(0,g.jsx)(p.A,{}),suffix:y?null:(0,g.jsx)(r.Icon,{icon:i.A}),children:__("All steps","jetpack-forms")}),(0,g.jsx)("hr",{}),(0,g.jsx)(r.MenuItem,{disabled:!0,icon:(0,g.jsx)(u.A,{}),children:__("Single step","jetpack-forms")}),j.map((n,s)=>(0,g.jsx)(r.MenuItem,{onClick:()=>{t(e,n.clientId),a(e),o()},isSelected:v===n.clientId&&y,suffix:v===n.clientId&&y?(0,g.jsx)(r.Icon,{icon:i.A}):null,children:(0,g.jsx)(r.__experimentalTruncate,{limit:50,children:(0,m.$)(s,n?.attributes?.stepLabel)})},n.clientId))]},"choose-steps")}),(0,g.jsx)(r.ToolbarButton,{showTooltip:!0,label:y?__("Previous step","jetpack-forms"):C,disabled:!y||_,onClick:b,children:(0,g.jsx)(r.Icon,{icon:l.A})}),(0,g.jsx)(r.ToolbarButton,{showTooltip:!0,label:y?__("Next step","jetpack-forms"):C,disabled:!y||w,onClick:k,children:(0,g.jsx)(r.Icon,{icon:c.A})})]})})}},8696(e,t,a){"use strict";a.d(t,{A:()=>u});var o=a(4715),r=a(6427),n=a(6087),s=a(7723),i=a(1227),c=a(2224),l=a(8481),d=a(790);const __=s.__,u=({attributes:e,id:t,required:a,setAttributes:s,width:u,extraFieldSettings:p=[]})=>{let f=[(0,d.jsx)(r.ToggleControl,{label:__("Field is required","jetpack-forms"),checked:a,onChange:e=>s({required:e}),help:__('You can edit the "required" label in the editor',"jetpack-forms"),__nextHasNoMarginBottom:!0},"required"),a&&(0,d.jsx)(r.ToggleControl,{label:__("Show required text","jetpack-forms"),checked:!!e.requiredIndicator,onChange:e=>s({requiredIndicator:e}),help:__("Toggle whether to display the required indicator text for this field.","jetpack-forms"),__nextHasNoMarginBottom:!0},"requiredIndicator"),(0,d.jsx)(c.A,{setAttributes:s,width:u},"width"),(0,d.jsx)(r.ToggleControl,{label:__("Sync fields style","jetpack-forms"),checked:e.shareFieldAttributes,onChange:e=>s({shareFieldAttributes:e}),help:__("Deactivate for individual styling of this block","jetpack-forms"),__nextHasNoMarginBottom:!0},"shareFieldAttributes")];return p.forEach(({element:e,index:t})=>{(0,n.isValidElement)(e)&&(t>=0&&t<f.length?f=[...f.slice(0,t),e,...f.slice(t)]:f.push(e))}),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(o.BlockControls,{__experimentalShareWithChildBlocks:!0,children:(0,d.jsx)(l.A,{required:a,onClick:()=>s({required:!a})})}),(0,d.jsx)(o.InspectorControls,{children:(0,d.jsx)(r.PanelBody,{title:__("Field settings","jetpack-forms"),className:"jetpack-contact-form__panel",children:(0,d.jsx)(d.Fragment,{children:f})})}),(0,d.jsx)(i.A,{id:t,setAttributes:s})]})}},1227(e,t,a){"use strict";a.d(t,{A:()=>l});var o=a(4715),r=a(6427),n=a(6087),s=a(7723),i=a(790);const __=s.__,c=["accept","action","autocomplete","enctype","method","name","novalidate","target","type","value"],l=({id:e,setAttributes:t})=>{const a=__("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,i.jsx)(o.InspectorAdvancedControls,{children:(0,i.jsx)(r.TextControl,{className:l.error?"jetpack-forms-field-controls__input-error":"",label:__("Name/ID","jetpack-forms"),value:e||"",onChange:e=>{const a=e.replace(/[^a-zA-Z0-9_-]/g,"");var o;c.some(e=>e.toLowerCase()===a.toLowerCase())?d({error:!0,message:(o=a,(0,s.sprintf)(/* translators: %s is the reserved attribute name causing an error */
__('The name/ID "%s" is a reserved word. Please use a different name.',"jetpack-forms"),o))}):(d({error:!1,message:""}),t({id:a}))},help:l.error?l.message:a,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})})}},2224(e,t,a){"use strict";a.d(t,{A:()=>i});var o=a(6427),r=a(7723),n=a(790);const __=r.__,s=[25,33,50,75,100,"auto"];function i({setAttributes:e,width:t}){return(0,n.jsx)(o.BaseControl,{help:__("Adjust the width of the field to include multiple fields on a single line.","jetpack-forms"),__nextHasNoMarginBottom:!0,children:(0,n.jsx)(o.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,"aria-label":__("Width","jetpack-forms"),isBlock:!0,label:__("Width","jetpack-forms"),onChange:t=>e({width:t}),value:t,children:s.map(e=>(0,n.jsx)(o.__experimentalToggleGroupControlOption,{label:"auto"===e?__("Auto","jetpack-forms"):`${e}%`,value:e},e))})})}},1841(e,t,a){"use strict";a.d(t,{A:()=>m});var o=a(4715),r=a(9491),n=a(6087),s=a(2619),i=a(3022),c=a(2704),l=a(7930),d=a(6839),u=a(1435),p=a(8696),f=a(790);const m=e=>{const{attributes:t,clientId:a,id:r,isSelected:s,label:m,required:g,requiredText:k,requiredIndicator:b,setAttributes:h,type:j,width:v}=e,{isInnerBlockSelected:y,hasPlaceholder:x}=(0,c.A)(a),{blockStyle:_}=(0,l.A)(t),w=(0,o.useBlockProps)({className:(0,i.A)("jetpack-field",{"is-selected":s||y,"has-placeholder":x}),style:_}),C=(0,n.useMemo)(()=>[["jetpack/label",{label:m,required:g,requiredText:k,requiredIndicator:b}],["jetpack/input",{type:j}]],[m,g,k,b,j]);(0,d.A)({clientId:a,blockName:"jetpack/field-sync",isSynced:t?.shareFieldAttributes,attributes:t,setAttributes:h});const A=(0,o.useInnerBlocksProps)(w,{allowedBlocks:u.lJ,template:C,templateLock:"all"});return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{...A}),(0,f.jsx)(p.A,{id:r,required:g,width:v,setAttributes:h,attributes:t,type:j})]})},g=(0,r.createHigherOrderComponent)(e=>t=>{if(t.name.indexOf("jetpack/field")>-1){const a=t.attributes.width?"jetpack-field__width-"+t.attributes.width:"";return(0,f.jsx)(e,{...t,className:a})}return(0,f.jsx)(e,{...t})},"withCustomClassName");(0,s.addFilter)("editor.BlockListBlock","jetpack/contact-form",g)},7173(e,t,a){"use strict";a.d(t,{A:()=>c});var o=a(6427),r=a(7723),n=a(3102),s=a(1980),i=a(790);const __=r.__,c=({attributes:e,setAttributes:t})=>{const{saveResponses:a=!0,ref:r}=e,c=r?(0,n.o)(r):s.x;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.ToggleControl,{label:__("Save responses","jetpack-forms"),help:__("Keep responses saved, or set up email/integration to avoid losing them.","jetpack-forms"),checked:a,onChange:e=>t({saveResponses:e}),__nextHasNoMarginBottom:!0}),a&&(0,i.jsx)(o.Button,{variant:"secondary",href:c,__next40pxDefaultSize:!0,children:__("View form responses","jetpack-forms")})]})}},2490(e,t,a){"use strict";a.d(t,{A:()=>l});var o=a(6427),r=a(6087),n=a(7723),s=a(5573),i=a(3022),c=a(790);const __=n.__,l=({options:e=[],selectedOptionCode:t=null,onOptionChange:a,isOpen:n=!1,onOpenChange:l,className:d="",disabled:u=!1,placeholder:p=__("Search…","jetpack-forms"),parentStyle:f={}})=>{const[m,g]=(0,r.useState)(!1),[k,b]=(0,r.useState)([]),[h,j]=(0,r.useState)(""),[v,y]=(0,r.useState)(null),[x,_]=(0,r.useState)(-1),w=(0,r.useRef)(null),C=(0,r.useRef)([]),A=l?n:m,S=l||g;(0,r.useEffect)(()=>{b(e)},[e]),(0,r.useEffect)(()=>{if(!t||!e.length)return void y(null);const a=e.find(e=>e.code===t);y(a||null)},[t,e]),(0,r.useEffect)(()=>{if(!h)return void b(e);const t=e.filter(e=>e.country.toLowerCase().includes(h.toLowerCase())||e.value.toLowerCase().includes(h.toLowerCase())||e.code.toLowerCase().includes(h.toLowerCase()));b(t)},[h,e]),(0,r.useEffect)(()=>{A&&w.current&&setTimeout(()=>{w.current.focus()},0)},[A]),(0,r.useEffect)(()=>{A||(j(""),_(-1))},[A]),(0,r.useEffect)(()=>{_(-1)},[k]),(0,r.useEffect)(()=>{x>=0&&C.current[x]&&C.current[x].scrollIntoView({block:"nearest",behavior:"auto"})},[x]),(0,r.useEffect)(()=>{if(A&&v&&k.length>0){const e=k.findIndex(e=>e.code===v.code);e>=0&&C.current[e]&&setTimeout(()=>{C.current[e].scrollIntoView({block:"nearest",container:"nearest",behavior:"instant"})},0)}},[A,v,k]);const B=(0,r.useCallback)(()=>{u||S(!A)},[A,S,u]),I=(0,r.useCallback)(e=>{a&&a(e),S(!1)},[a,S]),N=(0,r.useCallback)(e=>{j(e.target.value)},[]),M={down:(0,r.useCallback)(e=>{A&&(e.preventDefault(),_(e=>e<k.length-1?e+1:0))},[A,k.length,_]),up:(0,r.useCallback)(e=>{A&&(e.preventDefault(),_(e=>e>0?e-1:k.length-1))},[A,k.length,_]),enter:(0,r.useCallback)(e=>{if(!A)return;e.preventDefault();let t=null;if(x>=0&&x<k.length?t=k[x]:k.length>0&&h&&(t=k[0]),t){const e={target:{value:t.code},currentTarget:{value:t.code}};a&&a(e),S(!1)}},[A,x,k,a,S,h]),esc:(0,r.useCallback)(e=>{A&&(e.preventDefault(),S(!1))},[A,S])};if(!e.length||!v)return null;const P=(0,i.A)("jetpack-combobox-trigger-arrow",{"is-open":A});return(0,c.jsxs)("div",{className:(0,i.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:v.flag}),(0,c.jsx)("span",{className:P,children:(0,c.jsx)(s.SVG,{width:"10",height:"6",viewBox:"0 0 10 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(s.Path,{d:"M1 1L5 5L9 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,c.jsx)("span",{className:"jetpack-combobox-selected",children:v.value})]}),A&&(0,c.jsx)(o.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:w,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-${k[x]?.code}`:void 0}),(0,c.jsx)("div",{className:"jetpack-combobox-options",role:"listbox",children:k.map(({country:e,flag:t,value:a,code:o},r)=>{const n=r===x,s=v?.code===o;return(0,c.jsxs)("button",{ref:e=>{C.current[r]=e},id:`option-${o}`,className:(0,i.A)("jetpack-combobox-option",{"is-focused":n,"jetpack-combobox-option-selected":s}),value:o,onClick:I,role:"option","aria-selected":s,tabIndex:-1,children:[(0,c.jsx)("span",{className:"jetpack-combobox-option-icon",children:t}),(0,c.jsx)("span",{className:"jetpack-combobox-option-value",children:a}),(0,c.jsx)("span",{className:"jetpack-combobox-option-description",children:e})]},o)})})]})})]})}},8481(e,t,a){"use strict";a.d(t,{A:()=>c});var o=a(6427),r=a(7723),n=a(5573),s=a(790);const __=r.__,i=(0,s.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.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:a=!1,disabledTooltip:r=""})=>{const n=a&&r?r:__("Required","jetpack-forms");return(0,s.jsx)(o.ToolbarGroup,{children:(0,s.jsx)(o.ToolbarButton,{title:n,icon:i,onClick:t,className:e?"is-pressed":void 0,disabled:a})})}},7316(e,t,a){"use strict";a.d(t,{L:()=>c});var o=a(372),r=a(5985),n=a(2201),s=a(7723),i=a(790);const __=s.__,c=({requiredPlan:e})=>{const[t,a,s]=(0,r._6)(e,()=>{o.A.tracks.recordEvent("jetpack_editor_block_upgrade_click",{plan:e,context:"editor-canvas",block:"jetpack/field-file"})});return(0,i.jsx)("div",{className:"jetpack-forms-upsell-nudge",children:(0,i.jsx)(n.cb,{className:"",title:__("Upgrade to a paid plan to use file uploads.","jetpack-forms"),buttonText:__("Upgrade","jetpack-forms"),checkoutUrl:t,isRedirecting:s,goToCheckoutPage:a})})}},3943(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(7378),r=a(8391);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:a,inputStyles:n}=(0,r.A)(e);return[t,[(0,o.createBlock)("jetpack/label",{label:e.label,requiredText:e.requiredText,requiredIndicator:e.requiredIndicator,style:a}),(0,o.createBlock)("jetpack/input",{placeholder:e.placeholder,style:n})]]},isEligible:(e,t)=>!t.length,save:()=>null}},162(e,t,a){"use strict";a.d(t,{A:()=>s});var o=a(7378),r=a(7723),n=a(8391);const __=r.__;function s(e,t,a){const{restAttributes:r,labelStyles:s,optionStyles:i}=(0,n.A)(e),{options:c,...l}=r,d=t.map(e=>(0,o.createBlock)("jetpack/option",{label:e.attributes.label,placeholder:__("Add option…","jetpack-forms"),style:i}));return[l,[(0,o.createBlock)("jetpack/label",{label:e.label,requiredText:e.requiredText,style:s}),(0,o.createBlock)("jetpack/options",{type:a},d)]]}},1799(e,t,a){"use strict";a.d(t,{A:()=>s});var o=a(7378),r=a(7723),n=a(8391);const __=r.__;function s(e,t){const{restAttributes:a,labelStyles:r,optionStyles:s}=(0,n.A)(e),{options:i,...c}=a,l=(i?i.filter(e=>{return"string"==typeof(t=e)&&t.trim().length>0;var t}):[]).map(e=>(0,o.createBlock)("jetpack/option",{label:e,placeholder:__("Add option…","jetpack-forms"),style:s}));return[c,[(0,o.createBlock)("jetpack/label",{label:e.label,requiredText:e.requiredText,style:r}),(0,o.createBlock)("jetpack/options",{type:t},l)]]}},611(e,t,a){"use strict";a.d(t,{A:()=>l});var o=a(7378),r=a(7723),n=a(8391),s=a(3943);const __=r.__,i=__("Choose several options","jetpack-forms"),c=__("Choose one option","jetpack-forms");function l(e){return{attributes:{...s.A.attributes,label:{type:"string",default:"checkbox"===e?i:c}},supports:s.A.supports,migrate:t=>{const{restAttributes:a,labelStyles:r,optionStyles:s}=(0,n.A)(t),{options:i,...c}=a,l=(i?i.filter(e=>{return"string"==typeof(t=e)&&t.trim().length>0;var t}):[]).map(e=>(0,o.createBlock)("jetpack/option",{label:e,placeholder:__("Add option…","jetpack-forms"),style:s}));return[c,[(0,o.createBlock)("jetpack/label",{label:t.label,requiredText:t.requiredText,style:r}),(0,o.createBlock)("jetpack/options",{type:e},l)]]},save:()=>null}}},2704(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(7143);function n(e){return(0,r.useSelect)(t=>{const{getBlock:a,hasSelectedInnerBlock:r}=t(o.store);return{isInnerBlockSelected:r(e,!0),hasPlaceholder:!!a(e).innerBlocks[1]?.attributes?.placeholder}},[e])}},9355(e,t,a){"use strict";a.d(t,{l:()=>n});var o=a(4715),r=a(7143);const n=(e,t)=>{const a=(0,r.useSelect)(t=>{if(!e)return[];const{getBlocks:a}=t(o.store);return a(e)},[e]);return(0,r.useSelect)(()=>{const e=(t,a)=>{if(!t||0===t.length)return null;for(const o of t){if(a(o))return o;if(o.innerBlocks&&o.innerBlocks.length>0){const t=e(o.innerBlocks,a);if(t)return t}}return null};return e(a,t)},[a,t])}},1002(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(7143),r=a(9355);function n(e){const t=(0,r.l)(e,e=>"jetpack/form-step-container"===e.name);return(0,o.useSelect)(()=>t&&t.innerBlocks&&t.innerBlocks.length>0?t.innerBlocks:[],[t])}},7988(e,t,a){"use strict";a.d(t,{A:()=>i});var o=a(4715),r=a(7143),n=a(1435),s=a(594);const i=e=>{const t=(0,r.useSelect)(t=>{const[a]=t(o.store).getBlockParentsByBlockName(e,n.bp);return t(o.store).getBlockAttributes(a)});return(0,s.A)(t?.className)||n.pC.DEFAULT}},4334(e,t,a){"use strict";a.d(t,{Ay:()=>f});var o=a(4715),r=a(7378),n=a(3582),s=a(7143),i=a(3656),c=a(6087),l=a(7723),d=a(4506),u=a(2441),p=a(1435);const __=l.__;function f({attributes:e,clientId:t,name:a}){const{replaceBlock:l,updateBlockAttributes:f,__unstableMarkNextChangeAsNotPersistent:m}=(0,s.useDispatch)(o.store),{getBlocks:g}=(0,s.useSelect)(o.store),k=(0,d.A)("isCentralFormManagementEnabled"),{parentForms:b,currentPostId:h,currentPostType:j,wasBlockJustInserted:v}=(0,s.useSelect)(e=>({parentForms:e(o.store).getBlockParentsByBlockName(t,p.bp),currentPostId:e(i.store).getEditedPostAttribute("id"),currentPostType:e(i.store).getCurrentPostType(),wasBlockJustInserted:e(o.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}(j,b))return;y.current=!0;const o=function(e){const t=(0,r.getBlockType)(e);return t?.title||__("Untitled","jetpack-forms")}(a),i=g(t),{formBlock:c,fieldBlock:d,submitButton:x}=function(e,t,a=[]){const o=(0,r.createBlock)(e,t,a),n=(0,r.createBlock)("core/button",{text:__("Submit","jetpack-forms"),type:"submit",tagName:"button"});return{formBlock:(0,r.createBlock)(p.bp,{layout:p.US},[o,n]),fieldBlock:o,submitButton:n}}(a,e,i);m(),l(t,c),k&&v&&async function(e,t,a,o,r,i,c){const l=await(0,u.r)({attributes:{},innerBlocks:[t,a]},o,r);await(0,s.resolveSelect)(n.store).getEntityRecord("postType",p.$8,l),c(),i(e.clientId,{ref:l})}(c,d,x,o,h,f,m).catch(()=>{})},[])}},7622(e,t,a){"use strict";a.d(t,{A:()=>i}),a.dn(i);var o=a(4715),r=a(7378),n=a(7143),s=a(6087);function i(e,t=!1){const{fieldParentId:a,parentIndex:i,formParentId:c}=(0,n.useSelect)(a=>{const r=a(o.store),n=r.getBlockParents(e),s=n[n.length-1];return t?{fieldParentId:e,parentIndex:r.getBlockIndex(e),formParentId:n[n.length-1]}:{fieldParentId:s,parentIndex:s?r.getBlockIndex(s):void 0,formParentId:n[n.length-2]}},[e,t]),{insertBlock:l}=(0,n.useDispatch)(o.store);return(0,s.useCallback)(e=>{"Enter"===e.key&&!e.shiftKey&&a&&void 0!==i&&(e.preventDefault(),l((0,r.createBlock)((0,r.getDefaultBlockName)()),i+1,c))},[l,a,c,i])}},7930(e,t,a){"use strict";a.d(t,{A:()=>r});const o=e=>"number"==typeof e&&!isNaN(e),r=e=>{const t={"--jetpack--contact-form--border-color":e.borderColor,"--jetpack--contact-form--border-radius":o(e.borderRadius)?`${e.borderRadius}px`:null,"--jetpack--contact-form--border-size":o(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":o(e.buttonBorderRadius)?`${e.buttonBorderRadius}px`:null,"--jetpack--contact-form--button-outline--border-size":o(e.buttonBorderWidth)?`${e.buttonBorderWidth}px`:null},a={color:e.labelColor,fontSize:e.labelFontSize,lineHeight:e.labelLineHeight},r={backgroundColor:e.fieldBackgroundColor,borderColor:e.borderColor,borderRadius:o(e.borderRadius)?e.borderRadius:null,borderWidth:o(e.borderWidth)?e.borderWidth:null,color:e.inputColor,fontSize:e.fieldFontSize,lineHeight:e.lineHeight};return{blockStyle:t,fieldStyle:r,labelStyle:a,optionStyle:{color:r.color,fontSize:r.fontSize,lineHeight:r.lineHeight}}}},6523(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(7143);const n=e=>(0,r.useSelect)(t=>{if(!e)return null;const{getBlockParentsByBlockName:a}=t(o.store),r=a(e,["jetpack/contact-form"]);return r?.[0]||null},[e])},1076(e,t,a){"use strict";a.d(t,{A:()=>n});var o=a(4715),r=a(7143);function n(e){return(0,r.useSelect)(t=>{if(!e)return null;const{getBlocksByName:a,getBlockParentsByBlockName:r}=t(o.store),n=a("jetpack/form-step-container");if(!n||0===n.length)return null;const s=n.find(t=>{const a=r(t,["jetpack/contact-form"])[0];return a&&a===e});return s||null},[e])}},3631(e,t,a){"use strict";a.d(t,{A:()=>c});var o=a(4715),r=a(7143),n=a(6087),s=a(3792),i=a(1002);const c=(e,t)=>{const{setActiveStep:a}=(0,r.useDispatch)(s.M),{selectBlock:c}=(0,r.useDispatch)(o.store),l=(0,i.A)(e),d=(0,r.useSelect)(t=>t(s.M).getCurrentStepInfo(e,l),[e,l]);return{navigateToNextStep:(0,n.useCallback)(()=>{const{index:o,isLastStep:r}=d;if(r||!l.length)return;const n=l[o+1].clientId;a(e,n),t&&c(n)},[d,l,a,e,t,c]),navigateToPreviousStep:(0,n.useCallback)(()=>{const{index:o,isFirstStep:r}=d;if(r||!l.length)return;const n=l[o-1].clientId;a(e,n),t&&c(n)},[d,l,a,e,t,c]),navigateToStep:(0,n.useCallback)(o=>{if(o<0||o>=l.length)return;const r=l[o].clientId;a(e,r),t&&c(r)},[l,a,e,t,c]),currentStepInfo:d,steps:l}}},6839(e,t,a){"use strict";a.d(t,{A:()=>i});var o=a(4715),r=a(7143),n=a(6087),s=a(7664);const i=({clientId:e,blockName:t,isSynced:a,attributes:i,setAttributes:c})=>{(0,s.d)(t,a,["requiredIndicator"],i,c);const l=(0,r.useSelect)(t=>{const{getBlock:a}=t(o.store),r=a(e);if(!r)return;const n=r.innerBlocks.find(e=>"jetpack/label"===e.name);return n?.clientId},[e]),{updateBlockAttributes:d}=(0,r.useDispatch)(o.store);(0,n.useEffect)(()=>{l&&d(l,{requiredIndicator:i?.requiredIndicator})},[l,i?.requiredIndicator,d])}},7664(e,t,a){"use strict";a.d(t,{d:()=>u,w:()=>l});var o=a(9491),r=a(7143),n=a(6087),s=a(8468),i=a(790);const c=(0,n.createContext)([{},()=>{}]);function l({children:e}){const t=(0,n.useReducer)((e,t)=>{const{name:a,attributes:o}=t;return{...e,[a]:{...e[a]??{},...o}}},{});return(0,i.jsx)(c.Provider,{value:t,children:e})}function d(e,t){return e?Object.keys(e).reduce((a,o)=>(t.every(t=>!(0,s.isEqual)(e[o],t?.[o]))&&(a[o]=e[o]),a),{}):{}}function u(e,t,a,s,i){const{__unstableMarkNextChangeAsNotPersistent:l}=(0,r.useDispatch)("core/block-editor"),u=(0,n.useContext)(c),[p,f]=function(e,t){const[a,o]=t;return(0,n.useMemo)(()=>[a[e],t=>o({name:e,attributes:t})],[e,o,a])}(e,u),m=(0,n.useMemo)(()=>function(e,t){return t.reduce((t,a)=>(t[a]=e[a],t),{})}(s,a),[s,a]),g=(0,o.usePrevious)(m)??m;(0,n.useEffect)(()=>{if(!t||!u)return;if(!p&&m)return void f(m);const e=d(m,[p,g]);if(Object.keys(e).length>0)return void f(e);const a=d(p,[m]);Object.keys(a).length>0&&(l(),i(a))},[t,f,i,m,g,p,l,u])}},7103(e,t,a){"use strict";a.d(t,{A:()=>p});var o=a(4715),r=a(3582),n=a(7143),s=a(6087),i=a(8468),c=a(1435),l=a(7988);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:a}){const p=(0,l.A)(e),{userConfig:f,baseConfig:m}=(0,n.useSelect)(e=>{const{__experimentalGetCurrentGlobalStylesId:t,getEditedEntityRecord:a,__experimentalGetCurrentThemeBaseGlobalStyles:o}=e(r.store),n=t();return n?{userConfig:a("root","globalStyles",n),baseConfig:o()}:{userConfig:null,baseConfig:null}},[]),g=m?.styles?.blocks?.[t],k=f?.styles?.blocks?.[t],b=(0,s.useMemo)(()=>(0,i.merge)(g,k),[g,k]);return(0,s.useMemo)(()=>{const e=(0,o.__experimentalGetBorderClassesAndStyles)(a??{}),r=(0,o.__experimentalGetBorderClassesAndStyles)({style:b}),n=function(e,t){const a=d(e?.borderWidth)||t?.borderWidth;return a?{borderTopWidth:a,borderRightWidth:a,borderBottomWidth:a,borderLeftWidth:a}:{borderTopWidth:e?.borderTopWidth||t?.borderTopWidth,borderRightWidth:e?.borderRightWidth||t?.borderRightWidth,borderBottomWidth:e?.borderBottomWidth||t?.borderBottomWidth,borderLeftWidth:e?.borderLeftWidth||t?.borderLeftWidth}}(e?.style,r?.style),s="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:s};const i=a?{backgroundColor:a?.backgroundColor,style:{color:{background:a?.style?.color?.background}}}:{},l=(0,o.__experimentalGetColorClassesAndStyles)(i),f=[e?.className,l?.className,s].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(r.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}}},[a,b,p,t])}},3083(e,t,a){"use strict";a.d(t,{A:()=>o});const o={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}},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:a(2110).A}},2110(e,t,a){"use strict";a.d(t,{A:()=>c});var o=a(7378),r=a(7723);const __=r.__,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,r.sprintf)(/* translators: %s: a type of consent: implicit or explicit */
__("Add %s consent message…","jetpack-forms"),"implicit"),extraAttributes:{isStandalone:!0,hideInput:!0}}},s=e=>({required:e.required||!1,width:e.width||100,id:e.id||"",shareFieldAttributes:e.shareFieldAttributes??!0}),i=(e,t=[])=>{const a=n[e];if(!a)return[];const r=t.find(e=>"jetpack/label"===e.name),s=t.find(e=>"jetpack/input"===e.name),i=s?.attributes?{...s?.attributes}:{};return"jetpack/field-select"===e&&(i.placeholder=i?.placeholder||__("Select one option","jetpack-forms")),[(0,o.createBlock)("jetpack/label",{...r?.attributes||{},label:r?.attributes?.label||a.label,placeholder:a.labelPlaceholder}),(0,o.createBlock)("jetpack/input",{...i,type:a.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,a=[])=>(0,o.createBlock)(e,s(t),i(e,a))})),...["jetpack/field-checkbox-multiple","jetpack/field-radio"].map(e=>({type:"block",blocks:[e],transform:(t,a=[])=>(0,o.createBlock)(e,s(t),((e,t=[],a={})=>{const r=n[e];if(!r)return[];const s=t.find(e=>"jetpack/label"===e.name),i=t.find(e=>"jetpack/options"===e.name),c=(0,o.createBlock)("jetpack/label",{...s?.attributes||{},label:s?.attributes?.label||r.label,placeholder:r.labelPlaceholder});let l;return l=i?.innerBlocks?i.innerBlocks.map(e=>(0,o.createBlock)("jetpack/option",{...e.attributes})):a.options?.length?a.options.map(e=>(0,o.createBlock)("jetpack/option",{label:e})):[(0,o.createBlock)("jetpack/option")],[c,(0,o.createBlock)("jetpack/options",{...i?.attributes||{},type:r.type},l)]})(e,a,t))})),...["jetpack/field-checkbox","jetpack/field-consent"].map(e=>({type:"block",blocks:[e],transform:(t,a=[])=>{const r=s(t);return(0,o.createBlock)(e,{...r,required:"jetpack/field-consent"!==e&&r.required},((e,t=[])=>{const a=n[e];if(!a)return[];const r=t.find(e=>"jetpack/option"===e.name);return[(0,o.createBlock)("jetpack/option",{...r?.attributes||{},label:a.label,placeholder:a.labelPlaceholder,...a.extraAttributes})]})(e,a))}})),{type:"block",blocks:["jetpack/field-select"],transform:(e,t=[])=>{const a=(e=>{const t=[],a=e.find(e=>"jetpack/options"===e.name);if(a?.innerBlocks?.length)t.push(...a.innerBlocks.map(e=>e.attributes.label??""));else{const a=e.find(e=>"jetpack/option"===e.name);a&&t.push(a.attributes.label??"")}return t})(t);return(0,o.createBlock)("jetpack/field-select",{...s(e),options:a.length?a:[""]},i("jetpack/field-select",t))}}]}},9125(e,t,a){"use strict";a.d(t,{J:()=>o});const o=e=>{const t=e.ownerDocument.defaultView.getSelection();if(0===t.rangeCount)return 0;const a=t.getRangeAt(0),o=a.cloneRange();return o.selectNodeContents(e),o.setEnd(a.endContainer,a.endOffset),o.toString().length}},9143(e,t,a){"use strict";a.d(t,{A:()=>r});const o=e=>{if(null===e||"object"!=typeof e||Array.isArray(e))return e;const t=Object.entries(e).map(([e,t])=>[e,o(t)]).filter(([,e])=>void 0!==e);return t.length?Object.fromEntries(t):void 0},r=o},1435(e,t,a){"use strict";a.d(t,{$8:()=>p,BY:()=>n,Kn:()=>i,US:()=>d,bp:()=>l,kl:()=>c,lJ:()=>r,lP:()=>f,pC:()=>u,uO:()=>o});const __=a(7723).__,o=["core/bold","core/italic"],r=["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"],s=(new Date).getFullYear(),i=[{value:"mm/dd/yy",
/* translators: date format. DD is the day of the month, MM the month, and YYYY the year (e.g., 12/31/2023). */
label:__("MM/DD/YYYY","jetpack-forms"),example:`12/31/${s}`},{value:"dd/mm/yy",
/* translators: date format. DD is the day of the month, MM the month, and YYYY the year (e.g., 31/12/2023). */
label:__("DD/MM/YYYY","jetpack-forms"),example:`21/12/${s}`},{value:"yy-mm-dd",
/* translators: date format. DD is the day of the month, MM the month, and YYYY the year (e.g., 2023-12-31). */
label:__("YYYY-MM-DD","jetpack-forms"),example:`${s}-12-31`}],c=i.map(({value:e,label:t,example:a})=>({label:`${t} (${a})`,value:e})),l="jetpack/contact-form",d={type:"flex",flexWrap:"nowrap",orientation:"vertical",justifyContent:"left",verticalAlignment:"top"},u={ANIMATED:"animated",BELOW:"below",DEFAULT:"default",OUTLINED:"outlined"},p="jetpack_form",f="_jetpack_forms_source_post_id"},8391(e,t,a){"use strict";a.d(t,{A:()=>r});var o=a(9143);const r=e=>{const{borderColor:t,borderRadius:a,borderWidth:r,fieldBackgroundColor:n,fieldFontSize:s,inputColor:i,labelColor:c,labelFontSize:l,labelLineHeight:d,lineHeight:u,placeholder:p,...f}=e,m=(0,o.A)({color:{text:c},typography:{fontSize:l,lineHeight:d?`${d}`:void 0}});return{inputStyles:(0,o.A)({border:{color:t,radius:a||0===a?`${a}px`:void 0,style:"solid",width:r||0===r?`${r}px`:void 0},color:{text:i,background:n},typography:{fontSize:s,lineHeight:u?`${u}`:void 0}}),labelStyles:m,optionStyles:(0,o.A)({color:{text:i},typography:{fontSize:s,lineHeight:u?`${u}`:void 0}}),restAttributes:f}}},3549(e,t,a){"use strict";function o(e,t){if(!e)return"";if(!Array.isArray(t)||!t.includes(e))return e;let a=2;for(;t.includes(`${e}-${a}`);)a++;return`${e}-${a}`}a.d(t,{C:()=>o})},594(e,t,a){"use strict";a.d(t,{A:()=>o});const o=e=>{const t=e&&e.match(/is-style-([^\s]+)/i);return t?t[1]:""}},8047(e,t,a){"use strict";a.d(t,{u:()=>o});const o=(e,t,a=!1)=>{if(t<=0)return 0;if(a){const a=Math.max(0,e-1);return t>1?a/(t-1)*100:0}return Math.max(1,e)/t*100}},2211(e,t,a){"use strict";function o(e,t,a,o){setTimeout(()=>{const r=e.querySelectorAll(t)[a];if(r&&(r.focus(),document.createRange&&o)){const e=document.createRange();e.selectNodeContents(r),e.collapse(!1);const t=document.defaultView.getSelection();t.removeAllRanges(),t.addRange(e)}},0)}a.d(t,{A:()=>o})},7128(e,t,a){"use strict";a.d(t,{$:()=>r});var o=a(7723);const __=o.__;function r(e,t=""){const a=e+1;return t&&""!==t?(0,o.sprintf)(/* translators: %1$d is the step number, %2$s is the custom label */
__("Step %1$d – %2$s","jetpack-forms"),a,t):(0,o.sprintf)(/* translators: %d is the step number (1, 2, 3, etc.) */
__("Step %d","jetpack-forms"),a)}},3792(e,t,a){"use strict";a.d(t,{M:()=>i});var o=a(7143);const r={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})},s={isSingleStepMode:(e,t)=>!1!==e.singleStepMode[t],getActiveStepId:(e,t)=>e.activeStepId[t]||null,getCurrentStepInfo(e,t,a){const o=s.getActiveStepId(e,t);if(null==o)return{stepLabel:"",index:-1,isFirstStep:!1,isLastStep:!1};const r=a.findIndex(e=>e.clientId===o);if(r>=0){return{stepLabel:a[r]?.attributes?.stepLabel||"",index:r,isFirstStep:0===r,isLastStep:r===a.length-1}}return{stepLabel:"",index:-1,isFirstStep:!1,isLastStep:!1}}},i=(0,o.createReduxStore)("jetpack/forms/single-step",{reducer:(e=r,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:s});(0,o.register)(i)},7678(e,t,a){"use strict";a.d(t,{k:()=>r});const __=a(7723).__,o={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")},r=e=>o[e]||e},1980(e,t,a){"use strict";a.d(t,{x:()=>r});var o=a(5985);const r=(0,o.$i)()?.adminUrl+"admin.php?page=jetpack-forms-admin"},1100(e,t,a){"use strict";a.d(t,{I:()=>s});var o=a(6087),r=a(5573),n=a(790),s=(0,o.forwardRef)(function({icon:e,size:t=24,...a},o){return(0,n.jsx)(r.SVG,{ref:o,fill:"currentColor",...e.props,...a,width:t,height:t})})},9654(e,t,a){"use strict";a.d(t,{N:()=>b});var o=a(3196),r=a(9300),n=a(3022),s=a(6087),i=a(7723),c=a(790),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[a,o]of t.styles)u(e,a,o)}(document)),e.__wpStyleRuntime}function u(e,t,a){if(!e.head)return;const o=d();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const a of e.head.querySelectorAll(`style[${l}]`))if(a.getAttribute(l)===t)return!0;return!1}(e,t))return void r.add(t);const n=e.createElement("style");n.setAttribute(l,t),n.appendChild(e.createTextNode(a)),e.head.appendChild(n),r.add(t)}function p(e,t){const a=d();a.styles.set(e,t);for(const o of a.documents.keys())u(o,e,t)}p("e3ae230cea","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}");var f="_336cd3e4e743482f__box-sizing";p("2a5ab8f3a7","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._08e8a2e44959f892__outset-ring--focus,._970d04df7376df67__outset-ring--focus-within-except-active,.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible,.cd83dfc2126a0846__outset-ring--focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active,.ecadb9e080e2dfa5__outset-ring--focus-parent-visible{@media not (prefers-reduced-motion){--_gcd-a-transition:outline 0.1s ease-out;transition:outline .1s ease-out}outline:0 solid #0000;outline-offset:1px}._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus-brand,var(--wp-admin-theme-color,#3858e9))}}");var m="_08e8a2e44959f892__outset-ring--focus";p("90a23568f8",'@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-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-fg-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-fg-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-fg-interactive-brand-active,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-fg-interactive-brand-active,var(--wp-admin-theme-color,#3858e9))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-fg-interactive-neutral,#1e1e1e);color:var(--wpds-color-fg-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-fg-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-fg-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-regular,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 g={link:"d4250949359b05ce__link","is-brand":"c6055659b8e2cd2c__is-brand","is-neutral":"_92e0dfcaeee15b88__is-neutral","is-unstyled":"cf122a9bf1035d42__is-unstyled","link-icon":"_0cb411afac4c86c7__link-icon"};p("1fb29d3a3c","._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);&: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,#0000);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 #0000);color:var(--_gcd-input-color,var(--wpds-color-fg-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,#0000);border-color:var(--_gcd-input-border-color-disabled,#0000);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-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 #0000)}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-fg-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));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 #0000);transition:var(--_gcd-a-transition,none)}");var k="_2c0831b0499dbd6e__a",b=(0,s.forwardRef)(function({children:e,variant:t="default",tone:a="brand",openInNewTab:s=!1,render:l,className:d,...u},p){return(0,o.C)({render:l,defaultTagName:"a",ref:p,props:(0,r.v6)(u,{className:(0,n.A)(k,f,m,"unstyled"!==t&&g.link,"unstyled"!==t&&g[`is-${a}`],"unstyled"===t&&g["is-unstyled"],d),target:s?"_blank":void 0,children:(0,c.jsxs)(c.Fragment,{children:[e,s&&(0,c.jsx)("span",{className:g["link-icon"],role:"img","aria-label":/* translators: accessibility text appended to link text */ /* translators: accessibility text appended to link text */(0,i.__)("(opens in a new tab)","jetpack-forms")})]})})})})},1868(e,t,a){"use strict";a.d(t,{V:()=>u});var o=a(6087),r=a(3022),n=a(9968),s=a(790),i="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[a,o]of t.styles)l(e,a,o)}(document)),e.__wpStyleRuntime}function l(e,t,a){if(!e.head)return;const o=c();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const a of e.head.querySelectorAll(`style[${i}]`))if(a.getAttribute(i)===t)return!0;return!1}(e,t))return void r.add(t);const n=e.createElement("style");n.setAttribute(i,t),n.appendChild(e.createTextNode(a)),e.head.appendChild(n),r.add(t)}(function(e,t){const a=c();a.styles.set(e,t);for(const o of a.documents.keys())l(o,e,t)})("60dd1d4d42","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._4145abab73d17514__notice{--icon-height:24px;--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-bg-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-fg-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-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)}._1904b570a89bb815__description{text-wrap:pretty}._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-bg-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#9fbcdc);--wp-ui-notice-text-color:var(--wpds-color-fg-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#d0b481);--wp-ui-notice-text-color:var(--wpds-color-fg-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#8ac894);--wp-ui-notice-text-color:var(--wpds-color-fg-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#daa39b);--wp-ui-notice-text-color:var(--wpds-color-fg-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-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 wp-ui-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,#0000 50%,var(--wpds-color-bg-interactive-neutral-weak-active,#ededed))}}");var d="_1904b570a89bb815__description",u=(0,o.forwardRef)(function({className:e,...t},a){return(0,s.jsx)(n.E,{ref:a,variant:"body-md",className:(0,r.A)(d,e),...t})})},8050(e,t,a){"use strict";a.d(t,{b:()=>_});var o=a(195),r=a(6087),n=a(3758),s=a(9099),i=a(8847),c=a(2243),l=a(3196),d=a(9300),u=a(3022),p=a(1100),f=a(790),m="data-wp-hash";function g(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=g();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[a,o]of t.styles)k(e,a,o)}(document)),e.__wpStyleRuntime}function k(e,t,a){if(!e.head)return;const o=g();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const a of e.head.querySelectorAll(`style[${m}]`))if(a.getAttribute(m)===t)return!0;return!1}(e,t))return void r.add(t);const n=e.createElement("style");n.setAttribute(m,t),n.appendChild(e.createTextNode(a)),e.head.appendChild(n),r.add(t)}function b(e,t){const a=g();a.styles.set(e,t);for(const o of a.documents.keys())k(o,e,t)}b("e3ae230cea","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}");var h="_336cd3e4e743482f__box-sizing";b("60dd1d4d42","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._4145abab73d17514__notice{--icon-height:24px;--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-bg-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-fg-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-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)}._1904b570a89bb815__description{text-wrap:pretty}._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-bg-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#9fbcdc);--wp-ui-notice-text-color:var(--wpds-color-fg-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#d0b481);--wp-ui-notice-text-color:var(--wpds-color-fg-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#8ac894);--wp-ui-notice-text-color:var(--wpds-color-fg-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#daa39b);--wp-ui-notice-text-color:var(--wpds-color-fg-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-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 wp-ui-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,#0000 50%,var(--wpds-color-bg-interactive-neutral-weak-active,#ededed))}}");var j={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"},v={neutral:null,info:i.A,warning:n.A,success:c.A,error:s.A};function y(e){return"error"===e?"assertive":"polite"}function x(e,t){const a=function(e){if(e){if("string"==typeof e)return e;try{return(0,r.renderToString)(e)}catch{return}}}(e);(0,r.useEffect)(()=>{a&&(0,o.speak)(a,t)},[a,t])}var _=(0,r.forwardRef)(function({intent:e="neutral",children:t,icon:a,spokenMessage:o=t,politeness:r=y(e),render:n,...s},i){x(o,r);const c=null===a?null:a??v[e],m=(0,u.A)(j.notice,j[`is-${e}`],h);return(0,l.C)({defaultTagName:"div",render:n,ref:i,props:(0,d.v6)({className:m,children:(0,f.jsxs)(f.Fragment,{children:[t,c&&(0,f.jsx)(p.I,{className:j.icon,icon:c})]})},s)})})},2472(e,t,a){"use strict";a.d(t,{h:()=>u});var o=a(6087),r=a(3022),n=a(9968),s=a(790),i="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[a,o]of t.styles)l(e,a,o)}(document)),e.__wpStyleRuntime}function l(e,t,a){if(!e.head)return;const o=c();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const a of e.head.querySelectorAll(`style[${i}]`))if(a.getAttribute(i)===t)return!0;return!1}(e,t))return void r.add(t);const n=e.createElement("style");n.setAttribute(i,t),n.appendChild(e.createTextNode(a)),e.head.appendChild(n),r.add(t)}(function(e,t){const a=c();a.styles.set(e,t);for(const o of a.documents.keys())l(o,e,t)})("60dd1d4d42","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._4145abab73d17514__notice{--icon-height:24px;--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-bg-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-fg-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-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)}._1904b570a89bb815__description{text-wrap:pretty}._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-bg-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#9fbcdc);--wp-ui-notice-text-color:var(--wpds-color-fg-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#d0b481);--wp-ui-notice-text-color:var(--wpds-color-fg-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-warning-weak,#926300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#8ac894);--wp-ui-notice-text-color:var(--wpds-color-fg-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-bg-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#daa39b);--wp-ui-notice-text-color:var(--wpds-color-fg-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-fg-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 wp-ui-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,#0000 50%,var(--wpds-color-bg-interactive-neutral-weak-active,#ededed))}}");var d="b5397fb9d05389e3__title",u=(0,o.forwardRef)(function({className:e,...t},a){return(0,s.jsx)(n.E,{ref:a,variant:"heading-md",className:(0,r.A)(d,e),...t})})},9968(e,t,a){"use strict";a.d(t,{E:()=>m});var o=a(3196),r=a(9300),n=a(3022),s=a(6087),i="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[a,o]of t.styles)l(e,a,o)}(document)),e.__wpStyleRuntime}function l(e,t,a){if(!e.head)return;const o=c();let r=o.injectedStyles.get(e);if(r||(r=new Set,o.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const a of e.head.querySelectorAll(`style[${i}]`))if(a.getAttribute(i)===t)return!0;return!1}(e,t))return void r.add(t);const n=e.createElement("style");n.setAttribute(i,t),n.appendChild(e.createTextNode(a)),e.head.appendChild(n),r.add(t)}function d(e,t){const a=c();a.styles.set(e,t);for(const o of a.documents.keys())l(o,e,t)}d("0c8601dd83",'@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._83ed8a8da5dd50ea__text{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-medium,499);--_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-medium,499)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_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-medium,499);--_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-medium,499);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-medium,499);--_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-medium,499);--_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-medium,499);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-regular,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-regular,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,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-regular,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-regular,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,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("1fb29d3a3c","._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);&: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,#0000);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 #0000);color:var(--_gcd-input-color,var(--wpds-color-fg-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,#0000);border-color:var(--_gcd-input-border-color-disabled,#0000);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-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 #0000)}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-fg-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));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 #0000);transition:var(--_gcd-a-transition,none)}");var p="_43cec3e1eec1066d__p",f="e97669c6d9a38497__heading",m=(0,s.forwardRef)(function({variant:e="body-md",render:t,className:a,...s},i){return(0,o.C)({render:t,defaultTagName:"span",ref:i,props:(0,r.v6)(s,{className:(0,n.A)(u.text,f,p,u[e],a)})})})},3423(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},"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}}},"attributes":{},"editorScript":"file:./editor.js","style":"file:../../../dist/contact-form/css/jetpack-forms-layout.css"}')}},n={};function s(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return r[e](a,a.exports,s),a.exports}s.m=r,e=[],s.O=(t,a,o,r)=>{if(!a){var n=1/0;for(d=0;d<e.length;d++){for(var[a,o,r]=e[d],i=!0,c=0;c<a.length;c++)(!1&r||n>=r)&&Object.keys(s.O).every(e=>s.O[e](a[c]))?a.splice(c--,1):(i=!1,r<n&&(n=r));if(i){e.splice(d--,1);var l=o();void 0!==l&&(t=l)}}return t}r=r||0;for(var d=e.length;d>0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[a,o,r]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var a in t)s.o(t,a)&&!s.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,a)=>(s.f[a](e,t),t),[])),s.u=e=>e+".js?minify=false&ver="+{415:"db479e559200f61cc5d0",687:"b1819847cb397d9ba556"}[e],s.miniCssF=e=>e+".css?minify=false&ver=aa92d10054a30881e47b",(()=>{if(!s.miniCssF)throw new Error("MiniCSSWithRTLPlugin was loaded before MiniCSSExtractPlugin");var e;s.miniCssF=(e=s.miniCssF,t=>{var a="rtl"===document.dir,o=e(t);return a?o.replace(/\.css(?:$|\?)/,".rtl$&"):o})})(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},a="@automattic/jetpack-forms/blocks:",s.l=(e,o,r,n)=>{if(t[e])t[e].push(o);else{var i,c;if(void 0!==r)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+r){i=u;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-webpack",a+r),i.src=e),t[e]=[o];var p=(a,o)=>{i.onerror=i.onload=null,clearTimeout(f);var r=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach(e=>e(o)),a)return a(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),c&&document.head.appendChild(i)}},o={687:0},s.f.wpI18n=(e,t)=>{o[e]?t.push(o[e]):0===o[e]&&t.push(o[e]=(e=>{var t=s(4252);return t&&t.downloadI18n?t.downloadI18n("dist/blocks/"+s.u(e),"jetpack-forms","plugin"):Promise.reject(new Error("I18n loader is not available. Check that WordPress is exporting wp.jpI18nLoader."))})(e).then(()=>{o[e]=!1},t=>{o[e]=0,console.error("Failed to fetch i18n data: ",t)}))},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.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 a=t.getElementsByTagName("script");if(a.length)for(var o=a.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=a[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),(()=>{if("undefined"!=typeof document){var e=e=>new Promise((t,a)=>{var o=s.miniCssF(e),r=s.p+o;if(((e,t)=>{for(var a=document.getElementsByTagName("link"),o=0;o<a.length;o++){var r=(s=a[o]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(r===e||r===t))return s}var n=document.getElementsByTagName("style");for(o=0;o<n.length;o++){var s;if((r=(s=n[o]).getAttribute("data-href"))===e||r===t)return s}})(o,r))return t();((e,t,a,o,r)=>{var n=document.createElement("link");n.rel="stylesheet",n.type="text/css",s.nc&&(n.nonce=s.nc),n.onerror=n.onload=a=>{if(n.onerror=n.onload=null,"load"===a.type)o();else{var s=a&&a.type,i=a&&a.target&&a.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+s+": "+i+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=s,c.request=i,n.parentNode&&n.parentNode.removeChild(n),r(c)}},n.href=t,a?a.parentNode.insertBefore(n,a.nextSibling):document.head.appendChild(n)})(e,r,null,t,a)}),t={8:0,111:0,320:0,625:0};s.f.miniCss=(a,o)=>{t[a]?o.push(t[a]):0!==t[a]&&{687:1}[a]&&o.push(t[a]=e(a).then(()=>{t[a]=0},e=>{throw delete t[a],e}))}}})(),(()=>{var e={8:0,111:0,320:0,625:0};s.f.j=(t,a)=>{var o=s.o(e,t)?e[t]:void 0;if(0!==o)if(o)a.push(o[2]);else{var r=new Promise((a,r)=>o=e[t]=[a,r]);a.push(o[2]=r);var n=s.p+s.u(t),i=new Error;s.l(n,a=>{if(s.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var r=a&&("load"===a.type?"missing":a.type),n=a&&a.target&&a.target.src;i.message="Loading chunk "+t+" failed.\n("+r+": "+n+")",i.name="ChunkLoadError",i.type=r,i.request=n,o[1](i)}},"chunk-"+t,t)}},s.O.j=t=>0===e[t];var t=(t,a)=>{var o,r,[n,i,c]=a,l=0;if(n.some(t=>0!==e[t])){for(o in i)s.o(i,o)&&(s.m[o]=i[o]);if(c)var d=c(s)}for(t&&t(a);l<n.length;l++)r=n[l],s.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return s.O(d)},a=globalThis.webpackChunk_automattic_jetpack_forms_blocks=globalThis.webpackChunk_automattic_jetpack_forms_blocks||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var i={};(()=>{"use strict";var e=s(2966),t=s(3042),a=s(3365);(0,t.A)(a.UU,a.W0,e.P)})(),i=s.O(i)})();