export const cloudinaryFeedBgLaptop =
  'https://media.daily.dev/image/upload/s--O8GDhJO8--/f_auto/v1692271285/public/Desktop-ask-bg';

export const cloudinaryFeedBgTablet =
  'https://media.daily.dev/image/upload/s--1kZ8h30a--/f_auto/v1692271284/public/Tablet-ask-bg';

export const cloudinaryFeedBgMobile =
  'https://media.daily.dev/image/upload/s--TiBUzfrQ--/f_auto/v1692271284/public/Mobile-ask-bg';

export const cloudinaryFeedBgLayoutV1 =
  'https://media.daily.dev/image/upload/s--zkEyMCOC--/f_auto/v1705675789/public/Search_Gradient';

export const cloudinaryFeedBetaTag =
  'https://media.daily.dev/image/upload/v1713111099/beta-tag_uiqqxx.svg';

export const cloudinaryPostImageCoverPlaceholder =
  'https://media.daily.dev/image/upload/s--P4t4XyoV--/f_auto/v1722860399/public/Placeholder%2001';

export const cloudinaryFeedFiltersRecommended =
  'https://media.daily.dev/image/upload/v1665224467/public/recommended.png';

export const cloudinaryFeedFiltersYourFeedDark =
  'https://media.daily.dev/image/upload/s--_0r3L1f9--/v1689662930/Your_feed_dark_ord3s0.png';

export const cloudinaryFeedFiltersYourFeedLight =
  'https://media.daily.dev/image/upload/s--n6DmR1cJ--/v1689662930/Your_feed_light_iyrsva.png';

export const cloudinaryFeedFiltersTopicsV2 =
  'https://media.daily.dev/image/upload/v1670321759/public/feed_filters_v2.svg';

export const cloudinaryFeedFiltersTopicsV3 =
  'https://media.daily.dev/image/upload/v1670321759/public/feed_filters_v3.svg';

export const cloudinaryFeedFiltersScrollDark =
  'https://media.daily.dev/image/upload/v1671199935/public/scroll_feed_filters.svg';

export const cloudinaryFeedFiltersScrollLight =
  'https://media.daily.dev/image/upload/v1687252879/Categories-WV_dhrdcy.svg';

export const cloudinaryNotificationsBig =
  'https://media.daily.dev/image/upload/public/notification_big.svg';

export const cloudinaryNotificationsBrowser =
  'https://media.daily.dev/image/upload/v1670512489/public/notification_animated.gif';

export const cloudinaryNotificationsBrowserEnabled =
  'https://media.daily.dev/image/upload/v1672124926/public/notifications_enabled.gif';

export const cloudinaryNotificationsUpvote =
  'https://media.daily.dev/image/upload/v1670251800/notifications/icons/upvote.svg';

export const cloudinaryNotificationsDaily =
  'https://media.daily.dev/image/upload/v1670251800/notifications/icons/daily.svg';

export const cloudinaryNotificationsDiscuss =
  'https://media.daily.dev/image/upload/v1670251800/notifications/icons/discuss.svg';

export const cloudinaryNotificationsBell =
  'https://media.daily.dev/image/upload/v1670251800/notifications/icons/bell.svg';

export const cloudinarySquadsDirectoryBanner =
  'https://media.daily.dev/image/upload/s--7QJfELWV--/f_auto/v1686299194/Squads_Background_z0uuvc';

export const cloudinarySquadsDirectoryFeatured =
  'https://media.daily.dev/image/upload/s--alJYtPQc--/f_auto/v1722254596/featured_svg_aowe1m';

export const cloudinarySquadsDirectoryCardBannerDefault =
  'https://media.daily.dev/image/upload/s--puRUea_K--/f_auto/v1690887143/cover-generic_blur_xny4yt';

export const cloudinarySquadsImageFallback =
  'https://media.daily.dev/image/upload/s--LrHsyt2T--/f_auto/v1692632054/squad_placeholder_sfwkmj';

export const cloudinarySquadsCreateSquadBiggerThanMobile =
  'https://media.daily.dev/image/upload/s--POqnH7nQ--/f_auto/v1722253758/Create_new_Squad_xe4jvz';

export const cloudinarySquadsCreateSquadMobile =
  'https://media.daily.dev/image/upload/s--m5ymoplf--/f_auto/v1722253758/Create_new_Squad_mobile_ciehql';

export const cloudinarySquadsTourBanner0 =
  'https://media.daily.dev/image/upload/f_auto/public/squad_tour0';

export const cloudinarySquadsTourBanner1 =
  'https://media.daily.dev/image/upload/f_auto/public/squad_tour1';

export const cloudinarySquadsTourBanner1V2 =
  'https://media.daily.dev/image/upload/f_auto/public/squad_tour1_v2';

