{"version":3,"file":"PageHeader.B0TuxOGP.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/v3f4QQzNzWXoVSLiWBdd/JQOSZ2QHBl3n8sND1kNE/PageHeader.js"],"sourcesContent":["// Page Header with cycling background image, dual-line title, and bottom-right project credit\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * Page header with cycle-through background image and project credit\n *\n * @framerIntrinsicWidth 900\n * @framerIntrinsicHeight 320\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function PageHeader(props){// Use imagesProp from new property control, fallback to bundled preset images\nconst imagesProp=props.images??[{image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Gradient 1 - Blue\"},project:\"Blue Sky Narrative\"},{image:{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Gradient 2 - Purple\"},project:\"Purple Dream Sequence\"},{image:{src:\"https://framerusercontent.com/images/BYnxEV1zjYb9bhWh1IwBZ1ZoS60.jpg\",alt:\"Gradient 3 - Orange\"},project:\"Orange Sunrise\"},{image:{src:\"https://framerusercontent.com/images/2uTNEj5aTl2K3NJaEFWMbnrA.jpg\",alt:\"Gradient 4 - Yellow\"},project:\"Yellow Storyboard\"},{image:{src:\"https://framerusercontent.com/images/f9RiWoNpmlCMqVRIHz8l8wYfeI.jpg\",alt:\"Gradient 5 - Green\"},project:\"Green Character Arc\"}];//---\n// Defensive fix: Filter out any undefined/empty/invalid items\nconst cleanImagesProp=Array.isArray(imagesProp)?imagesProp.filter(item=>item&&item.image&&typeof item.image.src===\"string\"&&item.image.src.length>0&&typeof item.project===\"string\"):[];// Choose background/project by hash of sessionStorage key or Math.random fallback\nconst imageProject=useMemo(()=>{const arr=cleanImagesProp.length>0?cleanImagesProp:imagesProp;if(typeof window!==\"undefined\"&&Array.isArray(arr)&&arr.length>0){let idx;try{// Every refresh: pick new image, do NOT write to sessionStorage/localStorage at all (just random every load)\nidx=Math.floor(Math.random()*arr.length);}catch{idx=Math.floor(Math.random()*arr.length);}return arr[idx];}return arr[0];},[cleanImagesProp,imagesProp]);const{backgroundOverlay,headlineFont,subheadlineFont,titleColor,subTitleColor,creditFont,creditColor,containerRadius,overlayOpacity}=props;return /*#__PURE__*/_jsxs(\"header\",{style:{position:\"relative\",borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomRightRadius:4,borderBottomLeftRadius:4,overflow:\"hidden\",width:\"100%\",height:\"100%\",minHeight:240,background:`url('${imageProject?.image?.src||\"\"}') center/cover no-repeat`,boxShadow:\"0 4px 28px rgba(0,0,0,0.09)\",display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",alignItems:\"center\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,background:backgroundOverlay,opacity:overlayOpacity,pointerEvents:\"none\",zIndex:0}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",zIndex:2,width:\"100%\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",gap:16,marginTop:56,userSelect:\"none\"}}),/*#__PURE__*/_jsxs(\"span\",{\"aria-label\":\"image project credit\",style:{position:\"absolute\",right:18,bottom:14,zIndex:3,color:creditColor,background:\"rgba(18,18,18,0.25)\",padding:\"4px 12px\",borderRadius:3,fontSize:creditFont.fontSize,fontWeight:500,boxShadow:\"0 1px 6px rgba(0,0,0,0.06)\",pointerEvents:\"none\",backdropFilter:\"blur(8px)\",border:\"1px solid rgba(248,248,246,0.05)\",...creditFont},children:[\"From: \",imageProject?.project||\"\"]})]});}addPropertyControls(PageHeader,{images:{type:ControlType.Array,title:\"Backgrounds\",control:{type:ControlType.Object,controls:{image:{type:ControlType.ResponsiveImage},project:{type:ControlType.String,title:\"Project Name\",defaultValue:\"Project Name\"}},defaultValue:{image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Gradient 1 - Blue\"},project:\"Blue Sky Narrative\"}},maxCount:7,defaultValue:[{image:{src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Gradient 1 - Blue\"},project:\"Blue Sky Narrative\"},{image:{src:\"https://framerusercontent.com/images/aNsAT3jCvt4zglbWCUoFe33Q.jpg\",alt:\"Gradient 2 - Purple\"},project:\"Purple Dream Sequence\"}]},backgroundOverlay:{type:ControlType.Color,title:\"Overlay\",defaultValue:\"#181821\"},overlayOpacity:{type:ControlType.Number,title:\"Overlay Opacity\",defaultValue:.38,min:0,max:1,step:.01},headlineFont:{type:ControlType.Font,title:\"Title Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"44px\",variant:\"Bold\",letterSpacing:\"-0.04em\",lineHeight:\"1em\",textAlign:\"center\"}},subheadlineFont:{type:ControlType.Font,title:\"Subtitle Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Medium\",letterSpacing:\"0.02em\",lineHeight:\"1.7em\"}},creditFont:{type:ControlType.Font,title:\"Credit Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"13px\",variant:\"Regular\",lineHeight:\"1.2em\",textAlign:\"right\"}},titleColor:{type:ControlType.Color,title:\"Title Color\",defaultValue:\"#FFFFFF\"},subTitleColor:{type:ControlType.Color,title:\"Subtitle Color\",defaultValue:\"#F6F6F7\"},creditColor:{type:ControlType.Color,title:\"Credit Color\",defaultValue:\"#E8E7FC\"},containerRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:16,min:0,max:60,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PageHeader\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"320\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-pr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