{"version":3,"file":"app_link-8a5cd07c.js","sources":["../../../app/javascript/entrypoints/app_link.js"],"sourcesContent":["\"use strict\";\n\n// OS判定でリンクを振り分ける\n$(function() {\n const userAgent = window.navigator.userAgent.toLowerCase();\n // AppStoreリンク\n let redirectPass_ios = 'https://apps.apple.com/jp/app/id6472152375';\n // GooglePlayリンク\n let redirectPass_android = 'https://play.google.com/store/apps/details?id=com.libecity.app.skillmarket.meets&hl=ja';\n\n if (userAgent.indexOf(\"android\") !== -1) {\n if (userAgent.indexOf('mobile') !== -1) {\n // Androidの場合\n location.href = redirectPass_android;\n } else {\n alert('スマートフォンからアクセスしてください');\n }\n } else if (userAgent.indexOf(\"iphone\") !== -1) {\n // iPhoneの場合\n location.href = redirectPass_ios;\n } else if (userAgent.indexOf(\"ipad\") > -1 || userAgent.indexOf('macintosh') > -1 && 'ontouchend' in document) {\n // iPadの場合\n location.href = redirectPass_ios;\n } else {\n alert('スマートフォンからアクセスしてください');\n };\n});"],"names":["userAgent","redirectPass_ios","redirectPass_android"],"mappings":"AAGA,EAAE,UAAW,CACX,MAAMA,EAAY,OAAO,UAAU,UAAU,YAAW,EAExD,IAAIC,EAAmB,6CAEnBC,EAAuB,yFAEvBF,EAAU,QAAQ,SAAS,IAAM,GAC/BA,EAAU,QAAQ,QAAQ,IAAM,GAElC,SAAS,KAAOE,EAEhB,MAAM,qBAAqB,EAEpBF,EAAU,QAAQ,QAAQ,IAAM,IAGhCA,EAAU,QAAQ,MAAM,EAAI,IAAMA,EAAU,QAAQ,WAAW,EAAI,IAAM,eAAgB,SADlG,SAAS,KAAOC,EAKhB,MAAM,qBAAqB,CAE/B,CAAC"}