1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6939],{101:(t,e,i)=>{i.d(e,{TRACKING_CONTEXT:()=>G,TrackingProvider:()=>K,trackingClient:()=>U,useTrackingContext:()=>j});var s,r,a=i(15601),n=i(7620),o=i(77207),c=i(10668),h=((s=h||{}).MAIL="userdata_email",s);class u extends c.w{constructor(){super()}static getInstance(){return this.instance||(this.instance=new u),this.instance}setEmail(t){this.set("userdata_email",this.buildStorageValue(t))}getEmail(){return this.get("userdata_email")}clear(){this.clearItems(["userdata_email"])}buildStorageValue(t){let e=new Date;return JSON.stringify({value:t,expiry:e.setDate(e.getDate()+216e5)})}}var l=i(18207),d=i(59941),m=i(79915);class p{constructor(t){this.products=t}get(){return{currency:this.products[0]?.currency,value:this.getValue()}}getValue(){return this.products.reduce((t,e)=>{let i=e.price_connection||0,s=e.price_contract_total;return s?t+i+s:t+e.price},0)}}var g=i(13010),I=i(76555),y=i(47600),C=i(76958),f=i(19751);class _{constructor(t,e,i){this.cart=t,this.checkoutInformation=e,this.orderId=i}get(){return{affiliation:`${f.cb}.de`,commissionLevel:this.getCommissionLevel(),coupon:this.getCoupon(),currency:this.cart.items[0]?.price?.currency?.code,d_id:this.getDId(),tax:(0,I.lf)(this.cart.summary.tax),transaction_id:this.orderId||"",value:this.getValue(),...this.checkoutInformation}}getCommissionLevel(){return d.Y.getInstance().getProvisioningLevel()||void 0}getValue(){let t=this.cart?.summary?.total?.[y.mE.ONETIME]?.items.find(t=>t.isShipping)?.price.cents||0,e=(this.cart?.summary?.total?.[y.mE.ONETIME]?.price?.cents||0)-t,i=0,s=this.cart.items.find(({price:t})=>t.monthly?.total);return s&&(i=this.getContractTotalPrice(s)),(0,I.lf)(e+i)}getContractTotalPrice(t){let e=t.items?.find(({type:t})=>t===C.Vo.TARIFF)||t,i=Number((e.attributes?.vertragslaufzeit?.value||"").replace(/\D/g,""));return(t.price?.monthly?.total||0)*i}getCoupon(){return this.cart?.summary?.discountCodes.reduce((t,e)=>t?`${t}, ${e.code}`:t+e.code,"")}getDId(){let t=this.cart.items[0]?.attributes?.db_1?.value??null;return t?String(t):null}}var T=i(48311),E=i(74931),v=i(45456),b=i(33197),A=i(77395),S=i.n(A);let w=t=>new TextEncoder().encode(t),N={hash(t,e){switch(t){case"md5":return S().ArrayBuffer.hash(w(e).buffer);case"sha1":return(0,b.My)((0,E.e8)(w(e)));case"sha256":return(0,b.My)((0,v.sc)(w(e)));default:throw Error(`Unsupported hash algorithm: ${String(t)}`)}}},D=t=>{let e={};return t?.email&&Object.assign(e,{email_hash_md5:N.hash("md5",t.email),email_hash_sha1:N.hash("sha1",t.email),email_hash_sha256:N.hash("sha256",t.email)}),t?.phone&&Object.assign(e,{phone_hash_md5:N.hash("md5",t.phone),phone_hash_sha1:N.hash("sha1",t.phone),phone_hash_sha256:N.hash("sha256",t.phone)}),e};class R{constructor(t,e,i,s){this.client=t,this.checkoutInfomation=e,this.items=i,this.clientData=s}start(){let t={event:m.F3.BEGIN_CHECKOUT,ecommerce:{currency:this.checkoutInfomation.currency,value:this.checkoutInfomation.value,coupon:this.checkoutInfomation.coupon,items:this.items}};this.client.execute(t)}addShippingInfo(){let t={event:m.F3.ADD_SHIPPING_INFO,ecommerce:{currency:this.checkoutInfomation.currency,value:this.checkoutInfomation.value,coupon:this.checkoutInfomation.coupon,shipping_tier:this.checkoutInfomation.shipping_tier,items:this.items}};this.client.execute(t)}addPaymentInfo(){let t={event:m.F3.ADD_PAYMENT_INFO,ecommerce:{currency:this.checkoutInfomation.currency,value:this.checkoutInfomation.value,coupon:this.checkoutInfomation.coupon,payment_type:this.checkoutInfomation.payment_type,items:this.items}};this.client.execute(t)}purchase(){let t={event:m.F3.PURCHASE,ecommerce:{commission_level:this.checkoutInfomation.commissionLevel,coupon:this.checkoutInfomation.coupon,currency:this.checkoutInfomation.currency,d_id:this.checkoutInfomation.d_id,items:this.items,shipping:this.checkoutInfomation.shipping,tax:this.checkoutInfomation.tax,transaction_id:this.checkoutInfomation.transaction_id,value:this.checkoutInfomation.value},client_data:{...this.clientData,...D(this.clientData)}};this.client.execute(t)}refund(){let t={transaction_id:this.checkoutInfomation.transaction_id};this.items.length&&Object.assign(t,{currency:this.checkoutInfomation.currency,value:this.checkoutInfomation.value,coupon:this.checkoutInfomation.coupon,tax:this.checkoutInfomation.tax,shipping:this.checkoutInfomation.shipping,items:this.items});let e={event:m.F3.REFUND,ecommerce:t};this.client.execute(e)}}class k{constructor(t,e,i,s){this.client=t,this.eventName=e,this.customEventInformation=i,this.clientData=s}execute(){let t=window.location.href,e={event:m.F3.CUSTOM,event_name:this.eventName,event_parameter:{...this.customEventInformation,page_location:t,content_text:this.customEventInformation.content_text?.toLowerCase()},form_data:this.clientData};this.client.execute(e)}}var x=((r={}
1).ADDRESS_PRODUCT_LIST="pagePageTemplateAdressProductList",r.CONTENT="pageTemplateContent",r.CONTENT_DYNAMIC_WIDTH="pageContentPage",r.LANDINGPAGE="pageTemplateLandingpage",r.PRODUCT_LIST="pageTemplateProductList",r.TARIFF_COMPARISON="pageTariffComparison",r);let L=t=>Object.values(x).includes(t)?m.xT.CONTENT_PAGE:"ProductDetailBundle"===t?m.xT.PRODUCT_DETAIL_BUNDLE:t.replace(/([A-Z])/g," $1").toLowerCase().trim();class O{constructor(t,e){this.client=t,this.payload=e}view(){let t={event:m.F3.VIRTUAL_PAGE_VIEW,page_location:this.payload.location,page_title:this.payload.title,page_referrer:this.payload.referrer,page_type:L(this.payload.type)};this.client.execute(t)}}class V{constructor(t,e,i){this.client=t,this.items=e,this.promotionInformation=i}view(){let t={event:m.F3.VIEW_PROMOTION,ecommerce:{...this.promotionInformation,items:this.items}};this.client.execute(t)}select(){let t={event:m.F3.SELECT_PROMOTION,ecommerce:{items:this.items}};this.client.execute(t)}}var P=i(91036);class B{constructor(t,e,i){this.client=t,this.payload=e,this.clientData=i}execute(){let t={event:m.F3.META_INFORMATION,page_type:L(this.payload.type),environment:this.getEnvironment(),bid:this.payload.bid,bid_freeze:this.payload.bidFreeze,commission_level:this.payload.provisioningLevel,user_data:{subscribed_newsletter:this.getNewsletterSubscribed(),login_status:!1,...this.clientData,...D(this.clientData)}};this.client.execute(t)}getNewsletterSubscribed(){return"true"===(0,P.getCookie)(`${f.cb}_newsletter_subscribed`)}getEnvironment(){switch(f.X$){case"production":return m.i7.PROD;case"staging":return m.i7.STAGE;default:return m.i7.DEV}}}var M=i(18857);class F{static build(t,e){let i={...t};return t.email&&(i.email_hash_md5=e.hash("md5",t.email),i.email_hash_sha1=e.hash("sha1",t.email),i.email_hash_sha256=e.hash("sha256",t.email),delete i.email),t.phone&&(i.phone_hash_md5=e.hash("md5",t.phone),i.phone_hash_sha1=e.hash("sha1",t.phone),i.phone_hash_sha256=e.hash("sha256",t.phone),delete i.phone),i}}var $=i(27697);let U=new o.N,H={cart:({products:t,cart:e,checkoutInfo:i,type:s,customFields:r})=>{let a;e&&(a=new _(e,i).get());let n=t.flatMap(({main:t,items:e})=>new M.Z(t,e).execute()).map(t=>r?{...t,...r}:t),o=new T.E(U,n,{checkoutInformation:a});s===m.Fl.VIEW_CART&&o.viewCart(),s===m.Fl.ADD_TO_CART&&o.addToCart(),s===m.Fl.REMOVE_FROM_CART&&o.removeFromCart()},checkout:(t,e,i,s)=>{let{cart:r,checkoutInfo:a}=t,n=new R(U,new _(r,a,i).get(),r.items.map(t=>new M.Z(t).execute()).flat(),s);e===m.F3.BEGIN_CHECKOUT&&n.start(),e===m.F3.ADD_SHIPPING_INFO&&n.addShippingInfo(),e===m.F3.ADD_PAYMENT_INFO&&n.addPaymentInfo(),e===m.F3.PURCHASE&&n.purchase(),e===m.F3.REFUND&&n.refund()},screen:(t,e,i,s)=>{new O(U,{location:t,title:e,referrer:i,type:s}).view()},item:({products:t,type:e,customFields:i,trackAsList:s})=>{let r=t.flatMap(({main:t,items:i,trackAsBundle:r})=>new M.Z(t,i,{trackAsBundle:r,type:e,trackAsList:s}).execute()).map(t=>i?{...t,...i}:t),a=new p(r).get(),n=new g.zS(U,r,a);e===m.F3.VIEW_ITEM&&n.view(),e===m.F3.SELECT_ITEM&&n.select(),e===m.F3.VIEW_ITEM_LIST&&n.viewList(),e===m.F3.ADD_TO_WISHLIST&&n.addTowishlist(),e===m.F3.ADD_TO_COMPARISON_LIST&&n.addToComparisonList(),e===m.F3.REMOVE_FROM_COMPARISON_LIST&&n.removeFromComparisonList()},custom:(t,e,i,s)=>{new k(U,e,{...t,page_section:i},s?F.build(s,N):void 0).execute()},promotion:({products:t,type:e,trackAsList:i})=>{let s=t.flatMap(({main:t,items:s})=>new M.Z(t,s,{type:e,trackAsList:i}).execute()),{promotionId:r,promotionName:a,creativeName:n,creativeSlot:o}=new $.V(s[0].item_id??"").execute(),c=new V(U,s,i?{promotion_id:r??"",promotion_name:a??"",creative_name:n??"",creative_slot:o??""}:void 0);e===m.F3.VIEW_PROMOTION&&c.view(),e===m.F3.SELECT_PROMOTION&&c.select()},pageMeta:(t,e,i,s,r)=>{new B(U,{type:t,bid:e,bidFreeze:i,provisioningLevel:s},r).execute()},changeCart:()=>{},changeMail:()=>null,purchase:()=>{}},G=(0,n.createContext)(H),W=t=>{d.Y.getInstance().setCart(t)},Y=t=>{u.getInstance().setEmail(t)},z=(t,e,i,s)=>{let r=d.Y.getInstance().getCart();try{if(r??s){let a=s??JSON.parse(r??"");H.checkout({cart:a,checkoutInfo:t},m.F3.PURCHASE,e,i)}}catch(t){l.A.IS_DEBUG&&console.error(t)}},K=({children:t})=>{let e=(0,n.useMemo)(()=>({...H,changeCart:W,purchase:z,changeMail:Y}),[]);return(0,a.Y)(G.Provider,{value:e,children:t})},j=()=>{let t=(0,n.useContext)(G);return void 0===t&&l.A.IS_DEBUG&&console.error("useCartContext was used outside of its Provider"),t}},1809:(t,e,i)=>{i.d(e,{W:()=>a,s:()=>n});var s,r,a=((s={}
1).COLOR="productColor",s.DETAIL="detailProduct",s.SIMPLE="product",s),n=((r={}).AUTO_BUNDLE="auto_bundle",r.MAN_BUNDLE="man_bundle",r)},4648:(t,e,i)=>{i.d(e,{_:()=>u});var s=i(18207),r=i(87619),a=i(10668);class n extends a.w{constructor(){super()}static getInstance(){return this.instance||(this.instance=new n),this.instance}setList(t){this.clear(),this.set(r.yr,this.buildStorageValue(t))}getList(){return this.get(r.yr)||void 0}clear(){this.clearItems([r.yr])}buildStorageValue(t){let e=new Date;return JSON.stringify({value:t,expiry:e.setDate(e.getDate()+216e5)})}}class o extends a.w{constructor(){super()}static getInstance(){return this.instance||(this.instance=new o),this.instance}setList(t){this.set(r.qM,this.buildStorageValue(t))}getList(){return this.get(r.qM)||void 0}clear(){this.clearItems([r.qM])}buildStorageValue(t){let e=new Date;return JSON.stringify({value:t,expiry:e.setDate(e.getDate()+216e5)})}}let c=n.getInstance(),h=o.getInstance(),u=(t,e,i)=>{if(s.A.DISABLE_TRACKING)return;let r=i?h:c,a=r.getList()??{},n={...a,[t]:{...e,isClicked:a[t]?.isClicked||i}};r.setList(n)}},9842:(t,e,i)=>{i.d(e,{Z:()=>s});let s=t=>t?.charAt(0).toUpperCase()+t?.slice(1)},10668:(t,e,i)=>{i.d(e,{l:()=>r,w:()=>a});let s="__storage_test__",r=t=>`${t}_simyo_https://www.simyo.de/`;class a{constructor(t=()=>{try{return window.localStorage.setItem(s,"test"),window.localStorage.removeItem(s),window.localStorage}catch(t){console.info("LocalStorage not available")}return window.sessionStorage}){try{this.storage=t()}catch(t){this.storage=null}}get(t){if(!this.storage)return null;let e=new Date,i=this.storage.getItem(t);if(!i)return null;let s=JSON.parse(i);return e.getTime()>s.expiry?(this.clearItem(t),null):s.value}set(t,e){this.storage?.setItem(t,e)}clearItem(t){this.storage?.removeItem(t)}clearItems(t){t.forEach(t=>this.clearItem(t))}setWithTTL(t,e,i=1){let s=new Date,r={value:e,expiry:s.setDate(s.getDate()+i)};return this.set(t,JSON.stringify(r))}}},12523:(t,e,i)=>{i.d(e,{m:()=>m});var s,r,a=i(23003),n=i(87116),o=((s={}).CART_ID_INVALID="101",s),c=i(89053),h=i(59941),u=i(14486),l=((r=l||{})[r.ADD=a.Hg.ITEM]="ADD",r[r.ADD_MANY=a.Hg.ITEMS]="ADD_MANY",r[r.DELETE_CART=a.Hg.BASE]="DELETE_CART",r[r.DELETE_ITEM=a.Hg.ITEM]="DELETE_ITEM",r[r.DISCOUNT_CODE=a.Hg.DISCOUNT_CODE]="DISCOUNT_CODE",r[r.GET=a.Hg.BASE]="GET",r[r.QUANTITY_CHANGE=a.Hg.ITEM]="QUANTITY_CHANGE",r);let d=new c.r({data:null,status:n.g.BAD_REQUEST});class m extends u.w{constructor(t,e){super(),this.cartId=t,this.customerId=e,this.cartStorage=h.Y.getInstance(),this.cartId=this.cartStorage.getCartId()||"",this.customerId=this.cartStorage.getCustomerId()||e||""}setCustomerId(t){this.customerId=t}setCartId(t){this.cartId=t}async getCart(){return this.customerId?await this.get(`${this.getBaseUrl()}${a.m4}${l.GET}?customerId=${this.customerId}`):d}async add(t,e,i){let s=await this.post(`${this.getBaseUrl()}${a.m4}${l.ADD}`,{body:{customerId:this.customerId,...this.cartId?{cartId:this.cartId}:{},quantity:e??1,concreteSku:t,parentSku:i??null}}),r=s.get();if(!s.isSuccess())return this.clearCartIdIfCartIdNotFound(s)?this.add(t,e,i):s;let{summary:{cartId:n},provisioningLevel:o}=r;return this.cartStorage.setCartId(n),this.cartStorage.setProvisioningLevel(o),s}async addMany(t){let e=await this.put(`${this.getBaseUrl()}${a.m4}${l.ADD_MANY}`,{body:{customerId:this.customerId,cartId:this.cartId||void 0,concreteSkus:t}}),i=e.get();if(!e.isSuccess())return this.clearCartIdIfCartIdNotFound(e),e;let{summary:{cartId:s},provisioningLevel:r}=i;return this.cartStorage.setCartId(s),this.cartStorage.setProvisioningLevel(r),e}async changeQuantity(t,e){let i=await this.put(`${this.getBaseUrl()}${a.m4}${l.QUANTITY_CHANGE}`,{body:{customerId:this.customerId,cartId:this.cartId,concreteSku:t,quantity:e}});return i.isSuccess()||this.clearCartIdIfCartIdNotFound(i),i}async deleteItem(t){return this.cartId&&this.customerId?await this.delete(`${this.getBaseUrl()}${a.m4}${l.DELETE_ITEM}?cartId=${this.cartId}&customerId=${this.customerId}&cartItemId=${t}`):d}async deleteCart(){if(!this.cartId||!this.customerId)return d;let t=await this.delete(`${this.getBaseUrl()}${a.m4}${l.DELETE_CART}?cartId=${this.cartId}&customerId=${this.customerId}`);return t.isSuccess()&&(this.cartStorage.clearCartId(),this.cartId=""),t}async addDiscountCode(t){return this.cartId&&this.customerId?await this.post(`${this.getBaseUrl()}${a.m4}${l.DISCOUNT_CODE}`,{body:{cartId:this.cartId,customerId:this.customerId,discountCode:t}}):d}async deleteDiscountCode(t){return this.cartId&&this.customerId?await this.delete(`${this.getBaseUrl()}${a.m4}${l.DISCOUNT_CODE}?cartId=${this.cartId}&customerId=${this.customerId}&discountCode=${t}`):d}async getInsurances(){return this.customerId&&this.cartId?await this.get(`${this.getBaseUrl()}${a.m4}${l.GET}/insurances?cartId=${this.cartId}&customerId=${this.customerId}`):d}async getCurrentDate(){return await this.get(`${this.getBaseUrl()}${a.DX.GET}`)}clearCartIdIfCartIdNotFound(t){let e=t?.get(),i=e&&"object"==typeof e&&"errors"in e?e?.errors:null,s=Array.isArray(i)&&i.some(t=>
1String(t.code||"")===o.CART_ID_INVALID);return s&&(this.cartStorage.clearCartId(),this.cartId=""),s}}},12627:(t,e,i)=>{i.d(e,{J:()=>l});var s,r,a=i(18207),n=i(19751),o=i(77911),c=i(76958),h=((s=h||{}).BUNDLE="bundle_id",s.HARDWARE="geraete_id",s.HAS_HIGHLAYOUT="hasHighLayout",s.HAS_SIMYOLAYOUT="isSimyo",s.TARIFF="tarif_id",s),u=((r=u||{}).HARDWARE="695",r.TARIFF="1585",r);class l{constructor(t){this.verticalUrl=t}execute(t,e){let i=a.A.USE_CART?null:this.getRedirectId(t),{bundleTariffId:s,bundleHardwareId:r}=this.getBundleItemIds(e),c=new URLSearchParams,h=!!t.price.monthly?.total,u=!!e?.length,l=!u&&!!h;if(i)if(u)c.set("bundle_id",i);else{let t=u||l?"695":i,e=l?i:"1585";c.set("geraete_id",t),c.set("tarif_id",e),n.cb===o.C3.HIGH_MOBILE&&c.set("hasHighLayout","1"),n.cb===o.C3.SIMYO&&c.set("isSimyo","1")}s&&r&&(c.set("geraete_id",r),c.set("tarif_id",s));let d=c.toString();return d?this.verticalUrl+"bestellweg_kundendaten.html?bestellweg_start=1&resetSession=1&"+d:null}getBundleItemIds(t){let e=t?.find(t=>t.type===c.Vo.TARIFF),i=t?.find(t=>t.type===c.Vo.DEVICE);return{bundleTariffId:this.getRedirectId(e),bundleHardwareId:this.getRedirectId(i)}}getRedirectId(t){return a.A.USE_CART?void 0:t?.attributes?.alt_sku?.value?.toString()}}},13404:(t,e,i)=>{i.d(e,{P:()=>s});let s=(t,e)=>{if(!e)return t;try{if(!t.toLowerCase().startsWith(e.toLowerCase()))return`${e} ${t}`.replace(/\s+/g," ").trim();{let i=e.toLowerCase(),s=`${i}\\s+${i}`;if(RegExp(`^${s}`,"i").test(t))return t.substring(e.length).trim().replace(/\s+/g," ").trim();return t}}catch(e){return console.warn("Failed to clean product title:",e),t}}},16939:(t,e,i)=>{i.d(e,{CartReminderPetal:()=>M,PURCHASE_COOKIE:()=>V});var s=i(15601),r=i(7620),a=i(79748),n=i(12523),o=i(42469),c=i(59941),h=i(19751),u=i(13010),l=i(4648),d=i(31042),m=i(1809),p=i(79915),g=i(76958),I=i(13404),y=i(77694),C=i(81001),f=i(91036),_=i(101),T=i(12627),E=i(50399);let v=[d.v.BESTELLWEG,d.v.CART,d.v.CHECKOUT,d.v.DEALS,d.v.INFO,d.v.KP],b={item_list_name:"Cart Reminder",item_list_id:"cart-reminder"};class A{constructor(t,e,i){this.storage=t,this.cartService=e,this.productService=i}async execute(){let t=this.storage.getCartItems();if(this.storage.getCartReminderCooldown())return{isNewCart:!1,products:null};if(t)return{products:(await Promise.all(t.map(t=>this.productService.getProduct(t)))).map(t=>t.get()).filter(Boolean),isNewCart:!1};let e=await this.cartService.getCart();return e.isSuccess()?{products:e.get().items,isNewCart:!0}:{products:null,isNewCart:!0}}}var S=i(77568),w=i(41401);let N=(t,e,i)=>{let r=t.type===g.Vo.DEVICE,a=t.type===g.Vo.TARIFF,n=e?{onetime:e?.price?.onetime}:null,o=r?{...t.price,...n}:t.price,c="quantity"in t?t.quantity:1;return(0,s.Y)(S.m,{subline:t.type===g.Vo.TARIFF?t.highlights?.flatMap(t=>t.headline).join(", "):void 0,headline:`${c>1?`${c} x `:""}${t.manufacturer?.[0]?.name} ${t.name}`,image:t.images.product[0]||t.manufacturer?.[0]?.image,price:i||a?o:void 0,activeAttributes:t.attributes,productType:t.type,type:w.K.SLIM,noMargin:!0,stock:"variants"in t?t.variants?.[0]?.stock:t?.stock},t.sku)},D=new n.m("",""),R=new o.bk,k=c.Y.getInstance(),x=new A(k,D,R),L=new T.J(h._t),O=[m.s.AUTO_BUNDLE,m.s.MAN_BUNDLE],V="purchase_finished",P="hide_reminder",B={action:p.Fl.EMPTY,element_type:"",interaction_result:p.HR.OPEN_FLYOUT,link_url:"",content_text:""},M=()=>{let[t,e]=(0,r.useState)(!1),[i,n]=(0,r.useState)(!1),[o,c]=(0,r.useState)([]),h=k.getCartId(),m=(0,a.usePathname)(),T=(0,a.useRouter)(),A=(0,_.useTrackingContext)(),S=o.length>1?o.find(t=>t.attributes?.family?.value&&O.includes(t.attributes.family.value)):o[0],w={[u.cx.ICON]:p.eK.CLOSE_ICON,[u.cx.BACKGROUND]:p.eK.OVERLAY_BACKGROUND,[u.cx.CONTINUE]:p.eK.CALL_TO_ACTION};(0,r.useEffect)(()=>{(0,f.getCookie)(V)||"true"===(0,f.getCookie)(P)||x.execute().then(t=>{t?.products&&(k.setCartReminderCooldown(),c(t.products),e(t.isNewCart),t.products.forEach(t=>(0,l._)(t.sku,b)),n(!!t.products.length))})},[h]);let D=v.some(t=>m?.startsWith(t))||!S;if((0,r.useEffect)(()=>{i&&!D&&(A.custom(B,p.DG.CART_REMINDER),A.item({products:o.map(t=>({main:t})),type:p.F3.VIEW_ITEM_LIST}))},[i,o,A,D]),D)return null;let R=(S?.items?.length??0)>2,M=t=>{A.custom({action:p.Fl.CLICK,element_type:p.eK.CALL_TO_ACTION,interaction_result:p.HR.URL_CHANGE,link_url:t,content_text:"Zum Warenkorb"},p.DG.CART_REMINDER),A.item({products:o.map(t=>({main:t})),type:p.F3.SELECT_ITEM})},F=S?.type===g.Vo.TARIFF?S:S?.items?.find(({type:t})=>t===g.Vo.TARIFF),$=S?.items?.length,U=F&&!$?new E.x(F).execute():void 0,H=S?.items?S.items.sort((t,e)=>t.type===g.Vo.TARIFF&&e.type!==g.Vo.TARIFF?1:t.type!==g.Vo.TARIFF&&e.type===g.Vo.TARIFF?-1:0):[],G=!!H?.length&&H?.map(t=>`${t.manufacturer?.[0]?.name} ${t.name}`)||(0,I.P)(S.name,S.manufacturer?.[0]?.name),W=S.gifts;return(0,s.Y)(C.A,{isOpen:i,headline:"Willkommen zur\xfcck",description:"Der Deal in deinem Warenkorb ist sehr gefragt! Be
1stelle jetzt, bevor sich der Preis \xe4ndert.",openCart:()=>{var e;if(n(!1),e=o,A.cart({products:e.map(t=>({main:t})),type:p.F3.ADD_TO_CART}),t){M(d.v.CART),T.push(d.v.CART);return}let i=L.execute(S,S.items);i&&(M(i),T.push(i))},onClose:t=>{u.cx.ICON,(0,f.setCookie)(P,t===u.cx.CONTINUE),n(!1),A.custom({action:p.Fl.CLICK,element_type:w[t]||"",interaction_result:p.HR.CLOSE_FLYOUT,link_url:"",content_text:t===u.cx.CONTINUE?"Nicht mehr erinnern":""},p.DG.CART_REMINDER)},children:i?R?o.map(t=>H?.length?H.map((e,i)=>N(e,t,0===i)):N(t)):(0,s.Y)(y.e,{image:S.images?.product[0]??S.items?.[0]?.images.product[0],price:S.price,stock:"variants"in S?S.variants?.[0]?.stock:S?.stock,gifts:W?.length?W:void 0,tariffProps:U,tariffRuntime:F?Number((F.attributes?.vertragslaufzeit?.value||"").replace(/\D/g,"")):void 0,providerImage:F?.manufacturer?.[0].image,title:G}):null})}},18857:(t,e,i)=>{i.d(e,{Z:()=>P});var s=i(76958),r=i(47600),a=i(76555);class n{constructor(t,e){this.price=t,this.priceType=e}execute(){let t=this.priceType||(this.price?.monthly?.total!==0?r.mE.MONTHLY:r.mE.ONETIME),e=this.price?.[t].savings.amount;return(0,a.lf)(e<0?0:e)}}class o{constructor(t){this.attributes=t}execute(){return(this.attributes.vertragslaufzeit?.value?.toString()||"").replace(/\D/g,"")}}var c=i(79915),h=i(87619);let u={listId:void 0,listName:void 0};class l{constructor(t,e){this.sku=t,this.config=e}execute(){let t=this.getStorageKey(),e=window.localStorage.getItem(t);return this.extractListInformation(e)}getStorageKey(){return this.config?.trackAsList||this.config?.type===c.F3.VIEW_ITEM_LIST?h.yr:h.qM}extractListInformation(t){if(!t)return u;let e=JSON.parse(t)?.value?.[this.sku];return e?{listId:e.item_list_id,listName:e.item_list_name}:u}}var d=i(27697);class m{constructor(t,e,i){this.entity=t,this.product=e,this.bundleItems=i}build(){this.setBrand(),this.setBundleHash(),this.setBundleItems(),this.setBundleSku(),this.setCategory(),this.setContractDurationMonth(),this.setContractPrice(),this.setDiscount(),this.setId(),this.setIndex(),this.setListInformation(),this.setName(),this.setPrice(),this.setPriceTotal(),this.setPromotionInformation()}get items(){return this.bundleItems??("items"in this.product&&this.product.items||[])}setBrand(){let t=this.bundleItems?.map(({variants:t})=>t[0]?.manufacturer?.[0]?.name)||this.product?.items?.map(t=>t?.manufacturer?.[0]?.name);t&&this.entity.setBrand(t.join("|"))}setBundleItems(){let t=this.items.length.toString();this.entity.setBundledItems(t)}setBundleSku(){this.entity.setBundleSku(this.product.sku)}setBundleHash(){let t=this.product.attributes?.hash?.value?.toString();t&&this.entity.setBundleSkuHash(t)}get tariff(){if(this.bundleItems?.length){let t=this.bundleItems.find(({type:t})=>t===s.Vo.TARIFF);return t?.variants.find(({sku:e})=>e===t.defaultVariant)}return this.product?.items?.find(({type:t})=>t===s.Vo.TARIFF)}get devices(){return this.bundleItems?.length?this.bundleItems.filter(({type:t})=>t===s.Vo.DEVICE).map(({variants:t,defaultVariant:e})=>t.find(({sku:t})=>t===e)||t[0]):this.product?.items?.filter(({type:t})=>t===s.Vo.DEVICE)||[]}setCategory(){this.entity.setCategory("Bundle Product")}getConnectionPrice(t){return t?.onetime?.items.find(({identifier:t})=>t===s.Ac.CONNECTION)?.price||0}setDiscount(){let t=this.devices.reduce((t,e)=>t+new n(e?.price).execute(),0);this.entity.setDiscount(t)}getDefaultVariant(t){return t.variants.find(({sku:e})=>e===t.defaultVariant)??t.variants[0]}get contractDurationMonth(){let t=this.tariff?.attributes;if(t)return new o(t).execute()}setContractDurationMonth(){this.contractDurationMonth&&this.entity.setContractDurationMonth(this.contractDurationMonth)}get price(){if(this.bundleItems){let t=this.bundleItems.reduce((t,e)=>{let i=this.getDefaultVariant(e);return t+(i?.price?.onetime.total+this.getConnectionPrice(i?.price))},0);return(0,a.lf)(t)}let t=this.product?.items?.reduce((t,{price:e})=>{let i=this.getConnectionPrice(e);return t+(e?.onetime.total+i)},0);return t?(0,a.lf)(t):0}setPrice(){this.price&&this.entity.setPrice(this.price)}setPriceTotal(){let t=this.price,e=this.contractPrice||0;this.entity.setPriceTotal(t+e)}get contractPrice(){if(!this.tariff)return;let t=this.tariff.price?.priceContractTotal;if(t)return(0,a.lf)(t)}setContractPrice(){this.contractPrice&&this.entity.setPriceContractTotal(this.contractPrice)}setListInformation(){let{listId:t,listName:e}=new l(this.product.sku).execute();t&&this.entity.setListId(t),e&&this.entity.setListName(e)}setPromotionInformation(){let{promotionId:t,promotionName:e,creativeName:i,creativeSlot:s}=new d.V(this.product.sku).execute();t&&this.entity.setPromotionId(t),e&&this.entity.setPromotionName(e),i&&this.entity.setCreativeName(i),s&&this.entity.setCreativeSlot(s)}setName(){let t=this.items.map(({name:t})=>t).join("|");this.entity.setName(t)}setId(){let t=this.product.attributes?.hash?.value?.toString();t&&this.entity.setId(t)}setIndex(){void 0!==this.product.index&&this.entity.setIndex(this.product.index)}}var p=i(86432);class g{constructor(t,e){this.stock=t,this.isTariff=e}execute(){return this.isTariff?p.Vb.IN_STOCK:this.stock?.key===p.Vb.PRE_VIEW||this.stock?.key===p.Vb.PRE_ORDER?this.stock?.key:this.stock?.isAvailable?p.Vb.IN_STOCK:p.Vb.OUT_OF_STOCK}}class I{execute(){return"https://www.simyo.de/"}}class y{constructor(t,e){this.manufacturer=t,this.attributes=e}execute(){let t=this.manufacturer.map(({name:t})=>t).join(),e=this.attributes.provider?.label;return t||e||""}}class C{constructor(t){this.price=t}execute(){return this.price?.currency?.code}}var f=i(9842);let _={[s.$3.WATCHES]:s.$3.WEARABLES,[s.$3.CELLULAR]:p.TB.TARIFF,[s.$3.LANDLINE]:p.TB.TARIFF};class T{constructor(t){this.category=t}execute(){let t=_[this.category]||this.category;return(0,f.Z)(t)}}class E{constructor(t,e){this.productType=t,this.isBundleItem=e}execute(){return this.isBundleItem||this.productType===s.Vo.BUNDLE?p.vJ.BUNDLE:this.productType===s.Vo.TARIFF?p.vJ.TARIFF_ONLY:p.vJ.HARDWARE_ONLY}}class v{constructor(t){this.attributes=t}execute(){let t=this.attributes?.farbe?.value||this.attributes?.gehaeusefarbe?.value;return void 0!==t?t.toLowerCase():void 0}}class b{constructor(t,e,i){this.productType=t,this.price=e,this.upfrontCost=i}execute(){let t=this.productType===s.Vo.TARIFF,e=t?r.mE.MONTHLY:r.mE.ONETIME,i=this.upfrontCost&&0!==this.upfrontCost&&!t?this.upfrontCost:this.price?.[e].total;return(0,a.lf)(i)}}class A{constructor(t){this.price=t}execute(){let t=this.price?.onetime.items.find(t=>
1t.identifier===s.Ac.CONNECTION)?.price;return t?(0,a.lf)(t):void 0}}class S{constructor(t){this.attributes=t}execute(){return this.attributes[s.j0.STORAGE]?.value?.toString().replace(" GB","")}}class w{constructor(t){this.attributes=t}execute(){let t=this.getValue("datengeschwindigkeit")||this.getValue("festnetz_download_max"),e=this.getValue("technik"),i=this.getValue("datengeschwindigkeit_upload")||this.getValue("festnetz_upload_max"),s=t&&i?`${parseInt(t)} | ${parseInt(i)}`:"";return{...s?{bandwidthSpeed:s}:{},...e?{connectionType:e}:{}}}getValue(t){return this.attributes?.[t]?.value}}let N=["produktbild","image","bild","icon","s3dateiname"];class D{constructor(t,e){this.activeAttributes=t,this.variantMapping=e}execute(){let t=this.variantMapping||this.activeAttributes;return t&&"object"==typeof t?Object.keys(t).filter(t=>!N.includes(t.toLowerCase())).reduce((t,e)=>{let i=this.activeAttributes?.[e]?.value||this.activeAttributes?.[e],s="string"==typeof i||"number"==typeof i?i.toString().toLowerCase():void 0;return!s||"string"==typeof s&&(s.startsWith("http://")||s.startsWith("https://")||s.includes(".png")||s.includes(".jpg")||s.includes(".jpeg")||s.includes(".gif")||s.includes(".svg")||s.includes(".webp"))?t:t&&s?`${t}|${s}`:s||t},"").trim():""}}class R{constructor(t){this.attributes=t}execute(){let t=this.getValue("armbandfarbe"),e=this.getValue("armband_material"),i=this.getValue("armband_groesse"),s=this.getValue("gehaeusefarbe"),r=this.getValue("gehaeuse_material"),a=this.getValue("gehaeuse_durchmesser"),n=this.getValue("konnektivitaet");return{...t?{bandColor:t}:{},...e?{bandMaterial:e}:{},...i?{bandSize:i}:{},...s?{caseColor:s}:{},...r?{caseMaterial:r}:{},...a?{caseSize:a}:{},...n?{connectivity:n}:{}}}getValue(t){return this.attributes?.[t]?.value}}class k{constructor(t,e,i){this.entity=t,this.product=e,this.config=i}build(){this.setAffiliation(),this.setAvailability(),this.setBrand(),this.setCategory(),this.setCategory2(),this.setCategory3(),this.setColor(),this.setConcreteSku(),this.setContractDurationMonth(),this.setContractTotalPrice(),this.setCurrency(),this.setDiscount(),this.setEan(),this.setId(),this.setIndex(),this.setListInformation(),this.setMemoryVariantGb(),this.setName(),this.setPrice(),this.setPriceConnection(),this.setPromotionInformation(),this.setWearablesAttributes(),this.setTariffAttributes(),this.setVariant()}get isTariff(){return this.product.type===s.Vo.TARIFF}get defaultVariant(){let{variants:t,defaultVariant:e}=this.product;return t.find(({sku:t})=>t===e)||t[0]}get hasUpfrontCost(){return this.product.upfrontCost&&0!==this.product.upfrontCost||!1}setAvailability(){let t=new g(this.defaultVariant.stock,this.isTariff).execute();this.entity.setAvailability(t)}setAffiliation(){let t=new I().execute();this.entity.setAffiliation(t)}setBrand(){let{attributes:t,manufacturer:e}=this.product,i=new y(e,t).execute();this.entity.setBrand(i)}setCurrency(){let t=new C(this.product.price).execute();this.entity.setCurrency(t)}setCategory(){let t=new T(this.product.category).execute();this.entity.setCategory(t)}setCategory2(){let t=new E(this.product.type||s.Vo.DEVICE,this.config?.trackAsBundle).execute();this.entity.setCategory2(t)}setCategory3(){let t=this.product.gifts?.[0]?.decorationFlag?.text;t&&this.entity.setCategory3(t)}setContractDurationMonth(){let{attributes:t}=this.product,e=new o(t).execute();e&&this.entity.setContractDurationMonth(e)}setContractTotalPrice(){let{price:t}=this.product,e=t?.priceContractTotal;e&&this.entity.setPriceContractTotal(e)}setDiscount(){let t=new n(this.product.price).execute();this.entity.setDiscount(t)}setColor(){let{attributes:t}=this.product,e=new v(t).execute();e&&this.entity.setColor(e)}setConcreteSku(){let t=this.defaultVariant.sku;this.entity.setConcreteSku(t)}setId(){let t=this.product.sku;this.entity.setId(t)}setIndex(){let{index:t}=this.product;void 0!==t&&this.entity.setIndex(t)}setListInformation(){let{listId:t,listName:e}=new l(this.product.sku,this.config).execute();t&&this.entity.setListId(t),e&&this.entity.setListName(e)}setEan(){let t=this.product.attributes.ean?.value;t&&this.entity.setEan(String(t))}setPrice(){let t=this.defaultVariant.price,{type:e,price:i,upfrontCost:r}=this.product,a=new b(e||s.Vo.DEVICE,t||i,r).execute();this.entity.setPrice(a)}setPriceConnection(){let{price:t}
1=this.product,e=new A(t).execute();e&&this.entity.setPriceConnection(e)}setPromotionInformation(){if(this.config?.trackAsList)return;let{promotionId:t,promotionName:e,creativeName:i,creativeSlot:s}=new d.V(this.product.sku).execute();t&&this.entity.setPromotionId(t),e&&this.entity.setPromotionName(e),i&&this.entity.setCreativeName(i),s&&this.entity.setCreativeSlot(s)}setMemoryVariantGb(){let t=new S(this.defaultVariant.attributes).execute();t&&this.entity.setMemoryVariantGb(t)}setName(){let t=this.product.name;this.entity.setName(t)}setTariffAttributes(){let{connectionType:t,bandwidthSpeed:e}=new w(this.defaultVariant.attributes).execute();e&&this.entity.setBandwidthSpeed(e),t&&this.entity.setConnectionType(t)}setVariant(){let t=Object.keys(this.defaultVariant.superAttributes).length,e=new D(this.defaultVariant.attributes,t?this.defaultVariant.superAttributes:this.defaultVariant.variantMapping).execute();this.entity.setVariant(e)}setWearablesAttributes(){let{bandColor:t,bandMaterial:e,bandSize:i,caseColor:s,caseMaterial:r,caseSize:a,connectivity:n}=new R(this.defaultVariant.attributes).execute();t&&this.entity.setBandColor(t),e&&this.entity.setBandMaterial(e),i&&this.entity.setBandSize(i),n&&this.entity.setConnectivity(n),s&&this.entity.setCaseColor(s),r&&this.entity.setCaseMaterial(r),a&&this.entity.setCaseSize(a)}}class x{constructor(t,e,i,s){this.entity=t,this.product=e,this.bundle=i,this.config=s}build(){this.setAffiliation(),this.setAvailability(),this.setBrand(),this.setBundleName(),this.setBundleSku(),this.setBundleSkuHash(),this.setCategory(),this.setCategory2(),this.setCategory3(),this.setColor(),this.setConcreteSku(),this.setContractDurationMonth(),this.setContractTotalPrice(),this.setCurrency(),this.setDiscount(),this.setEan(),this.setId(),this.setIndex(),this.setListInformation(),this.setMemoryVariantGb(),this.setName(),this.setPrice(),this.setPriceConnection(),this.setPromotionInformation(),this.setTariffAttributes(),this.setVariant(),this.setWearablesAttributes()}get isTariff(){return this.product.type===s.Vo.TARIFF}setAffiliation(){this.entity.setAffiliation(new I().execute())}setAvailability(){let t=new g(this.product.stock,this.isTariff).execute();this.entity.setAvailability(t)}setBrand(){let t=new y(this.product.manufacturer,this.product.attributes).execute();this.entity.setBrand(t)}setBundleSku(){this.bundle?.sku&&this.entity.setBundleSku(this.bundle.sku)}setBundleSkuHash(){if(!this.bundle?.sku)return;let t=this.bundle.attributes?.hash?.value?.toString();t&&this.entity.setBundleSkuHash(t)}setBundleName(){let t=this.bundle&&"items"in this.bundle&&this.bundle.items?.map(({sku:t})=>t).join("|");t&&this.entity.setBundleName(t)}setCategory(){this.entity.setCategory(new T(this.product.category).execute())}setCategory2(){this.entity.setCategory2(new E(this.product.type,!!this.bundle||!!this.config?.trackAsBundle).execute())}setCategory3(){let t=this.product.gifts?.[0]?.decorationFlag?.text;t&&this.entity.setCategory3(t)}setConcreteSku(){this.entity.setConcreteSku(this.product.sku)}setColor(){let t=new v(this.product.attributes).execute();t&&this.entity.setColor(t)}setContractTotalPrice(){let t=this.product.price?.priceContractTotal;t&&this.entity.setPriceContractTotal((0,a.lf)(t))}setContractDurationMonth(){let t=new o(this.product.attributes).execute();t&&this.entity.setContractDurationMonth(t)}setCurrency(){this.entity.setCurrency(new C(this.product.price).execute())}setDiscount(){let t=this.isTariff?r.mE.MONTHLY:r.mE.ONETIME,e=new n(this.bundle?.price||this.product.price,t).execute();this.entity.setDiscount(e)}setEan(){this.product.ean&&this.entity.setEan(this.product.ean)}setId(){this.entity.setId(this.product.parentSku)}setIndex(){let{index:t}=this.product,e=this.bundle?.index;"number"==typeof e&&this.entity.setIndex(e),"number"==typeof t&&this.entity.setIndex(t)}setListInformation(){let{listId:t,listName:e}=new l(this.bundle?.sku||this.product.parentSku,this.config).execute();t&&this.entity.setListId(t),e&&this.entity.setListName(e)}setPrice(){let t=new b(this.product.type,this.bundle?.price||this.product.price).execute(),e=(0,a.lf)(this.product.upfrontCost||0)||t;this.entity.setPrice(this.config?.trackAsBundle&&!this.isTariff?e:t)}setPriceConnection(){let t=new A(this.product.price).execute();t&&this.entity.setPriceConnection(t)}setPromotionInformation(){let{promotionId:t,promotionName:e,creativeName:i,creativeSlot:s}=new d.V(this.bundle?.sku||this.product.sku).execute();t&&this.entity.setPromotionId(t),e&&this.entity.setPromotionName(e),i&&this.entity.setCreativeName(i),s&&this.entity.setCreativeSlot(s)}setMemoryVariantGb(){let t=new S(this.product.attributes).execute();t&&this.entity.setMemoryVariantGb(t)}setName(){this.entity.setName(this.product.name)}setTariffAttributes(){let{connectionType:t,bandwidthSpeed:e}=new w(this.product.attributes).execute();e&&this.entity.setBandwidthSpeed(e),t&&this.entity.setConnectionType(t)}setVariant(){let t=new D(this.product.activeSuperAttributes).execute();this.entity.setVariant(t)}setWearablesAttributes(){let{bandColor:t,bandMaterial:e,bandSize:i,caseColor:s,caseMaterial:r,caseSize:a,c
1onnectivity:n}=new R(this.product.attributes).execute();t&&this.entity.setBandColor(t),e&&this.entity.setBandMaterial(e),i&&this.entity.setBandSize(i),n&&this.entity.setConnectivity(n),s&&this.entity.setCaseColor(s),r&&this.entity.setCaseMaterial(r),a&&this.entity.setCaseSize(a)}}class L{constructor(t,e,i){this.entity=t,this.product=e,this.config=i}build(){this.setAffiliation(),this.setAvailability(),this.setBrand(),this.setCategory(),this.setColor(),this.setConcreteSku(),this.setCurrency(),this.setDiscount(),this.setEan(),this.setId(),this.setIndex(),this.setListInformation(),this.setName(),this.setPrice(),this.setVariant()}get defaultVariant(){return this.product.variants.find(t=>t.sku===this.product.defaultVariant)||this.product.variants[0]}setBrand(){let{attributes:t,manufacturer:e}=this.defaultVariant,i=new y(e,t).execute();this.entity.setBrand(i)}setAffiliation(){this.entity.setAffiliation(new I().execute())}setAvailability(){let t=new g(this.defaultVariant?.stock,!1).execute();this.entity.setAvailability(t)}setCategory(){this.entity.setCategory(p.TB.ACCESSORY)}setConcreteSku(){this.entity.setConcreteSku(this.defaultVariant?.sku)}setColor(){let t=this.defaultVariant?.attributes?.farbe?.label;t&&this.entity.setColor(t)}setCurrency(){this.entity.setCurrency(new C(this.defaultVariant?.price).execute())}setDiscount(){let t=new n(this.defaultVariant?.price).execute();this.entity.setDiscount(t)}setEan(){let t=this.defaultVariant?.ean;t&&this.entity.setEan(t)}setId(){this.entity.setId(this.product.sku)}setIndex(){let{index:t}=this.product;void 0!==t&&this.entity.setIndex(t)}setListInformation(){let{listId:t,listName:e}=new l(this.product.sku,this.config).execute();t&&this.entity.setListId(t),e&&this.entity.setListName(e)}setPrice(){let t=new b(this.product.type,this.defaultVariant?.price).execute();this.entity.setPrice(t)}setName(){let t=this.product.name;this.entity.setName(t)}setVariant(){let t=Object.keys(this.defaultVariant.superAttributes).length,e=new D(this.defaultVariant.attributes,t?this.defaultVariant.superAttributes:this.defaultVariant.variantMapping).execute();this.entity.setVariant(e)}}class O{constructor(t,e,i,s){this.entity=t,this.product=e,this.bundle=i,this.config=s}build(){this.setAffiliation(),this.setAvailability(),this.setBrand(),this.setBundleSku(),this.setBundleSkuHash(),this.setBundleName(),this.setCategory(),this.setCategory2(),this.setCategory3(),this.setColor(),this.setConcreteSku(),this.setContractDurationMonth(),this.setContractTotalPrice(),this.setCurrency(),this.setDiscount(),this.setEan(),this.setId(),this.setIndex(),this.setListInformation(),this.setMemoryVariantGb(),this.setName(),this.setPrice(),this.setPriceConnection(),this.setPromotionInformation(),this.setQuantity(),this.setTariffAttributes(),this.setVariant()}get isTariff(){return this.product.type===s.Vo.TARIFF}get attributes(){return this.product.attributes||{}}setAffiliation(){this.entity.setAffiliation(new I().execute())}setAvailability(){let{stock:t}=this.product;t&&this.entity.setAvailability(new g(t,this.isTariff).execute())}setBrand(){this.entity.setBrand(new y(this.product.manufacturer,this.product.attributes||{}).execute())}setBundleSku(){this.bundle?.sku&&this.entity.setBundleSku(this.bundle.sku)}setBundleSkuHash(){if(!this.bundle?.sku)return;let t=this.bundle.attributes?.hash?.value?.toString();t&&this.entity.setBundleSkuHash(t)}setBundleName(){let t=this.bundle&&"items"in this.bundle&&this.bundle.items?.map(({sku:t})=>t).join("|");t&&this.entity.setBundleName(t)}setCategory(){this.entity.setCategory(new T(this.product.category).execute())}setCategory2(){this.entity.setCategory2(new E(this.product.type||s.Vo.DEVICE,!!this.bundle).execute())}setCategory3(){let t=this.product.gifts?.[0]?.decorationFlag?.text;t&&this.entity.setCategory3(t)}setColor(){let t=new v(this.attributes).execute();t&&this.entity.setColor(t)}setConcreteSku(){this.entity.setConcreteSku(this.product.sku)}setTariffAttributes(){let{connectionType:t,bandwidthSpeed:e}=new w(this.attributes).execute();e&&this.entity.setBandwidthSpeed(e),t&&this.entity.setConnectionType(t)}setContractDurationMonth(){let t=new o(this.attributes).execute();t&&this.entity.setContractDurationMonth(t)}setContractTotalPrice(){let t=this.product.price?.priceContractTotal;t&&this.entity.setPriceContractTotal((0,a.lf)(t))}setCurrency(){this.entity.setCurrency(new C(this.product.price).execute())}setDiscount(){this.entity.setDiscount(new n(this.bundle?.price||this.product.price).execute())}setEan(){this.product.ean&&this.entity.setEan(this.product.ean)}setId(){this.entity.setId(this.product.abstractSku)}setIndex(){let{index:t}=this.product;"number"==typeof t&&this.entity.setIndex(t)}setListInformation(){let{listId:t,listName:e}=new l(this.bundle?.sku||this.product.sku||this.product.abstractSku,this.config).execute();t&&this.entity.setListId(t),e&&this.entity.setListName(e)}setMemoryVariantGb(){let t=new S(this.attributes).execute();t&&this.entity.setMemoryVariantGb(t)}setName(){this.entity.setName(this.product.name)}setPrice(){this.entity.setPrice(new b(this.product.type||s.Vo.DEVICE,this.bundle?.price||this.product.price).execute())}setPriceConnection(){let t=new A(this.product.price).execute();t&&this.entity.setPriceConnection(t)}setPromotionInformation(){let{promotionId:t,promotionName:e,creativeName:i,creativeSlot:s}=new d.V(this.bundle?.sku||this.product.abstractSku).execute();t&&this.entity.setPromotionId(t),e&&this.entity.setPromotionName(e),i&&this.entity.setCreativeName(i),s&&this.entity.setCreativeSlot(s)}setQuantity(){this.entity.setQuantity(this.product.quantity)}setVariant(){let{activeAttributes:t}=this.product;t&&this.entity.setVariant(new D(t).execute())}}class V{setAvailability(t){this.availability=t}setCurrency(t){this.currency=t}setDiscount(t){this.discount=t}setBrand(t){this.brand=t}setCategory(t){this.category=t}setId(t){this.id=t}setName(t){this.name=t}setPrice(t){this.price=t}setQuantity(t){this.quantity=t}setAffiliation(t){this.affiliation=t}setBundleName(t){this.bundleName=t}setBundleSku(t){this.bundleSku=t}setBundleSkuHash(t){this.bundleSkuHash=t}setBundledItems(t){this.bundledItems=t}setBandColor(t){this.bandColor=t}setBandMaterial(t){this.bandMaterial=t}setBandSize(t){this.bandSize=t}setConnectionType(t){this.connectionType=t}setConnectivity(t){this.connectivity=t}setCaseColor(t){this.caseColor=t}setCaseMaterial(t){this.caseMaterial=t}setCaseSize(t){this.caseSize=t}setColor(t){this.color=t}setConcreteSku(t){this.concreteSku=t}setContractDurationMonth(t){this.contractDurationMonth=t}setCoupon(t){this.coupon=t}setBandwidthSpeed(t){this.bandwidthSpeed=t}setEan(t){this.ean=t}setIndex(t){this.index=t}setCategory2(t){this.category2=t}setCategory3(t){this.category3=t}setListId(t){this.listId=t}setListName(t){this.listName=t}setVariant(t){this.variant=t}setMemoryVariantGb(t){this.memoryVariantGb=t}setPriceConnection(t){this.priceConnection=t}setPriceContractTotal(t){this.priceContractTotal=t}setPriceTotal(t){this.priceTotal=t}setPromotionId(t){this.promotionId=t}setPromotionName(t){this.promotionName=t}setCreativeName(t){this.creativeName=t}setCreativeSlot(t){this.creativeSlot=t}get(){return{availability:this.availability,band_color:this.bandColor,band_material:this.bandMaterial,band_size:this.bandSize,bandwidth_speed:this.bandwidthSpeed,currency:this.currency,connectivity:this.connectivity,connection_type:this.connectionType,case_color:this.caseColor,case_material:this.caseMaterial,case_size:this.caseSize,discount:this.discount,item_brand:this.brand,item_category:this.category,item_id:this.id,item_name:this.name,price:this.price,quantity:this.quantity,affiliation:this.affiliation,bundle_name:this.bundleName,bundle_sku:this.bundleSku,bundle_sku_hash:this.bundleSkuHash,bundled_items:this.bundledItems,color:this.color,concrete_sku:this.concreteSku,contract_duration_month:this.contractDurationMonth,coupon:this.coupon,ean:this.ean,index:this.index,item_category2:this.category2,item_category3:this.category3,item_list_id:this.listId,item_list_name:this.listName,item_variant:this.variant,memory_variant_gb:this.memoryVariantGb,price_connection:this.priceConnection,price_contract_total:this.priceContractTotal,price_total:this.priceTotal,promotion_id:this.promotionId,promotion_name:this.promotionName,creative_name:this.creativeName,creative_slot:this.creativeSlot}}constructor(){this.availability=p.Vb.IN_STOCK,this.currency="",this.discount=0,this.brand="",this.category="",this.id="",this.name="",this.price=0,this.quantity=1,this.affiliation=void 0,this.bandColor=void 0,this.bandMaterial=void 0,this.bandSize=void 0,this.connectivity=void 0,this.connectionType=void 0,this.bandwidthSpeed=void 0,this.caseColor=void 0,this.caseMaterial=void 0,this.caseSize=void 0,this.bundleSku=void 0,this.bundleName=void 0,this.bundleSkuHash=void 0,this.bundledItems=void 0,this.color=void 0,this.concreteSku=void 0,this.contractDurationMonth=void 0,this.coupon=void 0,this.ean=void 0,this.index=void 0,this.category2=void 0,this.category3=void 0,this.listId=void 0,this.listName=void 0,this.variant=void 0,this.memoryVariantGb=void 0,this.priceConnection=void 0,this.priceContractTotal=void 0,this.priceTotal=void 0,this.promotionId=void 0,this.promotionName=void 0,this.creativeName=void 0,this.creativeSlot=void 0}}class P{constructor(t,e,i){this.product=t,this.bundleItems=e,this.config=i}execute(){let t=new V;this.productBuilder[this.product.shape]?.(t,this.product);let e=[];
1if(this.isBundle(this.product)){new m(t,this.product,this.bundleItems).build();let i=this.product;this.getBundleItems().forEach(t=>{let s=new V;this.bundleItemBuilder[t?.shape]?.(s,t,i),e.push(s.get())})}let i=t.get();return[...e,...this.isBundle(this.product)?[]:[i]]}get productBuilder(){return{[s.QE.LIST]:(t,e)=>{this.isListItem(e)&&new k(t,e,this.config).build()},[s.QE.VARIANT]:(t,e)=>{this.isVariant(e)&&new x(t,e,void 0,this.config).build()},[s.QE.DETAIL]:(t,e)=>{this.isDetailCrossell(e)&&new L(t,e,this.config).build()},[s.QE.CART_ITEM]:(t,e)=>{this.isCartItem(e)&&new O(t,e,void 0,this.config).build()}}}get bundleItemBuilder(){let t={...this.config,trackAsBundle:!1};return{[s.QE.VARIANT]:(e,i,s)=>{this.isVariant(i)&&new x(e,i,s,t).build()},[s.QE.CART_ITEM]:(e,i,s)=>{this.isCartItem(i)&&new O(e,i,s,t).build()}}}isBundle(t){return!!this.bundleItems||"items"in this.product&&void 0!==this.product.items&&Array.isArray(this.product?.items)&&this.product?.items.length>0}getBundleItems(){let t=this.bundleItems?.map(({variants:t,defaultVariant:e})=>t.find(({sku:t})=>t===e)||t[0]);return t||(this.isListItem(this.product)||this.isCartItem(this.product))&&this.product.items||[]}isVariant(t){return t.shape===s.QE.VARIANT}isListItem(t){return t.shape===s.QE.LIST}isCartItem(t){return t.shape===s.QE.CART_ITEM}isDetailCrossell(t){return t.shape===s.QE.DETAIL&&t.type===s.Vo.ACCESSORIES}}},27697:(t,e,i)=>{i.d(e,{V:()=>a});var s=i(87619);let r={promotionId:void 0,promotionName:void 0,creativeName:void 0,creativeSlot:void 0};class a{constructor(t){this.sku=t}execute(){let t=window.localStorage.getItem(s.TR),e=t&&JSON.parse(t)?.value?.[this.sku];return e?{promotionId:e.promotion_id,promotionName:e.promotion_name,creativeName:e.creative_name,creativeSlot:e.creative_slot}:r}}},31089:(t,e,i)=>{i.d(e,{q:()=>s});let s=t=>{if(!t||0===t.length)return;let e=Array.from(new Set(t.map(t=>t.trim()).filter(Boolean))).sort();return e.length>0?e.join(","):void 0}},42469:(t,e,i)=>{i.d(e,{Af:()=>o,bk:()=>c});var s=i(1809),r=i(31089),a=i(23003),n=i(14486);let o=t=>({revalidate:120,tags:t?["product",`product:${t}`]:["product"]});class c extends n.w{async getBundleData(t,e,i,s){let r=new URLSearchParams({bundleSku:t,contentSku:e});i&&r.set("mainSku",i);let n=`${this.getBaseUrl()}${a.Wr.BUNDLE}?${r.toString()}`;return await this.get(n,s?{next:s}:void 0)}async getBundles(t,e,i,s,r="",n,o){return await this.post(`${this.getBaseUrl()}${a.Wr.BUNDLES}`,{body:{sku:t,productType:e,searchInformation:i,isCustomSorting:s,parentSku:r,productSorting:n},...o?{next:o}:{}})}async getBundle(t,e){return await this.get(`${this.getBaseUrl()}${a.Wr.BUNDLE_BY_SKUS}?skus=${t.join(",")}`,e?{next:e}:void 0)}async getProduct(t,e=s.W.SIMPLE,i,n){let o=new URLSearchParams({sku:t,output:e}),c=(0,r.q)(i);return c&&o.set("fields",c),await this.get(`${this.getBaseUrl()}${a.Wr.PRODUCT}?${o.toString()}`,n?{next:n}:void 0)}async getFootnotes(t,e){return await this.get(`${this.getBaseUrl()}${a.Oc.BASE}?sku=${t}`,e?{next:e}:void 0)}async getPrice(t,e,i){let s=new URLSearchParams({sku:t}),n=(0,r.q)(e);return n&&s.set("fields",n),await this.get(`${this.getBaseUrl()}${a.Wr.PRICE}?${s.toString()}`,i?{next:i}:void 0)}}},45235:(t,e,i)=>{i.d(e,{a:()=>r});var s,r=((s={}).AVAILABILITY_NOTIFICATION="availability-notification",s.CART="cart",s.CHECKOUT="checkout",s.CONTACT="kontakt",s.HOMEPAGE="homepage",s.INTERNET="internet",s.LOGIN="login",s.MAINTENANCE="wartung",s.NEWSLETTER="newsletter",s.NEWSLETTER_SUBSCRIBED="newsletter-subscribed",s.NEWSLETTER_UNSUBSCRIBED="newsletter-unsubscribed",s.NOT_FOUND="404",s.OFFER="angebote",s.ORDER_SUMMARY="order-summary",s.PARTNER_ACTION="partner-aktion",s.PIB="produktinformationsblatt",s.STARCLUB="starclub",s.SUCCESS="success",s.TARIFF="tarife",s.TRACK_AND_TRACE="track-and-trace",s)},50399:(t,e,i)=>{i.d(e,{x:()=>n});var s=i(76958),r=i(3319);let a=i(3639).Ikc({datengeschwindigkeit_type:r.F9.optional(),datengeschwindigkeit_upload:r.F9.optional(),datengeschwindigkeit:r.F9.optional(),datenvolumen_gesamt_type:r.F9.optional(),datenvolumen_gesamt:r.F9.optional(),datenvolumen_grund:r.F9.optional(),datenvolumen_unbegrenzt:r.F9.optional(),festnetz_download_max:r.F9.optional(),festnetz_download_max_type:r.F9.optional(),te
1chnik:r.F9.optional()});class n{constructor(t){this.variant=t}execute(){let t=a.safeParse(this.variant.attributes).data;return{mainAttribute:this.getMainAttribute(t).replace(/\D/g,""),dataVolumeBase:this.getDataVolumeBase(t),unit:this.getUnit(t),category:this.variant.category,isDataVolumeUnlimited:this.variant.category===s.$3.CELLULAR&&t?.datenvolumen_unbegrenzt?.value||!1,dataVolumeUnlimitedLabel:t?.datenvolumen_unbegrenzt?.label||"",networkDescription:t?.technik?.value||"",highlights:this.getHighlights(),uploadSpeed:this.getUploadSpeed(t)}}getUnit(t){return({[s.$3.LANDLINE]:t?.festnetz_download_max_type?.value||"",[s.$3.CELLULAR]:t?.datenvolumen_gesamt?.unit||""})[this.variant.category]||""}getMainAttribute(t){return({[s.$3.LANDLINE]:this.getDownloadSpeed(t),[s.$3.CELLULAR]:this.getDataVolume(t)})[this.variant.category]??""}getDataVolume(t){return t?.datenvolumen_gesamt?.value||""}getDataVolumeBase(t){return t?.datenvolumen_grund?.value}getDownloadSpeed(t){return t?.festnetz_download_max?.value||""}getUploadSpeed(t){return t?.datengeschwindigkeit_upload?.value||""}getHighlights(t){let e=RegExp(this.getDownloadSpeed(t),"i"),i=this.variant.highlights?.find(({subline:t})=>e.test(t));return[i?.subline??this.getDownloadSpeed(t)??""]}}},59941:(t,e,i)=>{i.d(e,{Y:()=>c});var s=i(10668),r=i(86863);let a="simyo",n="https://www.simyo.de/",o={CART:"cart",CART_ITEMS:`cart_items_${a}_${n}`,CART_REMINDER:`cart_reminder_${a}_${n}`,CART_ID:`cartid_${a}_${n}`,CUSTOMER_ID:`customerid_${a}_${n}`,PRICE_TOTAL:"pricetotal",PROVISIONING_LEVEL:"provisioningLevel"};class c extends s.w{constructor(){super()}static getInstance(){return this.instance||(this.instance=new c),this.instance}getCart(){return this.get(o.CART)}setCart(t){this.set(o.CART,this.buildStorageValue(t,864e5))}getCartId(){return this.get(o.CART_ID)}setCartId(t){t&&this.set(o.CART_ID,this.buildStorageValue(t,2592e6))}setCartReminderCooldown(){this.set(o.CART_REMINDER,this.buildStorageValue(!0,36e5))}getCartReminderCooldown(){return!!this.get(o.CART_REMINDER)}clearCartId(){this.clearItem(o.CART_ID)}getCustomerId(){let t=this.get(o.CUSTOMER_ID);return null!==t?t:(this.setCustomerId((0,r.A)()),this.get(o.CUSTOMER_ID))}setCustomerId(t){this.set(o.CUSTOMER_ID,this.buildStorageValue(t,2592e6))}getPriceTotal(){return this.get(o.PRICE_TOTAL)}setPriceTotal(t){this.set(o.PRICE_TOTAL,this.buildStorageValue(t,864e5))}getProvisioningLevel(){return this.get(o.PROVISIONING_LEVEL)}setProvisioningLevel(t){t&&this.set(o.PROVISIONING_LEVEL,this.buildStorageValue(t,864e5))}getCartItems(){return this.get(o.CART_ITEMS)}setCartItems(t){t?.length&&this.set(o.CART_ITEMS,this.buildStorageValue(t,6048e5))}clearCartItems(){this.clearItem(o.CART_ITEMS)}clear(){this.clearItems([o.CART,o.CART_ID,o.CUSTOMER_ID])}buildStorageValue(t,e){return JSON.stringify({value:t,expiry:Date.now()+e})}}},77207:(t,e,i)=>{i.d(e,{N:()=>o});var s,r=((s={}).ECOMMERCE="ecommerce",s.EVENT_PARAMETER="event_parameter",s.SCREEN="screen",s),a=i(18207),n=i(98594);class o{execute(t){!a.A.DISABLE_TRACKING&&((0,n._k)(window.location.pathname)||(window.dataLayer4=window.dataLayer4||[],window.dataLayer4.find(t=>t?.event==="consent_status"&&t?.type==="explicit")||!a.A.DISABLE_TRACKING?this.setDataLayer(t):setTimeout(()=>{this.execute(t)},1e3)))}setDataLayer(t){let e=[r.EVENT_PARAMETER,r.ECOMMERCE].find(e=>e in t);e&&window.dataLayer4.push({[e]:null}),window.dataLayer4.push(JSON.parse(JSON.stringify((0,n.AO)(t))))}}},86432:(t,e,i)=>{i.d(e,{TB:()=>h,Vb:()=>o,k4:()=>u,vJ:()=>c});var s,r,a,n,o=((s={}).BACK_ORDER="BackOrder",s.IN_STOCK="InStock",s.OUT_OF_STOCK="OutOfStock",s.PRE_ORDER="PreOrder",s.PRE_VIEW="PreView",s),c=((r={}).BUNDLE="Bundle",r.HARDWARE_ONLY="Hardware only",r.TARIFF_ONLY="Tariff only",r),h=((a={}).ACCESSORY="Accessory",a.TARIFF="Tariff",a),u=((n={}).ADDRESS_FOUND="address found",n.ADDRESS_NOT_FOUND="address not found",n)},87619:(t,e,i)=>{i.d(e,{TR:()=>o,qM:()=>n,yr:()=>a});let s="simyo",r="https://www.simyo.de/",a=`listInformation${s}_${r}`,n=`selectedItemListInformation${s}_${r}`,o=`promotionInformation${s}_${r}`},98594:(t,e,i)=>{i.d(e,{AO:()=>o,UO:()=>n,_k:()=>a});let s=i(45235).a.LOGIN,r=RegExp(`^/${s}/[^/]+/?$`,"i"),a=t=>r.test(t),n=t=>t.replace(RegExp(`%2F${s}%2F[^/?#&]+`,"gi"),`%2F${s}`).replace(RegExp(`/${s}/[^/?#]+`,"gi"),`/${s}`),o=t=>"string"==typeof t?n(t):Array.isArray(t)?t.map(t=>o(t)):(t=>{if("object"!=typeof t||null===t||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||null===e})(t)?Object.fromEntries(Object.entries(t).map(([t,e])=>[n(t),o(e)])):t}}]);
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.