export const cloudinarySquadsTourBanner2 =
  'https://media.daily.dev/image/upload/f_auto/public/squad_tour2';

export const cloudinarySquadsTourBanner3 =
  'https://media.daily.dev/image/upload/f_auto/public/squad_tour3';

export const cloudinarySquadsTourBanner4 =
  'https://media.daily.dev/image/upload/f_auto/public/squad_tour4';

export const cloudinarySquadsTourBanner4V2 =
  'https://media.daily.dev/image/upload/f_auto/public/squad_tour4_v2';

export const cloudinarySquadsPromotionSettings =
  'https://media.daily.dev/image/upload/s--t2gh6NPn--/f_auto/v1686119165/Customize_squad_settings_nepkhd';

export const cloudinarySquadsPromotionRemove =
  'https://media.daily.dev/image/upload/s--Eux3awhS--/f_auto/v1686120942/Remove_squad_members_jukf7z';

export const cloudinarySquadsPromotionDelete =
  'https://media.daily.dev/image/upload/s--wXug6Yop--/f_auto/v1686119164/Remove_posts_and_comments_pu3zjj';

export const cloudinarySquadsPromotionBanner =
  'https://media.daily.dev/image/upload/s--6v3E8go1--/f_auto/v1686119164/promoted-bg_k9jzgt';

export const cloudinarySquadsPromotionInvite =
  'https://media.daily.dev/image/upload/s--d3OMbTzl--/f_auto/v1686119165/Grow_your_squad_wtlbof';

export const cloudinarySquadsPromotionPromote =
  'https://media.daily.dev/image/upload/s--iMFoS7Pd--/f_auto/v1686119165/Manage_roles_and_permissions_om64cu';

export const cloudinarySquadsEmptySquad =
  'https://media.daily.dev/image/upload/f_auto/public/empty-squad';

export const cloudinarySquadsEmptySquadLight =
  'https://media.daily.dev/image/upload/f_auto/public/empty_squad_light';

export const cloudinaryReferralCampaignGenericSad =
  'https://media.daily.dev/image/upload/s--rMfJxJbl--/f_auto/v1697024846/ido_sad_xbe6p5';

export const cloudinaryReferralCampaignGenericHappy =
  'https://media.daily.dev/image/upload/s--gnompkBm--/f_auto/v1697024846/ido_happy_zfosbr';

export const cloudinaryReferralCampaignSearchBg =
  'https://media.daily.dev/image/upload/s--lYQL8anp--/f_auto/v1697393720/referral_bg_i261vi';

export const cloudinaryReferralCampaignSearchBgKeys =
  'https://media.daily.dev/image/upload/s--5Jrks80V--/v1697393719/referral_keys_bg_dregwt.svg';

export const cloudinaryReferralCampaignSearchBgPopup =
  'https://media.daily.dev/image/upload/s--FfsjTd-p--/f_auto/v1697393720/referral_bg_popup_qvmau3';

export const cloudinaryReferralCampaignSearchBgMobile =
  'https://media.daily.dev/image/upload/s--pvdAKlaQ--/f_auto/v1697393719/referral_bg_mobile_on0esi';

export const cloudinaryReferralCampaignSearchBgPopupMobile =
  'https://media.daily.dev/image/upload/s--19oBvNgw--/f_auto/v1697393719/referral_bg_popup_mobile_on7ss5';

export const cloudinaryReferralCampaignGenericReferralBackgroundDark =
  'https://media.daily.dev/image/upload/s--GBy6n7jn--/f_auto/v1685961531/public/background_Image';

export const cloudinaryReferralCampaignGenericReferralAppScreenshot =
  'https://media.daily.dev/image/upload/s--m_DzIlz0--/f_auto/v1698844735/platform_bjdgxm';

export const cloudinaryReferralCampaignGenericReferralPlayButton =
  'https://media.daily.dev/image/upload/v1698844736/play_button_h38ezx.svg';

export const cloudinaryReferralCampaignGenericReferralPurpleEdgeGlowTablet =
  'https://media.daily.dev/image/upload/v1698922944/glow_mobile_tablet_lsou4j.svg';

export const cloudinaryReferralCampaignAppScreenshot =
  'https://media.daily.dev/image/upload/s--3e8Phst3--/f_auto,q_auto/v1686045256/daily_lmzdaf';

export const cloudinaryReferralCampaignBackgroundDark =
  'https://media.daily.dev/image/upload/s--YzB9MTQz--/v1686039108/main-background_ciqmr7.svg';

export const cloudinaryReferralCampaignPurpleEdgeGlow =
  'https://media.daily.dev/image/upload/s--Va9xODJM--/v1686074969/Glow_fjelt5.svg';

export const cloudinarySearchOg =
  'https://media.daily.dev/image/upload/s--Lq4XRH5V--/f_auto/v1693378429/public/dailv.dev_-_OG_Search';

