PageSourceSearch

https://energieglueck.de/assets/Kontakt-5JAWt2U-.js

js energieglueck.de collected 2026-10-07 20:26:46 UTC 47,873 bytes, 47 lines download raw bytes

1import{c as pn,r as a,j as r,d as z,e as Ke,f as B,P as M,g as vn,h as gn,i as mt,k as xn,l as P,m as Z,n as ht,D as bn,o as Sn,p as Ze,q as wn,V as yn,s as Qe,R as Nn,t as Cn,v as En,w as pt,C as vt,x as Tn,y as jn,S as In,N as Rn,M as Je,B as et,A as tt,b as Pn}from"./index-DciL_7EE.js";import{u as kn,o as An,s as se,L as ie,I as ge,Z as Mn}from"./types-ryoMSlDH.js";import{u as _n}from"./index-CCOiMWWP.js";import{_ as X,a as gt,b as Ln}from"./index-BJXTVLDy.js";import{s as Dn}from"./client-CRR1edlu.js";import{M as On}from"./map-pin-Df87Vyq3.js";import{S as Bn}from"./sun-CVGQsn4S.js";import{Z as Fn}from"./zap-BEmvqDhl.js";import{B as Vn}from"./building-2-aXsmJX_B.js";import{C as Wn}from"./chart-column-BOvZ1wNA.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const Hn=pn("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),xt=a.forwardRef(({className:e,...n},t)=>r.jsx("textarea",{className:z("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
6ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:t,...n}));xt.displayName="Textarea";function nt(e,[n,t]){return Math.min(t,Math.max(n,e))}var Le=0;function Kn(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??rt()),document.body.insertAdjacentElement("beforeend",e[1]??rt()),Le++,()=>{Le===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Le--}},[])}function rt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var De="focusScope.autoFocusOnMount",Oe="focusScope.autoFocusOnUnmount",ot={bubbles:!1,cancelable:!0},Un="FocusScope",bt=a.forwardRef((e,n)=>{const{loop:t=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:f,...l}=e,[s,m]=a.useState(null),d=Ke(i),g=Ke(f),x=a.useRef(null),b=B(n,c=>m(c)),S=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(o){let c=function(p){if(S.paused||!s)return;const N=p.target;s.contains(N)?x.current=N:Y(x.current,{select:!0})},u=function(p){if(S.paused||!s)return;const N=p.relatedTarget;N!==null&&(s.contains(N)||Y(x.current,{select:!0}))},v=function(p){if(document.activeElement===document.body)for(const C of p)C.removedNodes.length>0&&Y(s)};document.addEventListener("focusin",c),document.addEventListener("focusout",u);const h=new MutationObserver(v);return s&&h.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",c),document.removeEventListener("focusout",u),h.disconnect()}}},[o,s,S.paused]),a.useEffect(()=>{if(s){st.add(S);const c=document.activeElement;if(!s.contains(c)){const v=new CustomEvent(De,ot);s.addEventListener(De,d),s.dispatchEvent(v),v.defaultPrevented||(zn(Zn(St(s)),{select:!0}),document.activeElement===c&&Y(s))}return()=>{s.removeEventListener(De,d),setTimeout(()=>{const v=new CustomEvent(Oe,ot);s.addEventListener(Oe,g),s.dispatchEvent(v),v.defaultPrevented||Y(c??document.body,{select:!0}),s.removeEventListener(Oe,g),st.remove(S)},0)}}},[s,d,g,S]);const y=a.useCallback(c=>{if(!t&&!o||S.paused)return;const u=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,v=document.activeElement;if(u&&v){const h=c.currentTarget,[p,N]=Gn(h);p&&N?!c.shiftKey&&v===N?(c.preventDefault(),t&&Y(p,{select:!0})):c.shiftKey&&v===p&&(c.preventDefault(),t&&Y(N,{select:!0})):v===h&&c.preventDefault()}},[t,o,S.paused]);return r.jsx(M.div,{tabIndex:-1,...l,ref:b,onKeyDown:y})});bt.displayName=Un;function zn(e,{select:n=!1}={}){const t=document.activeElement;for(const o of e)if(Y(o,{select:n}),document.activeElement!==t)return}function Gn(e){const n=St(e),t=at(n,e),o=at(n.reverse(),e);return[t,o]}function St(e){const n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const i=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||i?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n}function at(e,n){for(const t of e)if(!$n(t,{upTo:n}))return t}function $n(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Yn(e){return e instanceof HTMLInputElement&&"select"in e}function Y(e,{select:n=!1}={}){if(e&&e.focus){const t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&Yn(e)&&n&&e.select()}}var st=Xn();function Xn(){let e=[];return{add(n){const t=e[0];n!==t&&(t==null||t.pause()),e=it(e,n),e.unshift(n)},remove(n){var t;e=it(e,n),(t=e[0])==null||t.resume()}}}function it(e,n){const t=[...e],o=t.indexOf(n);return o!==-1&&t.splice(o,1),t}function Zn(e){return e.filter(n=>n.tagName!=="A")}var qn=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},ce=new WeakMap,xe=new WeakMap,be={},Be=0,wt=function(e){return e&&(e.host||wt(e.parentNode))},Qn=function(e,n){return n.map(function(t){if(e.contains(t))return t;var o=wt(t);return o&&e.contains(o)?o:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t})},Jn=function(e,n,t,o){var i=Qn(n,Array.isArray(e)?e:[e]);be[t]||(be[t]=new WeakMap);var f=be[t],l=[],s=new Set,m=new Set(i),d=function(x){!x||s.has(x)||(s.add(x),d(x.parentNode))};
vendor: 1,519 bytes, line 6
6i.forEach(d);var g=function(x){!x||m.has(x)||Array.prototype.forEach.call(x.children,function(b){if(s.has(b))g(b);else try{var S=b.getAttribute(o),y=S!==null&&S!=="false",c=(ce.get(b)||0)+1,u=(f.get(b)||0)+1;ce.set(b,c),f.set(b,u),l.push(b),c===1&&y&&xe.set(b,!0),u===1&&b.setAttribute(t,"true"),y||b.setAttribute(o,"true")}catch(v){console.error("aria-hidden: cannot operate on ",b,v)}})};return g(n),s.clear(),Be++,function(){l.forEach(function(x){var b=ce.get(x)-1,S=f.get(x)-1;ce.set(x,b),f.set(x,S),b||(xe.has(x)||x.removeAttribute(o),xe.delete(x)),S||x.removeAttribute(t)}),Be--,Be||(ce=new WeakMap,ce=new WeakMap,xe=new WeakMap,be={})}},er=function(e,n,t){t===void 0&&(t="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),i=qn(e);return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live]"))),Jn(o,i,t,"aria-hidden")):function(){return null}},ye="right-scroll-bar-position",Ne="width-before-scroll-bar",tr="with-scroll-bars-hidden",nr="--removed-body-scroll-bar-size";function Fe(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function rr(e,n){var t=a.useState(function(){return{value:e,callback:n,facade:{get current(){return t.value},set current(o){var i=t.value;i!==o&&(t.value=o,t.callback(o,i))}}}})[0];return t.callback=n,t.facade}var or=typeof window<"u"?a.useLayoutEffect:a.useEffect,ct=new WeakMap;function ar(e,n){var t=rr(null,function(o){return e.forEach(function(i){return Fe(i,o)})});return or(function(){var o=ct.get(t);if(o){var i=new Set(o),f=new Set(e),l=t.current;
vendor: 4,189 bytes, lines 6-21
6i.forEach(function(s){f.has(s)||Fe(s,null)}),f.forEach(function(s){i.has(s)||Fe(s,l)})}ct.set(t,e)},[e]),t}function sr(e){return e}function ir(e,n){n===void 0&&(n=sr);var t=[],o=!1,i={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:e},useMedium:function(f){var l=n(f,o);return t.push(l),function(){t=t.filter(function(s){return s!==l})}},assignSyncMedium:function(f){for(o=!0;t.length;){var l=t;t=[],l.forEach(f)}t={push:function(s){return f(s)},filter:function(){return t}}},assignMedium:function(f){o=!0;var l=[];if(t.length){var s=t;t=[],s.forEach(f),l=t}var m=function(){var g=l;l=[],g.forEach(f)},d=function(){return Promise.resolve().then(m)};d(),t={push:function(g){l.push(g),d()},filter:function(g){return l=l.filter(g),t}}}};return i}function cr(e){e===void 0&&(e={});var n=ir(null);return n.options=X({async:!0,ssr:!1},e),n}var yt=function(e){var n=e.sideCar,t=gt(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return a.createElement(o,X({},t))};yt.isSideCarExport=!0;function lr(e,n){return e.useMedium(n),yt}var Nt=cr(),Ve=function(){},Ee=a.forwardRef(function(e,n){var t=a.useRef(null),o=a.useState({onScrollCapture:Ve,onWheelCapture:Ve,onTouchMoveCapture:Ve}),i=o[0],f=o[1],l=e.forwardProps,s=e.children,m=e.className,d=e.removeScrollBar,g=e.enabled,x=e.shards,b=e.sideCar,S=e.noRelative,y=e.noIsolation,c=e.inert,u=e.allowPinchZoom,v=e.as,h=v===void 0?"div":v,p=e.gapMode,N=gt(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=b,L=ar([t,n]),j=X(X({},N),i);return a.createElement(a.Fragment,null,g&&a.createElement(C,{sideCar:Nt,removeScrollBar:d,shards:x,noRelative:S,noIsolation:y,inert:c,setCallbacks:f,allowPinchZoom:!!u,lockRef:t,gapMode:p}),l?a.cloneElement(a.Children.only(s),X(X({},j),{ref:L})):a.createElement(h,X({},j,{className:m,ref:L}),s))});Ee.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ee.classNames={fullWidth:Ne,zeroRight:ye};var dr=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ur(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=dr();return n&&e.setAttribute("nonce",n),e}function fr(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function mr(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var hr=function(){var e=0,n=null;return{add:function(t){e==0&&(n=ur())&&(fr(n,t),mr(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},pr=function(){var e=hr();return function(n,t){a.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&t])}},Ct=function(){var e=pr(),n=function(t){var o=t.styles,i=t.dynamic;return e(o,i),null};return n},vr={left:0,top:0,right:0,gap:0},We=function(e){return parseInt(e||"",10)||0},gr=function(e){var n=window.getComputedStyle(document.body),t=n[e==="padding"?"paddingLeft":"marginLeft"],o=n[e==="padding"?"paddingTop":"marginTop"],i=n[e==="padding"?"paddingRight":"marginRight"];return[We(t),We(o),We(i)]},xr=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return vr;var n=gr(e),t=document.documentElement.clientWidth,o=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,o-t+n[2]-n[0])}},br=Ct(),ue="data-scroll-locked",Sr=function(e,n,t,o){var i=e.left,f=e.top,l=e.right,s=e.gap;return t===void 0&&(t="margin"),`
7  .`.concat(tr,` {
8   overflow: hidden `).concat(o,`;
9   padding-right: `).concat(s,"px ").concat(o,`;
10  }
11  body[`).concat(ue,`] {
12    overflow: hidden `).concat(o,`;
13    overscroll-behavior: contain;
14    `).concat([n&&"position: relative ".concat(o,";"),t==="margin"&&`
15    padding-left: `.concat(i,`px;
16    padding-top: `).concat(f,`px;
17    padding-right: `).concat(l,`px;
18    margin-left:0;
19    margin-top:0;
20    margin-right: `).concat(s,"px ").concat(o,`;
21    `),t==="padding"&&"padding-right: ".concat(s,"px ").concat(o,";
21")].filter(Boolean).join(""),`
22  }
23  
24  .`).concat(ye,` {
25    right: `).concat(s,"px ").concat(o,`;
26  }
27  
28  .`).concat(Ne,` {
29    margin-right: `).concat(s,"px ").concat(o,`;
30  }
31  
32  .`).concat(ye," .").concat(ye,` {
33    right: 0 `).concat(o,`;
34  }
35  
36  .`).concat(Ne," .").concat(Ne,` {
37    margin-right: 0 `).concat(o,`;
38  }
39  
40  body[`).concat(ue,`] {
41    `).concat(nr,": ").concat(s,`px;
42  }
43`)},lt=function(){var e=parseInt(document.body.getAttribute(ue)||"0",10);return isFinite(e)?e:0},wr=function(){a.useEffect(function(){return document.body.setAttribute(ue,(lt()+1).toString()),function(){var e=lt()-1;e<=0?document.body.removeAttribute(ue):document.body.setAttribute(ue,e.toString())}},[])},yr=function(e){var n=e.noRelative,t=e.noImportant,o=e.gapMode,i=o===void 0?"margin":o;wr();var f=a.useMemo(function(){return xr(i)},[i]);return a.createElement(br,{styles:Sr(f,!n,i,t?"":"!important")})},Ue=!1;if(typeof window<"u")try{var Se=Object.defineProperty({},"passive",{get:function(){return Ue=!0,!0}});window.addEventListener("test",Se,Se),window.removeEventListener("test",Se,Se)}catch{Ue=!1}var le=Ue?{passive:!1}:!1,Nr=function(e){return e.tagName==="TEXTAREA"},Et=function(e,n){if(!(e instanceof Element))return!1;var t=window.getComputedStyle(e);return t[n]!=="hidden"&&!(t.overflowY===t.overflowX&&!Nr(e)&&t[n]==="visible")},Cr=function(e){return Et(e,"overflowY")},Er=function(e){return Et(e,"overflowX")},dt=function(e,n){var t=n.ownerDocument,o=n;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var i=Tt(e,o);if(i){var f=jt(e,o),l=f[1],s=f[2];if(l>s)return!0}o=o.parentNode}while(o&&o!==t.body);return!1},Tr=function(e){var n=e.scrollTop,t=e.scrollHeight,o=e.clientHeight;return[n,t,o]},jr=function(e){var n=e.scrollLeft,t=e.scrollWidth,o=e.clientWidth;return[n,t,o]},Tt=function(e,n){return e==="v"?Cr(n):Er(n)},jt=function(e,n){return e==="v"?Tr(n):jr(n)},Ir=function(e,n){return e==="h"&&n==="rtl"?-1:1},Rr=function(e,n,t,o,i){var f=Ir(e,window.getComputedStyle(n).direction),l=f*o,s=t.target,m=n.contains(s),d=!1,g=l>0,x=0,b=0;do{if(!s)break;var S=jt(e,s),y=S[0],c=S[1],u=S[2],v=c-u-f*y;(y||v)&&Tt(e,s)&&(x+=v,b+=y);var h=s.parentNode;s=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!m&&s!==document.body||m&&(n.contains(s)||n===s));return(g&&(Math.abs(x)<1||!i)||!g&&(Math.abs(b)<1||!i))&&(d=!0),d},we=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ut=function(e){return[e.deltaX,e.deltaY]},ft=function(e){return e&&"current"in e?e.current:e},Pr=function(e,n){return e[0]===n[0]&&e[1]===n[1]},kr=function(e){return`
44  .block-interactivity-`.concat(e,` {pointer-events: none;}
45  .allow-interactivity-`).concat(e,` {pointer-events: all;}
46`)},Ar=0,de=[];function Mr(e){var n=a.useRef([]),t=a.useRef([0,0]),o=a.useRef(),i=a.useState(Ar++)[0],f=a.useState(Ct)[0],l=a.useRef(e);a.useEffect(function(){l.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var c=Ln([e.lockRef.current],(e.shards||[]).map(ft),!0).filter(Boolean);return c.forEach(function(u){return u.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),c.forEach(function(u){return u.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=a.useCallback(function(c,u){if("touches"in c&&c.touches.length===2||c.type==="wheel"&&c.ctrlKey)return!l.current.allowPinchZoom;var v=we(c),h=t.current,p="deltaX"in c?c.deltaX:h[0]-v[0],N="deltaY"in c?c.deltaY:h[1]-v[1],C,L=c.target,j=Math.abs(p)>Math.abs(N)?"h":"v";if("touches"in c&&j==="h"&&L.type==="range")return!1;var k=dt(j,L);if(!k)return!0;if(k?C=j:(C=j==="v"?"h":"v",k=dt(j,L)),!k)return!1;if(!o.current&&"changedTouches"in c&&(p||N)&&(o.current=C),!C)return!0;var D=o.current||C;return Rr(D,u,c,D==="h"?p:N,!0)},[]),m=a.useCallback(function(c){var u=c;if(!(!de.length||de[de.length-1]!==f)){var v="deltaY"in u?ut(u):we(u),h=n.current.filter(function(C){return C.name===u.type&&(C.target===u.target||u.target===C.shadowParent)&&Pr(C.delta,v)}
vendor: 4,229 bytes, line 46
46)[0];if(h&&h.should){u.cancelable&&u.preventDefault();return}if(!h){var p=(l.current.shards||[]).map(ft).filter(Boolean).filter(function(C){return C.contains(u.target)}),N=p.length>0?s(u,p[0]):!l.current.noIsolation;N&&u.cancelable&&u.preventDefault()}}},[]),d=a.useCallback(function(c,u,v,h){var p={name:c,delta:u,target:v,should:h,shadowParent:_r(v)};n.current.push(p),setTimeout(function(){n.current=n.current.filter(function(N){return N!==p})},1)},[]),g=a.useCallback(function(c){t.current=we(c),o.current=void 0},[]),x=a.useCallback(function(c){d(c.type,ut(c),c.target,s(c,e.lockRef.current))},[]),b=a.useCallback(function(c){d(c.type,we(c),c.target,s(c,e.lockRef.current))},[]);a.useEffect(function(){return de.push(f),e.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:b}),document.addEventListener("wheel",m,le),document.addEventListener("touchmove",m,le),document.addEventListener("touchstart",g,le),function(){de=de.filter(function(c){return c!==f}),document.removeEventListener("wheel",m,le),document.removeEventListener("touchmove",m,le),document.removeEventListener("touchstart",g,le)}},[]);var S=e.removeScrollBar,y=e.inert;return a.createElement(a.Fragment,null,y?a.createElement(f,{styles:kr(i)}):null,S?a.createElement(yr,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function _r(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const Lr=lr(Nt,Mr);var It=a.forwardRef(function(e,n){return a.createElement(Ee,X({},e,{ref:n,sideCar:Lr}))});It.classNames=Ee.classNames;var Dr=[" ","Enter","ArrowUp","ArrowDown"],Or=[" ","Enter"],re="Select",[Te,je,Br]=vn(re),[fe,jo]=gn(re,[Br,mt]),Ie=mt(),[Fr,q]=fe(re),[Vr,Wr]=fe(re),Rt=e=>{const{__scopeSelect:n,children:t,open:o,defaultOpen:i,onOpenChange:f,value:l,defaultValue:s,onValueChange:m,dir:d,name:g,autoComplete:x,disabled:b,required:S,form:y}=e,c=Ie(n),[u,v]=a.useState(null),[h,p]=a.useState(null),[N,C]=a.useState(!1),L=_n(d),[j,k]=Qe({prop:o,defaultProp:i??!1,onChange:f,caller:re}),[D,J]=Qe({prop:l,defaultProp:s,onChange:m,caller:re}),V=a.useRef(null),W=u?y||!!u.closest("form"):!0,[G,H]=a.useState(new Set),K=Array.from(G).map(A=>A.props.value).join(";");return r.jsx(Nn,{...c,children:r.jsxs(Fr,{required:S,scope:n,trigger:u,onTriggerChange:v,valueNode:h,onValueNodeChange:p,valueNodeHasChildren:N,onValueNodeHasChildrenChange:C,contentId:Ze(),value:D,onValueChange:J,open:j,onOpenChange:k,dir:L,triggerPointerDownPosRef:V,disabled:b,children:[r.jsx(Te.Provider,{scope:n,children:r.jsx(Vr,{scope:e.__scopeSelect,onNativeOptionAdd:a.useCallback(A=>{H(F=>new Set(F).add(A))},[]),onNativeOptionRemove:a.useCallback(A=>{H(F=>{const U=new Set(F);return U.delete(A),U})},[]),children:t})}),W?r.jsxs(Jt,{"aria-hidden":!0,required:S,tabIndex:-1,name:g,autoComplete:x,value:D,onChange:A=>J(A.target.value),disabled:b,form:y,children:[D===void 0?r.jsx("option",{value:""}):null,Array.from(G)]},K):null]})})};Rt.displayName=re;var Pt="SelectTrigger",kt=a.forwardRef((e,n)=>{const{__scopeSelect:t,disabled:o=!1,...i}=e,f=Ie(t),l=q(Pt,t),s=l.disabled||o,m=B(n,l.onTriggerChange),d=je(t),g=a.useRef("touch"),[x,b,S]=tn(c=>{const u=d().filter(p=>!p.disabled),v=u.find(p=>p.value===l.value),h=nn(u,c,v);h!==void 0&&l.onValueChange(h.value)}),y=c=>{s||(l.onOpenChange(!0),S()),c&&(l.triggerPointerDownPosRef.current={x:Math.round(c.pageX),y:Math.round(c.pageY)})};return r.jsx(xn,{asChild:!0,...f,children:r.jsx(M.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":en(l.value)?"":void 0,...i,ref:m,onClick:P(i.onClick,c=>{c.currentTarget.focus(),g.current!=="mouse"&&y(c)}),onPointerDown:P(i.onPointerDown,c=>{g.current=c.pointerType;const u=c.target;u.hasPointerCapture(c.pointerId)&&u.releasePointerCapture(c.pointerId),c.button===0&&c.ctrlKey===!1&&c.pointerType==="mouse"&&(y(c),c.preventDefault())}),onKeyDown:P(i.onKeyDown,c=>{const u=x.current!=="";!(c.ctrlKey||c.altKey||c.metaKey)&&c.key.length===1&&b(c.key),!(u&&c.key===" ")&&Dr.includes(c.key)&&(y(),c.preventDefault())})})})});kt.displayName=Pt;
vendor: 15,427 bytes, line 46
46var At="SelectValue",Mt=a.forwardRef((e,n)=>{const{__scopeSelect:t,className:o,style:i,children:f,placeholder:l="",...s}=e,m=q(At,t),{onValueNodeHasChildrenChange:d}=m,g=f!==void 0,x=B(n,m.onValueNodeChange);return Z(()=>{d(g)},[d,g]),r.jsx(M.span,{...s,ref:x,style:{pointerEvents:"none"},children:en(m.value)?r.jsx(r.Fragment,{children:l}):f})});Mt.displayName=At;var Hr="SelectIcon",_t=a.forwardRef((e,n)=>{const{__scopeSelect:t,children:o,...i}=e;return r.jsx(M.span,{"aria-hidden":!0,...i,ref:n,children:o||"▼"})});_t.displayName=Hr;var Kr="SelectPortal",Lt=e=>r.jsx(Cn,{asChild:!0,...e});Lt.displayName=Kr;var oe="SelectContent",Dt=a.forwardRef((e,n)=>{const t=q(oe,e.__scopeSelect),[o,i]=a.useState();if(Z(()=>{i(new DocumentFragment)},[]),!t.open){const f=o;return f?ht.createPortal(r.jsx(Ot,{scope:e.__scopeSelect,children:r.jsx(Te.Slot,{scope:e.__scopeSelect,children:r.jsx("div",{children:e.children})})}),f):null}return r.jsx(Bt,{...e,ref:n})});Dt.displayName=oe;var O=10,[Ot,Q]=fe(oe),Ur="SelectContentImpl",zr=En("SelectContent.RemoveScroll"),Bt=a.forwardRef((e,n)=>{const{__scopeSelect:t,position:o="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:f,onPointerDownOutside:l,side:s,sideOffset:m,align:d,alignOffset:g,arrowPadding:x,collisionBoundary:b,collisionPadding:S,sticky:y,hideWhenDetached:c,avoidCollisions:u,...v}=e,h=q(oe,t),[p,N]=a.useState(null),[C,L]=a.useState(null),j=B(n,w=>N(w)),[k,D]=a.useState(null),[J,V]=a.useState(null),W=je(t),[G,H]=a.useState(!1),K=a.useRef(!1);a.useEffect(()=>{if(p)return er(p)},[p]),Kn();const A=a.useCallback(w=>{const[R,..._]=W().map(T=>T.ref.current),[I]=_.slice(-1),E=document.activeElement;for(const T of w)if(T===E||(T==null||T.scrollIntoView({block:"nearest"}),T===R&&C&&(C.scrollTop=0),T===I&&C&&(C.scrollTop=C.scrollHeight),T==null||T.focus(),document.activeElement!==E))return},[W,C]),F=a.useCallback(()=>A([k,p]),[A,k,p]);a.useEffect(()=>{G&&F()},[G,F]);const{onOpenChange:U,triggerPointerDownPosRef:$}=h;a.useEffect(()=>{if(p){let w={x:0,y:0};const R=I=>{var E,T;w={x:Math.abs(Math.round(I.pageX)-(((E=$.current)==null?void 0:E.x)??0)),y:Math.abs(Math.round(I.pageY)-(((T=$.current)==null?void 0:T.y)??0))}},_=I=>{w.x<=10&&w.y<=10?I.preventDefault():p.contains(I.target)||U(!1),document.removeEventListener("pointermove",R),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",R),document.addEventListener("pointerup",_,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",R),document.removeEventListener("pointerup",_,{capture:!0})}}},[p,U,$]),a.useEffect(()=>{const w=()=>U(!1);return window.addEventListener("blur",w),window.addEventListener("resize",w),()=>{window.removeEventListener("blur",w),window.removeEventListener("resize",w)}},[U]);const[Re,pe]=tn(w=>{const R=W().filter(E=>!E.disabled),_=R.find(E=>E.ref.current===document.activeElement),I=nn(R,w,_);I&&setTimeout(()=>I.ref.current.focus())}),Pe=a.useCallback((w,R,_)=>{const I=!K.current&&!_;(h.value!==void 0&&h.value===R||I)&&(D(w),I&&(K.current=!0))},[h.value]),ke=a.useCallback(()=>p==null?void 0:p.focus(),[p]),ae=a.useCallback((w,R,_)=>{const I=!K.current&&!_;(h.value!==void 0&&h.value===R||I)&&V(w)},[h.value]),ve=o==="popper"?ze:Ft,me=ve===ze?{side:s,sideOffset:m,align:d,alignOffset:g,arrowPadding:x,collisionBoundary:b,collisionPadding:S,sticky:y,hideWhenDetached:c,avoidCollisions:u}:{};return r.jsx(Ot,{scope:t,content:p,viewport:C,onViewportChange:L,itemRefCallback:Pe,selectedItem:k,onItemLeave:ke,itemTextRefCallback:ae,focusSelectedItem:F,selectedItemText:J,position:o,isPositioned:G,searchRef:Re,children:r.jsx(It,{as:zr,allowPinchZoom:!0,children:r.jsx(bt,{asChild:!0,trapped:h.open,onMountAutoFocus:w=>{w.preventDefault()},onUnmountAutoFocus:P(i,w=>{var R;(R=h.trigger)==null||R.focus({preventScroll:!0}),w.preventDefault()}),children:r.jsx(bn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:f,onPointerDownOutside:l,onFocusOutside:w=>w.preventDefault(),onDismiss:()=>h.onOpenChange(!1),children:r.jsx(ve,{role:"listbox",id:h.contentId,"data-state":h.open?"open":"closed",dir:h.dir,onContextMenu:w=>w.preventDefault(),...v,...me,onPlaced:()=>H(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:P(v.onKeyDown,w=>{const R=w.ctrlKey||w.altKey||w.metaKey;if(w.key==="Tab"&&w.preventDefault(),!R&&w.key.length===1&&pe(w.key),["ArrowUp","ArrowDown","Home","End"].includes(w.key)){let I=W().filter(E=>!E.disabled).map(E=>E.ref.current);if(["ArrowUp","End"].includes(w.key)&&(I=I.slice().reverse()),["ArrowUp","ArrowDown"].includes(w.key)){const E=w.target,T=I.indexOf(E);I=I.slice(T+1)}setTimeout(()=>A(I)),w.preventDefault()}})})})})})})});Bt.displayName=Ur;var Gr="SelectItemAlignedPosition",Ft=a.forwardRef((e,n)=>{const{__scopeSelect:t,onPlaced:o,...i}=e,f=q(oe,t),l=Q(oe,t),[s,m]=a.useState(null),[d,g]=a.useState(null),x=B(n,j=>g(j)),b=je(t),S=a.useRef(!1),y=a.useRef(!0),{viewport:c,selectedItem:u,selectedItemText:v,focusSelectedItem:h}=l,p=a.useCallback(()=>{if(f.trigger&&f.valueNode&&s&&d&&c&&u&&v){const j=f.trigger.getBoundingClientRect(),k=d.getBoundingClientRect(),D=f.valueNode.getBoundingClientRect(),J=v.getBoundingClientRect();if(f.dir!=="rtl"){const E=J.left-k.left,T=D.left-E,ee=j.left-T,te=j.width+ee,Ae=Math.max(te,k.width),Me=window.innerWidth-O,_e=nt(T,[O,Math.max(O,Me-Ae)]);s.style.minWidth=te+"px",s.style.left=_e+"px"}else{const E=k.right-J.right,T=window.innerWidth-D.right-E,ee=window.innerWidth-j.right-T,te=j.width+ee,Ae=Math.max(te,k.width),Me=window.innerWidth-O,_e=nt(T,[O,Math.max(O,Me-Ae)]);s.style.minWidth=te+"px",s.style.right=_e+"px"}const V=b(),W=window.innerHeight-O*2,G=c.scrollHeight,H=window.getComputedStyle(d),K=parseInt(H.borderTopWidth,10),A=parseInt(H.paddingTop,10),F=parseInt(H.borderBottomWidth,10),U=parseInt(H.paddingBottom,10),$=K+A+G+U+F,Re=Math.min(u.offsetHeight*5,$),pe=window.getComputedStyle(c),Pe=parseInt(pe.paddingTop,10),ke=parseInt(pe.paddingBottom,10),ae=j.top+j.height/2-O,ve=W-ae,me=u.offsetHeight/2,w=u.offsetTop+me,R=K+A+w,_=$-R;if(R<=ae){const E=V.length>0&&u===V[V.length-1].ref.current;s.style.bottom="0px";const T=d.clientHeight-c.offsetTop-c.offsetHeight,ee=Math.max(ve,me+(E?ke:0)+T+F),te=R+ee;s.style.height=te+"px"}else{const E=V.length>0&&u===V[0].ref.current;s.style.top="0px";const ee=Math.max(ae,K+c.offsetTop+(E?Pe:0)+me)+_;s.style.height=ee+"px",c.scrollTop=R-ae+c.offsetTop}s.style.margin=`${O}px 0`,s.style.minHeight=Re+"px",s.style.maxHeight=W+"px",o==null||o(),requestAnimationFrame(()=>S.current=!0)}},[b,f.trigger,f.valueNode,s,d,c,u,v,f.dir,o]);Z(()=>p(),[p]);const[N,C]=a.useState();Z(()=>{d&&C(window.getComputedStyle(d).zIndex)},[d]);const L=a.useCallback(j=>{j&&y.current===!0&&(p(),h==null||h(),y.current=!1)},[p,h]);return r.jsx(Yr,{scope:t,contentWrapper:s,shouldExpandOnScrollRef:S,onScrollButtonChange:L,children:r.jsx("div",{ref:m,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:r.jsx(M.div,{...i,ref:x,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});Ft.displayName=Gr;var $r="SelectPopperPosition",ze=a.forwardRef((e,n)=>{const{__scopeSelect:t,align:o="start",collisionPadding:i=O,...f}=e,l=Ie(t);return r.jsx(Sn,{...l,...f,ref:n,align:o,collisionPadding:i,style:{boxSizing:"border-box",...f.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ze.displayName=$r;var[Yr,qe]=fe(oe,{}),Ge="SelectViewport",Vt=a.forwardRef((e,n)=>{const{__scopeSelect:t,nonce:o,...i}=e,f=Q(Ge,t),l=qe(Ge,t),s=B(n,f.onViewportChange),m=a.useRef(0);return r.jsxs(r.Fragment,{children:[r.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),r.jsx(Te.Slot,{scope:t,children:r.jsx(M.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:P(i.onScroll,d=>{const g=d.currentTarget,{contentWrapper:x,shouldExpandOnScrollRef:b}=l;if(b!=null&&b.current&&x){const S=Math.abs(m.current-g.scrollTop);if(S>0){const y=window.innerHeight-O*2,c=parseFloat(x.style.minHeight),u=parseFloat(x.style.height),v=Math.max(c,u);if(v<y){const h=v+S,p=Math.min(y,h),N=h-p;x.style.height=p+"px",x.style.bottom==="0px"&&(g.scrollTop=N>0?N:0,x.style.justifyContent="flex-end")}}}m.current=g.scrollTop})})})]})});Vt.displayName=Ge;var Wt="SelectGroup",[Xr,Zr]=fe(Wt),qr=a.forwardRef((e,n)=>{const{__scopeSelect:t,...o}=e,i=Ze();return r.jsx(Xr,{scope:t,id:i,children:r.jsx(M.div,{role:"group","aria-labelledby":i,...o,ref:n})})});qr.displayName=Wt;var Ht="SelectLabel",Kt=a.forwardRef((e,n)=>{const{__scopeSelect:t,...o}=e,i=Zr(Ht,t);return r.jsx(M.div,{id:i.id,...o,ref:n})});Kt.displayName=Ht;var Ce="SelectItem",[Qr,Ut]=fe(Ce),zt=a.forwardRef((e,n)=>{const{__scopeSelect:t,value:o,disabled:i=!1,textValue:f,...l}=e,s=q(Ce,t),m=Q(Ce,t),d=s.value===o,[g,x]=a.useState(f??""),[b,S]=a.useState(!1),y=B(n,h=>{var p;return(p=m.itemRefCallback)==null?void 0:p.call(m,h,o,i)}),c=Ze(),u=a.useRef("touch"),v=()=>{i||(s.onValueChange(o),s.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return r.jsx(Qr,{scope:t,value:o,disabled:i,textId:c,isSelected:d,onItemTextChange:a.useCallback(h=>{x(p=>p||((h==null?void 0:h.textContent)??"").trim())},[]),children:r.jsx(Te.ItemSlot,{scope:t,value:o,disabled:i,textValue:g,children:r.jsx(M.div,{role:"option","aria-labelledby":c,"data-highlighted":b?"":void 0,"aria-selected":d&&b,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...l,ref:y,onFocus:P(l.onFocus,()=>S(!0)),onBlur:P(l.onBlur,()=>S(!1)),onClick:P(l.onClick,()=>{u.current!=="mouse"&&v()}),onPointerUp:P(l.onPointerUp,()=>{u.current==="mouse"&&v()}),onPointerDown:P(l.onPointerDown,h=>{u.current=h.pointerType}),onPointerMove:P(l.onPointerMove,h=>{var p;u.current=h.pointerType,i?(p=m.onItemLeave)==null||p.call(m):u.current==="mouse"&&h.currentTarget.focus({preventScroll:!0})}),onPointerLeave:P(l.onPointerLeave,h=>{var p;h.currentTarget===document.activeElement&&((p=m.onItemLeave)==null||p.call(m))}),onKeyDown:P(l.onKeyDown,h=>{var N;((N=m.searchRef)==null?void 0:N.current)!==""&&h.key===" "||(Or.includes(h.key)&&v(),h.key===" "&&h.preventDefault())})})})})});zt.displayName=Ce;var he="SelectItemText",Gt=a.forwardRef((e,n)=>{const{__scopeSelect:t,className:o,style:i,...f}=e,l=q(he,t),s=Q(he,t),m=Ut(he,t),d=Wr(he,t),[g,x]=a.useState(null),b=B(n,v=>x(v),m.onItemTextChange,v=>{var h;return(h=s.itemTextRefCallback)==null?void 0:h.call(s,v,m.value,m.disabled)}),S=g==null?void 0:g.textContent,y=a.useMemo(()=>r.jsx("option",{value:m.value,disabled:m.disabled,children:S},m.value),[m.disabled,m.value,S]),{onNativeOptionAdd:c,onNativeOptionRemove:u}=d;return Z(()=>(c(y),()=>u(y)),[c,u,y]),r.jsxs(r.Fragment,{children:[r.jsx(M.span,{id:m.textId,...f,ref:b}),m.isSelected&&l.valueNode&&!l.valueNodeHasChildren?ht.createPortal(f.children,l.valueNode):null]})});Gt.displayName=he;var $t="SelectItemIndicator",Yt=a.forwardRef((e,n)=>{const{__scopeSelect:t,...o}=e;return Ut($t,t).isSelected?r.jsx(M.span,{"aria-hidden":!0,...o,ref:n}):null});Yt.displayName=$t;var $e="SelectScrollUpButton",Xt=a.forwardRef((e,n)=>{const t=Q($e,e.__scopeSelect),o=qe($e,e.__scopeSelect),[i,f]=a.useState(!1),l=B(n,o.onScrollButtonChange);return Z(()=>{if(t.viewport&&t.isPositioned){let s=function(){const d=m.scrollTop>0;f(d)};const m=t.viewport;return s(),m.addEventListener("scroll",s),()=>m.removeEventListener("scroll",s)}},[t.viewport,t.isPositioned]),i?r.jsx(qt,{...e,ref:l,onAutoScroll:()=>{const{viewport:s,selectedItem:m}=t;s&&m&&(s.scrollTop=s.scrollTop-m.offsetHeight)}}):null});Xt.displayName=$e;var Ye="SelectScrollDownButton",Zt=a.forwardRef((e,n)=>{const t=Q(Ye,e.__scopeSelect),o=qe(Ye,e.__scopeSelect),[i,f]=a.useState(!1),l=B(n,o.onScrollButtonChange);return Z(()=>{if(t.viewport&&t.isPositioned){let s=function(){const d=m.scrollHeight-m.clientHeight,g=Math.ceil(m.scrollTop)<d;f(g)};const m=t.viewport;return s(),m.addEventListener("scroll",s),()=>m.removeEventListener("scroll",s)}},[t.viewport,t.isPositioned]),i?r.jsx(qt,{...e,ref:l,onAutoScroll:()=>{const{viewport:s,selectedItem:m}=t;s&&m&&(s.scrollTop=s.scrollTop+m.offsetHeight)}}):null});Zt.displayName=Ye;var qt=a.forwardRef((e,n)=>{const{__scopeSelect:t,onAutoScroll:o,...i}=e,f=Q("SelectScrollButton",t),l=a.useRef(null),s=je(t),m=a.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return a.useEffect(()=>()=>m(),[m]),Z(()=>{var g;const d=s().find(x=>x.ref.current===document.activeElement);(g=d==null?void 0:d.ref.current)==null||g.scrollIntoView({block:"nearest"})},[s]),r.jsx(M.div,{"aria-hidden":!0,...i,ref:n,style:{flexShrink:0,...i.style},onPointerDown:P(i.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(o,50))}),onPointerMove:P(i.onPointerMove,()=>{var d;(d=f.onItemLeave)==null||d.call(f),l.current===null&&(l.current=window.setInterval(o,50))}),onPointerLeave:P(i.onPointerLeave,()=>{m()})})}),Jr="SelectSeparator",Qt=a.forwardRef((e,n)=>{const{__scopeSelect:t,...o}=e;return r.jsx(M.div,{"aria-hidden":!0,...o,ref:n})});Qt.displayName=Jr;var Xe="SelectArrow",eo=a.forwardRef((e,n)=>{const{__scopeSelect:t,...o}=e,i=Ie(t),f=q(Xe,t),l=Q(Xe,t);return f.open&&l.position==="popper"?r.jsx(wn,{...i,...o,ref:n}):null});eo.displayName=Xe;var to="SelectBubbleInput",Jt=a.forwardRef(({__scopeSelect:e,value:n,...t},o)=>{const i=a.useRef(null),f=B(o,i),l=kn(n);return a.useEffect(()=>{const s=i.current;if(!s)return;const m=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(m,"value").set;if(l!==n&&g){const x=new Event("change",{bubbles:!0});g.call(s,n),s.dispatchEvent(x)}},[l,n]),r.jsx(M.select,{...t,style:{...yn,...t.style},ref:f,defaultValue:n})});Jt.displayName=to;function en(e){return e===""||e===void 0}function tn(e){const n=Ke(e),t=a.useRef(""),o=a.useRef(0),i=a.useCallback(l=>{const s=t.current+l;n(s),function m(d){t.current=d,window.clearTimeout(o.current),d!==""&&(o.current=window.setTimeout(()=>m(""),1e3))}(s)},[n]),f=a.useCallback(()=>{t.current="",window.clearTimeout(o.current)},[]);return a.useEffect(()=>()=>window.clearTimeout(o.current),[]),[t,i,f]}function nn(e,n,t){const i=n.length>1&&Array.from(n).every(d=>d===n[0])?n[0]:n,f=t?e.indexOf(t):-1;let l=no(e,Math.max(f,0));i.length===1&&(l=l.filter(d=>d!==t));const m=l.find(d=>d.textValue.toLowerCase().startsWith(i.toLowerCase()));return m!==t?m:void 0}function no(e,n){return e.map((t,o)=>e[(n+o)%e.length])}var ro=Rt,rn=kt,oo=Mt,ao=_t,so=Lt,on=Dt,io=Vt,an=Kt,sn=zt,co=Gt,lo=Yt,cn=Xt,ln=Zt,dn=Qt;const uo=ro,fo=oo,un=a.forwardRef(({className:e,children:n,...t},o)=>r.jsxs(rn,{ref:o,className:z("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
46ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...t,children:[n,r.jsx(ao,{asChild:!0,children:r.jsx(pt,{className:"h-4 w-4 opacity-50"})})]}));un.displayName=rn.displayName;const fn=a.forwardRef(({className:e,...n},t)=>r.jsx(cn,{ref:t,className:z("flex cursor-default items-center justify-center py-1",e),...n,children:r.jsx(Hn,{className:"h-4 w-4"})}));fn.displayName=cn.displayName;const mn=a.forwardRef(({className:e,...n},t)=>r.jsx(ln,{ref:t,className:z("flex cursor-default items-center justify-center py-1",e),...n,children:r.jsx(pt,{className:"h-4 w-4"})}));mn.displayName=ln.displayName;const hn=a.forwardRef(({className:e,children:n,position:t="popper",...o},i)=>r.jsx(so,{children:r.jsxs(on,{ref:i,className:z("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...o,children:[r.jsx(fn,{}),r.jsx(io,{className:z("p-1",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),r.jsx(mn,{})]})}));hn.displayName=on.displayName;const mo=a.forwardRef(({className:e,...n},t)=>r.jsx(an,{ref:t,className:z("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...n}));mo.displayName=an.displayName;const ne=a.forwardRef(({className:e,children:n,...t},o)=>r.jsxs(sn,{ref:o,className:z("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...t,children:[r.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(lo,{children:r.jsx(vt,{className:"h-4 w-4"})})}),r.jsx(co,{children:n})]}));ne.displayName=sn.displayName;const ho=a.forwardRef(({className:e,...n},t)=>r.jsx(dn,{ref:t,className:z("-mx-1 my-1 h-px bg-muted",e),...n}));ho.displayName=dn.displayName;const po="/assets/contact-team-DVCOTA_r.jpg",vo=An({vorname:se().trim().min(1,"Vorname ist erforderlich").max(100),name:se().trim().min(1,"Name ist erforderlich").max(100),email:se().trim().email("Ungültige E-Mail-Adresse").max(255),telefon:se().max(20).optional(),betreff:se().min(1,"Betreff ist erforderlich"),nachricht:se().trim().min(1,"Nachricht ist erforderlich").max(1e3)}),He={flaecheneigentuemer:{label:"Flächeneigentümer",icon:Bn,sidebar:"Senden Sie uns Lage und Größe Ihrer Fläche — wir prüfen kostenfrei und melden uns innerhalb weniger Tage zurück."},netzbetreiber:{label:"Netzbetreiber",icon:Fn,sidebar:"Bestehende Anschlusspunkte, geplante Knoten, Engpassregionen — wir steigen mit Ihrer konkreten Topologie ein."},kommune:{label:"Kommune",icon:Vn,sidebar:"Bis zu 90 % der Gewerbesteuer in Ihrer Gemeinde — sprechen Sie mit uns über Standortprüfung und Bürgerbeteiligung."},"energieglueck-demo":{label:"Energieglück+ Demo",icon:Wn,sidebar:"Live-Demo unserer KI-gestützten Asset-Management-Plattform — auf Ihre PV- oder BESS-Portfolios zugeschnitten."}},Io=()=>{var y,c;const{toast:e}=Tn(),[n,t]=jn(),o=n.get("betreff")||"",[i,f]=a.useState({}),[l,s]=a.useState(!1),m=a.useRef(null),[d,g]=a.useState({vorname:"",name:"",email:"",telefon:"",betreff:o,nachricht:o?`Bitte benachrichtigen Sie mich, wenn dieses Whitepaper erscheint: ${o.replace("Whitepaper: ","")}`:""});a.useEffect(()=>{o&&o!==d.betreff&&g(u=>({...u,betreff:o}))},[o]);const x=u=>{var v;g(h=>({...h,betreff:u})),t({betreff:u},{replace:!0}),(v=m.current)==null||v.scrollIntoView({behavior:"smooth",block:"start"})},b=async u=>{u.preventDefault(),f({});try{vo.parse(d),s(!0);const{error:v}=await Dn.functions.invoke("send-contact-email",{body:{name:`${d.vorname} ${d.name}`,email:d.email,phone:d.telefon,company:d.betreff,message:d.nachricht}});if(v){console.error("Error sending email:",v),e({title:"Fehler beim Versenden",description:"Ihre Nachricht konnte nicht versendet werden. Bitte versuchen Sie es später erneut.",variant:"destructive"});return}e({title:"Nachricht gesendet!",description:"Vielen Dank für Ihre Nachricht! Wir melden uns schnellstmöglich bei Ihnen."}),g({vorname:"",name:"",email:"",telefon:"",betreff:"",nachricht:""})}catch(v){if(v instanceof Mn){const h={};
46v.errors.forEach(p=>{p.path[0]&&(h[p.path[0]]=p.message)}),f(h)}}finally{s(!1)}},S=(y=He[d.betreff])==null?void 0:y.sidebar;return r.jsxs("div",{className:"min-h-screen flex flex-col bg-white",children:[r.jsx(In,{title:"Kontakt | Energieglück GmbH",description:"Kontaktieren Sie Energieglück – Großbatteriespeicher, GridStable und KI Asset Management. Schreiben Sie uns an [email protected].",path:"/kontakt"}),r.jsx(Rn,{}),r.jsxs("main",{className:"pt-20",children:[r.jsx("section",{className:"bg-white",children:r.jsx("div",{className:"container-custom py-16 md:py-24",children:r.jsxs("div",{className:"grid lg:grid-cols-12 gap-10 lg:gap-16 items-center",children:[r.jsxs("div",{className:"lg:col-span-6",children:[r.jsx("p",{className:"text-xs md:text-sm font-semibold tracking-[0.2em] uppercase text-primary mb-4",children:"Kontakt"}),r.jsx("h1",{className:"font-display text-4xl md:text-5xl lg:text-6xl font-extrabold tracking-tight text-ci-forest leading-[1.05] mb-6",children:"Reden wir über Ihr Projekt."}),r.jsx("p",{className:"text-lg md:text-xl text-foreground/75 leading-relaxed mb-8 max-w-xl",children:"Ob Fläche, Netzanschluss, Kommune oder KI-Plattform — wir hören zu, prüfen sachlich und melden uns innerhalb weniger Tage mit einer ehrlichen Einschätzung."}),r.jsxs("div",{className:"flex flex-wrap gap-3 mb-8",children:[r.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-border bg-white px-4 py-2 text-sm",children:[r.jsx(vt,{className:"w-4 h-4 text-primary"}),r.jsx("span",{className:"text-foreground/75",children:"Schnelle Antwort"})]}),r.jsxs("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-2 rounded-full border border-border bg-white px-4 py-2 text-sm hover:border-primary/50 transition-colors",children:[r.jsx(Je,{className:"w-4 h-4 text-primary"}),r.jsx("span",{className:"text-foreground/75",children:"[email protected]"})]})]}),r.jsx(et,{asChild:!0,size:"lg",className:"btn-primary",children:r.jsxs("a",{href:"#formular",children:["Zum Kontaktformular",r.jsx(tt,{className:"w-4 h-4 ml-2"})]})})]}),r.jsx("div",{className:"lg:col-span-6",children:r.jsx("div",{className:"relative aspect-[4/5] rounded-2xl overflow-hidden shadow-xl",children:r.jsx("img",{src:po,alt:"Energieglück Team",className:"absolute inset-0 w-full h-full object-cover",loading:"eager",fetchPriority:"high"})})})]})})}),r.jsx("section",{className:"bg-ci-forest text-white",children:r.jsxs("div",{className:"container-custom py-10 md:py-12",children:[r.jsx("p",{className:"text-xs md:text-sm font-semibold tracking-[0.2em] uppercase text-primary mb-4 text-center",children:"Worum geht es?"}),r.jsx("h2",{className:"font-display text-2xl md:text-3xl font-extrabold tracking-tight text-white text-center mb-8 leading-tight",children:"Wählen Sie Ihr Thema — wir bereiten den richtigen Ansprechpartner vor."}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 max-w-4xl mx-auto",children:Object.entries(He).map(([u,v])=>{const h=v.icon,p=d.betreff===u;return r.jsxs("button",{onClick:()=>x(u),className:`flex flex-col items-center text-center gap-2 p-4 rounded-xl border transition-all ${p?"bg-primary text-white border-primary shadow-lg":"bg-white/5 border-white/15 hover:bg-white/10 hover:border-white/30"}`,children:[r.jsx(h,{className:"w-6 h-6",strokeWidth:1.75}),r.jsx("span",{className:"text-sm font-semibold leading-tight",children:v.label})]},u)})})]})}),r.jsx("section",{id:"formular",ref:m,className:"py-16 md:py-24 bg-white scroll-mt-24",children:r.jsx("div",{className:"container-custom max-w-6xl",children:r.jsxs("div",{className:"grid lg:grid-cols-12 gap-10 lg:gap-16",children:[r.jsxs("div",{className:"lg:col-span-7",children:[r.jsx("p",{className:"text-xs md:text-sm font-semibold tracking-[0.2em] uppercase text-primary mb-3",children:"Kontaktformular"}),r.jsx("h2",{className:"font-display text-3xl md:text-4xl font-extrabold tracking-tight text-ci-forest leading-[1.1] mb-8",children:"Schreiben Sie uns."}),r.jsxs("form",{onSubmit:b,className:"space-y-6",children:[r.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx(ie,{htmlFor:"vorname",children:"Vorname *"}),r.jsx(ge,{id:"vorname",value:d.vorname,onChange:u=>g({...d,vorname:u.target.value}),maxLength:100,className:"mt-2"}),i.vorname&&r.jsx("p",{className:"text-sm text-destructive mt-1",children:i.vorname})]}),r.jsxs("div",{children:[r.jsx(ie,{htmlFor:"name",children:"Name *"}),r.jsx(ge,{id:"name",value:d.name,onChange:u=>g({...d,name:u.target.value}),maxLength:100,className:"mt-2"}),i.name&&r.jsx("p",{className:"text-sm text-destructive mt-1",children:i.name})]})]}),r.jsxs("div",{children:[r.jsx(ie,{htmlFor:"email",children:"E-Mail *"}),r.jsx(ge,{id:"email",type:"email",value:d.email,onChange:u=>g({...d,email:u.target.value}),maxLength:255,className:"mt-2"}),i.email&&r.jsx("p",{className:"text-sm text-destructive mt-1",children:i.email})]}),r.jsxs("div",{children:[r.jsx(ie,{htmlFor:"telefon",children:"Telefon (optional)"}),r.jsx(ge,{id:"telefon",type:"tel",value:d.telefon,onChange:u=>g({...d,telefon:u.target.value}),maxLength:20,className:"mt-2"})]}),r.jsxs("div",{children:[r.jsx(ie,{htmlFor:"betreff",children:"Betreff *"}),r.jsxs(uo,{value:d.betreff,onValueChange:u=>g({...d,betreff:u}),children:[r.jsx(un,{className:"mt-2",children:r.jsx(fo,{placeholder:"Bitte wählen..."})}),r.jsxs(hn,{children:[r.jsx(ne,{value:"flaecheneigentuemer",children:"Flächeneigentümer"}),r.jsx(ne,{value:"netzbetreiber",children:"Netzbetreiber"}),r.jsx(ne,{value:"kommune",children:"Kommune"}),r.jsx(ne,{value:"energieglueck-demo",children:"Energieglück+ Demo"}),r.jsx(ne,{value:"presse",children:"Presse"}),r.jsx(ne,{value:"sonstiges",children:"Sonstiges"})]})]}),i.betreff&&r.jsx("p",{className:"text-sm text-destructive mt-1",children:i.betreff})]}),r.jsxs("div",{children:[r.jsx(ie,{htmlFor:"nachricht",children:"Nachricht *"}),r.jsx(xt,{id:"nachricht",value:d.nachricht,onChange:u=>g({...d,nachricht:u.target.value}),maxLength:1e3,className:"mt-2 min-h-[150px]",placeholder:"Ihre Nachricht an uns..."}),i.nachricht&&r.jsx("p",{className:"text-sm text-destructive mt-1",children:i.nachricht})]}),r.jsxs(et,{type:"submit",className:"btn-primary w-full md:w-auto px-12",disabled:l,children:[l?"Wird gesendet...":"Absenden",!l&&r.jsx(tt,{className:"w-4 h-4 ml-2"})]})]})]}),r.jsxs("aside",{className:"lg:col-span-5 space-y-6",children:[S&&r.jsxs("div",{className:"bg-white rounded-xl border border-border overflow-hidden",children:[r.jsx("div",{className:"h-1 bg-primary"}),r.jsxs("div",{className:"p-6",children:[r.jsx("p",{className:"text-xs font-semibold tracking-[0.2em] uppercase text-primary mb-2",children:(c=He[d.betreff])==null?void 0:c.label}
46),r.jsx("p",{className:"text-foreground/80 leading-relaxed text-[15px]",children:S})]})]}),r.jsxs("div",{className:"bg-white rounded-xl border border-border p-6",children:[r.jsx("h3",{className:"font-display text-lg font-bold text-ci-forest mb-4",children:"Energieglück Gruppe"}),r.jsxs("div",{className:"space-y-4 text-[15px]",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(On,{className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),r.jsxs("div",{className:"text-foreground/80",children:[r.jsx("p",{children:"In der Gaß 7"}),r.jsx("p",{children:"66557 Illingen"}),r.jsx("p",{children:"Deutschland"})]})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(Je,{className:"w-5 h-5 text-primary flex-shrink-0"}),r.jsx("a",{href:"mailto:[email protected]",className:"text-foreground/80 hover:text-primary transition-colors",children:"[email protected]"})]})]})]})]})]})})})]}),r.jsx(Pn,{})]})};export{Io as default};
47//# sourceMappingURL=Kontakt-5JAWt2U-.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.