{"version":3,"file":"ProgramSectionBlock.BMmc6SEV.mjs","names":["React.useMemo","__esmMin","pe","init_npm_react_18_3_1","p","c","init_jsx_runtime","init_framer_DKgW_P28","addPropertyControls","ControlType","sharedMotionControls","BlockBase","centeredSectionStyles","init_Section","Section","sharedHeaderControls","responsiveSrc","responsiveSrcSet","init_types","ProgramSection","effectiveDownloadHref","downloadHref","previewSrc","safeItems","items","downloadLabel","previewAlt","documentLabel","documentMeta","item","index","paragraph","paragraphIndex","bullet","init_ProgramSection","parseProgramItems","value","block","line","lines","firstLine","restLines","timePart","titleParts","title","paragraphs","bullets","ProgramSectionBlock","programText","align","id","eyebrow","description","spacingTop","spacingBottom","maxTextWidth","init_ProgramSectionBlock","init_BlockBase"],"sources":["https:/framerusercontent.com/modules/cNzmgkjiGs7vNyNq4vmw/QrqooYD19CjkqJdzEhQt/ProgramSection.js","https:/framerusercontent.com/modules/P9dXRu6eKHWF7WJMQuDE/QgBnCjWnYpoT5JPCXUEa/ProgramSectionBlock.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{responsiveSrc,responsiveSrcSet}from\"https://framerusercontent.com/modules/2zRqtEmElLbOPfGnzNKb/xUkkx4BqABkNNDgAWWug/types.js\";export function ProgramSection({previewSrc,previewAlt,documentLabel,documentMeta,downloadHref,downloadLabel,items}){const effectiveDownloadHref=downloadHref||previewSrc||\"\";const safeItems=items??[];return /*#__PURE__*/_jsx(\"div\",{className:\"program-section\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"program-section__grid\",children:[/*#__PURE__*/_jsxs(\"aside\",{className:\"program-section__aside\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"program-section__poster surface\",children:previewSrc?/*#__PURE__*/_jsx(\"a\",{className:\"program-section__poster-link\",href:effectiveDownloadHref||previewSrc,target:\"_blank\",rel:\"noreferrer\",\"aria-label\":downloadLabel||undefined,children:/*#__PURE__*/_jsx(\"img\",{className:\"program-section__poster-image\",src:responsiveSrc(previewSrc),srcSet:responsiveSrcSet(previewSrc),sizes:\"50vw\",alt:previewAlt||documentLabel||\"\",loading:\"lazy\",decoding:\"async\"})}):/*#__PURE__*/_jsx(\"div\",{className:\"placeholder placeholder--warm program-section__poster-placeholder\",children:/*#__PURE__*/_jsx(\"div\",{className:\"placeholder__copy\",children:documentLabel?/*#__PURE__*/_jsx(\"span\",{className:\"placeholder__label\",children:documentLabel}):null})})}),/*#__PURE__*/_jsxs(\"div\",{className:\"program-section__document surface\",children:[documentLabel?/*#__PURE__*/_jsx(\"p\",{className:\"program-section__document-label\",children:documentLabel}):null,documentMeta?/*#__PURE__*/_jsx(\"p\",{className:\"program-section__document-meta\",children:documentMeta}):null,effectiveDownloadHref&&downloadLabel?/*#__PURE__*/_jsx(\"a\",{className:\"button button--primary program-section__button\",href:effectiveDownloadHref,target:\"_blank\",rel:\"noreferrer\",children:downloadLabel}):null]})]}),/*#__PURE__*/_jsx(\"div\",{className:\"program-section__content\",children:safeItems.map((item,index)=>item.isBreak?/*#__PURE__*/_jsx(\"article\",{className:\"program-item program-item--break surface\",children:/*#__PURE__*/_jsx(\"p\",{className:\"program-item__break-label\",children:item.title})},`${item.title}-${index}`):/*#__PURE__*/_jsxs(\"article\",{className:\"program-item surface\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"program-item__header\",children:[item.time?/*#__PURE__*/_jsx(\"p\",{className:\"program-item__time\",children:item.time}):null,/*#__PURE__*/_jsx(\"h3\",{className:\"program-item__title\",children:item.title})]}),item.paragraphs.length?/*#__PURE__*/_jsx(\"div\",{className:\"program-item__body\",children:item.paragraphs.map((paragraph,paragraphIndex)=>/*#__PURE__*/_jsx(\"p\",{className:\"program-item__paragraph\",children:paragraph},paragraphIndex))}):null,item.bullets.length?/*#__PURE__*/_jsx(\"ul\",{className:\"program-item__list\",children:item.bullets.map(bullet=>/*#__PURE__*/_jsx(\"li\",{children:bullet},bullet))}):null]},`${item.time||item.title}-${index}`))})]})});}\nexport const __FramerMetadata__ = {\"exports\":{\"ProgramSection\":{\"type\":\"reactComponent\",\"name\":\"ProgramSection\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProgramSection.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{ProgramSection}from\"https://framerusercontent.com/modules/cNzmgkjiGs7vNyNq4vmw/QrqooYD19CjkqJdzEhQt/ProgramSection.js\";import{Section}from\"https://framerusercontent.com/modules/fXPGFULA5aj6iIBdafAP/qalQZQPYMCk7JmT1q35u/Section.js\";import{BlockBase,centeredSectionStyles,sharedHeaderControls,sharedMotionControls}from\"https://framerusercontent.com/modules/zJvnI70lkgdKNTISOLs7/nQTGQsVmuE8WIfvMRn1t/BlockBase.js\";function parseProgramItems(value){return value.split(/\\r?\\n\\s*\\r?\\n/).map(block=>block.split(/\\r?\\n/).map(line=>line.trim()).filter(Boolean)).filter(lines=>lines.length>0).map(lines=>{const[firstLine,...restLines]=lines;if(!firstLine.includes(\"|\")){return{title:firstLine,paragraphs:restLines,bullets:[],isBreak:true};}const[timePart,...titleParts]=firstLine.split(\"|\");const title=titleParts.join(\"|\").trim();const paragraphs=[];const bullets=[];restLines.forEach(line=>{if(line.startsWith(\"- \")){bullets.push(line.replace(/^- /,\"\").trim());}else{paragraphs.push(line);}});return{time:timePart.trim(),title,paragraphs,bullets};});}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 1320\n */export function ProgramSectionBlock({id,eyebrow,title,description,background,align,spacingTop,spacingBottom,headerTextPreset,textTone,eyebrowStyle,maxTextWidth,motionPreset,previewSrc,previewAlt,documentLabel,documentMeta,downloadHref,downloadLabel,programText,style}){const items=React.useMemo(()=>parseProgramItems(programText||\"\"),[programText]);return /*#__PURE__*/_jsxs(BlockBase,{style:style,children:[/*#__PURE__*/_jsx(\"style\",{children:centeredSectionStyles}),/*#__PURE__*/_jsx(\"div\",{\"data-align\":align,children:/*#__PURE__*/_jsx(Section,{id:id||undefined,eyebrow:eyebrow||undefined,title:title,description:description||undefined,background:background,spacingTop:spacingTop>0?spacingTop:undefined,spacingBottom:spacingBottom>0?spacingBottom:undefined,headerTextPreset:headerTextPreset,textTone:textTone,eyebrowStyle:eyebrowStyle,maxTextWidth:maxTextWidth>0?maxTextWidth:undefined,motionPreset:motionPreset,children:/*#__PURE__*/_jsx(ProgramSection,{previewSrc:previewSrc||undefined,previewAlt:previewAlt||undefined,documentLabel:documentLabel||undefined,documentMeta:documentMeta||undefined,downloadHref:downloadHref||undefined,downloadLabel:downloadLabel||undefined,items:items})})})]});}ProgramSectionBlock.defaultProps={id:\"programma\",eyebrow:\"Programma\",title:\"Il programma dell'evento, in chiaro.\",description:\"Qui puoi far leggere subito i contenuti dell'appuntamento e, in parallelo, offrire il programma completo come documento scaricabile.\",background:\"default\",align:\"left\",spacingTop:0,spacingBottom:0,headerTextPreset:\"default\",textTone:\"default\",eyebrowStyle:\"default\",maxTextWidth:0,motionPreset:\"auto\",previewSrc:\"\",previewAlt:\"Programma evento Casentino Tech Hub\",documentLabel:\"Programma evento\",documentMeta:\"Data, luogo e dettagli da aggiornare\",downloadHref:\"\",downloadLabel:\"Scarica il programma\",programText:\"11:00 - 11:30 | Presentazione RESILIA\\n\"+\"a cura di Paolo Mazzanti (NHAZCA) e Emanuele Del Monte (S2R)\\n\"+\"Seguiranno i saluti istituzionali di:\\n\"+\"- Filippo Boni - Assessore alle infrastrutture e governo del territorio della Regione Toscana\\n\"+\"- Federico Lorenzoni - Sindaco di Poppi e Presidente Unione dei Comuni del Casentino\\n\"+\"- \\xc8 stato invitato Eugenio Giani, Presidente della Regione Toscana\\n\\n\"+\"11:30 - 11:50 | “Quale futuro per le terre di mezzo?”\\n\"+\"Un approccio sociologico e culturale al marketing territoriale.\\n\"+\"Intervento di Stefano Rolando (Universit\\xe0 IULM Milano)\\n\\n\"+\"12:05 - 13:15 | Il Casentino e le aree interne come Hub Tecnologici\\n\"+\"Confronto e dibattito tra rappresentanti di imprese, istituzioni, scuola e ricerca.\\n\"+\"Modera Gianluca Baccani, giornalista.\\n\"+\"- Giovanni Basagni - Presidente Prospettiva Casentino\\n\"+\"- Elisabetta Batini - Dirigente IISS Galileo Galilei di Poppi\\n\"+\"- Fabrizio Bernini - Confindustria Toscana Sud\\n\"+\"- Francesca Bozzano - Prorettrice “Sapienza” Universit\\xe0 di Roma\\n\"+\"- Simone Chiordi - KTO Placement e imprenditorialit\\xe0, Universit\\xe0 degli Studi di Firenze\\n\"+\"- Alessandro Ghinelli - Presidente Commissione Politiche Comunitarie ANCI\\n\"+\"- Maurizio Librizzi - Dirigente ISIS Enrico Fermi di Bibbiena\\n\"+\"- Angelita Luciani - AdG FESR e responsabile Aree Interne Regione Toscana\\n\\n\"+\"Pausa pranzo\\n\\n\"+\"14:45 - 16:00 | La resilienza del patrimonio ambientale, strutturale e infrastrutturale: un impegno comune\\n\"+\"Modera Francesca Bozzano, Prorettrice “Sapienza” Universit\\xe0 di Roma.\\n\"+\"- Marco Casucci - European Space Agency IRIDE IPT Member\\n\"+\"- Luca Gori - Dirigente Settore Sismica Regione Toscana\\n\"+\"- Sara Padulosi - Responsabile Architettura, Ambiente e valorizzazione del territorio ANAS Roma\\n\"+\"- Serena Stefani - Presidente Consorzio Bonifica Alto Valdarno\\n\"+\"- Simone Viti - Presidente Ente Acque Umbre Toscane\\n\"+\"- Carmine Zappacosta - Presidente Distretto Tecnologico Regionale Ferroviario Toscano\"};addPropertyControls(ProgramSectionBlock,{id:{type:ControlType.String,title:\"ID\"},eyebrow:{type:ControlType.String,title:\"Eyebrow\"},title:{type:ControlType.String,title:\"Titolo\",displayTextArea:true},description:{type:ControlType.String,title:\"Descrizione\",displayTextArea:true},...sharedHeaderControls,background:{type:ControlType.Enum,title:\"Sfondo\",options:[\"default\",\"muted\",\"dark\",\"accent\"],optionTitles:[\"Default\",\"Muted\",\"Dark\",\"Accent\"]},align:{type:ControlType.Enum,title:\"Allinea\",options:[\"left\",\"center\"],optionTitles:[\"Sinistra\",\"Centro\"]},spacingTop:{type:ControlType.Number,title:\"Space top\",min:0,max:200,step:4,defaultValue:0,description:\"0 = auto\"},spacingBottom:{type:ControlType.Number,title:\"Space bottom\",min:0,max:200,step:4,defaultValue:0,description:\"0 = auto\"},motionPreset:sharedMotionControls.motionPreset,previewSrc:{type:ControlType.Image,title:\"Anteprima\"},previewAlt:{type:ControlType.String,title:\"Alt anteprima\"},documentLabel:{type:ControlType.String,title:\"Label doc\"},documentMeta:{type:ControlType.String,title:\"Meta doc\",displayTextArea:true},downloadHref:{type:ControlType.String,title:\"Link download\"},downloadLabel:{type:ControlType.String,title:\"Label bottone\"},programText:{type:ControlType.String,title:\"Programma\",displayTextArea:true,description:\"Blocchi separati da riga vuota. Prima riga: Ora | Titolo. Righe con - diventano elenco.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"ProgramSectionBlock\":{\"type\":\"reactComponent\",\"name\":\"ProgramSectionBlock\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicHeight\":\"1320\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"1200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,2TAA8L,SAAgBmB,EAAe,CAAC,aAAW,aAAW,gBAAc,eAAa,eAAa,gBAAc,SAAO,CAAC,IAAMC,EAAsBC,GAAcC,GAAY,GAASC,EAAUC,GAAO,CAAC,EAAE,MAAoB,gBAAK,MAAM,CAAC,UAAU,kBAAkB,SAAsB,gBAAM,MAAM,CAAC,UAAU,wBAAwB,SAAS,CAAc,gBAAM,QAAQ,CAAC,UAAU,yBAAyB,SAAS,CAAc,gBAAK,MAAM,CAAC,UAAU,kCAAkC,SAASF,EAAwB,gBAA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