@flyo/nitro-astro 1.4.4 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cdn.ts CHANGED
@@ -5,9 +5,14 @@ import type { ExternalImageService, ImageTransform } from "astro";
5
5
 
6
6
  const service: ExternalImageService = {
7
7
  getURL(options: ImageTransform) {
8
-
9
8
  // check if the options.src contains already https://storage.flyo.cloud
10
- let url = options.src.includes('https://storage.flyo.cloud') ? options.src : `https://storage.flyo.cloud/${options.src}`
9
+ // if not we add it to the url
10
+
11
+ let url =
12
+ typeof options.src === "string" &&
13
+ options.src.includes("https://storage.flyo.cloud")
14
+ ? options.src
15
+ : `https://storage.flyo.cloud/${options.src}`;
11
16
 
12
17
  // if either width or height are defined we add the /thumb/$widthx$height path to it.
13
18
  let width: string | number | null = options.width ? options.width : null;
@@ -15,15 +20,15 @@ const service: ExternalImageService = {
15
20
 
16
21
  if (width || height) {
17
22
  if (width === null) {
18
- width = 'null';
23
+ width = "null";
19
24
  }
20
25
  if (height === null) {
21
- height = 'null';
26
+ height = "null";
22
27
  }
23
28
  url += `/thumb/${width}x${height}`;
24
29
  }
25
-
26
- const format = options.format ? options.format : 'webp';
30
+
31
+ const format = options.format ? options.format : "webp";
27
32
 
28
33
  return `${url}?format=${format}`;
29
34
  },
@@ -34,10 +39,10 @@ const service: ExternalImageService = {
34
39
  ...attributes,
35
40
  width: options.width ?? null, // width and height are required to prevent CLS and enable lazy loading for chrome.
36
41
  height: options.height ?? null, // width and height are required to prevent CLS and enable lazy loading for chrome.
37
- loading: options.loading ?? 'lazy',
38
- decoding: options.decoding ?? 'async',
42
+ loading: options.loading ?? "lazy",
43
+ decoding: options.decoding ?? "async",
39
44
  };
40
- }
45
+ },
41
46
  };
42
47
 
43
- export default service;
48
+ export default service;
@@ -1,16 +1,13 @@
1
1
  ---
2
- import FlyoNitroBlock from './FlyoNitroBlock.astro';
2
+ import FlyoNitroBlock from "./FlyoNitroBlock.astro";
3
3
 
4
4
  interface Props {
5
- slot: {
6
- content?: object[]; // Add the content property with type object[]
7
- };
5
+ slot: {
6
+ content?: object[]; // Add the content property with type object[]
7
+ };
8
8
  }
9
9
 
10
- const { slot } = Astro.props
11
-
10
+ const { slot } = Astro.props;
12
11
  ---
13
12
 
14
- {slot?.content?.map((block: object) => (
15
- <FlyoNitroBlock block={block} />
16
- ))}
13
+ {slot?.content?.map((block: object) => <FlyoNitroBlock block={block} />)}
@@ -1,2 +1,2 @@
1
- import BlockSlot from "./BlockSlot.astro"
2
- export default BlockSlot
1
+ import BlockSlot from "./BlockSlot.astro";
2
+ export default BlockSlot;
@@ -1,12 +1,21 @@
1
1
  ---
2
- import { Block } from '@flyo/nitro-typescript';
2
+ import { Block } from "@flyo/nitro-typescript";
3
+ import { useFlyoIntegration } from "./../index.ts";
3
4
  interface Props {
4
- block: Block
5
+ block: Block;
5
6
  }
6
7
 
7
- const { block } = Astro.props
8
+ const { block } = Astro.props;
9
+
10
+ const isLiveEdit = useFlyoIntegration().options.liveEdit || false;
11
+ const folder = useFlyoIntegration().options.componentsDir;
8
12
  ---
9
13
 
10
- <div style="margin: 20px 0; padding: 10px; border-radius: 5px; background-color: #DC143C; color: white;">
11
- Can't find <strong>{block.component}</strong> in the Projects component folder.
12
- </div>
14
+ {
15
+ isLiveEdit && (
16
+ <div style="margin: 20px 0; padding: 10px; border-radius: 5px; background-color: #DC143C; color: white;">
17
+ Can't find <strong>{block.component}.astro</strong> file in the folder{" "}
18
+ <strong>{folder}</strong>, please make sure the component exists.
19
+ </div>
20
+ )
21
+ }
@@ -1,2 +1,2 @@
1
- import FallbackComponent from "./FallbackComponent.astro"
2
- export default FallbackComponent
1
+ import FallbackComponent from "./FallbackComponent.astro";
2
+ export default FallbackComponent;
@@ -1,30 +1,27 @@
1
1
  ---
2
- import * as components from 'virtual:flyo-components'
3
- import type { AstroComponentFactory } from "astro/dist/runtime/server"
4
- import camelcase from "camelcase"
5
- import { Block } from '@flyo/nitro-typescript';
2
+ import * as components from "virtual:flyo-components";
3
+ import type { AstroComponentFactory } from "astro/dist/runtime/server";
4
+ import camelcase from "camelcase";
5
+ import { Block } from "@flyo/nitro-typescript";
6
6
 
7
7
  interface Props {
8
- block: Block;
9
- [prop: string]: unknown;
8
+ block: Block;
9
+ [prop: string]: unknown;
10
10
  }
11
11
 
12
12
  const { block, ...props } = Astro.props;
13
13
 
14
14
  /* @vite-ignore */
15
- let Component: AstroComponentFactory | null = null
15
+ let Component: AstroComponentFactory | null = null;
16
16
 
17
17
  const key: string = camelcase(block.component as string);
18
- const componentFound : boolean = key in components
18
+ const componentFound: boolean = key in components;
19
19
 
20
20
  if (componentFound) {
21
- Component = components[key]
21
+ Component = components[key];
22
22
  } else {
23
- Component = components.fallback
23
+ Component = components.fallback;
24
24
  }
25
-
26
25
  ---
27
26
 
28
- {
29
- Component && <Component block={block} {...props} />
30
- }
27
+ {Component && <Component block={block} {...props} />}
@@ -1,2 +1,2 @@
1
1
  import FlyoNitroBlock from "./FlyoNitroBlock.astro";
2
- export default FlyoNitroBlock;
2
+ export default FlyoNitroBlock;
@@ -1,16 +1,12 @@
1
1
  ---
2
- import { Page } from '@flyo/nitro-typescript';
3
- import FlyoNitroBlock from './FlyoNitroBlock.astro';
4
-
2
+ import { Page } from "@flyo/nitro-typescript";
3
+ import FlyoNitroBlock from "./FlyoNitroBlock.astro";
5
4
 
6
5
  interface Props {
7
- page: Page;
6
+ page: Page;
8
7
  }
9
8
 
10
- const { page } = Astro.props
11
-
9
+ const { page } = Astro.props;
12
10
  ---
13
11
 
