PageSourceSearch

https://www.orange.pl/static/fe/marketing/_next/static/chunks/1sqoqiwwd04fj.js

js orange.pl collected 2026-10-01 10:12:39 UTC 27,014 bytes, 3 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,160769,e=>{"use strict";var t=e.i(843476),r=e.i(88893);function a({children:e,data:i,useTracker:o}){let n=o(i);return(0,t.jsx)(r.TrackerContext.Provider,{value:n,children:e})}var i=e.i(91133);e.s(["MarketingAnalyticsProvider",0,function({data:e={},children:r}){return(0,t.jsx)(a,{data:e,useTracker:i.useDefaultTracker,children:r})}],160769)},167965,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(714587),i=e.i(683678),o=e.i(591154);let n=r.default.memo(function({title:e="Dodatkowe korzyści",showDialogButton:r=!1,children:n}){return(0,t.jsxs)("div",{className:"mb-4 flex h-8 justify-between",children:[(0,t.jsx)("p",{className:"pt-1 text-md font-700 text-bold",children:e}),r&&(0,t.jsxs)(i.DialogTrigger,{children:[(0,t.jsx)(a.Button,{"data-test-id":"offer-discounts",variant:"secondary",className:"px-1.5",suffixIcon:"arrow-right",size:"sm","aria-label":"Wyświetl wszystkie korzyści"}),(0,t.jsx)(o.Modal,{children:(0,t.jsx)(i.Dialog,{title:e,children:({close:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.DialogContent,{"data-test-id":"offer-modal-content",children:n}),(0,t.jsx)(i.DialogBottom,{children:(0,t.jsx)(a.Button,{"data-test-id":"offer-modal-go-back-button",onPress:e,children:"Wróć"})})]})})})]})]})});var s=e.i(759265),l=e.i(441639),c=e.i(437202);let u=(0,r.memo)(function({icon:e,label:r}){return(0,t.jsx)("div",{className:"flex h-6 flex-row flex-wrap gap-1",children:(0,t.jsx)(c.Sticker,{prefixIcon:e,type:"mv",children:r})})}),p=r.default.memo(function({benefit:e,showDescription:r}){let{showPromotionVouchersPrefixes:a}=(0,s.useFeatures)(),{subtitle:i,title:o,linkUrl:n,icon:p,label:d,linkText:m,description:f,code:h}=e;return(0,t.jsxs)("li",{className:"flex flex-col gap-2 py-4 first:pt-0 last:pb-0",children:[a&&h&&(0,t.jsx)(c.Sticker,{type:"promo",multiline:!0,children:(0,t.jsx)("button",{type:"button",onClick:()=>navigator.clipboard.writeText(h),className:"cursor-pointer bg-transparent",title:"Click to copy!",children:(0,t.jsx)("span",{className:"text-xs font-700 break-all",children:h})})}),(0,t.jsx)(u,{icon:p,label:d}),(0,t.jsx)("p",{className:"m-0 w-[80%] text-sm font-700 wrap-anywhere",children:o}),i&&(0,t.jsx)("p",{className:"m-0 text-sm wrap-anywhere text-bold-light",children:i}),r&&f&&(0,t.jsx)("p",{className:"m-0 text-sm text-bold-light",children:f}),n&&m&&(0,t.jsx)("div",{children:(0,t.jsx)(l.Link,{variant:"secondary",className:"w-auto",small:!0,href:n,"aria-label":`${m} - ${o}`,children:m})})]})}),d=r.default.memo(function({benefits:e,showBenefitsModal:r=!1}){return(0,t.jsx)("ul",{className:"flex flex-col divide-y-2 divide-divide","aria-label":"Lista dodatkowych korzyści",children:e.map((e,a)=>(0,t.jsx)(p,{benefit:e,showDescription:r},e.code??a))})});var m=e.i(225913);let f={src:e.i(103416).default,width:334,height:464,blurWidth:6,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAICAYAAADaxo44AAAAWUlEQVR42k2OSQoAMQgE/f9XQ/ZEvTl0g0MORQJVijLGiNYaqbX+CETvnWQAZM4ZkG+Av+y9Y61FECWiqnHvjXMOZU6KuwckJnM/hZmxzKvwchVKFKUUkuIDaJS274PJVMQAAAAASUVORK5CYII="},h={"--promoCardBg":`url(${f.src})`},x=r.default.memo(function({children:e}){return(0,t.jsx)("section",{style:h,className:(0,m.cx)("flex flex-col","rounded-lg px-3 py-4","bg-(image:--promoCardBg) bg-cover bg-center bg-no-repeat"),"aria-label":"Sekcja korzyści oferty",children:e})});e.s(["OfferBenefits",0,{Root:x,Header:n,List:d,Sticker:u}],167965)},749299,688934,326552,531372,420744,e=>{"use strict";var t=e.i(843476);e.s(["OfferDishBase",0,function({children:e}){return(0,t.jsx)("div",{className:"relative rounded border border-light transition-colors duration-150 hover:border-brand",children:e})}],749299);var r=e.i(356239);let a=["XS","S","M","L","XL"];e.s(["OfferDishHeader",0,function({children:e,name:i,icon:o,sticker:n}){let s,l=i&&((s=new RegExp(/^Plan(?:\s+Firmowy)?\s+(\S+)$/i).exec(i)?.[1]?.toUpperCase())&&a.includes(s)?s:null);return(0,t.jsxs)("div",{"data-test-id":"offerHeader",className:"relative",children:[o&&(0,t.jsx)("div",{className:"absolute top-2 right-2 roun
1ded bg-bold-80 p-1 text-bold-inverse",children:(0,t.jsx)(r.Icon,{name:o,className:"size-6"})}),n&&(0,t.jsx)("div",{className:"absolute top-2 right-2 flex size-8 items-center justify-center rounded-md bg-bold-100 text-light",children:(0,t.jsx)(r.Icon,{className:"size-5",width:24,height:24,name:n})}),(0,t.jsxs)("div",{className:"row-span-3 grid grid-rows-subgrid gap-3 px-6 py-5",children:[l&&(0,t.jsx)("div",{className:"pointer-events-none absolute top-1 left-2 text-5xl font-700 text-bold-light-inverse ",children:l}),e]})]})}],688934);var i=e.i(225913),o=e.i(129924),n=e.i(890040);function s({priceData:e,priceMode:r,format:a="CENTER",children:l}){let{basePrice:c,price:u,startCycle:p,endCycle:d}=e,m="net"===r,f=(0,o.formatPrice)(u,{style:"raw",withFractionDigits:m}),h=c?(0,o.formatPrice)(c,{style:"raw",withFractionDigits:m}):void 0;return(0,t.jsxs)("div",{className:(0,i.cx)("flex w-full max-w-57.5 flex-col gap-1 py-2 text-bold-light","LEFT"!==a&&"items-center"),children:[(0,t.jsxs)("div",{className:"flex flex-row items-end gap-1 text-md font-700 text-nowrap",children:[h&&(0,t.jsx)("span",{className:"line-through",children:h}),(0,t.jsx)("span",{className:"text-3xl text-accent",children:f})," ",`zł/mies.${m?" + VAT":""}`]}),l??(0,t.jsx)("div",{className:"text-xs font-700",children:(0,n.getTitleFromTieredPriceElement)(p,d)})]})}let l={Gross:({priceData:e,children:r})=>(0,t.jsx)(s,{priceData:e,priceMode:"gross",children:r}),Net:({priceData:e,children:r})=>(0,t.jsx)(s,{priceData:e,priceMode:"net",children:r})};e.s(["PriceStep",0,l,"PriceStepBase",0,s],326552),e.s(["OfferDishPrices",0,{Prices:function({omnibusDescription:e,children:r}){return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"mx-auto flex flex-col items-center divide-y-2 divide-divide",children:r}),e&&(0,t.jsx)("p",{className:"flex items-center text-center text-xs leading-4 text-bold-light",children:e})]})},PriceStep:l}],531372),e.s(["OfferDishTitle",0,function({name:e,description:r,label:a}){return(0,t.jsxs)("div",{className:"flex w-full min-w-0 flex-col items-center",style:{containerType:"inline-size"},children:[(0,t.jsx)("h3",{className:"mx-auto text-sm font-600 text-bold-light",children:e}),r&&(0,t.jsxs)("div",{className:"flex w-full min-w-0 flex-row items-center justify-center gap-1 text-[clamp(0.85rem,5vw,1.875rem)] font-700 text-nowrap  ",children:[(0,t.jsx)("p",{className:"text-center",children:r}),a&&(0,t.jsx)("div",{className:"my-auto rounded bg-product-mv px-2 py-1 text-xs text-nowrap",children:a})]})]})}],420744)},291900,e=>{"use strict";var t=e.i(843476),r=e.i(129924);e.s(["OneTimePayment",0,function({oneTimePrice:e,priceVariant:a}){let i=e.price||0===e.price?(0,r.formatPrice)(e.price,{style:"default",withFractionDigits:!1}):void 0,o=e.basePrice?(0,r.formatPrice)(e.basePrice,{style:"default",withFractionDigits:!1}):void 0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"mb-1 block text-sm text-label",children:"Dodatkowe opłaty:"}),(0,t.jsxs)("div",{"data-test-id":"offer-section-one-time-payment",className:"relative flex items-center pt-2 pb-4 pl-3",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"absolute top-4 left-0 mr-2 size-[6px] shrink-0 rounded-full bg-brand"}),o&&(0,t.jsx)("span",{className:"mr-1 text-xs font-700 text-bold-light line-through",children:o}),(0,t.jsxs)("span",{className:"text-sm font-700 text-bold-light",children:[i," ","net"===a&&(0,t.jsx)("span",{children:"+ VAT"}),(0,t.jsx)("span",{className:"font-600",children:" opłata aktywacyjna (jednorazowa)"})]})]})]})}])},933119,e=>{"use strict";var t=e.i(843476),r=e.i(714587);e.s(["ErrorPage",0,function({onRetry:e}){return(0,t.jsxs)("div",{className:"my-auto flex w-full flex-col items-center justify-center gap-4 bg-light-100 pt-8 pb-4 md:h-100 md:pt-0 ",children:[(0,t.jsx)("div",{className:"flex w-full flex-col justify-center text-center text-lg leading-0 font-700 text-bold md:w-80",children:(0,t.jsx)("p",{className:"leading-6 whitespace-pre-wrap",children:"Coś poszło nie tak..."})}),(0,t.jsx)("p",{className:"w-80 text-center text-sm leading-3.5 font-600 whitespace-pre-wrap text-bold-light",children:"Odśwież, by załadować treści."}),(0,t.jsx)(r.Button,{variant:"primary",onPress:e??(()=>window.location.reload()),children:"Odśwież"})]})}])},493379,324006,172805,e=>{"use strict";var t=e.i(843476),r=e.i(154452),a=e.i(271645),i=e.i(355750),o=e.i(244587),n=e.i(235274),s=e.i(375591),l=e.i(212
1124),c=e.i(694892),u=e.i(744183),p=e.i(225297),d=e.i(901222),m=e.i(34265),f=e.i(834368);let h="x-ignore-default-timeout",x=(0,u.default)({fetch:e=>{let t=e.headers.has(h),r=(0,f.env)("OMNIFRONTEND_IGNORE_DEFAULT_TIMEOUT")?.toLowerCase()==="true",a=t||r?void 0:(0,m.createTimeoutSignal)(6e4);return t&&e.headers.delete(h),fetch(e,{signal:(0,c.mergeSignals)(e.signal,a)})},baseUrl:"/fa/offers"});async function g(e){try{let{data:t,error:r,response:a}=await x.GET("/cart-offers/mobile",e);if(r)return(0,s.mapper)(r,"getMobileCartOffers",a);return(0,o.mapper)(t,a)}catch(e){return(0,l.mapper)(e,"getMobileCartOffers")}}async function y(e){try{let{data:t,error:r,response:a}=await x.GET("/cart-offers/multisim",e);if(r)return(0,s.mapper)(r,"getCartMultisimOffers",a);return(0,o.mapper)(t,a)}catch(e){return(0,l.mapper)(e,"getCartMultisimOffers")}}async function b(e){try{let t,{data:r,error:a,response:i}=await x.GET("/configurator/fix/offers/v1",e);if(a)return(0,s.mapper)(a,"getFixConfiguratorOffers",i);return t=r.offers.map(e=>({...e,attributes:function({loyaltyLength:e,filtersData:t}){let r=[{attributeName:"TV",value:{type:"BOOLEAN_ATTR",value:t.hasTv}},{attributeName:"NETFLIX",value:{type:"BOOLEAN_ATTR",value:t.hasNetflix}}];return void 0!==e&&r.push({attributeName:"LOYALTY_LENGTH",value:{type:"STRING_ATTR",value:String(e)}}),r}(e)})),(0,n.ok)({offers:t})}catch(e){return(0,l.mapper)(e,"getFixConfiguratorOffers")}}async function v(e){try{let t,{data:r,error:a,response:i}=await x.GET("/configurator/convergent/offers/v1",e);if(a)return(0,s.mapper)(a,"getConvergentConfiguratorOffers",i);return t=r.offers.map(e=>({...e,attributes:function({loyaltyLength:e,filtersData:t}){let r=[{attributeName:"TV",value:{type:"BOOLEAN_ATTR",value:t.hasTv}},{attributeName:"NETFLIX",value:{type:"BOOLEAN_ATTR",value:t.hasNetflix}},{attributeName:"STANDARD_4U_OR_UNBUNDLE",value:{type:"BOOLEAN_ATTR",value:t.is4UStandardOrUnbundle}},{attributeName:"STANDARD_4U",value:{type:"BOOLEAN_ATTR",value:t.is4UStandard}}];return void 0!==e&&r.push({attributeName:"LOYALTY_LENGTH",value:{type:"STRING_ATTR",value:String(e)}}),r}(e),default:e.id===r.defaultOfferId})),(0,n.ok)({offers:t})}catch(e){return(0,l.mapper)(e,"getConvergentConfiguratorOffers")}}async function j(e){try{let t,{data:r,error:a,response:i}=await x.GET("/configurator/convergent/offers/recommended/v1",e);if(a)return(0,s.mapper)(a,"getConvergentRecommendedOffers",i);return t=r.offers.map(e=>({...e,attributes:function({loyaltyLength:e,filtersData:t}){let r=[{attributeName:"TV",value:{type:"BOOLEAN_ATTR",value:t.hasTv}},{attributeName:"NETFLIX",value:{type:"BOOLEAN_ATTR",value:t.hasNetflix}},{attributeName:"STANDARD_4U_OR_UNBUNDLE",value:{type:"BOOLEAN_ATTR",value:t.is4UStandardOrUnbundle}},{attributeName:"STANDARD_4U",value:{type:"BOOLEAN_ATTR",value:t.is4UStandard}}];return void 0!==e&&r.push({attributeName:"LOYALTY_LENGTH",value:{type:"STRING_ATTR",value:String(e)}}),r}(e),default:e.id===r.defaultOfferId})),(0,n.ok)({...r,offers:t})}catch(e){return(0,l.mapper)(e,"getConvergentRecommendedOffers")}}async function w(e){try{let{data:t,error:r,response:a}=await x.GET("/mobile/configurator/recommendation/v1/set",e);if(r)return(0,s.mapper)(r,"getMobileRecommendedSet",a);return(0,o.mapper)(t,a)}catch(e){return(0,l.mapper)(e,"getMobileRecommendedSet")}}async function k(e){try{let{data:t,error:r,response:a}=await x.GET("/mobile/configurator/v1/offers",e);if(r)return(0,s.mapper)(r,"getMobileConfiguratorOffers",a);return(0,o.mapper)(t,a)}catch(e){return(0,l.mapper)(e,"getMobileConfiguratorOffers")}}async function N(e){try{let{data:t,error:r,response:a}=await x.GET("/mobile/configurator/v2/offers",e);if(r)return(0,s.mapper)(r,"getMobileConfiguratorOffersV2",a);return(0,o.mapper)(t,a)}catch(e){return(0,l.mapper)(e,"getMobileConfiguratorOffersV2")}}async function z(e){try{let{data:t,error:r,response:a}=await x.GET("/mobile/configurator/multi/offers",e);if(r)return(0,s.mapper)(r,"getMobileConfiguratorMultiOffers",a);return(0,o.mapper)(t,a)}catch(e){return(0,l.mapper)(e,"getMobileConfiguratorMultiOffers")}}async function T(e){try{let{data:t,error:r,response:a}=await x.GET("/mobile/configurator/multi/offer",e);if(r)return(0,s.mapper)(r,"getMobileConfiguratorMultiOffer",a);return(0,o.mapper)(t,a)}catch(e){return(0,l.mapper)(e,"getMobileConfiguratorMultiOffer")}}async function C(e){try{let{data:t,error:r,response:a}=await x.POST("/mobile/configurator/v1/summary",e);if(r)return(0,s.mapper)(r,"getOfferItemSummary",a);return(0,o.mapper)(t,a)}catch(e){return(0,l.mapper)(e,"getOfferItemSummary")}
1}async function O(e){try{let{data:t,error:r,response:a}=await x.POST("/mobile/configurator/v2/summary",e);if(r)return(0,s.mapper)(r,"getOfferItemSummaryV2",a);return(0,o.mapper)(t,a)}catch(e){return(0,l.mapper)(e,"getOfferItemSummaryV2")}}async function A(e){try{let{data:t,error:r,response:a}=await x.GET("/mobile/configurator/{bundleNo}/v1/preview",e);if(r)return(0,s.mapper)(r,"getPersonalizedOffer",a);return(0,o.mapper)(t,a)}catch(e){return(0,l.mapper)(e,"getPersonalizedOffer")}}async function E(e){try{let{data:t,error:r,response:a}=await x.GET("/mobile/configurator/{bundleNo}/v2/preview",e);if(r)return(0,s.mapper)(r,"getPersonalizedOfferV2",a);return(0,o.mapper)(t,a)}catch(e){return(0,l.mapper)(e,"getPersonalizedOfferV2")}}async function P(e){try{let{data:t,error:r,response:a}=await x.POST("/v1/shop/offers",e);if(r)return(0,s.mapper)(r,"getEshopOffers",a);return(0,o.mapper)(t,a)}catch(e){return(0,l.mapper)(e,"getEshopOffers")}}async function R(e){try{let{data:t,error:r,response:a}=await x.GET("/simplification/v1/offers",e);if(r)return(0,s.mapper)(r,"getOffers",a);return(0,o.mapper)(t,a)}catch(e){return(0,l.mapper)(e,"getOffers")}}async function S(e){try{let{data:t,error:r,response:a}=await x.POST("/addon/configurator/v1/products",e);if(r)return(0,s.mapper)(r,"getAddonConfiguratorProducts",a);return(0,o.mapper)(t,a)}catch(e){return(0,l.mapper)(e,"getAddonConfiguratorProducts")}}x.use({async onRequest({request:e,id:t,params:r,schemaPath:a}){},async onResponse({request:e,response:t,id:r,params:a,schemaPath:i}){},async onError({error:e,request:t,id:r,options:a,params:i,schemaPath:o}){"AbortError"!==(0,d.asError)(e).name&&(0,p.log)({data:{event:"onError",url:t.url,method:t.method,error:(0,d.asError)(e).message,id:r,options:a,params:i,schemaPath:o},level:"ERROR",from:"openapi-registry.offers.client"})}}),g.cookies=["onlineCookie","opl-portal-authorization-token","opl-portal-master-process","opl-portal-onlineCookie2"],y.cookies=["onlineCookie","opl-portal-authorization-token","opl-portal-master-process","opl-portal-onlineCookie2"],b.cookies=["onlineCookie","opl-portal-authorization-token","opl-portal-master-process","opl-portal-onlineCookie2"],v.cookies=["onlineCookie","opl-portal-authorization-token","opl-portal-master-process","opl-portal-onlineCookie2"],j.cookies=["onlineCookie","opl-portal-authorization-token","opl-portal-master-process","opl-portal-onlineCookie2"],w.cookies=["onlineCookie","opl-portal-authorization-token","opl-portal-master-process","opl-portal-onlineCookie2"],k.cookies=["onlineCookie","opl-portal-authorization-token","opl-portal-master-process","opl-portal-onlineCookie2"],N.cookies=["onlineCookie","opl-portal-authorization-token","opl-portal-master-process","opl-portal-onlineCookie2"],z.cookies=["onlineCookie","opl-portal-authorization-token","opl-portal-master-process","opl-portal-onlineCookie2"],T.cookies=["onlineCookie","opl-portal-authorization-token","opl-portal-master-process","opl-portal-onlineCookie2"],C.cookies=["onlineCookie","opl-portal-authorization-token","opl-portal-master-process","opl-portal-onlineCookie2"],O.cookies=["onlineCookie","opl-portal-authorization-token","opl-portal-master-process","opl-portal-onlineCookie2"],A.cookies=["onlineCookie","opl-portal-authorization-token","opl-portal-master-process","opl-portal-onlineCookie2"],E.cookies=["onlineCookie","opl-portal-authorization-token","opl-portal-master-process","opl-portal-onlineCookie2"],P.cookies=["onlineCookie","opl-portal-authorization-token","opl-portal-master-process","opl-portal-onlineCookie2"],R.cookies=["onlineCookie","opl-portal-authorization-token","opl-portal-master-process","opl-portal-onlineCookie2"],S.cookies=["onlineCookie","opl-portal-authorization-token","opl-portal-master-process","opl-portal-onlineCookie2"],e.s(["getOfferItemSummaryV2",0,O],324006);var D=e.i(714587),_=e.i(683678),I=e.i(591154),L=e.i(949936),B=e.i(734516),M=e.i(356239),U=e.i(129924);function F({discount:e,isB2B:r}){let{amount:a,chargeType:i,description:o,icon:n}=e;if(void 0===a)return null;let s=(0,U.formatPrice)(a,{style:"raw",withFractionDigits:r}),l=`zł${"RECURRING"===i?"/mies.":""}${r?" + VAT":""}`;return(0,t.jsxs)("li",{className:"flex flex-row text-sm",children:[(0,t.jsx)("div",{className:"relative flex size-6 shrink-0 justify-center",children:n?(0,t.jsx)(M.Icon,{name:"fire",className:"absolute top-0.5 size-5 text-active"}):(0,t.jsx)("div",{className:"absolute top-1.5 mx-1.5 flex size-2 justify-center rounded-full bg-transparent",children:(0,t.jsx)("div",{className:"size-2 roun
1ded bg-brand"})})}),(0,t.jsxs)("div",{className:"pl-1 text-sm",children:[(0,t.jsxs)("p",{className:"text-bold",children:[s," ",l]}),(0,t.jsx)("p",{className:"text-bold-light",children:o})]})]})}function q({discounts:e,isB2B:r,discountsTitle:a}){return(0,t.jsxs)("div",{className:"flex flex-col gap-3 border-b-2 border-b-divide",children:[a&&(0,t.jsx)("span",{className:"text-base font-700 text-bold-light",children:a}),(0,t.jsx)("ul",{className:"-ml-1 flex flex-col gap-3 pl-0",children:e.map(e=>(0,t.jsx)(F,{discount:e,isB2B:r},`${e.amount}-${e.description}`))}),(0,t.jsx)("p",{className:"mt-0 mb-4 text-xs text-bold-light",children:"Zgodę na e-fakturę i zgody marketingowe możesz zaznaczyć na kolejnych krokach."})]})}var G=e.i(266027),V=e.i(612136),W=e.i(50270);let K=e=>e.transform(e=>null===e?void 0:e),$=W.z.enum(["ONE_TIME","RECURRING"]),Y=W.z.enum(["PLN"]),H=W.z.enum(["CHARGE","DISCOUNT","FEE"]),Q=W.z.object({price:W.z.number(),chargeType:$,currency:K(Y.nullish()),priceType:K(H.nullish()),basePrice:K(W.z.number().nullish()),name:K(W.z.string().nullish())}).extend({startCycle:W.z.number(),endCycle:K(W.z.number().nullish())}),X=W.z.object({description:K(W.z.string().nullish()),label:K(W.z.string().nullish()),icon:K(W.z.string().nullish()),highlight:K(W.z.boolean().nullish())}),Z=Q.extend({note:K(W.z.string().nullish()),includes:K(W.z.array(X).nullish())});var J=e.i(437202),ee=e.i(216556),et=e.i(326552);function er({isB2B:e,offerType:r="VOICE",monthlyPrices:a,loyaltyLength:i}){let o=i?function(e,t,r){let a=Number.isFinite(t)?t+1:25;switch(e){case"VOICE":case"VOICE_LDF":return`Wtedy kończy się Twoja umowa <b>na abonament kom\xf3rkowy</b> na czas określony i wygasną rabaty przyznane na jej czas. Umowa automatycznie przedłuży się na czas nieokreślony, a cena wzrośnie o r\xf3wnowartość tych rabat\xf3w.<br/> Ponadto od ${a}. mies. co roku kwota abonamentu będzie wzrastać o ${r?"10":"5"} zł. Zanim to się stanie, zaproponujemy Ci najlepszą dostępną ofertę.`;case"FIXED_DATA":return"Wtedy kończy się Twoja umowa na <b>internet mobilny dla domu</b> na czas określony, a rabat za zawarcie umowy na czas określony zmieni wartość z 20 zł/mies., na 10 zł/mies. Umowa automatycznie przedłuży się na czas nieokreślony. Zanim to się stanie, zaproponujemy Ci najlepszą dostępną ofertę.";case"DATA_LDF":return"Wtedy kończy się Twoja umowa na <b>internet biurowy</b> dla firm na czas określony i wygasną rabaty przyznane na jej czas. Umowa automatycznie przedłuży się na czas nieokreślony, a cena wzrośnie o równowartość tych rabatów. Zanim to się stanie, zaproponujemy Ci najlepszą dostępną ofertę. ";default:return}}(r,i,e):void 0;return a&&a.length>0?(0,t.jsxs)("div",{className:"mt-4 flex flex-col",children:[(0,t.jsx)("h4",{className:"mb-0 text-base font-700 text-bold-light",children:"Dodatkowo uwzględnione w abonamencie:"}),(0,t.jsx)("div",{className:"flex flex-col gap-4 divide-y-2 divide-divide",children:a.map(r=>(0,t.jsx)(ea,{isB2B:e,monthlyPrice:r},`monthlyPrice-${r.startCycle}-${r.endCycle}`))}),0!==i&&o&&(0,t.jsxs)("div",{className:"mt-4 flex flex-col gap-2 border-t-2 border-t-divide py-4",children:[(0,t.jsxs)("span",{className:"text-base font-700 text-bold-light",children:["Co po ",i," miesiącu:"]}),(0,t.jsx)("p",{className:"m-0 text-sm text-bold",dangerouslySetInnerHTML:{__html:(0,ee.sanitize)(o)}})]})]}):null}function ea({isB2B:e,monthlyPrice:r}){let{note:a,includes:i}=r;return(0,t.jsxs)("div",{children:[(0,t.jsx)(et.PriceStepBase,{format:"LEFT",priceData:r,priceMode:e?"net":"gross"}),a&&(0,t.jsx)("p",{className:"pt-4 text-xs text-bold-light",children:a}),i&&i.length>0&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 pt-5",children:[(0,t.jsx)("span",{className:"text-xs font-700 text-label",children:"W tym:"}),i.map(({label:e,description:r,icon:a,badge:i})=>(0,t.jsxs)("div",{children:[a&&(0,t.jsx)(J.Sticker,{type:"mv",prefixIcon:a,children:i}),(0,t.jsxs)("div",{className:"mt-2 text-sm text-bold",children:[(0,t.jsx)("b",{children:e})," ",r&&(0,t.jsx)("p",{children:r})]})]},`${e}-${r}`))]})]})}function ei({discounts:e,offeringId:r,offerType:a,loyaltyLength:i,discountsTitle:o,monthlyPrices:s}){let{isLoading:l,monthlyPrices:c}=(({offeringId:e,initialMonthlyPrice:t})=>{let r=async()=>
1{if(!((0,V.isWindowWithSynerise)(window)&&window.SR.updateShelfData)||!e||!t)return{monthlyPrices:t};try{var r;let a,i=(r=await window.SR.updateShelfData({offeringId:e,monthlyPrices:t}),(a=W.z.array(Z).safeParse(r)).success?(0,n.ok)({monthlyPrices:a.data}):((0,p.log)({level:"WARN",data:a.error,from:"subscriptionTable.validateExternalApiData.updateDetailsShelf"}),(0,n.err)({type:"CONTRACT_ERROR",where:"subscriptionTable.validateExternalApiData.updateDetailsShelf"})));if(i.isOK)return{monthlyPrices:i.value.monthlyPrices};return{monthlyPrices:t}}catch(e){return(0,p.log)({level:"WARN",data:{error:{name:e.name,message:e.message}},from:"useDiscountData.fetchData.catch"}),{monthlyPrices:t}}},{data:a,isPending:i}=(0,G.useQuery)({queryKey:["discount-data",e,t],queryFn:r,enabled:!!e,placeholderData:{monthlyPrices:t},staleTime:3e5,refetchOnWindowFocus:!1,refetchOnReconnect:!1});return{monthlyPrices:a?.monthlyPrices,isLoading:i}})({initialMonthlyPrice:s,offeringId:r});return(0,t.jsxs)(t.Fragment,{children:[e&&e.length>0&&(0,t.jsx)(q,{discounts:e,isB2B:!1,discountsTitle:o}
1),l&&(0,t.jsx)(B.Loader,{}),!l&&c&&c.length>0&&(0,t.jsx)(er,{isB2B:!1,offerType:a,monthlyPrices:c,loyaltyLength:i})]})}function eo({offerSummaryParams:e,isOpen:a,onOpenChange:i}){let{data:o}=(0,r.useSuspenseQuery)({queryKey:["offerItemSummary",e.offeringId,e.businessProcessKey,e.bundleId,e.loyaltyLength],queryFn:async()=>await O({body:{offeringId:e.offeringId,businessProcessKey:e.businessProcessKey,bundleId:e.bundleId}})});return(0,t.jsx)(I.Modal,{isOpen:a,onOpenChange:i,width:"medium",heightVariant:"full",children:(0,t.jsx)(_.Dialog,{title:"Ceny uwzględniają rabaty",children:({close:r})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_.DialogContent,{"data-test-id":"offer-modal-content",children:o.isOK?(0,t.jsx)(ei,{discounts:o.value.discounts,offeringId:e.offeringId,offerType:e.offerType,loyaltyLength:e.loyaltyLength,monthlyPrices:o.value.monthlyPrices}):(0,t.jsx)("p",{children:"Przepraszamy. Coś poszło nie tak"})}),(0,t.jsx)(_.DialogBottom,{children:(0,t.jsx)(D.Button,{"data-test-id":"offer-modal-go-back-button",onPress:r,children:"Wróć"})})]})})})}e.s(["PaymentsDetailsContent",0,ei],172805),e.s(["OfferDiscountDialog",0,function({offerSummaryParams:e}
1){let[r,o]=a.useState(!1),[n,s]=a.useTransition(),l=a.useRef(null);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(D.Button,{ref:l,"data-test-id":"offer-section-open-modal-button","aria-label":"Ceny uwzględniają rabaty",size:"sm",variant:"tertiary",onPress:()=>{s(()=>{o(!0)})},isPending:n,isLoading:n,children:"Ceny uwzględniają rabaty"}),(0,t.jsx)(a.Suspense,{fallback:null,children:(0,t.jsx)(i.ErrorBoundary,{fallbackRender:({resetErrorBoundary:e})=>(0,t.jsx)(L.Popover,{content:"Błąd pobierania danych",isNonModal:!0,triggerElement:null,closable:!0,triggerRef:l,defaultOpen:!0,onOpenChange:t=>{t||(o(!1),e())}}),children:r?(0,t.jsx)(eo,{isOpen:r,offerSummaryParams:e,onOpenChange:o}):null})})]})}],493379)},445413,e=>{"use strict";var t=e.i(740147);e.s(["patchViewPriceMode",0,function(e,r,a){let i=new AbortController,o=i.signal;return(0,t.patchState)({body:{type:"VIEW_PRICE_MODE",viewPriceMode:a},params:{path:{stateType:r},query:{businessProcessKey:e}},signal:o}),i}])},405805,e=>{e.q("/static/fe/marketing/_next/static/media/apple-store-icon.3op1dpr93wi2l.svg")},731632,e=>{e.q("/static/fe/marketing/_next/static/media/flex-b2b-qr-migracjaprepaid.0d_do_1n-mfwk.png")},277353,e=>{e.q("/static/fe/marketing/_next/static/media/flex-b2b-qr-mnp.1rzse333my--h.png")},279706,e=>{e.q("/static/fe/marketing/_next/static/media/flex-b2b-qr-nowynumer.1_58o4j4mmu50.png")},514643,e=>{e.q("/static/fe/marketing/_next/static/media/flex-b2c-qr-migracjanju.1i5yrznfds504.png")},190803,e=>{e.q("/static/fe/marketing/_next/static/media/flex-b2c-qr-migracjaprepaid.22tnaaysh2eey.png")},54296,e=>{e.q("/static/fe/marketing/_next/static/media/flex-b2c-qr-mnp.15fym3do023xz.png")},720020,e=>{e.q("/static/fe/marketing/_next/static/media/flex-b2c-qr-nowynumer.02vceuntk-oni.png")},221681,e=>{e.q("/static/fe/marketing/_next/static/media/flex-bow-top.3w63sd054wrw1.png")},25288,e=>{e.q("/static/fe/marketing/_next/static/media/google-play-icon.39w1kgyq2k_tq.svg")},830195,e=>{e.q("/static/fe/marketing/_next/static/media/huawei-gallery-icon.2f1s53ns62p69.svg")},11632,e=>{e.q("/static/fe/marketing/_next/static/media/orange-flex-logo.1grc2a48tazl2.svg")},103416,e=>{e.q("/static/fe/marketing/_next/static/media/promo-card-bg.2w7o74yfn600c.png")},538276,e=>{"use strict";var t=e.i(843476),r=e.i(443208),a=e.i(557287);e.s(["PriceModeSwitch",0,function({defaultVariant:e,onChange:i,size:o}){return(0,t.jsx)(a.SegmentedButtonGroup,{"aria-label":"Wybierz wariant prezentowania cen","data-test-id":"price-variant-switch",defaultValue:e,isFullWidth:!0,onChange:i,children:[{label:"Ceny netto",value:"NET_PRICE"},{label:"Ceny brutto",value:"GROSS_PRICE"}].map(e=>(0,t.jsx)(r.SegmentedButton,{label:e.label,value:e.value,size:o},e.value))})}])}]);
2
3//# sourceMappingURL=3hj9g25vn7hva.js.map

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.