{"version":3,"file":"shared-lib.BS3o55ca.mjs","names":["React.useContext","React.useMemo","React.useRef","React.useId","RichText","React.Fragment"],"sources":["https:/framerusercontent.com/modules/wc1FnQ1XIOBuMavBrJvX/RFywyjpRCunWdevgHADL/lRu2F1JnN.js","https:/framerusercontent.com/modules/jXHYrd2p6ZiM1bhnpGp8/q9G3ZTjq2gO4bW8WLrKA/siteMetadata.js"],"sourcesContent":["// Generated by Framer (b0f2619)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,Link,RichText,useActiveVariantCallback,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";const cycleOrder=[\"sghlz17uh\",\"elqBlyT5l\"];const serializationHash=\"framer-G5HDE\";const variantClassNames={elqBlyT5l:\"framer-v-a06u8p\",sghlz17uh:\"framer-v-frnz07\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants===null||variants===void 0?void 0:variants.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transitions={default:{duration:0,type:\"tween\"}};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value!==null&&value!==void 0?value:config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const humanReadableVariantMap={button:\"sghlz17uh\",selected:\"elqBlyT5l\"};const getProps=({fontSize,height,id,link,radius,tap,title,width,...props})=>{var _ref,_humanReadableVariantMap_props_variant,_ref1,_ref2,_ref3;return{...props,ELffFoh3S:tap!==null&&tap!==void 0?tap:props.ELffFoh3S,JYgz19sWI:(_ref=fontSize!==null&&fontSize!==void 0?fontSize:props.JYgz19sWI)!==null&&_ref!==void 0?_ref:11,variant:(_ref1=(_humanReadableVariantMap_props_variant=humanReadableVariantMap[props.variant])!==null&&_humanReadableVariantMap_props_variant!==void 0?_humanReadableVariantMap_props_variant:props.variant)!==null&&_ref1!==void 0?_ref1:\"sghlz17uh\",wrSCNKmod:(_ref2=radius!==null&&radius!==void 0?radius:props.wrSCNKmod)!==null&&_ref2!==void 0?_ref2:17,xCe54FMAU:(_ref3=title!==null&&title!==void 0?title:props.xCe54FMAU)!==null&&_ref3!==void 0?_ref3:\"Valider\",xZOoi8en1:link!==null&&link!==void 0?link:props.xZOoi8en1};};const createLayoutDependency=(props,variants)=>variants.join(\"-\")+props.layoutDependency;const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{activeLocale,setLocale}=useLocaleInfo();const{style,className,layoutId,variant,xCe54FMAU,wrSCNKmod,JYgz19sWI,ELffFoh3S,xZOoi8en1,...restProps}=getProps(props);const{baseVariant,classNames,gestureVariant,setGestureState,setVariant,transition,variants}=useVariantState({cycleOrder,defaultVariant:\"sghlz17uh\",transitions,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTap2vtcf8=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(ELffFoh3S){const res=await ELffFoh3S(...args);if(res===false)return false;}});const ref1=React.useRef(null);const defaultLayoutId=React.useId();const sharedStyleClassNames=[];return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId!==null&&layoutId!==void 0?layoutId:defaultLayoutId,children:/*#__PURE__*/_jsx(Transition,{value:transition,children:/*#__PURE__*/_jsx(Link,{href:xZOoi8en1,openInNewTab:false,smoothScroll:false,children:/*#__PURE__*/_jsx(motion.a,{...restProps,animate:variants,className:`${cx(serializationHash,...sharedStyleClassNames,\"framer-frnz07\",className,classNames)} framer-1pxy4l3`,\"data-border\":true,\"data-framer-name\":\"button\",\"data-highlight\":true,\"data-reset\":\"button\",initial:variant,layoutDependency:layoutDependency,layoutId:\"sghlz17uh\",onHoverEnd:()=>setGestureState({isHovered:false}),onHoverStart:()=>setGestureState({isHovered:true}),onTap:onTap2vtcf8,onTapCancel:()=>setGestureState({isPressed:false}),onTapStart:()=>setGestureState({isPressed:true}),ref:ref!==null&&ref!==void 0?ref:ref1,style:{\"--border-bottom-width\":\"0.5px\",\"--border-color\":'var(--token-85087e5b-4125-408f-b607-abb752cac9a8, rgb(246, 245, 245)) /* {\"name\":\"grey light\"} */',\"--border-left-width\":\"0.5px\",\"--border-right-width\":\"0.5px\",\"--border-style\":\"solid\",\"--border-top-width\":\"0.5px\",backgroundColor:\"rgb(255, 255, 255)\",borderBottomLeftRadius:wrSCNKmod,borderBottomRightRadius:wrSCNKmod,borderTopLeftRadius:wrSCNKmod,borderTopRightRadius:wrSCNKmod,...style},variants:{elqBlyT5l:{backgroundColor:\"rgba(255, 255, 255, 0.7)\"}},...addPropertyOverrides({elqBlyT5l:{\"data-framer-name\":\"selected\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7QmUgVmlldG5hbSBQcm8tNTAw\",\"--framer-font-family\":'\"Be Vietnam Pro\", \"Be Vietnam Pro Placeholder\", sans-serif',\"--framer-font-size\":\"calc(var(--variable-reference-JYgz19sWI-lRu2F1JnN) * 1px)\",\"--framer-font-weight\":\"500\"},children:\"Valider\"})}),className:\"framer-movvgi\",fonts:[\"GF;Be Vietnam Pro-500\"],layoutDependency:layoutDependency,layoutId:\"AobmrwJE7\",style:{\"--variable-reference-JYgz19sWI-lRu2F1JnN\":JYgz19sWI},text:xCe54FMAU,variants:{elqBlyT5l:{\"--extracted-r6o4lv\":\"var(--token-4c7b7df0-c4ce-410b-9f74-2f937a3e11b4, rgb(37, 37, 37))\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({elqBlyT5l:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7QmUgVmlldG5hbSBQcm8tNTAw\",\"--framer-font-family\":'\"Be Vietnam Pro\", \"Be Vietnam Pro Placeholder\", sans-serif',\"--framer-font-size\":\"calc(var(--variable-reference-JYgz19sWI-lRu2F1JnN) * 1px)\",\"--framer-font-weight\":\"500\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-4c7b7df0-c4ce-410b-9f74-2f937a3e11b4, rgb(37, 37, 37)))\"},children:\"Valider\"})})}},baseVariant,gestureVariant)})})})})});});const css=['.framer-G5HDE[data-border=\"true\"]::after, .framer-G5HDE [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; pointer-events: none; }',\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-G5HDE.framer-1pxy4l3, .framer-G5HDE .framer-1pxy4l3 { display: block; }\",\".framer-G5HDE.framer-frnz07 { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 8px; height: min-content; justify-content: center; padding: 10px 20px 10px 20px; position: relative; text-decoration: none; width: min-content; }\",\".framer-G5HDE .framer-movvgi { flex: none; height: auto; overflow: visible; position: relative; white-space: pre; width: auto; }\",\"@supports (background: -webkit-named-image(i)) and (not (font-palette:dark)) { .framer-G5HDE.framer-frnz07 { gap: 0px; } .framer-G5HDE.framer-frnz07 > * { margin: 0px; margin-left: calc(8px / 2); margin-right: calc(8px / 2); } .framer-G5HDE.framer-frnz07 > :first-child { margin-left: 0px; } .framer-G5HDE.framer-frnz07 > :last-child { margin-right: 0px; } }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 33\n * @framerIntrinsicWidth 79\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"elqBlyT5l\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"xCe54FMAU\":\"title\",\"wrSCNKmod\":\"radius\",\"JYgz19sWI\":\"fontSize\",\"ELffFoh3S\":\"tap\",\"xZOoi8en1\":\"link\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n */const FramerlRu2F1JnN=withCSS(Component,css,\"framer-G5HDE\");export default FramerlRu2F1JnN;FramerlRu2F1JnN.displayName=\"Button\";FramerlRu2F1JnN.defaultProps={height:33,width:79};addPropertyControls(FramerlRu2F1JnN,{variant:{options:[\"sghlz17uh\",\"elqBlyT5l\"],optionTitles:[\"button\",\"selected\"],title:\"Variant\",type:ControlType.Enum},xCe54FMAU:{defaultValue:\"Valider\",displayTextArea:false,title:\"Title\",type:ControlType.String},wrSCNKmod:{defaultValue:17,title:\"Radius\",type:ControlType.Number},JYgz19sWI:{defaultValue:11,title:\"Font Size\",type:ControlType.Number},ELffFoh3S:{title:\"Tap\",type:ControlType.EventHandler},xZOoi8en1:{title:\"Link\",type:ControlType.Link}});addFonts(FramerlRu2F1JnN,[{family:\"Be Vietnam Pro\",style:\"normal\",url:\"https://fonts.gstatic.com/s/bevietnampro/v11/QdVMSTAyLFyeg_IDWvOJmVES_HTEJl83T7wrcwap.woff2\",weight:\"500\"}]);\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerlRu2F1JnN\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"79\",\"framerVariables\":\"{\\\"xCe54FMAU\\\":\\\"title\\\",\\\"wrSCNKmod\\\":\\\"radius\\\",\\\"JYgz19sWI\\\":\\\"fontSize\\\",\\\"ELffFoh3S\\\":\\\"tap\\\",\\\"xZOoi8en1\\\":\\\"link\\\"}\",\"framerIntrinsicHeight\":\"33\",\"framerContractVersion\":\"1\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"elqBlyT5l\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerDisplayContentsDiv\":\"false\",\"framerImmutableVariables\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./lRu2F1JnN.map","// Generated by Framer (9c09cc5)\nexport default function metadata(params,activeLocale){return{description:\"Application de vote pour la Communaut\\xe9 de communes du Grand Pic Saint Loup\",robots:\"max-image-preview:large\",title:\"CCGPSL - Voting system\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"sXAC0b,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAA+H,OAA9H,GAAmD,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,yCAAhmB,IAA6I,IAAkE,IAA4B,CAAM,EAAW,CAAC,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,kBAAkB,CAAuO,EAAY,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,QAAQ,CAAC,CAAO,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOA,EAAiB,EAAoB,CAAO,EAAW,GAAmC,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,aAAW,EAAE,CAAC,KAAK,UAAU,EAAW,CAAC,CAAC,CAAC,OAAoB,EAAK,EAAoB,SAAS,CAAC,MAAM,EAAsB,WAAS,CAAC,EAAS,EAAwB,CAAC,OAAO,YAAY,SAAS,YAAY,CAAO,GAAU,CAAC,WAAS,SAAO,KAAG,OAAK,SAAO,MAAI,QAAM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