14
- {page?.json?.map((block: object) => (
15
- <FlyoNitroBlock block={block} />
16
- ))}
12
+ {page?.json?.map((block: object) => <FlyoNitroBlock block={block} />)}
@@ -1,2 +1,2 @@
1
1
  import FlyoNitroPage from "./FlyoNitroPage.astro";
2
- export default FlyoNitroPage;
2
+ export default FlyoNitroPage;
@@ -2,23 +2,34 @@
2
2
  const { title, image, description, jsonld } = Astro.props;
3
3
  const jsonLdString = jsonld ? JSON.stringify(jsonld) : null;
4
4
  ---
5
- {title && (
6
- <meta name="title" content={title} />
7
- <meta property="og:title" content={title} />
8
- <meta name="twitter:title" content={title} />
9
- )}
10
- {description && (
11
- <meta name="description" content={description} />
12
- <meta property="og:description" content={description} />
13
- <meta name="twitter:description" content={description} />
14
- )}
15
- {image && (
16
- <meta name="image" content={image} />
17
- <meta property="og:image" content={image} />
18
- <meta name="twitter:image" content={image} />
19
- )}
20
- {jsonLdString && (
21
- <script type="application/ld+json" set:html={ jsonLdString } />
22
- )}
5
+
6
+ {
7
+ title && (
8
+ <>
9
+ <meta name="title" content={title} />
10
+ <meta property="og:title" content={title} />
11
+ <meta name="twitter:title" content={title} />
12
+ </>
13
+ )
14
+ }
15
+ {
16
+ description && (
17
+ <>
18
+ <meta name="description" content={description} />
19
+ <meta property="og:description" content={description} />
20
+ <meta name="twitter:description" content={description} />
21
+ </>
22
+ )
23
+ }
24
+ {
25
+ image && (
26
+ <>
27
+ <meta name="image" content={image} />
28
+ <meta property="og:image" content={image} />
29
+ <meta name="twitter:image" content={image} />
30
+ </>
31
+ )
32
+ }
33
+ {jsonLdString && <script type="application/ld+json" set:html={jsonLdString} />}
23
34
  <meta property="og:type" content="website" />
24
- <meta name="twitter:card" content="summary_large_image" />
35
+ <meta name="twitter:card" content="summary_large_image" />
@@ -1,2 +1,2 @@
1
1
  import MetaInfo from "./MetaInfo.astro";
2
- export default MetaInfo;
2
+ export default MetaInfo;
@@ -1,13 +1,17 @@
1
1
  ---
2
- import { Entity } from '@flyo/nitro-typescript';
3
- import MetaInfo from './MetaInfo.astro';
4
-
2
+ import { Entity } from "@flyo/nitro-typescript";
3
+ import MetaInfo from "./MetaInfo.astro";
5
4
 
6
5
  interface Props {
7
- response: Entity;
6
+ response: Entity;
8
7
  }
9
8
 
10
- const { response } = Astro.props
11
-
9
+ const { response } = Astro.props;
12
10
  ---
13
- <MetaInfo title={response.entity?.entity_title} description={response.entity?.entity_teaser} image={response.entity?.entity_image} jsonld={response.jsonld} />
11
+
12
+ <MetaInfo
13
+ title={response.entity?.entity_title}
14
+ description={response.entity?.entity_teaser}
15
+ image={response.entity?.entity_image}
16
+ jsonld={response.jsonld}
17
+ />
@@ -1,2 +1,2 @@
1
1
  import MetaInfoEntity from "./MetaInfoEntity.astro";
2
- export default MetaInfoEntity;
2
+ export default MetaInfoEntity;
@@ -1,13 +1,16 @@
1
1
  ---
2
- import { Page } from '@flyo/nitro-typescript';
3
- import MetaInfo from './MetaInfo.astro';
4
-
2
+ import { Page } from "@flyo/nitro-typescript";
3
+ import MetaInfo from "./MetaInfo.astro";
5
4
 
6
5
  interface Props {
7
- page: Page;
6
+ page: Page;
8
7
  }
9
8
 
10
- const { page } = Astro.props
11
-
9
+ const { page } = Astro.props;
12
10
  ---
13
- <MetaInfo title={page.meta_json?.title} description={page.meta_json?.description} image={page.meta_json?.image}/>
11
+
12
+ <MetaInfo
13
+ title={page.meta_json?.title}
14
+ description={page.meta_json?.description}
15
+ image={page.meta_json?.image}
16
+ />
@@ -1,2 +1,2 @@
1
1
  import MetaInfoPage from "./MetaInfoPage.astro";
