1import{c as e,i as t,l as n,r,s as i}from"./index-CwqhcJbz.js";import{t as a}from"./api-Du-ut94X.js";var o=n(e()),s=i(),c=`https://assets.macaly-user-data.dev/cdn-cgi/image/format=webp,width=2000,height=2000,fit=scale-down,quality=90,anim=true/oc2m2e1hyr7086r73gj37m52/t5xworwfu5tsnnkq02zkfxw0/8tI4a1CAOqB8rh42imEZE.png`,l=e=>`${e.toFixed(1).replace(`.`,`,`)} kW`,u=e=>l(parseFloat(String(e).replace(`,`,`.`))||0);function d(e){return e<3.2?0:e<=4?1:e<=6?2:3}var f={area:``,height:``,insulation:``,windowArea:``,windowType:``,pipe:``,groove:``,cable:``,drain:``,concrete:``,extraWall:``,floors:``,existing:``,roof:``,balcony:``,panel:``,maintenance:``,removal:``,seasonalDiscount:!1},p=e=>new Intl.NumberFormat(`hu-HU`,{style:`currency`,currency:`HUF`,maximumFractionDigits:0}).format(e),m=e=>Math.max(0,Number(e)||0),h=e=>[e.area,e.height,e.insulation,e.windowArea,e.windowType].every(e=>m(e)>0);function g(e){let t=m(e.area),n=m(e.height),r=m(e.insulation),i=m(e.windowArea),a=m(e.windowType),o=(t*n*r+i*a)/1e3,s=o*1.2;return o<3.2?{cooling:o,heating:s,recommendation:`2,6 kW-os teljesÃtményosztály`,basePrice:85e3,baseName:`2,6 kW-os alaptelepÃtés`,pipeUnit:13e3}:o<=4?{cooling:o,heating:s,recommendation:`3,2 kW-os teljesÃtményosztály`,basePrice:85e3,baseName:`3,2 kW-os alaptelepÃtés`,pipeUnit:13e3}:o<=6?{cooling:o,heating:s,recommendation:`5,3 kW-os teljesÃtményosztály`,basePrice:12e4,baseName:`5,3 kW-os alaptelepÃtés`,pipeUnit:15e3}:{cooling:o,heating:s,recommendation:`7,0 kW-os teljesÃtményosztály`,basePrice:145e3,baseName:`7 kW-os alaptelepÃtés`,pipeUnit:18e3}}function _(e,t,n){let r=[];n&&r.push({name:`${n.name} csomagár`,detail:`${n.modelLabel} ⢠alaptelepÃtéssel`,value:n.price});let i=[[`pipe`,`Többlet csövezés`,`m`,t.pipeUnit],[`groove`,`Falba vésés`,`m`,1e4],[`cable`,`Elektromos tápkábel`,`m`,2e3],[`drain`,`CseppvÃz kiépÃtése`,`m`,2e3],[`concrete`,`Panellakás betonfúrás`,`db`,15e3],[`extraWall`,`Extra faláttörés`,`db`,1e4],[`floors`,`Emelet felár, lift nélkül`,`emelet`,3e3],[`existing`,`MeglévÅ klÃma telepÃtési felár`,`db`,3e4],[`roof`,`TetÅre szerelés felár`,`db`,45e3],[`balcony`,`RögzÃtés erkélykorlátra`,`db`,35e3],[`panel`,`Bekötés villamos elosztóba`,`db`,15e3],[`maintenance`,`KlÃma karbantartás`,`db`,15e3],[`removal`,`KlÃma bontás / leszerelés`,`db`,25e3]],a=0,o=[];i.forEach(([t,n,i,s])=>{let c=m(e[t]);if(c>0){let e=c*s;a+=e,o.push({name:n,detail:`${c} ${i} à ${p(s)}`,value:e}),r.push({name:n,detail:`${c} ${i} à ${p(s)}`,value:e})}});let s=null;return a>0&&e.seasonalDiscount&&(s={name:`Szezonális kedvezmény`,detail:`15% kedvezmény a szerelési extrákból`,value:-Math.round(a*.15)},r.push(s)),{items:r,total:r.reduce((e,t)=>e+t.value,0),extras:o,discount:s}}var v=[[`36`,`Panel lakás, szigetelés nélküli`],[`29`,`Panel lakás, szigetelt (10 cm)`],[`31`,`Régi tégla (B30), szigetelés nélküli`],[`26`,`Régi tégla (B30), szigetelt (10 cm)`],[`24`,`Porotherm 40 cm, szigetelés nélküli`],[`16`,`Porotherm 40 cm, szigetelt (10 cm)`],[`26`,`Vályogház, szigetelés nélküli`]],y=[{key:`pipe`,label:`Többlet csövezés`,price:`10 000 Ft/m*`,unit:`m`,included:`3 méter rézcsŠés kapcsolódó kábelezés`,guidance:`Csak a 3 métert meghaladó csÅhosszt adja meg extra tételként.`},{key:`groove`,label:`Falba vésés`,price:`10 000 Ft/m`,unit:`m`,included:`0 méter`,guidance:`A falba vésés nem része az alaptelepÃtésnek, ezért itt a teljes szükséges hosszt adja meg.`},{key:`cable`,label:`Elektromos tápkábel`,price:`2 000 Ft/m`,unit:`m`,included:`3 méter kapcsolódó kábelezés`,guidance:`Csak a 3 métert meghaladó, külön szükséges tápkábel-hosszt adja meg.`},{key:`drain`,label:`CseppvÃz kiépÃtése`,price:`2 000 Ft/m`,unit:`m`,included:`3 méter gravitációs kondenzvÃz-elvezetés`,guidance:`Csak a 3 métert meghaladó elvezetést adja meg extra tételként.`},{key:`concrete`,label:`Panellakás betonfal átfúrása`,price:`15 000 Ft/db`,unit:`db`,included:`1 szabványos faláttörés`,guidance:`Betonfal átfúrása különleges munkának számÃt, ezért minden szükséges betonfúrást itt adjon meg.`},{key:`extraWall`,label:`Extra faláttörés`,price:`10 000 Ft/db`,unit:`db`,included:`1 faláttörés`,guidance:`Csak az alaptelepÃtésben szereplÅ elsÅ faláttörésen felüli darabszámot adja meg.`},{key:`floors`,label:`Emeletek száma lift nélkül`,price:`3 000 Ft/em.`,unit:`em.`,included:`0 emelet`,guidance:`Az emeleti felár nem része az alaptelepÃtésnek. A teljes, lift nélküli emeletszámot adja meg.`},{key:`existing`,label:`MeglévÅ / használt klÃma telepÃtése`,price:`+30 000 Ft/db`,unit:`db`,included:`0 darab`,guidance:`MeglévÅ vagy használt készülék telepÃtése nem része az alaptelepÃtésnek. A teljes darabszámot adja meg.`},{key:`roof`,label:`TetÅre történÅ szerelés`,price:`+45 000 Ft/db`,unit:`db`,included:`0 darab`,guidance:`A tetÅre szerelés különleges helyszÃni munka, ezért a teljes darabszámot adja meg.`},{key:`balcony`,label:`Erkélykorlátra rögzÃtés`,price:`+35 000 Ft/db`,unit:`db`,included:`0 darab`,guidance:`Az erkélykorlátra rögzÃtés nem része az alaptelepÃtésnek. A teljes darabszámot adja meg.`},{key:`panel`,label:`Bekötés villamos elosztóba`,price:`+15 000 Ft/db`,unit:`db`,included:`0 darab`,guidance:`A villamos elosztóba történÅ bekötés nem része az alaptelepÃtésnek. A teljes darabszámot adja meg.`}];function b(){let e=t(a.catalogue.list),n=r(a.catalogue.initialize),[i,l]=(0,o.useState)(f),[m,b]=(0,o.useState)(`sizing`),[T,E]=(0,o.useState)(!1),[D,O]=(0,o.useState)(``),[k,A]=(0,o.useState)(!1),[j,M]=(0,o.useState)(null),[N,P]=(0,o.useState)(null),[F,I]=(0,o.useState)(null),L=(0,o.useRef)(!1),R=(0,o.useMemo)(()=>g(i),[i]);(0,o.useEffect)(()=>{e&&!L.current&&(e.company===null||e.company.spreadsheetVersion!==`everest-catalog-2025-c`||e.products.some(e=>!e.imageUrls?.length))&&(L.current=!0,n({}).then(()=>A(!1)).catch(()=>A(!0)))},[e,n]),(0,o.useEffect)(()=>
1{if(!F&&!N)return;let e=e=>{if(e.key===`Escape`)I(null),P(null);else if((e.key===`ArrowLeft`||e.key===`ArrowRight`)&&F){let t=e.key===`ArrowLeft`?-1:1;I(e=>{if(!e||e.images.length<2)return e;let n=e.images.length;return{...e,currentIndex:(e.currentIndex+t+n)%n}})}};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[F,N]);let z=!!(e&&e.company!==null),B=z?`ready`:k?`error`:`loading`,V=e?.company??null,H=(0,o.useMemo)(()=>{if(!e)return[];let t=d(R.cooling);return e.products.filter(e=>Number(e.recommendationBand)===t).slice().sort((e,t)=>e.sortOrder-t.sortOrder)},[e,R.cooling]),U=(0,o.useMemo)(()=>H.find(e=>e.productCode===j&&typeof e.price==`number`)??null,[H,j]),W=U?_(i,R,{productCode:U.productCode,name:U.productName,modelLabel:u(U.cooling),price:U.price}):null,G=(e,t)=>{l(n=>({...n,[e]:t}))},K=()=>{M(null),E(!1)},q=()=>{if(!h(i)){O(`Kérjük, töltse ki a teljesÃtményméretezés minden mezÅjét.`);return}if(!z){O(`A katalógus éppen betöltÅdik, kérjük, egy pillanat múlva próbálja újra.`);return}O(``),K(),b(`base`)},J=()=>{if(!h(i)){O(`Kérjük, töltse ki a teljesÃtményméretezés minden mezÅjét.`);return}if(!z){O(`A katalógus éppen betöltÅdik, kérjük, egy pillanat múlva próbálja újra.`);return}O(``),E(!0),b(`complete`)},Y=()=>{if(!z){O(`A katalógus éppen betöltÅdik, kérjük, egy pillanat múlva próbálja újra.`);return}O(``),b(`extras`)},X=e=>{M(t=>t===e?null:e)};return(0,s.jsx)(`main`,{className:`everest-page`,"data-testid":`calculator-page`,"data-state":B,children:(0,s.jsxs)(`div`,{className:`everest-calculator`,children:[(0,s.jsxs)(`header`,{className:`everest-header`,children:[(0,s.jsxs)(`div`,{className:`everest-brand`,children:[(0,s.jsx)(`img`,{className:`everest-logo`,src:V?.logoUrl||c,alt:`Everestcool`}),(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`p`,{className:`everest-kicker`,children:`Everestcool tervezÅ`}),(0,s.jsxs)(`h1`,{className:`everest-title`,children:[`KlÃma teljesÃtmény`,(0,s.jsx)(`br`,{}),`és árkalkulátor`]})]})]}),(0,s.jsx)(`div`,{className:`everest-tariff-badge`,children:`Az árak bruttó összegek`})]}),B!==`ready`&&(0,s.jsx)(`div`,{className:`everest-status${B===`error`?` everest-status--error`:``}`,role:B===`error`?`alert`:`status`,"data-testid":`catalogue-status`,children:B===`error`?`A katalógus betöltése nem sikerült. Kérjük, frissÃtse az oldalt, vagy hÃvjon minket bizalommal.`:`A termék- és árkatalógus betöltése folyamatban van.`}),(0,s.jsxs)(`div`,{className:`everest-grid`,children:[(0,s.jsxs)(`section`,{className:`everest-form-card everest-flow-panel`,"aria-label":`TeljesÃtmény méretezés`,"data-testid":`sizing-step`,children:[(0,s.jsxs)(`div`,{className:`everest-step-heading`,children:[(0,s.jsx)(`span`,{children:`01`}),(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`p`,{children:`TeljesÃtmény méretezés`}),(0,s.jsx)(`h2`,{className:`everest-section-title`,children:`Az Ãn ingatlanának hűtési szükségletének kiszámÃtása`})]})]}),(0,s.jsx)(`p`,{className:`everest-step-intro`,children:`Adja meg ingatlana legfontosabb adatait (alapterület, belmagasság, szigetelés, ablakok), és kalkulátorunk ezekbÅl becsüli meg, mekkora teljesÃtményű légkondicionáló illik az otthonába.`}),(0,s.jsxs)(`div`,{className:`everest-fields`,children:[(0,s.jsx)(S,{id:`area`,label:`Alapterület`,unit:`m²`,value:i.area,onChange:e=>G(`area`,e)}),(0,s.jsx)(S,{id:`height`,label:`Belmagasság`,unit:`m`,step:`0.1`,value:i.height,onChange:e=>G(`height`,e)}),(0,s.jsx)(C,{id:`insulation`,label:`Ingatlan tÃpusa és szigetelése`,value:i.insulation,onChange:e=>G(`insulation`,e),options:v}),(0,s.jsx)(S,{id:`windows`,label:`Ablakok összes felülete`,unit:`m²`,value:i.windowArea,onChange:e=>G(`windowArea`,e)}),(0,s.jsx)(C,{id:`window-type`,label:`Ablakok tÃpusa / árnyékolása`,value:i.windowType,onChange:e=>G(`windowType`,e),options:[[`50`,`Modern, 3 rétegű vagy redÅnyös`],[`100`,`Ãtlagos, 2 rétegű műanyag/fa`],[`150`,`Régi ablak, árnyékolás nélkül`]]})]}),D&&(0,s.jsx)(`p`,{className:`everest-error`,role:`alert`,children:D}),(0,s.jsxs)(`button`,{className:`everest-button`,type:`button`,onClick:q,"data-testid":`size-calculator`,children:[`TeljesÃtmény kiszámÃtása `,(0,s.jsx)(`span`,{children:`â`})]})]}),m!==`sizing`&&(0,s.jsxs)(`section`,{className:`everest-form-card everest-flow-panel everest-flow-panel--base`,"aria-label":`Javasolt teljesÃtmény és alaptelepÃtés`,"data-testid":`base-installation-step`,children:[(0,s.jsxs)(`div`,{className:`everest-step-heading`,children:[(0,s.jsx)(`span`,{children:`02`}),(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`p`,{children:`Javaslat és alaptelepÃtés`}),(0,s.jsx)(`h2`,{className:`everest-section-title`,children:`Az Ãnnek javasolt klÃmateljesÃtmény és alaptelepÃtés`})]})]}),(0,s.jsx)(`p`,{className:`everest-step-intro`,children:`A megadott adatok alapján ezt a teljesÃtményosztál
1yt javasoljuk az Ãn ingatlanára.`}),(0,s.jsxs)(`div`,{className:`everest-sizing-summary`,children:[(0,s.jsx)(`p`,{children:`Az Ãn ingatlanára javasolt teljesÃtményosztály:`}),(0,s.jsx)(`strong`,{children:R.recommendation})]}),(0,s.jsxs)(`p`,{className:`everest-flow-note`,children:[`Az Ãn által választott klÃmaberendezés csomagára tartalmazza a(z) `,R.baseName.toLowerCase(),` dÃját, tehát az alaptelepÃtésért nem kell külön fizetnie. Az alaptelepÃtés az alábbi tételeket foglalja magában:`]}),H[0]&&(0,s.jsx)(`dl`,{className:`everest-installation-includes`,children:H[0].installationItems.map(e=>(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`dt`,{children:e.label}),e.value&&(0,s.jsx)(`dd`,{children:e.value})]},e.label))}),(0,s.jsx)(`p`,{className:`everest-flow-note`,children:`Kérjük, jelezze: szeretne-e az alaptelepÃtésen felüli, egyéb szolgáltatásokat is?`}),D&&(0,s.jsx)(`p`,{className:`everest-error`,role:`alert`,children:D}),(0,s.jsxs)(`div`,{className:`everest-flow-actions`,children:[(0,s.jsx)(`button`,{className:`everest-button everest-button--estimate`,type:`button`,onClick:J,"data-testid":`base-quote-calculator`,children:`Nem kérek extra szolgáltatást, mutassa az ajánlatokat`}),(0,s.jsxs)(`button`,{className:`everest-button everest-button--secondary everest-button--extras`,type:`button`,onClick:Y,"data-testid":`open-extras`,children:[(0,s.jsxs)(`span`,{className:`everest-button-copy`,children:[(0,s.jsx)(`strong`,{children:`AlaptelepÃtést meghaladó tétele
1k`}),(0,s.jsx)(`small`,{children:`(pl. többlet csövezés, falba vésés, elektromos kiépÃtés)`})]}),(0,s.jsx)(`b`,{"aria-hidden":`true`,children:`+`})]})]})]}),m===`extras`&&(0,s.jsxs)(`section`,{className:`everest-form-card everest-flow-panel everest-flow-panel--extras`,"aria-label":`Extra szolgáltatások`,"data-testid":`extras-step`,children:[(0,s.jsxs)(`div`,{className:`everest-step-heading`,children:[(0,s.jsx)(`span`,{children:`03`}),(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`p`,{children:`Szerelési dÃjak és opciók`}),(0,s.jsx)(`h2`,{className:`everest-section-title`,children:`ÃllÃtsa össze a telepÃtést`})]})]}),(0,s.jsx)(`p`,{className:`everest-step-intro`,children:`Itt kizárólag az alaptelepÃtést meghaladó tételeket adhatja meg, ha az Ãn helyszÃnén ilyenekre van szükség.`}),(0,s.jsxs)(`div`,{className:`everest-installation-note`,children:[(0,s.jsx)(`strong`,{children:`Az alaptelepÃtés már a klÃmacsomag árának része`}),(0,s.jsx)(`small`,{children:`Tartalmazza az alapanyagokat, a munkadÃjat és az üzembe helyezést. Ezt a kalkulátor nem számolja fel külön tételként, itt csak az azon felüli munkák árát adhatja hozzá.`})]}),(0,s.jsx)(`h3`,{className:`everest-subheading`,children:`AlaptelepÃtést meghaladó tétele
1k`}),(0,s.jsx)(`div`,{className:`everest-extras`,children:y.map(({key:e,included:t,guidance:n,...r})=>(0,s.jsx)(w,{...r,price:e===`pipe`?`${p(R.pipeUnit)}/m*`:r.price,info:{label:r.label,included:t,guidance:n},value:i[e],onChange:t=>G(e,t),onInfoClick:P},e))}),(0,s.jsx)(`h3`,{className:`everest-subheading`,children:`Egyéb szolgáltatások`}),(0,s.jsxs)(`div`,{className:`everest-extras`,children:[(0,s.jsx)(w,{label:`KlÃma karbantartás`,price:`15 000 Ft/db`,unit:`db`,value:i.maintenance,onChange:e=>G(`maintenance`,e)}),(0,s.jsx)(w,{label:`KlÃma bontás / leszerelés`,price:`25 000 Ft/db`,unit:`db`,value:i.removal,onChange:e=>G(`removal`,e)})]}),(0,s.jsxs)(`label`,{className:`everest-checkbox`,children:[(0,s.jsx)(`input`,{type:`checkbox`,checked:i.seasonalDiscount,onChange:e=>G(`seasonalDiscount`,e.target.checked)}),(0,s.jsxs)(`span`,{children:[(0,s.jsx)(`strong`,{children:`Szezonális kedvezmény`}),(0,s.jsx)(`small`,{children:`Október 1. és április 30. között, -15%`})]})]}),D&&(0,s.jsx)(`p`,{className:`everest-error`,role:`alert`,children:D}),(0,s.jsxs)(`button`,{className:`everest-button everest-button--estimate`,type:`button`,onClick:J,"data-testid":`price-calculator`,children:[`Várható végösszeg kiszámÃtása `,(0,s.jsx)(`span`,{children:`â`})]}),N&&(0,s.jsx)(`div`,{className:`everest-info-overlay`,role:`presentation`,onClick:()=>P(null),children:(0,s.jsxs)(`section`,{className:`everest-info-dialog`,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`extra-info-title`,"data-testid":`extra-info-dialog`,onClick:e=>e.stopPropagation(),children:[(0,s.jsx)(`button`,{className:`everest-info-close`,type:`button`,"aria-label":`Információs ablak bezárása`,onClick:()=>P(null),children:`Ã`}),(0,s.jsx)(`p`,{className:`everest-info-kicker`,children:`AlaptelepÃtési keret`}),(0,s.jsx)(`h3`,{id:`extra-info-title`,children:N.label}),(0,s.jsxs)(`p`,{children:[(0,s.jsx)(`strong`,{children:`Az alaptelepÃtés tartalma:`}),` `,N.included,`.`]}),(0,s.jsx)(`p`,{children:N.guidance})]})})]}),T&&m===`complete`&&e&&z&&(0,s.jsxs)(`section`,{className:`everest-recommendations`,"aria-labelledby":`recommendations-title`,"data-testid":`product-recommendations`,children:[(0,s.jsxs)(`div`,{className:`everest-step-heading`,children:[(0,s.jsx)(`span`,{children:`03`}),(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`p`,{children:`Termékajánlat a katalógusból`}),(0,s.jsx)(`h2`,{className:`everest-section-title`,id:`recommendations-title`,children:`SzériaösszehasonlÃtás alaptelepÃtéssel`})]})]}),(0,s.jsxs)(`p`,{className:`everest-recommendations-note`,children:[`A `,R.cooling.toFixed(1).replace(`.`,`,`),` kW hűtési szükségletre javasolt lehetÅségek. Válasszon egy csomagot a végösszeghez.`]}),(0,s.jsx)(`div`,{className:`everest-recommendations-grid`,children:H.map(e=>{let t=typeof e.price==`number`,n=t&&j===e.productCode,r=e.imageUrls??[],a=t?{productCode:e.productCode,name:e.productName,modelLabel:u(e.cooling),price:e.price}:null,o=t?_(i,R,a):null;return(0,s.jsxs)(`article`,{className:`everest-product-card${n?` everest-product-card--selected`:``}`,"data-testid":`product-card-${e.seriesId}`,children:[(0,s.jsx)(x,{seriesId:e.seriesId,seriesName:e.seriesName,images:r,onOpen:t=>I({images:r,seriesName:e.seriesName,currentIndex:t})}),(0,s.jsxs)(`div`,{className:`everest-product-information`,children:[(0,s.jsxs)(`div`,{className:`everest-product-head`,children:[(0,s.jsx)(`h3`,{children:e.seriesName}),n&&(0,s.jsx)(`span`,{className:`everest-product-selected-badge`,"data-testid":`product-selected-${e.seriesId}`,children:`Kiválasztva`})]}),(0,s.jsx)(`p`,{className:`everest-product-name`,children:e.productName}),(0,s.jsxs)(`p`,{className:`everest-product-capacity`,children:[`Hűtés: `,u(e.cooling),` ⢠Fűtés: `,u(e.heating)]}),t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(`p`,{className:`everest-product-price-label`,children:`Végleges csomagár a kiválasztott extrákkal`}),(0,s.jsx)(`strong`,{className:`everest-product-price`,"data-testid":`product-final-total-${e.seriesId}`,children:p(o?.total??e.price)})]}):(0,s.jsx)(`strong`,{className:`everest-product-price everest-product-price--tbd`,"aria-label":`Ãr egyeztetés alatt`,children:`Ãr egyeztetés alatt`}),(0,s.jsx)(`p`,{className:`everest-product-extras`,"data-testid":`product-extras-${e.seriesId}`,children:o&&o.extras.length>0?`Kiválasztott extrák: ${o.extras.map(e=>e.name).join(`, `)}`:`Nincs kiválasztott extra tétel`}),(0,s.jsxs)(`details`,{className:`everest-product-details`,"data-testid":`product-details-${e.seriesId}`,children:[(0,s.jsxs)(`summary`,{children:[(0,s.jsx)(`span`,{className:`everest-details-when-closed`,children:`BÅvebben`}),(0,s.jsx)(`span`,{className:`everest-details-when-open`,"aria-hidden":`true`,children:`Kevesebb részlet`})]}),(0,s.jsxs)(`div`,{className:`everest-product-details-body`,children:[(0,s.jsxs)(`p`,{className:`everest-product-code`,children:[`Cikkszám: `,e.productC
1ode]}),(0,s.jsx)(`dl`,{className:`everest-product-specs`,children:e.specifications.map(e=>(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`dt`,{children:e.label}),(0,s.jsx)(`dd`,{children:e.value})]},e.label))}),(0,s.jsxs)(`div`,{className:`everest-product-installation`,children:[(0,s.jsx)(`h4`,{children:`Az alaptelepÃtés tartalma`}),(0,s.jsx)(`dl`,{children:e.installationItems.map(e=>e.value?(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`dt`,{children:e.label}),(0,s.jsx)(`dd`,{children:e.value})]},e.label):(0,s.jsx)(`div`,{className:`everest-installation-row--label-only`,children:(0,s.jsx)(`dt`,{children:e.label})},e.label))})]}),o&&t&&(0,s.jsxs)(`div`,{className:`everest-product-quote`,"data-testid":`product-quote-${e.seriesId}`,children:[(0,s.jsx)(`h4`,{children:`Ãrkalkuláció részletezése`}),(0,s.jsxs)(`dl`,{children:[(0,s.jsxs)(`div`,{className:`everest-product-quote-row`,children:[(0,s.jsxs)(`dt`,{children:[e.seriesName,` csomagár alaptelepÃtéssel`]}),(0,s.jsx)(`dd`,{children:p(e.price)})]}),o.extras.map(e=>(0,s.jsxs)(`div`,{className:`everest-product-quote-row`,children:[(0,s.jsx)(`dt`,{children:e.name}),(0,s.jsxs)(`dd`,{children:[(0,s.jsx)(`small`,{children:e.detail}),p(e.value)]})]},`${e.name}-${e.value}`)),o.extras.length===0&&(0,s.jsx)(`div`,{className:`everest-product-quote-row everest-product-quote-row--empty`,children:(0,s.jsx)(`dt`,{children:`Nincs kiválasztott extra tétel`})}),o.discount&&(0,s.jsxs)(`div`,{className:`everest-product-quote-row everest-product-quote-row--discount`,children:[(0,s.jsx)(`dt`,{children:o.discount.name}),(0,s.jsxs)(`dd`,{children:[(0,s.jsx)(`small`,{children:o.discount.detail}),p(o.discount.value)]})]}),(0,s.jsxs)(`div`,{className:`everest-product-quote-row everest-product-quote-row--total`,children:[(0,s.jsx)(`dt`,{children:`Végleges csomagár`}),(0,s.jsx)(`dd`,{children:p(o.total)})]})]})]})]})]}),t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(`button`,{className:`everest-button everest-product-button`,type:`button`,onClick:()=>X(e.productCode),"data-testid":`product-choice-${e.seriesId}`,"aria-pressed":n,children:n?`Kiválasztás visszavonása`:`Ezt a csomagot választom`}),n&&(0,s.jsx)(`button`,{className:`everest-button everest-product-button everest-button--secondary everest-print-quote`,type:`button`,onClick:()=>window.print(),"data-testid":`print-quote-${e.seriesId}`,children:`Ajánlat nyomtatása`})]}):(0,s.jsx)(`p`,{className:`everest-product-unavailable`,children:`Ennek a kivitelnek nincs feltüntetett csomagára a katalógusban, ezért most nem választható. Kérje kollégánk egyedi ajánlatát a +36 20 212 9304-es számon.`})]})]},e._id)})}),e.company?.warrantyText&&(0,s.jsxs)(`div`,{className:`everest-warranty`,"data-testid":`warranty-terms`,children:[(0,s.jsx)(`h3`,{children:`Jótállási feltételek`}),(0,s.jsx)(`p`,{children:e.company.warrantyText})]})]}),U&&W&&V&&(0,s.jsxs)(`section`,{className:`everest-print-quote-document`,"data-testid":`printable-quote`,"aria-label":`Nyomtatható árajánlat`,children:[(0,s.jsxs)(`header`,{className:`everest-print-quote-header`,children:[(0,s.jsxs)(`div`,{className:`everest-print-brand`,children:[(0,s.jsx)(`img`,{src:V?.logoUrl||c,alt:`Everestcool`}),(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`p`,{children:`Everestcool`}),(0,s.jsx)(`span`,{children:`KlÃmaértékesÃtés és telepÃtés`})]})]}),(0,s.jsxs)(`div`,{className:`everest-print-quote-title`,children:[(0,s.jsx)(`p`,{children:`Ãrajánlat`}),(0,s.jsx)(`span`,{children:`KlÃmaberendezés és telepÃtés`})]})]}),(0,s.jsxs)(`div`,{className:`everest-print-company-details`,children:[(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`p`,{className:`everest-print-label`,children:`Ajánlatadó`}),(0,s.jsx)(`strong`,{children:V.contactName}),(0,s.jsx)(`span`,{children:V.address})]}),(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`p`,{className:`everest-print-label`,children:`ElérhetÅségek`}),(0,s.jsxs)(`span`,{children:[`Telefon: `,V.phone]}),(0,s.jsxs)(`span`,{children:[`E-mail: `,V.email]}),(0,s.jsxs)(`span`,{children:[`Web: `,V.website]})]}),(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`p`,{className:`everest-print-label`,children:`Nyilvántartási adatok`}),(0,s.jsxs)(`span`,{children:[`Adószám: `,V.taxNumber]}
1),(0,s.jsxs)(`span`,{children:[`F-gáz azonosÃtó: `,V.fGasId]})]})]}),(0,s.jsxs)(`div`,{className:`everest-print-quote-intro`,children:[(0,s.jsx)(`p`,{children:`A kiválasztott konfiguráció alapján az alábbi bruttó árajánlatot készÃtettük.`}),(0,s.jsxs)(`dl`,{children:[(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`dt`,{children:`Választott készülék`}),(0,s.jsx)(`dd`,{children:U.productName})]}),(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`dt`,{children:`Cikkszám`}),(0,s.jsx)(`dd`,{children:U.productCode})]}),(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`dt`,{children:`TeljesÃtmény`}),(0,s.jsxs)(`dd`,{children:[`Hűtés: `,u(U.cooling),` · Fűtés: `,u(U.heating)]})]})]})]}),(0,s.jsxs)(`div`,{className:`everest-print-quote-lines`,children:[(0,s.jsxs)(`div`,{className:`everest-print-quote-line everest-print-quote-line--heading`,children:[(0,s.jsx)(`span`,{children:`Tétel`}),(0,s.jsx)(`span`,{children:`Ãsszeg`})]}),W.items.map(e=>(0,s.jsxs)(`div`,{className:`everest-print-quote-line`,children:[(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`strong`,{children:e.name}),(0,s.jsx)(`span`,{children:e.detail})]}),(0,s.jsx)(`b`,{children:p(e.value)})]},`${e.name}-${e.value}`)),(0,s.jsxs)(`div`,{className:`everest-print-quote-total`,children:[(0,s.jsx)(`span`,{children:`Végösszeg`}),(0,s.jsx)(`strong`,{children:p(W.total)})]})]}),(0,s.jsxs)(`footer`,{className:`everest-print-quote-footer`,children:[(0,s.jsx)(`p`,{children:`Az árak bruttó összegek. A csomagár az alaptelepÃtést tartalmazza, az ajánlatban csak a kiválasztott többlettételek szerepelnek külön.`}),(0,s.jsx)(`p`,{children:`Köszönjük érdeklÅdését!`})]})]}),F&&(0,s.jsx)(`div`,{className:`everest-lightbox-overlay`,role:`presentation`,"data-testid":`product-image-lightbox`,onClick:()=>I(null),children:(0,s.jsxs)(`div`,{className:`everest-lightbox-dialog`,role:`dialog`,"aria-modal":`true`,"aria-label":`${F.seriesName} termék képe nagyÃtva`,onClick:e=>e.stopPropagation(),children:[(0,s.jsx)(`button`,{type:`button`,className:`everest-lightbox-close`,"aria-label":`KépnézÅ ablak bezárása`,onClick:()=>I(null),children:`Ã`}),F.images.length>1&&(0,s.jsx)(`button`,{type:`button`,className:`everest-lightbox-nav everest-lightbox-nav--prev`,"aria-label":`ElÅzÅ kép`,"data-testid":`lightbox-prev`,onClick:()=>I(e=>e&&{...e,currentIndex:(e.currentIndex-1+e.images.length)%e.images.length}),children:`â¹`}),F.images.length>0?(0,s.jsx)(`img`,{className:`everest-lightbox-image`,src:F.images[F.currentIndex],alt:`${F.seriesName} klÃmaberendezés nagyÃtva`}):(0,s.jsx)(`div`,{className:`everest-gallery-empty everest-gallery-empty--lightbox`,children:`Nincs elérhetÅ kép`}),F.images.length>1&&(0,s.jsx)(`button`,{type:`button`,className:`everest-lightbox-nav everest-lightbox-nav--next`,"aria-label":`KövetkezÅ kép`,"data-testid":`lightbox-next`,onClick:()=>I(e=>e&&{...e,currentIndex:(e.currentIndex+1)%e.images.length}),children:`âº`}),(0,s.jsxs)(`p`,{className:`everest-lightbox-caption`,children:[F.seriesName,F.images.length>0&&(0,s.jsxs)(`span`,{className:`everest-lightbox-count`,children:[` `,`· `,F.currentIndex+1,` / `,F.images.length]})]})]})})]})]})})}function x({seriesId:e,seriesName:t,images:n,onOpen:r}){let[i,a]=(0,o.useState)(0),c=n.length>0?Math.min(i,n.length-1):0,l=n.length,u=e=>{l>0&&a((e%l+l)%l)};return(0,s.jsx)(`div`,{className:`everest-product-visual`,"data-testid":`product-gallery-${e}`,children:l>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(`button`,{type:`button`,className:`everest-product-image-trigger`,"aria-label":`${t} képének nagyÃtása (${c+1}. kép)`,"data-testid":`product-image-trigger-${e}`,onClick:()=>r(c),children:(0,s.jsx)(`img`,{className:`everest-product-image`,src:n[c],alt:`${t} klÃmaberendezés`})}),l>1&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(`button`,{type:`button`,className:`everest-gallery-nav everest-gallery-nav--prev`,"aria-label":`ElÅzÅ kép`,"data-testid":`product-gallery-prev-${e}`,onClick:()=>u(c-1),children:`â¹`}),(0,s.jsx)(`button`,{type:`button`,className:`everest-gallery-nav everest-gallery-nav--next`,"aria-label":`KövetkezÅ kép`,"data-testid":`product-gallery-next-${e}`,onClick:()=>u(c+1),children:`âº`}),(0,s.jsxs)(`span`,{className:`everest-gallery-count`,"data-testid":`product-gallery-count-${e}`,children:[c+1,` / `,l]})]})]}):(0,s.jsx)(`div`,{className:`everest-gallery-empty`,children:`Nincs elérhetÅ kép`})})}
1function S({id:e,label:t,unit:n,value:r,step:i=`1`,onChange:a}){return(0,s.jsxs)(`label`,{className:`everest-field`,htmlFor:e,children:[(0,s.jsx)(`span`,{children:t}),(0,s.jsxs)(`div`,{className:`everest-input-wrap`,children:[(0,s.jsx)(`input`,{id:e,type:`number`,min:`0`,step:i,value:r,onChange:e=>a(e.target.value)}),(0,s.jsx)(`em`,{children:n})]})]})}function C({id:e,label:t,value:n,options:r,onChange:i}){return(0,s.jsxs)(`label`,{className:`everest-field`,htmlFor:e,children:[(0,s.jsx)(`span`,{children:t}),(0,s.jsxs)(`select`,{id:e,value:n,onChange:e=>i(e.target.value),children:[(0,s.jsx)(`option`,{value:``,disabled:!0,children:`Válasszon egy lehetÅséget`}),r.map(([e,t],n)=>(0,s.jsx)(`option`,{value:e,children:t},`${e}-${n}`))]})]})}function w({label:e,price:t,unit:n,value:r,info:i,onChange:a,onInfoClick:o}){let c=`extra-${e.toLowerCase().replace(/[^a-z0-9]+/g,`-`)}`;return(0,s.jsxs)(`div`,{className:`everest-extra`,children:[(0,s.jsxs)(`span`,{children:[(0,s.jsx)(`label`,{htmlFor:c,children:(0,s.jsx)(`strong`,{children:e})}),i&&o&&(0,s.jsx)(`button`,{className:`everest-info-trigger`,type:`button`,"aria-label":`${e}: alaptelepÃtési információ`,"data-testid":`extra-info-${c}`,onClick:()=>o(i),children:`i`}),(0,s.jsx)(`small`,{children:t})]}),(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`input`,{id:c,"aria-label":e,type:`number`,min:`0`,step:`1`,value:r,onChange:e=>a(e.target.value)}),(0,s.jsx)(`em`,{children:n})]})]})}export{b as component};
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.