{"version":3,"file":"ViviaSchema.D76awkNm.mjs","names":["__esmMin","c","init_jsx_runtime","addPropertyControls","init_framer_DKgW_P28","ControlType","STUDENT_FAQ_ITEMS","init_ViviaFAQData","FAQ_ITEMS","plainAnswer","answer","lines","block","l","head","rows","splitRow","r","lowerFirst","col","stop","build","page","PAGES","key","url","SITE","webPage","graph","ORGANISATION","item","SERVICE","ViviaSchema","props","GPHC_PHARMACY","GPHC_VAIBHAV","COMPANIES_HOUSE","init_ViviaSchema","line","s"],"sources":["https:/framerusercontent.com/modules/UMdXneNBHukWEEG1FEwX/YWJFklXUkoPi9sIdtklb/ViviaSchema.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{FAQ_ITEMS,STUDENT_FAQ_ITEMS}from\"https://framerusercontent.com/modules/B81P3VV4xy5O7yG86aF3/XqMw6OGn1P3AK0J3Ikeg/ViviaFAQData.js\";const SITE=\"https://vivia.health\";const GPHC_PHARMACY=\"https://www.pharmacyregulation.org/registers/pharmacy/registrationnumber/1031045\";const GPHC_VAIBHAV=\"https://www.pharmacyregulation.org/registers/pharmacist/registrationnumber/2082703\";const COMPANIES_HOUSE=\"https://find-and-update.company-information.service.gov.uk/company/12087145\";// Must match each page's SEO title and description in Framer.\nconst PAGES={home:{path:\"/\",name:\"Free NHS Contraception: Morning After Pill & the Pill | Vivia\",description:\"Free NHS morning after pill and contraceptive pill from a GPhC registered pharmacy. A pharmacist calls you, then it's posted in plain packaging. No GP needed.\",crumb:\"Home\"},terms:{path:\"/terms\",name:\"Terms of use | Vivia\",description:\"The terms for using vivia.health and the Vivia NHS contraception service from Icon Pharmacy Ltd.\",crumb:\"Terms of use\"},privacy:{path:\"/privacy\",name:\"Privacy notice | Vivia\",description:\"How Vivia and Icon Pharmacy Ltd collect, use and protect your personal and health information, and your rights.\",crumb:\"Privacy notice\"},complaints:{path:\"/complaints\",name:\"Complaints | Vivia\",description:\"How to raise a complaint about Vivia, how we handle it, and how to take it to the NHS or the Ombudsman.\",crumb:\"Complaints\"},students:{path:\"/international-students\",name:\"Free Contraception for International Students in England | Vivia\",description:\"International Students in England can get free NHS contraception, including the morning after pill. No GP registration or surcharge needed. Women 18+.\",crumb:\"International Students\"},cookies:{path:\"/cookies\",name:\"Cookie policy | Vivia\",description:\"The cookies vivia.health uses, and how to change your choice at any time.\",crumb:\"Cookie policy\"}};const splitRow=line=>line.trim().replace(/^\\|/,\"\").replace(/\\|$/,\"\").split(\"|\").map(c=>c.trim());const lowerFirst=s=>/^[A-Z][a-z']/.test(s)?s[0].toLowerCase()+s.slice(1):s;const stop=s=>/[.!?]$/.test(s)?s:s+\".\";// The visible FAQ answers can contain small tables. Structured data needs plain text,\n// so each table is read out in words, with the same cells in the same order.\nfunction plainAnswer(answer){return answer.split(/\\n\\s*\\n/).map(block=>{const lines=block.split(\"\\n\").filter(l=>l.trim()!==\"\");if(!(lines.length>0&&lines.every(l=>l.trim().startsWith(\"|\"))))return lines.join(\" \");const[head,...rows]=lines.map(splitRow);if(head.length===2)return rows.map(r=>`${r[0]}: ${lowerFirst(head[1])} ${r[1]}.`).join(\" \");return head.slice(1).map((col,c)=>`${col}: `+rows.map(r=>`${lowerFirst(r[0])} ${lowerFirst(r[c+1])}`).join(\"; \")+\".\").join(\" \");}).map(stop).join(\" \");}const ORGANISATION=[{\"@type\":\"Organization\",\"@id\":SITE+\"/#organization\",name:\"Icon Pharmacy Ltd\",legalName:\"Icon Pharmacy Ltd\",url:SITE+\"/\",vatID:\"GB438582268\",address:{\"@type\":\"PostalAddress\",streetAddress:\"155 Manford Way\",addressLocality:\"Chigwell\",postalCode:\"IG7 4DN\",addressCountry:\"GB\"},identifier:{\"@type\":\"PropertyValue\",propertyID:\"Companies House number\",value:\"12087145\"},sameAs:[COMPANIES_HOUSE]},{\"@type\":\"Pharmacy\",\"@id\":SITE+\"/#pharmacy\",name:\"Vivia\",alternateName:[\"Vivia.Health\",\"Icon Pharmacy\"],url:SITE+\"/\",email:\"info@vivia.health\",telephone:\"+44 20 8500 7070\",priceRange:\"Free\",image:\"https://framerusercontent.com/assets/zxQ6Z4fnchLYaVcdwtenlq8K7l0.jpg\",description:\"Vivia is the free NHS Pharmacy Contraception Service from Icon Pharmacy, a GPhC registered pharmacy in Chigwell, Essex. Our pharmacy team calls you, then the morning after pill or your daily contraceptive pill is posted to you in plain packaging.\",address:{\"@type\":\"PostalAddress\",streetAddress:\"155 Manford Way\",addressLocality:\"Chigwell\",addressRegion:\"Essex\",postalCode:\"IG7 4DN\",addressCountry:\"GB\"},identifier:{\"@type\":\"PropertyValue\",propertyID:\"GPhC pharmacy registration\",value:\"1031045\"},sameAs:[GPHC_PHARMACY],parentOrganization:{\"@id\":SITE+\"/#organization\"},areaServed:{\"@type\":\"AdministrativeArea\",name:\"England\"},isAcceptingNewPatients:true,openingHoursSpecification:[{\"@type\":\"OpeningHoursSpecification\",dayOfWeek:[\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\"],opens:\"09:30\",closes:\"18:00\"}],contactPoint:{\"@type\":\"ContactPoint\",contactType:\"customer service\",email:\"info@vivia.health\",areaServed:\"GB\",availableLanguage:\"en-GB\"},employee:{\"@id\":SITE+\"/#vaibhav-shah\"}},{\"@type\":\"Person\",\"@id\":SITE+\"/#vaibhav-shah\",name:\"Vaibhav Shah\",jobTitle:\"Superintendent Pharmacist\",description:\"Superintendent pharmacist for Icon Pharmacy Ltd, with 10 years in community pharmacy.\",identifier:{\"@type\":\"PropertyValue\",propertyID:\"GPhC registration\",value:\"2082703\"},sameAs:[GPHC_VAIBHAV],worksFor:{\"@id\":SITE+\"/#pharmacy\"}},{\"@type\":\"WebSite\",\"@id\":SITE+\"/#website\",url:SITE+\"/\",name:\"Vivia\",inLanguage:\"en-GB\",publisher:{\"@id\":SITE+\"/#pharmacy\"}}];const SERVICE={\"@type\":\"Service\",\"@id\":SITE+\"/#nhs-contraception\",name:\"NHS Pharmacy Contraception Service\",serviceType:\"Contraception\",description:\"The morning after pill (emergency contraception) and the daily contraceptive pill (combined pill and mini pill), supplied free on the NHS after a short phone consultation with our pharmacy team, and posted in plain packaging by Royal Mail Tracked 24. Morning after pill orders approved before 4:30pm on a working day are posted the same day. The phone consultation usually takes 5 to 10 minutes.\",provider:{\"@id\":SITE+\"/#pharmacy\"},areaServed:{\"@type\":\"AdministrativeArea\",name:\"England\"},audience:{\"@type\":\"PeopleAudience\",suggestedMinAge:18,suggestedGender:\"female\"},offers:{\"@type\":\"Offer\",price:\"0\",priceCurrency:\"GBP\",description:\"Free on the NHS, delivery included.\"}};function build(key){const page=PAGES[key]||PAGES.home;const url=SITE+page.path;const webPage={\"@id\":url+\"#webpage\",url,name:page.name,description:page.description,inLanguage:\"en-GB\",isPartOf:{\"@id\":SITE+\"/#website\"},publisher:{\"@id\":SITE+\"/#pharmacy\"}};const graph=[...ORGANISATION];if(key===\"home\"){webPage[\"@type\"]=[\"MedicalWebPage\",\"FAQPage\"];webPage.about={\"@id\":SITE+\"/#nhs-contraception\"};webPage.mainEntity=FAQ_ITEMS.map(item=>({\"@type\":\"Question\",name:item.question,acceptedAnswer:{\"@type\":\"Answer\",text:plainAnswer(item.answer)}}));graph.push(SERVICE,webPage);}else if(key===\"students\"){webPage[\"@type\"]=[\"MedicalWebPage\",\"FAQPage\"];webPage.about={\"@id\":SITE+\"/#nhs-contraception\"};webPage.audience={\"@type\":\"PeopleAudience\",audienceType:\"International Students in England\",suggestedMinAge:18,suggestedGender:\"female\",geographicArea:{\"@type\":\"AdministrativeArea\",name:\"England\"}};webPage.citation=[{\"@type\":\"Legislation\",name:\"The National Health Service (Charges to Overseas Visitors) Regulations 2015, regulation 9\",url:\"https://www.legislation.gov.uk/uksi/2015/238/regulation/9\"},{\"@type\":\"CreativeWork\",name:\"NHS Pharmacy Contraception Service, NHS England\",url:\"https://www.england.nhs.uk/publication/nhs-pharmacy-contraception-service/\"},{\"@type\":\"CreativeWork\",name:\"How to access NHS services in England if you are visiting from abroad, NHS\",url:\"https://www.nhs.uk/nhs-services/visiting-or-moving-to-england/how-to-access-nhs-services-in-england-if-you-are-visiting-from-abroad/\"},{\"@type\":\"CreativeWork\",name:\"Healthcare, UKCISA\",url:\"https://www.ukcisa.org.uk/student-advice/life-in-the-uk/healthcare/\"}];webPage.breadcrumb={\"@id\":url+\"#breadcrumb\"};webPage.mainEntity=STUDENT_FAQ_ITEMS.map(item=>({\"@type\":\"Question\",name:item.question,acceptedAnswer:{\"@type\":\"Answer\",text:plainAnswer(item.answer)}}));graph.push(SERVICE,webPage,{\"@type\":\"BreadcrumbList\",\"@id\":url+\"#breadcrumb\",itemListElement:[{\"@type\":\"ListItem\",position:1,name:\"Home\",item:SITE+\"/\"},{\"@type\":\"ListItem\",position:2,name:page.crumb,item:url}]});}else{webPage[\"@type\"]=\"WebPage\";webPage.about={\"@id\":SITE+\"/#pharmacy\"};webPage.breadcrumb={\"@id\":url+\"#breadcrumb\"};graph.push(webPage,{\"@type\":\"BreadcrumbList\",\"@id\":url+\"#breadcrumb\",itemListElement:[{\"@type\":\"ListItem\",position:1,name:\"Home\",item:SITE+\"/\"},{\"@type\":\"ListItem\",position:2,name:page.crumb,item:url}]});}// \"<\" is escaped so no value can close the script tag early.\nreturn JSON.stringify({\"@context\":\"https://schema.org\",\"@graph\":graph}).replace(/</g,\"\\\\u003c\");}/**\n * Structured data for search engines and AI answer engines. Renders nothing visible.\n * Place one instance on each page and set Page to match it.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function ViviaSchema(props){return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,display:\"contents\"},children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:build(props.page||\"home\")}})});}addPropertyControls(ViviaSchema,{page:{type:ControlType.Enum,title:\"Page\",options:[\"home\",\"terms\",\"privacy\",\"complaints\",\"cookies\",\"students\"],optionTitles:[\"Home\",\"Terms of use\",\"Privacy notice\",\"Complaints\",\"Cookie policy\",\"International Students\"],defaultValue:\"home\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ViviaSchema\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ViviaSchema.map"],"mappings":"A,wNAGA,SAASS,EAAY,EAAO,CAAC,OAAOC,EAAO,MAAM,SAAS,CAAC,CAAC,IAAI,GAAO,CAAC,IAAMC,EAAMC,EAAM,MAAM;CAAI,CAAC,CAAC,OAAO,GAAGC,EAAE,KAAK,IAAI,EAAE,EAAE,GAAG,EAAEF,EAAM,OAAO,GAAGA,EAAM,MAAM,GAAGE,EAAE,KAAK,CAAC,CAAC,WAAW,GAAG,CAAC,GAAG,OAAOF,EAAM,KAAK,GAAG,EAAE,GAAK,CAACG,EAAK,GAAGC,GAAMJ,EAAM,IAAIK,CAAQ,EAA8F,OAAzFF,EAAK,SAAS,EAASC,EAAK,IAAI,GAAG,GAAGE,EAAE,GAAG,IAAIC,EAAWJ,EAAK,EAAE,EAAE,GAAGG,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,GAAG,EAASH,EAAK,MAAM,CAAC,CAAC,CAAC,KAAK,EAAI,IAAI,GAAGK,EAAI,IAAIJ,EAAK,IAAI,GAAG,GAAGG,EAAWD,EAAE,EAAE,EAAE,GAAGC,EAAWD,EAAEhB,EAAE,EAAE,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE,GAAG,CAAC,CAAC,KAAK,GAAG,CAAE,CAAC,CAAC,CAAC,IAAImB,CAAI,CAAC,CAAC,KAAK,GAAG,CAAE,CAA85F,SAASC,EAAM,EAAI,CAAC,IAAMC,EAAKC,EAAMC,IAAMD,EAAM,KAAWE,EAAIC,EAAKJ,EAAK,KAAWK,EAAQ,CAAC,MAAMF,EAAI,WAAW,MAAI,KAAKH,EAA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