PageSourceSearch

https://www.empatica.com/_next/static/chunks/6851.12681ee141e9e8d6.js

js empatica.com collected 2026-09-24 17:22:15 UTC 216,271 bytes, 10 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6851],{3511:(e,t,i)=>{"use strict";i.d(t,{w7:()=>n,bS:()=>a});let o={_type:"image",lqip:null,fileDetails:{extension:"",mime:"",dimensions:null},uploadedAt:"",url:"/assets/images/default_seo_image.jpg"},a="https://www.empatica.com";new URL(a);let n=[{href:"https://www.facebook.com/empatica",title:"Facebook",icon:"/assets/images/icons/facebook_g.svg"},{href:"https://www.instagram.com/empatica_wearables",title:"Instagram",icon:"/assets/images/icons/instagram_g.svg"},{href:"https://www.youtube.com/empatica",title:"YouTube",icon:"/assets/images/icons/youtube_g.svg"},{href:"https://www.twitter.com/empatica",title:"Twitter",icon:"/assets/images/icons/twitter_g.svg"},{href:"https://www.linkedin.com/company/empatica",title:"Linkedin",icon:"/assets/images/icons/linkedin_g.svg"}];o?.url,o?.url},39770:(e,t,i)=>{"use strict";let o;i.r(t),i.d(t,{default:()=>ap});var a=i(12115),n=i(68717),r=i(73081),l=i(77004),s=i(95155),p=i(13525),d=i(70334),c=i(75086),u=i(51739);let m=e=>"object"==typeof e&&null!==e&&"string"==typeof e._key&&"string"==typeof e.routePath;var g=i(51563),y=i(64981);let h="confirm-publish-keep-old-address",f=({from:e,to:t,keepOldAddress:i,onKeepOldAddressChange:o})=>(0,s.jsxs)(d.t,{gap:3,marginTop:4,children:[(0,s.jsx)(p.s,{padding:3,radius:2,tone:"caution",border:!0,children:(0,s.jsxs)(d.t,{gap:2,children:[(0,s.jsx)(d.n,{size:1,weight:"semibold",children:"This changes a live address"}),(0,s.jsxs)(d.n,{size:1,children:[e," → ",t]})]})}),(0,s.jsx)(p.s,{padding:3,radius:2,border:!0,children:(0,s.jsxs)(g.t,{align:"flex-start",gap:3,children:[(0,s.jsx)(y.Sc,{id:h,checked:i,onChange:e=>o(e.currentTarget.checked)}),(0,s.jsxs)(d.t,{gap:2,children:[(0,s.jsx)(d.n,{as:"label",htmlFor:h,size:1,children:(0,s.jsxs)("strong",{children:["Keep ",e," working"]})}),(0,s.jsxs)(d.n,{muted:!0,size:1,children:["Leave this off and ",e," stops working: anyone arriving from a link, a search result or printed material sees the not-found page. Turn it on and ",e," permanently sends them to ",t," instead."]})]})]})})]}),b=e=>"string"==typeof e?.routePath?e.routePath:void 0;var v=i(58247),w=i(99323),k=i(4352),T=i(96192),I=i(54803),S=i(49185),C=i(34552),A=i(28946);let P=["homePage","sectionsPage","centeredPage","caseStudyPage","caseStudiesRootPage","blogRootPage","blogCategoryPage","blogPostPage","productPage","storePage","plainPage"],x=["sectionsPage","productPage","storePage"],M=e=>x.some(t=>t===e),q=[{id:"en-us",title:"\uD83C\uDDFA\uD83C\uDDF8 United States",logo:"\uD83C\uDDFA\uD83C\uDDF8",currency:{title:"$ USD",value:"USD"}},{id:"en-gb",title:"\uD83C\uDDEC\uD83C\uDDE7 United Kingdom",logo:"\uD83C\uDDEC\uD83C\uDDE7",currency:{title:"\xa3 GBP",value:"GBP"}},{id:"en-eu",title:"\uD83C\uDDEA\uD83C\uDDFA Europe",logo:"\uD83C\uDDEA\uD83C\uDDFA",currency:{title:"€ EUR",value:"EUR"}},{id:"en-ca",title:"\uD83C\uDDE8\uD83C\uDDE6 Canada",logo:"\uD83C\uDDE8\uD83C\uDDE6",currency:{title:"€ EUR",value:"EUR"}},{id:"en-anz",title:"\uD83C\uDDE6\uD83C\uDDFA Australia / New Zealand \uD83C\uDDF3\uD83C\uDDFF",logo:"\uD83C\uDDE6\uD83C\uDDFA",currency:{title:"€ EUR",value:"EUR"}},{id:"en",title:"\uD83C\uDF0E Other regions",logo:"\uD83C\uDF0E",currency:{title:"$ USD",value:"USD"}}],B={title:"URL path",name:"routePath",by:[{field:"routePath",direction:"asc"}]},L={title:"Last update",name:"updatedAt",by:[{field:"_updatedAt",direction:"desc"}]},j={title:"Newest first",name:"createdAt",by:[{field:"_createdAt",direction:"desc"}]},U={title:"Market",name:"market",by:[{field:"language",direction:"asc"},{field:"routePath",direction:"asc"}]},V=(e,{id:t,title:i,types:o},a)=>{let n;return e.documentList().apiVersion("2024-06-01").id(t).title(i).filter(a?"en-us"===a?"_type in $types && (language == $market || !defined(language))":"_type in $types && language == $market":"_type in $types").params(a?{types:o,market:a}:{types:o}).defaultOrdering(B.by).menuItemGroups([{id:"sorting",title:"Sort"},{id:"layout",title:"Layout"}]).menuItems((n=!a&&E(o),[e.orderingMenuItem(B),e.orderingMenuItem(L),e.orderingMenuItem(j),...n?[e.orderingMenuItem(U)]:[],e.menuItem(
1).group("layout").title("Compact view").action("setLayout").params({layout:"default"}),e.menuItem().group("layout").title("Detailed view").action("setLayout").params({layout:"detail"})])).initialValueTemplates(o.map(t=>a&&M(t)?e.initialValueTemplateItem(`${t}-parameterized`,{languageId:a}):e.initialValueTemplateItem(t)))},E=e=>e.some(M),D=(e,t)=>{let i=e.listItem().id(t.id).title(t.title).icon(t.icon);return E(t.types)?i.child(e.list().id(t.id).title(t.title).items([e.listItem().id("all-markets").title("All markets").child(V(e,{...t,id:`${t.id}-all-markets`})),e.divider(),...q.map(i=>e.listItem().id(i.id).title(i.title).child(V(e,{...t,id:`${t.id}-${i.id}`,title:`${t.title} \xb7 ${i.title}`},i.id)))])):i.child(V(e,t))};var _=i(54036),R=i(35462),O=i(58338),N=i(46852);let W=(0,i(56648).g)({defaultColorFormat:"hex",enableSearch:!0,defaultColorList:[{label:"Teal",value:"#00778B"},{label:"Empatica Red",value:"#bc204b"},{label:"EpiMonitor Red",value:"#D90052"},{label:"Basic grey",value:"#f8f8f8"},{label:"EpiMonitor Gradient",value:"#AB316D"}]}),G=(0,n.KY)({supportedLanguages:q,schemaTypes:[...x]});var $=i(40459);let F=P.map(e=>`"${e}"`).join(", "),z=(0,$.Q0)({select:{title:"title",routePath:"routePath",language:"language",type:"_type"},resolve:e=>{let t="string"==typeof e?.routePath?e.routePath:null,i="string"==typeof e?.language?e.language:null,o="string"==typeof e?.type&&(0,u.NI)(e.type);return t?{message:"See the preview of this page",locations:[{title:"string"==typeof e?.title?e.title:"Untitled Page",href:o?t:(0,u.w5)(t,i??u.HM)}]}:{locations:[]}}}),Q=(0,$.BP)({allowOrigins:["https://www.empatica.com","https://empatica.com","https://www-staging.empatica.com","https://*.netlify.app","localhost:3000"],previewUrl:{previewMode:{enable:"/api/presentation/enable"}},resolve:{mainDocuments:(0,$.iw)([{route:"/:segments*",resolve:({path:e})=>{let{market:t,routePath:i}=(0,u.$h)(e),o=t===u.HM?"(language == $market || !defined(language))":"language == $market";return{filter:`_type in [${F}] && routePath == $routePath && ${o}`,params:{routePath:i,market:t}}}}]),locations:{siteSettings:(0,$.Q0)({locations:[{title:"Homepage",href:"/"}],message:"This document is used on all pages",tone:"positive"}),homePage:z,sectionsPage:z,centeredPage:z,plainPage:z,productPage:z,storePage:z,caseStudyPage:z,caseStudiesRootPage:z,blogRootPage:z,blogCategoryPage:z,blogPostPage:z}}}),H={customSchema:"partial",patterns:[{"@type":"Blog","@id":"string",name:"string",url:"string",description:"string",publisher:{"@type":"Organization","@id":"string",name:"string"},blogPost:[{"@type":"BlogPosting","@id":"string",headline:"string",url:"string",author:{"@type":"Organization",name:"string"}}]}]},Y=[(0,C.Cw)({structure:(e,t)=>e.list().id("root").title("Empatica").items([e.divider().title("Content"),(0,S.I1)({S:e,context:t,type:"homePage",title:"Home Page",icon:A.OIE}),(0,S.I1)({S:e,context:t,type:"contactUsSettings",title:"Contact Us Page",id:"contactUsSettings",icon:A.IiT}),D(e,{id:"pages",title:"Pages",icon:A.hVg,types:["sectionsPage","centeredPage","plainPage"]}),D(e,{id:"productPages",title:"Product Pages",icon:A.OIH,types:["productPage"]}),D(e,{id:"storePages",title:"Store Pages",icon:A.lPy,types:["storePage"]}),e.divider().title("Blog"),(0,S.I1)({S:e,context:t,type:"blogRootPage",title:"Blog Index",icon:A.ZB5}),D(e,{id:"blogPosts",title:"Articles",icon:A.v57,types:["blogPostPage"]}),D(e,{id:"blogCategories",title:"Categories",icon:A.s21,types:["blogCategoryPage"]}),e.divider().title("eCommerce"),e.listItem().title("Bundles").schemaType("bundle").icon(A.IQu).child(e.documentTypeList("bundle")),e.listItem().title("Products").icon(A.kIN).schemaType("product").child(e.documentTypeList("product").title("Products")),e.listItem().title("Subscriptions").icon(A.CZu).schemaType("subscription").child(e.documentTypeList("subscription")),e.listItem().title("Accessories").icon(A.rPP).schemaType("accessory").child(e.documentTypeList("accessory").title("Accessories")),e.divider().title("Resources"),(0,S.I1)({S:e,context:t,type:"caseStudiesRootPage",title:"Case Studies Index",icon:A.wT2}),D(e,{id:"caseStudies",title:"Case Studies",icon:A.hxQ,types:["caseStudyPage"]}),e.listItem().title("Publications").icon(A.v57).child(e.list().title("Publications").items([e.listItem().title("Publications").icon(N.uUP).schemaType("publications").child(e.documentTypeList("publications")),e.listItem().title("Therapeutic Areas & Applications").icon(_.Ax7).schemaType("publicationApplication").child(e.documentTypeList("publicationApplication")),e.listItem().title("Condition & Use Case").icon(O.J3V).schemaType("publicationUseCase").child(e.documentTypeList("publicationUseCase")),e.listItem().title("Age Group").icon(R.waN).schemaType("publicationAgeGroup").child(e.documentTypeList("publicationAgeGroup")),e.listItem().title("Study Type").schemaType("publicationStudyType").child(e.documentTypeList("publicationStudyType")),e.listItem().title("Device").icon(N.rEt).schemaType("publicationDevice").child(e.documentTypeList("publicationDevice"))])),e.listItem().title("Digital Resource Library").icon(A.$9Y).schemaType("digitalResource").child(e.documentTypeList("digitalResource")),e.listItem().title("Smartphone Compatibility").icon(A.qnj).child(e.documentTypeList("embraceplusCompatibility")),e.divider().title("General"),(0,S.I1)({S:e,context:t,type:"siteSettings",title:"Settings",id:"siteSettings",icon:A.ZB5}),e.listItem().title("Layouts").icon(A.S1H).schemaType("pageLayout").child(e.documentTypeList("pageLayout").title("Layouts")),e.listItem().title("Quick links").icon(A.GPF).schemaType("quickLink").child(e.documentTypeList("quickLink"))])}),(0,S.LJ)(),(0,k.$)({title:"GROQ"}),(0,I.$_)(),(0,T.fw)({linkableSchemaTypes:["homePage","sectionsPage","caseStudyPage","caseStudiesRootPage","centeredPage","blogRootPage","blogCategoryPage","blogPostPage","productPage","storePage","plainPage"]}),G,(0,w.tp)(),W,Q,(0,v.cg)(H)],X=(0,r.U85)({name:"digitalResource",type:"document",title:"Digital Resource",fields:[{name:"title",type:"string",title:"Title",description:"Title to assign to the resource",validation:e=>e.required()},{type:"text",name:"description",title:"Description",description:"A small description of the resource",validation:e=>e.required(),rows:5},{type:"altImage",name:"image",title:"Image",description:"Resource image",validation:e=>e.required()},{name:"url",type:"link",title:"Link",description:"The URL where the user will be redirected",validation:e=>e.custom(e=>(0,T.Cm)(e))}
1,{type:"string",name:"tag",title:"Type",description:"Type of the digital resource",options:{layout:"dropdown",list:[{title:"Webinar",value:"webinar"},{title:"White Paper",value:"white_paper"},{title:"EBook",value:"ebook"}]}}],preview:{select:{title:"title",media:"image.image"},prepare:e=>e}}),K=[{title:"EpiMonitor",value:"epimonitor"},{title:"Academic",value:"professional"},{title:"WellPD",value:"wellpd"}],Z={USD:"$",EUR:"€",GBP:"\xa3"},J=({amount:e,currency:t,outOfStock:i})=>{let o=t?Z[t]??t:"",a=null!=e?`${o}${e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})} ${t??""}`.trim():"No price";return i?`${a} — Out of stock`:a},ee=[{title:"Unique Wrist (130-280mm)",value:"unique_wrist",abbr:"U"},{title:"M-L Wrist (150-280mm)",value:"medium_large_wrist",abbr:"M-L"},{title:"S-M Wrist (110-200mm)",value:"small_medium_wrist",abbr:"S-M"},{title:"Small Wrist",value:"small_wrist",abbr:"S"},{title:"Large Wrist",value:"large_wrist",abbr:"L"}],et={type:"object",name:"link",title:"Link",i18nTitleKey:"inputs.portable-text.annotation.link",fields:[{name:"link",type:"link",title:"Link",description:"A valid web, email, phone, or relative link.",validation:e=>e.custom(e=>(0,T.Cm)(e))}]},ei=(0,r.U85)({type:"document",name:"product",title:"Product",groups:[{name:"info",title:"Basic information"},{name:"details",title:"Details"},{name:"visuals",title:"Visuals"},{name:"price",title:"Price"}],fields:[{name:"code",type:"string",title:"Code",description:"Product code (SKU)",validation:e=>e.required(),group:"details",readOnly:e=>!e.currentUser?.roles.some(e=>"administrator"===e.name)},{name:"name",type:"string",title:"Name",description:'Base name of the product (e.g. "EmbracePlus")',validation:e=>e.required(),group:"info"},{name:"variantLabel",type:"string",title:"Variant label",description:'Second part of the displayed name (e.g. "Milan Black"). Makes the product recognizable when picking it for a page — not a grouping key.',group:"info"},{name:"image",type:"altImage",title:"Image",description:"A visual image for the product",validation:e=>e.required(),group:"visuals"},{name:"thumbnail",type:"altImage",title:"Thumbnail",description:"The product on its own, for the places it appears small — next to the quantity selector, for example. Optional: the main image is used when this is empty.",group:"visuals"},{name:"promotionalImages",type:"array",title:"Promotional images",description:"Some promotional images to show for example in carousels",of:[{type:"backgroundMedia"}],group:"visuals"},{name:"price",type:"price",title:"Price",description:"Price of the product",validation:e=>e.required(),group:"price"},{name:"onSale",type:"boolean",title:"On sale",description:"Is this product on sale?",initialValue:!1,group:"price"},{name:"salePrice",type:"price",title:"Sale Price",description:"Sale price of the product",validation:e=>e.custom((e,t)=>{let i=t.parent;return!i?.onSale||!!e||"Required"}),group:"price",hidden:e=>{let t=e.parent;return!t?.onSale}},{name:"outOfStock",type:"boolean",title:"Out of stock",description:"Check if the product is out of stock",initialValue:!1,group:"price"},{name:"size",type:"string",title:"Size",initialValue:"unique_wrist",validation:e=>e.required(),group:"details",options:{layout:"dropdown",list:ee}},{name:"accessoriesIncluded",type:"array",title:"Which accessories includes?",description:"Select wich accessories are already included for this product",of:[{type:"object",name:"productVariantAccessoryIncluded",title:"Accessory included",fields:[{type:"reference",name:"accessory",validation:e=>e.required(),to:[{type:"accessory"}]},{type:"string",name:"title",title:"Title",description:"A small heading to place for the accessory, if not set accessory name will be used"},{type:"string",name:"color",title:"Color",description:"",components:{input:e=>{let{schemaType:t,renderDefault:i,path:o}=e,{options:n}=t,l=o.slice(0,o.length-1),s=(0,r.FlV)([...l,"accessory"]),p=(0,r.tH7)({apiVersion:"2025-02-07"}),[d,c]=(0,a.useState)([]);return(0,a.useEffect)(()=>{s?._ref&&p.getDocument(s._ref).then(e=>{c(e?.colorsAvailable?.filter(e=>!!e.code).map(e=>({value:e.code??"",title:e.name??""}))??[])}).catch(()=>{})},[p,s?._ref]),i({...e,schemaType:{...t,options:{...n,list:d},initialValue:d[0]?.value,hidden:0===d.length,validation:e=>{if(0!==d.length)return e.required()}},value:e.value})}},hidden:e=>e.parent?.accessory==null},{type:"string",name:"size",title:"Size",description:"",components:{input:e=>{let{schemaType:t,renderDefault:i,path:o}=e,{options:n}=t,l=o.slice(0,o.length-1),s=(0,r.FlV)([...l,"accessory"]),p=(0,r.FlV)([...l,"color"]),d=(0,r.tH7)({apiVersion:"2021-06-07"}),[c,u]=(0,a.useState)([]);return(0,a.useEffect)(()=>{s?._ref&&d.getDocument(s._ref).then(e=>{u((e?.colorsAvailable?.find(e=>e.code===p)?.sizes??[]).filter(e=>!!e.value).map(e=>({value:e.value??"",title:ee.find(t=>t.value===e.value)?.title??""})))}).catch(()=>{})},[d,s?._ref,p]),i({...e,schemaType:{...t,options:{...n,list:c},initialValue:c[0]?.value,hidden:0===c.length,validation:e=>{if(0!==c.length)return e.required()}},value:e.value})}},hidden:e=>e.parent?.accessory==null}],preview:{select:{title:"accessory.name",media:"accessory.image.image"},prepare:e=>e}}],group:"info"},{name:"description",type:"array",title:"Description",description:"A small description for the product",hidden:!0,of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[et]}}],group:"details"},{name:"tags",type:"array",title:"Tags",description:"Some tags to add to the product (e.g. FDA
1-CLEARED)",hidden:!0,of:[{type:"string"}],group:"details"},{name:"features",type:"array",title:"Features",hidden:!0,group:"details",of:[{type:"string",options:{layout:"dropdown",list:[{title:"Up to 7 days battery life",value:"seven_day_battery_life"},{title:"Waterproof up to 1m/3ft",value:"waterproof_1m"}]}}]}],preview:{select:{name:"name",variantLabel:"variantLabel",amount:"price.amount",currency:"price.currency",outOfStock:"outOfStock",image:"image"},prepare:e=>({title:[e.name,e.variantLabel].filter(Boolean).join(" "),media:e.image?.image,subtitle:J(e)})}}),eo={USD:"$",EUR:"€",GBP:"\xa3"},ea=({amount:e,currency:t,billingType:i,billingInterval:o})=>{if(null==e)return;let a=t?eo[t]??`${t} `:"",n="recurring"===i?o&&`/${o}`:" one-time";return`${a}${e}${n??""}`},en=(e="")=>({plan0Amount:`${e}plans.0.price.amount`,plan0Currency:`${e}plans.0.price.currency`,plan0BillingType:`${e}plans.0.billingType`,plan0BillingInterval:`${e}plans.0.billingInterval`,plan1Amount:`${e}plans.1.price.amount`,plan1Currency:`${e}plans.1.price.currency`,plan1BillingType:`${e}plans.1.billingType`,plan1BillingInterval:`${e}plans.1.billingInterval`,plan2Amount:`${e}plans.2.price.amount`,plan2Currency:`${e}plans.2.price.currency`,plan2BillingType:`${e}plans.2.billingType`,plan2BillingInterval:`${e}plans.2.billingInterval`,hasMorePlans:`${e}plans.3.price.amount`}),er=e=>[ea({amount:e.plan0Amount,currency:e.plan0Currency,billingType:e.plan0BillingType,billingInterval:e.plan0BillingInterval}),ea({amount:e.plan1Amount,currency:e.plan1Currency,billingType:e.plan1BillingType,billingInterval:e.plan1BillingInterval}),ea({amount:e.plan2Amount,currency:e.plan2Currency,billingType:e.plan2BillingType,billingInterval:e.plan2BillingInterval}),null==e.hasMorePlans?void 0:"…"].filter(Boolean).join(" \xb7 "),el=i(29048).Yj().email(),es=e=>{let t=(e||[]).find(e=>"block"===e._type);return t?t.children.filter(e=>"span"===e._type).map(e=>e.text).join(""):null},ep=e=>!!e?.roles.some(e=>"administrator"===e.name),ed=(0,r.MIB)({name:"features",type:"array",title:"Subscription offerings",description:"What this subscription give to the user?",initialValue:[],group:"features",of:[{type:"object",title:"Offering",fields:[{type:"string",title:"Title",name:"title",validation:e=>e.required()},{type:"array",title:"Feature set",name:"featureSet",validation:e=>e.min(1),of:[{type:"object",fields:[{type:"string",title:"Name",name:"name",validation:e=>e.required()},{type:"array",title:"Description",name:"description",validation:e=>e.required(),of:[{type:"block"}]},{type:"altImage",title:"Icon",name:"icon"}]}]}]}]}),ec=(0,r.MIB)({type:"object",title:"Plan",icon:_.aQJ,name:"subscriptionPlan",groups:[{name:"details",title:"Details"},{name:"price",title:"Price"},{name:"features",title:"Features"}],fields:[{type:"string",title:"Name",name:"name",validation:e=>e.required(),group:"details"},{type:"string",title:"Code",name:"code",description:"Subscription plan code — the key the checkout hands off on, convention <tier>_<period> (e.g. care_monthly). Must be unique within this subscription.",group:"details",readOnly:e=>!e.currentUser?.roles.some(e=>"administrator"===e.name),validation:e=>e.required().custom((e,t)=>{let{plans:i}=t.document;return!((i?.filter(t=>t.code===e)??[]).length>1)||"Plan codes must be unique within the subscription"})},{type:"string",title:"Highlight",name:"highlight",description:"A short line of text that adds emphasis or additional appeal to the subscription plan, often used to highlight benefits or key features",group:"details"},{type:"string",title:"Tag",name:"tag",description:"A small tag to show near the plan name",validation:e=>e.max(20),group:"details"},{type:"array",title:"Description",name:"description",validation:e=>e.required(),group:"details",of:[{type:"block"}]},{type:"string",title:"Billing type",name:"billingType",description:"Is this plan bought once or billed on a recurring basis?",group:"price",validation:e=>e.required(),options:{layout:"radio",list:[{title:"One-time",value:"oneTime"},{title:"Recurring",value:"recurring"}]}},{type:"price",title:"Price",name:"price",description:"Amount and currency of the plan",group:"price",validation:e=>e.required()},{type:"string",title:"Billing interval",name:"billingInterval",description:"How often a recurring plan bills. This is what the visitor sees — it is never inferred from the price.",group:"price",options:{layout:"radio",list:[{title:"Monthly",value:"monthly"},{title:"Yearly",value:"yearly"}]},hidden:e=>{let t=e.parent;return t?.billingType!=="recurring"},validation:e=>e.custom((e,t)=>
1{let i=t.parent;return i?.billingType!=="recurring"||!!e||"Required"})},{type:"object",title:"Prices",name:"prices",hidden:!0,deprecated:{reason:"Replaced by the plan-level billing type, price and billing interval (CMS-938)"},group:"price",fields:[{name:"type",type:"string",title:"Type",description:"Type of subscription plan",options:{layout:"radio",list:[{title:"Monthly",value:"monthly"},{title:"Yearly",value:"yearly"},{title:"One-Time",value:"oneTime"}]}},{name:"monthly",type:"object",title:"Monthly Price",fields:[{name:"price",title:"Price",type:"price"},{name:"code",type:"string",title:"Code",description:"Subscription product code"}]},{name:"yearly",type:"object",title:"Yearly Price",fields:[{name:"price",title:"Price",type:"price"},{name:"code",type:"string",title:"Code",description:"Subscription product code"},{name:"tag",type:"string",title:"Tag",description:"A small tag to show near the yearly price"},{name:"perks",type:"array",title:"Why Choose Yearly?",of:[{type:"block",styles:[],lists:[],marks:{annotations:[],decorators:[]}}]}]},{name:"oneTime",type:"object",title:"One-Time Price",fields:[{name:"price",title:"Price",type:"price"},{name:"code",type:"string",title:"Code",description:"Subscription product code"}]}]}
1,{type:"array",title:"Features",group:"features",name:"features",of:[{type:"object",validation:e=>e.required(),fields:[{type:"string",title:"Feature",name:"name",validation:e=>e.required(),components:{input:e=>{let{schemaType:t,renderDefault:i}=e,{options:o}=t,a=(0,r.FlV)(["features"]),n=(a?.flatMap(e=>e.featureSet??[])??[]).filter(e=>!!e.name).map(e=>e.name??"");return i({...e,schemaType:{...t,options:{...o,list:n},initialValue:n[0]},value:e.value})}}},{type:"string",title:"Available",name:"valueType",validation:e=>e.required(),options:{layout:"radio",list:[{title:"Yes",value:"true"},{title:"No",value:"false"},{title:"Custom",value:"custom"}]}},{type:"string",title:"Value",name:"value",validation:e=>e.custom((e,t)=>{let i=t.parent;return i?.valueType!=="custom"||!!e||"Required"}),hidden:e=>"custom"!==e.parent.valueType}]}]},{name:"visuals",type:"array",title:"Promotional images",description:"Some promotional images to show in carousels",of:[{type:"backgroundMedia"}],group:"details"}],preview:{select:{title:"name",code:"code",billingType:"billingType",billingInterval:"billingInterval"},prepare:e=>{let{title:t,code:i,billingType:o,billingInterval:a}=e;return{title:t,subtitle:[i,"recurring"===o?a:"one-time"].filter(Boolean).join(" — ")}}}}),eu=(0,r.U85)({type:"document",name:"subscription",title:"Subscription",groups:[{name:"details",title:"Details"},{name:"plans",title:"Plans"},{name:"features",title:"Features"},{name:"visuals",title:"Visuals"}],fields:[{name:"logo",type:"altImage",title:"Logo",description:"Subscription logo",group:"visuals"},{name:"name",type:"string",title:"Name",validation:e=>e.required(),group:"details"},{name:"description",type:"array",title:"Description",description:"A small description for the subscription",validation:e=>e.required(),of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[et]}}],group:"details"},{name:"planTypeLabel",type:"string",title:"Plan type label",description:'The word shown after the plan name in the store subscription step — "Subscription" reads as "Care Subscription". Left empty it falls back to "Subscription", which is what every subscription authored before this field said.',group:"details",validation:e=>e.max(30)},ed,{type:"array",name:"plans",title:"Plans",validation:e=>e.min(1),group:"plans",of:[ec]}],preview:{select:{name:"name",media:"logo.image",description:"description",...en()},prepare:e=>{let{name:t,description:i,media:o,...a}=e;return{title:t,media:o,subtitle:er(a)||(es(i)??"")}}}});var em=i(24915);let eg={type:"object",name:"link",title:"Link",i18nTitleKey:"inputs.portable-text.annotation.link",options:{modal:{type:"popover"}},fields:[{name:"href",type:"url",title:"Link",description:"A valid web, email, phone, or relative link.",validation:e=>e.uri({scheme:["http","https","tel","mailto"],allowRelative:!0})}]},ey={title:"Strong",value:"strong"},eh={title:"Italic",value:"em"},ef={title:"Underline",value:"underline"},eb=[ey,eh,ef],ev={title:"Bulleted list",value:"bullet"},ew={title:"Numbered list",value:"number"},ek=[ev,ew],eT=(0,r.MIB)({name:"title",type:"string",title:"Title",description:"A concise heading that represents the bundle",validation:e=>e.required(),group:"editorial"}),eI=(0,r.MIB)({name:"subtitle",type:"string",title:"Subtitle",description:"A short secondary line that provides additional context or highlights about the bundle.",group:"editorial"}),eS=(0,r.MIB)({name:"market",type:"string",title:"Market",description:"The market this bundle is authored for. Shown in pickers and previews to tell similar bundles apart — it does not filter anything.",group:"details",validation:e=>e.required(),options:{list:q.map(e=>({title:e.title,value:e.id}))}}),eC=(0,r.MIB)({name:"initialVisuals",type:"array",title:"Initial Visuals",description:"A set of images or media shown first in the bundle's media section when the page loads.",group:"visuals",of:[{type:"backgroundMedia"}]}),eA=(0,r.MIB)({type:"object",name:"informationalBanner",title:"Informational Banner",description:"A banner displayed below the product media to share important or helpful information with customers.",group:"editorial",fields:[{type:"boolean",name:"enable",initialValue:!1,title:"Want to add the informational banner?"},{type:"string",name:"title",title:"Title",description:"A small heading to show in the banner",hidden:e=>{let t=e.parent;return!t?.enable},validation:e=>e.custom((e,t)=>
1{let i=t.parent;return!i?.enable||!!e||"Required"})},{type:"array",name:"content",title:"Content",of:[{type:"block",styles:[],lists:ek,marks:{decorators:eb,annotations:[et]}}],hidden:e=>{let t=e.parent;return!t?.enable},validation:e=>e.custom((e,t)=>{let i=t.parent;return!i?.enable||!!e||"Required"})},{type:"altImage",name:"image",title:"Image",description:"An image to show in the banner",hidden:e=>{let t=e.parent;return!t?.enable}}]}),eP=(0,r.MIB)({type:"array",name:"steps",title:"Steps",description:"Add, edit, and reorder the steps the visitor walks through. Removing a step from the list is how you turn it off.",group:"steps",of:[{type:"productChoiceStep"},{type:"subscriptionStep"},{type:"accessoryStep"},{type:"quantityStep"},{type:"signupGateStep"},{type:"promoDiscountStep"}],validation:e=>e.required().custom(e=>{let t=e??[],i=e=>t.filter(t=>t._type===e).length;if(0===i("subscriptionStep"))return"A bundle must contain a subscription step — every bundle is sold with a subscription.";if(i("subscriptionStep")>1)return"Only one subscription step is allowed — remove the extra one.";let o=[{type:"productChoiceStep",label:"product choice"},{type:"quantityStep",label:"quantity"},{type:"signupGateStep",label:"signup gate"},{type:"promoDiscountStep",label:"promo discount"}].find(({type:e})=>i(e)>1);if(o)return`Only one ${o.label} step is allowed — merge its content into the existing one.`;let a=t.findIndex(e=>"quantityStep"===e._type),n=t.findIndex(e=>"productChoiceStep"===e._type);return -1===a||-1!==n&&!(n>a)||"The quantity step needs a product step before it — add one, or drag the quantity step after the product step."})}),ex=(0,r.MIB)({name:"endingVisuals",type:"array",title:"Closing Visuals",description:"A set of images or media shown first in the bundle's media section when the user complete the bundle.",group:"visuals",of:[{type:"backgroundMedia"}]}),eM=(0,r.MIB)({type:"string",name:"theme",title:"Theme",description:"Select the theme used to represent the bundle's visual identity, affecting key elements like buttons, headers, and accents.",group:"design",initialValue:"professional",options:{list:[{title:"Professional",value:"professional"},{title:"Epimonitor",value:"epimonitor"}]}}),eq=(0,r.MIB)({type:"object",name:"payButtonConfig",group:"advanced",title:"Pay button",description:"Settings that define the appearance and behavior of the pay button, including label, style, and visibility options.",fields:[{type:"string",name:"label",title:"Pay button label",description:"The label displayed in the button.",initialValue:"Confirm and pay"},{type:"boolean",name:"showQuoteButton",title:"Show 'Get a quote' button?",description:"Enable this option to display a 'Get a quote' button alongside the pay button, allowing users to request a quote instead of proceeding directly to payment.",initialValue:!1}]}),eB=(0,r.MIB)({type:"object",name:"volumeDiscount",group:"discounts",title:"Volume Discount Settings",description:"Configure volume discount thresholds and percentages. A pricing rule, not a step. Stacking order: per-item sale prices apply first, then the volume discount, then any promo discount — a percentage promo is calculated on the subtotal the volume discount already reduced.",fields:[{type:"boolean",name:"enable",initialValue:!1,title:"Enable volume discount?"},{type:"string",name:"label",initialValue:"Volume Discount",title:"Volume discount label",description:"The label displayed for the volume discount in checkout.",hidden:e=>{let t=e.parent;return!t?.enable}},{type:"array",name:"thresholds",title:"Discount Thresholds",description:"Configure quantity thresholds and their corresponding discounts",hidden:e=>{let t=e.parent;return!t?.enable},of:[{type:"object",name:"volumeDiscountItem",fields:[{type:"number",name:"quantity",title:"Minimum Quantity",description:"Minimum quantity required for this discount tier",validation:e=>e.required().positive().integer()},{type:"number",name:"productDiscount",title:"Product Discount (%)",description:"Percentage discount for devices",validation:e=>e.required().min(0).max(100)},{type:"number",name:"subscriptionDiscount",title:"Subscription Discount (%)",description:"Percentage discount for subscriptions",validation:e=>e.required().min(0).max(100)}],preview:{select:{quantity:"quantity",productDiscount:"productDiscount",subscriptionDiscount:"subscriptionDiscount"},prepare(e){let{quantity:t,productDiscount:i,subscriptionDiscount:o}=e;return{title:`${t}
1+ items`,subtitle:`Device: ${i}%, Subscription: ${o}%`}}}}],validation:e=>e.custom((e,t)=>{let i=t.parent;return!i?.enable||!!e&&0!==e.length||"At least one threshold is required when volume discount is enabled"})}]}),eL=(0,r.U85)({type:"document",name:"bundle",title:"Bundle",description:"A purchase bundle",groups:[{name:"details",title:"General Info"},{name:"steps",title:"Steps"},{name:"discounts",title:"Discounts"},{name:"editorial",title:"Editorial",icon:em.u6n},{name:"visuals",title:"Visuals",icon:N.a4Q},{title:"Design",name:"design",icon:_.IFh},{name:"advanced",title:"Advanced",icon:N.imn},{name:"faq",title:"FAQ",icon:_.qQC}],fields:[eT,eI,eS,eP,eC,eA,eB,ex,eM,eq,{type:"array",name:"faqs",title:"FAQS",group:"faq",description:"Provide answers to frequently asked questions to help customers find quick solutions.",of:[{type:"object",title:"FAQ",fields:[{type:"string",name:"question",title:"Question",validation:e=>e.required()},{type:"array",name:"answer",title:"Answer",of:[{type:"block",styles:[{title:"Normal",value:"normal"},{title:"Title",value:"h5"},{title:"Subtitle",value:"h6"}],marks:{decorators:[],annotations:[eg]}},{type:"columnsWithImages",title:"Columns with images"}]},{type:"altImage",name:"image",title:"Image"}]}]},{name:"assurancePlan",type:"array",title:"Purchase Assurance Plan",group:"editorial",of:[{type:"object",fields:[{type:"string",name:"value",title:"Assurance",validation:e=>e.required()},{type:"altImage",name:"icon",validation:e=>e.required(),title:"Icon"}],preview:{select:{value:"value",icon:"icon"},prepare:e=>{let{value:t,icon:i}=e;return{title:t,media:i?.image}}}}]},{name:"checkoutNotes",title:"Checkout notes",type:"array",group:"editorial",of:[{type:"block",styles:[],lists:[],marks:{decorators:[{title:"Italic",value:"em"}],annotations:[]}}]}],preview:{select:{title:"title",initialVisuals:"initialVisuals",subtitle:"subtitle",market:"market"},prepare:e=>{let t,{title:i,initialVisuals:o,subtitle:a,market:n}=e,r=o?.[0],l=r?.type==="image"?r.image?.desktop?.image:void 0,s=(t=n??"",q.find(e=>e.id===t)??q[0]);return{title:`${i} ${s.logo}`,media:l,subtitle:n?[s.title,a].filter(Boolean).join(" — "):a}}}}),ej=(0,r.MIB)({name:"sizes",type:"array",title:"Sizes",description:"Optional — leave empty when this colour comes in a single size.",of:[{type:"object",name:"accessorySize",validation:e=>e.required(),fields:[{type:"string",name:"value",initialValue:"unique_wrist",validation:e=>e.required(),options:{layout:"dropdown",list:ee}},{name:"outOfStock",type:"boolean",title:"Out of stock",description:"Check if the size is out of stock",initialValue:!1}],preview:{select:{value:"value"},prepare:({value:e})=>({title:ee.find(t=>t.value===e)?.title})}}]}),eU=(0,r.MIB)({name:"colorsAvailable",type:"array",title:"Colors",description:"Optional — leave empty for accessories with no colour choice (e.g. a charger). Each colour lists its own available sizes.",group:"details",of:[{type:"object",name:"accessoryColor",fields:[{name:"name",type:"string",title:"Name",validation:e=>e.required()},{name:"code",type:"string",title:"Code",description:"Accessory color variant code value",validation:e=>e.required(),readOnly:e=>!e.currentUser?.roles.some(e=>"administrator"===e.name)},{name:"colorCode",title:"Color",type:"simplerColor",options:{colorList:[{label:"White",value:"#ffffff"},{label:"Black",value:"#000000"},{label:"Custom",value:"custom"}],colorFormat:"hex"},validation:e=>e.required()},ej,{name:"outOfStock",type:"boolean",title:"Out of stock",description:"Check if the color is out of stock",initialValue:!1},{name:"image",type:"altImage",title:"Image",description:"An optional image of the accessory with specified color"}],preview:{select:{title:"name",colorCode:"colorCode.value",colorLabel:"colorCode.label",media:"image.image"},prepare:e=>({...e,subtitle:"Custom"===e.colorLabel?e.colorCode:e.colorLabel})}}]}),eV=(0,r.U85)({type:"document",name:"accessory",title:"Accessory",groups:[{name:"info",title:"Basic information"},{name:"details",title:"Details"},{name:"visuals",title:"Visuals"},{name:"price",title:"Price"}],fields:[{name:"code",type:"string",title:"Code",description:"Accessory code (SKU)",validation:e=>e.required(),group:"details",readOnly:e=>!e.currentUser?.roles.some(e=>"administrator"===e.name)},{name:"name",type:"string",title:"Name",description:'Name of the accessory (e.g. "Stretchable Milan"). The colour chosen by the visitor completes the displayed name.',validation:e=>e.required(),group:"info"},{name:"image",type:"altImage",title:"Image",description:"A visual image for the accessory",validation:e=>e.required(),group:"visuals"},{name:"promotionalImages",type:"array",title:"Promotional images",description:"Some promotional images to show for example in carousels",of:[{type:"backgroundMedia"}],group:"visuals"},{name:"price",type:"price",title:"Price",description:"Price of the accessory",validation:e=>e.required(),group:"price"},{name:"onSale",type:"boolean",title:"On sale",description:"Is this accessory on sale?",initialValue:!1,group:"price"},{name:"salePrice",type:"price",title:"Sale Price",description:"Sale price of the accessory",group:"price"},{name:"outOfStock",type:"boolean",title:"Out of stock",description:"Check if the accessory is out of stock",initialValue:!1,group:"price"},eU,{name:"includedSizes",type:"array",title:"Sizes included in the pack",description:"Only for an accessory sold as a pack of several sizes at one price. Shown as read-only labels wherever the accessory is listed without a size of its own. Leave empty when the visitor picks a size — that list lives on each colour.",group:"details",of:[{type:"object",name:"accessoryIncludedSize",validation:e=>e.required(),fields:[{type:"string",name:"value",title:"Size",validation:e=>e.required(),options:{layout:"dropdown",list:ee}}],preview:{select:{value:"value"},prepare:({value:e})=>({title:ee.find(t=>t.value===e)?.title})}}]},{name:"description",type:"array",title:"Description",description:"A small description for the accessory",hidden:!0,of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[et]}}],group:"details"},{name:"tags",type:"array",title:"Tags",description:"Some tags to add to the accessory (e.g. For EmbracePlus)",hidden:!0,of:[{type:"string"}],group:"details"},{name:"features",type:"array",title:"Features",hidden:!0,group:"details",of:[{type:"string",options:{layout:"dropdown",list:[{title:"Suitable for children",value:"suitable_for_children"}]}}]},{name:"size",type:"string",title:"Size",hidden:!0,group:"details",options:{layout:"dropdown",list:ee}},{...(({name:e,group:t,excludeFields:i})=>(0,r.MIB)({type:"object",name:e,group:t,title:"Color",description:"",fields:[{name:"name",type:"string",title:"Name",validation:e=>e.required()},...i?.includes("code")?[]:[{name:"code",type:"string",title:"Code",description:"",validation:e=>e.required(),readOnly:e=>!e.currentUser?.roles.some(e=>"administrator"===e.name)}],{name:"colorCode",title:"Color",type:"simplerColor",options:{colorList:[{label:"White",value:"#ffffff"},{label:"Black",value:"#000000"},{label:"Custom",value:"custom"}],colorFormat:"hex"},validation:e=>e.required()},...i?.includes("outOfStock")?[]:[{name:"outOfStock",type:"boolean",title:"Out of stock",description:"Check if the color is out of stock",initialValue:!1}],...i?.includes("image")?[]:[{name:"image",type:"altImage",title:"Image",description:"An optional image of the accessory with specified color"}]],preview:{select:{title:"name",colorCode:"colorCode.value",colorLabel:"colorCode.label",media:"image.image"},prepare:e=>({...e,subtitle:"Custom"===e.colorLabel?e.colorCode:e.colorLabel})}}))({name:"defaultColor",group:"details",excludeFields:["code","image","outOfStock"]}),hidden:!0},{name:"defaultSize",type:"string",title:"Size",hidden:!0,group:"details",options:{layout:"dropdown",list:ee}}],preview:{select:{name:"name",amount:"price.amount",currency:"price.currency",outOfStock:"outOfStock",image:"image"},prepare:e=>({title:e.name,media:e.image?.image,subtitle:J(e)})}}),eE=(0,r.U85)({type:"document",name:"embraceplusCompatibility",title:"Smartphone Compatibility",fields:[{title:"Title",type:"string",name:"title",validation:e=>e.required()},{type:"array",name:"tags",title:"Tags",of:[{type:"string"}],options:{layout:"tags"}},{type:"array",name:"devices",title:"Devices",description:"Add the devices types (EmbracePlus, Embracemini, etc.)",of:[{type:"string"}]},{type:"array",name:"useCases",title:"Use cases",description:"Add the use cases (Epilepsy, Research, etc.)",of:[{type:"string"}]},{title:"Information",type:"object",name:"latestVersion",fields:[{type:"string",name:"name",title:"Version"},{type:"date",name:"publishedAt",title:"Published at"}]},{type:"altImage",name:"image",title:"Image",validation:e=>e.required()},{type:"array",name:"content",title:"Content",of:[{type:"block"},{title:"Box",type:"object",name:"boxContent",fields:[{name:"content",type:"array",title:"Box content",of:[{type:"block",styles:[],lists:[],marks:{decorators:[{title:"Strong",value:"strong"}]}}]}],preview:{prepare:()=>({title:"Box content"})}},{type:"table",title:"Table"}]}],preview:{select:{title:"title",media:"image.image"}}}),eD=(0,r.U85)({name:"imageAsset",type:"document",title:"Image",fields:[{name:"title",type:"string",title:"Title",description:"A simple to title to help to find the Image",validation:e=>e.required()},{name:"desktopImage",type:"image",title:"Desktop",description:"Image to show on desktop devices",validation:e=>e.required()},{name:"mobileImage",type:"image",title:"Mobile",description:"Image to show on mobile devices"},{name:"alt",type:"string",title:"Alternate Text",description:"Specifies an alternate text for an image, if the image cannot be displayed.",validation:e=>e.required()}
1],preview:{select:{media:"desktopImage",subtitle:"alt",title:"title"}}});var e_=i(91129);let eR=(0,r.U85)({name:"pageLayout",type:"document",title:"Layout",icon:N.d$I,groups:[{name:"general",title:"General",icon:N.tmA},{name:"header",title:"Header",icon:N.TbK},{name:"menu",title:"Menu",icon:N.vIB},{name:"footer",title:"Footer",icon:N.d$I}],fields:[(0,r.MIB)({name:"name",type:"string",title:"Name",description:"How this layout is listed in the CMS. Never shown on the website.",group:"general",validation:e=>e.required()}),(0,r.MIB)({name:"description",type:"text",rows:3,title:"Description",description:"Optional note for whoever edits this layout — where it is used, what makes it different. Never shown on the website.",group:"general"}),(0,r.MIB)({name:"logo",type:"altImage",title:"Logo",description:"The logo shown in the header.",group:"header",validation:e=>e.custom(e=>{let t=e?.image?.asset;return!!t?._ref||"Upload a logo for this layout"})}),(0,r.MIB)({name:"logoLink",type:"link",title:"Logo link",description:"Where the logo takes visitors. Leave empty to point it at the home page.",group:"header"}),(0,r.MIB)({name:"transparentLogo",type:"altImage",title:"Logo on transparent header",description:"Optional alternative logo used when the header sits over a dark hero. Leave empty to always use the main logo.",group:"header"}),(0,r.MIB)({name:"headerButtons",type:"array",title:"Header buttons",description:'Up to two call-to-action buttons on the right of the header (e.g. "Talk to our team", "Log in"). Leave empty for a header with no buttons.',group:"header",icon:e_.zAw,of:[(0,r.dOf)({type:"linkButton"})],validation:e=>e.max(2)}),(0,r.MIB)({name:"showRegionSwitcher",type:"boolean",title:"Show region switcher",description:"Show the country/region selector in the header.",group:"header",initialValue:!1}),(0,r.MIB)({name:"topbar",type:"string",title:"Topbar",description:'The slim bar above the header. "Epilepsy Monitoring" shows the product cards edited in Site settings, the same on every layout. "empatica.com" shows a link back to the main site, used by the product chrome.',group:"header",options:{layout:"radio",list:[{title:"None",value:"none"},{title:"Epilepsy Monitoring cards",value:"epilepsy"},{title:"Link back to empatica.com",value:"empatica"}]},initialValue:"none",validation:e=>e.required()}),(0,r.MIB)({name:"menu",type:"navbarMenu",title:"Navigation menu",description:"The entries shown in the header of pages using this layout.",group:"menu"}),(0,r.MIB)({name:"footer",type:"footerMenu",title:"Footer",description:"The columns and quick links shown at the bottom of pages using this layout.",group:"footer"})],preview:{select:{title:"name",subtitle:"description",media:"logo.image"},prepare:({title:e,subtitle:t,media:i})=>({title:e||"Untitled layout",subtitle:t,media:i})}});var eO=i(24813);let eN=[{name:"editorial",title:"Editorial",icon:em.u6n},{name:"seo",title:"SEO",icon:eO.InQ},{name:"advanced",title:"Advanced",icon:N.imn},{name:"visuals",title:"Visuals",icon:N.a4Q}],eW=(0,r.MIB)({name:"language",type:"string",title:"Market",description:"Which market this page belongs to. Use the Translations menu at the top to create the same page for the other markets.",group:"editorial",options:{list:q.map(e=>({title:e.title,value:e.id})),layout:"dropdown"},initialValue:"en-us",validation:e=>e.required()}),eG=async e=>({_ref:await e.getClient({apiVersion:"2024-01-01"}).fetch('*[_type == "siteSettings"][0].defaultLayout._ref')??"pageLayout.research"}),e$=(0,r.MIB)({name:"layout",type:"reference",title:"Layout",description:"The header and footer this page uses.",to:[{type:"pageLayout"}],group:"editorial",validation:e=>e.required(),initialValue:(e,t)=>eG(t)}),eF=({currentUser:e})=>!ep(e),ez=[(0,r.MIB)({name:"slug",type:"slug",title:"Slug (legacy)",readOnly:!0,hidden:eF,group:"advanced"}),(0,r.MIB)({name:"parent",type:"reference",title:"Parent page (legacy)",to:[...P,"rootPage"].map(e=>({type:e})),readOnly:!0,hidden:eF,group:"advanced"})],eQ=e=>"object"==typeof e&&null!==e,eH=(0,r.MIB)({name:"previousRoutePaths",type:"array",title:"Previous addresses",description:"Recorded automatically when a published page is republished at a different address. Whether an old address still works was decided at that moment, on the publish confirmation.",of:[{type:"previousRoutePath"}],group:"advanced",readOnly:({currentUser:e})=>!ep(e),hidden:({currentUser:e,value:t})=>!ep(e)&&(!Array.isArray(t)||0===t.length),validation:e=>e.custom(e=>{let t,i=(t=(Array.isArray(e)?e:[]).filter(eQ).map(e=>e.routePath).filter(e=>!!e)).find((e,i)=>t.indexOf(e)!==i);return!i||`${i} is listed twice — one address can only have one answer`})}),eY=["accordion","divider","bandDivider","downloadableAsset","talkToTeam","featuredSection","newsletter","cardCarousel","imageAutoScroll","statisticsSection","sectionWithBlogPosts","newsBanner","quoteBanner","animatedBlurImage","moduleWithDescriptions","bulletSection","calloutBanner","moduleWithImage","regi
1onSelectorModule","sectionWithMedia","launchAtf","atfWithMedia","mediaSection","sectionWithMoon","moduleWithMedia","sectionWithBackgroundMedia","moduleWithMannequin","sectionWithParallaxVideo","moduleWithBoosterParallax","contentSection","checklistSection","moduleWithTestimonials","announcementBanner","atfWithBackgroundMedia","productNumbers","moduleExpandable","animatedVideoImage","moduleWithFeaturesImage","customerQuote","moduleWithCarousel","moduleWithMultipleColumns","faqs","tradeInModule","columnsSection","seizureForecastingModule","sponsorSection","whatYouGetSection","accessoriesModule","subscriptionTable","dynamicCardsModule","condensedList","dynamicMosaic","imageCarousel","horizontalIcons","caseStudiesList","caseStudiesCollection","typeformSection","tabSwitcherSection","subscriptionModule","optionComparison","featuresShowcase","footnotes","smartphoneCompatibilityList","workableModule","publicationList","comparisonTableSection"],eX=e=>{let t=[];if(e.include)t.push(...e.include);else if(e.exclude&&e.exclude?.length!==0){let i=eY.filter(t=>!e.exclude?.includes(t));t.push(...i)}else t.push(...eY);return{name:e.name,type:"array",title:e.title??"Sections",description:e.description??"Add, edit, and reorder sections",of:t.map(e=>({type:e})),group:e.group,validation:e.validation,hidden:e.hidden,components:e.components}},eK=(e="seo.image")=>({select:{title:"title",routePath:"routePath",language:"language",media:e},prepare:({title:e,routePath:t,language:i,media:o})=>{let a=q.find(e=>e.id===(i??u.HM));return{title:e??"Untitled",subtitle:`${a?.logo??"\uD83C\uDF10"}  ${t??"— no URL path —"}`,media:o}}}),eZ=e=>e.custom((e,{parent:t})=>!!t?.isEmptyPath||!!t?.redirectInfo?.redirect||!!e||"Sections should be filled"),eJ=(0,r.U85)({name:"sectionsPage",type:"document",title:"Sections Page",groups:eN,icon:A.hVg,fields:[...ez,{name:"title",type:"string",title:"Title",validation:e=>e.required(),group:"editorial"},{name:"isEmptyPath",type:"boolean",title:"Is this an empty path?",description:"If you don't want to render a content at this path (so it means that it's a root path e.g. /research) check this box, instead if you want to render some content leave it checked",initialValue:!1,group:"advanced"},{name:"routePath",type:"routePath",group:"editorial"},eH,eW,{type:"seo",name:"seo",title:"SEO Information",description:"SEO information of the page",hidden:({parent:e})=>!!e.isEmptyPath,validation:eZ,group:"seo"},e$,eX({name:"content",exclude:["accessoriesModule","subscriptionTable","seizureForecastingModule","regionSelectorModule","newsBanner"],hidden:({parent:e})=>!!(e.isEmptyPath||e.redirectInfo?.redirect),validation:eZ,group:"editorial"}),{name:"noIndex",type:"boolean",title:"Prevent Search Indexing",description:"Enable this to prevent search engines from indexing this page",group:"advanced"},{name:"redirectInfo",type:"redirectToPage",title:"Redirect",group:"advanced"},{name:"visualTest",title:"Include in Visual Regression Tests",type:"boolean",description:"Admin only: marks this page for Playwright visual regression test runs.",group:"advanced",initialValue:!1,hidden:({currentUser:e})=>!e?.roles.some(e=>"administrator"===e.name)}],preview:eK()}),e0=(0,r.U85)({name:"rootPage",type:"document",title:"Homepage",fields:[{name:"title",type:"string",title:"Title",validation:e=>e.required(),readOnly:({currentUser:e})=>!e?.roles.find(e=>"administrator"===e.name)},{name:"language",type:"string",readOnly:!0,hidden:!0}]}),e1=(0,r.U85)({name:"homePage",type:"document",title:"Homepage",groups:eN,options:{singleton:!0},fields:[...ez,{name:"title",type:"string",title:"Title",validation:e=>e.required(),group:"editorial"},{name:"routePath",type:"routePath",group:"editorial",initialValue:"/"},eH,{type:"seo",name:"seo",title:"SEO Information",description:"SEO information of the page",group:"seo"},e$,{name:"news",type:"newsBanner",title:"Latest news"},{name:"atf",type:"atfWithBackgroundMedia",title:"Above the fold",description:"Show up an ATF full page",validation:e=>e.required()},eX({name:"content",exclude:["accessoriesModule","subscriptionTable","seizureForecastingModule","regi
1onSelectorModule","newsBanner"]}),{name:"visualTest",title:"Include in Visual Regression Tests",type:"boolean",description:"Admin only: marks this page for Playwright visual regression test runs.",group:"advanced",initialValue:!1,hidden:({currentUser:e})=>!e?.roles.some(e=>"administrator"===e.name)}],preview:eK()}),e5=e=>{if(!e.schemaType.validation)return null;let t=e.schemaType.validation,i=t?.[0]?._rules||[],o=i.find(e=>"max"===e.flag||"length"===e.flag)?.constraint,a=e?.value?.length||0;return!isNaN(o)&&a>=o?null:(0,s.jsx)(r.Msi,{...e})},e2=e=>e.renderDefault({...e,arrayFunctions:e5}),e8=(0,r.U85)({name:"centeredPage",type:"document",title:"Centered Page",groups:eN,fields:[...ez,{name:"title",type:"string",title:"Title",validation:e=>e.required(),group:"editorial"},{name:"routePath",type:"routePath",group:"editorial"},eH,eW,{type:"seo",name:"seo",title:"SEO Information",description:"SEO information of the page",group:"seo"},eX({name:"content",title:"Content",description:"Content to show at the center of the page",validation:e=>e.required().length(1),components:{input:e2},group:"editorial"}),{name:"noIndex",type:"boolean",title:"Prevent Search Indexing",description:"Enable this to prevent search engines from indexing this page",group:"advanced"},{name:"visualTest",title:"Include in Visual Regression Tests",type:"boolean",description:"Admin only: marks this page for Playwright visual regression test runs.",group:"advanced",initialValue:!1,hidden:({currentUser:e})=>!e?.roles.some(e=>"administrator"===e.name)}],preview:eK()}),e3={name:"caseStudyPage",type:"document",title:"Case Study",groups:eN,fields:[...ez,{name:"title",type:"string",title:"Title",description:"Title of the case study",validation:e=>e.required(),group:"editorial"},{name:"routePath",type:"routePath",group:"editorial"},eH,{name:"seo",type:"seo",title:"SEO Information",description:"SEO information of case study",validation:e=>e.required(),group:"seo"},e$,{name:"isFeatured",type:"boolean",title:"Featured",description:"Check this field if you want to show it at the top",initialValue:!1,group:"editorial"},{name:"tags",type:"array",of:[{type:"string"}],title:"Tags",description:"Tags to add to the case study",options:{layout:"tags"},validation:e=>e.required().min(1),group:"editorial"},{name:"image",type:"reference",to:[{type:"imageAsset"}],title:"Image",description:"An image to show in the list of the case studies",validation:e=>e.required(),group:"visuals"},{name:"redirect",type:"boolean",title:"Redirect",description:"Set if the case study should be redirected to another page",initialValue:!1,group:"advanced"},{name:"redirectTo",type:"link",title:"Redirect to",hidden:e=>{let t=e.parent;return!t?.redirect},validation:e=>e.custom((e,t)=>{let i=t.parent;return!i?.redirect||!!e||(0,T.Cm)(e)}),group:"advanced"},{name:"content",type:"array",of:[{type:"block",styles:[{title:"Subtitle",value:"highlight",component:e=>(0,s.jsx)("p",{style:{fontWeight:700,margin:0},children:e.children})},{title:"Normal",value:"normal"}]},{type:"statisticsSection"},{type:"highlightQuoteSection"},{type:"backgroundMedia",title:"Media",icon:A.j4C,preview:{prepare:()=>({title:"Image"})}}],title:"Content",description:"Case study content to show",group:"editorial",validation:e=>e.custom((e,t)=>{let i=t.parent;return!!i?.redirect||!!e||"Required"}),hidden:e=>{let t=e.parent;return!!t?.redirect}},{name:"visualTest",title:"Include in Visual Regression Tests",type:"boolean",description:"Admin only: marks this page for Playwright visual regression test runs.",group:"advanced",initialValue:!1,hidden:({currentUser:e})=>!e?.roles.some(e=>"administrator"===e.name)}],preview:eK("image.desktopImage")},e4=(0,r.U85)({name:"caseStudiesRootPage",type:"document",title:"Case Studies Index",groups:eN,icon:A.hxQ,options:{singleton:!0},fields:[{name:"title",type:"string",title:"Title",validation:e=>e.required(),group:"editorial"},{name:"routePath",type:"routePath",group:"editorial",initialValue:"/case-studies"},eH,{type:"seo",name:"seo",title:"SEO Information",description:"SEO information of the page",group:"seo"},e$,eX({name:"content",exclude:["accessoriesModule","subscriptionTable","seizureForecastingModule","regi
1onSelectorModule","newsBanner"],group:"editorial"}),{name:"noIndex",type:"boolean",title:"Prevent Search Indexing",description:"Enable this to prevent search engines from indexing this page",group:"advanced"},{name:"visualTest",title:"Include in Visual Regression Tests",type:"boolean",description:"Admin only: marks this page for Playwright visual regression test runs.",group:"advanced",initialValue:!1,hidden:({currentUser:e})=>!e?.roles.some(e=>"administrator"===e.name)}],preview:eK()}),e6=(0,r.U85)({name:"blogRootPage",type:"document",title:"Blog Root",groups:eN,options:{singleton:!0},fields:[...ez,{name:"title",type:"string",title:"Title",validation:e=>e.required(),group:"editorial"},{name:"routePath",type:"routePath",group:"editorial",initialValue:"/blog"},eH,e$,{type:"seo",name:"seo",title:"SEO Information",description:"SEO information of the page",group:"seo"},{type:"reference",name:"featured",title:"Featured post",to:{type:"blogPostPage"},group:"editorial"},{name:"visualTest",title:"Include in Visual Regression Tests",type:"boolean",description:"Admin only: marks this page for Playwright visual regression test runs.",group:"advanced",initialValue:!1,hidden:({currentUser:e})=>!e?.roles.some(e=>"administrator"===e.name)}],preview:eK()}),e7=(0,r.U85)({name:"blogCategoryPage",type:"document",title:"Blog Category",groups:eN,fields:[...ez,{name:"title",type:"string",title:"Title",validation:e=>e.required(),group:"editorial"},{name:"routePath",type:"routePath",group:"editorial"},eH,{type:"seo",name:"seo",title:"SEO Information",description:"SEO information of the page",group:"seo"},e$,{name:"visualTest",title:"Include in Visual Regression Tests",type:"boolean",description:"Admin only: marks this page for Playwright visual regression test runs.",group:"advanced",initialValue:!1,hidden:({currentUser:e})=>!e?.roles.some(e=>"administrator"===e.name)}],preview:eK()});var e9=i(35435),te=i.n(e9),tt=i(66870),ti=i.n(tt);te().extend(ti());let to=(0,r.U85)({name:"blogPostPage",type:"document",title:"Blog Post Page",groups:eN,fields:[...ez,{name:"title",type:"string",title:"Title",validation:e=>e.required(),group:"editorial"},{name:"routePath",type:"routePath",group:"editorial"},eH,{type:"seo",name:"seo",title:"SEO Information",description:"SEO information of the page",group:"seo"},e$,{name:"coverImage",type:"altImage",title:"Cover Image",description:"A cover image for the blog post",validation:e=>e.required(),group:"visuals"},{name:"author",type:"string",title:"Author",description:"Who is the author of the post?",validation:e=>e.required(),initialValue:"Empatica",group:"editorial"},{name:"date",type:"datetime",title:"Date",description:"Publication date of the post",validation:e=>e.required(),group:"editorial"},{name:"categories",type:"array",title:"Categories",description:"Categories assigned to the post",of:[{type:"reference",to:[{type:"blogCategoryPage"}]}],group:"editorial"},{name:"content",type:"array",title:"Content of the blog",of:[{type:"block"},{title:"Image",type:"imageLink"},{title:"Video",type:"embeddedVideo"},{title:"Typeform",type:"typeformLink"},{title:"Lottie",type:"lottie"}],validation:e=>e.required(),group:"editorial"},{name:"keywords",type:"array",title:"Search keywords",of:[{type:"string"}],options:{layout:"tags"},group:"editorial"},{name:"tags",type:"array",title:"Tags",description:"Tags of the posts",of:[{type:"string"}],options:{layout:"tags"},group:"editorial"},{name:"isEpilepsy",type:"boolean",title:"Epilepsy disclaimer",description:"This adds the Epilepsy disclaimer",group:"editorial"},{name:"visualTest",title:"Include in Visual Regression Tests",type:"boolean",description:"Admin only: marks this page for Playwright visual regression test runs.",group:"advanced",initialValue:!1,hidden:({currentUser:e})=>!e?.roles.some(e=>"administrator"===e.name)}],preview:eK("coverImage.image")}),ta=(0,r.U85)({name:"productPage",type:"document",title:"Product page",groups:eN,fields:[...ez,{name:"title",type:"string",title:"Title",validation:e=>e.required(),group:"editorial"},{name:"routePath",type:"routePath",group:"editorial"},eH,eW,{type:"seo",name:"seo",title:"SEO Information",description:"SEO information of the page",group:"seo"},e$,{name:"storeUrl",type:"link",title:"Store URL",description:"URL needed to redirect the user to the Store page of the product",validation:e=>e.custom(e=>!e.text||(0,T.Cm)(e)),group:"editorial",options:{enableText:!0}},{name:"loginUrl",type:"link",title:"Login URL",description:"Login URL of the product",validation:e=>e.custom(e=>!e||(0,T.Cm)(e)),group:"editorial",options:{enableText:!0}},eX({name:"content",exclude:["newsBanner"]}),{name:"visualTest",title:"Include in Visual Regression Tests",type:"boolean",description:"Admin only: marks this page for Playwright visual regression test runs.",group:"advanced",initialValue:!1,hidden:({currentUser:e})=>!e?.roles.some(e=>"administrator"===e.name)}],preview:eK()}),tn=(0,r.U85)({name:"storePage",type:"document",title:"Store Page",groups:eN,fields:[...ez,{name:"title",type:"string",title:"Title",validation:e=>e.custom((e,t)=>
1{let i=t.parent;return!!i?.redirectInfo?.redirect||!!e||"Required"}),group:"editorial"},{name:"routePath",type:"routePath",group:"editorial"},eH,eW,{type:"seo",name:"seo",title:"SEO Information",description:"SEO information of the page",validation:e=>e.custom((e,t)=>{let i=t.parent;return!!i?.redirectInfo?.redirect||!!e||"Required"}),group:"seo",hidden:({parent:e})=>!!e.redirectInfo?.redirect},e$,{name:"loginUrl",type:"link",title:"Login URL",description:"Login URL of the product",validation:e=>e.custom((e,t)=>{let i=t.parent;return!!i?.redirectInfo?.redirect||!e||(0,T.Cm)(e)}),group:"editorial",options:{enableText:!0},hidden:({parent:e})=>!!e.redirectInfo?.redirect},{name:"announcement",type:"announcementBanner",title:"Announcement",group:"editorial",hidden:({parent:e})=>!!e.redirectInfo?.redirect},{name:"bundle",type:"reference",title:"Bundle",description:"Any bundle can be referenced — the market label in its preview is what tells similar bundles apart. The editor picks the bundle and owns the call.",group:"editorial",validation:e=>e.custom((e,t)=>{let i=t.parent;return!!i?.redirectInfo?.redirect||!!e||"Required"}),to:[{type:"bundle"}],hidden:({parent:e})=>!!e.redirectInfo?.redirect},{name:"popup",type:"popupDialog",title:"Pop-up Dialog",description:"Configure a pop-up dialog to show when this store page is loaded.",group:"editorial",hidden:({parent:e})=>!!e.redirectInfo?.redirect},eX({name:"content",group:"editorial",hidden:({parent:e})=>!!e.redirectInfo?.redirect}),{name:"redirectInfo",type:"redirectToPage",title:"Redirect",group:"advanced"},{name:"checkout",type:"string",title:"Checkout",description:"Which checkout should be redirect?",group:"advanced",options:{list:K},validation:e=>e.custom((e,t)=>{let i=t.parent;return!!i?.redirectInfo?.redirect||!!e||"Required"}),hidden:({parent:e})=>!!e.redirectInfo?.redirect},{name:"noIndex",type:"boolean",title:"Prevent Search Indexing",description:"Enable this to prevent search engines from indexing this page",group:"advanced"},{name:"visualTest",title:"Include in Visual Regression Tests",type:"boolean",description:"Admin only: marks this page for Playwright visual regression test runs.",group:"advanced",initialValue:!1,hidden:({currentUser:e})=>!e?.roles.some(e=>"administrator"===e.name)}],preview:eK()}),tr=(0,r.U85)({name:"plainPage",type:"document",title:"Plain text page",groups:eN,fields:[...ez,{name:"title",type:"string",title:"Title",validation:e=>e.required(),group:"editorial"},{name:"routePath",type:"routePath",group:"editorial"},eH,eW,{type:"seo",name:"seo",title:"SEO Information",description:"SEO information of the page",group:"seo"},e$,{name:"content",type:"array",title:"Content",description:"",group:"editorial",of:[{type:"block"},{type:"table"}]},{name:"noIndex",type:"boolean",title:"Prevent Search Indexing",description:"Enable this to prevent search engines from indexing this page",group:"advanced"},{name:"visualTest",title:"Include in Visual Regression Tests",type:"boolean",description:"Admin only: marks this page for Playwright visual regression test runs.",group:"advanced",initialValue:!1,hidden:({currentUser:e})=>!e?.roles.some(e=>"administrator"===e.name)}],preview:eK()}),tl=(0,r.U85)({name:"publications",type:"document",title:"Publications",fields:[{name:"title",type:"string",title:"Title",description:"Title of the publications",validation:e=>e.required()},{name:"url",type:"url",title:"Link",description:"Link to the publication",validation:e=>e.required()},{name:"year",type:"number",title:"Year",description:"Year of the publication",validation:e=>[e.max(new Date().getFullYear()),e.required()]},{name:"byEmpatica",type:"boolean",title:"Published by Empatica",description:"Publication written by Empaticans",initialValue:!1},{name:"area",type:"array",of:[{type:"reference",to:{type:"publicationApplication"}}],title:"Therapeutic Area & Application",description:"The Therapeutic Area that the publication covers",validation:e=>e.required().min(1)},{name:"useCases",type:"array",of:[{type:"reference",to:{type:"publicationUseCase"}}],title:"Use Cases",description:"The use case that of the publication",validation:e=>e.required()},{name:"ageGroup",type:"array",of:[{type:"reference",to:{type:"publicationAgeGroup"}}],title:"Age Group",description:"The age group of the study presented in the publication"},{name:"studies",type:"array",of:[{type:"reference",to:{type:"publicationStudyType"}}],title:"Study Types",description:"The type of the studies described 
1in the publication",validation:e=>e.required()},{name:"devices",type:"array",of:[{type:"reference",to:{type:"publicationDevice"}}],title:"Devices Used",description:"The devices used in the study described in the publication"},{name:"authors",type:"string",title:"Authors",description:"Authors of the publication",validation:e=>e.required().min(1)},{name:"notes",type:"string",title:"Notes",description:"Some notes for publication",validation:e=>e.required()}]}),ts=(0,r.U85)({name:"publicationAgeGroup",type:"document",title:"Age Group",fields:[{name:"name",type:"string",title:"Age Group",description:"The Age Group for a study (adult, child, ecc.)",validation:e=>e.required()}],preview:{select:{title:"name"}}}),tp=(0,r.U85)({name:"publicationDevice",type:"document",title:"Device",fields:[{name:"name",type:"string",title:"Device",description:"The device used in the study (e.g. EmbracePlus, EmbraceMini, E4)",validation:e=>e.required()}],preview:{select:{title:"name"}}}),td=(0,r.U85)({name:"publicationApplication",type:"document",title:"Therapeutic Area & Application",fields:[{name:"name",type:"string",title:"Therapeutic Area",description:"Name of the therapeutic area",validation:e=>e.required()}],preview:{select:{title:"name"}}}),tc=(0,r.U85)({name:"publicationStudyType",type:"document",title:"Study Type",fields:[{name:"name",type:"string",title:"Study Type",description:"The type of the study addressed",validation:e=>e.required()}],preview:{select:{title:"name"}}}),tu=(0,r.U85)({name:"publicationUseCase",type:"document",title:"Condition & Use Case",fields:[{name:"name",type:"string",title:"Use case",description:"A use case for a study (e.g. Epilepsy)",validation:e=>e.required()}],preview:{select:{title:"name"}}});var tm=i(77349),tg=i(3511);let ty=(0,r.U85)({name:"quickLink",type:"document",title:"Links",icon:_.EQc,fields:[{name:"title",type:"string",title:"Title",description:"A simple to title to help to find the URL",validation:e=>e.required()},{name:"slug",type:"slug",title:"Slug",validation:e=>e.required(),description:"A meaningful url for this permanent link. Remember: when this url it's published you can not modified it anymore",options:{source:"title",maxLength:50},components:{input:e=>{let t=(0,r.FlV)(["_type"]),i=(0,r.FlV)(["_id"]),o=(0,r.zX2)(i.replace("drafts.",""),t),a=!!o.published,n=`${tg.bS}/go/${e.value?.current}`,l=null!=o.published;return(0,s.jsxs)(d.t,{gap:3,children:[(0,s.jsx)(tm.t,{...e.elementProps,value:e.value?.current,onChange:t=>{let i=t.currentTarget.value;e.onChange(i?(0,r.hZp)({current:i}):(0,r.wCX)())},disabled:l,placeholder:"Enter text here"}),(0,s.jsxs)(d.n,{muted:!0,size:1,children:[a?"Link to page: ":"Page url once published: ",(0,s.jsx)("a",{href:n,target:"blank",children:n})]})]})}},readOnly:e=>{let t=!!e.currentUser?.roles.find(e=>"administrator"===e.name);return!(!e.document||e.document._id.includes("drafts."))&&!t}},{name:"type",type:"string",title:"Type",validation:e=>e.required(),initialValue:"url",options:{layout:"dropdown",list:[{title:"URL",value:"url"},{title:"File",value:"file"}]}},{name:"url",type:"link",title:"Link",description:"The URL where the user will be redirected",validation:e=>e.custom((e,t)=>{let i=t.parent;return i?.type!=="url"||(0,T.Cm)(e)}),hidden:e=>"url"!==e.parent.type},{name:"file",type:"file",title:"File",description:"A file to reference with a quick link",validation:e=>e.custom((e,t)=>"file"!==t.parent.type||!!e||"Required"),hidden:e=>"file"!==e.parent.type},{name:"notes",type:"text",title:"Notes",description:"Internal notes about this quick link"}],preview:{select:{slug:"slug",title:"title"},prepare:e=>({title:e.title,subtitle:`/${e.slug?.current}`})}}),th=(0,r.MIB)({type:"object",name:"epilepsyNavbarSettings",title:"Epilepsy Monitoring Navbar",icon:eO.R$k,description:"Define the settings for the Epilepsy Monitoring Navbar",group:"navbar",fields:[{type:"string",name:"title",title:"Title",description:"A small heading to show on the navbar",validation:e=>e.required(),initialValue:"Epilepsy Monitoring"},{type:"object",name:"epimonitorSettings",title:"EpiMonitor",description:"Update the information about EpiMonitor shown in the navbar",fields:[{type:"string",name:"title",title:"Title",description:"A concise heading for EpiMonitor",validation:e=>e.required()},{type:"string",name:"subtitle",title:"Subtitle",description:"A short secondary line that shows up after the title",validation:e=>e.required()},{type:"altImage",name:"logo",title:"Logo",description:"A logo visual for EpiMonitor",validation:e=>e.required()},{type:"altImage",name:"image",title:"Image",description:"A visual to show in the navbar for EpiMonitor",validation:e=>e.required()},{type:"string",name:"note",title:"Note",description:"A small note that shows up after the subtitle"}
1,{type:"link",name:"link",title:"Link",description:"A link to redirect the user",validation:e=>e.custom(e=>(0,T.Cm)(e))},{type:"simplerColor",name:"color",title:"Color",initialValue:"#00778B",validation:e=>e.required(),description:"Theme color for epimonitor: this color would be applied to the note",options:{colorList:[{label:"Empatica Red",value:"#bc204b"},{label:"Teal",value:"#00778B"},{label:"Custom",value:"custom"}]}}]},{type:"object",name:"embrace2Settings",title:"Embrace2",description:"Update the information about Embrace2 shown in the navbar",fields:[{type:"string",name:"title",title:"Title",description:"A concise heading for Embrace2",validation:e=>e.required()},{type:"string",name:"subtitle",title:"Subtitle",description:"A short secondary line that shows up after the title",validation:e=>e.required()},{type:"altImage",name:"logo",title:"Logo",description:"A logo visual for Embrace2",validation:e=>e.required()},{type:"altImage",name:"image",title:"Image",description:"A visual to show in the navbar for Embrace2",validation:e=>e.required()},{type:"string",name:"note",title:"Note",description:"A small note that shows up after the subtitle"},{type:"link",name:"link",title:"Link",description:"A link to redirect the user",validation:e=>e.custom(e=>(0,T.Cm)(e))},{type:"simplerColor",name:"color",title:"Color",initialValue:"#00778B",description:"Theme color for epimonitor: this color would be applied to the note",validation:e=>e.required(),options:{colorList:[{label:"Empatica Red",value:"#bc204b"},{label:"Teal",value:"#00778B"},{label:"Custom",value:"custom"}]}}]}]}),tf={type:"document",name:"siteSettings",title:"Site settings",description:"Define the default settings for the website",icon:N.tmA,groups:[{name:"seo",title:"SEO",icon:eO.InQ},{name:"advanced",title:"Advanced",icon:N.imn},{name:"navbar",title:"Epilepsy topbar",icon:N.vIB},{name:"layout",title:"Layout",icon:N.d$I},{name:"links",title:"Default URLs",icon:em.Jty}],fields:[th,{type:"reference",name:"defaultLayout",title:"Default layout",description:"The layout a new page starts with. Changing it never moves a page that already exists — each page keeps the layout it points at.",to:[{type:"pageLayout"}],group:"layout"},{type:"seo",name:"defaultSeoSettings",title:"Default SEO Information",description:"Default SEO information for the pages",group:"seo"},{type:"link",name:"defaultEpiMonitorStorePageLink",title:"EpiMonitor Store Page Link",description:"Default link to the EpiMonitor store page",group:"links",options:{enableText:!0}},{type:"link",name:"defaultEpiMonitorPortalLoginLink",title:"EpiMonitor Portal Link",description:"Default link to the EpiMonitor Portal",group:"links",options:{enableText:!0}},{type:"text",name:"llmsTxt",title:"llms.txt",description:"Content for the /llms.txt file",group:"advanced"}],preview:{prepare:()=>({title:"Site Settings",subtitle:"Default settings for the website"})},options:{singleton:!0}},tb=(0,r.MIB)({type:"string",name:"typeformId",title:"Typeform ID",description:"The ID of the Typeform form to embed",validation:e=>e.required()}),tv=(0,r.MIB)({type:"link",name:"externalLink",title:"External Link",description:"The URL to link to",validation:e=>e.custom((e,t)=>{let i=t.parent;return"externalLink"!==i?.type||(0,T.Cm)(e)})}),tw=(0,r.MIB)({type:"url",name:"form",title:"Form URL",description:"The URL of the form to embed",validation:e=>e.required()}),tk=(0,r.U85)({type:"object",name:"contactUsSection",title:"",description:"",fields:[(0,r.MIB)({type:"string",name:"title",title:"Title"}),(0,r.MIB)({type:"array",name:"description",title:"Description",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[]}}]}),(0,r.MIB)({type:"altImage",name:"icon",title:"Icon"}),(0,r.MIB)({type:"string",name:"type",title:"Type",initialValue:"typeform",options:{list:[{title:"Typeform",value:"typeform"},{title:"External Link",value:"externalLink"},{title:"Subsection",value:"subsection"}]}}),(0,r.MIB)({name:"typeformValue",title:"Typeform",type:"object",hidden:({parent:e})=>e?.type!=="typeform",fields:[tb]}),(0,r.MIB)({name:"externalLinkValue",title:"External Link",type:"object",hidden:({parent:e})=>e?.type!=="externalLink",fields:[tv]}),(0,r.MIB)({name:"subsectionValue",title:"Subsection",type:"object",hidden:({parent:e})=>e?.type!=="subsection",fields:[{type:"contactUsSectionSubsection",name:"subsection"}]})],preview:{select:{title:"title",description:"description",media:"icon.image"},prepare(e){let{title:t,description:i,media:o}=e;return{title:t,subtitle:es(i)||"",media:o}}}}),tT=(0,r.U85)({type:"object",name:"contactUsSectionSubsectionItem",fields:[(0,r.MIB)({type:"string",name:"title",title:"Title"}),(0,r.MIB)({type:"array",name:"description",title:"Description",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[]}}]}),(0,r.MIB)({type:"altImage",name:"icon",title:"Icon"}),(0,r.MIB)({type:"string",name:"type",title:"Type",initialValue:"form",options:{list:[{title:"Form",value:"form"},{title:"External Link",value:"externalLink"},{title:"Typeform",value:"typeform"},{title:"Subsection",value:"subsection"}]}}),(0,r.MIB)({name:"formValue",title:"Form",type:"object",hidden:({parent:e})=>
1e?.type!=="form",fields:[(0,r.MIB)({type:"array",name:"description",title:"Description",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[]}}]}),tw]}),(0,r.MIB)({name:"externalLinkValue",title:"External Link",type:"object",hidden:({parent:e})=>e?.type!=="externalLink",fields:[tv]}),(0,r.MIB)({name:"typeformValue",title:"Typeform",type:"object",hidden:({parent:e})=>e?.type!=="typeform",fields:[tb]}),(0,r.MIB)({name:"subsectionValue",title:"Subsection",type:"object",hidden:({parent:e})=>e?.type!=="subsection",fields:[{type:"array",name:"subsections",of:[{type:"contactUsSectionSubsectionItem"}]}]})],preview:{select:{title:"title",description:"description",media:"icon.image"},prepare(e){let{title:t,description:i,media:o}=e;return{title:t,subtitle:es(i)||"",media:o}}}}),tI=(0,r.U85)({type:"object",name:"contactUsSectionSubsection",fields:[(0,r.MIB)({type:"string",name:"title",title:"Title"}),(0,r.MIB)({type:"array",name:"items",title:"Items",of:[{type:"contactUsSectionSubsectionItem"}]})]}),tS={type:"document",name:"contactUsSettings",title:"Contact Us Information",description:"Define the contact information for the Contact Us page",fields:[(0,r.MIB)({type:"boolean",name:"enabled",title:"Enable Contact Us Page",initialValue:!1,hidden:({currentUser:e})=>!e?.roles.some(e=>"administrator"===e.name)}),(0,r.MIB)({type:"string",name:"title",title:"Title",description:"",initialValue:"Contact Us"}),(0,r.MIB)({type:"array",name:"description",title:"Description",description:"",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[]}}]}),(0,r.MIB)({type:"array",name:"sections",title:"Sections",description:"",of:[{type:"contactUsSection"}]})],options:{singleton:!0}},tC=(0,r.MIB)({name:"anchor",type:"string",title:"Anchor",description:"Optional anchor for the section: when set, the section can be reached via a #<anchor> link",validation:e=>[e.max(100).warning("Should be 100 characters or less"),e.regex(/^[a-zA-Z][a-zA-Z0-9_-]*$/).warning("Use letters, numbers, dashes or underscores, starting with a letter")]}),tA=(0,r.U85)({type:"object",name:"accessoriesModule",title:"Module with accessories",icon:N.PdR,fields:[{type:"string",name:"title",title:"Title",validation:e=>e.required()},{name:"description",type:"string",title:"Description",description:"A description for the section"},{name:"checkout",type:"string",title:"Checkout",description:"Which checkout should be redirect?",options:{list:K}},{name:"accessories",type:"array",title:"Accessories",validation:e=>e.required(),of:[{type:"object",name:void 0,fields:[{type:"reference",name:"accessory",to:[{type:"accessory"}],validation:e=>e.required()},{type:"string",name:"title",title:"Title",description:"A copy to override the name of the accessory"},{type:"array",name:"description",title:"Description",description:"A copy to override the name of the accessory",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[et]}}]},{type:"string",name:"buyButton",title:"Buy button copy",description:"A copy to set for the buy button"}],preview:{select:{title:"title",description:"description",accessoryVisual:"accessory.image.image",accessoryTitle:"accessory.title",accessoryDescription:"accessory.description"},prepare:e=>{let{title:t,description:i,accessoryVisual:o,accessoryTitle:a,accessoryDescription:n}=e;return{title:t||a,subtitle:es(i??n)??"",media:o}}}}]},tC],preview:{select:{title:"title"},prepare:e=>({title:e.title,subtitle:"Module with accessories"})}});var tP=i(92400);let tx=(0,r.U85)({type:"object",name:"accordion",title:"Accordion",description:"Simple accordion with title and content",icon:tP.N03,fields:[{type:"string",name:"title",title:"Title",validation:e=>e.required()},{type:"array",name:"content",title:"Content",of:[{type:"block"},{title:"Image",type:"imageLink"}],validation:e=>e.required()},tC],preview:{select:{title:"title"},prepare:e=>({title:`Accordion: ${e.title}`})}}),tM=(0,r.U85)({type:"object",name:"animatedBlurImage",title:"Blur animated image",description:"A module that zooms in and blurs when scroll",icon:N.Jxh,fields:[{type:"string",name:"claim",title:"Claim",description:"Text to show when the image it's fullscreen",validation:e=>e.required()},{type:"altImage",name:"image",title:"Image",description:"Image to show in the module that would blur (recommended size: TBD)",validation:e=>e.required()},tC],preview:{select:{claim:"claim",image:"image.image"},prepare:({claim:e,image:t})=>
1({title:e,subtitle:"Blur animated image",media:t})}}),tq=(0,r.U85)({type:"object",name:"animatedVideoImage",title:"Video with fullscreen animation",description:"A module that zooms in when scroll",icon:N.Jxh,fields:[{type:"url",title:"Video URL",name:"url",validation:e=>e.required()},tC],preview:{select:{subtitle:"url"},prepare:({subtitle:e})=>({title:"Video with fullscreen animation",subtitle:e})}});var tB=i(60276);let tL=(0,r.U85)({name:"announcementBanner",type:"object",title:"Announcement Banner",icon:tB.feQ,fields:[{type:"array",name:"announcement",title:"Announcement",validation:e=>e.required(),of:[{type:"block",styles:[],lists:[],marks:{decorators:[ef,ey],annotations:[et]}}]},{type:"simplerColor",name:"backgroundColor",title:"Background color",initialValue:"#00778B",description:"Override the default background color for the banner",options:{colorList:[{label:"EpiMonitor Gradient",value:"#AB316D"},{label:"Teal",value:"#00778B"}]}},tC],preview:{select:{announcement:"announcement"},prepare:({announcement:e})=>{let t=(e||[]).find(e=>"block"===e._type);return{subtitle:"Announcement banner",title:t?t.children.filter(e=>"span"===e._type).map(e=>e.text).join(""):"No title"}}}}),tj=[{name:"editorial",title:"Editorial",icon:em.u6n},{name:"visuals",title:"Visuals",icon:N.a4Q},{title:"Design",name:"design",icon:_.IFh},{name:"advanced",title:"Advanced",icon:N.imn}],tU=(0,r.U85)({name:"atfWithBackgroundMedia",type:"object",title:"ATF with Background Media",icon:_.pYS,groups:tj,fields:[{type:"string",title:"Title",name:"title",validation:e=>e.required(),group:"editorial"},{type:"string",title:"Subtitle",name:"subtitle",group:"editorial"},{type:"backgroundMedia",name:"media",group:"visuals"},{type:"boolean",name:"darkenMedia",title:"Darken media",description:"If Background media is light, darken it to make the text more readable",initialValue:!1,group:"visuals"},{type:"object",title:"Logo",name:"logo",fields:[{type:"altImage",name:"desktop",title:"Desktop image",validation:e=>e.required()},{type:"altImage",name:"mobile",title:"Mobile image",validation:e=>e.required()}],group:"visuals"},{type:"array",title:"Description",name:"description",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[]}}],validation:e=>e.required(),group:"editorial"},{type:"string",title:"Tag",name:"tag",description:"A small tag to add before the logo(e.g FDA Cleared)",group:"editorial"},{type:"array",title:"Notes",name:"notes",description:"Some notes to add after the Call to Actions",group:"editorial",of:[{type:"block",styles:[],lists:[],marks:{decorators:[{title:"Emphasis",value:"em"}],annotations:[et]}}]},{type:"string",name:"variant",title:"Variant",description:"Color scheme applied to the text block on mobile only. On desktop the text sits over the background media.",initialValue:"white",options:{layout:"dropdown",list:[{title:"Light Grey",value:"lightGrey"},{title:"Teal",value:"teal"},{title:"White",value:"white"},{title:"EpiMonitor Gradient",value:"epiMonitorGradient"}]},group:"design"},{type:"atfCta",title:"Primary CTA",name:"primaryCta",group:"editorial"},{type:"atfCta",title:"Secondary CTA",name:"secondaryCta",group:"editorial"},tC],preview:{select:{title:"title",media:"media.image.desktop.image",mediaType:"media.type"},prepare:({title:e,media:t,mediaType:i})=>({title:e,subtitle:"ATF with Background Media",media:"image"===i?t:void 0})}}),tV=(0,r.U85)({name:"atfWithMedia",type:"object",title:"ATF with Media",icon:_.pYS,groups:tj,fields:[{type:"string",title:"Title",name:"title",validation:e=>e.required(),group:"editorial"},{type:"string",title:"Subtitle",name:"subtitle",group:"editorial"},{type:"media",name:"media",title:"Media",group:"visuals"},{type:"array",title:"Description",name:"description",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[]}}],validation:e=>e.required(),group:"editorial"},{type:"array",title:"Tags",name:"tags",description:"Small tags to add before the logo (e.g FDA Cleared)",validation:e=>e.max(3),group:"editorial",of:[{type:"string"}],options:{layout:"tags"}},{type:"array",title:"Notes",name:"notes",description:"Some notes to add after the Call to Actions",group:"editorial",of:[{type:"block",styles:[],lists:[],marks:{decorators:[{title:"Emphasis",value:"em"}],annotations:[et]}}]}
1,{type:"atfCta",title:"Call to Action",name:"primaryCta",group:"editorial"},{type:"atfCta",title:"2nd Call to Action",name:"secondaryCta",group:"editorial"},{name:"variant",type:"string",initialValue:"lightGrey",title:"Variant",options:{list:[{title:"Light Grey",value:"lightGrey"},{title:"Dark",value:"dark"},{title:"White",value:"white"}]},group:"design"},tC],preview:{select:{title:"title",media:"media.image.desktop.image",mediaType:"media.type"},prepare:({title:e,media:t,mediaType:i})=>({title:e,subtitle:"ATF with media",media:"image"===i?t:void 0})}}),tE=[{title:"Teal",value:"teal"},{title:"EpiMonitor Gradient",value:"epiMonitorGradient"}],tD=(0,r.U85)({type:"object",name:"bandDivider",title:"Band Divider",icon:N.CSN,groups:tj,fields:[{type:"string",name:"color",title:"Color",description:"Color of the full width band used to separate the surrounding sections.",initialValue:"teal",options:{layout:"radio",list:[...tE]},validation:e=>e.required(),group:"design"},tC],preview:{select:{color:"color"},prepare:({color:e})=>({title:"Band Divider",subtitle:tE.find(t=>t.value===e)?.title??"Teal"})}});var t_=i(70650);let tR=(0,r.U85)({name:"bulletSection",type:"object",title:"Section with Bullet points",icon:t_.Ofk,groups:tj,fields:[{name:"title",type:"string",title:"Title",description:"A title for the section",validation:e=>e.required(),group:"editorial"},{name:"description",type:"array",title:"Description",description:"A description for the section",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[]}}],group:"editorial"},{name:"items",type:"array",title:"Bullet points",of:[{type:"string"}],validation:e=>e.required(),group:"editorial"},{name:"nItemsPerColumn",type:"number",title:"Max items per columns",description:"How many bullet points should be shown in a column?",initialValue:6,validation:e=>e.min(1),group:"design"},{type:"linkButton",name:"link",title:"Link",description:"Renders a button that, when activated, directs the user to an external web page or resource.",group:"editorial"},{type:"string",name:"variant",title:"Variant",description:"Choose a variant that defines the color scheme for this component.",initialValue:"teal",options:{layout:"dropdown",list:[{title:"Light Grey",value:"lightGrey"},{title:"Teal",value:"teal"},{title:"White",value:"white"}]},group:"design"},tC],preview:{select:{title:"title"},prepare:({title:e})=>({title:e,subtitle:"Section with bullet points"})}}),tO=(0,r.U85)({name:"calloutBanner",type:"object",title:"Teal callout banner",icon:e_.m3R,description:"A teal banner with a title and content (required), plus optional image and CTA. Great for emphasizing key information.",fields:[{type:"string",name:"title",title:"Title",description:"The title of the section",validation:e=>e.required()},{type:"array",name:"content",title:"Content",validation:e=>e.required(),of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[eg]}},{type:"backgroundMedia",title:"Media",icon:A.j4C}]},tC],preview:{select:{title:"title"},prepare:({title:e})=>({title:e,subtitle:"Teal callout banner"})}}),tN=(0,r.MIB)({type:"object",name:"cardCarouselItem",title:"Card",groups:tj,fields:[{type:"string",name:"tag",title:"Tag",description:"A small chip to show before title",validation:e=>e.required(),group:"editorial"},{type:"string",name:"title",title:"Title",validation:e=>e.required(),description:"The main heading of the section",group:"editorial"},{name:"description",type:"array",title:"Description",description:"A short description or body text that provides context or supporting information related to the title.",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[]}}],group:"editorial"},{name:"destination",title:"Destination",type:"link",description:"A link to redirect the user",options:{enableText:!0},validation:e=>e.custom(e=>(0,T.Cm)(e)),group:"editorial"},{type:"altImage",name:"image",title:"Image",description:"Image to show within the section",validation:e=>e.required(),group:"visuals"}],preview:{select:{title:"title",description:"description",image:"image.image"},prepare:({title:e,description:t,image:i})=>({title:e,media:i,subtitle:es(t)??"Card"})}}),tW=(0,r.U85)({name:"cardCarousel",type:"object",title:"Carousel with Cards",de
1scription:"A section where cards are shown in a carousel",icon:N.ZW3,groups:tj,fields:[{type:"string",name:"title",title:"Title",description:"The title for the section",group:"editorial"},{name:"description",type:"array",title:"Description",description:"A short description or body text that provides context or supporting information related to the title.",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[]}}],group:"editorial"},{name:"cards",type:"array",title:"Cards",description:"The cards to show",group:"editorial",of:[tN],validation:e=>e.required()},tC],preview:{select:{title:"title",description:"description"},prepare:({title:e,description:t})=>({title:e,subtitle:es(t)??"Card Carousel"})}});var tG=i(61690);let t$=(0,r.U85)({name:"caseStudiesCollection",type:"object",title:"Case Studies Collection",description:'Shows the list of case studies in a grid or list with a "See more" pagination. By default they are ordered by most recent; you can also curate and re-order them manually.',icon:tG.pDI,fields:[{name:"nElements",type:"number",title:"N. elements per page",description:'How many case studies to show initially and per "See more"',initialValue:5,validation:e=>e.required().min(1)},{name:"manualOrder",type:"boolean",title:"Do you want to manually order the case studies?",description:"When off, case studies are shown newest first. When on, pick and drag to re-order the ones below.",initialValue:!1},{name:"elements",type:"array",title:"Case studies",description:"Pick and re-order the case studies to display",of:[{type:"reference",to:[{type:"caseStudyPage"}]}],hidden:e=>{let t=e.parent;return!t?.manualOrder},validation:e=>e.custom((e,t)=>{let i=t.parent;return!!(!i?.manualOrder||Array.isArray(e)&&e.length>0)||"Required"})},tC],preview:{prepare:()=>({title:"Case Studies Collection"})}}),tF=e=>{let t=(0,r.FlV)([...e.path.slice(0,-1),"caseStudy"]),{caseStudyTargetField:i,...o}=e,n=(0,r.tH7)();return(0,a.useEffect)(()=>{!o.value&&t?._ref&&n.fetch(`*[_id == $id][0].${i}`,{id:t._ref}).then(e=>{e&&o.onChange((0,r.hZp)(e))})},[t]),o.renderDefault(o)},tz=e=>t=>(0,s.jsx)(tF,{...t,caseStudyTargetField:e}),tQ=e=>(0,r.MIB)({name:"variant",type:"string",title:"Variant",description:"Change the look and feel of the button",initialValue:"primary",options:{list:[{title:"Primary",value:"primary"},{title:"Secondary",value:"secondary"},{title:"Tertiary",value:"tertiary"}]},group:e?.group}),tH=e=>(0,r.MIB)({name:"theme",type:"string",title:"Theme",description:"Change the colors of the button",initialValue:"teal",options:{list:[{title:"Teal",value:"teal"},{title:"White",value:"white"},{title:"EpiMonitor",value:"epimonitor"}]},group:e?.group}),tY=e=>(0,r.MIB)({name:"size",type:"string",title:"Size",description:"Change the size of the button",initialValue:"medium",options:{list:[{title:"Small",value:"small"},{title:"Medium",value:"medium"},{title:"Large",value:"large"}]},group:e?.group}),tX=(0,r.U85)({title:"Button",description:"A simple button to render",name:"linkButton",type:"object",icon:e_.zAw,groups:tj,fields:[{name:"link",type:"link",title:"Link",validation:e=>e.custom((e,t)=>!!t.parent||(0,T.Cm)(e)),group:"editorial",options:{enableText:!0}},tQ({group:"design"}),tH({group:"design"}),tY({group:"design"})],preview:{select:{title:"link.text"},prepare:({title:e})=>({title:e,subtitle:"Button"})}}),tK=(0,r.MIB)({type:"object",name:"caseStudyListItem",title:"Case Study",icon:O.aFU,fields:[(0,r.MIB)({type:"reference",name:"caseStudy",title:"Case Study",description:"Select the case study page you want to add",to:[{type:"caseStudyPage"}],validation:e=>e.required()}),(0,r.MIB)({type:"altImage",name:"image",title:"Image",description:"If not set, case study page image will be used",hidden:e=>!e.parent?.caseStudy}),(0,r.MIB)({type:"string",name:"title",title:"Title",components:{input:tz("title")},hidden:e=>!e.parent?.caseStudy}),(0,r.MIB)({type:"array",name:"description",title:"Description",description:"",of:[{type:"block",styles:[],lists:[],marks:{decorators:eb,annotations:[et]}}],hidden:e=>!e.parent?.caseStudy}),(0,r.MIB)({type:"array",name:"tags",title:"Tags",of:[{type:"string"}],options:{layout:"tags"},components:{input:tz("tags")}
1,hidden:e=>!e.parent?.caseStudy}),(0,r.MIB)({type:"boolean",name:"showLink",title:"Show Link",description:"Enable to show the link button for this case study",initialValue:!0,hidden:e=>!e.parent?.caseStudy}),(0,r.MIB)({type:"object",name:"caseStudyListItemlinkStyle",title:"Link Style",description:"",fields:[(0,r.MIB)({type:"string",name:"text",title:"Text"}),tQ(),tH(),tY()],hidden:e=>{let t=e.parent;return!t?.caseStudy||!t.showLink}})],preview:{select:{title:"title",description:"description",media:"caseStudy.image.desktopImage"},prepare:({description:e,...t})=>({...t,subtitle:es(e)??""})}}),tZ=({exclude:e,initialValue:t="lightGrey",withEpiMonitorGradient:i=!1})=>{let o=[{title:"Light Grey",value:"lightGrey"},{title:"Teal",value:"teal"},{title:"White",value:"white"},{title:"Dark",value:"dark"}].filter(t=>!e||!e.includes(t.value)).concat(i?[{title:"EpiMonitor Gradient",value:"epiMonitorGradient"}]:[]);return(0,r.MIB)({name:"variant",type:"string",initialValue:t,options:{list:o},group:"design"})},tJ=(0,r.U85)({name:"caseStudiesList",type:"object",title:"Case Studies List",icon:O.aFU,groups:tj,fields:[{name:"title",type:"string",title:"Title",description:"A title for the module",group:"editorial"},{name:"description",type:"array",title:"Content",description:"A small description for the module",of:[{type:"block",styles:[],lists:[],marks:{decorators:eb,annotations:[et]}}],group:"editorial"},{name:"caseStudies",type:"array",title:"Case Studies",description:"List of case studies",group:"editorial",of:[tK]},{name:"link",type:"linkButton",title:"Link",description:"",group:"editorial"},tZ({exclude:["dark"]}),{name:"caseStudiesListConfiguration",type:"object",title:"Configuration",fields:[(0,r.MIB)({name:"enableAutoScrollOnDesktop",type:"boolean",title:"Enable autoscroll on desktop devices",initialValue:!1}),(0,r.MIB)({name:"enableAutoScrollOnMobile",type:"boolean",title:"Enable autoscroll on mobile devices",initialValue:!1}),(0,r.MIB)({name:"scrollPace",type:"number",title:"Autoscroll pace",description:"Set the autoscroll pace in seconds (default 3s)",initialValue:3})],group:"advanced"},tC],preview:{select:{title:"title",description:"description"},prepare:({description:e,...t})=>({...t,subtitle:es(e)??""})}}),t0=(0,r.U85)({name:"checklistSection",type:"object",title:"Section with checks list",groups:tj,icon:tG.PtR,description:"A section with an optional media area, headline, supporting text, checklist-style highlights, and an optional call-to-action button.",fields:[{type:"string",name:"title",title:"Title",description:"The main heading of the section",group:"editorial"},{name:"description",type:"array",title:"Description",description:"A short description or body text that provides context or supporting information related to the title.",of:[{type:"block",styles:[],lists:[],marks:{decorators:eb,annotations:[et]}}],group:"editorial"},{type:"array",name:"checklist",title:"Checklist",description:"A list of items to show as a check list",group:"editorial",of:[{type:"object",name:"checklistSectionListItem",title:"Check list item",fields:[{type:"string",name:"title",title:"Title",description:"The main heading of the check list item",validation:e=>e.required()},{name:"content",type:"array",title:"content",description:"A short body text that provides context or supporting information related to the list ite.",of:[{type:"block",styles:[],lists:[],marks:{decorators:eb,annotations:[et]}}]}]}]},{name:"media",type:"backgroundMedia",group:"visuals"},{name:"mediaPosition",type:"string",initialValue:"afterHeading",title:"Media position",description:"Where you want to place the media?",options:{list:[{title:"After the headline",value:"afterHeading"},{title:"Before the headline",value:"beforeHeading"}]},group:"visuals"},{type:"linkButton",name:"link",title:"Link",description:"Renders a button that, when activated, directs the user to an external web page or resource.",group:"editorial"},{type:"string",name:"variant",title:"Variant",description:"Choose a variant that defines the color scheme for this component.",initialValue:"teal",options:{layout:"dropdown",list:[{title:"Light Grey",value:"lightGrey"},{title:"Teal",value:"teal"},{title:"White",value:"white"}]},group:"design"},{type:"altImage",name:"checkIcon",title:"Check icon",description:"An icon that will be used to indicate checked items in the checklist.",group:"visuals"},tC],preview:{select:{title:"title",media:"media.image.desktop.image",description:"description",mediaType:"media.type"},prepare:({title:e,media:t,description:i,mediaType:o})=>
1({title:e,subtitle:es(i)??"",media:"image"===o?t:void 0})}}),t1=(0,r.U85)({type:"object",name:"columnsSection",title:"Columns sections",icon:N.d$I,groups:tj,fields:[{type:"array",title:"Columns",name:"columns",components:{input:e2},group:"editorial",validation:e=>e.min(1).max(4).required(),of:[{type:"object",fields:[{type:"altImage",name:"image",title:"Image",validation:e=>e.required()},{type:"string",name:"title",title:"Title",validation:e=>e.required()},{type:"array",name:"content",title:"Content",validation:e=>e.required(),of:[{type:"block",styles:[{title:"Normal",value:"normal"}],marks:{annotations:[eg],decorators:[{title:"Strong",value:"strong"},eh]}}]}]}]},{name:"variant",type:"string",initialValue:"lightGrey",options:{list:[{title:"Light Grey",value:"lightGrey"},{title:"Teal",value:"teal"},{title:"White",value:"white"}]},group:"design"},tC],preview:{prepare:()=>({title:"Columns sections"})}});var t5=i(10549);let t2=(0,r.U85)({type:"object",name:"columnsWithImages",title:"Columns with images",icon:t5.vX1,fields:[{type:"array",name:"images",validation:e=>e.required(),title:"Images",of:[{type:"altImage",title:"Image",validation:e=>e.required(),preview:{select:{image:"image"},prepare:({image:e})=>({title:e?.alt,media:e?.image})}},{type:"imageLink",title:"Linkable Image"}]}],preview:{select:{images:"images"},prepare:({images:e})=>({title:"Columns with images",subtitle:`${e?.length} columns`})}}),t8=[(0,r.dOf)({type:"object",name:"comparisonCheckMark",title:"Check icon",fields:[{name:"label",type:"string",title:"Screen-reader label",description:'Defaults to "Supported".'}],preview:{select:{label:"label"},prepare:({label:e})=>({title:e||"✓ Supported"})}}),(0,r.dOf)({type:"object",name:"comparisonCrossMark",title:"Cross icon",fields:[{name:"label",type:"string",title:"Screen-reader label",description:'Defaults to "Not supported".'}],preview:{select:{label:"label"},prepare:({label:e})=>({title:e||"✕ Not supported"})}})],t3=(0,r.U85)({name:"comparisonTable",type:"object",title:"Comparison table",icon:R.PQR,description:"Compares products or plans feature by feature. Each row is a feature; each cell holds text, a check icon, a cross icon, or a combination.",fields:[{name:"columns",type:"array",title:"Columns",description:"One entry per product or plan being compared, in the order they should appear.",validation:e=>e.required().min(1),of:[{type:"object",name:"comparisonColumn",fields:[{name:"label",type:"string",title:"Label",description:'The column heading, e.g. "EmbracePlus".',validation:e=>e.required()},{name:"subtitle",type:"string",title:"Subtitle",description:"Optional highlighted line under the column label."}],preview:{select:{title:"label",subtitle:"subtitle"},prepare:({title:e,subtitle:t})=>({title:e,subtitle:t||"Column"})}}]},{name:"rows",type:"array",title:"Rows",description:"Feature rows, top to bottom. Add a section title to group the rows that follow it.",validation:e=>e.required().min(1),of:[{type:"object",name:"comparisonRow",title:"Feature row",fields:[{name:"label",type:"string",title:"Feature",description:"The label shown in the first column.",validation:e=>e.required()},{name:"subtitle",type:"string",title:"Subtitle",description:"Optional small note under the feature label."},{name:"cells",type:"array",title:"Cells",description:"One cell per column, left to right.",of:[{type:"object",name:"comparisonCell",fields:[{name:"content",type:"array",title:"Content",description:"Plain text, a check icon, a cross icon, or a combination. Put the icon and its note on separate lines to stack them.",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[]},of:t8}]}],preview:{select:{content:"content"},prepare:({content:e})=>({title:t6(e)||"Empty cell"})}}]}],preview:{select:{title:"label",subtitle:"subtitle",cells:"cells"},prepare:({title:e,subtitle:t,cells:i})=>({title:e,subtitle:t||(i??[]).map(e=>t6(e.content)||"—").join("   |   ")})}},{type:"object",name:"comparisonSectionTitle",title:"Section title",description:"A heading that groups the rows below it.",fields:[{name:"title",type:"string",title:"Title",validation:e=>e.required()}],preview:{select:{title:"title"},prepare:({title:e})=>
1({title:e,subtitle:"Section title"})}}]}],preview:{select:{columns:"columns",rows:"rows"},prepare:({columns:e,rows:t})=>({title:(e??[]).map(e=>e.label).filter(Boolean).join(" vs ")||"Comparison table",subtitle:`Comparison table — ${(t??[]).length} rows`})}}),t4=e=>"object"!=typeof e||null===e?"":"text"in e&&"string"==typeof e.text?e.text:"_type"in e?"comparisonCheckMark"===e._type?"✓":"comparisonCrossMark"===e._type?"✕":"":"",t6=e=>Array.isArray(e)?e.map(e=>{var t;return("object"!=typeof(t=e)||null===t||!("children"in t)?[]:Array.isArray(t.children)?t.children:[]).map(t4).join("")}).filter(Boolean).join(" ").trim():"",t7=t3.fields.map(e=>({...e,group:"editorial"})),t9=(0,r.U85)({name:"comparisonTableSection",type:"object",title:"Comparison Table",icon:R.PQR,groups:tj,description:"A feature-by-feature comparison table as a page section, with an optional title and description above it.",fields:[{type:"string",name:"title",title:"Title",description:"The main heading of the section",group:"editorial"},{name:"description",type:"array",title:"Description",description:"A short description or body text that provides context or supporting information related to the title.",of:[{type:"block",styles:[],lists:[],marks:{decorators:eb,annotations:[et]}}],group:"editorial"},...t7,{type:"linkButton",name:"link",title:"Link",description:"Renders a button that, when activated, directs the user to an external web page or resource.",group:"editorial"},{type:"string",name:"variant",title:"Variant",description:"Choose a variant that defines the color scheme for this component.",initialValue:"white",options:{layout:"dropdown",list:[{title:"White",value:"white"},{title:"Light Grey",value:"lightGrey"}]},group:"design"},tC],preview:{select:{title:"title",columns:"columns",rows:"rows"},prepare:({title:e,columns:t,rows:i})=>({title:e||(t??[]).map(e=>e.label).filter(Boolean).join(" vs ")||"Comparison Table",subtitle:`Comparison Table — ${(i??[]).length} rows`})}}),ie=e=>(0,s.jsx)("h1",{style:{fontSize:32,margin:0,...e.style},children:e.children}),it=e=>(0,s.jsx)("p",{style:e.style,className:e.className,children:e.children}),ii=e=>(0,s.jsx)("span",{style:{margin:0,...e.style},children:e.children}),io=e=>(0,s.jsx)("sub",{style:{...e.style},children:e.children}),ia=(0,r.U85)({name:"condensedList",type:"object",title:"Condensed List",groups:tj,icon:N.WhL,description:"A list of modules with content and media.",fields:[{type:"string",name:"title",title:"Title",description:"The main heading of the section",group:"editorial"},{name:"description",type:"array",title:"Description",description:"A short description or body text that provides context or supporting information related to the title.",of:[{type:"block",styles:[],lists:[],marks:{decorators:eb,annotations:[et]}}],group:"editorial"},{type:"array",name:"modulesList",title:"Modules",description:"Modules to show in the list",group:"editorial",of:[{type:"object",name:"moduleListItem",title:"Module Item",fields:[{name:"media",type:"media",validation:e=>e.required()},{name:"mediaPosition",type:"string",initialValue:"left",title:"Visual position on desktop",description:"Where you want to place the visual on desktop devices?",options:{list:[{title:"Left",value:"left"},{title:"Right",value:"right"}]}},{name:"modileMediaPosition",type:"string",initialValue:"bottom",title:"Visual position on mobile",description:"Where you want to place the visual on mobile devices?",options:{list:[{title:"Bottom",value:"bottom"},{title:"Top",value:"top"}]}},{name:"content",type:"array",title:"Content",description:"Content for the section",of:[{type:"block",styles:[{title:"Body",value:"normal"},{title:"Title",value:"h3",component:ie},{title:"Note",value:"note",component:e=>ii({...e,style:{fontSize:12,fontStyle:"italic",margin:0}})}],lists:[ev],marks:{decorators:eb,annotations:[et]}},{type:"chip"},{type:"linkButton"}],validation:e=>e.required()}],preview:{select:{content:"content",media:"media.image.desktop.image",mediaType:"media.type"},prepare:({content:e,media:t,mediaType:i})=>({title:"Module",subtitle:es(e)??"",media:"image"===i?t:void 0})}}]},{type:"string",name:"variant",title:"Variant",description:"Choose a variant that defines the color scheme for this component.",initialValue:"teal",options:{layout:"dropdown",list:[{title:"Light Grey",value:"lightGrey"},{title:"Teal",value:"teal"},{title:"White",value:"white"}]},group:"design"},tC],preview:{select:{title:"title",description:"description"},prepare:({title:e,description:t})=>
1({title:e,subtitle:es(t)??""})}}),ir=e=>"object"==typeof e&&null!==e&&"buttonAction"in e&&"popup"===e.buttonAction,il=(0,r.MIB)({name:"popup",type:"object",title:"Pop-up",hidden:({parent:e})=>!ir(e),group:"editorial",fields:[{name:"buttonLabel",type:"string",title:"Button label",description:"The text shown on the button that opens the pop-up.",validation:e=>e.required()},eX({include:["comparisonTableSection"],name:"content",title:"Content",description:"The single section shown inside the pop-up.",validation:e=>e.max(1),components:{input:e2}}),tQ(),tH(),tY()],preview:{select:{title:"title",buttonLabel:"buttonLabel"},prepare:({title:e,buttonLabel:t})=>({title:e||t||"Untitled pop-up",subtitle:"Pop-up"})}}),is=(0,r.U85)({name:"contentSection",type:"object",title:"Content Card",groups:tj,icon:em.lV7,description:"A handy component for making your content pop—just drop in a title, description, and optionally add an icon or button.",fields:[{type:"string",name:"title",title:"Title",description:"The main heading of the section",group:"editorial"},{name:"content",type:"array",title:"Content",description:"A short description or body text that provides context or supporting information related to the title.",of:[{type:"block",styles:[],lists:[],marks:{decorators:eb,annotations:[et]}}],group:"editorial"},{type:"string",name:"buttonAction",title:"Button action",description:"What happens when the button is pressed.",initialValue:"link",options:{layout:"radio",list:[{title:"Go to a link",value:"link"},{title:"Open a pop-up",value:"popup"}]},group:"editorial"},{type:"linkButton",name:"link",title:"Link",description:"Renders a button that, when activated, directs the user to an external web page or resource.",hidden:({parent:e})=>ir(e),group:"editorial"},il,{type:"string",name:"variant",title:"Variant",description:"Choose a variant that defines the color scheme for this component.",initialValue:"teal",options:{layout:"dropdown",list:[{title:"Light Grey",value:"lightGrey"},{title:"Teal",value:"teal"},{title:"White",value:"white"},{title:"EpiMonitor Gradient",value:"epiMonitorGradient"}]},group:"design"},{name:"icon",type:"altImage",title:"Icon",description:"Select an icon to visually represent this item.",group:"visuals"},tC],preview:{select:{title:"title",media:"icon.image",content:"content",buttonAction:"buttonAction"},prepare:({title:e,media:t,content:i,buttonAction:o})=>{let a=es(i)??"";return{title:e,subtitle:"popup"===o?["Button opens a pop-up",a].filter(Boolean).join(" — "):a,media:t}}}}),ip=(0,r.U85)({type:"object",name:"customerQuote",title:"Customer quote",icon:tG.lyK,groups:tj,fields:[{type:"text",name:"quote",title:"Quote",validation:e=>e.required(),rows:3,group:"editorial"},{type:"string",name:"by",title:"Customer",description:"By whom is the quote spoken?",validation:e=>e.required(),group:"editorial"},{type:"altImage",name:"backgroundImage",title:"Background Image (desktop)",validation:e=>e.required(),group:"visuals"},{type:"altImage",name:"mobileBackgroundImage",title:"Background Image (mobile)",validation:e=>e.required(),group:"visuals"},{type:"link",name:"cta",title:"Call to action",validation:e=>e.custom(e=>!e?.text||(0,T.Cm)(e)),group:"editorial",options:{enableText:!0}},tC],preview:{select:{title:"quote",desktopImage:"backgroundImage.image",mobileImage:"mobileBackgroundImage.image"},prepare:({title:e,desktopImage:t,mobileImage:i})=>({title:e,subtitle:"Customer quote",media:i??t})}}),id=(0,r.U85)({type:"object",name:"divider",title:"Divider",fields:[{type:"boolean",name:"fullscreen",title:"Divider should be fullpage or only in the section",initialValue:!1},tC],preview:{prepare:()=>({title:"Divider"})}}),ic=(0,r.U85)({name:"downloadableAsset",type:"object",title:"Downloadable Content",description:"This component shows a section where the user can download (or open in a new tab) an asset (e.g Manuals page)",fields:[{type:"string",name:"title",title:"Content title",description:"Title to show for the asset",validation:e=>e.required()},{type:"string",name:"version",title:"Content version",description:"Version of the asset"},{type:"date",name:"publishedAt",title:"Published at"},{type:"altImage",title:"Promotional Image",name:"image",description:"An image to show sided to the content"},{type:"object",name:"variants",title:"Content variants",fields:[{type:"string",name:"name",title:"Name of the variant",description:"If there are more than one variant, this value is used to show the user a placeholder to know what is selecting"},{type:"array",name:"values",title:"Variants",of:[{type:"object",name:"downloadableAssetVariantsValues",fields:[{name:"name",title:"Name",type:"string",validation:e=>e.required()},{name:"url",title:"URL",type:"url",description:"URL of the asset",validation:e=>e.required()}]}],validation:e=>e.min(1)}]},tC]});var iu=i(8657);let im=e=>{let t=[{title:"Center",value:"center"},{title:"Left",value:"left"},{title:"Right",value:"right"}].filter(t=>!e.alignmentOptions||e.alignmentOptions.includes(t.value));return(0,r.MIB)({title:"Text alignment",name:"textAlignment",...e,type:"string",initialValue:e.initialValue??"center",options:{list:t}})}
1,ig=(0,r.MIB)({name:"cards",type:"array",title:"Cards",description:"List of cards to show in the module",group:"editorial",of:[{type:"object",name:"dynamicCard",title:"Card",description:"",groups:tj,fields:[{type:"altImage",name:"image",title:"Image",description:"",group:"visuals"},{name:"title",type:"string",title:"Title",description:"A title for the card",group:"editorial"},{name:"content",type:"array",title:"Content",description:"A body copy for the card",of:[{type:"block",styles:[],lists:ek,marks:{decorators:eb,annotations:[et]}}],group:"editorial"},{type:"linkButton",name:"link",title:"Link",description:"Renders a button that, when activated, directs the user to an external web page or resource.",group:"editorial"},{name:"variant",type:"string",initialValue:"lightGrey",title:"Variant",description:"Change the feel and look of the card",options:{list:[{title:"Light Grey",value:"lightGrey"},{title:"White",value:"white"}]},group:"design"},im({group:"design"})],preview:{select:{title:"title",content:"content",media:"image.image"},prepare:e=>({...e,subtitle:es(e.content)??""})}}]}),iy=(0,r.U85)({name:"dynamicCardsModule",type:"object",title:"Dynamic cards",icon:iu.Quo,groups:tj,fields:[{name:"title",type:"string",title:"Title",description:"A title for the module",group:"editorial"},{name:"content",type:"array",title:"Content",description:"Content for the section",of:[{type:"block",styles:[],lists:[],marks:{decorators:eb,annotations:[et]}}],group:"editorial"},ig,{type:"linkButton",name:"link",title:"Link",description:"Renders a button that, when activated, directs the user to an external web page or resource.",group:"editorial"},{name:"variant",type:"string",initialValue:"lightGrey",options:{list:[{title:"Light Grey",value:"lightGrey"},{title:"Dark",value:"dark"},{title:"White",value:"white"},{title:"Teal",value:"teal"}]},group:"design"},{name:"showAll",type:"boolean",initialValue:!0,title:"Show all on mobile",description:"Check to show all elements in columns, although a carousel will presented",group:"design"},{name:"autoscroll",type:"boolean",title:"Enable automatic scrolling",description:"Toggle to enable or disable automatic scrolling behavior",initialValue:!1,group:"design",hidden:e=>{let t=e.parent;return!!(t&&t.showAll)}},{name:"elementsPerPage",type:"number",title:"Number of elements to show per page on desktop",description:"Set the number of elements to show on desktop (min: 2, max: 4)",initialValue:3,group:"design",validation:e=>e.min(2).max(4)},tC],preview:{select:{title:"title"},prepare:e=>({...e,subtitle:"Dynamic cards"})}}),ih=(0,r.U85)({name:"dynamicMosaic",type:"object",title:"Dynamic Mosaic",groups:tj,icon:N.gc$,description:"A mosaic that contains modules with content and media.",fields:[{type:"string",name:"title",title:"Title",description:"The main heading of the section",group:"editorial"},{name:"description",type:"array",title:"Description",description:"A short description or body text that provides context or supporting information related to the title.",of:[{type:"block",styles:[],lists:[],marks:{decorators:eb,annotations:[et]}}],group:"editorial"},{type:"array",name:"modulesList",title:"Modules",description:"Modules to show in the mosaic",group:"editorial",of:[{type:"object",name:"mosaicListItem",title:"Module Item",fields:[{name:"media",type:"media",validation:e=>e.required()},{name:"mediaPositionMobile",type:"string",initialValue:"top",title:"Media position on mobile devices",description:"Where you want to place the media?",options:{list:[{title:"Top",value:"top"},{title:"Bottom",value:"bottom"}]}},{name:"content",type:"array",title:"Content",description:"Content for the section",of:[{type:"block",styles:[{title:"Body",value:"normal"},{title:"Title",value:"h3",component:ie},{title:"Note",value:"note",component:e=>ii({...e,style:{fontSize:12,fontStyle:"italic",margin:0}})}],lists:[ev],marks:{decorators:eb,annotations:[et]}},{type:"chip"},{type:"linkButton"}],validation:e=>e.required()},{name:"animateImage",type:"boolean",title:"Enable animation",description:"Add a scale up animation",initialValue:!1,hidden:({parent:e})=>e?.media?.type!=="image"}
1,im({alignmentOptions:["center","left"],initialValue:"center",name:"textAlignmentMobile",title:"Text alignment on mobile"})],preview:{select:{content:"content",media:"media.image.desktop.image",mediaType:"media.type"},prepare:({content:e,media:t,mediaType:i})=>({title:"Module",subtitle:es(e)??"",media:"image"===i?t:void 0})}}]},{type:"string",name:"variant",title:"Variant",description:"Choose a variant that defines the color scheme for this component.",initialValue:"teal",options:{layout:"dropdown",list:[{title:"Light Grey",value:"lightGrey"},{title:"Teal",value:"teal"},{title:"White",value:"white"}]},group:"design"},tC],preview:{select:{title:"title",description:"description"},prepare:({title:e,description:t})=>({title:e,subtitle:es(t)??""})}}),ib=(0,r.U85)({type:"object",name:"faqs",title:"FAQs",icon:_.gZZ,description:"Frequently Asked Questions section",groups:tj,fields:[{type:"string",name:"title",title:"Title",validation:e=>e.required(),initialValue:"Frequently Asked Questions",group:"editorial"},{name:"description",type:"array",title:"Description",description:"Description for the section",of:[{type:"block",styles:[],lists:[],marks:{decorators:eb,annotations:[et]}}],group:"editorial"},{type:"array",name:"faqs",title:"FAQs",of:[{type:"object",fields:[{type:"string",name:"question",title:"Question",validation:e=>e.required()},{type:"array",name:"content",title:"Content",of:[{type:"block",styles:[],marks:{annotations:[eg],decorators:[{value:"strong",title:"Strong"}]}}
1,{type:"comparisonTable"}],validation:e=>e.required()}]}],validation:e=>e.required()},{type:"boolean",name:"singleSection",title:"Show the Faqs as a single section",initialValue:!0,validation:e=>e.required(),group:"editorial"},{type:"boolean",name:"defaultOpen",title:"Section open by default",description:"Whether the section is open by default",initialValue:!1,hidden:({parent:e})=>!e?.singleSection,group:"editorial"},{type:"string",name:"variant",title:"Variant",initialValue:"teal",group:"design",options:{layout:"dropdown",list:[{title:"Teal",value:"teal"},{title:"Light grey",value:"grey"},{title:"White",value:"white"}]}},tC],preview:{select:{title:"title",description:"description"},prepare:({title:e,description:t})=>({title:e||"No title provided",subtitle:t})}}),iv=(0,r.U85)({name:"featuredSection",type:"object",title:"Featured Section",fields:[{type:"string",name:"variant",title:"Select",options:{layout:"dropdown",list:[{title:"Digital resource",value:"digital_resource"},{title:"Custom",value:"custom"}],direction:"horizontal"},initialValue:"digital_resource",validation:e=>e.required()},{type:"reference",name:"digitalResource",to:[{type:"digitalResource"}],hidden:({parent:e})=>e?.variant!=="digital_resource",validation:e=>e.custom((e,t)=>{let i=t.parent;return i?.variant!=="digital_resource"||!!e||"Required"})},{type:"string",name:"title",title:"Title",description:"Section title",hidden:({parent:e})=>e?.variant!=="custom",validation:e=>e.custom((e,t)=>{let i=t.parent;return i?.variant!=="custom"||!!e||"Required"})},{type:"string",name:"description",title:"Description",description:"A small description of the section (optional)",hidden:({parent:e})=>e?.variant!=="custom"},{type:"altImage",name:"image",title:"Image",description:"Image to show within the section",hidden:({parent:e})=>e?.variant!=="custom"},{type:"link",name:"destination",title:"Destination",hidden:({parent:e})=>e?.variant!=="custom",options:{enableText:!0},validation:e=>e.custom((e,t)=>{let i=t.parent;return i?.variant!=="custom"||!!e||(0,T.Cm)(e)})},{name:"featured",type:"boolean",title:"Featured",description:"Show the section at the top"},{name:"divider",type:"boolean",title:"Divider",description:"Show the divider after the content",initialValue:!0},{name:"tags",type:"array",title:"Tags",description:"Tags to show at the top of the section",hidden:({parent:e})=>e?.variant!=="custom",of:[{type:"string"}],options:{layout:"tags"}},tC],preview:{select:{variant:"variant",title:"title",digitalResourceTitle:"digitalResource.title",digitalResourceImage:"digitalResource.image.image",image:"image.image"},prepare:e=>{let{variant:t,title:i,digitalResourceTitle:o,digitalResourceImage:a,image:n}=e;return"digital_resource"===t?{title:o,subtitle:"Digital resource",media:a}:{title:i,subtitle:"Featured section",media:n}}}});var iw=i(65989);let ik=(0,r.U85)({name:"featuresShowcase",title:"Features Showcase",type:"object",groups:tj,icon:iw.FRn,fields:[(0,r.MIB)({name:"title",title:"Title",type:"string",group:"editorial"}),(0,r.MIB)({name:"description",type:"array",title:"Description",description:"Description for the section",of:[{type:"block",styles:[],lists:[],marks:{decorators:eb,annotations:[et]}}],group:"editorial"}),(0,r.MIB)({name:"features",title:"Features",type:"array",group:"editorial",of:[{type:"object",name:"featureShowcaseItem",fields:[(0,r.MIB)({title:"Feature Title",name:"title",type:"string"}),(0,r.MIB)({title:"Feature Description",name:"description",type:"array",of:[{type:"block",styles:[],lists:[ev,ew],marks:{decorators:eb,annotations:[et]}}]}),(0,r.MIB)({title:"Icon",name:"icon",type:"altImage"})],preview:{select:{title:"title",description:"description",media:"icon.image"},prepare:({title:e,description:t,media:i})=>({title:e||"No title provided",subtitle:es(t)||"No description provided",media:i})}}]}),(0,r.MIB)({name:"media",title:"Media",type:"backgroundMedia",group:"editorial"}),(0,r.MIB)({name:"mediaPosition",type:"string",title:"Media Position",description:"Choose the position of the media",initialValue:"center",options:{list:[{title:"Center",value:"center"},{title:"Right",value:"right"},{title:"Left",value:"left"}]},group:"design"}),(0,r.MIB)({name:"link",title:"Link",type:"linkButton",group:"editorial"}),(0,r.MIB)({name:"variant",type:"string",title:"Variant",description:"Which variant you want to use for the showcase?",initialValue:"lightGrey",options:{list:[{title:"Light Grey",value:"lightGrey"},{title:"Teal",value:"teal"},{title:"White",value:"white"}]},group:"design"}),(0,r.MIB)({name:"titleSize",type:"string",title:"Title Size",description:"Which size you want to give to the title?",initialValue:"large",options:{list:[{title:"Large",value:"large"},{title:"Small",value:"small"}]},group:"design"}),tC],preview:{select:{title:"title",description:"description",media:"media.image.desktop.image"},prepare:({title:e,description:t,media:i})=>({title:e||"Feature Showcase",subtitle:es(t)||"No description provided",media:i})}}),iT=(0,r.U85)({name:"footnotes",type:"object",title:"Footnotes",icon:iw.WG5,groups:tj,fields:[{name:"content",type:"array",title:"Content",description:"The footnotes content with optional links and formatting.",of:[{type:"block",styles:[{title:"Normal",value:"normal"},{title:"Micro",value:"micro",component:e=>it({...e,style:{fontSize:12,margin:0,lineHeight:1},className:"micro"})}],lists:[ev,ew],marks:{decorators:[ey],annotations:[et]}}],group:"editorial"},tZ({exclude:["dark"]}
1),{name:"textAlignment",type:"string",title:"Text Alignment",initialValue:"left",options:{list:[{title:"Left",value:"left"},{title:"Center",value:"center"}]},group:"design"},tC],preview:{select:{content:"content"},prepare:({content:e})=>({title:es(e)||"Footnotes",subtitle:"Footnotes"})}}),iI=(0,r.U85)({type:"object",name:"highlightQuoteSection",title:"Highlight Quote",icon:tG.lRy,fields:[{type:"text",name:"quote",title:"Quote",validation:e=>e.required(),rows:3},{type:"string",name:"author",title:"Quote Author",validation:e=>e.required()},{type:"altImage",name:"mediaImage",title:"Image"}]}),iS=(0,r.MIB)({type:"object",name:"horizontalIconItem",title:"Horizontal Icon",icon:tG.LvK,fields:[{type:"altImage",name:"icon",title:"Icon",description:"A small icon to show to element (72x72)"},{type:"string",name:"title",title:"Title",description:""},{type:"array",name:"content",title:"Content",description:"",of:[{type:"block",styles:[],lists:[],marks:{decorators:eb,annotations:[et]}}]}],preview:{select:{title:"title",content:"content",media:"icon.image"},prepare:({content:e,...t})=>({...t,subtitle:es(e)??""})}}),iC=(0,r.U85)({name:"horizontalIcons",type:"object",title:"Horizontal Icons",icon:tG.rqP,groups:tj,fields:[{name:"title",type:"string",title:"Title",description:"A title for the module",group:"editorial"},{name:"description",type:"array",title:"Content",description:"A small description for the module",of:[{type:"block",styles:[],lists:[],marks:{decorators:eb,annotations:[et]}}],group:"editorial"},{name:"items",type:"array",title:"Elements",description:"List of elements with Icon",group:"editorial",of:[iS]},{name:"link",type:"linkButton",title:"Link",description:""},tZ({exclude:["dark"],withEpiMonitorGradient:!0}),{name:"titleSize",type:"string",title:"Title Size",description:"Which size you want to give to the title?",initialValue:"large",options:{list:[{title:"Large",value:"large"},{title:"Small",value:"small"}]},group:"design"},{name:"autoscroll",type:"boolean",title:"Enable autoscroll on desktop",description:"",initialValue:!1,hidden:e=>{let t=e.parent;return!Array.isArray(t?.items)||t.items.length<=5},group:"advanced"},{name:"autoscrollMobile",type:"boolean",title:"Enable autoscroll on mobile",description:"",initialValue:!1,hidden:e=>{let t=e.parent;return!Array.isArray(t?.items)||t.items.length<=5},group:"advanced"},{name:"autoscrollPace",type:"number",title:"Autoscroll pace",description:"Set the autoscroll pace in seconds (default 3s)",initialValue:3,hidden:e=>{let t=e.parent;return!Array.isArray(t?.items)||t.items.length<=5},group:"advanced"},{name:"elementsPerRow",type:"number",title:"Elements per row",description:"",initialValue:5,hidden:e=>{let t=e.parent;return!(Array.isArray(t?.items)&&t.items.length>5&&!t.autoscroll)},group:"advanced"},tC],preview:{select:{title:"title",description:"description"},prepare:({description:e,...t})=>({...t,subtitle:es(e)??""})}}),iA=(0,r.U85)({name:"imageAutoScroll",type:"object",title:"Autoscroll",icon:A.Sm0,groups:tj,fields:[{type:"string",name:"title",title:"Title",description:"The main heading of the section",group:"editorial"},{name:"description",type:"array",title:"Description",description:"A short description or body text that provides context or supporting information related to the title.",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[]}}],group:"editorial"},{type:"array",name:"images",title:"Images",description:"Images to show in the scroll component",of:[{type:"altImage"}],group:"visuals"},tZ({exclude:["dark"]}),{type:"number",name:"speed",title:"Speed",description:"Set the velocity of the scroll (in seconds)",initialValue:30,group:"advanced"},tC],preview:{select:{title:"title",speed:"speed"},prepare:({title:e,speed:t})=>({title:"Autoscroll",subtitle:e??`Speed set to ${t}`})}}),iP=(0,r.U85)({name:"imageCarousel",type:"object",title:"Image Carousel",groups:tj,icon:N.fYS,description:"A carousel with a background visual",fields:[{type:"array",name:"items",title:"Elements",description:"Elements to show in the carousel",group:"editorial",of:[{type:"object",name:"imageCarouselItem",title:"Carousel Item",description:"An element of the carousel",fields:[{name:"media",type:"media",validation:e=>e.required()},{type:"string",name:"title",title:"Title",description:"The main heading of the section"},{name:"description",type:"array",title:"Description",description:"A short description or body text that provides context or supporting information related to the title.",of:[{type:"block",styles:[],lists:[],marks:{decorators:eb,annotations:[et]}}]},{name:"link",type:"link",title:"Link",validation:e=>e.custom(e=>!e?.text||(0,T.Cm)(e)),options:{enableText:!0}}],preview:{select:{title:"title",media:"media.image.desktop.image",mediaType:"media.type",description:"description"},prepare:({title:e,description:t,media:i,mediaType:o})=>
1({title:e,subtitle:es(t)??"",media:"image"===o?i:void 0})}}]},{type:"boolean",name:"showMediaAsBackgroundOnMobile",title:"Show media as background on mobile?",description:"When checked, the media will appear as a background on mobile devices. When unchecked, the media will be displayed as a regular image above the content.",group:"design",initialValue:!0},{name:"enableAutoscroll",type:"boolean",title:"Enable Autoscroll",description:"When checked, carousel will be automatically scrolling. Scrolling pace will be defined in the Autoscroll pace field",initialValue:!1},{name:"autoscrollSpeed",type:"number",title:"Autoscroll pace",description:"Set the autoscroll pace in seconds (default 3s)",initialValue:3,hidden:e=>!e.parent?.enableAutoscroll},tC],preview:{select:{items:"items"},prepare:({items:e})=>({title:"Image Carousel",subtitle:`${e?.length??0} elements`})}}),ix=(0,r.U85)({name:"launchAtf",type:"object",title:"Product Launch ATF",icon:_.pYS,groups:tj,fields:[{type:"string",title:"Title",name:"title",validation:e=>e.required(),group:"editorial"},{type:"string",title:"Subtitle",name:"subtitle",group:"editorial"},{type:"media",name:"media",title:"Media",group:"visuals"},{type:"array",title:"Description",name:"description",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[]}}],validation:e=>e.required(),group:"editorial"},{type:"array",title:"Tags",name:"tags",description:"Small tags to add before the logo (e.g FDA Cleared)",validation:e=>e.max(3),group:"editorial",of:[{type:"string"}],options:{layout:"tags"}},{type:"array",title:"Notes",name:"notes",description:"Some notes to add after the Call to Actions",group:"editorial",of:[{type:"block",styles:[],lists:[],marks:{decorators:[{title:"Emphasis",value:"em"}],annotations:[et]}}]},{type:"atfCta",title:"Call to Action",name:"primaryCta",group:"editorial"},{type:"atfCta",title:"2nd Call to Action",name:"secondaryCta",group:"editorial"},{name:"variant",type:"string",initialValue:"lightGrey",title:"Variant",options:{list:[{title:"Light Grey",value:"lightGrey"},{title:"Dark",value:"dark"},{title:"White",value:"white"}]},group:"design"},tC],preview:{select:{title:"title",media:"media.image.desktop.image",mediaType:"media.type"},prepare:({title:e,media:t,mediaType:i})=>({title:e,subtitle:"Product Launch ATF",media:"image"===i?t:void 0})}}),iM=(0,r.U85)({type:"object",name:"mediaSection",title:"Media block",description:"A component designed to render media content",icon:N.qzR,fields:[{type:"backgroundMedia",name:"media",title:"Media",validation:e=>e.required()},tC],preview:{select:{media:"media.image.desktop.image",mediaType:"media.type"},prepare:({media:e,mediaType:t})=>({title:"Media block",subtitle:"Shows a section with a media",media:"image"===t?e:void 0})}}),iq=(0,r.U85)({name:"modal",type:"object",title:"Modal",icon:R.Su4,description:"Show up a modal when clicking the text",fields:[{name:"content",title:"Content",type:"array",of:[{type:"subscriptionTable"},{type:"comparisonTableSection"}],validation:e=>e.required()},{name:"size",title:"Size",description:"Size of the modal",initialValue:"default",type:"string",options:{layout:"radio",list:[{title:"Default",value:"default"},{title:"Large",value:"large"}]}}]});var iB=i(68058);let iL=(0,r.U85)({type:"object",name:"moduleExpandable",title:"Module expandable",icon:iB.lQK,fields:[{type:"string",name:"title",title:"Title",validation:e=>e.required()},{type:"array",name:"content",title:"Content",validation:e=>e.required(),of:[{type:"block",styles:[],lists:[],marks:{decorators:[{title:"Strong",value:"strong"}],annotations:[et]}}]},{type:"simplerColor",name:"backgroundColor",title:"Background Color"},tC]});var ij=i(64279);let iU=(0,r.U85)({type:"object",name:"moduleWithBoosterParallax",title:"Module with booster parallax",icon:ij.HXN,groups:tj,fields:[{name:"title",type:"string",title:"Title",description:"A title for the module",validation:e=>e.required(),group:"editorial"},{name:"description",type:"array",title:"Description",description:"Body copy",of:[{type:"block",styles:[],lists:[],marks:{decorators:eb,annotations:[et]}}],validation:e=>e.required(),group:"editorial"},{name:"cta",type:"link",title:"Call to action",group:"editorial",options:{enableText:!0}},{name:"variant",type:"string",initialValue:"embracePlus",options:{list:[{title:"EmbracePlus",value:"embracePlus"},{title:"EmbraceMini",value:"embraceMini"},{title:"Empatica PKG",value:"empaticaPkg"}]},group:"editorial"},tC],preview:{select:{title:"title"},prepare:({title:e})=>
1({title:e,subtitle:"Module with booster parallax"})}}),iV=(0,r.U85)({name:"moduleWithCarousel",type:"object",title:"Module with carousel",icon:A.Nk4,groups:tj,fields:[{name:"title",type:"string",title:"Title",description:"A title for the section",validation:e=>e.required(),group:"editorial"},{name:"description",type:"string",title:"Description",description:"A description for the section",validation:e=>e.required(),group:"editorial"},{name:"content",type:"array",title:"Content",description:"Content for the section",of:[{type:"block",styles:[{title:"Title",value:"h4"},{title:"Normal",value:"normal"},{title:"Note",value:"note",component:e=>ii({...e,style:{fontSize:12,fontStyle:"italic"}})}],lists:[],marks:{decorators:[],annotations:[eg]}}],validation:e=>e.required(),group:"editorial"},{name:"images",type:"array",title:"Images",description:"Images to show in the carousel",group:"visuals",of:[{type:"object",fields:[{type:"string",name:"description",title:"Description",validation:e=>e.required()},{type:"altImage",name:"image",title:"Image",validation:e=>e.required()}],preview:{select:{title:"description",media:"image.image"}}}],validation:e=>e.required()},tC],preview:{select:{title:"title"},prepare:({title:e})=>({title:e,subtitle:"Module with carousel"})}});var iE=i(15711);let iD=(0,r.U85)({type:"object",name:"moduleWithDescriptions",title:"Module with single image and multiple descriptions section",icon:N.Wxz,groups:tj,fields:[{type:"string",name:"title",title:"Title",description:"A title for the module",group:"editorial"},{name:"content",type:"array",title:"Content",description:"Content for the section",of:[{type:"block",styles:[],lists:[],marks:{decorators:eb,annotations:[et]}}],group:"editorial"},{type:"altImage",name:"image",title:"Image",description:"Image to show in the module",validation:e=>e.required(),group:"editorial"},{type:"array",name:"descriptions",title:"Descriptions",description:"Multiple section with title and description that would go under the image",of:[{type:"object",icon:iE.ydh,fields:[{type:"string",name:"title",validation:e=>e.required()},{name:"description",type:"array",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[et]}}],validation:e=>e.required()},{type:"altImage",name:"image",validation:e=>e.required()}]}],components:{input:e2},validation:e=>e.min(1).max(5).required(),group:"editorial"},{name:"destination",title:"Destination",type:"link",description:"A link to redirect the user",options:{enableText:!0},group:"editorial"},tZ({exclude:["dark"],initialValue:"lightGrey"}),tC],preview:{select:{title:"title",media:"image.image"},prepare:({title:e,media:t})=>({title:e,subtitle:"Module with single image and multiple descriptions section",media:t})}}),i_=(0,r.U85)({name:"moduleWithFeaturesImage",type:"object",title:"Module with features images",groups:tj,fields:[{name:"title",type:"string",title:"Title",description:"A title for the section",validation:e=>e.required(),group:"editorial"},{name:"description",type:"string",title:"Description",validation:e=>e.required(),group:"editorial"},{name:"features",type:"array",title:"Features",group:"editorial",validation:e=>e.required().min(2),of:[{type:"object",fields:[{name:"title",type:"string",validation:e=>e.required()},{name:"description",type:"string",validation:e=>e.required()},{name:"image",type:"altImage",validation:e=>e.required()}],preview:{select:{title:"title",subtitle:"description",media:"image.image"},prepare:e=>e}}]},tC],preview:{select:{title:"title"},prepare:({title:e})=>({title:e,subtitle:"Module with features images"})}});var iR=i(12188);let iO=(0,r.U85)({name:"moduleWithImage",type:"object",title:"Module with Image",icon:iR.XWx,groups:tj,fields:[{name:"title",type:"string",title:"Title",description:"A title for the section",validation:e=>e.required(),group:"editorial"},{name:"content",type:"array",title:"Content",description:"Content for the section",of:[{type:"block",styles:[],lists:[{title:"Bullet list",value:"bullet"}],marks:{decorators:[{title:"Emphasis",value:"em"}],annotations:[eg]}},{type:"object",name:"cta",title:"Call to action",description:"A link to redirect the user",icon:iu.MzS,preview:{select:{url:"href",title:"text"},prepare:({url:e,title:t})=>({title:t,subtitle:e})},fields:[{name:"text",type:"string",description:"",validation:e=>e.required()},{name:"href",type:"url",title:"Link",description:"A valid web, email, phone, or relative link.",validation:e=>e.uri({scheme:["http","https","tel","mailto"],allowRelative:!0})}]}],validation:e=>e.required(),group:"editorial"},{name:"visual",type:"object",title:"Module visual",fields:[{name:"image",type:"altImage",description:"An Image to show at the left of the section",validation:e=>e.required()},{name:"position",title:"Position",type:"string",description:"Image position in the module",initialValue:"left",options:{layout:"dropdown",list:[{title:"On the left",value:"left"},{title:"On the right",value:"right"}]}},{name:"animationDisabled",title:"Disable Animation",type:"boolean",initialValue:!1}],group:"visuals"},{name:"destination",title:"Destination",type:"link",description:"A link to redirect the user",options:{enableText:!0},group:"editorial"},tC],preview:{select:{title:"title",image:"visual.image.image"},prepare:({title:e,image:t})=>
1({title:e,subtitle:"Module with Image",media:t})}}),iN=(0,r.U85)({type:"object",name:"moduleWithMannequin",title:"Module with mannequin animation",icon:iR.nX5,groups:tj,fields:[{name:"title",type:"string",title:"Title",description:"A title for the module",validation:e=>e.required(),group:"editorial"},{name:"content",type:"array",title:"Content",description:"Content for the section",of:[{type:"block",styles:[],lists:[],marks:{decorators:eb,annotations:[et]}}],validation:e=>e.required(),group:"editorial"},{name:"variant",type:"string",initialValue:"lightGrey",options:{list:[{title:"Light Grey",value:"lightGrey"},{title:"Dark",value:"dark"},{title:"White",value:"white"}]},group:"design"},{name:"mannequinSvg",type:"text",title:"Mannequin SVG",description:"SVG code for the mannequin animation. Make sure to include data-area-value attributes for interactive areas.",group:"editorial",hidden:({currentUser:e})=>!e?.roles.some(e=>"administrator"===e.name)},tC],preview:{select:{title:"title"},prepare:({title:e})=>({title:e,subtitle:"Module with mannequin animation"})}}),iW=(0,r.U85)({type:"object",name:"moduleWithMedia",title:"Module with media",icon:iB.Dnj,groups:tj,fields:[{name:"title",type:"string",title:"Title",description:"A title for the module",validation:e=>e.required(),group:"editorial"},{name:"content",type:"array",title:"Content",description:"Content for the section",of:[{type:"block",styles:[],lists:[],marks:{decorators:eb,annotations:[et]}}],group:"editorial"},{name:"media",type:"media",validation:e=>e.required(),group:"visuals"},{name:"variant",type:"string",initialValue:"lightGrey",options:{list:[{title:"Light Grey",value:"lightGrey"},{title:"Teal",value:"teal"},{title:"Dark",value:"dark"},{title:"White",value:"white"}]},group:"design"},{name:"cta",type:"link",title:"Call to action",group:"editorial",options:{enableText:!0}},{name:"infos",type:"array",group:"editorial",title:"More information",description:"Add items with a title and description to highlight key information or features.",of:[{type:"object",fields:[{type:"string",name:"title",title:"Title",validation:e=>e.required()},{type:"array",name:"description",title:"Description",validation:e=>e.required(),of:[{type:"block",styles:[],lists:[],marks:{decorators:eb,annotations:[]}}]}],preview:{select:{title:"title",description:"description"},prepare:({title:e,description:t})=>({title:e,subtitle:es(t)??""})}}]},tC],preview:{select:{title:"title",media:"media.image.desktop.image",mediaType:"media.type"},prepare:({title:e,media:t,mediaType:i})=>({title:e,subtitle:"Module with media",media:"image"===i?t:void 0})}}),iG=(0,r.U85)({type:"object",name:"moduleWithMultipleColumns",title:"Module with columns",groups:tj,fields:[{name:"title",type:"string",title:"Title",description:"A title for the section",validation:e=>e.required(),group:"editorial"},{name:"description",type:"string",title:"Description",description:"A description for the section",validation:e=>e.required(),group:"editorial"},{type:"array",name:"columns",title:"Columns",of:[{type:"object",icon:iE.ydh,fields:[{type:"string",name:"title",validation:e=>e.required()},{type:"text",name:"description",validation:e=>e.required()},{type:"altImage",name:"image",validation:e=>e.required()}],preview:{select:{title:"title",subtitle:"description",media:"image.image"}}}],components:{input:e2},validation:e=>e.min(1).max(4).required(),group:"editorial"},tC],preview:{select:{title:"title"},prepare:({title:e})=>({title:e,subtitle:"Module with columns"})}});var i$=i(29056);let iF=(0,r.MIB)({type:"object",name:"testimonialItem",title:"Quote",groups:tj,fields:[{type:"altImage",name:"image",title:"Image",group:"visuals"},{type:"string",name:"client",validation:e=>e.required(),title:"Client",group:"editorial"},{type:"text",name:"testimonial",validation:e=>e.required(),title:"Testimonial",group:"editorial"},{type:"string",name:"subtitle",title:"Subtitle",group:"editorial"}],preview:{select:{client:"client",image:"image",testimonial:"testimonial"},prepare:e=>({title:e.client,subtitle:e.testimonial,media:e.image?.image})}}),iz=(0,r.U85)({type:"object",name:"moduleWithTestimonials",title:"Module with testimonials",icon:i$.BgB,groups:tj,fields:[{type:"string",name:"title",title:"Title",validation:e=>e.required()},{name:"description",type:"array",title:"Description",description:"A short description or body text that provides context or supporting information related to the title.",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[]}}],group:"editorial"},{type:"array",name:"testimonials",title:"Testimonials",validation:e=>e.required(),of:[iF],group:"editorial"},tZ({exclude:["dark","teal"]}),tC],preview:{select:{title:"title"},prepare:e=>({title:e.title,subtitle:"Module with testimonials"})}}),iQ=(0,r.U85)({name:"newsBanner",type:"object",title:"News Bannner",icon:R.Nhm,fields:[{type:"boolean",name:"autoUpdateWithLatestNews",title:"Auto update with Latest News",description:'When enabled, the news banner will automatically display the most recent blog post (max 2) — no manual selection needed. The "News" field below will be hidden and ignored. Disable this option if you want full control over which news items appear.',initialValue:!1},{type:"array",name:"news",title:"News",description:"News to show in the banner",hidden:({parent:e})=>e?.autoUpdateWithLatestNews===!0,of:[{type:"object",fields:[{type:"string",name:"useCase",title:"Use Case",description:"To which use case it's related the news",options:{layout:"radio",list:[{value:"epilepsy",title:"Epilepsy"},{value:"research",title:"Research"}]},initialValue:"research",validation:e=>e.required()},{type:"string",name:"type",title:"Select",options:{layout:"dropdown",list:[{title:"Digital resource",value:"digital_resource"},{title:"Blog Post",value:"blog_post_page"},{title:"Custom",value:"custom"}],direction:"horizontal"},initialValue:"blog_post",validation:e=>e.required()},{type:"reference",name:"digitalResource",to:[{type:"digitalResource"}],hidden:({parent:e})=>e?.type!=="digital_resource",validation:e=>e.custom((e,t)=>
1{let i=t.parent;return i?.type!=="digital_resource"||!!e||"Required"})},{type:"reference",name:"blogPostPage",to:[{type:"blogPostPage"}],hidden:({parent:e})=>e?.type!=="blog_post_page",validation:e=>e.custom((e,t)=>{let i=t.parent;return i?.type!=="blog_post_page"||!!e||"Required"})},{type:"string",name:"title",title:"Title",hidden:({parent:e})=>e?.type!=="custom",validation:e=>e.custom((e,t)=>{let i=t.parent;return i?.type!=="custom"||!!e||"Required"})},{type:"string",name:"description",title:"Description",hidden:({parent:e})=>e?.type!=="custom",validation:e=>e.max(150).custom((e,t)=>{let i=t.parent;return i?.type!=="custom"||!!e||"Required"})},{name:"url",type:"link",title:"Link",description:"The URL where the user will be redirected",hidden:({parent:e})=>e?.type!=="custom",validation:e=>e.custom((e,t)=>{let i=t.parent;return i?.type!=="custom"||(0,T.Cm)(e)})},{type:"altImage",name:"image",title:"Image",description:"Image to show within the section (Size 90x90)"}],preview:{select:{type:"type",customTitle:"title",customDescription:"description",customImage:"image.image",digitalResourceTitle:"digitalResource.title",digitalResourceDescription:"digitalResource.description",digitalResourceImage:"digitalResource.image.image",blogPageTitle:"blogPostPage.title",blogPageImage:"blogPostPage.coverImage.image"},prepare:e=>{let{type:t,customTitle:i,customImage:o,digitalResourceTitle:a,digitalResourceImage:n,blogPageTitle:r,blogPageImage:l}=e;return"digital_resource"===t?{title:a,subtitle:"Digital resource",media:o??n}:"blog_post_page"===t?{title:r,subtitle:"Blog Page",media:o??l}:{title:i,subtitle:"Custom",media:o}}}}],validation:e=>e.custom((e,t)=>{let i=t.parent;return!!i?.autoUpdateWithLatestNews||(e&&0!==e.length?!(e.length>2)||"Maximum 2 news items allowed":"Required")})},{type:"number",name:"delay",title:"Animation delay",description:"Time in milliseconds to wait before showing the newsbar (default 2s)",initialValue:2},tC],preview:{select:{customTitle:"title",customDescription:"description",customImage:"image",digitalResourceTitle:"digitalResource.title",digitalResourceImage:"digitalResource.image.image"},prepare:()=>({title:"News Banner"})}}),iH=(0,r.U85)({name:"newsletter",type:"object",title:"Newsletter",icon:t_.r,fields:[{type:"string",name:"title",title:"Title",description:"Title to show for the newsletter",validation:e=>e.required()},{type:"string",name:"variant",title:"Variant",options:{layout:"dropdown",list:["Default","EpiMonitor","EpiMonitor Region Availability","WellPD"]},initialValue:"Default",validation:e=>e.required()},{type:"string",name:"theme",title:"Theme",description:"Color scheme for the section. Only applied to the Default variant for now.",options:{layout:"dropdown",list:[{title:"Light Grey",value:"lightGrey"},{title:"Teal",value:"teal"},{title:"EpiMonitor Gradient",value:"epiMonitorGradient"}]}},tC],preview:{select:{title:"title"},prepare:({title:e})=>({title:e,subtitle:"Newsletter"})}});var iY=i(74817);let iX=(0,r.U85)({name:"optionComparison",type:"object",title:"Option Comparison",description:"A component to compare different options side by side.",icon:N.pU,groups:tj,fields:[{type:"string",name:"title",title:"Title",description:"The main heading of the section",validation:e=>e.required(),group:"editorial"},{name:"content",type:"array",title:"Content",description:"A short description or body text that provides context or supporting information related to the title.",of:[{type:"block",styles:[],lists:[],marks:{decorators:eb,annotations:[et]}}],group:"editorial"},{type:"array",name:"tabs",title:"Tabs",description:"Define the tabs for comparing different options side by side.",of:[{type:"object",name:"optionTab",title:"Option Tab",fields:[{type:"string",name:"name",title:"Tab Name",description:"The name of the tab representing an option.",validation:e=>e.required()},{type:"string",name:"highlight",title:"Highlight",description:"A small highlight text for the option."},{type:"array",name:"options",title:"Options",description:"List of options to compare under this tab.",of:[{type:"object",name:"optionItem",title:"Option",fields:[{type:"string",name:"highlight",title:"Highlight",description:"A small highlight text for the option to show in the top of the card."},{type:"array",name:"heading",title:"Heading",description:"Heading for the option",of:[{type:"block",styles:[{title:"Title",value:"title",component:e=>ie({...e,style:{fontSize:24}})},{title:"Subtitle",value:"subtitle",component:e=>it({...e,style:{fontSize:16,fontWeight:600,margin:0}})}
1],lists:[],marks:{decorators:[...eb,{title:"Strike",value:"strike-through"},{title:"Highlight",value:"highlight",icon:_.f04,component:e=>it({...e,style:{fontWeight:600,color:"#00778B",display:"inline-block",margin:0}})},{title:"Subscript",value:"subscript",icon:iY.yt0,component:e=>io({...e,style:{fontWeight:500,display:"inline-block",margin:0,fontSize:14}})}],annotations:[]}}]},{type:"altImage",name:"image",title:"Image",description:"An optional image for this single option, shown next to its heading. It belongs to the option, not to the tab."},{name:"details",type:"array",title:"Option details",description:"Details for the option",of:[{type:"block",styles:[{title:"Body",value:"normal"}],lists:[ev],marks:{decorators:eb,annotations:[et]}}],validation:e=>e.required()},{type:"linkButton",name:"link",title:"CTA",description:"An optional CTA for more information about this option."}]}]},{type:"link",name:"link",title:"Link",description:"An optional link for more information about this option tab.",options:{enableText:!0}}]}]},{type:"array",name:"ctas",title:"Call to Actions",description:"Buttons to display below the comparison section.",of:[{type:"linkButton"}],validation:e=>e.max(2),components:{input:e2},group:"editorial"},{name:"variant",type:"string",initialValue:"lightGrey",options:{list:[{title:"Light Grey",value:"lightGrey"},{title:"White",value:"white"}]},group:"design"},tC],preview:{select:{title:"title",content:"content"},prepare:({title:e,content:t})=>({title:e,subtitle:es(t)??""})}}),iK=(0,r.U85)({name:"productNumbers",type:"object",title:"Product Numbers",description:"",icon:tP.S_S,groups:tj,fields:[{type:"array",title:"Numbers",description:"Some numbers/statistics of the product",name:"numbers",of:[{type:"object",fields:[{name:"title",type:"string",title:"Title",validation:e=>e.required()},{name:"description",type:"string",title:"Description",validation:e=>e.required()}]}],group:"editorial"},{type:"array",name:"notes",title:"Notes",description:"Optional notes to show below the numbers",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[et]}}],group:"editorial"},(0,r.MIB)({name:"variant",type:"string",initialValue:"lightGrey",options:{list:[{title:"Light Grey",value:"lightGrey"},{title:"Teal",value:"teal"},{title:"White",value:"white"}]},group:"design"}),(0,r.MIB)({name:"titleColor",type:"string",title:"Title Color",description:"Color of the number titles",initialValue:"grey",options:{list:[{title:"Grey",value:"grey"},{title:"Teal",value:"teal"}]},group:"design"}),tC],preview:{prepare:()=>({title:"Product numbers"})}}),iZ=(0,r.U85)({name:"publicationList",type:"object",title:"Publication List",description:"Shows the full list of publications with filtering by use case, area, age group, and studies. Filters persist in the URL so links can be shared with a filter pre-applied.",icon:tG.w88,fields:[{name:"nElements",type:"number",title:"N. elements per page",description:'How many publications to show initially and per "Load more"',initialValue:5,validation:e=>e.required().min(1)},tC],preview:{prepare:()=>({title:"Publication List"})}}),iJ=(0,r.U85)({type:"object",name:"quoteBanner",title:"Quote Banner",icon:_.JwJ,groups:tj,fields:[{type:"array",name:"content",title:"Content",of:[{type:"block",styles:[],lists:[],marks:{}}],validation:e=>e.required().min(1).error("Content is required")},tC],preview:{select:{title:"content"},prepare:({title:e})=>({title:es(e)||"Quote Banner"})}}),i0=(0,r.U85)({type:"object",name:"regionSelectorModule",title:"Module with the region selector map",icon:ij.ptZ,fields:[{type:"string",name:"title",title:"Title",description:"A title for the module",validation:e=>e.required()},{name:"description",type:"array",title:"Description",description:"A description for the module",validation:e=>e.required(),of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[]}}]},tC],preview:{select:{title:"title",description:"description"},prepare:({title:e,description:t})=>({title:e,subtitle:es(t)??"Region selector module"})}}),i1=(0,r.U85)({name:"sectionWithBackgroundMedia",type:"object",title:"Section with Backgroun
1d media",icon:t_.Col,groups:tj,fields:[{name:"media",type:"backgroundMedia",validation:e=>e.required(),group:"visuals"},{name:"content",type:"array",title:"Content",description:"Content for the section",of:[{type:"block",styles:[{title:"Body",value:"normal"},{title:"Title",value:"h3",component:ie},{title:"Note",value:"note",component:e=>ii({...e,style:{fontSize:12,fontStyle:"italic"}})}],lists:[ev],marks:{decorators:eb,annotations:[et]}},{type:"chip"},{type:"linkButton"}],validation:e=>e.required(),group:"editorial"},{name:"variant",type:"string",initialValue:"lightGrey",options:{list:[{title:"Light Grey",value:"lightGrey"},{title:"Dark",value:"dark"},{title:"White",value:"white"},{title:"Teal",value:"teal"},{title:"EpiMonitor Gradient",value:"epiMonitorGradient"}]},group:"design"},tC],preview:{select:{content:"content",media:"media.image.desktop.image",mediaType:"media.type"},prepare:({content:e,media:t,mediaType:i})=>({title:"Section with Background media",subtitle:es(e)??"",media:"image"===i?t:void 0})}}),i5=(0,r.U85)({name:"sectionWithBlogPosts",type:"object",title:"Section with Blog Posts",fields:[{name:"title",type:"string",title:"Title",description:"A title for the section",validation:e=>e.required()},{name:"content",type:"string",title:"Content",description:"Content for the section",validation:e=>e.required()},{name:"destination",title:"Destination",type:"link",description:"A link to redirect the user",options:{enableText:!0},validation:e=>e.custom(e=>(0,T.Cm)(e))},{name:"posts",title:"Blog Posts",type:"array",description:"Blog posts to show",of:[{type:"reference",to:[{type:"blogPostPage"}]}],options:{layout:"list"},validation:e=>e.required()},tC],preview:{select:{title:"title",description:"content"},prepare:({title:e,description:t})=>({title:e,subtitle:"Section with Blog Post",description:t})}}),i2=(0,r.U85)({name:"sectionWithMedia",type:"object",title:"Section with Media",icon:iB.AsF,groups:tj,fields:[{name:"media",type:"media",validation:e=>e.required(),group:"visuals"},{name:"mediaPosition",type:"string",initialValue:"left",title:"Media position on desktop",description:"Where you want to place the media?",options:{list:[{title:"Left",value:"left"},{title:"Right",value:"right"}]},group:"visuals"},{name:"mediaPositionMobile",type:"string",initialValue:"top",title:"Media position on mobile devices",description:"Where you want to place the media?",options:{list:[{title:"Top",value:"top"},{title:"Bottom",value:"bottom"}]},group:"visuals"},{name:"content",type:"array",title:"Content",description:"Content for the section",of:[{type:"block",styles:[{title:"Body",value:"normal"},{title:"Title",value:"h3",component:ie},{title:"Note",value:"note",component:e=>ii({...e,style:{fontSize:12,fontStyle:"italic"}})}],lists:[ev],marks:{decorators:[...eb,{title:"Subscript",value:"subscript",icon:iY.yt0,component:e=>io({...e,style:{fontWeight:500,display:"inline-block",margin:0,fontSize:14}})},{title:"Superscript",value:"supscript",icon:iY.pyC,component:e=>{let t;return t={...e,style:{fontWeight:500,display:"inline-block",margin:0,fontSize:14}},(0,s.jsx)("sup",{style:{...t.style},children:t.children})}}],annotations:[et]}},{type:"chip"},{type:"linkButton"},{type:"chipGroup"}],validation:e=>e.required(),group:"editorial"},{name:"variant",type:"string",initialValue:"lightGrey",options:{list:[{title:"Light Grey",value:"lightGrey"},{title:"Teal",value:"teal"},{title:"White",value:"white"},{title:"Dark",value:"dark"}]},group:"design"},{name:"spacing",type:"string",initialValue:"default",options:{list:[{title:"Default",value:"default"},{title:"Wide",value:"wide"},{title:"Tight",value:"tight"}]},group:"design"},{name:"animateImage",type:"boolean",title:"Enable animation",description:"Add a scale up animation",initialValue:!1,hidden:({parent:e})=>e?.media?.type!=="image",group:"design"},im({group:"design",alignmentOptions:["center","left"],initialValue:"center",name:"textAlignmentMobile",title:"Text alignment on mobile"}),tC],preview:{select:{content:"content",media:"media.image.desktop.image",mediaType:"media.type"},prepare:({content:e,media:t,mediaType:i})=>({title:"Section with media",subtitle:es(e)??"",media:"image"===i?t:void 0})}});var i8=i(60363);let i3=(0,r.U85)({name:"sectionWithMoon",type:"object",title:"Section with Moon background",icon:i8.i4w,groups:tj,fields:[{name:"content",type:"array",title:"Content",description:"Content for the section",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[]}}],validation:e=>e.required(),group:"editorial"},tC],preview:{select:{content:"content"},prepare:({content:e})=>({title:"Section with Moon background",subtitle:es(e)??""})}}),i4=(0,r.U85)({name:"sectionWithParallaxVideo",type:"object",title:"Section with Text and Video animation",icon:N.D$U,groups:tj,fields:[{name:"contents",type:"array",title:"Texts",of:[{type:"object",fields:[{name:"video",type:"file",title:"Video",options:{accept:"video/mp4"},validation:e=>e.custom(async(e,{getClient:t})=>{if(!e)return"File is required";if(e?.asset?._ref){let i=t({apiVersion:"2025-01-01"});if(await i.fetch("*[_id == $id][0].size",{id:e.asset._ref})>5e6)return"File size must be less than 20MB"}return!0})},{type:"array",name:"content",of:[{type:"block",styles:[{title:"Body",value:"normal"},{title:"Title",value:"h3",component:ie},{title:"Note",value:"note",component:e=>ii({...e,style:{fontSize:12,fontStyle:"italic"}})}],lists:[ev],marks:{decorators:eb,annotations:[et]}},{type:"chip"},{type:"linkButton"}]}]}],validation:e=>e.required(),group:"editorial"},{name:"theme",type:"string",initialValue:"lightGrey",options:{list:[{title:"Light Grey",value:"lightGrey"},{title:"White",value:"white"},{title:"Dark",value:"dark"}]},group:"design"},tC],preview:{prepare:()=>({title:"Section with Parallax video"})}}),i6=(0,r.U85)({type:"object",name:"seizureForecastingModule",title:"Seizure forecasting module",icon:eO.R$k,fields:[{type:"string",name:"title",title:"Title",validation:e=>e.required()},{type:"array",name:"content",title:"Content",validation:e=>e.required(),of:[{type:"block",styles:[{title:"Normal",value:"normal"}],lists:[],marks:{annotations:[eg],decorators:[{title:"Strong",value:"strong"}]}}]}
1,{type:"link",name:"destination",title:"Call to action",validation:e=>e.custom(e=>(0,T.Cm)(e)),options:{enableText:!0}},tC],preview:{select:{title:"title"},prepare:({title:e})=>({title:e,subtitle:"Seizure Forecasting module"})}}),i7=(0,r.U85)({type:"object",name:"smartphoneCompatibilityList",title:"Smartphone Compatibility List",description:"Show the list of Smartphones compatibility guidelines",icon:()=>(0,s.jsx)("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.2697 1.21779V0.433382H12.2552C12.2509 0.318365 12.2 0.209277 12.1129 0.128631C12.0259 0.047986 11.9093 0.00194057 11.7872 0H5.07014C4.94827 0.0024118 4.83197 0.0486106 4.74501 0.129158C4.65804 0.209706 4.60697 0.318522 4.60223 0.433382V3.98281C3.92111 4.53659 3.37444 5.22218 2.99939 5.99297C2.62434 6.76375 2.4297 7.60166 2.42871 8.44971C2.42773 9.29776 2.62042 10.1361 2.99367 10.9076C3.36693 11.6792 3.912 12.3659 4.59183 12.9211L4.60223 12.9329V16.4627V16.5392C4.60055 16.6592 4.64922 16.7749 4.73764 16.8612C4.82606 16.9475 4.94707 16.9974 5.0743 17H11.7914C11.9188 16.9974 12.04 16.9476 12.1288 16.8614C12.2175 16.7751 12.2667 16.6593 12.2655 16.5392V16.4627V12.9329C12.9424 12.3796 13.4858 11.6959 13.8589 10.928C14.232 10.16 14.4263 9.32556 14.4287 8.48084C14.4311 7.63611 14.2414 6.80072 13.8726 6.03091C13.5038 5.26111 12.9643 4.57476 12.2905 4.01811L12.2655 3.99458V2.15907L12.2697 1.21779ZM5.54013 0.925597H11.3089V3.35725L11.1155 3.26116C10.2845 2.85779 9.36335 2.64735 8.42869 2.64735C7.49403 2.64735 6.57288 2.85779 5.74185 3.26116L5.54428 3.35725L5.54013 0.925597ZM11.3048 16.0842H5.54428V13.5702L5.74185 13.6663C6.57206 14.0722 7.49353 14.284 8.42869 14.284C9.36385 14.284 10.2853 14.0722 11.1155 13.6663L11.3089 13.5702L11.3048 16.0842ZM8.42245 13.3643C5.63579 13.3643 3.36695 11.166 3.36695 8.46176C3.36695 5.75753 5.63579 3.55923 8.42245 3.55923C11.2091 3.55923 13.4821 5.75753 13.4821 8.46176C13.4821 11.
1166 11.2174 13.3643 8.42661 13.3643H8.42245Z",fill:"#707070"})}),fields:[{type:"boolean",name:"autoFill",title:"Auto-fill compatibility list",description:"Automatically fill the compatibility list with all the Smartphone Compatibility data. If enabled, the list will be updated regularly to reflect any changes in smartphone compatibility."},{type:"array",name:"compatibilityList",title:"Compatibility List",description:"Add the list of Smartphones compatibility guidelines",of:[{type:"embraceplusCompatibility"}],hidden:({parent:e})=>e?.autoFill===!0},tC],preview:{select:{autoFill:"autoFill"},prepare:({autoFill:e})=>({title:"Smartphone Compatibility List",subtitle:`Mode: ${e?"Auto-fill":"Manual"}`})}}),i9=(0,r.U85)({type:"object",name:"sponsorSection",title:"Sponsored section",icon:i8.yc5,fields:[{type:"array",name:"content",title:"Content",validation:e=>e.required(),of:[{type:"block",styles:[],lists:[],marks:{annotations:[],decorators:[]}}]},{type:"altImage",name:"image",title:"Image",validation:e=>e.required()},tC]}),oe=(0,r.U85)({name:"statisticsSection",type:"object",title:"Statistics Section",icon:iR.kfW,groups:tj,fields:[{type:"array",name:"stats",title:"Statistics",description:"Statistics to show in the section",group:"editorial",of:[{type:"object",title:"Statistic",description:"An statistic to stand out an information",fields:[{name:"value",title:"Value",description:"Value to assign to the stat",type:"string",validation:e=>e.required()},{name:"label",title:"Label",description:"Label referring to the value",type:"string",validation:e=>e.required().max(40)},{name:"description",title:"Description",description:"A small description to add to the section",type:"string"}],preview:{select:{label:"label",value:"value",description:"description"},prepare:({label:e,value:t,description:i})=>({title:`${t} ${e}`,subtitle:i})}}],validation:e=>e.required().min(1)},tZ({exclude:["dark"]}),tC],preview:{prepare:()=>({title:"Statistics",subtitle:"Section"})}}),ot=(0,r.U85)({type:"object",name:"subscriptionModule",title:"Subscription Module",icon:N.pIF,groups:tj,fields:[{type:"string",name:"title",title:"Title",validation:e=>e.required(),group:"editorial"},{name:"description",type:"array",title:"Description",description:"A description for the section",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[]}}],group:"editorial"},{name:"subscription",title:"Subscription",type:"reference",to:[{type:"subscription"}],validation:e=>e.required(),group:"editorial"},{type:"string",name:"variant",title:"Variant",description:"Choose a variant that defines the color scheme for this component.",initialValue:"teal",options:{layout:"dropdown",list:[{title:"Light Grey",value:"lightGrey"},{title:"White",value:"white"}]},group:"design"},{type:"object",name:"button",title:"Button",fields:[{type:"boolean",name:"visible",title:"Visible",description:"When off, the button would be hidden",initialValue:!0},{type:"string",name:"text",title:"Text",validation:e=>e.required()},tQ(),tH(),tY()],group:"editorial"},tC]}),oi=(0,r.U85)({name:"subscriptionTable",type:"object",title:"Subscription comparison table",icon:R.PQR,fields:[{name:"title",type:"string",title:"Title",validation:e=>e.required()},{name:"description",type:"text",title:"Description",validation:e=>e.required()},{type:"reference",name:"subscription",title:"Subscription",description:"Choose the subscription to show in the table",validation:e=>e.required(),to:[{type:"subscription"}]},tC],preview:{select:{title:"title",subtitle:"subscription.name",media:"subscription.logo.image"},prepare:e=>e}}),oo=(0,r.U85)({type:"object",name:"tabSwitcherSection",title:"Tab Switcher Section",groups:tj,icon:t_.sAQ,fields:[{type:"string",name:"title",title:"Title",validation:e=>e.required()},{name:"description",type:"array",title:"Description",description:"A short description or body text that provides context or supporting information related to the title.",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[]}}],group:"editorial"},{name:"tabs",type:"array",title:"Tabs",of:[{type:"object",name:"tabItem",title:"Tab Item",icon:N.lK1,fields:[{type:"string",name:"title",title:"Tab Title",validation:e=>e.required()},{type:"array",name:"description",title:"Tab Description",description:"A short description or body text that provides context or supporting information related to the tab title.",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[et]}}]},eX({include:["moduleWithDescriptions"],name:"content",title:"Tab Content",description:"The content to display when this tab is active.",validation:e=>e.max(1),components:{input:e2}})],preview:{select:{title:"title",description:"description"},prepare:({title:e,description:t})=>({title:e||"Untitled",subtitle:es(t)??""})}}],components:{input:e2},validation:e=>e.required().min(1).max(3)},{type:"linkButton",name:"link",group:"editorial"},tC],preview:{select:{title:"title"},prepare:({title:e})=>({title:e||"Untitled",subtitle:"Tab Switcher Section"})}}),oa=(0,r.U85)({name:"talkToTeam",type:"object",title:"Talk to Team",fields:[{type:"string",name:"team",title:"Team",description:"Name of the team to contact",validation:e=>e.required()},{type:"string",name:"email",title:"Email of the team",validation:e=>[e.required(),e.custom(e=>el.safeParse(e).success?Promise.resolve(!0):Promise.resolve({message:"Email not valid"}))]},tC],preview:{select:{title:"team"},prepare:e=>({title:`Talk to Team: ${e.title} team`})}}),on=(0,r.U85)({type:"object",name:"tradeInModule",title:"Trade In Module",icon:ij.nHg,groups:tj,fields:[{name:"image",type:"altImage",title:"Image",group:"visuals"},{name:"title",type:"array",title:"Title",validation:e=>e.required(),of:[{type:"block",styles:[{title:"Normal",value:"normal"}],lists:[],marks:{annotations:[],decorators:[{title:"Strong",value:"strong"}]}}],group:"editorial"},{name:"description",type:"array",title:"Description",validation:e=>e.required(),of:[{type:"block",lists:[],styles:[{title:"Strong",value:"strong"},{title:"Normal",value:"normal"}],marks:{annotations:[],decorators:[]}}],group:"editorial"},{name:"steps",title:"Steps",description:"Steps to proceed for the trade in",type:"array",group:"editorial",validation:e=>e.required(),of:[{type:"object",fields:[{name:"title",title:"Title",type:"string",validation:e=>e.required()},{name:"description",title:"Description",type:"string",validation:e=>e.required()}]}]},{type:"array",name:"ctas",title:"Call to actions",components:{input:e2},validation:e=>e.min(1).max(2).required(),of:[{type:"link",options:{enableText:!0}}],group:"editorial"},tC],preview:{select:{title:"title",media:"image.image"},prepare:({title:e,media:t})=>{let i=(e||[]).find(e=>"block"===e._type);return{title:i?i.children.filter(e=>"span"===e._type).map(e=>
1e.text).join(""):"No title",subtitle:"Trade-in module",media:t}}}}),or=(0,r.U85)({name:"typeformSection",type:"object",title:"Typeform Section",icon:i8.XKj,groups:tj,fields:[{name:"content",type:"array",title:"Content",description:"",of:[{type:"block",styles:[{title:"Body",value:"normal"},{title:"Title",value:"h3",component:ie}],lists:[],marks:{decorators:[],annotations:[]}}],group:"editorial"},{name:"media",type:"backgroundMedia",validation:e=>e.required(),group:"visuals",title:"Background Media"},{name:"typeformId",type:"string",title:"Typeform ID",description:"The ID of the Typeform to embed (found in the Typeform URL)",validation:e=>e.required(),group:"editorial"},{name:"typeformButtons",type:"array",title:"Typeform Buttons",description:"List of buttons to display that open the Typeform",of:[{type:"string",title:"Button Label",validation:e=>e.max(20)}],validation:e=>e.required().min(1),group:"editorial"},(o={group:"advanced"},(0,r.MIB)({...o,name:"advancedConfiguration",type:"object",title:"Advanced Configuration",description:"Configure advanced settings for the module",fields:[{name:"anchor",type:"string",title:"Anchor",description:"Optional anchor link for the module",validation:e=>e.max(100).warning("Should be 100 characters or less")}]})),tC],preview:{select:{title:"title",media:"media.image.desktop.image",mediaType:"media.type"},prepare:({content:e,media:t,mediaType:i})=>({title:"Typeform Section",subtitle:es(e)??"",media:"image"===i?t:void 0})}}),ol=[tA,tx,tM,tq,tL,tU,tV,tD,tR,tO,tW,t$,tJ,t0,t1,t2,ia,is,ip,id,ic,iy,ih,ib,iv,iI,iC,iA,iP,ix,iM,iq,iL,iU,iV,iD,i_,iO,iN,iW,iG,iz,iQ,iH,iZ,iK,iJ,i0,i1,i5,i2,i3,i4,i6,i9,oe,t3,t9,oi,oa,on,(0,r.U85)({type:"object",name:"whatYouGetSection",title:"What you get?",icon:O.yB7,groups:tj,fields:[{type:"array",name:"whatYouGet",title:"What you get?",validation:e=>e.required().max(4),group:"editorial",components:{input:e2},of:[{type:"object",fields:[{type:"altImage",name:"icon",description:"Size advised 36pxx34px",title:"Icon"},{type:"string",name:"title",title:"Title",validation:e=>e.required()},{type:"array",name:"description",title:"Description",validation:e=>e.required(),of:[{type:"block",styles:[],lists:[],marks:{annotations:[et]}}]}],preview:{select:{title:"title",description:"description",icon:"icon"},prepare:e=>({title:e.title,subtitle:es(e.description)??"",media:e.icon?.image})}}]},{type:"simplerColor",name:"backgroundColor",initialValue:"#f8f8f8",title:"Background Color",group:"design",options:{colorList:[{label:"White",value:"#ffffff"},{label:"Light Grey",value:"#f8f8f8"}]}},{type:"boolean",name:"showEpiMonitorPattern",title:"Add EpiMonitor Pattern",description:"Show the epimonitor pattern in the right bottom of the component",initialValue:!1,group:"design",readOnly:!0,deprecated:{reason:"Use `pattern` field"}},{type:"string",name:"pattern",title:"Pattern",description:"Select the visual pattern to be visible in the module. Select None to hide it.",group:"design",options:{list:[{title:"None",value:"none"},{title:"EpiMonitor",value:"epimonitor"},{title:"WellPD",value:"wellpd"}]}},tC],preview:{prepare:()=>({title:"What you Get?"})}}),or,oo,ot,iX,ik,iT,i7,(0,r.U85)({type:"object",name:"workableModule",title:"Workable Module",icon:N.r72,groups:tj,fields:[{type:"string",name:"title",title:"Title",validation:e=>e.required(),group:"editorial"},{name:"description",type:"array",title:"Description",description:"A description for the section",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[]}}],group:"editorial"},{type:"string",name:"variant",title:"Variant",description:"Choose a variant that defines the color scheme for this component.",initialValue:"teal",options:{layout:"dropdown",list:[{title:"Teal",value:"teal"},{title:"Light Grey",value:"lightGrey"},{title:"White",value:"white"}]},group:"design"},{name:"footerText",type:"array",title:"Footer Text",description:"Text displayed at the bottom of the module",of:[{type:"block",styles:[],lists:[],marks:{decorators:[],annotations:[]}}],group:"editorial"},{type:"linkButton",name:"footerLink",title:"Footer Link",description:"A button link displayed in the footer of the module",group:"editorial"},tC],preview:{select:{title:"title"},prepare:({title:e})=>
1({title:e??"Workable Module",subtitle:"Workable Module"})}})],os=(0,r.U85)({type:"object",title:"ATF Cta",name:"atfCta",fields:[{type:"link",name:"destination",title:"Link",validation:e=>e.custom(e=>!e?.text||(0,T.Cm)(e)),options:{enableText:!0}}]}),op=(0,r.U85)({type:"object",name:"backLink",title:"Back link",icon:tP.cWs,description:"A link with a go back arrow",fields:[{name:"destination",title:"Destination",type:"link",description:"A link to redirect the user",options:{enableText:!0},validation:e=>e.custom(e=>(0,T.Cm)(e))}],preview:{select:{type:"destination.type",internalPageTitle:"destination.internalLink.title",externalUrl:"destination.url"},prepare:({type:e,internalPageTitle:t,externalUrl:i})=>({title:"internal"===e?t:i,subtitle:"Back link"})}}),od=(0,r.U85)({type:"object",name:"chip",title:"Chip",icon:t_.eF5,fields:[{type:"string",name:"label",title:"Label",validation:e=>e.required()}]}),oc=(0,r.U85)({type:"object",name:"chipGroup",title:"Chip Group",icon:t_.ecD,fields:[{type:"array",name:"chips",title:"Chips",of:[{type:"chip"}],validation:e=>e.required().min(1).max(3)}],preview:{prepare:()=>({title:"Chip Group",subtitle:"Group of chips"})}}),ou=(0,r.U85)({name:"cta",type:"object",title:"Call to Action",fields:[{type:"string",name:"label",title:"Label",description:"The text to show in the button",validation:e=>e.required()},{type:"link",name:"url",title:"Link",validation:e=>e.custom(e=>(0,T.Cm)(e))},{type:"string",name:"variant",title:"Variant",initialValue:"button",options:{layout:"dropdown",list:[{title:"Button",value:"button"},{title:"Text",value:"text"}]}}]}),om=(0,r.U85)({name:"footerColumn",type:"object",title:"Footer column",fields:[{name:"title",type:"string",title:"Title",description:"Section heading shown above the links",validation:e=>e.required()},{name:"links",type:"array",title:"Links",of:[{type:"link",options:{enableText:!0}}],validation:e=>e.required().min(1)}],preview:{select:{title:"title"}}}),og=(0,r.U85)({name:"footerMenu",type:"object",title:"Footer menu",fields:[{name:"columns",type:"array",title:"Columns",description:"The named link groups displayed in the footer grid",of:[{type:"footerColumn"}],validation:e=>e.required().min(1)},{name:"quickLinks",type:"array",title:"Quick links",description:"Chevron-style action links (e.g. Get support, Contact us, Manuals)",of:[{type:"link",options:{enableText:!0}}]}]}),oy=(0,r.U85)({title:"Image",name:"altImage",type:"object",description:"An image object that includes alternative text for accessibility and SEO.",fields:[{name:"image",type:"image",title:"Image",description:"The image file to display."},{name:"alt",type:"string",title:"Image alt",description:"Fallback text for the image, used for accessibility and SEO."}]}),oh=(0,r.MIB)({type:"object",name:"image",title:"Image",hidden:({parent:e})=>e?.type!=="image",validation:e=>e.custom((e,t)=>"image"!==t.parent.type||!!e||"Required"),fields:[{type:"altImage",name:"desktop",title:"Desktop",description:"Image to show on desktop screens",validation:e=>e.required()},{type:"altImage",name:"mobile",title:"Mobile",description:"Image to show on mobile screens",validation:e=>e.required()}]}),of=(0,r.MIB)({name:"lottie",type:"object",title:"Lottie",hidden:({parent:e})=>e?.type!=="lottie",validation:e=>e.custom((e,t)=>"lottie"!==t.parent.type||!!e||"Required"),fields:[{name:"data",type:"file",title:"Lottie file",description:"JSON file needed to render the lottie animation",validation:e=>e.required(),options:{accept:"application/json"}},{name:"alt",type:"string",title:"Alt",description:"Specifies an alternate text for the lottie, if the lottie cannot be displayed."}]}),ob=(0,r.MIB)({type:"string",name:"type",title:"Whiche type of media you want to use?",options:{layout:"dropdown",list:[{title:"Image",value:"image"},{title:"Video",value:"video"},{title:"Lottie",value:"lottie"}]}}),ov=(0,r.MIB)({type:"string",name:"type",title:"Whiche type of media you want to use?",options:{layout:"dropdown",list:[{title:"Image",value:"image"},{title:"Video",value:"video"},{title:"Lottie",value:"lottie"},{title:"Carousel",value:"carousel"}]}}),ow=(0,r.MIB)({name:"video",type:"object",title:"Video",hidden:({parent:e})=>e?.type!=="video",validation:e=>e.custom((e,t)=>
1"video"!==t.parent.type||!!e||"Required"),fields:[{type:"url",name:"url",title:"URL"},{type:"string",name:"alt",title:"Alternate Text",description:"Specifies an alternate text for the video, if the video cannot be displayed."},{type:"boolean",name:"loop",title:"Would you like the video to loop?",initialValue:!0},{type:"string",name:"displayMode",title:"Display mode",description:"Background = autoplay, muted, looped, no controls (hero/background videos). Player = standard player with controls. Only applies to external (e.g. Vimeo) videos.",options:{list:[{title:"Background (autoplay, no controls)",value:"background"},{title:"Player (with controls)",value:"player"}],layout:"radio"},initialValue:"player"},{type:"altImage",name:"previewImage",title:"Preview image (poster)",description:"Shown before the video plays and while it loads. For hero videos this paints instantly and becomes the LCP, so the page is not blank while the video buffers."}]}),ok=(0,r.U85)({title:"Basic Media",name:"backgroundMedia",type:"object",icon:iB.K_I,fields:[ob,oh,ow,of],preview:{select:{type:"type",image:"image.desktop.image"},prepare:({type:e,image:t})=>({title:"Media",subtitle:e,media:t})}}),oT=(0,r.U85)({name:"embeddedVideo",type:"object",title:"video",description:"Represents an embedded video with a URL and title.",fields:[{title:"Video URL",name:"videoUrl",type:"url",description:"The URL of the embedded video."},{title:"Title",name:"title",type:"string",description:"A descriptive title for the video."}],preview:{select:{url:"videoUrl",title:"title"}},components:{}}),oI=(0,r.U85)({title:"Linkable Image",name:"imageLink",type:"object",description:"An image with optional alt text and a link URL. Useful for image that should be clickable.",fields:[{name:"image",type:"image",title:"Image",description:"The image to display."},{name:"alt",type:"string",title:"Alternative Text",description:"Describes the image for accessibility and SEO purposes."},{name:"url",type:"url",title:"Link URL",description:"The destination URL to open when the image is clicked."}]}),oS=(0,r.U85)({title:"Lottie Animation",name:"lottie",type:"object",fields:[{name:"data",type:"file",title:"Lottie file",description:"JSON file needed to render the lottie animation",validation:e=>e.required()},{name:"alt",type:"string",title:"Alt",description:"Fallback text for the lottie"}],preview:{select:{title:"alt"},prepare:({title:e})=>({title:e})}}),oC=(0,r.MIB)({name:"mediaWithPreviewField",type:"object",fields:[ob,oh,ow,of,{type:"altImage",name:"previewImage",title:"Preview image",description:"A small image to show in the preview of a carousel",validation:e=>e.required()}]}),oA=(0,r.MIB)({name:"carousel",type:"object",title:"Carousel",hidden:({parent:e})=>e?.type!=="carousel",validation:e=>e.custom((e,t)=>"carousel"!==t.parent.type||!!e||"Required"),fields:[{name:"items",type:"array",title:"Medias",description:"Items to show in the carousel",validation:e=>e.min(1),of:[oC]}]}),oP=(0,r.U85)({title:"Media",name:"media",type:"object",icon:iB.K_I,fields:[ov,oh,ow,of,oA],preview:{select:{type:"type",image:"image.desktop.image"},prepare:({type:e,image:t})=>({title:"Background Media",subtitle:e,media:t})}}),ox=q.map(({id:e,title:t})=>({value:e,title:t})),oM=(0,r.MIB)({name:"title",type:"array",title:"Title",description:'The entry label. Select part of the text and apply "Subtle" or "Tag" to style it.',of:[(0,r.dOf)({type:"block",styles:[],lists:[],marks:{decorators:[{title:"Subtle",value:"subtle"},{title:"Tag",value:"tag"}],annotations:[]}})],validation:e=>e.required()}),oq=(0,r.U85)({name:"navbarLinkItem",type:"object",title:"Link item",icon:N.ET9,fields:[oM,{name:"subtitle",type:"string",title:"Subtitle",description:"Optional secondary line under the title"},{name:"icon",type:"altImage",title:"Icon",description:"Optional small icon shown before the title"},{name:"link",type:"link",title:"Link",description:"Where the item points to",validation:e=>e.custom(e=>(0,T.Cm)(e))},{name:"secondaryLink",type:"link",title:"Secondary link",description:'Optional extra link shown under the item (e.g. "Go to store")',options:{enableText:!0}}
1],preview:{select:{title:"title",subtitle:"subtitle"},prepare:({title:e,subtitle:t})=>({title:es(e)||"Link item",subtitle:t})}}),oB=(0,r.U85)({name:"navbarImageCard",type:"object",title:"Image card",icon:N.TbK,fields:[oM,{name:"subtitle",type:"string",title:"Subtitle",description:"Optional secondary line under the title"},{name:"image",type:"altImage",title:"Image",description:"Card image",validation:e=>e.required()},{name:"link",type:"link",title:"Link",description:"Where the card points to",validation:e=>e.custom(e=>(0,T.Cm)(e))}],preview:{select:{title:"title",subtitle:"subtitle",media:"image.image"},prepare:({title:e,subtitle:t,media:i})=>({title:es(e)||"Image card",subtitle:t,media:i})}}),oL=(0,r.U85)({name:"navbarProductCard",type:"object",title:"Product card",icon:N.TbK,description:"A product card (e.g. EpiMonitor, WellPD): image, title, subtitle and an optional colored note. On mobile the image sits to the left of the text.",fields:[oM,{name:"subtitle",type:"string",title:"Subtitle",description:"Short line under the title"},{name:"image",type:"altImage",title:"Image",description:"Product image",validation:e=>e.required()},{name:"link",type:"link",title:"Link",description:"Where the card points to",validation:e=>e.custom(e=>(0,T.Cm)(e))},{name:"notes",type:"string",title:"Notes",description:'Optional note under the card (e.g. "Available in the US, UK, EU…")'},{name:"notesColor",type:"simplerColor",title:"Notes color",description:"Color applied to the notes text",options:{colorList:[{label:"Empatica Red",value:"#bc204b"},{label:"Teal",value:"#00778B"},{label:"Custom",value:"custom"}]}}],preview:{select:{title:"title",subtitle:"subtitle",media:"image.image"},prepare:({title:e,subtitle:t,media:i})=>({title:es(e)||"Product card",subtitle:t,media:i})}}),oj=(0,r.U85)({name:"navbarSection",type:"object",title:"Section",icon:N.d$I,description:"A single column inside a navbar dropdown",fields:[{name:"title",type:"string",title:"Title",description:'Optional column heading (e.g. "COMPONENTS", "USE CASES", "EPILEPSY")'},{name:"items",type:"array",title:"Items",description:"Link rows, image cards, or product cards in this column",of:[(0,r.dOf)({type:"navbarLinkItem"}),(0,r.dOf)({type:"navbarImageCard"}),(0,r.dOf)({type:"navbarProductCard"})],validation:e=>e.required().min(1)}],preview:{select:{title:"title",items:"items"},prepare({title:e,items:t}){let i=Array.isArray(t)?t.length:0;return{title:e||"Section",subtitle:`${i} item${1===i?"":"s"}`}}}}),oU=(0,r.U85)({name:"navbarItem",type:"object",title:"Menu entry",icon:N.vIB,description:"A top-level navbar entry. Either a direct link (flat, e.g. EpiMonitor) or a dropdown with sections.",fields:[{name:"title",type:"string",title:"Title",description:'The top-level label (e.g. "Solutions")',validation:e=>e.required()},{name:"entryType",type:"string",title:"Entry type",description:'How this top-level entry behaves. "Dropdown" opens a panel with sections on hover; "Direct link" is a plain link with no dropdown (e.g. EpiMonitor entries).',options:{layout:"radio",list:[{title:"Dropdown menu — opens sections on hover",value:"dropdown"},{title:"Direct link — no dropdown",value:"flat"}]},initialValue:"dropdown",validation:e=>e.required()},{name:"link",type:"link",title:"Link",description:"Where this entry points to.",hidden:({parent:e})=>e?.entryType!=="flat",validation:e=>e.custom((e,t)=>{let i=t.parent;return i?.entryType!=="flat"||(0,T.Cm)(e)})},{name:"visibleInRegions",type:"array",title:"Visible in regions",description:"Show the entry only in the selected regions. Leave empty to show it everywhere. Honoured by the EpiMonitor and WellPD navbars; the Research navbar ignores it for now.",of:[(0,r.dOf)({type:"string"})],options:{list:ox}},{name:"sections",type:"array",title:"Sections",description:"The dropdown columns shown when this entry is hovered.",of:[(0,r.dOf)({type:"navbarSection"})],hidden:({parent:e})=>e?.entryType!=="dropdown",validation:e=>e.custom((e,t)=>{let i=t.parent;return i?.entryType!=="dropdown"||!!Array.isArray(e)&&e.length>0||'Add at least one section (or switch this entry to "Direct link").'})}],preview:{select:{title:"title",entryType:"entryType",sections:"sections",visibleInRegions:"visibleInRegions"},prepare({title:e,entryType:t,sections:i,visibleInRegions:o}){let a=o?.length?` \xb7 ${o.join(", ")}`:"";if("flat"===t)return{title:e||"Menu entry",subtitle:`Direct link${a}`};let n=Array.isArray(i)?i.length:0;return{title:e||"Menu entry",subtitle:`Dropdown \xb7 ${n} section${1===n?"":"s"}${a}`}}}}),oV=(0,r.U85)({name:"navbarMenu",type:"object",title:"Navbar menu",icon:N.vIB,fields:[{name:"items",type:"array",title:"Menu entries",description:"The top-level navbar entries",of:[(0,r.dOf)({type:"navbarItem"})]}]}),oE=(0,r.U85)({name:"popupDialog",type:"object",title:"Pop-up Dialog",icon:N.XsP,groups:tj,fields:[{type:"boolean",name:"enabled",title:"Enabled",description:"When on, the pop up dialog will be visible",group:"editorial",initialValue:!1},{type:"altImage",name:"icon",title:"Icon",description:"The icon to display at the top of the pop-up",group:"visuals"},{name:"title",type:"string",title:"Title",description:"The main header text of the pop-up",group:"editorial"},{name:"description",type:"array",title:"Description",description:"The body text of the pop-up",of:[{type:"block",styles:[{title:"Normal",value:"normal"}],lists:[],marks:{decorators:[],annotations:[]}}],group:"editorial"},{name:"buttons",type:"array",title:"Buttons",description:"Add up to two buttons for the pop-up",of:[{type:"linkButton"}
1],validation:e=>e.max(2),group:"editorial"},{name:"openDelaySeconds",type:"number",title:"Open Delay (seconds)",description:"How long to wait after the page loads before showing the pop-up. Defaults to 1.5 seconds.",initialValue:1.5,validation:e=>e.min(0),group:"editorial"}],preview:{select:{title:"title",media:"icon.image"},prepare:({title:e,media:t})=>({title:e||"Untitled Pop-up",subtitle:"Pop-up Dialog",media:t})}}),oD=(0,r.U85)({name:"previousRoutePath",type:"object",title:"Previous address",fields:[{name:"routePath",type:"string",title:"Address",description:"The address this page used to answer on, without the region — /platform/care, never /en-gb/platform/care.",validation:e=>e.custom((e,t)=>"string"==typeof e&&e?e.startsWith("/")?e.length>1&&e.endsWith("/")?"The address must not end with /":e!==t.document?.routePath||"This is the address the page answers on now, not a previous one":"The address must start with /":"An address is required")},{name:"redirect",type:"boolean",title:"Keep this address working",description:"On: the address permanently redirects to the address the page answers on now. Off: it reports not found.",initialValue:!1},{name:"recordedAt",type:"datetime",title:"Recorded",readOnly:!0,initialValue:()=>new Date().toISOString()}],preview:{select:{routePath:"routePath",redirect:"redirect",recordedAt:"recordedAt"},prepare:({routePath:e,redirect:t,recordedAt:i})=>({title:e??"(no address)",subtitle:[t?"Redirects to the current address":"Reports not found",i?`replaced on ${new Date(i).toLocaleDateString()}`:null].filter(Boolean).join(" — ")})}});var o_=i(46370);let oR=a.forwardRef((e,t)=>{let i=(0,r.FlV)(["language"]),o=q.find(e=>e.id===i),{value:a={amount:0,currency:o?.currency.value??"USD"},onChange:n,schemaType:l}=e,c=l.fields.find(e=>"currency"===e.name),u=c?.type?.options?.list??[],m=o?[...u.filter(e=>e.value===o.currency.value),...u.filter(e=>"PERCENT"===e.value)]:u;return(0,s.jsxs)("div",{style:{display:"flex",gap:"1rem",alignItems:"center"},children:[(0,s.jsx)("div",{style:{flex:8},children:(0,s.jsx)(tm.t,{type:"number",value:a?.amount||"",placeholder:"Amount",onChange:e=>{let t=parseFloat(e.target.value)??0;n(t?(0,r.hZp)({amount:t,currency:a.currency}):(0,r.wCX)())},ref:t})}),(0,s.jsx)("div",{style:{flex:2},children:(0,s.jsx)(o_.m_,{disabled:!o,placement:"bottom",animate:!0,portal:!0,content:o?(0,s.jsx)(p.y,{children:(0,s.jsxs)(d.n,{children:["For ",o.title," the currency is ",o.currency.title]})}):void 0,children:(0,s.jsx)("div",{children:(0,s.jsx)(y.l6,{value:a?.currency||"USD",onChange:e=>{let t=e.target.value;n(t?(0,r.hZp)({amount:a.amount,currency:t}):(0,r.wCX)())},style:{flex:0},children:m.map(e=>(0,s.jsx)("option",{value:e.value,children:e.title},e.value))})})})})]})});oR.displayName="PriceInput";let oO=(0,r.U85)({name:"price",title:"Price",type:"object",fields:[{name:"amount",title:"Amount",type:"number"},{name:"currency",title:"Currency",type:"string",options:{list:[{title:"$ USD",value:"USD"},{title:"€ EUR",value:"EUR"},{title:"\xa3 GBP",value:"GBP"},{title:"%",value:"PERCENT"}],layout:"dropdown"}}],components:{input:oR}}),oN=(0,r.U85)({type:"object",name:"redirectToPage",title:"Redirect to",fields:[{name:"redirect",type:"boolean",title:"Redirect to another page?",initialValue:!1},{name:"redirectTo",type:"link",title:"Redirect to",hidden:({parent:e})=>!e?.redirect,validation:e=>e.custom((e,t)=>{let i=t.parent;return!i?.redirect||!!e||(0,T.Cm)(e)})},{name:"permanent",type:"boolean",title:"Is a permanent redirect?",hidden:({parent:e})=>!e?.redirect}]});var oW=i(75227);let oG={homePage:{kind:"fixed",value:"/"},blogRootPage:{kind:"fixed",value:"/blog"},caseStudiesRootPage:{kind:"fixed",value:"/case-studies"},blogPostPage:{kind:"prefixed",prefix:"/blog/"},blogCategoryPage:{kind:"prefixed",prefix:"/blog/"},caseStudyPage:{kind:"prefixed",prefix:"/case-studies/"},storePage:{kind:"prefixed",prefix:"/store/"}},o$={kind:"free"},oF=e=>(P.some(t=>t===e)?oG[e]:void 0)??o$,oz=/^[A-Za-z0-9:._~-]+$/,oQ=`array::unique(*[
2  _type in $pageTypes &&
3  defined(routePath) &&
4  language == $language
5].routePath)`,oH=({routePath:e,language:t,isSingleton:i})=>{if(!e||!t)return null;let o=q.find(e=>e.id===t),a=`${tg.bS}${(0,u.Js)(e,t,i)}`;return(0,s.jsxs)(d.n,{muted:!0,size:1,children:[o?.logo??"\uD83C\uDF10"," ",(0,s.jsx)("a",{href:a,children:a})]})},oY=({value:e})=>(0,s.jsx)(p.s,{padding:3,radius:2,tone:"transparent",border:!0,children:(0,s.jsx)(d.n,{muted:!0,children:e})}),oX=`count(*[
6  _type in $pageTypes &&
7  routePath == $routePath &&
8  language == $language &&
9  !(_id in $excludedIds)
10])`,oK=async(e,{document:t,getClient:i})=>{let o=t?.language,a=t?._id;if("string"!=typeof o||"string"!=typeof a)return!1;let n=a.replace(/^drafts\./,""),r=i({apiVersion:"2024-06-01"});return await r.fetch(oX,{pageTypes:P,routePath:e,language:o,excludedIds:[n,`drafts.${n}`]})>0},oZ=async(e,t)=>{let i=oF(t.document?._type??"");return e?"fixed"===i.kind?e===i.value||`This page type always lives at ${i.value}`:e.startsWith("/")?e.length>1&&e.endsWith("/")?"The URL path must not end with /":e.slice(1).split("/").some(e=>!oz.test(e))?"Use only letters, numbers and dashes between slashes — no spaces, no empty segments":"prefixed"!==i.kind||e.startsWith(i.prefix)?"prefixed"===i.kind&&e===i.prefix.slice(0,-1)?`Add the last part of the address after ${i.prefix}`:!await oK(e,t)||"Another page in this language already uses this URL path":`The URL path of this page type must start with ${i.prefix}`:"The URL path must start with /":"A URL path is required"},oJ=(0,r.U85)({name:"routePath",type:"string",title:"URL path",description:"The address of this page, without the region. All translations of a page share the same value.",components:{input:e=>{let t=(0,r.FlV)(["_type"]),i=(0,r.FlV)(["language"]),o="string"==typeof i?i:void 0,n="string"==typeof t?t:"",l=oF(n),c=(0,u.NI)(n),m=(e=>{let t=(0,r.tH7)({apiVersion:"2024-06-01"}),[i,o]=(0,a.useState)([]);return(0,a.useEffect)(()=>{e&&(async()=>{o([...new Set((await t.fetch(oQ,{pageTypes:P,language:e})??[]).flatMap(e=>
10{let t=e.split("/").filter(Boolean);return t.slice(0,-1).map((e,i)=>`/${t.slice(0,i+1).join("/")}/`)}))].sort())})()},[t,e]),i})(o),{elementProps:g,onChange:y,readOnly:h,value:f}=e,b=e=>y(e?(0,r.hZp)(e):(0,r.wCX)());return"fixed"===l.kind?(0,s.jsxs)(d.t,{gap:3,children:[(0,s.jsx)(oY,{value:l.value}),(0,s.jsx)(oH,{routePath:l.value,language:o,isSingleton:c})]}):"prefixed"===l.kind?(0,s.jsxs)(d.t,{gap:3,children:[(0,s.jsx)(tm.t,{...g,value:f?.startsWith(l.prefix)?f.slice(l.prefix.length):"",onChange:e=>{let t=e.currentTarget.value.replace(/^\/+/,"");b(t?`${l.prefix}${t}`:"")},readOnly:h,placeholder:"last-part-of-the-address",prefix:(0,s.jsx)(p.y,{padding:3,children:(0,s.jsx)(d.n,{muted:!0,children:l.prefix})})}),(0,s.jsx)(oH,{routePath:f,language:o,isSingleton:c})]}):(0,s.jsxs)(d.t,{gap:3,children:[(0,s.jsx)(oW.j,{id:g.id,onBlur:g.onBlur,onFocus:g.onFocus,value:f??"",readOnly:h,openOnFocus:!0,placeholder:"/area/page-name",options:m.map(e=>({value:e})),onQueryChange:e=>null!==e&&b(e),onSelect:b,renderOption:e=>(0,s.jsx)(p.s,{as:"button",padding:3,radius:2,children:(0,s.jsx)(d.n,{size:1,children:e.value})})}),(0,s.jsx)(oH,{routePath:f,language:o,isSingleton:c})]})}},validation:e=>e.custom(oZ)}),o0=({children:e,computeFeedback:t,value:i})=>{let o=t(i),a=(e=>{switch(e){case"ok":return"green";case"warn":return"orange";case"negative":return"red";default:return"transparent"}})(o.status);return(0,s.jsxs)(d.t,{gap:3,children:[e,(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"7px"},children:[(0,s.jsx)("div",{style:{minWidth:"15px"},children:(0,s.jsx)("div",{style:{width:"10px",height:"10px",backgroundColor:a,borderRadius:"50%"}})}),(0,s.jsxs)(d.n,{weight:"bold",muted:!0,size:14,children:["Meta description length: ",o.text]})]})]})},o1=e=>e.trim().split(/\s+/).length,o5=(0,r.U85)({type:"object",name:"seo",description:"SEO information of the route",fields:[{name:"title",type:"string",title:"Title",description:"SEO Title tells both Google and searchers that your web page is relevant to this search query. Besides, searchers are much more likely to click on a web page if they see the exact keyword or keyword phrase they just typed in the title.",components:{input:e=>{let{value:t,renderDefault:i}=e;return(0,s.jsx)(o0,{value:t??"",computeFeedback:e=>{let t=o1(e);return 1===t?{text:"Please add some content.",status:"negative"}:t>=1&&t<=2?{text:`The text contains ${t} words. This is below the recommended minimum of 1 words. Add more content.`,status:"negative"}:t>=3&&t<=8?{text:`The text contains ${t} words. This is slightly below the recommended minimum of 8 words. Add more content.`,status:"warn"}:{text:`The text contains ${t} words. Good job!`,status:"ok"}},children:i(e)})}}},{name:"description",type:"text",title:"Description",description:"The SEO site description represents your homepage. Search engines show this description in search results for your homepage if they don't find content more relevant to a visitor's search terms.",rows:2,components:{input:e=>{let{value:t,renderDefault:i}=e;return(0,s.jsx)(o0,{value:t??"",computeFeedback:e=>{let t=o1(e);return 1===t?{text:"No meta description has been specified. Search engines will display copy from the page instead. Make sure to write one!",status:"negative"}:t<=20?{text:`The meta description is too short (under ${t} characters). Up to 160 characters are available. Use the space!`,status:"warn"}:{text:"Well done!",status:"ok"}},children:i(e)})}}},{name:"image",type:"image",description:"Image SEO is the process of optimizing the images on your website so they are easy for search engines to “read” and find"},{name:"schemaMarkup",type:"schemaMarkup",title:"Schema Markup",description:"Add structured data (JSON-LD) for enhanced search engine visibility"}]}),o2=(0,r.U85)({type:"object",name:"typeformLink",title:"Typeform Embed",description:"Embeds a typeform preview",fields:[{name:"title",type:"string",title:"Title",description:"Title of the typeform"},{name:"url",type:"url",title:"URL",initialValue:"https://form.typeform.com/to/",description:"Insert the public URL of the typeform (e.g. https://form.typeform.com/to/<form-id>)",validation:e=>e.required().custom(e=>el.safeParse(e).success?/^https:\/\/form\.typeform\.com\/to\/[a-zA-Z0-9]+$/.test(e)?Promise.resolve(!0):Promise.resolve({message:"This URL is not a valid typeform URL"}):Promise.resolve({message:"Invalid URL"}))}],preview:{select:{title:"title"},prepare:e=>({...e,subtitle:"Typeform Embed"})}}),o8=[(0,r.MIB)({type:"string",name:"title",title:"Title",description:"A small heading shown at the top of this step",validation:e=>e.required()}),(0,r.MIB)({type:"string",name:"subtitle",title:"Subtitle",description:"A secondary line of text that provides additional details or context for this step."}),(0,r.MIB)({type:"string",name:"placeholder",title:"Field hint",description:"Text displayed inside the selection box as a hint (e.g. 'Choose EmbracePlus')."}),(0,r.MIB)({type:"string",name:"helpTooltip",title:"Help tooltip",description:"Text that appears as a tooltip when users hover over the icon for additional guidance or information"}),(0,r.MIB)({type:"array",name:"supportText",title:"Support text",description:"Additional text that provides some guidance or clarifications to help users complete this step",of:[{type:"block",styles:[],lists:[],marks:{decorators:[{title:"Strong",value:"strong"}],annotations:[et,iq]}}]}),(0,r.MIB)({type:"array",name:"initialVisuals",title:"Opening visuals",description:"A set of images or media shown in the bundle's media section while the visitor is on this step.",of:[{type:"backgroundMedia"}]})],o3=(0,r.MIB)({type:"string",name:"confirmButtonLabel",title:"Confirm button label",description:"The label of the button that completes this step and moves the visitor on.",initialValue:"Add to order"}),o4=(0,r.U85)({type:"object",name:"accessoryStep",title:"Accessory step",description:"One group of accessories the visitor can add — the group name, how many they may add, and the types offered. Sale pricing lives here, per bundle: the catalog document carries none.",fields:[...o8,(0,r.MIB)({type:"string",name:"nameAbbr",title:"Group name",description:"A short name for what this step offers, e.g. Band or Charger; if not provided the first accessory’s name is used."}),(0,r.MIB)({type:"string",name:"selectionCopy",title:"Selection hint",description:"Text that guides the visitor to open a slot and add one, e.g. Select extra.",initialValue:"Select extra"}),(0,r.MIB)({type:"number",name:"maxAmount",title:"Maximum quantity",description:"How many of this group the visitor can add in total, across the types offered below.",initialValue:1,validation:e=>e.required().integer().min(1)}),(0,r.MIB)({type:"array",name:"accessories",title:"Accessories offered",description:"The types offered in this step — the visitor picks one per slot. The order of the list is the order shown on the page; a single type renders no selector.",validation:e=>e.required().min(1).error("Offer at least one accessory."),of:[{type:"object",name:"accessoryStepItem",title:"Accessory",fields:[(0,r.MIB)({type:"reference",name:"accessory",title:"Accessory",validation:e=>e.required(),to:[{type:"accessory"}]}),(0,r.MIB)({type:"boolean",name:"onSale",title:"On sale in this bundle",description:"Discount this accessory in this bundle only — other bundles offering the same accessory keep their own pricing.",initialValue:!1}),(0,r.MIB)({type:"price",name:"salePrice",title:"Sale price",description:"The discounted price (or percentage) applied in this bundle.",validation:e=>e.custom((e,t)=>
10{let i=t.parent;return!i?.onSale||!!e||"Required"}),hidden:e=>{let t=e.parent;return!t?.onSale}})],preview:{select:{accessoryName:"accessory.name",onSale:"onSale",media:"accessory.image.image"},prepare:({accessoryName:e,onSale:t,media:i})=>({title:e??"Accessory",subtitle:t?"On sale in this bundle":void 0,media:i})}}]}),o3,(0,r.MIB)({type:"string",name:"skipButtonLabel",title:"Skip button label",description:"The label of the same button while nothing has been added — it moves the visitor on without an accessory.",initialValue:"Skip"})],preview:{select:{title:"title",nameAbbr:"nameAbbr",maxAmount:"maxAmount",media:"accessories.0.accessory.image.image"},prepare:({title:e,nameAbbr:t,maxAmount:i,media:o})=>({title:e??"Accessory step",subtitle:[t,null!=i?`up to ${i}`:void 0].filter(Boolean).join(" \xb7 ")||void 0,media:o})}}),o6=(0,r.U85)({type:"object",icon:N.bhR,name:"productChoiceStep",title:"Product choice step",description:"The set of products the visitor picks from. Nothing in the catalog groups products together — this list is the grouping.",fields:[...o8,(0,r.MIB)({type:"array",name:"products",title:"Products",description:"The products offered in this step — the visitor chooses one. The order of the list is the order shown on the page.",of:[{type:"reference",to:[{type:"product"}]}],validation:e=>[e.required().min(1).error("Offer at least one product."),e.custom(async(e,{getClient:t})=>{let i=(e??[]).map(e=>
10e._ref).filter(Boolean);if(i.length<2)return!0;let o=t({apiVersion:"2025-01-01"}),a=[...new Set((await o.fetch("*[_id in $ids].price.currency",{ids:i})).filter(Boolean))];return!(a.length>1)||`The selected products mix currencies (${a.join(", ")}) — the page shows them side by side.`}).warning()]}),(0,r.MIB)({type:"boolean",name:"showOptionPrices",title:"Show the price of each product in the list",description:"Adds the price under each product name while the visitor is choosing. Turn it off when every product in this step costs the same. The price of the chosen product is always shown once the step is confirmed.",initialValue:!0}),(0,r.MIB)({type:"string",name:"packContainsLabel",title:"Pack contents label",description:"The heading above what an option ships with (e.g. 'Pack Contains').",initialValue:"Pack Contains"}),(0,r.MIB)({type:"string",name:"includedLabel",title:"Included label",description:"Marks each accessory that comes with the product at no extra cost.",initialValue:"Included"}),o3],preview:{select:{title:"title",subtitle:"subtitle",media:"initialVisuals.0.image.desktop.image"},prepare:({title:e,subtitle:t,media:i})=>({title:e??"Product choice step",subtitle:t,media:i})}}),o7={device:"Device",subscription:"Subscription",accessories:"Accessories"},o9=(0,r.U85)({type:"object",name:"promoDiscountStep",title:"Promo discount step",description:"A discount that comes off the total: an amount or a percentage, and exactly what it applies to.",fields:[...o8,(0,r.MIB)({type:"string",name:"name",title:"Promo name",description:"The promo this discount is for, e.g. Forecasting Study. Shown next to the visitor’s answer once the step is collapsed.",validation:e=>e.required()}),(0,r.MIB)({type:"string",name:"discountType",title:"Discount type",description:"Whether the discount is a flat amount off, or a share of what it applies to.",initialValue:"fixed",options:{layout:"radio",list:[{title:"Fixed amount",value:"fixed"},{title:"Percentage",value:"percentage"}]},validation:e=>e.required()}),(0,r.MIB)({type:"price",name:"amount",title:"Amount off",description:"The flat amount taken off the total.",hidden:e=>{let t=e.parent;return t?.discountType!=="fixed"},validation:e=>e.custom((e,t)=>{let i=t.parent;return i?.discountType!=="fixed"||!!e?.amount||"Required"})}),(0,r.MIB)({type:"number",name:"percentage",title:"Percentage off",description:"The share taken off whatever this discount applies to, e.g. 10 for 10% off.",hidden:e=>{let t=e.parent;return t?.discountType!=="percentage"},validation:e=>[e.min(1).max(100),e.custom((e,t)=>{let i=t.parent;return i?.discountType!=="percentage"||null!=e||"Required"})]}),(0,r.MIB)({type:"array",name:"appliesTo",title:"Applies to",description:"What this discount comes off. Anything left unticked is charged in full.",of:[{type:"string"}],options:{layout:"grid",list:[{title:o7.device,value:"device"},{title:o7.subscription,value:"subscription"},{title:o7.accessories,value:"accessories"}]},validation:e=>e.required().min(1).error("State what the discount applies to — pick at least one.")}),(0,r.MIB)({type:"string",name:"tagLabel",title:"Discount tag",description:"The word shown after the discount on the accept choice, e.g. OFF in “10% OFF”. Leave empty to show the value on its own.",initialValue:"OFF"}),(0,r.MIB)({type:"string",name:"acceptLabel",title:"Accept label",description:"The label of the choice that applies the discount, e.g. Yes.",initialValue:"Yes",validation:e=>e.required()}),(0,r.MIB)({type:"string",name:"declineLabel",title:"Decline label",description:"The label of the choice that continues at full price, e.g. No.",initialValue:"No",validation:e=>e.required()}),(0,r.MIB)({type:"string",name:"choiceOrder",title:"Choice order",description:"Which of the two choices is shown first.",initialValue:"declineFirst",options:{layout:"radio",list:[{title:"Accept first",value:"acceptFirst"},{title:"Decline first",value:"declineFirst"}]},validation:e=>e.required()})],preview:{select:{title:"title",name:"name",discountType:"discountType",amount:"amount.amount",currency:"amount.currency",percentage:"percentage",appliesTo:"appliesTo"},prepare:({title:e,name:t,discountType:i,amount:o,currency:a,percentage:n,appliesTo:r})=>({title:e??"Promo discount step",subtitle:[t,"percentage"===i?null!=n?`${n}
10% off`:void 0:null!=o?`${[o,a].filter(Boolean).join(" ")} off`:void 0,(r??[]).map(e=>o7[e]??e).join(", ")||void 0].filter(Boolean).join(" \xb7 ")||void 0})}}),ae=(0,r.U85)({type:"object",name:"quantityStep",title:"Quantity step",description:"Lets the visitor choose how many units of the selected product to buy. Needs a product choice step before it.",fields:[...o8,(0,r.MIB)({type:"number",name:"minQuantity",title:"Minimum quantity",description:"The minimum quantity allowed for the product",initialValue:1,validation:e=>e.required().integer().min(1)}),(0,r.MIB)({type:"number",name:"maxQuantity",title:"Maximum quantity",description:"The maximum quantity allowed for the product. Must be above the minimum — a range with one value offers no real choice.",initialValue:2,validation:e=>[e.required().integer(),e.custom((e,t)=>{let i=t.parent,o=i?.minQuantity??1;return"number"!=typeof e||!(e<=o)||"The range must offer a real choice — set the maximum above the minimum."})]}),(0,r.MIB)({type:"string",name:"optionLabel",title:"Option label",description:"The word shown before each quantity in the dropdown — 'Qty' renders as 'Qty 1', 'Qty 2'.",initialValue:"Qty"}),o3],preview:{select:{title:"title",minQuantity:"minQuantity",maxQuantity:"maxQuantity"},prepare:({title:e,minQuantity:t,maxQuantity:i})=>({title:e??"Quantity step",subtitle:null!=t&&null!=i?`From ${t} to ${i}`:void 0})}}),at=(0,r.U85)({type:"object",icon:_.NPy,name:"signupGateStep",title:"Signup gate step",description:"Asks the visitor to register before continuing, in exchange for an offer. It changes no price — the offer is applied after they enroll, elsewhere.",fields:[...o8,(0,r.MIB)({type:"string",name:"name",title:"Offer name",description:"The offer this gate is for, e.g. Forecasting Study. Shown next to the visitor’s answer once the step is collapsed.",validation:e=>e.required()}),(0,r.MIB)({type:"string",name:"incentiveTag",title:"Incentive tag",description:'A short badge on the accept choice, written out in full, e.g. "$200 OFF". Plain text — the gate never computes an amount.'}),(0,r.MIB)({type:"array",name:"incentiveText",title:"Enrolment message",description:'The line shown above the signup button once the visitor accepts, e.g. "To get your $200 off you’ll need to enroll first". Mark the part worth pulling the eye to — usually the amount — with Highlight.',of:[{type:"block",styles:[],lists:[],marks:{decorators:[{title:"Strong",value:"strong"},{title:"Highlight",value:"highlight",icon:()=>(0,s.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",stroke:"currentColor",strokeWidth:1.2,"aria-hidden":"true",focusable:"false",children:[(0,s.jsx)("path",{d:"M14.5 4.5l6 6-8.5 8.5H6l-1.5-4.5L14.5 4.5z",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M11.5 7.5l6 6"}),(0,s.jsx)("path",{d:"M4 21.5h17",strokeWidth:2,strokeLinecap:"round"})]}),component:({children:e})=>(0,s.jsx)("span",{style:{color:"#00778B",fontWeight:600},children:e})}],annotations:[]}}]}),(0,r.MIB)({type:"string",name:"acceptLabel",title:"Accept label",description:"The label of the choice that sends the visitor to signup, e.g. Yes.",initialValue:"Yes",validation:e=>e.required()}),(0,r.MIB)({type:"string",name:"declineLabel",title:"Decline label",description:"The label of the choice that continues without the offer, e.g. No.",initialValue:"No",validation:e=>e.required()}),(0,r.MIB)({type:"string",name:"choiceOrder",title:"Choice order",description:"Which of the two choices is shown first.",initialValue:"acceptFirst",options:{layout:"radio",list:[{title:"Accept first",value:"acceptFirst"},{title:"Decline first",value:"declineFirst"}]},validation:e=>e.required()}),(0,r.MIB)({type:"link",name:"signupUrl",title:"Signup destination",description:"Where the accept choice sends the visitor to register.",validation:e=>e.custom(e=>(0,T.Cm)(e))}),(0,r.MIB)({type:"string",name:"signupButtonLabel",title:"Signup button label",description:"The label of the button that sends the visitor to signup.",validation:e=>e.required()}),(0,r.MIB)({type:"array",name:"acceptWarning",title:"Warning after accepting",description:"Shown once the visitor accepts the gate, to flag that they must register before their order can continue.",of:[{type:"block",styles:[],lists:[],marks:{decorators:[{title:"Strong",value:"strong"}],annotations:[]}}]})],preview:{select:{title:"title",name:"name",incentiveTag:"incentiveTag"},prepare:({title:e,name:t,incentiveTag:i})=>
10({title:e??"Signup gate step",subtitle:[t,i].filter(Boolean).join(" \xb7 ")||void 0})}}),ai=e=>e?.subscriptionMode==="perProduct",ao=e=>{let t=e?.steps?.find(e=>"productChoiceStep"===e._type);if(t)return(t.products??[]).map(e=>e._ref).filter(Boolean)},aa=[tl,ts,td,tp,tc,tu,eE,X,eD,tf,eJ,e0,e1,e8,e3,e4,e6,e7,to,ta,tn,tr,eV,eL,ei,eu,ty,eR,tS,tk,tI,tT,oy,os,ok,op,od,ou,oT,oI,tX,oS,oP,oD,oO,oN,oJ,o5,o2,oc,og,om,oE,oq,oB,oL,oj,oU,oV,...ol,o6,(0,r.U85)({type:"object",name:"subscriptionStep",title:"Subscription step",description:"The subscription sold with this bundle: one shared by every product, or one per product offered on the page.",fields:[...o8,(0,r.MIB)({type:"string",name:"subscriptionMode",title:"Subscription mode",description:"Whether every product on this page is sold with the same subscription, or each product has its own.",initialValue:"shared",options:{layout:"radio",list:[{title:"One shared subscription",value:"shared"},{title:"One subscription per product",value:"perProduct"}]},validation:e=>e.required()}),(0,r.MIB)({type:"reference",name:"subscription",title:"Subscription",description:"Select the subscription for this bundle. Subscriptions carry no language or market — two that differ only by currency are told apart by their prices.",hidden:e=>ai(e.parent),validation:e=>e.custom((e,t)=>!!ai(t.parent)||!!e||"A subscription is required — without one the pay button can never activate."),to:[{type:"subscription"}]}),(0,r.MIB)({type:"array",name:"productSubscriptions",title:"Subscription per product",description:"One subscription for each product offered in the product choice step. Every offered product needs a pairing — the visitor’s chosen product decides which subscription applies.",hidden:e=>!ai(e.parent),of:[{type:"object",name:"productSubscription",title:"Product subscription",fields:[(0,r.MIB)({type:"reference",name:"product",title:"Product",description:"The product this subscription is sold with — the picker offers the products from the product choice step.",validation:e=>e.required(),to:[{type:"product"}],options:{filter:({document:e})=>{let t=ao(e);return t&&0!==t.length?{filter:"_id in $offeredIds",params:{offeredIds:t.flatMap(e=>[e,`drafts.${e}`])}}:{filter:"defined(_id)"}}}}),(0,r.MIB)({type:"reference",name:"subscription",title:"Subscription",description:"The subscription sold with that product. Missing pairings are reported on the list below.",to:[{type:"subscription"}]})],preview:{select:{productName:"product.name",subscriptionName:"subscription.name",media:"subscription.logo.image",...en("subscription.")},prepare:e=>{let{productName:t,subscriptionName:i,media:o,...a}=e,n=er(a);return{title:t??"Product",subtitle:i?[i,n].filter(Boolean).join(" — "):"No subscription assigned",media:o}}}}],validation:e=>e.custom(async(e,t)=>{if(!ai(t.parent))return!0;let i=ao(t.document);if(!i)return"Per-product subscriptions need a product choice step — add one, or switch to a shared subscription.";let o=e??[],a=o.map(e=>e.product?._ref).filter(e=>!!e),n=await t.getClient({apiVersion:"2025-01-01"}).fetch("*[_id in $ids]{_id, name}",{ids:[...new Set([...i,...a])]}),r=e=>n.find(t=>t._id===e)?.name??e,l=i.filter(e=>!o.some(t=>t.product?._ref===e&&t.subscription?._ref));if(l.length>0)return`No subscription assigned for ${l.map(r).join(", ")} — every product offered on the page needs one.`;let s=a.filter(e=>!i.includes(e));if(s.length>0)return`${s.map(r).join(", ")} is paired here but not offered in the product choice step — remove the pairing, or offer the product.`;let p=a.find((e,t)=>a.indexOf(e)!==t);return!p||`${r(p)} is paired more than once — remove the extra pairing.`})}),o3],preview:{select:{title:"title",subtitle:"subtitle",subscriptionMode:"subscriptionMode",subscriptionName:"subscription.name",firstProductName:"productSubscriptions.0.product.name",firstSubscriptionName:"productSubscriptions.0.subscription.name",media:"subscription.logo.image",perProductMedia:"productSubscriptions.0.subscription.logo.image",...en("subscription.")},prepare:e=>{let{title:t,subtitle:i,subscriptionMode:o,subscriptionName:a,firstProductName:n,firstSubscriptionName:r,media:l,perProductMedia:s,...p}=e;if("perProduct"===o)return{title:t??"Subscription step",subtitle:(n&&r?`${n} → ${r}, …`:void 0)??"One subscription per product",media:s};let d=er(p);
10return{title:t??"Subscription step",subtitle:a?[a,d].filter(Boolean).join(" — "):i,media:l}}}}),o4,ae,at,o9];var an=i(87358);let ar=(0,a.lazy)(()=>i.e(4158).then(i.bind(i,4158)).then(e=>({default:e.EmpaticaLogo}))),al=an.env.SANITY_STUDIO_PROJECT_ID||l.h.NEXT_PUBLIC_SANITY_PROJECT_ID,as=an.env.SANITY_STUDIO_DATASET||l.h.NEXT_PUBLIC_SANITY_DATASET,ap=(0,r.C8j)({icon:ar,projectId:al,dataset:as,plugins:Y,schema:{types:aa},tools:(e,t)=>t.currentUser?.roles.find(e=>"administrator"===e.name)?e:e.filter(e=>"vision"!==e.name),scheduledPublishing:{enabled:!0,inputDateTimeFormat:"MM/dd/yyyy h:mm a"},releases:{enabled:!1},document:{actions:(e,t)=>{if("rootPage"===t.schemaType&&!t.currentUser?.roles.find(e=>"administrator"===e.name))return[];let i=[...P,"publications"].includes(t.schemaType),o=M(t.schemaType),l=[...e];return l=l.map(e=>"publish"===e.action?t=>{let i=e(t),{patch:o,publish:n}=(0,r.QSs)(t.id,t.type),[l,u]=(0,a.useState)(!1),[g,y]=(0,a.useState)(!1),[h,v]=(0,a.useState)(!1),w=(({draft:e,published:t})=>{let i=b(t),o=b(e);return i&&o&&i!==o?{from:i,to:o}:null})(t);return{label:i?.label??"Publish",tone:"default",icon:i?.icon,disabled:i?.disabled,onHandle:()=>u(!0),dialog:l&&{type:"dialog",header:"Are you sure you want to publish this document?",content:(0,s.jsxs)(p.y,{children:[(0,s.jsx)(p.y,{children:(0,s.jsxs)(d.n,{size:2,children:[(0,s.jsx)("strong",{children:"Please review the preview carefully"})," before publishing to ensure all changes are correct.",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"Double-check for any other unpublished updates that should be included."]})}),w&&(0,s.jsx)(f,{from:w.from,to:w.to,keepOldAddress:h,onKeepOldAddressChange:v}),(0,s.jsxs)(p.y,{marginTop:4,style:{display:"flex",justifyContent:"flex-end",gap:8},children:[(0,s.jsx)(c.t,{text:"Cancel",mode:"bleed",onClick:()=>u(!1),disabled:g}),(0,s.jsx)(c.t,{text:"Yes, Publish",tone:"positive",onClick:()=>{let e;y(!0),w&&o.execute([{set:{previousRoutePaths:(({entries:e,previousRoutePath:t,currentRoutePath:i,redirect:o,recordedAt:a,key:n})=>[...e.filter(e=>e.routePath!==t&&e.routePath!==i),{_key:n,_type:"previousRoutePath",routePath:t,redirect:o,recordedAt:a}])({entries:Array.isArray(e=t.draft?.previousRoutePaths)?e.filter(m).map(e=>({...e,redirect:!0===e.redirect})):[],previousRoutePath:w.from,currentRoutePath:w.to,redirect:h,recordedAt:new Date().toISOString(),key:crypto.randomUUID()})}}]),n.execute(),u(!1),y(!1),t.onComplete&&t.onComplete()},loading:g,disabled:g})]})]}),onClose:()=>u(!1)}}}:e),i?l.includes(r.A4O)||(l=[...l,r.A4O]):l=l.filter(e=>e!==r.A4O),o&&(l=[...l,n.VD]),l}},basePath:"/studio",...{production:{title:"empatica.com",subtitle:"Live Environment"},staging:{title:"www-staging.empatica.com",subtitle:"Staging Environment"},development:{title:"development",subtitle:"Local Environment"},preview:{title:"netlify.app",subtitle:"Netlify Environment"},local:{title:"local",subtitle:"Local Environment"}}[l.h.NEXT_PUBLIC_ENVIRONMENT]})},42634:()=>{},50161:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});let o={locales:["en-us","en-gb","en-eu","en","en-anz","en-ca"],defaultLocale:"en-us"}},51739:(e,t,i)=>{"use strict";i.d(t,{$h:()=>p,HM:()=>a,Js:()=>l,NI:()=>r,w5:()=>s});var o=i(50161);let a=o.A.defaultLocale,n=["homePage","blogRootPage","caseStudiesRootPage"],r=e=>n.some(t=>t===e),l=(e,t=a,i=!1)=>{let o=t??a;return i?e:"/"===e?`/${o}`:`/${o}${e}`},s=(e,t)=>{let i=t===a?"":`/${t}`;return"/"===e?`${i}/`:`${i}${e}/`},p=e=>{let t=e.split("/").filter(Boolean),i=o.A.locales.includes(t[0]),n=i?t.slice(1):t,r=i?t[0]:a;return{market:r,isDefaultMarket:r===a,routePath:n.length?`/${n.join("/")}`:"/"}}},77004:(e,t,i)=>{"use strict";i.d(t,{h:()=>n});var o=i(14991),a=i(29048);let n=(0,o.w)({client:{NEXT_PUBLIC_ENVIRONMENT:a.k5(["development","production","preview","staging","local"]),NEXT_PUBLIC_SANITY_DATASET:a.k5(["development","production","staging","test"]),NEXT_PUBLIC_DD_APP_ID:a.Yj(),NEXT_PUBLIC_DD_TOKEN:a.Yj(),NEXT_PUBLIC_DD_SITE:a.Yj(),NEXT_PUBLIC_DD_SERVICE:a.Yj(),NEXT_PUBLIC_DD_VERSION:a.Yj(),NEXT_PUBLIC_EMPATICA_CHECKOUT_DOMAIN:a.Yj(),NEXT_PUBLIC_WEBSITE_URL:a.Yj().default("http://www.empatica.com"),NEXT_PUBLIC_SANITY_PROJECT_ID:a.Yj(),NEXT_PUBLIC_LOG_LEVEL:a.k5(["debug","info","warn","error"]).optional().default("debug"),NEXT_PUBLIC_SANITY_STUDIO_PREVIEW_SECRET:a.Yj(),NEXT_PUBLIC_GOOGLE_TAG_MANAGER_GTM_ID:a.Yj(),NEXT_PUBLIC_GOOGLE_TAG_MANAGER_GTM_AUTH:a.Yj(),NEXT_PUBLIC_GOOGLE_TAG_MANAGER_GTM_PREVIEW:a.Yj()},runtimeEnv:{NEXT_PUBLIC_ENVIRONMENT:"production",NEXT_PUBLIC_SANITY_DATASET:"production",NEXT_PUBLIC_DD_APP_ID:"c2e5bc37-8b90-469a-b289-1f2f497506cd",NEXT_PUBLIC_DD_TOKEN:"pubc8905e2bccf07a328aec4f03325161b5",NEXT_PUBLIC_DD_SITE:"datadoghq.com",NEXT_PUBLIC_DD_SERVICE:"empatica-web
10site",NEXT_PUBLIC_DD_VERSION:"1.99",NEXT_PUBLIC_EMPATICA_CHECKOUT_DOMAIN:"https://checkout.empatica.com",NEXT_PUBLIC_WEBSITE_URL:"https://www.empatica.com",NEXT_PUBLIC_SANITY_PROJECT_ID:"ggwhkgro",NEXT_PUBLIC_LOG_LEVEL:"info",NEXT_PUBLIC_SANITY_STUDIO_PREVIEW_SECRET:'Z!C%]R:I1PWe1eBI~7Yg"b4_$r.Os7Qt_9Z$93L"o+cAO>P^%K@RB%X&kj@o`zc',NEXT_PUBLIC_GOOGLE_TAG_MANAGER_GTM_ID:"GTM-PBTLHFCB",NEXT_PUBLIC_GOOGLE_TAG_MANAGER_GTM_AUTH:"os_55EFBzw-cKvvavwt0Kw",NEXT_PUBLIC_GOOGLE_TAG_MANAGER_GTM_PREVIEW:"env-1"},skipValidation:!1})}}]);

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.