PageSourceSearch

https://www.a1.bg/_next/static/chunks/pages/devices/[category]/[id]-c6e821daeb390364.js

js a1.bg collected 2026-10-01 10:43:10 UTC 38,722 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[511],{44136:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/devices/[category]/[id]",function(){return n(16247)}])},12431:function(e,t,n){"use strict";var i=n(85893),a=n(11163),l=n(77877);t.Z=function(e){var t=e.label,n=e.className,r=e.iconLeft,s=e.replacePath,o=void 0===s?"":s,d=(0,a.useRouter)();return(0,i.jsx)("div",{className:"border-base-200 w-full border-b bg-gray-200 py-1 lg:hidden ".concat(n),children:(0,i.jsx)(l.Z,{variant:"custom",className:"flex items-center font-serif font-bold",onClick:function(){o?d.replace(o):d.back()},iconLeft:r||(0,i.jsx)("i",{className:"ico back size-32 font-thin"}),label:t||"Назад"})})}},1597:function(e,t,n){"use strict";var i=n(85893),a=n(24594),l=n(65883),r=n(87483);t.Z=function(e){var t=e.children,n=e.className,s=e.defaultPadding,o=e.withoutHeader,d=e.withoutFooter;return(0,i.jsxs)(i.Fragment,{children:[!(void 0!==o&&o)&&(0,i.jsx)(a.Z,{}),(0,i.jsx)(l.Z,{className:"bg-base-50 w-full grow pb-14 md:pb-3 ".concat(n||""),defaultPadding:void 0!==s&&s,children:t}),!(void 0!==d&&d)&&(0,i.jsx)(r.Z,{className:"hidden md:block"})]})}},16247:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return ej},default:function(){return eC}});var i,a,l,r,s=n(85893),o=n(47568),d=n(14924),c=n(26042),u=n(69396),p=n(828),m=n(97582),x=n(11163),v=n(67294),f=n(25617),h=n(79104),b=n(55493),y=n(59908),g=n(56506),I=n(82375),j=n(50621),C=n(1597),w=n(12431),P=n(78045),S=function(e){var t=e.tags,n=e.className;if(!t)return null;var i=t.filter(function(e){return"Top"!==e.Position});return(0,s.jsx)("ul",{className:"flex w-full flex-wrap justify-center gap-2 pt-1 text-xs ".concat(n||""),children:i.map(function(e,t){return(0,s.jsx)("li",{className:"rounded-a1 px-3 py-1 ",style:{backgroundColor:e.BackgroundColor,color:e.TextColor},children:e.Name},t)})})},N=n(4298),T=n.n(N),k=n(33752),Z=n.n(k),L=n(95746),D=function(){return(0,s.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{cx:"18",cy:"18",r:"18",fill:"#F2F2F2"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.4437 27.0093C22.7699 27.3355 23.2988 27.3355 23.625 27.0093V27.0093C23.9511 26.6831 23.9511 26.1543 23.625 25.8281L20.8125 23.0156H28.8562C29.3222 23.0156 29.7 22.6378 29.7 22.1718V22.1718C29.7 21.7058 29.3222 21.3281 28.8562 21.3281H20.8125L23.625 18.5156C23.9511 18.1894 23.9511 17.6605 23.625 17.3343V17.3343C23.2988 17.0081 22.7699 17.0081 22.4437 17.3343L17.6599 22.1181C17.6303 22.1478 17.6303 22.1959 17.6599 22.2256L22.4437 27.0093ZM13.275 19.8656C13.6011 20.1918 14.13 20.1918 14.4562 19.8656L19.24 15.0818C19.2696 15.0521 19.2696 15.004 19.24 14.9743L14.4562 10.1906C14.13 9.86437 13.6011 9.86437 13.275 10.1906V10.1906C12.9488 10.5168 12.9488 11.0456 13.275 11.3718L16.0875 14.1843H8.0437C7.57771 14.1843 7.19995 14.5621 7.19995 15.0281V15.0281C7.19995 15.4941 7.57771 15.8718 8.0437 15.8718H16.0875L13.275 18.6843C12.9488 19.0105 12.9488 19.5394 13.275 19.8656V19.8656Z",fill:"black"})]})},A=n(6609),_=n(23022),B=function(e){var t,n,i=e.images,a=void 0===i?[]:i,l=e.topTags,r=void 0===l?[]:l,o=e.discountPercentage,d=e.mainDeviceName,c=e.childDeviceName,u=e.manufacturerColor,p=e.deviceType,m=e.deviceSubType,x=(e.deviceInfo,e.category),h=e.productId,b=e.accessory,y=(0,f.I0)(),g=j.a8[p]||j.P2[m];return(0,v.useEffect)(function(){return g&&(window.productObj={name:d}),function(){window.productObj=null}},[d]),(0,s.jsxs)(s.Fragment,{children:[g&&(0,s.jsx)(T(),{type:"text/javascript",src:"https://embed.binkies3d.com/integrations/fwVQTQTk/crp71d04/script.js",async:!0,referrerPolicy:"no-referrer-when-downgrade"}),(0,s.jsxs)("div",{className:"group/card relative pt-5",children:[(0,s.jsxs)("div",{className:"absolute left-2 top-2 z-10 flex w-16 flex-col items-center md:-left-4 lg:w-20 xl:-left-20",children:[!!(null==r?void 0:r.length)&&r.map(function(e){return(0,s.jsx)("img",{className:" mb-1 aspect-auto w-auto object-contain",src:e.ImageUrl,alt:e.ImageAlt?e.ImageAlt:"tag-".concat(e.Name)},e.ImageUrl)}),(0,s.jsx)(A.Z,{className:"m-2",href:"/devices/".concat(x,"/compare?FirstDeviceId=").concat(h),ariaLabel:"Сравни",children:(0,s.jsx)(D,{})}),(0,s.jsx)("span",{className:"text-sm",children:"Сравни"})]}),(0,s.jsxs)("div",{className:"relative m-auto min-h-[200px] max-w-[258px] sm:max-w-[350px] md:max-w-[494px]",children:[(0,s.jsx)("div",{className:"mm-page ",children:(0,s.jsx)(Z(),{autoplay:!1,className:"pb-8",renderBottomCenterControls:(null==a?void 0:a.length)>1?(0,_.LI)("longActive"):null,defaultControlsConfig:{nextButtonStyle:{display:"none"},prevButtonStyle:{display:"none"},pagingDotsStyle:{opacity:1,margin:"2px"}},children:a.slice().map(function(e,t){var n;return(0,s.jsx)("img",{src:e.Url,width:"100%",alt:e.Alt?e.Alt:"".concat((null===(n=j.n6[x])||void 0===n?void 0:n.label)||"","-").concat(c,"-i").concat(t),fetchpriority:0===t?"high":void 0},t)})})}),(null==b?void 0:null===(t=b.Image)||void 0===t?void 0:t.Url)&&(0,s.jsxs)("button",{className:"absolute -left-4 bottom-1/4 flex w-24 flex-col items-center rounded-2xl bg-white object-scale-down py-2 shadow-xl duration-200 md:w-32 md:p-3 ",onClick:function(e){e.preventDefault(),e.stopPropagation(),y((0,L.vC)({type:"AccessoryInfoModal",accessoryId:null==b?void 0:b.Id}))},children:[(0,s.jsx)("span",{className:"border-base-200 border-b pb-1 text-[0.5rem] font-semibold uppercase leading-tight text-black md:px-1 md:text-[0.6rem]",children:b.HeaderMessage}),(0,s.jsx)("img",{className:"h-16 w-16 object-contain md:h-24 md:w-24",src:b.Image.Url,alt:(null===(n=b.Image)||void 0===n?void 0:n.Alt)?b.Image.Alt:"Аксесоар към ".concat(d)}),(0,s.jsx)("span",{className:"pb-1 text-[0.5rem] font-semibold uppercase leading-tight text-black md:text-[0.6rem]",children:(null==b?void 0:b.OverrideType)?b.OverrideType:j.JD[b.Type]})]}),g&&(0,s.jsx)("ul",{className:"pick-color",children:(0,s.jsx)("li",{className:"color_picker","data-colorname":u||"Black",children:(0,s.jsx)("span",{className:"active"})})}),!!o&&(0,s.jsxs)("div",{className:"bg-primary -rotate-15 absolute right-5 top-11 flex h-16 w-16 items-center justify-center rounded-full text-xl text-white md:right-10 md:top-20",children:["-",o,"%"]})]})]})]})};(i=l||(l={})).Image="Image",i.Hex="Hex",(a=r||(r={})).Circle="Circle",a.RadioButton="RadioButton",a.SelectBox="SelectBox";var H=function(e,t){if(e.InputType!==r.Circle)return t.Value;var n,i=(n=t.ImageUrl)&&"string"==typeof n?n.startsWith("#")?l.Hex:l.Image:l.Hex,a=i===l.Hex?8:16,o="shadow-bottom block h-".concat(a," w-").concat(a," overflow-hidden rounded-full");return i===l.Hex?(0,s.jsx)("span",{style:{backgroundColor:t.ImageUrl},className:o}):(0,s.jsx)("img",{className:o,src:t.ImageUrl,alt:t.Value,loading:"lazy"})},V=function(e){var t=e.mainDeviceSpecs,n=e.childDeviceSpecs,i=e.setNewSpecs;if(!t)return null;var a=n.reduce(function(e,t){return e[t.Id]=t,e},{});return(0,s.jsx)(s.Fragment,{children:t.map(function(e){var t,l=a[e.Id]||{},o=l.ActiveValueId,d=l.NotAvailable||[],p=null===(t=e.Values)||void 0===t?void 0:t.find(function(e){return e.Id===o});return(0,s.jsxs)("div",{className:"my-7",children:[(0,s.jsx)("p",{className:"pb-2 font-serif text-xl",children:e.Name}),(0,s.jsx)("div",{className:"conte flex flex-wrap items-center gap-2",children:e.Values.map(function(t){var a=t.Id===o,l=d.includes(t.Id);return(0,s.jsx)("button",{type:"button","aria-pressed":a,"aria-label":"".concat(e.Name,": ").concat(t.Value).concat(l?" (не е налично)":""),onClick:function(){a||i(n.map(function(n){return n.Id===e.Id?(0,u.Z)((0,c.Z)({},n),{ActiveValueId:t.Id}):n}))},disabled:l,title:l&&!a?"Не е налично":"",className:e.InputType===r.Circle?"rounded-full p-1.5 ".concat(a?"border-base-500 border":""):"rounded-a1 p-2 text-sm  shadow ".concat(a?"border-primary border-2":"border-base-300 border"," ").concat(l?"bg-base-200":"bg-white"),children:(0,s.jsx)("span",{"aria-hidden":"true",children:H(e,t)})},t.Id)})}),e.InputType===r.Circle&&(0,s.jsx)("p",{className:"text-base-500 text-sm",children:null==p?void 0:p.Value})]},e.Id)})})},M=n(71197),E=n(93270),R=function(e){var t=e.activePaymentSlotId,n=e.slotId,i=e.setActivePaymentSlotId,a=e.prices,l=e.strikedPrices,r=e.context,o=(0,E.U)(),d=n===t;return(0,s.jsxs)("button",{type:"button",role:"radio","aria-checked":d,"aria-label":"Избери цена ".concat(r),onClick:function(){d||i(n)},className:"full rounded-a1 flex flex-1 cursor-pointer flex-col items-center justify-center border-2  p-5 shadow duration-300  ".concat(d?"bg-primaryLight border-primary ":"scale-90 bg-white"," "),children:[(0,s.jsx)(M.Z,{prices:l,lineOver:!0,onTwoRows:!0,withoutDimention:!0,brackets:!1,size:o?"xxs":"xx
1xs",wrapperClass:"text-base-500 mb-3"}),(0,s.jsx)(M.Z,{onTwoRows:!0,withoutDimention:!0,brackets:!1,prices:a,size:o?n===t?"sm":"xs":"xxxs",wrapperClass:"text-primary"}),(0,s.jsx)("p",{className:"text-xxs text-primary pt-1 text-center font-bold",children:r.includes("мес")?"на лизинг":r})]})},O=function(e){var t=e.leftLabel,n=e.rightLabel,i=e.switchHandler,a=e.switchValue,l=e.labelClasses,r=void 0===l?"":l,o=e.wrapperClasses,d=function(e){return function(t){("Enter"===t.key||" "===t.key)&&(t.preventDefault(),i(e))}};return(0,s.jsxs)("div",{role:"group","aria-label":"Text switch",className:"rounded-a1 after:bg-primary after:rounded-a1 border-base-300 relative flex border after:absolute after:left-0 after:top-0 after:block after:h-full after:w-1/2 after:duration-300 ".concat(a?"after:translate-x-full":"after:translate-x-0"," ").concat(void 0===o?"":o),children:[(0,s.jsx)("div",{role:"button",tabIndex:0,"aria-pressed":!a,className:"z-10 w-1/2 cursor-pointer px-3 py-2 text-center duration-100 ".concat(a?"text-black":"text-white"," ").concat(r," "),onClick:function(){return i(!1)},onKeyDown:d(!1),children:t}),(0,s.jsx)("div",{role:"button",tabIndex:0,"aria-pressed":a,className:"z-10 w-1/2 cursor-pointer px-3 py-2 text-center duration-100 ".concat(a?"text-white":"text-black"," ").concat(r),onClick:function(){return i(!0)},onKeyDown:d(!0),children:n})]})}
1,z=n(77877),U=n(99534),F=n(57293),J=n(6800),K=n(91917),Q=n(82786),q=n(66697),G=n(66685),W={Tv:"с НЕТ",Internet:"с ТВ",Mobile:"с ТВ или НЕТ"},X=function(e){e.isCompactView;var t,n,i,a=e.onClick,l=e.devicePrices,r=e.deviceStrikedPrices,o=e.isEligibleCombineAndSave,d=e.setShowBundlePrices,c=e.showBundlePrices,u=e.productId,p=e.isActive,m=e.prices,x=e.additionalText,h=e.serviceSubtype,b=(0,U.Z)(e,["isCompactView","onClick","devicePrices","deviceStrikedPrices","isEligibleCombineAndSave","setShowBundlePrices","showBundlePrices","productId","isActive","prices","additionalText","serviceSubtype"]),y=(0,v.useRef)(),g=(0,f.I0)();return(0,s.jsxs)("div",{ref:y,className:"relative mx-3 my-6 flex flex-col overflow-hidden text-center shadow  duration-300 ".concat(p?"border-primary rounded-a1 shadow-primary bg-primaryLight scale-100 ":"rounded-a1  scale-[0.98] cursor-pointer bg-white "," "),onClick:a,role:"button",tabIndex:0,"aria-pressed":p,"aria-label":"Избери план",children:[(0,s.jsx)("p",{className:"mb-1 w-full px-3  py-2 text-left text-white ".concat(p?"bg-primary ":"bg-zinc-700"),children:b.Name}),(0,s.jsxs)("div",{className:"flex flex-1 flex-col justify-between p-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(Q.Z,{TopProperties:null===(t=b.Properties)||void 0===t?void 0:t.filter(function(e){return"Top"==e.Position}),active:p}),(0,s.jsxs)("div",{className:"grid grid-cols-3 gap-2 pt-7 text-center md:p-3",children:[(0,s.jsx)(K.Z,{GridProperties:null===(n=b.Properties)||void 0===n?void 0:n.filter(function(e){return"Middle"==e.Position}),active:p}),b.ExtrasImageUrl&&(0,s.jsx)("div",{className:"col-span-3 mx-auto max-w-[200px]",children:(0,s.jsx)("img",{src:b.ExtrasImageUrl,alt:"Екстри към плана",width:"100%"})}),p?(0,s.jsx)(z.Z,{variant:"link",onClick:function(){return g((0,G.Gw)(u))},label:"Виж условия",className:"text-primary col-span-3 flex min-h-[1.5rem] items-center justify-center text-xs "}):(0,s.jsx)(z.Z,{variant:"link",label:"Виж повече",className:"text-primary col-span-3 flex min-h-[1.5rem] items-center justify-center text-xs md:hidden"})]})]}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)(J.Z,{bottomProperties:null===(i=b.Properties)||void 0===i?void 0:i.filter(function(e){return"Bottom"==e.Position}),active:!0}),(0,s.jsxs)("div",{className:"flex flex-col items-center gap-2 border-t py-2 text-center",children:[(0,s.jsx)("p",{className:"text-xs font-bold lg:text-sm",children:"Цена на устройство"}),(0,s.jsx)(M.Z,{prices:r,lineOver:!0,brackets:!1,hasBorderBetweenPrices:!0,size:"xxxs",wrapperClass:"gap-2"}),(0,s.jsx)(M.Z,{prices:l,brackets:!1,hasBorderBetweenPrices:!0,size:"xs",wrapperClass:"text-primary gap-2"}),x&&(0,s.jsx)("p",{className:"text-base-500 text-xxs -mt-1",children:x}),(0,s.jsxs)("div",{className:"flex flex-col items-center text-sm font-bold ".concat(o?"":"invisible"),children:[(0,s.jsx)("p",{children:"Вземи в пакет ".concat(W[h]||"")}),(0,s.jsx)("div",{className:"min-h-[1.5rem] py-1",onClick:function(e){return e.stopPropagation()},children:(0,s.jsx)(q.Z,{isOnOff:!1,toggle:c,setToggle:d,optionLabels:{left:(0,s.jsx)("span",{className:"inline-flex min-h-[1.5rem] items-center px-1.5",children:"Не"}),right:(0,s.jsx)("span",{className:"inline-flex min-h-[1.5rem] items-center px-1.5",children:"Да"})}})})]}),(0,s.jsx)("p",{className:" text-xs font-bold lg:text-sm",children:"Месечна такса на плана"}),(0,s.jsx)(F.$,{prices:m,wrapperClass:"gap-2",useBundlePrices:c})]})]})]})]})},$=n(24855),Y=n(9961),ee=function(){var e=(0,f.I0)();return(0,s.jsxs)("button",{type:"button",className:"rounded-a1  my-3 flex max-w-xs gap-3 border bg-white p-4 text-left shadow-md",onClick:function(){(0,Y.O)(e).then(function(t){var n;(null===(n=t.data)||void 0===n?void 0:n.IsAvailable)?null==window||window.open("https://videoshop.a1.bg/?productName=A1%20Shop&product-image-url=%2Fimages%2Fa1.jpg&productCategory=retail","_blank","noreferrer"):e((0,L.vC)({type:"OrderWithCall",videoshopRequest:!0}))}).catch(function(){e((0,L.vC)({type:"OrderWithCall",videoshopRequest:!0}))})},children:[(0,s.jsx)($.Z,{"aria-hidden":"true"}),(0,s.jsx)("span",{children:"Купи от видео магазин"})]})},et=n(9008),en=n.n(et),ei=function(e){var t=e.childDevice,n=e.imageUrl,i=e.manufacturer,a=e.seoData,l=e.productPrices.filter(function(e){return null===e.PlanId}).reduce(function(e,t){return t.Revenue<e?t.Revenue:e},1/0);return(0,s.jsxs)(en(),{children:[(0,s.jsx)("title",{children:(null==a?void 0:a.SeoTitle)||t.Name}),(0,s.jsx)("meta",{name:"description",content:(null==a?void 0:a.SeoDescription)||t.Name}),(0,s.jsx)("meta",{name:"robots",content:(null==a?void 0:a.HasIndex)?"index,follow":"noindex,nofollow"}),Number.isFinite(l)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("meta",{className:"elastic",name:"product_price",content:l},"elastic-product-price"),(0,s.jsx)("meta",{className:"swiftype",name:"product_price","data-type":"float",content:l},"swiftype-product-price")]}),(null==a?void 0:a.Canonical)&&(0,s.jsx)("link",{rel:"canonical",href:null==a?void 0:a.Canonical}),(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"Product",name:t.Name,image:n,description:null==a?void 0:a.SeoDescription,brand:{"@type":"Brand",name:i},offers:{"@type":"Offer",price:l,priceCurrency:"EUR",availability:(null==a?void 0:a.IsInStock)?"https://schema.org/InStock":"https://schema.org/OutOfStock",seller:{"@type":"Organization",name:"A1 Bulgaria EOOD"}}})}})]})},ea={V:"checkmark",X:"close-thin"},el={},er={Color:"#90BDD1",Text:"*Поради високия интерес към този продукт поръчката ще бъде изпълнена в срок до 60 дни."},es={3688:er,3692:er},eo=function(e){var t,n=e.availabilityStatus,i=e.productId,a=el[i],l=es[i];return a&&(n=a),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"pt-3 text-xs font-bold md:pt-5 md:text-sm",style:{color:n.C
1olor},children:[(0,s.jsx)("i",{"aria-hidden":"true",className:"ico rounded-a1 size-20 mr-1 p-0.5 text-white ".concat(ea[n.Icon]),style:{backgroundColor:n.Color}}),n.Text]}),l&&!(null===(t=n.Text)||void 0===t?void 0:t.includes("Няма наличност"))&&(0,s.jsx)("p",{className:"pl-2 pt-1 text-xs font-bold",style:{color:l.Color},children:l.Text})]})},ed=function(){return(0,s.jsxs)("svg",{width:"58",height:"58",viewBox:"0 0 58 58",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{cx:"29",cy:"29",r:"29",fill:"#DA291C"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M43.7352 27.2358L44.5311 27.4748L44.5316 27.475C45.2676 27.6958 45.8855 28.2003 46.2496 28.8767C46.6136 29.5534 46.6937 30.3469 46.4729 31.0827H46.4726L45.3228 34.9115C45.1794 35.3888 44.6765 35.6595 44.1992 35.5163L41.8839 34.8209C40.402 39.0663 35.4149 39.7817 31.4274 39.9527C31.2972 40.3053 31.0622 40.6093 30.7539 40.8244C30.4458 41.0393 30.0792 41.1551 29.7035 41.1556H27.9815C27.3227 41.1549 26.7142 40.8028 26.385 40.2324C26.0559 39.6616 26.0559 38.9588 26.385 38.3881C26.7142 37.8175 27.3227 37.4656 27.9815 37.4647H29.7035C30.0621 37.4649 30.4129 37.5697 30.7129 37.7662C31.0129 37.9626 31.249 38.2422 31.3926 38.5709C34.5169 38.4424 38.7523 37.9795 40.306 35.0117C40.5937 34.4616 40.717 33.8561 40.8405 33.2498C40.8781 33.0655 40.9156 32.8811 40.9578 32.6981L41.7347 29.3348C42.1208 26.9012 41.7932 24.4081 40.7915 22.1571C39.7899 19.906 38.157 17.9936 36.0907 16.6513C34.0243 15.3093 31.6132 14.595 29.1495 14.595C26.6854 14.595 24.2743 15.3093 22.2083 16.6513C20.1419 17.9936 18.5091 19.9061 17.5075 22.1571C16.5058 24.4082 16.1781 26.9012 16.5643 29.3348L17.7413 34.4315C17.4661 34.5386 14.0732 35.4058 14.0732 35.4058C13.5959 35.5492 13.093 35.2783 12.9496 34.801L11.7995 30.9721C11.5787 30.2364 11.6588 29.4427 12.0228 28.7662C12.3871 28.0897 13.0051 27.5853 13.7408 27.3644L14.5697 27.1152C14.6225 23.2716 16.1903 19.6046 18.9323 16.9111C21.6744 14.2176 25.3687 12.7155 29.2123 12.7314C33.0558 12.7474 36.7375 14.2799 39.4571 16.996C42.1768 19.712 43.7142 23.3922 43.7352 27.2358ZM29.2831 43.3433C29.3148 43.3453 29.3456 43.3472 29.3764 43.3472L29.376 43.3467C31.0472 43.338 32.6374 42.6251 33.7561 41.3832C34.9284 41.2775 36.0868 41.0536 37.214 40.7152C36.8301 41.4087 36.3657 42.0543 35.8309 42.6392C34.2392 44.6002 31.8465 45.7368 29.3206 45.7313C29.2878 45.7313 29.255 45.7293 29.2233 45.7274C29.1936 45.7256 29.1648 45.7238 29.1378 45.7238C29.105 45.7238 29.0723 45.7258 29.0405 45.7278C29.0108 45.7296 28.982 45.7313 28.955 45.7313C26.4294 45.7368 24.0364 44.6002 22.4447 42.6392C20.5765 40.5883 19.8134 38.1244 19.3603 35.5086C19.2649 34.9683 19.1852 34.4113 19.1058 33.8553L19.1037 33.8403C19.0807 33.6785 19.0578 33.5167 19.0423 33.3541C19.0107 33.1158 18.9788 32.8694 18.9549 32.6311C18.7072 30.3292 18.5904 28.0149 18.6051 25.6994C18.6008 24.0257 19.1053 22.3902 20.0519 21.0096C20.5439 20.285 21.1572 19.6503 21.8643 19.1334C23.8159 17.6941 26.1651 16.8943 28.5895 16.8438C28.7117 16.8423 28.8337 16.8475 28.9552 16.8595C28.9552 16.8595 29.0187 16.8595 29.138 16.852C29.2493 16.8595 29.3207 16.8595 29.3207 16.8595C29.4422 16.8475 29.5645 16.8423 29.6865 16.8438C32.1107 16.8943 34.4599 17.6941 36.4116 19.1334C38.0032 20.3096 39.1022 22.0346 39.4958 23.9741C39.6098 24.5421 39.6684 25.1199 39.6706 25.6993C39.6843 28.1112 39.5543 30.5216 39.2812 32.9178C39.2861 32.9224 39.285 32.9242 39.2834 32.9268C39.2824 32.9284 39.2812 32.9303 39.2812 32.9335C39.212 33.3959 39.0837 33.8475 38.8997 34.2773L38.8995 34.277C38.4068 35.215 37.4766 35.819 36.332 36.2166C36.5227 35.3895 36.6659 34.4997 36.8011 33.5296C36.9759 32.274 37.1029 30.9621 37.1825 29.5628C37.2301 28.6409 37.2699 27.6873 37.2779 26.6931C36.7266 27.1784 36.1243 27.6021 35.4815 27.9569C33.6978 28.9563 31.662 29.4147 29.6224 29.2765C27.5825 29.1381 25.6272 28.4093 23.9949 27.1784C22.8919 27.7921 21.9089 28.5998 21.0933 29.5628C21.165 30.9619 21.2922 32.274 21.467 33.5296C21.9121 36.797 22.5321 39.1897 24.2095 41.0337L24.2889 41.1373C25.4171 42.5231 27.1047 43.3335 28.8916 43.3472C28.9576 43.3408 29.0238 43.3378 29.0903 43.339H29.1777C29.2147 43.339 29.2494 43.3412 29.2831 43.3433Z",fill:"white"})]})},ec=function(){var e=(0,p.Z)((0,v.useState)(!1),2),t=e[0],n=e[1],i=(0,f.I0)();return(0,v.useEffect)(function(){var e=setTimeout(function(){n(!0)},2e3);return function(){clearTimeout(e)}},[]),t?(0,s.jsx)("button",{"aria-label":"Обади се на служител за помощ",className:"animate-drop fixed bottom-16 right-3 z-10 rounded-full shadow",onClick:function(){return i((0,L.vC)({type:"DeviceHelp"}))},children:(0,s.jsx)(ed,{})}):null},eu=n(57632),ep=n(66665),em=n(17086),ex=function(e){var t=e.flix;return(0,v.useEffect)(function(){if((null==t?void 0:t.ean)&&(null==t?void 0:t.mpn)){window.flixJsCallbacks&&"function"==typeof window.flixJsCallbacks.reset&&window.flixJsCallbacks.reset();var e=document.getElementById("flix-loader");e&&e.remove();var n=document.getElementById("flix-minisite"),i=document.getElementById("flix-inpage");n&&(n.innerHTML=""),i&&(i.innerHTML="");var a=document.createElement("script");return a.id="flix-loader",a.async=!0,a.src="//media.flixfacts.com/js/loader.js",a.setAttribute("data-flix-distributor","18998"),a.setAttribute("data-flix-language","bg"),a.setAttribute("data-flix-brand",t.brand),a.setAttribute("data-flix-mpn",t.mpn),a.setAttribute("data-flix-ean",t.ean),a.setAttribute("data-flix-button","flix-minisite"),a.setAttribute("data-flix-inpage","flix-inpage"),document.head.appendChild(a),function(){window.flixJsCallbacks&&"function"==typeof window.flixJsCallbacks.reset&&window.flixJsCallbacks.reset()}}},[t.ean,t.mpn,t.brand]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{id:"flix-minisite"}),(0,s.jsx)("div",{id:"flix-inpage"})]})},ev=n(95674),ef=function(e){var t=e.description,n=e.technicalParameters,i=e.generalTerms,a=(0,ev.
1ig)(n);return(0,s.jsxs)("div",{className:"px-3",children:[(0,s.jsx)("p",{className:"pb-8 pt-16 text-center font-serif text-xl md:text-2xl",id:"plans",children:"Информация за устройството"}),t&&(0,s.jsx)(em.Z,{title:"Представяне",body:(0,s.jsx)("div",{className:"p-2",dangerouslySetInnerHTML:{__html:t}}),wrapperClasses:"bg-white py-1.5 px-5 my-3",titleClasses:"font-serif text-lg"}),!!(null==n?void 0:n.length)&&(0,s.jsx)(em.Z,{title:"Характеристики",body:(0,s.jsx)("ul",{className:"p-2",children:n.map(function(e){return(0,s.jsxs)("li",{children:[(0,s.jsxs)("span",{className:"font-bold",children:[e.Name,": "]}),e.Value]},(0,eu.Z)())})}),wrapperClasses:"bg-white py-1.5 px-5 my-3",titleClasses:"font-serif text-lg"}),!!i&&(0,s.jsx)(em.Z,{title:"Условия",body:(0,s.jsx)("div",{className:"p-2 ",children:(0,s.jsx)(ep.Z,{versionId:i})}),wrapperClasses:"bg-white py-1.5 px-5 my-3",titleClasses:"font-serif text-lg"}),a.ean&&a.mpn&&(0,s.jsx)(em.Z,{renderOpen:!0,title:"Описание",body:(0,s.jsx)(ex,{flix:a},"".concat(a.ean,"-").concat(a.mpn)),wrapperClasses:"bg-white py-1.5 px-5 my-3",titleClasses:"font-serif text-lg"})]})},eh=n(44491),eb=n(90754),ey=n(92724),eg=function(e){var t,n,i=e.payments,a=e.activePaymentSlotAttributes,l=e.selectedLeasingPeriod,r=e.handleLeasingSelectorChange,o=a.some(function(e){return"DropDownLeasings"===e.Control});if(!(null==i?void 0:i.Selector)||!(null===(t=i.Selector.Items)||void 0===t?void 0:t.length)||!o)return null;var d=null===(n=a.find(function(e){return"DropDownLeasings"===e.Control}))||void 0===n?void 0:n.Label;return(0,s.jsxs)("div",{className:"mt-7",children:[(0,s.jsx)("p",{className:"pb-2 font-serif text-xl",children:d}),(0,s.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:i.Selector.Items.map(function(e){var t=(null==l?void 0:l.value)===e.PaymentId;return(0,s.jsx)("button",{onClick:function(){return r({value:e.PaymentId})},className:"rounded-a1 px-6 py-2 text-sm shadow ".concat(t?"border-primary border-2":"border-base-300 border"," bg-white"),children:e.Label},e.PaymentId)})})]})},eI=function(e){var t,n,i,a,l,r,N,T,k,Z,L,D,A,_,H,M,E,U,F,J,K,Q,q,G=e.pageData,W=(0,f.I0)(),$=(0,x.useRouter)(),Y=$.query,et=Y.category,en=(Y.id,Y.paymentVirtualIds),ea=Y.presetCollectionId,el=$.replace,er=(0,ey.l)(),es=(0,v.useRef)(!0),ed=(0,p.Z)((0,v.useState)(G),2),eu=ed[0],ep=ed[1],em=(0,p.Z)((0,v.useState)([]),2),ex=em[0],eI=em[1],ej=(0,p.Z)((0,v.useState)((null===(a=null===(l=eu.Specific.Payments.Selector)||void 0===l?void 0:l.Items[eu.Specific.Payments.Selector.ActiveIndex])||void 0===a?void 0:a.PaymentId)||null),2),eC=ej[0],ew=ej[1],eP=(0,p.Z)((0,v.useState)({}),2),eS=eP[0],eN=eP[1],eT=(0,p.Z)((0,v.useState)(eu.Specific.Payments.ActiveSlotId),2),ek=eT[0],eZ=eT[1],eL=(0,p.Z)((0,v.useState)({}),2),eD=eL[0],eA=eL[1],e_=(0,p.Z)((0,v.useState)(!0),2),eB=e_[0],eH=e_[1],eV=(0,p.Z)((0,v.useState)(!1),2),eM=eV[0],eE=eV[1],eR=eu.Generic,eO=eR.ProductId,ez=eu.Specific,eU=ez.Plans,eF=ez.Payments,eJ=new ev.jj("PaymentId","PlanId",eF.SlotPriceMapTable),eK=new ev.jj("PaymentId","PlanId",eF.SlotStrikedPriceMapTable),eQ=new ev.jj("PaymentId","PlanId",eu.ThirdPartyParameters.ProductRevenueMapTable),eq=new ev.jj("PaymentId","PlanId",ez.PaymentPlanMapTable),eG=(0,ev.df)("PlanId",eU.PriceMapTable),eW=eF.Slots.find(function(e){return e.Id===ek}),eX=null===(r=eF.Selector)||void 0===r?void 0:r.Items[eF.Selector.ActiveIndex],e$=eX?{label:eX.Label,value:eX.PaymentId}:null,eY=null===(N=null==eF?void 0:null===(T=eF.VisualizePlans)||void 0===T?void 0:T.find(function(e){return e.SlotId===ek}))||void 0===N?void 0:null===(k=N.Plans)||void 0===k?void 0:k.length,e0=eF.SlotAttributes.filter(function(e){return e.SlotId==(null==eW?void 0:eW.Id)}),e2=null===(Z=eu.ThirdPartyParameters.PlanDataMapTable)||void 0===Z?void 0:Z.find(function(e){return e.PlanId===(null==eS?void 0:eS.Id)}),e1=null===(L=eq.find(null==eW?void 0:eW.PaymentId,null==eS?void 0:eS.Id))||void 0===L?void 0:L.VirtualId,e3=eU.SubtypeSliderMapTable.some(function(e){return e.Active}),e9=new eh.Hu({ProductId:eu.ThirdPartyParameters.ProductId,Name:ez.Name,Type:"Device",SubType:ez.Type,SubSubType:ez.Subtype,Price
1:null===(D=eQ.find(eW.PaymentId,null==eS?void 0:eS.Id))||void 0===D?void 0:D.Revenue}),e4=function(e){eZ(e)},e5=(t=(0,o.Z)(function(){var e,t,n,i;return(0,m.__generator)(this,function(a){switch(a.label){case 0:return t={},ek!==eb.bk&&(t=(0,ev.uC)()),n=(null===(e=eG.get(null==eS?void 0:eS.Id))||void 0===e?void 0:e.Stages)||[],i=(0,ev.re)(n,!!eD[null==eS?void 0:eS.Id]).isCombineAndSave,g.Z.add_to_cart({items:[e9]}),[4,W((0,I.aw)((0,c.Z)({serviceType:null==e2?void 0:e2.Type,serviceSubtype:null==e2?void 0:e2.Subtype,contractType:"Reassign",type:"device",IsCombineAndSave:i,products:[{ProductId:eR.ProductId,Quantity:1,DeviceMaterialId:eu.ThirdPartyParameters.MaterialId}],VirtualId:e1},t)))];case 1:return a.sent(),[2]}})}),function(){return t.apply(this,arguments)}),e6=(n=(0,o.Z)(function(){var e,t,n,i;return(0,m.__generator)(this,function(a){switch(a.label){case 0:if(e={},ek!==eb.bk&&(e=(0,ev.uC)()),eY)return[3,2];return[4,W((0,I.aw)((0,c.Z)({type:"device",products:[{ProductId:eR.ProductId,Quantity:1,DeviceMaterialId:eu.ThirdPartyParameters.MaterialId}],VirtualId:e1},e)))];case 1:return a.sent(),g.Z.add_to_cart({items:[e9]}),[2];case 2:return t=eG.get(null==eS?void 0:eS.Id).Stages,n=(0,ev.re)(t,!!eD[null==eS?void 0:eS.Id]).isCombineAndSave,i=new eh.Hu({ProductId:null==e2?void 0:e2.ReferenceId,Name:null==eS?void 0:eS.Name,Type:"TariffPlan",SubType:null==e2?void 0:e2.Type,SubSubType:null==e2?void 0:e2.Subtype,Price:n?null==e2?void 0:e2.Revenue.Bundle:null==e2?void 0:e2.Revenue.Standalone,Bundled:n}),[4,W((0,I.aw)((0,c.Z)({serviceType:null==e2?void 0:e2.Type,serviceSubtype:(null==e2?void 0:e2.Type)===j.n6.tvs.key&&e3&&eB?"SmartTv":null==e2?void 0:e2.Subtype,contractType:"New",type:"device",IsCombineAndSave:n,products:[{ProductId:null==e2?void 0:e2.PlanId,Quantity:1},{ProductId:eR.ProductId,Quantity:1,DeviceMaterialId:eu.ThirdPartyParameters.MaterialId}],VirtualId:e1},e)))];case 3:return a.sent(),g.Z.add_to_cart({items:[e9,i]}),[2]}})}),function(){return n.apply(this,arguments)});(0,v.useEffect)(function(){if(es.current){es.current=!1;return}if(eO&&(ex.length>0||eC)){var e,t=(0,ev.xB)(en);eF.Slots.forEach(function(e){var n=eq.find(e.PaymentId,null==eS?void 0:eS.Id);(null==n?void 0:n.VirtualId)&&!t.includes(null==n?void 0:n.VirtualId)&&t.push(n.VirtualId)});var n=t.map(function(e){return"slotPaymentVirtualIds=".concat(e)}).join("&"),i=e1?"&activePaymentId=".concat(e1):"",a=ex?ex.filter(function(e){return!!e}).map(function(e){return"&specifications=".concat(e.ActiveValueId)}).join(""):"",l=eC?"&requestPaymentId=".concat(eC):"",r="&presetCollectionId=".concat(ea||eb.ID),s=(e=(0,o.Z)(function(){var e;return(0,m.__generator)(this,function(t){switch(t.label){case 0:return[4,b.Lp.get(W,"".concat(y.X.apiUrl,"/eshop/products/details/select/").concat(ez.SpecificId,"?").concat(n).concat(i).concat(a).concat(l).concat(r))];case 1:if(!(e=t.sent().data))return[2];return ep(e),e8(e),[2]}})}),function(){return e.apply(this,arguments)});e7(),s()}},[ex,eC]),(0,v.useEffect)(function(){var e,t,n,i,a,l,r,s,o,d,c=null==eu?void 0:null===(e=eu.Specific)||void 0===e?void 0:null===(t=e.Plans)||void 0===t?void 0:t.Items.find(function(e){var t,n;return e.Id===(null==eu?void 0:null===(t=eu.Specific)||void 0===t?void 0:null===(n=t.Plans)||void 0===n?void 0:n.ActiveId)});eN(c);var u={};(null==eu?void 0:null===(n=eu.Specific)||void 0===n?void 0:null===(i=n.Plans)||void 0===i?void 0:i.Items)&&(eu.Specific.Plans.Items.forEach(function(e){var t=eG.get(e.Id);(0,ev.Lp)(null==t?void 0:t.Stages)&&(u[e.Id]=!0)}),eA(u));var p=eu.Specific.Payments.Slots.find(function(e){return e.Id===eu.Specific.Payments.ActiveSlotId}),m=c?null===(a=eG.get(c.Id))||void 0===a?void 0:a.Stages:[],x=(0,ev.re)(m,!!eD[null==c?void 0:c.Id]).isCombineAndSave,v=null===(l=eu.ThirdPartyParameters.PlanDataMapTable)||void 0===l?void 0:l.find(function(e){return e.PlanId===(null==c?void 0:c.Id)}),f=null===(r=eQ.find(p.PaymentId,null!==(s=null==c?void 0:c.Id)&&void 0!==s?s:null))||void 0===r?void 0:r.Revenue,h=new eh.Hu({ProductId:eu.ThirdPartyParameters.ProductId,Name:ez.Name,Type:"Device",SubType:ez.Type,SubSubType:ez.Subtype,Variant:ez.ManufacturerColor,Price:f});v?g.Z.view_item([h,new eh.Hu({ProductId:null==v?void 0:v.ReferenceId,Name:null==c?void 0:c.Name,Type:"TariffPlan",SubType:null==v?void 0:v.Type,SubSubType:null==v?void 0:v.Subtype,Price
1:x?null==v?void 0:v.Revenue.Bundle:null==v?void 0:v.Revenue.Standalone,Bundled:x})],{socialEventId:null===(d=eu.MarketingData)||void 0===d?void 0:d.SocialEventId}):g.Z.view_item([h],{socialEventId:null===(o=eu.MarketingData)||void 0===o?void 0:o.SocialEventId})},[eu]);var e7=(i=(0,o.Z)(function(){var e,t;return(0,m.__generator)(this,function(n){switch(n.label){case 0:return[4,b.Lp.get(W,"".concat("/mgw-web","/eshop/cache/status"),{})];case 1:return[4,null==(t=n.sent())?void 0:null===(e=t.data)||void 0===e?void 0:e.CacheStatus];case 2:return eE((n.sent()||[]).some(function(e){return!1===e.Reloaded})),[2]}})}),function(){return i.apply(this,arguments)}),e8=function(e){el({pathname:"/devices/".concat(et,"/").concat(e.Specific.Url),query:(0,c.Z)({main:eO},ea?{presetCollectionId:ea}:{},en?{paymentVirtualIds:en}:{})},void 0,{shallow:!0})};return eR&&!eR.ErrorCode&&ez?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ei,{childDevice:ez,imageUrl:null===(A=ez.Images)||void 0===A?void 0:null===(_=A[0])||void 0===_?void 0:_.Url,manufacturer:eR.Manufacturer,seoData:ez.Seo,productPrices:eu.ThirdPartyParameters.ProductRevenueMapTable}),(0,s.jsxs)(C.Z,{className:"!bg-white",children:[(0,s.jsx)(w.Z,{label:"Назад"}),(0,s.jsx)(P.Z,{wrapperClasses:"mx-3 md:mx-6 my-3 [&_.text-base-300]:!text-black",linkClasses:"text-black",textLinks:[{isExternal:!0,label:"Начало",url:"/"},{isExternal:!1,label:"Устройства",url:"/devices"},{isExternal:!1,label:null===(H=j.n6[et])||void 0===H?void 0:H.label,url:"/devices/".concat(et)},{isExternal:!1,label:ez.Name,url:null}]}),(0,s.jsxs)("div",{className:" md:grid md:grid-cols-12 md:px-6 md:pt-10 xl:px-24",children:[!er&&(0,s.jsx)(h.Z,{children:(0,s.jsx)(S,{tags:eR.Tags})}),(0,s.jsxs)("div",{className:"col-span-5",children:[(0,s.jsx)(B,{mainDeviceName:eR.Name,childDeviceName:ez.Name,manufacturerColor:ez.ManufacturerColor,deviceType:eR.Type,deviceSubType:null==ez?void 0:ez.SubType,images:ez.Images,topTags:eR.Tags.filter(function(e){return"Top"===e.Position}),discountPercentage:ez.DiscountPercentage,productId:eR.ProductId,category:et,accessory:eR.Accessory}),er&&eR.KeyParameters&&(0,s.jsx)(h.Z,{children:(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"py-2 text-xl font-bold",children:"Ключови параметри"}),(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:eR.KeyParameters}})]})})]}),(0,s.jsxs)("div",{className:"col-span-7 px-3",children:[er&&(0,s.jsx)(h.Z,{children:(0,s.jsx)(S,{tags:eR.Tags,className:"md:justify-start"})}),(0,s.jsx)("h1",{className:"mt-4 text-2xl ".concat(et===j.pc.SmartWatch?"":"md:text-h2"),"data-elastic-name":"product_name","data-swiftype-name":"product_name","data-swiftype-type":"string",children:ez.Name}),(0,s.jsx)(eo,{availabilityStatus:ez.AvailabilityStatus,productId:eR.ProductId}),(null===(M=ez.HelpButtons)||void 0===M?void 0:M.OnlineVideoShop)&&(0,s.jsx)(ee,{}),(0,s.jsx)("hr",{className:"border-base-300 my-7 border-t border-dashed md:hidden"}),ez.Specifications.length>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(V,{mainDeviceSpecs:eR.Specifications,childDeviceSpecs:ez.Specifications,setNewSpecs:eI}),(0,s.jsx)("hr",{className:"border-base-300 mb-4 mt-7 border-t border-dashed md:hidden"})]}):null,(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"hidden pb-4 font-serif text-xl md:block",children:"Избери начин на плащане"}),(0,s.jsx)(h.Z,{children:(0,s.jsx)("div",{className:"grid grid-cols-3 gap-1",children:eF.Slots.map(function(e){var t,n,i=null===(t=eJ.find(e.PaymentId,null==eS?void 0:eS.Id))||void 0===t?void 0:t.Price.Items,a=null===(n=eK.find(e.PaymentId,null==eS?void 0:eS.Id))||void 0===n?void 0:n.Price.Items;return(0,s.jsx)(R,{slotId:e.Id,activePaymentSlotId:ek,prices:i,strikedPrices:a,context:e.Context,setActivePaymentSlotId:e4},e.Id)})})}),(0,s.jsx)(eg,{payments:eF,activePaymentSlotAttributes:e0,selectedLeasingPeriod:e$,handleLeasingSelectorChange:function(e){eC!==e.value&&ew(e.value)}}),(0,s.jsxs)("p",{className:"inline-block py-3 text-sm",children:[eS&&eY>0?(0,s.jsxs)("span",{children:[null===(E=eF.SlotDetails.find(function(e){return e.SlotId===ek}))||void 0===E?void 0:null===(U=E.Description)||void 0===U?void 0:U.split("{0}")[0]," ",eS.Name,"."]}):(0,s.jsxs)("span",{children:[null===(F=eF.SlotDetails.find(function(e){return e.SlotId===ek}))||void 0===F?void 0:F.Description," "]}),e0.some(function(e){return"HyperlinkPlans"===e.Control})&&(0,s.jsx)("a",{href:"#plans",className:"text-primary whitespace-nowrap pl-3 text-sm underline",children:null===(J=e0.find(function(e){return"HyperlinkPlans"===e.Control}))||void 0===J?void 0:J.Label})]})]}),eY>0&&(0,s.jsxs)("div",{className:"mb-2 mt-7 flex flex-wrap gap-2",children:[(0,s.jsx)("button",{className:"rounded-a1 border-primary bg-primaryLight overflow-hidden border-2 px-6 py-3 font-serif shadow",children:"Нова услуга"}),(0,s.jsx)("button",{disabled:!(null===(K=ez.HelpButtons)||void 0===K?void 0:K.ActiveReassign),className:"rounded-a1 overflow-hidden border-2 bg-white px-6 py-3 font-serif shadow",onClick:e5,children:"Преподписване"})]})]})]}),eR.Banner&&(0,s.jsx)("div",{className:"my-8 md:my-10 md:px-12 xl:px-24 ",dangerouslySetInnerHTML:{__html:eR.Banner}}),!er&&eR.KeyParameters&&(0,s.jsx)(h.Z,{children:(0,s.jsxs)("div",{className:"p-3",children:[(0,s.jsx)("p",{className:"pb-2 text-xl font-bold",children:"Ключови параметри"}),(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:eR.KeyParameters}})]})}),eY>0&&(0,s.jsxs)("div",{className:"bg-base-100 pb-6 md:px-12 xl:px-24 ","data-elastic-exclude":!0,"data-swiftype-index":"false",id:"plans",children:[(0,s.jsx)("p",{className:" py-7 text-center font-serif text-xl md:text-2xl",id:"plans",children:"Избери план"}),e3?(0,s.jsxs)("div",{className:"flex flex-col items-center",children:[(0,s.jsx)("p",{className:"mb-4 text-base md:text-lg",children:"Искаш смарттелевизия?"}),(0,s.jsx)(O,{switchValue:eB,switchHandler:eH,leftLabel:"Не",rightLabel:"Да"})]}):null,(0,s.jsx)("div",{className:"gap-y-5 md:grid md:grid-cols-2 xl:grid-cols-3 ",children:eU.Items.filter(function(e){var t,n,i=null===(t=null===(n=eF.VisualizePlans)||void 0===n?void 0:n.find(function(e){return e.SlotId===ek}))||void 0===t?void 0:t.Plans;return null!=i&&!!i.includes(e.Id)&&(!e3||!!eB||"SmartTvApp"!==e.ServiceSubtype&&"SmartTv"!==e.ServiceSubtype)}).map(function(e){var t,n,i,a,l=null===(t=eJ.find(eW.PaymentId,e.Id))||void 0===t?void 0:t.Price.Items,r=null===(n=eK.find(eW.PaymentId,e.Id))||void 0===n?void 0:n.Price.Items,o=eG.get(e.Id),p=(0,ev.Lp)(o.Stages);return(0,s.jsx)(X,(0,u.Z)((0,c.Z)({},e),{serviceSubtype:e.ServiceSubtype,prices:o,devicePrices:l,deviceStrikedPrices:r,isActive:eS.Id===e.Id,showBundlePrice
1s:!!eD[e.Id],setShowBundlePrices:function(t){return eA(function(n){return(0,u.Z)((0,c.Z)({},n),(0,d.Z)({},e.Id,t))})},isEligibleCombineAndSave:p,productId:null===(i=null===(a=eu.ThirdPartyParameters.PlanDataMapTable)||void 0===a?void 0:a.find(function(t){return t.PlanId===e.Id}))||void 0===i?void 0:i.ReferenceId,onClick:function(){return eN(e)},isCompactView:!0,additionalText:(0,ev.d$)(eW.Context,"месец")}),e.Id)})})]}),(0,s.jsxs)("div",{children:[!eM&&(0,s.jsx)(h.Z,{children:(0,s.jsx)("div",{className:"fixed bottom-0 left-0 z-20 col-span-3 w-full bg-white px-2 py-1 sm:static sm:bg-transparent sm:pb-5 sm:pt-3",children:(0,s.jsx)(z.Z,{className:"w-full md:mx-auto md:block md:w-auto md:!px-12",disabled:!(null===(Q=ez.HelpButtons)||void 0===Q?void 0:Q.ActiveOrder),onClick:e6,label:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"ico basket ".concat(er?"size-32":"size-28"," text-white"),"aria-hidden":"true"})," ","Поръчай"]})})})}),(0,s.jsx)(ef,{description:eR.Description,technicalParameters:eR.SpecificationsView,generalTerms:eR.GeneralTerms})]}),(null===(q=ez.HelpButtons)||void 0===q?void 0:q.DeviceHelp)&&(0,s.jsx)(ec,{})]})]}):null},ej=!0,eC=function(e){var t=e.pageData;return(0,s.jsx)(eI,{pageData:t})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=44136)}),_N_E=e.O()}]);

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.