PageSourceSearch

https://oenergetice.cz/_next/static/chunks/1020kf_yig5gd.js

js oenergetice.cz collected 2026-09-24 19:24:07 UTC 67,211 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,410207,e=>{"use strict";var t=e.i(577528),r=e.i(574676),n=e.i(812823);e.s(["default",0,function(e){let{children:a,className:i="",size:o=20}=e;return(0,t.jsxs)("div",{className:(0,n.cn)("text-md mb-3 flex text-gray-600 sm:text-lg",i),children:[(0,t.jsx)(r.FaCheckCircle,{size:o,className:"mr-4 inline-block w-6 shrink-0 grow-0 basis-6 fill-current text-green-600"}),(0,t.jsx)("span",{children:a})]})}])},486301,(e,t,r)=>{t.exports=function(e){return function(t){return null==e?void 0:e[t]}}},129254,e=>{"use strict";let t=(0,e.i(692063).default)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],129254)},440576,e=>{"use strict";let t=(0,e.i(692063).default)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,t],440576)},316823,e=>{"use strict";let t=(0,e.i(692063).default)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["default",0,t])},858909,e=>{"use strict";e.s(["DOMAINS_WHITELIST",0,["@whitecase.com","@rezolv.energy","@gasnet.cz","@cez.cz","@cezdistribuce.cz","@sko-energo.cz","@eon.cz","@7group.cz","@7gi.com","@powertica.com","@cz.gt.com","@pre.cz"],"EMAILS_WHITELIST",0,["[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]"],"MONITORING_DETAIL_FULL",0,"full","MONITORING_DETAIL_HIGHLIGHT",0,"highlight","MONITORING_TRACKING_COOKIE_NAME",0,"monitoring-unique-token","MONITORING_TYPE_DAILY",0,"daily","MONITORING_TYPE_WEEKLY",0,"weekly"])},694451,(e,t,r)=>{var n=e.r(78548),a=e.r(339711);t.exports=function(e,t){return n(e,t,function(t,r){return a(e,r)})}},909305,(e,t,r)=>{var n=e.r(694451);t.exports=e.r(303730)(function(e,t){return null==e?{}:n(e,t)})},664385,(e,t,r)=>{var n=e.r(41614)("pick",e.r(909305));n.placeholder=e.r(431877),t.exports=n},10115,952019,e=>{"use strict";let t={PERCENT:"percent",AMOUNT:"amount"};e.s(["COUPON_TYPE",0,t,"removeCoupon",0,()=>({type:"REMOVE_COUPON"}),"setCoupon",0,e=>({type:"SET_COUPON",payload:e}),"setGopayUrl",0,e=>({type:"SET_GOPAY_URL",payload:e}),"setPaymentConfirmationPayload",0,e=>({type:"SET_PAYMENT_CONFIRMATION_PAYLOAD",payload:e}),"setPaymentStatus",0,e=>({type:"SET_PAYMENT_STATUS",payload:e}),"setProformaUrl",0,e=>({type:"SET_PROFORMA_URL",payload:e})],952019);var r=e.i(42476),n=e.i(426198),a=e.i(242334);let i=e=>(0,r.default)(e?.substring(0,2))(a.EU_VAT_CODES),o=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.CURRENCY.CZK;return(n.PRICE_PRODUCTS_BY_CURRENCY[r]?.[e]??n.PRICE_PRODUCTS[e])[t]};e.s(["adjustTotalPriceBasedOnVat",0,(e,t)=>({totalPrice:i(t)?Math.round(e/1.21):e,totalPricePreVat:Math.round(e/1.21),totalPriceOnlyVat:i(t)?0:Math.round(e-e/1.21)}),"calculateCouponPrice",0,(e,r)=>{let{type:n,discount:a}=r;return n===t.PERCENT?Math.round(Math.max(e*(1-(a||0)/100),0)):n===t.AMOUNT?Math.max(e-a,0):e},"getPreCouponPrice",0,function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.CURRENCY.CZK;return n.MONITORING_PROGRAM_DURATION[t]*o(e,t,r)},"getUnitPrice",0,o,"hasCoupon",0,e=>e===t.PERCENT||e===t.AMOUNT],10115)},931490,e=>{"use strict";e.s(["default",0,{SIGNUP:{CATEGORY:"signup",LABEL:{PROFORMA_INVOICE_ISSUED:"proformaInvoiceIssued",PROFORMA_INVOICE_PAID:"proformaInvoicePaid",PAYMENT_CONFIRMATION_NOT_SENT:"paymentConfirmationNotSent",PAYMENT_CONFIRMATION_GENERATED:"paymentConfirmationGenerated",FIRST_STEP:"firstStepDone",SECOND_STEP:"secondStepDone",COUPON_SUBMIT:"submitCoupon",PAY_CLICK:"payButtonClicked",CREATE_ORDER:"orderCreated",CREATE_ORDER_INCORRECT_DATA:"createOrderIncorrectData",CREATE_PAYMENT:"createdPayment",PAYMENT_STATUS_UPDATE:"paymentStatusUpdate",SAVE_MONITORING_SUBSCRIPTION:"monitoringSubscriptionSaved",SAVE_MONITORING_MARKET_SETTING:"monitoringMarketSettingsSaved",SAVE_MONITORING_SUBSCRIPTION_META:"monitoringSubscriptionMetaSaved",CONFIRM_SUBSCRIPTION:"monitoringSubscriptionConfirmed",FINISH_SIGNUP:"finishSignup",UPDATE_PASSWORD:"updatePassword",UPDATE_SETTINGS:"updateSettings",RESET_TO_MONTH_PROGRAM_ON_COUPON_SUBMIT:"resetToMonthProgramOnCouponSelected",ERRORS:{COUPON_SUBMIT:"couponSubmitExpectedError",COUPON_SUBMIT_API:"couponSubmitApiError",CREATE_ORDER:"createOrderExpectedError",CREATE_ORDER_API:"createOrderApiError",CREATE_ORDER_SERVER_API:"createOrderApiServerError",CREATE_PAYMENT_API:"createPaymentApiError",UPDATE_GOPAY_URL:"updateGopayUrlApiError",SAVE_MONITORING_USER:"saveMonitoringUserError",SAVE_MONITORING_SUBSCRIPTION:"saveMonitoringSubscriptionError",SAVE_MONITORING_MARKET_SETTING:"saveMonitoringMarketSettingsError",SAVE_MONITORING_SUBSCRIPTION_META:"saveMonitoringSubscriptionMetaError",CONFIRM_SUBSCRIPTION:"monitoringSubscriptionConfirmError",FINISH_SIGNUP:"finishSignupError"}}},EMAILS:{CATEGORY:"emails",LABEL:{SEND_MAIL:"sendMail"}},ACCOUNT:{CATEGORY:"account",LABEL:{UPDATE_MONITORING_SETTINGS:"monitoringSettingsUpdated",ERRORS:{UPDATE_MONITORING_SETTINGS:"monitoringSettingsUpdatedError"}}}}])},31486,e=>{"use strict";
1var t=e.i(664385),r=e.i(934914),n=e.i(975384),a=e.i(841291),i=e.i(42476),o=e.i(18111),s=e.i(242334),l=e.i(770026),c=e.i(426198),u=e.i(819065),d=e.i(858909),m=e.i(10115),f=e.i(69297),p=e.i(477658),h=e.i(54217),E=e.i(931490);let T=e=>e===c.PRODUCT.MONITORING,N=e=>(0,i.default)(e)(d.EMAILS_WHITELIST)||(0,i.default)(e.substring(e.indexOf("@")))(d.DOMAINS_WHITELIST),_=e=>T(e)||e===c.PRODUCT.PREMIUM||e===c.PRODUCT.PAYWALL||e===c.PRODUCT.NO_ADS||e===c.PRODUCT.ENERGOSTAT;e.s(["calculateTotalPrice",0,function(e,t,r,n,a){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:c.CURRENCY.CZK;if(N(e)&&_(r))return{totalPrice:0,totalPricePreVat:0,totalPriceOnlyVat:0};let o=(0,m.getPreCouponPrice)(r,t,i);if((0,m.hasCoupon)(n?.type)){let e=(0,m.calculateCouponPrice)(o,n);return(0,m.adjustTotalPriceBasedOnVat)(e,a)}return(0,m.adjustTotalPriceBasedOnVat)(o,a)},"getProductName",0,e=>c.PRODUCT_NAMES[e]??"-","getTrialAvailable",0,e=>{let t=(0,f.assembleApiUrl)(p.API_ENDPOINTS.ELIGIBLE_FOR_FREE_TRIAL,{email:e});return o.default.get(t).then(e=>{let{data:t}=e;return t.result}).catch(e=>e)},"handleOrderError",0,(e,t)=>("ER_DUP_ENTRY"===(0,r.default)("response.data.code")(e)?(window.toast({title:"Tento e-mail již máme",description:"Uživatel s tímto e-mailem již existuje. Pokud to tak není, dejte nám prosím vědět na [email protected]",variant:"destructive"}),(0,l.sendGoogleAnalyticsEvent)({category:u.GTAG.ERRORS.CATEGORY,action:u.GTAG.ERRORS.ACTIONS.CREATE_ORDER,label:`Duplicate: ${t}`})):(console.log("err",e),(0,h.default)({category:E.default.SIGNUP.CATEGORY,action:t,label:E.default.SIGNUP.LABEL.ERRORS.CREATE_ORDER_API}),(0,l.sendGoogleAnalyticsEvent)({category:u.GTAG.ERRORS.CATEGORY,action:u.GTAG.ERRORS.ACTIONS.CREATE_ORDER,label:"_api_reject"})),s.ERROR_TERMINATE),"isMonitoringProduct",0,T,"isTrialProgram",0,e=>e===c.PROGRAM.TRIAL,"isWhiteListed",0,N,"isWhitelistEligibleProduct",0,_,"prepareValuesForSignup",0,(e,r,i)=>{let o,l,u;return(0,a.default)((0,t.default)(s.ORDER_REQUIRED_VALUES),(o=c.TRIAL_BOILERPLATE_DATA,e=>e.program===c.PROGRAM.TRIAL?{...e,...o}:e),(0,n.default)("email",e.email.trim()),(0,n.default)("totalPrice",r||"0"),(0,n.default)("discount",(l=(0,m.getPreCouponPrice)(e.product,e.program,e.currency),(u=(0,m.adjustTotalPriceBasedOnVat)(l,e.companyVat)).totalPrice-r==0?"0":u.totalPrice-r)),(0,n.default)("coupon",i.id))(e)}])},694038,e=>{"use strict";var t=e.i(507744);e.s(["useTurnstile",0,function(){let e=(0,t.useRef)(null),r=(0,t.useRef)(null),[n,a]=(0,t.useState)(null);return(0,t.useEffect)(()=>{let t="0x4AAAAAADKWOhZSFMnhJpAO";if(!t||!e.current)return;let n=()=>{null===r.current&&(r.current=window.turnstile.render(e.current,{sitekey:t,appearance:"interaction-only",callback:e=>a(e),"expired-callback":()=>a(null),"error-callback":()=>a(null)}))};if(window.turnstile)return void n();if(document.querySelector("#cf-turnstile-script")){let e=setInterval(()=>{window.turnstile&&(n(),clearInterval(e))},50);return()=>clearInterval(e)}{let e=document.createElement("script");e.id="cf-turnstile-script",e.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",e.async=!0,e.onload=n,document.head.appendChild(e)}},[]),{containerRef:e,token:n}}])},508800,e=>{"use strict";var t=e.i(577528),r=e.i(525585),n=e.i(770026),a=e.i(819065),i=e.i(632372),o=e.i(812823),s=e.i(301313);let l=function(e){let{type:n,label:a,placeholder:l,field:c,renderError:u=!1,dataTest:d,inputClassName:m,form:{errors:f,touched:p},...h}=e;return(0,t.jsxs)("div",{className:`relative ${f[c.name]&&p[c.name]?"pb-4":""}`,children:[(0,t.jsx)(s.Input,{"data-test":d,id:c.name,type:"text",placeholder:l,error:f[c.name]&&p[c.name],...c,...h,className:(0,o.cn)("mb-2.5 w-full rounded-md border-2 border-slate-300 bg-white px-5 py-2.5 text-sm outline-0",m)}),u&&(0,t.jsx)(r.ErrorMessage,{name:c.name,component:i.default})]})};var c=e.i(589773),u=e.i(31486),d=e.i(80112),m=e.i(426198),f=e.i(507357),p=e.i(229665),h=e.i(694038),E=e.i(933631),T=e.i(968684);e.s(["default",0,function(e){let{type:i,inputClassname:s,wrapperClassname:N,buttonClassname:_,buttonText:v="Přihlásit se"}=e,A=(0,E.useLang)(),S=(0,f.useRouter)(),{containerRef:x,token:R}=(0,h.useTurnstile)();return(0,t.jsx)(r.Formik,{initialValues:{email:""},enableReinitialize:!1,onSubmit:e=>{(0,u.getTrialAvailable)(e.email).then(t=>((e,t,r,i,o)=>
1{if((0,n.sendGoogleAnalyticsEvent)({category:a.GTAG.SIGNUP.CATEGORY,action:`${a.GTAG.SIGNUP.ACTIONS.SIGNUP_SIMPLE_FORM}-${i}`,label:t.email}),r){let{dispatch:e}=window.reduxStore;e((0,d.submitSignup)({...m.FORMIK_INITIAL_VALUES,...t,program:m.PROGRAM.TRIAL,product:m.PRODUCT.MONITORING},o))}else e.push(`/prihlasit-monitoring?email=${t.email}&step=subscription&trial=${m.TRIAL_NOT_AVAILABLE}`)})(S,e,t,i,R))},children:e=>(0,t.jsxs)("form",{onSubmit:e.handleSubmit,className:N,children:[(0,t.jsx)(r.Field,{datatest:"MonitoringSimpleForm-email",name:"email",type:"email",label:"E-mail",placeholder:(0,T.t)("monitoring_about.trial.email_placeholder",A),component:l,validate:t=>(0,c.emailValidation)(e,t,!1,!0),inputClassName:(0,o.cn)("mb-2 py-5",s),renderError:!0}),(0,t.jsx)("div",{ref:x}),(0,t.jsx)(p.Button,{"data-test":"MarketOverviewSubscriptionModal-submit",disabled:e.isSubmitting,type:"submit",size:"lg",className:(0,o.cn)("w-full",_),children:v})]})})}],508800)},8389,e=>{"use strict";var t=e.i(507744),r=(e.i(577528),Object.defineProperty),n=t.createContext(void 0);function a(e){let r=t.useContext(n);return e||r||"ltr"}r(a,"name",{value:"useDirection",configurable:!0}),e.s(["useDirection",0,a])},320887,e=>{"use strict";var t=e.i(507744),r=e.i(27942);function n(e){let[n,a]=t.useState(void 0);return(0,r.useLayoutEffect)(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,n;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,n=t.blockSize}else r=e.offsetWidth,n=e.offsetHeight;a({width:r,height:n})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}a(void 0)},[e]),n}(0,Object.defineProperty)(n,"name",{value:"useSize",configurable:!0}),e.s(["useSize",0,n])},618722,e=>{"use strict";let t=(0,e.i(692063).default)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",0,t])},940894,e=>{"use strict";let t=(0,e.i(692063).default)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["default",0,t])},201661,e=>{"use strict";function t(e,t){let[r,n]=t;return Math.min(n,Math.max(r,e))}(0,Object.defineProperty)(t,"name",{value:"clamp",configurable:!0}),e.s(["clamp",0,t])},574676,(e,t,r)=>{var n=e.r(519497).GenIcon;t.exports.FaCheckCircle=function(e){return n({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"}}]})(e)}},282685,e=>{"use strict";let t={lang:{months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],weekdays:["Neděle","Pondělí","Úterý","Středa","Čtvrtek","Pátek","Sobota"],shortMonths:["Led","Úno","Bře","Dub","Kvě","Červen","Červenec","Srp","Zář","Říj","List","Pros"],downloadXLS:"Stáhnout XLS",downloadCSV:"Stáhnout CSV",downloadPNG:"Stáhnout jako PNG",downloadJPEG:"Stáhnout jako JPEG",downloadPDF:"Stáhnout jako PDF",downloadSVG:"Stáhnout jako SVG",viewData:"Zobrazit tabulku s daty",printChart:"Tisk",viewFullscreen:"Zobrazit na celou obrazovku"},time:{useUTC:!1}},r={lang:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],downloadXLS:"Download XLS",downloadCSV:"Download CSV",downloadPNG:"Download as PNG",downloadJPEG:"Download as JPEG",downloadPDF:"Download as PDF",downloadSVG:"Download as SVG",viewData:"View data table",printChart:"Print",viewFullscreen:"View in full screen"},time:{useUTC:!1}};e.s(["HIGHCHARTS_OPTIONS",0,t,"getHighchartsOptions",0,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cs";return"en"===e?r:t}])},295534,e=>{"use strict";var t=e.i(940894);e.s(["ChevronDown",()=>t.default])},801540,e=>{"use strict";var t=e.i(618722);e.s(["Check",()=>t.default])},139863,(e,t,r)=>{e.e,t.exports=function(e){"use strict";function t(e){return e>1&&e<5&&1!=~~(e/10)}function r(e,r,n,a){var i=e+" ";switch(n){case"s":return r||a?"pár sekund":"pár sekundami";case"m":return r?"minuta":a?"minutu":"minutou";case"mm":return r||a?i+(t(e)?"minuty":"minut"):i+"minutami";case"h":return r?"hodina":a?"hodinu":"hodinou";case"hh":return r||a?i+(t(e)?"hodiny":"hodin"):i+"hodinami";case"d":return r||a?"den":"dnem";case"dd":return r||a?i+(t(e)?"dny":"dní"):i+"dny";case"M":return r||a?"měsíc":"měsícem";case"MM":return r||a?i+(t(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return r||a?"rok":"rokem";case"yy":return r||a?i+(t(e)?"roky":"let"):i+"lety"}}var n={name:"cs",weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),months:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),monthsShort:"led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"před %s",s:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(n,null,!0),n}(e.r(195857))},296504,(e,t,r)=>{e.e,t.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,a,i){var o=a.prototype;i.utc=function(e){var t={date:e,utc:!0,args:arguments};return new a(t)},o.utc=function(t){var r=i(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},o.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=o.utcOffset;o.utcOffset=function(n,a){var i=this.$utils().u;if(i(n))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof n&&null===(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var a=(""+n[0]).match(r)||["-",0,0],i=a[0],o=60*a[1]+ +a[2];return 0===o?0:"+"===i?o:-o}(n)))return this;var o=16>=Math.abs(n)?60*n:n;if(0===o)return this.utc(a);var s=this.clone();if(a)return s.$offset=o,s.$u=!1,s;var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(o+l,e)).$offset=o,s.$x.$localOffset=l,s};var u=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var m=o.diff;o.diff=function(e,t,r){if(e&&this.$u===e.$u)return m.call(this,e,t,r);var n=this.local(),a=i(e).local();return m.call(n,a,t,r)}}}()},393375,(e,t,r)=>{e.e,t.exports=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(r,n,a){var i,o=function(e,r,n){void 0===n&&(n={});var a,i,o,s,l=new Date(e);return(void 0===(a=n)&&(a={}),(s=t[o=r+"|"+(i=a.timeZoneName||"short")])||(s=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),t[o]=s),s).formatToParts(l)},s=function(t,r){for(var n=o(t,r),i=[],s=0;s<n.length;s+=1){var l=n[s],c=l.type,u=l.value,d=e[c];d>=0&&(i[d]=parseInt(u,10))}var m=i[3],f=i[0]+"-"+i[1]+"-"+i[2]+" "+(24===m?0:m)+":"+i[4]+":"+i[5]+":000",p=+t;return(a.utc(f).valueOf()-(p-=p%1e3))/6e4},l=n.prototype;l.tz=function(e,t){if(void 0===e&&(e=i),!this.isValid())return this;
1var r,n=this.utcOffset(),o=this.toDate(),l=o.toLocaleString("en-US",{timeZone:e}),c=s(+o,e);if(Number(c)){if(r=a(l,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(c,!0),t){var u=r.utcOffset();r=r.add(n-u,"minute")}}else r=this.utcOffset(0,t);return r.$x.$timezone=e,r},l.offsetName=function(e){var t=this.$x.$timezone||a.tz.guess(),r=o(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return r&&r.value};var c=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var r=a(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(r,e,t).tz(this.$x.$timezone,!0)},a.tz=function(e,t,r){var n=r&&t,o=r||t||i,l=s(+a(),o);if("string"!=typeof e)return a(e).tz(o);var c=a.utc(e,n).valueOf();if(Number.isNaN(c)){var u=a(NaN);return u.$x.$timezone=o,u}var d=function(e,t,r){var n=e-60*t*1e3,a=s(n,r);if(t===a)return[n,t];var i=s(n-=60*(a-t)*1e3,r);return a===i?[n,a]:[e-60*Math.min(a,i)*1e3,Math.max(a,i)]}(c,l,o),m=d[0],f=d[1],p=a(m).utcOffset(f);return p.$x.$timezone=o,p},a.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},a.tz.setDefault=function(e){i=e}}}()},526871,(e,t,r)=>{e.e,t.exports={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}}},401688,e=>{"use strict";var t=e.i(195857),r=e.i(296504),n=e.i(393375);e.i(139863),e.i(526871),t.default.extend(r.default),t.default.extend(n.default);let a={cs:"cs-CZ",en:"en-GB"},i={cs:"cs",en:"en"},o={numeric:{cs:"D. M. YYYY",en:"D MMMM YYYY"},long:{cs:"D. MMMM YYYY",en:"D MMMM YYYY"}};e.s(["NUMBER_LOCALES",0,a,"formatDate",0,function(e,r){var n;let a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"numeric";return(a=(0,t.default)(e),(n?a.tz(n):a).locale(i[r])).format(o[s][r])},"formatNumber",0,(e,t,r)=>new Intl.NumberFormat(a[t],r).format(e)])},524556,(e,t,r)=>{t.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},852302,(e,t,r)=>{t.exports=function(e,t,r){for(var n=-1,a=null==e?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1}},80185,(e,t,r)=>{var n=e.r(512813),a=e.r(901290),i=e.r(113008);t.exports=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:a},38038,(e,t,r)=>{var n=e.r(897082),a=e.r(947810),i=e.r(852302),o=e.r(250189),s=e.r(80185),l=e.r(113008);t.exports=function(e,t,r){var c=-1,u=a,d=e.length,m=!0,f=[],p=f;if(r)m=!1,u=i;else if(d>=200){var h=t?null:s(e);if(h)return l(h);m=!1,u=o,p=new n}else p=t?[]:f;e:for(;++c<d;){var E=e[c],T=t?t(E):E;if(E=r||0!==E?E:0,m&&T==T){for(var N=p.length;N--;)if(p[N]===T)continue e;t&&p.push(T),f.push(E)}else u(p,T,r)||(p!==f&&p.push(T),f.push(E))}return f}},667607,(e,t,r)=>{t.exports=function(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++a];if(!1===r(i[l],l,i))break}return t}}},969389,(e,t,r)=>{t.exports=e.r(667607)()},459207,(e,t,r)=>{var n=e.r(969389),a=e.r(800521);t.exports=function(e,t){return e&&n(e,t,a)}},230121,(e,t,r)=>{var n=e.r(921291);t.exports=function(e,t){return function(r,a){if(null==r)return r;if(!n(r))return e(r,a);for(var i=r.length,o=t?i:-1,s=Object(r);(t?o--:++o<i)&&!1!==a(s[o],o,s););return r}}},421405,(e,t,r)=>{var n=e.r(459207);t.exports=e.r(230121)(n)},528205,(e,t,r)=>{var n=e.r(421405),a=e.r(921291);t.exports=function(e,t){var r=-1,i=a(e)?Array(e.length):[];return n(e,function(e,n,a){i[++r]=t(e,n,a)}),i}},945908,(e,t,r)=>{t.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}},356011,(e,t,r)=>{var n=e.r(489278);t.exports=function(e,t){if(e!==t){var r=void 0!==e,a=null===e,i=e==e,o=n(e),s=void 0!==t,l=null===t,c=t==t,u=n(t);if(!l&&!u&&!o&&e>t||o&&s&&c&&!l&&!u||a&&s&&c||!r&&c||!i)return 1;if(!a&&!o&&!u&&e<t||u&&r&&i&&!a&&!o||l&&r&&i||!s&&i||!c)return -1}return 0}},989300,(e,t,r)=>{var n=e.r(356011);t.exports=function(e,t,r){for(var a=-1,i=e.criteria,o=t.criteria,s=i.length,l=r.length;++a<s;){var c=n(i[a],o[a]);if(c){if(a>=l)return c;return c*("desc"==r[a]?-1:1)}}return e.index-t.index}},330702,(e,t,r)=>{var n=e.r(879622),a=e.r(734245),i=e.r(337460),o=e.r(528205),s=e.r(945908),l=e.r(192042),c=e.r(989300),u=e.r(949102),d=e.r(595202);t.exports=function(e,t,r){t=t.length?n(t,function(e){return d(e)?function(t){return a(t,1===e.length?e[0]:e)}:e}):[u];var m=-1;
1return t=n(t,l(i)),s(o(e,function(e,r,a){return{criteria:n(t,function(t){return t(e)}),index:++m,value:e}}),function(e,t){return c(e,t,r)})}},243058,(e,t,r)=>{var n=e.r(949102),a=e.r(218429),i=e.r(164636);t.exports=function(e,t){return i(a(e,t,n),e+"")}},761577,(e,t,r)=>{var n=e.r(6833),a=e.r(921291),i=e.r(761739),o=e.r(115817);t.exports=function(e,t,r){if(!o(r))return!1;var s=typeof t;return("number"==s?!!(a(r)&&i(t,r.length)):"string"==s&&t in r)&&n(r[t],e)}},386568,(e,t,r)=>{var n=e.r(168101),a=e.r(330702),i=e.r(243058),o=e.r(761577);t.exports=i(function(e,t){if(null==e)return[];var r=t.length;return r>1&&o(e,t[0],t[1])?t=[]:r>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),a(e,n(t,1),[])})},129295,e=>{"use strict";var t=e.i(577528);e.s(["default",0,function(e){let{className:r="w-24 h-auto mx-auto",color:n="#06172e"}=e;return(0,t.jsx)("svg",{className:`${r} my-12 animate-bounce`,xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 512.001 512.001",enableBackground:"new 0 0 512.001 512.001",width:"512px",height:"512px",children:(0,t.jsx)("path",{d:"m413.951,200.174c-2.828-5.047-8.164-8.174-13.953-8.174h-110.608l14.555-174.668c0.609-7.312-3.836-14.1-10.781-16.467-6.914-2.383-14.609,0.282-18.594,6.446l-175.998,271.997c-3.188,4.922-3.43,11.194-0.625,16.342 2.805,5.148 8.195,8.35 14.054,8.35h110.718l-14.672,190.773c-0.57,7.375 3.992,14.18 11.031,16.454 1.625,0.523 3.281,0.774 4.922,0.774 5.453,0 10.687-2.804 13.656-7.656l175.998-287.998c3.016-4.937 3.133-11.126 0.297-16.173zm-168.896,230.685l10.898-141.63c0.344-4.445-1.187-8.829-4.211-12.103-3.031-3.265-7.289-5.126-11.742-5.126h-98.585l125.335-193.707-10.695,128.382c-0.367,4.461 1.141,8.865 4.172,12.162 3.031,3.29 7.296,5.163 11.773,5.163h99.468l-126.413,206.859z",fill:n})})}])},705981,e=>{"use strict";var t=e.i(577528),r=e.i(507744);e.s(["default",0,function(e){let{large:n=!1,itemId:a,onClick:i,disabled:o=!1,checked:s=!1}=e,[l,c]=(0,r.useState)(!!s);return(0,r.useEffect)(()=>{c(!!s)},[s]),(0,t.jsx)("div",{"data-test":`Toggle-${a}-${l}`,className:"flex items-center justify-center",children:(0,t.jsx)("label",{htmlFor:a,className:"flex cursor-pointer items-center",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{onChange:()=>{c(!l),i(l?"0":"1")},disabled:o,type:"checkbox",id:a,className:"sr-only",checked:l}),(0,t.jsx)("div",{className:`toggle block ${n?"h-10 w-16":"h-5 w-8"} rounded-full bg-gray-400`}),(0,t.jsx)("div",{className:`dot absolute ${n?"top-2 left-2 h-6 w-6":"top-1 left-1 h-3 w-3"} rounded-full bg-white transition`})]})})})}])},26097,e=>{"use strict";var t=e.i(577528);e.s(["ENERGOSTAT_TOOLBAR_LINK_CLASS",0,"text-primary text-xs underline decoration-dotted underline-offset-2 hover:
1decoration-solid","EnergostatSelect",0,function(e){let{children:r,dataTest:n}=e;return(0,t.jsx)("div",{"data-test":n,className:"w-full",children:r})}])},389964,818013,e=>{"use strict";var t=e.i(577528),r=e.i(507744),n=e.i(229665),a=e.i(94421),i=e.i(848927),o=e.i(692063);let s=(0,o.default)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var l=e.i(26097),c=e.i(358499),u=e.i(486189),d=e.i(661241);e.s(["default",0,function(e){let{src:o,label:m="Graf",params:f}=e,{toast:p}=(0,d.useToast)(),[h,E]=r.default.useState(o??"");return(0,t.jsx)("div",{children:(0,t.jsxs)(i.Dialog,{children:[(0,t.jsx)(i.DialogTrigger,{asChild:!0,onClick:()=>E(o??(0,c.buildEnergostatEmbedPath)(f,window.location.pathname)),children:(0,t.jsxs)("button",{type:"button",className:l.ENERGOSTAT_TOOLBAR_LINK_CLASS,children:["Vložit ",m.toLowerCase()]})}),(0,t.jsxs)(i.DialogContent,{className:"sm:max-w-2xl",children:[(0,t.jsxs)(i.DialogHeader,{children:[(0,t.jsxs)(i.DialogTitle,{children:["Vložit ",m.toLowerCase()]}),(0,t.jsx)(i.DialogDescription,{children:"Tento kód stačí zkopírovat a vložit v administraci do článku"})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(u.Textarea,{id:"EmbedTextarea",value:'<p data-energostat="__src__">__type__ z <a href="https://oenergetice.cz__src__">Energostatu: __src__</a></p>'.replace(/__src__/g,h).replace("__type__",m),className:"grid w-full flex-1 gap-2 rounded border p-4"}),(0,t.jsxs)(n.Button,{onClick:()=>{let e;(e=document.getElementById("EmbedTextarea"))&&(e.select(),e.setSelectionRange(0,99999),document.execCommand("copy")),p({title:"Kód zkopírován",description:"Zkopírovaný kód vložte do HTML kódu článku (do HTML kódu přepnete kliknutím na tlačítko 'HTML' v pravém horním rohu editoru textu příspěvku)",duration:5e3})},type:"submit",variant:"dark",size:"sm",className:"px-3",children:[(0,t.jsx)("span",{className:"sr-only",children:"Copy"}),(0,t.jsx)(s,{className:"h-4 w-4"})]})]}),(0,t.jsx)(i.DialogFooter,{className:"sm:justify-start",children:(0,t.jsx)(a.DialogClose,{asChild:!0,children:(0,t.jsx)(n.Button,{type:"button",variant:"secondary",children:"Close"})})})]})]})})}],389964);var m=e.i(836679),f=e.i(801540),p=e.i(129254);let h=(0,o.default)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var E=e.i(812823);let T=m.Root,N=m.Trigger;m.Group,m.Portal,m.Sub,m.RadioGroup,r.forwardRef((e,r)=>{let{className:n,inset:a,children:i,...o}=e;return(0,t.jsxs)(m.SubTrigger,{ref:r,className:(0,E.cn)("focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",a&&"pl-8",n),...o,children:[i,(0,t.jsx)(p.ChevronRight,{className:"ml-auto h-4 w-4"})]})}).displayName=m.SubTrigger.displayName,r.forwardRef((e,r)=>{let{className:n,...a}=e;return(0,t.jsx)(m.SubContent,{ref:r,className:(0,E.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-32 overflow-hidden rounded-md border p-1 shadow-lg",n),...a}
1)}).displayName=m.SubContent.displayName;let _=r.forwardRef((e,r)=>{let{className:n,sideOffset:a=4,...i}=e;return(0,t.jsx)(m.Portal,{children:(0,t.jsx)(m.Content,{ref:r,sideOffset:a,className:(0,E.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-32 overflow-hidden rounded-md border p-1 shadow-md",n),...i})})});_.displayName=m.Content.displayName;let v=r.forwardRef((e,r)=>{let{className:n,inset:a,...i}=e;return(0,t.jsx)(m.Item,{ref:r,className:(0,E.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden transition-colors select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",a&&"pl-8",n),...i})});v.displayName=m.Item.displayName,r.forwardRef((e,r)=>{let{className:n,children:a,checked:i,...o}=e;return(0,t.jsxs)(m.CheckboxItem,{ref:r,className:(0,E.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden transition-colors select-none data-disabled:pointer-events-none data-disabled:opacity-50",n),checked:i,...o,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(m.ItemIndicator,{children:(0,t.jsx)(f.Check,{className:"h-4 w-4"})})}),a]})}).displayName=m.CheckboxItem.displayName,r.forwardRef((e,r)=>{let{className:n,children:a,...i}=e;return(0,t.jsxs)(m.RadioItem,{ref:r,className:(0,E.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden transition-colors select-none data-disabled:pointer-events-none data-disabled:opacity-50",n),...i,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(m.ItemIndicator,{children:(0,t.jsx)(h,{className:"h-2 w-2 fill-current"})})}),a]})}).displayName=m.RadioItem.displayName;let A=r.forwardRef((e,r)=>{let{className:n,inset:a,...i}=e;return(0,t.jsx)(m.Label,{ref:r,className:(0,E.cn)("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",n),...i})});A.displayName=m.Label.displayName;let S=r.forwardRef((e,r)=>{let{className:n,...a}=e;return(0,t.jsx)(m.Separator,{ref:r,className:(0,E.cn)("bg-muted -mx-1 my-1 h-px",n),...a})});S.displayName=m.Separator.displayName;var x=e.i(770026),R=e.i(819065),g=e.i(968684);e.s(["default",0,function(e){let{downloadCSV:r,downloadXLS:n,lang:a="cs"}=e;return(0,t.jsxs)(T,{onOpenChange:e=>e&&(0,x.sendGoogleAnalyticsEvent)({category:R.GTAG.ENERGOSTAT.CATEGORY,action:R.GTAG.ENERGOSTAT.ACTIONS.CLICK_DOWNLOAD_MENU,label:"subscriber"}),children:[(0,t.jsx)(N,{asChild:!0,children:(0,t.jsx)("button",{type:"button",className:l.ENERGOSTAT_TOOLBAR_LINK_CLASS,children:(0,g.t)("energostat.ui.download_data",a)})}),(0,t.jsxs)(_,{className:"w-56",children:[(0,t.jsx)(A,{children:(0,g.t)("energostat.ui.data_format",a)}),(0,t.jsx)(S,{}),(0,t.jsx)(v,{onClick:n,className:"cursor-pointer",children:".XLS"}),(0,t.jsx)(v,{onClick:r,className:"cursor-pointer",children:".CSV"})]})]})}],818013)},507391,245399,e=>{"use strict";let t="markets",r="general",n="energostat-export-chart";e.s(["ENERGOSTAT_EXPORT_CHART",0,n,"MONITORING_SIGNUP_GENERAL",0,r,"MONITORING_SIGNUP_MARKETS",0,t],507391);var a=e.i(577528);function i(e){let{children:t}=e;return(0,a.jsx)("p",{className:"mb-2 text-slate-600 last-of-type:mb-6",children:t})}function o(e){let{children:t}=e;return(0,a.jsx)("div",{className:"mb-3 text-lg font-semibold transition sm:text-xl",children:t})}var s=e.i(508800);let l=function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o,{children:"Potřebujete být v obraze?"}),(0,a.jsxs)(i,{children:["Tento přehled komoditních trhů (a mnoho dalších informací) Vám budeme posílat přímo do e-mailu ",(0,a.jsx)("strong",{children:"každý pracovní den v 8:00"}),"."]}),(0,a.jsxs)(i,{children:["Obsah přehledu si navíc můžete přizpůsobit podle sebe - celkem nabízíme"," ",(0,a.jsx)("strong",{children:"33 různých kontraktů"}),"."]}),(0,a.jsxs)(i,{children:["Vytvořte si zkušební verzi účtu ",(0,a.jsx)("strong",{children:"zdarma"}),"."]}),(0,a.jsx)(s.default,{type:`modal-${t}`,buttonText:"Vyzkoušet zdarma na 14 dní",inputClassname:"min-w-[240px] sm:min-w-[300px] flex-1 text-black",wrapperClassname:"flex flex-col sm:flex-row w-full gap-2"})]})},c=function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o,{children:"Potřebujete být v obraze?"}),(0,a.jsxs)(i,{children:["Budeme vám posílat pravidelně čerstvé zprávy z energetiky, přehled cen z komoditních trhů a mnoho dalších informací přímo do e-mailu - ",(0,a.jsx)("strong",{children:"každý pracovní den v 8:00"}),"."]}),(0,a.jsx)(i,{children:"Monitoring si můžete sami nastavit - nabízíme celkem 15 kategorií zpravodajství, ve dvou jazycích a 33 velkoobchodních komoditních produktů."}),(0,a.jsxs)(i,{children:["Vytvořte si zkušební verzi účtu ",(0,a.jsx)("strong",{children:"zdarma"}),"."]}),(0,a.jsx)(s.default,{type:`modal-${r}`})]})};var u=e.i(682043),d=e.i(426198),m=e.i(229665);let f=function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o,{children:"Potřebujete energetická data?"}),(0,a.jsxs)(i,{children:["Export dat je přístupný pouze odběratelům"," ",(0,a.jsx)(u.default,{className:"text-primary hover:text-primary-hover font-semibold underline",href:"/monitoring-oenergetice",children:"Monitoringu oEnergetice.cz"}),"."]}),(0,a.jsx)(i,{children:"Pokud ještě nemáte předplatné, můžete si jej jednoduše zakoupit kliknutím na tlačítko níže."}),(0,a.jsxs)(i,{children:["Přístup můžete získat již za ",d.PRICE_PRODUCTS[d.PRODUCT.MONITORING][d.PROGRAM.YEARLY]," Kč vč. DPH/měsíc. Pokud již účet máte, přihlaste se k němu"," ",(0,a.jsx)(u.default,{className:"text-primary hover:text-primary-hover font-semibold underline",href:"/login",children:"zde"}),"."]}),(0,a.jsx)(u.default,{href:`/prihlasit-monitoring?program=${d.PROGRAM.YEARLY}&product=${d.PRODUCT.MONITORING}`,children:(0,a.jsx)(m.Button,{"data-test":"MarketOverviewSubscriptionModal-submit",type:"submit",className:"w-full",children:"Získat přístup k datům"})})]})};var p=e.i(798782),h=e.i(848927);let E=(0,p.default)(()=>e.A(623665),{loadableGenerated:{modules:[558716]}});e.s(["default",0,function(e){let{type:r}=e;return(0,a.jsx)(h.DialogContent,{className:"p-0 sm:max-w-2xl",children:(0,a.jsxs)("div",{className:"block sm:flex",children:[(0,a.jsx)("div",{className:"mx-auto block items-center bg-slate-100 p-4 sm:mx-0 sm:flex sm:w-1/2 sm:items-stretch",children:(0,a.jsx)(E,{className:"mx-auto h-full w-32 justify-center sm:mx-0 sm:w-64"})}),(0,a.jsx)("div",{className:"px-6 py-4",children:(e=>{switch(e){case t:return(0,a.jsx)(l,{});case n:return(0,a.jsx)(f,{});default:return(0,a.jsx)(c,{})}})(r)})]})})}],245399)},676196,e=>{"use strict";var t=e.i(577528),r=e.i(507391),n=e.i(770026),a=e.i(819065),i=e.i(848927),o=e.i(245399),s=e.i(26097),l=e.i(968684);e.s(["default",0,function(e){let{lang:c="cs"}=e;return(0,t.jsxs)(i.Dialog,{children:[(0,t.jsx)(i.DialogTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",className:s.ENERGOSTAT_TOOLBAR_LINK_CLASS,onClick:()=>{(0,n.sendGoogleAnalyticsEvent)({category:a.GTAG.ENERGOSTAT.CATEGORY,action:a.GTAG.ENERGOSTAT.ACTIONS.CLICK_DOWNLOAD_MENU,label:"non-subscriber"})},children:(0,l.t)("energostat.ui.download_data",c)})}),(0,t.jsx)(o.default,{type:r.ENERGOSTAT_EXPORT_CHART})]})}])},515359,(e,t,r)=>{var n=e.r(519497).GenIcon;t.exports.FaInfoCircle=function(e){return n({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"}}]})(e)}},98785,225542,e=>{"use strict";var t=e.i(195857),r=e.i(975384),n=e.i(69297),a=e.i(477658),i=e.i(325679),o=e.i(770026),s=e.i(819065),l=e.i(54217),c=e.i(100585),u=e.i(31486);let d=(e,r)=>{(0,o.sendGoogleAnalyticsEvent)({category:s.GTAG.ENERGOSTAT.CATEGORY,action:s.GTAG.ENERGOSTAT.ACTIONS.EXPORT_DATA,label:e}),(0,l.default)({category:s.GTAG.ENERGOSTAT.CATEGORY,action:e,label:`${s.GTAG.ENERGOSTAT.ACTIONS.EXPORT_DATA}_${(0,t.default)().format("YYYY-MM-DD")}_${r}`})};e.s(["getEnergostatDataURL",0,e=>{let t=(e=>{let{country:t,dataSet:r,from:o,to:s,quarterhourly:l}=e,u={country:r===i.DAY_PRICES?t:i.MARKET_DATA_OPTIONS_DETAILS[t]?.country,commodity:i.MARKET_DATA_OPTIONS_DETAILS[t]?.commodity,contract:i.MARKET_DATA_OPTIONS_DETAILS[t]?.contract,from:o,to:s};switch(r){case i.GENERATION_ONLINE:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_GENERATION_ONLINE,{country:t,from:o,to:s,quarterhourly:l});case i.GENERATION_SHARE:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_GENERATION_SHARE,{country:t,from:o,to:s});case i.GENERATION_SHARES_DAILY:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_GENERATION_SHARES_DAILY,{country:t,from:o,to:s});case i.GENERATION_TOTAL:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_GENERATION_TOTAL,{country:t,from:o,to:s});case i.GENERATION_UNITS_YEARLY:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_GENERATION_UNITS_YEARLY,{country:t,from:o,to:s});case i.CONSUMPTION_MONTHLY:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_CONSUMPTION_MONTHLY,{country:t,from:o,to:s});case i.GENERATION_MONTHLY:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_GENERATION_MONTHLY,{country:t,from:o,to:s});case c.SPOT_PRICES_MONTHLY_WEIGHTED_AVERAGE_PRICE:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_SPOT_PRICES_MONTHLY_WEIGHTED_AVERAGE_PRICE,{country:t,from:o,to:s});case c.SPOT_PRICE_SPREAD_MONTHLY:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_SPOT_PRICE_SPREAD_MONTHLY,{country:t,from:o,to:s});case i.GENERATION_TYPES_CUMULATIVE_SOLAR:case i.GENERATION_TYPES_CUMULATIVE_WIND_ONSHORE:case i.GENERATION_TYPES_CUMULATIVE_WIND_OFFSHORE:case i.GENERATION_TYPES_CUMULATIVE_NUCLEAR:case i.GENERATION_TYPES_CUMULATIVE_BIOMASS:case i.GENERATION_TYPES_CUMULATIVE_HYDRO:case i.GENERATION_TYPES_CUMULATIVE_LIGNITE:case i.GENERATION_TYPES_CUMULATIVE_HARD_COAL:case i.GENERATION_TYPES_CUMULATIVE_GAS:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_GENERATION_TYPES_CUMULATIVE,{source:r.replace("generation-types-cumulative-",""),country:t,from:o,to:s});case i.BALANCE_MONTHLY:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_BALANCE_MONTHLY,{country:t,from:o,to:s});case i.CUMULATIVE_BALANCE:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_CUMULATIVE_BALANCE,{country:t,from:o,to:s});case i.BALANCE_YEARLY:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_BALANCE_YEARLY,{country:t,from:o,to:s});case c.NEGATIVE_PRICE_YEARLY_OCCURRENCE:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_NEGATIVE_PRICE_YEARLY,{country:t,from:o,to:s});case c.NEGATIVE_PRICE_DAY_HOUR_OCCURRENCE:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_NEGATIVE_PRICE_HOURLY,{country:t,from:o,to:s});case i.GENERATION_UNITS_CUMULATIVE:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_GENERATION_UNITS_CUMULATIVE,{country:t,from:o,to:s});case i.GENERATION_UNITS_ADDITIONS:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_GENERATION_UNITS_ADDITIONS,{source:t,from:o,to:s});case c.CUMULATIVE_RENEWABLE_GENERATION:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_CUMULATIVE_RENEWABLE_GENERATION,{country:t,from:o,to:s});case c.SPOT_PRICE_REVENUE:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_SPOT_PRICE_REVENUE,{country:t,from:o,to:s});case c.DAILY_RENEWABLE_GENERATION:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_DAILY_RENEWABLE_GENERATION,{country:t,from:o,to:s});case i.DAY_PRICES:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.COMMODITY_SPOT,u,{quarterhourly:l});case i.LOAD:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_LOAD,{country:t,from:o,to:s,quarterhourly:l});case i.GAS_STORAGE:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_GAS_STORAGE_COMPARE,{country:t,from:o,to:s});case i.LNG_IMPORT:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_LNG_SENDOUT_VOLUME,{country:t,from:o,to:s});case i.POWER_CZ:case i.GAS_CZ:case i.POWER_DE:case i.GAS_OTHER:case i.OIL:case i.EUA:case i.COAL:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.COMMODITY_FUTURES,u);case c.CAPTURE_PRICE_SOLAR:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_CAPTURE_PRICE_SOLAR,{country:t,from:o,to:s});case c.CAPTURE_PRICE_WIND:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_CAPTURE_PRICE_WIND,{country:t,from:o,to:s});case c.CAPTURE_PRICE_PERCENTAGE_SOLAR:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_CAPTURE_PRICE_PERCENTAGE_SOLAR,{country:t,from:o,to:s});case c.DUCK_CURVE:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_DUCK_CURVE,{country:t,from:o,to:s});case c.DUCK_CURVE_APRIL_JUNE:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_DUCK_CURVE_APRIL_JUNE,{country:t,from:o,to:s});case c.CAPTURE_PRICE_PERCENTAGE_WIND:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_CAPTURE_PRICE_PERCENTAGE_WIND,{country:t,from:o,to:s});default:return(0,n.assembleApiUrl)(a.API_ENDPOINTS.ENERGOSTAT_GENERATION_ONLINE,{country:t,from:o,to:s})}})(e);return"en"!==e.lang?t:`${t}${t.includes("?")?"&":"?"}lang=en`},"maybeRemoveExportingFunctionality",0,function(e,t,n){return t?.activeSubscriptions?.some(u.isMonitoringProduct)?(0,r.default)("exporting.buttons.contextButton.menuItems",["viewFullscreen","printChart","separator",{text:"Download PNG",onclick(){d(t.email,"PNG"),this.exportChart({type:"image/png"})}},{text:"Download JPEG",onclick(){d(t.email,"JPEG"),this.exportChart({type:"image/jpeg"})}},{text:"Download PDF",onclick(){d(t.email,"PDF"),this.exportChart({type:"application/pdf"})}}
1,{text:"Download SVG",onclick(){d(t.email,"SVG"),this.exportChart({type:"image/svg+xml"})}},"separator",{text:"Download CSV",onclick(){d(t.email,"CSV"),this.downloadCSV()}},{text:"Download XLS",onclick(){d(t.email,"XLS"),this.downloadXLS()}},"viewData"])(e):(0,r.default)("exporting.buttons.contextButton.onclick",n)(e)},"trackExportOfChartData",0,d],98785);var m=e.i(577528),f=e.i(515359),p=e.i(968684),h=e.i(401688);e.s(["default",0,function(e){let{title:t,from:r,to:n,lang:a="cs"}=e;return(0,m.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs text-slate-600",children:[(0,m.jsx)(f.FaInfoCircle,{size:12,className:"text-primary shrink-0 opacity-70"}),(0,m.jsx)("span",{className:"text-slate-700",children:t}),(0,m.jsx)(p.default,{tKey:"energostat.alerts.date_range_adjusted",lang:a,vars:{from:(0,h.formatDate)(r,a),to:(0,h.formatDate)(n,a)}})]})}],225542)},649383,e=>{"use strict";var t=e.i(577528);e.i(184614);var r=e.i(796214),n=e.i(31486),a=e.i(403944),i=e.i(389964),o=e.i(818013),s=e.i(676196),l=e.i(770026),c=e.i(819065),u=e.i(661241),d=e.i(26097),m=e.i(968684);let f=function(e){let{menu:r,dataSet:n,country:a,from:i,to:o,lang:s="cs"}=e,{toast:f}=(0,u.useToast)();return(0,t.jsx)("button",{type:"button",className:d.ENERGOSTAT_TOOLBAR_LINK_CLASS,onClick:function(){let e=`${window.location.origin}${window.location.pathname}`;navigator.clipboard.writeText(e),f({title:(0,m.t)("energostat.ui.link_copied",s),description:(0,t.jsxs)(t.Fragment,{children:[(0,m.t)("energostat.ui.link_label",s)," ",(0,t.jsx)("a",{target:"_blank",className:"underline",href:e,rel:"noreferrer",children:(0,m.t)("energostat.ui.link_here",s)})]})}),(0,l.sendGoogleAnalyticsEvent)({category:c.GTAG.ENERGOSTAT.CATEGORY,action:"share-link",label:e})},children:(0,m.t)("energostat.ui.copy_link",s)})},p=(0,r.connect)(e=>({isLoggedWpUser:(0,a.isLoggedWpUserSelector)(e),authenticatedUser:(0,a.authenticatedUserSelector)(e)}))(function(e){let{allowDownloadData:r=!1,allowCopyLink:a,downloadCSV:l,downloadXLS:c,isLoggedWpUser:u,menu:d,dataSet:m,country:p,from:h,to:E,quarterhourly:T,series:N,authenticatedUser:_,lang:v="cs"}=e;if(!r&&!a)return null;let A=_?.activeSubscriptions?.some(n.isMonitoringProduct)||u?(0,t.jsx)(o.default,{downloadCSV:l,downloadXLS:c,lang:v}):(0,t.jsx)(s.default,{lang:v});return(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-end gap-x-4 gap-y-1",children:[u&&(0,t.jsx)(i.default,{params:{menu:d,dataSet:m,country:p,from:h,to:E,quarterhourly:T,series:N,lang:v}}),r&&A,a&&(0,t.jsx)(f,{menu:d,dataSet:m,country:p,from:h,to:E,lang:v})]})});e.s(["default",0,p],649383)},127194,e=>{"use strict";var t=e.i(577528),r=e.i(507744),n=e.i(937370),a=Object.defineProperty,i=r.forwardRef(a(function(e,r){return(0,t.jsx)(n.Primitive.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},"name",{value:"Label",configurable:!0})),o=e.i(542804),s=e.i(812823);let l=(0,o.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=r.forwardRef((e,r)=>{let{className:n,...a}=e;return(0,t.jsx)(i,{ref:r,className:(0,s.cn)(l(),n),...a})});c.displayName=i.displayName,e.s(["Label",0,c],127194)},619401,(e,t,r)=>{var n=e.r(41614)("sortBy",e.r(386568));n.placeholder=e.r(431877),t.exports=n},830834,e=>{"use strict";let t=(0,e.i(692063).default)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);e.s(["default",0,t])},21713,e=>{"use strict";var t=e.i(577528),r=e.i(682043),n=e.i(770026),a=e.i(819065);e.s(["default",0,function(e){let{href:i,gaLabel:o,children:s}=e;return(0,t.jsx)(r.default,{href:i,onClick:()=>{(0,n.sendGoogleAnalyticsEvent)({category:a.GTAG.ENERGOSTAT.CATEGORY,action:a.GTAG.ENERGOSTAT.ACTIONS.CLICK_SIDEBAR_ITEM,label:o})},children:s})}])},158534,e=>{"use strict";var t=e.i(577528),r=e.i(507744),n=e.i(507357),a=e.i(719626),i=e.i(229665),o=e.i(937370),s=e.i(704198),l=e.i(549024),c=e.i(919975),u=e.i(985352),d=e.i(8389),m=e.i(27942),f=e.i(201661),p=e.i(622055),h=Object.defineProperty,E=(e,t)=>h(e,"name",{value:t,configurable:!0});function T(e,t){return r.useReducer((e,r)=>t[e][r]??e,e)}E(T,"useStateMachine");var N="ScrollArea",[_,v]=(0,l.createContextScope)(N),[A,S]=_(N),x=r.forwardRef(E(function(e,n){let{__scopeScrollArea:a,type:i="hover",dir:s,scrollHideDelay:l=600,...u}=e,[m,f]=r.useState(null),[p,h]=r.useState(null),[E,T]=r.useState(null),[N,_]=r.useState(null),[v,S]=r.useState(null),[x,R]=r.useState(0),[g,O]=r.useState(0),[b,I]=r.useState(!1),[P,C]=r.useState(!1),y=(0,c.useComposedRefs)(n,f),w=(0,d.useDirection)(s);return(0,t.jsx)(A,{scope:a,type:i,dir:w,scrollHideDelay:l,scrollArea:m,viewport:p,onViewportChange:h,content:E,onContentChange:T,scrollbarX:N,onScrollbarXChange:_,scrollbarXEnabled:b,onScrollbarXEnabledChange:I,scrollbarY:v,onScrollbarYChange:S,scrollbarYEnabled:P,onScrollbarYEnabledChange:C,onCornerWidthChange:R,onCornerHeight
1Change:O,children:(0,t.jsx)(o.Primitive.div,{dir:w,...u,ref:y,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":g+"px",...e.style}})})},"ScrollArea")),R=r.forwardRef(E(function(e,n){let{__scopeScrollArea:a,children:i,nonce:s,...l}=e,u=S("ScrollAreaViewport",a),d=r.useRef(null),m=(0,c.useComposedRefs)(n,d,u.onViewportChange);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g,{nonce:s}),(0,t.jsx)(o.Primitive.div,{"data-radix-scroll-area-viewport":"",...l,ref:m,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,t.jsx)("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})},"ScrollAreaViewport")),g=r.memo(E(function(e){let{nonce:r}=e;return(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:r})},"ScrollAreaViewportStyle"),(e,t)=>e.nonce===t.nonce),O="ScrollAreaScrollbar",b=r.forwardRef(E(function(e,n){let{forceMount:a,...i}=e,o=S(O,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:l}=o,c="horizontal"===e.orientation;return r.useEffect(()=>(c?s(!0):l(!0),()=>{c?s(!1):l(!1)}),[c,s,l]),"hover"===o.type?(0,t.jsx)(I,{...i,ref:n,forceMount:a}):"scroll"===o.type?(0,t.jsx)(P,{...i,ref:n,forceMount:a}):"auto"===o.type?(0,t.jsx)(C,{...i,ref:n,forceMount:a}):"always"===o.type?(0,t.jsx)(y,{...i,ref:n,"data-state":"visible"}):null},"ScrollAreaScrollbar")),I=r.forwardRef(E(function(e,n){let{forceMount:a,...i}=e,o=S(O,e.__scopeScrollArea),[l,c]=r.useState(!1);return r.useEffect(()=>{let e=o.scrollArea,t=0;if(e){let r=E(()=>{window.clearTimeout(t),c(!0)},"handlePointerEnter"),n=E(()=>{t=window.setTimeout(()=>c(!1),o.scrollHideDelay)},"handlePointerLeave");return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",n)}}},[o.scrollArea,o.scrollHideDelay]),(0,t.jsx)(s.Presence,{present:a||l,children:(0,t.jsx)(C,{"data-state":l?"visible":"hidden",...i,ref:n})})},"ScrollAreaScrollbarHover")),P=r.forwardRef(E(function(e,n){let{forceMount:a,...i}=e,o=S(O,e.__scopeScrollArea),l="horizontal"===e.orientation,c=J(()=>d("SCROLL_END"),100),[u,d]=T("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return r.useEffect(()=>{if("idle"===u){let e=window.setTimeout(()=>d("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[u,o.scrollHideDelay,d]),r.useEffect(()=>{let e=o.viewport,t=l?"scrollLeft":"scrollTop";if(e){let r=e[t],n=E(()=>{let n=e[t];r!==n&&(d("SCROLL"),c()),r=n},"handleScroll");return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[o.viewport,l,d,c]),(0,t.jsx)(s.Presence,{present:a||"hidden"!==u,children:(0,t.jsx)(y,{"data-state":"hidden"===u?"hidden":"visible",...i,ref:n,onPointerEnter:(0,p.composeEventHandlers)(e.onPointerEnter,()=>d("POINTER_ENTER")),onPointerLeave:(0,p.composeEventHandlers)(e.onPointerLeave,()=>d("POINTER_LEAVE"))})})},"ScrollAreaScrollbarScroll")),C=r.forwardRef(E(function(e,n){let a=S(O,e.__scopeScrollArea),{forceMount:i,...o}=e,[l,c]=r.useState(!1),u="horizontal"===e.orientation,d=J(()=>{if(a.viewport){let e=a.viewport.offsetWidth<a.viewport.scrollWidth,t=a.viewport.offsetHeight<a.viewport.scrollHeight;c(u?e:t)}},10);return q(a.viewport,d),q(a.content,d),(0,t.jsx)(s.Presence,{present:i||l,children:(0,t.jsx)(y,{"data-state":l?"visible":"hidden",...o,ref:n})})},"ScrollAreaScrollbarAuto")),y=r.forwardRef(E(function(e,n){let{orientation:a="vertical",...i}=e,o=S(O,e.__scopeScrollArea),s=r.useRef(null),l=r.useRef(0),[c,u]=r.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=$(c.viewport,c.content),m={...i,sizes:c,onSizesChange:u,hasThumb:!!(d>0&&d<1),onThumbChange:E(e=>s.current=e,"onThumbChange"),onThumbPointerUp:E(()=>l.current=0,"onThumbPointerUp"),onThumbPointerDown:E(e=>l.current=e,"onThumbPointerDown")};function f(e,t){return F(e,l.current,c,t)}return(E(f,"getScrollPosition"),"horizontal"===a)?(0,t.jsx)(w,{...m,ref:n,onThumbPositionChange:()=>{if(o.viewport&&s.current){let e=W(o.viewport.scrollLeft,c,o.dir);s.current.style.transform=`translate3d(${e}px, 0, 0)`}}
1,onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=f(e,o.dir))}}):"vertical"===a?(0,t.jsx)(D,{...m,ref:n,onThumbPositionChange:()=>{if(o.viewport&&s.current){let e=W(o.viewport.scrollTop,c);s.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=f(e))}}):null},"ScrollAreaScrollbarVisible")),w=r.forwardRef(E(function(e,n){let{sizes:a,onSizesChange:i,...o}=e,s=S(O,e.__scopeScrollArea),[l,u]=r.useState(),d=r.useRef(null),m=(0,c.useComposedRefs)(n,d,s.onScrollbarXChange);return r.useEffect(()=>{d.current&&u(getComputedStyle(d.current))},[d]),(0,t.jsx)(L,{"data-orientation":"horizontal",...o,ref:m,sizes:a,style:{bottom:0,left:"rtl"===s.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===s.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":B(a)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(s.viewport){let n=s.viewport.scrollLeft+t.deltaX;e.onWheelScroll(n),X(n,r)&&t.preventDefault()}},onResize:()=>{d.current&&s.viewport&&l&&i({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:H(l.paddingLeft),paddingEnd:H(l.paddingRight)}})}})},"ScrollAreaScrollbarX")),D=r.forwardRef(E(function(e,n){let{sizes:a,onSizesChange:i,...o}=e,s=S(O,e.__scopeScrollArea),[l,u]=r.useState(),d=r.useRef(null),m=(0,c.useComposedRefs)(n,d,s.onScrollbarYChange);return r.useEffect(()=>{d.current&&u(getComputedStyle(d.current))},[d]),(0,t.jsx)(L,{"data-orientation":"vertical",...o,ref:m,sizes:a,style:{top:0,right:"ltr"===s.dir?0:void 0,left:"rtl"===s.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":B(a)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(s.viewport){let n=s.viewport.scrollTop+t.deltaY;e.onWheelScroll(n),X(n,r)&&t.preventDefault()}},onResize:()=>{d.current&&s.viewport&&l&&i({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:H(l.paddingTop),paddingEnd:H(l.paddingBottom)}})}})},"ScrollAreaScrollbarY")),[j,G]=_(O),L=r.forwardRef(E(function(e,n){let{__scopeScrollArea:a,sizes:i,hasThumb:s,onThumbChange:l,onThumbPointerUp:d,onThumbPointerDown:m,onThumbPositionChange:f,onDragScroll:h,onWheelScroll:T,onResize:N,..._}=e,v=S(O,a),[A,x]=r.useState(null),R=(0,c.useComposedRefs)(n,x),g=r.useRef(null),b=r.useRef(""),I=v.viewport,P=i.content-i.viewport,C=(0,u.useCallbackRef)(T),y=(0,u.useCallbackRef)(f),w=J(N,10);function D(e){g.current&&h({x:e.clientX-g.current.left,y:e.clientY-g.current.top})}return E(D,"handleDragScroll"),r.useEffect(()=>{let e=E(e=>{let t=e.target;A?.contains(t)&&C(e,P)},"handleWheel");return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[I,A,P,C]),r.useEffect(y,[i,y]),q(A,w),q(v.content,w),(0,t.jsx)(j,{scope:a,scrollbar:A,hasThumb:s,onThumbChange:(0,u.useCallbackRef)(l),onThumbPointerUp:(0,u.useCallbackRef)(d),onThumbPositionChange:y,onThumbPointerDown:(0,u.useCallbackRef)(m),children:(0,t.jsx)(o.Primitive.div,{..._,ref:R,style:{position:"absolute",..._.style},onPointerDown:(0,p.composeEventHandlers)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),g.current=A.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",v.viewport&&(v.viewport.style.scrollBehavior="auto"),D(e))}),onPointerMove:(0,p.composeEventHandlers)(e.onPointerMove,D),onPointerUp:(0,p.composeEventHandlers)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=b.current,v.viewport&&(v.viewport.style.scrollBehavior=""),g.current=null})})})},"ScrollAreaScrollbarImpl")),M="ScrollAreaThumb",U=r.forwardRef(E(function(e,r){let{forceMount:n,...a}=e,i=G(M,e.__scopeScrollArea);return(0,t.jsx)(s.Presence,{present:n||i.hasThumb,children:(0,t.jsx)(k,{ref:r,...a})})},"ScrollAreaThumb")),k=r.forwardRef(E(function(e,n){let{__scopeScrollArea:a,style:i,...s}=e,l=S(M,a),u=G(M,a),{onThumbPositionChange:d}=u,m=(0,c.useComposedRefs)(n,u.onThumbChange),f=r.useRef(void 0),h=J(()=>{f.current&&(f.current(),f.current=void 0)},100);return r.useEffect(()=>{let e=l.viewport;if(e){let t=E(()=>{h(),f.current||(f.current=Z(e,d),d())},"handleScroll");return d(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[l.viewport,h,d]),(0,t.jsx)(o.Primitive.div,{"data-state":u.hasThumb?"visible":"hidden",...s,ref:m,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:(0,p.composeEventHandlers)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),r=e.clientX-t.left,n=e.clientY-t.top;u.onThumbPointerDown({x:r,y:n})}),onPointerUp:(0,p.composeEventHandlers)(e.onPointerUp,u.onThumbPointerUp)})},"ScrollAreaThumbImpl")),Y="ScrollAreaCorner",z=r.forwardRef(E(function(e,r){let n=S(Y,e.__scopeScrollArea),a=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&a?(0,t.jsx)(V,{...e,ref:r}):null},"ScrollAreaCorner")),V=r.forwardRef(E(function(e,n){let{__scopeScrollArea:a,...i}=e,s=S(Y,a),[l,c]=r.useState(0),[u,d]=r.useState(0),m=!!(l&&u),{onCornerWidthChange:f,onCornerHeight
1Change:p}=s;return q(s.scrollbarX,()=>{let e=s.scrollbarX?.offsetHeight||0;s.onCornerHeightChange(e),d(e)}),q(s.scrollbarY,()=>{let e=s.scrollbarY?.offsetWidth||0;s.onCornerWidthChange(e),c(e)}),r.useEffect(()=>()=>{f(0),p(0)},[f,p]),m?(0,t.jsx)(o.Primitive.div,{...i,ref:n,style:{width:l,height:u,position:"absolute",right:"ltr"===s.dir?0:void 0,left:"rtl"===s.dir?0:void 0,bottom:0,...e.style}}):null},"ScrollAreaCornerImpl"));function H(e){return e?parseInt(e,10):0}function $(e,t){let r=e/t;return isNaN(r)?0:r}function B(e){let t=$(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-r)*t,18)}function F(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",a=B(r),i=t||a/2,o=r.scrollbar.paddingStart+i,s=r.scrollbar.size-r.scrollbar.paddingEnd-(a-i),l=r.content-r.viewport;return K([o,s],"ltr"===n?[0,l]:[-1*l,0])(e)}function W(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",n=B(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-a,o=t.content-t.viewport,s=(0,f.clamp)(e,"ltr"===r?[0,o]:[-1*o,0]);return K([0,o],[0,i-n])(s)}function K(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function X(e,t){return e>0&&e<t}E(H,"toInt"),E($,"getThumbRatio"),E(B,"getThumbSize"),E(F,"getScrollPositionFromPointer"),E(W,"getThumbOffsetFromScroll"),E(K,"linearScale"),E(X,"isScrollingWithinScrollbarBounds");var Z=E(function(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1],e.scrollLeft,e.scrollTop,()=>window.cancelAnimationFrame(0)},"addUnlinkedScrollListener");function J(e,t){let n=(0,u.useCallbackRef)(e),a=r.useRef(0);return r.useEffect(()=>()=>window.clearTimeout(a.current),[]),r.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(n,t)},[n,t])}function q(e,t){let r=(0,u.useCallbackRef)(t);(0,m.useLayoutEffect)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}E(J,"useDebounceCallback"),E(q,"useResizeObserver");var Q=e.i(812823);let ee=r.forwardRef((e,r)=>{let{className:n,orientation:a="vertical",...i}=e;return(0,t.jsx)(b,{ref:r,orientation:a,className:(0,Q.cn)("flex touch-none transition-colors select-none","vertical"===a&&"h-full w-2.5 border-l border-l-transparent p-px","horizontal"===a&&"h-2.5 flex-col border-t border-t-transparent p-px",n),...i,children:(0,t.jsx)(U,{className:"bg-border relative flex-1 rounded-full"})})});ee.displayName=b.displayName;let et=r.forwardRef((e,r)=>{let{className:n,children:a,...i}=e;return(0,t.jsxs)(x,{ref:r,className:(0,Q.cn)("relative overflow-hidden",n),...i,children:[(0,t.jsx)(R,{className:"h-full w-full rounded-[inherit]",children:a}),(0,t.jsx)(ee,{}),(0,t.jsx)(z,{})]})});et.displayName=x.displayName;var er=e.i(968684);e.s(["default",0,function(e){let{lang:o="cs",children:s}=e,[l,c]=r.default.useState(!1),u=(0,n.usePathname)();return r.default.useEffect(()=>{c(!1)},[u]),(0,t.jsxs)(a.Sheet,{open:l,onOpenChange:c,children:[(0,t.jsx)(a.SheetTrigger,{className:"w-full",children:(0,t.jsx)("div",{className:(0,i.buttonVariants)({variant:"secondary",className:"w-full"}),children:(0,t.jsx)(er.default,{tKey:"energostat.ui.change_chart",lang:o})})}),(0,t.jsxs)(a.SheetContent,{className:"overflow-scroll",side:"left",children:[(0,t.jsx)(a.SheetTitle,{children:(0,t.jsx)(er.default,{tKey:"energostat.ui.select_chart",lang:o})}),(0,t.jsx)(et,{children:s})]})]})}],158534)},608883,(e,t,r)=>{var n=e.r(519497).GenIcon;t.exports.FaChevronDown=function(e){return n({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}}]})(e)}},623081,(e,t,r)=>{var n=e.r(519497).GenIcon;t.exports.FaChevronUp=function(e){return n({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"}}]})(e)}},662927,e=>{"use strict";var t=e.i(577528),r=e.i(542804),n=e.i(812823);let a=(0,r.cva)("inline-flex items-center border rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focu
1s:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"bg-primary hover:bg-primary/80 border-transparent text-primary-foreground",secondary:"bg-secondary hover:bg-secondary/80 border-transparent text-secondary-foreground",destructive:"bg-destructive hover:bg-destructive/80 border-transparent text-destructive-foreground",outline:"text-foreground"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function(e){let{className:r,variant:i,...o}=e;return(0,t.jsx)("div",{className:(0,n.cn)(a({variant:i}),r),...o})}])},638934,(e,t,r)=>{var n=e.r(519497).GenIcon;t.exports.FaBolt=function(e){return n({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"}}]})(e)}},937456,e=>{"use strict";var t=e.i(577528),r=e.i(998546),n=e.i(386648),a=e.i(195857),i=e.i(638934),o=e.i(229665),s=e.i(410207),l=e.i(426198),c=e.i(968684),u=e.i(401688);e.s(["default",0,function(e){let{title:d,lang:m="cs"}=e,f=e=>(0,c.t)(`energostat.limit.${e}`,m);return(0,t.jsx)("div",{className:"flex min-h-[320px] items-center justify-center rounded-xl p-6 sm:p-10","data-test":"EnergostatChartLimit",children:(0,t.jsxs)("div",{className:"mx-auto w-full max-w-2xl text-center",children:[(0,t.jsx)("div",{className:"bg-primary/10 mx-auto mb-5 flex h-14 w-14 items-center justify-center rounded-full",children:(0,t.jsx)(i.FaBolt,{className:"text-primary h-6 w-6"})}),(0,t.jsx)("h3",{className:"mb-2 text-xl font-bold text-slate-900 sm:text-2xl",children:d}),(0,t.jsx)("p",{className:"mb-6 text-sm text-slate-500 sm:text-base",children:f("description")}),(0,t.jsxs)("div",{className:"mb-6 inline-block text-left",children:[(0,t.jsx)(s.default,{className:"text-sm text-slate-500 sm:text-base",size:16,children:f("bullet_unlimited")}),(0,t.jsx)(s.default,{className:"text-sm text-slate-500 sm:text-base",size:16,children:f("bullet_datasets")}),(0,t.jsx)(s.default,{className:"text-sm text-slate-500 sm:text-base",size:16,children:f("bullet_devices")})]}),(0,t.jsxs)("div",{className:"mb-6 flex flex-wrap items-stretch justify-center gap-3",children:[(0,t.jsxs)("div",{className:"rounded-lg border border-slate-200 bg-white px-5 py-3 shadow-sm",children:[(0,t.jsx)("div",{className:"text-xs font-medium tracking-wide text-slate-400 uppercase",children:f("monthly_label")}),(0,t.jsxs)("div",{className:"mt-1 text-2xl font-bold text-slate-900",children:[l.PREMIUM_PRICE[l.PROGRAM.MONTHLY]," ",f("currency")]}),(0,t.jsx)("div",{className:"text-xs text-slate-400",children:f("per_month")})]}),(0,t.jsxs)("div",{className:"border-primary/30 relative rounded-lg border bg-white px-5 py-3 shadow-sm",children:[(0,t.jsx)("span",{className:"bg-primary absolute -top-2.5 left-1/2 -translate-x-1/2 rounded-full px-2 py-0.5 text-[10px] font-semibold whitespace-nowrap text-white",children:f("best_value")}),(0,t.jsx)("div",{className:"text-xs font-medium tracking-wide text-slate-400 uppercase",children:f("yearly_label")}),(0,t.jsxs)("div",{className:"text-primary mt-1 text-2xl font-bold",children:[l.PREMIUM_PRICE[l.PROGRAM.YEARLY]," ",f("currency")]}),(0,t.jsx)("div",{className:"text-xs text-slate-400",children:f("per_month")})]})]}),(0,t.jsx)("div",{children:(0,t.jsx)(r.default,{href:`${(0,n.localizeHref)("/prihlasit-premium",m)}?source=energostat-chart-limit`,children:(0,t.jsx)(o.Button,{size:"lg",className:"w-full sm:w-auto",children:f("cta_button")})})}),(0,t.jsxs)("p",{className:"mt-5 text-xs text-slate-400",children:[f("available_from")," ",(0,t.jsx)("span",{className:"font-medium text-slate-600",children:(0,u.formatDate)((0,a.default)().add(1,"month").startOf("month"),m)}),(0,t.jsx)("span",{className:"mx-2",children:"·"}),(0,t.jsx)(r.default,{href:(0,n.localizeHref)("/login",m),className:"text-primary underline underline-offset-2",children:f("login_link")})]})]})})}])},623665,e=>{e.v(t=>Promise.all(["static/chunks/2harfksn2l0z_.js"].map(t=>e.l(t))).then(()=>t(558716)))},820866,e=>{e.v(t=>Promise.all(["static/chunks/3mrf9jjm5jqsu.js"].map(t=>e.l(t))).then(()=>t(718544)))}]);

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.