<!-- app/views/layouts/application.html.erb -->
<!DOCTYPE html>
<html>
  <head>
    <title>Acme Rails App</title>
    <%= csrf_meta_tags %>
    <%= csp_meta_tag %>
    <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
    <%= javascript_importmap_tags %>
  </head>

  <body>
    <%= yield %>

    <script src="https://www.smart365guide.com/downloads/desktop-sdk/smart365guide-desktop.js"></script>
    <script>
      Smart365GuideDesktop.init({
        licenseKey: "<%= Rails.application.credentials.dig(:smart365guide, :license_key) || 'lk_your_license_key' %>",
        endpoint: "https://www.smart365guide.com",
        appName: "Acme Rails App",
        platform: "browser",
        language: "ruby",
        framework: "rails"
      });
    </script>
  </body>
</html>
