{"version":3,"file":"SectionFrame.DOa_pLGQ.mjs","names":["__esmMin","init_jsx_runtime","c","addPropertyControls","init_framer_DymZktPS","ControlType","svgDash","d","cell","svg","vertical","color","buildPattern","hLine","w","vLine","diag","angle","t","size","images","sizes","majorEvery","pattern","m","majorColor","hatchDir","buildFade","s","strength","fade","Pattern","props","thickness","lineColor","mask","fadeStrength","style","init_SectionFrame"],"sources":["https:/framerusercontent.com/modules/vsL7KNByEwHtD7RSO7rN/2pbjVJzVSykg4AupBwuk/SectionFrame.js"],"sourcesContent":["// Infinite background pattern that fills ANY frame size — pure CSS, no runtime JS.\n// Patterns: dots, grid, horizontal/vertical lines (solid & dashed), hatch, cross-hatch, hatched grid.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";function svgDash(cell,t,color,vertical){const d=Math.max(2,Math.round(cell/3));const line=vertical?`<line x1='0.5' y1='0' x2='0.5' y2='${cell}' stroke='${color}' stroke-width='${t}' stroke-dasharray='${d} ${d}'/>`:`<line x1='0' y1='0.5' x2='${cell}' y2='0.5' stroke='${color}' stroke-width='${t}' stroke-dasharray='${d} ${d}'/>`;const svg=`<svg xmlns='http://www.w3.org/2000/svg' width='${cell}' height='${cell}'>${line}</svg>`;return`url(\"data:image/svg+xml,${encodeURIComponent(svg)}\")`;}function buildPattern(pattern,cell,t,color,hatchDir,majorEvery,majorColor){const hLine=(c,w)=>`linear-gradient(${c} ${w}px, transparent ${w}px)`;const vLine=(c,w)=>`linear-gradient(90deg, ${c} ${w}px, transparent ${w}px)`;const diag=angle=>`repeating-linear-gradient(${angle}deg, ${color} 0, ${color} ${t}px, transparent ${t}px, transparent ${cell}px)`;const size=`${cell}px ${cell}px`;const images=[];const sizes=[];const supportsMajor=majorEvery>1&&(pattern===\"grid\"||pattern===\"hatchedGrid\");if(supportsMajor){const m=`${cell*majorEvery}px ${cell*majorEvery}px`;images.push(vLine(majorColor,t+.5),hLine(majorColor,t+.5));sizes.push(m,m);}switch(pattern){case\"dots\":images.push(`radial-gradient(${color} ${t}px, transparent ${t}px)`);sizes.push(size);break;case\"hLines\":images.push(hLine(color,t));sizes.push(`100% ${cell}px`);break;case\"vLines\":images.push(vLine(color,t));sizes.push(`${cell}px 100%`);break;case\"hDashed\":images.push(svgDash(cell,t,color,false));sizes.push(size);break;case\"vDashed\":images.push(svgDash(cell,t,color,true));sizes.push(size);break;case\"hatch\":images.push(diag(hatchDir===\"up\"?-45:45));sizes.push(\"auto\");break;case\"cross\":images.push(diag(45),diag(-45));sizes.push(\"auto\",\"auto\");break;case\"hatchedGrid\":images.push(vLine(color,t),hLine(color,t),diag(hatchDir===\"up\"?-45:45));sizes.push(size,size,\"auto\");break;case\"grid\":default:images.push(vLine(color,t),hLine(color,t));sizes.push(size,size);break;}return{backgroundImage:images.join(\", \"),backgroundSize:sizes.join(\", \")};}function buildFade(fade,strength){const s=Math.max(0,Math.min(100,strength));switch(fade){case\"top\":return`linear-gradient(to bottom, transparent 0%, black ${s}%)`;case\"bottom\":return`linear-gradient(to top, transparent 0%, black ${s}%)`;case\"vertical\":return`linear-gradient(to bottom, transparent 0%, black ${s}%, black ${100-s}%, transparent 100%)`;case\"radial\":return`radial-gradient(circle at center, black ${100-s}%, transparent 100%)`;default:return undefined;}}/**\n * Pattern\n *\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 400\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function Pattern(props){const{pattern=\"grid\",cell=20,thickness=1,lineColor=\"#E4E7EC\",background=\"rgba(0,0,0,0)\",hatchDir=\"down\",majorEvery=0,majorColor=\"#CDD2DC\",fade=\"none\",fadeStrength=50,style}=props;const{backgroundImage,backgroundSize}=buildPattern(pattern,cell,thickness,lineColor,hatchDir,majorEvery,majorColor);const mask=buildFade(fade,fadeStrength);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",background,backgroundImage,backgroundSize,backgroundPosition:\"0 0\",maskImage:mask,WebkitMaskImage:mask,...style}});}addPropertyControls(Pattern,{pattern:{type:ControlType.Enum,title:\"Pattern\",options:[\"dots\",\"grid\",\"hLines\",\"vLines\",\"hDashed\",\"vDashed\",\"hatch\",\"cross\",\"hatchedGrid\"],optionTitles:[\"Points\",\"Carreaux\",\"Lignes H\",\"Lignes V\",\"Lignes H pointill\\xe9es\",\"Lignes V pointill\\xe9es\",\"Hachures\",\"Hachures crois\\xe9es\",\"Carreaux hach\\xe9s\"],defaultValue:\"grid\"},cell:{type:ControlType.Number,title:\"Taille\",defaultValue:20,min:4,max:200,unit:\"px\"},thickness:{type:ControlType.Number,title:\"\\xc9paisseur\",defaultValue:1,min:.5,max:6,step:.5,unit:\"px\"},hatchDir:{type:ControlType.Enum,title:\"Sens hachures\",options:[\"down\",\"up\"],optionTitles:[\"Vers le bas ↘\",\"Vers le haut ↗\"],defaultValue:\"down\",hidden:props=>props.pattern!==\"hatch\"&&props.pattern!==\"hatchedGrid\"},lineColor:{type:ControlType.Color,title:\"Couleur\",defaultValue:\"#E4E7EC\"},background:{type:ControlType.Color,title:\"Fond\",defaultValue:\"rgba(0,0,0,0)\"},majorEvery:{type:ControlType.Number,title:\"Lignes majeures\",defaultValue:0,min:0,max:12,step:1,description:\"0 = off \\xb7 sinon une ligne plus marqu\\xe9e tous les N carreaux\",hidden:props=>props.pattern!==\"grid\"&&props.pattern!==\"hatchedGrid\"},majorColor:{type:ControlType.Color,title:\"Couleur majeure\",defaultValue:\"#CDD2DC\",hidden:props=>props.pattern!==\"grid\"&&props.pattern!==\"hatchedGrid\"||!(props.majorEvery>1)},fade:{type:ControlType.Enum,title:\"Fade\",options:[\"none\",\"top\",\"bottom\",\"vertical\",\"radial\"],optionTitles:[\"Aucun\",\"Haut\",\"Bas\",\"Vertical\",\"Radial\"],defaultValue:\"none\"},fadeStrength:{type:ControlType.Number,title:\"Intensit\\xe9 fade\",defaultValue:50,min:0,max:100,unit:\"%\",hidden:props=>props.fade===\"none\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Pattern\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"400\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicWidth\":\"400\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SectionFrame.map"],"mappings":"A,4JAE+F,SAASM,EAAQ,EAAK,EAAE,EAAM,EAAS,CAAC,IAAMC,EAAE,KAAK,IAAI,EAAE,KAAK,MAAMC,EAAK,CAAC,CAAC,EAAkQC,EAAI,kDAAkDD,EAAK,YAAYA,EAAK,IAAjUE,EAAS,sCAAsCF,EAAK,YAAYG,EAAM,kBAAkB,EAAE,sBAAsBJ,EAAE,GAAGA,EAAE,KAAK,6BAA6BC,EAAK,qBAAqBG,EAAM,kBAAkB,EAAE,sBAAsBJ,EAAE,GAAGA,EAAE,KAAgG,QAAQ,MAAM,2BAA2B,mBAAmBE,CAAG,EAAE,GAAI,CAAC,SAASG,EAAa,EAAQ,EAAK,EAAE,EAAM,EAAS,EAAW,EAAW,CAAC,IAAMC,GAAO,EAAE,IAAI,mBAAmBX,EAAE,GAAGY,EAAE,kBAAkBA,EAAE,KAAWC,GAAO,EAAE,IAAI,0BAA0Bb,EAAE,GAAGY,EAAE,kBAAkBA,EAAE,KAAWE,EAAK,GAAO,6BAA6BC,EAAM,OAAON,EAAM,MAAMA,EAAM,GAAGO,EAAE,kBAAkBA,EAAE,kBAAkBV,EAAK,KAAWW,EAAK,GAAGX,EAAK,KAAKA,EAAK,IAAUY,EAAO,CAAC,EAAQC,EAAM,CAAC,EAAgF,GAA1DC,EAAW,IAAIC,IAAU,QAAQA,IAAU,eAAgC,CAAC,IAAMC,EAAE,GAAGhB,EAAKc,EAAW,KAAKd,EAAKc,EAAW,IAAIF,EAAO,KAAKL,EAAMU,EAAWP,EAAE,EAAE,EAAEL,EAAMY,EAA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