{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/wQMePYNuBknoUnVOII2D/ismGtwx4PGm4yXocUUCq/Responsive_Calendar.js"],
  "sourcesContent": ["// import { addPropertyControls, ControlType, Frame } from \"framer\"\n// /**\n//  * @framerSupportedLayoutWidth auto\n//  * @framerSupportedLayoutHeight auto\n//  */\n// export default function ResponsiveCalendar(props) {\n//     return (\n//         <Frame\n//             style={containerStyle}\n//             background=\"transparent\"\n//             width=\"100%\"\n//             height=\"100%\"\n//         >\n//             <iframe\n//                 src=\"https://protricksacademy.lupposystem.com/Calendar/Index?embedded=true&LocationIds=[2829]\"\n//                 style={iframeStyle}\n//                 frameBorder=\"0\"\n//             />\n//         </Frame>\n//     )\n// }\n// // Styles\n// const containerStyle: React.CSSProperties = {\n//     position: \"relative\",\n//     width: \"100%\",\n//     height: \"100%\",\n//     overflow: \"hidden\",\n// }\n// const iframeStyle: React.CSSProperties = {\n//     position: \"absolute\",\n//     width: \"100%\",\n//     height: \"100%\",\n//     top: 0,\n//     left: 0,\n//     border: \"none\",\n// }\n// // Property Controls (for Framer's right panel)\n// addPropertyControls(ResponsiveCalendar, {\n//     // Add any controls you need here\n// })\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,Frame}from\"framer\";const BASE_URL=\"https://protricksacademy.lupposystem.com/Calendar/Index?embedded=true\";const ACTIVITY_TYPE_ID=3397;const locations=[{name:\"Mszana\",locationId:3218},{name:\"Zakopane\",locationId:3219},{name:\"Niepo\u0142omice\",locationId:3220},{name:\"Ochotnica\",locationId:3221},{name:\"Rabka\",locationId:3222},{name:\"Prosz\\xf3wki\",locationId:2829}];export default function ResponsiveCalendar(props){const getCalendarUrl=()=>{if(props.calendarType===\"general\"){return`${BASE_URL}&ActivityTypeId=${ACTIVITY_TYPE_ID}`;}const selectedLocation=locations.find(loc=>loc.name===props.location)||locations[5];return`${BASE_URL}&LocationIds=[${selectedLocation.locationId}]&ActivityTypeId=${ACTIVITY_TYPE_ID}`;};return /*#__PURE__*/_jsx(Frame,{style:containerStyle,background:\"transparent\",width:\"100%\",height:\"100%\",children:/*#__PURE__*/_jsx(\"iframe\",{src:getCalendarUrl(),style:iframeStyle,frameBorder:\"0\"})});}// Styles remain the same\nconst containerStyle={position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\"};const iframeStyle={position:\"absolute\",width:\"100%\",height:\"100%\",top:0,left:0,border:\"none\"};addPropertyControls(ResponsiveCalendar,{calendarType:{type:ControlType.SegmentedEnum,title:\"Calendar Type\",options:[\"general\",\"specific\"],defaultValue:\"general\"},location:{type:ControlType.Enum,title:\"Location\",options:locations.map(loc=>loc.name),defaultValue:\"Prosz\\xf3wki\",hidden:({calendarType})=>calendarType===\"general\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ResponsiveCalendar\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Responsive_Calendar.map"],
  "mappings": "8DAwCqG,IAAMA,EAAS,wEAA8EC,EAAiB,KAAWC,EAAU,CAAC,CAAC,KAAK,SAAS,WAAW,IAAI,EAAE,CAAC,KAAK,WAAW,WAAW,IAAI,EAAE,CAAC,KAAK,mBAAc,WAAW,IAAI,EAAE,CAAC,KAAK,YAAY,WAAW,IAAI,EAAE,CAAC,KAAK,QAAQ,WAAW,IAAI,EAAE,CAAC,KAAK,eAAe,WAAW,IAAI,CAAC,EAAiB,SAARC,EAAoCC,EAAM,CAAgT,OAAoBC,EAAKC,EAAM,CAAC,MAAMC,EAAe,WAAW,cAAc,MAAM,OAAO,OAAO,OAAO,SAAsBF,EAAK,SAAS,CAAC,KAAxa,IAAI,CAAC,GAAGD,EAAM,eAAe,UAAW,MAAM,GAAGJ,CAAQ,mBAAmBC,CAAgB,GAAI,IAAMO,EAAiBN,EAAU,KAAKO,GAAKA,EAAI,OAAOL,EAAM,QAAQ,GAAGF,EAAU,CAAC,EAAE,MAAM,GAAGF,CAAQ,iBAAiBQ,EAAiB,UAAU,oBAAoBP,CAAgB,EAAG,GAAmK,EAAE,MAAMS,EAAY,YAAY,GAAG,CAAC,CAAC,CAAC,CAAE,CACn+B,IAAMH,EAAe,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,SAAS,QAAQ,EAAQG,EAAY,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,IAAI,EAAE,KAAK,EAAE,OAAO,MAAM,EAAEC,EAAoBR,EAAmB,CAAC,aAAa,CAAC,KAAKS,EAAY,cAAc,MAAM,gBAAgB,QAAQ,CAAC,UAAU,UAAU,EAAE,aAAa,SAAS,EAAE,SAAS,CAAC,KAAKA,EAAY,KAAK,MAAM,WAAW,QAAQV,EAAU,IAAIO,GAAKA,EAAI,IAAI,EAAE,aAAa,eAAe,OAAO,CAAC,CAAC,aAAAI,CAAY,IAAIA,IAAe,SAAS,CAAC,CAAC",
  "names": ["BASE_URL", "ACTIVITY_TYPE_ID", "locations", "ResponsiveCalendar", "props", "p", "Frame", "containerStyle", "selectedLocation", "loc", "iframeStyle", "addPropertyControls", "ControlType", "calendarType"]
}
