{"version":3,"file":"16lB3i3y.js","sources":["../../../../src/composables/SEO/general.ts"],"sourcesContent":["export function useGetSeoTitleAppendix(\n titleLength: number,\n options?: { withoutSpacer?: boolean },\n) {\n const siteIdent = useSiteIdent();\n let titleAppendix = !options?.withoutSpacer ? ' | ' : '';\n\n switch (siteIdent) {\n case SiteIdent.default:\n titleAppendix = titleAppendix.concat('vanderven.de');\n break;\n case SiteIdent.miniluDe:\n titleAppendix = titleAppendix.concat('minilu.de');\n break;\n case SiteIdent.miniluNl:\n titleAppendix = titleAppendix.concat('minilu.nl');\n break;\n case SiteIdent.miniluAt:\n titleAppendix = titleAppendix.concat('minilu.at');\n break;\n default:\n return titleAppendix.concat('Dental Online Shop');\n }\n\n if (titleLength < 26) {\n return titleAppendix.concat(' - Dental Online Shop');\n } else if (titleLength < 31) {\n return titleAppendix.concat(' - Dental Online');\n } else if (titleLength < 38) {\n return titleAppendix.concat(' - Dental');\n } else {\n return titleAppendix;\n }\n}\n\nexport function getHostSSRSafe() {\n return import.meta.server\n ? useRequestHeaders(['host']).host\n : window.location.origin;\n}\n"],"names":["useGetSeoTitleAppendix","titleLength","options","siteIdent","useSiteIdent","titleAppendix","SiteIdent","getHostSSRSafe"],"mappings":"0CAAgB,SAAAA,EACdC,EACAC,EACA,CACA,MAAMC,EAAYC,IAClB,IAAIC,EAAiBH,GAAA,MAAAA,EAAS,cAAwB,GAAR,MAE9C,OAAQC,EAAW,CACjB,KAAKG,EAAU,QACGD,EAAAA,EAAc,OAAO,cAAc,EACnD,MACF,KAAKC,EAAU,SACGD,EAAAA,EAAc,OAAO,WAAW,EAChD,MACF,KAAKC,EAAU,SACGD,EAAAA,EAAc,OAAO,WAAW,EAChD,MACF,KAAKC,EAAU,SACGD,EAAAA,EAAc,OAAO,WAAW,EAChD,MACF,QACS,OAAAA,EAAc,OAAO,oBAAoB,CACpD,CAEA,OAAIJ,EAAc,GACTI,EAAc,OAAO,uBAAuB,EAC1CJ,EAAc,GAChBI,EAAc,OAAO,kBAAkB,EACrCJ,EAAc,GAChBI,EAAc,OAAO,WAAW,EAEhCA,CAEX,CAEO,SAASE,GAAiB,CACxB,OAEH,OAAO,SAAS,MACtB"}