1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,2086,e=>{"use strict";let s=[{slug:"af",iso:"AF",name:"Afghanistan"},{slug:"ax",iso:"AX",name:"Ã
land Islands"},{slug:"al",iso:"AL",name:"Albania"},{slug:"dz",iso:"DZ",name:"Algeria"},{slug:"as",iso:"AS",name:"American Samoa"},{slug:"ad",iso:"AD",name:"Andorra"},{slug:"ao",iso:"AO",name:"Angola"},{slug:"ai",iso:"AI",name:"Anguilla"},{slug:"aq",iso:"AQ",name:"Antarctica"},{slug:"ag",iso:"AG",name:"Antigua and Barbuda"},{slug:"ar",iso:"AR",name:"Argentina"},{slug:"am",iso:"AM",name:"Armenia"},{slug:"aw",iso:"AW",name:"Aruba"},{slug:"au",iso:"AU",name:"Australia"},{slug:"at",iso:"AT",name:"Austria"},{slug:"az",iso:"AZ",name:"Azerbaijan"},{slug:"bs",iso:"BS",name:"Bahamas"},{slug:"bh",iso:"BH",name:"Bahrain"},{slug:"bd",iso:"BD",name:"Bangladesh"},{slug:"bb",iso:"BB",name:"Barbados"},{slug:"by",iso:"BY",name:"Belarus"},{slug:"be",iso:"BE",name:"Belgium"},{slug:"bz",iso:"BZ",name:"Belize"},{slug:"bj",iso:"BJ",name:"Benin"},{slug:"bm",iso:"BM",name:"Bermuda"},{slug:"bt",iso:"BT",name:"Bhutan"},{slug:"bo",iso:"BO",name:"Bolivia"},{slug:"bq",iso:"BQ",name:"Bonaire, Sint Eustatius and Saba"},{slug:"ba",iso:"BA",name:"Bosnia and Herzegovina"},{slug:"bw",iso:"BW",name:"Botswana"},{slug:"bv",iso:"BV",name:"Bouvet Island"},{slug:"br",iso:"BR",name:"Brazil"},{slug:"io",iso:"IO",name:"British Indian Ocean Territory"},{slug:"bn",iso:"BN",name:"Brunei Darussalam"},{slug:"bg",iso:"BG",name:"Bulgaria"},{slug:"bf",iso:"BF",name:"Burkina Faso"},{slug:"bi",iso:"BI",name:"Burundi"},{slug:"cv",iso:"CV",name:"Cabo Verde"},{slug:"kh",iso:"KH",name:"Cambodia"},{slug:"cm",iso:"CM",name:"Cameroon"},{slug:"ca",iso:"CA",name:"Canada"},{slug:"ky",iso:"KY",name:"Cayman Islands"},{slug:"cf",iso:"CF",name:"Central African Republic"},{slug:"td",iso:"TD",name:"Chad"},{slug:"cl",iso:"CL",name:"Chile"},{slug:"cn",iso:"CN",name:"China"},{slug:"cx",iso:"CX",name:"Christmas Island"},{slug:"cc",iso:"CC",name:"Cocos (Keeling) Islands"},{slug:"co",iso:"CO",name:"Colombia"},{slug:"km",iso:"KM",name:"Comoros"},{slug:"cg",iso:"CG",name:"Congo"},{slug:"cd",iso:"CD",name:"Congo, Democratic Republic of the"},{slug:"ck",iso:"CK",name:"Cook Islands"},{slug:"cr",iso:"CR",name:"Costa Rica"},{slug:"ci",iso:"CI",name:"Côte d'Ivoire"},{slug:"hr",iso:"HR",name:"Croatia"},{slug:"cu",iso:"CU",name:"Cuba"},{slug:"cw",iso:"CW",name:"Curaçao"},{slug:"cy",iso:"CY",name:"Cyprus"},{slug:"cz",iso:"CZ",name:"Czechia"},{slug:"dk",iso:"DK",name:"Denmark"},{slug:"dj",iso:"DJ",name:"Djibouti"},{slug:"dm",iso:"DM",name:"Dominica"},{slug:"do",iso:"DO",name:"Dominican Republic"},{slug:"ec",iso:"EC",name:"Ecuador"},{slug:"eg",iso:"EG",name:"Egypt"},{slug:"sv",iso:"SV",name:"El Salvador"},{slug:"gq",iso:"GQ",name:"Equatorial Guinea"},{slug:"er",iso:"ER",name:"Eritrea"},{slug:"ee",iso:"EE",name:"Estonia"},{slug:"sz",iso:"SZ",name:"Eswatini"},{slug:"et",iso:"ET",name:"Ethiopia"},{slug:"fk",iso:"FK",name:"Falkland Islands"},{slug:"fo",iso:"FO",name:"Faroe Islands"},{slug:"fj",iso:"FJ",name:"Fiji"},{slug:"fi",iso:"FI",name:"Finland"},{slug:"fr",iso:"FR",name:"France"},{slug:"gf",iso:"GF",name:"French Guiana"},{slug:"pf",iso:"PF",name:"French Polynesia"},{slug:"tf",iso:"TF",name:"French Southern Territories"},{slug:"ga",iso:"GA",name:"Gabon"},{slug:"gm",iso:"GM",name:"Gambia"},{slug:"ge",iso:"GE",name:"Georgia"},{slug:"de",iso:"DE",name:"Germany"},{slug:"gh",iso:"GH",name:"Ghana"},{slug:"gi",iso:"GI",name:"Gibraltar"},{slug:"gr",iso:"GR",name:"Greece"},{slug:"gl",iso:"GL",name:"Greenland"},{slug:"gd",iso:"GD",name:"Grenada"},{slug:"gp",iso:"GP",name:"Guadeloupe"},{slug:"gu",iso:"GU",name:"Guam"},{slug:"gt",iso:"GT",name:"Guatemala"},{slug:"gg",iso:"GG",name:"Guernsey"},{slug:"gn",iso:"GN",name:"Guinea"},{slug:"gw",iso:"GW",name:"Guinea-Bissau"},{slug:"gy",iso:"GY",name:"Guyana"},{slug:"ht",iso:"HT",name:"Haiti"},{slug:"hm",iso:"HM",name:"Heard Island and McDonald Islands"},{slug:"va",iso:"VA",name:"Holy See"},{slug:"hn",iso:"HN",name:"Honduras"},{slug:"hk",iso:"HK",name:"Hong Kong"},{slug:"hu",iso:"HU",name:"Hungary"},{slug:"is",iso:"IS",name:"Iceland"},{slug:"in",iso:"IN",name:"India"},{slug:"id",iso:"ID",name:"Indonesia"},{slug:"ir",iso:"IR",name:"Iran"},{slug:"iq",iso:"IQ",name:"Iraq"},{slug:"ie",iso:"IE",name:"Ireland"},{slug:"im",iso:"IM",name:"Isle of Man"},{slug:"il",iso:"IL",name:"Israel"},{slug:"it",iso:"IT",name:"Italy"},{slug:"jm",iso:"JM",name:"Jamaica"},{slug:"jp",iso:"JP",name:"Japan"},{slug:"je",iso:"JE",name:"Jersey"},{slug:"jo",iso:"JO",name:"Jordan"},{slug:"kz",iso:"KZ",name:"Kazakhstan"},{slug:"ke",iso:"KE",name:"Kenya"},{slug:"ki",iso:"KI",name:"Kiribati"},{slug:"kp",iso:"KP",name:"North Korea"},{slug:"kr",iso:"KR",name:"South Korea"},{slug:"kw",iso:"KW",name:"Kuwait"},{slug:"kg",iso:"KG",name:"Kyrgyzstan"},{slug:"la",iso:"LA",name:"Laos"},{slug:"lv",iso:"LV",name:"Latvia"},{slug:"lb",iso:"LB",name:"Lebanon"},{slug:"ls",iso:"LS",name:"Lesotho"},{slug:"lr",iso:"LR",name:"Liberia"},{slug:"ly",iso:"LY",name:"Libya"},{slug:"li",iso:"LI",name:"Liechtenstein"},{slug:"lt",iso:"LT",name:"Lithuania"},{slug:"lu",iso:"LU",name:"Luxembourg"},{slug:"mo",iso:"MO",name:"Macao"},{slug:"mg",iso:"MG",name:"Madagascar"},{slug:"mw",iso:"MW",name:"Malawi"},{slug:"my",iso:"MY",name:"Malaysia"},{slug:"mv",iso:"MV",name:"Maldives"},{slug:"ml",iso:"ML",name:"Mali"},{slug:"mt",iso:"MT",name:"Malta"},{slug:"mh",iso:"MH",name:"Marshall Islands"},{slug:"mq",iso:"MQ",name:"Martinique"},{slug:"mr",iso:"MR",name:"Mauritania"},{slug:"mu",iso:"MU",name:"Mauritius"},{slug:"yt",iso:"YT",name:"Mayotte"},{slug:"mx",iso:"MX",name:"Mexico"},{slug:"fm",iso:"FM",name:"Micronesia"},{slug:"md",iso:"MD",name:"Moldova"},{slug:"mc",iso:"MC",name:"Monaco"},{slug:"mn",iso:"MN",name:"Mongolia"},{slug:"me",iso:"ME",name:"Montenegro"},{slug:"ms",iso:"MS",name:"Montserrat"},{slug:"ma",iso:"MA",name:"Morocco"},{slug:"mz",iso:"MZ",name:"Mozambique"},{slug:"mm",iso:"MM",name:"Myanmar"},{slug:"na",iso:"NA",name:"Namibia"},{slug:"nr",iso:"NR",name:"Nauru"},{slug:"np",iso:"NP",name:"Nepal"},{slug:"nl",iso:"NL",name:"Netherlands"},{slug:"nc",iso:"NC",name:"New Caledonia"},{slug:"nz",iso:"NZ",name:"New Zealand"},{slug:"ni",iso:"NI",name:"Nicaragua"},{slug:"ne",iso:"NE",name:"Niger"},{slug:"ng",iso:"NG",name:"Nigeria"},{slug:"nu",iso:"NU",name:"Niue"},{slug:"nf",iso:"NF",name:"Norfolk Island"},{slug:"mk",iso:"MK",name:"North Macedonia"},{slug:"mp",iso:"MP",name:"Northern Mariana Islands"},{slug:"no",iso:"NO",name:"Norway"},{slug:"om",iso:"OM",name:"Oman"},{slug:"pk",iso:"PK",name:"Pakistan"},{slug:"pw",iso:"PW",name:"Palau"},{slug:"ps",iso:"PS",name:"Palestine"},{slug:"pa",iso:"PA",name:"Panama"},{slug:"pg",iso:"PG",name:"Papua New Guinea"},{slug:"py",iso:"PY",name:"Paraguay"},{slug:"pe",iso:"PE",name:"Peru"}
1,{slug:"ph",iso:"PH",name:"Philippines"},{slug:"pn",iso:"PN",name:"Pitcairn"},{slug:"pl",iso:"PL",name:"Poland"},{slug:"pt",iso:"PT",name:"Portugal"},{slug:"pr",iso:"PR",name:"Puerto Rico"},{slug:"qa",iso:"QA",name:"Qatar"},{slug:"re",iso:"RE",name:"Réunion"},{slug:"ro",iso:"RO",name:"Romania"},{slug:"ru",iso:"RU",name:"Russia"},{slug:"rw",iso:"RW",name:"Rwanda"},{slug:"bl",iso:"BL",name:"Saint Barthélemy"},{slug:"sh",iso:"SH",name:"Saint Helena"},{slug:"kn",iso:"KN",name:"Saint Kitts and Nevis"},{slug:"lc",iso:"LC",name:"Saint Lucia"},{slug:"mf",iso:"MF",name:"Saint Martin"},{slug:"pm",iso:"PM",name:"Saint Pierre and Miquelon"},{slug:"vc",iso:"VC",name:"Saint Vincent and the Grenadines"},{slug:"ws",iso:"WS",name:"Samoa"},{slug:"sm",iso:"SM",name:"San Marino"},{slug:"st",iso:"ST",name:"Sao Tome and Principe"},{slug:"sa",iso:"SA",name:"Saudi Arabia"},{slug:"sn",iso:"SN",name:"Senegal"},{slug:"rs",iso:"RS",name:"Serbia"},{slug:"sc",iso:"SC",name:"Seychelles"},{slug:"sl",iso:"SL",name:"Sierra Leone"},{slug:"sg",iso:"SG",name:"Singapore"},{slug:"sx",iso:"SX",name:"Sint Maarten"},{slug:"sk",iso:"SK",name:"Slovakia"},{slug:"si",iso:"SI",name:"Slovenia"},{slug:"sb",iso:"SB",name:"Solomon Islands"},{slug:"so",iso:"SO",name:"Somalia"},{slug:"za",iso:"ZA",name:"South Africa"},{slug:"gs",iso:"GS",name:"South Georgia and the South Sandwich Islands"},{slug:"ss",iso:"SS",name:"South Sudan"},{slug:"es",iso:"ES",name:"Spain"},{slug:"lk",iso:"LK",name:"Sri Lanka"},{slug:"sd",iso:"SD",name:"Sudan"},{slug:"sr",iso:"SR",name:"Suriname"},{slug:"sj",iso:"SJ",name:"Svalbard and Jan Mayen"},{slug:"se",iso:"SE",name:"Sweden"},{slug:"ch",iso:"CH",name:"Switzerland"},{slug:"sy",iso:"SY",name:"Syria"},{slug:"tw",iso:"TW",name:"Taiwan"},{slug:"tj",iso:"TJ",name:"Tajikistan"},{slug:"tz",iso:"TZ",name:"Tanzania"},{slug:"th",iso:"TH",name:"Thailand"},{slug:"tl",iso:"TL",name:"Timor-Leste"},{slug:"tg",iso:"TG",name:"Togo"},{slug:"tk",iso:"TK",name:"Tokelau"},{slug:"to",iso:"TO",name:"Tonga"},{slug:"tt",iso:"TT",name:"Trinidad and Tobago"},{slug:"tn",iso:"TN",name:"Tunisia"},{slug:"tr",iso:"TR",name:"Türkiye"},{slug:"tm",iso:"TM",name:"Turkmenistan"},{slug:"tc",iso:"TC",name:"Turks and Caicos Islands"},{slug:"tv",iso:"TV",name:"Tuvalu"},{slug:"ug",iso:"UG",name:"Uganda"},{slug:"ua",iso:"UA",name:"Ukraine"},{slug:"ae",iso:"AE",name:"United Arab Emirates"},{slug:"uk",iso:"GB",name:"United Kingdom"},{slug:"us",iso:"US",name:"United States"},{slug:"um",iso:"UM",name:"United States Minor Outlying Islands"},{slug:"uy",iso:"UY",name:"Uruguay"},{slug:"uz",iso:"UZ",name:"Uzbekistan"},{slug:"vu",iso:"VU",name:"Vanuatu"},{slug:"ve",iso:"VE",name:"Venezuela"},{slug:"vn",iso:"VN",name:"Vietnam"},{slug:"vg",iso:"VG",name:"Virgin Islands (British)"},{slug:"vi",iso:"VI",name:"Virgin Islands (U.S.)"},{slug:"wf",iso:"WF",name:"Wallis and Futuna"},{slug:"eh",iso:"EH",name:"Western Sahara"},{slug:"ye",iso:"YE",name:"Yemen"},{slug:"zm",iso:"ZM",name:"Zambia"},{slug:"zw",iso:"ZW",name:"Zimbabwe"}],a={gb:"uk"},t=new Map(s.map(e=>[e.slug,e]));function n(e){let s=e.toLowerCase(),n=a[s]??s;return t.has(n)?n:null}function o(e){let s=n(e);return null!==s?t.get(s)??null:null}s.map(e=>[e.iso,e]);let i=new Set(["GB","US","AE","NL","PH","BS","DO","CF","CG","CD","CI","KP","KR","MH","FM","MV","SB","VA","VG","VI","TC","KY","FK","GS","UM"]);function r(e){return i.has(e.iso.toUpperCase())?`the ${e.name}`:e.name}let l=new Set(["GB"]);function u(e){return l.has(e.iso.toUpperCase())}function d(e){return`https://flagcdn.com/w80/${e.toLowerCase()}.png`}function c(e){return`https://flagcdn.com/w160/${e.toLowerCase()}.png`}e.s(["COUNTRY_LIST",()=>s,"countryDisplayName",()=>r,"flagUrlForIso",()=>d,"flagUrlForIso2x",()=>c,"getCountryBySlug",()=>o,"isCountryMapped",()=>u,"resolveCountrySlug",()=>n])},72321,e=>{"use strict";var s=e.i(37653),a=e.i(22799),t=e.i(1831),n=e.i(16867),o=e.i(2086);function i(e){let s=e.split("/").filter(Boolean)[0]?.toLowerCase();if(void 0===s)return"/";if("united-kingdom"===s)return"/uk";if("united-states"===s)return"/us";let a=(0,o.resolveCountrySlug)(s);return null!==a?`/${a}`:"/"}
1function r(){let e=i((0,a.usePathname)()),[o,r]=(0,s.useState)(null);return(0,s.useEffect)(()=>{if(!(0,n.isAuthenticated)())return;let e=!1;return(0,t.fetchUser)().then(s=>{e||r(l(s))}).catch(()=>{e||r("/app")}),()=>{e=!0}},[]),o??e}function l(e){return e.is_representative||e.is_claimed_candidate?e.public_profile_url??"/representative/profile":"/app"}function u(e){return{href:e.public_profile_url??"/representative/profile",label:"Back to profile"}}e.s(["getAuthenticatedHomeHref",()=>l,"getRepresentativeResponsesBackLink",()=>u,"regionalHomeHrefFromPathname",()=>i,"useLogoHref",()=>r])},33090,e=>{"use strict";var s=e.i(19531),a=e.i(37653),t=e.i(90222),n=e.i(11359),o=e.i(27339),i=e.i(1831),r=e.i(15127);let l="standard",u=["Full constituency dashboard","Theme & issue tracking","Ward-level breakdowns","Weekly motion digests","Profile customisation"];function d({open:e,onClose:d,trialExpired:c}){let[m,g]=(0,a.useState)(!1),[p,h]=(0,a.useState)(null);if(!e)return null;let x=()=>{(0,r.trackGa4Event)("modal_close",{modal:"pricing"}),d()},b=async()=>{g(!0),h(null);try{(0,r.trackGa4Event)("pricing_modal_cta_click",{source:"pricing_modal",tier:l}),(0,r.trackGa4Event)("subscribe_start",{source:"pricing_modal",tier:l});let{checkout_url:e}=await (0,i.createCheckoutSession)(l);window.location.assign(e)}catch{h("Something went wrong. Please try again."),g(!1)}};return(0,s.jsxs)("div",{className:"fixed inset-0 z-10000 flex items-end justify-center sm:items-center sm:p-4",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/60",onClick:x}),(0,s.jsxs)("div",{className:"relative max-h-[90vh] w-full overflow-y-auto rounded-t-card bg-card px-6 pb-8 pt-8 shadow-2xl sm:max-w-md sm:rounded-card sm:px-8",children:[(0,s.jsx)("button",{onClick:x,className:"absolute right-4 top-4 roun
1ded-full p-1 text-muted-foreground hover:bg-accent hover:text-foreground",children:(0,s.jsx)(t.X,{className:"h-5 w-5"})}),(0,s.jsxs)("div",{className:"mb-6 text-center",children:[(0,s.jsx)("h2",{className:"text-2xl font-bold text-foreground",children:c?"Subscribe to Continue":"Subscribe to State"}),(0,s.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:c?"Your free trial has ended. Subscribe to keep your dashboard.":"Full access to your constituency dashboard."})]}),p&&(0,s.jsx)("p",{className:"mb-4 rounded-control bg-destructive-surface px-3 py-2 text-center text-sm text-destructive",children:p}),(0,s.jsxs)("div",{className:"flex flex-col rounded-card border-2 border-primary p-6 shadow-md",children:[(0,s.jsxs)("div",{className:"mb-4 flex items-center gap-2",children:[(0,s.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-card bg-primary",children:(0,s.jsx)(o.Zap,{className:"h-4 w-4 text-primary-foreground"})}),(0,s.jsx)("h3",{className:"text-lg font-bold text-foreground",children:"Standard"})]}),(0,s.jsxs)("div",{className:"mb-5",children:[(0,s.jsxs)("span",{className:"text-3xl font-bold text-foreground",children:["£",50]}),(0,s.jsx)("span",{className:"text-sm text-muted-foreground",children:"/month"})]}),(0,s.jsx)("ul",{className:"mb-6 flex-1 space-y-2.5",children:u.map(e=>(0,s.jsxs)("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[(0,s.jsx)(n.Check,{className:"mt-0.5 h-4 w-4 shrink-0 text-success"}),e]},e))}),(0,s.jsx)("button",{onClick:b,disabled:m,className:"w-full rounded-control bg-primary px-4 py-3 text-sm font-semibold text-primary-foreground transition-colors hover:bg-primary/90 disabled:cursor-not-allowed disabled:opacity-50",children:m?"Redirecting...":"Subscribe"})]}),(0,s.jsx)("p",{className:"mt-5 text-center text-xs text-muted-foreground",children:"Secure payment via Stripe. Cancel anytime."})]})]})}e.s(["default",()=>d])},67535,e=>{"use strict";let s=(0,e.i(32407).default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);e.s(["Lock",()=>s],67535)},81165,e=>{"use strict";var s=e.i(37653);let a=new Set(["votesforschools.state.com","votesforschools.staging.state.com","votesforschools.localhost"]);function t(){let[e,t]=(0,s.useState)({homepageSignupEnabled:!0,showMpDashboardButtons:!0,citizenLoginEnabled:!0,signupWaitlistPopupEnabled:!0,staticPagesOracleEnabled:!0,votesForSchoolsOracleEnabled:!1,isVotesForSchoolsHost:!1,enableLetsGetGoing:!0,useNewUkLandingPage:!1,ukElectionBannerEnabled:!0,settingsLoaded:!1,shouldShowSignupWaitlistPopup:!0,letsGetGoingDisabledCountrySlugs:[]});return(0,s.useEffect)(()=>{let e=a.has(window.location.hostname.toLowerCase());fetch("https://production-api.state.com/api/settings").then(e=>e.ok?e.json():null).then(s=>{s?t(a=>{let t="boolean"==typeof s.votes_for_schools_oracle_enabled?s.votes_for_schools_oracle_enabled:a.votesForSchoolsOracleEnabled,n="boolean"==typeof s.static_pages_oracle_enabled?s.static_pages_oracle_enabled:a.staticPagesOracleEnabled,o="boolean"==typeof s.use_new_uk_landing_page?s.use_new_uk_landing_page:a.useNewUkLandingPage,i="boolean"==typeof s.signup_waitlist_popup_enabled?s.signup_waitlist_popup_enabled:a.signupWaitlistPopupEnabled;return{homepageSignupEnabled:"boolean"==typeof s.homepage_signup_enabled?s.homepage_signup_enabled:a.homepageSignupEnabled,showMpDashboardButtons:"boolean"==typeof s.show_mp_dashboard_buttons?s.show_mp_dashboard_buttons:a.showMpDashboardButtons,citizenLoginEnabled:"boolean"==typeof s.citizen_login_enabled?s.citizen_login_enabled:a.citizenLoginEnabled,signupWaitlistPopupEnabled:i,staticPagesOracleEnabled:n||e&&t,votesForSchoolsOracleEnabled:t,isVotesForSchoolsHost:e,enableLetsGetGoing:"boolean"==typeof s.enable_lets_get_going?s.enable_lets_get_going:a.enableLetsGetGoing,useNewUkLandingPage:o,ukElectionBannerEnabled:"boolean"==typeof s.uk_election_banner_enabled?s.uk_election_banner_enabled:a.ukElectionBannerEnabled,settingsLoaded:!0,shouldShowSignupWaitlistPopup:i&&!o,letsGetGoingDisabledCountrySlugs:Array.isArray(s.lets_get_going_disabled_country_slugs)?s.lets_get_going_disabled_country_slugs.filter(e=>"string"==typeof e):a.letsGetGoingDisabledCountrySlugs}}):t(s=>({...s,isVotesForSchoolsHost:e,settingsLoaded:!0}))}).catch(()=>{t(s=>({...s,isVotesForSchoolsHost:e,settingsLoaded:!0}))})},[]),e}e.s(["usePublicSettings",()=>t])},79774,e=>{"use strict";var s=e.i(19531),a=e.i(74239),t=e.i(90222),n=e.i(37653),o=e.i(22799),i=e.i(46149),r=e.i(15127),l=e.i(81165);function u({open:e,onClose:i,constituency:u,country:d,source:c,title:m,description:g,iconSrc:p,iconAlt:h,hideDescription:x=!1,hideRoleSelection:b=!1,defaultRole:f="Citizen",submitLabel:y,dialogWidthClass:v,variant:j="default",enforceUkWaitlistFlag:w=!1}){let k=(0,o.useRouter)(),{shouldShowSignupWaitlistPopup:N}
1=(0,l.usePublicSettings)(),[S,C]=(0,n.useState)(""),[_,E]=(0,n.useState)(null),[M,G]=(0,n.useState)(!1),[B,P]=(0,n.useState)(!1),[L,A]=(0,n.useState)(null),I=(0,n.useRef)(!1);async function T(e){e.preventDefault();let s=b?f:_;if(!S||!s)return void A("Please fill in all fields");if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(S))return void A("Please enter a valid email address");try{if(A(null),G(!0),!(await fetch("https://production-api.state.com/api/waitlist-signups",{method:"POST",headers:{"Content-Type":"application/json",...{"X-State-Frontend-Origin":window.location.origin}},body:JSON.stringify({email:S.trim(),type:s,source:c??"Header Signup Button",constituency:u||null,country:d?d.toUpperCase():null})})).ok)throw Error("Failed to submit. Please try again.");(0,r.trackGa4Event)("generate_lead",{source:c??"Header Signup Button",login_as:s??void 0,country:d?d.toUpperCase():void 0}),(0,r.trackGa4Event)("sign_up_dialog_submit",{country:d?d.toUpperCase():void 0,source:c??"Header Signup Button"}),P(!0),window.setTimeout(()=>{i()},2e3)}catch(e){A(e instanceof Error?e.message:"Something went wrong. Please try again."),G(!1)}}return((0,n.useEffect)(()=>{let s=e&&!I.current;I.current=e,e&&(s&&(0,r.trackGa4Event)("sign_up_dialog_open",{source:c??"Header Signup Button",country:d?d.toUpperCase():void 0}),C(""),E(b?f:null),P(!1),G(!1),A(null))},[d,f,b,e,c]),(0,n.useEffect)(()=>{let s=d?.toUpperCase()==="GB";e&&w&&s&&!N&&(i(),k.push("/login"))},[d,w,i,e,k,N]),(0,n.useEffect)(()=>{function s(s){"Escape"===s.key&&e&&i()}if(e)return document.addEventListener("keydown",s),document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",s),document.body.style.overflow=""}},[e,i]),e)?"postElectionCouncillor"===j?(0,s.jsxs)("div",{className:"fixed inset-0 z-9999 flex items-center justify-center p-4",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/30 backdrop-blur-sm",onClick:i}),(0,s.jsx)("div",{className:"relative z-10 w-full max-w-[520px]",onClick:e=>e.stopPropagation(),children:(0,s.jsxs)("div",{className:"relative rounded-card border border-border bg-card px-5 py-6 shadow-[0_12px_32px_rgba(0,0,0,0.12)] sm:px-7 sm:py-7",children:[(0,s.jsx)("button",{onClick:i,className:"absolute right-4 top-4 flex h-8 w-8 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-accent hover:text-foreground","aria-label":"Close",children:(0,s.jsx)(t.X,{className:"h-4 w-4"})}),B?(0,s.jsxs)("div",{className:"py-8 text-center",children:[(0,s.jsx)("div",{className:"mx-auto mb-5 flex h-16 w-16 items-center justify-center rounded-full bg-success/10",children:(0,s.jsx)("svg",{className:"h-8 w-8 text-success",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),(0,s.jsx)("p",{className:"text-3xl font-bold tracking-[-0.03em] text-foreground",children:"We'll send you the link."}),(0,s.jsx)("p",{className:"mt-3 text-lg text-muted-foreground",children:"Thanks for joining the list."})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"mb-3 text-sm font-medium uppercase tracking-[0.08em] text-muted-foreground sm:text-base",children:"After the election"}),(0,s.jsx)("h2",{className:"pr-8 text-[22px] font-bold leading-tight tracking-[-0.03em] text-foreground sm:text-2xl",children:"Contact your councillor on State.com"}),(0,s.jsx)("p",{className:"mt-4 text-base leading-[1.35] tracking-[-0.02em] text-muted-foreground sm:text-lg",children:"Once results are in, we'll send you a one-tap way to contact your councillor on State.com about the issues that matter to you."}),(0,s.jsxs)("form",{onSubmit:T,className:"mt-5",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[(0,s.jsx)("input",{type:"email",placeholder:"[email protected]",value:S,onChange:e=>{C(e.target.value),A(null)},className:"h-12 w-full rounded-control border border-border px-4 text-base tracking-[-0.02em] text-foreground placeholder-muted-foreground outline-none transition-colors focus:border-primary sm:h-14 sm:min-w-0 sm:flex-1 sm:px-5 sm:text-lg"}),(0,s.jsx)("button",{type:"submit",disabled:!S||M,className:`h-12 w-full rounded-control px-6 text-base font-semibold tracking-[-0.02em] text-primary-foreground transition-all disabled:cursor-not-allowed sm:h-14 sm:w-auto
1sm:shrink-0 sm:text-lg ${S&&!M?"bg-primary hover:bg-primary/90":"bg-primary/45"}`,children:M?"Sending...":y??"Send me the link"})]}),L&&(0,s.jsx)("p",{className:"mt-3 text-sm text-destructive",children:L})]}),(0,s.jsx)("p",{className:"mt-4 text-sm leading-snug tracking-[-0.02em] text-muted-foreground sm:text-base",children:"Optional. You can close this and your results stay visible."})]})]})})]}):(0,s.jsxs)("div",{className:"fixed inset-0 z-9999 flex items-center justify-center p-4",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:i}),(0,s.jsx)("div",{className:`relative z-10 w-full ${v??"max-w-md"}`,onClick:e=>e.stopPropagation(),children:(0,s.jsxs)("div",{className:"relative overflow-hidden rounded-card border border-border bg-card shadow-2xl",children:[(0,s.jsx)("button",{onClick:i,className:"absolute right-4 top-4 flex h-8 w-8 items-center justify-center rounded-full bg-muted text-muted-foreground transition-colors hover:bg-accent","aria-label":"Close",children:(0,s.jsx)(t.X,{className:"h-4 w-4"})}),(0,s.jsx)("div",{className:"p-6 md:p-8",children:B?(0,s.jsxs)("div",{className:"py-8 text-center",children:[(0,s.jsx)("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-success/10",children:(0,s.jsx)("svg",{className:"h-8 w-8 text-success",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),(0,s.jsx)("p",{className:"text-xl font-semibold text-foreground",children:"You're on the list!"}),(0,s.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"We'll be in touch soon."})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mb-5 flex justify-center",children:p?(0,s.jsx)("img",{src:p,alt:h??"Flag",className:"h-12 w-[72px] rounded-md object-cover shadow-sm ring-1 ring-black/10",width:72,height:48}):(0,s.jsx)(a.default,{src:"/images/email/state-logo.svg",alt:"State Logo",className:"h-14 w-14 rounded-2xl object-cover",width:56,height:56})}),(0,s.jsx)("h2",{className:`text-center text-lg font-bold leading-snug text-foreground md:text-xl ${x?"mb-5":"mb-2"}`,children:m??"Join the Waitlist"}),!x&&(0,s.jsx)("p",{className:"mb-6 text-center text-sm text-muted-foreground md:text-base",children:g??"Be the first to know when State launches."}),(0,s.jsxs)("form",{onSubmit:T,className:"space-y-4",children:[!b&&(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"mb-2 text-sm font-semibold text-foreground",children:"Who are you?"}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-2",children:[{value:"Citizen",label:"Citizen"},{value:"Representative",label:"Representative"}].map(e=>(0,s.jsx)("button",{type:"button",onClick:()=>{E(e.value),A(null)},className:`rounded-control py-2.5 text-center text-sm font-medium transition-all ${_===e.value?"bg-primary text-primary-foreground shadow-md":"bg-secondary text-secondary-foreground hover:bg-accent"}`,children:e.label},e.value))})]}),(0,s.jsx)("input",{type:"email",placeholder:"Enter your email",value:S,onChange:e=>{C(e.target.value),A(null)},className:"w-full rounded-control border-2 border-border px-4 py-3 text-foreground placeholder-muted-foreground outline-none transition-colors focus:border-primary"}),L&&(0,s.jsx)("p",{className:"text-sm text-destructive",children:L}),(0,s.jsx)("button",{type:"submit",disabled:!S||!b&&!_||M,className:"w-full rounded-control bg-primary py-3 font-semibold text-primary-foreground transition-all hover:bg-primary/90 disabled:cursor-not-allowed disabled:opacity-50",children:M?"Joining...":y??"Join Waitlist"})]})]})})]})})]}):null}function d({className:e,onClick:a}){return"signed-out"!==(0,i.useAuthStatus)()?null:(0,s.jsx)("button",{type:"button",onClick:a,className:`shrink-0 whitespace-nowrap rounded-control bg-primary px-4 py-2 text-sm font-semibold text-primary-foreground transition-all hover:bg-primary/90 active:scale-[0.98] ${e??""}`,children:"Sign Up"})}e.s(["SignupButton",()=>d,"SignupDialog",()=>u])},9693,e=>{"use strict";var s=e.i(19531);let a={primary:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-accent",ghost:"text-foreground hover:bg-accent",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90"},t={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm"};function n(e="secondary",s="sm",o){return["inline-flex items-center justify-center gap-2 rounded-control font-semibold transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:opacity-50",a[e],t[s],o].filter(
1Boolean).join(" ")}function o({variant:e="secondary",size:a="sm",className:t,type:o="button",...i}){return(0,s.jsx)("button",{type:o,className:n(e,a,t),...i})}e.s(["Button",()=>o,"buttonClasses",()=>n])},27339,e=>{"use strict";let s=(0,e.i(32407).default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["Zap",()=>s],27339)},95036,e=>{"use strict";let s=(0,e.i(32407).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",()=>s],95036)},61383,e=>{"use strict";var s=e.i(19531),a=e.i(74239),t=e.i(38253),n=e.i(67535),o=e.i(22799),i=e.i(37653),r=e.i(1831),l=e.i(16867),u=e.i(15127);e.i(453);var d=e.i(95036),c=e.i(90222);function m({open:e,onClose:a,country:t}){let[n,o]=(0,i.useState)(""),[r,l]=(0,i.useState)(""),[m,g]=(0,i.useState)(""),[p,h]=(0,i.useState)(""),[x,b]=(0,i.useState)(!1),[f,y]=(0,i.useState)(!1),[v,j]=(0,i.useState)(null),w=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,k=n.trim().length>0&&m.trim().length>0&&!!r&&w.test(r),N=[{src:"/images/partners/futures-for-all.jpg",alt:"Futures For All",className:"h-10"},{src:"/images/partners/votes-for-schools.png",alt:"Votes for Schools",className:"h-11"},{src:"/images/partners/london-age-uk.png",alt:"London Age UK",className:"h-9"},{src:"/images/partners/advocacy-academy.png",alt:"Advocacy Academy",className:"h-9"},{src:"/images/partners/zulu-group.png",alt:"Zulu Group",className:"h-10"}],S=[...N,...N];async function C(e){if(e.preventDefault(),!n.trim())return void j("Please enter your full name");if(!r.trim())return void j("Please enter your email");if(!w.test(r.trim()))return void j("Please enter a valid email");if(!m.trim())return void j("Please enter your organisation");try{if(j(null),b(!0),!(await fetch("https://production-api.state.com/api/partner-interest",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({full_name:n.trim(),email:r.trim(),organisation:m.trim(),country:t?t.toUpperCase():null,message:p.trim()||null})})).ok)throw Error("Failed to submit. Please try again.");(0,u.trackGa4Event)("generate_lead",{source:"about_page",country:t?t.toUpperCase():void 0}),b(!1),y(!0),window.setTimeout(()=>{a()},2500)}catch(e){j(e instanceof Error?e.message:"Something went wrong. Please try again."),b(!1)}}return((0,i.useEffect)(()=>{e&&(o(""),l(""),g(""),h(""),y(!1),b(!1),j(null))},[e]),(0,i.useEffect)(()=>{function s(s){"Escape"===s.key&&e&&a()}if(e)return document.addEventListener("keydown",s),document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",s),document.body.style.overflow=""}},[e,a]),e)?(0,s.jsxs)("div",{className:"fixed inset-0 z-9999 flex items-center justify-center p-4",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:a}),(0,s.jsx)("div",{className:"relative z-10 w-full max-w-[1280px]",onClick:e=>e.stopPropagation(),children:(0,s.jsxs)("div",{className:"relative max-h-[90dvh] overflow-x-hidden overflow-y-auto rounded-card border border-border bg-card shadow-2xl",children:[(0,s.jsx)("button",{onClick:a,className:"absolute right-4 top-4 z-10 flex h-7 w-7 items-center justify-center rounded-full bg-muted text-muted-foreground transition-colors hover:bg-accent hover:text-foreground","aria-label":"Close",children:(0,s.jsx)(c.X,{className:"h-3.5 w-3.5"})}),(0,s.jsxs)("div",{className:"grid md:grid-cols-2",children:[(0,s.jsxs)("div",{className:"flex min-w-0 flex-col overflow-hidden border-b border-border bg-muted p-6 md:border-b-0 md:border-r md:p-8",children:[(0,s.jsx)("h1",{className:"mb-4 font-extrabold tracking-tight text-foreground",style:{fontSize:"32px",lineHeight:"34px",letterSpacing:"-0.32px"},children:"Master Your Political Power"}),(0,s.jsx)("p",{className:"mb-6 font-light text-foreground",style:{fontSize:"14px",lineHeight:"20px",letterSpacing:"-0.32px"},children:"Impact decision making like never before - State empowers you with information and connects you directly with the right decision maker, turning your voice into a powerful signal that drives real change."}),(0,s.jsx)("h2",{className:"mb-4 font-extrabold tracking-tight text-primary",style:{fontSize:"20px",lineHeight:"28px",letterSpacing:"-0.32px"},children:"Why it matters"}),(0,s.jsxs)("div",{className:"space-y-4 font-light text-foreground",style:{fontSize:"14px",lineHeight:"20px",letterSpacing:"-0.32px"},children:[(0,s.jsxs)("p",{children:["Modern democracies struggle not because people don't care, but because citizen"," ",(0,s.jsx)("strong",{className:"font-extrabold",children:"voices are atomised and hard to make sense of"}),". One representative speaks for hundreds of thousands â yet most citizens are powerless, cut off from essential knowledge, and unable to take action together."]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{className:"font-extrabold",children:"State is the upgrade:"})," ","we've mapped the power structures that serve you, compiled the knowledge bases that affect you, and are creating effortless communication between you and decision-makers at all levels."]}),(0,s.jsx)("p",{children:"By coordinating what all citizens care about, we transform individual concerns into shared understanding, collective wisdom, and policy signals that cannot be ignored. The result is much faster public discourse and consensus â turning your participation into real change."})]}),(0,s.jsxs)("div",{className:"mt-10 pt-6 md:mt-auto md:pt-8",children:[(0,s.jsx)("p",{className:"mb-5 text-center font-extrabold tracking-tight text-foreground",style:{fontSize:"16px",lineHeight:"28px",letterSpacing:"-0.32px"},children:"Our partners"}),(0,s.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-2",children:[(0,s.jsx)("div",{className:"hidden flex-1 items-center justify-evenly gap-3 sm:flex",children:N.map(e=>(0,s.jsx)("div",{className:"flex items-center justify-center",children:(0,s.jsx)("img",{src:e.src,alt:e.alt,className:`${e.className} w-auto max-w-full object-contain`})},e.src))}),(0,s.jsx)("div",{className:"partner-marquee relative w-full min-w-0 max-w-full overflow-hidden sm:hidden",style:{maskImage:"linear-gradient(to right, transparent, #000 10%, #000 90%, transparent)",WebkitMaskImage:"linear-gradient(to right, transparent, #000 10%, #000 90%, transparent)"},children:(0,s.jsx)("div",{className:"partner-marquee-track flex w-max items-center gap-8",children:S.map((e,a)=>(0,s.jsx)("div",{className:"flex shrink-0 items-center justify-center","aria-hidden":a>=N.length?"true":void 0,children:(0,s.jsx)("img",{src:e.src,alt:e.alt,className:`${e.className} w-auto max-w-none object-contain`})},`${e.src}-${a}`))})})]})]})]}),(0,s.jsxs)("div",{className:"flex flex-col p-6 md:p-8",children:[(0,s.jsx)("h2",{className:"mb-4 font-extrabold tracking-tight text-foreground",style:{fontSize:"16px",lineHeight:"28px",letterSpacing:"-0.32px"},children:"How it works"}),(0,s.jsxs)("div",{className:"mb-7 font-light text-foreground",style:{fontSize:"14px",lineHeight:"20px",letterSpacing:"-0.32px"},children:[(0,s.jsx)("p",{children:"The State platform gives you knowledge and understanding of your political system, and how to change it. It also provides you with a seamless communication channel with the representatives who make the day to day decisions that effect you and your society."}),(0,s.jsx)("p",{className:"mt-3",children:"You are able to interact with existing discussions on topics you care about, and create your own motions for what you want to change. Unlike a petition site, our political plumbing and access to decision makers means State is the best way to influence decision making."})]}),(0,s.jsx)("h2",{className:"mb-4 font-extrabold tracking-tight text-foreground",style:{fontSize:"16px",lineHeight:"28px",letterSpacing:"-0.32px"},children:"Who we are"}),(0,s.jsxs)("div",{className:"mb-6 font-light text-foreground",style:{fontSize:"14px",lineHeight:"20px",letterSpacing:"-0.32px"},children:[(0,s.jsx)("p",{children:"We're a group of technologists, product builders and political aficionados working to empower both citizens and those elected to represent them."}),(0,s.jsxs)("p",{className:"mt-3",children:["Our HQ is in London. We are backed by"," ",(0,s.jsx)("a",{href:"https://zulu.group",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-foreground",children:"Zulu Group"}),"."]})]}),(0,s.jsxs)("div",{className:"mt-6 border-t border-border pt-6 md:mt-auto",children:[(0,s.jsx)("h3",{className:"mb-3 font-extrabold tracking-tight text-foreground",style:{fontSize:"16px",lineHeight:"28px",letterSpacing:"-0.32px"},children:"Partner with us"}),f?(0,s.jsx)("div",{className:"rounded-card bg-muted px-5 py-3.5",children:(0,s.jsxs)("p",{className:"text-sm text-foreground",children:[(0,s.jsx)("span",{className:"font-extrabold",children:"Sent!"})," ","Thank you for your interest. A member of our team will be in touch shortly."]})}):(0,s.jsxs)("form",{onSubmit:C,children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1.5 block text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:"Full name"}),(0,s.jsx)("input",{type:"text",value:n,onChange:e=>{o(e.target.value),j(null)},className:"w-full rounded-control border border-input bg-card px-3 py-2 text-sm text-foreground outline-none transition-colors placeholder:text-muted-foreground focus:border-primary/50"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1.5 block text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:"Email"}),(0,s.jsx)("input",{type:"email",value:r,onChange:e=>{l(e.target.value),j(null)},className:"w-full rounded-control border border-input bg-card px-3 py-2 text-sm text-foreground outline-none transition-colors placeholder:text-muted-foreground focus:border-primary/50"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1.5 block text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:"Organisation"}),(0,s.jsx)("input",{type:"text",value:m,onChange:e=>{g(e.target.value),j(null)},className:"w-full rounded-control border border-input bg-card px-3 py-2 text-sm text-foreground outline-none transition-colors placeholder:text-muted-foreground focus:border-primary/50"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1.5 block text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:"Message (optional)"}),(0,s.jsx)("textarea",{rows:1,value:p,onChange:e=>{h(e.target.value),j(null)},className:"h-[42px] w-full resize-none rounded-control border border-input bg-card px-3 py-2 text-sm text-foreground outline-none transition-colors placeholder:text-muted-foreground focus:border-primary/50"})]})]}),v?(0,s.jsx)("p",{className:"mt-2 text-sm font-medium text-destructive",children:v}):null,(0,s.jsx)("div",{className:"mt-3 flex justify-end",children:(0,s.jsx)("button",{type:"submit",disabled:x||!k,className:"inline-flex items-center gap-2 rounded-control bg-primary px-4 py-2 text-sm font-semibold text-primary-foreground transition-colors hover:bg-primary/90 disabled:cursor-not-allowed disabled:bg-muted disabled:text-muted-foreground",children:x?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"h-3.5 w-3.5 animate-spin rounded-full border-2 border-primary-foreground border-t-transparent"}),"Sending..."]}):(0,s.jsxs)(s.Fragment,{children:["Send",(0,s.jsx)(d.ArrowRight,{className:"h-4 w-4"})]})})})]})]})]})]})]})}),(0,s.jsx)("style",{children:` 2 .partner-marquee-track { 3 animation: partner-marquee 22s linear infinite; 4 will-change: transform; 5 } 6 7 @keyframes partner-marquee { 8 from { 9 transform: translate3d(0, 0, 0); 10 } 11 to { 12 transform: translate3d(-50%, 0, 0); 13 } 14 } 15 16 @media (prefers-reduced-motion: reduce) { 17 .partner-marquee-track { 18 animation: none; 19 } 20 } 21 `})]}):null}var g=e.i(33090),p=e.i(79774),h=e.i(72321),x=e.i(81165),b=e.i(9693),f=e.i(2086);function y({className:e,country:d,logoSrc:c="/images/email/state-logo.svg"}){let y=(0,o.useRouter)(),v=(0,o.usePathname)(),[j,w]=(0,i.useState)(!1),[k,N]=(0,i.useState)(!1),[S,C]=(0,i.useState)(!1),[_,E]=(0,i.useState)(!1),[M,G]=(0,i.useState)(!1),[B,P]=(0,i.useState)(!1),[L,A]=(0,i.useState)(),[I,T]=(0,i.useState)(!1),{homepageSignupEnabled:z,showMpDashboardButtons:H,shouldShowSignupWaitlistPopup:F}=(0,x.usePublicSettings)(),U=d?.iso==="GB",R=!!d&&!(0,f.isCountryMapped)(d)&&(!U||F),D=(0,h.getAuthenticatedHomeHref)({is_representative:B,public_profile_url:L}),K=_&&M,O=d?`/${d.slug}`:(0,h.regionalHomeHrefFromPathname)(v),W=K?D:O,$=K?D:d?`/${d.slug}`:O,V=K?v===D||v.startsWith(`${D}/`):d?v===`/${d.slug}`||v===`/${d.slug}/`:"/"===v,q=d?`/${d.slug}/explore`:null,Z=!!q&&(v===q||v.startsWith(`${q}/`));return(0,i.useEffect)(()=>{let e=(0,l.isAuthenticated)(),s=!1;return e?(queueMicrotask(()=>{s||E(!0)}),(0,r.fetchUser)().then(e=>{s||(P(e.is_representative),A(e.public_profile_url),T(e.dashboard_unlocked??!1),(0,u.syncGa4UserRoleFromProfile)(e))}).catch(()=>{}).finally(()=>{s||G(!0)}),()=>{s=!0}):(queueMicrotask(()=>{s||(G(!0),(0,u.syncGa4UserRoleFromProfile)(null))}),()=>{s=!0})},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{"data-public-page-header":"true",className:`relative flex items-center justify-between px-6 pt-5 ${e??""}`,children:[(0,s.jsx)(t.default,{href:W,className:"shrink-0",onClick:()=>{(0,u.trackGa4Event)("nav_logo_click",{destination:W})},children:(0,s.jsx)(a.default,{src:c,alt:"State",className:"h-10 w-10 rounded-lg object-cover",width:40,height:40})}),d&&(0,s.jsx)("nav",{"aria-label":"Primary",className:"pointer-events-none absolute inset-x-0 top-5 flex h-10 items-center justify-center",children:(0,s.jsxs)("ul",{className:"pointer-events-auto flex items-center gap-5 text-sm font-medium sm:gap-8 md:text-base",children:[(0,s.jsx)("li",{children:(0,s.jsx)(t.default,{href:$,"aria-current":V?"page":void 0,className:`transition-colors ${V?"text-primary":"text-muted-foreground hover:text-foreground"}`,onClick:()=>{(0,u.trackGa4Event)("nav_click",{nav_item:"home",country:d.iso})},children:"Home"})}),q&&(0,s.jsx)("li",{children:(0,s.jsxs)(t.default,{href:q,"aria-current":Z?"page":void 0,className:`transition-colors ${Z?"text-primary":"text-muted-foreground hover:text-foreground"}`,onClick:()=>{(0,u.trackGa4Event)("nav_click",{nav_item:"explore",country:d.iso})},children:[(0,s.jsx)("span",{className:"sm:hidden",children:"Explore"}),(0,s.jsxs)("span",{className:"hidden sm:inline",children:["Explore ",(0,f.countryDisplayName)(d)]})]})}),(0,s.jsx)("li",{children:(0,s.jsxs)("button",{type:"button",onClick:()=>{(0,u.trackGa4Event)("about_modal_open",{}),N(!0)},className:"text-muted-foreground transition-colors hover:text-foreground",children:[(0,s.jsx)("span",{className:"sm:hidden",children:"About"}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"About Us"})]})})]})}),_&&M&&B&&!(H||I)?(0,s.jsxs)(b.Button,{type:"button",variant:"secondary",size:"md",onClick:()=>{(0,u.trackGa4Event)("pricing_modal_open",{source:"dashboard_locked"}),w(!0)},className:"gap-1.5 shadow-sm",children:[(0,s.jsx)(n.Lock,{className:"h-3.5 w-3.5"}),"Open Dashboard"]}):_&&M?(0,s.jsx)(t.default,{href:B?"/representative/dashboard":"/app",className:(0,b.buttonClasse
21s)("secondary","md","shadow-sm"),onClick:()=>{(0,u.trackGa4Event)("nav_click",{nav_item:B?"dashboard":"home"})},children:B?"Open Dashboard":"Home"}):!_&&M&&z?R?(0,s.jsxs)("button",{type:"button",onClick:()=>{if(!U||F){(0,u.trackGa4Event)("sign_up_start",{source:"header_waitlist"}),C(!0);return}(0,u.trackGa4Event)("sign_up_start",{source:"header"}),y.push("/login")},className:(0,b.buttonClasses)("secondary","sm","shadow-sm sm:px-4 sm:py-2"),children:[(0,s.jsxs)("svg",{className:"hidden h-4 w-4 sm:block",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),(0,s.jsx)("circle",{cx:"12",cy:"7",r:"4"})]}),"Signup"]}):(0,s.jsxs)(t.default,{href:"/login",className:(0,b.buttonClasses)("secondary","sm","shadow-sm sm:px-4 sm:py-2"),onClick:()=>{(0,u.trackGa4Event)("login_start",{source:"header"})},children:[(0,s.jsxs)("svg",{className:"hidden h-4 w-4 sm:block",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),(0,s.jsx)("circle",{cx:"12",cy:"7",r:"4"})]}),"Signup"]}):null]}),(0,s.jsx)(g.default,{open:j,onClose:()=>w(!1)}),d&&(0,s.jsx)(m,{open:k,onClose:()=>N(!1),country:d.iso}),d&&R&&(0,s.jsx)(p.SignupDialog,{open:S,onClose:()=>C(!1),country:d.iso,source:"Header Signup Button",title:"Notify me when State launches",description:`Be the first to know when State goes live in ${(0,f.countryDisplayName)(d)}.`,iconSrc:(0,f.flagUrlForIso2x)(d.iso),iconAlt:`${d.name} flag`})]})}e.s(["PublicPageHeader",()=>y],61383)},39615,e=>{"use strict";var s=e.i(19531),a=e.i(38253),t=e.i(61383),n=e.i(2086),o=e.i(15127);let i=(0,n.getCountryBySlug)("uk"),r=(0,n.flagUrlForIso)(i.iso),l=(0,n.flagUrlForIso2x)(i.iso);function u({title:e,description:a,children:n,updatedAt:o,showCountryIntro:u=!1}){return(0,s.jsxs)("main",{className:"min-h-screen bg-background text-foreground",children:[(0,s.jsx)(t.PublicPageHeader,{className:"bg-background",country:i}),(0,s.jsxs)("section",{className:"mx-auto max-w-3xl px-6 pb-16 pt-12 md:pb-24 md:pt-16",children:[(0,s.jsxs)("div",{className:"mb-8",children:[u&&(0,s.jsxs)("div",{className:"mb-5 flex items-center gap-2.5",children:[(0,s.jsx)("img",{src:r,srcSet:`${r} 1x, ${l} 2x`,alt:`${i.name} flag`,width:22,height:16,className:"h-[16px] w-[22px] shrink-0 rounded-[2px] object-cover shadow-sm ring-1 ring-black/5"}),(0,s.jsxs)("p",{className:"text-sm font-medium uppercase tracking-[0.14em] text-muted-foreground",children:["Welcome to State â"," ",(0,s.jsx)("span",{className:"sm:hidden",children:i.slug.toUpperCase()}),(0,s.jsx)("span",{className:"hidden sm:inline",children:i.name})]})]}),(0,s.jsx)("h1",{className:"text-[30px] font-semibold leading-[1.12] tracking-[0.1px] text-foreground md:text-[40px]",children:e}),(0,s.jsx)("p",{className:"mt-4 max-w-2xl text-[15px] font-light leading-7 text-muted-foreground md:text-base",children:a}),o&&(0,s.jsxs)("p",{className:"mt-4 text-sm font-medium text-muted-foreground",children:["Last updated: ",o]})]}),(0,s.jsx)("div",{className:"rounded-card border border-border bg-card p-6 shadow-[0_24px_80px_rgba(0,0,0,0.06)] md:p-10",children:n})]})]})}function d({title:e,children:a}){return(0,s.jsxs)("section",{className:"border-b border-border py-6 first:pt-0 last:border-b-0 last:pb-0",children:[(0,s.jsx)("h2",{className:"text-xl font-semibold leading-tight text-foreground md:text-2xl",children:e}),(0,s.jsx)("div",{className:"mt-3 space-y-4 text-[15px] leading-7 text-muted-foreground",children:a})]})}function c({items:e}){return(0,s.jsx)("ul",{className:"space-y-2",children:e.map(e=>(0,s.jsxs)("li",{className:"flex gap-3",children:[(0,s.jsx)("span",{className:"mt-3 h-1.5 w-1.5 shrink-0 rounded-full bg-brand"}),(0,s.jsx)("span",{children:e})]},e))})}function m({href:e,children:t}){let n=e.startsWith("mailto:");return(0,s.jsx)(a.default,{href:e,onClick:()=>{n?(0,o.trackGa4Event)("contact_email_click",{href:e}):(0,o.trackGa4Event)("info_cross_link_click",{href:e})},className:"font-medium text-primary underline decoration-primary/40 underline-offset-4 transition-colors hover:text-primary/80",children:t})}e.s(["ContactLink",()=>m,"InfoList",()=>c,"InfoSection",()=>d,"InformationalPage",()=>u])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.