{
  "name": "PontX - Sistema de Ponto",
  "short_name": "PontX",
  "description": "PontX - Sistema de Controle de Ponto e Gestão de Frequência",
  "start_url": "/",
  "id": "/",
  "display": "standalone",
  "display_override": ["standalone", "minimal-ui"],
  "background_color": "#ffffff",
  "theme_color": "#3b82f6",
  "orientation": "portrait-primary",
  "scope": "/",
  "lang": "pt-BR",
  "dir": "ltr",
  "icons": [
    {
      "src": "/icon-192.png",
      "sizes": "192x192",
      "type": "image/png",
      "purpose": "any"
    },
    {
      "src": "/icon-192-maskable.png",
      "sizes": "192x192",
      "type": "image/png",
      "purpose": "maskable"
    },
    {
      "src": "/icon-512.png",
      "sizes": "512x512",
      "type": "image/png",
      "purpose": "any"
    },
    {
      "src": "/icon-512-maskable.png",
      "sizes": "512x512",
      "type": "image/png",
      "purpose": "maskable"
    }
  ],
  "categories": ["business", "productivity"],
  "screenshots": [],
  "shortcuts": [
    {
      "name": "Portal do Funcionário",
      "short_name": "Portal",
      "description": "Acessar portal do funcionário",
      "url": "/portal",
      "icons": [{
        "src": "/icon-192.png",
        "sizes": "192x192"
      }]
    },
    {
      "name": "Registrar Ponto",
      "short_name": "Ponto",
      "description": "Registrar ponto facial",
      "url": "/portal/ponto",
      "icons": [{
        "src": "/icon-192.png",
        "sizes": "192x192"
      }]
    },
    {
      "name": "Scanner de Ponto",
      "short_name": "Scanner",
      "description": "Abrir scanner de ponto (Admin)",
      "url": "/scanner",
      "icons": [{
        "src": "/icon-192.png",
        "sizes": "192x192"
      }]
    },
    {
      "name": "Dashboard",
      "short_name": "Dashboard",
      "description": "Ver estatísticas (Admin)",
      "url": "/",
      "icons": [{
        "src": "/icon-192.png",
        "sizes": "192x192"
      }]
    }
  ],
  "file_handlers": [
    {
      "action": "/import",
      "accept": {
        "text/csv": [".csv"],
        "application/vnd.ms-excel": [".xls"],
        "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": [".xlsx"]
      },
      "icons": [{
        "src": "/icon-192.png",
        "sizes": "192x192",
        "type": "image/png"
      }],
      "launch_type": "single-client"
    }
  ],
  "launch_handler": {
    "client_mode": ["navigate-existing", "auto"]
  },
  "protocol_handlers": [
    {
      "protocol": "web+pontx",
      "url": "/handle-protocol?url=%s"
    },
    {
      "protocol": "web+ponto",
      "url": "/portal/punch?ref=%s"
    }
  ],
  "prefer_related_applications": false,
  "related_applications": [
    {
      "platform": "play",
      "url": "https://play.google.com/store/apps/details?id=br.com.ondeline.rh.twa",
      "id": "br.com.ondeline.rh.twa"
    },
    {
      "platform": "windows",
      "url": "https://www.microsoft.com/store/apps/pontx"
    }
  ],
  "widgets": [
    {
      "name": "PontX Status",
      "short_name": "Status",
      "description": "Widget de status do ponto",
      "tag": "pontx-status",
      "ms_ac_template": "/widgets/status-template.json",
      "data": "/api/portal/widget-data",
      "type": "application/json",
      "icons": [{
        "src": "/icon-192.png",
        "sizes": "192x192",
        "type": "image/png"
      }],
      "screenshots": [],
      "backgrounds": [
        { "src": "/widget-bg-light.png" },
        { "src": "/widget-bg-dark.png" }
      ]
    }
  ],
  "edge_side_panel": {
    "preferred_width": 400
  },
  "note_taking": {
    "new_note_url": "/notes/new"
  },
  "scope_extensions": [
    { "origin": "https://*.pontx.app" },
    { "origin": "https://api.pontx.app" }
  ],
  "handle_links": "preferred",
  "capture_links": "existing-client-navigate",
  "share_target": {
    "action": "/share-target",
    "method": "POST",
    "enctype": "multipart/form-data",
    "params": {
      "title": "title",
      "text": "text",
      "url": "url",
      "files": [
        {
          "name": "media",
          "accept": ["image/*", "text/csv"]
        }
      ]
    }
  }
}
