1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="49b32097-fac4-5cba-bbdf-bb269f5dec9f")}catch(e){}}(); 3import{a as _e,g as xe,h as w}from"./chunk-MG3B2EDB.js";import"./chunk-UBSB4D4W.js";import{b as Le}from"./chunk-GXDP2FGW.js";import"./chunk-V3G5TQJM.js";import{a as he}from"./chunk-AL5YWUYB.js";import"./chunk-L7PSMKDQ.js";import{a as Se}from"./chunk-BXDUHPX6.js";import{a as ve}from"./chunk-O26ZYUTL.js";import{b as ye,c as Ae}from"./chunk-X5VHI5QR.js";import"./chunk-JRHHRRUH.js";import"./chunk-H5PXUJI5.js";import"./chunk-MMVKBIVJ.js";import"./chunk-XWB355SF.js";import{f as Pe}from"./chunk-NDK2RXFF.js";import{a as be}from"./chunk-Q7GXGD5V.js";import{e as ge}from"./chunk-5UFPESTD.js";import"./chunk-AUIS7AW5.js";import{W as ue}from"./chunk-5I6WN74B.js";import{Aa as I,Ba as de,Fa as C,Qa as q,Ub as T,gb as fe,jb as pe}from"./chunk-6PFEYZXK.js";import{a as le}from"./chunk-WDI4FOPR.js";import{M as se,W as ce,c as oe,f as ie,ga as me,ka as u,m as ne}from"./chunk-HBEIDLV5.js";import{l as ae}from"./chunk-5F2HCHR4.js";import{t as E}from"./chunk-VWKEY7F5.js";import{$b as R,C as S,Ca as x,Fb as W,I as v,Sa as j,V as B,a as A,ad as ee,b as H,cc as K,dc as z,ia as a,id as re,jd as te,mc as Y,nb as J,nc as V,o as b,oc as X,p as l,pb as Q,sa as $,sd as D,w as N,y as G,zc as Z}from"./chunk-ATQK6E3C.js";function m(e,r){if(!e)return"";if(/^https?:\/\//i.test(e))return e;if(e.startsWith("//"))return`https:${e}`;let t=r.replace(/\/+$/,""),o=e.startsWith("/")?e:`/${e}`;return`${t}${o}`}function L(e){return`${e.replace(/\/+$/,"")}/#organization`}function Ee(e){return`${e.replace(/\/+$/,"")}/#website`}function Ie(e){if(!e.segments?.length)return null;let r={"@type":"BreadcrumbList",itemListElement:e.segments.map((t,o)=>({"@type":"ListItem",position:o+1,name:t.name,item:m(t.path,e.origin)}))};return e.id&&(r["@id"]=e.id),r}function F(e){let r=[];for(let o of e.items??[]){if(!o)continue;let i=u(o.title),n=u(o.content);!i||!n||r.push({"@type":"Question",name:i,acceptedAnswer:{"@type":"Answer",text:n}})}if(r.length===0)return null;let t={"@type":"FAQPage",mainEntity:r};return e.id&&(t["@id"]=e.id),t}function Ce(e){let r={"@type":"Offer",price:je(e.price),priceCurrency:e.priceCurrency,availability:e.availability??"https://schema.org/InStock",url:m(e.url,e.origin)};return e.priceValidUntil&&(r.priceValidUntil=e.priceValidUntil),e.sku&&(r.sku=e.sku),e.name&&(r.name=e.name),r}function je(e){return Number.isFinite(e)?Math.round(e*100)/100:0}function Te(e,r){let t={"@type":"Organization","@id":L(r),name:e.name,url:r,logo:m(e.logoPath,r)};return e.legalName&&(t.legalName=e.legalName),e.sameAs?.length&&(t.sameAs=[...e.sameAs]),e.contactPoints?.length&&(t.contactPoint=e.contactPoints.map(o=>A({},o))),e.address&&(t.address=A({},e.address)),t}function we(e){let r={"@type":"Product","@id":e.id??`${m(e.url,e.origin)}#product`,name:e.name,image:Je(e.images.map(t=>m(t,e.origin)).filter(t=>t.length>0))};if(e.description&&(r.description=e.description),e.sku&&(r.sku=e.sku,r.productID=e.sku),e.brandName){let t={"@type":"Brand",name:e.brandName};r.brand=t}return e.offers&&(Array.isArray(e.offers)?e.offers.length===1?r.offers=e.offers[0]:e.offers.length>1&&(r.offers=e.offers):r.offers=e.offers),r}function Je(e){return Array.from(new Set(e))}function ke(e,r){let t={"@type":"WebSite","@id":Ee(r),url:r,name:e.name,publisher:{"@id":L(r)}};if(e.searchActionUrlTemplate){let i={"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:m(e.searchActionUrlTemplate,r)},"query-input":"required name=search_term_string"};t.potentialAction=i}return t}var Qe=new Set(["de","en","fr","it"]);function k(e,r,t="Home"){let i=(e||"/").split("?")[0].split("#")[0].split("/").filter(Boolean),n=r,s=0;i.length>0&&Qe.has(i[0])&&(n=i[0],s=1);let f=[{name:t,path:`/${n}`}],d=`/${n}`;for(let p=s;p<i.length;p++)d+=`/${i[p]}`,f.push({name:We(i[p]),path:d});return f}function We(e){return decodeURIComponent(e).replace(/[-_]+/g," ").trim().replace(/\b\w/g,r=>r.toUpperCase())}function M(e){let r=[];r.push(Te(e.config,e.origin)),e.includeWebSite&&r.push(ke(e.config,e.origin));let t=e.breadcrumbs??k(e.url,e.currentLang,e.homeLabel),o=Ie({segments:t,origin:e.origin});return o&&r.push(o),r}var Ke="home",ze="landing-page",Ue="product-detail",Ye="home",Ve="product_detail_overview",Xe="centered_accordion",Ze="landing_page_partial",er="CHF",Re=e=>{let r=a(he),t=a(ie),o=a(I),i=a(C),n=a(Pe),s=t.getOrigin(),f=e.url.map(_=>_.path).join("/"),d=`/${o.currentLanguage()}${f?`/${f}`:""}`,p=e.data?.landingPageData??null,g=rr(p,e),P={config:r,origin:s,url:d,currentLang:o.currentLanguage()},y=M({config:r,origin:s,url:d,currentLang:o.currentLanguage(),includeWebSite:g}),h=tr(p,i),c=or(p),Ge=c?ir(c,i,n):l(null);return S([h,Ge]).pipe(N(([_,Be])=>{let U=[...y],O=_.length?F({items:_}):null;return O&&U.push(O),c?nr(Be,P,U):{pageKey:g?Ke:ze,graph:U}}))};function rr(e,r){return e?.uid===Ye?!0:r.url.length===0}function tr(e,r){if(!e?.data?.body?.length)return l([]);let t=Ne(e.data.body),o=e.data.body.filter(n=>n.slice_type===Ze).map(n=>n.primary?.page_partial_reference?.id).filter(n=>!!n);return o.length?S(o.map(n=>b(r.getById(n)).pipe(v(()=>l(null))))).pipe(N(n=>{let s=n.flatMap(f=>{let d=f?.data?.body;return d?Ne(d):[]});return[...t,...s]})):l(t)}function Ne(e){return e.filter(r=>r.slice_type===Xe).flatMap(r=>r.items??[]).map(r=>({title:q(r.title),content:q(r.text)}))}function or(e){return e?.data?.body?.find(r=>r.slice_type===Ve)??null}function ir(e,r,t){let o=e.primary?.product,i=e.primary?.promotion;return o?.id?b(r.getById(o.id).then(n=>t.convertProductBox(n,i))).pipe(v(()=>l(null))):l(null)}function nr(e,r,t){let o=ar(e,r);if(!o)return{pageKey:Ue,graph:t};let i=M({config:r.config,origin:r.origin,url:r.url,currentLang:r.currentLang,breadcrumbs:cr(r,e.product)}).find(s=>s["@type"]==="BreadcrumbList"),n=t.filter(s=>s["@type"]!=="BreadcrumbList");return i&&n.push(i),n.push(o),{pageKey:Ue,graph:n}}function ar(e,r){if(!e?.product)return null;let t=e.product,o=sr(t,e),i=t.product_code||t.rateplan_id||void 0,n=Ce({price:o,priceCurrency:er,url:r.url,origin:r.origin,sku:i}),s=u(t.short_description||t.subtitle||"")||void 0;return we({name:t.name,description:s,images:[t.product_icon?.url,r.config.logoPath].filter(f=>!!f),sku:i,url:r.url,origin:r.origin,brandName:r.config.name,offers:n})}function sr(e,r){let t=Number(e.monthly_cost);if(!Number.isFinite(t))return 0;let o=r.promotion?.discountAmount;return typeof o=="number"&&o>0?e.discountedPrice(o):t}function cr(e,r){let t=k(e.url,e.currentLang);if(!t.length)return t;let o=t[t.length-1];return[...t.slice(0,-1),{name:r.name,path:o.path}]}var mr=()=>["aklamioPortalLabel"];function dr(e,r){if(e&1&&(Y(0,"section",0),re(1,"translate"),X(2,"div",1),V()),e&2){let t=Z();R("aria-label",te(1,3,ee(5,mr))),Q(2),R("data-uid",t.partnerId())("data-locale",t.currentLanguage())}}var De=(()=>{class e{constructor(){this.document=a($),this.elementRef=a(j),this.platformId=a(x),this.config=a(ge),this.languageService=a(I),this.monitoringService=a(T),this.toastService=a(pe),this.limitedNetwork=a(oe),this.aklamioEnabled=D(()=>this.config.enabled&&!this.limitedNetwork.enforced),this.partnerId=D(()=>this.config.rafPartnerId),this.currentLanguage=this.languageService.currentLanguage,J(()=>{let t=this.currentLanguage();t!==this.lastRenderedLanguage&&(this.lastRenderedLanguage=t,this.reloadEmbed())})}reloadEmbed(){if(!this.aklamioEnabled()||!E(this.platformId))return;let t=this.elementRef.nativeElement.querySelector('[data-aklamio-embed="true"]');t?.replaceChildren(),t?.removeAttribute("data-processed"),t?.removeAttribute("data-inserted"),this.document.getElementById("aklamio-embed-js")?.remove();try{se(this.document,this.config.embedScriptUrl,!0,!0,"head","aklamio-embed-js"),this.document.getElementById("aklamio-embed-js")?.addEventListener("error",()=>this.handleScriptLoadError(),{once:!0})}catch{this.handleScriptLoadError()}}handleScriptLoadError(){this.monitoringService.captureException(new Error("Failed to load Aklamio embed script.")),this.toastService.add({messageKey:["aklamioEmbedScriptLoadError"],isGood:!1})}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=W({type:e,selectors:[["app-aklamio-portal"]],decls:1,vars:1,consts:[[1,"w-full"],["data-aklamio-embed","true",1,"w-full"]],template:function(o,i){o&1&&K(0,dr,3,6,"section",0),o&2&&z(i.aklamioEnabled()?0:-1)},dependencies:[fe],encapsulation:2})}}return e})();var qe=[le([{component:De}])];var Fe=(e,r,t,o)=>{let i=a(be),n=Object.keys(me);return o.url.split("/").some(s=>n.includes(s))?i.openConfirmationDialogIfAny():!0};var Me=async e=>{if(!e.data.landingPageData)return;let r=a(w),t=a(T);try{return await r.convertLandingPage(e.data.landingPageData)}catch(o){t.captureException(o),console.trace()}};var lr="home";function fr(e){let r=e.url.map(i=>i.path).join("--")||lr,t="new_landing_page",o={product:"product_page"};for(let i in o)if(e.url.length>0&&i===e.url[0].path){t=o[i],r=r?.replace(i,"");break}return r&&r.length>1&&r.startsWith("--")&&(r=r.substring(2)),{uid:r,prismicPageType:t}}function Oe(e,r,t){return e.url.map(i=>i.path).join("/")==="not-found"?l(r.createUrlTree(["404"],{queryParamsHandling:"merge"})):t.redirectTo("/not-found")}var He=e=>{let r=a(ae),t=a(C),o=a(ue),i=a(de),n=a(x),{uid:s,prismicPageType:f}=fr(e);return s?.startsWith("404")?Oe(e,r,i):S([b(t.getByUid(f,s,xe)),b(t.getByUid("redirect",s))]).pipe(G(([d,p])=>{if(p){let c=p?.data.redirect_to;
3if(c)return i.redirectTo(c,e.queryParams)}if(e.data=H(A({},e.data),{landingPageData:d}),Object.preventExtensions(e.data),!d)return ce(e.url)?i.redirectTo("/auth/login",e.queryParams):Oe(e,r,i);let g=d.data.redirects.filter(c=>c.redirect_url!==null);if(!g?.length)return l(!0);let P=g.findLast(c=>c.logged_in_status==="Logged in"),y=g.findLast(c=>c.logged_in_status==="Not logged in"),h=g.findLast(c=>c.logged_in_status==="Any");return!P&&!y&&h?i.redirectTo(h.redirect_url,e.queryParams):E(n)?o.isAuthenticated().pipe(B(c=>c&&P?i.redirectTo(P.redirect_url,e.queryParams):!c&&y?i.redirectTo(y.redirect_url,e.queryParams):h?i.redirectTo(h.redirect_url,e.queryParams):l(!0))):l(!0)}),v(d=>(console.error(d),l(!1))))};var pr=[{path:"**",loadComponent:()=>import("./landing-page.component-SA6TOPRN.js").then(e=>e.LandingPageComponent),resolve:{cmsData:Me,app:()=>ne.website,seo:Re},canActivate:[Se,He],canDeactivate:[Fe]}],Mo=[{path:"",loadComponent:()=>import("./landing-page-container.component-TUJPVQRD.js").then(e=>e.LandingPageContainerComponent),providers:[...qe,...ve,ye,_e,w],children:pr,resolve:{mainNavigation:Ae,footer:Le}}];export{Mo as routes}; 4 5//# debugId=49b32097-fac4-5cba-bbdf-bb269f5dec9f
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.