export const cloudinarySearchGradientCommon =
  'https://media.daily.dev/image/upload/s--zkEyMCOC--/f_auto/v1705675789/public/Search_Gradient';

export const cloudinaryAuthLoginDefault =
  'https://media.daily.dev/image/upload/s--AZI7rZi_--/f_auto/v1694527819/public/login';

export const cloudinaryAuthLoginSmall =
  'https://media.daily.dev/image/upload/s--OFOFLUY1--/f_auto/v1694527818/public/login_small';

export const cloudinaryOnboardingGlow =
  'https://media.daily.dev/image/upload/v1694596741/Glow_o9ehvn.svg';

export const cloudinaryOnboardingDefault =
  'https://media.daily.dev/image/upload/s--eQyhCzPZ--/f_auto/v1715169755/Master_image_mzjgot';

export const cloudinaryOnboardingFullBackgroundMobile =
  'https://media.daily.dev/image/upload/s--EwsBTBt6--/f_auto/v1716969841/dailydev_where_developers_suffer_together_mobile_shkn1w';

export const cloudinaryOnboardingFullBackgroundDesktop =
  'https://media.daily.dev/image/upload/s--r2ffZPB4--/f_auto/v1716969841/dailydev_where_developers_suffer_together_sfvfog';

export const cloudinaryGenericNotFoundLight =
  'https://media.daily.dev/image/upload/s--t81_4qLS--/f_auto/v1708330060/404-lightmode_eweviu';

export const cloudinaryGenericNotFoundDark =
  'https://media.daily.dev/image/upload/s--Rxdm7vdJ--/f_auto/v1708328512/404_z4xiwg';

export const cloudinaryGenericErrorLight =
  'https://media.daily.dev/image/upload/v1725365692/lightversion_dmnj1s.gif';

export const cloudinaryGenericErrorDark =
  'https://media.daily.dev/image/upload/v1725365692/darkversion_bfrze7.gif';

export const cloudinaryStreakSplash =
  'https://media.daily.dev/image/upload/v1705386465/Splash_v1lxjk.svg';

export const cloudinaryStreakFire =
  'https://media.daily.dev/image/upload/v1705386465/Hot_nrqvv5.svg';

export const cloudinaryStreakMigrate =
  'https://media.daily.dev/image/upload/s--ntYOqtL9--/f_auto/v1713196616/Goodbye_weekly_goals_Welcome_reading_streaks_yslqlp';

export const cloudinaryStreakLost =
  'https://media.daily.dev/image/upload/v1724664713/streak-broken_x1nno4.svg';

export const cloudinaryDevcardDefaultCoverImage =
  'https://media.daily.dev/image/upload/s--VMbOMIjj--/f_auto/v1710057765/public/DevCard-cover';

export const cloudinaryReputationPrivilegesUnlocked =
  'https://media.daily.dev/image/upload/s--6sO7fJKh--/v1709136797/image_epr7dz.svg';

export const cloudinaryPromotionsBookmarkLoops =
  'https://media.daily.dev/image/upload/s--n2t9TCqZ--/f_auto/v1713991549/public/daily';

export const cloudinaryShortcutsIconsGmail =
  'https://media.daily.dev/image/upload/s--QYLzNTIV--/f_auto/v1717506847/public/Gmail%20Shortcut';

export const cloudinaryShortcutsIconsGithubLight =
  'https://media.daily.dev/image/upload/s--M5XOonZ3--/f_auto/v1717513011/public/GitHub%20Shortcut%20-%20Light%20mode';

export const cloudinaryShortcutsIconsGithubDark =
  'https://media.daily.dev/image/upload/s--qyAG2NPK--/f_auto/v1717513011/public/GitHub%20Shortcut%20-%20Dark%20mode';

export const cloudinaryShortcutsIconsReddit =
  'https://media.daily.dev/image/upload/s--9UfrZdCc--/f_auto/v1717506847/public/Reddit%20Shortcut';

export const cloudinaryShortcutsIconsOpenai =
  'https://media.daily.dev/image/upload/s--D__WRZ3a--/f_auto/v1717506847/public/ChatGPT%20Shortcut';

export const cloudinaryShortcutsIconsStackoverflow =
  'https://media.daily.dev/image/upload/s--B_87VDub--/f_auto/v1717506847/public/Stackoverflow%20Shortcut';

export const cloudinarySourceRoadmap =
  'https://media.daily.dev/image/upload/s--91LSaHRW--/f_auto,q_auto/v1717766368/roadmap_iambav';

export const cloudinaryConfettiChecklist =
  'https://media.daily.dev/image/upload/s--C5UKgEE8--/f_auto,q_auto/v1716231116/conffeti-web_ztmag9';

