{"version":3,"file":"CMSProjectData.D0RMON_2.mjs","names":[],"sources":["https:/framerusercontent.com/modules/tEyGPVIAOC9hDRaQymKo/z1l5X80lxlkCxhJqgA2x/CMSProjectData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const videoFileTypes=[\"mp4\",\"webm\",\"mov\",\"m4v\"];function url(image){return typeof image===\"string\"?image:image?.src||\"\";}/**\n * Hidden data bridge for a Works or Studies card. The cover (image or video)\n * is the thumbnail; the legacy gallery fields are only used when a project\n * has no Project Media items.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function CMSProjectData(props){const coverImage=url(props.cover);const coverVideo=props.coverVideo||\"\";const gallery=[props.video1||url(props.image1),props.video2||url(props.image2),props.video3||url(props.image3)].filter(Boolean);// Same priority as the Project Media toggles: Original Ratio, then 16:9,\n// then Square. With none on, the thumbnail keeps its own shape.\nconst thumb=props.thumbOriginal?\"original\":props.thumbWide?\"wide\":props.thumbSquare?\"square\":\"original\";return /*#__PURE__*/_jsx(\"span\",{\"data-orbital-cover\":coverVideo||coverImage,\"data-orbital-cover-image\":coverImage,\"data-orbital-cover-video\":coverVideo,\"data-orbital-gallery\":JSON.stringify(gallery),\"data-orbital-description\":props.description||\"\",\"data-orbital-year\":props.year?String(props.year):\"\",\"data-orbital-category\":props.category||\"\",\"data-orbital-thumb\":thumb,\"data-orbital-hover\":props.hoverColor||\"\",\"data-orbital-in-works\":props.inWorks===false?\"false\":\"true\",\"data-orbital-in-sphere\":props.inSphere===false?\"false\":\"true\",\"data-orbital-show-credits\":props.showCredits?\"true\":\"false\",\"data-orbital-credits\":props.credits||\"\",\"aria-hidden\":\"true\",style:{...props.style,display:\"none\"}});}addPropertyControls(CMSProjectData,{cover:{type:ControlType.ResponsiveImage,title:\"Cover Image\"},coverVideo:{type:ControlType.File,title:\"Cover Video\",allowedFileTypes:videoFileTypes},description:{type:ControlType.String,title:\"Description\",displayTextArea:true},year:{type:ControlType.Number,title:\"Year\",displayStepper:false},category:{type:ControlType.String,title:\"Category\"},thumbSquare:{type:ControlType.Boolean,title:\"Thumbnail Square\"},thumbWide:{type:ControlType.Boolean,title:\"Thumbnail 16:9\"},thumbOriginal:{type:ControlType.Boolean,title:\"Thumbnail Original Ratio\"},hoverColor:{type:ControlType.Color,title:\"List Hover Color\"},inWorks:{type:ControlType.Boolean,title:\"Show in Works\",defaultValue:true},inSphere:{type:ControlType.Boolean,title:\"Show in Sphere\",defaultValue:true},showCredits:{type:ControlType.Boolean,title:\"Show Credits\",defaultValue:false},credits:{type:ControlType.String,title:\"Credits\",displayTextArea:true},image1:{type:ControlType.ResponsiveImage,title:\"Gallery Image 1\"},video1:{type:ControlType.File,title:\"Gallery Video 1\",allowedFileTypes:videoFileTypes},image2:{type:ControlType.ResponsiveImage,title:\"Gallery Image 2\"},video2:{type:ControlType.File,title:\"Gallery Video 2\",allowedFileTypes:videoFileTypes},image3:{type:ControlType.ResponsiveImage,title:\"Gallery Image 3\"},video3:{type:ControlType.File,title:\"Gallery Video 3\",allowedFileTypes:videoFileTypes}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CMSProjectData\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CMSProjectData.map"],"mappings":"4JAA+I,SAAS,EAAI,EAAM,CAAC,OAAO,OAAO,GAAQ,SAAS,EAAM,GAAO,KAAK,EAAG,CAOpN,SAAwB,EAAe,EAAM,CAAC,IAAM,EAAW,EAAI,EAAM,KAAK,EAAQ,EAAW,EAAM,YAAY,GAAS,EAAQ,CAAC,EAAM,QAAQ,EAAI,EAAM,MAAM,EAAE,EAAM,QAAQ,EAAI,EAAM,MAAM,EAAE,EAAM,QAAQ,EAAI,EAAM,MAAM,CAAC,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