{"version":3,"file":"Wiki.CYTYflAf.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/AgjdW6KYhsKkPUlB1E8F/yGPv1B640erufB3QFKq0/Wiki.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import styled from\"styled-components\";const Img=styled.img`\n    width: ${props=>props.img_size}px;\n    height: auto;\n    border-radius: 6px;\n    margin-${props=>props.img_Position===\"left\"?\"right\":\"left\"}: ${props=>props.gap}px;\n    margin-bottom: 2px;\n    float: ${props=>props.img_Position};\n    pointer-events: none;\n    user-select: none;\n`;const Description=styled.div`\n    color: ${props=>props.Color};\n    font-family: \"Inter\", sans-serif;\n    font-style: Regular;\n    font-weight: 400;\n    font-size: 16px;\n    letter-spacing: 0.0px;\n    line-height: 1.8em;\n\n    p {\n        margin: 0 0 1em 0;\n    }\n\n    p:last-child {\n        margin-bottom: 0;\n    }\n\n    @media (max-width: 899px) {\n        font-size: 16px;\n    }\n`;const Clear=styled.span`\n    clear: both;\n`;const Bold=styled.span`\n    font-weight: 600;\n`;export default function Wiki(props){const paragraphs=props.description.split(/\\n{2,}|\\r\\n\\r\\n/).map(para=>para.trim()).filter(para=>para.length>0).map((para,index)=>/*#__PURE__*/_jsx(\"p\",{children:para},index));// если есть url — используем его, иначе fallback на обычную Framer image\nconst imgSrc=props.url?.trim()?props.url:props.image;return /*#__PURE__*/_jsxs(Description,{Color:props.Color,children:[imgSrc&&/*#__PURE__*/_jsx(Img,{src:imgSrc,img_size:props.img_size,img_Position:props.img_Position,gap:props.gap,draggable:false}),/*#__PURE__*/_jsx(Bold,{children:props.title}),props.Dash&&/*#__PURE__*/_jsx(_Fragment,{children:\" – \"}),props.Enter&&/*#__PURE__*/_jsx(\"br\",{}),/*#__PURE__*/_jsx(Clear,{}),paragraphs]});}addPropertyControls(Wiki,{// ⬇ новый параметр URL\nurl:{type:ControlType.String,title:\"URL Image\",placeholder:\"https://example.com/image.jpg\"},image:{type:ControlType.Image,title:\"Framer Image\"},img_size:{type:ControlType.Number,min:30,max:600,defaultValue:106},img_Position:{type:ControlType.Enum,options:[\"left\",\"right\"],defaultValue:\"left\"},gap:{type:ControlType.Number,title:\"Gap\",min:0,max:30,defaultValue:20},title:{type:ControlType.String,defaultValue:\"Title\",displayTextArea:true},Dash:{type:ControlType.Boolean,defaultValue:true},Enter:{type:ControlType.Boolean,defaultValue:false},description:{type:ControlType.String,defaultValue:\"Description\\n\\nSecond paragraph\",displayTextArea:true},Color:{title:\"Color\",type:ControlType.Color,defaultValue:\"rgba(255, 255, 255, 1.0)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Wiki\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Wiki.map"],"mappings":"kUAiCE,SAAwB,EAAK,EAAM,CAAC,IAAM,EAAW,EAAM,YAAY,MAAM,kBAAkB,CAAC,IAAI,GAAM,EAAK,MAAM,CAAC,CAAC,OAAO,GAAM,EAAK,OAAO,EAAE,CAAC,KAAK,EAAK,IAAqB,EAAK,IAAI,CAAC,SAAS,EAAK,CAAC,EAAM,CAAC,CAC9M,EAAO,EAAM,KAAK,MAAM,CAAC,EAAM,IAAI,EAAM,MAAM,OAAoB,EAAM,EAAY,CAAC,MAAM,EAAM,MAAM,SAAS,CAAC,GAAqB,EAAK,EAAI,CAAC,IAAI,EAAO,SAAS,EAAM,SAAS,aAAa,EAAM,aAAa,IAAI,EAAM,IAAI,UAAU,GAAM,CAAC,CAAc,EAAK,EAAK,CAAC,SAAS,EAAM,MAAM,CAAC,CAAC,EAAM,MAAmB,EAAKA,EAAU,CAAC,SAAS,MAAM,CAAC,CAAC,EAAM,OAAoB,EAAK,KAAK,EAAE,CAAC,CAAc,EAAK,EAAM,EAAE,CAAC,CAAC,EAAW,CAAC,CAAC,0BAl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