{"version":3,"file":"ContemplativeText.0gal70GI.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/cSXVh0D2WVAqFJ0nJGLu/bs5fiiwGPO2s1wc175rp/ContemplativeText.js"],"sourcesContent":["// Create a contemplative, quote-like text module with layout options and optional emphasis.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * ContemplativeText\n *\n * Reflective, editorial quote-like text block with layout options.\n *\n * @framerIntrinsicWidth 900\n * @framerIntrinsicHeight 260\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ContemplativeText(props){const{text,layout,textAlign,backgroundColor,textColor,font,verticalPadding,horizontalPadding,readingWidth,emphasizeKeywords,style}=props;const isWidthFixed=style&&style.width===\"100%\";const isHeightFixed=style&&style.height===\"100%\";const content=useMemo(()=>{if(!emphasizeKeywords)return text;// Define a small set of key phrases to subtly emphasize\nconst keys=[\"singularidade\",\"partilha colectiva\",\"verdade das narrativas pessoais\",\"dramaturgia\",\"di\\xe1logo\",\"sem hierarquias\",\"capacidade de tomar decis\\xf5es\",\"objecto art\\xedstico final\",\"p\\xfablico\",\"po\\xe9tica\",\"comunidade\"];const pattern=new RegExp(\"(\"+keys.join(\"|\")+\")\",\"gi\");const segments=[];let lastIndex=0;let match;let index=0;while((match=pattern.exec(text))!==null){const matchStart=match.index;const matchEnd=match.index+match[0].length;if(matchStart>lastIndex){segments.push(text.slice(lastIndex,matchStart));}const matchedText=text.slice(matchStart,matchEnd);segments.push(/*#__PURE__*/_jsx(\"span\",{style:{letterSpacing:\"-0.02em\"},children:matchedText},`em-${index}`));lastIndex=matchEnd;index++;}if(lastIndex<text.length){segments.push(text.slice(lastIndex));}return segments;},[text,emphasizeKeywords]);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",boxSizing:\"border-box\",width:isWidthFixed?\"100%\":\"auto\",height:isHeightFixed?\"100%\":\"auto\",backgroundColor,paddingTop:verticalPadding,paddingBottom:verticalPadding,paddingLeft:horizontalPadding,paddingRight:horizontalPadding,display:\"flex\",alignItems:\"center\",justifyContent:layout===\"full\"?\"flex-start\":\"center\",...style},children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",maxWidth:layout===\"narrow\"?readingWidth:\"none\",margin:layout===\"narrow\"?\"0 auto\":0},children:/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:textColor,textAlign,width:\"100%\",// Let text breathe and feel editorial\nlineHeight:font?.lineHeight??\"1.5em\",letterSpacing:font?.letterSpacing??\"-0.01em\",...font},children:content})})});}addPropertyControls(ContemplativeText,{text:{type:ControlType.String,title:\"Texto\",displayTextArea:true,defaultValue:\"A partir da singularidade de cada participante e de pr\\xe1ticas teatrais que activam a partilha colectiva, facilitando e valorizando a verdade das narrativas pessoais, \\xe9 criada uma dramaturgia, num processo de di\\xe1logo, sem hierarquias, onde todos assumem a sua capacidade de tomar decis\\xf5es; dando origem a um objecto art\\xedstico final que \\xe9 partilhado com o p\\xfablico, revelando art\\xedstica e esteticamente a pot\\xeancia po\\xe9tica das suas narrativas pessoais numa \\xf3tica de espelho e for\\xe7a da comunidade.\"},layout:{type:ControlType.Enum,title:\"Layout\",options:[\"full\",\"narrow\"],optionTitles:[\"Largura total\",\"Coluna estreita\"],defaultValue:\"narrow\",displaySegmentedControl:true},textAlign:{type:ControlType.Enum,title:\"Alinhamento\",options:[\"left\",\"center\"],optionTitles:[\"Esquerda\",\"Centro\"],defaultValue:\"center\",displaySegmentedControl:true},backgroundColor:{type:ControlType.Color,title:\"Fundo\",defaultValue:\"#FFFFFF\"},textColor:{type:ControlType.Color,title:\"Texto\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Tipografia\",defaultValue:{fontSize:\"22px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.4em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},verticalPadding:{type:ControlType.Number,title:\"Margem vertical\",defaultValue:72,min:24,max:160,unit:\"px\",step:4},horizontalPadding:{type:ControlType.Number,title:\"Margem lateral\",defaultValue:48,min:16,max:120,unit:\"px\",step:4},readingWidth:{type:ControlType.Number,title:\"Largura coluna\",defaultValue:720,min:320,max:960,unit:\"px\",step:10,hidden:props=>props.layout===\"full\"},emphasizeKeywords:{type:ControlType.Boolean,title:\"\\xcanfase sutil\",enabledTitle:\"Sim\",disabledTitle:\"N\\xe3o\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ContemplativeText\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"900\",\"framerIntrinsicHeight\":\"260\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ContemplativeText.map"],"mappings":"0KAWG,SAAwB,EAAkB,EAAM,CAAC,GAAK,CAAC,OAAK,SAAO,YAAU,kBAAgB,YAAU,OAAK,kBAAgB,oBAAkB,eAAa,oBAAkB,SAAO,EAAY,EAAa,GAAO,EAAM,QAAQ,OAAa,EAAc,GAAO,EAAM,SAAS,OAAa,EAAQA,MAAY,CAAC,GAAG,CAAC,EAAkB,OAAO,EAC9G,IAAM,EAAY,OAAO,IAArP,CAAC,gBAAgB,qBAAqB,kCAAkC,cAAc,UAAa,kBAAkB,+BAAkC,0BAA6B,UAAa,UAAa,aAAa,CAAmC,KAAK,IAAI,CAAC,IAAI,KAAK,CAAO,EAAS,EAAE,CAAK,EAAU,EAAM,EAAU,EAAM,EAAE,MAAO,EAAM,EAAQ,KAAK,EAAK,IAAI,MAAK,CAAC,IAAM,EAAW,EAAM,MAAY,EAAS,EAAM,MAAM,EAAM,GAAG,OAAU,EAAW,GAAW,EAAS,KAAK,EAAK,MAAM,EAAU,EAAW,CAAC,CAAE,IAAM,EAAY,EAAK,MAA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