2
- export default MetaInfoPage;
2
+ export default MetaInfoPage;
@@ -1,12 +1,51 @@
1
- (function(f,g){typeof exports=="object"&&typeof module<"u"?g(exports):typeof define=="function"&&define.amd?define(["exports"],g):(f=typeof globalThis<"u"?globalThis:f||self,g(f.flyoNitroIntegration={}))})(this,function(f){"use strict";const g="https://api.flyo.cloud/nitro/v1".replace(/\/+$/,"");class K{constructor(t={}){this.configuration=t}set config(t){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:g}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||E}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const t=this.configuration.apiKey;if(t)return typeof t=="function"?t:()=>t}get accessToken(){const t=this.configuration.accessToken;if(t)return typeof t=="function"?t:async()=>t}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const N=new K,q=class x{constructor(t=N){this.configuration=t,this.fetchApi=async(i,o)=>{let a={url:i,init:o};for(const s of this.middleware)s.pre&&(a=await s.pre({fetch:this.fetchApi,...a})||a);let r;try{r=await(this.configuration.fetchApi||fetch)(a.url,a.init)}catch(s){for(const u of this.middleware)u.onError&&(r=await u.onError({fetch:this.fetchApi,url:a.url,init:a.init,error:s,response:r?r.clone():void 0})||r);if(r===void 0)throw s instanceof Error?new F(s,"The request failed and the interceptors did not return an alternative response"):s}for(const s of this.middleware)s.post&&(r=await s.post({fetch:this.fetchApi,url:a.url,init:a.init,response:r.clone()})||r);return r},this.middleware=t.middleware}withMiddleware(...t){const i=this.clone();return i.middleware=i.middleware.concat(...t),i}withPreMiddleware(...t){const i=t.map(o=>({pre:o}));return this.withMiddleware(...i)}withPostMiddleware(...t){const i=t.map(o=>({post:o}));return this.withMiddleware(...i)}isJsonMime(t){return t?x.jsonRegex.test(t):!1}async request(t,i){const{url:o,init:a}=await this.createFetchParams(t,i),r=await this.fetchApi(o,a);if(r&&r.status>=200&&r.status<300)return r;throw new B(r,"Response returned an error code")}async createFetchParams(t,i){let o=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(o+="?"+this.configuration.queryParamsStringify(t.query));const a=Object.assign({},this.configuration.headers,t.headers);Object.keys(a).forEach(v=>a[v]===void 0?delete a[v]:{});const r=typeof i=="function"?i:async()=>i,s={method:t.method,headers:a,body:t.body,credentials:this.configuration.credentials},u={...s,...await r({init:s,context:t})};let c;$(u.body)||u.body instanceof URLSearchParams||O(u.body)?c=u.body:this.isJsonMime(a["Content-Type"])?c=JSON.stringify(u.body):c=u.body;const d={...u,body:c};return{url:o,init:d}}clone(){const t=this.constructor,i=new t(this.configuration);return i.middleware=this.middleware.slice(),i}};q.jsonRegex=new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i");let h=q;function O(e){return typeof Blob<"u"&&e instanceof Blob}function $(e){return typeof FormData<"u"&&e instanceof FormData}class B extends Error{constructor(t,i){super(i),this.response=t,this.name="ResponseError"}}class F extends Error{constructor(t,i){super(i),this.cause=t,this.name="FetchError"}}class m extends Error{constructor(t,i){super(i),this.field=t,this.name="RequiredError"}}function n(e,t){return e[t]!=null}function E(e,t=""){return Object.keys(e).map(i=>R(i,e[i],t)).filter(i=>i.length>0).join("&")}function R(e,t,i=""){const o=i+(i.length?`[${e}]`:e);if(t instanceof Array){const a=t.map(r=>encodeURIComponent(String(r))).join(`&${encodeURIComponent(o)}=`);return`${encodeURIComponent(o)}=${a}`}if(t instanceof Set){const a=Array.from(t);return R(e,a,i)}return t instanceof Date?`${encodeURIComponent(o)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?E(t,o):`${encodeURIComponent(o)}=${encodeURIComponent(String(t))}`}function w(e,t){return Object.keys(e).reduce((i,o)=>({...i,[o]:t(e[o])}),{})}class p{constructor(t,i=o=>o){this.raw=t,this.transformer=i}async value(){return this.transformer(await this.raw.json())}}function M(e){return D(e)}function D(e,t){return e==null?e:{identifier:n(e,"identifier")?e.identifier:void 0,content:n(e,"content")?e.content.map(C):void 0}}function C(e){return G(e)}function G(e,t){return e==null?e:{items:n(e,"items")?e.items:void 0,content:n(e,"content")?e.content:void 0,config:n(e,"config")?e.config:void 0,identifier:n(e,"identifier")?e.identifier:void 0,uid:n(e,"uid")?e.uid:void 0,component:n(e,"component")?e.component:void 0,slots:n(e,"slots")?w(e.slots,M):void 0}}function A(e){return J(e)}function J(e,t){return e==null?e:{type:n(e,"type")?e.type:void 0,target:n(e,"target")?e.target:void 0,label:n(e,"label")?e.label:void 0,href:n(e,"href")?e.href:void 0,slug:n(e,"slug")?e.slug:void 0,properties:n(e,"properties")?e.properties:void 0,children:n(e,"children")?e.children.map(A):void 0}}function V(e){return W(e)}function W(e,t){return e==null?e:{items:n(e,"items")?e.items.map(A):void 0,uid:n(e,"uid")?e.uid:void 0,identifier:n(e,"identifier")?e.identifier:void 0,label:n(e,"label")?e.label:void 0}}function z(e){return Q(e)}function Q(e,t){return e==null?e:{domain:n(e,"domain")?e.domain:void 0,slug:n(e,"slug")?e.slug:void 0,version:n(e,"version")?e.version:void 0,updated_at:n(e,"updated_at")?e.updated_at:void 0,language:n(e,"language")?e.language:void 0}}function H(e){return X(e)}function X(e,t){return e==null?e:{nitro:n(e,"nitro")?z(e.nitro):void 0,pages:n(e,"pages")?e.pages:void 0,containers:n(e,"containers")?w(e.containers,V):void 0,globals:n(e,"globals")?e.globals:void 0}}function Z(e){return Y(e)}function Y(e,t){return e==null?e:{api:n(e,"api")?e.api:void 0,image:n(e,"image")?e.image:void 0}}function ee(e){return te(e)}function te(e,t){return e==null?e:{_version:n(e,"_version")?e._version:void 0,entity_metric:n(e,"entity_metric")?Z(e.entity_metric):void 0,entity_unique_id:n(e,"entity_unique_id")?e.entity_unique_id:void 0,entity_id:n(e,"entity_id")?e.entity_id:void 0,entity_image:n(e,"entity_image")?e.entity_image:void 0,entity_slug:n(e,"entity_slug")?e.entity_slug:void 0,entity_teaser:n(e,"entity_teaser")?e.entity_teaser:void 0,entity_time_end:n(e,"entity_time_end")?e.entity_time_end:void 0,entity_time_start:n(e,"entity_time_start")?e.entity_time_start:void 0,entity_title:n(e,"entity_title")?e.entity_title:void 0,entity_type:n(e,"entity_type")?e.entity_type:void 0,entity_type_id:n(e,"entity_type_id")?e.entity_type_id:void 0,updated_at:n(e,"updated_at")?e.updated_at:void 0,routes:n(e,"routes")?e.routes:void 0}}function k(e){return ie(e)}function ie(e,t){return e==null?e:{entity:n(e,"entity")?ee(e.entity):void 0,model:n(e,"model")?e.model:void 0,language:n(e,"language")?e.language:void 0,jsonld:n(e,"jsonld")?e.jsonld:void 0}}function I(e){return ne(e)}function ne(e,t){return e==null?e:{entity_unique_id:n(e,"entity_unique_id")?e.entity_unique_id:void 0,entity_title:n(e,"entity_title")?e.entity_title:void 0,entity_teaser:n(e,"entity_teaser")?e.entity_teaser:void 0,entity_slug:n(e,"entity_slug")?e.entity_slug:void 0,entity_time_start:n(e,"entity_time_start")?e.entity_time_start:void 0,entity_type:n(e,"entity_type")?e.entity_type:void 0,entity_type_id:n(e,"entity_type_id")?e.entity_type_id:void 0,entity_image:n(e,"entity_image")?e.entity_image:void 0,routes:n(e,"routes")?e.routes:void 0}}function oe(e){return re(e)}function re(e,t){return e==null?e:{description:n(e,"description")?e.description:void 0,image:n(e,"image")?e.image:void 0,title:n(e,"title")?e.title:void 0}}function ae(e){return se(e)}function se(e,t){return e==null?e:{slug:n(e,"slug")?e.slug:void 0,title:n(e,"title")?e.title:void 0}}function ue(e){return ce(e)}function ce(e,t){return e==null?e:{value:n(e,"value")?e.value:void 0,navigation:n(e,"navigation")?e.navigation:void 0,propagate:n(e,"propagate")?e.propagate:void 0}}function S(e){return le(e)}function le(e,t){return e==null?e:{id:n(e,"id")?e.id:void 0,title:n(e,"title")?e.title:void 0,href:n(e,"href")?e.href:void 0,slug:n(e,"slug")?e.slug:void 0,json:n(e,"json")?e.json.map(C):void 0,depth:n(e,"depth")?e.depth:void 0,is_home:n(e,"is_home")?e.is_home:void 0,created_at:n(e,"created_at")?e.created_at:void 0,updated_at:n(e,"updated_at")?e.updated_at:void 0,is_visible:n(e,"is_visible")?e.is_visible:void 0,meta_json:n(e,"meta_json")?oe(e.meta_json):void 0,properties:n(e,"properties")?w(e.properties,ue):void 0,uid:n(e,"uid")?e.uid:void 0,type:n(e,"type")?e.type:void 0,target:n(e,"target")?e.target:void 0,container:n(e,"container")?e.container:void 0,breadcrumb:n(e,"breadcrumb")?e.breadcrumb.map(ae):void 0}}function de(e){return fe(e)}function fe(e,t){return e==null?e:{version:n(e,"version")?e.version:void 0,updated_at:n(e,"updated_at")?e.updated_at:void 0}}class pe extends h{async configRaw(t){const i={},o={};this.configuration&&this.configuration.apiKey&&(i.token=this.configuration.apiKey("token"));const a=await this.request({path:"/config",method:"GET",headers:o,query:i},t);return new p(a,r=>H(r))}async config(t){return await(await this.configRaw(t)).value()}}class ye extends h{async entityBySlugRaw(t,i){if(t.slug===null||t.slug===void 0)throw new m("slug","Required parameter requestParameters.slug was null or undefined when calling entityBySlug.");const o={};t.typeId!==void 0&&(o.typeId=t.typeId);const a={};this.configuration&&this.configuration.apiKey&&(o.token=this.configuration.apiKey("token"));const r=await this.request({path:"/entities/slug/{slug}".replace("{slug}",encodeURIComponent(String(t.slug))),method:"GET",headers:a,query:o},i);return new p(r,s=>k(s))}async entityBySlug(t,i){return await(await this.entityBySlugRaw(t,i)).value()}async entityByUniqueidRaw(t,i){if(t.uniqueid===null||t.uniqueid===void 0)throw new m("uniqueid","Required parameter requestParameters.uniqueid was null or undefined when calling entityByUniqueid.");const o={},a={};this.configuration&&this.configuration.apiKey&&(o.token=this.configuration.apiKey("token"));const r=await this.request({path:"/entities/uniqueid/{uniqueid}".replace("{uniqueid}",encodeURIComponent(String(t.uniqueid))),method:"GET",headers:a,query:o},i);return new p(r,s=>k(s))}async entityByUniqueid(t,i){return await(await this.entityByUniqueidRaw(t,i)).value()}}class he extends h{async homeRaw(t){const i={},o={};this.configuration&&this.configuration.apiKey&&(i.token=this.configuration.apiKey("token"));const a=await this.request({path:"/pages/home",method:"GET",headers:o,query:i},t);return new p(a,r=>S(r))}async home(t){return await(await this.homeRaw(t)).value()}async pageRaw(t,i){const o={};t.slug!==void 0&&(o.slug=t.slug);const a={};this.configuration&&this.configuration.apiKey&&(o.token=this.configuration.apiKey("token"));const r=await this.request({path:"/pages",method:"GET",headers:a,query:o},i);return new p(r,s=>S(s))}async page(t={},i){return await(await this.pageRaw(t,i)).value()}}class ge extends h{async searchRaw(t,i){if(t.query===null||t.query===void 0)throw new m("query","Required parameter requestParameters.query was null or undefined when calling search.");const o={};t.query!==void 0&&(o.query=t.query);const a={};this.configuration&&this.configuration.apiKey&&(o.token=this.configuration.apiKey("token"));const r=await this.request({path:"/search",method:"GET",headers:a,query:o},i);return new p(r,s=>s.map(I))}async search(t,i){return await(await this.searchRaw(t,i)).value()}}class ve extends h{async sitemapRaw(t){const i={},o={};this.configuration&&this.configuration.apiKey&&(i.token=this.configuration.apiKey("token"));const a=await this.request({path:"/sitemap",method:"GET",headers:o,query:i},t);return new p(a,r=>r.map(I))}async sitemap(t){return await(await this.sitemapRaw(t)).value()}}class me extends h{async versionRaw(t){const i={},o={};this.configuration&&this.configuration.apiKey&&(i.token=this.configuration.apiKey("token"));const a=await this.request({path:"/version",method:"GET",headers:o,query:i},t);return new p(a,r=>de(r))}async version(t){return await(await this.versionRaw(t)).value()}}const we=/[\p{Lu}]/u,_e=/[\p{Ll}]/u,T=/^[\p{Lu}](?![\p{Lu}])/gu,j=/([\p{Alpha}\p{N}_]|$)/u,_=/[_.\- ]+/,be=new RegExp("^"+_.source),P=new RegExp(_.source+j.source,"gu"),U=new RegExp("\\d+"+j.source,"gu"),qe=(e,t,i,o)=>{let a=!1,r=!1,s=!1,u=!1;for(let c=0;c<e.length;c++){const d=e[c];u=c>2?e[c-3]==="-":!0,a&&we.test(d)?(e=e.slice(0,c)+"-"+e.slice(c),a=!1,s=r,r=!0,c++):r&&s&&_e.test(d)&&(!u||o)?(e=e.slice(0,c-1)+"-"+e.slice(c-1),s=r,r=!1,a=!0):(a=t(d)===d&&i(d)!==d,s=r,r=i(d)===d&&t(d)!==d)}return e},Ee=(e,t)=>(T.lastIndex=0,e.replace(T,i=>t(i))),Re=(e,t)=>(P.lastIndex=0,U.lastIndex=0,e.replace(P,(i,o)=>t(o)).replace(U,i=>t(i)));function Ce(e,t){if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");if(t={pascalCase:!1,preserveConsecutiveUppercase:!1,...t},Array.isArray(e)?e=e.map(r=>r.trim()).filter(r=>r.length).join("-"):e=e.trim(),e.length===0)return"";const i=t.locale===!1?r=>r.toLowerCase():r=>r.toLocaleLowerCase(t.locale),o=t.locale===!1?r=>r.toUpperCase():r=>r.toLocaleUpperCase(t.locale);return e.length===1?_.test(e)?"":t.pascalCase?o(e):i(e):(e!==i(e)&&(e=qe(e,i,o,t.preserveConsecutiveUppercase)),e=e.replace(be,""),e=t.preserveConsecutiveUppercase?Ee(e,i):i(e),t.pascalCase&&(e=o(e.charAt(0))+e.slice(1)),Re(e,o))}function Ae(e,t,i){const o="virtual:flyo-components",a="\0"+o;return{name:"vite-plugin-flyo-components",async resolveId(r){if(r===o)return a},async load(r){if(r===a){const s=[];for(const[c,d]of Object.entries(t)){const v=await this.resolve("/"+e+"/"+d+".astro");v&&s.push(`export { default as ${Ce(c)} } from "${v.id}"`)}let u=null;return i&&(u=await this.resolve("/"+e+"/"+i+".astro")),u?s.push(`export { default as fallback } from "${u.id}"`):s.push('export { default as fallback } from "@flyo/nitro-astro/FallbackComponent.astro"'),s.join(";")}}}}let ke=Symbol("clean"),l=[],Ie=(e,t)=>{let i=[],o={get(){return o.lc||o.listen(()=>{})(),o.value},l:t||0,lc:0,listen(a,r){return o.lc=i.push(a,r||o.l)/2,()=>{let s=i.indexOf(a);~s&&(i.splice(s,2),--o.lc||o.off())}},notify(a,r){let s=!l.length;for(let u=0;u<i.length;u+=2)l.push(i[u],i[u+1],o.value,a,r);if(s){for(let u=0;u<l.length;u+=5){let c;for(let d=u+1;!c&&(d+=5)<l.length;)l[d]<l[u+1]&&(c=l.push(l[u],l[u+1],l[u+2],l[u+3],l[u+4]));c||l[u](l[u+2],l[u+3],l[u+4])}l.length=0}},off(){},set(a){let r=o.value;r!==a&&(o.value=a,o.notify(r))},subscribe(a,r){let s=o.listen(a,r);return a(o.value),s},value:e};return process.env.NODE_ENV!=="production"&&(o[ke]=()=>{i=[],o.lc=0,o.off()}),o};function y(){return globalThis.flyoNitroInstance||console.error("The Flyo Typescript Configuration has not been initialized correctly"),globalThis.flyoNitroInstance}function L(){return new pe(y())}const b=Ie(!1);async function Se(){return b.get()||b.set(await L().config()),b.get()}function Te(){return new ye(y())}function je(){return new he(y())}function Pe(){return new ge(y())}function Ue(){return new ve(y())}function Le(){return new me(y())}function xe(e){return{"data-flyo-block-uid":e.uid}}function Ke(e){const t={accessToken:!1,liveEdit:!1,fallbackComponent:null,componentsDir:"src/components/flyo",...e};return t.liveEdit==="true"?t.liveEdit=!0:t.liveEdit==="false"&&(t.liveEdit=!1),{name:"@flyo/nitro-astro",hooks:{"astro:config:setup":({injectScript:i,updateConfig:o,injectRoute:a})=>{a({pattern:"sitemap.xml",entrypoint:"@flyo/nitro-astro/sitemap.ts"}),o({image:{service:{entrypoint:"@flyo/nitro-astro/cdn.ts"}},vite:{plugins:[Ae(e.componentsDir,e.components,e.fallbackComponent)]}}),i("page-ssr",`
1
+ (function(u,g){typeof exports=="object"&&typeof module<"u"?g(exports):typeof define=="function"&&define.amd?define(["exports"],g):(u=typeof globalThis<"u"?globalThis:u||self,g(u.flyoNitroIntegration={}))})(this,function(u){"use strict";const g="https://api.flyo.cloud/nitro/v1".replace(/\/+$/,"");class F{constructor(n={}){this.configuration=n}set config(n){this.configuration=n}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:g}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||_}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const n=this.configuration.apiKey;if(n)return typeof n=="function"?n:()=>n}get accessToken(){const n=this.configuration.accessToken;if(n)return typeof n=="function"?n:async()=>n}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const L=new F,w=class j{constructor(n=L){this.configuration=n,this.fetchApi=async(t,i)=>{let r={url:t,init:i};for(const a of this.middleware)a.pre&&(r=await a.pre({fetch:this.fetchApi,...r})||r);let o;try{o=await(this.configuration.fetchApi||fetch)(r.url,r.init)}catch(a){for(const l of this.middleware)l.onError&&(o=await l.onError({fetch:this.fetchApi,url:r.url,init:r.init,error:a,response:o?o.clone():void 0})||o);if(o===void 0)throw a instanceof Error?new N(a,"The request failed and the interceptors did not return an alternative response"):a}for(const a of this.middleware)a.post&&(o=await a.post({fetch:this.fetchApi,url:r.url,init:r.init,response:o.clone()})||o);return o},this.middleware=n.middleware}withMiddleware(...n){const t=this.clone();return t.middleware=t.middleware.concat(...n),t}withPreMiddleware(...n){const t=n.map(i=>({pre:i}));return this.withMiddleware(...t)}withPostMiddleware(...n){const t=n.map(i=>({post:i}));return this.withMiddleware(...t)}isJsonMime(n){return n?j.jsonRegex.test(n):!1}async request(n,t){const{url:i,init:r}=await this.createFetchParams(n,t),o=await this.fetchApi(i,r);if(o&&o.status>=200&&o.status<300)return o;throw new K(o,"Response returned an error code")}async createFetchParams(n,t){let i=this.configuration.basePath+n.path;n.query!==void 0&&Object.keys(n.query).length!==0&&(i+="?"+this.configuration.queryParamsStringify(n.query));const r=Object.assign({},this.configuration.headers,n.headers);Object.keys(r).forEach(y=>r[y]===void 0?delete r[y]:{});const o=typeof t=="function"?t:async()=>t,a={method:n.method,headers:r,body:n.body,credentials:this.configuration.credentials},l={...a,...await o({init:a,context:n})};let s;x(l.body)||l.body instanceof URLSearchParams||P(l.body)?s=l.body:this.isJsonMime(r["Content-Type"])?s=JSON.stringify(l.body):s=l.body;const c={...l,body:s};return{url:i,init:c}}clone(){const n=this.constructor,t=new n(this.configuration);return t.middleware=this.middleware.slice(),t}};w.jsonRegex=new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i");let p=w;function P(e){return typeof Blob<"u"&&e instanceof Blob}function x(e){return typeof FormData<"u"&&e instanceof FormData}class K extends Error{constructor(n,t){super(t),this.response=n,this.name="ResponseError"}}class N extends Error{constructor(n,t){super(t),this.cause=n,this.name="FetchError"}}class h extends Error{constructor(n,t){super(t),this.field=n,this.name="RequiredError"}}function _(e,n=""){return Object.keys(e).map(t=>b(t,e[t],n)).filter(t=>t.length>0).join("&")}function b(e,n,t=""){const i=t+(t.length?`[${e}]`:e);if(n instanceof Array){const r=n.map(o=>encodeURIComponent(String(o))).join(`&${encodeURIComponent(i)}=`);return`${encodeURIComponent(i)}=${r}`}if(n instanceof Set){const r=Array.from(n);return b(e,r,t)}return n instanceof Date?`${encodeURIComponent(i)}=${encodeURIComponent(n.toISOString())}`:n instanceof Object?_(n,i):`${encodeURIComponent(i)}=${encodeURIComponent(String(n))}`}function v(e,n){return Object.keys(e).reduce((t,i)=>({...t,[i]:n(e[i])}),{})}class d{constructor(n,t=i=>i){this.raw=n,this.transformer=t}async value(){return this.transformer(await this.raw.json())}}function M(e){return $(e)}function $(e,n){return e==null?e:{identifier:e.identifier==null?void 0:e.identifier,content:e.content==null?void 0:e.content.map(C)}}function C(e){return B(e)}function B(e,n){return e==null?e:{items:e.items==null?void 0:e.items,content:e.content==null?void 0:e.content,config:e.config==null?void 0:e.config,identifier:e.identifier==null?void 0:e.identifier,uid:e.uid==null?void 0:e.uid,component:e.component==null?void 0:e.component,slots:e.slots==null?void 0:v(e.slots,M)}}function E(e){return O(e)}function O(e,n){return e==null?e:{type:e.type==null?void 0:e.type,target:e.target==null?void 0:e.target,label:e.label==null?void 0:e.label,href:e.href==null?void 0:e.href,slug:e.slug==null?void 0:e.slug,properties:e.properties==null?void 0:e.properties,children:e.children==null?void 0:e.children.map(E)}}function D(e){return G(e)}function G(e,n){return e==null?e:{items:e.items==null?void 0:e.items.map(E),uid:e.uid==null?void 0:e.uid,identifier:e.identifier==null?void 0:e.identifier,label:e.label==null?void 0:e.label}}function H(e){return V(e)}function V(e,n){return e==null?e:{domain:e.domain==null?void 0:e.domain,slug:e.slug==null?void 0:e.slug,version:e.version==null?void 0:e.version,updated_at:e.updated_at==null?void 0:e.updated_at,language:e.language==null?void 0:e.language,primary_language:e.primary_language==null?void 0:e.primary_language}}function z(e){return J(e)}function J(e,n){return e==null?e:{nitro:e.nitro==null?void 0:H(e.nitro),pages:e.pages==null?void 0:e.pages,containers:e.containers==null?void 0:v(e.containers,D),globals:e.globals==null?void 0:e.globals}}function W(e){return Q(e)}function Q(e,n){return e==null?e:{api:e.api==null?void 0:e.api,image:e.image==null?void 0:e.image}}function Y(e){return Z(e)}function Z(e,n){return e==null?e:{_version:e._version==null?void 0:e._version,entity_metric:e.entity_metric==null?void 0:W(e.entity_metric),entity_unique_id:e.entity_unique_id==null?void 0:e.entity_unique_id,entity_id:e.entity_id==null?void 0:e.entity_id,entity_image:e.entity_image==null?void 0:e.entity_image,entity_slug:e.entity_slug==null?void 0:e.entity_slug,entity_teaser:e.entity_teaser==null?void 0:e.entity_teaser,entity_time_end:e.entity_time_end==null?void 0:e.entity_time_end,entity_time_start:e.entity_time_start==null?void 0:e.entity_time_start,entity_title:e.entity_title==null?void 0:e.entity_title,entity_type:e.entity_type==null?void 0:e.entity_type,entity_type_id:e.entity_type_id==null?void 0:e.entity_type_id,updated_at:e.updated_at==null?void 0:e.updated_at,routes:e.routes==null?void 0:e.routes}}function q(e){return X(e)}function X(e,n){return e==null?e:{entity:e.entity==null?void 0:Y(e.entity),model:e.model==null?void 0:e.model,language:e.language==null?void 0:e.language,jsonld:e.jsonld==null?void 0:e.jsonld}}function R(e){return ee(e)}function ee(e,n){return e==null?e:{entity_unique_id:e.entity_unique_id==null?void 0:e.entity_unique_id,entity_title:e.entity_title==null?void 0:e.entity_title,entity_teaser:e.entity_teaser==null?void 0:e.entity_teaser,entity_slug:e.entity_slug==null?void 0:e.entity_slug,entity_time_start:e.entity_time_start==null?void 0:e.entity_time_start,entity_type:e.entity_type==null?void 0:e.entity_type,entity_type_id:e.entity_type_id==null?void 0:e.entity_type_id,entity_image:e.entity_image==null?void 0:e.entity_image,routes:e.routes==null?void 0:e.routes}}function ne(e){return te(e)}function te(e,n){return e==null?e:{description:e.description==null?void 0:e.description,image:e.image==null?void 0:e.image,title:e.title==null?void 0:e.title}}function ie(e){return oe(e)}function oe(e,n){return e==null?e:{slug:e.slug==null?void 0:e.slug,title:e.title==null?void 0:e.title}}function re(e){return ae(e)}function ae(e,n){return e==null?e:{value:e.value==null?void 0:e.value,navigation:e.navigation==null?void 0:e.navigation,propagate:e.propagate==null?void 0:e.propagate}}function A(e){return le(e)}function le(e,n){return e==null?e:{id:e.id==null?void 0:e.id,title:e.title==null?void 0:e.title,href:e.href==null?void 0:e.href,slug:e.slug==null?void 0:e.slug,json:e.json==null?void 0:e.json.map(C),depth:e.depth==null?void 0:e.depth,is_home:e.is_home==null?void 0:e.is_home,created_at:e.created_at==null?void 0:e.created_at,updated_at:e.updated_at==null?void 0:e.updated_at,is_visible:e.is_visible==null?void 0:e.is_visible,meta_json:e.meta_json==null?void 0:ne(e.meta_json),properties:e.properties==null?void 0:v(e.properties,re),uid:e.uid==null?void 0:e.uid,type:e.type==null?void 0:e.type,target:e.target==null?void 0:e.target,container:e.container==null?void 0:e.container,breadcrumb:e.breadcrumb==null?void 0:e.breadcrumb.map(ie)}}function se(e){return ue(e)}function ue(e,n){return e==null?e:{version:e.version==null?void 0:e.version,updated_at:e.updated_at==null?void 0:e.updated_at}}class ce extends p{async configRaw(n,t){const i={};n.lang!=null&&(i.lang=n.lang);const r={};this.configuration&&this.configuration.apiKey&&(i.token=await this.configuration.apiKey("token"));const o=await this.request({path:"/config",method:"GET",headers:r,query:i},t);return new d(o,a=>z(a))}async config(n={},t){return await(await this.configRaw(n,t)).value()}}class de extends p{async entityBySlugRaw(n,t){if(n.slug==null)throw new h("slug",'Required parameter "slug" was null or undefined when calling entityBySlug().');const i={};n.lang!=null&&(i.lang=n.lang),n.typeId!=null&&(i.typeId=n.typeId);const r={};this.configuration&&this.configuration.apiKey&&(i.token=await this.configuration.apiKey("token"));const o=await this.request({path:"/entities/slug/{slug}".replace("{slug}",encodeURIComponent(String(n.slug))),method:"GET",headers:r,query:i},t);return new d(o,a=>q(a))}async entityBySlug(n,t){return await(await this.entityBySlugRaw(n,t)).value()}async entityByUniqueidRaw(n,t){if(n.uniqueid==null)throw new h("uniqueid",'Required parameter "uniqueid" was null or undefined when calling entityByUniqueid().');const i={};n.lang!=null&&(i.lang=n.lang);const r={};this.configuration&&this.configuration.apiKey&&(i.token=await this.configuration.apiKey("token"));const o=await this.request({path:"/entities/uniqueid/{uniqueid}".replace("{uniqueid}",encodeURIComponent(String(n.uniqueid))),method:"GET",headers:r,query:i},t);return new d(o,a=>q(a))}async entityByUniqueid(n,t){return await(await this.entityByUniqueidRaw(n,t)).value()}}class fe extends p{async homeRaw(n,t){const i={};n.lang!=null&&(i.lang=n.lang);const r={};this.configuration&&this.configuration.apiKey&&(i.token=await this.configuration.apiKey("token"));const o=await this.request({path:"/pages/home",method:"GET",headers:r,query:i},t);return new d(o,a=>A(a))}async home(n={},t){return await(await this.homeRaw(n,t)).value()}async pageRaw(n,t){const i={};n.lang!=null&&(i.lang=n.lang),n.slug!=null&&(i.slug=n.slug);const r={};this.configuration&&this.configuration.apiKey&&(i.token=await this.configuration.apiKey("token"));const o=await this.request({path:"/pages",method:"GET",headers:r,query:i},t);return new d(o,a=>A(a))}async page(n={},t){return await(await this.pageRaw(n,t)).value()}}class pe extends p{async searchRaw(n,t){if(n.query==null)throw new h("query",'Required parameter "query" was null or undefined when calling search().');const i={};n.lang!=null&&(i.lang=n.lang),n.query!=null&&(i.query=n.query);const r={};this.configuration&&this.configuration.apiKey&&(i.token=await this.configuration.apiKey("token"));const o=await this.request({path:"/search",method:"GET",headers:r,query:i},t);return new d(o,a=>a.map(R))}async search(n,t){return await(await this.searchRaw(n,t)).value()}}class ge extends p{async sitemapRaw(n,t){const i={};n.lang!=null&&(i.lang=n.lang);const r={};this.configuration&&this.configuration.apiKey&&(i.token=await this.configuration.apiKey("token"));const o=await this.request({path:"/sitemap",method:"GET",headers:r,query:i},t);return new d(o,a=>a.map(R))}async sitemap(n={},t){return await(await this.sitemapRaw(n,t)).value()}}class ye extends p{async versionRaw(n,t){const i={};n.lang!=null&&(i.lang=n.lang);const r={};this.configuration&&this.configuration.apiKey&&(i.token=await this.configuration.apiKey("token"));const o=await this.request({path:"/version",method:"GET",headers:r,query:i},t);return new d(o,a=>se(a))}async version(n={},t){return await(await this.versionRaw(n,t)).value()}}const he=/[\p{Lu}]/u,ve=/[\p{Ll}]/u,I=/^[\p{Lu}](?![\p{Lu}])/gu,k=/([\p{Alpha}\p{N}_]|$)/u,m=/[_.\- ]+/,me=new RegExp("^"+m.source),T=new RegExp(m.source+k.source,"gu"),S=new RegExp("\\d+"+k.source,"gu"),we=(e,n,t,i)=>{let r=!1,o=!1,a=!1,l=!1;for(let s=0;s<e.length;s++){const c=e[s];l=s>2?e[s-3]==="-":!0,r&&he.test(c)?(e=e.slice(0,s)+"-"+e.slice(s),r=!1,a=o,o=!0,s++):o&&a&&ve.test(c)&&(!l||i)?(e=e.slice(0,s-1)+"-"+e.slice(s-1),a=o,o=!1,r=!0):(r=n(c)===c&&t(c)!==c,a=o,o=t(c)===c&&n(c)!==c)}return e},_e=(e,n)=>(I.lastIndex=0,e.replace(I,t=>n(t))),be=(e,n)=>(T.lastIndex=0,S.lastIndex=0,e.replace(T,(t,i)=>n(i)).replace(S,t=>n(t)));function Ce(e,n){if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");if(n={pascalCase:!1,preserveConsecutiveUppercase:!1,...n},Array.isArray(e)?e=e.map(o=>o.trim()).filter(o=>o.length).join("-"):e=e.trim(),e.length===0)return"";const t=n.locale===!1?o=>o.toLowerCase():o=>o.toLocaleLowerCase(n.locale),i=n.locale===!1?o=>o.toUpperCase():o=>o.toLocaleUpperCase(n.locale);return e.length===1?m.test(e)?"":n.pascalCase?i(e):t(e):(e!==t(e)&&(e=we(e,t,i,n.preserveConsecutiveUppercase)),e=e.replace(me,""),e=n.preserveConsecutiveUppercase?_e(e,t):t(e),n.pascalCase&&(e=i(e.charAt(0))+e.slice(1)),be(e,i))}function Ee(e,n,t){const i="virtual:flyo-components",r="\0"+i;return{name:"vite-plugin-flyo-components",async resolveId(o){if(o===i)return r},async load(o){if(o===r){const a=[];for(const[s,c]of Object.entries(n)){const y=await this.resolve("/"+e+"/"+c+".astro");y&&a.push(`export { default as ${Ce(s)} } from "${y.id}"`)}let l=null;return t&&(l=await this.resolve("/"+e+"/"+t+".astro")),l?a.push(`export { default as fallback } from "${l.id}"`):a.push('export { default as fallback } from "@flyo/nitro-astro/FallbackComponent.astro"'),a.join(";")}}}}function U(){return globalThis.flyoNitroInstance||console.error("The Flyo Typescript Configuration has not been initialized correctly"),globalThis.flyoNitroInstance}function f(){return U().config}async function qe(e){return await e.locals.config}function Re(){return new ce(f())}function Ae(){return new de(f())}function Ie(){return new fe(f())}function ke(){return new pe(f())}function Te(){return new ge(f())}function Se(){return new ye(f())}function Ue(e){return{"data-flyo-block-uid":e.uid}}const je=`
2
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 163.4 88.5">
3
+ <style type="text/css">
4
+ .st8{fill:#FFFFFF;}
5
+ </style>
6
+ <g id="Ebene_1">
7
+ <g>
8
+ <path class="st8" d="M49,56.7c-0.5-0.3-0.8-0.7-1.2-1.2c-0.4-0.5-0.6-1.2-0.7-1.8c-0.1-0.6-0.2-1.2-0.2-1.8V18.7
9
+ c0-5.2-1.6-9.4-4.8-12.6c-3.2-3.2-8.2-4.8-15-4.8c-6.1,0-10.9,1.5-14.3,4.6C9.4,8.9,7.7,13.3,7.7,19v6.4H1.5V35h6.1v32.1h11.9V35
10
+ h7.7v-9.6h-7.7c0-8.3,0.6-9.4,1.8-11.3c1.2-1.8,3.2-2.8,6.1-2.8c1.5,0,2.7,0.3,3.7,0.8c1,0.5,1.7,1.2,2.3,2.1
11
+ c0.6,0.9,0.9,1.9,1.2,3.1c0.2,1.2,0.3,2.4,0.3,3.7v36.8c0,1.4,0.3,2.6,0.8,3.8c0.5,1.2,1.3,2.2,2.3,3.2c1,0.9,2.1,1.6,3.5,2.1
12
+ c10.1,3,18.5-1.1,18.5-1.1l-4-10.1C52,58.4,49.6,57,49,56.7z"/>
13
+ <path class="st8" d="M146.3,34.6c-1.1-2.9-2.7-5.5-4.9-7.7c-2.1-2.2-4.7-4-7.7-5.3c-3-1.3-6.4-2-10.2-2c-3.8,0-7.2,0.7-10.2,2
14
+ c-3,1.3-5.6,3.1-7.7,5.3c-2.1,2.2-3.7,4.8-4.9,7.7c-1.1,2.9-1.7,6-1.7,9.3c0,3.2,0.6,6.3,1.7,9.2c1.1,2.9,2.7,5.5,4.9,7.7
15
+ c2.1,2.2,4.7,4,7.7,5.3c3,1.3,6.4,2,10.2,2c3.8,0,7.2-0.7,10.2-2c3-1.3,5.6-3.1,7.7-5.3c2.1-2.2,3.7-4.8,4.8-7.7
16
+ c1.1-2.9,1.7-6,1.7-9.2C148,40.6,147.4,37.5,146.3,34.6z M134.8,49.5c-0.6,1.7-1.5,3.2-2.6,4.5c-1.1,1.2-2.4,2.2-3.9,2.9
17
+ c-1.5,0.7-3.1,1-4.8,1c-1.7,0-3.3-0.3-4.8-1c-1.5-0.7-2.8-1.6-3.9-2.9c-1.1-1.2-2-2.7-2.6-4.4s-0.9-3.6-0.9-5.7
18
+ c0-2,0.3-3.9,0.9-5.6c0.6-1.7,1.5-3.2,2.6-4.5c1.1-1.2,2.4-2.2,3.9-2.9c1.5-0.7,3.1-1.1,4.8-1.1c1.7,0,3.3,0.3,4.8,1
19
+ c1.5,0.7,2.8,1.6,3.9,2.9c1.1,1.2,2,2.7,2.6,4.5c0.6,1.7,0.9,3.6,0.9,5.6C135.8,45.8,135.4,47.7,134.8,49.5z"/>
20
+ <path class="st8" d="M88.2,20.4L77,56.8L64.4,20.4H52.1l18.4,46.6c-0.1,0.9-0.2,1.7-0.4,2.6c-0.1,0.4-0.2,0.7-0.3,1.1c0,0,0,0,0,0
21
+ c-0.5,1.2-1,2.4-1.7,3.3c-0.1,0.1-0.1,0.2-0.2,0.3c0,0.1-0.1,0.1-0.2,0.2c-0.8,1-1.8,1.9-3,2.7c0.7,1.7,1.4,3.3,2.2,5.4l1.8,4.7
22
+ c0.3-0.1,0.6-0.3,0.9-0.4c0.3-0.2,0.6-0.3,0.9-0.4c0.2-0.1,0.4-0.2,0.5-0.3c1.3-0.7,2.3-1.4,3.4-2.3c0,0,0.1-0.1,0.1-0.1
23
+ c0.1-0.1,0.3-0.2,0.4-0.4c1.2-1.1,2.2-2.1,3-3.2c1.4-1.8,2.5-3.7,3.3-5.9c0.7-1.8,1.2-3.7,1.4-5.6c0-0.3,0.1-0.6,0.2-1l16.6-47.3
24
+ H88.2z"/>
25
+ <path class="st8" d="M161.3,62.6c-0.3-0.8-0.8-1.6-1.4-2.2c-0.6-0.6-1.3-1.1-2.2-1.5c-0.9-0.4-1.8-0.6-2.9-0.6
26
+ c-1.1,0-2.1,0.2-2.9,0.6c-0.9,0.4-1.6,0.9-2.2,1.5c-0.6,0.6-1.1,1.4-1.4,2.2c-0.3,0.8-0.5,1.7-0.5,2.6c0,0.9,0.2,1.8,0.5,2.6
27
+ c0.3,0.8,0.8,1.6,1.4,2.2c0.6,0.6,1.3,1.1,2.2,1.5c0.9,0.4,1.8,0.6,2.9,0.6c1.1,0,2.1-0.2,2.9-0.6c0.9-0.4,1.6-0.9,2.2-1.5
28
+ c0.6-0.6,1.1-1.4,1.4-2.2c0.3-0.8,0.5-1.7,0.5-2.6C161.7,64.3,161.6,63.4,161.3,62.6z"/>
29
+ </g>
30
+ </g>
31
+ </svg>
32
+ `;function Fe(e){const n={accessToken:!1,liveEdit:!1,fallbackComponent:null,componentsDir:"src/components/flyo",serverCacheHeaderTtl:1200,clientCacheHeaderTtl:900,...e};return n.liveEdit==="true"?n.liveEdit=!0:n.liveEdit==="false"&&(n.liveEdit=!1),{name:"@flyo/nitro-astro",hooks:{"astro:config:setup":({injectScript:t,updateConfig:i,injectRoute:r,addMiddleware:o,addDevToolbarApp:a})=>{a({id:"flyo-nitro",name:"Flyo Nitro",icon:je,entrypoint:"@flyo/nitro-astro/toolbar.ts"}),r({pattern:"sitemap.xml",entrypoint:"@flyo/nitro-astro/sitemap.ts"}),o({entrypoint:"@flyo/nitro-astro/middleware.ts",order:"post"}),i({image:{service:{entrypoint:"@flyo/nitro-astro/cdn.ts"}},vite:{plugins:[Ee(e.componentsDir,e.components||{},e.fallbackComponent)]}}),t("page-ssr",`
2
33
  import { Configuration } from '@flyo/nitro-typescript'
3
34
 
4
35
  var defaultConfig = new Configuration({
5
- apiKey: '${t.accessToken}'
36
+ apiKey: '${n.accessToken}'
6
37
  })
7
38
 
8
- globalThis.flyoNitroInstance = defaultConfig;
9
- `),t.liveEdit&&i("page",`
39
+ globalThis.flyoNitroInstance = {
40
+ config: defaultConfig,
41
+ options: {
42
+ liveEdit: ${n.liveEdit},
43
+ componentsDir: '${n.componentsDir}',
44
+ clientCacheHeaderTtl: ${n.clientCacheHeaderTtl},
45
+ serverCacheHeaderTtl: ${n.serverCacheHeaderTtl}
46
+ }
47
+ };
48
+ `),n.liveEdit&&t("page",`
10
49
  window.addEventListener("message", (event) => {
11
50
  if (event.data?.action === 'pageRefresh') {
12
51
  window.location.reload(true);
@@ -37,4 +76,4 @@
37
76
  openBlockInFlyo(this.getAttribute('data-flyo-block-uid'))
38
77
  });
39
78
  });
40
- `)}}}}f.default=Ke,f.editableBlock=xe,f.useConfig=Se,f.useConfigApi=L,f.useConfiguration=y,f.useEntitiesApi=Te,f.usePagesApi=je,f.useSearchApi=Pe,f.useSitemapApi=Ue,f.useVersionApi=Le,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
79
+ `)}}}}u.default=Fe,u.editableBlock=Ue,u.useConfig=qe,u.useConfigApi=Re,u.useConfiguration=f,u.useEntitiesApi=Ae,u.useFlyoIntegration=U,u.usePagesApi=Ie,u.useSearchApi=ke,u.useSitemapApi=Te,u.useVersionApi=Se,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});