script(type="module" src="https://cdn.skypack.dev/@startinblox/core@0.14" defer)
//- script(type="module" src="/lib/sib-core/dist/index.js" defer)

script(type="module" src="https://cdn.skypack.dev/@startinblox/oidc@0.13.2" defer)
//- script(type="module" src="/lib/sib-auth/index.js" defer)

script(type="module" src="https://cdn.skypack.dev/@startinblox/router@0.11" defer)
//- script(type="module" src="/lib/sib-router/src/index.js" defer)

script(type="module" src="https://cdn.skypack.dev/@startinblox/component-notifications@0.9" defer)
//- script(type="module" src="/lib/sib-notifications/index.js" defer)

if themeChecker
    script(src="https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/pickr.min.js")
    link(rel='stylesheet', href='https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/themes/nano.min.css')

if endpoints.get
  if endpoints.get.events && endpoints.get.typeevents
    script(type="module" src="https://cdn.skypack.dev/@startinblox/component-event@1.4" defer)
    //- script(type="module" src="/lib/sib-event-component/sib-event.js" defer)

  if endpoints.get.resources && endpoints.get.resourceskeywords && endpoints.get.resourcestypes
    script(type="module" src="https://cdn.skypack.dev/@startinblox/component-resource@1.2" defer)
    //- script(type="module" src="/lib/sib-resource/sib-resource.js" defer)

  if endpoints.get.joboffers
    script(type="module" src="https://cdn.skypack.dev/@startinblox/component-job-board@1.3" defer)
    //- script(type="module" src="/lib/solid-job-board/dist/index.js" defer)

  if endpoints.get.uploads && endpoints.get.skills && endpoints.get.users
    script(type="module" src="https://cdn.skypack.dev/@startinblox/component-directory@1.4" defer)
    //- script(type="module" src="/lib/solid-directory/dist/index.js" defer)

  if endpoints.get.dashboards
    script(type="module" src="https://cdn.skypack.dev/@startinblox/component-dashboard@0.7" defer)
    //- script(type="module" src="/lib/solid-dashboard/dist/index.js" defer)

  if endpoints.get.users
    script(type="module" src="https://cdn.skypack.dev/@startinblox/component-chat@1.7" defer)
    //- script(type="module" src="/lib/solid-xmpp-chat/dist/index.js" defer)

  if endpoints.get.polls
    script(type="module" src="https://cdn.skypack.dev/@startinblox/component-poll@1.2" defer)
    //- script(type="module" src="/lib/sib-polls-component/index.js" defer)

  if endpoints.get.polls || endpoints.get.events || endpoints.get.resources
    script(type="module" src="https://cdn.skypack.dev/@startinblox/component-conversation@0.8" defer)
