{"version":3,"file":"CMSProjectData.Cjchcy09.mjs","names":["__esmMin","c","init_jsx_runtime","init_framer_DDfsYcI0","addPropertyControls","ControlType","url","image","CMSProjectData","coverImage","props","coverVideo","gallery","thumb","videoFileTypes","init_CMSProjectData"],"sources":["https:/framerusercontent.com/modules/tEyGPVIAOC9hDRaQymKo/rmcKA2GhqElDZEWkUay0/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-sphere-image\":url(props.sphereImage),\"data-orbital-sphere-video\":props.sphereVideo||\"\",\"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-study\":(props.study||\"\").trim(),\"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},sphereImage:{type:ControlType.ResponsiveImage,title:\"Sphere Image\",description:\"Home sphere only. Leave empty to use the cover.\"},sphereVideo:{type:ControlType.File,title:\"Sphere Video\",allowedFileTypes:videoFileTypes,description:\"Home sphere only. Plays over the Sphere Image (or cover).\"},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},study:{type:ControlType.String,title:\"Opens Study\",placeholder:\"Study title, e.g. Sweet Rot Poster\",description:\"Sphere only: the study whose spotlight this opens. Leave empty to open the project in Works.\"},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":"A,4JAA+I,SAASM,EAAI,EAAM,CAAC,OAAO,OAAOC,GAAQ,SAASA,EAAMA,GAAO,KAAK,EAAG,CAOpN,SAAwBC,EAAe,EAAM,CAAC,IAAMC,EAAWH,EAAII,EAAM,KAAK,EAAQC,EAAWD,EAAM,YAAY,GAASE,EAAQ,CAACF,EAAM,QAAQJ,EAAII,EAAM,MAAM,EAAEA,EAAM,QAAQJ,EAAII,EAAM,MAAM,EAAEA,EAAM,QAAQJ,EAAII,EAAM,MAAM,CAAC,CAAC,CAAC,OAAO,OAAO,EAEjPG,EAAMH,EAAM,cAAc,WAAWA,EAAM,UAAU,OAAOA,EAAM,YAAY,SAAS,WAAW,MAAoB,gBAAK,OAAO,CAAC,qBAAqBC,GAAYF,EAAW,2BAA2BA,EAAW,2BAA2BE,EAAW,4BAA4BL,EAAII,EAAM,WAAW,EAAE,4BAA4BA,EAAM,aAAa,GAAG,uBAAuB,KAAK,UAAUE,CAAO,EAAE,2BAA2BF,EAAM,aAAa,GAAG,oBAAoBA,EAAM,KAAK,OAAOA,EAAM,IAAI,EAAE,GAAG,wBAAwBA,EAAM,UAAU,GAAG,qBAAqBG,EAAM,qBAAqBH,EAAM,YAAY,GAAG,wBAAwBA,EAAM,UAAU,GAAM,QAAQ,OAAO,yBAAyBA,EAAM,WAAW,GAAM,QAAQ,OAAO,sBAAsBA,EAAM,OAAO,GAAA,CAAI,KAAK,EAAE,4BAA4BA,EAAM,YAAY,OAAO,QAAQ,uBAAuBA,EAAM,SAAS,GAAG,cAAc,OAAO,MAAM,CAAC,GAAGA,EAAM,MAAM,QAAQ,MAAM,CAAC,CAAC,CAAE,C,4CATn1B,EAAe,CAAC,MAAM,OAAO,MAAM,KAAK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