import { j as jsxRuntimeExports, r as reactExports } from "./axios-CtZC5suc.js";
import { H as Head } from "./Head-CUAMdgRx.js";
import { u as useApp, p as propTypesExports, q } from "./entry-app.js";
import { r as relativeRoute } from "./relativeRoute-DELxI-d-.js";
const __vite_import_meta_env__ = { "BASE_URL": "/build/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false, "VITE_APP_NAME": "Mensenlinq", "VITE_APP_URL": "https://mensenlinq.nl\r\n", "VITE_GTM_ID": "GTM-52DJRQ43", "VITE_KACHING_DEBUG": "false", "VITE_RECAPTCHA_SITE_KEY": "6LdfzOspAAAAAEYN0urhIuun05W45FQwEh3-9rhq", "VITE_USE_KACHING": "true" };
const getString = (name) => {
return __vite_import_meta_env__[name];
};
const getBoolean = (name, defaultVar = true) => {
const env = __vite_import_meta_env__[name];
if (!env) {
return defaultVar;
}
return env.toLowerCase() === "true" || env === "1";
};
const environment = {
getString,
getBoolean
};
const commercial = "_commercial_1t44i_1";
const styles$1 = {
commercial
};
var CommercialType = /* @__PURE__ */ ((CommercialType2) => {
CommercialType2["MediumRectangle"] = "mediumrectangle";
CommercialType2["HalfPageSkyscraper"] = "halfpageskyscraper";
CommercialType2["Leaderboard"] = "leaderboard";
CommercialType2["OutStreamNative"] = "outstreamnative";
return CommercialType2;
})(CommercialType || {});
var CommercialPageType = /* @__PURE__ */ ((CommercialPageType2) => {
CommercialPageType2["Home"] = "home";
CommercialPageType2["Detail"] = "detail";
CommercialPageType2["ArticleList"] = "detail";
CommercialPageType2["ObituaryDetail"] = "articlePage";
CommercialPageType2["ObituaryIndex"] = "sectionoverview";
return CommercialPageType2;
})(CommercialPageType || {});
function Commercial({ type, top, children, className, ...props }) {
const { useLegacyWidget } = useApp();
if (useLegacyWidget) {
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});
}
const typeString = type.valueOf();
return /* @__PURE__ */ jsxRuntimeExports.jsx(
"div",
{
...props,
className: `${className ?? ""} ${styles$1.commercial}`,
"data-ad-type": typeString,
"data-ad-top": top
}
);
}
const initKaching = async (pageUrl, pageType, adUnit, mobileScaling) => {
const kaChingEnabled = environment.getBoolean("VITE_USE_KACHING", true);
if (!kaChingEnabled) {
console.warn("KaChing is disabled");
return;
}
const kaChingDebug = environment.getBoolean("VITE_KACHING_DEBUG", false);
const kc = new window.KaChing();
let topSlots = 0, bottomSlots = 0;
document.querySelectorAll("[data-ad-type]").forEach(function(slot) {
const htmlSlot = slot;
const { adType, adTop } = htmlSlot.dataset;
const isTop = adTop && adTop === "true";
const slotId = isTop ? `t${++topSlots}` : `b${++bottomSlots}`;
const id = `ad_${adType}-${slotId}`;
htmlSlot.setAttribute("id", id);
kc.defineSlot(adType, slotId);
});
const mobileScaling1 = mobileScaling ?? 2;
const config = {
adunit: kaChingDebug ? `mensenlinq/preview` : `mensenlinq/${adUnit}`,
platform: "WWW",
targeting: {
page_type: pageType
// home | sectionoverview | detail
},
lazyload: {
fetchMarginPercent: 25,
renderMarginPercent: 10,
mobileScaling: mobileScaling1,
scatterSlots: true
}
};
await kc.init(config);
window.kcx = kc;
};
const destroyKaching = () => {
if (window.kcx) {
window.kcx.reset();
}
};
const useKaChing = () => {
return { initKaching, destroyKaching };
};
const upButton = "_upButton_1c2xi_1";
const styles = {
upButton
};
function ArrowUp(props) {
return /* @__PURE__ */ jsxRuntimeExports.jsx(
"svg",
{
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 448 512",
fill: "currentColor",
height: "1em",
width: "1em",
...props,
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
"path",
{
d: "M416 352c-8.188 0-16.38-3.125-22.62-9.375L224 173.3l-169.4 169.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25C432.4 348.9 424.2 352 416 352z"
}
)
}
);
}
function UpButton() {
const [showUp, setShowUp] = reactExports.useState(false);
const handleScroll = (e) => {
const target = e.target;
const scrollDistance = target.documentElement.scrollTop;
const scrollLimit = 200;
if (scrollDistance > scrollLimit && !showUp) {
setShowUp(true);
document.body.classList.toggle("up-button", true);
}
if (scrollDistance <= scrollLimit) {
setShowUp(false);
document.body.classList.toggle("up-button", false);
}
};
reactExports.useEffect(() => {
window.addEventListener("scroll", handleScroll);
return () => {
window.removeEventListener("scroll", handleScroll);
};
}, []);
return /* @__PURE__ */ jsxRuntimeExports.jsx(
"a",
{
className: `${styles.upButton} ${showUp && styles.showUpButton}`,
href: "#",
title: "Terug naar boven",
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ArrowUp, {})
}
);
}
const Header = ({ auth }) => {
const { onboarding } = useApp();
const navRef = reactExports.useRef(null);
const handleToggle = () => {
var _a;
(_a = navRef.current) == null ? void 0 : _a.classList.toggle("open");
};
const { user, amount_persons, amount_invitations } = auth ?? {};
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("header", { className: "bg-white flex justify-between navigation", children: [
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("home"), className: "header__logo", children: /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 193 30", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { fill: "none", children: [
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { fill: "#3C3C32", d: "M64.1532429 12.9100197c-1.2156761 0-2.2723309.2650356-3.2236689.7407046-.9040338.4915952-1.6539514 1.2243704-2.1663166 2.1167968-.422662-.9527329-1.0573523-1.6404303-1.849669-2.1167968-.8453238-.475669-1.7966618-.7407046-2.9593308-.7407046-1.1096619 0-2.1133096.2120285-2.9593309.6876975-.8473328.4163866-1.5479203 1.0807285-2.0086902 1.9047684v-2.4857542h-1.6906477v13.5447101h1.849669v-7.0897002c0-1.5344162.4226619-2.6984801 1.2156761-3.5975085.7923167-.8997258 1.9019786-1.3230852 3.2759785-1.3230852 1.2686832 0 2.2200212.3703523 2.9070212 1.1110568.687.7407045 1.0043451 1.7994517 1.0043451 3.2278537v7.6720809h1.8489715v-7.0910952c0-1.5344161.4226619-2.6984801 1.2156761-3.5975084.7923167-.8467188 1.9019786-1.3230853 3.3289857-1.3230853 1.215676 0 2.1670141.3703523 2.854014 1.1110568.687.7407046 1.0043452 1.7994517 1.0043452 3.2278537v7.6720809h1.8489715v-7.8311022c0-1.9047685-.475669-3.3338679-1.4270071-4.338213-1.0043451-1.0057401-2.378345-1.4821066-4.0689927-1.4821066Zm18.3899779.8467188c-1.0043451-.5816832-2.1133096-.8997259-3.3819928-.8997259-1.2679857 0-2.378345.3180427-3.3819927.8997259-1.0044741.5734414-1.8283468 1.4166426-2.3783451 2.434142-.5809857 1.0580497-.8453238 2.2221136-.8453238 3.5445014 0 1.3230852.3173452 2.4871491.8983309 3.5451988.5816833 1.0580497 1.4270071 1.8517614 2.4836619 2.434142 1.0573522.5816833 2.3253379.8997259 3.6993379.8997259 1.0573522 0 2.0609999-.2120284 2.9593308-.5823807.8983309-.3703523 1.638338-.9520355 2.2723309-1.6404304l-1.0043452-1.1640639c-.5102984.573001-1.1419505 1.024998-1.8489715 1.3230852-.6869999.3173452-1.4800141.4763665-2.3253379.4763665-1.4800142 0-2.7479999-.4233594-3.6993379-1.3230852-.9513381-.8467188-1.5323238-2.0107827-1.638338-3.3861775h11.3100421v-.5823807c0-1.3223878-.2650355-2.5387613-.8460213-3.5445014-.5251455-1.0006922-1.3100684-1.841509-2.2723308-2.434142h-.0006975Zm-8.1909925 5.1856292c.1060142-1.3230852.6346903-2.434142 1.4800141-3.2808608.8983309-.8467187 1.9549857-1.2693806 3.2759785-1.2693806 1.3216903 0 2.4313522.4226619 3.276676 1.2693806.898331.8467188 1.374 1.9047685 1.4800142 3.2808608h-9.5126828Zm21.2446894-6.032348c-1.1633665 0-2.1670141.2120285-3.0653451.6876975-.8983309.4763665-1.5853308 1.1117542-2.0609999 1.9047684v-2.4857542H88.726918v13.5447101h1.8489715v-7.0897002c0-1.5344162.4226619-2.6984801 1.2686832-3.5975085.8453238-.8467187 2.0079928-1.3230852 3.4343024-1.3230852 1.3216903 0 2.3253379.3703523 3.0130354 1.1110568.6863025.7407045 1.0566547 1.7994517 1.0566547 3.2278537v7.6720809h1.8496688v-7.8317997c0-1.9047685-.475669-3.3338679-1.4800139-4.2859034-1.1096619-1.0580497-2.4306548-1.5344162-4.1219999-1.5344162h.0006975Zm16.9099633 6.7723551c-.63469-.211331-1.532323-.4226619-2.589676-.6346903a17.63324235 17.63324235 0 0 1-2.061-.4763665c-.475669-.1583239-.89833-.3696548-1.267985-.6876975-.317345-.3173451-.475669-.7407045-.475669-1.217071 0-.6876974.317345-1.2163735.898331-1.6397329.580985-.4233594 1.479316-.6346903 2.641985-.6346903 1.533022 0 2.854014.3696548 3.963676 1.1633664l.792317-1.481409c-.580986-.3696549-1.267986-.6876975-2.166317-.8997259-.898331-.2113309-1.743654-.3696548-2.641985-.3696548-1.691345 0-3.013036.3696548-3.910669 1.0580497-.951338.7407045-1.427007 1.6397329-1.427007 2.8037968 0 .8997259.211331 1.6404304.687 2.1167969.457371.5113634 1.040404.8943622 1.691345 1.1110568.687.211331 1.532324.4233594 2.641986.6346903.845323.1590213 1.480014.2650356 1.954985.4233594.475669.1590213.898331.3703523 1.215676.6346903.317345.2650356.475669.6883949.475669 1.1647614 0 .6876974-.317345 1.2693807-.898331 1.6397329-.581683.3703523-1.480014.5823807-2.747999.5823807-.951338 0-1.796662-.1590213-2.694993-.4233594-.845324-.2650355-1.585331-.6346903-2.11331-1.1110568l-.846021 1.428402c.580986.4763665 1.374.8997259 2.378345 1.217071 1.025885.3207965 2.095104.4814735 3.169964.4764845 1.743655 0 3.117655-.3704703 4.122-1.0588652 1.004345-.6876974 1.480014-1.6397329 1.480014-2.8037968 0-.8997259-.211331-1.5344162-.687-2.0637898-.369654-.3696548-.951338-.7407045-1.585331-.9520355v-.0006974Zm14.373993-5.9256363c-1.004345-.5816832-2.114007-.8997259-3.382691-.8997259-1.267985 0-2.377647.3180427-3.381992.8997259-1.004474.5734414-1.828347 1.4166426-2.378345 2.434142-.580986 1.0580497-.844627 2.2221136-.844627 3.5445014 0 1.3230852.316648 2.4871491.898331 3.5451988.580986 1.0580497 1.42631 1.8517614 2.482965 2.434142 1.057352.5816833 2.326035.8997259 3.699338.8997259 1.057352 0 2.060999-.2120284 2.960028-.5823807.898331-.3703523 1.63764-.9520355 2.272331-1.6404304l-1.004345-1.1640639c-.510499.5730852-1.142398 1.0250878-1.849669 1.3230852-.687.3173452-1.479317.4763665-2.325338.4763665-1.479317 0-2.748-.4233594-3.698641-1.3230852-.951338-.8467188-1.533021-2.0107827-1.639035-3.3861775h11.309344v-.5823807c0-1.3223878-.264338-2.5387613-.845323-3.5445014-.525146-1.0006922-1.310069-1.841509-2.272331-2.434142Zm-8.138683 5.1856292c.106014-1.3230852.63469-2.434142 1.480014-3.2808608.898331-.8467187 1.954986-1.2693806 3.276676-1.2693806 1.320993 0 2.430655.4226619 3.275978 1.2693806.898331.8467188 1.374 1.9047685 1.480015 3.2808608h-9.512683Zm21.190985-6.032348c-1.161972 0-2.166317.2120285-3.064648.6876975-.898331.4763665-1.585331 1.1117542-2.061 1.9047684v-2.4857542h-1.743655v13.5447101h1.848972v-7.0897002c0-1.5344162.423359-2.6984801 1.268683-3.5975085.845324-.8997258 2.00869-1.3230852 3.435-1.3230852 1.320993 0 2.325338.3703523 3.012338 1.1110568.687.7407045 1.056655 1.7994517 1.056655 3.2278537v7.6720809h1.849669v-7.8317997c0-1.9047685-.475669-3.3338679-1.480015-4.2859034-1.108964-1.0580497-2.430654-1.5344162-4.121999-1.5344162Zm9.564992 13.5984147h1.849669V7.40774283h-1.849669V26.5084344Zm6.13069 0h1.848972V12.9637243h-1.848972v13.5447101Zm.898331-19.04768447c-.369655 0-.687.10531675-.951338.36965481-.265035.26503552-.369655.58238068-.369655.89972585 0 .37035227.10462.68769743.369655.95273295.264338.26433806.580986.36965476.951338.36965476.369655 0 .687-.1053167.950641-.36965476.265035-.26503552.369655-.58238068.369655-.95273295 0-.31734517-.10462-.63469033-.369655-.89972585-.263641-.26433806-.580986-.36965481-.950641-.36965481Zm12.100964 5.44926977c-1.161971 0-2.166317.2120285-3.064647.6876975-.898331.4763665-1.585331 1.1117542-2.061 1.9047684v-2.4857542h-1.743655v13.5447101h1.848971v-7.0897002c0-1.5344162.42336-2.6984801 1.268684-3.5975085.845323-.8467187 2.00869-1.3230852 3.434999-1.3230852 1.320993 0 2.325338.3703523 3.012338 1.1110568.687.7407045 1.056655 1.7994517 1.056655 3.2278537v7.6720809h1.849669v-7.8317997c0-1.9047685-.475669-3.3338679-1.480014-4.2859034-1.108964-1.0580497-2.430655-1.5344162-4.122-1.5344162Zm23.357999 14.444436c-.73931.7944091-1.585331 1.217071-2.642683 1.217071-.527979 0-1.004345-.1053168-1.479317-.3696548-.475669-.2120284-.951338-.6353878-1.480014-1.1647614 1.110359-.2113309 2.114007-.6876974 3.013036-1.3753949.897633-.6876974 1.532323-1.5344161 2.060302-2.4871491.475669-1.0043451.73931-2.0630923.73931-3.2271562 0-1.3760923-.316648-2.5924659-1.003648-3.7565298-.687-1.1110568-1.585331-2.0107826-2.748-2.645473-1.161971-.6346903-2.482964-.9527329-3.909971-.9527329-1.427007 0-2.748.3173451-3.910669.9527329-1.162669.6346904-2.114007 1.5344162-2.748 2.645473-.687 1.1110568-1.004345 2.3281278-1.004345 3.7035227 0 1.3230852.317345 2.5394588.951338 3.651213.63469 1.1110568 1.480014 1.9570781 2.589676 2.645473 1.108964.6346904 2.32464 1.0050426 3.752345 1.0580497.95064 1.0050426 1.848971 1.6927401 2.641986 2.1160994.779155.419767 1.650941.6379534 2.535971.6347264 1.480014 0 2.642683-.5287122 3.541014-1.5867619l-.898331-1.0580497v-.0006974Zm-10.463323-2.4341421c-.898331-.475669-1.585331-1.1633664-2.11331-2.0630923-.529373-.8460212-.740704-1.8517613-.740704-2.909811 0-1.1110568.265035-2.0637898.740007-2.9628181.524091-.8511792 1.249945-1.5600245 2.113309-2.0637898.910954-.4860367 1.927523-.7404184 2.960029-.7407045 1.109661 0 2.113309.2650355 2.95933.7407045.898331.4763665 1.585331 1.1640639 2.11331 2.0637898.528676.8460212.740007 1.8517613.740007 2.9628181 0 1.0580497-.264338 2.0637898-.73931 2.909811-.524287.8512632-1.250387 1.5601157-2.114007 2.0637898-.910745.4859257-1.927061.7403039-2.95933.7407045-1.109662 0-2.11331-.2650355-2.959331-.7407045v-.0006975Z" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { fill: "#E6344C", d: "M26.4219491 12.6986888c-1.2686832 0-2.3783451.5286761-3.3826902 1.428402-1.4786192-2.1691065-3.6456333-3.7565298-6.3936332-3.7565298-2.4313522 0-4.650676 1.3753948-6.2353094 3.862544-1.05735224-.952733-2.27302833-1.5344162-3.64702827-1.5344162C.10461929 12.6986888 0 25.2390537 0 25.7677299v.8467187h1.638338v-.8467187c0-.1060143.15832385-11.4286107 5.12634496-11.4286107 1.00364767 0 2.00729534.5286761 2.80030952 1.3753948-.84532382 1.7994517-1.32099284 3.9155511-1.32099284 5.8726292 0 3.0688324 1.21497863 5.0273054 3.17066176 5.0273054.898331 0 1.638338-.4233594 2.1133096-1.217071.3696548-.6346903.5816832-1.4814091.5816832-2.4871491 0-2.3281279-.951338-5.290946-2.5366689-7.4070454 1.1096619-2.0107827 2.8533166-3.4921917 5.0733378-3.4921917 2.2193238 0 3.9629785 1.4284019 5.2309643 3.3331704-1.5846335 2.0637897-2.5889786 4.9729033-2.5889786 7.2487215 0 1.1110568.211331 2.0637897.687 2.7514872.5286761.8467187 1.3739999 1.2693806 2.4306547 1.2693806 1.0573522 0 1.9026761-.5286761 2.4843593-1.5344161.4226619-.7930142.687-1.904071.687-3.121142 0-2.0107827-.5816833-4.3389105-1.6390355-6.4027003.7400071-.7407045 1.5860283-1.1640639 2.5373664-1.1640639 3.5403166 0 5.3369784 3.8095369 5.3369784 11.3756036v.8474162h1.638338v-.8467187c-.0530071-8.677821-2.378345-13.0690411-7.0283235-13.0690411h-.0006975ZM12.5236259 22.9102285c0 .6876974-.1060143 1.2693806-.3173452 1.6404303-.1583239.2650356-.3696548.4233594-.687.4233594-1.1089644 0-1.53232377-1.7994517-1.53232377-3.3338679 0-1.3223877.26433807-2.909811.79301417-4.338213 1.1089644 1.6927401 1.7436548 3.9155511 1.7436548 5.6082912Zm10.9389924 1.3760923c-.3173452.5816832-.7393096.6876974-1.0043452.6876974-.475669 0-.7923167-.1590213-1.0043451-.5293736-.2636406-.4233593-.4226619-1.0580497-.4226619-1.8517613 0-1.7457471.687-3.9685582 1.7973593-5.6612982.7393096 1.6397329 1.1089644 3.4384871 1.1089644 5.0266079-.0523096.9520355-.2106335 1.7987542-.4749715 2.3281278ZM16.7509424 9.10048286c2.5366689 0 4.5446626-2.0630923 4.5446626-4.55024143.0007393-1.20605922-.4776562-2.36301538-1.3299456-3.21635123C19.1133699.48055435 17.9570016.00073969 16.7509424 0c-2.4829643 0-4.5446617 2.06378976-4.5446617 4.55024143 0 2.53945877 2.0086903 4.55024143 4.5446617 4.55024143Zm0-7.46005247c1.5853309 0 2.9070212 1.32238776 2.9070212 2.90981104s-1.3216903 2.90981104-2.9070212 2.90981104-2.9063237-1.32238776-2.9063237-2.90981104 1.3209928-2.90981104 2.9063237-2.90981104ZM7.450288 11.4816229c1.03853278.0016688 2.03494046-.4104802 2.7688367-1.1452927.7338963-.73481252 1.1448018-1.73173365 1.1418482-2.77026352 0-2.16910651-1.74367078-3.91555618-3.9106849-3.91555618-1.03853277-.00166884-2.03494045.41048019-2.76883672 1.14529268-.73389626.73481249-1.14480179 1.73173362-1.14184813 2.7702635 0 2.1691065 1.79667784 3.91555622 3.91068485 3.91555622Zm0-6.19067694c1.21567609 0 2.27233087 1.0050426 2.27233087 2.27512072 0 1.26938065-1.00434514 2.27512071-2.27233087 2.27512071-1.21567609 0-2.27233086-1.00504259-2.27233086-2.27512071 0-1.26938066 1.05665477-2.27512072 2.27233086-2.27512072Zm18.5489992 6.19067694c1.0385328.0016688 2.0349405-.4104802 2.7688367-1.1452927.7338963-.73481252 1.1448018-1.73173365 1.1418482-2.77026352 0-2.16910651-1.7436708-3.91555618-3.9106849-3.91555618-1.0385328-.00166884-2.0349405.41048019-2.7688367 1.14529268-.7338963.73481249-1.1448018 1.73173362-1.1418482 2.7702635 0 2.1691065 1.7966779 3.91555622 3.9106849 3.91555622Zm0-6.19067694c1.2149786 0 2.2723309 1.0050426 2.2723309 2.27512072 0 1.26938065-1.0043452 2.27512071-2.2723309 2.27512071-.6044005.00412875-1.1852035-.23433506-1.6123268-.66198284-.4271234-.42764777-.6648744-1.0087429-.6600041-1.61313787 0-1.26938066 1.0566548-2.27512072 2.2723309-2.27512072Z" })
] }) }) }),
/* @__PURE__ */ jsxRuntimeExports.jsxs("nav", { ref: navRef, children: [
/* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { children: [
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("home"), children: "Home" }) }),
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("obituary.index"), children: "Overlijdensberichten" }) }),
/* @__PURE__ */ jsxRuntimeExports.jsx("li", {}),
/* @__PURE__ */ jsxRuntimeExports.jsxs("li", { children: [
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("herdenkingspagina"), children: "Herdenkingspagina" }),
/* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { children: [
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("herdenkingspagina-voorbeeld"), children: "Voorbeeld herdenkingspagina" }) }),
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("herdenkingspagina-faq"), children: "Veelgestelde vragen herdenkingspagina" }) }),
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("herdenkingspagina-stappenplan"), children: "Stappenplan herdenkingspagina" }) })
] })
] }),
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("articles"), children: "Verhalen" }) }),
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("adressengids"), children: "Adressen" }) }),
/* @__PURE__ */ jsxRuntimeExports.jsxs("li", { children: [
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("zakelijk"), children: "Zakelijk" }),
/* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { children: [
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("online-condoleanceregister"), children: "Online condoleanceregister" }) }),
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("herdenkingspagina-stappenplan"), children: "Stappenplan herdenkingspagina" }) }),
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("advertise"), "data-testid": "header-advertise", children: "Adverteren" }) }),
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("contact"), "data-testid": "header-contact", children: "Contact opnemen" }) })
] })
] }),
onboarding ? /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute(auth ? "account.person.create" : "create"), "data-testid": "header-create", children: "Rouwbericht plaatsen" }) }) : /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: "https://www.familieberichten.nl", target: "_blank", "data-testid": "header-create", children: "Rouwadvertentie plaatsen" }) })
] }),
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "btn btn__account", children: auth ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("account"), title: "Jouw account", "data-testid": "header-account", children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: "fa-regular fa-user" }) }),
/* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { children: [
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { className: "border-b", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("a", { href: relativeRoute("account"), "data-testid": "header-account", children: [
"Ingelogd als ",
user == null ? void 0 : user.email
] }) }),
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("a", { href: relativeRoute("account"), "data-testid": "header-persons", children: [
"Rouwberichten (",
amount_persons,
")"
] }) }),
amount_invitations && amount_invitations > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("a", { href: relativeRoute("invites.index"), "data-testid": "header-invitations", children: [
"Uitnodigingen (",
amount_invitations,
")"
] }) }) : "",
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { className: "border-b", children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("profile.edit"), "data-testid": "header-account_settings", children: "Instellingen" }) }),
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("logout"), "data-testid": "header-logout", children: "Uitloggen" }) })
] })
] }) : /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("login"), title: "Inloggen", "data-testid": "header-login", children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: "fa-regular fa-user" }) }) }),
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "btn btn__toggle", onClick: handleToggle, children: [
/* @__PURE__ */ jsxRuntimeExports.jsx("span", {}),
/* @__PURE__ */ jsxRuntimeExports.jsx("span", {}),
/* @__PURE__ */ jsxRuntimeExports.jsx("span", {}),
/* @__PURE__ */ jsxRuntimeExports.jsx("span", {})
] })
] })
] }) });
};
const Footer = () => {
const year = (/* @__PURE__ */ new Date()).getFullYear();
const handlePrivacySettings = () => {
window.Didomi.preferences.show();
};
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
/* @__PURE__ */ jsxRuntimeExports.jsx("footer", { className: "bg-white footer__links", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "about", children: [
/* @__PURE__ */ jsxRuntimeExports.jsx("h3", { children: "Mensenlinq" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("over-ons"), children: "Over ons" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("contact"), children: "Contact opnemen" })
] }),
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "obituary-shortcuts", children: [
/* @__PURE__ */ jsxRuntimeExports.jsx("h3", { children: "Overlijdensberichten" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("obituary.index", { "papers": ["leeuwarder-courant"] }), children: "Leeuwarder Courant" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("obituary.index", { "papers": ["dagblad-van-het-noorden"] }), children: "Dagblad van het Noorden" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("obituary.index", { "papers": ["friesch-dagblad"] }), children: "Friesch Dagblad" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("hr", {}),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("obituary.index", { "province": "drenthe" }), children: "Drenthe" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("obituary.index", { "province": "flevoland" }), children: "Flevoland" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("obituary.index", { "province": "friesland" }), children: "Friesland" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("obituary.index", { "province": "gelderland" }), children: "Gelderland" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("obituary.index", { "province": "groningen" }), children: "Groningen" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("obituary.index", { "province": "limburg" }), children: "Limburg" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("obituary.index", { "province": "noord-brabant" }), children: "Noord-Brabant" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("obituary.index", { "province": "noord-holland" }), children: "Noord-Holland" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("obituary.index", { "province": "overijssel" }), children: "Overijssel" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("obituary.index", { "province": "utrecht" }), children: "Utrecht" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("obituary.index", { "province": "zeeland" }), children: "Zeeland" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: relativeRoute("obituary.index", { "province": "zuid-holland" }), children: "Zuid-Holland" })
] }),
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "socials", children: [
/* @__PURE__ */ jsxRuntimeExports.jsx("h3", { children: "Volg je ons?" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: "https://www.facebook.com/mensenlinq/", children: "Volg ons op Facebook" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: "https://twitter.com/mensenlinq", children: "Volg ons op X" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: "https://nl.linkedin.com/company/mensenlinq", children: "Volg ons op LinkedIn" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("h3", { children: "Statements" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: "https://www.mediahuisnoord.nl/verkoopvoorwaarden", children: "Algemene Voorwaarden" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: "https://www.mediahuisnoord.nl/disclaimer", children: "Disclaimer" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: "https://mediahuisnoord.nl/cookieverklaring_tcf2-0/", children: "Cookieverklaring" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: "https://www.mediahuisnoord.nl/privacy/", children: "Privacyverklaring" }),
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: "#", onClick: handlePrivacySettings, children: "Privacyvoorkeuren" })
] })
] }) }),
/* @__PURE__ */ jsxRuntimeExports.jsx("footer", { className: "footer__meta", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "", children: [
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
"© ",
year,
" Mensenlinq"
] }),
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Onderdeel van Mediahuis Noord" }),
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: "https://www.mediahuisnoord.nl/verkoopvoorwaarden", children: "Algemene voorwaarden" }),
" - ",
/* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: "https://www.mediahuisnoord.nl/disclaimer", children: "Disclaimer" })
] })
] }) })
] });
};
const Page = ({ children, title, fullTitle, metaTags, pageType, adUnit, harvestId, mobileScaling }) => {
var _a;
const win = window;
const useSafePage = win.IS_STORYBOOK ? { url: "dummy-url", component: null, props: {
auth: {},
legacy_widget: propTypesExports.bool
} } : q();
const { url, component, props } = useSafePage;
const auth = props.auth;
const legacyWidget = !!props.legacy_widget;
const { initKaching: initKaching2, destroyKaching: destroyKaching2 } = useKaChing();
reactExports.useEffect(() => {
if (!win.IS_STORYBOOK) {
const pageTypeValue = pageType || CommercialPageType.Detail;
if (adUnit) {
setTimeout(() => {
initKaching2(url, pageTypeValue, adUnit, mobileScaling);
}, 1);
}
}
return () => {
destroyKaching2();
};
}, []);
const dataset = (_a = document.querySelector("body")) == null ? void 0 : _a.dataset;
if (dataset) {
const harvestObj = harvestId ? {
postID: harvestId,
postPublishDate: "2024-08-27T14:00:28+00:00"
} : {};
dataset.trackPage = JSON.stringify(harvestObj);
}
if (fullTitle) {
title = fullTitle;
} else {
const appName = "Mensenlinq";
title = `${title} - ${appName}`;
}
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
/* @__PURE__ */ jsxRuntimeExports.jsxs(Head, { children: [
title && /* @__PURE__ */ jsxRuntimeExports.jsx("title", { children: title }),
metaTags && metaTags.map(({ name, content }, index) => /* @__PURE__ */ jsxRuntimeExports.jsx("meta", { name, content }, index))
] }),
!legacyWidget && /* @__PURE__ */ jsxRuntimeExports.jsx(Header, { auth }),
children,
!legacyWidget && /* @__PURE__ */ jsxRuntimeExports.jsx(UpButton, {}),
!legacyWidget && /* @__PURE__ */ jsxRuntimeExports.jsx(Footer, {})
] });
};
const Page$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
default: Page
}, Symbol.toStringTag, { value: "Module" }));
export {
CommercialPageType as C,
Page as P,
CommercialType as a,
Commercial as b,
Page$1 as c,
environment as e
};
//# sourceMappingURL=Page-DftcByIi.js.map