{"version":3,"file":"LegalText.Dim76KZP.mjs","names":["useMemo","__esmMin","pe","init_npm_react_18_3_1","p","c","init_jsx_runtime","init_framer_Bf4_tcb2","ControlType","addPropertyControls","inline","text","i","LegalText","props","blocks","out","list","flush","l","content","line","raw","CSS","updated","init_LegalText"],"sources":["https:/framerusercontent.com/modules/4tpyssMQKfeY8jWQXxkg/iKCtVBdU0CEa65IH4akk/LegalText.js"],"sourcesContent":["// Demande : bloc de texte légal (mentions, confidentialité, CGV, cookies) modifiable\n// dans le panneau de droite. Syntaxe simple : « ## Titre » = sous-titre,\n// « - texte » = puce, ligne vide = nouveau paragraphe, [à compléter …] = surligné jaune.\n// Charte : pas de Bangers ici (pages légales) -> titres en Inter 700, échelle 18/16/14.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const CSS=`\n.lpplegal{container-type:inline-size;container-name:lpplegal;width:100%;background:#fff;font-family:\"Inter\",system-ui,-apple-system,\"Segoe UI\",sans-serif;color:#4B5563;font-size:16px;line-height:1.6;letter-spacing:-.02em;-webkit-font-smoothing:antialiased}\n.lpplegal *{box-sizing:border-box}\n.lpplegal-wrap{width:100%;max-width:1200px;margin:0 auto;padding:64px 32px 88px}\n.lpplegal-prose{max-width:72ch}\n.lpplegal-updated{font-size:14px;line-height:1.5;color:#6B7280;margin:0 0 28px}\n.lpplegal h2{margin:2em 0 .6em;font-family:inherit;font-weight:700;font-size:18px;line-height:1.4;color:#111827}\n.lpplegal h2:first-of-type{margin-top:0}\n.lpplegal p{margin:0 0 1em}\n.lpplegal ul{margin:0 0 1em;padding-left:1.25em}\n.lpplegal li + li{margin-top:.35em}\n.lpplegal strong{color:#111827;font-weight:600}\n.lpplegal mark{background:#FEF3C7;color:#92400E;padding:1px 6px;border-radius:4px;font-weight:500}\n@container lpplegal (max-width: 599px){.lpplegal-wrap{padding:44px 20px 64px}}\n`;// Mise en forme d'une ligne : **gras** et [à compléter] surligné\nfunction inline(text){const parts=text.split(/(\\*\\*[^*]+\\*\\*|\\[[^\\]]+\\])/g);return parts.map((p,i)=>{if(p.startsWith(\"**\")&&p.endsWith(\"**\"))return /*#__PURE__*/_jsx(\"strong\",{children:p.slice(2,-2)},i);if(p.startsWith(\"[\")&&p.endsWith(\"]\"))return /*#__PURE__*/_jsx(\"mark\",{children:p.slice(1,-1)},i);return p;});}/**\n * Texte légal\n *\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 800\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n */export default function LegalText(props){const{updated=\"Derni\\xe8re mise \\xe0 jour : 31 octobre 2026\",content=\"\"}=props;// Découpe le texte en blocs : titres, listes, paragraphes\nconst blocks=useMemo(()=>{const out=[];let list=[];const flush=()=>{if(list.length){out.push(/*#__PURE__*/_jsx(\"ul\",{children:list.map((l,i)=>/*#__PURE__*/_jsx(\"li\",{children:inline(l)},i))},\"ul\"+out.length));list=[];}};content.split(/\\r?\\n/).forEach(raw=>{const line=raw.trim();if(!line)return flush();if(line.startsWith(\"## \")){flush();out.push(/*#__PURE__*/_jsx(\"h2\",{children:line.slice(3)},\"h\"+out.length));return;}if(line.startsWith(\"- \")){list.push(line.slice(2));return;}flush();out.push(/*#__PURE__*/_jsx(\"p\",{children:inline(line)},\"p\"+out.length));});flush();return out;},[content]);return /*#__PURE__*/_jsxs(\"section\",{className:\"lpplegal\",style:{...props.style,position:\"relative\"},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsx(\"div\",{className:\"lpplegal-wrap\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"lpplegal-prose\",children:[updated?/*#__PURE__*/_jsx(\"p\",{className:\"lpplegal-updated\",children:updated}):null,blocks]})})]});}LegalText.displayName=\"Texte l\\xe9gal\";addPropertyControls(LegalText,{updated:{type:ControlType.String,title:\"Mise \\xe0 jour\",defaultValue:\"Derni\\xe8re mise \\xe0 jour : 31 octobre 2026\"},content:{type:ControlType.String,title:\"Texte\",displayTextArea:true,defaultValue:\"## Titre\\nTexte du paragraphe.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LegalText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicHeight\":\"800\",\"framerIntrinsicWidth\":\"1200\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LegalText.map"],"mappings":"A,iLAmBA,SAASU,EAAO,EAAK,CAAuD,OAA1CC,EAAK,MAAM,6BAA0C,CAAC,CAAC,KAAK,EAAE,IAAQP,EAAE,WAAW,IAAI,GAAGA,EAAE,SAAS,IAAI,EAAsB,gBAAK,SAAS,CAAC,SAASA,EAAE,MAAM,EAAE,EAAE,CAAC,EAAEQ,CAAC,EAAKR,EAAE,WAAW,GAAG,GAAGA,EAAE,SAAS,GAAG,EAAsB,gBAAK,OAAO,CAAC,SAASA,EAAE,MAAM,EAAE,EAAE,CAAC,EAAEQ,CAAC,EAASR,CAAG,CAAE,CAQtT,SAAwBS,EAAU,EAAM,CAAC,GAAK,CAAC,UAAQ,yCAA+C,UAAQ,IAAIC,EAC/GC,EAAOf,MAAY,CAAC,IAAMgB,EAAI,CAAC,EAAMC,EAAK,CAAC,EAAQC,MAAU,CAAID,EAAK,SAAQD,EAAI,KAAkB,gBAAK,KAAK,CAAC,SAASC,EAAK,KAAK,EAAE,IAAiB,gBAAK,KAAK,CAAC,SAASP,EAAOS,CAAC,CAAC,EAAEP,CAAC,CAAC,CAAC,EAAE,KAAKI,EAAI,MAAM,CAAC,EAAE,EAAK,CAAC,EAAG,EAAgW,OAA9VI,EAAQ,MAAM,OAAO,CAAC,CAAC,QAAQ,GAAK,CAAC,IAAMC,EAAKC,EAAI,KAAK,EAAE,GAAG,CAACD,EAAK,OAAOH,EAAM,EAAKG,EAAK,WA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