{"version":3,"file":"direction-link.js","sourceRoot":"","sources":["../../../../design/src/utilities/direction-link.ts"],"names":[],"mappings":";AAAA,MAAM,CAAC,cAAc,GAAG,SAAS,YAAY,CAAC,GAAW,EAAE,GAAW;IACpE;IACE,yCAAyC;IACzC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC1C,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACxC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAExC,MAAM,CAAC,IAAI,CAAC,qCAAqC,GAAG,IAAI,GAAG,UAAU,CAAC,CAAC;IACzE,qBAAqB;QACnB,MAAM,CAAC,IAAI,CACT,mDAAmD,GAAG,KAAK,GAAG,EAAE,CACjE,CAAC;AACN,CAAC,CAAC","sourcesContent":["window.mapsSelectorFn = function mapsSelector(lat: string, lng: string) {\r\n if (\r\n /* if we're on iOS, open in Apple Maps */\r\n navigator.platform.indexOf('iPhone') != -1 ||\r\n navigator.platform.indexOf('iPad') != -1 ||\r\n navigator.platform.indexOf('iPod') != -1\r\n )\r\n window.open(`maps://maps.google.com/maps?daddr=${lat},${lng}&ll=`);\r\n /* else use Google */ else\r\n window.open(\r\n `https://www.google.com/maps/search/?api=1&query=${lat}, ${lng}`\r\n );\r\n};\r\n"]}