@logosphere-ui/core 0.0.0-alpha.30 → 0.0.0-alpha.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/{badge-BD_MRIBd.js → badge-BJqUgXZD.js} +1 -1
  2. package/dist/{badge-BV2hTvrI.cjs → badge-COTtd1jh.cjs} +1 -1
  3. package/dist/badge.cjs +1 -1
  4. package/dist/badge.js +1 -1
  5. package/dist/{calendar-CBJ4mtlE.js → calendar-B7bSuIt4.js} +1 -1
  6. package/dist/{calendar-Coc9E6lD.cjs → calendar-DtpJBtpq.cjs} +1 -1
  7. package/dist/calendar.cjs +1 -1
  8. package/dist/calendar.js +1 -1
  9. package/dist/{chatbot-BUYrJbTR.cjs → chatbot-8etAVHNx.cjs} +1 -1
  10. package/dist/{chatbot-Cb2ByNkE.js → chatbot-p4CmxSdZ.js} +15 -15
  11. package/dist/chatbot.cjs +1 -1
  12. package/dist/chatbot.js +1 -1
  13. package/dist/{combobox-kdjsT5eX.cjs → combobox-BV4AKTqp.cjs} +1 -1
  14. package/dist/{combobox-G4TVTGS7.js → combobox-CTqEZUg6.js} +2 -2
  15. package/dist/combobox.cjs +1 -1
  16. package/dist/combobox.js +1 -1
  17. package/dist/{datepicker-Cf3gLMsu.cjs → datepicker-BCNJROwD.cjs} +1 -1
  18. package/dist/{datepicker-n5dZbuCD.js → datepicker-tJbIvNpy.js} +2 -2
  19. package/dist/datepicker.cjs +1 -1
  20. package/dist/datepicker.js +1 -1
  21. package/dist/{drawer-CViKfr6O.js → drawer-CRB8UUAo.js} +1 -1
  22. package/dist/{drawer-CjM-vX41.cjs → drawer-g6mHdpjF.cjs} +1 -1
  23. package/dist/drawer.cjs +1 -1
  24. package/dist/drawer.js +1 -1
  25. package/dist/index.cjs +1 -1
  26. package/dist/index.d.ts +1 -0
  27. package/dist/index.js +40 -38
  28. package/dist/index.umd.js +454 -286
  29. package/dist/{input-BJtn_iTC.js → input-BUX_2G5m.js} +1 -1
  30. package/dist/{input-DPTTu8ZR.cjs → input-Tkm7VBBl.cjs} +1 -1
  31. package/dist/input.cjs +1 -1
  32. package/dist/input.js +1 -1
  33. package/dist/left-menu.cjs +1 -1
  34. package/dist/left-menu.js +1 -1
  35. package/dist/{leftmenu-DpES_nr1.js → leftmenu-Cf2gC2J0.js} +3 -3
  36. package/dist/{leftmenu-RcrjiF7g.cjs → leftmenu-D0sRExqr.cjs} +1 -1
  37. package/dist/{modal-DHzMgFVY.js → modal-Cfa0imdF.js} +1 -1
  38. package/dist/{modal-CsEaHz0h.cjs → modal-DFnpqdWX.cjs} +1 -1
  39. package/dist/modal.cjs +1 -1
  40. package/dist/modal.js +1 -1
  41. package/dist/pagination-AclB9qi1.cjs +169 -0
  42. package/dist/pagination-BLNrwUSO.js +360 -0
  43. package/dist/pagination.cjs +1 -0
  44. package/dist/pagination.js +4 -0
  45. package/dist/{text-area-BztUgBL1.cjs → text-area-DCBCDtJw.cjs} +1 -1
  46. package/dist/{text-area-DUg5BGQh.js → text-area-coWx4Xn-.js} +1 -1
  47. package/dist/textarea.cjs +1 -1
  48. package/dist/textarea.js +1 -1
  49. package/dist/{timepicker-CRtoPBMn.cjs → timepicker-WxA2Uo66.cjs} +1 -1
  50. package/dist/{timepicker-BKUTi_AU.js → timepicker-rNyKCfN3.js} +2 -2
  51. package/dist/timepicker.cjs +1 -1
  52. package/dist/timepicker.js +1 -1
  53. package/dist/{toast-container-T77X56AG.cjs → toast-container-B9E_mVk6.cjs} +1 -1
  54. package/dist/{toast-container-CHrtU7X5.js → toast-container-Cb0MduXt.js} +1 -1
  55. package/dist/toast.cjs +1 -1
  56. package/dist/toast.js +1 -1
  57. package/dist/{tree-menu-5dkAPsgJ.js → tree-menu-CufITiv_.js} +1 -1
  58. package/dist/{tree-menu-CdNwvOjp.cjs → tree-menu-DuJuy5pp.cjs} +1 -1
  59. package/dist/tree-menu.cjs +1 -1
  60. package/dist/tree-menu.js +1 -1
  61. package/dist/{ui-icon-DrrH0WhF.js → ui-icon-Ctn4nGFa.js} +4 -4
  62. package/dist/{ui-icon-DKZMrOTi.cjs → ui-icon-jKyMV1zp.cjs} +2 -2
  63. package/package.json +9 -1
package/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
- (function(n,A){typeof exports=="object"&&typeof module!="undefined"?A(exports,require("dayjs")):typeof define=="function"&&define.amd?define(["exports","dayjs"],A):(n=typeof globalThis!="undefined"?globalThis:n||self,A(n.LogosphereUI={},n.dayjs))})(this,(function(n,A){"use strict";var un=Object.defineProperty,fn=Object.defineProperties;var gn=Object.getOwnPropertyDescriptors;var Or=Object.getOwnPropertySymbols;var mn=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable;var Br=(n,A,oe)=>A in n?un(n,A,{enumerable:!0,configurable:!0,writable:!0,value:oe}):n[A]=oe,_e=(n,A)=>{for(var oe in A||(A={}))mn.call(A,oe)&&Br(n,oe,A[oe]);if(Or)for(var oe of Or(A))bn.call(A,oe)&&Br(n,oe,A[oe]);return n},Ee=(n,A)=>fn(n,gn(A));var $r,kr,Cr,Sr,Er,Ar;const oe=globalThis,Gt=oe.ShadowRoot&&(oe.ShadyCSS===void 0||oe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Xt=Symbol(),$o=new WeakMap;let ko=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==Xt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Gt&&e===void 0){const o=t!==void 0&&t.length===1;o&&(e=$o.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&$o.set(t,e))}return e}toString(){return this.cssText}};const H=i=>new ko(typeof i=="string"?i:i+"",void 0,Xt),R=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((o,r,s)=>o+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+i[s+1],i[0]);return new ko(t,i,Xt)},Ir=(i,e)=>{if(Gt)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const o=document.createElement("style"),r=oe.litNonce;r!==void 0&&o.setAttribute("nonce",r),o.textContent=t.cssText,i.appendChild(o)}},Co=Gt?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const o of e.cssRules)t+=o.cssText;return H(t)})(i):i;const{is:Hr,defineProperty:Rr,getOwnPropertyDescriptor:Yr,getOwnPropertyNames:jr,getOwnPropertySymbols:Fr,getPrototypeOf:Vr}=Object,Ae=globalThis,So=Ae.trustedTypes,Nr=So?So.emptyScript:"",Jt=Ae.reactiveElementPolyfillSupport,dt=(i,e)=>i,Dt={toAttribute(i,e){switch(e){case Boolean:i=i?Nr:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch(o){t=null}}return t}},Qt=(i,e)=>!Hr(i,e),Eo={attribute:!0,type:String,converter:Dt,reflect:!1,useDefault:!1,hasChanged:Qt};($r=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(kr=Ae.litPropertyMetadata)!=null||(Ae.litPropertyMetadata=new WeakMap);let Ze=class extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Eo){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(e,o,t);r!==void 0&&Rr(this.prototype,e,r)}}static getPropertyDescriptor(e,t,o){var a;const{get:r,set:s}=(a=Yr(this.prototype,e))!=null?a:{get(){return this[t]},set(l){this[t]=l}};return{get:r,set(l){const c=r==null?void 0:r.call(this);s==null||s.call(this,l),this.requestUpdate(e,c,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:Eo}static _$Ei(){if(this.hasOwnProperty(dt("elementProperties")))return;const e=Vr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(dt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(dt("properties"))){const t=this.properties,o=[...jr(t),...Fr(t)];for(const r of o)this.createProperty(r,t[r])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[o,r]of t)this.elementProperties.set(o,r)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const r=this._$Eu(t,o);r!==void 0&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const r of o)t.unshift(Co(r))}else e!==void 0&&t.push(Co(e));return t}static _$Eu(e,t){const o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,o;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)==null||o.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var t;const e=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Ir(e,this.constructor.elementStyles),e}connectedCallback(){var e,t;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(o=>{var r;return(r=o.hostConnected)==null?void 0:r.call(o)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var o;return(o=t.hostDisconnected)==null?void 0:o.call(t)})}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$ET(e,t){var s;const o=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,o);if(r!==void 0&&o.reflect===!0){const a=(((s=o.converter)==null?void 0:s.toAttribute)!==void 0?o.converter:Dt).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(r):this.setAttribute(r,a),this._$Em=null}}_$AK(e,t){var s,a,l;const o=this.constructor,r=o._$Eh.get(e);if(r!==void 0&&this._$Em!==r){const c=o.getPropertyOptions(r),p=typeof c.converter=="function"?{fromAttribute:c.converter}:((s=c.converter)==null?void 0:s.fromAttribute)!==void 0?c.converter:Dt;this._$Em=r;const h=p.fromAttribute(t,c.type);this[r]=(l=h!=null?h:(a=this._$Ej)==null?void 0:a.get(r))!=null?l:h,this._$Em=null}}requestUpdate(e,t,o,r=!1,s){var a,l;if(e!==void 0){const c=this.constructor;if(r===!1&&(s=this[e]),o!=null||(o=c.getPropertyOptions(e)),!(((a=o.hasChanged)!=null?a:Qt)(s,t)||o.useDefault&&o.reflect&&s===((l=this._$Ej)==null?void 0:l.get(e))&&!this.hasAttribute(c._$Eu(e,o))))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:o,reflect:r,wrapped:s},a){var l,c,p;o&&!((l=this._$Ej)!=null?l:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(c=a!=null?a:t)!=null?c:this[e]),s!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(t=void 0),this._$AL.set(e,t)),r===!0&&this._$Em!==e&&((p=this._$Eq)!=null?p:this._$Eq=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o,r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,l]of this._$Ep)this[a]=l;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[a,l]of s){const{wrapped:c}=l,p=this[a];c!==!0||this._$AL.has(a)||p===void 0||this.C(a,void 0,l,p)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(r=this._$EO)==null||r.forEach(s=>{var a;return(a=s.hostUpdate)==null?void 0:a.call(s)}),this.update(t)):this._$EM()}catch(s){throw e=!1,this._$EM(),s}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(o=>{var r;return(r=o.hostUpdated)==null?void 0:r.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};Ze.elementStyles=[],Ze.shadowRootOptions={mode:"open"},Ze[dt("elementProperties")]=new Map,Ze[dt("finalized")]=new Map,Jt==null||Jt({ReactiveElement:Ze}),((Cr=Ae.reactiveElementVersions)!=null?Cr:Ae.reactiveElementVersions=[]).push("2.1.2");const ht=globalThis,Ao=i=>i,Tt=ht.trustedTypes,Mo=Tt?Tt.createPolicy("lit-html",{createHTML:i=>i}):void 0,Do="$lit$",Me=`lit$${Math.random().toFixed(9).slice(2)}$`,To="?"+Me,Ur=`<${To}>`,Be=document,pt=()=>Be.createComment(""),ut=i=>i===null||typeof i!="object"&&typeof i!="function",eo=Array.isArray,qr=i=>eo(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",to=`[
2
- \f\r]`,ft=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,zo=/-->/g,Po=/>/g,Ie=RegExp(`>|${to}(?:([^\\s"'>=/]+)(${to}*=${to}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Lo=/'/g,Oo=/"/g,Bo=/^(?:script|style|textarea|title)$/i,Zr=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),u=Zr(1),le=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),Io=new WeakMap,He=Be.createTreeWalker(Be,129);function Ho(i,e){if(!eo(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Mo!==void 0?Mo.createHTML(e):e}const Wr=(i,e)=>{const t=i.length-1,o=[];let r,s=e===2?"<svg>":e===3?"<math>":"",a=ft;for(let l=0;l<t;l++){const c=i[l];let p,h,f=-1,g=0;for(;g<c.length&&(a.lastIndex=g,h=a.exec(c),h!==null);)g=a.lastIndex,a===ft?h[1]==="!--"?a=zo:h[1]!==void 0?a=Po:h[2]!==void 0?(Bo.test(h[2])&&(r=RegExp("</"+h[2],"g")),a=Ie):h[3]!==void 0&&(a=Ie):a===Ie?h[0]===">"?(a=r!=null?r:ft,f=-1):h[1]===void 0?f=-2:(f=a.lastIndex-h[2].length,p=h[1],a=h[3]===void 0?Ie:h[3]==='"'?Oo:Lo):a===Oo||a===Lo?a=Ie:a===zo||a===Po?a=ft:(a=Ie,r=void 0);const b=a===Ie&&i[l+1].startsWith("/>")?" ":"";s+=a===ft?c+Ur:f>=0?(o.push(p),c.slice(0,f)+Do+c.slice(f)+Me+b):c+Me+(f===-2?l:b)}return[Ho(i,s+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]};class gt{constructor({strings:e,_$litType$:t},o){let r;this.parts=[];let s=0,a=0;const l=e.length-1,c=this.parts,[p,h]=Wr(e,t);if(this.el=gt.createElement(p,o),He.currentNode=this.el.content,t===2||t===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(r=He.nextNode())!==null&&c.length<l;){if(r.nodeType===1){if(r.hasAttributes())for(const f of r.getAttributeNames())if(f.endsWith(Do)){const g=h[a++],b=r.getAttribute(f).split(Me),w=/([.?@])?(.*)/.exec(g);c.push({type:1,index:s,name:w[2],strings:b,ctor:w[1]==="."?Gr:w[1]==="?"?Xr:w[1]==="@"?Jr:zt}),r.removeAttribute(f)}else f.startsWith(Me)&&(c.push({type:6,index:s}),r.removeAttribute(f));if(Bo.test(r.tagName)){const f=r.textContent.split(Me),g=f.length-1;if(g>0){r.textContent=Tt?Tt.emptyScript:"";for(let b=0;b<g;b++)r.append(f[b],pt()),He.nextNode(),c.push({type:2,index:++s});r.append(f[g],pt())}}}else if(r.nodeType===8)if(r.data===To)c.push({type:2,index:s});else{let f=-1;for(;(f=r.data.indexOf(Me,f+1))!==-1;)c.push({type:7,index:s}),f+=Me.length-1}s++}}static createElement(e,t){const o=Be.createElement("template");return o.innerHTML=e,o}}function We(i,e,t=i,o){var a,l,c;if(e===le)return e;let r=o!==void 0?(a=t._$Co)==null?void 0:a[o]:t._$Cl;const s=ut(e)?void 0:e._$litDirective$;return(r==null?void 0:r.constructor)!==s&&((l=r==null?void 0:r._$AO)==null||l.call(r,!1),s===void 0?r=void 0:(r=new s(i),r._$AT(i,t,o)),o!==void 0?((c=t._$Co)!=null?c:t._$Co=[])[o]=r:t._$Cl=r),r!==void 0&&(e=We(i,r._$AS(i,e.values),r,o)),e}class Kr{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var p;const{el:{content:t},parts:o}=this._$AD,r=((p=e==null?void 0:e.creationScope)!=null?p:Be).importNode(t,!0);He.currentNode=r;let s=He.nextNode(),a=0,l=0,c=o[0];for(;c!==void 0;){if(a===c.index){let h;c.type===2?h=new Ke(s,s.nextSibling,this,e):c.type===1?h=new c.ctor(s,c.name,c.strings,this,e):c.type===6&&(h=new Qr(s,this,e)),this._$AV.push(h),c=o[++l]}a!==(c==null?void 0:c.index)&&(s=He.nextNode(),a++)}return He.currentNode=Be,r}p(e){let t=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}}class Ke{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,o,r){var s;this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=r,this._$Cv=(s=r==null?void 0:r.isConnected)!=null?s:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=We(this,e,t),ut(e)?e===v||e==null||e===""?(this._$AH!==v&&this._$AR(),this._$AH=v):e!==this._$AH&&e!==le&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):qr(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==v&&ut(this._$AH)?this._$AA.nextSibling.data=e:this.T(Be.createTextNode(e)),this._$AH=e}$(e){var s;const{values:t,_$litType$:o}=e,r=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=gt.createElement(Ho(o.h,o.h[0]),this.options)),o);if(((s=this._$AH)==null?void 0:s._$AD)===r)this._$AH.p(t);else{const a=new Kr(r,this),l=a.u(this.options);a.p(t),this.T(l),this._$AH=a}}_$AC(e){let t=Io.get(e.strings);return t===void 0&&Io.set(e.strings,t=new gt(e)),t}k(e){eo(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let o,r=0;for(const s of e)r===t.length?t.push(o=new Ke(this.O(pt()),this.O(pt()),this,this.options)):o=t[r],o._$AI(s),r++;r<t.length&&(this._$AR(o&&o._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var o;for((o=this._$AP)==null?void 0:o.call(this,!1,!0,t);e!==this._$AB;){const r=Ao(e).nextSibling;Ao(e).remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class zt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,r,s){this.type=1,this._$AH=v,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=s,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=v}_$AI(e,t=this,o,r){const s=this.strings;let a=!1;if(s===void 0)e=We(this,e,t,0),a=!ut(e)||e!==this._$AH&&e!==le,a&&(this._$AH=e);else{const l=e;let c,p;for(e=s[0],c=0;c<s.length-1;c++)p=We(this,l[o+c],t,c),p===le&&(p=this._$AH[c]),a||(a=!ut(p)||p!==this._$AH[c]),p===v?e=v:e!==v&&(e+=(p!=null?p:"")+s[c+1]),this._$AH[c]=p}a&&!r&&this.j(e)}j(e){e===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Gr extends zt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===v?void 0:e}}class Xr extends zt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==v)}}class Jr extends zt{constructor(e,t,o,r,s){super(e,t,o,r,s),this.type=5}_$AI(e,t=this){var a;if((e=(a=We(this,e,t,0))!=null?a:v)===le)return;const o=this._$AH,r=e===v&&o!==v||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,s=e!==v&&(o===v||r);r&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,o;typeof this._$AH=="function"?this._$AH.call((o=(t=this.options)==null?void 0:t.host)!=null?o:this.element,e):this._$AH.handleEvent(e)}}class Qr{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){We(this,e)}}const ei={I:Ke},oo=ht.litHtmlPolyfillSupport;oo==null||oo(gt,Ke),((Sr=ht.litHtmlVersions)!=null?Sr:ht.litHtmlVersions=[]).push("3.3.2");const ti=(i,e,t)=>{var s,a;const o=(s=t==null?void 0:t.renderBefore)!=null?s:e;let r=o._$litPart$;if(r===void 0){const l=(a=t==null?void 0:t.renderBefore)!=null?a:null;o._$litPart$=r=new Ke(e.insertBefore(pt(),l),l,void 0,t!=null?t:{})}return r._$AI(i),r};const Re=globalThis;let D=class extends Ze{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,o;const e=super.createRenderRoot();return(o=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ti(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return le}};D._$litElement$=!0,D.finalized=!0,(Er=Re.litElementHydrateSupport)==null||Er.call(Re,{LitElement:D});const ro=Re.litElementPolyfillSupport;ro==null||ro({LitElement:D}),((Ar=Re.litElementVersions)!=null?Ar:Re.litElementVersions=[]).push("4.2.2");const V=i=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(i,e)}):customElements.define(i,e)};const oi={attribute:!0,type:String,converter:Dt,reflect:!1,hasChanged:Qt},ri=(i=oi,e,t)=>{const{kind:o,metadata:r}=t;let s=globalThis.litPropertyMetadata.get(r);if(s===void 0&&globalThis.litPropertyMetadata.set(r,s=new Map),o==="setter"&&((i=Object.create(i)).wrapped=!0),s.set(t.name,i),o==="accessor"){const{name:a}=t;return{set(l){const c=e.get.call(this);e.set.call(this,l),this.requestUpdate(a,c,i,!0,l)},init(l){return l!==void 0&&this.C(a,void 0,i,l),l}}}if(o==="setter"){const{name:a}=t;return function(l){const c=this[a];e.call(this,l),this.requestUpdate(a,c,i,!0,l)}}throw Error("Unsupported decorator location: "+o)};function d(i){return(e,t)=>typeof t=="object"?ri(i,e,t):((o,r,s)=>{const a=r.hasOwnProperty(s);return r.constructor.createProperty(s,o),a?Object.getOwnPropertyDescriptor(r,s):void 0})(i,e,t)}function y(i){return d(Ee(_e({},i),{state:!0,attribute:!1}))}const ii=(i,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(i,e,t),t);function Z(i,e){return(t,o,r)=>{const s=a=>{var l,c;return(c=(l=a.renderRoot)==null?void 0:l.querySelector(i))!=null?c:null};return ii(t,o,{get(){return s(this)}})}}const si='.button{display:inline-flex;align-items:center;justify-content:center;font-family:var(--font-family-base);font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);line-height:1.25rem;letter-spacing:-.14px;border:none;border-radius:var(--radius-base);cursor:pointer;transition:all var(--transition-speed-base) var(--transition-timing);gap:var(--spacing-1);white-space:nowrap;-webkit-user-select:none;user-select:none;outline:none;text-decoration:none;box-sizing:border-box}.button:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.button ::slotted(*){display:inline-flex;align-items:center;vertical-align:middle}.button ::slotted(i),.button ::slotted([class^="uil-"]),.button ::slotted([class*=" uil-"]){font-size:1rem;line-height:1;flex-shrink:0}.button--sm{padding:var(--spacing-0-5) var(--spacing-2)}.button--sm.button--icon-only{min-height:24px;width:24px;padding:0}.button--md{padding:var(--spacing-1-5) var(--spacing-3)}.button--md.button--icon-only{min-height:32px;width:32px;padding:0}.button--lg{padding:var(--spacing-2-5) var(--spacing-3)}.button--lg.button--icon-only{min-height:40px;width:40px;padding:0}.button--solid.button--primary{background-color:var(--color-primary);color:var(--color-primary-color, #ffffff)}.button--solid.button--primary:hover:not(:disabled){background-color:var(--color-primary-hover)}.button--solid.button--primary:active:not(:disabled){background-color:var(--color-primary-active)}.button--solid.button--primary:disabled{background-color:var(--color-primary-disabled);cursor:not-allowed;pointer-events:none}.button--solid.button--secondary{background-color:var(--color-secondary);color:var(--color-secondary-color)}.button--solid.button--secondary:hover:not(:disabled){background-color:var(--color-secondary-hover)}.button--solid.button--secondary:active:not(:disabled){background-color:var(--color-secondary-active)}.button--solid.button--secondary:disabled{background-color:var(--color-secondary-disabled);cursor:not-allowed;pointer-events:none}.button--solid.button--success{background-color:var(--color-success);color:var(--color-secondary-color)}.button--solid.button--success:hover:not(:disabled){background-color:var(--color-success-hover)}.button--solid.button--success:active:not(:disabled){background-color:var(--color-success-active)}.button--solid.button--success:disabled{background-color:var(--color-success-disabled);cursor:not-allowed;pointer-events:none}.button--solid.button--danger{background-color:var(--color-danger);color:var(--color-secondary-color)}.button--solid.button--danger:hover:not(:disabled){background-color:var(--color-danger-hover)}.button--solid.button--danger:active:not(:disabled){background-color:var(--color-danger-active)}.button--solid.button--danger:disabled{background-color:var(--color-danger-disabled);cursor:not-allowed;pointer-events:none}.button--solid.button--info{background-color:var(--color-info);color:var(--color-secondary-color)}.button--solid.button--info:hover:not(:disabled){background-color:var(--color-info-hover)}.button--solid.button--info:active:not(:disabled){background-color:var(--color-info-active)}.button--solid.button--info:disabled{background-color:var(--color-info-disabled);cursor:not-allowed;pointer-events:none}.button--solid.button--warning{background-color:var(--color-warning);color:var(--color-secondary-color)}.button--solid.button--warning:hover:not(:disabled){background-color:var(--color-warning-hover)}.button--solid.button--warning:active:not(:disabled){background-color:var(--color-warning-active)}.button--solid.button--warning:disabled{background-color:var(--color-warning-disabled);cursor:not-allowed;pointer-events:none}.button--outline{font-weight:var(--font-weight-medium);border:1px solid var(--color-border);background-color:var(--color-body-bg)}.button--outline:hover:not(:disabled){background-color:var(--color-body-bg-hover)}.button--outline:active:not(:disabled){background-color:var(--color-body-bg-active)}.button--outline:disabled{cursor:not-allowed;pointer-events:none;opacity:.5}.button--outline.button--primary{color:var(--color-primary);border-color:var(--color-border)}.button--outline.button--primary:disabled{color:var(--color-primary-disabled);border-color:var(--color-primary-disabled);opacity:1}.button--outline.button--secondary{color:var(--color-secondary);border-color:var(--color-border)}.button--outline.button--secondary:disabled{color:var(--color-secondary-disabled);border-color:var(--color-secondary-border-subtle);opacity:1}.button--outline.button--success{color:var(--color-success);border-color:var(--color-success-border)}.button--outline.button--success:disabled{color:var(--color-success-disabled);border-color:var(--color-success-border-subtle);opacity:1}.button--outline.button--danger{color:var(--color-danger);border-color:var(--color-danger-border)}.button--outline.button--danger:disabled{color:var(--color-danger-disabled);border-color:var(--color-danger-disabled);opacity:1}.button--outline.button--info{color:var(--color-info);border-color:var(--color-info-border)}.button--outline.button--info:disabled{color:var(--color-info-disabled);border-color:var(--color-info-border-subtle);opacity:1}.button--outline.button--warning{color:var(--color-warning-emphasis);border-color:var(--color-warning-border)}.button--outline.button--warning:disabled{color:var(--color-warning-disabled);border-color:var(--color-warning-border-subtle);opacity:1}.button--text{font-weight:var(--font-weight-medium);background-color:transparent;border:none}.button--text:hover:not(:disabled){background-color:var(--color-body-bg-hover)}.button--text:active:not(:disabled){background-color:var(--color-body-bg-active)}.button--text:disabled{cursor:not-allowed;pointer-events:none;opacity:.5}.button--text{background-color:transparent;border:none}.button--text.button--primary{color:var(--color-primary)}.button--text.button--primary:disabled{color:var(--color-primary-disabled);opacity:1}.button--text.button--secondary{color:var(--color-secondary)}.button--text.button--secondary:disabled{color:var(--color-secondary-disabled);opacity:1}.button--text.button--success{color:var(--color-success)}.button--text.button--success:disabled{color:var(--color-success-disabled);opacity:1}.button--text.button--danger{color:var(--color-danger)}.button--text.button--danger:disabled{color:var(--color-danger-disabled);opacity:1}.button--text.button--info{color:var(--color-info)}.button--text.button--info:disabled{color:var(--color-info-disabled);opacity:1}.button--text.button--warning{color:var(--color-warning-emphasis)}.button--text.button--warning:disabled{color:var(--color-warning-disabled);opacity:1}';var ai=Object.defineProperty,ni=Object.getOwnPropertyDescriptor,Ge=(i,e,t,o)=>{for(var r=o>1?void 0:o?ni(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&ai(e,t,r),r};n.Button=class extends D{constructor(){super(...arguments),this.variant="solid",this.size="md",this.theme="primary",this.iconOnly=!1,this.disabled=!1}getButtonClasses(){const e=["button",`button--${this.variant}`,`button--${this.size}`,`button--${this.theme}`];return this.iconOnly&&e.push("button--icon-only"),e.join(" ")}render(){return u`
1
+ (function(n,A){typeof exports=="object"&&typeof module!="undefined"?A(exports,require("dayjs")):typeof define=="function"&&define.amd?define(["exports","dayjs"],A):(n=typeof globalThis!="undefined"?globalThis:n||self,A(n.LogosphereUI={},n.dayjs))})(this,(function(n,A){"use strict";var vn=Object.defineProperty,_n=Object.defineProperties;var yn=Object.getOwnPropertyDescriptors;var Hr=Object.getOwnPropertySymbols;var wn=Object.prototype.hasOwnProperty,xn=Object.prototype.propertyIsEnumerable;var Rr=(n,A,re)=>A in n?vn(n,A,{enumerable:!0,configurable:!0,writable:!0,value:re}):n[A]=re,we=(n,A)=>{for(var re in A||(A={}))wn.call(A,re)&&Rr(n,re,A[re]);if(Hr)for(var re of Hr(A))xn.call(A,re)&&Rr(n,re,A[re]);return n},Pe=(n,A)=>_n(n,yn(A));var Sr,Er,Ar,Pr,Mr,zr;const re=globalThis,Qt=re.ShadowRoot&&(re.ShadyCSS===void 0||re.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,eo=Symbol(),So=new WeakMap;let Eo=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==eo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Qt&&e===void 0){const o=t!==void 0&&t.length===1;o&&(e=So.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&So.set(t,e))}return e}toString(){return this.cssText}};const I=i=>new Eo(typeof i=="string"?i:i+"",void 0,eo),H=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((o,r,a)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+i[a+1],i[0]);return new Eo(t,i,eo)},Yr=(i,e)=>{if(Qt)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const o=document.createElement("style"),r=re.litNonce;r!==void 0&&o.setAttribute("nonce",r),o.textContent=t.cssText,i.appendChild(o)}},Ao=Qt?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const o of e.cssRules)t+=o.cssText;return I(t)})(i):i;const{is:jr,defineProperty:Nr,getOwnPropertyDescriptor:Vr,getOwnPropertyNames:Fr,getOwnPropertySymbols:Ur,getPrototypeOf:qr}=Object,Me=globalThis,Po=Me.trustedTypes,Zr=Po?Po.emptyScript:"",to=Me.reactiveElementPolyfillSupport,pt=(i,e)=>i,Dt={toAttribute(i,e){switch(e){case Boolean:i=i?Zr:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch(o){t=null}}return t}},oo=(i,e)=>!jr(i,e),Mo={attribute:!0,type:String,converter:Dt,reflect:!1,useDefault:!1,hasChanged:oo};(Sr=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Er=Me.litPropertyMetadata)!=null||(Me.litPropertyMetadata=new WeakMap);let Ke=class extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Mo){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(e,o,t);r!==void 0&&Nr(this.prototype,e,r)}}static getPropertyDescriptor(e,t,o){var s;const{get:r,set:a}=(s=Vr(this.prototype,e))!=null?s:{get(){return this[t]},set(l){this[t]=l}};return{get:r,set(l){const c=r==null?void 0:r.call(this);a==null||a.call(this,l),this.requestUpdate(e,c,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:Mo}static _$Ei(){if(this.hasOwnProperty(pt("elementProperties")))return;const e=qr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(pt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pt("properties"))){const t=this.properties,o=[...Fr(t),...Ur(t)];for(const r of o)this.createProperty(r,t[r])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[o,r]of t)this.elementProperties.set(o,r)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const r=this._$Eu(t,o);r!==void 0&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const r of o)t.unshift(Ao(r))}else e!==void 0&&t.push(Ao(e));return t}static _$Eu(e,t){const o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,o;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)==null||o.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var t;const e=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Yr(e,this.constructor.elementStyles),e}connectedCallback(){var e,t;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(o=>{var r;return(r=o.hostConnected)==null?void 0:r.call(o)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var o;return(o=t.hostDisconnected)==null?void 0:o.call(t)})}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$ET(e,t){var a;const o=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,o);if(r!==void 0&&o.reflect===!0){const s=(((a=o.converter)==null?void 0:a.toAttribute)!==void 0?o.converter:Dt).toAttribute(t,o.type);this._$Em=e,s==null?this.removeAttribute(r):this.setAttribute(r,s),this._$Em=null}}_$AK(e,t){var a,s,l;const o=this.constructor,r=o._$Eh.get(e);if(r!==void 0&&this._$Em!==r){const c=o.getPropertyOptions(r),u=typeof c.converter=="function"?{fromAttribute:c.converter}:((a=c.converter)==null?void 0:a.fromAttribute)!==void 0?c.converter:Dt;this._$Em=r;const h=u.fromAttribute(t,c.type);this[r]=(l=h!=null?h:(s=this._$Ej)==null?void 0:s.get(r))!=null?l:h,this._$Em=null}}requestUpdate(e,t,o,r=!1,a){var s,l;if(e!==void 0){const c=this.constructor;if(r===!1&&(a=this[e]),o!=null||(o=c.getPropertyOptions(e)),!(((s=o.hasChanged)!=null?s:oo)(a,t)||o.useDefault&&o.reflect&&a===((l=this._$Ej)==null?void 0:l.get(e))&&!this.hasAttribute(c._$Eu(e,o))))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:o,reflect:r,wrapped:a},s){var l,c,u;o&&!((l=this._$Ej)!=null?l:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(c=s!=null?s:t)!=null?c:this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(t=void 0),this._$AL.set(e,t)),r===!0&&this._$Em!==e&&((u=this._$Eq)!=null?u:this._$Eq=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o,r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}const a=this.constructor.elementProperties;if(a.size>0)for(const[s,l]of a){const{wrapped:c}=l,u=this[s];c!==!0||this._$AL.has(s)||u===void 0||this.C(s,void 0,l,u)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(r=this._$EO)==null||r.forEach(a=>{var s;return(s=a.hostUpdate)==null?void 0:s.call(a)}),this.update(t)):this._$EM()}catch(a){throw e=!1,this._$EM(),a}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(o=>{var r;return(r=o.hostUpdated)==null?void 0:r.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};Ke.elementStyles=[],Ke.shadowRootOptions={mode:"open"},Ke[pt("elementProperties")]=new Map,Ke[pt("finalized")]=new Map,to==null||to({ReactiveElement:Ke}),((Ar=Me.reactiveElementVersions)!=null?Ar:Me.reactiveElementVersions=[]).push("2.1.2");const ut=globalThis,zo=i=>i,Tt=ut.trustedTypes,Do=Tt?Tt.createPolicy("lit-html",{createHTML:i=>i}):void 0,To="$lit$",ze=`lit$${Math.random().toFixed(9).slice(2)}$`,Lo="?"+ze,Wr=`<${Lo}>`,He=document,ft=()=>He.createComment(""),gt=i=>i===null||typeof i!="object"&&typeof i!="function",ro=Array.isArray,Kr=i=>ro(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",io=`[
2
+ \f\r]`,mt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Oo=/-->/g,Bo=/>/g,Re=RegExp(`>|${io}(?:([^\\s"'>=/]+)(${io}*=${io}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Io=/'/g,Ho=/"/g,Ro=/^(?:script|style|textarea|title)$/i,Gr=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),p=Gr(1),de=Symbol.for("lit-noChange"),b=Symbol.for("lit-nothing"),Yo=new WeakMap,Ye=He.createTreeWalker(He,129);function jo(i,e){if(!ro(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Do!==void 0?Do.createHTML(e):e}const Xr=(i,e)=>{const t=i.length-1,o=[];let r,a=e===2?"<svg>":e===3?"<math>":"",s=mt;for(let l=0;l<t;l++){const c=i[l];let u,h,f=-1,g=0;for(;g<c.length&&(s.lastIndex=g,h=s.exec(c),h!==null);)g=s.lastIndex,s===mt?h[1]==="!--"?s=Oo:h[1]!==void 0?s=Bo:h[2]!==void 0?(Ro.test(h[2])&&(r=RegExp("</"+h[2],"g")),s=Re):h[3]!==void 0&&(s=Re):s===Re?h[0]===">"?(s=r!=null?r:mt,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,u=h[1],s=h[3]===void 0?Re:h[3]==='"'?Ho:Io):s===Ho||s===Io?s=Re:s===Oo||s===Bo?s=mt:(s=Re,r=void 0);const v=s===Re&&i[l+1].startsWith("/>")?" ":"";a+=s===mt?c+Wr:f>=0?(o.push(u),c.slice(0,f)+To+c.slice(f)+ze+v):c+ze+(f===-2?l:v)}return[jo(i,a+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]};class bt{constructor({strings:e,_$litType$:t},o){let r;this.parts=[];let a=0,s=0;const l=e.length-1,c=this.parts,[u,h]=Xr(e,t);if(this.el=bt.createElement(u,o),Ye.currentNode=this.el.content,t===2||t===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(r=Ye.nextNode())!==null&&c.length<l;){if(r.nodeType===1){if(r.hasAttributes())for(const f of r.getAttributeNames())if(f.endsWith(To)){const g=h[s++],v=r.getAttribute(f).split(ze),w=/([.?@])?(.*)/.exec(g);c.push({type:1,index:a,name:w[2],strings:v,ctor:w[1]==="."?Qr:w[1]==="?"?ei:w[1]==="@"?ti:Lt}),r.removeAttribute(f)}else f.startsWith(ze)&&(c.push({type:6,index:a}),r.removeAttribute(f));if(Ro.test(r.tagName)){const f=r.textContent.split(ze),g=f.length-1;if(g>0){r.textContent=Tt?Tt.emptyScript:"";for(let v=0;v<g;v++)r.append(f[v],ft()),Ye.nextNode(),c.push({type:2,index:++a});r.append(f[g],ft())}}}else if(r.nodeType===8)if(r.data===Lo)c.push({type:2,index:a});else{let f=-1;for(;(f=r.data.indexOf(ze,f+1))!==-1;)c.push({type:7,index:a}),f+=ze.length-1}a++}}static createElement(e,t){const o=He.createElement("template");return o.innerHTML=e,o}}function Ge(i,e,t=i,o){var s,l,c;if(e===de)return e;let r=o!==void 0?(s=t._$Co)==null?void 0:s[o]:t._$Cl;const a=gt(e)?void 0:e._$litDirective$;return(r==null?void 0:r.constructor)!==a&&((l=r==null?void 0:r._$AO)==null||l.call(r,!1),a===void 0?r=void 0:(r=new a(i),r._$AT(i,t,o)),o!==void 0?((c=t._$Co)!=null?c:t._$Co=[])[o]=r:t._$Cl=r),r!==void 0&&(e=Ge(i,r._$AS(i,e.values),r,o)),e}class Jr{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var u;const{el:{content:t},parts:o}=this._$AD,r=((u=e==null?void 0:e.creationScope)!=null?u:He).importNode(t,!0);Ye.currentNode=r;let a=Ye.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let h;c.type===2?h=new Xe(a,a.nextSibling,this,e):c.type===1?h=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(h=new oi(a,this,e)),this._$AV.push(h),c=o[++l]}s!==(c==null?void 0:c.index)&&(a=Ye.nextNode(),s++)}return Ye.currentNode=He,r}p(e){let t=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}}class Xe{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,o,r){var a;this.type=2,this._$AH=b,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=r,this._$Cv=(a=r==null?void 0:r.isConnected)!=null?a:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ge(this,e,t),gt(e)?e===b||e==null||e===""?(this._$AH!==b&&this._$AR(),this._$AH=b):e!==this._$AH&&e!==de&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Kr(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==b&&gt(this._$AH)?this._$AA.nextSibling.data=e:this.T(He.createTextNode(e)),this._$AH=e}$(e){var a;const{values:t,_$litType$:o}=e,r=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=bt.createElement(jo(o.h,o.h[0]),this.options)),o);if(((a=this._$AH)==null?void 0:a._$AD)===r)this._$AH.p(t);else{const s=new Jr(r,this),l=s.u(this.options);s.p(t),this.T(l),this._$AH=s}}_$AC(e){let t=Yo.get(e.strings);return t===void 0&&Yo.set(e.strings,t=new bt(e)),t}k(e){ro(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let o,r=0;for(const a of e)r===t.length?t.push(o=new Xe(this.O(ft()),this.O(ft()),this,this.options)):o=t[r],o._$AI(a),r++;r<t.length&&(this._$AR(o&&o._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var o;for((o=this._$AP)==null?void 0:o.call(this,!1,!0,t);e!==this._$AB;){const r=zo(e).nextSibling;zo(e).remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Lt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,r,a){this.type=1,this._$AH=b,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=b}_$AI(e,t=this,o,r){const a=this.strings;let s=!1;if(a===void 0)e=Ge(this,e,t,0),s=!gt(e)||e!==this._$AH&&e!==de,s&&(this._$AH=e);else{const l=e;let c,u;for(e=a[0],c=0;c<a.length-1;c++)u=Ge(this,l[o+c],t,c),u===de&&(u=this._$AH[c]),s||(s=!gt(u)||u!==this._$AH[c]),u===b?e=b:e!==b&&(e+=(u!=null?u:"")+a[c+1]),this._$AH[c]=u}s&&!r&&this.j(e)}j(e){e===b?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Qr extends Lt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===b?void 0:e}}class ei extends Lt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==b)}}class ti extends Lt{constructor(e,t,o,r,a){super(e,t,o,r,a),this.type=5}_$AI(e,t=this){var s;if((e=(s=Ge(this,e,t,0))!=null?s:b)===de)return;const o=this._$AH,r=e===b&&o!==b||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==b&&(o===b||r);r&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,o;typeof this._$AH=="function"?this._$AH.call((o=(t=this.options)==null?void 0:t.host)!=null?o:this.element,e):this._$AH.handleEvent(e)}}class oi{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){Ge(this,e)}}const ri={I:Xe},ao=ut.litHtmlPolyfillSupport;ao==null||ao(bt,Xe),((Pr=ut.litHtmlVersions)!=null?Pr:ut.litHtmlVersions=[]).push("3.3.2");const ii=(i,e,t)=>{var a,s;const o=(a=t==null?void 0:t.renderBefore)!=null?a:e;let r=o._$litPart$;if(r===void 0){const l=(s=t==null?void 0:t.renderBefore)!=null?s:null;o._$litPart$=r=new Xe(e.insertBefore(ft(),l),l,void 0,t!=null?t:{})}return r._$AI(i),r};const je=globalThis;let P=class extends Ke{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,o;const e=super.createRenderRoot();return(o=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ii(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return de}};P._$litElement$=!0,P.finalized=!0,(Mr=je.litElementHydrateSupport)==null||Mr.call(je,{LitElement:P});const so=je.litElementPolyfillSupport;so==null||so({LitElement:P}),((zr=je.litElementVersions)!=null?zr:je.litElementVersions=[]).push("4.2.2");const V=i=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(i,e)}):customElements.define(i,e)};const ai={attribute:!0,type:String,converter:Dt,reflect:!1,hasChanged:oo},si=(i=ai,e,t)=>{const{kind:o,metadata:r}=t;let a=globalThis.litPropertyMetadata.get(r);if(a===void 0&&globalThis.litPropertyMetadata.set(r,a=new Map),o==="setter"&&((i=Object.create(i)).wrapped=!0),a.set(t.name,i),o==="accessor"){const{name:s}=t;return{set(l){const c=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,c,i,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,i,l),l}}}if(o==="setter"){const{name:s}=t;return function(l){const c=this[s];e.call(this,l),this.requestUpdate(s,c,i,!0,l)}}throw Error("Unsupported decorator location: "+o)};function d(i){return(e,t)=>typeof t=="object"?si(i,e,t):((o,r,a)=>{const s=r.hasOwnProperty(a);return r.constructor.createProperty(a,o),s?Object.getOwnPropertyDescriptor(r,a):void 0})(i,e,t)}function y(i){return d(Pe(we({},i),{state:!0,attribute:!1}))}const ni=(i,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(i,e,t),t);function Z(i,e){return(t,o,r)=>{const a=s=>{var l,c;return(c=(l=s.renderRoot)==null?void 0:l.querySelector(i))!=null?c:null};return ni(t,o,{get(){return a(this)}})}}const li='.button{display:inline-flex;align-items:center;justify-content:center;font-family:var(--font-family-base);font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);line-height:1.25rem;letter-spacing:-.14px;border:none;border-radius:var(--radius-base);cursor:pointer;transition:all var(--transition-speed-base) var(--transition-timing);gap:var(--spacing-1);white-space:nowrap;-webkit-user-select:none;user-select:none;outline:none;text-decoration:none;box-sizing:border-box}.button:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.button ::slotted(*){display:inline-flex;align-items:center;vertical-align:middle}.button ::slotted(i),.button ::slotted([class^="uil-"]),.button ::slotted([class*=" uil-"]){font-size:1rem;line-height:1;flex-shrink:0}.button--sm{padding:var(--spacing-0-5) var(--spacing-2)}.button--sm.button--icon-only{min-height:24px;width:24px;padding:0}.button--md{padding:var(--spacing-1-5) var(--spacing-3)}.button--md.button--icon-only{min-height:32px;width:32px;padding:0}.button--lg{padding:var(--spacing-2-5) var(--spacing-3)}.button--lg.button--icon-only{min-height:40px;width:40px;padding:0}.button--solid.button--primary{background-color:var(--color-primary);color:var(--color-primary-color, #ffffff)}.button--solid.button--primary:hover:not(:disabled){background-color:var(--color-primary-hover)}.button--solid.button--primary:active:not(:disabled){background-color:var(--color-primary-active)}.button--solid.button--primary:disabled{background-color:var(--color-primary-disabled);cursor:not-allowed;pointer-events:none}.button--solid.button--secondary{background-color:var(--color-secondary);color:var(--color-secondary-color)}.button--solid.button--secondary:hover:not(:disabled){background-color:var(--color-secondary-hover)}.button--solid.button--secondary:active:not(:disabled){background-color:var(--color-secondary-active)}.button--solid.button--secondary:disabled{background-color:var(--color-secondary-disabled);cursor:not-allowed;pointer-events:none}.button--solid.button--success{background-color:var(--color-success);color:var(--color-secondary-color)}.button--solid.button--success:hover:not(:disabled){background-color:var(--color-success-hover)}.button--solid.button--success:active:not(:disabled){background-color:var(--color-success-active)}.button--solid.button--success:disabled{background-color:var(--color-success-disabled);cursor:not-allowed;pointer-events:none}.button--solid.button--danger{background-color:var(--color-danger);color:var(--color-secondary-color)}.button--solid.button--danger:hover:not(:disabled){background-color:var(--color-danger-hover)}.button--solid.button--danger:active:not(:disabled){background-color:var(--color-danger-active)}.button--solid.button--danger:disabled{background-color:var(--color-danger-disabled);cursor:not-allowed;pointer-events:none}.button--solid.button--info{background-color:var(--color-info);color:var(--color-secondary-color)}.button--solid.button--info:hover:not(:disabled){background-color:var(--color-info-hover)}.button--solid.button--info:active:not(:disabled){background-color:var(--color-info-active)}.button--solid.button--info:disabled{background-color:var(--color-info-disabled);cursor:not-allowed;pointer-events:none}.button--solid.button--warning{background-color:var(--color-warning);color:var(--color-secondary-color)}.button--solid.button--warning:hover:not(:disabled){background-color:var(--color-warning-hover)}.button--solid.button--warning:active:not(:disabled){background-color:var(--color-warning-active)}.button--solid.button--warning:disabled{background-color:var(--color-warning-disabled);cursor:not-allowed;pointer-events:none}.button--outline{font-weight:var(--font-weight-medium);border:1px solid var(--color-border);background-color:var(--color-body-bg)}.button--outline:hover:not(:disabled){background-color:var(--color-body-bg-hover)}.button--outline:active:not(:disabled){background-color:var(--color-body-bg-active)}.button--outline:disabled{cursor:not-allowed;pointer-events:none;opacity:.5}.button--outline.button--primary{color:var(--color-primary);border-color:var(--color-border)}.button--outline.button--primary:disabled{color:var(--color-primary-disabled);border-color:var(--color-primary-disabled);opacity:1}.button--outline.button--secondary{color:var(--color-secondary);border-color:var(--color-border)}.button--outline.button--secondary:disabled{color:var(--color-secondary-disabled);border-color:var(--color-secondary-border-subtle);opacity:1}.button--outline.button--success{color:var(--color-success);border-color:var(--color-success-border)}.button--outline.button--success:disabled{color:var(--color-success-disabled);border-color:var(--color-success-border-subtle);opacity:1}.button--outline.button--danger{color:var(--color-danger);border-color:var(--color-danger-border)}.button--outline.button--danger:disabled{color:var(--color-danger-disabled);border-color:var(--color-danger-disabled);opacity:1}.button--outline.button--info{color:var(--color-info);border-color:var(--color-info-border)}.button--outline.button--info:disabled{color:var(--color-info-disabled);border-color:var(--color-info-border-subtle);opacity:1}.button--outline.button--warning{color:var(--color-warning-emphasis);border-color:var(--color-warning-border)}.button--outline.button--warning:disabled{color:var(--color-warning-disabled);border-color:var(--color-warning-border-subtle);opacity:1}.button--text{font-weight:var(--font-weight-medium);background-color:transparent;border:none}.button--text:hover:not(:disabled){background-color:var(--color-body-bg-hover)}.button--text:active:not(:disabled){background-color:var(--color-body-bg-active)}.button--text:disabled{cursor:not-allowed;pointer-events:none;opacity:.5}.button--text{background-color:transparent;border:none}.button--text.button--primary{color:var(--color-primary)}.button--text.button--primary:disabled{color:var(--color-primary-disabled);opacity:1}.button--text.button--secondary{color:var(--color-secondary)}.button--text.button--secondary:disabled{color:var(--color-secondary-disabled);opacity:1}.button--text.button--success{color:var(--color-success)}.button--text.button--success:disabled{color:var(--color-success-disabled);opacity:1}.button--text.button--danger{color:var(--color-danger)}.button--text.button--danger:disabled{color:var(--color-danger-disabled);opacity:1}.button--text.button--info{color:var(--color-info)}.button--text.button--info:disabled{color:var(--color-info-disabled);opacity:1}.button--text.button--warning{color:var(--color-warning-emphasis)}.button--text.button--warning:disabled{color:var(--color-warning-disabled);opacity:1}';var ci=Object.defineProperty,di=Object.getOwnPropertyDescriptor,Je=(i,e,t,o)=>{for(var r=o>1?void 0:o?di(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&ci(e,t,r),r};n.Button=class extends P{constructor(){super(...arguments),this.variant="solid",this.size="md",this.theme="primary",this.iconOnly=!1,this.disabled=!1}getButtonClasses(){const e=["button",`button--${this.variant}`,`button--${this.size}`,`button--${this.theme}`];return this.iconOnly&&e.push("button--icon-only"),e.join(" ")}render(){return p`
4
4
  <button
5
5
  class="${this.getButtonClasses()}"
6
6
  ?disabled="${this.disabled}"
@@ -9,14 +9,14 @@
9
9
  <slot></slot>
10
10
  <slot name="suffix"></slot>
11
11
  </button>
12
- `}},n.Button.styles=[R`${H(si)}`],Ge([d({type:String})],n.Button.prototype,"variant",2),Ge([d({type:String})],n.Button.prototype,"size",2),Ge([d({type:String})],n.Button.prototype,"theme",2),Ge([d({type:Boolean})],n.Button.prototype,"iconOnly",2),Ge([d({type:Boolean})],n.Button.prototype,"disabled",2),n.Button=Ge([V("logosphere-button")],n.Button);const li=".badge{display:inline-flex;align-items:center;gap:var(--spacing-1);font-family:var(--font-family-base);font-size:11px;font-weight:var(--font-weight-medium);line-height:1rem;letter-spacing:-.11px;border-radius:var(--radius-base);white-space:nowrap;-webkit-user-select:none;user-select:none}.badge--default-size{min-height:24px;max-height:24px;padding:var(--spacing-0) var(--spacing-2)}.badge--small{min-height:16px;max-height:16px;padding:0 var(--spacing-2)}.badge--round{border-radius:var(--radius-full)}.badge--primary{background-color:var(--color-primary);color:var(--color-secondary-color, #ffffff)}.badge--default{background-color:var(--color-light-bg-2);color:var(--color-secondary)}.badge--warning{background-color:var( --color-warning-subtle);color:var(--color-warning-emphasis)}.badge--success{background-color:var(--color-success-subtle);color:var(--color-success-emphasis)}.badge--danger{background-color:var(--color-danger-subtle);color:var(--color-danger)}.badge--info{background-color:var(--color-info-subtle);color:var(--color-info-emphasis)}.badge--purple{background-color:var(--color-commercial-subtle);color:var(--color-commercial-emphasis)}.badge__close{display:inline-flex;align-items:center;justify-content:center;margin-left:var(--spacing-1);padding:0;background:none;border:none;cursor:pointer;color:inherit;opacity:.75;transition:opacity var(--transition-speed-fast) var(--transition-timing);line-height:1}.badge__close:hover{opacity:1}.badge__close:focus{outline:none;opacity:1}";const ye={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4},Pt=i=>(...e)=>({_$litDirective$:i,values:e});let Lt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};class io extends Lt{constructor(e){if(super(e),this.it=v,e.type!==ye.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===v||e==null)return this._t=void 0,this.it=e;if(e===le)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}io.directiveName="unsafeHTML",io.resultType=1;const so=Pt(io),ci={"uil-times":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13.41,12l4.3-4.29a1,1,0,1,0-1.42-1.42L12,10.59,7.71,6.29A1,1,0,0,0,6.29,7.71L10.59,12l-4.3,4.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L12,13.41l4.29,4.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42Z"/></svg>',"uil-clock":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.09814,12.63379,13,11.42285V7a1,1,0,0,0-2,0v5a.99985.99985,0,0,0,.5.86621l2.59814,1.5a1.00016,1.00016,0,1,0,1-1.73242ZM12,2A10,10,0,1,0,22,12,10.01114,10.01114,0,0,0,12,2Zm0,18a8,8,0,1,1,8-8A8.00917,8.00917,0,0,1,12,20Z"/></svg>',"uil-check":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.71,7.21a1,1,0,0,0-1.42,0L9.84,14.67,6.71,11.53A1,1,0,1,0,5.29,13l3.84,3.84a1,1,0,0,0,1.42,0l8.16-8.16A1,1,0,0,0,18.71,7.21Z"/></svg>',"uil-calendar":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19,4H17V3a1,1,0,0,0-2,0V4H9V3A1,1,0,0,0,7,3V4H5A3,3,0,0,0,2,7V19a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V7A3,3,0,0,0,19,4Zm1,15a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V12H20Zm0-9H4V7A1,1,0,0,1,5,6H7V7A1,1,0,0,0,9,7V6h6V7a1,1,0,0,0,2,0V6h2a1,1,0,0,1,1,1Z"/></svg>',"uil-calendar-alt":'<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"><path d="M12,19a1,1,0,1,0-1-1A1,1,0,0,0,12,19Zm5,0a1,1,0,1,0-1-1A1,1,0,0,0,17,19Zm0-4a1,1,0,1,0-1-1A1,1,0,0,0,17,15Zm-5,0a1,1,0,1,0-1-1A1,1,0,0,0,12,15ZM19,3H18V2a1,1,0,0,0-2,0V3H8V2A1,1,0,0,0,6,2V3H5A3,3,0,0,0,2,6V20a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V6A3,3,0,0,0,19,3Zm1,17a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V11H20ZM20,9H4V6A1,1,0,0,1,5,5H6V6A1,1,0,0,0,8,6V5h8V6a1,1,0,0,0,2,0V5h1a1,1,0,0,1,1,1ZM7,15a1,1,0,1,0-1-1A1,1,0,0,0,7,15Zm0,4a1,1,0,1,0-1-1A1,1,0,0,0,7,19Z"/></svg>',"uil-arrow-left":'<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"><path d="M17,11H9.41l3.3-3.29a1,1,0,1,0-1.42-1.42l-5,5a1,1,0,0,0-.21.33,1,1,0,0,0,0,.76,1,1,0,0,0,.21.33l5,5a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L9.41,13H17a1,1,0,0,0,0-2Z"/></svg>',"uil-arrow-right":'<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"><path d="M17.92,11.62a1,1,0,0,0-.21-.33l-5-5a1,1,0,0,0-1.42,1.42L14.59,11H7a1,1,0,0,0,0,2h7.59l-3.3,3.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l5-5a1,1,0,0,0,.21-.33A1,1,0,0,0,17.92,11.62Z"/></svg>',"uil-arrow-up":'<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"><path d="M17.71,11.29l-5-5a1,1,0,0,0-.33-.21,1,1,0,0,0-.76,0,1,1,0,0,0-.33.21l-5,5a1,1,0,0,0,1.42,1.42L11,9.41V17a1,1,0,0,0,2,0V9.41l3.29,3.3a1,1,0,0,0,1.42,0A1,1,0,0,0,17.71,11.29Z"/></svg>',"uil-arrow-down":'<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"><path d="M17.71,11.29a1,1,0,0,0-1.42,0L13,14.59V7a1,1,0,0,0-2,0v7.59l-3.29-3.3a1,1,0,0,0-1.42,1.42l5,5a1,1,0,0,0,.33.21.94.94,0,0,0,.76,0,1,1,0,0,0,.33-.21l5-5A1,1,0,0,0,17.71,11.29Z"/></svg>',"uil-angle-down":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17,9.17a1,1,0,0,0-1.41,0L12,12.71,8.46,9.17a1,1,0,0,0-1.41,0,1,1,0,0,0,0,1.42l4.24,4.24a1,1,0,0,0,1.42,0L17,10.59A1,1,0,0,0,17,9.17Z"/></svg>',"uil-angle-left":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.29,12l3.54-3.54a1,1,0,0,0,0-1.41,1,1,0,0,0-1.42,0L9.17,11.29a1,1,0,0,0,0,1.42L13.41,17a1,1,0,0,0,.71.29,1,1,0,0,0,.71-.29,1,1,0,0,0,0-1.41Z"/></svg>',"uil-angle-right":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.83,11.29,10.59,7.05a1,1,0,0,0-1.42,0,1,1,0,0,0,0,1.41L12.71,12,9.17,15.54a1,1,0,0,0,0,1.41,1,1,0,0,0,.71.29,1,1,0,0,0,.71-.29l4.24-4.24A1,1,0,0,0,14.83,11.29Z"/></svg>',"uil-angle-double-left":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.46,8.29a1,1,0,0,0-1.42,0l-3,3a1,1,0,0,0,0,1.42l3,3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L9.16,12l2.3-2.29A1,1,0,0,0,11.46,8.29ZM14.66,12,17,9.71a1,1,0,0,0-1.42-1.42l-3,3a1,1,0,0,0,0,1.42l3,3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42Z"/></svg>',"uil-angle-double-right":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.46,8.29A1,1,0,1,0,7,9.71L9.34,12,7,14.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l3-3a1,1,0,0,0,0-1.42Zm8.5,3-3-3a1,1,0,0,0-1.42,1.42L14.84,12l-2.3,2.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l3-3A1,1,0,0,0,17,11.29Z"/></svg>',"uil-trash":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20,6H16V5a3,3,0,0,0-3-3H11A3,3,0,0,0,8,5V6H4A1,1,0,0,0,4,8H5V19a3,3,0,0,0,3,3h8a3,3,0,0,0,3-3V8h1a1,1,0,0,0,0-2ZM10,5a1,1,0,0,1,1-1h2a1,1,0,0,1,1,1V6H10Zm7,14a1,1,0,0,1-1,1H8a1,1,0,0,1-1-1V8H17Z"/></svg>',"uil-compress-alt":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.71,2.29a1,1,0,0,0-1.42,0L14.5,8.09V6.5a1,1,0,0,0-2,0v4a1,1,0,0,0,.08.38,1,1,0,0,0,.54.54,1,1,0,0,0,.38.08h4a1,1,0,0,0,0-2H15.91l5.8-5.79A1,1,0,0,0,21.71,2.29ZM10.88,12.58a1,1,0,0,0-.38-.08h-4a1,1,0,0,0,0,2H8.09l-5.8,5.79a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l5.79-5.8V17.5a1,1,0,0,0,2,0v-4a1,1,0,0,0-.08-.38A1,1,0,0,0,10.88,12.58Z"/></svg>',"uil-expand-alt":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.79,12.79,4,18.59V17a1,1,0,0,0-2,0v4a1,1,0,0,0,.08.38,1,1,0,0,0,.54.54A1,1,0,0,0,3,22H7a1,1,0,0,0,0-2H5.41l5.8-5.79a1,1,0,0,0-1.42-1.42ZM21.92,2.62a1,1,0,0,0-.54-.54A1,1,0,0,0,21,2H17a1,1,0,0,0,0,2h1.59l-5.8,5.79a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L20,5.41V7a1,1,0,0,0,2,0V3A1,1,0,0,0,21.92,2.62Z"/></svg>',"uil-copy":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21,8.94a1.31,1.31,0,0,0-.06-.27l0-.09a1.07,1.07,0,0,0-.19-.28h0l-6-6h0a1.07,1.07,0,0,0-.28-.19.32.32,0,0,0-.09,0A.88.88,0,0,0,14.05,2H10A3,3,0,0,0,7,5V6H6A3,3,0,0,0,3,9V19a3,3,0,0,0,3,3h8a3,3,0,0,0,3-3V18h1a3,3,0,0,0,3-3V9S21,9,21,8.94ZM15,5.41,17.59,8H16a1,1,0,0,1-1-1ZM15,19a1,1,0,0,1-1,1H6a1,1,0,0,1-1-1V9A1,1,0,0,1,6,8H7v7a3,3,0,0,0,3,3h5Zm4-4a1,1,0,0,1-1,1H10a1,1,0,0,1-1-1V5a1,1,0,0,1,1-1h3V7a3,3,0,0,0,3,3h3Z"/></svg>',"uil-thumbs-up":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.3,10.08A3,3,0,0,0,19,9H14.44L15,7.57A4.13,4.13,0,0,0,11.11,2a1,1,0,0,0-.91.59L7.35,9H5a3,3,0,0,0-3,3v7a3,3,0,0,0,3,3H17.73a3,3,0,0,0,2.95-2.46l1.27-7A3,3,0,0,0,21.3,10.08ZM7,20H5a1,1,0,0,1-1-1V12a1,1,0,0,1,1-1H7Zm13-7.82-1.27,7a1,1,0,0,1-1,.82H9V10.21l2.72-6.12A2.11,2.11,0,0,1,13.1,6.87L12.57,8.3A2,2,0,0,0,14.44,11H19a1,1,0,0,1,.77.36A1,1,0,0,1,20,12.18Z"/></svg>',"uil-thumbs-down":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19,2H6.27A3,3,0,0,0,3.32,4.46l-1.27,7A3,3,0,0,0,5,15H9.56L9,16.43A4.13,4.13,0,0,0,12.89,22a1,1,0,0,0,.91-.59L16.65,15H19a3,3,0,0,0,3-3V5A3,3,0,0,0,19,2ZM15,13.79l-2.72,6.12a2.13,2.13,0,0,1-1.38-2.78l.53-1.43A2,2,0,0,0,9.56,13H5a1,1,0,0,1-.77-.36A1,1,0,0,1,4,11.82l1.27-7a1,1,0,0,1,1-.82H15ZM20,12a1,1,0,0,1-1,1H17V4h2a1,1,0,0,1,1,1Z"/></svg>',"uil-arrow-circle-right":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.71,12.71a1,1,0,0,0,.21-.33,1,1,0,0,0,0-.76,1,1,0,0,0-.21-.33l-3-3a1,1,0,0,0-1.42,1.42L12.59,11H9a1,1,0,0,0,0,2h3.59l-1.3,1.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0ZM22,12A10,10,0,1,0,12,22,10,10,0,0,0,22,12ZM4,12a8,8,0,1,1,8,8A8,8,0,0,1,4,12Z"/></svg>',"uil-eye":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.92,11.6C19.9,6.91,16.1,4,12,4S4.1,6.91,2.08,11.6a1,1,0,0,0,0,.8C4.1,17.09,7.9,20,12,20s7.9-2.91,9.92-7.6A1,1,0,0,0,21.92,11.6ZM12,18c-3.17,0-6.17-2.29-7.9-6C5.83,8.29,8.83,6,12,6s6.17,2.29,7.9,6C18.17,15.71,15.17,18,12,18ZM12,8a4,4,0,1,0,4,4A4,4,0,0,0,12,8Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,12,14Z"/></svg>',"uil-eye-slash":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10.94,6.08A6.93,6.93,0,0,1,12,6c3.18,0,6.17,2.29,7.91,6a15.23,15.23,0,0,1-.9,1.64,1,1,0,0,0-.16.55,1,1,0,0,0,1.86.5,15.77,15.77,0,0,0,1.21-2.3,1,1,0,0,0,0-.79C19.9,6.91,16.1,4,12,4a7.77,7.77,0,0,0-1.4.12,1,1,0,1,0,.34,2ZM3.71,2.29A1,1,0,0,0,2.29,3.71L5.39,6.8a14.62,14.62,0,0,0-3.31,4.8,1,1,0,0,0,0,.8C4.1,17.09,7.9,20,12,20a9.26,9.26,0,0,0,5.05-1.54l3.24,3.25a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42Zm6.36,9.19,2.45,2.45A1.81,1.81,0,0,1,12,14a2,2,0,0,1-2-2A1.81,1.81,0,0,1,10.07,11.48ZM12,18c-3.18,0-6.17-2.29-7.9-6A12.09,12.09,0,0,1,6.8,8.21L8.57,10A4,4,0,0,0,14,15.43L15.59,17A7.24,7.24,0,0,1,12,18Z"/></svg>',"uil-search":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.71,20.29,18,16.61A9,9,0,1,0,16.61,18l3.68,3.68a1,1,0,0,0,1.42,0A1,1,0,0,0,21.71,20.29ZM11,18a7,7,0,1,1,7-7A7,7,0,0,1,11,18Z"/></svg>',"uil-left-arrow-to-left":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21,11H9.41l2.3-2.29a1,1,0,1,0-1.42-1.42l-4,4a1,1,0,0,0-.21.33,1,1,0,0,0,0,.76,1,1,0,0,0,.21.33l4,4a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L9.41,13H21a1,1,0,0,0,0-2ZM3,3A1,1,0,0,0,2,4V20a1,1,0,0,0,2,0V4A1,1,0,0,0,3,3Z"/></svg>',"uil-right-arrow-to-right":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.71,11.29l-4-4a1,1,0,1,0-1.42,1.42L14.59,11H3a1,1,0,0,0,0,2H14.59l-2.3,2.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l4-4a1,1,0,0,0,.21-.33,1,1,0,0,0,0-.76A1,1,0,0,0,17.71,11.29ZM21,4a1,1,0,0,0-1,1V19a1,1,0,0,0,2,0V5A1,1,0,0,0,21,4Z"/></svg>',"uil-pin":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.37,12.79a1,1,0,0,0-.74,1.86C17.09,15.23,18,16.13,18,17c0,1.42-2.46,3-6,3s-6-1.58-6-3c0-.87.91-1.77,2.37-2.35a1,1,0,0,0-.74-1.86C5.36,13.69,4,15.26,4,17c0,2.8,3.51,5,8,5s8-2.2,8-5C20,15.26,18.64,13.69,16.37,12.79ZM11,9.86V17a1,1,0,0,0,2,0V9.86a4,4,0,1,0-2,0ZM12,4a2,2,0,1,1-2,2A2,2,0,0,1,12,4Z"/></svg>',"uil-check-circle":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.72,8.79l-4.29,4.3L8.78,11.44a1,1,0,1,0-1.41,1.41l2.35,2.36a1,1,0,0,0,.71.29,1,1,0,0,0,.7-.29l5-5a1,1,0,0,0,0-1.42A1,1,0,0,0,14.72,8.79ZM12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm0,18a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z"/></svg>',"uil-exclamation-triangle":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,16a1,1,0,1,0,1,1A1,1,0,0,0,12,16Zm10.67,1.47-8.05-14a3,3,0,0,0-5.24,0l-8,14A3,3,0,0,0,3.94,22H20.06a3,3,0,0,0,2.61-4.53Zm-1.73,2a1,1,0,0,1-.88.51H3.94a1,1,0,0,1-.88-.51,1,1,0,0,1,0-1l8-14a1,1,0,0,1,1.78,0l8.05,14A1,1,0,0,1,20.94,19.49ZM12,8a1,1,0,0,0-1,1v4a1,1,0,0,0,2,0V9A1,1,0,0,0,12,8Z"/></svg>',"uil-exclamation-octagon":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,7a1,1,0,0,0-1,1v4a1,1,0,0,0,2,0V8A1,1,0,0,0,12,7Zm0,8a1,1,0,1,0,1,1A1,1,0,0,0,12,15Zm9.71-7.44L16.44,2.29A1.05,1.05,0,0,0,15.73,2H8.27a1.05,1.05,0,0,0-.71.29L2.29,7.56A1.05,1.05,0,0,0,2,8.27v7.46a1.05,1.05,0,0,0,.29.71l5.27,5.27a1.05,1.05,0,0,0,.71.29h7.46a1.05,1.05,0,0,0,.71-.29l5.27-5.27a1.05,1.05,0,0,0,.29-.71V8.27A1.05,1.05,0,0,0,21.71,7.56ZM20,15.31,15.31,20H8.69L4,15.31V8.69L8.69,4h6.62L20,8.69Z"/></svg>',"uil-info-circle":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,2A10,10,0,1,0,22,12,10.01114,10.01114,0,0,0,12,2Zm0,18a8,8,0,1,1,8-8A8.00917,8.00917,0,0,1,12,20Zm0-8.5a1,1,0,0,0-1,1v3a1,1,0,0,0,2,0v-3A1,1,0,0,0,12,11.5Zm0-4a1.25,1.25,0,1,0,1.25,1.25A1.25,1.25,0,0,0,12,7.5Z"/></svg>'},Zt=class Zt extends D{constructor(){super(...arguments),this.name="",this.size=20}render(){const e=ci[this.name];return e?u`
12
+ `}},n.Button.styles=[H`${I(li)}`],Je([d({type:String})],n.Button.prototype,"variant",2),Je([d({type:String})],n.Button.prototype,"size",2),Je([d({type:String})],n.Button.prototype,"theme",2),Je([d({type:Boolean})],n.Button.prototype,"iconOnly",2),Je([d({type:Boolean})],n.Button.prototype,"disabled",2),n.Button=Je([V("logosphere-button")],n.Button);const hi=".badge{display:inline-flex;align-items:center;gap:var(--spacing-1);font-family:var(--font-family-base);font-size:11px;font-weight:var(--font-weight-medium);line-height:1rem;letter-spacing:-.11px;border-radius:var(--radius-base);white-space:nowrap;-webkit-user-select:none;user-select:none}.badge--default-size{min-height:24px;max-height:24px;padding:var(--spacing-0) var(--spacing-2)}.badge--small{min-height:16px;max-height:16px;padding:0 var(--spacing-2)}.badge--round{border-radius:var(--radius-full)}.badge--primary{background-color:var(--color-primary);color:var(--color-secondary-color, #ffffff)}.badge--default{background-color:var(--color-light-bg-2);color:var(--color-secondary)}.badge--warning{background-color:var( --color-warning-subtle);color:var(--color-warning-emphasis)}.badge--success{background-color:var(--color-success-subtle);color:var(--color-success-emphasis)}.badge--danger{background-color:var(--color-danger-subtle);color:var(--color-danger)}.badge--info{background-color:var(--color-info-subtle);color:var(--color-info-emphasis)}.badge--purple{background-color:var(--color-commercial-subtle);color:var(--color-commercial-emphasis)}.badge__close{display:inline-flex;align-items:center;justify-content:center;margin-left:var(--spacing-1);padding:0;background:none;border:none;cursor:pointer;color:inherit;opacity:.75;transition:opacity var(--transition-speed-fast) var(--transition-timing);line-height:1}.badge__close:hover{opacity:1}.badge__close:focus{outline:none;opacity:1}";const xe={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4},Ot=i=>(...e)=>({_$litDirective$:i,values:e});let Bt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};class no extends Bt{constructor(e){if(super(e),this.it=b,e.type!==xe.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===b||e==null)return this._t=void 0,this.it=e;if(e===de)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}no.directiveName="unsafeHTML",no.resultType=1;const lo=Ot(no),pi={"uil-times":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13.41,12l4.3-4.29a1,1,0,1,0-1.42-1.42L12,10.59,7.71,6.29A1,1,0,0,0,6.29,7.71L10.59,12l-4.3,4.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L12,13.41l4.29,4.3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42Z"/></svg>',"uil-clock":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.09814,12.63379,13,11.42285V7a1,1,0,0,0-2,0v5a.99985.99985,0,0,0,.5.86621l2.59814,1.5a1.00016,1.00016,0,1,0,1-1.73242ZM12,2A10,10,0,1,0,22,12,10.01114,10.01114,0,0,0,12,2Zm0,18a8,8,0,1,1,8-8A8.00917,8.00917,0,0,1,12,20Z"/></svg>',"uil-check":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.71,7.21a1,1,0,0,0-1.42,0L9.84,14.67,6.71,11.53A1,1,0,1,0,5.29,13l3.84,3.84a1,1,0,0,0,1.42,0l8.16-8.16A1,1,0,0,0,18.71,7.21Z"/></svg>',"uil-calendar":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19,4H17V3a1,1,0,0,0-2,0V4H9V3A1,1,0,0,0,7,3V4H5A3,3,0,0,0,2,7V19a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V7A3,3,0,0,0,19,4Zm1,15a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V12H20Zm0-9H4V7A1,1,0,0,1,5,6H7V7A1,1,0,0,0,9,7V6h6V7a1,1,0,0,0,2,0V6h2a1,1,0,0,1,1,1Z"/></svg>',"uil-calendar-alt":'<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"><path d="M12,19a1,1,0,1,0-1-1A1,1,0,0,0,12,19Zm5,0a1,1,0,1,0-1-1A1,1,0,0,0,17,19Zm0-4a1,1,0,1,0-1-1A1,1,0,0,0,17,15Zm-5,0a1,1,0,1,0-1-1A1,1,0,0,0,12,15ZM19,3H18V2a1,1,0,0,0-2,0V3H8V2A1,1,0,0,0,6,2V3H5A3,3,0,0,0,2,6V20a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V6A3,3,0,0,0,19,3Zm1,17a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V11H20ZM20,9H4V6A1,1,0,0,1,5,5H6V6A1,1,0,0,0,8,6V5h8V6a1,1,0,0,0,2,0V5h1a1,1,0,0,1,1,1ZM7,15a1,1,0,1,0-1-1A1,1,0,0,0,7,15Zm0,4a1,1,0,1,0-1-1A1,1,0,0,0,7,19Z"/></svg>',"uil-arrow-left":'<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"><path d="M17,11H9.41l3.3-3.29a1,1,0,1,0-1.42-1.42l-5,5a1,1,0,0,0-.21.33,1,1,0,0,0,0,.76,1,1,0,0,0,.21.33l5,5a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L9.41,13H17a1,1,0,0,0,0-2Z"/></svg>',"uil-arrow-right":'<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"><path d="M17.92,11.62a1,1,0,0,0-.21-.33l-5-5a1,1,0,0,0-1.42,1.42L14.59,11H7a1,1,0,0,0,0,2h7.59l-3.3,3.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l5-5a1,1,0,0,0,.21-.33A1,1,0,0,0,17.92,11.62Z"/></svg>',"uil-arrow-up":'<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"><path d="M17.71,11.29l-5-5a1,1,0,0,0-.33-.21,1,1,0,0,0-.76,0,1,1,0,0,0-.33.21l-5,5a1,1,0,0,0,1.42,1.42L11,9.41V17a1,1,0,0,0,2,0V9.41l3.29,3.3a1,1,0,0,0,1.42,0A1,1,0,0,0,17.71,11.29Z"/></svg>',"uil-arrow-down":'<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 24 24"><path d="M17.71,11.29a1,1,0,0,0-1.42,0L13,14.59V7a1,1,0,0,0-2,0v7.59l-3.29-3.3a1,1,0,0,0-1.42,1.42l5,5a1,1,0,0,0,.33.21.94.94,0,0,0,.76,0,1,1,0,0,0,.33-.21l5-5A1,1,0,0,0,17.71,11.29Z"/></svg>',"uil-angle-down":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17,9.17a1,1,0,0,0-1.41,0L12,12.71,8.46,9.17a1,1,0,0,0-1.41,0,1,1,0,0,0,0,1.42l4.24,4.24a1,1,0,0,0,1.42,0L17,10.59A1,1,0,0,0,17,9.17Z"/></svg>',"uil-angle-left":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.29,12l3.54-3.54a1,1,0,0,0,0-1.41,1,1,0,0,0-1.42,0L9.17,11.29a1,1,0,0,0,0,1.42L13.41,17a1,1,0,0,0,.71.29,1,1,0,0,0,.71-.29,1,1,0,0,0,0-1.41Z"/></svg>',"uil-angle-right":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.83,11.29,10.59,7.05a1,1,0,0,0-1.42,0,1,1,0,0,0,0,1.41L12.71,12,9.17,15.54a1,1,0,0,0,0,1.41,1,1,0,0,0,.71.29,1,1,0,0,0,.71-.29l4.24-4.24A1,1,0,0,0,14.83,11.29Z"/></svg>',"uil-angle-double-left":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.46,8.29a1,1,0,0,0-1.42,0l-3,3a1,1,0,0,0,0,1.42l3,3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L9.16,12l2.3-2.29A1,1,0,0,0,11.46,8.29ZM14.66,12,17,9.71a1,1,0,0,0-1.42-1.42l-3,3a1,1,0,0,0,0,1.42l3,3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42Z"/></svg>',"uil-angle-double-right":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.46,8.29A1,1,0,1,0,7,9.71L9.34,12,7,14.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l3-3a1,1,0,0,0,0-1.42Zm8.5,3-3-3a1,1,0,0,0-1.42,1.42L14.84,12l-2.3,2.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l3-3A1,1,0,0,0,17,11.29Z"/></svg>',"uil-trash":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20,6H16V5a3,3,0,0,0-3-3H11A3,3,0,0,0,8,5V6H4A1,1,0,0,0,4,8H5V19a3,3,0,0,0,3,3h8a3,3,0,0,0,3-3V8h1a1,1,0,0,0,0-2ZM10,5a1,1,0,0,1,1-1h2a1,1,0,0,1,1,1V6H10Zm7,14a1,1,0,0,1-1,1H8a1,1,0,0,1-1-1V8H17Z"/></svg>',"uil-compress-alt":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.71,2.29a1,1,0,0,0-1.42,0L14.5,8.09V6.5a1,1,0,0,0-2,0v4a1,1,0,0,0,.08.38,1,1,0,0,0,.54.54,1,1,0,0,0,.38.08h4a1,1,0,0,0,0-2H15.91l5.8-5.79A1,1,0,0,0,21.71,2.29ZM10.88,12.58a1,1,0,0,0-.38-.08h-4a1,1,0,0,0,0,2H8.09l-5.8,5.79a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l5.79-5.8V17.5a1,1,0,0,0,2,0v-4a1,1,0,0,0-.08-.38A1,1,0,0,0,10.88,12.58Z"/></svg>',"uil-expand-alt":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.79,12.79,4,18.59V17a1,1,0,0,0-2,0v4a1,1,0,0,0,.08.38,1,1,0,0,0,.54.54A1,1,0,0,0,3,22H7a1,1,0,0,0,0-2H5.41l5.8-5.79a1,1,0,0,0-1.42-1.42ZM21.92,2.62a1,1,0,0,0-.54-.54A1,1,0,0,0,21,2H17a1,1,0,0,0,0,2h1.59l-5.8,5.79a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L20,5.41V7a1,1,0,0,0,2,0V3A1,1,0,0,0,21.92,2.62Z"/></svg>',"uil-copy":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21,8.94a1.31,1.31,0,0,0-.06-.27l0-.09a1.07,1.07,0,0,0-.19-.28h0l-6-6h0a1.07,1.07,0,0,0-.28-.19.32.32,0,0,0-.09,0A.88.88,0,0,0,14.05,2H10A3,3,0,0,0,7,5V6H6A3,3,0,0,0,3,9V19a3,3,0,0,0,3,3h8a3,3,0,0,0,3-3V18h1a3,3,0,0,0,3-3V9S21,9,21,8.94ZM15,5.41,17.59,8H16a1,1,0,0,1-1-1ZM15,19a1,1,0,0,1-1,1H6a1,1,0,0,1-1-1V9A1,1,0,0,1,6,8H7v7a3,3,0,0,0,3,3h5Zm4-4a1,1,0,0,1-1,1H10a1,1,0,0,1-1-1V5a1,1,0,0,1,1-1h3V7a3,3,0,0,0,3,3h3Z"/></svg>',"uil-thumbs-up":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.3,10.08A3,3,0,0,0,19,9H14.44L15,7.57A4.13,4.13,0,0,0,11.11,2a1,1,0,0,0-.91.59L7.35,9H5a3,3,0,0,0-3,3v7a3,3,0,0,0,3,3H17.73a3,3,0,0,0,2.95-2.46l1.27-7A3,3,0,0,0,21.3,10.08ZM7,20H5a1,1,0,0,1-1-1V12a1,1,0,0,1,1-1H7Zm13-7.82-1.27,7a1,1,0,0,1-1,.82H9V10.21l2.72-6.12A2.11,2.11,0,0,1,13.1,6.87L12.57,8.3A2,2,0,0,0,14.44,11H19a1,1,0,0,1,.77.36A1,1,0,0,1,20,12.18Z"/></svg>',"uil-thumbs-down":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19,2H6.27A3,3,0,0,0,3.32,4.46l-1.27,7A3,3,0,0,0,5,15H9.56L9,16.43A4.13,4.13,0,0,0,12.89,22a1,1,0,0,0,.91-.59L16.65,15H19a3,3,0,0,0,3-3V5A3,3,0,0,0,19,2ZM15,13.79l-2.72,6.12a2.13,2.13,0,0,1-1.38-2.78l.53-1.43A2,2,0,0,0,9.56,13H5a1,1,0,0,1-.77-.36A1,1,0,0,1,4,11.82l1.27-7a1,1,0,0,1,1-.82H15ZM20,12a1,1,0,0,1-1,1H17V4h2a1,1,0,0,1,1,1Z"/></svg>',"uil-arrow-circle-right":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.71,12.71a1,1,0,0,0,.21-.33,1,1,0,0,0,0-.76,1,1,0,0,0-.21-.33l-3-3a1,1,0,0,0-1.42,1.42L12.59,11H9a1,1,0,0,0,0,2h3.59l-1.3,1.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0ZM22,12A10,10,0,1,0,12,22,10,10,0,0,0,22,12ZM4,12a8,8,0,1,1,8,8A8,8,0,0,1,4,12Z"/></svg>',"uil-eye":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.92,11.6C19.9,6.91,16.1,4,12,4S4.1,6.91,2.08,11.6a1,1,0,0,0,0,.8C4.1,17.09,7.9,20,12,20s7.9-2.91,9.92-7.6A1,1,0,0,0,21.92,11.6ZM12,18c-3.17,0-6.17-2.29-7.9-6C5.83,8.29,8.83,6,12,6s6.17,2.29,7.9,6C18.17,15.71,15.17,18,12,18ZM12,8a4,4,0,1,0,4,4A4,4,0,0,0,12,8Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,12,14Z"/></svg>',"uil-eye-slash":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10.94,6.08A6.93,6.93,0,0,1,12,6c3.18,0,6.17,2.29,7.91,6a15.23,15.23,0,0,1-.9,1.64,1,1,0,0,0-.16.55,1,1,0,0,0,1.86.5,15.77,15.77,0,0,0,1.21-2.3,1,1,0,0,0,0-.79C19.9,6.91,16.1,4,12,4a7.77,7.77,0,0,0-1.4.12,1,1,0,1,0,.34,2ZM3.71,2.29A1,1,0,0,0,2.29,3.71L5.39,6.8a14.62,14.62,0,0,0-3.31,4.8,1,1,0,0,0,0,.8C4.1,17.09,7.9,20,12,20a9.26,9.26,0,0,0,5.05-1.54l3.24,3.25a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42Zm6.36,9.19,2.45,2.45A1.81,1.81,0,0,1,12,14a2,2,0,0,1-2-2A1.81,1.81,0,0,1,10.07,11.48ZM12,18c-3.18,0-6.17-2.29-7.9-6A12.09,12.09,0,0,1,6.8,8.21L8.57,10A4,4,0,0,0,14,15.43L15.59,17A7.24,7.24,0,0,1,12,18Z"/></svg>',"uil-search":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.71,20.29,18,16.61A9,9,0,1,0,16.61,18l3.68,3.68a1,1,0,0,0,1.42,0A1,1,0,0,0,21.71,20.29ZM11,18a7,7,0,1,1,7-7A7,7,0,0,1,11,18Z"/></svg>',"uil-left-arrow-to-left":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21,11H9.41l2.3-2.29a1,1,0,1,0-1.42-1.42l-4,4a1,1,0,0,0-.21.33,1,1,0,0,0,0,.76,1,1,0,0,0,.21.33l4,4a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L9.41,13H21a1,1,0,0,0,0-2ZM3,3A1,1,0,0,0,2,4V20a1,1,0,0,0,2,0V4A1,1,0,0,0,3,3Z"/></svg>',"uil-right-arrow-to-right":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.71,11.29l-4-4a1,1,0,1,0-1.42,1.42L14.59,11H3a1,1,0,0,0,0,2H14.59l-2.3,2.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0l4-4a1,1,0,0,0,.21-.33,1,1,0,0,0,0-.76A1,1,0,0,0,17.71,11.29ZM21,4a1,1,0,0,0-1,1V19a1,1,0,0,0,2,0V5A1,1,0,0,0,21,4Z"/></svg>',"uil-pin":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.37,12.79a1,1,0,0,0-.74,1.86C17.09,15.23,18,16.13,18,17c0,1.42-2.46,3-6,3s-6-1.58-6-3c0-.87.91-1.77,2.37-2.35a1,1,0,0,0-.74-1.86C5.36,13.69,4,15.26,4,17c0,2.8,3.51,5,8,5s8-2.2,8-5C20,15.26,18.64,13.69,16.37,12.79ZM11,9.86V17a1,1,0,0,0,2,0V9.86a4,4,0,1,0-2,0ZM12,4a2,2,0,1,1-2,2A2,2,0,0,1,12,4Z"/></svg>',"uil-check-circle":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.72,8.79l-4.29,4.3L8.78,11.44a1,1,0,1,0-1.41,1.41l2.35,2.36a1,1,0,0,0,.71.29,1,1,0,0,0,.7-.29l5-5a1,1,0,0,0,0-1.42A1,1,0,0,0,14.72,8.79ZM12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm0,18a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z"/></svg>',"uil-exclamation-triangle":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,16a1,1,0,1,0,1,1A1,1,0,0,0,12,16Zm10.67,1.47-8.05-14a3,3,0,0,0-5.24,0l-8,14A3,3,0,0,0,3.94,22H20.06a3,3,0,0,0,2.61-4.53Zm-1.73,2a1,1,0,0,1-.88.51H3.94a1,1,0,0,1-.88-.51,1,1,0,0,1,0-1l8-14a1,1,0,0,1,1.78,0l8.05,14A1,1,0,0,1,20.94,19.49ZM12,8a1,1,0,0,0-1,1v4a1,1,0,0,0,2,0V9A1,1,0,0,0,12,8Z"/></svg>',"uil-exclamation-octagon":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,7a1,1,0,0,0-1,1v4a1,1,0,0,0,2,0V8A1,1,0,0,0,12,7Zm0,8a1,1,0,1,0,1,1A1,1,0,0,0,12,15Zm9.71-7.44L16.44,2.29A1.05,1.05,0,0,0,15.73,2H8.27a1.05,1.05,0,0,0-.71.29L2.29,7.56A1.05,1.05,0,0,0,2,8.27v7.46a1.05,1.05,0,0,0,.29.71l5.27,5.27a1.05,1.05,0,0,0,.71.29h7.46a1.05,1.05,0,0,0,.71-.29l5.27-5.27a1.05,1.05,0,0,0,.29-.71V8.27A1.05,1.05,0,0,0,21.71,7.56ZM20,15.31,15.31,20H8.69L4,15.31V8.69L8.69,4h6.62L20,8.69Z"/></svg>',"uil-info-circle":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,2A10,10,0,1,0,22,12,10.01114,10.01114,0,0,0,12,2Zm0,18a8,8,0,1,1,8-8A8.00917,8.00917,0,0,1,12,20Zm0-8.5a1,1,0,0,0-1,1v3a1,1,0,0,0,2,0v-3A1,1,0,0,0,12,11.5Zm0-4a1.25,1.25,0,1,0,1.25,1.25A1.25,1.25,0,0,0,12,7.5Z"/></svg>'},Gt=class Gt extends P{constructor(){super(...arguments),this.name="",this.size=20}render(){const e=pi[this.name];return e?p`
13
13
  <span
14
14
  style="font-size: ${this.size}px;"
15
15
  aria-hidden="true"
16
16
  >
17
- ${so(e)}
17
+ ${lo(e)}
18
18
  </span>
19
- `:(console.warn(`Icon "${this.name}" not found.`),u``)}};Zt.properties={name:{type:String},size:{type:Number}},Zt.styles=R`
19
+ `:p``}};Gt.properties={name:{type:String},size:{type:Number}},Gt.styles=H`
20
20
  :host {
21
21
  display: inline-flex;
22
22
  align-items: center;
@@ -30,19 +30,19 @@
30
30
  height: 1em;
31
31
  fill: currentColor;
32
32
  }
33
- `;let ao=Zt;customElements.define("ui-icon",ao);var di=Object.defineProperty,hi=Object.getOwnPropertyDescriptor,Ye=(i,e,t,o)=>{for(var r=o>1?void 0:o?hi(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&di(e,t,r),r};n.LogosphereBadge=class extends D{constructor(){super(...arguments),this.variant="default",this.size="default",this.text="",this.closeable=!1,this.isRound=!1}handleClose(){this.onClose&&this.onClose(),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}getBadgeClasses(){const e=["badge",`badge--${this.variant}`,this.size==="small"?"badge--small":"badge--default-size"];return this.isRound&&e.push("badge--round"),e.join(" ")}render(){return u`
33
+ `;let co=Gt;customElements.define("ui-icon",co);var ui=Object.defineProperty,fi=Object.getOwnPropertyDescriptor,Ne=(i,e,t,o)=>{for(var r=o>1?void 0:o?fi(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&ui(e,t,r),r};n.LogosphereBadge=class extends P{constructor(){super(...arguments),this.variant="default",this.size="default",this.text="",this.closeable=!1,this.isRound=!1}handleClose(){this.onClose&&this.onClose(),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}getBadgeClasses(){const e=["badge",`badge--${this.variant}`,this.size==="small"?"badge--small":"badge--default-size"];return this.isRound&&e.push("badge--round"),e.join(" ")}render(){return p`
34
34
  <div class="${this.getBadgeClasses()}">
35
35
  <slot></slot>
36
- ${this.text?u`<span>${this.text}</span>`:v}
37
- ${this.closeable?u`
36
+ ${this.text?p`<span>${this.text}</span>`:b}
37
+ ${this.closeable?p`
38
38
  <button class="badge__close" @click=${this.handleClose} aria-label="Close">
39
39
  <ui-icon size="16" name="uil-times"></ui-icon>
40
40
  </button>
41
- `:v}
41
+ `:b}
42
42
  </div>
43
- `}},n.LogosphereBadge.styles=[R`
44
- ${H(li)}
45
- `],Ye([d({type:String})],n.LogosphereBadge.prototype,"variant",2),Ye([d({type:String})],n.LogosphereBadge.prototype,"size",2),Ye([d({type:String})],n.LogosphereBadge.prototype,"text",2),Ye([d({type:Boolean})],n.LogosphereBadge.prototype,"closeable",2),Ye([d({type:Boolean})],n.LogosphereBadge.prototype,"isRound",2),Ye([d({attribute:!1})],n.LogosphereBadge.prototype,"onClose",2),n.LogosphereBadge=Ye([V("logosphere-badge")],n.LogosphereBadge);const{I:pi}=ei,Ro=i=>i,Yo=i=>i.strings===void 0,jo=()=>document.createComment(""),mt=(i,e,t)=>{var s;const o=i._$AA.parentNode,r=e===void 0?i._$AB:e._$AA;if(t===void 0){const a=o.insertBefore(jo(),r),l=o.insertBefore(jo(),r);t=new pi(a,l,i,i.options)}else{const a=t._$AB.nextSibling,l=t._$AM,c=l!==i;if(c){let p;(s=t._$AQ)==null||s.call(t,i),t._$AM=i,t._$AP!==void 0&&(p=i._$AU)!==l._$AU&&t._$AP(p)}if(a!==r||c){let p=t._$AA;for(;p!==a;){const h=Ro(p).nextSibling;Ro(o).insertBefore(p,r),p=h}}}return t},je=(i,e,t=i)=>(i._$AI(e,t),i),ui={},Fo=(i,e=ui)=>i._$AH=e,fi=i=>i._$AH,no=i=>{i._$AR(),i._$AA.remove()};const bt=(i,e)=>{var o;const t=i._$AN;if(t===void 0)return!1;for(const r of t)(o=r._$AO)==null||o.call(r,e,!1),bt(r,e);return!0},Ot=i=>{let e,t;do{if((e=i._$AM)===void 0)break;t=e._$AN,t.delete(i),i=e}while((t==null?void 0:t.size)===0)},Vo=i=>{for(let e;e=i._$AM;i=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(i))break;t.add(i),bi(e)}};function gi(i){this._$AN!==void 0?(Ot(this),this._$AM=i,Vo(this)):this._$AM=i}function mi(i,e=!1,t=0){const o=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(e)if(Array.isArray(o))for(let s=t;s<o.length;s++)bt(o[s],!1),Ot(o[s]);else o!=null&&(bt(o,!1),Ot(o));else bt(this,i)}const bi=i=>{var e,t;i.type==ye.CHILD&&((e=i._$AP)!=null||(i._$AP=mi),(t=i._$AQ)!=null||(i._$AQ=gi))};class vi extends Lt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,o){super._$AT(e,t,o),Vo(this),this.isConnected=e._$AU}_$AO(e,t=!0){var o,r;e!==this.isConnected&&(this.isConnected=e,e?(o=this.reconnected)==null||o.call(this):(r=this.disconnected)==null||r.call(this)),t&&(bt(this,e),Ot(this))}setValue(e){if(Yo(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}const lo=new WeakMap,No=Pt(class extends vi{render(i){return v}update(i,[e]){var o;const t=e!==this.G;return t&&this.G!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.G=e,this.ht=(o=i.options)==null?void 0:o.host,this.rt(this.ct=i.element)),v}rt(i){var e;if(this.isConnected||(i=void 0),typeof this.G=="function"){const t=(e=this.ht)!=null?e:globalThis;let o=lo.get(t);o===void 0&&(o=new WeakMap,lo.set(t,o)),o.get(this.G)!==void 0&&this.G.call(this.ht,void 0),o.set(this.G,i),i!==void 0&&this.G.call(this.ht,i)}else this.G.value=i}get lt(){var i,e,t;return typeof this.G=="function"?(e=lo.get((i=this.ht)!=null?i:globalThis))==null?void 0:e.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),_i='.checkbox-wrapper{display:inline-flex;align-items:center;gap:var(--spacing-2);cursor:pointer;-webkit-user-select:none;user-select:none;font-family:var(--font-family-base)}.checkbox-wrapper--disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.checkbox-input{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.checkbox-control{width:16px;height:16px;flex-shrink:0;position:relative;border:1.5px solid var(--color-border);border-radius:var(--radius-sm);background-color:var(--color-body-bg);transition:background-color var(--transition-speed-fast) var(--transition-timing),border-color var(--transition-speed-fast) var(--transition-timing)}.checkbox-control--checked{background-color:var(--color-primary);border-color:var(--color-primary)}.checkbox-control--checked:after{content:"";position:absolute;top:50%;left:50%;width:9px;height:5px;border-left:2px solid #ffffff;border-bottom:2px solid #ffffff;transform:translate(-50%,-65%) rotate(-45deg)}.checkbox-control--indeterminate{background-color:var(--color-primary);border-color:var(--color-primary)}.checkbox-control--indeterminate:after{content:"";position:absolute;top:50%;left:50%;width:8px;height:2px;background-color:#fff;border-radius:1px;transform:translate(-50%,-50%)}.checkbox-label{font-size:var(--font-size-sm);line-height:var(--line-height-normal);color:var(--color-body-text)}.switch-wrapper{display:inline-flex;align-items:center;gap:var(--spacing-2);cursor:pointer;-webkit-user-select:none;user-select:none;font-family:var(--font-family-base)}.switch-wrapper--disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.switch-track{width:36px;height:20px;flex-shrink:0;border-radius:var(--radius-full);background-color:var(--color-border);position:relative;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.switch-track--checked{background-color:var(--color-primary)}.switch-thumb{position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:var(--radius-full);background-color:#fff;box-shadow:var(--shadow-xs);transition:transform var(--transition-speed-fast) var(--transition-timing)}.switch-track--checked .switch-thumb{transform:translate(16px)}';var yi=Object.defineProperty,wi=Object.getOwnPropertyDescriptor,De=(i,e,t,o)=>{for(var r=o>1?void 0:o?wi(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&yi(e,t,r),r};n.Checkbox=class extends D{constructor(){super(...arguments),this.label="",this.value="",this.checked=!1,this.type="checkbox",this.disabled=!1,this.indeterminate=!1,this.internalChecked=!1}connectedCallback(){super.connectedCallback(),this.internalChecked=this.checked}firstUpdated(){this.setIndeterminate()}updated(e){e.has("indeterminate")&&this.setIndeterminate(),e.has("checked")&&(this.internalChecked=this.checked)}setIndeterminate(){this.inputElement&&(this.inputElement.indeterminate=this.indeterminate)}toggleChecked(){this.disabled||(this.indeterminate?(this.indeterminate=!1,this.internalChecked=!0):this.internalChecked=!this.internalChecked,this.dispatchEvent(new CustomEvent("lgsChange",{detail:{checked:this.internalChecked,indeterminate:this.indeterminate,value:this.value},bubbles:!0,composed:!0})))}renderCheckbox(){const e=["checkbox-control",this.internalChecked?"checkbox-control--checked":"",this.indeterminate?"checkbox-control--indeterminate":""].filter(Boolean).join(" ");return u`
43
+ `}},n.LogosphereBadge.styles=[H`
44
+ ${I(hi)}
45
+ `],Ne([d({type:String})],n.LogosphereBadge.prototype,"variant",2),Ne([d({type:String})],n.LogosphereBadge.prototype,"size",2),Ne([d({type:String})],n.LogosphereBadge.prototype,"text",2),Ne([d({type:Boolean})],n.LogosphereBadge.prototype,"closeable",2),Ne([d({type:Boolean})],n.LogosphereBadge.prototype,"isRound",2),Ne([d({attribute:!1})],n.LogosphereBadge.prototype,"onClose",2),n.LogosphereBadge=Ne([V("logosphere-badge")],n.LogosphereBadge);const{I:gi}=ri,No=i=>i,Vo=i=>i.strings===void 0,Fo=()=>document.createComment(""),vt=(i,e,t)=>{var a;const o=i._$AA.parentNode,r=e===void 0?i._$AB:e._$AA;if(t===void 0){const s=o.insertBefore(Fo(),r),l=o.insertBefore(Fo(),r);t=new gi(s,l,i,i.options)}else{const s=t._$AB.nextSibling,l=t._$AM,c=l!==i;if(c){let u;(a=t._$AQ)==null||a.call(t,i),t._$AM=i,t._$AP!==void 0&&(u=i._$AU)!==l._$AU&&t._$AP(u)}if(s!==r||c){let u=t._$AA;for(;u!==s;){const h=No(u).nextSibling;No(o).insertBefore(u,r),u=h}}}return t},Ve=(i,e,t=i)=>(i._$AI(e,t),i),mi={},Uo=(i,e=mi)=>i._$AH=e,bi=i=>i._$AH,ho=i=>{i._$AR(),i._$AA.remove()};const _t=(i,e)=>{var o;const t=i._$AN;if(t===void 0)return!1;for(const r of t)(o=r._$AO)==null||o.call(r,e,!1),_t(r,e);return!0},It=i=>{let e,t;do{if((e=i._$AM)===void 0)break;t=e._$AN,t.delete(i),i=e}while((t==null?void 0:t.size)===0)},qo=i=>{for(let e;e=i._$AM;i=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(i))break;t.add(i),yi(e)}};function vi(i){this._$AN!==void 0?(It(this),this._$AM=i,qo(this)):this._$AM=i}function _i(i,e=!1,t=0){const o=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(e)if(Array.isArray(o))for(let a=t;a<o.length;a++)_t(o[a],!1),It(o[a]);else o!=null&&(_t(o,!1),It(o));else _t(this,i)}const yi=i=>{var e,t;i.type==xe.CHILD&&((e=i._$AP)!=null||(i._$AP=_i),(t=i._$AQ)!=null||(i._$AQ=vi))};class wi extends Bt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,o){super._$AT(e,t,o),qo(this),this.isConnected=e._$AU}_$AO(e,t=!0){var o,r;e!==this.isConnected&&(this.isConnected=e,e?(o=this.reconnected)==null||o.call(this):(r=this.disconnected)==null||r.call(this)),t&&(_t(this,e),It(this))}setValue(e){if(Vo(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}const po=new WeakMap,Zo=Ot(class extends wi{render(i){return b}update(i,[e]){var o;const t=e!==this.G;return t&&this.G!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.G=e,this.ht=(o=i.options)==null?void 0:o.host,this.rt(this.ct=i.element)),b}rt(i){var e;if(this.isConnected||(i=void 0),typeof this.G=="function"){const t=(e=this.ht)!=null?e:globalThis;let o=po.get(t);o===void 0&&(o=new WeakMap,po.set(t,o)),o.get(this.G)!==void 0&&this.G.call(this.ht,void 0),o.set(this.G,i),i!==void 0&&this.G.call(this.ht,i)}else this.G.value=i}get lt(){var i,e,t;return typeof this.G=="function"?(e=po.get((i=this.ht)!=null?i:globalThis))==null?void 0:e.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),xi='.checkbox-wrapper{display:inline-flex;align-items:center;gap:var(--spacing-2);cursor:pointer;-webkit-user-select:none;user-select:none;font-family:var(--font-family-base)}.checkbox-wrapper--disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.checkbox-input{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.checkbox-control{width:16px;height:16px;flex-shrink:0;position:relative;border:1.5px solid var(--color-border);border-radius:var(--radius-sm);background-color:var(--color-body-bg);transition:background-color var(--transition-speed-fast) var(--transition-timing),border-color var(--transition-speed-fast) var(--transition-timing)}.checkbox-control--checked{background-color:var(--color-primary);border-color:var(--color-primary)}.checkbox-control--checked:after{content:"";position:absolute;top:50%;left:50%;width:9px;height:5px;border-left:2px solid #ffffff;border-bottom:2px solid #ffffff;transform:translate(-50%,-65%) rotate(-45deg)}.checkbox-control--indeterminate{background-color:var(--color-primary);border-color:var(--color-primary)}.checkbox-control--indeterminate:after{content:"";position:absolute;top:50%;left:50%;width:8px;height:2px;background-color:#fff;border-radius:1px;transform:translate(-50%,-50%)}.checkbox-label{font-size:var(--font-size-sm);line-height:var(--line-height-normal);color:var(--color-body-text)}.switch-wrapper{display:inline-flex;align-items:center;gap:var(--spacing-2);cursor:pointer;-webkit-user-select:none;user-select:none;font-family:var(--font-family-base)}.switch-wrapper--disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.switch-track{width:36px;height:20px;flex-shrink:0;border-radius:var(--radius-full);background-color:var(--color-border);position:relative;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.switch-track--checked{background-color:var(--color-primary)}.switch-thumb{position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:var(--radius-full);background-color:#fff;box-shadow:var(--shadow-xs);transition:transform var(--transition-speed-fast) var(--transition-timing)}.switch-track--checked .switch-thumb{transform:translate(16px)}';var $i=Object.defineProperty,ki=Object.getOwnPropertyDescriptor,De=(i,e,t,o)=>{for(var r=o>1?void 0:o?ki(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&$i(e,t,r),r};n.Checkbox=class extends P{constructor(){super(...arguments),this.label="",this.value="",this.checked=!1,this.type="checkbox",this.disabled=!1,this.indeterminate=!1,this.internalChecked=!1}connectedCallback(){super.connectedCallback(),this.internalChecked=this.checked}firstUpdated(){this.setIndeterminate()}updated(e){e.has("indeterminate")&&this.setIndeterminate(),e.has("checked")&&(this.internalChecked=this.checked)}setIndeterminate(){this.inputElement&&(this.inputElement.indeterminate=this.indeterminate)}toggleChecked(){this.disabled||(this.indeterminate?(this.indeterminate=!1,this.internalChecked=!0):this.internalChecked=!this.internalChecked,this.dispatchEvent(new CustomEvent("lgsChange",{detail:{checked:this.internalChecked,indeterminate:this.indeterminate,value:this.value},bubbles:!0,composed:!0})))}renderCheckbox(){const e=["checkbox-control",this.internalChecked?"checkbox-control--checked":"",this.indeterminate?"checkbox-control--indeterminate":""].filter(Boolean).join(" ");return p`
46
46
  <div
47
47
  class="checkbox-wrapper ${this.disabled?"checkbox-wrapper--disabled":""}"
48
48
  @click=${this.toggleChecked}
@@ -53,12 +53,12 @@
53
53
  .checked=${this.internalChecked}
54
54
  ?disabled=${this.disabled}
55
55
  .value=${this.value}
56
- ${No(t=>this.inputElement=t)}
56
+ ${Zo(t=>this.inputElement=t)}
57
57
  />
58
58
  <span class="${e}"></span>
59
- ${this.label?u`<span class="checkbox-label">${this.label}</span>`:v}
59
+ ${this.label?p`<span class="checkbox-label">${this.label}</span>`:b}
60
60
  </div>
61
- `}renderSwitch(){return u`
61
+ `}renderSwitch(){return p`
62
62
  <div
63
63
  class="switch-wrapper ${this.disabled?"switch-wrapper--disabled":""}"
64
64
  @click=${this.toggleChecked}
@@ -69,21 +69,21 @@
69
69
  .checked=${this.internalChecked}
70
70
  ?disabled=${this.disabled}
71
71
  .value=${this.value}
72
- ${No(e=>this.inputElement=e)}
72
+ ${Zo(e=>this.inputElement=e)}
73
73
  />
74
74
  <div class="switch-track ${this.internalChecked?"switch-track--checked":""}">
75
75
  <div class="switch-thumb"></div>
76
76
  </div>
77
- ${this.label?u`<span class="checkbox-label">${this.label}</span>`:v}
77
+ ${this.label?p`<span class="checkbox-label">${this.label}</span>`:b}
78
78
  </div>
79
- `}render(){return this.type==="switch"?this.renderSwitch():this.renderCheckbox()}},n.Checkbox.styles=[R`
80
- ${H(_i)}
81
- `],De([d({type:String})],n.Checkbox.prototype,"label",2),De([d({type:String})],n.Checkbox.prototype,"value",2),De([d({type:Boolean})],n.Checkbox.prototype,"checked",2),De([d({type:String})],n.Checkbox.prototype,"type",2),De([d({type:Boolean})],n.Checkbox.prototype,"disabled",2),De([d({type:Boolean})],n.Checkbox.prototype,"indeterminate",2),De([y()],n.Checkbox.prototype,"internalChecked",2),n.Checkbox=De([V("logosphere-checkbox")],n.Checkbox);const xi=":host{display:block}.formfield{position:relative;font-family:var(--font-family-base)}.formfield__label{display:block;font-size:12px;line-height:1.125rem;letter-spacing:-.12px;font-weight:var(--font-weight-medium);color:var(--color-tertiary);margin-bottom:var(--spacing-1)}.formfield__required{color:var(--color-danger);margin-left:var(--spacing-1)}.formfield__container{position:relative;display:flex;align-items:center;box-sizing:border-box;border-radius:var(--formfield-border-radius, var(--radius-base));border-top:var(--formfield-border-top, var(--formfield-border-top-width, 1px) solid var(--formfield-border-color, var(--color-border)));border-right:var(--formfield-border-right, var(--formfield-border-right-width, 1px) solid var(--formfield-border-color, var(--color-border)));border-bottom:var(--formfield-border-bottom, var(--formfield-border-bottom-width, 1px) solid var(--formfield-border-color, var(--color-border)));border-left:var(--formfield-border-left, var(--formfield-border-left-width, 1px) solid var(--formfield-border-color, var(--color-border)));padding:0 var(--spacing-2) 0 var(--spacing-3);background-color:var(--color-body-bg);cursor:text;transition:border-color var(--transition-speed-base) var(--transition-timing),background-color var(--transition-speed-base) var(--transition-timing)}.formfield__container--cursor-text{cursor:text}.formfield__container--cursor-pointer{cursor:pointer}.formfield__container--cursor-default{cursor:default}.formfield__container--default{min-height:32px}.formfield__container--large{min-height:40px}.formfield__container--multiline{align-items:flex-start;min-height:64px;padding-top:var(--spacing-2);padding-bottom:var(--spacing-2)}import .formfield__container--hovered:not(.formfield__container--focused):not(.formfield__container--error):not(.formfield__container--disabled){background-color:var(--color-light)}.formfield__container--focused{border-color:var(--color-body-text);background-color:var(--color-body-bg)}.formfield__container--error{border-color:var(--color-danger)}.formfield__container--disabled{background-color:var(--color-body-bg);opacity:.4;cursor:not-allowed;pointer-events:none}.formfield__container--subtle:not(.formfield__container--focused):not(.formfield__container--error){border-color:transparent;background-color:var(--color-light)}.formfield__input-area{flex:1;min-width:0;display:flex;align-items:center}.formfield__container--multiline .formfield__input-area{align-items:flex-start;align-self:stretch}.formfield__prefix,.formfield__clear,.formfield__suffix{display:flex;align-items:center;flex-shrink:0;align-self:stretch}.formfield__container--multiline .formfield__clear,.formfield__container--multiline .formfield__suffix{align-items:flex-start}.formfield__prefix{margin-right:var(--spacing-2)}.formfield__clear,.formfield__suffix{margin-left:var(--spacing-2)}.formfield__container--has-prefix .formfield__prefix{border-right:1px solid var(--color-border);padding-right:var(--spacing-2)}.formfield__container--has-suffix .formfield__suffix{border-left:1px solid var(--color-border);padding-left:var(--spacing-2)}.formfield__prefix:empty,.formfield__clear:empty,.formfield__suffix:empty{display:none}.formfield__helper{font-size:11px;line-height:1rem;letter-spacing:-.11px;font-weight:var(--font-weight-regular);color:var(--color-tertiary);margin-top:var(--spacing-1)}.formfield__error{font-size:11px;line-height:1rem;letter-spacing:-.11px;font-weight:var(--font-weight-regular);color:var(--color-danger);margin-top:var(--spacing-1)}::slotted(input),::slotted(textarea){width:100%;border:none;outline:none;background:transparent;font-family:inherit;font-size:14px;line-height:1.25rem;letter-spacing:-.14px;color:var(--color-body-text)}::slotted(input:disabled),::slotted(textarea:disabled){cursor:not-allowed}";var $i=Object.defineProperty,ki=Object.getOwnPropertyDescriptor,W=(i,e,t,o)=>{for(var r=o>1?void 0:o?ki(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&$i(e,t,r),r};n.FormField=class extends D{constructor(){super(...arguments),this.label="",this.helper="",this.error="",this.placeholder="",this.size="default",this.variant="default",this.cursor="text",this.required=!1,this.disabled=!1,this.readonly=!1,this.multiline=!1,this.forceFocused=!1,this._focused=!1,this._hovered=!1,this._hasPrefix=!1,this._hasSuffix=!1,this.handleSlotFocus=e=>{const t=e.target;["INPUT","TEXTAREA","SELECT"].includes(t.tagName)&&(this._focused=!0,this.dispatchEvent(new CustomEvent("field-focus",{bubbles:!0,composed:!0,detail:{originalEvent:e}})))},this.handleSlotBlur=e=>{const t=e.target;["INPUT","TEXTAREA","SELECT"].includes(t.tagName)&&(this._focused=!1,this.dispatchEvent(new CustomEvent("field-blur",{bubbles:!0,composed:!0,detail:{originalEvent:e}})))},this.handleMouseEnter=()=>{this._hovered=!0},this.handleMouseLeave=()=>{this._hovered=!1},this.handleContainerClick=e=>{var s;const t=e.target;if(["INPUT","TEXTAREA","SELECT","BUTTON"].includes(t.tagName))return;const o=(s=this.shadowRoot)==null?void 0:s.querySelector("slot:not([name])"),r=o==null?void 0:o.assignedElements({flatten:!0}).find(a=>["INPUT","TEXTAREA","SELECT"].includes(a.tagName));r==null||r.focus()},this.handlePrefixSlotChange=e=>{const t=e.target;this._hasPrefix=t.assignedElements({flatten:!0}).length>0},this.handleSuffixSlotChange=e=>{const t=e.target;this._hasSuffix=t.assignedElements({flatten:!0}).length>0}}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.handleSlotFocus,!0),this.addEventListener("blur",this.handleSlotBlur,!0)}firstUpdated(){var o,r;const e=(o=this.shadowRoot)==null?void 0:o.querySelector('slot[name="prefix"]'),t=(r=this.shadowRoot)==null?void 0:r.querySelector('slot[name="suffix"]');e&&(this._hasPrefix=e.assignedElements({flatten:!0}).length>0),t&&(this._hasSuffix=t.assignedElements({flatten:!0}).length>0)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.handleSlotFocus,!0),this.removeEventListener("blur",this.handleSlotBlur,!0)}render(){const e=!!this.error,t=!e&&!!this.helper,o=["formfield__container",`formfield__container--${this.size}`,`formfield__container--cursor-${this.cursor}`,this._hasPrefix?"formfield__container--has-prefix":"",this._hasSuffix?"formfield__container--has-suffix":"",e?"formfield__container--error":"",this._focused||this.forceFocused?"formfield__container--focused":"",this._hovered?"formfield__container--hovered":"",this.disabled?"formfield__container--disabled":"",this.variant==="subtle"?"formfield__container--subtle":"",this.multiline?"formfield__container--multiline":""].filter(Boolean).join(" ");return u`
79
+ `}render(){return this.type==="switch"?this.renderSwitch():this.renderCheckbox()}},n.Checkbox.styles=[H`
80
+ ${I(xi)}
81
+ `],De([d({type:String})],n.Checkbox.prototype,"label",2),De([d({type:String})],n.Checkbox.prototype,"value",2),De([d({type:Boolean})],n.Checkbox.prototype,"checked",2),De([d({type:String})],n.Checkbox.prototype,"type",2),De([d({type:Boolean})],n.Checkbox.prototype,"disabled",2),De([d({type:Boolean})],n.Checkbox.prototype,"indeterminate",2),De([y()],n.Checkbox.prototype,"internalChecked",2),n.Checkbox=De([V("logosphere-checkbox")],n.Checkbox);const Ci=":host{display:block}.formfield{position:relative;font-family:var(--font-family-base)}.formfield__label{display:block;font-size:12px;line-height:1.125rem;letter-spacing:-.12px;font-weight:var(--font-weight-medium);color:var(--color-tertiary);margin-bottom:var(--spacing-1)}.formfield__required{color:var(--color-danger);margin-left:var(--spacing-1)}.formfield__container{position:relative;display:flex;align-items:center;box-sizing:border-box;border-radius:var(--formfield-border-radius, var(--radius-base));border-top:var(--formfield-border-top, var(--formfield-border-top-width, 1px) solid var(--formfield-border-color, var(--color-border)));border-right:var(--formfield-border-right, var(--formfield-border-right-width, 1px) solid var(--formfield-border-color, var(--color-border)));border-bottom:var(--formfield-border-bottom, var(--formfield-border-bottom-width, 1px) solid var(--formfield-border-color, var(--color-border)));border-left:var(--formfield-border-left, var(--formfield-border-left-width, 1px) solid var(--formfield-border-color, var(--color-border)));padding:0 var(--spacing-2) 0 var(--spacing-3);background-color:var(--color-body-bg);cursor:text;transition:border-color var(--transition-speed-base) var(--transition-timing),background-color var(--transition-speed-base) var(--transition-timing)}.formfield__container--cursor-text{cursor:text}.formfield__container--cursor-pointer{cursor:pointer}.formfield__container--cursor-default{cursor:default}.formfield__container--default{min-height:32px}.formfield__container--large{min-height:40px}.formfield__container--multiline{align-items:flex-start;min-height:64px;padding-top:var(--spacing-2);padding-bottom:var(--spacing-2)}import .formfield__container--hovered:not(.formfield__container--focused):not(.formfield__container--error):not(.formfield__container--disabled){background-color:var(--color-light)}.formfield__container--focused{border-color:var(--color-body-text);background-color:var(--color-body-bg)}.formfield__container--error{border-color:var(--color-danger)}.formfield__container--disabled{background-color:var(--color-body-bg);opacity:.4;cursor:not-allowed;pointer-events:none}.formfield__container--subtle:not(.formfield__container--focused):not(.formfield__container--error){border-color:transparent;background-color:var(--color-light)}.formfield__input-area{flex:1;min-width:0;display:flex;align-items:center}.formfield__container--multiline .formfield__input-area{align-items:flex-start;align-self:stretch}.formfield__prefix,.formfield__clear,.formfield__suffix{display:flex;align-items:center;flex-shrink:0;align-self:stretch}.formfield__container--multiline .formfield__clear,.formfield__container--multiline .formfield__suffix{align-items:flex-start}.formfield__prefix{margin-right:var(--spacing-2)}.formfield__clear,.formfield__suffix{margin-left:var(--spacing-2)}.formfield__container--has-prefix .formfield__prefix{border-right:1px solid var(--color-border);padding-right:var(--spacing-2)}.formfield__container--has-suffix .formfield__suffix{border-left:1px solid var(--color-border);padding-left:var(--spacing-2)}.formfield__prefix:empty,.formfield__clear:empty,.formfield__suffix:empty{display:none}.formfield__helper{font-size:11px;line-height:1rem;letter-spacing:-.11px;font-weight:var(--font-weight-regular);color:var(--color-tertiary);margin-top:var(--spacing-1)}.formfield__error{font-size:11px;line-height:1rem;letter-spacing:-.11px;font-weight:var(--font-weight-regular);color:var(--color-danger);margin-top:var(--spacing-1)}::slotted(input),::slotted(textarea){width:100%;border:none;outline:none;background:transparent;font-family:inherit;font-size:14px;line-height:1.25rem;letter-spacing:-.14px;color:var(--color-body-text)}::slotted(input:disabled),::slotted(textarea:disabled){cursor:not-allowed}";var Si=Object.defineProperty,Ei=Object.getOwnPropertyDescriptor,K=(i,e,t,o)=>{for(var r=o>1?void 0:o?Ei(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&Si(e,t,r),r};n.FormField=class extends P{constructor(){super(...arguments),this.label="",this.helper="",this.error="",this.placeholder="",this.size="default",this.variant="default",this.cursor="text",this.required=!1,this.disabled=!1,this.readonly=!1,this.multiline=!1,this.forceFocused=!1,this._focused=!1,this._hovered=!1,this._hasPrefix=!1,this._hasSuffix=!1,this.handleSlotFocus=e=>{const t=e.target;["INPUT","TEXTAREA","SELECT"].includes(t.tagName)&&(this._focused=!0,this.dispatchEvent(new CustomEvent("field-focus",{bubbles:!0,composed:!0,detail:{originalEvent:e}})))},this.handleSlotBlur=e=>{const t=e.target;["INPUT","TEXTAREA","SELECT"].includes(t.tagName)&&(this._focused=!1,this.dispatchEvent(new CustomEvent("field-blur",{bubbles:!0,composed:!0,detail:{originalEvent:e}})))},this.handleMouseEnter=()=>{this._hovered=!0},this.handleMouseLeave=()=>{this._hovered=!1},this.handleContainerClick=e=>{var a;const t=e.target;if(["INPUT","TEXTAREA","SELECT","BUTTON"].includes(t.tagName))return;const o=(a=this.shadowRoot)==null?void 0:a.querySelector("slot:not([name])"),r=o==null?void 0:o.assignedElements({flatten:!0}).find(s=>["INPUT","TEXTAREA","SELECT"].includes(s.tagName));r==null||r.focus()},this.handlePrefixSlotChange=e=>{const t=e.target;this._hasPrefix=t.assignedElements({flatten:!0}).length>0},this.handleSuffixSlotChange=e=>{const t=e.target;this._hasSuffix=t.assignedElements({flatten:!0}).length>0}}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.handleSlotFocus,!0),this.addEventListener("blur",this.handleSlotBlur,!0)}firstUpdated(){var o,r;const e=(o=this.shadowRoot)==null?void 0:o.querySelector('slot[name="prefix"]'),t=(r=this.shadowRoot)==null?void 0:r.querySelector('slot[name="suffix"]');e&&(this._hasPrefix=e.assignedElements({flatten:!0}).length>0),t&&(this._hasSuffix=t.assignedElements({flatten:!0}).length>0)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.handleSlotFocus,!0),this.removeEventListener("blur",this.handleSlotBlur,!0)}render(){const e=!!this.error,t=!e&&!!this.helper,o=["formfield__container",`formfield__container--${this.size}`,`formfield__container--cursor-${this.cursor}`,this._hasPrefix?"formfield__container--has-prefix":"",this._hasSuffix?"formfield__container--has-suffix":"",e?"formfield__container--error":"",this._focused||this.forceFocused?"formfield__container--focused":"",this._hovered?"formfield__container--hovered":"",this.disabled?"formfield__container--disabled":"",this.variant==="subtle"?"formfield__container--subtle":"",this.multiline?"formfield__container--multiline":""].filter(Boolean).join(" ");return p`
82
82
  <div class="formfield">
83
- ${this.label?u`
83
+ ${this.label?p`
84
84
  <label class="formfield__label">
85
85
  ${this.label}
86
- ${this.required?u`<span class="formfield__required">*</span>`:""}
86
+ ${this.required?p`<span class="formfield__required">*</span>`:""}
87
87
  </label>
88
88
  `:""}
89
89
 
@@ -107,10 +107,10 @@
107
107
  </div>
108
108
  </div>
109
109
 
110
- ${t?u`<div class="formfield__helper">${this.helper}</div>`:""}
111
- ${e?u`<div class="formfield__error">${this.error}</div>`:""}
110
+ ${t?p`<div class="formfield__helper">${this.helper}</div>`:""}
111
+ ${e?p`<div class="formfield__error">${this.error}</div>`:""}
112
112
  </div>
113
- `}},n.FormField.styles=[R`${H(xi)}`],W([d({type:String})],n.FormField.prototype,"label",2),W([d({type:String})],n.FormField.prototype,"helper",2),W([d({type:String})],n.FormField.prototype,"error",2),W([d({type:String})],n.FormField.prototype,"placeholder",2),W([d({type:String})],n.FormField.prototype,"size",2),W([d({type:String})],n.FormField.prototype,"variant",2),W([d({type:String})],n.FormField.prototype,"cursor",2),W([d({type:Boolean})],n.FormField.prototype,"required",2),W([d({type:Boolean})],n.FormField.prototype,"disabled",2),W([d({type:Boolean})],n.FormField.prototype,"readonly",2),W([d({type:Boolean})],n.FormField.prototype,"multiline",2),W([d({type:Boolean})],n.FormField.prototype,"forceFocused",2),W([y()],n.FormField.prototype,"_focused",2),W([y()],n.FormField.prototype,"_hovered",2),W([y()],n.FormField.prototype,"_hasPrefix",2),W([y()],n.FormField.prototype,"_hasSuffix",2),n.FormField=W([V("logosphere-formfield")],n.FormField);const Ci=":host{display:inline-block}.switch{display:inline-flex;align-items:center;position:relative;cursor:pointer}.switch--md{width:36px;height:20px}.switch--sm{width:28px;height:16px}.switch__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.switch__track{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:16px;cursor:pointer;transition:background-color var(--transition-speed-base) var(--transition-timing);background-color:var(--color-tertiary)}.switch__track--on{background-color:var(--color-primary)}.switch__track--disabled{cursor:not-allowed}.switch__track--disabled-off{background-color:var(--color-secondary-disabled)}.switch__track--disabled-on{background-color:var(--color-primary-disabled)}.switch__thumb{position:absolute;background-color:#fff;border-radius:50%;top:2px;left:2px;transform:translate(0);transition:transform var(--transition-speed-base) var(--transition-timing)}.switch--md .switch__thumb{width:16px;height:16px}.switch--sm .switch__thumb{width:12px;height:12px}";var Si=Object.defineProperty,Ei=Object.getOwnPropertyDescriptor,vt=(i,e,t,o)=>{for(var r=o>1?void 0:o?Ei(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Si(e,t,r),r};n.Switch=class extends D{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.size="md"}onChange(e){const t=e.target;this.checked=t.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked}}))}render(){const e=`switch switch--${this.size}`,t=["switch__track",this.checked&&!this.disabled?"switch__track--on":"",this.disabled?"switch__track--disabled":"",this.disabled&&this.checked?"switch__track--disabled-on":"",this.disabled&&!this.checked?"switch__track--disabled-off":""].filter(Boolean).join(" "),o=this.size==="sm"?12:16,r=this.checked?`translateX(${o}px)`:"translateX(0)";return u`
113
+ `}},n.FormField.styles=[H`${I(Ci)}`],K([d({type:String})],n.FormField.prototype,"label",2),K([d({type:String})],n.FormField.prototype,"helper",2),K([d({type:String})],n.FormField.prototype,"error",2),K([d({type:String})],n.FormField.prototype,"placeholder",2),K([d({type:String})],n.FormField.prototype,"size",2),K([d({type:String})],n.FormField.prototype,"variant",2),K([d({type:String})],n.FormField.prototype,"cursor",2),K([d({type:Boolean})],n.FormField.prototype,"required",2),K([d({type:Boolean})],n.FormField.prototype,"disabled",2),K([d({type:Boolean})],n.FormField.prototype,"readonly",2),K([d({type:Boolean})],n.FormField.prototype,"multiline",2),K([d({type:Boolean})],n.FormField.prototype,"forceFocused",2),K([y()],n.FormField.prototype,"_focused",2),K([y()],n.FormField.prototype,"_hovered",2),K([y()],n.FormField.prototype,"_hasPrefix",2),K([y()],n.FormField.prototype,"_hasSuffix",2),n.FormField=K([V("logosphere-formfield")],n.FormField);const Ai=":host{display:inline-block}.switch{display:inline-flex;align-items:center;position:relative;cursor:pointer}.switch--md{width:36px;height:20px}.switch--sm{width:28px;height:16px}.switch__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.switch__track{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:16px;cursor:pointer;transition:background-color var(--transition-speed-base) var(--transition-timing);background-color:var(--color-tertiary)}.switch__track--on{background-color:var(--color-primary)}.switch__track--disabled{cursor:not-allowed}.switch__track--disabled-off{background-color:var(--color-secondary-disabled)}.switch__track--disabled-on{background-color:var(--color-primary-disabled)}.switch__thumb{position:absolute;background-color:#fff;border-radius:50%;top:2px;left:2px;transform:translate(0);transition:transform var(--transition-speed-base) var(--transition-timing)}.switch--md .switch__thumb{width:16px;height:16px}.switch--sm .switch__thumb{width:12px;height:12px}";var Pi=Object.defineProperty,Mi=Object.getOwnPropertyDescriptor,yt=(i,e,t,o)=>{for(var r=o>1?void 0:o?Mi(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&Pi(e,t,r),r};n.Switch=class extends P{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.size="md"}onChange(e){const t=e.target;this.checked=t.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked}}))}render(){const e=`switch switch--${this.size}`,t=["switch__track",this.checked&&!this.disabled?"switch__track--on":"",this.disabled?"switch__track--disabled":"",this.disabled&&this.checked?"switch__track--disabled-on":"",this.disabled&&!this.checked?"switch__track--disabled-off":""].filter(Boolean).join(" "),o=this.size==="sm"?12:16,r=this.checked?`translateX(${o}px)`:"translateX(0)";return p`
114
114
  <label class="${e}">
115
115
  <input
116
116
  class="switch__input"
@@ -126,35 +126,35 @@
126
126
  ></span>
127
127
  </div>
128
128
  </label>
129
- `}},n.Switch.styles=[R`${H(Ci)}`],vt([d({type:Boolean})],n.Switch.prototype,"checked",2),vt([d({type:Boolean})],n.Switch.prototype,"disabled",2),vt([d({type:String})],n.Switch.prototype,"size",2),vt([Z("input")],n.Switch.prototype,"inputElement",2),n.Switch=vt([V("logosphere-switch")],n.Switch);const Ai=".breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:var(--spacing-2);font-family:var(--font-family-base);font-size:var(--font-size-sm);line-height:var(--line-height-normal);list-style:none;margin:0;padding:0}.breadcrumb__item{display:inline-flex;align-items:center;gap:var(--spacing-2)}.breadcrumb__link{color:var(--color-primary);text-decoration:none;font-weight:var(--font-weight-regular);transition:color var(--transition-speed-fast) var(--transition-timing),text-decoration var(--transition-speed-fast) var(--transition-timing)}.breadcrumb__link:hover{color:var(--color-primary-hover);text-decoration:underline}.breadcrumb__label{color:var(--color-tertiary);font-weight:var(--font-weight-regular)}.breadcrumb__label--active{color:var(--color-emphasis);font-weight:var(--font-weight-medium)}.breadcrumb__separator{color:var(--color-gray-400);-webkit-user-select:none;user-select:none;flex-shrink:0}";var Mi=Object.defineProperty,Di=Object.getOwnPropertyDescriptor,Uo=(i,e,t,o)=>{for(var r=o>1?void 0:o?Di(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Mi(e,t,r),r};n.Breadcrumb=class extends D{constructor(){super(...arguments),this.items=[]}render(){return u`
129
+ `}},n.Switch.styles=[H`${I(Ai)}`],yt([d({type:Boolean})],n.Switch.prototype,"checked",2),yt([d({type:Boolean})],n.Switch.prototype,"disabled",2),yt([d({type:String})],n.Switch.prototype,"size",2),yt([Z("input")],n.Switch.prototype,"inputElement",2),n.Switch=yt([V("logosphere-switch")],n.Switch);const zi=".breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:var(--spacing-2);font-family:var(--font-family-base);font-size:var(--font-size-sm);line-height:var(--line-height-normal);list-style:none;margin:0;padding:0}.breadcrumb__item{display:inline-flex;align-items:center;gap:var(--spacing-2)}.breadcrumb__link{color:var(--color-primary);text-decoration:none;font-weight:var(--font-weight-regular);transition:color var(--transition-speed-fast) var(--transition-timing),text-decoration var(--transition-speed-fast) var(--transition-timing)}.breadcrumb__link:hover{color:var(--color-primary-hover);text-decoration:underline}.breadcrumb__label{color:var(--color-tertiary);font-weight:var(--font-weight-regular)}.breadcrumb__label--active{color:var(--color-emphasis);font-weight:var(--font-weight-medium)}.breadcrumb__separator{color:var(--color-gray-400);-webkit-user-select:none;user-select:none;flex-shrink:0}";var Di=Object.defineProperty,Ti=Object.getOwnPropertyDescriptor,Wo=(i,e,t,o)=>{for(var r=o>1?void 0:o?Ti(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&Di(e,t,r),r};n.Breadcrumb=class extends P{constructor(){super(...arguments),this.items=[]}render(){return p`
130
130
  <nav>
131
131
  <ol class="breadcrumb">
132
- ${this.items.map((e,t)=>u`
132
+ ${this.items.map((e,t)=>p`
133
133
  <li class="breadcrumb__item">
134
- ${e.href&&!e.active?u`<a href="${e.href}" class="breadcrumb__link">${e.label}</a>`:u`<span class="breadcrumb__label ${e.active?"breadcrumb__label--active":""}">${e.label}</span>`}
135
- ${t<this.items.length-1?u`<span class="breadcrumb__separator">/</span>`:""}
134
+ ${e.href&&!e.active?p`<a href="${e.href}" class="breadcrumb__link">${e.label}</a>`:p`<span class="breadcrumb__label ${e.active?"breadcrumb__label--active":""}">${e.label}</span>`}
135
+ ${t<this.items.length-1?p`<span class="breadcrumb__separator">/</span>`:""}
136
136
  </li>
137
137
  `)}
138
138
  </ol>
139
139
  </nav>
140
- `}},n.Breadcrumb.styles=[R`${H(Ai)}`],Uo([d({type:Array})],n.Breadcrumb.prototype,"items",2),n.Breadcrumb=Uo([V("logosphere-breadcrumb")],n.Breadcrumb);const Ti=".card{width:100%;border-radius:var(--radius-lg);border:1px solid var(--color-border);background-color:var(--color-body-bg);overflow:hidden;box-shadow:0 4px 4px 0 var(--color-light-bg);display:grid;grid-template-rows:auto 1fr auto}.card__header{padding:var(--spacing-4);border-bottom:1px solid var(--color-border);background-color:var(--color-body-bg)}.card__header--hidden{display:none}.card__title{margin:0;font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);line-height:20px;letter-spacing:-.14px;color:var(--color-body-text);font-family:var(--font-family-base)}.card__description{margin:0;color:var(--color-tertiary);font-size:var(--font-size-xs);font-weight:var(--font-weight-regular);line-height:18px;letter-spacing:-.12px;font-family:var(--font-family-base)}.card__body{padding:var(--spacing-4);font-size:var(--font-size-sm);line-height:var(--line-height-normal);font-family:var(--font-family-base)}.card__footer{padding:var(--spacing-4);display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:var(--spacing-2);background-color:var(--color-body-bg);border-top:1px solid var(--color-border)}.card__footer--hidden{display:none}";var zi=Object.defineProperty,Pi=Object.getOwnPropertyDescriptor,we=(i,e,t,o)=>{for(var r=o>1?void 0:o?Pi(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&zi(e,t,r),r};n.Card=class extends D{constructor(){super(...arguments),this.title="",this.description="",this.header=!0,this.footer=!0,this.okLabel="Tamam",this.cancelLabel="İptal"}handleOk(){var e;(e=this.onOk)==null||e.call(this),this.dispatchEvent(new CustomEvent("ok",{bubbles:!0,composed:!0}))}handleCancel(){var e;(e=this.onCancel)==null||e.call(this),this.dispatchEvent(new CustomEvent("cancel",{bubbles:!0,composed:!0}))}render(){return u`
140
+ `}},n.Breadcrumb.styles=[H`${I(zi)}`],Wo([d({type:Array})],n.Breadcrumb.prototype,"items",2),n.Breadcrumb=Wo([V("logosphere-breadcrumb")],n.Breadcrumb);const Li=".card{width:100%;border-radius:var(--radius-lg);border:1px solid var(--color-border);background-color:var(--color-body-bg);overflow:hidden;box-shadow:0 4px 4px 0 var(--color-light-bg);display:grid;grid-template-rows:auto 1fr auto}.card__header{padding:var(--spacing-4);border-bottom:1px solid var(--color-border);background-color:var(--color-body-bg)}.card__header--hidden{display:none}.card__title{margin:0;font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);line-height:20px;letter-spacing:-.14px;color:var(--color-body-text);font-family:var(--font-family-base)}.card__description{margin:0;color:var(--color-tertiary);font-size:var(--font-size-xs);font-weight:var(--font-weight-regular);line-height:18px;letter-spacing:-.12px;font-family:var(--font-family-base)}.card__body{padding:var(--spacing-4);font-size:var(--font-size-sm);line-height:var(--line-height-normal);font-family:var(--font-family-base)}.card__footer{padding:var(--spacing-4);display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:var(--spacing-2);background-color:var(--color-body-bg);border-top:1px solid var(--color-border)}.card__footer--hidden{display:none}";var Oi=Object.defineProperty,Bi=Object.getOwnPropertyDescriptor,$e=(i,e,t,o)=>{for(var r=o>1?void 0:o?Bi(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&Oi(e,t,r),r};n.Card=class extends P{constructor(){super(...arguments),this.title="",this.description="",this.header=!0,this.footer=!0,this.okLabel="Tamam",this.cancelLabel="İptal"}handleOk(){var e;(e=this.onOk)==null||e.call(this),this.dispatchEvent(new CustomEvent("ok",{bubbles:!0,composed:!0}))}handleCancel(){var e;(e=this.onCancel)==null||e.call(this),this.dispatchEvent(new CustomEvent("cancel",{bubbles:!0,composed:!0}))}render(){return p`
141
141
  <div class="card">
142
- ${this.header?u`
142
+ ${this.header?p`
143
143
  <div class="card__header">
144
- ${this.title?u`<h3 class="card__title">${this.title}</h3>`:v}
145
- ${this.description?u`<p class="card__description">${this.description}</p>`:v}
144
+ ${this.title?p`<h3 class="card__title">${this.title}</h3>`:b}
145
+ ${this.description?p`<p class="card__description">${this.description}</p>`:b}
146
146
  <slot name="header"></slot>
147
147
  </div>
148
- `:v}
148
+ `:b}
149
149
 
150
150
  <div class="card__body">
151
151
  <slot></slot>
152
152
  </div>
153
153
 
154
- ${this.footer?u`
154
+ ${this.footer?p`
155
155
  <div class="card__footer">
156
156
  <slot name="footer"></slot>
157
- ${this.onCancel?u`
157
+ ${this.onCancel?p`
158
158
  <logosphere-button
159
159
  variant="outline"
160
160
  theme="secondary"
@@ -163,8 +163,8 @@
163
163
  >
164
164
  ${this.cancelLabel}
165
165
  </logosphere-button>
166
- `:v}
167
- ${this.onOk?u`
166
+ `:b}
167
+ ${this.onOk?p`
168
168
  <logosphere-button
169
169
  variant="solid"
170
170
  theme="primary"
@@ -173,13 +173,13 @@
173
173
  >
174
174
  ${this.okLabel}
175
175
  </logosphere-button>
176
- `:v}
176
+ `:b}
177
177
  </div>
178
- `:v}
178
+ `:b}
179
179
  </div>
180
- `}},n.Card.styles=[R`
181
- ${H(Ti)}
182
- `],we([d({type:String})],n.Card.prototype,"title",2),we([d({type:String})],n.Card.prototype,"description",2),we([d({type:Boolean})],n.Card.prototype,"header",2),we([d({type:Boolean})],n.Card.prototype,"footer",2),we([d({attribute:!1})],n.Card.prototype,"onOk",2),we([d({attribute:!1})],n.Card.prototype,"onCancel",2),we([d({type:String})],n.Card.prototype,"okLabel",2),we([d({type:String})],n.Card.prototype,"cancelLabel",2),n.Card=we([V("logosphere-card")],n.Card);const co=Pt(class extends Lt{constructor(i){if(super(i),i.type!==ye.PROPERTY&&i.type!==ye.ATTRIBUTE&&i.type!==ye.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Yo(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[e]){if(e===le||e===v)return e;const t=i.element,o=i.name;if(i.type===ye.PROPERTY){if(e===t[o])return le}else if(i.type===ye.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(o))return le}else if(i.type===ye.ATTRIBUTE&&t.getAttribute(o)===e+"")return le;return Fo(i),e}}),Li=".input__field{width:100%;background:transparent;border:none;outline:none;font-size:var(--font-size-sm);font-family:var(--font-family-base);color:var(--color-body-text);box-sizing:border-box;line-height:1.5}.input__field::placeholder{color:var(--color-tertiary)}.input__field:disabled{cursor:not-allowed}.input__field--default{height:16px}.input__field--large{height:24px}.input__clear-btn{border:none;background:transparent;color:var(--color-gray-400);cursor:pointer;padding:0;display:inline-flex;align-items:center;outline:none;flex-shrink:0;transition:color var(--transition-speed-fast) var(--transition-timing)}.input__clear-btn:hover{color:var(--color-gray-600)}";var Oi=Object.defineProperty,Bi=Object.getOwnPropertyDescriptor,Y=(i,e,t,o)=>{for(var r=o>1?void 0:o?Bi(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Oi(e,t,r),r};const qo={0:/\d/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/};function ho(i){return i.split("").filter(e=>/[a-zA-Z0-9]/.test(e)).join("")}function Ii(i,e){let t=0,o="";for(let r=0;r<e.length&&!(t>=i.length);r++){const s=e[r],a=qo[s];if(a){for(;t<i.length&&!a.test(i[t]);)t++;t<i.length&&(o+=i[t++])}else o+=s}return o}function Hi(i,e,t){let o=0;for(let r=0;r<i.length;r++)if(qo[e[r]]&&(o++,o===t))return r+1;return i.length}n.LogosphereInput=class extends D{constructor(){super(...arguments),this.value="",this.type="text",this.placeholder="",this.name="",this.autocomplete="",this.pattern="",this.size="default",this.variant="default",this.label="",this.helper="",this.error="",this.required=!1,this.disabled=!1,this.readonly=!1,this.mask="",this._internalError="",this._showPassword=!1,this.handleInput=e=>{var o;const t=e.target;if(this.mask){const r=(o=t.selectionStart)!=null?o:t.value.length,s=ho(t.value.slice(0,r)).length,a=ho(t.value),l=Ii(a,this.mask);t.value=l,this.value=l;const c=Hi(l,this.mask,s);requestAnimationFrame(()=>t.setSelectionRange(c,c))}else this.value=t.value;this._internalError&&(this._internalError="",this._inputElement.setCustomValidity("")),this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:this.value,rawValue:this.mask?ho(this.value):this.value,originalEvent:e}}))},this.handleChange=e=>{const t=e.target;this.value=t.value,t.checkValidity()||(this._internalError=t.validationMessage),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{value:this.value,originalEvent:e}}))},this.handleKeyDown=e=>{this.dispatchEvent(new CustomEvent("keydown",{bubbles:!0,composed:!0,detail:{key:e.key,originalEvent:e}}))},this.handleKeyUp=e=>{this.dispatchEvent(new CustomEvent("keyup",{bubbles:!0,composed:!0,detail:{key:e.key,originalEvent:e}}))},this.handleClear=()=>{this.value="",this._inputElement&&(this._inputElement.value=""),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:"",originalEvent:null}}))},this.handlePasswordToggle=()=>{var e;this.disabled||(this._showPassword=!this._showPassword,(e=this._inputElement)==null||e.focus())}}get inputElement(){return this._inputElement}focus(){var e;(e=this._inputElement)==null||e.focus()}blur(){var e;(e=this._inputElement)==null||e.blur()}select(){var e;(e=this._inputElement)==null||e.select()}setSelectionRange(e,t,o){var r;(r=this._inputElement)==null||r.setSelectionRange(e,t,o)}checkValidity(){var e,t;return(t=(e=this._inputElement)==null?void 0:e.checkValidity())!=null?t:!0}reportValidity(){var e,t;return(t=(e=this._inputElement)==null?void 0:e.reportValidity())!=null?t:!0}setCustomValidity(e){var t;(t=this._inputElement)==null||t.setCustomValidity(e),this._internalError=e,this.requestUpdate()}willUpdate(e){e.has("type")&&this.type!=="password"&&this._showPassword&&(this._showPassword=!1)}get _effectivePlaceholder(){return this.placeholder?this.placeholder:this.mask?this.mask.replace(/[0a*]/g,"_"):""}render(){var a,l,c,p,h;const e=this.error||this._internalError,t=!!this.value&&!this.disabled&&!this.readonly,o=this.type==="password",r=o&&this._showPassword?"text":this.type,s=`input__field input__field--${this.size}`;return u`
180
+ `}},n.Card.styles=[H`
181
+ ${I(Li)}
182
+ `],$e([d({type:String})],n.Card.prototype,"title",2),$e([d({type:String})],n.Card.prototype,"description",2),$e([d({type:Boolean})],n.Card.prototype,"header",2),$e([d({type:Boolean})],n.Card.prototype,"footer",2),$e([d({attribute:!1})],n.Card.prototype,"onOk",2),$e([d({attribute:!1})],n.Card.prototype,"onCancel",2),$e([d({type:String})],n.Card.prototype,"okLabel",2),$e([d({type:String})],n.Card.prototype,"cancelLabel",2),n.Card=$e([V("logosphere-card")],n.Card);const Ht=Ot(class extends Bt{constructor(i){if(super(i),i.type!==xe.PROPERTY&&i.type!==xe.ATTRIBUTE&&i.type!==xe.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Vo(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[e]){if(e===de||e===b)return e;const t=i.element,o=i.name;if(i.type===xe.PROPERTY){if(e===t[o])return de}else if(i.type===xe.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(o))return de}else if(i.type===xe.ATTRIBUTE&&t.getAttribute(o)===e+"")return de;return Uo(i),e}}),Ii=".input__field{width:100%;background:transparent;border:none;outline:none;font-size:var(--font-size-sm);font-family:var(--font-family-base);color:var(--color-body-text);box-sizing:border-box;line-height:1.5}.input__field::placeholder{color:var(--color-tertiary)}.input__field:disabled{cursor:not-allowed}.input__field--default{height:16px}.input__field--large{height:24px}.input__clear-btn{border:none;background:transparent;color:var(--color-gray-400);cursor:pointer;padding:0;display:inline-flex;align-items:center;outline:none;flex-shrink:0;transition:color var(--transition-speed-fast) var(--transition-timing)}.input__clear-btn:hover{color:var(--color-gray-600)}";var Hi=Object.defineProperty,Ri=Object.getOwnPropertyDescriptor,Y=(i,e,t,o)=>{for(var r=o>1?void 0:o?Ri(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&Hi(e,t,r),r};const Ko={0:/\d/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/};function uo(i){return i.split("").filter(e=>/[a-zA-Z0-9]/.test(e)).join("")}function Yi(i,e){let t=0,o="";for(let r=0;r<e.length&&!(t>=i.length);r++){const a=e[r],s=Ko[a];if(s){for(;t<i.length&&!s.test(i[t]);)t++;t<i.length&&(o+=i[t++])}else o+=a}return o}function ji(i,e,t){let o=0;for(let r=0;r<i.length;r++)if(Ko[e[r]]&&(o++,o===t))return r+1;return i.length}n.LogosphereInput=class extends P{constructor(){super(...arguments),this.value="",this.type="text",this.placeholder="",this.name="",this.autocomplete="",this.pattern="",this.size="default",this.variant="default",this.label="",this.helper="",this.error="",this.required=!1,this.disabled=!1,this.readonly=!1,this.mask="",this._internalError="",this._showPassword=!1,this.handleInput=e=>{var o;const t=e.target;if(this.mask){const r=(o=t.selectionStart)!=null?o:t.value.length,a=uo(t.value.slice(0,r)).length,s=uo(t.value),l=Yi(s,this.mask);t.value=l,this.value=l;const c=ji(l,this.mask,a);requestAnimationFrame(()=>t.setSelectionRange(c,c))}else this.value=t.value;this._internalError&&(this._internalError="",this._inputElement.setCustomValidity("")),this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:this.value,rawValue:this.mask?uo(this.value):this.value,originalEvent:e}}))},this.handleChange=e=>{const t=e.target;this.value=t.value,t.checkValidity()||(this._internalError=t.validationMessage),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{value:this.value,originalEvent:e}}))},this.handleKeyDown=e=>{this.dispatchEvent(new CustomEvent("keydown",{bubbles:!0,composed:!0,detail:{key:e.key,originalEvent:e}}))},this.handleKeyUp=e=>{this.dispatchEvent(new CustomEvent("keyup",{bubbles:!0,composed:!0,detail:{key:e.key,originalEvent:e}}))},this.handleClear=()=>{this.value="",this._inputElement&&(this._inputElement.value=""),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:"",originalEvent:null}}))},this.handlePasswordToggle=()=>{var e;this.disabled||(this._showPassword=!this._showPassword,(e=this._inputElement)==null||e.focus())}}get inputElement(){return this._inputElement}focus(){var e;(e=this._inputElement)==null||e.focus()}blur(){var e;(e=this._inputElement)==null||e.blur()}select(){var e;(e=this._inputElement)==null||e.select()}setSelectionRange(e,t,o){var r;(r=this._inputElement)==null||r.setSelectionRange(e,t,o)}checkValidity(){var e,t;return(t=(e=this._inputElement)==null?void 0:e.checkValidity())!=null?t:!0}reportValidity(){var e,t;return(t=(e=this._inputElement)==null?void 0:e.reportValidity())!=null?t:!0}setCustomValidity(e){var t;(t=this._inputElement)==null||t.setCustomValidity(e),this._internalError=e,this.requestUpdate()}willUpdate(e){e.has("type")&&this.type!=="password"&&this._showPassword&&(this._showPassword=!1)}get _effectivePlaceholder(){return this.placeholder?this.placeholder:this.mask?this.mask.replace(/[0a*]/g,"_"):""}render(){var s,l,c,u,h;const e=this.error||this._internalError,t=!!this.value&&!this.disabled&&!this.readonly,o=this.type==="password",r=o&&this._showPassword?"text":this.type,a=`input__field input__field--${this.size}`;return p`
183
183
  <logosphere-formfield
184
184
  .label=${this.label}
185
185
  .helper=${this.helper}
@@ -193,27 +193,27 @@
193
193
  >
194
194
  <slot name="prefix" slot="prefix"></slot>
195
195
  <input
196
- class="${s}"
196
+ class="${a}"
197
197
  type=${r}
198
- .value=${co(this.value)}
199
- placeholder=${this._effectivePlaceholder||v}
200
- name=${this.name||v}
201
- autocomplete=${this.autocomplete||v}
198
+ .value=${Ht(this.value)}
199
+ placeholder=${this._effectivePlaceholder||b}
200
+ name=${this.name||b}
201
+ autocomplete=${this.autocomplete||b}
202
202
  ?required=${this.required}
203
203
  ?disabled=${this.disabled}
204
204
  ?readonly=${this.readonly}
205
- minlength=${(a=this.minlength)!=null?a:v}
206
- maxlength=${(l=this.maxlength)!=null?l:v}
207
- pattern=${this.pattern||v}
208
- min=${(c=this.min)!=null?c:v}
209
- max=${(p=this.max)!=null?p:v}
210
- step=${(h=this.step)!=null?h:v}
205
+ minlength=${(s=this.minlength)!=null?s:b}
206
+ maxlength=${(l=this.maxlength)!=null?l:b}
207
+ pattern=${this.pattern||b}
208
+ min=${(c=this.min)!=null?c:b}
209
+ max=${(u=this.max)!=null?u:b}
210
+ step=${(h=this.step)!=null?h:b}
211
211
  @input=${this.handleInput}
212
212
  @change=${this.handleChange}
213
213
  @keydown=${this.handleKeyDown}
214
214
  @keyup=${this.handleKeyUp}
215
215
  />
216
- ${t?u`
216
+ ${t?p`
217
217
  <button
218
218
  type="button"
219
219
  slot="clear"
@@ -223,8 +223,8 @@
223
223
  >
224
224
  <ui-icon name="uil-times" size="14"></ui-icon>
225
225
  </button>
226
- `:v}
227
- ${o?u`
226
+ `:b}
227
+ ${o?p`
228
228
  <button
229
229
  type="button"
230
230
  slot="suffix"
@@ -234,10 +234,284 @@
234
234
  >
235
235
  <ui-icon name=${this._showPassword?"uil-eye-slash":"uil-eye"} size="16"></ui-icon>
236
236
  </button>
237
- `:v}
237
+ `:b}
238
238
  <slot name="suffix" slot="suffix"></slot>
239
239
  </logosphere-formfield>
240
- `}},n.LogosphereInput.styles=[R`${H(Li)}`],Y([Z("input")],n.LogosphereInput.prototype,"_inputElement",2),Y([d({type:String})],n.LogosphereInput.prototype,"value",2),Y([d({type:String})],n.LogosphereInput.prototype,"type",2),Y([d({type:String})],n.LogosphereInput.prototype,"placeholder",2),Y([d({type:String})],n.LogosphereInput.prototype,"name",2),Y([d({type:String})],n.LogosphereInput.prototype,"autocomplete",2),Y([d({type:Number})],n.LogosphereInput.prototype,"minlength",2),Y([d({type:Number})],n.LogosphereInput.prototype,"maxlength",2),Y([d({type:String})],n.LogosphereInput.prototype,"pattern",2),Y([d({type:Number})],n.LogosphereInput.prototype,"min",2),Y([d({type:Number})],n.LogosphereInput.prototype,"max",2),Y([d({type:Number})],n.LogosphereInput.prototype,"step",2),Y([d({type:String})],n.LogosphereInput.prototype,"size",2),Y([d({type:String})],n.LogosphereInput.prototype,"variant",2),Y([d({type:String})],n.LogosphereInput.prototype,"label",2),Y([d({type:String})],n.LogosphereInput.prototype,"helper",2),Y([d({type:String})],n.LogosphereInput.prototype,"error",2),Y([d({type:Boolean})],n.LogosphereInput.prototype,"required",2),Y([d({type:Boolean})],n.LogosphereInput.prototype,"disabled",2),Y([d({type:Boolean})],n.LogosphereInput.prototype,"readonly",2),Y([d({type:String})],n.LogosphereInput.prototype,"mask",2),Y([y()],n.LogosphereInput.prototype,"_internalError",2),Y([y()],n.LogosphereInput.prototype,"_showPassword",2),n.LogosphereInput=Y([V("logosphere-input")],n.LogosphereInput);var ie="top",ce="bottom",de="right",se="left",po="auto",_t=[ie,ce,de,se],Xe="start",yt="end",Ri="clippingParents",Zo="viewport",wt="popper",Yi="reference",Wo=_t.reduce(function(i,e){return i.concat([e+"-"+Xe,e+"-"+yt])},[]),Ko=[].concat(_t,[po]).reduce(function(i,e){return i.concat([e,e+"-"+Xe,e+"-"+yt])},[]),ji="beforeRead",Fi="read",Vi="afterRead",Ni="beforeMain",Ui="main",qi="afterMain",Zi="beforeWrite",Wi="write",Ki="afterWrite",Gi=[ji,Fi,Vi,Ni,Ui,qi,Zi,Wi,Ki];function ge(i){return i?(i.nodeName||"").toLowerCase():null}function ae(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var e=i.ownerDocument;return e&&e.defaultView||window}return i}function Fe(i){var e=ae(i).Element;return i instanceof e||i instanceof Element}function he(i){var e=ae(i).HTMLElement;return i instanceof e||i instanceof HTMLElement}function uo(i){if(typeof ShadowRoot=="undefined")return!1;var e=ae(i).ShadowRoot;return i instanceof e||i instanceof ShadowRoot}function Xi(i){var e=i.state;Object.keys(e.elements).forEach(function(t){var o=e.styles[t]||{},r=e.attributes[t]||{},s=e.elements[t];!he(s)||!ge(s)||(Object.assign(s.style,o),Object.keys(r).forEach(function(a){var l=r[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function Ji(i){var e=i.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(o){var r=e.elements[o],s=e.attributes[o]||{},a=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:t[o]),l=a.reduce(function(c,p){return c[p]="",c},{});!he(r)||!ge(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(c){r.removeAttribute(c)}))})}}const Qi={name:"applyStyles",enabled:!0,phase:"write",fn:Xi,effect:Ji,requires:["computeStyles"]};function me(i){return i.split("-")[0]}var Ve=Math.max,Bt=Math.min,Je=Math.round;function fo(){var i=navigator.userAgentData;return i!=null&&i.brands&&Array.isArray(i.brands)?i.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Go(){return!/^((?!chrome|android).)*safari/i.test(fo())}function Qe(i,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var o=i.getBoundingClientRect(),r=1,s=1;e&&he(i)&&(r=i.offsetWidth>0&&Je(o.width)/i.offsetWidth||1,s=i.offsetHeight>0&&Je(o.height)/i.offsetHeight||1);var a=Fe(i)?ae(i):window,l=a.visualViewport,c=!Go()&&t,p=(o.left+(c&&l?l.offsetLeft:0))/r,h=(o.top+(c&&l?l.offsetTop:0))/s,f=o.width/r,g=o.height/s;return{width:f,height:g,top:h,right:p+f,bottom:h+g,left:p,x:p,y:h}}function go(i){var e=Qe(i),t=i.offsetWidth,o=i.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:i.offsetLeft,y:i.offsetTop,width:t,height:o}}function Xo(i,e){var t=e.getRootNode&&e.getRootNode();if(i.contains(e))return!0;if(t&&uo(t)){var o=e;do{if(o&&i.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function xe(i){return ae(i).getComputedStyle(i)}function es(i){return["table","td","th"].indexOf(ge(i))>=0}function Te(i){return((Fe(i)?i.ownerDocument:i.document)||window.document).documentElement}function It(i){return ge(i)==="html"?i:i.assignedSlot||i.parentNode||(uo(i)?i.host:null)||Te(i)}function Jo(i){return!he(i)||xe(i).position==="fixed"?null:i.offsetParent}function ts(i){var e=/firefox/i.test(fo()),t=/Trident/i.test(fo());if(t&&he(i)){var o=xe(i);if(o.position==="fixed")return null}var r=It(i);for(uo(r)&&(r=r.host);he(r)&&["html","body"].indexOf(ge(r))<0;){var s=xe(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function xt(i){for(var e=ae(i),t=Jo(i);t&&es(t)&&xe(t).position==="static";)t=Jo(t);return t&&(ge(t)==="html"||ge(t)==="body"&&xe(t).position==="static")?e:t||ts(i)||e}function mo(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function $t(i,e,t){return Ve(i,Bt(e,t))}function os(i,e,t){var o=$t(i,e,t);return o>t?t:o}function Qo(){return{top:0,right:0,bottom:0,left:0}}function er(i){return Object.assign({},Qo(),i)}function tr(i,e){return e.reduce(function(t,o){return t[o]=i,t},{})}var rs=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,er(typeof e!="number"?e:tr(e,_t))};function is(i){var e,t=i.state,o=i.name,r=i.options,s=t.elements.arrow,a=t.modifiersData.popperOffsets,l=me(t.placement),c=mo(l),p=[se,de].indexOf(l)>=0,h=p?"height":"width";if(!(!s||!a)){var f=rs(r.padding,t),g=go(s),b=c==="y"?ie:se,w=c==="y"?ce:de,C=t.rects.reference[h]+t.rects.reference[c]-a[c]-t.rects.popper[h],m=a[c]-t.rects.reference[c],_=xt(s),x=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,$=C/2-m/2,k=f[b],S=x-g[h]-f[w],E=x/2-g[h]/2+$,M=$t(k,E,S),P=c;t.modifiersData[o]=(e={},e[P]=M,e.centerOffset=M-E,e)}}function ss(i){var e=i.state,t=i.options,o=t.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||Xo(e.elements.popper,r)&&(e.elements.arrow=r))}const as={name:"arrow",enabled:!0,phase:"main",fn:is,effect:ss,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function et(i){return i.split("-")[1]}var ns={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ls(i,e){var t=i.x,o=i.y,r=e.devicePixelRatio||1;return{x:Je(t*r)/r||0,y:Je(o*r)/r||0}}function or(i){var e,t=i.popper,o=i.popperRect,r=i.placement,s=i.variation,a=i.offsets,l=i.position,c=i.gpuAcceleration,p=i.adaptive,h=i.roundOffsets,f=i.isFixed,g=a.x,b=g===void 0?0:g,w=a.y,C=w===void 0?0:w,m=typeof h=="function"?h({x:b,y:C}):{x:b,y:C};b=m.x,C=m.y;var _=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),$=se,k=ie,S=window;if(p){var E=xt(t),M="clientHeight",P="clientWidth";if(E===ae(t)&&(E=Te(t),xe(E).position!=="static"&&l==="absolute"&&(M="scrollHeight",P="scrollWidth")),E=E,r===ie||(r===se||r===de)&&s===yt){k=ce;var z=f&&E===S&&S.visualViewport?S.visualViewport.height:E[M];C-=z-o.height,C*=c?1:-1}if(r===se||(r===ie||r===ce)&&s===yt){$=de;var L=f&&E===S&&S.visualViewport?S.visualViewport.width:E[P];b-=L-o.width,b*=c?1:-1}}var I=Object.assign({position:l},p&&ns),N=h===!0?ls({x:b,y:C},ae(t)):{x:b,y:C};if(b=N.x,C=N.y,c){var O;return Object.assign({},I,(O={},O[k]=x?"0":"",O[$]=_?"0":"",O.transform=(S.devicePixelRatio||1)<=1?"translate("+b+"px, "+C+"px)":"translate3d("+b+"px, "+C+"px, 0)",O))}return Object.assign({},I,(e={},e[k]=x?C+"px":"",e[$]=_?b+"px":"",e.transform="",e))}function cs(i){var e=i.state,t=i.options,o=t.gpuAcceleration,r=o===void 0?!0:o,s=t.adaptive,a=s===void 0?!0:s,l=t.roundOffsets,c=l===void 0?!0:l,p={placement:me(e.placement),variation:et(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,or(Object.assign({},p,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,or(Object.assign({},p,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const ds={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:cs,data:{}};var Ht={passive:!0};function hs(i){var e=i.state,t=i.instance,o=i.options,r=o.scroll,s=r===void 0?!0:r,a=o.resize,l=a===void 0?!0:a,c=ae(e.elements.popper),p=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&p.forEach(function(h){h.addEventListener("scroll",t.update,Ht)}),l&&c.addEventListener("resize",t.update,Ht),function(){s&&p.forEach(function(h){h.removeEventListener("scroll",t.update,Ht)}),l&&c.removeEventListener("resize",t.update,Ht)}}const ps={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:hs,data:{}};var us={left:"right",right:"left",bottom:"top",top:"bottom"};function Rt(i){return i.replace(/left|right|bottom|top/g,function(e){return us[e]})}var fs={start:"end",end:"start"};function rr(i){return i.replace(/start|end/g,function(e){return fs[e]})}function bo(i){var e=ae(i),t=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:t,scrollTop:o}}function vo(i){return Qe(Te(i)).left+bo(i).scrollLeft}function gs(i,e){var t=ae(i),o=Te(i),r=t.visualViewport,s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){s=r.width,a=r.height;var p=Go();(p||!p&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l+vo(i),y:c}}function ms(i){var e,t=Te(i),o=bo(i),r=(e=i.ownerDocument)==null?void 0:e.body,s=Ve(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Ve(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+vo(i),c=-o.scrollTop;return xe(r||t).direction==="rtl"&&(l+=Ve(t.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function _o(i){var e=xe(i),t=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+r+o)}function ir(i){return["html","body","#document"].indexOf(ge(i))>=0?i.ownerDocument.body:he(i)&&_o(i)?i:ir(It(i))}function kt(i,e){var t;e===void 0&&(e=[]);var o=ir(i),r=o===((t=i.ownerDocument)==null?void 0:t.body),s=ae(o),a=r?[s].concat(s.visualViewport||[],_o(o)?o:[]):o,l=e.concat(a);return r?l:l.concat(kt(It(a)))}function yo(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function bs(i,e){var t=Qe(i,!1,e==="fixed");return t.top=t.top+i.clientTop,t.left=t.left+i.clientLeft,t.bottom=t.top+i.clientHeight,t.right=t.left+i.clientWidth,t.width=i.clientWidth,t.height=i.clientHeight,t.x=t.left,t.y=t.top,t}function sr(i,e,t){return e===Zo?yo(gs(i,t)):Fe(e)?bs(e,t):yo(ms(Te(i)))}function vs(i){var e=kt(It(i)),t=["absolute","fixed"].indexOf(xe(i).position)>=0,o=t&&he(i)?xt(i):i;return Fe(o)?e.filter(function(r){return Fe(r)&&Xo(r,o)&&ge(r)!=="body"}):[]}function _s(i,e,t,o){var r=e==="clippingParents"?vs(i):[].concat(e),s=[].concat(r,[t]),a=s[0],l=s.reduce(function(c,p){var h=sr(i,p,o);return c.top=Ve(h.top,c.top),c.right=Bt(h.right,c.right),c.bottom=Bt(h.bottom,c.bottom),c.left=Ve(h.left,c.left),c},sr(i,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ar(i){var e=i.reference,t=i.element,o=i.placement,r=o?me(o):null,s=o?et(o):null,a=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,c;switch(r){case ie:c={x:a,y:e.y-t.height};break;case ce:c={x:a,y:e.y+e.height};break;case de:c={x:e.x+e.width,y:l};break;case se:c={x:e.x-t.width,y:l};break;default:c={x:e.x,y:e.y}}var p=r?mo(r):null;if(p!=null){var h=p==="y"?"height":"width";switch(s){case Xe:c[p]=c[p]-(e[h]/2-t[h]/2);break;case yt:c[p]=c[p]+(e[h]/2-t[h]/2);break}}return c}function Ct(i,e){e===void 0&&(e={});var t=e,o=t.placement,r=o===void 0?i.placement:o,s=t.strategy,a=s===void 0?i.strategy:s,l=t.boundary,c=l===void 0?Ri:l,p=t.rootBoundary,h=p===void 0?Zo:p,f=t.elementContext,g=f===void 0?wt:f,b=t.altBoundary,w=b===void 0?!1:b,C=t.padding,m=C===void 0?0:C,_=er(typeof m!="number"?m:tr(m,_t)),x=g===wt?Yi:wt,$=i.rects.popper,k=i.elements[w?x:g],S=_s(Fe(k)?k:k.contextElement||Te(i.elements.popper),c,h,a),E=Qe(i.elements.reference),M=ar({reference:E,element:$,placement:r}),P=yo(Object.assign({},$,M)),z=g===wt?P:E,L={top:S.top-z.top+_.top,bottom:z.bottom-S.bottom+_.bottom,left:S.left-z.left+_.left,right:z.right-S.right+_.right},I=i.modifiersData.offset;if(g===wt&&I){var N=I[r];Object.keys(L).forEach(function(O){var J=[de,ce].indexOf(O)>=0?1:-1,Q=[ie,ce].indexOf(O)>=0?"y":"x";L[O]+=N[Q]*J})}return L}function ys(i,e){e===void 0&&(e={});var t=e,o=t.placement,r=t.boundary,s=t.rootBoundary,a=t.padding,l=t.flipVariations,c=t.allowedAutoPlacements,p=c===void 0?Ko:c,h=et(o),f=h?l?Wo:Wo.filter(function(w){return et(w)===h}):_t,g=f.filter(function(w){return p.indexOf(w)>=0});g.length===0&&(g=f);var b=g.reduce(function(w,C){return w[C]=Ct(i,{placement:C,boundary:r,rootBoundary:s,padding:a})[me(C)],w},{});return Object.keys(b).sort(function(w,C){return b[w]-b[C]})}function ws(i){if(me(i)===po)return[];var e=Rt(i);return[rr(i),e,rr(e)]}function xs(i){var e=i.state,t=i.options,o=i.name;if(!e.modifiersData[o]._skip){for(var r=t.mainAxis,s=r===void 0?!0:r,a=t.altAxis,l=a===void 0?!0:a,c=t.fallbackPlacements,p=t.padding,h=t.boundary,f=t.rootBoundary,g=t.altBoundary,b=t.flipVariations,w=b===void 0?!0:b,C=t.allowedAutoPlacements,m=e.options.placement,_=me(m),x=_===m,$=c||(x||!w?[Rt(m)]:ws(m)),k=[m].concat($).reduce(function(Le,ve){return Le.concat(me(ve)===po?ys(e,{placement:ve,boundary:h,rootBoundary:f,padding:p,flipVariations:w,allowedAutoPlacements:C}):ve)},[]),S=e.rects.reference,E=e.rects.popper,M=new Map,P=!0,z=k[0],L=0;L<k.length;L++){var I=k[L],N=me(I),O=et(I)===Xe,J=[ie,ce].indexOf(N)>=0,Q=J?"width":"height",q=Ct(e,{placement:I,boundary:h,rootBoundary:f,altBoundary:g,padding:p}),ee=J?O?de:se:O?ce:ie;S[Q]>E[Q]&&(ee=Rt(ee));var fe=Rt(ee),re=[];if(s&&re.push(q[N]<=0),l&&re.push(q[ee]<=0,q[fe]<=0),re.every(function(Le){return Le})){z=I,P=!1;break}M.set(I,re)}if(P)for(var $e=w?3:1,te=function(ve){var Ue=k.find(function(rt){var Se=M.get(rt);if(Se)return Se.slice(0,ve).every(function(it){return it})});if(Ue)return z=Ue,"break"},ke=$e;ke>0;ke--){var Ce=te(ke);if(Ce==="break")break}e.placement!==z&&(e.modifiersData[o]._skip=!0,e.placement=z,e.reset=!0)}}const $s={name:"flip",enabled:!0,phase:"main",fn:xs,requiresIfExists:["offset"],data:{_skip:!1}};function nr(i,e,t){return t===void 0&&(t={x:0,y:0}),{top:i.top-e.height-t.y,right:i.right-e.width+t.x,bottom:i.bottom-e.height+t.y,left:i.left-e.width-t.x}}function lr(i){return[ie,de,ce,se].some(function(e){return i[e]>=0})}function ks(i){var e=i.state,t=i.name,o=e.rects.reference,r=e.rects.popper,s=e.modifiersData.preventOverflow,a=Ct(e,{elementContext:"reference"}),l=Ct(e,{altBoundary:!0}),c=nr(a,o),p=nr(l,r,s),h=lr(c),f=lr(p);e.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":f})}const Cs={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ks};function Ss(i,e,t){var o=me(i),r=[se,ie].indexOf(o)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:i})):t,a=s[0],l=s[1];return a=a||0,l=(l||0)*r,[se,de].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function Es(i){var e=i.state,t=i.options,o=i.name,r=t.offset,s=r===void 0?[0,0]:r,a=Ko.reduce(function(h,f){return h[f]=Ss(f,e.rects,s),h},{}),l=a[e.placement],c=l.x,p=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=p),e.modifiersData[o]=a}const As={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Es};function Ms(i){var e=i.state,t=i.name;e.modifiersData[t]=ar({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Ds={name:"popperOffsets",enabled:!0,phase:"read",fn:Ms,data:{}};function Ts(i){return i==="x"?"y":"x"}function zs(i){var e=i.state,t=i.options,o=i.name,r=t.mainAxis,s=r===void 0?!0:r,a=t.altAxis,l=a===void 0?!1:a,c=t.boundary,p=t.rootBoundary,h=t.altBoundary,f=t.padding,g=t.tether,b=g===void 0?!0:g,w=t.tetherOffset,C=w===void 0?0:w,m=Ct(e,{boundary:c,rootBoundary:p,padding:f,altBoundary:h}),_=me(e.placement),x=et(e.placement),$=!x,k=mo(_),S=Ts(k),E=e.modifiersData.popperOffsets,M=e.rects.reference,P=e.rects.popper,z=typeof C=="function"?C(Object.assign({},e.rects,{placement:e.placement})):C,L=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),I=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,N={x:0,y:0};if(E){if(s){var O,J=k==="y"?ie:se,Q=k==="y"?ce:de,q=k==="y"?"height":"width",ee=E[k],fe=ee+m[J],re=ee-m[Q],$e=b?-P[q]/2:0,te=x===Xe?M[q]:P[q],ke=x===Xe?-P[q]:-M[q],Ce=e.elements.arrow,Le=b&&Ce?go(Ce):{width:0,height:0},ve=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Qo(),Ue=ve[J],rt=ve[Q],Se=$t(0,M[q],Le[q]),it=$?M[q]/2-$e-Se-Ue-L.mainAxis:te-Se-Ue-L.mainAxis,Wt=$?-M[q]/2+$e+Se+rt+L.mainAxis:ke+Se+rt+L.mainAxis,qe=e.elements.arrow&&xt(e.elements.arrow),Et=qe?k==="y"?qe.clientTop||0:qe.clientLeft||0:0,st=(O=I==null?void 0:I[k])!=null?O:0,at=ee+it-st-Et,nt=ee+Wt-st,lt=$t(b?Bt(fe,at):fe,ee,b?Ve(re,nt):re);E[k]=lt,N[k]=lt-ee}if(l){var ct,At=k==="x"?ie:se,Mt=k==="x"?ce:de,Oe=E[S],Kt=S==="y"?"height":"width",Mr=Oe+m[At],Dr=Oe-m[Mt],xo=[ie,se].indexOf(_)!==-1,Tr=(ct=I==null?void 0:I[S])!=null?ct:0,zr=xo?Mr:Oe-M[Kt]-P[Kt]-Tr+L.altAxis,Pr=xo?Oe+M[Kt]+P[Kt]-Tr-L.altAxis:Dr,Lr=b&&xo?os(zr,Oe,Pr):$t(b?zr:Mr,Oe,b?Pr:Dr);E[S]=Lr,N[S]=Lr-Oe}e.modifiersData[o]=N}}const Ps={name:"preventOverflow",enabled:!0,phase:"main",fn:zs,requiresIfExists:["offset"]};function Ls(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function Os(i){return i===ae(i)||!he(i)?bo(i):Ls(i)}function Bs(i){var e=i.getBoundingClientRect(),t=Je(e.width)/i.offsetWidth||1,o=Je(e.height)/i.offsetHeight||1;return t!==1||o!==1}function Is(i,e,t){t===void 0&&(t=!1);var o=he(e),r=he(e)&&Bs(e),s=Te(e),a=Qe(i,r,t),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!t)&&((ge(e)!=="body"||_o(s))&&(l=Os(e)),he(e)?(c=Qe(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=vo(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Hs(i){var e=new Map,t=new Set,o=[];i.forEach(function(s){e.set(s.name,s)});function r(s){t.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!t.has(l)){var c=e.get(l);c&&r(c)}}),o.push(s)}return i.forEach(function(s){t.has(s.name)||r(s)}),o}function Rs(i){var e=Hs(i);return Gi.reduce(function(t,o){return t.concat(e.filter(function(r){return r.phase===o}))},[])}function Ys(i){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(i())})})),e}}function js(i){var e=i.reduce(function(t,o){var r=t[o.name];return t[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,t},{});return Object.keys(e).map(function(t){return e[t]})}var cr={placement:"bottom",modifiers:[],strategy:"absolute"};function dr(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];return!e.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Fs(i){i===void 0&&(i={});var e=i,t=e.defaultModifiers,o=t===void 0?[]:t,r=e.defaultOptions,s=r===void 0?cr:r;return function(l,c,p){p===void 0&&(p=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},cr,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],g=!1,b={state:h,setOptions:function(_){var x=typeof _=="function"?_(h.options):_;C(),h.options=Object.assign({},s,h.options,x),h.scrollParents={reference:Fe(l)?kt(l):l.contextElement?kt(l.contextElement):[],popper:kt(c)};var $=Rs(js([].concat(o,h.options.modifiers)));return h.orderedModifiers=$.filter(function(k){return k.enabled}),w(),b.update()},forceUpdate:function(){if(!g){var _=h.elements,x=_.reference,$=_.popper;if(dr(x,$)){h.rects={reference:Is(x,xt($),h.options.strategy==="fixed"),popper:go($)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(L){return h.modifiersData[L.name]=Object.assign({},L.data)});for(var k=0;k<h.orderedModifiers.length;k++){if(h.reset===!0){h.reset=!1,k=-1;continue}var S=h.orderedModifiers[k],E=S.fn,M=S.options,P=M===void 0?{}:M,z=S.name;typeof E=="function"&&(h=E({state:h,options:P,name:z,instance:b})||h)}}}},update:Ys(function(){return new Promise(function(m){b.forceUpdate(),m(h)})}),destroy:function(){C(),g=!0}};if(!dr(l,c))return b;b.setOptions(p).then(function(m){!g&&p.onFirstUpdate&&p.onFirstUpdate(m)});function w(){h.orderedModifiers.forEach(function(m){var _=m.name,x=m.options,$=x===void 0?{}:x,k=m.effect;if(typeof k=="function"){var S=k({state:h,name:_,instance:b,options:$}),E=function(){};f.push(S||E)}})}function C(){f.forEach(function(m){return m()}),f=[]}return b}}var Vs=[ps,Ds,ds,Qi,As,$s,Ps,as,Cs],Yt=Fs({defaultModifiers:Vs});const Ns='.popover__wrapper{position:relative;display:inline-block;font-family:var(--font-family-base)}.popover__trigger{display:inline-flex}.popover__panel{position:relative;overflow:visible;z-index:var(--z-index-popover);min-width:240px;border-radius:var(--radius-md);border:1px solid var(--color-border);background-color:var(--color-body-bg);box-shadow:var(--shadow-md)}.popover__content{position:relative;z-index:1;background-color:var(--color-body-bg);border-radius:var(--radius-md);overflow:hidden}.popover__content:before{content:"";position:absolute;top:0;left:0;right:0;height:8px;background-color:var(--color-body-bg);border-radius:var(--radius-md) var(--radius-md) 0 0;z-index:1;pointer-events:none}.popover__content>*{position:relative;z-index:2}.popover__title{padding:10px var(--spacing-3);font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);color:var(--color-body-text)}.popover__body{padding:var(--spacing-3);font-size:var(--font-size-sm);color:var(--color-secondary)}.popover__body--with-border{border-top:1px solid var(--color-border)}.popper-arrow{position:absolute;width:12px;height:12px;pointer-events:none;z-index:0}.popper-arrow:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--color-border);transform:rotate(45deg)}.popper-arrow:after{content:"";position:absolute;top:1px;right:1px;bottom:1px;left:1px;background:var(--color-body-bg);transform:rotate(45deg)}[data-popper]{position:relative;overflow:visible}[data-popper-placement^=bottom]>.popper-arrow{top:-6px;left:50%;transform:translate(-50%,-50%)}[data-popper-placement^=top]>.popper-arrow{bottom:-6px;left:50%;transform:translate(-50%,50%)}[data-popper-placement^=left]>.popper-arrow{right:-6px;top:50%;transform:translate(50%,-50%)}[data-popper-placement^=right]>.popper-arrow{left:-6px;top:50%;transform:translate(-50%,-50%)}';var Us=Object.defineProperty,qs=Object.getOwnPropertyDescriptor,ue=(i,e,t,o)=>{for(var r=o>1?void 0:o?qs(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Us(e,t,r),r};n.Popover=class extends D{constructor(){super(...arguments),this.title="",this.trigger="click",this.placement="bottom",this.offset=8,this.open=!1,this.closeOnOutsideClick=!0,this.noArrow=!1,this.handleDocumentClick=e=>{!this.open||!this.closeOnOutsideClick||e.composedPath().includes(this)||this.setOpen(!1)},this.toggle=e=>{(this.trigger==="click"||this.trigger==="both")&&(e==null||e.stopPropagation(),this.setOpen(!this.open))},this.handleMouseEnter=()=>{(this.trigger==="hover"||this.trigger==="both")&&this.setOpen(!0)},this.handleMouseLeave=()=>{(this.trigger==="hover"||this.trigger==="both")&&this.setOpen(!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleDocumentClick,{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleDocumentClick,{capture:!0}),this.destroyPopper()}updated(e){super.updated(e);const t=e.has("placement"),o=e.has("open")&&this.open;if(e.has("open")&&!this.open){this.destroyPopper();return}(o||t)&&this.open&&this.updatePopper()}setOpen(e){this.open!==e&&(this.open=e,this.dispatchEvent(new CustomEvent(e?"popover-open":"popover-close",{bubbles:!0,composed:!0})))}updatePopper(){if(!this.isConnected||!this.open)return;const e=this.triggerElement,t=this.popperElement;if(!(!e||!t)){if(this.popperInstance){this.popperInstance.setOptions({placement:this.placement,modifiers:this.getPopperModifiers(),strategy:"fixed"}),this.popperInstance.update();return}this.popperInstance=Yt(e,t,{placement:this.placement,strategy:"fixed",modifiers:this.getPopperModifiers()})}}getPopperModifiers(){const e=[{name:"offset",options:{offset:[0,this.offset]}},{name:"preventOverflow",options:{padding:8}},{name:"flip",options:{padding:8}}];return!this.noArrow&&this.popperArrowElement&&e.push({name:"arrow",options:{element:this.popperArrowElement,padding:8}}),e}destroyPopper(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=void 0)}render(){const e=!!this.title;return u`
240
+ `}},n.LogosphereInput.styles=[H`${I(Ii)}`],Y([Z("input")],n.LogosphereInput.prototype,"_inputElement",2),Y([d({type:String})],n.LogosphereInput.prototype,"value",2),Y([d({type:String})],n.LogosphereInput.prototype,"type",2),Y([d({type:String})],n.LogosphereInput.prototype,"placeholder",2),Y([d({type:String})],n.LogosphereInput.prototype,"name",2),Y([d({type:String})],n.LogosphereInput.prototype,"autocomplete",2),Y([d({type:Number})],n.LogosphereInput.prototype,"minlength",2),Y([d({type:Number})],n.LogosphereInput.prototype,"maxlength",2),Y([d({type:String})],n.LogosphereInput.prototype,"pattern",2),Y([d({type:Number})],n.LogosphereInput.prototype,"min",2),Y([d({type:Number})],n.LogosphereInput.prototype,"max",2),Y([d({type:Number})],n.LogosphereInput.prototype,"step",2),Y([d({type:String})],n.LogosphereInput.prototype,"size",2),Y([d({type:String})],n.LogosphereInput.prototype,"variant",2),Y([d({type:String})],n.LogosphereInput.prototype,"label",2),Y([d({type:String})],n.LogosphereInput.prototype,"helper",2),Y([d({type:String})],n.LogosphereInput.prototype,"error",2),Y([d({type:Boolean})],n.LogosphereInput.prototype,"required",2),Y([d({type:Boolean})],n.LogosphereInput.prototype,"disabled",2),Y([d({type:Boolean})],n.LogosphereInput.prototype,"readonly",2),Y([d({type:String})],n.LogosphereInput.prototype,"mask",2),Y([y()],n.LogosphereInput.prototype,"_internalError",2),Y([y()],n.LogosphereInput.prototype,"_showPassword",2),n.LogosphereInput=Y([V("logosphere-input")],n.LogosphereInput);const Ni=":host{display:block;width:100%}.pagination{display:flex;align-items:center;justify-content:space-between;padding:var(--spacing-4) var(--spacing-6);background-color:var(--color-body-bg);border-top:1px solid var(--color-border);font-family:var(--font-family-base);gap:var(--spacing-4)}.pagination--justify-end{justify-content:flex-end}.pagination--justify-start{justify-content:flex-start}.pagination--justify-center{justify-content:center}.pagination__nav{display:flex;align-items:center;gap:var(--spacing-1)}.pagination__nav-group{display:flex;align-items:center}.pagination__btn{display:flex;align-items:center;justify-content:center;padding:var(--spacing-2);border:none;background:transparent;border-radius:var(--radius-base);cursor:pointer;color:var(--color-secondary);transition:background-color .15s ease,color .15s ease,opacity .15s ease}.pagination__btn:hover:not(:disabled){background-color:var(--color-body-bg-hover)}.pagination__btn:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.pagination__btn:disabled{opacity:.4;cursor:not-allowed}.pagination__btn--icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:var(--spacing-2);border:1px solid var(--color-border);background-color:var(--color-body-bg);border-radius:var(--radius-base);cursor:pointer;color:var(--color-secondary);transition:background-color .15s ease,border-color .15s ease,opacity .15s ease}.pagination__btn--icon:hover:not(:disabled){background-color:var(--color-body-bg-hover);border-color:var(--color-border-hover)}.pagination__btn--icon:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.pagination__btn--icon:disabled{opacity:.4;cursor:not-allowed}.pagination__btn--text{display:flex;align-items:center;justify-content:center;gap:var(--spacing-1);height:32px;min-width:100px;padding:var(--spacing-1) var(--spacing-3);border:1px solid var(--color-border);background-color:var(--color-body-bg);border-radius:var(--radius-base);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);color:var(--color-secondary);cursor:pointer;transition:all .15s ease}.pagination__btn--text:hover:not(:disabled){background-color:var(--color-body-bg-hover);border-color:var(--color-border-hover)}.pagination__btn--text:disabled{color:var(--color-secondary-disabled);cursor:not-allowed}.pagination__btn--number{display:flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:var(--spacing-1) var(--spacing-3);border:1px solid var(--color-border);background-color:var(--color-body-bg);border-radius:var(--radius-base);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);color:var(--color-secondary);cursor:pointer;transition:all .15s ease}.pagination__btn--number:hover:not(:disabled):not(.pagination__btn--active){background-color:var(--color-body-bg-hover)}.pagination__btn--active{background-color:var(--color-secondary);border-color:var(--color-secondary);color:#fff;font-weight:var(--font-weight-semibold)}.pagination__btn--ellipsis{border:none;background:transparent;cursor:default;min-width:32px}.pagination__btn--ellipsis:hover{background:transparent}.pagination__input-container{display:flex;align-items:center;justify-content:center;min-width:32px;height:32px}.pagination__input{width:100%;height:100%;min-width:32px;padding:0;border:1px solid var(--color-border);border-radius:var(--radius-base);background-color:var(--color-body-bg);font-size:var(--font-size-sm);font-weight:var(--font-weight-regular);color:var(--color-body-text);text-align:center;outline:none;transition:border-color .15s ease}.pagination__input:focus{border-color:var(--color-primary)}.pagination__input::-webkit-outer-spin-button,.pagination__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.pagination__input[type=number]{-moz-appearance:textfield}.pagination__separator{font-size:var(--font-size-xs);font-weight:var(--font-weight-regular);color:var(--color-tertiary);line-height:18px;letter-spacing:-.12px;margin-right:var(--spacing-1)}.pagination__info{display:flex;align-items:center;gap:var(--spacing-2)}.pagination__page-info{display:flex;align-items:center;gap:var(--spacing-1);font-size:var(--font-size-xs);line-height:18px;letter-spacing:-.12px}.pagination__page-info-text{color:var(--color-secondary)}.pagination__page-info-separator{color:var(--color-tertiary)}.pagination__total{display:flex;align-items:center;gap:var(--spacing-1);font-size:var(--font-size-xs);line-height:18px;letter-spacing:-.12px}.pagination__total-separator{color:var(--color-tertiary)}.pagination__total-text{color:var(--color-secondary)}.pagination__page-size{display:flex;align-items:center}@media(max-width:768px){.pagination{flex-wrap:wrap;gap:var(--spacing-3);padding:var(--spacing-3) var(--spacing-4)}.pagination__btn--text{min-width:80px;font-size:var(--font-size-xs)}}@media(max-width:480px){.pagination__nav,.pagination__info{flex-wrap:wrap;justify-content:center}}";var se="top",he="bottom",pe="right",ne="left",fo="auto",wt=[se,he,pe,ne],Qe="start",xt="end",Vi="clippingParents",Go="viewport",$t="popper",Fi="reference",Xo=wt.reduce(function(i,e){return i.concat([e+"-"+Qe,e+"-"+xt])},[]),Jo=[].concat(wt,[fo]).reduce(function(i,e){return i.concat([e,e+"-"+Qe,e+"-"+xt])},[]),Ui="beforeRead",qi="read",Zi="afterRead",Wi="beforeMain",Ki="main",Gi="afterMain",Xi="beforeWrite",Ji="write",Qi="afterWrite",ea=[Ui,qi,Zi,Wi,Ki,Gi,Xi,Ji,Qi];function be(i){return i?(i.nodeName||"").toLowerCase():null}function le(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var e=i.ownerDocument;return e&&e.defaultView||window}return i}function Fe(i){var e=le(i).Element;return i instanceof e||i instanceof Element}function ue(i){var e=le(i).HTMLElement;return i instanceof e||i instanceof HTMLElement}function go(i){if(typeof ShadowRoot=="undefined")return!1;var e=le(i).ShadowRoot;return i instanceof e||i instanceof ShadowRoot}function ta(i){var e=i.state;Object.keys(e.elements).forEach(function(t){var o=e.styles[t]||{},r=e.attributes[t]||{},a=e.elements[t];!ue(a)||!be(a)||(Object.assign(a.style,o),Object.keys(r).forEach(function(s){var l=r[s];l===!1?a.removeAttribute(s):a.setAttribute(s,l===!0?"":l)}))})}function oa(i){var e=i.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(o){var r=e.elements[o],a=e.attributes[o]||{},s=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:t[o]),l=s.reduce(function(c,u){return c[u]="",c},{});!ue(r)||!be(r)||(Object.assign(r.style,l),Object.keys(a).forEach(function(c){r.removeAttribute(c)}))})}}const ra={name:"applyStyles",enabled:!0,phase:"write",fn:ta,effect:oa,requires:["computeStyles"]};function ve(i){return i.split("-")[0]}var Ue=Math.max,Rt=Math.min,et=Math.round;function mo(){var i=navigator.userAgentData;return i!=null&&i.brands&&Array.isArray(i.brands)?i.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Qo(){return!/^((?!chrome|android).)*safari/i.test(mo())}function tt(i,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var o=i.getBoundingClientRect(),r=1,a=1;e&&ue(i)&&(r=i.offsetWidth>0&&et(o.width)/i.offsetWidth||1,a=i.offsetHeight>0&&et(o.height)/i.offsetHeight||1);var s=Fe(i)?le(i):window,l=s.visualViewport,c=!Qo()&&t,u=(o.left+(c&&l?l.offsetLeft:0))/r,h=(o.top+(c&&l?l.offsetTop:0))/a,f=o.width/r,g=o.height/a;return{width:f,height:g,top:h,right:u+f,bottom:h+g,left:u,x:u,y:h}}function bo(i){var e=tt(i),t=i.offsetWidth,o=i.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:i.offsetLeft,y:i.offsetTop,width:t,height:o}}function er(i,e){var t=e.getRootNode&&e.getRootNode();if(i.contains(e))return!0;if(t&&go(t)){var o=e;do{if(o&&i.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function ke(i){return le(i).getComputedStyle(i)}function ia(i){return["table","td","th"].indexOf(be(i))>=0}function Te(i){return((Fe(i)?i.ownerDocument:i.document)||window.document).documentElement}function Yt(i){return be(i)==="html"?i:i.assignedSlot||i.parentNode||(go(i)?i.host:null)||Te(i)}function tr(i){return!ue(i)||ke(i).position==="fixed"?null:i.offsetParent}function aa(i){var e=/firefox/i.test(mo()),t=/Trident/i.test(mo());if(t&&ue(i)){var o=ke(i);if(o.position==="fixed")return null}var r=Yt(i);for(go(r)&&(r=r.host);ue(r)&&["html","body"].indexOf(be(r))<0;){var a=ke(r);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return r;r=r.parentNode}return null}function kt(i){for(var e=le(i),t=tr(i);t&&ia(t)&&ke(t).position==="static";)t=tr(t);return t&&(be(t)==="html"||be(t)==="body"&&ke(t).position==="static")?e:t||aa(i)||e}function vo(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function Ct(i,e,t){return Ue(i,Rt(e,t))}function sa(i,e,t){var o=Ct(i,e,t);return o>t?t:o}function or(){return{top:0,right:0,bottom:0,left:0}}function rr(i){return Object.assign({},or(),i)}function ir(i,e){return e.reduce(function(t,o){return t[o]=i,t},{})}var na=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,rr(typeof e!="number"?e:ir(e,wt))};function la(i){var e,t=i.state,o=i.name,r=i.options,a=t.elements.arrow,s=t.modifiersData.popperOffsets,l=ve(t.placement),c=vo(l),u=[ne,pe].indexOf(l)>=0,h=u?"height":"width";if(!(!a||!s)){var f=na(r.padding,t),g=bo(a),v=c==="y"?se:ne,w=c==="y"?he:pe,C=t.rects.reference[h]+t.rects.reference[c]-s[c]-t.rects.popper[h],m=s[c]-t.rects.reference[c],_=kt(a),x=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,$=C/2-m/2,k=f[v],S=x-g[h]-f[w],E=x/2-g[h]/2+$,M=Ct(k,E,S),T=c;t.modifiersData[o]=(e={},e[T]=M,e.centerOffset=M-E,e)}}function ca(i){var e=i.state,t=i.options,o=t.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||er(e.elements.popper,r)&&(e.elements.arrow=r))}const da={name:"arrow",enabled:!0,phase:"main",fn:la,effect:ca,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ot(i){return i.split("-")[1]}var ha={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pa(i,e){var t=i.x,o=i.y,r=e.devicePixelRatio||1;return{x:et(t*r)/r||0,y:et(o*r)/r||0}}function ar(i){var e,t=i.popper,o=i.popperRect,r=i.placement,a=i.variation,s=i.offsets,l=i.position,c=i.gpuAcceleration,u=i.adaptive,h=i.roundOffsets,f=i.isFixed,g=s.x,v=g===void 0?0:g,w=s.y,C=w===void 0?0:w,m=typeof h=="function"?h({x:v,y:C}):{x:v,y:C};v=m.x,C=m.y;var _=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),$=ne,k=se,S=window;if(u){var E=kt(t),M="clientHeight",T="clientWidth";if(E===le(t)&&(E=Te(t),ke(E).position!=="static"&&l==="absolute"&&(M="scrollHeight",T="scrollWidth")),E=E,r===se||(r===ne||r===pe)&&a===xt){k=he;var D=f&&E===S&&S.visualViewport?S.visualViewport.height:E[M];C-=D-o.height,C*=c?1:-1}if(r===ne||(r===se||r===he)&&a===xt){$=pe;var L=f&&E===S&&S.visualViewport?S.visualViewport.width:E[T];v-=L-o.width,v*=c?1:-1}}var R=Object.assign({position:l},u&&ha),F=h===!0?pa({x:v,y:C},le(t)):{x:v,y:C};if(v=F.x,C=F.y,c){var O;return Object.assign({},R,(O={},O[k]=x?"0":"",O[$]=_?"0":"",O.transform=(S.devicePixelRatio||1)<=1?"translate("+v+"px, "+C+"px)":"translate3d("+v+"px, "+C+"px, 0)",O))}return Object.assign({},R,(e={},e[k]=x?C+"px":"",e[$]=_?v+"px":"",e.transform="",e))}function ua(i){var e=i.state,t=i.options,o=t.gpuAcceleration,r=o===void 0?!0:o,a=t.adaptive,s=a===void 0?!0:a,l=t.roundOffsets,c=l===void 0?!0:l,u={placement:ve(e.placement),variation:ot(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ar(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ar(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const fa={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ua,data:{}};var jt={passive:!0};function ga(i){var e=i.state,t=i.instance,o=i.options,r=o.scroll,a=r===void 0?!0:r,s=o.resize,l=s===void 0?!0:s,c=le(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&u.forEach(function(h){h.addEventListener("scroll",t.update,jt)}),l&&c.addEventListener("resize",t.update,jt),function(){a&&u.forEach(function(h){h.removeEventListener("scroll",t.update,jt)}),l&&c.removeEventListener("resize",t.update,jt)}}const ma={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ga,data:{}};var ba={left:"right",right:"left",bottom:"top",top:"bottom"};function Nt(i){return i.replace(/left|right|bottom|top/g,function(e){return ba[e]})}var va={start:"end",end:"start"};function sr(i){return i.replace(/start|end/g,function(e){return va[e]})}function _o(i){var e=le(i),t=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:t,scrollTop:o}}function yo(i){return tt(Te(i)).left+_o(i).scrollLeft}function _a(i,e){var t=le(i),o=Te(i),r=t.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,c=0;if(r){a=r.width,s=r.height;var u=Qo();(u||!u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:a,height:s,x:l+yo(i),y:c}}function ya(i){var e,t=Te(i),o=_o(i),r=(e=i.ownerDocument)==null?void 0:e.body,a=Ue(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Ue(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+yo(i),c=-o.scrollTop;return ke(r||t).direction==="rtl"&&(l+=Ue(t.clientWidth,r?r.clientWidth:0)-a),{width:a,height:s,x:l,y:c}}function wo(i){var e=ke(i),t=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+r+o)}function nr(i){return["html","body","#document"].indexOf(be(i))>=0?i.ownerDocument.body:ue(i)&&wo(i)?i:nr(Yt(i))}function St(i,e){var t;e===void 0&&(e=[]);var o=nr(i),r=o===((t=i.ownerDocument)==null?void 0:t.body),a=le(o),s=r?[a].concat(a.visualViewport||[],wo(o)?o:[]):o,l=e.concat(s);return r?l:l.concat(St(Yt(s)))}function xo(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function wa(i,e){var t=tt(i,!1,e==="fixed");return t.top=t.top+i.clientTop,t.left=t.left+i.clientLeft,t.bottom=t.top+i.clientHeight,t.right=t.left+i.clientWidth,t.width=i.clientWidth,t.height=i.clientHeight,t.x=t.left,t.y=t.top,t}function lr(i,e,t){return e===Go?xo(_a(i,t)):Fe(e)?wa(e,t):xo(ya(Te(i)))}function xa(i){var e=St(Yt(i)),t=["absolute","fixed"].indexOf(ke(i).position)>=0,o=t&&ue(i)?kt(i):i;return Fe(o)?e.filter(function(r){return Fe(r)&&er(r,o)&&be(r)!=="body"}):[]}function $a(i,e,t,o){var r=e==="clippingParents"?xa(i):[].concat(e),a=[].concat(r,[t]),s=a[0],l=a.reduce(function(c,u){var h=lr(i,u,o);return c.top=Ue(h.top,c.top),c.right=Rt(h.right,c.right),c.bottom=Rt(h.bottom,c.bottom),c.left=Ue(h.left,c.left),c},lr(i,s,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function cr(i){var e=i.reference,t=i.element,o=i.placement,r=o?ve(o):null,a=o?ot(o):null,s=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,c;switch(r){case se:c={x:s,y:e.y-t.height};break;case he:c={x:s,y:e.y+e.height};break;case pe:c={x:e.x+e.width,y:l};break;case ne:c={x:e.x-t.width,y:l};break;default:c={x:e.x,y:e.y}}var u=r?vo(r):null;if(u!=null){var h=u==="y"?"height":"width";switch(a){case Qe:c[u]=c[u]-(e[h]/2-t[h]/2);break;case xt:c[u]=c[u]+(e[h]/2-t[h]/2);break}}return c}function Et(i,e){e===void 0&&(e={});var t=e,o=t.placement,r=o===void 0?i.placement:o,a=t.strategy,s=a===void 0?i.strategy:a,l=t.boundary,c=l===void 0?Vi:l,u=t.rootBoundary,h=u===void 0?Go:u,f=t.elementContext,g=f===void 0?$t:f,v=t.altBoundary,w=v===void 0?!1:v,C=t.padding,m=C===void 0?0:C,_=rr(typeof m!="number"?m:ir(m,wt)),x=g===$t?Fi:$t,$=i.rects.popper,k=i.elements[w?x:g],S=$a(Fe(k)?k:k.contextElement||Te(i.elements.popper),c,h,s),E=tt(i.elements.reference),M=cr({reference:E,element:$,placement:r}),T=xo(Object.assign({},$,M)),D=g===$t?T:E,L={top:S.top-D.top+_.top,bottom:D.bottom-S.bottom+_.bottom,left:S.left-D.left+_.left,right:D.right-S.right+_.right},R=i.modifiersData.offset;if(g===$t&&R){var F=R[r];Object.keys(L).forEach(function(O){var Q=[pe,he].indexOf(O)>=0?1:-1,ee=[se,he].indexOf(O)>=0?"y":"x";L[O]+=F[ee]*Q})}return L}function ka(i,e){e===void 0&&(e={});var t=e,o=t.placement,r=t.boundary,a=t.rootBoundary,s=t.padding,l=t.flipVariations,c=t.allowedAutoPlacements,u=c===void 0?Jo:c,h=ot(o),f=h?l?Xo:Xo.filter(function(w){return ot(w)===h}):wt,g=f.filter(function(w){return u.indexOf(w)>=0});g.length===0&&(g=f);var v=g.reduce(function(w,C){return w[C]=Et(i,{placement:C,boundary:r,rootBoundary:a,padding:s})[ve(C)],w},{});return Object.keys(v).sort(function(w,C){return v[w]-v[C]})}function Ca(i){if(ve(i)===fo)return[];var e=Nt(i);return[sr(i),e,sr(e)]}function Sa(i){var e=i.state,t=i.options,o=i.name;if(!e.modifiersData[o]._skip){for(var r=t.mainAxis,a=r===void 0?!0:r,s=t.altAxis,l=s===void 0?!0:s,c=t.fallbackPlacements,u=t.padding,h=t.boundary,f=t.rootBoundary,g=t.altBoundary,v=t.flipVariations,w=v===void 0?!0:v,C=t.allowedAutoPlacements,m=e.options.placement,_=ve(m),x=_===m,$=c||(x||!w?[Nt(m)]:Ca(m)),k=[m].concat($).reduce(function(Be,ye){return Be.concat(ve(ye)===fo?ka(e,{placement:ye,boundary:h,rootBoundary:f,padding:u,flipVariations:w,allowedAutoPlacements:C}):ye)},[]),S=e.rects.reference,E=e.rects.popper,M=new Map,T=!0,D=k[0],L=0;L<k.length;L++){var R=k[L],F=ve(R),O=ot(R)===Qe,Q=[se,he].indexOf(F)>=0,ee=Q?"width":"height",q=Et(e,{placement:R,boundary:h,rootBoundary:f,altBoundary:g,padding:u}),te=Q?O?pe:ne:O?he:se;S[ee]>E[ee]&&(te=Nt(te));var me=Nt(te),ae=[];if(a&&ae.push(q[F]<=0),l&&ae.push(q[te]<=0,q[me]<=0),ae.every(function(Be){return Be})){D=R,T=!1;break}M.set(R,ae)}if(T)for(var Ce=w?3:1,oe=function(ye){var Ze=k.find(function(at){var Ae=M.get(at);if(Ae)return Ae.slice(0,ye).every(function(st){return st})});if(Ze)return D=Ze,"break"},Se=Ce;Se>0;Se--){var Ee=oe(Se);if(Ee==="break")break}e.placement!==D&&(e.modifiersData[o]._skip=!0,e.placement=D,e.reset=!0)}}const Ea={name:"flip",enabled:!0,phase:"main",fn:Sa,requiresIfExists:["offset"],data:{_skip:!1}};function dr(i,e,t){return t===void 0&&(t={x:0,y:0}),{top:i.top-e.height-t.y,right:i.right-e.width+t.x,bottom:i.bottom-e.height+t.y,left:i.left-e.width-t.x}}function hr(i){return[se,pe,he,ne].some(function(e){return i[e]>=0})}function Aa(i){var e=i.state,t=i.name,o=e.rects.reference,r=e.rects.popper,a=e.modifiersData.preventOverflow,s=Et(e,{elementContext:"reference"}),l=Et(e,{altBoundary:!0}),c=dr(s,o),u=dr(l,r,a),h=hr(c),f=hr(u);e.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:h,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":f})}const Pa={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Aa};function Ma(i,e,t){var o=ve(i),r=[ne,se].indexOf(o)>=0?-1:1,a=typeof t=="function"?t(Object.assign({},e,{placement:i})):t,s=a[0],l=a[1];return s=s||0,l=(l||0)*r,[ne,pe].indexOf(o)>=0?{x:l,y:s}:{x:s,y:l}}function za(i){var e=i.state,t=i.options,o=i.name,r=t.offset,a=r===void 0?[0,0]:r,s=Jo.reduce(function(h,f){return h[f]=Ma(f,e.rects,a),h},{}),l=s[e.placement],c=l.x,u=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[o]=s}const Da={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:za};function Ta(i){var e=i.state,t=i.name;e.modifiersData[t]=cr({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const La={name:"popperOffsets",enabled:!0,phase:"read",fn:Ta,data:{}};function Oa(i){return i==="x"?"y":"x"}function Ba(i){var e=i.state,t=i.options,o=i.name,r=t.mainAxis,a=r===void 0?!0:r,s=t.altAxis,l=s===void 0?!1:s,c=t.boundary,u=t.rootBoundary,h=t.altBoundary,f=t.padding,g=t.tether,v=g===void 0?!0:g,w=t.tetherOffset,C=w===void 0?0:w,m=Et(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:h}),_=ve(e.placement),x=ot(e.placement),$=!x,k=vo(_),S=Oa(k),E=e.modifiersData.popperOffsets,M=e.rects.reference,T=e.rects.popper,D=typeof C=="function"?C(Object.assign({},e.rects,{placement:e.placement})):C,L=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),R=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,F={x:0,y:0};if(E){if(a){var O,Q=k==="y"?se:ne,ee=k==="y"?he:pe,q=k==="y"?"height":"width",te=E[k],me=te+m[Q],ae=te-m[ee],Ce=v?-T[q]/2:0,oe=x===Qe?M[q]:T[q],Se=x===Qe?-T[q]:-M[q],Ee=e.elements.arrow,Be=v&&Ee?bo(Ee):{width:0,height:0},ye=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:or(),Ze=ye[Q],at=ye[ee],Ae=Ct(0,M[q],Be[q]),st=$?M[q]/2-Ce-Ae-Ze-L.mainAxis:oe-Ae-Ze-L.mainAxis,Xt=$?-M[q]/2+Ce+Ae+at+L.mainAxis:Se+Ae+at+L.mainAxis,We=e.elements.arrow&&kt(e.elements.arrow),Pt=We?k==="y"?We.clientTop||0:We.clientLeft||0:0,nt=(O=R==null?void 0:R[k])!=null?O:0,lt=te+st-nt-Pt,ct=te+Xt-nt,dt=Ct(v?Rt(me,lt):me,te,v?Ue(ae,ct):ae);E[k]=dt,F[k]=dt-te}if(l){var ht,Mt=k==="x"?se:ne,zt=k==="x"?he:pe,Ie=E[S],Jt=S==="y"?"height":"width",Dr=Ie+m[Mt],Tr=Ie-m[zt],Co=[se,ne].indexOf(_)!==-1,Lr=(ht=R==null?void 0:R[S])!=null?ht:0,Or=Co?Dr:Ie-M[Jt]-T[Jt]-Lr+L.altAxis,Br=Co?Ie+M[Jt]+T[Jt]-Lr-L.altAxis:Tr,Ir=v&&Co?sa(Or,Ie,Br):Ct(v?Or:Dr,Ie,v?Br:Tr);E[S]=Ir,F[S]=Ir-Ie}e.modifiersData[o]=F}}const Ia={name:"preventOverflow",enabled:!0,phase:"main",fn:Ba,requiresIfExists:["offset"]};function Ha(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function Ra(i){return i===le(i)||!ue(i)?_o(i):Ha(i)}function Ya(i){var e=i.getBoundingClientRect(),t=et(e.width)/i.offsetWidth||1,o=et(e.height)/i.offsetHeight||1;return t!==1||o!==1}function ja(i,e,t){t===void 0&&(t=!1);var o=ue(e),r=ue(e)&&Ya(e),a=Te(e),s=tt(i,r,t),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!t)&&((be(e)!=="body"||wo(a))&&(l=Ra(e)),ue(e)?(c=tt(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):a&&(c.x=yo(a))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Na(i){var e=new Map,t=new Set,o=[];i.forEach(function(a){e.set(a.name,a)});function r(a){t.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(l){if(!t.has(l)){var c=e.get(l);c&&r(c)}}),o.push(a)}return i.forEach(function(a){t.has(a.name)||r(a)}),o}function Va(i){var e=Na(i);return ea.reduce(function(t,o){return t.concat(e.filter(function(r){return r.phase===o}))},[])}function Fa(i){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(i())})})),e}}function Ua(i){var e=i.reduce(function(t,o){var r=t[o.name];return t[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,t},{});return Object.keys(e).map(function(t){return e[t]})}var pr={placement:"bottom",modifiers:[],strategy:"absolute"};function ur(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];return!e.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function qa(i){i===void 0&&(i={});var e=i,t=e.defaultModifiers,o=t===void 0?[]:t,r=e.defaultOptions,a=r===void 0?pr:r;return function(l,c,u){u===void 0&&(u=a);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},pr,a),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],g=!1,v={state:h,setOptions:function(_){var x=typeof _=="function"?_(h.options):_;C(),h.options=Object.assign({},a,h.options,x),h.scrollParents={reference:Fe(l)?St(l):l.contextElement?St(l.contextElement):[],popper:St(c)};var $=Va(Ua([].concat(o,h.options.modifiers)));return h.orderedModifiers=$.filter(function(k){return k.enabled}),w(),v.update()},forceUpdate:function(){if(!g){var _=h.elements,x=_.reference,$=_.popper;if(ur(x,$)){h.rects={reference:ja(x,kt($),h.options.strategy==="fixed"),popper:bo($)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(L){return h.modifiersData[L.name]=Object.assign({},L.data)});for(var k=0;k<h.orderedModifiers.length;k++){if(h.reset===!0){h.reset=!1,k=-1;continue}var S=h.orderedModifiers[k],E=S.fn,M=S.options,T=M===void 0?{}:M,D=S.name;typeof E=="function"&&(h=E({state:h,options:T,name:D,instance:v})||h)}}}},update:Fa(function(){return new Promise(function(m){v.forceUpdate(),m(h)})}),destroy:function(){C(),g=!0}};if(!ur(l,c))return v;v.setOptions(u).then(function(m){!g&&u.onFirstUpdate&&u.onFirstUpdate(m)});function w(){h.orderedModifiers.forEach(function(m){var _=m.name,x=m.options,$=x===void 0?{}:x,k=m.effect;if(typeof k=="function"){var S=k({state:h,name:_,instance:v,options:$}),E=function(){};f.push(S||E)}})}function C(){f.forEach(function(m){return m()}),f=[]}return v}}var Za=[ma,La,fa,ra,Da,Ea,Ia,da,Pa],Vt=qa({defaultModifiers:Za});const Wa='.combobox{display:flex;flex-direction:column;gap:var(--spacing-1);font-family:var(--font-family-base);width:100%}.combobox__label{display:block;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);color:var(--color-body-text)}.combobox__label--required:after{content:" *";color:var(--color-primary)}.combobox__readonly{border:none;background:transparent;font-size:var(--font-size-sm);color:var(--color-body-text);padding:0;outline:none;font-family:var(--font-family-base)}.combobox__wrapper{position:relative;width:100%;cursor:pointer}.combobox__trigger{display:flex;align-items:center;justify-content:space-between;width:100%;gap:var(--spacing-2);padding:0;border:none;border-radius:0;background-color:transparent;cursor:pointer;overflow:hidden;font-size:var(--font-size-sm);color:var(--color-body-text);transition:color var(--transition-speed-fast) var(--transition-timing);box-sizing:border-box}.combobox__trigger--default{min-height:20px}.combobox__trigger--large{min-height:24px;font-size:var(--font-size-base)}.combobox__trigger--open{color:var(--color-body-text)}.combobox__trigger--readonly{cursor:default;color:var(--color-tertiary)}.combobox__trigger--disabled{cursor:not-allowed;color:var(--color-tertiary)}.combobox__trigger--readonly .combobox__chevron,.combobox__trigger--disabled .combobox__chevron{opacity:.3}.combobox__placeholder{color:var(--color-tertiary);font-size:var(--font-size-sm);flex:1}.combobox__single-value{flex:1;font-size:var(--font-size-sm);color:var(--color-body-text)}.combobox__trigger--not-clearable .combobox__single-value,.combobox__trigger--not-clearable .combobox__placeholder{padding-right:24px}.combobox__chevron{display:inline-flex;align-items:center;justify-content:center;color:var(--color-tertiary);flex-shrink:0;transition:transform var(--transition-speed-fast) var(--transition-timing);position:absolute;right:var(--spacing-3)}.combobox__chevron--open{transform:rotate(180deg)}.combobox__tags{display:flex;flex-wrap:wrap;align-items:center;gap:var(--spacing-1);flex:1;overflow:hidden}.combobox__tag{display:inline-flex;align-items:center;gap:var(--spacing-1);padding:var(--spacing-1) var(--spacing-2);background-color:var(--color-light);border-radius:var(--radius-sm);font-size:var(--font-size-xs);color:var(--color-body-text);white-space:nowrap}.combobox__tag-remove{display:inline-flex;align-items:center;justify-content:center;background:none;border:none;padding:0;cursor:pointer;color:var(--color-tertiary);line-height:1;transition:color var(--transition-speed-fast) var(--transition-timing)}.combobox__tag-remove:hover{color:var(--color-body-text)}.combobox__clear{display:inline-flex;align-items:center;justify-content:center;background:none;border:none;padding:0 12px 0 0;cursor:pointer;color:var(--color-secondary);line-height:1;flex-shrink:0;transition:color var(--transition-speed-fast) var(--transition-timing)}.combobox__clear:hover{color:var(--color-body-text)}.combobox__filter-input{flex:1;border:none;outline:none;background:transparent;font-size:var(--font-size-sm);font-family:var(--font-family-base);color:var(--color-body-text);min-width:0;padding:0;cursor:text}.combobox__filter-input:disabled{cursor:not-allowed}.combobox__filter-input::placeholder{color:var(--color-tertiary)}.combobox__filter-input--inline{flex:1;min-width:60px}.combobox__trigger--multi-filter{flex-wrap:wrap;height:auto;min-height:32px;gap:var(--spacing-1);padding:var(--spacing-1) var(--spacing-3)}.combobox__trigger--large.combobox__trigger--multi-filter{min-height:40px}.combobox__dropdown[popover]{position:fixed;inset:unset;margin:0;padding:0;border:none}.combobox__dropdown{width:auto;background-color:var(--color-body-bg);border:1px solid var(--color-border);border-radius:var(--radius-base);box-shadow:var(--shadow-sm);z-index:var(--z-index-dropdown);overflow:hidden}.combobox__search{width:100%;padding:var(--spacing-2) var(--spacing-3);border:none;border-bottom:1px solid var(--color-border);font-size:var(--font-size-sm);color:var(--color-body-text);font-family:var(--font-family-base);outline:none;box-sizing:border-box;background-color:var(--color-body-bg)}.combobox__search::placeholder{color:var(--color-tertiary)}.combobox__list{max-height:208px;overflow-y:auto}.combobox__item{display:flex;align-items:center;gap:var(--spacing-2);padding:var(--spacing-2) var(--spacing-3);font-size:var(--font-size-sm);color:var(--color-body-text);cursor:pointer;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.combobox__item:hover,.combobox__item--selected,.combobox__item--focused{background-color:var(--color-light)}.combobox__empty{padding:var(--spacing-2) var(--spacing-3);font-size:var(--font-size-sm);color:var(--color-tertiary);text-align:center}';var Ka=Object.defineProperty,Ga=Object.getOwnPropertyDescriptor,j=(i,e,t,o)=>{for(var r=o>1?void 0:o?Ga(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&Ka(e,t,r),r};n.Combobox=class extends P{constructor(){super(...arguments),this.inputId="combo-"+Math.random().toString(36).substring(2),this.label="",this.helper="",this.error="",this.placeholder="Seçim yapınız",this.required=!1,this.disabled=!1,this.readOnly=!1,this.variant="default",this.multiple=!1,this.filterable=!1,this.optionLabel="label",this.optionValue="value",this.emptyMessage="Sonuç yok",this.items=[],this.size="default",this.clearable=!0,this.selected=[],this.inputValue="",this.isOpen=!1,this.focusedIndex=-1,this._filteredItems=[],this._handleOutsideClick=e=>{e.composedPath().includes(this)||this._closeDropdown()},this._handleKeydown=e=>{if(!(this.readOnly||this.disabled))switch(e.key){case"ArrowDown":e.preventDefault(),this.isOpen?this.focusedIndex=Math.min(this.focusedIndex+1,this._filteredItems.length-1):(this.isOpen=!0,this.focusedIndex=0),this._scrollFocusedIntoView();break;case"ArrowUp":e.preventDefault(),this.isOpen&&(this.focusedIndex=Math.max(this.focusedIndex-1,0),this._scrollFocusedIntoView());break;case"Enter":e.preventDefault(),this.isOpen?this.focusedIndex>=0&&this.focusedIndex<this._filteredItems.length&&this._selectItem(this._filteredItems[this.focusedIndex],e):(this.isOpen=!0,this.focusedIndex=0);break;case"Escape":e.preventDefault(),this._closeDropdown();break}},this._removeTag=(e,t)=>{t.stopPropagation(),this.setSelected(this.selected.filter(o=>o[this.optionValue]!==e[this.optionValue]))},this._clearSelection=e=>{e.stopPropagation(),this.setSelected([]),this.inputValue=""},this._onFilterFocus=()=>{this.readOnly||this.disabled||(this.inputValue="",this.isOpen=!0,this.focusedIndex=0)},this._onFilterInput=e=>{this.readOnly||this.disabled||(this.inputValue=e.target.value,this.focusedIndex=0,this.isOpen||(this.isOpen=!0))},this._stopPropagation=e=>e.stopPropagation(),this._onTriggerClick=e=>{e.stopPropagation(),!(this.readOnly||this.disabled)&&(this.filterable&&!this.multiple?this._focusFilterInput():this.isOpen=!this.isOpen)},this._onFieldClick=e=>{if(!(this.readOnly||this.disabled||e.composedPath().some(r=>{var a;return(a=r==null?void 0:r.classList)==null?void 0:a.contains("combobox__dropdown")}))){if(this.filterable&&!this.multiple){this.isOpen=!0,this._focusFilterInput();return}this.isOpen=!this.isOpen}},this._onChevronClick=e=>{if(e.stopPropagation(),!(this.readOnly||this.disabled)){if(this.isOpen){this._closeDropdown();return}this.isOpen=!0,this.filterable&&!this.multiple&&this._focusFilterInput()}}}willUpdate(e){if(e.has("items")||e.has("inputValue")||e.has("optionLabel")){const t=this.inputValue.toLocaleLowerCase();this._filteredItems=this.items.filter(o=>{var r;return String((r=o[this.optionLabel])!=null?r:"").toLocaleLowerCase().includes(t)})}}updated(e){var t,o;if(e.has("isOpen")&&this.isOpen&&this.filterable&&this.multiple&&((o=(t=this.shadowRoot)==null?void 0:t.querySelector(".combobox__search"))==null||o.focus()),e.has("isOpen")){this.isOpen?this.updateComplete.then(()=>{this._showPopover(),this._updatePopper()}):(this._hidePopover(),this._destroyPopper());return}this.isOpen&&this._updatePopper()}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleOutsideClick),this._destroyPopper()}_closeDropdown(){this.isOpen=!1,this.focusedIndex=-1,this.filterable&&(this.inputValue="")}get _filterDisplayValue(){return this.isOpen?this.inputValue:!this.multiple&&this.selected.length?String(this.selected[0][this.optionLabel]):""}_focusFilterInput(){this.updateComplete.then(()=>{var e,t;(t=(e=this.shadowRoot)==null?void 0:e.querySelector(".combobox__filter-input"))==null||t.focus()})}_scrollFocusedIntoView(){this.updateComplete.then(()=>{var t,o;const e=(t=this.shadowRoot)==null?void 0:t.querySelectorAll(".combobox__item");(o=e==null?void 0:e[this.focusedIndex])==null||o.scrollIntoView({block:"nearest"})})}selectedItems(){return this.selected}isSelected(e){return this.selected.some(t=>t[this.optionValue]===e[this.optionValue])}_selectItem(e,t){t.stopPropagation();let o;this.multiple?o=this.isSelected(e)?this.selected.filter(r=>r[this.optionValue]!==e[this.optionValue]):[...this.selected,e]:(o=[e],this.isOpen=!1,this.filterable&&(this.inputValue="")),this.setSelected(o)}setSelected(e){this.selected=e,this.dispatchEvent(new CustomEvent("selected",{detail:{selected:e},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:e},bubbles:!0,composed:!0}))}_renderTagList(){return p`
241
+ <div class="combobox__tags">
242
+ ${this.selected.map(e=>p`
243
+ <logosphere-badge
244
+ variant="default"
245
+ text=${String(e[this.optionLabel])}
246
+ ?closeable=${!this.readOnly}
247
+ @close=${t=>this._removeTag(e,t)}
248
+ ></logosphere-badge>
249
+ `)}
250
+ </div>
251
+ `}_renderTriggerContent(){return this.filterable&&!this.multiple?p`
252
+ <input
253
+ class="combobox__filter-input"
254
+ type="text"
255
+ .value=${this._filterDisplayValue}
256
+ placeholder=${this.placeholder}
257
+ ?disabled=${this.readOnly||this.disabled}
258
+ @focus=${this._onFilterFocus}
259
+ @input=${this._onFilterInput}
260
+ @keydown=${this._handleKeydown}
261
+ @click=${this._stopPropagation}
262
+ />
263
+ ${this.clearable&&!this.readOnly&&this.selected.length?p`
264
+ <button class="combobox__clear" @click=${this._clearSelection} aria-label="Clear">
265
+ <ui-icon name="uil-times" size="14"></ui-icon>
266
+ </button>
267
+ `:b}
268
+ `:this.multiple&&this.selected.length?this._renderTagList():!this.multiple&&this.selected.length?p`
269
+ <span class="combobox__single-value">${this.selected[0][this.optionLabel]}</span>
270
+ ${this.clearable&&!this.readOnly?p`
271
+ <button class="combobox__clear" @click=${this._clearSelection} aria-label="Clear">
272
+ <ui-icon name="uil-times" size="14"></ui-icon>
273
+ </button>
274
+ `:b}
275
+ `:p`<span class="combobox__placeholder">${this.placeholder}</span>`}_renderDropdown(){return p`
276
+ <div data-combobox-popper popover="manual" class="combobox__dropdown">
277
+ ${this.filterable&&this.multiple?p`
278
+ <input
279
+ class="combobox__search"
280
+ type="text"
281
+ placeholder=${this.placeholder}
282
+ .value=${this.inputValue}
283
+ @input=${this._onFilterInput}
284
+ @keydown=${this._handleKeydown}
285
+ @click=${this._stopPropagation}
286
+ />
287
+ `:b}
288
+
289
+ <div class="combobox__list">
290
+ ${this._filteredItems.length===0?p`<div class="combobox__empty">${this.emptyMessage}</div>`:this._filteredItems.map((e,t)=>p`
291
+ <div
292
+ class="combobox__item
293
+ ${!this.multiple&&this.isSelected(e)?"combobox__item--selected":""}
294
+ ${t===this.focusedIndex?"combobox__item--focused":""}"
295
+ @click=${o=>this._selectItem(e,o)}
296
+ @mouseenter=${()=>{this.focusedIndex=t}}
297
+ >
298
+ ${this.multiple?p`
299
+ <logosphere-checkbox
300
+ .checked=${this.isSelected(e)}
301
+ .value=${e[this.optionValue]}
302
+ @click=${this._stopPropagation}
303
+ ></logosphere-checkbox>
304
+ `:b}
305
+ ${e[this.optionLabel]}
306
+ </div>
307
+ `)}
308
+ </div>
309
+ </div>
310
+ `}_getPopperModifiers(){return[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:8}},{name:"flip",options:{padding:8,fallbackPlacements:["top-start","right-start","left-start","bottom-end","top-end"]}}]}_getPopperReferenceElement(){var t,o;const e=(o=(t=this._formFieldElement)==null?void 0:t.shadowRoot)==null?void 0:o.querySelector(".formfield__container");return e!=null?e:this._referenceElement}_updatePopper(){const e=this._getPopperReferenceElement(),t=this._dropdownElement;if(!this.isOpen||!e||!t||!this.isConnected)return;const o=Math.round(e.getBoundingClientRect().width);if(t.style.width=`${o}px`,this._popperInstance){this._popperInstance.setOptions({placement:"bottom-start",strategy:"fixed",modifiers:this._getPopperModifiers()}),this._popperInstance.update();return}this._popperInstance=Vt(e,t,{placement:"bottom-start",strategy:"fixed",modifiers:this._getPopperModifiers()})}_destroyPopper(){this._popperInstance&&(this._popperInstance.destroy(),this._popperInstance=void 0)}_showPopover(){var t;const e=this._dropdownElement;(t=e==null?void 0:e.showPopover)==null||t.call(e)}_hidePopover(){var t;const e=this._dropdownElement;try{(t=e==null?void 0:e.hidePopover)==null||t.call(e)}catch(o){}}render(){const e=["combobox__trigger",`combobox__trigger--${this.size}`,this.disabled?"combobox__trigger--disabled":"",this.readOnly?"combobox__trigger--readonly":"",!this.readOnly&&!this.disabled&&this.isOpen?"combobox__trigger--open":"",this.clearable?"":"combobox__trigger--not-clearable"].filter(Boolean).join(" ");return p`
311
+ <div class="combobox">
312
+ <logosphere-formfield
313
+ .label=${this.label}
314
+ .helper=${this.helper}
315
+ .error=${this.error}
316
+ cursor="pointer"
317
+ .required=${this.required}
318
+ .disabled=${this.disabled}
319
+ .readonly=${this.readOnly}
320
+ .size=${this.size}
321
+ .variant=${this.variant}
322
+ @click=${this._onFieldClick}
323
+ >
324
+ <div class="combobox__wrapper">
325
+ <div
326
+ class="${e}"
327
+ tabindex="${this.readOnly||this.filterable||this.disabled?-1:0}"
328
+ @click=${this._onTriggerClick}
329
+ @keydown=${this.filterable?b:this._handleKeydown}
330
+ >
331
+ ${this._renderTriggerContent()}
332
+ </div>
333
+
334
+ ${this._renderDropdown()}
335
+ </div>
336
+ <span
337
+ class="combobox__chevron ${this.isOpen?"combobox__chevron--open":""}"
338
+ @click=${this._onChevronClick}
339
+ >
340
+ <ui-icon name="uil-angle-down" size="16"></ui-icon>
341
+ </span>
342
+ </logosphere-formfield>
343
+ </div>
344
+ `}},n.Combobox.styles=[H`
345
+ ${I(Wa)}
346
+ `],j([d({type:String})],n.Combobox.prototype,"label",2),j([d({type:String})],n.Combobox.prototype,"helper",2),j([d({type:String})],n.Combobox.prototype,"error",2),j([d({type:String})],n.Combobox.prototype,"placeholder",2),j([d({type:Boolean})],n.Combobox.prototype,"required",2),j([d({type:Boolean})],n.Combobox.prototype,"disabled",2),j([d({type:Boolean})],n.Combobox.prototype,"readOnly",2),j([d({type:String})],n.Combobox.prototype,"variant",2),j([d({type:Boolean})],n.Combobox.prototype,"multiple",2),j([d({type:Boolean})],n.Combobox.prototype,"filterable",2),j([d({type:String})],n.Combobox.prototype,"optionLabel",2),j([d({type:String})],n.Combobox.prototype,"optionValue",2),j([d({type:String})],n.Combobox.prototype,"emptyMessage",2),j([d({type:Array})],n.Combobox.prototype,"items",2),j([d({type:String})],n.Combobox.prototype,"size",2),j([d({type:Boolean})],n.Combobox.prototype,"clearable",2),j([y()],n.Combobox.prototype,"selected",2),j([y()],n.Combobox.prototype,"inputValue",2),j([y()],n.Combobox.prototype,"isOpen",2),j([y()],n.Combobox.prototype,"focusedIndex",2),j([Z(".combobox__wrapper")],n.Combobox.prototype,"_referenceElement",2),j([Z("logosphere-formfield")],n.Combobox.prototype,"_formFieldElement",2),j([Z("[data-combobox-popper]")],n.Combobox.prototype,"_dropdownElement",2),n.Combobox=j([V("logosphere-combobox")],n.Combobox);var Xa=Object.defineProperty,ie=(i,e,t,o)=>{for(var r=void 0,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=s(e,t,r)||r);return r&&Xa(e,t,r),r};const $o=class $o extends P{constructor(){super(...arguments),this.variant="default",this.page=1,this.pageSize=25,this.total=0,this.pageSizeOptions=[10,25,50,100],this.showPageSize=!0,this.showTotal=!0,this.disabled=!1,this.prevLabel="Önceki",this.nextLabel="Sonraki",this.pageLabel="Sayfa",this.perPageLabel="/ sayfa",this.totalLabel="kayıt",this.inputValue="1",this.goFirst=()=>{this.canGoPrev&&this.goToPage(1)},this.goPrev=()=>{this.canGoPrev&&this.goToPage(this.page-1)},this.goNext=()=>{this.canGoNext&&this.goToPage(this.page+1)},this.goLast=()=>{this.canGoNext&&this.goToPage(this.totalPages)},this.handleInputChange=e=>{const t=e.target;this.inputValue=t.value},this.handleInputBlur=()=>{const e=parseInt(this.inputValue,10);isNaN(e)?this.inputValue=String(this.page):this.goToPage(e)},this.handleInputKeydown=e=>{e.key==="Enter"&&e.target.blur()},this.handlePageSizeChange=e=>{var o,r;const t=(r=(o=e.detail)==null?void 0:o.value)==null?void 0:r[0];if(t){const a=t.value;a!==this.pageSize&&(this.pageSize=a,this.page=1,this.emitPageChange())}}}get totalPages(){return Math.max(1,Math.ceil(this.total/this.pageSize))}get canGoPrev(){return this.page>1&&!this.disabled}get canGoNext(){return this.page<this.totalPages&&!this.disabled}firstUpdated(){this.updateComboboxSelection()}updated(e){super.updated(e),e.has("page")&&(this.inputValue=String(this.page)),e.has("pageSize")&&this.updateComboboxSelection()}updateComboboxSelection(){this._combobox&&this.showPageSize&&this._combobox.setSelected(this.selectedPageSizeItem)}emitPageChange(){this.dispatchEvent(new CustomEvent("page-change",{bubbles:!0,composed:!0,detail:{page:this.page,pageSize:this.pageSize,totalPages:this.totalPages}}))}goToPage(e){const t=Math.max(1,Math.min(e,this.totalPages));t!==this.page&&(this.page=t,this.emitPageChange())}get pageSizeItems(){return this.pageSizeOptions.map(e=>({label:`${e} ${this.perPageLabel}`,value:e}))}get selectedPageSizeItem(){return[{label:`${this.pageSize} ${this.perPageLabel}`,value:this.pageSize}]}getPageNumbers(){const e=[],t=this.totalPages,o=this.page,r=1;if(t<=7)for(let a=1;a<=t;a++)e.push(a);else{e.push(1),o>3&&e.push("ellipsis");const a=Math.max(2,o-r),s=Math.min(t-1,o+r);for(let l=a;l<=s;l++)e.includes(l)||e.push(l);o<t-2&&e.push("ellipsis"),e.includes(t)||e.push(t)}return e}renderNavButtons(e=!1){const t=e?"pagination__btn--icon":"pagination__btn";return p`
347
+ <div class="pagination__nav-group">
348
+ <button
349
+ type="button"
350
+ class="${t}"
351
+ ?disabled=${!this.canGoPrev}
352
+ @click=${this.goFirst}
353
+ aria-label="İlk sayfa"
354
+ >
355
+ <ui-icon name="uil-angle-double-left" size="16"></ui-icon>
356
+ </button>
357
+ <button
358
+ type="button"
359
+ class="${t}"
360
+ ?disabled=${!this.canGoPrev}
361
+ @click=${this.goPrev}
362
+ aria-label="Önceki sayfa"
363
+ >
364
+ <ui-icon name="uil-angle-left" size="16"></ui-icon>
365
+ </button>
366
+ </div>
367
+ `}renderNavButtonsAfter(e=!1){const t=e?"pagination__btn--icon":"pagination__btn";return p`
368
+ <div class="pagination__nav-group">
369
+ <button
370
+ type="button"
371
+ class="${t}"
372
+ ?disabled=${!this.canGoNext}
373
+ @click=${this.goNext}
374
+ aria-label="Sonraki sayfa"
375
+ >
376
+ <ui-icon name="uil-angle-right" size="16"></ui-icon>
377
+ </button>
378
+ <button
379
+ type="button"
380
+ class="${t}"
381
+ ?disabled=${!this.canGoNext}
382
+ @click=${this.goLast}
383
+ aria-label="Son sayfa"
384
+ >
385
+ <ui-icon name="uil-angle-double-right" size="16"></ui-icon>
386
+ </button>
387
+ </div>
388
+ `}renderPageInput(){return p`
389
+ <div class="pagination__input-container">
390
+ <input
391
+ type="number"
392
+ class="pagination__input"
393
+ .value=${Ht(this.inputValue)}
394
+ min="1"
395
+ max=${this.totalPages}
396
+ ?disabled=${this.disabled}
397
+ @input=${this.handleInputChange}
398
+ @blur=${this.handleInputBlur}
399
+ @keydown=${this.handleInputKeydown}
400
+ aria-label="Sayfa numarası"
401
+ />
402
+ </div>
403
+ <span class="pagination__separator">/ ${this.totalPages}</span>
404
+ `}renderPrevNextButtons(){return p`
405
+ <button
406
+ type="button"
407
+ class="pagination__btn--text"
408
+ ?disabled=${!this.canGoPrev}
409
+ @click=${this.goPrev}
410
+ >
411
+ <ui-icon name="uil-angle-left" size="16"></ui-icon>
412
+ ${this.prevLabel}
413
+ </button>
414
+ <button
415
+ type="button"
416
+ class="pagination__btn--text"
417
+ ?disabled=${!this.canGoNext}
418
+ @click=${this.goNext}
419
+ >
420
+ ${this.nextLabel}
421
+ <ui-icon name="uil-angle-right" size="16"></ui-icon>
422
+ </button>
423
+ `}renderPageInfo(){return p`
424
+ <div class="pagination__page-info">
425
+ <span class="pagination__page-info-text">${this.pageLabel} ${this.page}</span>
426
+ <span class="pagination__page-info-separator">/</span>
427
+ <span class="pagination__page-info-text">${this.totalPages}</span>
428
+ </div>
429
+ `}renderNumberButtons(){const e=this.getPageNumbers();return p`
430
+ ${e.map((t,o)=>t==="ellipsis"?p`
431
+ <span
432
+ class="pagination__btn--number pagination__btn--ellipsis"
433
+ key="ellipsis-${o}"
434
+ >...</span>
435
+ `:p`
436
+ <button
437
+ type="button"
438
+ class="pagination__btn--number ${t===this.page?"pagination__btn--active":""}"
439
+ ?disabled=${this.disabled}
440
+ @click=${()=>this.goToPage(t)}
441
+ aria-label="Sayfa ${t}"
442
+ aria-current=${t===this.page?"page":b}
443
+ >
444
+ ${t}
445
+ </button>
446
+ `)}
447
+ `}renderPageSizeDropdown(){return this.showPageSize?p`
448
+ <div class="pagination__page-size">
449
+ <logosphere-combobox
450
+ .items=${this.pageSizeItems}
451
+ .disabled=${this.disabled}
452
+ .clearable=${!1}
453
+ optionLabel="label"
454
+ optionValue="value"
455
+ placeholder=""
456
+ @change=${this.handlePageSizeChange}
457
+ ></logosphere-combobox>
458
+ </div>
459
+ `:b}renderTotalInfo(){return this.showTotal?p`
460
+ <div class="pagination__total">
461
+ <span class="pagination__total-separator">/</span>
462
+ <span class="pagination__total-text">${this.total} ${this.totalLabel}</span>
463
+ </div>
464
+ `:b}renderDefault(){return p`
465
+ <div class="pagination__nav">
466
+ ${this.renderNavButtons()}
467
+ ${this.renderPageInput()}
468
+ ${this.renderNavButtonsAfter()}
469
+ </div>
470
+ <div class="pagination__info">
471
+ ${this.renderPageSizeDropdown()}
472
+ ${this.renderTotalInfo()}
473
+ </div>
474
+ `}renderPrevNext(){return p`
475
+ <div class="pagination__nav" style="gap: 8px;">
476
+ ${this.renderPrevNextButtons()}
477
+ </div>
478
+ <div class="pagination__info">
479
+ ${this.renderPageInfo()}
480
+ </div>
481
+ `}renderPrevNextInverted(){return p`
482
+ <div class="pagination__info">
483
+ ${this.renderPageInfo()}
484
+ </div>
485
+ <div class="pagination__nav" style="gap: 8px;">
486
+ ${this.renderPrevNextButtons()}
487
+ </div>
488
+ `}renderPrevNextOnly(){return p`
489
+ <div class="pagination__nav" style="gap: 8px; margin-left: auto;">
490
+ ${this.renderPrevNextButtons()}
491
+ </div>
492
+ `}renderNumberButtonsVariant(){return p`
493
+ <div class="pagination__nav">
494
+ ${this.renderNavButtons(!0)}
495
+ ${this.renderNumberButtons()}
496
+ ${this.renderNavButtonsAfter(!0)}
497
+ </div>
498
+ <div class="pagination__info">
499
+ ${this.renderPageSizeDropdown()}
500
+ ${this.renderTotalInfo()}
501
+ </div>
502
+ `}render(){const e=this.variant==="prev-next-only"?"pagination--justify-end":"";return p`
503
+ <nav
504
+ class="pagination ${e}"
505
+ role="navigation"
506
+ aria-label="Sayfalama"
507
+ >
508
+ ${this.variant==="default"?this.renderDefault():b}
509
+ ${this.variant==="prev-next"?this.renderPrevNext():b}
510
+ ${this.variant==="prev-next-inverted"?this.renderPrevNextInverted():b}
511
+ ${this.variant==="prev-next-only"?this.renderPrevNextOnly():b}
512
+ ${this.variant==="number-buttons"?this.renderNumberButtonsVariant():b}
513
+ </nav>
514
+ `}};$o.styles=[H`${I(Ni)}`];let W=$o;ie([d({type:String})],W.prototype,"variant"),ie([d({type:Number})],W.prototype,"page"),ie([d({type:Number})],W.prototype,"pageSize"),ie([d({type:Number})],W.prototype,"total"),ie([d({type:Array})],W.prototype,"pageSizeOptions"),ie([d({type:Boolean})],W.prototype,"showPageSize"),ie([d({type:Boolean})],W.prototype,"showTotal"),ie([d({type:Boolean})],W.prototype,"disabled"),ie([d({type:String})],W.prototype,"prevLabel"),ie([d({type:String})],W.prototype,"nextLabel"),ie([d({type:String})],W.prototype,"pageLabel"),ie([d({type:String})],W.prototype,"perPageLabel"),ie([d({type:String})],W.prototype,"totalLabel"),ie([y()],W.prototype,"inputValue"),ie([Z("logosphere-combobox")],W.prototype,"_combobox"),customElements.get("logosphere-pagination")||customElements.define("logosphere-pagination",W);const Ja='.popover__wrapper{position:relative;display:inline-block;font-family:var(--font-family-base)}.popover__trigger{display:inline-flex}.popover__panel{position:relative;overflow:visible;z-index:var(--z-index-popover);min-width:240px;border-radius:var(--radius-md);border:1px solid var(--color-border);background-color:var(--color-body-bg);box-shadow:var(--shadow-md)}.popover__content{position:relative;z-index:1;background-color:var(--color-body-bg);border-radius:var(--radius-md);overflow:hidden}.popover__content:before{content:"";position:absolute;top:0;left:0;right:0;height:8px;background-color:var(--color-body-bg);border-radius:var(--radius-md) var(--radius-md) 0 0;z-index:1;pointer-events:none}.popover__content>*{position:relative;z-index:2}.popover__title{padding:10px var(--spacing-3);font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);color:var(--color-body-text)}.popover__body{padding:var(--spacing-3);font-size:var(--font-size-sm);color:var(--color-secondary)}.popover__body--with-border{border-top:1px solid var(--color-border)}.popper-arrow{position:absolute;width:12px;height:12px;pointer-events:none;z-index:0}.popper-arrow:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--color-border);transform:rotate(45deg)}.popper-arrow:after{content:"";position:absolute;top:1px;right:1px;bottom:1px;left:1px;background:var(--color-body-bg);transform:rotate(45deg)}[data-popper]{position:relative;overflow:visible}[data-popper-placement^=bottom]>.popper-arrow{top:-6px;left:50%;transform:translate(-50%,-50%)}[data-popper-placement^=top]>.popper-arrow{bottom:-6px;left:50%;transform:translate(-50%,50%)}[data-popper-placement^=left]>.popper-arrow{right:-6px;top:50%;transform:translate(50%,-50%)}[data-popper-placement^=right]>.popper-arrow{left:-6px;top:50%;transform:translate(-50%,-50%)}';var Qa=Object.defineProperty,es=Object.getOwnPropertyDescriptor,ge=(i,e,t,o)=>{for(var r=o>1?void 0:o?es(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&Qa(e,t,r),r};n.Popover=class extends P{constructor(){super(...arguments),this.title="",this.trigger="click",this.placement="bottom",this.offset=8,this.open=!1,this.closeOnOutsideClick=!0,this.noArrow=!1,this.handleDocumentClick=e=>{!this.open||!this.closeOnOutsideClick||e.composedPath().includes(this)||this.setOpen(!1)},this.toggle=e=>{(this.trigger==="click"||this.trigger==="both")&&(e==null||e.stopPropagation(),this.setOpen(!this.open))},this.handleMouseEnter=()=>{(this.trigger==="hover"||this.trigger==="both")&&this.setOpen(!0)},this.handleMouseLeave=()=>{(this.trigger==="hover"||this.trigger==="both")&&this.setOpen(!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleDocumentClick,{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleDocumentClick,{capture:!0}),this.destroyPopper()}updated(e){super.updated(e);const t=e.has("placement"),o=e.has("open")&&this.open;if(e.has("open")&&!this.open){this.destroyPopper();return}(o||t)&&this.open&&this.updatePopper()}setOpen(e){this.open!==e&&(this.open=e,this.dispatchEvent(new CustomEvent(e?"popover-open":"popover-close",{bubbles:!0,composed:!0})))}updatePopper(){if(!this.isConnected||!this.open)return;const e=this.triggerElement,t=this.popperElement;if(!(!e||!t)){if(this.popperInstance){this.popperInstance.setOptions({placement:this.placement,modifiers:this.getPopperModifiers(),strategy:"fixed"}),this.popperInstance.update();return}this.popperInstance=Vt(e,t,{placement:this.placement,strategy:"fixed",modifiers:this.getPopperModifiers()})}}getPopperModifiers(){const e=[{name:"offset",options:{offset:[0,this.offset]}},{name:"preventOverflow",options:{padding:8}},{name:"flip",options:{padding:8}}];return!this.noArrow&&this.popperArrowElement&&e.push({name:"arrow",options:{element:this.popperArrowElement,padding:8}}),e}destroyPopper(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=void 0)}render(){const e=!!this.title;return p`
241
515
  <div
242
516
  class="popover__wrapper"
243
517
  @mouseenter=${this.handleMouseEnter}
@@ -247,16 +521,16 @@
247
521
  <slot name="trigger"></slot>
248
522
  </div>
249
523
 
250
- ${this.open?u`
524
+ ${this.open?p`
251
525
  <div
252
526
  data-popper
253
527
  class="popover__panel"
254
528
  role="dialog"
255
529
  aria-hidden=${this.open?"false":"true"}
256
530
  >
257
- ${this.noArrow?null:u`<div data-popper-arrow class="popper-arrow"></div>`}
531
+ ${this.noArrow?null:p`<div data-popper-arrow class="popper-arrow"></div>`}
258
532
  <div class="popover__content">
259
- ${this.title?u`
533
+ ${this.title?p`
260
534
  <div class="popover__title">${this.title}</div>
261
535
  `:null}
262
536
  <div class="popover__body ${e?"popover__body--with-border":""}">
@@ -266,7 +540,7 @@
266
540
  </div>
267
541
  `:null}
268
542
  </div>
269
- `}},n.Popover.styles=[R`${H(Ns)}`],ue([d({type:String})],n.Popover.prototype,"title",2),ue([d({type:String})],n.Popover.prototype,"trigger",2),ue([d({type:String})],n.Popover.prototype,"placement",2),ue([d({type:Number})],n.Popover.prototype,"offset",2),ue([d({type:Boolean,reflect:!0})],n.Popover.prototype,"open",2),ue([d({type:Boolean})],n.Popover.prototype,"closeOnOutsideClick",2),ue([d({type:Boolean})],n.Popover.prototype,"noArrow",2),ue([Z('[part="trigger"]')],n.Popover.prototype,"triggerElement",2),ue([Z("[data-popper]")],n.Popover.prototype,"popperElement",2),ue([Z("[data-popper-arrow]")],n.Popover.prototype,"popperArrowElement",2),n.Popover=ue([V("logosphere-popover")],n.Popover);const Zs=".textarea__wrap{position:relative;flex:1;min-width:0}.textarea__field{display:block;width:100%;background:transparent;border:none;outline:none;font-size:14px;font-family:var(--font-family-base);font-weight:var(--font-weight-regular);line-height:1.25rem;letter-spacing:-.14px;color:var(--color-body-text);box-sizing:border-box}.textarea__field::placeholder{color:var(--color-tertiary)}.textarea__field:disabled{cursor:not-allowed}.textarea__field--resize-none{resize:none}.textarea__field--resize-vertical{resize:vertical}.textarea__field--resize-horizontal{resize:horizontal}.textarea__field--resize-both{resize:both}.textarea__field--auto-resize{resize:none;overflow:hidden}.textarea__counter{position:absolute;bottom:5px;right:18px;font-size:11px;font-weight:var(--font-weight-medium);line-height:1rem;letter-spacing:-.11px;color:var(--color-secondary);background-color:var(--color-light-bg-2);border-radius:var(--radius-sm, 4px);padding:0 var(--spacing-1);white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none}.textarea__wrap--no-grip .textarea__counter{right:4px}.textarea__clear-btn{border:none;background:transparent;color:var(--color-tertiary);cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;outline:none;line-height:0;transition:color var(--transition-speed-fast) var(--transition-timing)}.textarea__clear-btn:hover{color:var(--color-body-text)}";var Ws=Object.defineProperty,Ks=Object.getOwnPropertyDescriptor,j=(i,e,t,o)=>{for(var r=o>1?void 0:o?Ks(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Ws(e,t,r),r};n.TextArea=class extends D{constructor(){super(...arguments),this.value="",this.placeholder="",this.name="",this.autocomplete="",this.rows=3,this.maxRows=8,this.wrap="soft",this.resize="vertical",this.autoResize=!0,this.size="default",this.variant="default",this.label="",this.helper="",this.error="",this.required=!1,this.disabled=!1,this.readonly=!1,this._internalError="",this._charCount=0,this.handleInput=e=>{const t=e.target;this.value=t.value,this._charCount=this.value.length,this.autoResize&&this.adjustHeight(),this._internalError&&(this._internalError="",this._textareaElement.setCustomValidity("")),this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:this.value,originalEvent:e}}))},this.handleChange=e=>{const t=e.target;this.value=t.value,t.checkValidity()||(this._internalError=t.validationMessage),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{value:this.value,originalEvent:e}}))},this.handleKeyDown=e=>{this.dispatchEvent(new CustomEvent("keydown",{bubbles:!0,composed:!0,detail:{key:e.key,originalEvent:e}}))},this.handleKeyUp=e=>{this.dispatchEvent(new CustomEvent("keyup",{bubbles:!0,composed:!0,detail:{key:e.key,originalEvent:e}}))},this.handleClear=()=>{this.value="",this._charCount=0,this._textareaElement&&(this._textareaElement.value="",this.autoResize&&this.adjustHeight()),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:"",originalEvent:null}}))}}get textareaElement(){return this._textareaElement}focus(){var e;(e=this._textareaElement)==null||e.focus()}blur(){var e;(e=this._textareaElement)==null||e.blur()}select(){var e;(e=this._textareaElement)==null||e.select()}setSelectionRange(e,t,o){var r;(r=this._textareaElement)==null||r.setSelectionRange(e,t,o)}checkValidity(){var e,t;return(t=(e=this._textareaElement)==null?void 0:e.checkValidity())!=null?t:!0}reportValidity(){var e,t;return(t=(e=this._textareaElement)==null?void 0:e.reportValidity())!=null?t:!0}setCustomValidity(e){var t;(t=this._textareaElement)==null||t.setCustomValidity(e),this._internalError=e,this.requestUpdate()}adjustHeight(){if(!this.autoResize||!this._textareaElement)return;const e=this._textareaElement;e.style.height="",e.style.overflow="hidden";const t=e.scrollHeight;if(t!==0){if(this.maxRows>0){const o=parseFloat(getComputedStyle(e).lineHeight)||20,r=Math.round(o*this.maxRows);if(t>=r){e.style.height=`${r}px`,e.style.overflow="auto";return}}e.style.height=`${t}px`}}getResizeClass(){return this.autoResize?"textarea__field--auto-resize":{none:"textarea__field--resize-none",vertical:"textarea__field--resize-vertical",horizontal:"textarea__field--resize-horizontal",both:"textarea__field--resize-both"}[this.resize]}firstUpdated(){this._charCount=this.value.length,this.autoResize&&requestAnimationFrame(()=>this.adjustHeight())}updated(e){super.updated(e),e.has("value")&&(this._charCount=this.value.length,this.autoResize&&this.adjustHeight())}getWrapClass(){return this.autoResize||this.resize==="none"?"textarea__wrap textarea__wrap--no-grip":"textarea__wrap"}render(){var s,a,l;const e=this.error||this._internalError,t=!!this.value&&!this.disabled&&!this.readonly,o=this.maxlength!=null,r=`textarea__field ${this.getResizeClass()}`;return u`
543
+ `}},n.Popover.styles=[H`${I(Ja)}`],ge([d({type:String})],n.Popover.prototype,"title",2),ge([d({type:String})],n.Popover.prototype,"trigger",2),ge([d({type:String})],n.Popover.prototype,"placement",2),ge([d({type:Number})],n.Popover.prototype,"offset",2),ge([d({type:Boolean,reflect:!0})],n.Popover.prototype,"open",2),ge([d({type:Boolean})],n.Popover.prototype,"closeOnOutsideClick",2),ge([d({type:Boolean})],n.Popover.prototype,"noArrow",2),ge([Z('[part="trigger"]')],n.Popover.prototype,"triggerElement",2),ge([Z("[data-popper]")],n.Popover.prototype,"popperElement",2),ge([Z("[data-popper-arrow]")],n.Popover.prototype,"popperArrowElement",2),n.Popover=ge([V("logosphere-popover")],n.Popover);const ts=".textarea__wrap{position:relative;flex:1;min-width:0}.textarea__field{display:block;width:100%;background:transparent;border:none;outline:none;font-size:14px;font-family:var(--font-family-base);font-weight:var(--font-weight-regular);line-height:1.25rem;letter-spacing:-.14px;color:var(--color-body-text);box-sizing:border-box}.textarea__field::placeholder{color:var(--color-tertiary)}.textarea__field:disabled{cursor:not-allowed}.textarea__field--resize-none{resize:none}.textarea__field--resize-vertical{resize:vertical}.textarea__field--resize-horizontal{resize:horizontal}.textarea__field--resize-both{resize:both}.textarea__field--auto-resize{resize:none;overflow:hidden}.textarea__counter{position:absolute;bottom:5px;right:18px;font-size:11px;font-weight:var(--font-weight-medium);line-height:1rem;letter-spacing:-.11px;color:var(--color-secondary);background-color:var(--color-light-bg-2);border-radius:var(--radius-sm, 4px);padding:0 var(--spacing-1);white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none}.textarea__wrap--no-grip .textarea__counter{right:4px}.textarea__clear-btn{border:none;background:transparent;color:var(--color-tertiary);cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;outline:none;line-height:0;transition:color var(--transition-speed-fast) var(--transition-timing)}.textarea__clear-btn:hover{color:var(--color-body-text)}";var os=Object.defineProperty,rs=Object.getOwnPropertyDescriptor,N=(i,e,t,o)=>{for(var r=o>1?void 0:o?rs(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&os(e,t,r),r};n.TextArea=class extends P{constructor(){super(...arguments),this.value="",this.placeholder="",this.name="",this.autocomplete="",this.rows=3,this.maxRows=8,this.wrap="soft",this.resize="vertical",this.autoResize=!0,this.size="default",this.variant="default",this.label="",this.helper="",this.error="",this.required=!1,this.disabled=!1,this.readonly=!1,this._internalError="",this._charCount=0,this.handleInput=e=>{const t=e.target;this.value=t.value,this._charCount=this.value.length,this.autoResize&&this.adjustHeight(),this._internalError&&(this._internalError="",this._textareaElement.setCustomValidity("")),this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:this.value,originalEvent:e}}))},this.handleChange=e=>{const t=e.target;this.value=t.value,t.checkValidity()||(this._internalError=t.validationMessage),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{value:this.value,originalEvent:e}}))},this.handleKeyDown=e=>{this.dispatchEvent(new CustomEvent("keydown",{bubbles:!0,composed:!0,detail:{key:e.key,originalEvent:e}}))},this.handleKeyUp=e=>{this.dispatchEvent(new CustomEvent("keyup",{bubbles:!0,composed:!0,detail:{key:e.key,originalEvent:e}}))},this.handleClear=()=>{this.value="",this._charCount=0,this._textareaElement&&(this._textareaElement.value="",this.autoResize&&this.adjustHeight()),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:"",originalEvent:null}}))}}get textareaElement(){return this._textareaElement}focus(){var e;(e=this._textareaElement)==null||e.focus()}blur(){var e;(e=this._textareaElement)==null||e.blur()}select(){var e;(e=this._textareaElement)==null||e.select()}setSelectionRange(e,t,o){var r;(r=this._textareaElement)==null||r.setSelectionRange(e,t,o)}checkValidity(){var e,t;return(t=(e=this._textareaElement)==null?void 0:e.checkValidity())!=null?t:!0}reportValidity(){var e,t;return(t=(e=this._textareaElement)==null?void 0:e.reportValidity())!=null?t:!0}setCustomValidity(e){var t;(t=this._textareaElement)==null||t.setCustomValidity(e),this._internalError=e,this.requestUpdate()}adjustHeight(){if(!this.autoResize||!this._textareaElement)return;const e=this._textareaElement;e.style.height="",e.style.overflow="hidden";const t=e.scrollHeight;if(t!==0){if(this.maxRows>0){const o=parseFloat(getComputedStyle(e).lineHeight)||20,r=Math.round(o*this.maxRows);if(t>=r){e.style.height=`${r}px`,e.style.overflow="auto";return}}e.style.height=`${t}px`}}getResizeClass(){return this.autoResize?"textarea__field--auto-resize":{none:"textarea__field--resize-none",vertical:"textarea__field--resize-vertical",horizontal:"textarea__field--resize-horizontal",both:"textarea__field--resize-both"}[this.resize]}firstUpdated(){this._charCount=this.value.length,this.autoResize&&requestAnimationFrame(()=>this.adjustHeight())}updated(e){super.updated(e),e.has("value")&&(this._charCount=this.value.length,this.autoResize&&this.adjustHeight())}getWrapClass(){return this.autoResize||this.resize==="none"?"textarea__wrap textarea__wrap--no-grip":"textarea__wrap"}render(){var a,s,l;const e=this.error||this._internalError,t=!!this.value&&!this.disabled&&!this.readonly,o=this.maxlength!=null,r=`textarea__field ${this.getResizeClass()}`;return p`
270
544
  <logosphere-formfield
271
545
  .label=${this.label}
272
546
  .helper=${this.helper}
@@ -282,28 +556,28 @@
282
556
  <div class="${this.getWrapClass()}">
283
557
  <textarea
284
558
  class="${r}"
285
- .value=${co(this.value)}
286
- placeholder=${this.placeholder||v}
287
- name=${this.name||v}
288
- autocomplete=${this.autocomplete||v}
559
+ .value=${Ht(this.value)}
560
+ placeholder=${this.placeholder||b}
561
+ name=${this.name||b}
562
+ autocomplete=${this.autocomplete||b}
289
563
  ?required=${this.required}
290
564
  ?disabled=${this.disabled}
291
565
  ?readonly=${this.readonly}
292
- minlength=${(s=this.minlength)!=null?s:v}
293
- maxlength=${(a=this.maxlength)!=null?a:v}
566
+ minlength=${(a=this.minlength)!=null?a:b}
567
+ maxlength=${(s=this.maxlength)!=null?s:b}
294
568
  rows=${this.rows}
295
- cols=${(l=this.cols)!=null?l:v}
569
+ cols=${(l=this.cols)!=null?l:b}
296
570
  wrap=${this.wrap}
297
571
  @input=${this.handleInput}
298
572
  @change=${this.handleChange}
299
573
  @keydown=${this.handleKeyDown}
300
574
  @keyup=${this.handleKeyUp}
301
575
  ></textarea>
302
- ${o?u`
576
+ ${o?p`
303
577
  <span class="textarea__counter">${this._charCount}/${this.maxlength}</span>
304
- `:v}
578
+ `:b}
305
579
  </div>
306
- ${t?u`
580
+ ${t?p`
307
581
  <button
308
582
  type="button"
309
583
  slot="clear"
@@ -313,10 +587,10 @@
313
587
  >
314
588
  <ui-icon name="uil-times" size="14"></ui-icon>
315
589
  </button>
316
- `:v}
590
+ `:b}
317
591
  <slot name="suffix" slot="suffix"></slot>
318
592
  </logosphere-formfield>
319
- `}},n.TextArea.styles=[R`${H(Zs)}`],j([Z("textarea")],n.TextArea.prototype,"_textareaElement",2),j([d({type:String})],n.TextArea.prototype,"value",2),j([d({type:String})],n.TextArea.prototype,"placeholder",2),j([d({type:String})],n.TextArea.prototype,"name",2),j([d({type:String})],n.TextArea.prototype,"autocomplete",2),j([d({type:Number})],n.TextArea.prototype,"minlength",2),j([d({type:Number})],n.TextArea.prototype,"maxlength",2),j([d({type:Number})],n.TextArea.prototype,"rows",2),j([d({type:Number})],n.TextArea.prototype,"maxRows",2),j([d({type:Number})],n.TextArea.prototype,"cols",2),j([d({type:String})],n.TextArea.prototype,"wrap",2),j([d({type:String})],n.TextArea.prototype,"resize",2),j([d({type:Boolean})],n.TextArea.prototype,"autoResize",2),j([d({type:String})],n.TextArea.prototype,"size",2),j([d({type:String})],n.TextArea.prototype,"variant",2),j([d({type:String})],n.TextArea.prototype,"label",2),j([d({type:String})],n.TextArea.prototype,"helper",2),j([d({type:String})],n.TextArea.prototype,"error",2),j([d({type:Boolean})],n.TextArea.prototype,"required",2),j([d({type:Boolean})],n.TextArea.prototype,"disabled",2),j([d({type:Boolean})],n.TextArea.prototype,"readonly",2),j([y()],n.TextArea.prototype,"_internalError",2),j([y()],n.TextArea.prototype,"_charCount",2),n.TextArea=j([V("logosphere-textarea")],n.TextArea);const Gs=":host{display:block;width:100%}.timepicker__reference{display:block;width:100%}.timepicker__trigger{border:none;background:transparent;color:var(--color-tertiary);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0;flex-shrink:0;height:100%;min-height:32px;outline:none;border-radius:0 var(--radius-base) var(--radius-base) 0;transition:color var(--transition-speed-fast) var(--transition-timing),background-color var(--transition-speed-fast) var(--transition-timing)}.timepicker__trigger:hover{color:var(--color-body-text);background-color:var(--color-body-bg-hover)}.timepicker__trigger--active{color:var(--color-body-text)}.timepicker__trigger:disabled{pointer-events:none;opacity:.4}.timepicker__popup[popover]{position:fixed;inset:unset;margin:0;padding:0;border:none;width:240px;background-color:var(--color-body-bg);border-radius:12px;box-shadow:0 4px 16px #7878783d;overflow:hidden;z-index:var(--z-index-dropdown, 1000)}.timepicker__spinner{display:flex;flex-direction:row;align-items:stretch;padding:var(--spacing-1) var(--spacing-2)}.timepicker__col{flex:1;display:flex;flex-direction:column;padding:0px var(--spacing-5)}.timepicker__col--left{align-items:flex-start}.timepicker__col--right{align-items:flex-end}.timepicker__col--sep{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 var(--spacing-1)}.timepicker__spin-btn{height:32px;display:flex;align-items:center;justify-content:center;border:none;padding:var(--spacing-2);background:transparent;color:var(--color-secondary);border-radius:var(--radius-base);cursor:pointer;outline:none;box-sizing:border-box;transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.timepicker__spin-btn:hover{background-color:var(--color-body-bg-hover);color:var(--color-body-text)}.timepicker__spin-btn:active{background-color:var(--color-body-bg-active)}.timepicker__time-unit{height:32px;display:flex;align-items:center;justify-content:center;font-size:14px;font-family:var(--font-family-base);font-weight:var(--font-weight-regular);line-height:1.25rem;letter-spacing:-.14px;color:var(--color-body-text);text-align:center;box-sizing:border-box;padding:var(--spacing-2)}.timepicker__colon{height:32px;display:flex;align-items:center;justify-content:center;font-size:16px;font-family:var(--font-family-base);font-weight:var(--font-weight-medium);color:var(--color-secondary)}.timepicker__actions{display:flex;align-items:center;padding:var(--spacing-2);border-top:1px solid var(--color-border);gap:var(--spacing-1)}.timepicker__action-btn{flex:1 0 0;min-width:0;height:32px;display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;color:var(--color-secondary);border-radius:var(--radius-full);cursor:pointer;padding:var(--spacing-2);outline:none;transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.timepicker__action-btn:hover{background-color:var(--color-body-bg-hover);color:var(--color-body-text)}.timepicker__action-btn:active{background-color:var(--color-body-bg-active)}";var Xs=Object.defineProperty,Js=Object.getOwnPropertyDescriptor,K=(i,e,t,o)=>{for(var r=o>1?void 0:o?Js(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Xs(e,t,r),r};n.TimePicker=class extends D{constructor(){super(...arguments),this.value="",this.label="",this.helper="",this.error="",this.placeholder="__:__",this.required=!1,this.disabled=!1,this.readonly=!1,this.size="default",this.variant="default",this._isOpen=!1,this._hour=0,this._minute=0,this._handleOutsideClick=e=>{this._isOpen&&!e.composedPath().includes(this)&&(this._isOpen=!1)},this._handleInputChange=e=>{var o,r;e.stopPropagation();const t=(r=(o=e.detail)==null?void 0:o.value)!=null?r:"";if(/^\d{2}:\d{2}$/.test(t)){const[s,a]=this._parseValue(t);this._hour=s,this._minute=a;const l=`${this._pad(s)}:${this._pad(a)}`;this.value=l,this._emit(l)}},this._handleInputClear=e=>{e.stopPropagation(),this.value="",this._hour=0,this._minute=0,this._emit(""),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0})),this._isOpen=!1},this._incrementHour=()=>{this._hour=(this._hour+1)%24,this._syncValue()},this._decrementHour=()=>{this._hour=(this._hour-1+24)%24,this._syncValue()},this._incrementMinute=()=>{this._minute=(this._minute+1)%60,this._syncValue()},this._decrementMinute=()=>{this._minute=(this._minute-1+60)%60,this._syncValue()}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleOutsideClick),this._destroyPopper()}willUpdate(e){if(e.has("value")&&/^\d{1,2}:\d{2}$/.test(this.value)){const[t,o]=this._parseValue(this.value);this._hour=t,this._minute=o}}updated(e){e.has("_isOpen")&&(this._isOpen?this.updateComplete.then(()=>{this._showPopover(),this._updatePopper()}):(this._hidePopover(),this._destroyPopper()))}_parseValue(e){const t=e.match(/^(\d{1,2}):(\d{2})$/);return t?[Math.min(23,Math.max(0,parseInt(t[1],10))),Math.min(59,Math.max(0,parseInt(t[2],10)))]:[0,0]}_pad(e){return String(e).padStart(2,"0")}_updatePopper(){!this._referenceEl||!this._popupEl||(this._popperInstance=Yt(this._referenceEl,this._popupEl,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,4]}},{name:"flip",options:{fallbackPlacements:["top-start"]}},{name:"preventOverflow",options:{boundary:document.documentElement,padding:8}}]}))}_destroyPopper(){var e;(e=this._popperInstance)==null||e.destroy(),this._popperInstance=void 0}_showPopover(){var t;const e=this._popupEl;(t=e==null?void 0:e.showPopover)==null||t.call(e)}_hidePopover(){var t;const e=this._popupEl;try{(t=e==null?void 0:e.hidePopover)==null||t.call(e)}catch(o){}}_togglePopup(){if(!(this.disabled||this.readonly))if(this._isOpen)this._isOpen=!1;else{const[e,t]=this._parseValue(this.value);this._hour=e,this._minute=t,this._isOpen=!0}}_clearValue(e){e==null||e.stopPropagation(),this.value="",this._hour=0,this._minute=0,this._emit(""),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0})),this._isOpen=!1}_setNow(){const e=new Date;this._hour=e.getHours(),this._minute=e.getMinutes(),this._syncValue()}_emit(e){var t;(t=this.onChange)==null||t.call(this,e),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{value:e}}))}_syncValue(){const e=`${this._pad(this._hour)}:${this._pad(this._minute)}`;this.value=e,this._emit(e)}_startSpin(e){e(),this._spinInterval=setInterval(e,120)}_stopSpin(){clearInterval(this._spinInterval),this._spinInterval=void 0}_renderPopup(){return u`
593
+ `}},n.TextArea.styles=[H`${I(ts)}`],N([Z("textarea")],n.TextArea.prototype,"_textareaElement",2),N([d({type:String})],n.TextArea.prototype,"value",2),N([d({type:String})],n.TextArea.prototype,"placeholder",2),N([d({type:String})],n.TextArea.prototype,"name",2),N([d({type:String})],n.TextArea.prototype,"autocomplete",2),N([d({type:Number})],n.TextArea.prototype,"minlength",2),N([d({type:Number})],n.TextArea.prototype,"maxlength",2),N([d({type:Number})],n.TextArea.prototype,"rows",2),N([d({type:Number})],n.TextArea.prototype,"maxRows",2),N([d({type:Number})],n.TextArea.prototype,"cols",2),N([d({type:String})],n.TextArea.prototype,"wrap",2),N([d({type:String})],n.TextArea.prototype,"resize",2),N([d({type:Boolean})],n.TextArea.prototype,"autoResize",2),N([d({type:String})],n.TextArea.prototype,"size",2),N([d({type:String})],n.TextArea.prototype,"variant",2),N([d({type:String})],n.TextArea.prototype,"label",2),N([d({type:String})],n.TextArea.prototype,"helper",2),N([d({type:String})],n.TextArea.prototype,"error",2),N([d({type:Boolean})],n.TextArea.prototype,"required",2),N([d({type:Boolean})],n.TextArea.prototype,"disabled",2),N([d({type:Boolean})],n.TextArea.prototype,"readonly",2),N([y()],n.TextArea.prototype,"_internalError",2),N([y()],n.TextArea.prototype,"_charCount",2),n.TextArea=N([V("logosphere-textarea")],n.TextArea);const is=":host{display:block;width:100%}.timepicker__reference{display:block;width:100%}.timepicker__trigger{border:none;background:transparent;color:var(--color-tertiary);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0;flex-shrink:0;height:100%;min-height:32px;outline:none;border-radius:0 var(--radius-base) var(--radius-base) 0;transition:color var(--transition-speed-fast) var(--transition-timing),background-color var(--transition-speed-fast) var(--transition-timing)}.timepicker__trigger:hover{color:var(--color-body-text);background-color:var(--color-body-bg-hover)}.timepicker__trigger--active{color:var(--color-body-text)}.timepicker__trigger:disabled{pointer-events:none;opacity:.4}.timepicker__popup[popover]{position:fixed;inset:unset;margin:0;padding:0;border:none;width:240px;background-color:var(--color-body-bg);border-radius:12px;box-shadow:0 4px 16px #7878783d;overflow:hidden;z-index:var(--z-index-dropdown, 1000)}.timepicker__spinner{display:flex;flex-direction:row;align-items:stretch;padding:var(--spacing-1) var(--spacing-2)}.timepicker__col{flex:1;display:flex;flex-direction:column;padding:0px var(--spacing-5)}.timepicker__col--left{align-items:flex-start}.timepicker__col--right{align-items:flex-end}.timepicker__col--sep{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 var(--spacing-1)}.timepicker__spin-btn{height:32px;display:flex;align-items:center;justify-content:center;border:none;padding:var(--spacing-2);background:transparent;color:var(--color-secondary);border-radius:var(--radius-base);cursor:pointer;outline:none;box-sizing:border-box;transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.timepicker__spin-btn:hover{background-color:var(--color-body-bg-hover);color:var(--color-body-text)}.timepicker__spin-btn:active{background-color:var(--color-body-bg-active)}.timepicker__time-unit{height:32px;display:flex;align-items:center;justify-content:center;font-size:14px;font-family:var(--font-family-base);font-weight:var(--font-weight-regular);line-height:1.25rem;letter-spacing:-.14px;color:var(--color-body-text);text-align:center;box-sizing:border-box;padding:var(--spacing-2)}.timepicker__colon{height:32px;display:flex;align-items:center;justify-content:center;font-size:16px;font-family:var(--font-family-base);font-weight:var(--font-weight-medium);color:var(--color-secondary)}.timepicker__actions{display:flex;align-items:center;padding:var(--spacing-2);border-top:1px solid var(--color-border);gap:var(--spacing-1)}.timepicker__action-btn{flex:1 0 0;min-width:0;height:32px;display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;color:var(--color-secondary);border-radius:var(--radius-full);cursor:pointer;padding:var(--spacing-2);outline:none;transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.timepicker__action-btn:hover{background-color:var(--color-body-bg-hover);color:var(--color-body-text)}.timepicker__action-btn:active{background-color:var(--color-body-bg-active)}";var as=Object.defineProperty,ss=Object.getOwnPropertyDescriptor,G=(i,e,t,o)=>{for(var r=o>1?void 0:o?ss(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&as(e,t,r),r};n.TimePicker=class extends P{constructor(){super(...arguments),this.value="",this.label="",this.helper="",this.error="",this.placeholder="__:__",this.required=!1,this.disabled=!1,this.readonly=!1,this.size="default",this.variant="default",this._isOpen=!1,this._hour=0,this._minute=0,this._handleOutsideClick=e=>{this._isOpen&&!e.composedPath().includes(this)&&(this._isOpen=!1)},this._handleInputChange=e=>{var o,r;e.stopPropagation();const t=(r=(o=e.detail)==null?void 0:o.value)!=null?r:"";if(/^\d{2}:\d{2}$/.test(t)){const[a,s]=this._parseValue(t);this._hour=a,this._minute=s;const l=`${this._pad(a)}:${this._pad(s)}`;this.value=l,this._emit(l)}},this._handleInputClear=e=>{e.stopPropagation(),this.value="",this._hour=0,this._minute=0,this._emit(""),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0})),this._isOpen=!1},this._incrementHour=()=>{this._hour=(this._hour+1)%24,this._syncValue()},this._decrementHour=()=>{this._hour=(this._hour-1+24)%24,this._syncValue()},this._incrementMinute=()=>{this._minute=(this._minute+1)%60,this._syncValue()},this._decrementMinute=()=>{this._minute=(this._minute-1+60)%60,this._syncValue()}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleOutsideClick),this._destroyPopper()}willUpdate(e){if(e.has("value")&&/^\d{1,2}:\d{2}$/.test(this.value)){const[t,o]=this._parseValue(this.value);this._hour=t,this._minute=o}}updated(e){e.has("_isOpen")&&(this._isOpen?this.updateComplete.then(()=>{this._showPopover(),this._updatePopper()}):(this._hidePopover(),this._destroyPopper()))}_parseValue(e){const t=e.match(/^(\d{1,2}):(\d{2})$/);return t?[Math.min(23,Math.max(0,parseInt(t[1],10))),Math.min(59,Math.max(0,parseInt(t[2],10)))]:[0,0]}_pad(e){return String(e).padStart(2,"0")}_updatePopper(){!this._referenceEl||!this._popupEl||(this._popperInstance=Vt(this._referenceEl,this._popupEl,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,4]}},{name:"flip",options:{fallbackPlacements:["top-start"]}},{name:"preventOverflow",options:{boundary:document.documentElement,padding:8}}]}))}_destroyPopper(){var e;(e=this._popperInstance)==null||e.destroy(),this._popperInstance=void 0}_showPopover(){var t;const e=this._popupEl;(t=e==null?void 0:e.showPopover)==null||t.call(e)}_hidePopover(){var t;const e=this._popupEl;try{(t=e==null?void 0:e.hidePopover)==null||t.call(e)}catch(o){}}_togglePopup(){if(!(this.disabled||this.readonly))if(this._isOpen)this._isOpen=!1;else{const[e,t]=this._parseValue(this.value);this._hour=e,this._minute=t,this._isOpen=!0}}_clearValue(e){e==null||e.stopPropagation(),this.value="",this._hour=0,this._minute=0,this._emit(""),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0})),this._isOpen=!1}_setNow(){const e=new Date;this._hour=e.getHours(),this._minute=e.getMinutes(),this._syncValue()}_emit(e){var t;(t=this.onChange)==null||t.call(this,e),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{value:e}}))}_syncValue(){const e=`${this._pad(this._hour)}:${this._pad(this._minute)}`;this.value=e,this._emit(e)}_startSpin(e){e(),this._spinInterval=setInterval(e,120)}_stopSpin(){clearInterval(this._spinInterval),this._spinInterval=void 0}_renderPopup(){return p`
320
594
  <div data-timepicker-popup popover="manual" class="timepicker__popup">
321
595
  <div class="timepicker__spinner">
322
596
  <!-- Sol sütun: saat -->
@@ -400,7 +674,7 @@
400
674
  </button>
401
675
  </div>
402
676
  </div>
403
- `}render(){return u`
677
+ `}render(){return p`
404
678
  <div class="timepicker__reference">
405
679
  <logosphere-input
406
680
  .label=${this.label}
@@ -434,120 +708,14 @@
434
708
  </div>
435
709
 
436
710
  ${this._renderPopup()}
437
- `}},n.TimePicker.styles=[R`${H(Gs)}`],K([d({type:String})],n.TimePicker.prototype,"value",2),K([d({type:String})],n.TimePicker.prototype,"label",2),K([d({type:String})],n.TimePicker.prototype,"helper",2),K([d({type:String})],n.TimePicker.prototype,"error",2),K([d({type:String})],n.TimePicker.prototype,"placeholder",2),K([d({type:Boolean})],n.TimePicker.prototype,"required",2),K([d({type:Boolean})],n.TimePicker.prototype,"disabled",2),K([d({type:Boolean})],n.TimePicker.prototype,"readonly",2),K([d({type:String})],n.TimePicker.prototype,"size",2),K([d({type:String})],n.TimePicker.prototype,"variant",2),K([d({attribute:!1})],n.TimePicker.prototype,"onChange",2),K([y()],n.TimePicker.prototype,"_isOpen",2),K([y()],n.TimePicker.prototype,"_hour",2),K([y()],n.TimePicker.prototype,"_minute",2),K([Z(".timepicker__reference")],n.TimePicker.prototype,"_referenceEl",2),K([Z("[data-timepicker-popup]")],n.TimePicker.prototype,"_popupEl",2),n.TimePicker=K([V("logosphere-timepicker")],n.TimePicker);const Qs='.combobox{display:flex;flex-direction:column;gap:var(--spacing-1);font-family:var(--font-family-base);width:100%}.combobox__label{display:block;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);color:var(--color-body-text)}.combobox__label--required:after{content:" *";color:var(--color-primary)}.combobox__readonly{border:none;background:transparent;font-size:var(--font-size-sm);color:var(--color-body-text);padding:0;outline:none;font-family:var(--font-family-base)}.combobox__wrapper{position:relative;width:100%;cursor:pointer}.combobox__trigger{display:flex;align-items:center;justify-content:space-between;width:100%;gap:var(--spacing-2);padding:0;border:none;border-radius:0;background-color:transparent;cursor:pointer;overflow:hidden;font-size:var(--font-size-sm);color:var(--color-body-text);transition:color var(--transition-speed-fast) var(--transition-timing);box-sizing:border-box}.combobox__trigger--default{min-height:20px}.combobox__trigger--large{min-height:24px;font-size:var(--font-size-base)}.combobox__trigger--open{color:var(--color-body-text)}.combobox__trigger--readonly{cursor:default;color:var(--color-tertiary)}.combobox__trigger--disabled{cursor:not-allowed;color:var(--color-tertiary)}.combobox__trigger--readonly .combobox__chevron,.combobox__trigger--disabled .combobox__chevron{opacity:.3}.combobox__placeholder{color:var(--color-tertiary);font-size:var(--font-size-sm);flex:1}.combobox__single-value{flex:1;font-size:var(--font-size-sm);color:var(--color-body-text)}.combobox__trigger--not-clearable .combobox__single-value,.combobox__trigger--not-clearable .combobox__placeholder{padding-right:24px}.combobox__chevron{display:inline-flex;align-items:center;justify-content:center;color:var(--color-tertiary);flex-shrink:0;transition:transform var(--transition-speed-fast) var(--transition-timing);position:absolute;right:var(--spacing-3)}.combobox__chevron--open{transform:rotate(180deg)}.combobox__tags{display:flex;flex-wrap:wrap;align-items:center;gap:var(--spacing-1);flex:1;overflow:hidden}.combobox__tag{display:inline-flex;align-items:center;gap:var(--spacing-1);padding:var(--spacing-1) var(--spacing-2);background-color:var(--color-light);border-radius:var(--radius-sm);font-size:var(--font-size-xs);color:var(--color-body-text);white-space:nowrap}.combobox__tag-remove{display:inline-flex;align-items:center;justify-content:center;background:none;border:none;padding:0;cursor:pointer;color:var(--color-tertiary);line-height:1;transition:color var(--transition-speed-fast) var(--transition-timing)}.combobox__tag-remove:hover{color:var(--color-body-text)}.combobox__clear{display:inline-flex;align-items:center;justify-content:center;background:none;border:none;padding:0 12px 0 0;cursor:pointer;color:var(--color-secondary);line-height:1;flex-shrink:0;transition:color var(--transition-speed-fast) var(--transition-timing)}.combobox__clear:hover{color:var(--color-body-text)}.combobox__filter-input{flex:1;border:none;outline:none;background:transparent;font-size:var(--font-size-sm);font-family:var(--font-family-base);color:var(--color-body-text);min-width:0;padding:0;cursor:text}.combobox__filter-input:disabled{cursor:not-allowed}.combobox__filter-input::placeholder{color:var(--color-tertiary)}.combobox__filter-input--inline{flex:1;min-width:60px}.combobox__trigger--multi-filter{flex-wrap:wrap;height:auto;min-height:32px;gap:var(--spacing-1);padding:var(--spacing-1) var(--spacing-3)}.combobox__trigger--large.combobox__trigger--multi-filter{min-height:40px}.combobox__dropdown[popover]{position:fixed;inset:unset;margin:0;padding:0;border:none}.combobox__dropdown{width:auto;background-color:var(--color-body-bg);border:1px solid var(--color-border);border-radius:var(--radius-base);box-shadow:var(--shadow-sm);z-index:var(--z-index-dropdown);overflow:hidden}.combobox__search{width:100%;padding:var(--spacing-2) var(--spacing-3);border:none;border-bottom:1px solid var(--color-border);font-size:var(--font-size-sm);color:var(--color-body-text);font-family:var(--font-family-base);outline:none;box-sizing:border-box;background-color:var(--color-body-bg)}.combobox__search::placeholder{color:var(--color-tertiary)}.combobox__list{max-height:208px;overflow-y:auto}.combobox__item{display:flex;align-items:center;gap:var(--spacing-2);padding:var(--spacing-2) var(--spacing-3);font-size:var(--font-size-sm);color:var(--color-body-text);cursor:pointer;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.combobox__item:hover,.combobox__item--selected,.combobox__item--focused{background-color:var(--color-light)}.combobox__empty{padding:var(--spacing-2) var(--spacing-3);font-size:var(--font-size-sm);color:var(--color-tertiary);text-align:center}';var ea=Object.defineProperty,ta=Object.getOwnPropertyDescriptor,F=(i,e,t,o)=>{for(var r=o>1?void 0:o?ta(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&ea(e,t,r),r};n.Combobox=class extends D{constructor(){super(...arguments),this.inputId="combo-"+Math.random().toString(36).substring(2),this.label="",this.helper="",this.error="",this.placeholder="Seçim yapınız",this.required=!1,this.disabled=!1,this.readOnly=!1,this.variant="default",this.multiple=!1,this.filterable=!1,this.optionLabel="label",this.optionValue="value",this.emptyMessage="Sonuç yok",this.items=[],this.size="default",this.clearable=!0,this.selected=[],this.inputValue="",this.isOpen=!1,this.focusedIndex=-1,this._filteredItems=[],this._handleOutsideClick=e=>{e.composedPath().includes(this)||this._closeDropdown()},this._handleKeydown=e=>{if(!(this.readOnly||this.disabled))switch(e.key){case"ArrowDown":e.preventDefault(),this.isOpen?this.focusedIndex=Math.min(this.focusedIndex+1,this._filteredItems.length-1):(this.isOpen=!0,this.focusedIndex=0),this._scrollFocusedIntoView();break;case"ArrowUp":e.preventDefault(),this.isOpen&&(this.focusedIndex=Math.max(this.focusedIndex-1,0),this._scrollFocusedIntoView());break;case"Enter":e.preventDefault(),this.isOpen?this.focusedIndex>=0&&this.focusedIndex<this._filteredItems.length&&this._selectItem(this._filteredItems[this.focusedIndex],e):(this.isOpen=!0,this.focusedIndex=0);break;case"Escape":e.preventDefault(),this._closeDropdown();break}},this._removeTag=(e,t)=>{t.stopPropagation(),this.setSelected(this.selected.filter(o=>o[this.optionValue]!==e[this.optionValue]))},this._clearSelection=e=>{e.stopPropagation(),this.setSelected([]),this.inputValue=""},this._onFilterFocus=()=>{this.readOnly||this.disabled||(this.inputValue="",this.isOpen=!0,this.focusedIndex=0)},this._onFilterInput=e=>{this.readOnly||this.disabled||(this.inputValue=e.target.value,this.focusedIndex=0,this.isOpen||(this.isOpen=!0))},this._stopPropagation=e=>e.stopPropagation(),this._onTriggerClick=e=>{e.stopPropagation(),!(this.readOnly||this.disabled)&&(this.filterable&&!this.multiple?this._focusFilterInput():this.isOpen=!this.isOpen)},this._onFieldClick=e=>{if(!(this.readOnly||this.disabled||e.composedPath().some(r=>{var s;return(s=r==null?void 0:r.classList)==null?void 0:s.contains("combobox__dropdown")}))){if(this.filterable&&!this.multiple){this.isOpen=!0,this._focusFilterInput();return}this.isOpen=!this.isOpen}},this._onChevronClick=e=>{if(e.stopPropagation(),!(this.readOnly||this.disabled)){if(this.isOpen){this._closeDropdown();return}this.isOpen=!0,this.filterable&&!this.multiple&&this._focusFilterInput()}}}willUpdate(e){if(e.has("items")||e.has("inputValue")||e.has("optionLabel")){const t=this.inputValue.toLocaleLowerCase();this._filteredItems=this.items.filter(o=>{var r;return String((r=o[this.optionLabel])!=null?r:"").toLocaleLowerCase().includes(t)})}}updated(e){var t,o;if(e.has("isOpen")&&this.isOpen&&this.filterable&&this.multiple&&((o=(t=this.shadowRoot)==null?void 0:t.querySelector(".combobox__search"))==null||o.focus()),e.has("isOpen")){this.isOpen?this.updateComplete.then(()=>{this._showPopover(),this._updatePopper()}):(this._hidePopover(),this._destroyPopper());return}this.isOpen&&this._updatePopper()}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleOutsideClick),this._destroyPopper()}_closeDropdown(){this.isOpen=!1,this.focusedIndex=-1,this.filterable&&(this.inputValue="")}get _filterDisplayValue(){return this.isOpen?this.inputValue:!this.multiple&&this.selected.length?String(this.selected[0][this.optionLabel]):""}_focusFilterInput(){this.updateComplete.then(()=>{var e,t;(t=(e=this.shadowRoot)==null?void 0:e.querySelector(".combobox__filter-input"))==null||t.focus()})}_scrollFocusedIntoView(){this.updateComplete.then(()=>{var t,o;const e=(t=this.shadowRoot)==null?void 0:t.querySelectorAll(".combobox__item");(o=e==null?void 0:e[this.focusedIndex])==null||o.scrollIntoView({block:"nearest"})})}selectedItems(){return this.selected}isSelected(e){return this.selected.some(t=>t[this.optionValue]===e[this.optionValue])}_selectItem(e,t){t.stopPropagation();let o;this.multiple?o=this.isSelected(e)?this.selected.filter(r=>r[this.optionValue]!==e[this.optionValue]):[...this.selected,e]:(o=[e],this.isOpen=!1,this.filterable&&(this.inputValue="")),this.setSelected(o)}setSelected(e){this.selected=e,this.dispatchEvent(new CustomEvent("selected",{detail:{selected:e},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("change",{detail:{value:e},bubbles:!0,composed:!0}))}_renderTagList(){return u`
438
- <div class="combobox__tags">
439
- ${this.selected.map(e=>u`
440
- <logosphere-badge
441
- variant="default"
442
- text=${String(e[this.optionLabel])}
443
- ?closeable=${!this.readOnly}
444
- @close=${t=>this._removeTag(e,t)}
445
- ></logosphere-badge>
446
- `)}
447
- </div>
448
- `}_renderTriggerContent(){return this.filterable&&!this.multiple?u`
449
- <input
450
- class="combobox__filter-input"
451
- type="text"
452
- .value=${this._filterDisplayValue}
453
- placeholder=${this.placeholder}
454
- ?disabled=${this.readOnly||this.disabled}
455
- @focus=${this._onFilterFocus}
456
- @input=${this._onFilterInput}
457
- @keydown=${this._handleKeydown}
458
- @click=${this._stopPropagation}
459
- />
460
- ${this.clearable&&!this.readOnly&&this.selected.length?u`
461
- <button class="combobox__clear" @click=${this._clearSelection} aria-label="Clear">
462
- <ui-icon name="uil-times" size="14"></ui-icon>
463
- </button>
464
- `:v}
465
- `:this.multiple&&this.selected.length?this._renderTagList():!this.multiple&&this.selected.length?u`
466
- <span class="combobox__single-value">${this.selected[0][this.optionLabel]}</span>
467
- ${this.clearable&&!this.readOnly?u`
468
- <button class="combobox__clear" @click=${this._clearSelection} aria-label="Clear">
469
- <ui-icon name="uil-times" size="14"></ui-icon>
470
- </button>
471
- `:v}
472
- `:u`<span class="combobox__placeholder">${this.placeholder}</span>`}_renderDropdown(){return u`
473
- <div data-combobox-popper popover="manual" class="combobox__dropdown">
474
- ${this.filterable&&this.multiple?u`
475
- <input
476
- class="combobox__search"
477
- type="text"
478
- placeholder=${this.placeholder}
479
- .value=${this.inputValue}
480
- @input=${this._onFilterInput}
481
- @keydown=${this._handleKeydown}
482
- @click=${this._stopPropagation}
483
- />
484
- `:v}
485
-
486
- <div class="combobox__list">
487
- ${this._filteredItems.length===0?u`<div class="combobox__empty">${this.emptyMessage}</div>`:this._filteredItems.map((e,t)=>u`
488
- <div
489
- class="combobox__item
490
- ${!this.multiple&&this.isSelected(e)?"combobox__item--selected":""}
491
- ${t===this.focusedIndex?"combobox__item--focused":""}"
492
- @click=${o=>this._selectItem(e,o)}
493
- @mouseenter=${()=>{this.focusedIndex=t}}
494
- >
495
- ${this.multiple?u`
496
- <logosphere-checkbox
497
- .checked=${this.isSelected(e)}
498
- .value=${e[this.optionValue]}
499
- @click=${this._stopPropagation}
500
- ></logosphere-checkbox>
501
- `:v}
502
- ${e[this.optionLabel]}
503
- </div>
504
- `)}
505
- </div>
506
- </div>
507
- `}_getPopperModifiers(){return[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:8}},{name:"flip",options:{padding:8,fallbackPlacements:["top-start","right-start","left-start","bottom-end","top-end"]}}]}_getPopperReferenceElement(){var t,o;const e=(o=(t=this._formFieldElement)==null?void 0:t.shadowRoot)==null?void 0:o.querySelector(".formfield__container");return e!=null?e:this._referenceElement}_updatePopper(){const e=this._getPopperReferenceElement(),t=this._dropdownElement;if(!this.isOpen||!e||!t||!this.isConnected)return;const o=Math.round(e.getBoundingClientRect().width);if(t.style.width=`${o}px`,this._popperInstance){this._popperInstance.setOptions({placement:"bottom-start",strategy:"fixed",modifiers:this._getPopperModifiers()}),this._popperInstance.update();return}this._popperInstance=Yt(e,t,{placement:"bottom-start",strategy:"fixed",modifiers:this._getPopperModifiers()})}_destroyPopper(){this._popperInstance&&(this._popperInstance.destroy(),this._popperInstance=void 0)}_showPopover(){var t;const e=this._dropdownElement;(t=e==null?void 0:e.showPopover)==null||t.call(e)}_hidePopover(){var t;const e=this._dropdownElement;try{(t=e==null?void 0:e.hidePopover)==null||t.call(e)}catch(o){}}render(){const e=["combobox__trigger",`combobox__trigger--${this.size}`,this.disabled?"combobox__trigger--disabled":"",this.readOnly?"combobox__trigger--readonly":"",!this.readOnly&&!this.disabled&&this.isOpen?"combobox__trigger--open":"",this.clearable?"":"combobox__trigger--not-clearable"].filter(Boolean).join(" ");return u`
508
- <div class="combobox">
509
- <logosphere-formfield
510
- .label=${this.label}
511
- .helper=${this.helper}
512
- .error=${this.error}
513
- cursor="pointer"
514
- .required=${this.required}
515
- .disabled=${this.disabled}
516
- .readonly=${this.readOnly}
517
- .size=${this.size}
518
- .variant=${this.variant}
519
- @click=${this._onFieldClick}
520
- >
521
- <div class="combobox__wrapper">
522
- <div
523
- class="${e}"
524
- tabindex="${this.readOnly||this.filterable||this.disabled?-1:0}"
525
- @click=${this._onTriggerClick}
526
- @keydown=${this.filterable?v:this._handleKeydown}
527
- >
528
- ${this._renderTriggerContent()}
529
- </div>
530
-
531
- ${this._renderDropdown()}
532
- </div>
533
- <span
534
- class="combobox__chevron ${this.isOpen?"combobox__chevron--open":""}"
535
- @click=${this._onChevronClick}
536
- >
537
- <ui-icon name="uil-angle-down" size="16"></ui-icon>
538
- </span>
539
- </logosphere-formfield>
540
- </div>
541
- `}},n.Combobox.styles=[R`
542
- ${H(Qs)}
543
- `],F([d({type:String})],n.Combobox.prototype,"label",2),F([d({type:String})],n.Combobox.prototype,"helper",2),F([d({type:String})],n.Combobox.prototype,"error",2),F([d({type:String})],n.Combobox.prototype,"placeholder",2),F([d({type:Boolean})],n.Combobox.prototype,"required",2),F([d({type:Boolean})],n.Combobox.prototype,"disabled",2),F([d({type:Boolean})],n.Combobox.prototype,"readOnly",2),F([d({type:String})],n.Combobox.prototype,"variant",2),F([d({type:Boolean})],n.Combobox.prototype,"multiple",2),F([d({type:Boolean})],n.Combobox.prototype,"filterable",2),F([d({type:String})],n.Combobox.prototype,"optionLabel",2),F([d({type:String})],n.Combobox.prototype,"optionValue",2),F([d({type:String})],n.Combobox.prototype,"emptyMessage",2),F([d({type:Array})],n.Combobox.prototype,"items",2),F([d({type:String})],n.Combobox.prototype,"size",2),F([d({type:Boolean})],n.Combobox.prototype,"clearable",2),F([y()],n.Combobox.prototype,"selected",2),F([y()],n.Combobox.prototype,"inputValue",2),F([y()],n.Combobox.prototype,"isOpen",2),F([y()],n.Combobox.prototype,"focusedIndex",2),F([Z(".combobox__wrapper")],n.Combobox.prototype,"_referenceElement",2),F([Z("logosphere-formfield")],n.Combobox.prototype,"_formFieldElement",2),F([Z("[data-combobox-popper]")],n.Combobox.prototype,"_dropdownElement",2),n.Combobox=F([V("logosphere-combobox")],n.Combobox);const oa=":host{display:block;z-index:9999}.chatbot{font-family:var(--font-family-base)}.chatbot__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#0003;z-index:var(--z-index-modal-backdrop)}.chatbot__launcher{position:fixed;z-index:var(--z-index-modal);display:flex;align-items:center;gap:var(--spacing-4);padding-left:var(--spacing-4);padding-right:var(--spacing-4);height:66px;color:#fff;border-radius:var(--radius-xl);cursor:pointer;box-shadow:var(--shadow-md);background-color:var(--color-body-bg);overflow:hidden;transition:box-shadow var(--transition-speed-fast) var(--transition-timing)}.chatbot__launcher:hover{box-shadow:var(--shadow-md)}.chatbot__launcher--draggable{cursor:move}.chatbot__launcher--hidden{visibility:hidden;width:72px;height:66px;justify-content:center;padding:0}.chatbot__launcher-icon{width:40px;height:34px;flex-shrink:0}.chatbot__launcher-text{display:flex;flex-direction:column}.chatbot__launcher-title{font-weight:var(--font-weight-semibold);font-size:var(--font-size-xl);margin:0;line-height:24px;white-space:nowrap;color:var(--color-body-color)}.chatbot__launcher-subtitle{font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);margin:0;line-height:20px;white-space:nowrap;color:var(--color-tertiary)}.chatbot__window{position:fixed;z-index:var(--z-index-modal);display:flex;flex-direction:column;box-shadow:var(--shadow-xl);border-radius:var(--radius-md);overflow:hidden;background-color:var(--color-body-bg)}.chatbot__window--hidden{display:none}.chatbot__window--fullscreen{left:50px;right:50px;top:80px;bottom:80px;width:auto;height:auto}.chatbot__resize-top{position:absolute;top:0;left:0;right:0;height:8px;cursor:ns-resize;z-index:50;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__resize-top:hover{background-color:#0000000d}.chatbot__resize-side{position:absolute;top:0;bottom:0;width:8px;cursor:ew-resize;z-index:50;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__resize-side:hover{background-color:#0000000d}.chatbot__resize-side--left{left:0}.chatbot__resize-side--right{right:0}.chatbot__resize-corner{position:absolute;top:0;width:16px;height:16px;z-index:50;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__resize-corner:hover{background-color:#0000001a}.chatbot__resize-corner--nwse{left:0;cursor:nwse-resize}.chatbot__resize-corner--nesw{right:0;cursor:nesw-resize}.chatbot__header{height:74px;display:flex;align-items:center;justify-content:space-between;padding-left:var(--spacing-5);padding-right:var(--spacing-4);gap:var(--spacing-4);flex-shrink:0;background-color:var(--color-body-bg);border-bottom:1px solid var(--color-border)}.chatbot__header-info{display:flex;align-items:center;gap:var(--spacing-4)}.chatbot__header-logo{width:50px;height:41px}.chatbot__header-title{font-weight:var(--font-weight-semibold);font-size:var(--font-size-xl);margin:0;line-height:24px;color:var(--color-body-text)}.chatbot__header-subtitle{font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);margin:0;line-height:20px;color:var(--color-tertiary)}.chatbot__header-actions{display:flex;align-items:center;gap:var(--spacing-2)}.chatbot__body{flex:1;display:flex;flex-direction:column;background-color:var(--color-body-bg);position:relative;overflow:hidden}.chatbot__product{padding:var(--spacing-3);padding-bottom:0;flex-shrink:0;margin:0 var(--spacing-3)}.chatbot__messages{flex:1;display:flex;flex-direction:column;gap:var(--spacing-3);margin-top:var(--spacing-4);padding:var(--spacing-4);overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}.chatbot__messages::-webkit-scrollbar{display:none}.chatbot__messages-wrapper{position:relative;flex:1;display:flex;flex-direction:column;overflow:hidden}.chatbot__scroll-down{position:absolute;bottom:8px;left:50%;transform:translate(-50%);width:36px;height:36px;border-radius:var(--radius-full);background-color:var(--color-body-bg);border:1px solid var(--color-border);box-shadow:var(--shadow-md);cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--color-body-text);z-index:10;transition:background-color var(--transition-speed-fast) var(--transition-timing),box-shadow var(--transition-speed-fast) var(--transition-timing);padding:0}.chatbot__scroll-down:hover{background-color:var(--color-light);box-shadow:var(--shadow-lg)}.chatbot__message{display:flex}.chatbot__message--user{justify-content:flex-end}.chatbot__message--assistant{display:block}.chatbot__message--system{justify-content:flex-start}.chatbot__bubble{position:relative;color:var(--color-body-text);max-width:85%;border-radius:var(--radius-md);padding:var(--spacing-4);font-size:var(--font-size-sm);line-height:20px;font-weight:var(--font-weight-medium)}.chatbot__bubble--user{background-color:var(--color-primary);color:#fff;border-bottom-right-radius:0;border-top-right-radius:var(--radius-xl);border-top-left-radius:var(--radius-xl);border-bottom-left-radius:var(--radius-xl)}.chatbot__bubble--user a{color:#ffffffe6}.chatbot__bubble--assistant,.chatbot__bubble--system{background-color:var(--color-light);border-bottom-left-radius:0;border-top-right-radius:var(--radius-xl);border-top-left-radius:var(--radius-xl);border-bottom-right-radius:var(--radius-xl)}.chatbot__message-content p{margin:0}.chatbot__message-content ol{list-style-type:decimal;margin:0;padding-left:var(--spacing-5)}.chatbot__message-content ul{list-style-type:disc;margin:0;padding-left:var(--spacing-5)}.chatbot__message-content li>ol,.chatbot__message-content li>ul{margin-top:var(--spacing-1);margin-bottom:var(--spacing-1)}.chatbot__message-content ol ol{list-style-type:lower-alpha}.chatbot__message-content ol ol ol{list-style-type:lower-roman}.chatbot__message-content ul ul{list-style-type:circle}.chatbot__message-content ul ul ul{list-style-type:square}.chatbot__message-content li{padding-left:var(--spacing-1)}.chatbot__message-content a{color:var(--color-primary);text-decoration:underline;transition:color var(--transition-speed-fast) var(--transition-timing)}.chatbot__message-content a:hover{color:var(--color-primary-hover)}.chatbot__feedback{display:flex;align-items:center;gap:var(--spacing-2);padding-top:var(--spacing-2)}.chatbot__typing-wrapper{display:flex;justify-content:flex-start}.chatbot__typing{background-color:var(--color-light);padding:var(--spacing-3);border-radius:var(--radius-xl);border-bottom-left-radius:0;display:inline-flex;align-items:center;gap:2px}.chatbot__typing-dot{display:inline-block;width:6px;height:6px;background-color:var(--color-gray-300);border-radius:var(--radius-full);animation:chatbot-typing 1.4s infinite ease-in-out both;margin:0 2px}.chatbot__typing-dot:nth-child(1){animation-delay:-.32s}.chatbot__typing-dot:nth-child(2){animation-delay:-.16s}@keyframes chatbot-typing{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.chatbot__input-area{padding:var(--spacing-4);padding-top:var(--spacing-2);padding-bottom:var(--spacing-1);background-color:var(--color-body-bg)}.chatbot__input-wrapper{position:relative;display:flex;align-items:center;gap:var(--spacing-2);background-color:var(--color-light);border-radius:var(--radius-md);padding:var(--spacing-2);border:1px solid transparent;transition:background-color var(--transition-speed-fast) var(--transition-timing),border-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__input-wrapper:focus-within{background-color:var(--color-body-bg);border-color:var(--color-border)}.chatbot__input{flex:1;background:transparent;border:none;outline:none;font-family:var(--font-family-base);font-size:var(--font-size-sm);color:var(--color-body-text)}.chatbot__input::placeholder{color:var(--color-tertiary)}.chatbot__input:disabled{opacity:.5;cursor:not-allowed}.chatbot__footer{display:flex;align-items:center;justify-content:center;padding-bottom:var(--spacing-2)}.chatbot__footer-text{margin:0;padding:0;color:var(--color-secondary);font-size:var(--font-size-xs);font-family:var(--font-family-base)}.chatbot__product-selector{padding:var(--spacing-3) var(--spacing-3) 0;flex-shrink:0}.chatbot__product-input{display:block;width:100%;height:24px;padding-left:var(--spacing-1);border:1px solid var(--color-border);border-radius:var(--radius-md);background:transparent;color:var(--color-body-color);font-size:var(--font-size-md);outline:none}";var ra=Object.defineProperty,ia=Object.getOwnPropertyDescriptor,B=(i,e,t,o)=>{for(var r=o>1?void 0:o?ia(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&ra(e,t,r),r};n.LogosphereChatBot=class extends D{constructor(){super(...arguments),this.returnUri="",this.questionPrompt="",this.minimizedIconOnly=!1,this.draggable=!1,this.resizable=!1,this.products=[],this.openInitially=!1,this.showFeedbackButtons=!1,this.open=!1,this.fullscreen=!1,this.messages=[],this.isLoading=!1,this.inputText="",this.selectedProductId="",this.windowWidth=440,this.windowHeight=Math.min(700,window.innerHeight-40),this.position={right:20,bottom:20},this.isDragging=!1,this.screenWidth=window.innerWidth,this.userAtBottom=!0,this.showScrollDown=!1,this.dragStartPos={x:0,y:0},this.initialPosition={right:0,bottom:0},this.isResizing=!1,this.resizeDirection="horizontal",this.resizeStartWidth=0,this.resizeStartHeight=0,this.onWindowResize=()=>{this.screenWidth=window.innerWidth;const e=window.innerHeight-40;this.windowHeight>e&&(this.windowHeight=e)},this.onToggle=()=>{this.open=!this.open,this.open&&this.scrollToBottom(!0)},this.onClose=()=>{this.open=!1,this.fullscreen=!1},this.onToggleFullscreen=()=>{this.fullscreen=!this.fullscreen},this.onMouseMove=e=>{var t;if(this.isDragging){const o=this.dragStartPos.x-e.clientX,r=this.dragStartPos.y-e.clientY,s=(t=this.shadowRoot)==null?void 0:t.querySelector(".chatbot__launcher"),a=s==null?void 0:s.getBoundingClientRect(),l=(a==null?void 0:a.width)||72,c=(a==null?void 0:a.height)||66;this.position={right:Math.max(0,Math.min(window.innerWidth-l,this.initialPosition.right+o)),bottom:Math.max(0,Math.min(window.innerHeight-c,this.initialPosition.bottom+r))}}else if(this.isResizing){const o=this.dragStartPos.x-e.clientX,r=this.dragStartPos.y-e.clientY;if(this.resizeDirection==="horizontal"||this.resizeDirection==="both"){const s=this.position.right<this.screenWidth/2;this.windowWidth=Math.max(300,this.resizeStartWidth+(s?o:-o))}(this.resizeDirection==="vertical"||this.resizeDirection==="both")&&(this.windowHeight=Math.max(400,this.resizeStartHeight+r))}},this.onMouseUp=e=>{this.isDragging?(this.isDragging=!1,window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),Math.hypot(e.clientX-this.dragStartPos.x,e.clientY-this.dragStartPos.y)<5&&this.onToggle()):this.isResizing&&(this.isResizing=!1,window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp))},this.handleKeyDown=e=>{e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),this.sendMessage())},this.onInput=e=>{const t=e.target;this.inputText=t?t.value:e.detail},this.onChatScroll=()=>{const e=this.isNearBottom();this.userAtBottom=e,e&&(this.showScrollDown=!1)},this.onScrollToBottomClick=()=>{this.scrollToBottom(!0)},this.onRate=async(e,t)=>{if(!(!e.eventId||e.rating===t))try{await this.rateMessage(e.eventId,t),this.messages=this.messages.map(o=>o===e?Ee(_e({},o),{rating:t}):o)}catch(o){}},this.onCopyMessage=e=>{navigator.clipboard.writeText(e)}}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.onWindowResize)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp)}async firstUpdated(){this.selectedProductId=this._resolveInitialProduct(),this.open=this.openInitially,this.open&&await this.initConversation()}updated(e){e.has("products")&&this.handleProductUpdate(),e.has("messages")&&this.scrollToBottom(),e.has("open")&&this.open&&!this.conversationId&&this.initConversation()}_resolveInitialProduct(){if(!this.products.length)return"";const e=this.products.find(t=>t.selected);return e?e.id:this.products.length===1?this.products[0].id:""}handleProductUpdate(){if(!this.products.length)return;const e=this.products.find(o=>o.selected),t=this.products.some(o=>o.id===this.selectedProductId);e&&e.id!==this.selectedProductId?(this.selectedProductId=e.id,this.messages=[],this.conversationId=void 0,this.open&&this.initConversation()):t||(this.selectedProductId=this._resolveInitialProduct(),this.messages=[],this.conversationId=void 0,this.open&&this.initConversation()),requestAnimationFrame(()=>this.updateComboboxItems())}updateComboboxItems(){var r,s,a;const e=this.productEl;if(!e||((r=this.products)==null?void 0:r.length)<=1)return;const t=this.products.map(l=>({value:l.id,label:l.name}));if(e.items=t,((a=(((s=e.selectedItems)==null?void 0:s.call(e))||[])[0])==null?void 0:a.value)!==this.selectedProductId){const l=t.find(c=>c.value===this.selectedProductId);e.setSelected&&e.setSelected(l?[l]:[])}}async onProductChange(e){var o,r,s;const t=(s=(r=(o=e.detail)==null?void 0:o.selected)==null?void 0:r[0])==null?void 0:s.value;t&&t!==this.selectedProductId&&(this.selectedProductId=t)}onMouseDown(e){this.draggable&&(e.preventDefault(),this.isDragging=!0,this.dragStartPos={x:e.clientX,y:e.clientY},this.initialPosition=_e({},this.position),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp))}startResize(e,t){this.resizable&&(e.preventDefault(),e.stopPropagation(),this.isResizing=!0,this.resizeDirection=t,this.dragStartPos={x:e.clientX,y:e.clientY},this.resizeStartWidth=this.windowWidth,this.resizeStartHeight=this.windowHeight,window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp))}async ensureToken(e=!1){var s;const t="logosphere_chatbot_token";if(e&&(this.assertionToken=void 0,localStorage.removeItem(t)),!e){const a=localStorage.getItem(t);if(a){this.assertionToken=a;return}}const r=await(await fetch(`${this.returnUri}/api/chat/start`)).json();if(!r.Success||!((s=r.Data)!=null&&s.Token))throw new Error("Token alınamadı");this.assertionToken=r.Data.Token,localStorage.setItem(t,this.assertionToken)}async postChat(e){await this.ensureToken();const t=`${this.returnUri}/api/chat/completions`,o=()=>fetch(t,{method:"POST",headers:{"Content-Type":"application/json",client_assertion:this.assertionToken,client_assertion_type:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"},body:JSON.stringify(e)});let r=await o();if(r.status===401&&(await this.ensureToken(!0),r=await o()),!r.ok)throw new Error(`HTTP ${r.status}`);return r.json()}async initConversation(){var e,t,o;if(!this.isLoading){this.isLoading=!0;try{await this.ensureToken();const r=await this.postChat({ChatCompletionType:"NewConversation",Context:this.selectedProductId,QuestionPrompt:this.questionPrompt});this.conversationId=r.Data.ConversationId;const s=(o=(t=(e=r.Data.Choices)==null?void 0:e[0])==null?void 0:t.Message)==null?void 0:o.Content;s&&this.addMessage(s,"assistant",void 0,!0)}catch(r){this.addMessage("Bir hata oluştu, lütfen tekrar deneyiniz.","system")}finally{this.isLoading=!1}}}async sendMessage(){var t,o,r,s,a;const e=this.inputText.trim();if(!(!e||!this.conversationId||this.isLoading)){if(!this.selectedProductId){this.addMessage("Lütfen önce bir ürün seçiniz.","system");return}this.addMessage(e,"user"),this.inputText="",this.scrollToBottom(),this.isLoading=!0;try{const l=await this.postChat({ChatCompletionType:"ConversationUpdate",Content:e,Context:this.selectedProductId,ConversationId:this.conversationId,QuestionPrompt:this.questionPrompt}),c=(s=(r=(o=(t=l.Data)==null?void 0:t.Choices)==null?void 0:o[0])==null?void 0:r.Message)==null?void 0:s.Content,p=(a=l.Data)==null?void 0:a.EventId;this.addMessage(c||"Cevap alınamadı.","assistant",p)}catch(l){this.addMessage("Bağlantı hatası.","system")}finally{this.isLoading=!1}}}addMessage(e,t,o,r=!1){this.messages=[...this.messages,{content:e,role:t,timestamp:Date.now(),eventId:o,isWelcome:r}]}isNearBottom(e=50){const t=this.chatContainer;return t?t.scrollHeight-t.scrollTop-t.clientHeight<=e:!0}scrollToBottom(e=!1){if(!e&&!this.userAtBottom){this.showScrollDown=!0;return}setTimeout(()=>{this.chatContainer&&(this.chatContainer.scrollTop=this.chatContainer.scrollHeight,this.showScrollDown=!1,this.userAtBottom=!0)},0)}async rateMessage(e,t,o=null){await this.ensureToken();const r=`${this.returnUri}/api/chat/completion/rate`;await fetch(r,{method:"POST",headers:{"Content-Type":"application/json",client_assertion:this.assertionToken,client_assertion_type:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"},body:JSON.stringify({EventId:e,Rate:t,Comment:o})})}formatContent(e){if(!e)return"";const o=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").split(`
544
- `);let r="";const s=[];let a=!1;const l=()=>{a&&(r+="</li>",a=!1)},c=h=>{for(;s.length>0&&s[s.length-1].indent>=h;)l(),r+=`</${s.pop().type}>`,s.length>0&&(a=!0)},p=()=>c(-1);for(const h of o){const f=h.match(/^(\s*)\d+\.\s+(.*)/),g=h.match(/^(\s*)[-*]\s+(.*)/);if(f||g){const b=(f?f[1]:g[1]).length,w=f?"ol":"ul",C=f?f[2]:g[2];if(s.length===0)r+=`<${w}>`,s.push({type:w,indent:b});else{const m=s[s.length-1];b>m.indent?(r+=`<${w}>`,s.push({type:w,indent:b})):b===m.indent?l():(c(b+1),s.length>0&&s[s.length-1].indent===b?l():(p(),r+=`<${w}>`,s.push({type:w,indent:b})))}r+=`<li>${C}`,a=!0}else h.trim()===""?s.length===0&&(r+="<br>"):(p(),r+=`<p>${h}</p>`)}return p(),r.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}render(){const e=this.position.right<this.screenWidth/2;return u`
711
+ `}},n.TimePicker.styles=[H`${I(is)}`],G([d({type:String})],n.TimePicker.prototype,"value",2),G([d({type:String})],n.TimePicker.prototype,"label",2),G([d({type:String})],n.TimePicker.prototype,"helper",2),G([d({type:String})],n.TimePicker.prototype,"error",2),G([d({type:String})],n.TimePicker.prototype,"placeholder",2),G([d({type:Boolean})],n.TimePicker.prototype,"required",2),G([d({type:Boolean})],n.TimePicker.prototype,"disabled",2),G([d({type:Boolean})],n.TimePicker.prototype,"readonly",2),G([d({type:String})],n.TimePicker.prototype,"size",2),G([d({type:String})],n.TimePicker.prototype,"variant",2),G([d({attribute:!1})],n.TimePicker.prototype,"onChange",2),G([y()],n.TimePicker.prototype,"_isOpen",2),G([y()],n.TimePicker.prototype,"_hour",2),G([y()],n.TimePicker.prototype,"_minute",2),G([Z(".timepicker__reference")],n.TimePicker.prototype,"_referenceEl",2),G([Z("[data-timepicker-popup]")],n.TimePicker.prototype,"_popupEl",2),n.TimePicker=G([V("logosphere-timepicker")],n.TimePicker);const ns=":host{display:block;z-index:9999}.chatbot{font-family:var(--font-family-base)}.chatbot__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#0003;z-index:var(--z-index-modal-backdrop)}.chatbot__launcher{position:fixed;z-index:var(--z-index-modal);display:flex;align-items:center;gap:var(--spacing-4);padding-left:var(--spacing-4);padding-right:var(--spacing-4);height:66px;color:#fff;border-radius:var(--radius-xl);cursor:pointer;box-shadow:var(--shadow-md);background-color:var(--color-body-bg);overflow:hidden;transition:box-shadow var(--transition-speed-fast) var(--transition-timing)}.chatbot__launcher:hover{box-shadow:var(--shadow-md)}.chatbot__launcher--draggable{cursor:move}.chatbot__launcher--hidden{visibility:hidden;width:72px;height:66px;justify-content:center;padding:0}.chatbot__launcher-icon{width:40px;height:34px;flex-shrink:0}.chatbot__launcher-text{display:flex;flex-direction:column}.chatbot__launcher-title{font-weight:var(--font-weight-semibold);font-size:var(--font-size-xl);margin:0;line-height:24px;white-space:nowrap;color:var(--color-body-color)}.chatbot__launcher-subtitle{font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);margin:0;line-height:20px;white-space:nowrap;color:var(--color-tertiary)}.chatbot__window{position:fixed;z-index:var(--z-index-modal);display:flex;flex-direction:column;box-shadow:var(--shadow-xl);border-radius:var(--radius-md);overflow:hidden;background-color:var(--color-body-bg)}.chatbot__window--hidden{display:none}.chatbot__window--fullscreen{left:50px;right:50px;top:80px;bottom:80px;width:auto;height:auto}.chatbot__resize-top{position:absolute;top:0;left:0;right:0;height:8px;cursor:ns-resize;z-index:50;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__resize-top:hover{background-color:#0000000d}.chatbot__resize-side{position:absolute;top:0;bottom:0;width:8px;cursor:ew-resize;z-index:50;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__resize-side:hover{background-color:#0000000d}.chatbot__resize-side--left{left:0}.chatbot__resize-side--right{right:0}.chatbot__resize-corner{position:absolute;top:0;width:16px;height:16px;z-index:50;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__resize-corner:hover{background-color:#0000001a}.chatbot__resize-corner--nwse{left:0;cursor:nwse-resize}.chatbot__resize-corner--nesw{right:0;cursor:nesw-resize}.chatbot__header{height:74px;display:flex;align-items:center;justify-content:space-between;padding-left:var(--spacing-5);padding-right:var(--spacing-4);gap:var(--spacing-4);flex-shrink:0;background-color:var(--color-body-bg);border-bottom:1px solid var(--color-border)}.chatbot__header-info{display:flex;align-items:center;gap:var(--spacing-4)}.chatbot__header-logo{width:50px;height:41px}.chatbot__header-title{font-weight:var(--font-weight-semibold);font-size:var(--font-size-xl);margin:0;line-height:24px;color:var(--color-body-text)}.chatbot__header-subtitle{font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);margin:0;line-height:20px;color:var(--color-tertiary)}.chatbot__header-actions{display:flex;align-items:center;gap:var(--spacing-2)}.chatbot__body{flex:1;display:flex;flex-direction:column;background-color:var(--color-body-bg);position:relative;overflow:hidden}.chatbot__product{padding:var(--spacing-3);padding-bottom:0;flex-shrink:0;margin:0 var(--spacing-3)}.chatbot__messages{flex:1;display:flex;flex-direction:column;gap:var(--spacing-3);margin-top:var(--spacing-4);padding:var(--spacing-4);overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}.chatbot__messages::-webkit-scrollbar{display:none}.chatbot__messages-wrapper{position:relative;flex:1;display:flex;flex-direction:column;overflow:hidden}.chatbot__scroll-down{position:absolute;bottom:8px;left:50%;transform:translate(-50%);width:36px;height:36px;border-radius:var(--radius-full);background-color:var(--color-body-bg);border:1px solid var(--color-border);box-shadow:var(--shadow-md);cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--color-body-text);z-index:10;transition:background-color var(--transition-speed-fast) var(--transition-timing),box-shadow var(--transition-speed-fast) var(--transition-timing);padding:0}.chatbot__scroll-down:hover{background-color:var(--color-light);box-shadow:var(--shadow-lg)}.chatbot__message{display:flex}.chatbot__message--user{justify-content:flex-end}.chatbot__message--assistant{display:block}.chatbot__message--system{justify-content:flex-start}.chatbot__bubble{position:relative;color:var(--color-body-text);max-width:85%;border-radius:var(--radius-md);padding:var(--spacing-4);font-size:var(--font-size-sm);line-height:20px;font-weight:var(--font-weight-medium)}.chatbot__bubble--user{background-color:var(--color-primary);color:#fff;border-bottom-right-radius:0;border-top-right-radius:var(--radius-xl);border-top-left-radius:var(--radius-xl);border-bottom-left-radius:var(--radius-xl)}.chatbot__bubble--user a{color:#ffffffe6}.chatbot__bubble--assistant,.chatbot__bubble--system{background-color:var(--color-light);border-bottom-left-radius:0;border-top-right-radius:var(--radius-xl);border-top-left-radius:var(--radius-xl);border-bottom-right-radius:var(--radius-xl)}.chatbot__message-content p{margin:0}.chatbot__message-content ol{list-style-type:decimal;margin:0;padding-left:var(--spacing-5)}.chatbot__message-content ul{list-style-type:disc;margin:0;padding-left:var(--spacing-5)}.chatbot__message-content li>ol,.chatbot__message-content li>ul{margin-top:var(--spacing-1);margin-bottom:var(--spacing-1)}.chatbot__message-content ol ol{list-style-type:lower-alpha}.chatbot__message-content ol ol ol{list-style-type:lower-roman}.chatbot__message-content ul ul{list-style-type:circle}.chatbot__message-content ul ul ul{list-style-type:square}.chatbot__message-content li{padding-left:var(--spacing-1)}.chatbot__message-content a{color:var(--color-primary);text-decoration:underline;transition:color var(--transition-speed-fast) var(--transition-timing)}.chatbot__message-content a:hover{color:var(--color-primary-hover)}.chatbot__feedback{display:flex;align-items:center;gap:var(--spacing-2);padding-top:var(--spacing-2)}.chatbot__typing-wrapper{display:flex;justify-content:flex-start}.chatbot__typing{background-color:var(--color-light);padding:var(--spacing-3);border-radius:var(--radius-xl);border-bottom-left-radius:0;display:inline-flex;align-items:center;gap:2px}.chatbot__typing-dot{display:inline-block;width:6px;height:6px;background-color:var(--color-gray-300);border-radius:var(--radius-full);animation:chatbot-typing 1.4s infinite ease-in-out both;margin:0 2px}.chatbot__typing-dot:nth-child(1){animation-delay:-.32s}.chatbot__typing-dot:nth-child(2){animation-delay:-.16s}@keyframes chatbot-typing{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.chatbot__input-area{padding:var(--spacing-4);padding-top:var(--spacing-2);padding-bottom:var(--spacing-1);background-color:var(--color-body-bg)}.chatbot__input-wrapper{position:relative;display:flex;align-items:center;gap:var(--spacing-2);background-color:var(--color-light);border-radius:var(--radius-md);padding:var(--spacing-2);border:1px solid transparent;transition:background-color var(--transition-speed-fast) var(--transition-timing),border-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__input-wrapper:focus-within{background-color:var(--color-body-bg);border-color:var(--color-border)}.chatbot__input{flex:1;background:transparent;border:none;outline:none;font-family:var(--font-family-base);font-size:var(--font-size-sm);color:var(--color-body-text)}.chatbot__input::placeholder{color:var(--color-tertiary)}.chatbot__input:disabled{opacity:.5;cursor:not-allowed}.chatbot__footer{display:flex;align-items:center;justify-content:center;padding-bottom:var(--spacing-2)}.chatbot__footer-text{margin:0;padding:0;color:var(--color-secondary);font-size:var(--font-size-xs);font-family:var(--font-family-base)}.chatbot__product-selector{padding:var(--spacing-3) var(--spacing-3) 0;flex-shrink:0}.chatbot__product-input{display:block;width:100%;height:24px;padding-left:var(--spacing-1);border:1px solid var(--color-border);border-radius:var(--radius-md);background:transparent;color:var(--color-body-color);font-size:var(--font-size-md);outline:none}";var ls=Object.defineProperty,cs=Object.getOwnPropertyDescriptor,B=(i,e,t,o)=>{for(var r=o>1?void 0:o?cs(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&ls(e,t,r),r};n.LogosphereChatBot=class extends P{constructor(){super(...arguments),this.returnUri="",this.questionPrompt="",this.minimizedIconOnly=!1,this.draggable=!1,this.resizable=!1,this.products=[],this.openInitially=!1,this.showFeedbackButtons=!1,this.open=!1,this.fullscreen=!1,this.messages=[],this.isLoading=!1,this.inputText="",this.selectedProductId="",this.windowWidth=440,this.windowHeight=700,this.position={right:20,bottom:20},this.isDragging=!1,this.screenWidth=1024,this.userAtBottom=!0,this.showScrollDown=!1,this.dragStartPos={x:0,y:0},this.initialPosition={right:0,bottom:0},this.isResizing=!1,this.resizeDirection="horizontal",this.resizeStartWidth=0,this.resizeStartHeight=0,this.onWindowResize=()=>{this.screenWidth=window.innerWidth;const e=window.innerHeight-40;this.windowHeight>e&&(this.windowHeight=e)},this.onToggle=()=>{this.open=!this.open,this.open&&this.scrollToBottom(!0)},this.onClose=()=>{this.open=!1,this.fullscreen=!1},this.onToggleFullscreen=()=>{this.fullscreen=!this.fullscreen},this.onMouseMove=e=>{var t;if(this.isDragging){const o=this.dragStartPos.x-e.clientX,r=this.dragStartPos.y-e.clientY,a=(t=this.shadowRoot)==null?void 0:t.querySelector(".chatbot__launcher"),s=a==null?void 0:a.getBoundingClientRect(),l=(s==null?void 0:s.width)||72,c=(s==null?void 0:s.height)||66;this.position={right:Math.max(0,Math.min(window.innerWidth-l,this.initialPosition.right+o)),bottom:Math.max(0,Math.min(window.innerHeight-c,this.initialPosition.bottom+r))}}else if(this.isResizing){const o=this.dragStartPos.x-e.clientX,r=this.dragStartPos.y-e.clientY;if(this.resizeDirection==="horizontal"||this.resizeDirection==="both"){const a=this.position.right<this.screenWidth/2;this.windowWidth=Math.max(300,this.resizeStartWidth+(a?o:-o))}(this.resizeDirection==="vertical"||this.resizeDirection==="both")&&(this.windowHeight=Math.max(400,this.resizeStartHeight+r))}},this.onMouseUp=e=>{this.isDragging?(this.isDragging=!1,window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),Math.hypot(e.clientX-this.dragStartPos.x,e.clientY-this.dragStartPos.y)<5&&this.onToggle()):this.isResizing&&(this.isResizing=!1,window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp))},this.handleKeyDown=e=>{e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),this.sendMessage())},this.onInput=e=>{const t=e.target;this.inputText=t?t.value:e.detail},this.onChatScroll=()=>{const e=this.isNearBottom();this.userAtBottom=e,e&&(this.showScrollDown=!1)},this.onScrollToBottomClick=()=>{this.scrollToBottom(!0)},this.onRate=async(e,t)=>{if(!(!e.eventId||e.rating===t))try{await this.rateMessage(e.eventId,t),this.messages=this.messages.map(o=>o===e?Pe(we({},o),{rating:t}):o)}catch(o){}},this.onCopyMessage=e=>{navigator.clipboard.writeText(e)}}connectedCallback(){super.connectedCallback(),this.screenWidth=window.innerWidth,this.windowHeight=Math.min(700,window.innerHeight-40),window.addEventListener("resize",this.onWindowResize)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp)}async firstUpdated(){this.selectedProductId=this._resolveInitialProduct(),this.open=this.openInitially,this.open&&await this.initConversation()}updated(e){e.has("products")&&this.handleProductUpdate(),e.has("messages")&&this.scrollToBottom(),e.has("open")&&this.open&&!this.conversationId&&this.initConversation()}_resolveInitialProduct(){if(!this.products.length)return"";const e=this.products.find(t=>t.selected);return e?e.id:this.products.length===1?this.products[0].id:""}handleProductUpdate(){if(!this.products.length)return;const e=this.products.find(o=>o.selected),t=this.products.some(o=>o.id===this.selectedProductId);e&&e.id!==this.selectedProductId?(this.selectedProductId=e.id,this.messages=[],this.conversationId=void 0,this.open&&this.initConversation()):t||(this.selectedProductId=this._resolveInitialProduct(),this.messages=[],this.conversationId=void 0,this.open&&this.initConversation()),requestAnimationFrame(()=>this.updateComboboxItems())}updateComboboxItems(){var r,a,s;const e=this.productEl;if(!e||((r=this.products)==null?void 0:r.length)<=1)return;const t=this.products.map(l=>({value:l.id,label:l.name}));if(e.items=t,((s=(((a=e.selectedItems)==null?void 0:a.call(e))||[])[0])==null?void 0:s.value)!==this.selectedProductId){const l=t.find(c=>c.value===this.selectedProductId);e.setSelected&&e.setSelected(l?[l]:[])}}async onProductChange(e){var o,r,a;const t=(a=(r=(o=e.detail)==null?void 0:o.selected)==null?void 0:r[0])==null?void 0:a.value;t&&t!==this.selectedProductId&&(this.selectedProductId=t)}onMouseDown(e){this.draggable&&(e.preventDefault(),this.isDragging=!0,this.dragStartPos={x:e.clientX,y:e.clientY},this.initialPosition=we({},this.position),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp))}startResize(e,t){this.resizable&&(e.preventDefault(),e.stopPropagation(),this.isResizing=!0,this.resizeDirection=t,this.dragStartPos={x:e.clientX,y:e.clientY},this.resizeStartWidth=this.windowWidth,this.resizeStartHeight=this.windowHeight,window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp))}async ensureToken(e=!1){var a;const t="logosphere_chatbot_token";if(e&&(this.assertionToken=void 0,localStorage.removeItem(t)),!e){const s=localStorage.getItem(t);if(s){this.assertionToken=s;return}}const r=await(await fetch(`${this.returnUri}/api/chat/start`)).json();if(!r.Success||!((a=r.Data)!=null&&a.Token))throw new Error("Token alınamadı");this.assertionToken=r.Data.Token,localStorage.setItem(t,this.assertionToken)}async postChat(e){await this.ensureToken();const t=`${this.returnUri}/api/chat/completions`,o=()=>fetch(t,{method:"POST",headers:{"Content-Type":"application/json",client_assertion:this.assertionToken,client_assertion_type:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"},body:JSON.stringify(e)});let r=await o();if(r.status===401&&(await this.ensureToken(!0),r=await o()),!r.ok)throw new Error(`HTTP ${r.status}`);return r.json()}async initConversation(){var e,t,o;if(!this.isLoading){this.isLoading=!0;try{await this.ensureToken();const r=await this.postChat({ChatCompletionType:"NewConversation",Context:this.selectedProductId,QuestionPrompt:this.questionPrompt});this.conversationId=r.Data.ConversationId;const a=(o=(t=(e=r.Data.Choices)==null?void 0:e[0])==null?void 0:t.Message)==null?void 0:o.Content;a&&this.addMessage(a,"assistant",void 0,!0)}catch(r){this.addMessage("Bir hata oluştu, lütfen tekrar deneyiniz.","system")}finally{this.isLoading=!1}}}async sendMessage(){var t,o,r,a,s;const e=this.inputText.trim();if(!(!e||!this.conversationId||this.isLoading)){if(!this.selectedProductId){this.addMessage("Lütfen önce bir ürün seçiniz.","system");return}this.addMessage(e,"user"),this.inputText="",this.scrollToBottom(),this.isLoading=!0;try{const l=await this.postChat({ChatCompletionType:"ConversationUpdate",Content:e,Context:this.selectedProductId,ConversationId:this.conversationId,QuestionPrompt:this.questionPrompt}),c=(a=(r=(o=(t=l.Data)==null?void 0:t.Choices)==null?void 0:o[0])==null?void 0:r.Message)==null?void 0:a.Content,u=(s=l.Data)==null?void 0:s.EventId;this.addMessage(c||"Cevap alınamadı.","assistant",u)}catch(l){this.addMessage("Bağlantı hatası.","system")}finally{this.isLoading=!1}}}addMessage(e,t,o,r=!1){this.messages=[...this.messages,{content:e,role:t,timestamp:Date.now(),eventId:o,isWelcome:r}]}isNearBottom(e=50){const t=this.chatContainer;return t?t.scrollHeight-t.scrollTop-t.clientHeight<=e:!0}scrollToBottom(e=!1){if(!e&&!this.userAtBottom){this.showScrollDown=!0;return}setTimeout(()=>{this.chatContainer&&(this.chatContainer.scrollTop=this.chatContainer.scrollHeight,this.showScrollDown=!1,this.userAtBottom=!0)},0)}async rateMessage(e,t,o=null){await this.ensureToken();const r=`${this.returnUri}/api/chat/completion/rate`;await fetch(r,{method:"POST",headers:{"Content-Type":"application/json",client_assertion:this.assertionToken,client_assertion_type:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"},body:JSON.stringify({EventId:e,Rate:t,Comment:o})})}formatContent(e){if(!e)return"";const o=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").split(`
712
+ `);let r="";const a=[];let s=!1;const l=()=>{s&&(r+="</li>",s=!1)},c=h=>{for(;a.length>0&&a[a.length-1].indent>=h;)l(),r+=`</${a.pop().type}>`,a.length>0&&(s=!0)},u=()=>c(-1);for(const h of o){const f=h.match(/^(\s*)\d+\.\s+(.*)/),g=h.match(/^(\s*)[-*]\s+(.*)/);if(f||g){const v=(f?f[1]:g[1]).length,w=f?"ol":"ul",C=f?f[2]:g[2];if(a.length===0)r+=`<${w}>`,a.push({type:w,indent:v});else{const m=a[a.length-1];v>m.indent?(r+=`<${w}>`,a.push({type:w,indent:v})):v===m.indent?l():(c(v+1),a.length>0&&a[a.length-1].indent===v?l():(u(),r+=`<${w}>`,a.push({type:w,indent:v})))}r+=`<li>${C}`,s=!0}else h.trim()===""?a.length===0&&(r+="<br>"):(u(),r+=`<p>${h}</p>`)}return u(),r.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}render(){const e=this.position.right<this.screenWidth/2;return p`
545
713
  <div class="chatbot">
546
714
  ${this.renderOverlay()}
547
715
  ${this.renderLauncher()}
548
716
  ${this.renderWindow(e)}
549
717
  </div>
550
- `}renderOverlay(){return this.open||this.fullscreen?u`<div class="chatbot__overlay" @click=${this.onToggle}></div>`:""}renderLauncher(){const e=["chatbot__launcher",this.draggable?"chatbot__launcher--draggable":"",this.open?"chatbot__launcher--hidden":""].filter(Boolean).join(" ");return u`
718
+ `}renderOverlay(){return this.open||this.fullscreen?p`<div class="chatbot__overlay" @click=${this.onToggle}></div>`:""}renderLauncher(){const e=["chatbot__launcher",this.draggable?"chatbot__launcher--draggable":"",this.open?"chatbot__launcher--hidden":""].filter(Boolean).join(" ");return p`
551
719
  <div
552
720
  class="${e}"
553
721
  style="right: ${this.position.right}px; bottom: ${this.position.bottom}px;"
@@ -556,14 +724,14 @@
556
724
  aria-expanded=${this.open?"true":"false"}
557
725
  >
558
726
  <img class="chatbot__launcher-icon" src="${n.LogosphereChatBot.ICONS.launcher}" alt="chatbot" />
559
- ${!this.open&&!this.minimizedIconOnly?u`
727
+ ${!this.open&&!this.minimizedIconOnly?p`
560
728
  <div class="chatbot__launcher-text">
561
729
  <p class="chatbot__launcher-title">Logo</p>
562
730
  <p class="chatbot__launcher-subtitle">Dijital Danışman</p>
563
731
  </div>
564
732
  `:""}
565
733
  </div>
566
- `}renderWindow(e){const t=["chatbot__window",this.open?"":"chatbot__window--hidden",this.fullscreen?"chatbot__window--fullscreen":""].filter(Boolean).join(" "),o=this.fullscreen?"":`bottom: 20px; height: ${this.windowHeight}px; width: ${this.windowWidth}px; ${e?"right: 20px;":"left: 20px;"}`;return u`
734
+ `}renderWindow(e){const t=["chatbot__window",this.open?"":"chatbot__window--hidden",this.fullscreen?"chatbot__window--fullscreen":""].filter(Boolean).join(" "),o=this.fullscreen?"":`bottom: 20px; height: ${this.windowHeight}px; width: ${this.windowWidth}px; ${e?"right: 20px;":"left: 20px;"}`;return p`
567
735
  <div class="${t}" style="${o}">
568
736
  ${this.renderResizeHandles(e)}
569
737
  ${this.renderHeader()}
@@ -573,14 +741,14 @@
573
741
  ${this.renderInputArea()}
574
742
  </div>
575
743
  </div>
576
- `}renderResizeHandles(e){return this.fullscreen||!this.resizable?"":u`
744
+ `}renderResizeHandles(e){return this.fullscreen||!this.resizable?"":p`
577
745
  <div class="chatbot__resize-top"
578
746
  @mousedown=${t=>this.startResize(t,"vertical")}></div>
579
747
  <div class="chatbot__resize-side ${e?"chatbot__resize-side--left":"chatbot__resize-side--right"}"
580
748
  @mousedown=${t=>this.startResize(t,"horizontal")}></div>
581
749
  <div class="chatbot__resize-corner ${e?"chatbot__resize-corner--nwse":"chatbot__resize-corner--nesw"}"
582
750
  @mousedown=${t=>this.startResize(t,"both")}></div>
583
- `}renderHeader(){return u`
751
+ `}renderHeader(){return p`
584
752
  <div class="chatbot__header">
585
753
  <div class="chatbot__header-info">
586
754
  <img class="chatbot__header-logo" alt="logo" src="${n.LogosphereChatBot.ICONS.launcher}" />
@@ -612,9 +780,9 @@
612
780
  </logosphere-button>
613
781
  </div>
614
782
  </div>
615
- `}renderProductSelector(){return u`
783
+ `}renderProductSelector(){return p`
616
784
  <div class="chatbot__product-selector">
617
- ${this.products.length>1?u`
785
+ ${this.products.length>1?p`
618
786
  <logosphere-combobox
619
787
  id="product"
620
788
  .items=${this.products.map(e=>({value:e.id,label:e.name}))}
@@ -623,7 +791,7 @@
623
791
  placeholder="Ürün seçiniz"
624
792
  @selected=${this.onProductChange}
625
793
  ></logosphere-combobox>
626
- `:u`
794
+ `:p`
627
795
  <input
628
796
  id="product"
629
797
  class="chatbot__product-input"
@@ -633,28 +801,28 @@
633
801
  >
634
802
  `}
635
803
  </div>
636
- `}renderChatArea(){return u`
804
+ `}renderChatArea(){return p`
637
805
  <div class="chatbot__messages-wrapper">
638
806
  <div id="chat-container" class="chatbot__messages" @scroll=${this.onChatScroll}>
639
807
  ${this.messages.map(e=>this.renderMessage(e))}
640
808
  ${this.isLoading?this.renderTypingIndicator():""}
641
809
  </div>
642
- ${this.showScrollDown?u`
810
+ ${this.showScrollDown?p`
643
811
  <button class="chatbot__scroll-down" @click=${this.onScrollToBottomClick} title="Aşağı kaydır">
644
812
  <ui-icon name="uil-angle-down" size="20"></ui-icon>
645
813
  </button>
646
814
  `:""}
647
815
  </div>
648
- `}renderMessage(e){const t=["chatbot__bubble",`chatbot__bubble--${e.role}`].join(" ");return u`
816
+ `}renderMessage(e){const t=["chatbot__bubble",`chatbot__bubble--${e.role}`].join(" ");return p`
649
817
  <div class="chatbot__message chatbot__message--${e.role}">
650
818
  <div class="${t}">
651
819
  <div class="chatbot__message-content">
652
- ${so(this.formatContent(e.content))}
820
+ ${lo(this.formatContent(e.content))}
653
821
  </div>
654
822
  </div>
655
823
  ${this.showFeedbackButtons&&e.role==="assistant"&&!e.isWelcome?this.renderFeedbackButtons(e):""}
656
824
  </div>
657
- `}renderFeedbackButtons(e){return u`
825
+ `}renderFeedbackButtons(e){return p`
658
826
  <div class="chatbot__feedback">
659
827
  <logosphere-button
660
828
  @click=${()=>this.onCopyMessage(e.content)}
@@ -687,7 +855,7 @@
687
855
  <ui-icon name="uil-thumbs-down" size="16"></ui-icon>
688
856
  </logosphere-button>
689
857
  </div>
690
- `}renderTypingIndicator(){return u`
858
+ `}renderTypingIndicator(){return p`
691
859
  <div class="chatbot__typing-wrapper">
692
860
  <div class="chatbot__typing">
693
861
  <span class="chatbot__typing-dot"></span>
@@ -695,7 +863,7 @@
695
863
  <span class="chatbot__typing-dot"></span>
696
864
  </div>
697
865
  </div>
698
- `}renderInputArea(){return u`
866
+ `}renderInputArea(){return p`
699
867
  <div class="chatbot__input-area">
700
868
  <div class="chatbot__input-wrapper">
701
869
  <input
@@ -722,9 +890,9 @@
722
890
  <div class="chatbot__footer">
723
891
  <p class="chatbot__footer-text">İçerik Yapay Zeka ile Üretilmiştir</p>
724
892
  </div>
725
- `}},n.LogosphereChatBot.styles=[R`${H(oa)}`],n.LogosphereChatBot.ICONS={launcher:"data:image/svg+xml,%3Csvg%20width%3D%2251%22%20height%3D%2242%22%20viewBox%3D%220%200%2051%2042%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M38.457%200C40.0338%200%2041.542%200.293293%2042.9302%200.8283L49.15%206.07675C50.2611%207.93912%2050.8994%2010.1162%2050.8994%2012.4424V23.084C50.8994%2024.4858%2050.6676%2025.8334%2050.2402%2027.0907L43.1534%2034.6096C41.7043%2035.2006%2040.1187%2035.5264%2038.457%2035.5264H30.7605L38.5805%2027.2296C40.814%2027.1643%2042.6045%2025.3332%2042.6045%2023.084V12.4424C42.6045%2010.1518%2040.7476%208.29492%2038.457%208.29492H12.4424C10.1518%208.29492%208.29492%2010.1518%208.29492%2012.4424V23.084C8.29492%2025.3746%2010.1518%2027.2314%2012.4424%2027.2314H33.5078L20.4487%2041.0866C17.7992%2042.5379%2014.3381%2040.2741%2014.7842%2036.7803C14.8402%2036.3421%2014.9629%2035.9194%2015.1416%2035.5264H12.4424C10.9217%2035.5264%209.46472%2035.2536%208.11774%2034.7542L0.610679%2026.945C0.214298%2025.7295%200%2024.4318%200%2023.084V12.4424C0%2010.8011%200.317794%209.23402%200.895207%207.79935L7.12424%201.19058C8.73679%200.427072%2010.5397%200%2012.4424%200H38.457ZM23.1357%2017.7881C23.1357%2015.4815%2021.2656%2013.6113%2018.959%2013.6113C16.6525%2013.6114%2014.7822%2015.4815%2014.7822%2017.7881C14.7824%2020.0945%2016.6526%2021.9638%2018.959%2021.9639C21.2655%2021.9639%2023.1356%2020.0945%2023.1357%2017.7881ZM36.2344%2017.7881C36.2344%2015.4815%2034.3642%2013.6113%2032.0576%2013.6113C29.7511%2013.6114%2027.8809%2015.4815%2027.8809%2017.7881C27.881%2020.0945%2029.7512%2021.9638%2032.0576%2021.9639C34.3641%2021.9639%2036.2342%2020.0945%2036.2344%2017.7881Z%22%20fill%3D%22url(%23paint0_linear_97_4585)%22%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_97_4585%22%20x1%3D%2231.662%22%20y1%3D%224.88016%22%20x2%3D%2214.4119%22%20y2%3D%2237.9167%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23F22727%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23CA0D0D%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"},B([d({type:String,attribute:"return-uri"})],n.LogosphereChatBot.prototype,"returnUri",2),B([d({type:String,attribute:"question-prompt"})],n.LogosphereChatBot.prototype,"questionPrompt",2),B([d({type:Boolean,attribute:"minimized-icon-only"})],n.LogosphereChatBot.prototype,"minimizedIconOnly",2),B([d({type:Boolean,attribute:"draggable"})],n.LogosphereChatBot.prototype,"draggable",2),B([d({type:Boolean,attribute:"resizable"})],n.LogosphereChatBot.prototype,"resizable",2),B([d({type:Array,hasChanged:(i,e)=>i===e?!1:!e||!i||i.length!==e.length?!0:JSON.stringify(i)!==JSON.stringify(e)}),d({type:Array})],n.LogosphereChatBot.prototype,"products",2),B([d({type:Boolean,attribute:"open-initially"})],n.LogosphereChatBot.prototype,"openInitially",2),B([d({type:Boolean,attribute:"show-feedback-buttons"})],n.LogosphereChatBot.prototype,"showFeedbackButtons",2),B([y()],n.LogosphereChatBot.prototype,"open",2),B([y()],n.LogosphereChatBot.prototype,"fullscreen",2),B([y()],n.LogosphereChatBot.prototype,"messages",2),B([y()],n.LogosphereChatBot.prototype,"conversationId",2),B([y()],n.LogosphereChatBot.prototype,"assertionToken",2),B([y()],n.LogosphereChatBot.prototype,"isLoading",2),B([y()],n.LogosphereChatBot.prototype,"inputText",2),B([y()],n.LogosphereChatBot.prototype,"selectedProductId",2),B([y()],n.LogosphereChatBot.prototype,"windowWidth",2),B([y()],n.LogosphereChatBot.prototype,"windowHeight",2),B([y()],n.LogosphereChatBot.prototype,"position",2),B([y()],n.LogosphereChatBot.prototype,"isDragging",2),B([y()],n.LogosphereChatBot.prototype,"screenWidth",2),B([y()],n.LogosphereChatBot.prototype,"userAtBottom",2),B([y()],n.LogosphereChatBot.prototype,"showScrollDown",2),B([Z("#chat-container")],n.LogosphereChatBot.prototype,"chatContainer",2),B([Z("#product")],n.LogosphereChatBot.prototype,"productEl",2),n.LogosphereChatBot=B([V("logosphere-chatbot")],n.LogosphereChatBot);const sa=':host{display:block;font-family:var(--font-family-base)}.dp__calendar{display:block}.dp__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--spacing-3)}.dp__nav-btn{display:inline-flex;align-items:center;justify-content:center;padding:var(--spacing-2);border:none;background:none;border-radius:var(--radius-base);cursor:pointer;color:var(--color-body-text);transition:background-color var(--transition-speed-fast) var(--transition-timing)}.dp__nav-btn:hover{background-color:var(--color-light)}.dp__header-label{font-size:var(--font-size-xl);font-weight:var(--font-weight-semibold);letter-spacing:-.025em;-webkit-user-select:none;user-select:none;cursor:pointer;color:var(--color-body-text);transition:color var(--transition-speed-fast) var(--transition-timing)}.dp__header-label:hover{color:var(--color-primary)}.dp__weekdays{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:var(--font-size-sm);color:var(--color-tertiary);margin-bottom:var(--spacing-1);-webkit-user-select:none;user-select:none}.dp__weekday{padding:var(--spacing-1) 0}.dp__grid{display:grid;grid-template-columns:repeat(7,1fr);row-gap:2px;outline:none}.dp__day{position:relative;height:36px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding:0;min-width:0;border-radius:0;color:var(--color-body-text);font-family:var(--font-family-base)}.dp__day-num{position:relative;z-index:1;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-full);font-size:var(--font-size-sm);flex-shrink:0;transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.dp__day--range-start:before,.dp__day--range-end:before,.dp__day--range-between:before{content:"";position:absolute;top:2px;bottom:2px;background-color:color-mix(in srgb,var(--color-primary) 15%,transparent);z-index:0;pointer-events:none}.dp__day--range-start:before{left:50%;right:0}.dp__day--range-end:before{left:0;right:50%}.dp__day--range-between:before{left:0;right:0}.dp__day--out-of-month{opacity:.4}.dp__day--focused .dp__day-num{background-color:var(--color-light)}.dp__day--disabled{cursor:not-allowed;pointer-events:none}.dp__day--disabled .dp__day-num{color:var(--color-gray-300);background-color:var(--color-gray-50)}.dp__day--disabled-weekday{cursor:not-allowed;pointer-events:none}.dp__day--disabled-weekday .dp__day-num{color:var(--color-gray-300)}.dp__day--today .dp__day-num{background-color:var(--color-gray-200);color:var(--color-gray-800)}.dp__day--selected .dp__day-num{background-color:var(--color-primary);color:#fff}.dp__day--default:hover .dp__day-num{background-color:var(--color-light)}.dp__day--range-pending .dp__day-num,.dp__day--range-start .dp__day-num,.dp__day--range-end .dp__day-num{background-color:var(--color-primary);color:#fff}.dp__day--range-between .dp__day-num{color:var(--color-primary);background:transparent}.dp__month-grid,.dp__year-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);gap:10px;margin-top:var(--spacing-3)}.dp__month-btn,.dp__year-btn{height:48px;display:flex;align-items:center;justify-content:center;border:none;border-radius:var(--radius-base);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);font-family:var(--font-family-base);cursor:pointer;background:none;color:var(--color-body-text);transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.dp__month-btn:hover:not(.dp__month-btn--selected),.dp__year-btn:hover:not(.dp__year-btn--selected){background-color:var(--color-light)}.dp__month-btn--selected,.dp__year-btn--selected{background-color:var(--color-primary);color:#fff}.dp__month-btn--current:not(.dp__month-btn--selected),.dp__year-btn--current:not(.dp__year-btn--selected){background-color:var(--color-gray-200);color:var(--color-gray-800)}.dp__footer{display:flex;align-items:center;justify-content:space-evenly;margin-top:var(--spacing-4);padding-bottom:var(--spacing-3)}.dp__footer-btn{display:inline-flex;align-items:center;gap:var(--spacing-2);padding:var(--spacing-1) var(--spacing-2);font-size:var(--font-size-sm);color:var(--color-tertiary);border:none;border-radius:var(--radius-sm);background:none;cursor:pointer;font-family:var(--font-family-base);transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.dp__footer-btn:hover{background-color:var(--color-light);color:var(--color-body-text)}';function St(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var jt={exports:{}},aa=jt.exports,hr;function na(){return hr||(hr=1,(function(i,e){(function(t,o){i.exports=o()})(aa,(function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,r,s){var a=r.prototype,l=a.format;s.en.formats=t,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,h=(function(f,g){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(b,w,C){var m=C&&C.toUpperCase();return w||g[C]||t[C]||g[m].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(_,x,$){return x||$.slice(1)}))}))})(c,p===void 0?{}:p);return l.call(this,h)}}}))})(jt)),jt.exports}var la=na();const ca=St(la);var Ft={exports:{}},da=Ft.exports,pr;function ha(){return pr||(pr=1,(function(i,e){(function(t,o){i.exports=o()})(da,(function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,s=/\d\d/,a=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,c={},p=function(m){return(m=+m)+(m>68?1900:2e3)},h=function(m){return function(_){this[m]=+_}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=(function(_){if(!_||_==="Z")return 0;var x=_.match(/([+-]|\d\d)/g),$=60*x[1]+(+x[2]||0);return $===0?0:x[0]==="+"?-$:$})(m)}],g=function(m){var _=c[m];return _&&(_.indexOf?_:_.s.concat(_.f))},b=function(m,_){var x,$=c.meridiem;if($){for(var k=1;k<=24;k+=1)if(m.indexOf($(k,0,_))>-1){x=k>12;break}}else x=m===(_?"pm":"PM");return x},w={A:[l,function(m){this.afternoon=b(m,!1)}],a:[l,function(m){this.afternoon=b(m,!0)}],Q:[r,function(m){this.month=3*(m-1)+1}],S:[r,function(m){this.milliseconds=100*+m}],SS:[s,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[a,h("seconds")],ss:[a,h("seconds")],m:[a,h("minutes")],mm:[a,h("minutes")],H:[a,h("hours")],h:[a,h("hours")],HH:[a,h("hours")],hh:[a,h("hours")],D:[a,h("day")],DD:[s,h("day")],Do:[l,function(m){var _=c.ordinal,x=m.match(/\d+/);if(this.day=x[0],_)for(var $=1;$<=31;$+=1)_($).replace(/\[|\]/g,"")===m&&(this.day=$)}],w:[a,h("week")],ww:[s,h("week")],M:[a,h("month")],MM:[s,h("month")],MMM:[l,function(m){var _=g("months"),x=(g("monthsShort")||_.map((function($){return $.slice(0,3)}))).indexOf(m)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[l,function(m){var _=g("months").indexOf(m)+1;if(_<1)throw new Error;this.month=_%12||_}],Y:[/[+-]?\d+/,h("year")],YY:[s,function(m){this.year=p(m)}],YYYY:[/\d{4}/,h("year")],Z:f,ZZ:f};function C(m){var _,x;_=m,x=c&&c.formats;for(var $=(m=_.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(L,I,N){var O=N&&N.toUpperCase();return I||x[N]||t[N]||x[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(J,Q,q){return Q||q.slice(1)}))}))).match(o),k=$.length,S=0;S<k;S+=1){var E=$[S],M=w[E],P=M&&M[0],z=M&&M[1];$[S]=z?{regex:P,parser:z}:E.replace(/^\[|\]$/g,"")}return function(L){for(var I={},N=0,O=0;N<k;N+=1){var J=$[N];if(typeof J=="string")O+=J.length;else{var Q=J.regex,q=J.parser,ee=L.slice(O),fe=Q.exec(ee)[0];q.call(I,fe),L=L.replace(fe,"")}}return(function(re){var $e=re.afternoon;if($e!==void 0){var te=re.hours;$e?te<12&&(re.hours+=12):te===12&&(re.hours=0),delete re.afternoon}})(I),I}}return function(m,_,x){x.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(p=m.parseTwoDigitYear);var $=_.prototype,k=$.parse;$.parse=function(S){var E=S.date,M=S.utc,P=S.args;this.$u=M;var z=P[1];if(typeof z=="string"){var L=P[2]===!0,I=P[3]===!0,N=L||I,O=P[2];I&&(O=P[2]),c=this.$locale(),!L&&O&&(c=x.Ls[O]),this.$d=(function(ee,fe,re,$e){try{if(["x","X"].indexOf(fe)>-1)return new Date((fe==="X"?1e3:1)*ee);var te=C(fe)(ee),ke=te.year,Ce=te.month,Le=te.day,ve=te.hours,Ue=te.minutes,rt=te.seconds,Se=te.milliseconds,it=te.zone,Wt=te.week,qe=new Date,Et=Le||(ke||Ce?1:qe.getDate()),st=ke||qe.getFullYear(),at=0;ke&&!Ce||(at=Ce>0?Ce-1:qe.getMonth());var nt,lt=ve||0,ct=Ue||0,At=rt||0,Mt=Se||0;return it?new Date(Date.UTC(st,at,Et,lt,ct,At,Mt+60*it.offset*1e3)):re?new Date(Date.UTC(st,at,Et,lt,ct,At,Mt)):(nt=new Date(st,at,Et,lt,ct,At,Mt),Wt&&(nt=$e(nt).week(Wt).toDate()),nt)}catch(Oe){return new Date("")}})(E,z,M,x),this.init(),O&&O!==!0&&(this.$L=this.locale(O).$L),N&&E!=this.format(z)&&(this.$d=new Date("")),c={}}else if(z instanceof Array)for(var J=z.length,Q=1;Q<=J;Q+=1){P[1]=z[Q-1];var q=x.apply(this,P);if(q.isValid()){this.$d=q.$d,this.$L=q.$L,this.init();break}Q===J&&(this.$d=new Date(""))}else k.call(this,S)}}}))})(Ft)),Ft.exports}var pa=ha();const ua=St(pa);var Vt={exports:{}},fa=Vt.exports,ur;function ga(){return ur||(ur=1,(function(i,e){(function(t,o){i.exports=o()})(fa,(function(){return function(t,o,r){o.prototype.isBetween=function(s,a,l,c){var p=r(s),h=r(a),f=(c=c||"()")[0]==="(",g=c[1]===")";return(f?this.isAfter(p,l):!this.isBefore(p,l))&&(g?this.isBefore(h,l):!this.isAfter(h,l))||(f?this.isBefore(p,l):!this.isAfter(p,l))&&(g?this.isAfter(h,l):!this.isBefore(h,l))}}}))})(Vt)),Vt.exports}var ma=ga();const ba=St(ma);var Nt={exports:{}},va=Nt.exports,fr;function _a(){return fr||(fr=1,(function(i,e){(function(t,o){i.exports=o()})(va,(function(){var t="week",o="year";return function(r,s,a){var l=s.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var p=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=a(this).startOf(o).add(1,o).date(p),f=a(this).endOf(t);if(h.isBefore(f))return 1}var g=a(this).startOf(o).date(p).startOf(t).subtract(1,"millisecond"),b=this.diff(g,t,!0);return b<0?a(this).startOf("week").week():Math.ceil(b)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(Nt)),Nt.exports}var ya=_a();const wa=St(ya);var Ut={exports:{}},xa=Ut.exports,gr;function $a(){return gr||(gr=1,(function(i,e){(function(t,o){i.exports=o()})(xa,(function(){return function(t,o,r){var s=o.prototype,a=function(f){return f&&(f.indexOf?f:f.s)},l=function(f,g,b,w,C){var m=f.name?f:f.$locale(),_=a(m[g]),x=a(m[b]),$=_||x.map((function(S){return S.slice(0,w)}));if(!C)return $;var k=m.weekStart;return $.map((function(S,E){return $[(E+(k||0))%7]}))},c=function(){return r.Ls[r.locale()]},p=function(f,g){return f.formats[g]||(function(b){return b.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(w,C,m){return C||m.slice(1)}))})(f.formats[g.toUpperCase()])},h=function(){var f=this;return{months:function(g){return g?g.format("MMMM"):l(f,"months")},monthsShort:function(g){return g?g.format("MMM"):l(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):l(f,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):l(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):l(f,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return p(f.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return h.bind(this)()},r.localeData=function(){var f=c();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(g){return p(f,g)},meridiem:f.meridiem,ordinal:f.ordinal}},r.months=function(){return l(c(),"months")},r.monthsShort=function(){return l(c(),"monthsShort","months",3)},r.weekdays=function(f){return l(c(),"weekdays",null,null,f)},r.weekdaysShort=function(f){return l(c(),"weekdaysShort","weekdays",3,f)},r.weekdaysMin=function(f){return l(c(),"weekdaysMin","weekdays",2,f)}}}))})(Ut)),Ut.exports}var ka=$a();const Ca=St(ka);var qt={exports:{}},Sa=qt.exports,mr;function Ea(){return mr||(mr=1,(function(i,e){(function(t,o){i.exports=o(A)})(Sa,(function(t){function o(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var r=o(t),s={name:"tr",weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(a){return a+"."}};return r.default.locale(s,null,!0),s}))})(qt)),qt.exports}Ea(),A.extend(ca),A.extend(ua),A.extend(ba),A.extend(wa),A.extend(Ca),A.locale("tr");const br=["DD/MM/YYYY","DD.MM.YYYY","DD MM YYYY","DD-MM-YYYY","DD/MM/YY","DD.MM.YY","DD MM YY","DD-MM-YY","YYYY-MM-DD","YYYY/MM/DD","YYYY.MM.DD","YYYY MM DD"],vr=A.weekdaysShort(),Aa=A.months(),Ma=[...vr.slice(1),vr[0]];function ne(i){if(!i)return null;for(const t of br){const o=A(i,t,!0);if(o.isValid())return o}const e=A(i);return e.isValid()?e:null}var Da=Object.defineProperty,Ta=Object.getOwnPropertyDescriptor,G=(i,e,t,o)=>{for(var r=o>1?void 0:o?Ta(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Da(e,t,r),r};n.LogosphereCalendar=class extends D{constructor(){super(...arguments),this.value=null,this.min=null,this.max=null,this.disabled=!1,this.rangeMode=!1,this.disabledDays=[],this.rangeStart=null,this.rangeEnd=null,this.closable=!1,this._cursor=A(),this._rangeStart=null,this._rangeEnd=null,this._hoverDate=null,this._viewMode="calendar",this._clear=()=>{this._emitChange(null),this.rangeMode&&(this._rangeStart=null,this._rangeEnd=null,this._emitStateChange())},this._today=()=>{const e=A();this._withinBounds(e)&&this._select(e)},this._navigatePrevious=()=>{switch(this._viewMode){case"calendar":this._cursor=this._cursor.subtract(1,"month");break;case"month":this._cursor=this._cursor.subtract(1,"year");break;case"year":this._cursor=this._cursor.subtract(12,"year");break}},this._navigateNext=()=>{switch(this._viewMode){case"calendar":this._cursor=this._cursor.add(1,"month");break;case"month":this._cursor=this._cursor.add(1,"year");break;case"year":this._cursor=this._cursor.add(12,"year");break}},this._handleHeaderClick=()=>{this._viewMode==="calendar"?this._viewMode="month":this._viewMode==="month"&&(this._viewMode="year")}}willUpdate(e){var t,o,r,s;if(e.has("value")&&!this.rangeMode){const a=ne(this.value);a&&(this._cursor=a)}e.has("rangeStart")&&(this._rangeStart=this.rangeStart),e.has("rangeEnd")&&(this._rangeEnd=this.rangeEnd),(e.has("rangeStart")||e.has("rangeEnd"))&&this.rangeMode&&(this._cursor=(s=(r=(t=ne(this.rangeEnd))==null?void 0:t.clone())!=null?r:(o=ne(this.rangeStart))==null?void 0:o.clone())!=null?s:this._cursor)}focusGrid(){var e;(e=this.renderRoot.querySelector("#grid"))==null||e.focus()}_emitStateChange(){this.dispatchEvent(new CustomEvent("calendar-state-change",{detail:{rangeStart:this._rangeStart,rangeEnd:this._rangeEnd}}))}_emitChange(e){var t;this.value=e,this.dispatchEvent(new CustomEvent("change",{detail:{value:e}})),(t=this.onChange)==null||t.call(this,e)}_emitRangeChange(){var t;if(!this._rangeStart||!this._rangeEnd)return;const e={start:this._rangeStart,end:this._rangeEnd};this.dispatchEvent(new CustomEvent("rangeChange",{detail:e})),(t=this.onRangeChange)==null||t.call(this,e)}_withinBounds(e){const t=ne(this.min),o=ne(this.max);return!(t&&e.isBefore(t,"day")||o&&e.isAfter(o,"day")||this.disabledDays.includes(e.day()))}_getYears(){const e=this._cursor.year()-6;return Array.from({length:12},(t,o)=>e+o)}_getHeaderLabel(){switch(this._viewMode){case"calendar":return this._cursor.format("MMMM YYYY");case"month":return this._cursor.format("YYYY");case"year":{const e=this._getYears();return`${e[0]}-${e[e.length-1]}`}}}_daysInGrid(){const e=this._cursor.startOf("month"),t=e.subtract((e.day()+6)%7,"day");return Array.from({length:42},(o,r)=>t.add(r,"day"))}_isInRange(e){if(!this.rangeMode||!this._rangeStart||!this._rangeEnd)return null;const t=ne(this._rangeStart),o=ne(this._rangeEnd);return!t||!o?null:e.isSame(t,"day")?"start":e.isSame(o,"day")?"end":e.isBetween(t,o,"day","[]")?"between":null}_getHoverPreview(e){if(!this.rangeMode||!this._rangeStart||this._rangeEnd||!this._hoverDate)return null;const t=ne(this._rangeStart);if(!t)return null;const o=this._hoverDate,r=o.isAfter(t,"day"),s=r?t:o,a=r?o:t;return e.isSame(t,"day")?"preview-start":e.isSame(o,"day")?"preview-end":e.isAfter(s,"day")&&e.isBefore(a,"day")?"preview-between":null}_getDayClasses(e){const t=["dp__day"];if(!this._withinBounds(e))return t.push(this.disabledDays.includes(e.day())?"dp__day--disabled-weekday":"dp__day--disabled"),t.join(" ");const o=this._isInRange(e);if(o==="start")return t.push("dp__day--range-start"),t.join(" ");if(o==="end")return t.push("dp__day--range-end"),t.join(" ");if(o==="between")return t.push("dp__day--range-between"),t.join(" ");const r=this._getHoverPreview(e);return r==="preview-start"?(t.push("dp__day--range-start"),t.join(" ")):r==="preview-end"?(t.push("dp__day--range-end"),t.join(" ")):r==="preview-between"?(t.push("dp__day--range-between"),t.join(" ")):this.rangeMode&&this._rangeStart&&!this._rangeEnd&&e.isSame(ne(this._rangeStart),"day")?(t.push("dp__day--range-pending"),t.join(" ")):(e.isSame(ne(this.value),"day")?t.push("dp__day--selected"):e.isSame(A(),"day")?t.push("dp__day--today"):t.push("dp__day--default"),t.join(" "))}_select(e){if(!(this.disabled||!this._withinBounds(e))){if(this.rangeMode){if(!this._rangeStart){this._rangeStart=e.format("YYYY-MM-DD"),this._cursor=e,this._emitStateChange();return}if(!this._rangeEnd){const t=ne(this._rangeStart);t&&e.isBefore(t,"day")?(this._rangeEnd=this._rangeStart,this._rangeStart=e.format("YYYY-MM-DD")):this._rangeEnd=e.format("YYYY-MM-DD"),this._cursor=e,this._viewMode="calendar",this._emitStateChange(),this._emitRangeChange();return}this._rangeStart=e.format("YYYY-MM-DD"),this._rangeEnd=null,this._cursor=e,this._emitStateChange();return}this._emitChange(e.format("YYYY-MM-DD")),this._cursor=e,this._viewMode="calendar"}}_selectMonth(e){this._cursor=this._cursor.month(e),this._viewMode="calendar"}_selectYear(e){this._cursor=this._cursor.year(e),this._viewMode="month"}_keydownGrid(e){const t={ArrowLeft:-1,ArrowRight:1,ArrowUp:-7,ArrowDown:7};e.key in t?(e.preventDefault(),this._cursor=this._cursor.add(t[e.key],"day")):e.key==="Enter"||e.key===" "?(e.preventDefault(),this._select(this._cursor)):e.key==="Escape"&&this.closable?(e.preventDefault(),this.dispatchEvent(new CustomEvent("close-request"))):e.key==="PageUp"?(e.preventDefault(),this._cursor=e.shiftKey?this._cursor.subtract(1,"year"):this._cursor.subtract(1,"month")):e.key==="PageDown"?(e.preventDefault(),this._cursor=e.shiftKey?this._cursor.add(1,"year"):this._cursor.add(1,"month")):e.key==="Home"?(e.preventDefault(),this._cursor=this._cursor.startOf("month")):e.key==="End"&&(e.preventDefault(),this._cursor=this._cursor.endOf("month"))}_renderCalendar(e){const t=this._daysInGrid();return u`
893
+ `}},n.LogosphereChatBot.styles=[H`${I(ns)}`],n.LogosphereChatBot.ICONS={launcher:"data:image/svg+xml,%3Csvg%20width%3D%2251%22%20height%3D%2242%22%20viewBox%3D%220%200%2051%2042%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M38.457%200C40.0338%200%2041.542%200.293293%2042.9302%200.8283L49.15%206.07675C50.2611%207.93912%2050.8994%2010.1162%2050.8994%2012.4424V23.084C50.8994%2024.4858%2050.6676%2025.8334%2050.2402%2027.0907L43.1534%2034.6096C41.7043%2035.2006%2040.1187%2035.5264%2038.457%2035.5264H30.7605L38.5805%2027.2296C40.814%2027.1643%2042.6045%2025.3332%2042.6045%2023.084V12.4424C42.6045%2010.1518%2040.7476%208.29492%2038.457%208.29492H12.4424C10.1518%208.29492%208.29492%2010.1518%208.29492%2012.4424V23.084C8.29492%2025.3746%2010.1518%2027.2314%2012.4424%2027.2314H33.5078L20.4487%2041.0866C17.7992%2042.5379%2014.3381%2040.2741%2014.7842%2036.7803C14.8402%2036.3421%2014.9629%2035.9194%2015.1416%2035.5264H12.4424C10.9217%2035.5264%209.46472%2035.2536%208.11774%2034.7542L0.610679%2026.945C0.214298%2025.7295%200%2024.4318%200%2023.084V12.4424C0%2010.8011%200.317794%209.23402%200.895207%207.79935L7.12424%201.19058C8.73679%200.427072%2010.5397%200%2012.4424%200H38.457ZM23.1357%2017.7881C23.1357%2015.4815%2021.2656%2013.6113%2018.959%2013.6113C16.6525%2013.6114%2014.7822%2015.4815%2014.7822%2017.7881C14.7824%2020.0945%2016.6526%2021.9638%2018.959%2021.9639C21.2655%2021.9639%2023.1356%2020.0945%2023.1357%2017.7881ZM36.2344%2017.7881C36.2344%2015.4815%2034.3642%2013.6113%2032.0576%2013.6113C29.7511%2013.6114%2027.8809%2015.4815%2027.8809%2017.7881C27.881%2020.0945%2029.7512%2021.9638%2032.0576%2021.9639C34.3641%2021.9639%2036.2342%2020.0945%2036.2344%2017.7881Z%22%20fill%3D%22url(%23paint0_linear_97_4585)%22%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_97_4585%22%20x1%3D%2231.662%22%20y1%3D%224.88016%22%20x2%3D%2214.4119%22%20y2%3D%2237.9167%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23F22727%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23CA0D0D%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"},B([d({type:String,attribute:"return-uri"})],n.LogosphereChatBot.prototype,"returnUri",2),B([d({type:String,attribute:"question-prompt"})],n.LogosphereChatBot.prototype,"questionPrompt",2),B([d({type:Boolean,attribute:"minimized-icon-only"})],n.LogosphereChatBot.prototype,"minimizedIconOnly",2),B([d({type:Boolean,attribute:"draggable"})],n.LogosphereChatBot.prototype,"draggable",2),B([d({type:Boolean,attribute:"resizable"})],n.LogosphereChatBot.prototype,"resizable",2),B([d({type:Array,hasChanged:(i,e)=>i===e?!1:!e||!i||i.length!==e.length?!0:JSON.stringify(i)!==JSON.stringify(e)}),d({type:Array})],n.LogosphereChatBot.prototype,"products",2),B([d({type:Boolean,attribute:"open-initially"})],n.LogosphereChatBot.prototype,"openInitially",2),B([d({type:Boolean,attribute:"show-feedback-buttons"})],n.LogosphereChatBot.prototype,"showFeedbackButtons",2),B([y()],n.LogosphereChatBot.prototype,"open",2),B([y()],n.LogosphereChatBot.prototype,"fullscreen",2),B([y()],n.LogosphereChatBot.prototype,"messages",2),B([y()],n.LogosphereChatBot.prototype,"conversationId",2),B([y()],n.LogosphereChatBot.prototype,"assertionToken",2),B([y()],n.LogosphereChatBot.prototype,"isLoading",2),B([y()],n.LogosphereChatBot.prototype,"inputText",2),B([y()],n.LogosphereChatBot.prototype,"selectedProductId",2),B([y()],n.LogosphereChatBot.prototype,"windowWidth",2),B([y()],n.LogosphereChatBot.prototype,"windowHeight",2),B([y()],n.LogosphereChatBot.prototype,"position",2),B([y()],n.LogosphereChatBot.prototype,"isDragging",2),B([y()],n.LogosphereChatBot.prototype,"screenWidth",2),B([y()],n.LogosphereChatBot.prototype,"userAtBottom",2),B([y()],n.LogosphereChatBot.prototype,"showScrollDown",2),B([Z("#chat-container")],n.LogosphereChatBot.prototype,"chatContainer",2),B([Z("#product")],n.LogosphereChatBot.prototype,"productEl",2),n.LogosphereChatBot=B([V("logosphere-chatbot")],n.LogosphereChatBot);const ds=':host{display:block;font-family:var(--font-family-base)}.dp__calendar{display:block}.dp__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--spacing-3)}.dp__nav-btn{display:inline-flex;align-items:center;justify-content:center;padding:var(--spacing-2);border:none;background:none;border-radius:var(--radius-base);cursor:pointer;color:var(--color-body-text);transition:background-color var(--transition-speed-fast) var(--transition-timing)}.dp__nav-btn:hover{background-color:var(--color-light)}.dp__header-label{font-size:var(--font-size-xl);font-weight:var(--font-weight-semibold);letter-spacing:-.025em;-webkit-user-select:none;user-select:none;cursor:pointer;color:var(--color-body-text);transition:color var(--transition-speed-fast) var(--transition-timing)}.dp__header-label:hover{color:var(--color-primary)}.dp__weekdays{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:var(--font-size-sm);color:var(--color-tertiary);margin-bottom:var(--spacing-1);-webkit-user-select:none;user-select:none}.dp__weekday{padding:var(--spacing-1) 0}.dp__grid{display:grid;grid-template-columns:repeat(7,1fr);row-gap:2px;outline:none}.dp__day{position:relative;height:36px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding:0;min-width:0;border-radius:0;color:var(--color-body-text);font-family:var(--font-family-base)}.dp__day-num{position:relative;z-index:1;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-full);font-size:var(--font-size-sm);flex-shrink:0;transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.dp__day--range-start:before,.dp__day--range-end:before,.dp__day--range-between:before{content:"";position:absolute;top:2px;bottom:2px;background-color:color-mix(in srgb,var(--color-primary) 15%,transparent);z-index:0;pointer-events:none}.dp__day--range-start:before{left:50%;right:0}.dp__day--range-end:before{left:0;right:50%}.dp__day--range-between:before{left:0;right:0}.dp__day--out-of-month{opacity:.4}.dp__day--focused .dp__day-num{background-color:var(--color-light)}.dp__day--disabled{cursor:not-allowed;pointer-events:none}.dp__day--disabled .dp__day-num{color:var(--color-gray-300);background-color:var(--color-gray-50)}.dp__day--disabled-weekday{cursor:not-allowed;pointer-events:none}.dp__day--disabled-weekday .dp__day-num{color:var(--color-gray-300)}.dp__day--today .dp__day-num{background-color:var(--color-gray-200);color:var(--color-gray-800)}.dp__day--selected .dp__day-num{background-color:var(--color-primary);color:#fff}.dp__day--default:hover .dp__day-num{background-color:var(--color-light)}.dp__day--range-pending .dp__day-num,.dp__day--range-start .dp__day-num,.dp__day--range-end .dp__day-num{background-color:var(--color-primary);color:#fff}.dp__day--range-between .dp__day-num{color:var(--color-primary);background:transparent}.dp__month-grid,.dp__year-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);gap:10px;margin-top:var(--spacing-3)}.dp__month-btn,.dp__year-btn{height:48px;display:flex;align-items:center;justify-content:center;border:none;border-radius:var(--radius-base);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);font-family:var(--font-family-base);cursor:pointer;background:none;color:var(--color-body-text);transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.dp__month-btn:hover:not(.dp__month-btn--selected),.dp__year-btn:hover:not(.dp__year-btn--selected){background-color:var(--color-light)}.dp__month-btn--selected,.dp__year-btn--selected{background-color:var(--color-primary);color:#fff}.dp__month-btn--current:not(.dp__month-btn--selected),.dp__year-btn--current:not(.dp__year-btn--selected){background-color:var(--color-gray-200);color:var(--color-gray-800)}.dp__footer{display:flex;align-items:center;justify-content:space-evenly;margin-top:var(--spacing-4);padding-bottom:var(--spacing-3)}.dp__footer-btn{display:inline-flex;align-items:center;gap:var(--spacing-2);padding:var(--spacing-1) var(--spacing-2);font-size:var(--font-size-sm);color:var(--color-tertiary);border:none;border-radius:var(--radius-sm);background:none;cursor:pointer;font-family:var(--font-family-base);transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.dp__footer-btn:hover{background-color:var(--color-light);color:var(--color-body-text)}';function At(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Ft={exports:{}},hs=Ft.exports,fr;function ps(){return fr||(fr=1,(function(i,e){(function(t,o){i.exports=o()})(hs,(function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,r,a){var s=r.prototype,l=s.format;a.en.formats=t,s.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,h=(function(f,g){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(v,w,C){var m=C&&C.toUpperCase();return w||g[C]||t[C]||g[m].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(_,x,$){return x||$.slice(1)}))}))})(c,u===void 0?{}:u);return l.call(this,h)}}}))})(Ft)),Ft.exports}var us=ps();const fs=At(us);var Ut={exports:{}},gs=Ut.exports,gr;function ms(){return gr||(gr=1,(function(i,e){(function(t,o){i.exports=o()})(gs,(function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,a=/\d\d/,s=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,c={},u=function(m){return(m=+m)+(m>68?1900:2e3)},h=function(m){return function(_){this[m]=+_}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=(function(_){if(!_||_==="Z")return 0;var x=_.match(/([+-]|\d\d)/g),$=60*x[1]+(+x[2]||0);return $===0?0:x[0]==="+"?-$:$})(m)}],g=function(m){var _=c[m];return _&&(_.indexOf?_:_.s.concat(_.f))},v=function(m,_){var x,$=c.meridiem;if($){for(var k=1;k<=24;k+=1)if(m.indexOf($(k,0,_))>-1){x=k>12;break}}else x=m===(_?"pm":"PM");return x},w={A:[l,function(m){this.afternoon=v(m,!1)}],a:[l,function(m){this.afternoon=v(m,!0)}],Q:[r,function(m){this.month=3*(m-1)+1}],S:[r,function(m){this.milliseconds=100*+m}],SS:[a,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[s,h("seconds")],ss:[s,h("seconds")],m:[s,h("minutes")],mm:[s,h("minutes")],H:[s,h("hours")],h:[s,h("hours")],HH:[s,h("hours")],hh:[s,h("hours")],D:[s,h("day")],DD:[a,h("day")],Do:[l,function(m){var _=c.ordinal,x=m.match(/\d+/);if(this.day=x[0],_)for(var $=1;$<=31;$+=1)_($).replace(/\[|\]/g,"")===m&&(this.day=$)}],w:[s,h("week")],ww:[a,h("week")],M:[s,h("month")],MM:[a,h("month")],MMM:[l,function(m){var _=g("months"),x=(g("monthsShort")||_.map((function($){return $.slice(0,3)}))).indexOf(m)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[l,function(m){var _=g("months").indexOf(m)+1;if(_<1)throw new Error;this.month=_%12||_}],Y:[/[+-]?\d+/,h("year")],YY:[a,function(m){this.year=u(m)}],YYYY:[/\d{4}/,h("year")],Z:f,ZZ:f};function C(m){var _,x;_=m,x=c&&c.formats;for(var $=(m=_.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(L,R,F){var O=F&&F.toUpperCase();return R||x[F]||t[F]||x[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(Q,ee,q){return ee||q.slice(1)}))}))).match(o),k=$.length,S=0;S<k;S+=1){var E=$[S],M=w[E],T=M&&M[0],D=M&&M[1];$[S]=D?{regex:T,parser:D}:E.replace(/^\[|\]$/g,"")}return function(L){for(var R={},F=0,O=0;F<k;F+=1){var Q=$[F];if(typeof Q=="string")O+=Q.length;else{var ee=Q.regex,q=Q.parser,te=L.slice(O),me=ee.exec(te)[0];q.call(R,me),L=L.replace(me,"")}}return(function(ae){var Ce=ae.afternoon;if(Ce!==void 0){var oe=ae.hours;Ce?oe<12&&(ae.hours+=12):oe===12&&(ae.hours=0),delete ae.afternoon}})(R),R}}return function(m,_,x){x.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(u=m.parseTwoDigitYear);var $=_.prototype,k=$.parse;$.parse=function(S){var E=S.date,M=S.utc,T=S.args;this.$u=M;var D=T[1];if(typeof D=="string"){var L=T[2]===!0,R=T[3]===!0,F=L||R,O=T[2];R&&(O=T[2]),c=this.$locale(),!L&&O&&(c=x.Ls[O]),this.$d=(function(te,me,ae,Ce){try{if(["x","X"].indexOf(me)>-1)return new Date((me==="X"?1e3:1)*te);var oe=C(me)(te),Se=oe.year,Ee=oe.month,Be=oe.day,ye=oe.hours,Ze=oe.minutes,at=oe.seconds,Ae=oe.milliseconds,st=oe.zone,Xt=oe.week,We=new Date,Pt=Be||(Se||Ee?1:We.getDate()),nt=Se||We.getFullYear(),lt=0;Se&&!Ee||(lt=Ee>0?Ee-1:We.getMonth());var ct,dt=ye||0,ht=Ze||0,Mt=at||0,zt=Ae||0;return st?new Date(Date.UTC(nt,lt,Pt,dt,ht,Mt,zt+60*st.offset*1e3)):ae?new Date(Date.UTC(nt,lt,Pt,dt,ht,Mt,zt)):(ct=new Date(nt,lt,Pt,dt,ht,Mt,zt),Xt&&(ct=Ce(ct).week(Xt).toDate()),ct)}catch(Ie){return new Date("")}})(E,D,M,x),this.init(),O&&O!==!0&&(this.$L=this.locale(O).$L),F&&E!=this.format(D)&&(this.$d=new Date("")),c={}}else if(D instanceof Array)for(var Q=D.length,ee=1;ee<=Q;ee+=1){T[1]=D[ee-1];var q=x.apply(this,T);if(q.isValid()){this.$d=q.$d,this.$L=q.$L,this.init();break}ee===Q&&(this.$d=new Date(""))}else k.call(this,S)}}}))})(Ut)),Ut.exports}var bs=ms();const vs=At(bs);var qt={exports:{}},_s=qt.exports,mr;function ys(){return mr||(mr=1,(function(i,e){(function(t,o){i.exports=o()})(_s,(function(){return function(t,o,r){o.prototype.isBetween=function(a,s,l,c){var u=r(a),h=r(s),f=(c=c||"()")[0]==="(",g=c[1]===")";return(f?this.isAfter(u,l):!this.isBefore(u,l))&&(g?this.isBefore(h,l):!this.isAfter(h,l))||(f?this.isBefore(u,l):!this.isAfter(u,l))&&(g?this.isAfter(h,l):!this.isBefore(h,l))}}}))})(qt)),qt.exports}var ws=ys();const xs=At(ws);var Zt={exports:{}},$s=Zt.exports,br;function ks(){return br||(br=1,(function(i,e){(function(t,o){i.exports=o()})($s,(function(){var t="week",o="year";return function(r,a,s){var l=a.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=s(this).startOf(o).add(1,o).date(u),f=s(this).endOf(t);if(h.isBefore(f))return 1}var g=s(this).startOf(o).date(u).startOf(t).subtract(1,"millisecond"),v=this.diff(g,t,!0);return v<0?s(this).startOf("week").week():Math.ceil(v)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(Zt)),Zt.exports}var Cs=ks();const Ss=At(Cs);var Wt={exports:{}},Es=Wt.exports,vr;function As(){return vr||(vr=1,(function(i,e){(function(t,o){i.exports=o()})(Es,(function(){return function(t,o,r){var a=o.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},l=function(f,g,v,w,C){var m=f.name?f:f.$locale(),_=s(m[g]),x=s(m[v]),$=_||x.map((function(S){return S.slice(0,w)}));if(!C)return $;var k=m.weekStart;return $.map((function(S,E){return $[(E+(k||0))%7]}))},c=function(){return r.Ls[r.locale()]},u=function(f,g){return f.formats[g]||(function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(w,C,m){return C||m.slice(1)}))})(f.formats[g.toUpperCase()])},h=function(){var f=this;return{months:function(g){return g?g.format("MMMM"):l(f,"months")},monthsShort:function(g){return g?g.format("MMM"):l(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):l(f,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):l(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):l(f,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return u(f.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return h.bind(this)()},r.localeData=function(){var f=c();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(g){return u(f,g)},meridiem:f.meridiem,ordinal:f.ordinal}},r.months=function(){return l(c(),"months")},r.monthsShort=function(){return l(c(),"monthsShort","months",3)},r.weekdays=function(f){return l(c(),"weekdays",null,null,f)},r.weekdaysShort=function(f){return l(c(),"weekdaysShort","weekdays",3,f)},r.weekdaysMin=function(f){return l(c(),"weekdaysMin","weekdays",2,f)}}}))})(Wt)),Wt.exports}var Ps=As();const Ms=At(Ps);var Kt={exports:{}},zs=Kt.exports,_r;function Ds(){return _r||(_r=1,(function(i,e){(function(t,o){i.exports=o(A)})(zs,(function(t){function o(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var r=o(t),a={name:"tr",weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(s){return s+"."}};return r.default.locale(a,null,!0),a}))})(Kt)),Kt.exports}Ds(),A.extend(fs),A.extend(vs),A.extend(xs),A.extend(Ss),A.extend(Ms),A.locale("tr");const yr=["DD/MM/YYYY","DD.MM.YYYY","DD MM YYYY","DD-MM-YYYY","DD/MM/YY","DD.MM.YY","DD MM YY","DD-MM-YY","YYYY-MM-DD","YYYY/MM/DD","YYYY.MM.DD","YYYY MM DD"],wr=A.weekdaysShort(),Ts=A.months(),Ls=[...wr.slice(1),wr[0]];function ce(i){if(!i)return null;for(const t of yr){const o=A(i,t,!0);if(o.isValid())return o}const e=A(i);return e.isValid()?e:null}var Os=Object.defineProperty,Bs=Object.getOwnPropertyDescriptor,X=(i,e,t,o)=>{for(var r=o>1?void 0:o?Bs(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&Os(e,t,r),r};n.LogosphereCalendar=class extends P{constructor(){super(...arguments),this.value=null,this.min=null,this.max=null,this.disabled=!1,this.rangeMode=!1,this.disabledDays=[],this.rangeStart=null,this.rangeEnd=null,this.closable=!1,this._cursor=A(),this._rangeStart=null,this._rangeEnd=null,this._hoverDate=null,this._viewMode="calendar",this._clear=()=>{this._emitChange(null),this.rangeMode&&(this._rangeStart=null,this._rangeEnd=null,this._emitStateChange())},this._today=()=>{const e=A();this._withinBounds(e)&&this._select(e)},this._navigatePrevious=()=>{switch(this._viewMode){case"calendar":this._cursor=this._cursor.subtract(1,"month");break;case"month":this._cursor=this._cursor.subtract(1,"year");break;case"year":this._cursor=this._cursor.subtract(12,"year");break}},this._navigateNext=()=>{switch(this._viewMode){case"calendar":this._cursor=this._cursor.add(1,"month");break;case"month":this._cursor=this._cursor.add(1,"year");break;case"year":this._cursor=this._cursor.add(12,"year");break}},this._handleHeaderClick=()=>{this._viewMode==="calendar"?this._viewMode="month":this._viewMode==="month"&&(this._viewMode="year")}}willUpdate(e){var t,o,r,a;if(e.has("value")&&!this.rangeMode){const s=ce(this.value);s&&(this._cursor=s)}e.has("rangeStart")&&(this._rangeStart=this.rangeStart),e.has("rangeEnd")&&(this._rangeEnd=this.rangeEnd),(e.has("rangeStart")||e.has("rangeEnd"))&&this.rangeMode&&(this._cursor=(a=(r=(t=ce(this.rangeEnd))==null?void 0:t.clone())!=null?r:(o=ce(this.rangeStart))==null?void 0:o.clone())!=null?a:this._cursor)}focusGrid(){var e;(e=this.renderRoot.querySelector("#grid"))==null||e.focus()}_emitStateChange(){this.dispatchEvent(new CustomEvent("calendar-state-change",{detail:{rangeStart:this._rangeStart,rangeEnd:this._rangeEnd}}))}_emitChange(e){var t;this.value=e,this.dispatchEvent(new CustomEvent("change",{detail:{value:e}})),(t=this.onChange)==null||t.call(this,e)}_emitRangeChange(){var t;if(!this._rangeStart||!this._rangeEnd)return;const e={start:this._rangeStart,end:this._rangeEnd};this.dispatchEvent(new CustomEvent("rangeChange",{detail:e})),(t=this.onRangeChange)==null||t.call(this,e)}_withinBounds(e){const t=ce(this.min),o=ce(this.max);return!(t&&e.isBefore(t,"day")||o&&e.isAfter(o,"day")||this.disabledDays.includes(e.day()))}_getYears(){const e=this._cursor.year()-6;return Array.from({length:12},(t,o)=>e+o)}_getHeaderLabel(){switch(this._viewMode){case"calendar":return this._cursor.format("MMMM YYYY");case"month":return this._cursor.format("YYYY");case"year":{const e=this._getYears();return`${e[0]}-${e[e.length-1]}`}}}_daysInGrid(){const e=this._cursor.startOf("month"),t=e.subtract((e.day()+6)%7,"day");return Array.from({length:42},(o,r)=>t.add(r,"day"))}_isInRange(e){if(!this.rangeMode||!this._rangeStart||!this._rangeEnd)return null;const t=ce(this._rangeStart),o=ce(this._rangeEnd);return!t||!o?null:e.isSame(t,"day")?"start":e.isSame(o,"day")?"end":e.isBetween(t,o,"day","[]")?"between":null}_getHoverPreview(e){if(!this.rangeMode||!this._rangeStart||this._rangeEnd||!this._hoverDate)return null;const t=ce(this._rangeStart);if(!t)return null;const o=this._hoverDate,r=o.isAfter(t,"day"),a=r?t:o,s=r?o:t;return e.isSame(t,"day")?"preview-start":e.isSame(o,"day")?"preview-end":e.isAfter(a,"day")&&e.isBefore(s,"day")?"preview-between":null}_getDayClasses(e){const t=["dp__day"];if(!this._withinBounds(e))return t.push(this.disabledDays.includes(e.day())?"dp__day--disabled-weekday":"dp__day--disabled"),t.join(" ");const o=this._isInRange(e);if(o==="start")return t.push("dp__day--range-start"),t.join(" ");if(o==="end")return t.push("dp__day--range-end"),t.join(" ");if(o==="between")return t.push("dp__day--range-between"),t.join(" ");const r=this._getHoverPreview(e);return r==="preview-start"?(t.push("dp__day--range-start"),t.join(" ")):r==="preview-end"?(t.push("dp__day--range-end"),t.join(" ")):r==="preview-between"?(t.push("dp__day--range-between"),t.join(" ")):this.rangeMode&&this._rangeStart&&!this._rangeEnd&&e.isSame(ce(this._rangeStart),"day")?(t.push("dp__day--range-pending"),t.join(" ")):(e.isSame(ce(this.value),"day")?t.push("dp__day--selected"):e.isSame(A(),"day")?t.push("dp__day--today"):t.push("dp__day--default"),t.join(" "))}_select(e){if(!(this.disabled||!this._withinBounds(e))){if(this.rangeMode){if(!this._rangeStart){this._rangeStart=e.format("YYYY-MM-DD"),this._cursor=e,this._emitStateChange();return}if(!this._rangeEnd){const t=ce(this._rangeStart);t&&e.isBefore(t,"day")?(this._rangeEnd=this._rangeStart,this._rangeStart=e.format("YYYY-MM-DD")):this._rangeEnd=e.format("YYYY-MM-DD"),this._cursor=e,this._viewMode="calendar",this._emitStateChange(),this._emitRangeChange();return}this._rangeStart=e.format("YYYY-MM-DD"),this._rangeEnd=null,this._cursor=e,this._emitStateChange();return}this._emitChange(e.format("YYYY-MM-DD")),this._cursor=e,this._viewMode="calendar"}}_selectMonth(e){this._cursor=this._cursor.month(e),this._viewMode="calendar"}_selectYear(e){this._cursor=this._cursor.year(e),this._viewMode="month"}_keydownGrid(e){const t={ArrowLeft:-1,ArrowRight:1,ArrowUp:-7,ArrowDown:7};e.key in t?(e.preventDefault(),this._cursor=this._cursor.add(t[e.key],"day")):e.key==="Enter"||e.key===" "?(e.preventDefault(),this._select(this._cursor)):e.key==="Escape"&&this.closable?(e.preventDefault(),this.dispatchEvent(new CustomEvent("close-request"))):e.key==="PageUp"?(e.preventDefault(),this._cursor=e.shiftKey?this._cursor.subtract(1,"year"):this._cursor.subtract(1,"month")):e.key==="PageDown"?(e.preventDefault(),this._cursor=e.shiftKey?this._cursor.add(1,"year"):this._cursor.add(1,"month")):e.key==="Home"?(e.preventDefault(),this._cursor=this._cursor.startOf("month")):e.key==="End"&&(e.preventDefault(),this._cursor=this._cursor.endOf("month"))}_renderCalendar(e){const t=this._daysInGrid();return p`
726
894
  <div class="dp__weekdays" role="row">
727
- ${Ma.map(o=>u`<div class="dp__weekday" role="columnheader" aria-label=${o}>${o}</div>`)}
895
+ ${Ls.map(o=>p`<div class="dp__weekday" role="columnheader" aria-label=${o}>${o}</div>`)}
728
896
  </div>
729
897
  <div
730
898
  id="grid"
@@ -735,13 +903,13 @@
735
903
  @keydown=${this._keydownGrid}
736
904
  @mouseleave=${()=>{this._hoverDate=null}}
737
905
  >
738
- ${t.map(o=>{const r=o.month()===this._cursor.month(),s=e?o.isSame(e,"day"):!1,a=o.isSame(this._cursor,"day"),l=!this._withinBounds(o),c=[this._getDayClasses(o),r?"":"dp__day--out-of-month",a?"dp__day--focused":""].filter(Boolean).join(" ");return u`
906
+ ${t.map(o=>{const r=o.month()===this._cursor.month(),a=e?o.isSame(e,"day"):!1,s=o.isSame(this._cursor,"day"),l=!this._withinBounds(o),c=[this._getDayClasses(o),r?"":"dp__day--out-of-month",s?"dp__day--focused":""].filter(Boolean).join(" ");return p`
739
907
  <button
740
908
  class=${c}
741
909
  role="gridcell"
742
- aria-selected=${s?"true":"false"}
910
+ aria-selected=${a?"true":"false"}
743
911
  aria-disabled=${l?"true":"false"}
744
- tabindex=${a?"0":"-1"}
912
+ tabindex=${s?"0":"-1"}
745
913
  @click=${()=>!l&&this._select(o)}
746
914
  @mouseenter=${()=>{this.rangeMode&&this._rangeStart&&!this._rangeEnd&&(this._hoverDate=o)}}
747
915
  >
@@ -749,9 +917,9 @@
749
917
  </button>
750
918
  `})}
751
919
  </div>
752
- `}_renderMonthGrid(){return u`
920
+ `}_renderMonthGrid(){return p`
753
921
  <div class="dp__month-grid" role="grid" aria-label="Ay seçimi">
754
- ${Aa.map((e,t)=>{const o=t===this._cursor.month(),r=t===A().month()&&this._cursor.year()===A().year();return u`
922
+ ${Ts.map((e,t)=>{const o=t===this._cursor.month(),r=t===A().month()&&this._cursor.year()===A().year();return p`
755
923
  <button
756
924
  class="dp__month-btn ${o?"dp__month-btn--selected":""} ${r&&!o?"dp__month-btn--current":""}"
757
925
  role="gridcell"
@@ -762,9 +930,9 @@
762
930
  </button>
763
931
  `})}
764
932
  </div>
765
- `}_renderYearGrid(){return u`
933
+ `}_renderYearGrid(){return p`
766
934
  <div class="dp__year-grid" role="grid" aria-label="Yıl seçimi">
767
- ${this._getYears().map(e=>{const t=e===this._cursor.year(),o=e===A().year();return u`
935
+ ${this._getYears().map(e=>{const t=e===this._cursor.year(),o=e===A().year();return p`
768
936
  <button
769
937
  class="dp__year-btn ${t?"dp__year-btn--selected":""} ${o&&!t?"dp__year-btn--current":""}"
770
938
  role="gridcell"
@@ -775,7 +943,7 @@
775
943
  </button>
776
944
  `})}
777
945
  </div>
778
- `}render(){const e=ne(this.value);return u`
946
+ `}render(){const e=ce(this.value);return p`
779
947
  <div class="dp__calendar">
780
948
  <div class="dp__header">
781
949
  <button class="dp__nav-btn" @click=${this._navigatePrevious} aria-label="Önceki">
@@ -798,7 +966,7 @@
798
966
  <button class="dp__footer-btn" @click=${this._clear} aria-label="Temizle">
799
967
  <ui-icon name="uil-trash" size="14"></ui-icon>
800
968
  </button>
801
- ${this.closable?u`
969
+ ${this.closable?p`
802
970
  <button
803
971
  class="dp__footer-btn"
804
972
  @click=${()=>this.dispatchEvent(new CustomEvent("close-request"))}
@@ -809,7 +977,7 @@
809
977
  `:null}
810
978
  </div>
811
979
  </div>
812
- `}},n.LogosphereCalendar.styles=[R`${H(sa)}`],G([d({type:String})],n.LogosphereCalendar.prototype,"value",2),G([d({type:String})],n.LogosphereCalendar.prototype,"min",2),G([d({type:String})],n.LogosphereCalendar.prototype,"max",2),G([d({type:Boolean})],n.LogosphereCalendar.prototype,"disabled",2),G([d({type:Boolean})],n.LogosphereCalendar.prototype,"rangeMode",2),G([d({type:Array})],n.LogosphereCalendar.prototype,"disabledDays",2),G([d({type:String})],n.LogosphereCalendar.prototype,"rangeStart",2),G([d({type:String})],n.LogosphereCalendar.prototype,"rangeEnd",2),G([d({type:Boolean})],n.LogosphereCalendar.prototype,"closable",2),G([d({attribute:!1})],n.LogosphereCalendar.prototype,"onChange",2),G([d({attribute:!1})],n.LogosphereCalendar.prototype,"onRangeChange",2),G([y()],n.LogosphereCalendar.prototype,"_cursor",2),G([y()],n.LogosphereCalendar.prototype,"_rangeStart",2),G([y()],n.LogosphereCalendar.prototype,"_rangeEnd",2),G([y()],n.LogosphereCalendar.prototype,"_hoverDate",2),G([y()],n.LogosphereCalendar.prototype,"_viewMode",2),n.LogosphereCalendar=G([V("logosphere-calendar")],n.LogosphereCalendar);const za=".dp{display:block;position:relative;width:100%;font-family:var(--font-family-base)}.dp__field,.dp__reference{width:100%}.dp__input{width:100%;border:none;outline:none;background:transparent;font-size:var(--font-size-sm);font-family:var(--font-family-base);color:var(--color-body-text);line-height:1.5}.dp__input::placeholder{color:var(--color-tertiary)}.dp__input:disabled{cursor:not-allowed}.dp__icon-btn{border:none;background:transparent;color:var(--color-gray-400);cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center;line-height:1;transition:color var(--transition-speed-fast) var(--transition-timing)}.dp__icon-btn_suffix{padding-right:var(--spacing-1)}.dp__icon-btn:hover{color:var(--color-gray-600)}.dp__icon-btn:disabled{cursor:not-allowed;opacity:.5}.dp__popup{background-color:var(--color-body-bg);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);z-index:var(--z-index-dropdown);padding:var(--spacing-4);box-sizing:border-box;overflow:hidden;max-height:calc(100vh - 16px)}";var Pa=Object.defineProperty,La=Object.getOwnPropertyDescriptor,T=(i,e,t,o)=>{for(var r=o>1?void 0:o?La(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Pa(e,t,r),r};let Oa=0;const Ba=()=>`dp-${++Oa}`;n.LogosphereDatePicker=class extends D{constructor(){super(...arguments),this.value=null,this.min=null,this.max=null,this.required=!1,this.disabled=!1,this.readonly=!1,this.expandFactor=1.05,this.placeholder="GG/AA/YYYY veya GG.AA.YYYY",this.label="",this.helper="",this.error="",this.size="default",this.variant="default",this.rangeMode=!1,this.disabledDays=[],this.rangeStart=null,this.rangeEnd=null,this._open=!1,this._rangeStart=null,this._rangeEnd=null,this._hasError=!1,this._errorMsg="",this._inputDraft=null,this._errorTimer=null,this.inputId=Ba(),this._outsideClick=e=>{this._open&&(e.composedPath().includes(this)||(this._parseAndSetDate(),this._toggleOpen(!1)))},this._openDropdown=()=>{this._toggleOpen(!0)},this._onBlur=()=>{this._parseAndSetDate()}}willUpdate(e){e.has("rangeStart")&&(this._rangeStart=this.rangeStart),e.has("rangeEnd")&&(this._rangeEnd=this.rangeEnd),e.has("value")&&!this._isInputFocused()&&(this._inputDraft=null)}connectedCallback(){super.connectedCallback(),window.addEventListener("click",this._outsideClick,!0)}disconnectedCallback(){window.removeEventListener("click",this._outsideClick,!0),this._destroyPopper(),this._errorTimer&&clearTimeout(this._errorTimer),super.disconnectedCallback()}updated(e){if(super.updated(e),e.has("_open")){this._open?this._updatePopper():this._destroyPopper();return}this._open&&this._updatePopper()}_safeDay(e){return ne(e)}_isInputFocused(){var e;return((e=this.shadowRoot)==null?void 0:e.activeElement)===this._inputElement}_withinBounds(e){const t=this._safeDay(this.min),o=this._safeDay(this.max);return!(t&&e.isBefore(t,"day")||o&&e.isAfter(o,"day")||this.disabledDays.includes(e.day()))}_displayValue(){if(this.rangeMode&&this._rangeStart&&this._rangeEnd){const t=this._safeDay(this._rangeStart),o=this._safeDay(this._rangeEnd);if(t&&o)return`${t.format("DD/MM/YYYY")} - ${o.format("DD/MM/YYYY")}`}const e=this._safeDay(this.value);return e?e.format("DD/MM/YYYY"):""}_inputValue(){var e;return(e=this._inputDraft)!=null?e:this._displayValue()}_emitChange(e){var t;this.value=e,this.dispatchEvent(new CustomEvent("change",{detail:{value:e}})),(t=this.onChange)==null||t.call(this,e)}_emitRangeChange(){var t;if(!this._rangeStart||!this._rangeEnd)return;const e={start:this._rangeStart,end:this._rangeEnd};this.dispatchEvent(new CustomEvent("rangeChange",{detail:e})),(t=this.onRangeChange)==null||t.call(this,e)}_showInputError(e){this._errorTimer&&clearTimeout(this._errorTimer),this._hasError=!0,this._errorMsg=e,this._errorTimer=setTimeout(()=>this._clearInputError(),3e3)}_clearInputError(){this._hasError=!1,this._errorMsg="",this._errorTimer&&(clearTimeout(this._errorTimer),this._errorTimer=null)}_toggleOpen(e){if(this.disabled)return;const t=e!=null?e:!this._open;this._open=t,t&&this.updateComplete.then(()=>this._updatePopper())}_onInput(e){const t=e.target.value;this._inputDraft=t,t.trim()||(this._emitChange(null),this.rangeMode&&(this._rangeStart=null,this._rangeEnd=null)),this._clearInputError()}_parseSingleDate(e){for(const t of br){const o=A(e,t,!0);if(o.isValid())return o}return this._safeDay(e)}_parseRangeInput(e){const t=e.split(/\s+-\s+/);if(t.length!==2)return null;const o=this._parseSingleDate(t[0].trim()),r=this._parseSingleDate(t[1].trim());return!o||!r?null:o.isAfter(r,"day")?{start:r,end:o}:{start:o,end:r}}_onKeydown(e){(e.key==="Tab"||e.key==="Enter")&&this._parseAndSetDate()}_parseAndSetDate(){const e=this._inputElement;if(!e)return;const t=e.value.trim();if(!t){if(this.rangeMode&&this._rangeStart&&!this._rangeEnd)return;this._emitChange(null),this.rangeMode&&(this._rangeStart=null,this._rangeEnd=null),this._inputDraft=null;return}if(this.rangeMode){const r=this._parseRangeInput(t);if(r){if(this._withinBounds(r.start)&&this._withinBounds(r.end)){this._rangeStart=r.start.format("YYYY-MM-DD"),this._rangeEnd=r.end.format("YYYY-MM-DD"),this._inputDraft=null,this._clearInputError(),this._emitRangeChange();return}this._showInputError("Seçilen aralık sınırlar dışında.");return}const s=this._parseSingleDate(t);if(s&&this._withinBounds(s)){this._rangeStart=s.format("YYYY-MM-DD"),this._rangeEnd=null,this._inputDraft=null,this._clearInputError();return}this._showInputError("Geçersiz aralık formatı. Örnek: 19/09/2025 - 25/09/2025");return}const o=this._parseSingleDate(t);o&&this._withinBounds(o)?(this._emitChange(o.format("YYYY-MM-DD")),this._inputDraft=null,this._clearInputError()):this._showInputError("Geçersiz tarih formatı. Örnek: 19/09/2025")}_updatePopper(){if(!this._open||!this.isConnected)return;const e=this._referenceElement,t=this._popupElement;if(!e||!t)return;const o=Math.max(270,Math.round(e.getBoundingClientRect().width*(this.expandFactor||1)));if(t.style.width=`${o}px`,this._popperInstance){this._popperInstance.setOptions({placement:"bottom",strategy:"fixed",modifiers:this._getPopperModifiers()}),this._popperInstance.update();return}this._popperInstance=Yt(e,t,{placement:"bottom",strategy:"fixed",modifiers:this._getPopperModifiers()})}_getPopperModifiers(){return[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:8}},{name:"flip",options:{padding:8,fallbackPlacements:["top-start","right-start","left-start","bottom-end","top-end","right-end","left-end"]}}]}_destroyPopper(){this._popperInstance&&(this._popperInstance.destroy(),this._popperInstance=void 0)}_handleCalendarChange(e){this._emitChange(e.detail.value),this._inputDraft=null,this._toggleOpen(!1)}_handleCalendarRangeChange(e){this._rangeStart=e.detail.start,this._rangeEnd=e.detail.end,this._inputDraft=null,this._emitRangeChange(),this._toggleOpen(!1)}_handleCalendarStateChange(e){this._rangeStart=e.detail.rangeStart,this._rangeEnd=e.detail.rangeEnd}_handleSuffixClick(e){var t;e.stopPropagation(),this._openDropdown(),(t=this._inputElement)==null||t.focus()}_handleClearClick(e){var t;e.stopPropagation(),this._emitChange(null),this._rangeStart=null,this._rangeEnd=null,this._inputDraft=null,this._clearInputError(),(t=this._inputElement)==null||t.focus()}render(){const e=this.error||(this._hasError?this._errorMsg:""),t=!!this._displayValue();return u`
980
+ `}},n.LogosphereCalendar.styles=[H`${I(ds)}`],X([d({type:String})],n.LogosphereCalendar.prototype,"value",2),X([d({type:String})],n.LogosphereCalendar.prototype,"min",2),X([d({type:String})],n.LogosphereCalendar.prototype,"max",2),X([d({type:Boolean})],n.LogosphereCalendar.prototype,"disabled",2),X([d({type:Boolean})],n.LogosphereCalendar.prototype,"rangeMode",2),X([d({type:Array})],n.LogosphereCalendar.prototype,"disabledDays",2),X([d({type:String})],n.LogosphereCalendar.prototype,"rangeStart",2),X([d({type:String})],n.LogosphereCalendar.prototype,"rangeEnd",2),X([d({type:Boolean})],n.LogosphereCalendar.prototype,"closable",2),X([d({attribute:!1})],n.LogosphereCalendar.prototype,"onChange",2),X([d({attribute:!1})],n.LogosphereCalendar.prototype,"onRangeChange",2),X([y()],n.LogosphereCalendar.prototype,"_cursor",2),X([y()],n.LogosphereCalendar.prototype,"_rangeStart",2),X([y()],n.LogosphereCalendar.prototype,"_rangeEnd",2),X([y()],n.LogosphereCalendar.prototype,"_hoverDate",2),X([y()],n.LogosphereCalendar.prototype,"_viewMode",2),n.LogosphereCalendar=X([V("logosphere-calendar")],n.LogosphereCalendar);const Is=".dp{display:block;position:relative;width:100%;font-family:var(--font-family-base)}.dp__field,.dp__reference{width:100%}.dp__input{width:100%;border:none;outline:none;background:transparent;font-size:var(--font-size-sm);font-family:var(--font-family-base);color:var(--color-body-text);line-height:1.5}.dp__input::placeholder{color:var(--color-tertiary)}.dp__input:disabled{cursor:not-allowed}.dp__icon-btn{border:none;background:transparent;color:var(--color-gray-400);cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center;line-height:1;transition:color var(--transition-speed-fast) var(--transition-timing)}.dp__icon-btn_suffix{padding-right:var(--spacing-1)}.dp__icon-btn:hover{color:var(--color-gray-600)}.dp__icon-btn:disabled{cursor:not-allowed;opacity:.5}.dp__popup{background-color:var(--color-body-bg);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);z-index:var(--z-index-dropdown);padding:var(--spacing-4);box-sizing:border-box;overflow:hidden;max-height:calc(100vh - 16px)}";var Hs=Object.defineProperty,Rs=Object.getOwnPropertyDescriptor,z=(i,e,t,o)=>{for(var r=o>1?void 0:o?Rs(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&Hs(e,t,r),r};let Ys=0;const js=()=>`dp-${++Ys}`;n.LogosphereDatePicker=class extends P{constructor(){super(...arguments),this.value=null,this.min=null,this.max=null,this.required=!1,this.disabled=!1,this.readonly=!1,this.expandFactor=1.05,this.placeholder="GG/AA/YYYY veya GG.AA.YYYY",this.label="",this.helper="",this.error="",this.size="default",this.variant="default",this.rangeMode=!1,this.disabledDays=[],this.rangeStart=null,this.rangeEnd=null,this._open=!1,this._rangeStart=null,this._rangeEnd=null,this._hasError=!1,this._errorMsg="",this._inputDraft=null,this._errorTimer=null,this.inputId=js(),this._outsideClick=e=>{this._open&&(e.composedPath().includes(this)||(this._parseAndSetDate(),this._toggleOpen(!1)))},this._openDropdown=()=>{this._toggleOpen(!0)},this._onBlur=()=>{this._parseAndSetDate()}}willUpdate(e){e.has("rangeStart")&&(this._rangeStart=this.rangeStart),e.has("rangeEnd")&&(this._rangeEnd=this.rangeEnd),e.has("value")&&!this._isInputFocused()&&(this._inputDraft=null)}connectedCallback(){super.connectedCallback(),window.addEventListener("click",this._outsideClick,!0)}disconnectedCallback(){window.removeEventListener("click",this._outsideClick,!0),this._destroyPopper(),this._errorTimer&&clearTimeout(this._errorTimer),super.disconnectedCallback()}updated(e){if(super.updated(e),e.has("_open")){this._open?this._updatePopper():this._destroyPopper();return}this._open&&this._updatePopper()}_safeDay(e){return ce(e)}_isInputFocused(){var e;return((e=this.shadowRoot)==null?void 0:e.activeElement)===this._inputElement}_withinBounds(e){const t=this._safeDay(this.min),o=this._safeDay(this.max);return!(t&&e.isBefore(t,"day")||o&&e.isAfter(o,"day")||this.disabledDays.includes(e.day()))}_displayValue(){if(this.rangeMode&&this._rangeStart&&this._rangeEnd){const t=this._safeDay(this._rangeStart),o=this._safeDay(this._rangeEnd);if(t&&o)return`${t.format("DD/MM/YYYY")} - ${o.format("DD/MM/YYYY")}`}const e=this._safeDay(this.value);return e?e.format("DD/MM/YYYY"):""}_inputValue(){var e;return(e=this._inputDraft)!=null?e:this._displayValue()}_emitChange(e){var t;this.value=e,this.dispatchEvent(new CustomEvent("change",{detail:{value:e}})),(t=this.onChange)==null||t.call(this,e)}_emitRangeChange(){var t;if(!this._rangeStart||!this._rangeEnd)return;const e={start:this._rangeStart,end:this._rangeEnd};this.dispatchEvent(new CustomEvent("rangeChange",{detail:e})),(t=this.onRangeChange)==null||t.call(this,e)}_showInputError(e){this._errorTimer&&clearTimeout(this._errorTimer),this._hasError=!0,this._errorMsg=e,this._errorTimer=setTimeout(()=>this._clearInputError(),3e3)}_clearInputError(){this._hasError=!1,this._errorMsg="",this._errorTimer&&(clearTimeout(this._errorTimer),this._errorTimer=null)}_toggleOpen(e){if(this.disabled)return;const t=e!=null?e:!this._open;this._open=t,t&&this.updateComplete.then(()=>this._updatePopper())}_onInput(e){const t=e.target.value;this._inputDraft=t,t.trim()||(this._emitChange(null),this.rangeMode&&(this._rangeStart=null,this._rangeEnd=null)),this._clearInputError()}_parseSingleDate(e){for(const t of yr){const o=A(e,t,!0);if(o.isValid())return o}return this._safeDay(e)}_parseRangeInput(e){const t=e.split(/\s+-\s+/);if(t.length!==2)return null;const o=this._parseSingleDate(t[0].trim()),r=this._parseSingleDate(t[1].trim());return!o||!r?null:o.isAfter(r,"day")?{start:r,end:o}:{start:o,end:r}}_onKeydown(e){(e.key==="Tab"||e.key==="Enter")&&this._parseAndSetDate()}_parseAndSetDate(){const e=this._inputElement;if(!e)return;const t=e.value.trim();if(!t){if(this.rangeMode&&this._rangeStart&&!this._rangeEnd)return;this._emitChange(null),this.rangeMode&&(this._rangeStart=null,this._rangeEnd=null),this._inputDraft=null;return}if(this.rangeMode){const r=this._parseRangeInput(t);if(r){if(this._withinBounds(r.start)&&this._withinBounds(r.end)){this._rangeStart=r.start.format("YYYY-MM-DD"),this._rangeEnd=r.end.format("YYYY-MM-DD"),this._inputDraft=null,this._clearInputError(),this._emitRangeChange();return}this._showInputError("Seçilen aralık sınırlar dışında.");return}const a=this._parseSingleDate(t);if(a&&this._withinBounds(a)){this._rangeStart=a.format("YYYY-MM-DD"),this._rangeEnd=null,this._inputDraft=null,this._clearInputError();return}this._showInputError("Geçersiz aralık formatı. Örnek: 19/09/2025 - 25/09/2025");return}const o=this._parseSingleDate(t);o&&this._withinBounds(o)?(this._emitChange(o.format("YYYY-MM-DD")),this._inputDraft=null,this._clearInputError()):this._showInputError("Geçersiz tarih formatı. Örnek: 19/09/2025")}_updatePopper(){if(!this._open||!this.isConnected)return;const e=this._referenceElement,t=this._popupElement;if(!e||!t)return;const o=Math.max(270,Math.round(e.getBoundingClientRect().width*(this.expandFactor||1)));if(t.style.width=`${o}px`,this._popperInstance){this._popperInstance.setOptions({placement:"bottom",strategy:"fixed",modifiers:this._getPopperModifiers()}),this._popperInstance.update();return}this._popperInstance=Vt(e,t,{placement:"bottom",strategy:"fixed",modifiers:this._getPopperModifiers()})}_getPopperModifiers(){return[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:8}},{name:"flip",options:{padding:8,fallbackPlacements:["top-start","right-start","left-start","bottom-end","top-end","right-end","left-end"]}}]}_destroyPopper(){this._popperInstance&&(this._popperInstance.destroy(),this._popperInstance=void 0)}_handleCalendarChange(e){this._emitChange(e.detail.value),this._inputDraft=null,this._toggleOpen(!1)}_handleCalendarRangeChange(e){this._rangeStart=e.detail.start,this._rangeEnd=e.detail.end,this._inputDraft=null,this._emitRangeChange(),this._toggleOpen(!1)}_handleCalendarStateChange(e){this._rangeStart=e.detail.rangeStart,this._rangeEnd=e.detail.rangeEnd}_handleSuffixClick(e){var t;e.stopPropagation(),this._openDropdown(),(t=this._inputElement)==null||t.focus()}_handleClearClick(e){var t;e.stopPropagation(),this._emitChange(null),this._rangeStart=null,this._rangeEnd=null,this._inputDraft=null,this._clearInputError(),(t=this._inputElement)==null||t.focus()}render(){const e=this.error||(this._hasError?this._errorMsg:""),t=!!this._displayValue();return p`
813
981
  <div class="dp">
814
982
  <div class="dp__reference">
815
983
  <logosphere-formfield
@@ -828,7 +996,7 @@
828
996
  <input
829
997
  id=${this.inputId}
830
998
  class="dp__input"
831
- .value=${co(this._inputValue())}
999
+ .value=${Ht(this._inputValue())}
832
1000
  ?disabled=${this.disabled}
833
1001
  ?readonly=${this.readonly}
834
1002
  placeholder=${this.placeholder}
@@ -839,7 +1007,7 @@
839
1007
  @keydown=${this._onKeydown}
840
1008
  @blur=${this._onBlur}
841
1009
  />
842
- ${t?u`
1010
+ ${t?p`
843
1011
  <button
844
1012
  slot="clear"
845
1013
  class="dp__icon-btn dp__icon-btn_suffix"
@@ -849,7 +1017,7 @@
849
1017
  >
850
1018
  <ui-icon name="uil-times" size="14"></ui-icon>
851
1019
  </button>
852
- `:v}
1020
+ `:b}
853
1021
  <button
854
1022
  id=${this.inputId+"-ico"}
855
1023
  slot="suffix"
@@ -865,7 +1033,7 @@
865
1033
  </logosphere-formfield>
866
1034
  </div>
867
1035
 
868
- ${this._open?u`
1036
+ ${this._open?p`
869
1037
  <div
870
1038
  data-datepicker-popper
871
1039
  class="dp__popup"
@@ -889,11 +1057,11 @@
889
1057
  @close-request=${()=>this._toggleOpen(!1)}
890
1058
  ></logosphere-calendar>
891
1059
  </div>
892
- `:v}
1060
+ `:b}
893
1061
  </div>
894
- `}},n.LogosphereDatePicker.styles=[R`
895
- ${H(za)}
896
- `],T([d({type:String})],n.LogosphereDatePicker.prototype,"value",2),T([d({type:String})],n.LogosphereDatePicker.prototype,"min",2),T([d({type:String})],n.LogosphereDatePicker.prototype,"max",2),T([d({type:Boolean})],n.LogosphereDatePicker.prototype,"required",2),T([d({type:Boolean})],n.LogosphereDatePicker.prototype,"disabled",2),T([d({type:Boolean})],n.LogosphereDatePicker.prototype,"readonly",2),T([d({type:Number})],n.LogosphereDatePicker.prototype,"expandFactor",2),T([d({type:String})],n.LogosphereDatePicker.prototype,"placeholder",2),T([d({type:String})],n.LogosphereDatePicker.prototype,"label",2),T([d({type:String})],n.LogosphereDatePicker.prototype,"helper",2),T([d({type:String})],n.LogosphereDatePicker.prototype,"error",2),T([d({type:String})],n.LogosphereDatePicker.prototype,"size",2),T([d({type:String})],n.LogosphereDatePicker.prototype,"variant",2),T([d({type:Boolean})],n.LogosphereDatePicker.prototype,"rangeMode",2),T([d({type:Array})],n.LogosphereDatePicker.prototype,"disabledDays",2),T([d({type:String})],n.LogosphereDatePicker.prototype,"rangeStart",2),T([d({type:String})],n.LogosphereDatePicker.prototype,"rangeEnd",2),T([d({attribute:!1})],n.LogosphereDatePicker.prototype,"onChange",2),T([d({attribute:!1})],n.LogosphereDatePicker.prototype,"onRangeChange",2),T([y()],n.LogosphereDatePicker.prototype,"_open",2),T([y()],n.LogosphereDatePicker.prototype,"_rangeStart",2),T([y()],n.LogosphereDatePicker.prototype,"_rangeEnd",2),T([y()],n.LogosphereDatePicker.prototype,"_hasError",2),T([y()],n.LogosphereDatePicker.prototype,"_errorMsg",2),T([y()],n.LogosphereDatePicker.prototype,"_inputDraft",2),T([Z(".dp__reference")],n.LogosphereDatePicker.prototype,"_referenceElement",2),T([Z("[data-datepicker-popper]")],n.LogosphereDatePicker.prototype,"_popupElement",2),T([Z("input")],n.LogosphereDatePicker.prototype,"_inputElement",2),n.LogosphereDatePicker=T([V("logosphere-datepicker")],n.LogosphereDatePicker);const Ia=":host{display:block}.drawer{position:relative;font-family:var(--font-family-base)}.drawer__trigger{display:inline-flex}.drawer__panel{position:fixed;top:0;bottom:0;width:var(--drawer-width, 360px);max-width:min(100vw,var(--drawer-width, 360px));background:var(--color-body-bg);border-left:1px solid var(--color-border);box-shadow:var(--shadow-lg);z-index:var(--z-index-modal);display:flex;flex-direction:column;pointer-events:none;opacity:0;transition:transform var(--transition-speed-slow) var(--transition-timing),opacity var(--transition-speed-slow) linear}.drawer__panel--right{right:0;transform:translate(100%)}.drawer__panel--left{left:0;transform:translate(-100%);border-left:none;border-right:1px solid var(--color-border)}.drawer__panel--open{transform:translate(0);pointer-events:auto;opacity:1}.drawer__header{padding:var(--spacing-3) var(--spacing-4);border-bottom:1px solid var(--color-border);display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-2)}.drawer__title{margin:0;font-size:var(--font-size-base);font-weight:var(--font-weight-semibold);color:var(--color-body-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.drawer__close{width:28px;height:28px;border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-body-bg);display:inline-flex;align-items:center;justify-content:center;color:var(--color-body-color);cursor:pointer}.drawer__close:hover{background:var(--color-tertiary)}.drawer__body{flex:1;overflow:auto;padding:var(--spacing-4)}";var Ha=Object.defineProperty,Ra=Object.getOwnPropertyDescriptor,Ne=(i,e,t,o)=>{for(var r=o>1?void 0:o?Ra(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Ha(e,t,r),r};n.Drawer=class extends D{constructor(){super(...arguments),this.open=!1,this.title="",this.position="right",this.width=360,this.closeOnEsc=!0,this.containerSelector="",this._frameStyle="",this._onKeyDown=e=>{!this.open||!this.closeOnEsc||(e.key==="Escape"||e.key==="Esc")&&this._setOpen(!1)},this._onTriggerClick=()=>this._setOpen(!0),this._onCloseClick=()=>this._setOpen(!1),this._syncFrame=()=>{const e=this._resolveContainer().getBoundingClientRect(),t=Math.max(0,e.top),o=Math.max(0,window.innerHeight-e.bottom),r=Math.max(0,e.left),s=Math.max(0,window.innerWidth-e.right),a=Math.max(0,e.width);this._frameStyle=this.position==="right"?`top:${t}px;bottom:${o}px;right:${s}px;max-width:${a}px;`:`top:${t}px;bottom:${o}px;left:${r}px;max-width:${a}px;`}}connectedCallback(){super.connectedCallback(),window.addEventListener("keydown",this._onKeyDown,!0),window.addEventListener("resize",this._syncFrame),window.addEventListener("scroll",this._syncFrame,!0),this.updateComplete.then(()=>this._syncFrame())}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keydown",this._onKeyDown,!0),window.removeEventListener("resize",this._syncFrame),window.removeEventListener("scroll",this._syncFrame,!0)}updated(e){(e.has("open")||e.has("position")||e.has("width")||e.has("containerSelector"))&&this._syncFrame()}openDrawer(){this._setOpen(!0)}closeDrawer(){this._setOpen(!1)}_setOpen(e){this.open!==e&&(this.open=e,this.dispatchEvent(new CustomEvent(e?"drawer-open":"drawer-close",{bubbles:!0,composed:!0})))}_resolveContainer(){var e;if(this.containerSelector){const t=this.getRootNode();if("querySelector"in t){const r=t.querySelector(this.containerSelector);if(r)return r}const o=document.querySelector(this.containerSelector);if(o)return o}return(e=this.parentElement)!=null?e:this}render(){return u`
1062
+ `}},n.LogosphereDatePicker.styles=[H`
1063
+ ${I(Is)}
1064
+ `],z([d({type:String})],n.LogosphereDatePicker.prototype,"value",2),z([d({type:String})],n.LogosphereDatePicker.prototype,"min",2),z([d({type:String})],n.LogosphereDatePicker.prototype,"max",2),z([d({type:Boolean})],n.LogosphereDatePicker.prototype,"required",2),z([d({type:Boolean})],n.LogosphereDatePicker.prototype,"disabled",2),z([d({type:Boolean})],n.LogosphereDatePicker.prototype,"readonly",2),z([d({type:Number})],n.LogosphereDatePicker.prototype,"expandFactor",2),z([d({type:String})],n.LogosphereDatePicker.prototype,"placeholder",2),z([d({type:String})],n.LogosphereDatePicker.prototype,"label",2),z([d({type:String})],n.LogosphereDatePicker.prototype,"helper",2),z([d({type:String})],n.LogosphereDatePicker.prototype,"error",2),z([d({type:String})],n.LogosphereDatePicker.prototype,"size",2),z([d({type:String})],n.LogosphereDatePicker.prototype,"variant",2),z([d({type:Boolean})],n.LogosphereDatePicker.prototype,"rangeMode",2),z([d({type:Array})],n.LogosphereDatePicker.prototype,"disabledDays",2),z([d({type:String})],n.LogosphereDatePicker.prototype,"rangeStart",2),z([d({type:String})],n.LogosphereDatePicker.prototype,"rangeEnd",2),z([d({attribute:!1})],n.LogosphereDatePicker.prototype,"onChange",2),z([d({attribute:!1})],n.LogosphereDatePicker.prototype,"onRangeChange",2),z([y()],n.LogosphereDatePicker.prototype,"_open",2),z([y()],n.LogosphereDatePicker.prototype,"_rangeStart",2),z([y()],n.LogosphereDatePicker.prototype,"_rangeEnd",2),z([y()],n.LogosphereDatePicker.prototype,"_hasError",2),z([y()],n.LogosphereDatePicker.prototype,"_errorMsg",2),z([y()],n.LogosphereDatePicker.prototype,"_inputDraft",2),z([Z(".dp__reference")],n.LogosphereDatePicker.prototype,"_referenceElement",2),z([Z("[data-datepicker-popper]")],n.LogosphereDatePicker.prototype,"_popupElement",2),z([Z("input")],n.LogosphereDatePicker.prototype,"_inputElement",2),n.LogosphereDatePicker=z([V("logosphere-datepicker")],n.LogosphereDatePicker);const Ns=":host{display:block}.drawer{position:relative;font-family:var(--font-family-base)}.drawer__trigger{display:inline-flex}.drawer__panel{position:fixed;top:0;bottom:0;width:var(--drawer-width, 360px);max-width:min(100vw,var(--drawer-width, 360px));background:var(--color-body-bg);border-left:1px solid var(--color-border);box-shadow:var(--shadow-lg);z-index:var(--z-index-modal);display:flex;flex-direction:column;pointer-events:none;opacity:0;transition:transform var(--transition-speed-slow) var(--transition-timing),opacity var(--transition-speed-slow) linear}.drawer__panel--right{right:0;transform:translate(100%)}.drawer__panel--left{left:0;transform:translate(-100%);border-left:none;border-right:1px solid var(--color-border)}.drawer__panel--open{transform:translate(0);pointer-events:auto;opacity:1}.drawer__header{padding:var(--spacing-3) var(--spacing-4);border-bottom:1px solid var(--color-border);display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-2)}.drawer__title{margin:0;font-size:var(--font-size-base);font-weight:var(--font-weight-semibold);color:var(--color-body-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.drawer__close{width:28px;height:28px;border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-body-bg);display:inline-flex;align-items:center;justify-content:center;color:var(--color-body-color);cursor:pointer}.drawer__close:hover{background:var(--color-tertiary)}.drawer__body{flex:1;overflow:auto;padding:var(--spacing-4)}";var Vs=Object.defineProperty,Fs=Object.getOwnPropertyDescriptor,qe=(i,e,t,o)=>{for(var r=o>1?void 0:o?Fs(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&Vs(e,t,r),r};n.Drawer=class extends P{constructor(){super(...arguments),this.open=!1,this.title="",this.position="right",this.width=360,this.closeOnEsc=!0,this.containerSelector="",this._frameStyle="",this._onKeyDown=e=>{!this.open||!this.closeOnEsc||(e.key==="Escape"||e.key==="Esc")&&this._setOpen(!1)},this._onTriggerClick=()=>this._setOpen(!0),this._onCloseClick=()=>this._setOpen(!1),this._syncFrame=()=>{const e=this._resolveContainer().getBoundingClientRect(),t=Math.max(0,e.top),o=Math.max(0,window.innerHeight-e.bottom),r=Math.max(0,e.left),a=Math.max(0,window.innerWidth-e.right),s=Math.max(0,e.width);this._frameStyle=this.position==="right"?`top:${t}px;bottom:${o}px;right:${a}px;max-width:${s}px;`:`top:${t}px;bottom:${o}px;left:${r}px;max-width:${s}px;`}}connectedCallback(){super.connectedCallback(),window.addEventListener("keydown",this._onKeyDown,!0),window.addEventListener("resize",this._syncFrame),window.addEventListener("scroll",this._syncFrame,!0),this.updateComplete.then(()=>this._syncFrame())}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keydown",this._onKeyDown,!0),window.removeEventListener("resize",this._syncFrame),window.removeEventListener("scroll",this._syncFrame,!0)}updated(e){(e.has("open")||e.has("position")||e.has("width")||e.has("containerSelector"))&&this._syncFrame()}openDrawer(){this._setOpen(!0)}closeDrawer(){this._setOpen(!1)}_setOpen(e){this.open!==e&&(this.open=e,this.dispatchEvent(new CustomEvent(e?"drawer-open":"drawer-close",{bubbles:!0,composed:!0})))}_resolveContainer(){var e;if(this.containerSelector){const t=this.getRootNode();if("querySelector"in t){const r=t.querySelector(this.containerSelector);if(r)return r}const o=document.querySelector(this.containerSelector);if(o)return o}return(e=this.parentElement)!=null?e:this}render(){return p`
897
1065
  <div class="drawer">
898
1066
  <div class="drawer__trigger" @click=${this._onTriggerClick}>
899
1067
  <slot name="trigger"></slot>
@@ -924,7 +1092,7 @@
924
1092
  </div>
925
1093
  </aside>
926
1094
  </div>
927
- `}},n.Drawer.styles=[R`${H(Ia)}`],Ne([d({type:Boolean,reflect:!0})],n.Drawer.prototype,"open",2),Ne([d({type:String})],n.Drawer.prototype,"title",2),Ne([d({type:String})],n.Drawer.prototype,"position",2),Ne([d({type:Number})],n.Drawer.prototype,"width",2),Ne([d({type:Boolean})],n.Drawer.prototype,"closeOnEsc",2),Ne([d({type:String})],n.Drawer.prototype,"containerSelector",2),n.Drawer=Ne([V("logosphere-drawer")],n.Drawer);const Ya=":host{display:block}.dm{font-family:var(--font-family-base)}.dm__container{width:100%;max-width:896px;margin:0 auto;padding:var(--spacing-6);background-color:var(--color-body-bg);border-radius:var(--radius-base);box-shadow:var(--shadow-md)}.dm__header{margin-bottom:var(--spacing-6)}.dm__title{font-size:var(--font-size-2xl);font-weight:var(--font-weight-bold);color:var(--color-body-text);margin:0 0 var(--spacing-2) 0}.dm__stats{display:flex;gap:var(--spacing-4);font-size:var(--font-size-sm);color:var(--color-tertiary)}.dm__form{margin-bottom:var(--spacing-6);padding:var(--spacing-4);background-color:var(--color-light);border-radius:var(--radius-base)}.dm__form-row{display:flex;gap:var(--spacing-4)}.dm__form-field{flex:1}.dm__form-field--filename{width:192px;flex:none}.dm__input{width:100%;padding:var(--spacing-2) var(--spacing-3);border:1px solid var(--color-border);border-radius:var(--radius-sm);outline:none;font-family:var(--font-family-base);font-size:var(--font-size-sm);background-color:var(--color-body-bg);color:var(--color-body-text);box-sizing:border-box;transition:border-color var(--transition-speed-fast) var(--transition-timing)}.dm__input:focus{border-color:var(--color-primary)}.dm__submit-btn{display:inline-flex;align-items:center;gap:var(--spacing-2);padding:var(--spacing-2) var(--spacing-4);background-color:var(--color-primary);color:#fff;border:none;border-radius:var(--radius-sm);cursor:pointer;font-family:var(--font-family-base);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);transition:background-color var(--transition-speed-fast) var(--transition-timing);white-space:nowrap}.dm__submit-btn:hover:not(:disabled){background-color:var(--color-primary-hover)}.dm__submit-btn:disabled{opacity:.5;cursor:not-allowed}.dm__form-note{margin-top:var(--spacing-3);font-size:var(--font-size-xs);color:var(--color-tertiary)}.dm__form-note p{margin:0}.dm__spinner{display:inline-block;width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-bottom-color:#fff;border-radius:var(--radius-full);animation:dm-spin .8s linear infinite}.dm__spinner--sm{width:12px;height:12px;border-color:#3b82f64d;border-bottom-color:#3b82f6}@keyframes dm-spin{to{transform:rotate(360deg)}}@keyframes dm-pulse{0%,to{opacity:1}50%{opacity:.5}}.dm__list{display:flex;flex-direction:column;gap:var(--spacing-4)}.dm__empty{text-align:center;padding:var(--spacing-8) 0;color:var(--color-tertiary);font-size:var(--font-size-sm)}.dm__item{border:1px solid var(--color-border);border-radius:var(--radius-base);padding:var(--spacing-4)}.dm__item--error{border-color:var(--color-primary-border-subtle);background-color:var(--color-danger-bg-subtle)}.dm__item-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--spacing-3)}.dm__item-info{flex:1;min-width:0}.dm__item-name{font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);color:var(--color-body-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}.dm__item-url{font-size:var(--font-size-xs);color:var(--color-tertiary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}.dm__item-controls{display:flex;align-items:center;gap:var(--spacing-2)}.dm__status{font-size:var(--font-size-xs);padding:var(--spacing-1) var(--spacing-2);border-radius:var(--radius-full);font-weight:var(--font-weight-medium)}.dm__status--downloading{background-color:var(--color-info-bg-subtle);color:var(--color-info-text-emphasis)}.dm__status--paused{background-color:var(--color-warning-bg-subtle);color:var(--color-warning-text-emphasis)}.dm__status--completed{background-color:var(--color-success-bg-subtle);color:var(--color-success-text-emphasis)}.dm__status--error{background-color:var(--color-danger-bg-subtle);color:var(--color-danger-text-emphasis)}.dm__status--pending{background-color:var(--color-gray-100);color:var(--color-gray-800)}.dm__remove-btn{background:none;border:none;cursor:pointer;color:var(--color-tertiary);padding:var(--spacing-1);line-height:1;font-size:var(--font-size-sm);border-radius:var(--radius-sm);transition:color var(--transition-speed-fast) var(--transition-timing)}.dm__remove-btn:hover{color:var(--color-danger)}.dm__progress{margin-bottom:var(--spacing-3)}.dm__progress-labels{display:flex;justify-content:space-between;font-size:var(--font-size-xs);color:var(--color-tertiary);margin-bottom:var(--spacing-1)}.dm__progress-track{width:100%;background-color:var(--color-gray-200);border-radius:var(--radius-full);height:8px;overflow:hidden}.dm__progress-bar{height:8px;border-radius:var(--radius-full);transition:width .3s ease}.dm__progress-bar--downloading{background-color:var(--color-info-active)}.dm__progress-bar--paused{background-color:var(--color-warning-active)}.dm__progress-bar--completed{background-color:var(--color-success)}.dm__progress-bar--error{background-color:var(--color-danger)}.dm__progress-bar--pending{background-color:var(--color-gray-400)}.dm__progress-bar--indeterminate{width:100%;animation:dm-pulse 1.5s ease-in-out infinite}.dm__item-footer{display:flex;justify-content:space-between;font-size:var(--font-size-xs);color:var(--color-tertiary)}.dm__item-speeds{display:flex;gap:var(--spacing-4)}.dm__item-actions{display:flex;gap:var(--spacing-2)}.dm__action-btn{display:inline-flex;align-items:center;gap:var(--spacing-1);padding:var(--spacing-1) var(--spacing-2);border:none;border-radius:var(--radius-sm);background:none;cursor:pointer;font-family:var(--font-family-base);font-size:var(--font-size-xs);transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.dm__action-btn--pause{color:var(--color-info-active)}.dm__action-btn--pause:hover{background-color:var(--color-info-bg-subtle);color:var(--color-info-text-emphasis)}.dm__action-btn--resume{color:var(--color-success)}.dm__action-btn--resume:hover{background-color:var(--color-success-bg-subtle);color:var(--color-success-text-emphasis)}.dm__status-completed{color:var(--color-success)}.dm__error-info{color:var(--color-danger)}.dm__error-label{font-weight:var(--font-weight-medium)}.dm__error-detail{font-size:var(--font-size-xs)}.dm__chunks{margin-top:var(--spacing-3);font-size:var(--font-size-xs);color:var(--color-tertiary);display:flex;flex-direction:column;gap:2px}.dm__actions{margin-top:var(--spacing-6);display:flex;justify-content:space-between;align-items:center}.dm__clear-btn{padding:var(--spacing-2) var(--spacing-4);font-size:var(--font-size-sm);color:var(--color-tertiary);background:none;border:none;cursor:pointer;font-family:var(--font-family-base);transition:color var(--transition-speed-fast) var(--transition-timing)}.dm__clear-btn:hover{color:var(--color-body-text)}.dm__persist-note{font-size:var(--font-size-sm);color:var(--color-tertiary)}";var ja=Object.defineProperty,Fa=Object.getOwnPropertyDescriptor,tt=(i,e,t,o)=>{for(var r=o>1?void 0:o?Fa(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&ja(e,t,r),r};n.DownloadManager=class extends D{constructor(){super(...arguments),this.chunkSize=2*1024*1024,this.maxConcurrentDownloads=3,this.maxConcurrentChunks=4,this.downloads=[],this.isAddingFiles=!1,this.activeDownloads=new Map,this.storageKey="download-manager-state",this.clearCompleted=()=>{this.downloads=this.downloads.filter(e=>e.status!=="completed"),this.requestUpdate(),this.saveState()},this.handleAddDownload=e=>{e.preventDefault();const t=e.target,o=new globalThis.FormData(t),r=o.get("url"),s=o.get("filename");if(!(r!=null&&r.trim()))return;const a=this.downloads.find(l=>l.url===r.trim());a&&a.status!=="error"||(this.addDownload(r.trim(),(s==null?void 0:s.trim())||void 0),t.reset())}}connectedCallback(){super.connectedCallback(),this.loadState(),this.setupVisibilityChangeHandler()}disconnectedCallback(){super.disconnectedCallback(),this.saveState()}setupVisibilityChangeHandler(){document.addEventListener("visibilitychange",()=>{document.hidden&&this.saveState()})}loadState(){try{const e=globalThis.localStorage.getItem(this.storageKey);if(e){const t=JSON.parse(e);this.downloads=t.downloads||[],this.downloads.forEach(o=>{var r;o.status==="downloading"&&(o.status="paused"),o.status==="error"&&((r=o.error)!=null&&r.includes("Failed to fetch"))&&(o.status="paused",o.error=void 0)})}}catch(e){console.error("Failed to load download state:",e)}}saveState(){try{const e={downloads:this.downloads.map(t=>Ee(_e({},t),{status:t.status==="downloading"?"paused":t.status}))};globalThis.localStorage.setItem(this.storageKey,JSON.stringify(e))}catch(e){console.error("Failed to save download state:",e)}}async getFileSize(e){try{const t=await globalThis.fetch(e,{method:"HEAD",mode:"cors",credentials:"omit",signal:globalThis.AbortSignal.timeout(1e4)});if(t.ok){const o=t.headers.get("content-length");if(o){const r=parseInt(o);if(!isNaN(r)&&r>0)return r}}try{const o=await globalThis.fetch(e,{method:"GET",headers:{Range:"bytes=0-0"},mode:"cors",credentials:"omit",signal:globalThis.AbortSignal.timeout(1e4)});if(o.ok){const r=o.headers.get("content-range");if(r){const a=r.match(/\/(\d+)/);if(a){const l=parseInt(a[1]);if(!isNaN(l)&&l>0)return l}}const s=o.headers.get("content-length");if(s){const a=parseInt(s);if(!isNaN(a)&&a>0)return a}}}catch(o){}return 0}catch(t){return(!(t instanceof Error)||!["AbortError","ERR_EMPTY_RESPONSE","Failed to fetch"].some(o=>t.message.includes(o)))&&console.warn("Failed to get file size:",t),0}}createChunks(e){if(e===0)return[{start:0,end:this.chunkSize-1,downloaded:0,status:"pending"}];const t=[];for(let o=0;o<e;o+=this.chunkSize)t.push({start:o,end:Math.min(o+this.chunkSize-1,e-1),downloaded:0,status:"pending"});return t}async downloadChunk(e,t){const o=t.end>t.start?`bytes=${t.start+t.downloaded}-${t.end}`:`bytes=${t.start+t.downloaded}-`,r=await globalThis.fetch(e,{headers:{Range:o},signal:globalThis.AbortSignal.any([new globalThis.AbortController().signal,globalThis.AbortSignal.timeout(6e4)]),mode:"cors",credentials:"omit"});if(!r.ok){if(r.status===416)return{data:new Uint8Array(0),isComplete:!0};throw new Error(`HTTP ${r.status}: ${r.statusText}`)}const s=new Uint8Array(await r.arrayBuffer()),a=r.headers.get("content-range");let l=!1,c;if(a){const p=a.match(/\/(\d+)/);if(p){c=parseInt(p[1]);const h=a.match(/(\d+)-(\d+)/);h&&(l=parseInt(h[2])>=c-1)}}else s.length===0&&(l=!0);return{data:s,isComplete:l,actualSize:c}}async downloadFile(e){const t=new globalThis.AbortController;this.activeDownloads.set(e.id,t);try{e.status="downloading",e.startTime=Date.now(),this.requestUpdate();const o=e.chunks.filter(c=>c.status==="pending"),r=new Set,s=async c=>{const p=e.chunks[c];if(!(!p||p.status!=="pending")){p.status="downloading",r.add(c),this.requestUpdate();try{if(e.status!=="downloading")return;const h=await this.downloadChunk(e.url,p);if(e.status!=="downloading")return;p.downloaded=h.data.length,p.status="completed",e.downloaded+=p.downloaded,h.actualSize&&e.size===0&&(e.size=h.actualSize,e.size>this.chunkSize&&e.chunks.push(...this.createChunks(e.size).slice(1))),r.delete(c),this.requestUpdate(),this.saveState(),(h.isComplete||e.chunks.every(f=>f.status==="completed"))&&(e.status="completed",e.endTime=Date.now(),this.requestUpdate(),this.saveState())}catch(h){p.status="error",r.delete(c),e.chunks.filter(f=>f.status==="error").length===e.chunks.length&&(e.status="error",e.error=h instanceof Error?h.message:"All chunks failed"),this.requestUpdate(),this.saveState()}await new Promise(h=>setTimeout(h,1))}},a=[];let l=0;for(;(l<o.length||r.size>0)&&e.status==="downloading";){for(;r.size<this.maxConcurrentChunks&&l<o.length&&e.status==="downloading";)a.push(s(l)),l++;if(r.size>0)try{await Promise.race([Promise.race(a),new Promise(c=>setTimeout(c,100))])}catch(c){}await new Promise(c=>setTimeout(c,10))}}catch(o){(!(o instanceof Error)||o.name!=="AbortError")&&(e.status="error",e.error=o instanceof Error?o.message:"Unknown error",this.requestUpdate())}finally{this.activeDownloads.delete(e.id),this.saveState()}}pauseDownload(e){const t=this.activeDownloads.get(e);t&&(t.abort(),this.activeDownloads.delete(e));const o=this.downloads.find(r=>r.id===e);(o==null?void 0:o.status)==="downloading"&&(o.status="paused",this.requestUpdate(),this.saveState())}resumeDownload(e){const t=this.downloads.find(o=>o.id===e);(t==null?void 0:t.status)==="paused"&&this.downloadFile(t)}removeDownload(e){this.pauseDownload(e),this.downloads=this.downloads.filter(t=>t.id!==e),this.requestUpdate(),this.saveState()}formatBytes(e){if(e===0)return"0 Bytes";const t=1024,o=["Bytes","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,r)).toFixed(2))+" "+o[r]}formatDuration(e){const t=Math.floor(e/1e3),o=Math.floor(t/60),r=Math.floor(o/60);return r>0?`${r}h ${o%60}m ${t%60}s`:o>0?`${o}m ${t%60}s`:`${t}s`}getProgressPercentage(e){return e.size===0?e.status==="completed"?100:0:Math.round(e.downloaded/e.size*100)}getDownloadSpeed(e){if(!e.startTime)return"0 KB/s";const t=(Date.now()-e.startTime)/1e3;return t===0?"0 KB/s":this.formatBytes(e.downloaded/t)+"/s"}getETA(e){if(!e.startTime||e.downloaded===0||e.size===0)return"Unknown";const t=(Date.now()-e.startTime)/1e3;return this.formatDuration((e.size-e.downloaded)/(e.downloaded/t)*1e3)}async addDownload(e,t){try{this.isAddingFiles=!0,this.requestUpdate();try{new globalThis.URL(e)}catch(a){throw new Error("Invalid URL format")}const o=await this.getFileSize(e),s={id:`download_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,url:e,filename:t||e.split("/").pop()||"unknown",size:o,downloaded:0,status:"pending",chunks:this.createChunks(o)};this.downloads.push(s),this.requestUpdate(),this.saveState(),this.downloadFile(s)}catch(o){const r=o instanceof Error?o.message:"Unknown error occurred";this.downloads.push({id:`error_${Date.now()}`,url:e,filename:t||e.split("/").pop()||"unknown",size:0,downloaded:0,status:"error",chunks:[],error:r}),this.requestUpdate(),this.saveState()}finally{this.isAddingFiles=!1,this.requestUpdate()}}getStatusClass(e){var o;return(o={downloading:"dm__status--downloading",paused:"dm__status--paused",completed:"dm__status--completed",error:"dm__status--error"}[e])!=null?o:"dm__status--pending"}getProgressBarClass(e){var o;return(o={downloading:"dm__progress-bar--downloading",paused:"dm__progress-bar--paused",completed:"dm__progress-bar--completed",error:"dm__progress-bar--error"}[e])!=null?o:"dm__progress-bar--pending"}render(){const e=this.downloads.filter(r=>r.status==="downloading").length,t=this.downloads.filter(r=>r.status==="completed").length,o=this.downloads.filter(r=>r.status==="paused").length;return u`
1095
+ `}},n.Drawer.styles=[H`${I(Ns)}`],qe([d({type:Boolean,reflect:!0})],n.Drawer.prototype,"open",2),qe([d({type:String})],n.Drawer.prototype,"title",2),qe([d({type:String})],n.Drawer.prototype,"position",2),qe([d({type:Number})],n.Drawer.prototype,"width",2),qe([d({type:Boolean})],n.Drawer.prototype,"closeOnEsc",2),qe([d({type:String})],n.Drawer.prototype,"containerSelector",2),n.Drawer=qe([V("logosphere-drawer")],n.Drawer);const Us=":host{display:block}.dm{font-family:var(--font-family-base)}.dm__container{width:100%;max-width:896px;margin:0 auto;padding:var(--spacing-6);background-color:var(--color-body-bg);border-radius:var(--radius-base);box-shadow:var(--shadow-md)}.dm__header{margin-bottom:var(--spacing-6)}.dm__title{font-size:var(--font-size-2xl);font-weight:var(--font-weight-bold);color:var(--color-body-text);margin:0 0 var(--spacing-2) 0}.dm__stats{display:flex;gap:var(--spacing-4);font-size:var(--font-size-sm);color:var(--color-tertiary)}.dm__form{margin-bottom:var(--spacing-6);padding:var(--spacing-4);background-color:var(--color-light);border-radius:var(--radius-base)}.dm__form-row{display:flex;gap:var(--spacing-4)}.dm__form-field{flex:1}.dm__form-field--filename{width:192px;flex:none}.dm__input{width:100%;padding:var(--spacing-2) var(--spacing-3);border:1px solid var(--color-border);border-radius:var(--radius-sm);outline:none;font-family:var(--font-family-base);font-size:var(--font-size-sm);background-color:var(--color-body-bg);color:var(--color-body-text);box-sizing:border-box;transition:border-color var(--transition-speed-fast) var(--transition-timing)}.dm__input:focus{border-color:var(--color-primary)}.dm__submit-btn{display:inline-flex;align-items:center;gap:var(--spacing-2);padding:var(--spacing-2) var(--spacing-4);background-color:var(--color-primary);color:#fff;border:none;border-radius:var(--radius-sm);cursor:pointer;font-family:var(--font-family-base);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);transition:background-color var(--transition-speed-fast) var(--transition-timing);white-space:nowrap}.dm__submit-btn:hover:not(:disabled){background-color:var(--color-primary-hover)}.dm__submit-btn:disabled{opacity:.5;cursor:not-allowed}.dm__form-note{margin-top:var(--spacing-3);font-size:var(--font-size-xs);color:var(--color-tertiary)}.dm__form-note p{margin:0}.dm__spinner{display:inline-block;width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-bottom-color:#fff;border-radius:var(--radius-full);animation:dm-spin .8s linear infinite}.dm__spinner--sm{width:12px;height:12px;border-color:#3b82f64d;border-bottom-color:#3b82f6}@keyframes dm-spin{to{transform:rotate(360deg)}}@keyframes dm-pulse{0%,to{opacity:1}50%{opacity:.5}}.dm__list{display:flex;flex-direction:column;gap:var(--spacing-4)}.dm__empty{text-align:center;padding:var(--spacing-8) 0;color:var(--color-tertiary);font-size:var(--font-size-sm)}.dm__item{border:1px solid var(--color-border);border-radius:var(--radius-base);padding:var(--spacing-4)}.dm__item--error{border-color:var(--color-primary-border-subtle);background-color:var(--color-danger-bg-subtle)}.dm__item-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--spacing-3)}.dm__item-info{flex:1;min-width:0}.dm__item-name{font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);color:var(--color-body-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}.dm__item-url{font-size:var(--font-size-xs);color:var(--color-tertiary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}.dm__item-controls{display:flex;align-items:center;gap:var(--spacing-2)}.dm__status{font-size:var(--font-size-xs);padding:var(--spacing-1) var(--spacing-2);border-radius:var(--radius-full);font-weight:var(--font-weight-medium)}.dm__status--downloading{background-color:var(--color-info-bg-subtle);color:var(--color-info-text-emphasis)}.dm__status--paused{background-color:var(--color-warning-bg-subtle);color:var(--color-warning-text-emphasis)}.dm__status--completed{background-color:var(--color-success-bg-subtle);color:var(--color-success-text-emphasis)}.dm__status--error{background-color:var(--color-danger-bg-subtle);color:var(--color-danger-text-emphasis)}.dm__status--pending{background-color:var(--color-gray-100);color:var(--color-gray-800)}.dm__remove-btn{background:none;border:none;cursor:pointer;color:var(--color-tertiary);padding:var(--spacing-1);line-height:1;font-size:var(--font-size-sm);border-radius:var(--radius-sm);transition:color var(--transition-speed-fast) var(--transition-timing)}.dm__remove-btn:hover{color:var(--color-danger)}.dm__progress{margin-bottom:var(--spacing-3)}.dm__progress-labels{display:flex;justify-content:space-between;font-size:var(--font-size-xs);color:var(--color-tertiary);margin-bottom:var(--spacing-1)}.dm__progress-track{width:100%;background-color:var(--color-gray-200);border-radius:var(--radius-full);height:8px;overflow:hidden}.dm__progress-bar{height:8px;border-radius:var(--radius-full);transition:width .3s ease}.dm__progress-bar--downloading{background-color:var(--color-info-active)}.dm__progress-bar--paused{background-color:var(--color-warning-active)}.dm__progress-bar--completed{background-color:var(--color-success)}.dm__progress-bar--error{background-color:var(--color-danger)}.dm__progress-bar--pending{background-color:var(--color-gray-400)}.dm__progress-bar--indeterminate{width:100%;animation:dm-pulse 1.5s ease-in-out infinite}.dm__item-footer{display:flex;justify-content:space-between;font-size:var(--font-size-xs);color:var(--color-tertiary)}.dm__item-speeds{display:flex;gap:var(--spacing-4)}.dm__item-actions{display:flex;gap:var(--spacing-2)}.dm__action-btn{display:inline-flex;align-items:center;gap:var(--spacing-1);padding:var(--spacing-1) var(--spacing-2);border:none;border-radius:var(--radius-sm);background:none;cursor:pointer;font-family:var(--font-family-base);font-size:var(--font-size-xs);transition:background-color var(--transition-speed-fast) var(--transition-timing),color var(--transition-speed-fast) var(--transition-timing)}.dm__action-btn--pause{color:var(--color-info-active)}.dm__action-btn--pause:hover{background-color:var(--color-info-bg-subtle);color:var(--color-info-text-emphasis)}.dm__action-btn--resume{color:var(--color-success)}.dm__action-btn--resume:hover{background-color:var(--color-success-bg-subtle);color:var(--color-success-text-emphasis)}.dm__status-completed{color:var(--color-success)}.dm__error-info{color:var(--color-danger)}.dm__error-label{font-weight:var(--font-weight-medium)}.dm__error-detail{font-size:var(--font-size-xs)}.dm__chunks{margin-top:var(--spacing-3);font-size:var(--font-size-xs);color:var(--color-tertiary);display:flex;flex-direction:column;gap:2px}.dm__actions{margin-top:var(--spacing-6);display:flex;justify-content:space-between;align-items:center}.dm__clear-btn{padding:var(--spacing-2) var(--spacing-4);font-size:var(--font-size-sm);color:var(--color-tertiary);background:none;border:none;cursor:pointer;font-family:var(--font-family-base);transition:color var(--transition-speed-fast) var(--transition-timing)}.dm__clear-btn:hover{color:var(--color-body-text)}.dm__persist-note{font-size:var(--font-size-sm);color:var(--color-tertiary)}";var qs=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,rt=(i,e,t,o)=>{for(var r=o>1?void 0:o?Zs(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&qs(e,t,r),r};n.DownloadManager=class extends P{constructor(){super(...arguments),this.chunkSize=2*1024*1024,this.maxConcurrentDownloads=3,this.maxConcurrentChunks=4,this.downloads=[],this.isAddingFiles=!1,this.activeDownloads=new Map,this.storageKey="download-manager-state",this.clearCompleted=()=>{this.downloads=this.downloads.filter(e=>e.status!=="completed"),this.requestUpdate(),this.saveState()},this.handleAddDownload=e=>{e.preventDefault();const t=e.target,o=new globalThis.FormData(t),r=o.get("url"),a=o.get("filename");if(!(r!=null&&r.trim()))return;const s=this.downloads.find(l=>l.url===r.trim());s&&s.status!=="error"||(this.addDownload(r.trim(),(a==null?void 0:a.trim())||void 0),t.reset())}}connectedCallback(){super.connectedCallback(),this.loadState(),this.setupVisibilityChangeHandler()}disconnectedCallback(){super.disconnectedCallback(),this.saveState()}setupVisibilityChangeHandler(){document.addEventListener("visibilitychange",()=>{document.hidden&&this.saveState()})}loadState(){try{const e=globalThis.localStorage.getItem(this.storageKey);if(e){const t=JSON.parse(e);this.downloads=t.downloads||[],this.downloads.forEach(o=>{var r;o.status==="downloading"&&(o.status="paused"),o.status==="error"&&((r=o.error)!=null&&r.includes("Failed to fetch"))&&(o.status="paused",o.error=void 0)})}}catch(e){console.error("Failed to load download state:",e)}}saveState(){try{const e={downloads:this.downloads.map(t=>Pe(we({},t),{status:t.status==="downloading"?"paused":t.status}))};globalThis.localStorage.setItem(this.storageKey,JSON.stringify(e))}catch(e){console.error("Failed to save download state:",e)}}async getFileSize(e){try{const t=await globalThis.fetch(e,{method:"HEAD",mode:"cors",credentials:"omit",signal:globalThis.AbortSignal.timeout(1e4)});if(t.ok){const o=t.headers.get("content-length");if(o){const r=parseInt(o);if(!isNaN(r)&&r>0)return r}}try{const o=await globalThis.fetch(e,{method:"GET",headers:{Range:"bytes=0-0"},mode:"cors",credentials:"omit",signal:globalThis.AbortSignal.timeout(1e4)});if(o.ok){const r=o.headers.get("content-range");if(r){const s=r.match(/\/(\d+)/);if(s){const l=parseInt(s[1]);if(!isNaN(l)&&l>0)return l}}const a=o.headers.get("content-length");if(a){const s=parseInt(a);if(!isNaN(s)&&s>0)return s}}}catch(o){}return 0}catch(t){return(!(t instanceof Error)||!["AbortError","ERR_EMPTY_RESPONSE","Failed to fetch"].some(o=>t.message.includes(o)))&&console.warn("Failed to get file size:",t),0}}createChunks(e){if(e===0)return[{start:0,end:this.chunkSize-1,downloaded:0,status:"pending"}];const t=[];for(let o=0;o<e;o+=this.chunkSize)t.push({start:o,end:Math.min(o+this.chunkSize-1,e-1),downloaded:0,status:"pending"});return t}async downloadChunk(e,t){const o=t.end>t.start?`bytes=${t.start+t.downloaded}-${t.end}`:`bytes=${t.start+t.downloaded}-`,r=await globalThis.fetch(e,{headers:{Range:o},signal:globalThis.AbortSignal.any([new globalThis.AbortController().signal,globalThis.AbortSignal.timeout(6e4)]),mode:"cors",credentials:"omit"});if(!r.ok){if(r.status===416)return{data:new Uint8Array(0),isComplete:!0};throw new Error(`HTTP ${r.status}: ${r.statusText}`)}const a=new Uint8Array(await r.arrayBuffer()),s=r.headers.get("content-range");let l=!1,c;if(s){const u=s.match(/\/(\d+)/);if(u){c=parseInt(u[1]);const h=s.match(/(\d+)-(\d+)/);h&&(l=parseInt(h[2])>=c-1)}}else a.length===0&&(l=!0);return{data:a,isComplete:l,actualSize:c}}async downloadFile(e){const t=new globalThis.AbortController;this.activeDownloads.set(e.id,t);try{e.status="downloading",e.startTime=Date.now(),this.requestUpdate();const o=e.chunks.filter(c=>c.status==="pending"),r=new Set,a=async c=>{const u=e.chunks[c];if(!(!u||u.status!=="pending")){u.status="downloading",r.add(c),this.requestUpdate();try{if(e.status!=="downloading")return;const h=await this.downloadChunk(e.url,u);if(e.status!=="downloading")return;u.downloaded=h.data.length,u.status="completed",e.downloaded+=u.downloaded,h.actualSize&&e.size===0&&(e.size=h.actualSize,e.size>this.chunkSize&&e.chunks.push(...this.createChunks(e.size).slice(1))),r.delete(c),this.requestUpdate(),this.saveState(),(h.isComplete||e.chunks.every(f=>f.status==="completed"))&&(e.status="completed",e.endTime=Date.now(),this.requestUpdate(),this.saveState())}catch(h){u.status="error",r.delete(c),e.chunks.filter(f=>f.status==="error").length===e.chunks.length&&(e.status="error",e.error=h instanceof Error?h.message:"All chunks failed"),this.requestUpdate(),this.saveState()}await new Promise(h=>setTimeout(h,1))}},s=[];let l=0;for(;(l<o.length||r.size>0)&&e.status==="downloading";){for(;r.size<this.maxConcurrentChunks&&l<o.length&&e.status==="downloading";)s.push(a(l)),l++;if(r.size>0)try{await Promise.race([Promise.race(s),new Promise(c=>setTimeout(c,100))])}catch(c){}await new Promise(c=>setTimeout(c,10))}}catch(o){(!(o instanceof Error)||o.name!=="AbortError")&&(e.status="error",e.error=o instanceof Error?o.message:"Unknown error",this.requestUpdate())}finally{this.activeDownloads.delete(e.id),this.saveState()}}pauseDownload(e){const t=this.activeDownloads.get(e);t&&(t.abort(),this.activeDownloads.delete(e));const o=this.downloads.find(r=>r.id===e);(o==null?void 0:o.status)==="downloading"&&(o.status="paused",this.requestUpdate(),this.saveState())}resumeDownload(e){const t=this.downloads.find(o=>o.id===e);(t==null?void 0:t.status)==="paused"&&this.downloadFile(t)}removeDownload(e){this.pauseDownload(e),this.downloads=this.downloads.filter(t=>t.id!==e),this.requestUpdate(),this.saveState()}formatBytes(e){if(e===0)return"0 Bytes";const t=1024,o=["Bytes","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,r)).toFixed(2))+" "+o[r]}formatDuration(e){const t=Math.floor(e/1e3),o=Math.floor(t/60),r=Math.floor(o/60);return r>0?`${r}h ${o%60}m ${t%60}s`:o>0?`${o}m ${t%60}s`:`${t}s`}getProgressPercentage(e){return e.size===0?e.status==="completed"?100:0:Math.round(e.downloaded/e.size*100)}getDownloadSpeed(e){if(!e.startTime)return"0 KB/s";const t=(Date.now()-e.startTime)/1e3;return t===0?"0 KB/s":this.formatBytes(e.downloaded/t)+"/s"}getETA(e){if(!e.startTime||e.downloaded===0||e.size===0)return"Unknown";const t=(Date.now()-e.startTime)/1e3;return this.formatDuration((e.size-e.downloaded)/(e.downloaded/t)*1e3)}async addDownload(e,t){try{this.isAddingFiles=!0,this.requestUpdate();try{new globalThis.URL(e)}catch(s){throw new Error("Invalid URL format")}const o=await this.getFileSize(e),a={id:`download_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,url:e,filename:t||e.split("/").pop()||"unknown",size:o,downloaded:0,status:"pending",chunks:this.createChunks(o)};this.downloads.push(a),this.requestUpdate(),this.saveState(),this.downloadFile(a)}catch(o){const r=o instanceof Error?o.message:"Unknown error occurred";this.downloads.push({id:`error_${Date.now()}`,url:e,filename:t||e.split("/").pop()||"unknown",size:0,downloaded:0,status:"error",chunks:[],error:r}),this.requestUpdate(),this.saveState()}finally{this.isAddingFiles=!1,this.requestUpdate()}}getStatusClass(e){var o;return(o={downloading:"dm__status--downloading",paused:"dm__status--paused",completed:"dm__status--completed",error:"dm__status--error"}[e])!=null?o:"dm__status--pending"}getProgressBarClass(e){var o;return(o={downloading:"dm__progress-bar--downloading",paused:"dm__progress-bar--paused",completed:"dm__progress-bar--completed",error:"dm__progress-bar--error"}[e])!=null?o:"dm__progress-bar--pending"}render(){const e=this.downloads.filter(r=>r.status==="downloading").length,t=this.downloads.filter(r=>r.status==="completed").length,o=this.downloads.filter(r=>r.status==="paused").length;return p`
928
1096
  <div class="dm">
929
1097
  <div class="dm__container">
930
1098
  <div class="dm__header">
@@ -946,7 +1114,7 @@
946
1114
  <input type="text" name="filename" placeholder="Custom filename (optional)" class="dm__input" />
947
1115
  </div>
948
1116
  <button type="submit" ?disabled=${this.isAddingFiles} class="dm__submit-btn">
949
- ${this.isAddingFiles?u`<span class="dm__spinner"></span> Adding...`:"Add Download"}
1117
+ ${this.isAddingFiles?p`<span class="dm__spinner"></span> Adding...`:"Add Download"}
950
1118
  </button>
951
1119
  </div>
952
1120
  <div class="dm__form-note">
@@ -955,7 +1123,7 @@
955
1123
  </form>
956
1124
 
957
1125
  <div class="dm__list">
958
- ${this.downloads.length===0?u`<div class="dm__empty">No downloads yet. Add a URL to get started.</div>`:this.downloads.map(r=>u`
1126
+ ${this.downloads.length===0?p`<div class="dm__empty">No downloads yet. Add a URL to get started.</div>`:this.downloads.map(r=>p`
959
1127
  <div class="dm__item ${r.status==="error"?"dm__item--error":""}">
960
1128
  <div class="dm__item-header">
961
1129
  <div class="dm__item-info">
@@ -974,7 +1142,7 @@
974
1142
  <span>${r.size>0?`${this.getProgressPercentage(r)}%`:"Downloading..."}</span>
975
1143
  </div>
976
1144
  <div class="dm__progress-track">
977
- ${r.size>0?u`<div class="dm__progress-bar ${this.getProgressBarClass(r.status)}" style="width: ${this.getProgressPercentage(r)}%"></div>`:u`<div class="dm__progress-bar ${this.getProgressBarClass(r.status)} dm__progress-bar--indeterminate"></div>`}
1145
+ ${r.size>0?p`<div class="dm__progress-bar ${this.getProgressBarClass(r.status)}" style="width: ${this.getProgressPercentage(r)}%"></div>`:p`<div class="dm__progress-bar ${this.getProgressBarClass(r.status)} dm__progress-bar--indeterminate"></div>`}
978
1146
  </div>
979
1147
  </div>
980
1148
 
@@ -984,15 +1152,15 @@
984
1152
  <span>ETA: ${r.status==="downloading"?this.getETA(r):"Unknown"}</span>
985
1153
  </div>
986
1154
  <div class="dm__item-actions">
987
- ${r.status==="downloading"?u`
1155
+ ${r.status==="downloading"?p`
988
1156
  <button class="dm__action-btn dm__action-btn--pause" @click=${()=>this.pauseDownload(r.id)}>
989
1157
  <span class="dm__spinner dm__spinner--sm"></span> Pause
990
1158
  </button>
991
- `:r.status==="paused"?u`
1159
+ `:r.status==="paused"?p`
992
1160
  <button class="dm__action-btn dm__action-btn--resume" @click=${()=>this.resumeDownload(r.id)}>Resume</button>
993
- `:r.status==="completed"?u`
1161
+ `:r.status==="completed"?p`
994
1162
  <span class="dm__status-completed">Completed</span>
995
- `:r.status==="error"?u`
1163
+ `:r.status==="error"?p`
996
1164
  <div class="dm__error-info">
997
1165
  <div class="dm__error-label">Error</div>
998
1166
  <div class="dm__error-detail">${r.error}</div>
@@ -1001,9 +1169,9 @@
1001
1169
  </div>
1002
1170
  </div>
1003
1171
 
1004
- ${r.status==="downloading"?u`
1172
+ ${r.status==="downloading"?p`
1005
1173
  <div class="dm__chunks">
1006
- <div>Chunks: ${r.chunks.filter(s=>s.status==="completed").length}/${r.chunks.length} completed</div>
1174
+ <div>Chunks: ${r.chunks.filter(a=>a.status==="completed").length}/${r.chunks.length} completed</div>
1007
1175
  <div>Chunk size: ${this.formatBytes(this.chunkSize)}</div>
1008
1176
  <div>Downloaded: ${this.formatBytes(r.downloaded)}${r.size>0?` / ${this.formatBytes(r.size)}`:""}</div>
1009
1177
  </div>
@@ -1012,7 +1180,7 @@
1012
1180
  `)}
1013
1181
  </div>
1014
1182
 
1015
- ${this.downloads.length>0?u`
1183
+ ${this.downloads.length>0?p`
1016
1184
  <div class="dm__actions">
1017
1185
  <button class="dm__clear-btn" @click=${this.clearCompleted}>Clear Completed</button>
1018
1186
  <div class="dm__persist-note">State is automatically saved and will persist across browser sessions</div>
@@ -1020,16 +1188,16 @@
1020
1188
  `:""}
1021
1189
  </div>
1022
1190
  </div>
1023
- `}},n.DownloadManager.styles=[R`${H(Ya)}`],tt([d({type:Number})],n.DownloadManager.prototype,"chunkSize",2),tt([d({type:Number})],n.DownloadManager.prototype,"maxConcurrentDownloads",2),tt([d({type:Number})],n.DownloadManager.prototype,"maxConcurrentChunks",2),tt([y()],n.DownloadManager.prototype,"downloads",2),tt([y()],n.DownloadManager.prototype,"isAddingFiles",2),n.DownloadManager=tt([V("download-manager")],n.DownloadManager);const Va=".tree{width:100%;font-family:var(--font-family-base)}.tree__list,.tree__children{list-style:none;margin:0;padding:0}.tree__item{margin:0;padding:0}.tree__row{display:flex;align-items:center;gap:var(--spacing-1);padding:var(--spacing-2) var(--spacing-3);padding-left:calc(var(--spacing-3) + (var(--tree-level, 0) * 14px));border-radius:var(--radius-sm);color:var(--color-body-color);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.tree--icons .tree__row{justify-content:center;padding:0;width:44px;height:44px;min-height:44px;margin:0 auto}.tree__row:hover{background-color:var(--color-light)}.tree__row:focus-visible{outline:2px solid var(--color-secondary);outline-offset:1px}.tree__row--disabled{opacity:.5;cursor:not-allowed}.tree__row--active .tree__label,.tree__row--active .tree__icon{color:var(--color-primary)}.tree:not(.tree--icons) .tree__row--active{background-color:var(--color-light)}.tree__icon{width:20px;min-width:20px;display:inline-flex;align-items:center;justify-content:center;color:inherit}.tree--icons .tree__icon{width:20px;min-width:20px;height:20px}.tree--icons .tree__row--active{background-color:var(--color-primary)}.tree--icons .tree__row--active .tree__icon{color:#fff}.tree--icons .tree__row--active:hover{background-color:var(--color-primary-hover)}.tree__chevron-btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border:none;background:transparent;color:var(--color-tertiary);cursor:pointer;padding:0;flex-shrink:0}.tree__chevron-btn--right{margin-left:auto}.tree__chevron{transform:rotate(-90deg);transition:transform var(--transition-speed-fast) var(--transition-timing)}.tree__chevron--open{transform:rotate(0)}.tree__chevron-spacer{width:20px;height:20px;flex-shrink:0}.tree__label{display:inline-flex;align-items:center;font-size:var(--font-size-sm);color:inherit}";var Na=Object.defineProperty,Ua=Object.getOwnPropertyDescriptor,ze=(i,e,t,o)=>{for(var r=o>1?void 0:o?Ua(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Na(e,t,r),r};n.TreeMenu=class extends D{constructor(){super(...arguments),this.items=[],this.expandedIds=[],this.expandOnLabelClick=!0,this.chevronPosition="left",this.showLabels=!0,this.iconSize=16,this._expandedSet=new Set}willUpdate(e){var t;e.has("expandedIds")&&(this._expandedSet=new Set((t=this.expandedIds)!=null?t:[]))}_isExpanded(e){return this._expandedSet.has(e)}_emitToggle(e,t){this.dispatchEvent(new CustomEvent("toggle",{detail:{item:e,expanded:t},bubbles:!0,composed:!0}))}_emitItemClick(e){this.dispatchEvent(new CustomEvent("item-click",{detail:{item:e},bubbles:!0,composed:!0}))}_emitNodeClick(e,t){this.dispatchEvent(new CustomEvent("node-click",{detail:{item:e,hasChildren:t},bubbles:!0,composed:!0}))}_setExpanded(e,t){t?this._expandedSet.add(e.id):this._expandedSet.delete(e.id),this.expandedIds=Array.from(this._expandedSet),this._emitToggle(e,t)}_toggle(e,t){var o;t.stopPropagation(),!(e.disabled||!((o=e.children)!=null&&o.length))&&this._setExpanded(e,!this._isExpanded(e.id))}_handleItemClick(e,t){var r,s;if(t.stopPropagation(),e.disabled)return;const o=!!((r=e.children)!=null&&r.length);if(this._emitNodeClick(e,o),o&&this.expandOnLabelClick){this._setExpanded(e,!this._isExpanded(e.id));return}o||((s=e.onClick)==null||s.call(e,e),this._emitItemClick(e))}_handleRowKeydown(e,t){t.key!=="Enter"&&t.key!==" "||(t.preventDefault(),this._handleItemClick(e,t))}_renderIcon(e){return e.iconName?u`
1191
+ `}},n.DownloadManager.styles=[H`${I(Us)}`],rt([d({type:Number})],n.DownloadManager.prototype,"chunkSize",2),rt([d({type:Number})],n.DownloadManager.prototype,"maxConcurrentDownloads",2),rt([d({type:Number})],n.DownloadManager.prototype,"maxConcurrentChunks",2),rt([y()],n.DownloadManager.prototype,"downloads",2),rt([y()],n.DownloadManager.prototype,"isAddingFiles",2),n.DownloadManager=rt([V("download-manager")],n.DownloadManager);const Ws=".tree{width:100%;font-family:var(--font-family-base)}.tree__list,.tree__children{list-style:none;margin:0;padding:0}.tree__item{margin:0;padding:0}.tree__row{display:flex;align-items:center;gap:var(--spacing-1);padding:var(--spacing-2) var(--spacing-3);padding-left:calc(var(--spacing-3) + (var(--tree-level, 0) * 14px));border-radius:var(--radius-sm);color:var(--color-body-color);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.tree--icons .tree__row{justify-content:center;padding:0;width:44px;height:44px;min-height:44px;margin:0 auto}.tree__row:hover{background-color:var(--color-light)}.tree__row:focus-visible{outline:2px solid var(--color-secondary);outline-offset:1px}.tree__row--disabled{opacity:.5;cursor:not-allowed}.tree__row--active .tree__label,.tree__row--active .tree__icon{color:var(--color-primary)}.tree:not(.tree--icons) .tree__row--active{background-color:var(--color-light)}.tree__icon{width:20px;min-width:20px;display:inline-flex;align-items:center;justify-content:center;color:inherit}.tree--icons .tree__icon{width:20px;min-width:20px;height:20px}.tree--icons .tree__row--active{background-color:var(--color-primary)}.tree--icons .tree__row--active .tree__icon{color:#fff}.tree--icons .tree__row--active:hover{background-color:var(--color-primary-hover)}.tree__chevron-btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border:none;background:transparent;color:var(--color-tertiary);cursor:pointer;padding:0;flex-shrink:0}.tree__chevron-btn--right{margin-left:auto}.tree__chevron{transform:rotate(-90deg);transition:transform var(--transition-speed-fast) var(--transition-timing)}.tree__chevron--open{transform:rotate(0)}.tree__chevron-spacer{width:20px;height:20px;flex-shrink:0}.tree__label{display:inline-flex;align-items:center;font-size:var(--font-size-sm);color:inherit}";var Ks=Object.defineProperty,Gs=Object.getOwnPropertyDescriptor,Le=(i,e,t,o)=>{for(var r=o>1?void 0:o?Gs(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&Ks(e,t,r),r};n.TreeMenu=class extends P{constructor(){super(...arguments),this.items=[],this.expandedIds=[],this.expandOnLabelClick=!0,this.chevronPosition="left",this.showLabels=!0,this.iconSize=16,this._expandedSet=new Set}willUpdate(e){var t;e.has("expandedIds")&&(this._expandedSet=new Set((t=this.expandedIds)!=null?t:[]))}_isExpanded(e){return this._expandedSet.has(e)}_emitToggle(e,t){this.dispatchEvent(new CustomEvent("toggle",{detail:{item:e,expanded:t},bubbles:!0,composed:!0}))}_emitItemClick(e){this.dispatchEvent(new CustomEvent("item-click",{detail:{item:e},bubbles:!0,composed:!0}))}_emitNodeClick(e,t){this.dispatchEvent(new CustomEvent("node-click",{detail:{item:e,hasChildren:t},bubbles:!0,composed:!0}))}_setExpanded(e,t){t?this._expandedSet.add(e.id):this._expandedSet.delete(e.id),this.expandedIds=Array.from(this._expandedSet),this._emitToggle(e,t)}_toggle(e,t){var o;t.stopPropagation(),!(e.disabled||!((o=e.children)!=null&&o.length))&&this._setExpanded(e,!this._isExpanded(e.id))}_handleItemClick(e,t){var r,a;if(t.stopPropagation(),e.disabled)return;const o=!!((r=e.children)!=null&&r.length);if(this._emitNodeClick(e,o),o&&this.expandOnLabelClick){this._setExpanded(e,!this._isExpanded(e.id));return}o||((a=e.onClick)==null||a.call(e,e),this._emitItemClick(e))}_handleRowKeydown(e,t){t.key!=="Enter"&&t.key!==" "||(t.preventDefault(),this._handleItemClick(e,t))}_renderIcon(e){return e.iconName?p`
1024
1192
  <span class="tree__icon">
1025
1193
  <ui-icon name=${e.iconName} .size=${this.iconSize}></ui-icon>
1026
1194
  </span>
1027
- `:e.iconHtml?u`<span class="tree__icon">${so(e.iconHtml)}</span>`:v}_renderChevron(e,t){var r;const o=!!((r=e.children)!=null&&r.length);return this.showLabels?o?u`
1195
+ `:e.iconHtml?p`<span class="tree__icon">${lo(e.iconHtml)}</span>`:b}_renderChevron(e,t){var r;const o=!!((r=e.children)!=null&&r.length);return this.showLabels?o?p`
1028
1196
  <button
1029
1197
  type="button"
1030
1198
  class="tree__chevron-btn ${this.chevronPosition==="right"?"tree__chevron-btn--right":""}"
1031
1199
  aria-label=${t?"Collapse":"Expand"}
1032
- @click=${s=>this._toggle(e,s)}
1200
+ @click=${a=>this._toggle(e,a)}
1033
1201
  >
1034
1202
  <ui-icon
1035
1203
  class="tree__chevron ${t?"tree__chevron--open":""}"
@@ -1037,36 +1205,36 @@
1037
1205
  size="20"
1038
1206
  ></ui-icon>
1039
1207
  </button>
1040
- `:u`<span class="tree__chevron-spacer"></span>`:v}_renderNode(e,t){var a;const o=!!((a=e.children)!=null&&a.length),r=o?this._isExpanded(e.id):!1,s=this.showLabels?`--tree-level:${t};`:"--tree-level:0;";return u`
1208
+ `:p`<span class="tree__chevron-spacer"></span>`:b}_renderNode(e,t){var s;const o=!!((s=e.children)!=null&&s.length),r=o?this._isExpanded(e.id):!1,a=this.showLabels?`--tree-level:${t};`:"--tree-level:0;";return p`
1041
1209
  <li class="tree__item">
1042
1210
  <div
1043
1211
  class="tree__row ${e.disabled?"tree__row--disabled":""} ${e.active?"tree__row--active":""}"
1044
- style=${s}
1212
+ style=${a}
1045
1213
  role="button"
1046
1214
  tabindex=${e.disabled?-1:0}
1047
1215
  @click=${l=>this._handleItemClick(e,l)}
1048
1216
  @keydown=${l=>this._handleRowKeydown(e,l)}
1049
1217
  title=${this.showLabels?"":e.label}
1050
1218
  >
1051
- ${this.chevronPosition==="left"?this._renderChevron(e,r):v}
1219
+ ${this.chevronPosition==="left"?this._renderChevron(e,r):b}
1052
1220
  ${this._renderIcon(e)}
1053
- ${this.showLabels?u`<span class="tree__label">${e.label}</span>`:v}
1054
- ${this.chevronPosition==="right"?this._renderChevron(e,r):v}
1221
+ ${this.showLabels?p`<span class="tree__label">${e.label}</span>`:b}
1222
+ ${this.chevronPosition==="right"?this._renderChevron(e,r):b}
1055
1223
  </div>
1056
1224
 
1057
- ${this.showLabels&&o&&r?u`
1225
+ ${this.showLabels&&o&&r?p`
1058
1226
  <ul class="tree__children">
1059
1227
  ${e.children.map(l=>this._renderNode(l,t+1))}
1060
1228
  </ul>
1061
- `:v}
1229
+ `:b}
1062
1230
  </li>
1063
- `}render(){return u`
1231
+ `}render(){return p`
1064
1232
  <nav class="tree ${this.showLabels?"":"tree--icons"}" aria-label="Tree Menu">
1065
1233
  <ul class="tree__list">
1066
1234
  ${this.items.map(e=>this._renderNode(e,0))}
1067
1235
  </ul>
1068
1236
  </nav>
1069
- `}},n.TreeMenu.styles=[R`${H(Va)}`],ze([d({attribute:!1})],n.TreeMenu.prototype,"items",2),ze([d({type:Array})],n.TreeMenu.prototype,"expandedIds",2),ze([d({type:Boolean})],n.TreeMenu.prototype,"expandOnLabelClick",2),ze([d({type:String})],n.TreeMenu.prototype,"chevronPosition",2),ze([d({type:Boolean})],n.TreeMenu.prototype,"showLabels",2),ze([d({type:Number})],n.TreeMenu.prototype,"iconSize",2),ze([y()],n.TreeMenu.prototype,"_expandedSet",2),n.TreeMenu=ze([V("logosphere-tree-menu")],n.TreeMenu);var qa=Object.defineProperty,Za=Object.getOwnPropertyDescriptor,ot=(i,e,t,o)=>{for(var r=o>1?void 0:o?Za(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&qa(e,t,r),r};n.LeftMenuItemElement=class extends D{constructor(){super(...arguments),this.itemId="",this.label="",this.disabled=!1,this.active=!1}render(){return u`<slot></slot>`}},ot([d({type:String})],n.LeftMenuItemElement.prototype,"itemId",2),ot([d({type:String})],n.LeftMenuItemElement.prototype,"label",2),ot([d({type:Boolean})],n.LeftMenuItemElement.prototype,"disabled",2),ot([d({type:Boolean})],n.LeftMenuItemElement.prototype,"active",2),ot([d({attribute:!1})],n.LeftMenuItemElement.prototype,"onClick",2),n.LeftMenuItemElement=ot([V("leftmenu-item")],n.LeftMenuItemElement);const Wa=':host{display:block;position:relative;height:100%;font-family:var(--font-family-base)}.lm{position:relative;height:100%;transition:width var(--transition-speed-base) var(--transition-timing)}.lm__panel{width:var(--lm-closed-width);min-width:var(--lm-closed-width);height:100%;background:var(--color-body-bg);border-right:1px solid var(--color-border);display:flex;flex-direction:column;overflow:hidden;overflow-x:hidden;box-sizing:border-box;transition:width var(--transition-speed-base) var(--transition-timing),min-width var(--transition-speed-base) var(--transition-timing),box-shadow var(--transition-speed-base) var(--transition-timing)}.lm--open .lm__panel{width:var(--lm-open-width);min-width:var(--lm-open-width)}.lm--overlay.lm--open .lm__panel{position:absolute;left:0;top:0;box-shadow:var(--shadow-md);z-index:var(--z-index-dropdown)}.lm__brand{padding:var(--spacing-3);border-bottom:1px solid var(--color-border);display:flex;align-items:center;justify-content:center;box-sizing:border-box}.lm--closed .lm__brand{width:64px;height:64px;padding:0}.lm__search{padding:var(--spacing-4) var(--spacing-3)}.lm__nav{flex:1;overflow-y:auto;overflow-x:hidden;padding:var(--spacing-3);scrollbar-width:thin}.lm__nav logosphere-tree-menu{width:100%}.lm__custom{border-top:1px solid var(--color-border);margin-top:var(--spacing-4);padding:var(--spacing-2)}.lm--closed .lm__custom{padding:var(--spacing-2) 0}.lm__custom--hidden{display:none}.lm--closed .lm__nav{padding-left:0;padding-right:0;scrollbar-gutter:auto;scrollbar-color:var(--color-border) transparent}.lm--closed .lm__nav::-webkit-scrollbar{width:4px;height:4px}.lm--closed .lm__nav::-webkit-scrollbar-track{background:transparent}.lm--closed .lm__nav::-webkit-scrollbar-thumb{background-color:var(--color-border);border-radius:999px}.lm--closed .lm__nav:hover::-webkit-scrollbar-thumb{background-color:var(--color-tertiary)}.lm__footer{margin-top:auto;border-top:1px solid var(--color-border);padding:var(--spacing-2);display:flex;align-items:center;justify-content:center;gap:var(--spacing-2)}.lm--closed .lm__footer{flex-direction:column;justify-content:center}.lm__ctrl{width:32px;height:32px;border:1px solid var(--color-border);background:var(--color-body-bg);border-radius:var(--radius-sm);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--color-body-color)}.lm__ctrl:hover{background:var(--color-tertiary)}.lm__pin-icon--inactive{color:var(--color-tertiary)}.lm__pin-icon--active{color:var(--color-body-color)}.lm__toggle-icon{transform:rotate(180deg);transition:transform var(--transition-speed-base) var(--transition-timing)}.lm__toggle-icon--open{transform:rotate(0)}::slotted(leftmenu-item){display:none!important}::slotted([slot="logo-open"]),::slotted([slot="logo-closed"]){display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%}::slotted([slot="custom-open"]),::slotted([slot="custom-closed"]){display:block;width:100%}';var Ka=Object.defineProperty,Ga=Object.getOwnPropertyDescriptor,pe=(i,e,t,o)=>{for(var r=o>1?void 0:o?Ga(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&Ka(e,t,r),r};n.LeftMenu=class extends D{constructor(){super(...arguments),this.open=!1,this.pinned=!1,this.closedWidth=64,this.openWidth=248,this.storageKey="logosphere-leftmenu-state",this._nodes=[],this._expandedIds=new Set,this._search="",this._searchExpandedIds=new Set,this._hasCustomOpen=!1,this._hasCustomClosed=!1,this._isHydratingState=!1,this._onSlotChange=e=>{const o=e.target.assignedElements({flatten:!0}).filter(r=>r.tagName==="LEFTMENU-ITEM");this._nodes=o.map((r,s)=>this._mapItemElement(r,`root-${s}`))},this._onCustomOpenSlotChange=e=>{const t=e.target;this._hasCustomOpen=t.assignedElements({flatten:!0}).length>0},this._onCustomClosedSlotChange=e=>{const t=e.target;this._hasCustomClosed=t.assignedElements({flatten:!0}).length>0},this._handleSearchInput=e=>{var r;const o=(r=e.detail)==null?void 0:r.value;typeof o=="string"&&this._setSearch(o)},this._toggleOpen=()=>{this.open=!this.open},this._togglePin=()=>{this.pinned=!this.pinned,this.dispatchEvent(new CustomEvent("pin-change",{detail:{pinned:this.pinned},bubbles:!0,composed:!0}))},this._handleTreeToggle=e=>{e.stopPropagation();const{item:t,expanded:o}=e.detail;o?this._expandedIds.add(t.id):this._expandedIds.delete(t.id),this._expandedIds=new Set(this._expandedIds)},this._handleTreeNodeClick=e=>{this.open||!e.detail.hasChildren||(this.open=!0,this._expandedIds.add(e.detail.item.id),this._expandedIds=new Set(this._expandedIds))},this._handleTreeItemClick=e=>{e.stopPropagation();const t=e.detail.item.data;this.dispatchEvent(new CustomEvent("item-click",{detail:{item:t!=null?t:e.detail.item},bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this._loadPersistedState()}updated(e){this._isHydratingState||(e.has("open")||e.has("pinned"))&&this._persistState()}_loadPersistedState(){if(typeof window!="undefined")try{const e=window.localStorage.getItem(this.storageKey);if(!e)return;const t=JSON.parse(e);this._isHydratingState=!0,typeof t.open=="boolean"&&(this.open=t.open),typeof t.pinned=="boolean"&&(this.pinned=t.pinned),this._isHydratingState=!1}catch(e){this._isHydratingState=!1}}_persistState(){if(typeof window!="undefined")try{window.localStorage.setItem(this.storageKey,JSON.stringify({open:this.open,pinned:this.pinned}))}catch(e){}}_mapItemElement(e,t){var c;const o=e.itemId||e.id||t,r=Array.from(e.children).find(p=>p.getAttribute("slot")==="icon"),s=r==null?void 0:r.querySelector("ui-icon"),a=Array.from(e.children).filter(p=>p.tagName==="LEFTMENU-ITEM"&&p.getAttribute("slot")==="children"),l=Array.from(e.childNodes).filter(p=>p.nodeType===Node.TEXT_NODE).map(p=>{var h;return(h=p.textContent)!=null?h:""}).join(" ").replace(/\s+/g," ").trim();return{id:o,label:(e.label||l||o).trim(),disabled:e.disabled,active:e.active,iconName:(c=s==null?void 0:s.getAttribute("name"))!=null?c:null,iconHtml:r?r.innerHTML:null,onClick:e.onClick?()=>{var p;return(p=e.onClick)==null?void 0:p.call(e,e)}:void 0,children:a.map((p,h)=>this._mapItemElement(p,`${o}-${h}`))}}_setSearch(e){if(this._search=e,!e){this._searchExpandedIds=new Set;return}const t=new Set,o=r=>{let s=!1;return r.forEach(a=>{const l=a.label.toLocaleLowerCase().includes(e.toLocaleLowerCase()),c=o(a.children);c&&t.add(a.id),l&&a.children.length&&t.add(a.id),s=s||l||c}),s};o(this._nodes),this._searchExpandedIds=t}_filterNodes(e,t){if(!t)return e;const o=t.toLocaleLowerCase(),r=s=>{const a=s.children.map(r).filter(Boolean);return!s.label.toLocaleLowerCase().includes(o)&&a.length===0?null:Ee(_e({},s),{children:a})};return e.map(r).filter(Boolean)}_toTreeItems(e){return e.map(t=>{var o;return{id:t.id,label:t.label,disabled:t.disabled,active:t.active,iconName:(o=t.iconName)!=null?o:void 0,iconHtml:t.iconHtml,onClick:t.onClick?()=>{var r;(r=t.onClick)==null||r.call(t,t)}:void 0,data:t,children:this._toTreeItems(t.children)}})}_effectiveExpandedIds(){const e=new Set(this._expandedIds);return this._search&&this._searchExpandedIds.forEach(t=>e.add(t)),Array.from(e)}render(){const e=this._filterNodes(this._nodes,this._search),t=this._toTreeItems(e),o=this.pinned?this.open?this.openWidth:this.closedWidth:this.closedWidth;return u`
1237
+ `}},n.TreeMenu.styles=[H`${I(Ws)}`],Le([d({attribute:!1})],n.TreeMenu.prototype,"items",2),Le([d({type:Array})],n.TreeMenu.prototype,"expandedIds",2),Le([d({type:Boolean})],n.TreeMenu.prototype,"expandOnLabelClick",2),Le([d({type:String})],n.TreeMenu.prototype,"chevronPosition",2),Le([d({type:Boolean})],n.TreeMenu.prototype,"showLabels",2),Le([d({type:Number})],n.TreeMenu.prototype,"iconSize",2),Le([y()],n.TreeMenu.prototype,"_expandedSet",2),n.TreeMenu=Le([V("logosphere-tree-menu")],n.TreeMenu);var Xs=Object.defineProperty,Js=Object.getOwnPropertyDescriptor,it=(i,e,t,o)=>{for(var r=o>1?void 0:o?Js(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&Xs(e,t,r),r};n.LeftMenuItemElement=class extends P{constructor(){super(...arguments),this.itemId="",this.label="",this.disabled=!1,this.active=!1}render(){return p`<slot></slot>`}},it([d({type:String})],n.LeftMenuItemElement.prototype,"itemId",2),it([d({type:String})],n.LeftMenuItemElement.prototype,"label",2),it([d({type:Boolean})],n.LeftMenuItemElement.prototype,"disabled",2),it([d({type:Boolean})],n.LeftMenuItemElement.prototype,"active",2),it([d({attribute:!1})],n.LeftMenuItemElement.prototype,"onClick",2),n.LeftMenuItemElement=it([V("leftmenu-item")],n.LeftMenuItemElement);const Qs=':host{display:block;position:relative;height:100%;font-family:var(--font-family-base)}.lm{position:relative;height:100%;transition:width var(--transition-speed-base) var(--transition-timing)}.lm__panel{width:var(--lm-closed-width);min-width:var(--lm-closed-width);height:100%;background:var(--color-body-bg);border-right:1px solid var(--color-border);display:flex;flex-direction:column;overflow:hidden;overflow-x:hidden;box-sizing:border-box;transition:width var(--transition-speed-base) var(--transition-timing),min-width var(--transition-speed-base) var(--transition-timing),box-shadow var(--transition-speed-base) var(--transition-timing)}.lm--open .lm__panel{width:var(--lm-open-width);min-width:var(--lm-open-width)}.lm--overlay.lm--open .lm__panel{position:absolute;left:0;top:0;box-shadow:var(--shadow-md);z-index:var(--z-index-dropdown)}.lm__brand{padding:var(--spacing-3);border-bottom:1px solid var(--color-border);display:flex;align-items:center;justify-content:center;box-sizing:border-box}.lm--closed .lm__brand{width:64px;height:64px;padding:0}.lm__search{padding:var(--spacing-4) var(--spacing-3)}.lm__nav{flex:1;overflow-y:auto;overflow-x:hidden;padding:var(--spacing-3);scrollbar-width:thin}.lm__nav logosphere-tree-menu{width:100%}.lm__custom{border-top:1px solid var(--color-border);margin-top:var(--spacing-4);padding:var(--spacing-2)}.lm--closed .lm__custom{padding:var(--spacing-2) 0}.lm__custom--hidden{display:none}.lm--closed .lm__nav{padding-left:0;padding-right:0;scrollbar-gutter:auto;scrollbar-color:var(--color-border) transparent}.lm--closed .lm__nav::-webkit-scrollbar{width:4px;height:4px}.lm--closed .lm__nav::-webkit-scrollbar-track{background:transparent}.lm--closed .lm__nav::-webkit-scrollbar-thumb{background-color:var(--color-border);border-radius:999px}.lm--closed .lm__nav:hover::-webkit-scrollbar-thumb{background-color:var(--color-tertiary)}.lm__footer{margin-top:auto;border-top:1px solid var(--color-border);padding:var(--spacing-2);display:flex;align-items:center;justify-content:center;gap:var(--spacing-2)}.lm--closed .lm__footer{flex-direction:column;justify-content:center}.lm__ctrl{width:32px;height:32px;border:1px solid var(--color-border);background:var(--color-body-bg);border-radius:var(--radius-sm);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--color-body-color)}.lm__ctrl:hover{background:var(--color-tertiary)}.lm__pin-icon--inactive{color:var(--color-tertiary)}.lm__pin-icon--active{color:var(--color-body-color)}.lm__toggle-icon{transform:rotate(180deg);transition:transform var(--transition-speed-base) var(--transition-timing)}.lm__toggle-icon--open{transform:rotate(0)}::slotted(leftmenu-item){display:none!important}::slotted([slot="logo-open"]),::slotted([slot="logo-closed"]){display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%}::slotted([slot="custom-open"]),::slotted([slot="custom-closed"]){display:block;width:100%}';var en=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,fe=(i,e,t,o)=>{for(var r=o>1?void 0:o?tn(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&en(e,t,r),r};n.LeftMenu=class extends P{constructor(){super(...arguments),this.open=!1,this.pinned=!1,this.closedWidth=64,this.openWidth=248,this.storageKey="logosphere-leftmenu-state",this._nodes=[],this._expandedIds=new Set,this._search="",this._searchExpandedIds=new Set,this._hasCustomOpen=!1,this._hasCustomClosed=!1,this._isHydratingState=!1,this._onSlotChange=e=>{const o=e.target.assignedElements({flatten:!0}).filter(r=>r.tagName==="LEFTMENU-ITEM");this._nodes=o.map((r,a)=>this._mapItemElement(r,`root-${a}`))},this._onCustomOpenSlotChange=e=>{const t=e.target;this._hasCustomOpen=t.assignedElements({flatten:!0}).length>0},this._onCustomClosedSlotChange=e=>{const t=e.target;this._hasCustomClosed=t.assignedElements({flatten:!0}).length>0},this._handleSearchInput=e=>{var r;const o=(r=e.detail)==null?void 0:r.value;typeof o=="string"&&this._setSearch(o)},this._toggleOpen=()=>{this.open=!this.open},this._togglePin=()=>{this.pinned=!this.pinned,this.dispatchEvent(new CustomEvent("pin-change",{detail:{pinned:this.pinned},bubbles:!0,composed:!0}))},this._handleTreeToggle=e=>{e.stopPropagation();const{item:t,expanded:o}=e.detail;o?this._expandedIds.add(t.id):this._expandedIds.delete(t.id),this._expandedIds=new Set(this._expandedIds)},this._handleTreeNodeClick=e=>{this.open||!e.detail.hasChildren||(this.open=!0,this._expandedIds.add(e.detail.item.id),this._expandedIds=new Set(this._expandedIds))},this._handleTreeItemClick=e=>{e.stopPropagation();const t=e.detail.item.data;this.dispatchEvent(new CustomEvent("item-click",{detail:{item:t!=null?t:e.detail.item},bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this._loadPersistedState()}updated(e){this._isHydratingState||(e.has("open")||e.has("pinned"))&&this._persistState()}_loadPersistedState(){if(typeof window!="undefined")try{const e=window.localStorage.getItem(this.storageKey);if(!e)return;const t=JSON.parse(e);this._isHydratingState=!0,typeof t.open=="boolean"&&(this.open=t.open),typeof t.pinned=="boolean"&&(this.pinned=t.pinned),this._isHydratingState=!1}catch(e){this._isHydratingState=!1}}_persistState(){if(typeof window!="undefined")try{window.localStorage.setItem(this.storageKey,JSON.stringify({open:this.open,pinned:this.pinned}))}catch(e){}}_mapItemElement(e,t){var c;const o=e.itemId||e.id||t,r=Array.from(e.children).find(u=>u.getAttribute("slot")==="icon"),a=r==null?void 0:r.querySelector("ui-icon"),s=Array.from(e.children).filter(u=>u.tagName==="LEFTMENU-ITEM"&&u.getAttribute("slot")==="children"),l=Array.from(e.childNodes).filter(u=>u.nodeType===Node.TEXT_NODE).map(u=>{var h;return(h=u.textContent)!=null?h:""}).join(" ").replace(/\s+/g," ").trim();return{id:o,label:(e.label||l||o).trim(),disabled:e.disabled,active:e.active,iconName:(c=a==null?void 0:a.getAttribute("name"))!=null?c:null,iconHtml:r?r.innerHTML:null,onClick:e.onClick?()=>{var u;return(u=e.onClick)==null?void 0:u.call(e,e)}:void 0,children:s.map((u,h)=>this._mapItemElement(u,`${o}-${h}`))}}_setSearch(e){if(this._search=e,!e){this._searchExpandedIds=new Set;return}const t=new Set,o=r=>{let a=!1;return r.forEach(s=>{const l=s.label.toLocaleLowerCase().includes(e.toLocaleLowerCase()),c=o(s.children);c&&t.add(s.id),l&&s.children.length&&t.add(s.id),a=a||l||c}),a};o(this._nodes),this._searchExpandedIds=t}_filterNodes(e,t){if(!t)return e;const o=t.toLocaleLowerCase(),r=a=>{const s=a.children.map(r).filter(Boolean);return!a.label.toLocaleLowerCase().includes(o)&&s.length===0?null:Pe(we({},a),{children:s})};return e.map(r).filter(Boolean)}_toTreeItems(e){return e.map(t=>{var o;return{id:t.id,label:t.label,disabled:t.disabled,active:t.active,iconName:(o=t.iconName)!=null?o:void 0,iconHtml:t.iconHtml,onClick:t.onClick?()=>{var r;(r=t.onClick)==null||r.call(t,t)}:void 0,data:t,children:this._toTreeItems(t.children)}})}_effectiveExpandedIds(){const e=new Set(this._expandedIds);return this._search&&this._searchExpandedIds.forEach(t=>e.add(t)),Array.from(e)}render(){const e=this._filterNodes(this._nodes,this._search),t=this._toTreeItems(e),o=this.pinned?this.open?this.openWidth:this.closedWidth:this.closedWidth;return p`
1070
1238
  <aside
1071
1239
  class="lm ${this.open?"lm--open":"lm--closed"} ${this.pinned?"lm--pinned":"lm--overlay"}"
1072
1240
  style=${`--lm-open-width:${this.openWidth}px; --lm-closed-width:${this.closedWidth}px; width:${o}px;`}
@@ -1075,10 +1243,10 @@
1075
1243
 
1076
1244
  <div class="lm__panel">
1077
1245
  <div class="lm__brand">
1078
- ${this.open?u`<slot name="logo-open"></slot>`:u`<slot name="logo-closed"></slot>`}
1246
+ ${this.open?p`<slot name="logo-open"></slot>`:p`<slot name="logo-closed"></slot>`}
1079
1247
  </div>
1080
1248
 
1081
- ${this.open?u`
1249
+ ${this.open?p`
1082
1250
  <div class="lm__search">
1083
1251
  <logosphere-input
1084
1252
  placeholder="Arayın..."
@@ -1088,7 +1256,7 @@
1088
1256
  <ui-icon slot="prefix" name="uil-search" size="16"></ui-icon>
1089
1257
  </logosphere-input>
1090
1258
  </div>
1091
- `:v}
1259
+ `:b}
1092
1260
 
1093
1261
  <nav class="lm__nav">
1094
1262
  <logosphere-tree-menu
@@ -1103,11 +1271,11 @@
1103
1271
  @item-click=${this._handleTreeItemClick}
1104
1272
  ></logosphere-tree-menu>
1105
1273
 
1106
- ${this.open?u`
1274
+ ${this.open?p`
1107
1275
  <div class="lm__custom ${this._hasCustomOpen?"":"lm__custom--hidden"}">
1108
1276
  <slot name="custom-open" @slotchange=${this._onCustomOpenSlotChange}></slot>
1109
1277
  </div>
1110
- `:u`
1278
+ `:p`
1111
1279
  <div class="lm__custom ${this._hasCustomClosed?"":"lm__custom--hidden"}">
1112
1280
  <slot name="custom-closed" @slotchange=${this._onCustomClosedSlotChange}></slot>
1113
1281
  </div>
@@ -1146,9 +1314,9 @@
1146
1314
  </div>
1147
1315
  </div>
1148
1316
  </aside>
1149
- `}},n.LeftMenu.styles=[R`
1150
- ${H(Wa)}
1151
- `],pe([d({type:Boolean,reflect:!0})],n.LeftMenu.prototype,"open",2),pe([d({type:Boolean,reflect:!0})],n.LeftMenu.prototype,"pinned",2),pe([d({type:Number})],n.LeftMenu.prototype,"closedWidth",2),pe([d({type:Number})],n.LeftMenu.prototype,"openWidth",2),pe([d({type:String})],n.LeftMenu.prototype,"storageKey",2),pe([y()],n.LeftMenu.prototype,"_nodes",2),pe([y()],n.LeftMenu.prototype,"_expandedIds",2),pe([y()],n.LeftMenu.prototype,"_search",2),pe([y()],n.LeftMenu.prototype,"_searchExpandedIds",2),pe([y()],n.LeftMenu.prototype,"_hasCustomOpen",2),pe([y()],n.LeftMenu.prototype,"_hasCustomClosed",2),n.LeftMenu=pe([V("logosphere-leftmenu")],n.LeftMenu);const Xa='.modal__backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--z-index-modal-backdrop, 1050);display:flex;align-items:center;justify-content:center;background-color:#00000080;padding:var(--spacing-4, 16px);font-family:var(--font-family-base, "Inter", sans-serif);animation:modal-backdrop-fade-in .15s ease-out}@keyframes modal-backdrop-fade-in{0%{opacity:0}to{opacity:1}}.modal__dialog{width:100%;max-width:500px;max-height:calc(100vh - 48px);border-radius:var(--radius-lg, 12px);border:1px solid var(--color-border, #e0e0e0);overflow:hidden;box-shadow:0 8px 8px -4px #0000000a,0 20px 24px -4px #0000001a;background-color:var(--color-body-bg, white);display:flex;flex-direction:column;animation:modal-dialog-scale-in .15s ease-out}@keyframes modal-dialog-scale-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.modal__dialog:focus{outline:none}.modal__dialog--sm{max-width:400px}.modal__dialog--md{max-width:500px}.modal__dialog--lg{max-width:720px}.modal__dialog--xl{max-width:900px}.modal__dialog--full{max-width:calc(100vw - 48px);max-height:calc(100vh - 48px)}.modal__header{padding:var(--spacing-4, 16px) var(--spacing-2, 8px);border-bottom:1px solid var(--color-border, #e0e0e0);display:flex;align-items:center;flex-shrink:0}.modal__header-content{flex:1;min-width:0;display:flex;align-items:center;gap:var(--spacing-2, 8px);padding:0 var(--spacing-2, 8px)}.modal__header-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--color-body-text, #2b2b2b)}.modal__title{font-size:var(--font-size-md, 16px);font-weight:var(--font-weight-semibold, 600);color:var(--color-emphasis, black);margin:0;line-height:1.2;letter-spacing:-.16px}.modal__header-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:var(--spacing-2, 8px);border:none;background:transparent;border-radius:var(--radius-base, 8px);cursor:pointer;color:var(--color-secondary, #565656);transition:background-color .15s ease,color .15s ease;flex-shrink:0}.modal__header-btn:hover{background-color:var(--color-body-bg-hover, #f5f5f5);color:var(--color-body-text, #2b2b2b)}.modal__header-btn:focus-visible{outline:2px solid var(--color-primary, #c8102e);outline-offset:2px}.modal__body{padding:var(--spacing-6, 24px) var(--spacing-4, 16px);overflow-y:auto;flex:1;min-height:0;font-size:var(--font-size-sm, 14px);line-height:20px;color:var(--color-body-text, #2b2b2b);letter-spacing:-.14px}.modal__body::-webkit-scrollbar{width:6px}.modal__body::-webkit-scrollbar-track{background:transparent}.modal__body::-webkit-scrollbar-thumb{background-color:var(--color-border, #e0e0e0);border-radius:3px}.modal__body::-webkit-scrollbar-thumb:hover{background-color:var(--color-secondary, #565656)}.modal__footer{padding:var(--spacing-4, 16px) var(--spacing-6, 24px);display:flex;flex-wrap:wrap;gap:var(--spacing-2, 8px);justify-content:flex-end;align-items:center;border-top:1px solid var(--color-border, #e0e0e0);flex-shrink:0}@media(max-width:576px){.modal__backdrop{padding:var(--spacing-3, 12px)}.modal__dialog{max-height:calc(100vh - 24px)}.modal__dialog--sm,.modal__dialog--md,.modal__dialog--lg,.modal__dialog--xl{max-width:100%}.modal__footer{flex-direction:column}.modal__footer ::slotted(*){width:100%}}';var Ja=Object.defineProperty,X=(i,e,t,o)=>{for(var r=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=a(e,t,r)||r);return r&&Ja(e,t,r),r};const wo=class wo extends D{constructor(){super(...arguments),this.open=!1,this.title="",this.size="md",this.closeOnEsc=!0,this.closeOnBackdrop=!0,this.showBack=!1,this.showClose=!0,this.showIcon=!1,this.footer=!0,this.okLabel="Tamam",this.cancelLabel="İptal",this.showCancel=!0,this.hasFooterSlot=!1,this.hasHeaderSlot=!1,this.previousActiveElement=null,this.focusableElements=[],this.onKeyDown=e=>{if(this.open){if(this.closeOnEsc&&e.key==="Escape"){e.preventDefault(),this.setOpen(!1);return}e.key==="Tab"&&this.handleTabKey(e)}},this.onBackdropClick=e=>{var o;if(!this.closeOnBackdrop)return;const t=(o=this.shadowRoot)==null?void 0:o.querySelector(".__modal-content");t&&!e.composedPath().includes(t)&&this.setOpen(!1)},this.handleOk=()=>{var e;(e=this.onOk)==null||e.call(this),this.dispatchEvent(new CustomEvent("ok",{bubbles:!0,composed:!0})),this.setOpen(!1)},this.handleCancel=()=>{var e;(e=this.onCancel)==null||e.call(this),this.dispatchEvent(new CustomEvent("cancel",{bubbles:!0,composed:!0})),this.setOpen(!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.onKeyDown)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.onKeyDown),this.unlockBodyScroll()}openModal(){this.setOpen(!0)}closeModal(){this.setOpen(!1)}setOpen(e){var t;this.open!==e&&(this.open=e,e?(this.lockBodyScroll(),this.previousActiveElement=document.activeElement,requestAnimationFrame(()=>{this.trapFocus()})):(this.unlockBodyScroll(),(t=this.previousActiveElement)==null||t.focus()),this.dispatchEvent(new CustomEvent(e?"modal-open":"modal-close",{bubbles:!0,composed:!0})))}lockBodyScroll(){document.body.style.overflow="hidden",document.body.style.paddingRight=`${window.innerWidth-document.documentElement.clientWidth}px`}unlockBodyScroll(){document.body.style.overflow="",document.body.style.paddingRight=""}trapFocus(){if(!this.dialogElement)return;const e=["button:not([disabled])","[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", ");this.focusableElements=Array.from(this.dialogElement.querySelectorAll(e));const t=this.querySelectorAll(e);this.focusableElements.push(...Array.from(t)),this.focusableElements.length>0?this.focusableElements[0].focus():this.dialogElement.focus()}handleTabKey(e){var r,s;if(this.focusableElements.length===0){e.preventDefault();return}const t=this.focusableElements[0],o=this.focusableElements[this.focusableElements.length-1];e.shiftKey?(document.activeElement===t||((r=this.shadowRoot)==null?void 0:r.activeElement)===t)&&(e.preventDefault(),o.focus()):(document.activeElement===o||((s=this.shadowRoot)==null?void 0:s.activeElement)===o)&&(e.preventDefault(),t.focus())}checkSlotContent(){this.hasFooterSlot=this.querySelector('[slot="footer"]')!==null,this.hasHeaderSlot=this.querySelector('[slot="header"]')!==null}updated(e){super.updated(e),this.checkSlotContent(),e.has("open")&&this.open&&requestAnimationFrame(()=>{this.trapFocus()})}get modalId(){var e;return`modal-${((e=this.title)==null?void 0:e.replace(/\s+/g,"-").toLowerCase())||"dialog"}`}get sizeClass(){const e={sm:"modal__dialog--sm",md:"modal__dialog--md",lg:"modal__dialog--lg",xl:"modal__dialog--xl",full:"modal__dialog--full"};return e[this.size]||e.md}get showHeader(){return this.showBack||this.showClose||this.title||this.hasHeaderSlot||this.showIcon}render(){if(!this.open)return v;const e=`${this.modalId}-title`,t=`${this.modalId}-desc`;return u`
1317
+ `}},n.LeftMenu.styles=[H`
1318
+ ${I(Qs)}
1319
+ `],fe([d({type:Boolean,reflect:!0})],n.LeftMenu.prototype,"open",2),fe([d({type:Boolean,reflect:!0})],n.LeftMenu.prototype,"pinned",2),fe([d({type:Number})],n.LeftMenu.prototype,"closedWidth",2),fe([d({type:Number})],n.LeftMenu.prototype,"openWidth",2),fe([d({type:String})],n.LeftMenu.prototype,"storageKey",2),fe([y()],n.LeftMenu.prototype,"_nodes",2),fe([y()],n.LeftMenu.prototype,"_expandedIds",2),fe([y()],n.LeftMenu.prototype,"_search",2),fe([y()],n.LeftMenu.prototype,"_searchExpandedIds",2),fe([y()],n.LeftMenu.prototype,"_hasCustomOpen",2),fe([y()],n.LeftMenu.prototype,"_hasCustomClosed",2),n.LeftMenu=fe([V("logosphere-leftmenu")],n.LeftMenu);const on='.modal__backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--z-index-modal-backdrop, 1050);display:flex;align-items:center;justify-content:center;background-color:#00000080;padding:var(--spacing-4, 16px);font-family:var(--font-family-base, "Inter", sans-serif);animation:modal-backdrop-fade-in .15s ease-out}@keyframes modal-backdrop-fade-in{0%{opacity:0}to{opacity:1}}.modal__dialog{width:100%;max-width:500px;max-height:calc(100vh - 48px);border-radius:var(--radius-lg, 12px);border:1px solid var(--color-border, #e0e0e0);overflow:hidden;box-shadow:0 8px 8px -4px #0000000a,0 20px 24px -4px #0000001a;background-color:var(--color-body-bg, white);display:flex;flex-direction:column;animation:modal-dialog-scale-in .15s ease-out}@keyframes modal-dialog-scale-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.modal__dialog:focus{outline:none}.modal__dialog--sm{max-width:400px}.modal__dialog--md{max-width:500px}.modal__dialog--lg{max-width:720px}.modal__dialog--xl{max-width:900px}.modal__dialog--full{max-width:calc(100vw - 48px);max-height:calc(100vh - 48px)}.modal__header{padding:var(--spacing-4, 16px) var(--spacing-2, 8px);border-bottom:1px solid var(--color-border, #e0e0e0);display:flex;align-items:center;flex-shrink:0}.modal__header-content{flex:1;min-width:0;display:flex;align-items:center;gap:var(--spacing-2, 8px);padding:0 var(--spacing-2, 8px)}.modal__header-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--color-body-text, #2b2b2b)}.modal__title{font-size:var(--font-size-md, 16px);font-weight:var(--font-weight-semibold, 600);color:var(--color-emphasis, black);margin:0;line-height:1.2;letter-spacing:-.16px}.modal__header-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:var(--spacing-2, 8px);border:none;background:transparent;border-radius:var(--radius-base, 8px);cursor:pointer;color:var(--color-secondary, #565656);transition:background-color .15s ease,color .15s ease;flex-shrink:0}.modal__header-btn:hover{background-color:var(--color-body-bg-hover, #f5f5f5);color:var(--color-body-text, #2b2b2b)}.modal__header-btn:focus-visible{outline:2px solid var(--color-primary, #c8102e);outline-offset:2px}.modal__body{padding:var(--spacing-6, 24px) var(--spacing-4, 16px);overflow-y:auto;flex:1;min-height:0;font-size:var(--font-size-sm, 14px);line-height:20px;color:var(--color-body-text, #2b2b2b);letter-spacing:-.14px}.modal__body::-webkit-scrollbar{width:6px}.modal__body::-webkit-scrollbar-track{background:transparent}.modal__body::-webkit-scrollbar-thumb{background-color:var(--color-border, #e0e0e0);border-radius:3px}.modal__body::-webkit-scrollbar-thumb:hover{background-color:var(--color-secondary, #565656)}.modal__footer{padding:var(--spacing-4, 16px) var(--spacing-6, 24px);display:flex;flex-wrap:wrap;gap:var(--spacing-2, 8px);justify-content:flex-end;align-items:center;border-top:1px solid var(--color-border, #e0e0e0);flex-shrink:0}@media(max-width:576px){.modal__backdrop{padding:var(--spacing-3, 12px)}.modal__dialog{max-height:calc(100vh - 24px)}.modal__dialog--sm,.modal__dialog--md,.modal__dialog--lg,.modal__dialog--xl{max-width:100%}.modal__footer{flex-direction:column}.modal__footer ::slotted(*){width:100%}}';var rn=Object.defineProperty,J=(i,e,t,o)=>{for(var r=void 0,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=s(e,t,r)||r);return r&&rn(e,t,r),r};const ko=class ko extends P{constructor(){super(...arguments),this.open=!1,this.title="",this.size="md",this.closeOnEsc=!0,this.closeOnBackdrop=!0,this.showBack=!1,this.showClose=!0,this.showIcon=!1,this.footer=!0,this.okLabel="Tamam",this.cancelLabel="İptal",this.showCancel=!0,this.hasFooterSlot=!1,this.hasHeaderSlot=!1,this.previousActiveElement=null,this.focusableElements=[],this.onKeyDown=e=>{if(this.open){if(this.closeOnEsc&&e.key==="Escape"){e.preventDefault(),this.setOpen(!1);return}e.key==="Tab"&&this.handleTabKey(e)}},this.onBackdropClick=e=>{var o;if(!this.closeOnBackdrop)return;const t=(o=this.shadowRoot)==null?void 0:o.querySelector(".__modal-content");t&&!e.composedPath().includes(t)&&this.setOpen(!1)},this.handleOk=()=>{var e;(e=this.onOk)==null||e.call(this),this.dispatchEvent(new CustomEvent("ok",{bubbles:!0,composed:!0})),this.setOpen(!1)},this.handleCancel=()=>{var e;(e=this.onCancel)==null||e.call(this),this.dispatchEvent(new CustomEvent("cancel",{bubbles:!0,composed:!0})),this.setOpen(!1)}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.onKeyDown)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.onKeyDown),this.unlockBodyScroll()}openModal(){this.setOpen(!0)}closeModal(){this.setOpen(!1)}setOpen(e){var t;this.open!==e&&(this.open=e,e?(this.lockBodyScroll(),this.previousActiveElement=document.activeElement,requestAnimationFrame(()=>{this.trapFocus()})):(this.unlockBodyScroll(),(t=this.previousActiveElement)==null||t.focus()),this.dispatchEvent(new CustomEvent(e?"modal-open":"modal-close",{bubbles:!0,composed:!0})))}lockBodyScroll(){document.body.style.overflow="hidden",document.body.style.paddingRight=`${window.innerWidth-document.documentElement.clientWidth}px`}unlockBodyScroll(){document.body.style.overflow="",document.body.style.paddingRight=""}trapFocus(){if(!this.dialogElement)return;const e=["button:not([disabled])","[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", ");this.focusableElements=Array.from(this.dialogElement.querySelectorAll(e));const t=this.querySelectorAll(e);this.focusableElements.push(...Array.from(t)),this.focusableElements.length>0?this.focusableElements[0].focus():this.dialogElement.focus()}handleTabKey(e){var r,a;if(this.focusableElements.length===0){e.preventDefault();return}const t=this.focusableElements[0],o=this.focusableElements[this.focusableElements.length-1];e.shiftKey?(document.activeElement===t||((r=this.shadowRoot)==null?void 0:r.activeElement)===t)&&(e.preventDefault(),o.focus()):(document.activeElement===o||((a=this.shadowRoot)==null?void 0:a.activeElement)===o)&&(e.preventDefault(),t.focus())}checkSlotContent(){this.hasFooterSlot=this.querySelector('[slot="footer"]')!==null,this.hasHeaderSlot=this.querySelector('[slot="header"]')!==null}updated(e){super.updated(e),this.checkSlotContent(),e.has("open")&&this.open&&requestAnimationFrame(()=>{this.trapFocus()})}get modalId(){var e;return`modal-${((e=this.title)==null?void 0:e.replace(/\s+/g,"-").toLowerCase())||"dialog"}`}get sizeClass(){const e={sm:"modal__dialog--sm",md:"modal__dialog--md",lg:"modal__dialog--lg",xl:"modal__dialog--xl",full:"modal__dialog--full"};return e[this.size]||e.md}get showHeader(){return this.showBack||this.showClose||this.title||this.hasHeaderSlot||this.showIcon}render(){if(!this.open)return b;const e=`${this.modalId}-title`,t=`${this.modalId}-desc`;return p`
1152
1320
  <div
1153
1321
  class="modal__backdrop"
1154
1322
  role="presentation"
@@ -1159,13 +1327,13 @@
1159
1327
  class="__modal-content modal__dialog ${this.sizeClass}"
1160
1328
  role="dialog"
1161
1329
  aria-modal="true"
1162
- aria-labelledby=${this.title?e:v}
1330
+ aria-labelledby=${this.title?e:b}
1163
1331
  aria-describedby=${t}
1164
1332
  tabindex="-1"
1165
1333
  >
1166
- ${this.showHeader?u`
1334
+ ${this.showHeader?p`
1167
1335
  <div class="modal__header">
1168
- ${this.showBack?u`
1336
+ ${this.showBack?p`
1169
1337
  <button
1170
1338
  type="button"
1171
1339
  class="modal__header-btn"
@@ -1174,19 +1342,19 @@
1174
1342
  >
1175
1343
  <ui-icon name="uil-arrow-left" size="16"></ui-icon>
1176
1344
  </button>
1177
- `:v}
1345
+ `:b}
1178
1346
  <div class="modal__header-content">
1179
- ${this.showIcon?u`
1347
+ ${this.showIcon?p`
1180
1348
  <span class="modal__header-icon">
1181
1349
  <slot name="icon">
1182
1350
  <ui-icon name="uil-exclamation-triangle" size="16"></ui-icon>
1183
1351
  </slot>
1184
1352
  </span>
1185
- `:v}
1186
- ${this.title?u`<h2 id=${e} class="modal__title">${this.title}</h2>`:v}
1353
+ `:b}
1354
+ ${this.title?p`<h2 id=${e} class="modal__title">${this.title}</h2>`:b}
1187
1355
  <slot name="header"></slot>
1188
1356
  </div>
1189
- ${this.showClose?u`
1357
+ ${this.showClose?p`
1190
1358
  <button
1191
1359
  type="button"
1192
1360
  class="modal__header-btn modal__close-btn"
@@ -1195,9 +1363,9 @@
1195
1363
  >
1196
1364
  <ui-icon name="uil-times" size="16"></ui-icon>
1197
1365
  </button>
1198
- `:v}
1366
+ `:b}
1199
1367
  </div>
1200
- `:v}
1368
+ `:b}
1201
1369
 
1202
1370
  <div id=${t} class="modal__body">
1203
1371
  <slot></slot>
@@ -1206,13 +1374,13 @@
1206
1374
  ${this.renderFooter()}
1207
1375
  </div>
1208
1376
  </div>
1209
- `}renderFooter(){return this.footer?this.hasFooterSlot?u`
1377
+ `}renderFooter(){return this.footer?this.hasFooterSlot?p`
1210
1378
  <div class="modal__footer">
1211
1379
  <slot name="footer"></slot>
1212
1380
  </div>
1213
- `:u`
1381
+ `:p`
1214
1382
  <div class="modal__footer">
1215
- ${this.showCancel?u`
1383
+ ${this.showCancel?p`
1216
1384
  <logosphere-button
1217
1385
  variant="outline"
1218
1386
  theme="primary"
@@ -1221,7 +1389,7 @@
1221
1389
  >
1222
1390
  ${this.cancelLabel}
1223
1391
  </logosphere-button>
1224
- `:v}
1392
+ `:b}
1225
1393
  <logosphere-button
1226
1394
  variant="solid"
1227
1395
  theme="primary"
@@ -1231,7 +1399,7 @@
1231
1399
  ${this.okLabel}
1232
1400
  </logosphere-button>
1233
1401
  </div>
1234
- `:v}};wo.styles=[R`${H(Xa)}`];let U=wo;X([d({type:Boolean,reflect:!0})],U.prototype,"open"),X([d({type:String})],U.prototype,"title"),X([d({type:String})],U.prototype,"size"),X([d({type:Boolean})],U.prototype,"closeOnEsc"),X([d({type:Boolean})],U.prototype,"closeOnBackdrop"),X([d({type:Boolean})],U.prototype,"showBack"),X([d({type:Boolean})],U.prototype,"showClose"),X([d({type:Boolean})],U.prototype,"showIcon"),X([d({type:Boolean})],U.prototype,"footer"),X([d({type:String})],U.prototype,"okLabel"),X([d({type:String})],U.prototype,"cancelLabel"),X([d({type:Boolean})],U.prototype,"showCancel"),X([d({attribute:!1})],U.prototype,"onOk"),X([d({attribute:!1})],U.prototype,"onCancel"),X([y()],U.prototype,"hasFooterSlot"),X([y()],U.prototype,"hasHeaderSlot"),X([Z(".modal__dialog")],U.prototype,"dialogElement"),customElements.get("logosphere-modal")||customElements.define("logosphere-modal",U);const Qa=".toast{position:relative;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:start;width:100%;box-sizing:border-box;border-radius:var(--radius-md);border-left:4px solid var(--toast-accent);background:#fff;box-shadow:var(--shadow-md);padding:var(--spacing-4);color:#3d3d3d;font-family:var(--font-family-base);animation:toast-enter .22s cubic-bezier(.2,.8,.2,1);transform-origin:top right}.toast__icon{display:inline-flex;margin-top:2px;color:var(--toast-accent)}.toast__content{min-width:0}.toast__title{margin:0;font-size:var(--font-size-lg);line-height:var(--line-height-tight);font-weight:var(--font-weight-semibold)}.toast__title--as-text{font-size:var(--font-size-base);line-height:var(--line-height-normal);font-weight:var(--font-weight-regular);color:#555}.toast__text{margin:4px 0 0;font-size:var(--font-size-base);line-height:var(--line-height-normal);color:#555}.toast__actions{display:flex;gap:10px;margin-top:12px}.toast__close{border:0;background:transparent;color:#5a5a5a;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;margin-top:2px}.toast__close:hover{color:#2f2f2f}.toast--success{--toast-accent: var(--color-success-active)}.toast--danger{--toast-accent: var(--color-danger-active)}.toast--warning{--toast-accent: var(--color-warning-active)}.toast--info{--toast-accent: var(--color-info-active)}.toast[data-closing=true]{pointer-events:none;animation:toast-exit .22s cubic-bezier(.4,0,1,1) forwards}@keyframes toast-enter{0%{opacity:0;transform:translate3d(18px,-8px,0) scale(.98)}to{opacity:1;transform:translateZ(0) scale(1)}}@keyframes toast-exit{0%{opacity:1;transform:translateZ(0) scale(1);max-height:240px;margin-bottom:0}to{opacity:0;transform:translate3d(20px,-6px,0) scale(.97);max-height:0;margin-bottom:-12px}}";var en=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,be=(i,e,t,o)=>{for(var r=o>1?void 0:o?tn(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&en(e,t,r),r};const _r=6e3,on=220,rn={success:"uil-check-circle",danger:"uil-exclamation-octagon",warning:"uil-exclamation-triangle",info:"uil-info-circle"};n.LogosphereToast=class extends D{constructor(){super(...arguments),this.type="info",this.title="",this.text="",this.icon="",this.closeable=!0,this.duration=_r,this.autoDismiss=!0,this.isClosing=!1,this.remainingMs=_r,this.startedAt=0}connectedCallback(){super.connectedCallback(),this.remainingMs=this.duration,this.startTimer()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimer(),this.closeTimerId&&(clearTimeout(this.closeTimerId),this.closeTimerId=void 0)}updated(e){e.has("duration")&&(this.remainingMs=this.duration,this.restartTimer()),(e.has("action")||e.has("autoDismiss")||e.has("type"))&&this.restartTimer()}close(e="manual"){this.isClosing||(this.clearTimer(),this.isClosing=!0,this.closeTimerId=setTimeout(()=>{this.dispatchEvent(new CustomEvent("toast-close",{detail:{reason:e},bubbles:!0,composed:!0}))},on))}get canAutoDismiss(){return this.autoDismiss&&this.type!=="danger"&&!this.hasActions}get resolvedTitle(){return this.title||this.text}get resolvedText(){return this.title?this.text:""}get resolvedIcon(){return this.icon||rn[this.type]}get hasActions(){return!!this.action}onActionClick(e){var t,o,r,s,a;this.action&&(e==="okay"?(o=(t=this.action).onOkay)==null||o.call(t):(s=(r=this.action).onCancel)==null||s.call(r),((a=this.action.closeOnAction)==null||a)&&this.close("manual"))}clearTimer(){this.timerId&&(clearTimeout(this.timerId),this.timerId=void 0)}startTimer(){this.clearTimer(),!(!this.canAutoDismiss||this.remainingMs<=0)&&(this.startedAt=Date.now(),this.timerId=setTimeout(()=>this.close("auto"),this.remainingMs))}pauseTimer(){this.timerId&&(this.clearTimer(),this.remainingMs=Math.max(0,this.remainingMs-(Date.now()-this.startedAt)))}resumeTimer(){this.canAutoDismiss&&this.startTimer()}restartTimer(){this.clearTimer(),this.startTimer()}render(){var e,t;return u`
1402
+ `:b}};ko.styles=[H`${I(on)}`];let U=ko;J([d({type:Boolean,reflect:!0})],U.prototype,"open"),J([d({type:String})],U.prototype,"title"),J([d({type:String})],U.prototype,"size"),J([d({type:Boolean})],U.prototype,"closeOnEsc"),J([d({type:Boolean})],U.prototype,"closeOnBackdrop"),J([d({type:Boolean})],U.prototype,"showBack"),J([d({type:Boolean})],U.prototype,"showClose"),J([d({type:Boolean})],U.prototype,"showIcon"),J([d({type:Boolean})],U.prototype,"footer"),J([d({type:String})],U.prototype,"okLabel"),J([d({type:String})],U.prototype,"cancelLabel"),J([d({type:Boolean})],U.prototype,"showCancel"),J([d({attribute:!1})],U.prototype,"onOk"),J([d({attribute:!1})],U.prototype,"onCancel"),J([y()],U.prototype,"hasFooterSlot"),J([y()],U.prototype,"hasHeaderSlot"),J([Z(".modal__dialog")],U.prototype,"dialogElement"),customElements.get("logosphere-modal")||customElements.define("logosphere-modal",U);const an=".toast{position:relative;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:start;width:100%;box-sizing:border-box;border-radius:var(--radius-md);border-left:4px solid var(--toast-accent);background:#fff;box-shadow:var(--shadow-md);padding:var(--spacing-4);color:#3d3d3d;font-family:var(--font-family-base);animation:toast-enter .22s cubic-bezier(.2,.8,.2,1);transform-origin:top right}.toast__icon{display:inline-flex;margin-top:2px;color:var(--toast-accent)}.toast__content{min-width:0}.toast__title{margin:0;font-size:var(--font-size-lg);line-height:var(--line-height-tight);font-weight:var(--font-weight-semibold)}.toast__title--as-text{font-size:var(--font-size-base);line-height:var(--line-height-normal);font-weight:var(--font-weight-regular);color:#555}.toast__text{margin:4px 0 0;font-size:var(--font-size-base);line-height:var(--line-height-normal);color:#555}.toast__actions{display:flex;gap:10px;margin-top:12px}.toast__close{border:0;background:transparent;color:#5a5a5a;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;margin-top:2px}.toast__close:hover{color:#2f2f2f}.toast--success{--toast-accent: var(--color-success-active)}.toast--danger{--toast-accent: var(--color-danger-active)}.toast--warning{--toast-accent: var(--color-warning-active)}.toast--info{--toast-accent: var(--color-info-active)}.toast[data-closing=true]{pointer-events:none;animation:toast-exit .22s cubic-bezier(.4,0,1,1) forwards}@keyframes toast-enter{0%{opacity:0;transform:translate3d(18px,-8px,0) scale(.98)}to{opacity:1;transform:translateZ(0) scale(1)}}@keyframes toast-exit{0%{opacity:1;transform:translateZ(0) scale(1);max-height:240px;margin-bottom:0}to{opacity:0;transform:translate3d(20px,-6px,0) scale(.97);max-height:0;margin-bottom:-12px}}";var sn=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,_e=(i,e,t,o)=>{for(var r=o>1?void 0:o?nn(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&sn(e,t,r),r};const xr=6e3,ln=220,cn={success:"uil-check-circle",danger:"uil-exclamation-octagon",warning:"uil-exclamation-triangle",info:"uil-info-circle"};n.LogosphereToast=class extends P{constructor(){super(...arguments),this.type="info",this.title="",this.text="",this.icon="",this.closeable=!0,this.duration=xr,this.autoDismiss=!0,this.isClosing=!1,this.remainingMs=xr,this.startedAt=0}connectedCallback(){super.connectedCallback(),this.remainingMs=this.duration,this.startTimer()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimer(),this.closeTimerId&&(clearTimeout(this.closeTimerId),this.closeTimerId=void 0)}updated(e){e.has("duration")&&(this.remainingMs=this.duration,this.restartTimer()),(e.has("action")||e.has("autoDismiss")||e.has("type"))&&this.restartTimer()}close(e="manual"){this.isClosing||(this.clearTimer(),this.isClosing=!0,this.closeTimerId=setTimeout(()=>{this.dispatchEvent(new CustomEvent("toast-close",{detail:{reason:e},bubbles:!0,composed:!0}))},ln))}get canAutoDismiss(){return this.autoDismiss&&this.type!=="danger"&&!this.hasActions}get resolvedTitle(){return this.title||this.text}get resolvedText(){return this.title?this.text:""}get resolvedIcon(){return this.icon||cn[this.type]}get hasActions(){return!!this.action}onActionClick(e){var t,o,r,a,s;this.action&&(e==="okay"?(o=(t=this.action).onOkay)==null||o.call(t):(a=(r=this.action).onCancel)==null||a.call(r),((s=this.action.closeOnAction)==null||s)&&this.close("manual"))}clearTimer(){this.timerId&&(clearTimeout(this.timerId),this.timerId=void 0)}startTimer(){this.clearTimer(),!(!this.canAutoDismiss||this.remainingMs<=0)&&(this.startedAt=Date.now(),this.timerId=setTimeout(()=>this.close("auto"),this.remainingMs))}pauseTimer(){this.timerId&&(this.clearTimer(),this.remainingMs=Math.max(0,this.remainingMs-(Date.now()-this.startedAt)))}resumeTimer(){this.canAutoDismiss&&this.startTimer()}restartTimer(){this.clearTimer(),this.startTimer()}render(){var e,t;return p`
1235
1403
  <article
1236
1404
  class="toast toast--${this.type}"
1237
1405
  data-closing=${this.isClosing?"true":"false"}
@@ -1248,8 +1416,8 @@
1248
1416
  <h4 class=${this.title?"toast__title":"toast__title toast__title--as-text"}>
1249
1417
  ${this.resolvedTitle}
1250
1418
  </h4>
1251
- ${this.resolvedText?u`<p class="toast__text">${this.resolvedText}</p>`:v}
1252
- ${this.hasActions?u`
1419
+ ${this.resolvedText?p`<p class="toast__text">${this.resolvedText}</p>`:b}
1420
+ ${this.hasActions?p`
1253
1421
  <div class="toast__actions">
1254
1422
  <logosphere-button
1255
1423
  variant="outline"
@@ -1266,20 +1434,20 @@
1266
1434
  ${((t=this.action)==null?void 0:t.cancelLabel)||"İptal"}
1267
1435
  </logosphere-button>
1268
1436
  </div>
1269
- `:v}
1437
+ `:b}
1270
1438
  </div>
1271
1439
 
1272
- ${this.closeable?u`
1440
+ ${this.closeable?p`
1273
1441
  <button class="toast__close" @click=${()=>this.close("manual")} aria-label="Close">
1274
1442
  <ui-icon name="uil-times" size="20"></ui-icon>
1275
1443
  </button>
1276
- `:v}
1444
+ `:b}
1277
1445
  </article>
1278
- `}},n.LogosphereToast.styles=[R`
1279
- ${H(Qa)}
1280
- `],be([d({type:String})],n.LogosphereToast.prototype,"type",2),be([d({type:String})],n.LogosphereToast.prototype,"title",2),be([d({type:String})],n.LogosphereToast.prototype,"text",2),be([d({type:String})],n.LogosphereToast.prototype,"icon",2),be([d({type:Boolean})],n.LogosphereToast.prototype,"closeable",2),be([d({type:Number})],n.LogosphereToast.prototype,"duration",2),be([d({type:Boolean})],n.LogosphereToast.prototype,"autoDismiss",2),be([d({attribute:!1})],n.LogosphereToast.prototype,"action",2),be([y()],n.LogosphereToast.prototype,"isClosing",2),n.LogosphereToast=be([V("logosphere-toast")],n.LogosphereToast);const yr=(i,e,t)=>{const o=new Map;for(let r=e;r<=t;r++)o.set(i[r],r);return o},sn=Pt(class extends Lt{constructor(i){if(super(i),i.type!==ye.CHILD)throw Error("repeat() can only be used in text expressions")}dt(i,e,t){let o;t===void 0?t=e:e!==void 0&&(o=e);const r=[],s=[];let a=0;for(const l of i)r[a]=o?o(l,a):a,s[a]=t(l,a),a++;return{values:s,keys:r}}render(i,e,t){return this.dt(i,e,t).values}update(i,[e,t,o]){var C;const r=fi(i),{values:s,keys:a}=this.dt(e,t,o);if(!Array.isArray(r))return this.ut=a,s;const l=(C=this.ut)!=null?C:this.ut=[],c=[];let p,h,f=0,g=r.length-1,b=0,w=s.length-1;for(;f<=g&&b<=w;)if(r[f]===null)f++;else if(r[g]===null)g--;else if(l[f]===a[b])c[b]=je(r[f],s[b]),f++,b++;else if(l[g]===a[w])c[w]=je(r[g],s[w]),g--,w--;else if(l[f]===a[w])c[w]=je(r[f],s[w]),mt(i,c[w+1],r[f]),f++,w--;else if(l[g]===a[b])c[b]=je(r[g],s[b]),mt(i,r[f],r[g]),g--,b++;else if(p===void 0&&(p=yr(a,b,w),h=yr(l,f,g)),p.has(l[f]))if(p.has(l[g])){const m=h.get(a[b]),_=m!==void 0?r[m]:null;if(_===null){const x=mt(i,r[f]);je(x,s[b]),c[b]=x}else c[b]=je(_,s[b]),mt(i,r[f],_),r[m]=null;b++}else no(r[g]),g--;else no(r[f]),f++;for(;b<=w;){const m=mt(i,c[w+1]);je(m,s[b]),c[b++]=m}for(;f<=g;){const m=r[f++];m!==null&&no(m)}return this.ut=a,Fo(i,c),le}}),an=":host{position:fixed;top:16px;right:16px;z-index:9999;width:min(420px,calc(100vw - 24px));box-sizing:border-box}.toast-container{display:flex;flex-direction:column;gap:12px}";var nn=Object.defineProperty,ln=Object.getOwnPropertyDescriptor,wr=(i,e,t,o)=>{for(var r=o>1?void 0:o?ln(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&nn(e,t,r),r};const xr=4;n.LogosphereToastContainer=class extends D{constructor(){super(...arguments),this.visibleToasts=[],this.queuedToasts=[]}show(e){const t=this.toToast(e);return this.visibleToasts.length<xr?(this.visibleToasts=[t,...this.visibleToasts],t.id):(this.queuedToasts.push(t),t.id)}close(e){const t=this.visibleToasts.findIndex(o=>o.id===e);if(t!==-1){const o=this.visibleToasts.slice();o.splice(t,1),this.visibleToasts=o,this.dequeue();return}this.queuedToasts=this.queuedToasts.filter(o=>o.id!==e)}clear(){this.visibleToasts=[],this.queuedToasts=[]}dequeue(){if(!this.queuedToasts.length||this.visibleToasts.length>=xr)return;const e=this.queuedToasts.shift();e&&(this.visibleToasts=[e,...this.visibleToasts])}toToast(e){var t,o,r;return{id:e.id||this.createId(),type:e.type||"info",title:e.title||"",text:e.text,icon:e.icon||"",closeable:(t=e.closeable)!=null?t:!0,autoDismiss:(o=e.autoDismiss)!=null?o:!0,duration:(r=e.duration)!=null?r:6e3,action:e.action}}createId(){return`toast-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}render(){return u`
1446
+ `}},n.LogosphereToast.styles=[H`
1447
+ ${I(an)}
1448
+ `],_e([d({type:String})],n.LogosphereToast.prototype,"type",2),_e([d({type:String})],n.LogosphereToast.prototype,"title",2),_e([d({type:String})],n.LogosphereToast.prototype,"text",2),_e([d({type:String})],n.LogosphereToast.prototype,"icon",2),_e([d({type:Boolean})],n.LogosphereToast.prototype,"closeable",2),_e([d({type:Number})],n.LogosphereToast.prototype,"duration",2),_e([d({type:Boolean})],n.LogosphereToast.prototype,"autoDismiss",2),_e([d({attribute:!1})],n.LogosphereToast.prototype,"action",2),_e([y()],n.LogosphereToast.prototype,"isClosing",2),n.LogosphereToast=_e([V("logosphere-toast")],n.LogosphereToast);const $r=(i,e,t)=>{const o=new Map;for(let r=e;r<=t;r++)o.set(i[r],r);return o},dn=Ot(class extends Bt{constructor(i){if(super(i),i.type!==xe.CHILD)throw Error("repeat() can only be used in text expressions")}dt(i,e,t){let o;t===void 0?t=e:e!==void 0&&(o=e);const r=[],a=[];let s=0;for(const l of i)r[s]=o?o(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:r}}render(i,e,t){return this.dt(i,e,t).values}update(i,[e,t,o]){var C;const r=bi(i),{values:a,keys:s}=this.dt(e,t,o);if(!Array.isArray(r))return this.ut=s,a;const l=(C=this.ut)!=null?C:this.ut=[],c=[];let u,h,f=0,g=r.length-1,v=0,w=a.length-1;for(;f<=g&&v<=w;)if(r[f]===null)f++;else if(r[g]===null)g--;else if(l[f]===s[v])c[v]=Ve(r[f],a[v]),f++,v++;else if(l[g]===s[w])c[w]=Ve(r[g],a[w]),g--,w--;else if(l[f]===s[w])c[w]=Ve(r[f],a[w]),vt(i,c[w+1],r[f]),f++,w--;else if(l[g]===s[v])c[v]=Ve(r[g],a[v]),vt(i,r[f],r[g]),g--,v++;else if(u===void 0&&(u=$r(s,v,w),h=$r(l,f,g)),u.has(l[f]))if(u.has(l[g])){const m=h.get(s[v]),_=m!==void 0?r[m]:null;if(_===null){const x=vt(i,r[f]);Ve(x,a[v]),c[v]=x}else c[v]=Ve(_,a[v]),vt(i,r[f],_),r[m]=null;v++}else ho(r[g]),g--;else ho(r[f]),f++;for(;v<=w;){const m=vt(i,c[w+1]);Ve(m,a[v]),c[v++]=m}for(;f<=g;){const m=r[f++];m!==null&&ho(m)}return this.ut=s,Uo(i,c),de}}),hn=":host{position:fixed;top:16px;right:16px;z-index:9999;width:min(420px,calc(100vw - 24px));box-sizing:border-box}.toast-container{display:flex;flex-direction:column;gap:12px}";var pn=Object.defineProperty,un=Object.getOwnPropertyDescriptor,kr=(i,e,t,o)=>{for(var r=o>1?void 0:o?un(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&pn(e,t,r),r};const Cr=4;n.LogosphereToastContainer=class extends P{constructor(){super(...arguments),this.visibleToasts=[],this.queuedToasts=[]}show(e){const t=this.toToast(e);return this.visibleToasts.length<Cr?(this.visibleToasts=[t,...this.visibleToasts],t.id):(this.queuedToasts.push(t),t.id)}close(e){const t=this.visibleToasts.findIndex(o=>o.id===e);if(t!==-1){const o=this.visibleToasts.slice();o.splice(t,1),this.visibleToasts=o,this.dequeue();return}this.queuedToasts=this.queuedToasts.filter(o=>o.id!==e)}clear(){this.visibleToasts=[],this.queuedToasts=[]}dequeue(){if(!this.queuedToasts.length||this.visibleToasts.length>=Cr)return;const e=this.queuedToasts.shift();e&&(this.visibleToasts=[e,...this.visibleToasts])}toToast(e){var t,o,r;return{id:e.id||this.createId(),type:e.type||"info",title:e.title||"",text:e.text,icon:e.icon||"",closeable:(t=e.closeable)!=null?t:!0,autoDismiss:(o=e.autoDismiss)!=null?o:!0,duration:(r=e.duration)!=null?r:6e3,action:e.action}}createId(){return`toast-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}render(){return p`
1281
1449
  <div class="toast-container" role="region" aria-label="Notifications">
1282
- ${sn(this.visibleToasts,e=>e.id,e=>u`
1450
+ ${dn(this.visibleToasts,e=>e.id,e=>p`
1283
1451
  <logosphere-toast
1284
1452
  .type=${e.type}
1285
1453
  .title=${e.title}
@@ -1294,10 +1462,10 @@
1294
1462
  </logosphere-toast>
1295
1463
  `)}
1296
1464
  </div>
1297
- `}},n.LogosphereToastContainer.styles=[R`${H(an)}`],wr([y()],n.LogosphereToastContainer.prototype,"visibleToasts",2),n.LogosphereToastContainer=wr([V("logosphere-toast-container")],n.LogosphereToastContainer);class cn{static show(e){return this.getContainer().show(e)}static success(e){return this.show(Ee(_e({},e),{type:"success"}))}static danger(e){return this.show(Ee(_e({},e),{type:"danger",autoDismiss:!1}))}static warning(e){return this.show(Ee(_e({},e),{type:"warning"}))}static info(e){return this.show(Ee(_e({},e),{type:"info"}))}static close(e){this.getContainer().close(e)}static clear(){this.getContainer().clear()}static getContainer(){if(this.container&&document.body.contains(this.container))return this.container;const e=document.querySelector("logosphere-toast-container");if(e&&e instanceof n.LogosphereToastContainer)return this.container=e,e;const t=document.createElement("logosphere-toast-container");return document.body.appendChild(t),this.container=t,t}}const dn=".tab{width:100%;font-family:var(--font-family-base)}.tab__list{display:flex;overflow-x:auto;overflow-y:hidden;border-bottom:1px solid var(--color-border);scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none}.tab__list::-webkit-scrollbar{display:none}.tab__button{display:inline-flex;flex-direction:row;align-items:center;gap:var(--spacing-2);padding:var(--spacing-3) var(--spacing-4);min-width:120px;position:relative;cursor:pointer;border:none;border-bottom:2px solid transparent;background:transparent;font-family:var(--font-family-base);white-space:nowrap;transition:background-color var(--transition-speed-base) var(--transition-timing),border-color var(--transition-speed-base) var(--transition-timing)}.tab__button:hover:not(.tab__button--disabled):not(.tab__button--active){background-color:var(--color-light)}.tab__button--active{border-bottom-color:var(--color-primary)}.tab__button--disabled{cursor:not-allowed;opacity:.4;pointer-events:none}.tab__icon{font-size:var(--font-size-xl);flex-shrink:0;color:inherit;line-height:1}.tab__content{display:flex;flex-direction:column;align-items:flex-start}.tab__label{font-weight:var(--font-weight-medium);font-size:var(--font-size-sm);color:var(--color-body-text)}.tab__label--inactive{color:var(--color-tertiary)}.tab__description{font-size:var(--font-size-xs);text-align:left;color:var(--color-tertiary)}.tab__description--active{color:var(--color-secondary)}.tab__panel{padding:var(--spacing-4);outline:none}.tab__panel--hidden{display:none}";var hn=Object.defineProperty,pn=Object.getOwnPropertyDescriptor,Pe=(i,e,t,o)=>{for(var r=o>1?void 0:o?pn(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(r=(o?a(e,t,r):a(r))||r);return o&&r&&hn(e,t,r),r};n.LogosphereTab=class extends D{constructor(){super(...arguments),this.tabs=[],this.activeTab="",this.lazy=!0,this.variant="default",this._focusedIndex=0,this._renderedTabs=new Set}connectedCallback(){super.connectedCallback(),!this.activeTab&&this.tabs.length>0&&(this.activeTab=this.tabs[0].id)}willUpdate(e){if(super.willUpdate(e),e.has("activeTab")&&this.activeTab){this._renderedTabs.add(this.activeTab);const t=this.tabs.findIndex(o=>o.id===this.activeTab);t!==-1&&(this._focusedIndex=t)}e.has("tabs")&&this.tabs.length>0&&(this.tabs.some(o=>o.id===this.activeTab)||(this.activeTab=this.tabs[0].id),this._focusedIndex=this.tabs.findIndex(o=>o.id===this.activeTab))}handleTabClick(e,t){if(t)return;const o=this.activeTab;this.activeTab=e,this._focusedIndex=this.tabs.findIndex(r=>r.id===e),this.dispatchEvent(new CustomEvent("tab-change",{detail:{oldTab:o,newTab:e},bubbles:!0,composed:!0}))}handleKeyDown(e){var s,a,l,c,p;const{tabs:t}=this;if(t.filter(h=>!h.disabled).length===0)return;let o=this._focusedIndex;const r=this._focusedIndex;switch(e.key){case"ArrowLeft":e.preventDefault();do o=o>0?o-1:t.length-1;while((s=t[o])!=null&&s.disabled&&o!==r);break;case"ArrowRight":e.preventDefault();do o=o<t.length-1?o+1:0;while((a=t[o])!=null&&a.disabled&&o!==r);break;case"Home":for(e.preventDefault(),o=0;(l=t[o])!=null&&l.disabled&&o<t.length-1;)o++;break;case"End":for(e.preventDefault(),o=t.length-1;(c=t[o])!=null&&c.disabled&&o>0;)o--;break;default:return}if(o!==this._focusedIndex&&!((p=t[o])!=null&&p.disabled)){const h=this.activeTab;this._focusedIndex=o,this.activeTab=t[o].id,this.updateComplete.then(()=>{var g;const f=(g=this.shadowRoot)==null?void 0:g.querySelector(`[role="tab"][data-tab-id="${t[o].id}"]`);f==null||f.focus()}),this.dispatchEvent(new CustomEvent("tab-change",{detail:{oldTab:h,newTab:t[o].id},bubbles:!0,composed:!0}))}}scrollTabIntoView(e){this.updateComplete.then(()=>{var o;const t=(o=this.shadowRoot)==null?void 0:o.querySelector(`[role="tab"][data-tab-id="${e}"]`);if(t&&this.tablist){const r=this.tablist.getBoundingClientRect(),s=t.getBoundingClientRect();s.left<r.left?this.tablist.scrollLeft-=r.left-s.left+16:s.right>r.right&&(this.tablist.scrollLeft+=s.right-r.right+16)}})}renderTabButton(e,t){const o=this.activeTab===e.id,r=this._focusedIndex===t,s=["tab__button",o?"tab__button--active":"",e.disabled?"tab__button--disabled":""].filter(Boolean).join(" "),a=["tab__label",o?"":"tab__label--inactive"].filter(Boolean).join(" "),l=["tab__description",o?"tab__description--active":""].filter(Boolean).join(" ");return u`
1465
+ `}},n.LogosphereToastContainer.styles=[H`${I(hn)}`],kr([y()],n.LogosphereToastContainer.prototype,"visibleToasts",2),n.LogosphereToastContainer=kr([V("logosphere-toast-container")],n.LogosphereToastContainer);class fn{static show(e){return this.getContainer().show(e)}static success(e){return this.show(Pe(we({},e),{type:"success"}))}static danger(e){return this.show(Pe(we({},e),{type:"danger",autoDismiss:!1}))}static warning(e){return this.show(Pe(we({},e),{type:"warning"}))}static info(e){return this.show(Pe(we({},e),{type:"info"}))}static close(e){this.getContainer().close(e)}static clear(){this.getContainer().clear()}static getContainer(){if(this.container&&document.body.contains(this.container))return this.container;const e=document.querySelector("logosphere-toast-container");if(e&&e instanceof n.LogosphereToastContainer)return this.container=e,e;const t=document.createElement("logosphere-toast-container");return document.body.appendChild(t),this.container=t,t}}const gn=".tab{width:100%;font-family:var(--font-family-base)}.tab__list{display:flex;overflow-x:auto;overflow-y:hidden;border-bottom:1px solid var(--color-border);scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none}.tab__list::-webkit-scrollbar{display:none}.tab__button{display:inline-flex;flex-direction:row;align-items:center;gap:var(--spacing-2);padding:var(--spacing-3) var(--spacing-4);min-width:120px;position:relative;cursor:pointer;border:none;border-bottom:2px solid transparent;background:transparent;font-family:var(--font-family-base);white-space:nowrap;transition:background-color var(--transition-speed-base) var(--transition-timing),border-color var(--transition-speed-base) var(--transition-timing)}.tab__button:hover:not(.tab__button--disabled):not(.tab__button--active){background-color:var(--color-light)}.tab__button--active{border-bottom-color:var(--color-primary)}.tab__button--disabled{cursor:not-allowed;opacity:.4;pointer-events:none}.tab__icon{font-size:var(--font-size-xl);flex-shrink:0;color:inherit;line-height:1}.tab__content{display:flex;flex-direction:column;align-items:flex-start}.tab__label{font-weight:var(--font-weight-medium);font-size:var(--font-size-sm);color:var(--color-body-text)}.tab__label--inactive{color:var(--color-tertiary)}.tab__description{font-size:var(--font-size-xs);text-align:left;color:var(--color-tertiary)}.tab__description--active{color:var(--color-secondary)}.tab__panel{padding:var(--spacing-4);outline:none}.tab__panel--hidden{display:none}";var mn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,Oe=(i,e,t,o)=>{for(var r=o>1?void 0:o?bn(e,t):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(r=(o?s(e,t,r):s(r))||r);return o&&r&&mn(e,t,r),r};n.LogosphereTab=class extends P{constructor(){super(...arguments),this.tabs=[],this.activeTab="",this.lazy=!0,this.variant="default",this._focusedIndex=0,this._renderedTabs=new Set}connectedCallback(){super.connectedCallback(),!this.activeTab&&this.tabs.length>0&&(this.activeTab=this.tabs[0].id)}willUpdate(e){if(super.willUpdate(e),e.has("activeTab")&&this.activeTab){this._renderedTabs.add(this.activeTab);const t=this.tabs.findIndex(o=>o.id===this.activeTab);t!==-1&&(this._focusedIndex=t)}e.has("tabs")&&this.tabs.length>0&&(this.tabs.some(o=>o.id===this.activeTab)||(this.activeTab=this.tabs[0].id),this._focusedIndex=this.tabs.findIndex(o=>o.id===this.activeTab))}handleTabClick(e,t){if(t)return;const o=this.activeTab;this.activeTab=e,this._focusedIndex=this.tabs.findIndex(r=>r.id===e),this.dispatchEvent(new CustomEvent("tab-change",{detail:{oldTab:o,newTab:e},bubbles:!0,composed:!0}))}handleKeyDown(e){var a,s,l,c,u;const{tabs:t}=this;if(t.filter(h=>!h.disabled).length===0)return;let o=this._focusedIndex;const r=this._focusedIndex;switch(e.key){case"ArrowLeft":e.preventDefault();do o=o>0?o-1:t.length-1;while((a=t[o])!=null&&a.disabled&&o!==r);break;case"ArrowRight":e.preventDefault();do o=o<t.length-1?o+1:0;while((s=t[o])!=null&&s.disabled&&o!==r);break;case"Home":for(e.preventDefault(),o=0;(l=t[o])!=null&&l.disabled&&o<t.length-1;)o++;break;case"End":for(e.preventDefault(),o=t.length-1;(c=t[o])!=null&&c.disabled&&o>0;)o--;break;default:return}if(o!==this._focusedIndex&&!((u=t[o])!=null&&u.disabled)){const h=this.activeTab;this._focusedIndex=o,this.activeTab=t[o].id,this.updateComplete.then(()=>{var g;const f=(g=this.shadowRoot)==null?void 0:g.querySelector(`[role="tab"][data-tab-id="${t[o].id}"]`);f==null||f.focus()}),this.dispatchEvent(new CustomEvent("tab-change",{detail:{oldTab:h,newTab:t[o].id},bubbles:!0,composed:!0}))}}scrollTabIntoView(e){this.updateComplete.then(()=>{var o;const t=(o=this.shadowRoot)==null?void 0:o.querySelector(`[role="tab"][data-tab-id="${e}"]`);if(t&&this.tablist){const r=this.tablist.getBoundingClientRect(),a=t.getBoundingClientRect();a.left<r.left?this.tablist.scrollLeft-=r.left-a.left+16:a.right>r.right&&(this.tablist.scrollLeft+=a.right-r.right+16)}})}renderTabButton(e,t){const o=this.activeTab===e.id,r=this._focusedIndex===t,a=["tab__button",o?"tab__button--active":"",e.disabled?"tab__button--disabled":""].filter(Boolean).join(" "),s=["tab__label",o?"":"tab__label--inactive"].filter(Boolean).join(" "),l=["tab__description",o?"tab__description--active":""].filter(Boolean).join(" ");return p`
1298
1466
  <button
1299
1467
  role="tab"
1300
- class=${s}
1468
+ class=${a}
1301
1469
  data-tab-id=${e.id}
1302
1470
  aria-selected=${o?"true":"false"}
1303
1471
  aria-controls="panel-${e.id}"
@@ -1306,13 +1474,13 @@
1306
1474
  @click=${()=>this.handleTabClick(e.id,e.disabled)}
1307
1475
  @focus=${()=>this.scrollTabIntoView(e.id)}
1308
1476
  >
1309
- ${e.icon?u`<i class="${e.icon} tab__icon"></i>`:v}
1477
+ ${e.icon?p`<i class="${e.icon} tab__icon"></i>`:b}
1310
1478
  <div class="tab__content">
1311
- <span class=${a}>${e.label}</span>
1312
- ${e.description?u`<span class=${l}>${e.description}</span>`:v}
1479
+ <span class=${s}>${e.label}</span>
1480
+ ${e.description?p`<span class=${l}>${e.description}</span>`:b}
1313
1481
  </div>
1314
1482
  </button>
1315
- `}renderTabPanel(e){const t=this.activeTab===e.id;if(!(!this.lazy||this._renderedTabs.has(e.id)))return v;const r=["tab__panel",t?"":"tab__panel--hidden"].filter(Boolean).join(" ");return u`
1483
+ `}renderTabPanel(e){const t=this.activeTab===e.id;if(!(!this.lazy||this._renderedTabs.has(e.id)))return b;const r=["tab__panel",t?"":"tab__panel--hidden"].filter(Boolean).join(" ");return p`
1316
1484
  <div
1317
1485
  role="tabpanel"
1318
1486
  id="panel-${e.id}"
@@ -1321,16 +1489,16 @@
1321
1489
  tabindex="0"
1322
1490
  >
1323
1491
  <slot name=${`panel-${e.id}`}>
1324
- ${typeof e.content=="string"?u`${e.content}`:v}
1492
+ ${typeof e.content=="string"?p`${e.content}`:b}
1325
1493
  </slot>
1326
1494
  </div>
1327
- `}render(){return u`
1495
+ `}render(){return p`
1328
1496
  <div class="tab">
1329
1497
  <div role="tablist" aria-label="Tabs" class="tab__list" @keydown=${this.handleKeyDown}>
1330
1498
  ${this.tabs.map((e,t)=>this.renderTabButton(e,t))}
1331
1499
  </div>
1332
1500
  <div class="tab__panels">${this.tabs.map(e=>this.renderTabPanel(e))}</div>
1333
1501
  </div>
1334
- `}},n.LogosphereTab.styles=[R`
1335
- ${H(dn)}
1336
- `],Pe([d({type:Array})],n.LogosphereTab.prototype,"tabs",2),Pe([d({type:String})],n.LogosphereTab.prototype,"activeTab",2),Pe([d({type:Boolean})],n.LogosphereTab.prototype,"lazy",2),Pe([d({type:String})],n.LogosphereTab.prototype,"variant",2),Pe([y()],n.LogosphereTab.prototype,"_focusedIndex",2),Pe([y()],n.LogosphereTab.prototype,"_renderedTabs",2),Pe([Z('[role="tablist"]')],n.LogosphereTab.prototype,"tablist",2),n.LogosphereTab=Pe([V("logosphere-tab")],n.LogosphereTab),n.Modal=U,n.ToastService=cn,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})}));
1502
+ `}},n.LogosphereTab.styles=[H`
1503
+ ${I(gn)}
1504
+ `],Oe([d({type:Array})],n.LogosphereTab.prototype,"tabs",2),Oe([d({type:String})],n.LogosphereTab.prototype,"activeTab",2),Oe([d({type:Boolean})],n.LogosphereTab.prototype,"lazy",2),Oe([d({type:String})],n.LogosphereTab.prototype,"variant",2),Oe([y()],n.LogosphereTab.prototype,"_focusedIndex",2),Oe([y()],n.LogosphereTab.prototype,"_renderedTabs",2),Oe([Z('[role="tablist"]')],n.LogosphereTab.prototype,"tablist",2),n.LogosphereTab=Oe([V("logosphere-tab")],n.LogosphereTab),n.Modal=U,n.Pagination=W,n.ToastService=fn,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})}));