{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/2IdiKIAVxeIGjjnVYeKn/pIul2l8domBvCbuOYnKB/CMSSlideshow.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,// @ts-ignore\ngetPropertyControls,ControlType,RenderTarget}from\"framer\";import{cloneElement}from\"react\";import SlideShow from\"https://framer.com/m/SlideShow-07du.js\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 200\n */export default function CMSSlideshow(props){const{collectionList,startLayers,endLayers,frame,horizontalOffset,verticalOffset,...otherProps}=props;const isCanvas=RenderTarget.current()===RenderTarget.canvas;const collectionLayers=getCollectionListContents(collectionList,isCanvas);let layers=[];if(startLayers){layers=layers.concat(startLayers);}if(!isCanvas){for(let i=0;i<collectionLayers.length;i++){const layer=/*#__PURE__*/cloneElement(collectionLayers[i].props.children.props.children,{style:{width:\"100%\",height:\"100%\",transform:`translate(${horizontalOffset}px, ${verticalOffset}px)`}});layers.push(/*#__PURE__*/cloneElement(frame[0],{style:{width:\"100%\",height:\"100%\"},className:undefined},layer));}}else{for(let i=0;i<props.itemAmount;i++){layers.push(/*#__PURE__*/_jsx(CanvasPlaceholder,{title:\"Run project to view slideshow content\",subtitle:\"Collection List content is not accessible to the slideshow component in the editor. Run your project orvisit the live website to view the slideshow with CMS content.\"}));}}if(endLayers){layers=layers.concat(endLayers);}return /*#__PURE__*/_jsx(SlideShow,{...otherProps,slots:layers});}CMSSlideshow.displayName=\"CMS Slideshow\";addPropertyControls(CMSSlideshow,{collectionList:{type:ControlType.ComponentInstance},startLayers:{type:ControlType.Array,control:{type:ControlType.ComponentInstance},title:\"Start\"},endLayers:{type:ControlType.Array,control:{type:ControlType.ComponentInstance},title:\"End\"},frame:{type:ControlType.ComponentInstance},horizontalOffset:{type:ControlType.Number,title:\"Horizontal Offset\",defaultValue:0,min:-100,max:100,step:1},verticalOffset:{type:ControlType.Number,title:\"Vertical Offset\",defaultValue:0,min:-100,max:100,step:1},...getComponentProps(SlideShow)});function getComponentProps(component){const{slots,...otherProps}=getPropertyControls(component);return otherProps;}export function getCollectionListContents(collectionList,isCanvas){const element=collectionList===null||collectionList===void 0?void 0:collectionList[0];if(element&&!isCanvas){return element.props.children.type({query:element.props.children.props.query,children:element.props.children.props.children});}return[];}export function CanvasPlaceholder({title,subtitle}){return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",width:\"100%\",height:\"100%\",placeContent:\"center\",placeItems:\"center\",flexDirection:\"column\",backgroundColor:\"rgba(136, 85, 255, 0.1)\",borderRadius:6,border:\"1px dashed rgb(136, 85, 255)\",color:\"rgb(136, 85, 255)\",fontSize:12,padding:24},children:[/*#__PURE__*/_jsx(\"p\",{style:{margin:0,marginBottom:10,fontWeight:600,textAlign:\"center\"},children:title}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,opacity:.7,maxWidth:500,lineHeight:1.5,textAlign:\"center\"},children:subtitle})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"getCollectionListContents\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CanvasPlaceholder\":{\"type\":\"reactComponent\",\"name\":\"CanvasPlaceholder\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"CMSSlideshow\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"400\",\"framerIntrinsicHeight\":\"200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CMSSlideshow.map"],
  "mappings": "8JAMkB,SAARA,EAA8BC,EAAM,CAAC,GAAK,CAAC,eAAAC,EAAe,YAAAC,EAAY,UAAAC,EAAU,MAAAC,EAAM,iBAAAC,EAAiB,eAAAC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kBAAkB,aAAa,EAAE,IAAI,KAAK,IAAI,IAAI,KAAK,CAAC,EAAE,GAAGC,EAAkBH,CAAS,CAAC,CAAC,EAAE,SAASG,EAAkBC,EAAU,CAAC,GAAK,CAAC,MAAAC,EAAM,GAAGf,CAAU,EAAEgB,EAAoBF,CAAS,EAAE,OAAOd,CAAW,CAAQ,SAASI,EAA0BV,EAAeO,EAAS,CAAC,IAAMgB,EAA8DvB,IAAe,CAAC,EAAE,OAAGuB,GAAS,CAAChB,EAAiBgB,EAAQ,MAAM,SAAS,KAAK,CAAC,MAAMA,EAAQ,MAAM,SAAS,MAAM,MAAM,SAASA,EAAQ,MAAM,SAAS,MAAM,QAAQ,CAAC,EAAS,CAAC,CAAE,CAAQ,SAASV,EAAkB,CAAC,MAAAW,EAAM,SAAAC,CAAQ,EAAE,CAAC,OAAoBC,EAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,MAAM,OAAO,OAAO,OAAO,aAAa,SAAS,WAAW,SAAS,cAAc,SAAS,gBAAgB,0BAA0B,aAAa,EAAE,OAAO,+BAA+B,MAAM,oBAAoB,SAAS,GAAG,QAAQ,EAAE,EAAE,SAAS,CAAcd,EAAK,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,WAAW,IAAI,UAAU,QAAQ,EAAE,SAASY,CAAK,CAAC,EAAeZ,EAAK,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,GAAG,SAAS,IAAI,WAAW,IAAI,UAAU,QAAQ,EAAE,SAASa,CAAQ,CAAC,CAAC,CAAC,CAAC,CAAE",
  "names": ["CMSSlideshow", "props", "collectionList", "startLayers", "endLayers", "frame", "horizontalOffset", "verticalOffset", "otherProps", "isCanvas", "RenderTarget", "collectionLayers", "getCollectionListContents", "layers", "p", "CanvasPlaceholder", "layer", "q", "Slideshow", "addPropertyControls", "ControlType", "getComponentProps", "component", "slots", "getPropertyControls", "element", "title", "subtitle", "u"]
}
