{"version":3,"file":"ProgramSectionBlock.1dlt3CjD.mjs","names":["React.useMemo"],"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":"2TAA8L,SAAgB,EAAe,CAAC,aAAW,aAAW,gBAAc,eAAa,eAAa,gBAAc,SAAO,CAAC,IAAM,EAAsB,GAAc,GAAY,GAAS,EAAU,GAAO,CAAC,EAAE,OAAoB,EAAK,MAAM,CAAC,UAAU,kBAAkB,SAAsB,EAAM,MAAM,CAAC,UAAU,wBAAwB,SAAS,CAAc,EAAM,QAAQ,CAAC,UAAU,yBAAyB,SAAS,CAAc,EAAK,MAAM,CAAC,UAAU,kCAAkC,SAAS,EAAwB,EAAK,IAAI,CAAC,UAAU,+BAA+B,KAAK,GAAuB,EAAW,OAAO,SAAS,IAAI,aAAa,aAAa,GAAe,IAAA,GAAU,SAAsB,EAAK,MAAM,CAAC,UAAU,gCAAgC,IAAI,EAAc,CAAU,EAAE,OAAO,EAAiB,CAAU,EAAE,MAAM,OAAO,IAAI,GAAY,GAAe,GAAG,QAAQ,OAAO,SAAS,OAAO,CAAC,CAAC,CAAC,EAAe,EAAK,MAAM,CAAC,UAAU,oEAAoE,SAAsB,EAAK,MAAM,CAAC,UAAU,oBAAoB,SAAS,EAA2B,EAAK,OAAO,CAAC,UAAU,qBAAqB,SAAS,CAAa,CAAC,EAAE,IAAI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