{"version":3,"file":"ServicePalette.C15x2CGF.mjs","names":["__esmMin","c","init_jsx_runtime","addPropertyControls","init_framer_BWFVvmND","ControlType","ServicePalette","values","PALETTES","palette","css","TOKENS","t","i","init_ServicePalette"],"sources":["https:/framerusercontent.com/modules/RU4IixnaVfjbLSND9M3F/kWmQJMJLXbcjzbBs8ezp/ServicePalette.js"],"sourcesContent":["// ServicePalette: sets the six \"Service/Accent …\" colour styles for one service page.\n// Place one instance on the service template and connect \"Palette\" to the CMS field\n// Services → Palette. Every accent on the template uses these colour styles, so picking\n// a palette in the CMS recolours the whole page. To change what a palette looks like,\n// edit its row in PALETTES below (values come from the site's Palette / Primitives styles).\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// Service/Accent Text, Signature, On Dark, Tint, Deep, Surface (Framer colour style ids)\nconst TOKENS=[\"--token-3400622d-d96a-489f-862c-51000f3cd58c\",\"--token-b89d0a3c-7012-4aca-ac6d-7dcedf0b46c0\",\"--token-6bb9ced8-9053-4cf1-84db-6c138ed08857\",\"--token-0382deed-7674-4f83-995f-579d387cc70d\",\"--token-d89da29f-cb91-4df1-8590-3ffddfc06c11\",\"--token-2e3a61e4-1bc4-46c9-af8b-da95b7d72eab\"];//            Text                Signature            On Dark              Tint                 Deep               Surface\nconst PALETTES={Blue:[\"rgb(0, 26, 255)\",\"rgb(0, 26, 255)\",\"rgb(93, 143, 255)\",\"rgb(221, 232, 255)\",\"rgb(4, 0, 56)\",\"rgb(240, 245, 255)\"],Yellow:[\"rgb(137, 95, 15)\",\"rgb(254, 211, 64)\",\"rgb(254, 211, 64)\",\"rgb(255, 242, 198)\",\"rgb(105, 63, 2)\",\"rgb(255, 249, 228)\"],Green:[\"rgb(22, 128, 73)\",\"rgb(34, 195, 111)\",\"rgb(34, 195, 111)\",\"rgb(224, 247, 235)\",\"rgb(1, 47, 2)\",\"rgb(242, 251, 246)\"],Red:[\"rgb(168, 28, 39)\",\"rgb(255, 43, 60)\",\"rgb(255, 94, 107)\",\"rgb(255, 225, 228)\",\"rgb(100, 0, 0)\",\"rgb(255, 242, 243)\"],Purple:[\"rgb(115, 65, 173)\",\"rgb(198, 143, 255)\",\"rgb(198, 143, 255)\",\"rgb(247, 239, 255)\",\"rgb(46, 0, 104)\",\"rgb(247, 239, 255)\"],Orange:[\"rgb(161, 80, 47)\",\"rgb(244, 122, 72)\",\"rgb(244, 122, 72)\",\"rgb(253, 236, 229)\",\"rgb(132, 44, 9)\",\"rgb(253, 236, 229)\"],Grey:[\"rgb(56, 66, 80)\",\"rgb(108, 115, 127)\",\"rgb(210, 214, 219)\",\"rgb(229, 231, 235)\",\"rgb(17, 25, 39)\",\"rgb(243, 244, 246)\"]};/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n */export default function ServicePalette({palette}){const values=PALETTES[palette]??PALETTES.Blue;// Framer defines colour styles on <body>; !important lets this page's palette win.\nconst css=`body{${TOKENS.map((t,i)=>`${t}:${values[i]} !important;`).join(\"\")}}`;return /*#__PURE__*/_jsx(\"style\",{children:css});}ServicePalette.defaultProps={palette:\"Blue\"};addPropertyControls(ServicePalette,{// Connected to the CMS in the editor: select the instance on the service template, then\n// Palette → Set variable → Palette → Convert, and match each CMS option to the same name.\n// A CMS option field can't bind to this control directly; the Convert step is required.\npalette:{type:ControlType.Enum,title:\"Palette\",options:Object.keys(PALETTES),defaultValue:\"Blue\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ServicePalette\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"1\",\"framerIntrinsicWidth\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ServicePalette.map"],"mappings":"A,4JAYG,SAAwBM,EAAe,CAAC,WAAS,CAAC,IAAMC,EAAOC,EAASC,IAAUD,EAAS,KACxFE,EAAI,QAAQC,EAAO,KAAK,EAAE,IAAI,GAAGC,EAAE,GAAGL,EAAOM,GAAG,aAAa,CAAC,CAAC,KAAK,EAAE,EAAE,GAAG,MAAoB,gBAAK,QAAQ,CAAC,SAASH,CAAG,CAAC,CAAE,C,8CAP5H,EAAO,CAAC,+CAA+C,+CAA+C,+CAA+C,+CAA+C,+CAA+C,8CAA8C,EACjS,EAAS,CAAC,KAAK,CAAC,kBAAkB,kBAAkB,oBAAoB,qBAAqB,gBAAgB,oBAAoB,EAAE,OAAO,CAAC,mBAAmB,oBAAoB,oBAAoB,qBAAqB,kBAAkB,oBAAoB,EAAE,MAAM,CAAC,mBAAmB,oBAAoB,oBAAoB,qBAAqB,gBAAgB,oBAAoB,EAAE,IAAI,CAAC,mBAAmB,mBAAmB,oBAAoB,qBAAqB,iBAAiB,oBAAoB,EAAE,OAAO,CAAC,oBAAoB,qBAAqB,qBAAqB,qBAAqB,kBAAkB,oBAAoB,EAAE,OAAO,CAAC,mBAAmB,oBAAoB,oBAAoB,qBAAqB,kBAAkB,oBAAoB,EAAE,KAAK,CAAC,kBAAkB,qBAAqB,qBAAqB,qBAAqB,kBAAkB,oBAAoB,CAAC,EAM/vB,EAAe,aAAa,CAAC,QAAQ,MAAM,EAAEP,EAAoBG,EAAe,CAGnN,QAAQ,CAAC,KAAKD,EAAY,KAAK,MAAM,UAAU,QAAQ,OAAO,KAAKG,CAAQ,EAAE,aAAa,MAAM,CAAC,CAAC,C"}