export const cloudinaryConfettiChecklistBar =
  'https://media.daily.dev/image/upload/s--BNjSTWER--/f_auto,q_auto/v1716231116/conffeti-tablet-mobile_yvq4lg';

export const cloudinaryWelcomePageHeaderMainImage =
  'https://media.daily.dev/image/upload/s--jn7-qwCj--/f_auto,q_auto/v1721136180/public/daily-to-dev-suffer-together';

export const cloudinaryIntegrationsSlackHeaderLight =
  'https://media.daily.dev/image/upload/s--5PV2NbVq--/f_auto,q_auto/v1721634746/public/Connection%20image%20-%20Light';

export const cloudinaryIntegrationsSlackHeaderDark =
  'https://media.daily.dev/image/upload/s--zzudPNtR--/f_auto,q_auto/v1721634746/public/Connection%20image%20-%20Dark';

export const cloudinaryTopReaderBadgeBackground =
  'https://media.daily.dev/image/upload/v1730888952/webapp/topReaderBadgeBackground.svg';
export const cloudinaryPlusBackground =
  'https://daily-now-res.cloudinary.com/image/upload/s--yGWFYjgW--/f_auto/v1731589143/Upgrade_to_plus_4_1_rketmz';

export const cloudinaryAuthBannerBackground =
  'https://daily-now-res.cloudinary.com/image/upload/s--lf8LUJjq--/f_auto/v1732012913/login-popover-dailydev_mxb7lw';
export const cloudinaryAuthBannerBackground1920w =
  'https://daily-now-res.cloudinary.com/image/upload/s--lf8LUJjq--/c_auto,g_center,w_1920/f_auto//v1732012913/login-popover-dailydev_mxb7lw';

export const cloudinaryAuthBannerBackground1440w =
  'https://daily-now-res.cloudinary.com/image/upload/s--lf8LUJjq--/c_auto,g_center,w_1440/f_auto//v1732012913/login-popover-dailydev_mxb7lw';

export const cloudinaryPWA =
  'https://daily-now-res.cloudinary.com/image/upload/s--_kFKAft3--/f_auto/v1735045791/web_-_safari_j52hcx';

export const cloudinaryPWAChrome =
  'https://daily-now-res.cloudinary.com/image/upload/s--6ajr-Fje--/f_auto/v1735045791/web_-_chrome_we4vak';

export const cloudinaryPWAVideo =
  'https://daily-now-res.cloudinary.com/video/upload/s--gN1-dqeq--/v1735029367/web_-_safari_e3wes4.mp4';

export const cloudinaryPWAVideoChrome =
  'https://daily-now-res.cloudinary.com/video/upload/s--RD5n9hm9--/v1735044247/web_-_chrome_xavter.mp4';

export const cloudinaryOnboardingExtension = {
  chrome: {
    default:
      'https://res.cloudinary.com/daily-now/image/upload/s--HjgXzokn--/c_scale,h_360,w_820/f_auto/dailydev-extenstion-mindblown_ggmkfg',
    retina:
      'https://res.cloudinary.com/daily-now/image/upload/s--HjgXzokn--/f_auto/dailydev-extenstion-mindblown_ggmkfg',
  },
  edge: {
    default:
      'https://res.cloudinary.com/daily-now/image/upload/s--kvj5ZB_s--/c_scale,h_360,w_820/f_auto/dailydev-extenstion-mindblown-edge_svb0kv',
    retina:
      'https://res.cloudinary.com/daily-now/image/upload/s--kvj5ZB_s--/f_auto/dailydev-extenstion-mindblown-edge_svb0kv',
  },
};

export const cloudinaryAddToHomeScreen =
  'https://daily-now-res.cloudinary.com/image/upload/s--Ml_3MSzc--/f_auto/v1733037697/add_to_home_screen_mddvzw';

export const cloudinaryAndroidApp =
  'https://daily-now-res.cloudinary.com/image/upload/s--IEq-BTWL--/f_auto/v1733066824/dailydev_pwa_peqr8o';

export const advancedCustomFeedSoonImage =
  'https://daily-now-res.cloudinary.com/image/upload/s--1ITlYroY--/f_auto/v1733239487/Advanced_custom_feeds_mfimpv';

export const bookmarkFolderSoonImage =
  'https://daily-now-res.cloudinary.com/image/upload/s--_jM3zDSE--/f_auto/v1733239852/daily_dev_bookmarks_folders_fsughm';

export const clickbaitShieldModalImage =
  'https://daily-now-res.cloudinary.com/image/upload/s--GWqpMG8r--/f_auto/v1732802237/Streak_together_with_a_friend_1_1_pwoill';

export const smallPostImage = (url: string): string => {
  if (!url) {
    return cloudinaryPostImageCoverPlaceholder;
  }

  return url.replace('/f_auto,q_auto/', '/c_fill,f_auto,q_auto,w_192/');
};
