{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/rwOL75pJfUm1chf60B4p/hc0tDiWPYnO20TBWLHGR/ApplePodcasts.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,motion}from\"framer\";import{containerStyles}from\"https://framer.com/m/framer/default-utils.js@^0.45.0\";import{useMemo}from\"react\";import{emptyStateStyle,stateParagraphStyle,stateTitleStyle}from\"https://framer.com/m/framer/integrations-styles.js@0.2.0\";const podcastsRegex=/^https?:\\/\\/podcasts\\.apple\\.com\\/([^/]*)\\/podcast(?:\\/[^/]*)?\\/id(\\d+)(?:\\?.*i=(\\d+))?/;/**\n * APPLE PODCASTS\n *\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 175\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n */ export default function ApplePodcasts({urlType,url,theme,style,...props}){const embedUrl=useMemo(()=>{var ref;const[,country,podcastId,episodeId]=(ref=url.match(podcastsRegex))!==null&&ref!==void 0?ref:[null,\"\",\"\",\"\",];if(!podcastId)return null;if(urlType===\"episode\"){return`https://embed.podcasts.apple.com/${country}/podcast/id${podcastId}?i=${episodeId}&theme=${theme}`;}else{return`https://embed.podcasts.apple.com/${country}/podcast/id${podcastId}?theme=${theme}`;}},[urlType,url,theme]);return(/*#__PURE__*/ _jsx(motion.div,{style:{...style,...containerStyles,placeContent:\"center\",placeItems:\"center\",overflow:\"hidden\"},...props,children:embedUrl?/*#__PURE__*/ _jsx(\"iframe\",{src:embedUrl,width:\"100%\",height:\"175px\",frameBorder:\"0\",sandbox:\"allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation-by-user-activation\",allow:\"autoplay *; encrypted-media *;\"}):/*#__PURE__*/ _jsxs(motion.div,{style:{...emptyStateStyle,...style},children:[/*#__PURE__*/ _jsx(\"h1\",{style:stateTitleStyle,children:\"Apple Podcasts\"}),/*#__PURE__*/ _jsx(\"p\",{style:stateParagraphStyle,children:\"Set a podcast URL in the Properties.\"})]})}));};addPropertyControls(ApplePodcasts,{urlType:{type:ControlType.Enum,title:\"URL\",options:[\"show\",\"episode\"],optionTitles:[\"Show\",\"Episode\"],displaySegmentedControl:true,defaultValue:\"episode\"},url:{type:ControlType.String,title:\" \",placeholder:\"https://podcasts.apple.com/us/podcast/***/***\",defaultValue:\"https://podcasts.apple.com/us/podcast/168-auto-goats-feat-koen-bok-and-jorn-van-dijk/id947191070?i=1000376864263\"},theme:{type:ControlType.Enum,options:[\"light\",\"dark\"],optionTitles:[\"Light\",\"Dark\"],displaySegmentedControl:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ApplePodcasts\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"400\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicHeight\":\"175\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ApplePodcasts.map"],
  "mappings": "8MAA2V,IAAMA,EAAc,0FAQ5V,SAARC,EAA+B,CAAC,QAAAC,EAAQ,IAAAC,EAAI,MAAAC,EAAM,MAAAC,EAAM,GAAGC,CAAK,EAAE,CAAC,IAAMC,EAASC,EAAQ,IAAI,CAAC,IAAIC,EAAI,GAAK,CAAC,CAACC,EAAQC,EAAUC,CAAS,GAAGH,EAAIN,EAAI,MAAMH,CAAa,KAAK,MAAMS,IAAM,OAAOA,EAAI,CAAC,KAAK,GAAG,GAAG,EAAG,EAAE,OAAIE,EAAyBT,IAAU,UAAiB,oCAAoCQ,CAAO,cAAcC,CAAS,MAAMC,CAAS,UAAUR,CAAK,GAAe,oCAAoCM,CAAO,cAAcC,CAAS,UAAUP,CAAK,GAAnO,IAAuO,EAAE,CAACF,EAAQC,EAAIC,CAAK,CAAC,EAAE,OAAqBS,EAAKC,EAAO,IAAI,CAAC,MAAM,CAAC,GAAGT,EAAM,GAAGU,EAAgB,aAAa,SAAS,WAAW,SAAS,SAAS,QAAQ,EAAE,GAAGT,EAAM,SAASC,EAAuBM,EAAK,SAAS,CAAC,IAAIN,EAAS,MAAM,OAAO,OAAO,QAAQ,YAAY,IAAI,QAAQ,mGAAmG,MAAM,gCAAgC,CAAC,EAAgBS,EAAMF,EAAO,IAAI,CAAC,MAAM,CAAC,GAAGG,EAAgB,GAAGZ,CAAK,EAAE,SAAS,CAAeQ,EAAK,KAAK,CAAC,MAAMK,EAAgB,SAAS,gBAAgB,CAAC,EAAgBL,EAAK,IAAI,CAAC,MAAMM,EAAoB,SAAS,sCAAsC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAG,CAAEC,EAAoBnB,EAAc,CAAC,QAAQ,CAAC,KAAKoB,EAAY,KAAK,MAAM,MAAM,QAAQ,CAAC,OAAO,SAAS,EAAE,aAAa,CAAC,OAAO,SAAS,EAAE,wBAAwB,GAAK,aAAa,SAAS,EAAE,IAAI,CAAC,KAAKA,EAAY,OAAO,MAAM,IAAI,YAAY,gDAAgD,aAAa,kHAAkH,EAAE,MAAM,CAAC,KAAKA,EAAY,KAAK,QAAQ,CAAC,QAAQ,MAAM,EAAE,aAAa,CAAC,QAAQ,MAAM,EAAE,wBAAwB,EAAI,CAAC,CAAC",
  "names": ["podcastsRegex", "ApplePodcasts", "urlType", "url", "theme", "style", "props", "embedUrl", "se", "ref", "country", "podcastId", "episodeId", "p", "motion", "containerStyles", "u", "emptyStateStyle", "stateTitleStyle", "stateParagraphStyle", "addPropertyControls", "ControlType"]
}
