@lmvz-ds/components 0.13.0 → 0.13.2

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 (110) hide show
  1. package/dist/{esm/assets-ozES4zSA.js → cjs/Effect-CpZhfb0D.js} +5538 -1194
  2. package/dist/cjs/aria-loader-BhgXpCuo.js +77 -0
  3. package/dist/cjs/assets-BnJmIx_h.js +26 -0
  4. package/dist/cjs/{icons-DM_TTn48.js → icons-Brr4vqiE.js} +165 -369
  5. package/dist/cjs/{index-D3BMpL5w.js → index-9ZJx0550.js} +3 -0
  6. package/dist/cjs/index-BVxGxK9i.js +35629 -0
  7. package/dist/cjs/index.cjs.js +12 -4
  8. package/dist/cjs/lmvz-action.cjs.entry.js +1 -1
  9. package/dist/cjs/lmvz-button.cjs.entry.js +6 -3
  10. package/dist/cjs/lmvz-card.cjs.entry.js +4 -4
  11. package/dist/cjs/lmvz-chip.cjs.entry.js +1 -1
  12. package/dist/cjs/lmvz-components.cjs.js +1 -1
  13. package/dist/cjs/lmvz-header.cjs.entry.js +8 -5
  14. package/dist/cjs/lmvz-icon.cjs.entry.js +20 -9
  15. package/dist/cjs/lmvz-input.cjs.entry.js +8 -5
  16. package/dist/cjs/lmvz-menuitem.cjs.entry.js +7 -4
  17. package/dist/cjs/loader.cjs.js +1 -1
  18. package/dist/cjs/{reactive-controller-host-BMDEj1kX.js → reactive-controller-host-t3uLq_s2.js} +71 -50
  19. package/dist/collection/components/lmvz-button/lmvz-button.js +3 -1
  20. package/dist/collection/components/lmvz-card/lmvz-card.js +3 -4
  21. package/dist/collection/components/lmvz-header/lmvz-header.js +5 -3
  22. package/dist/collection/components/lmvz-icon/icons.js +2 -2
  23. package/dist/collection/components/lmvz-icon/lmvz-icon.js +14 -5
  24. package/dist/collection/components/lmvz-input/lmvz-input.js +5 -3
  25. package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.js +4 -2
  26. package/dist/collection/index.js +1 -0
  27. package/dist/collection/integration/header-integration.js +1 -3
  28. package/dist/collection/utils/aria/aria-validation-controller.js +68 -27
  29. package/dist/collection/utils/assets.js +9 -6
  30. package/dist/collection/utils/http.js +2 -2
  31. package/dist/collection/utils/http.unit.js +1 -1
  32. package/dist/collection/utils/validation/svg.js +1 -1
  33. package/dist/components/index.js +1 -1
  34. package/dist/components/lmvz-action.js +1 -1
  35. package/dist/components/lmvz-button.js +1 -1
  36. package/dist/components/lmvz-card.js +1 -1
  37. package/dist/components/lmvz-chip.js +1 -1
  38. package/dist/components/lmvz-header.js +1 -1
  39. package/dist/components/lmvz-icon.js +1 -1
  40. package/dist/components/lmvz-input.js +1 -1
  41. package/dist/components/lmvz-menuitem.js +1 -1
  42. package/dist/components/p-B68hOTYN.js +12 -0
  43. package/dist/components/p-BaPwpeMs.js +1 -0
  44. package/dist/components/p-CSRpdnrt.js +1 -0
  45. package/dist/components/p-DFXwtZsD.js +1 -0
  46. package/dist/components/p-DcMNH3fv.js +1 -0
  47. package/dist/components/p-dQa_lGo8.js +1 -0
  48. package/dist/{cjs/assets-CB5ikzmP.js → esm/Effect-DyamyJqO.js} +5329 -1266
  49. package/dist/esm/aria-loader-BQXogs4-.js +70 -0
  50. package/dist/esm/assets-CvV1KMMV.js +23 -0
  51. package/dist/esm/{icons-kpJZ1u9g.js → icons-C69Um2xB.js} +69 -273
  52. package/dist/esm/index-BRxn9h5l.js +35626 -0
  53. package/dist/esm/{index-T5ljELGS.js → index-smGPjoDX.js} +3 -1
  54. package/dist/esm/index.js +5 -3
  55. package/dist/esm/lmvz-action.entry.js +1 -1
  56. package/dist/esm/lmvz-button.entry.js +6 -3
  57. package/dist/esm/lmvz-card.entry.js +4 -4
  58. package/dist/esm/lmvz-chip.entry.js +1 -1
  59. package/dist/esm/lmvz-components.js +2 -2
  60. package/dist/esm/lmvz-header.entry.js +8 -5
  61. package/dist/esm/lmvz-icon.entry.js +20 -9
  62. package/dist/esm/lmvz-input.entry.js +8 -5
  63. package/dist/esm/lmvz-menuitem.entry.js +7 -4
  64. package/dist/esm/loader.js +2 -2
  65. package/dist/esm/{reactive-controller-host-CZ3dGAjR.js → reactive-controller-host-puHvKP9Y.js} +65 -44
  66. package/dist/lmvz-components/index.esm.js +1 -1
  67. package/dist/lmvz-components/lmvz-components.esm.js +1 -1
  68. package/dist/lmvz-components/p-0e5aa1a3.entry.js +1 -0
  69. package/dist/lmvz-components/p-0f930140.entry.js +1 -0
  70. package/dist/lmvz-components/p-2df3646d.entry.js +1 -0
  71. package/dist/lmvz-components/p-470f6f56.entry.js +1 -0
  72. package/dist/lmvz-components/p-67af4826.entry.js +1 -0
  73. package/dist/lmvz-components/p-775b737d.entry.js +1 -0
  74. package/dist/lmvz-components/{p-feda2ec5.entry.js → p-9faac8f3.entry.js} +1 -1
  75. package/dist/lmvz-components/p-BEoSvNlI.js +1 -0
  76. package/dist/lmvz-components/p-D7GrtdQF.js +1 -0
  77. package/dist/lmvz-components/p-DJp2UHon.js +12 -0
  78. package/dist/lmvz-components/p-DWVncv6N.js +1 -0
  79. package/dist/lmvz-components/p-DyamyJqO.js +1 -0
  80. package/dist/lmvz-components/{p-980688a0.entry.js → p-d4b68381.entry.js} +1 -1
  81. package/dist/lmvz-components/p-qPGwETYT.js +1 -0
  82. package/dist/lmvz-components/p-smGPjoDX.js +2 -0
  83. package/dist/manifest.json +1 -1
  84. package/dist/types/components/lmvz-button/lmvz-button.d.ts +1 -0
  85. package/dist/types/components/lmvz-header/lmvz-header.d.ts +1 -0
  86. package/dist/types/components/lmvz-icon/lmvz-icon.d.ts +3 -0
  87. package/dist/types/components/lmvz-input/lmvz-input.d.ts +2 -1
  88. package/dist/types/components/lmvz-menuitem/lmvz-menuitem.d.ts +3 -1
  89. package/dist/types/index.d.ts +1 -0
  90. package/dist/types/utils/aria/aria-validation-controller.d.ts +8 -2
  91. package/dist/types/utils/assets.d.ts +1 -8
  92. package/dist/types/utils/http.d.ts +3 -3
  93. package/dist/types/utils/validation/svg.d.ts +2 -2
  94. package/hydrate/index.js +2225 -12448
  95. package/hydrate/index.mjs +2225 -12448
  96. package/package.json +6 -8
  97. package/dist/components/p-BBDH9X49.js +0 -1
  98. package/dist/components/p-Bs6_m7Uw.js +0 -1
  99. package/dist/components/p-CMteT-Yo.js +0 -1
  100. package/dist/components/p-vi4YzJmv.js +0 -1
  101. package/dist/lmvz-components/p-16878d4c.entry.js +0 -1
  102. package/dist/lmvz-components/p-4ad8c332.entry.js +0 -1
  103. package/dist/lmvz-components/p-5eee0752.entry.js +0 -1
  104. package/dist/lmvz-components/p-8ea1a349.entry.js +0 -1
  105. package/dist/lmvz-components/p-CZ3dGAjR.js +0 -1
  106. package/dist/lmvz-components/p-D9lc4ayG.js +0 -1
  107. package/dist/lmvz-components/p-T5ljELGS.js +0 -2
  108. package/dist/lmvz-components/p-a34542fa.entry.js +0 -1
  109. package/dist/lmvz-components/p-d2bf6a3f.entry.js +0 -1
  110. package/dist/lmvz-components/p-iviTjlUy.js +0 -1
@@ -0,0 +1 @@
1
+ import{g as t,r as e,c as r,h as i}from"./p-smGPjoDX.js";import{c as o}from"./p-BfTCfPZ1.js";import{R as a,A as n}from"./p-DWVncv6N.js";import{a as s}from"./p-B3JVFwO1.js";import"./p-qPGwETYT.js";let l=0;const c=class extends a{get el(){return t(this)}validationEl=this.el;lmvzInput;internals;nativeInputElement;inputId="lmvz-input-"+l++;initialValue="";nativeError=!1;errorFromProp=!1;get helperId(){return this.helperText?`${this.inputId}-helper`:void 0}get showErrorMessage(){return this.error&&Boolean(this.errorMessage)}get errorId(){return`${this.inputId}-error`}get describedBy(){const t=[];return this.helperId&&t.push(this.helperId),this.showErrorMessage&&t.push(this.errorId),t.length>0?t.join(" "):void 0}value;label;helperText;placeholder;disabled=!1;readonly=!1;required=!1;name;type="text";errorMessage;autocomplete;inputmode;autocorrect;autocapitalize;spellcheck;autofocus=!1;minlength;maxlength;pattern;min;max;step;form;get error(){return this.errorFromProp||this.nativeError}set error(t){this.errorFromProp=t}async setValue(t){this.value=this.nativeInputElement.value=t??"",this.internals.setFormValue?.(t),this.lmvzInput.emit(t)}async focusInput(){this.nativeInputElement?.focus()}async blurInput(){this.nativeInputElement?.blur()}async select(){this.nativeInputElement?.select()}async checkValidity(){return this.nativeInputElement?.checkValidity?.()??!1}async reportValidity(){return this.nativeInputElement?.reportValidity?.()??!1}async getInputElement(){return this.nativeInputElement||await new Promise((t=>s(this.el,t))),Promise.resolve(this.nativeInputElement)}constructor(t){super(),e(this,t),this.lmvzInput=r(this,"lmvzInput"),t.$hostElement$["s-ei"]?this.internals=t.$hostElement$["s-ei"]:(this.internals=t.$hostElement$.attachInternals(),t.$hostElement$["s-ei"]=this.internals),this.addController(new n(this,{reValidateOnPropChanges:!0}))}componentWillLoad(){this.initialValue=this.value,super.componentWillLoad()}formAssociatedCallback(t){t&&this.internals.setFormValue?.(this.value)}formResetCallback(){this.internals.setValidity({}),this.setValue(this.initialValue)}formStateRestoreCallback(t){this.setValue(t)}handleValueChange(t){this.nativeInputElement&&(this.nativeInputElement.value===t||this.setValue(t))}handleDisabledChange(t){t&&this.nativeInputElement&&this.nativeInputElement.blur()}handleInput=t=>{this.setValue(t.target.value)};handleChange=t=>{this.updateNativeError(t.target??this.nativeInputElement)};handleFocus=()=>{};handleBlur=t=>{const e=t.target;e.reportValidity?.()};updateNativeError(t){const e=t??this.nativeInputElement;e&&(this.nativeError=!(e.checkValidity?.()??1))}render(){const t=Boolean(this.value),e=t||Boolean(this.placeholder);return i("div",{key:"79ab97e1e1d0217d5302ca1dea7087292ef19fc7",class:o("input-container",{"interaction-filled":t})},i("div",{key:"9e59a33c261f610f93e1d6db3a07107f9300bbda",class:"input-wrapper"},i("slot",{key:"fadb3f5e49afa817014cdbd44774462b467827f4",name:"before-input"}),i("div",{key:"27d592787bb841fbd430c2e8ce0adc10f59b68ec",class:"label-input-group"},i("label",{key:"f83f154f356660ecafde254b5437ce6c42898b54",htmlFor:this.inputId,class:o({floating:e})},this.label,this.required&&i("span",{key:"b51463179a2099ecd687ccd2480136379b0d0502",class:"required-indicator","aria-hidden":"true"}," ","*")),i("input",{key:"30d8308f286e82fba5d2ebdad972509c06294543",id:this.inputId,ref:t=>this.nativeInputElement=t,type:this.type,min:this.min,max:this.max,step:this.step,value:this.value,name:this.name,placeholder:this.placeholder,disabled:this.disabled,readOnly:this.readonly,required:this.required,form:this.form,autocomplete:this.autocomplete,inputmode:this.inputmode,autocorrect:this.autocorrect,autocapitalize:this.autocapitalize,spellcheck:this.spellcheck,autofocus:this.autofocus,minlength:this.minlength,maxlength:this.maxlength,pattern:this.pattern,"aria-invalid":this.error?"true":"false","aria-required":this.required?"true":"false","aria-describedby":this.describedBy,"aria-errormessage":this.errorId,onInput:this.handleInput,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur})),i("slot",{key:"a8448a0827ce24194b21b8281d2b54eb76f24652",name:"after-input"})),i("div",{key:"79413854b97380812c84f3128d1db053d4154008",id:this.helperId,role:"status"},this.helperText||null),i("div",{key:"d34c6b421688934b69917f6da1f9bb22c220a6f9",id:this.errorId,role:"alert"},this.showErrorMessage&&this.errorMessage||null))}static get formAssociated(){return!0}static get watchers(){return{value:[{handleValueChange:0}],disabled:[{handleDisabledChange:0}]}}};c.style="@layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'), local('Router'); font-weight: 400 normal; } @font-face { font-family: Router; src: local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'), local('Router'); font-weight: 500; } @font-face { font-family: Router; src: local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'), local('Router'); font-weight: 700 bold; } } .sc-lmvz-input-h { display: block; font-family: var(--lmvz-global-font-family-default, Router); --input-radius: var(--lmvz-component-input-radius-default, 999px); --input-bg: var(--lmvz-semantic-color-surface-input-primary, #ffffff); --input-border-color: var(--lmvz-semantic-color-border-default, #e0e0e0); --input-border-color-hover: var(--lmvz-semantic-color-border-hover, #c7c7c7); --input-border-color-focus: var(--lmvz-semantic-color-status-on-selected, #0e7ab4); --input-border-width: var(--lmvz-semantic-border-width-default, 1px); --input-height: 48px; --input-padding-x: 16px; --label-color: var(--lmvz-semantic-color-on-surface-input-secondary, #7a7a7a); --input-text-color: var(--lmvz-semantic-color-on-surface-input-primary, #000000); --helper-text-color: var(--lmvz-semantic-color-on-surface-input-secondary, #7a7a7a); --error-text-color: var(--lmvz-semantic-color-status-on-danger, #e52a31); --label-floating-scale: 0.85; --label-minimized-top: -6px; --label-minimized-bg: var(--input-bg); --label-minimized-padding-x: 4px; --input-disabled-opacity: var(--lmvz-component-input-disabled-opacity, 40%); } .input-container.sc-lmvz-input { display: flex; flex-direction: column; position: relative; width: 100%; } .input-wrapper.sc-lmvz-input { background-color: var(--input-bg); border: var(--input-border-width) solid var(--input-border-color); border-radius: var(--input-radius); display: flex; align-items: center; height: var(--input-height); padding: 0 var(--input-padding-x); position: relative; transition: border-color 0.2s ease; gap: 8px; } [disabled].sc-lmvz-input-h .input-wrapper.sc-lmvz-input { opacity: var(--input-disabled-opacity); cursor: not-allowed; pointer-events: none; } .input-container.sc-lmvz-input:focus-within .input-wrapper.sc-lmvz-input { border-color: var(--input-border-color-focus); outline: 2px solid var(--input-border-color-focus); outline-offset: 2px; } .input-container.sc-lmvz-input:has(input:focus-visible) .input-wrapper.sc-lmvz-input { box-shadow: 0 0 0 3px rgb(0 86 214 / 20%); } [error].sc-lmvz-input-h .input-wrapper.sc-lmvz-input { border-color: var(--error-text-color); } [error].sc-lmvz-input-h:focus-within .input-wrapper.sc-lmvz-input { border-color: var(--error-text-color); outline-color: var(--error-text-color); } .sc-lmvz-input-h:not([disabled]) .input-wrapper.sc-lmvz-input:hover { border-color: var(--input-border-color-hover); } .label-input-group.sc-lmvz-input { position: relative; flex-grow: 1; display: flex; align-items: center; height: 100%; } label.sc-lmvz-input { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--label-color); font-size: 14px; font-family: Router, sans-serif; font-weight: 400; pointer-events: none; transition: all 0.2s ease-out; background-color: transparent; padding: 0; margin: 0; line-height: normal; white-space: nowrap; } label.floating.sc-lmvz-input { top: 0; transform: translateY(-50%) scale(0.85); transform-origin: left top; background-color: var(--label-minimized-bg); padding: 0 var(--label-minimized-padding-x); left: -2px; color: var(--input-text-color); font-weight: 500; } .required-indicator.sc-lmvz-input { color: var(--error-text-color); margin-left: 2px; } input.sc-lmvz-input { border: none; background: transparent; width: 100%; height: 100%; color: var(--input-text-color); font-family: inherit; font-size: 14px; outline: none; padding: 0; margin: 0; font-weight: 400; } input.sc-lmvz-input::placeholder { color: var(--label-color); } div.sc-lmvz-input:empty { display: none; } [role='status'].sc-lmvz-input { padding-top: 8px; padding-left: 12px; font-size: 12px; color: var(--helper-text-color); font-family: Router, sans-serif; font-weight: 500; } [role='alert'].sc-lmvz-input { padding-top: 8px; padding-left: 12px; font-size: 12px; color: var(--error-text-color); font-family: Router, sans-serif; font-weight: 500; } .sc-lmvz-input-s > lmvz-button { --lmvz-button-padding: 4px; }";export{c as lmvz_input}
@@ -0,0 +1 @@
1
+ import{g as i,r as e,h as s,H as t}from"./p-smGPjoDX.js";import{r,t as o,l as n,c as m,s as c}from"./p-DyamyJqO.js";import{R as a,A as l}from"./p-DWVncv6N.js";import{f as h,e as v}from"./p-BEoSvNlI.js";import"./p-qPGwETYT.js";import"./p-D7GrtdQF.js";const p=class extends a{intersectionObserver;ariaValidationController=new l(this);get el(){return i(this)}validationEl;icon;weight="medium";size="md";iconData;visible=!1;ariaLabel;get ariaHidden(){return!this.ariaLabel}constructor(i){super(),e(this,i),this.addController(this.ariaValidationController)}connectedCallback(){this.waitUntilVisible((()=>{this.visible=!0,this.loadIconPathData()})),super.connectedCallback()}disconnectedCallback(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null),super.disconnectedCallback()}async loadIconPathData(){const{icon:i,visible:e}=this;i&&e&&(this.iconData=await r(h(this.icon).pipe(o((e=>n(`Error loading icon "${i}":`,e.message,e.cause,e.stack))),m((()=>c(v()))))))}componentDidRender(){this.validationEl=this.el.querySelector("svg"),this.ariaValidationController.revalidateAria(),super.componentDidRender()}render(){return s(t,{key:"8b1ce550253e994650fe91de38496aff7c7eccc2",role:"img","aria-hidden":`${this.ariaHidden}`,innerHTML:this.iconData})}waitUntilVisible(i,e=50){"undefined"!=typeof window&&window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver((e=>{e.some((e=>!!e.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,i(),!0)))}),{rootMargin:`${e}px`}),this.intersectionObserver.observe(this.el)):i()}static get assetsDirs(){return["../../assets/icons"]}static get watchers(){return{icon:[{loadIconPathData:0}]}}};p.style=".sc-lmvz-icon-h{--lmvz-icon-color:var(--lmvz-component-color, var(--lmvz-semantic-color-on-surface-input-primary, #000000));display:inline-block;line-height:0;svg{display:block}svg>path{stroke:var(--lmvz-icon-color);fill:none}}[size='xs'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.69rem + 0.26vw, 1rem));height:var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))}}[size='sm'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.81rem + 0.26vw, 1.13rem));height:var(--lmvz-component-icon-size-sm, clamp(0.88rem, 0.81rem + 0.26vw, 1.13rem))}}[size='md'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-md, clamp(1rem, 0.88rem + 0.52vw, 1.5rem));height:var(--lmvz-component-icon-size-md, clamp(1rem, 0.88rem + 0.52vw, 1.5rem))}}[size='lg'].sc-lmvz-icon-h{svg{width:var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.38rem + 0.52vw, 2rem));height:var(--lmvz-component-icon-size-lg, clamp(1.5rem, 1.38rem + 0.52vw, 2rem))}}[size='inherit'].sc-lmvz-icon-h{svg{width:inherit;height:inherit}}[weight='light'].sc-lmvz-icon-h{svg>path{stroke-width:1}}[weight='medium'].sc-lmvz-icon-h{svg>path{stroke-width:1.5}}[weight='bold'].sc-lmvz-icon-h{svg>path{stroke-width:2}}[weight='filled'].sc-lmvz-icon-h{svg>path{stroke-width:2;fill:var(--lmvz-icon-color)}}";export{p as lmvz_icon}
@@ -0,0 +1 @@
1
+ import{g as e,r as t,c as o,h as r,H as m}from"./p-smGPjoDX.js";import{R as a,A as n}from"./p-DWVncv6N.js";import{E as i}from"./p-CN0JX9-m.js";import"./p-qPGwETYT.js";const l=class extends a{get el(){return e(this)}validationEl=this.el;validationSlot;get role(){return"menuitem"}get ti(){return 0}lmvzActivation;constructor(e){super(),t(this,e),this.lmvzActivation=o(this,"lmvzActivation"),this.addController(new n(this,{validationTiming:"slot"})),this.addController(new i(this))}render(){return r(m,{key:"a022a198618ac628cb39c97b29cf0c332b522e79"},r("slot",{key:"c8dab82b31b49db3d966cacb1cf9ef5cb1763797",ref:e=>this.validationSlot=e}))}};l.style="@layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'), local('Router'); font-weight: 400 normal; } @font-face { font-family: Router; src: local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'), local('Router'); font-weight: 500; } @font-face { font-family: Router; src: local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'), local('Router'); font-weight: 700 bold; } } .sc-lmvz-menuitem-h { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); border-radius: var(--lmvz-semantic-border-radius-lg, 14px); font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.4 Router); padding: var(--lmvz-component-input-md-padding-y, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)) var(--lmvz-component-input-md-padding-x, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)); cursor: pointer; --lmvz-menuitem-color: var(--lmvz-semantic-color-int-on-tertiary, #545454); --lmvz-menuitem-background: var(--lmvz-semantic-color-int-tertiary, #ffffff); background: var(--lmvz-menuitem-background); color: var(--lmvz-menuitem-color); } .sc-lmvz-menuitem-h:hover { --lmvz-menuitem-background: var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0); } .sc-lmvz-menuitem-h:active { --lmvz-menuitem-background: var(--lmvz-semantic-color-int-tertiary-active, #e0e0e0); } .sc-lmvz-menuitem-h:focus-visible { z-index: 1; } [aria-expanded='true'].sc-lmvz-menuitem-h { --lmvz-menuitem-background: var(--lmvz-semantic-color-status-selected, #f1f9fe); --lmvz-menuitem-color: var(--lmvz-semantic-color-status-on-selected, #0e7ab4); }";export{l as lmvz_menuitem}
@@ -0,0 +1 @@
1
+ import{g as t,r as o,c as r,h as e,H as n}from"./p-smGPjoDX.js";import{c as a}from"./p-BfTCfPZ1.js";import{R as l,A as m}from"./p-DWVncv6N.js";import{E as i}from"./p-CN0JX9-m.js";import{i as s,f as c}from"./p-B3JVFwO1.js";import"./p-qPGwETYT.js";const d=class extends l{get el(){return t(this)}validationEl;inheritedAttributes={};formEl=null;formButtonEl=null;lmvzActivation;get ti(){return 0}scale="default";variant="secondary";disabled=!1;type="button";form;constructor(t){super(),o(this,t),this.lmvzActivation=r(this,"lmvzActivation"),this.addController(new m(this)),this.addController(new i(this,{localHandler:this.handleClick.bind(this),keys:["Enter"]}))}connectedCallback(){this.inheritedAttributes=s(this.el),super.connectedCallback()}renderHiddenButton(){const t=this.formEl=c(this.form,this.el);if(!t)return;const{formButtonEl:o}=this;if(null!==o&&t.contains(o))return;const r=this.formButtonEl=document.createElement("button");r.type="submit",r.style.display="none",r.disabled=this.disabled,t.appendChild(r)}submitForm(t){this.formEl&&this.formButtonEl&&(t.preventDefault(),this.formButtonEl.click())}handleClick=t=>{"submit"===this.type&&this.submitForm(t)};render(){return this.renderHiddenButton(),e(n,{key:"3f3eda78349322ce5160d7aac1290a73f0adcd4a","aria-disabled":this.disabled?"true":null},e("button",{key:"b132404d8d5f5bf0fa7e845b562c953c5ceec36c",ref:t=>this.validationEl=t,disabled:this.disabled,class:a(this.variant,{[this.scale??""]:!!this.scale,disabled:this.disabled}),...this.inheritedAttributes},e("slot",{key:"ce63f7f1061ec9c3f10cbcfc67998ddbf3e04c3d"})))}static get delegatesFocus(){return!0}};d.style=" @layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'), local('Router'); font-weight: 400 normal; } @font-face { font-family: Router; src: local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'), local('Router'); font-weight: 500; } @font-face { font-family: Router; src: local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'), local('Router'); font-weight: 700 bold; } } @layer lmvz-ds.reset { h1, h2, h3, h4, h5, h6 { margin: 0; } } :host { button { --lmvz-button-color: var(--lmvz-component-color, var(--lmvz-semantic-color-int-on-primary, #ffffff)); --lmvz-button-padding-inline: var(--lmvz-button-padding, var(--lmvz-component-input-md-padding-x, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))); --lmvz-button-padding-block: var(--lmvz-button-padding, var(--lmvz-component-input-md-padding-y, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))); --lmvz-button-gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-button-font: var(--lmvz-typography-body-lg, 400 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.4 Router); --lmvz-button-radius: var(--lmvz-component-input-radius-default, 999px); --lmvz-button-border-width: 0; --lmvz-button-border-color: transparent; --lmvz-button-background: var(--lmvz-semantic-color-int-primary, #000000); display: inline-flex; align-items: center; justify-content: center; gap: var(--lmvz-button-gap); padding-block: var(--lmvz-button-padding-block); padding-inline: var(--lmvz-button-padding-inline); border-radius: var(--lmvz-button-radius); border: var(--lmvz-button-border-width) solid var(--lmvz-button-border-color); background-color: var(--lmvz-button-background); color: var(--lmvz-button-color); cursor: pointer; font: var(--lmvz-button-font); text-align: center; text-decoration: none; white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; } button > * { font: inherit; color: inherit; } button:focus-visible { outline: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-status-selected, #f1f9fe); outline-offset: var(--lmvz-component-input-sm-padding-x, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); } button:is([disabled], .disabled) { cursor: not-allowed; pointer-events: none; opacity: var(--lmvz-component-input-disabled-opacity, 40%); } button:not([disabled]):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-primary-hover, #2e2e2e); } button:not([disabled]):active { --lmvz-button-background: var(--lmvz-semantic-color-int-primary-active, #545454); } button.secondary { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary, #f0f0f0); --lmvz-button-color: var(--lmvz-semantic-color-int-on-secondary, #000000); --lmvz-button-border-width: var(--lmvz-semantic-border-width-default, 1px); --lmvz-button-border-color: var(--lmvz-semantic-color-border-default, #e0e0e0); } button.secondary:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary-hover, #e0e0e0); --lmvz-button-border-color: var(--lmvz-semantic-color-border-hover, #c7c7c7); } button.secondary:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary-active, #d4d4d4); --lmvz-button-border-color: var(--lmvz-semantic-color-border-active, #d4d4d4); } button.tertiary { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary, #ffffff); --lmvz-button-color: var(--lmvz-semantic-color-int-on-tertiary, #545454); } button.tertiary:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0); } button.tertiary:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary-active, #e0e0e0); } button.small { --lmvz-button-padding-inline: var(--lmvz-component-input-sm-padding-x, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); --lmvz-button-padding-block: var(--lmvz-component-input-sm-padding-y, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); --lmvz-button-gap: var(--lmvz-component-input-sm-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-button-font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.4 Router); } button.large { --lmvz-button-padding-inline: var(--lmvz-component-input-lg-padding-x, clamp(0.88rem, 0.78rem + 0.39vw, 1.25rem)); --lmvz-button-padding-block: var(--lmvz-component-input-lg-padding-y, clamp(0.88rem, 0.78rem + 0.39vw, 1.25rem)); --lmvz-button-gap: var(--lmvz-component-input-lg-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-button-font: var(--lmvz-typography-body-lg, 400 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.4 Router); } display: contents; } ::slotted(*) { --lmvz-component-color: var(--lmvz-button-color); } ";export{d as lmvz_button}
@@ -0,0 +1 @@
1
+ import{g as e,r as a,h as t,H as r}from"./p-smGPjoDX.js";import{R as n,A as s}from"./p-DWVncv6N.js";import{g as i,c as l}from"./p-B3JVFwO1.js";import"./p-qPGwETYT.js";class o{host;elements=[];constructor(e){this.host=e}hostDidRender(){this.host.el.addEventListener("keydown",this.handleKeydown)}updateElements(e){this.elements=e}handleKeydown=e=>{const{key:a}=e;if(!["ArrowDown","ArrowRight","ArrowUp","ArrowLeft"].includes(a))return;const t=i(document),r=this.getNextFocusableElement(t,["ArrowDown","ArrowRight"].includes(a)?"down":"up");r&&(e.preventDefault(),r.focus?.())};getNextFocusableElement(e,a){const{elements:t}=this,r=t.indexOf(e);if(-1===r)return null;let n=null;if("down"===a?n=(r+1)%t.length:"up"===a&&(n=(r-1+t.length)%t.length),null==n)return null;const s=t[n];return l(s)?s:this.getNextFocusableElement(s,a)}}const c=class extends n{get el(){return e(this)}validationEl=this.el;primarySlot;secondarySlot;secondaryNav;keyboardNavigationController=new o(this);get primaryMenuitems(){return this.primarySlot.assignedElements({flatten:!1})}get secondaryMenuitems(){return this.secondarySlot.assignedElements({flatten:!0})}get role(){return"banner"}lmvzActiveNav;get secondarySlotName(){return`connect-nav-${this.lmvzActiveNav}`}constructor(e){super(),a(this,e),this.addController(new s(this,{reValidateOnPropChanges:!0})),this.addController(this.keyboardNavigationController)}handleActiveNavChange(){this.updateElementsActive()}componentDidLoad(){this.primarySlot.addEventListener("slotchange",this.handlePrimaryNavItemsChange.bind(this)),this.handlePrimaryNavItemsChange(),this.secondarySlot.addEventListener("slotchange",this.handleSecondaryNavItemsChange.bind(this)),super.componentDidLoad()}handlePrimaryNavItemsChange(){const e=this.primaryMenuitems;e.length?(e.forEach((e=>{e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-controls","nav-secondary")})),this.updateElementsActive()):console.warn("Primary slot has no assigned elements. Please add navigation items to the primary slot.")}handleSecondaryNavItemsChange(){this.secondaryMenuitems.length&&this.updateKeyboardNavSubjects()}updateKeyboardNavSubjects(){this.keyboardNavigationController.updateElements([...this.primaryMenuitems,...this.secondaryMenuitems])}updateElementsActive(){let e;this.primaryMenuitems.forEach((a=>{const t=a.id===this.lmvzActiveNav;t&&(e=a.textContent||a.id),a.setAttribute("aria-expanded",t?"true":"false")})),this.secondaryNav.setAttribute("aria-label",`Untermenü für ${e}`)}delegateFocus(){const e=this.primaryMenuitems[0];e&&e.focus()}render(){return t(r,{key:"7c257913615a89b9be8f959b4dc43664ee474113",onFocus:this.delegateFocus.bind(this)},t("div",{key:"70f33263e629170d1b19cbfb1a00ca1adbbe91e0",class:"brand"},t("slot",{key:"d9c99c51da3210e5459684e59e66baf1622a8946",name:"brand"},t("lmvz-icon",{key:"18bd0e88032c023d319bc3fac43c2b09d5098893",id:"fallback-logo-lmvz",icon:"Logo",size:"inherit","aria-label":"Lehrmittelverlag Zürich"}))),t("nav",{key:"c56a1e63344e42b1be26fe817705f0265bdb2bcf","aria-label":"Hauptnavigation"},t("div",{key:"fbaebcb4857b0fba7b81cc35ef6092bb98ae89f8",role:"menubar",class:"primary-menubar"},t("slot",{key:"4a408eacbb41fa57d838581c18389241dce0e634",name:"nav-primary",ref:e=>this.primarySlot=e}),t("div",{key:"6229842569958c724478c6aa15adc75b07d8417e",role:"menu",id:"nav-secondary",class:"secondary-menubar",hidden:!this.lmvzActiveNav,ref:e=>this.secondaryNav=e},t("slot",{key:"4dd4278eaa77cfc984e338da6bb1aa7321c6a545",name:this.secondarySlotName,ref:e=>this.secondarySlot=e})))),t("div",{key:"98b7802b0dc2dfe3a7a38bf89ae2b68994734396",class:"actions"},t("slot",{key:"5f7682fe0ad34496b887baab7b19641a86c01acb",name:"actions"})))}static get watchers(){return{lmvzActiveNav:[{handleActiveNavChange:0}]}}};c.style=":host{display:flex;width:100vw;flex-direction:row;align-items:center;box-sizing:border-box;background-color:var(--lmvz-semantic-color-surface-primary, #ffffff);--lmvz-header-x-spacing-level-1:var(--lmvz-dimension-8-28, clamp(0.5rem, 0.2rem + 1.29vw, 1.75rem));--lmvz-header-x-spacing-level-2:var(--lmvz-component-buttongroup-wrapper-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem));padding:var(--lmvz-dimension-8-16, clamp(0.5rem, 0.38rem + 0.52vw, 1rem)) var(--lmvz-header-x-spacing-level-1);gap:var(--lmvz-header-x-spacing-level-1);.brand{display:inline-flex;justify-content:center;align-items:center}#fallback-logo-lmvz{height:34px;width:auto}nav{flex-grow:1}.primary-menubar{display:flex;flex-direction:row;align-items:center}.secondary-menubar{display:flex;flex-direction:row;align-items:center;margin-left:var(--lmvz-header-x-spacing-level-2);padding-left:var(--lmvz-header-x-spacing-level-2);border-left:1px solid var(--lmvz-semantic-color-border-default, #e0e0e0)}}";export{c as lmvz_header}
@@ -1 +1 @@
1
- import{r as s,c,h as t,H as a}from"./p-T5ljELGS.js";const i=class{constructor(t){s(this,t),this.actionClick=c(this,"actionClick")}actionClick;_onClick(s){this.actionClick.emit(s)}render(){return t(a,{key:"71303bfe6ac64a96edd21800ae5e8c43a3a38c23",onClick:this._onClick.bind(this)},t("slot",{key:"94922fdfd355e7e4d1b78bedb80ae814c186b199"}))}};i.style=":host{display:block}";export{i as lmvz_action}
1
+ import{r as s,c,h as t,H as a}from"./p-smGPjoDX.js";const i=class{constructor(t){s(this,t),this.actionClick=c(this,"actionClick")}actionClick;_onClick(s){this.actionClick.emit(s)}render(){return t(a,{key:"71303bfe6ac64a96edd21800ae5e8c43a3a38c23",onClick:this._onClick.bind(this)},t("slot",{key:"94922fdfd355e7e4d1b78bedb80ae814c186b199"}))}};i.style=":host{display:block}";export{i as lmvz_action}
@@ -0,0 +1 @@
1
+ import{g as t,a as s,b as e,i,d as r,e as n,m as a,f as o,h,j as c,k as u,n as l,o as d,p as f,q as v,u as m,v as p,w as g,x as y,y as S,z as w,A as x,B as C,C as E,D as b,E as k,F as _,G as O,H as V,I as M,J as N,K as R,L as j,M as B,N as P,O as T,P as A,Q as D,R as F,S as L,T as z,U as G,V as K,W as J,_ as $,X as q,Y as H,Z as I,$ as Q,a0 as W,a1 as U,a2 as X,a3 as Y,a4 as Z,a5 as tt,a6 as st,a7 as et,a8 as it,a9 as rt,aa as nt,ab as at,ac as ot,ad as ht,ae as ct}from"./p-DyamyJqO.js";import{c as ut}from"./p-D7GrtdQF.js";const lt=Symbol.for("effect/Brand/Refined"),dt=(t,s,e,i)=>w({_tag:"Complete",key:t,exit:s,entryStats:e,timeToLiveMillis:i}),ft=(t,s)=>w({_tag:"Pending",key:t,deferred:s}),vt=Symbol.for("effect/Cache/MapKey");class mt{current;[vt]=vt;previous=void 0;next=void 0;constructor(t){this.current=t}[T](){return A(L(this.current),F(L(this.previous)),F(L(this.next)),D(this))}[z](t){return this===t||gt(t)&&K(this.current,t.current)&&K(this.previous,t.previous)&&K(this.next,t.next)}}const pt=t=>new mt(t),gt=t=>G(t,vt);class yt{head=void 0;tail=void 0;add(t){if(t!==this.tail)if(void 0===this.tail)this.head=t,this.tail=t;else{const s=t.previous,e=t.next;void 0!==e&&(t.next=void 0,void 0!==s?(s.next=e,e.previous=s):(this.head=e,this.head.previous=void 0)),this.tail.next=t,t.previous=this.tail,this.tail=t}}remove(){const t=this.head;if(void 0!==t){const s=t.next;void 0!==s?(t.next=void 0,this.head=s,this.head.previous=void 0):(this.head=void 0,this.tail=void 0)}return t}}const St=Symbol.for("effect/Cache"),wt={_Key:t=>t,_Error:t=>t,_Value:t=>t},xt=Symbol.for("effect/ConsumerCache"),Ct={_Key:t=>t,_Error:t=>t,_Value:t=>t},Et=t=>({loadedMillis:t});class bt{capacity;context;fiberId;lookup;timeToLive;[St]=wt;[xt]=Ct;cacheState;constructor(t,s,e,i,r){this.capacity=t,this.context=s,this.fiberId=e,this.lookup=i,this.timeToLive=r,this.cacheState={map:j(),keys:new yt,accesses:P(),updating:B(!1),hits:0,misses:0}}get(t){return h(this.getEither(t),u)}get cacheStats(){return l((()=>({hits:this.cacheState.hits,misses:this.cacheState.misses,size:M(this.cacheState.map)})))}getOption(t){return d((()=>a(f(this.cacheState.map,t),{onNone:()=>{const s=pt(t);return this.trackAccess(s),this.trackMiss(),v(m())},onSome:t=>this.resolveMapValue(t)})))}getOptionComplete(t){return d((()=>a(f(this.cacheState.map,t),{onNone:()=>{const s=pt(t);return this.trackAccess(s),this.trackMiss(),v(m())},onSome:t=>this.resolveMapValue(t,!0)})))}contains(t){return l((()=>y(this.cacheState.map,t)))}entryStats(t){return l((()=>{const s=f(this.cacheState.map,t);if(N(s))switch(s.value._tag){case"Complete":return R(Et(s.value.entryStats.loadedMillis));case"Pending":return m();case"Refreshing":return R(Et(s.value.complete.entryStats.loadedMillis))}return m()}))}getEither(t){return d((()=>{const i=t;let r,n,o=p(f(this.cacheState.map,i));return void 0===o&&(n=g(this.fiberId),r=pt(i),y(this.cacheState.map,i)?o=p(f(this.cacheState.map,i)):S(this.cacheState.map,i,ft(r,n))),void 0===o?(this.trackAccess(r),this.trackMiss(),h(this.lookupValueOf(t,n),s)):x(this.resolveMapValue(o),a({onNone:()=>this.getEither(t),onSome:t=>v(e(t))}))}))}invalidate(t){return l((()=>{O(this.cacheState.map,t)}))}invalidateWhen(t,s){return l((()=>{const e=f(this.cacheState.map,t);N(e)&&"Complete"===e.value._tag&&"Success"===e.value.exit._tag&&s(e.value.exit.value)&&O(this.cacheState.map,t)}))}get invalidateAll(){return l((()=>{this.cacheState.map=j()}))}refresh(t){return C((s=>d((()=>{const e=t,i=g(this.fiberId);let r=p(f(this.cacheState.map,e));if(void 0===r&&(y(this.cacheState.map,e)?r=p(f(this.cacheState.map,e)):S(this.cacheState.map,e,ft(pt(e),i))),void 0===r)return J(this.lookupValueOf(t,i));switch(r._tag){case"Complete":if(this.hasExpired(s,r.timeToLiveMillis)){const s=p(f(this.cacheState.map,e));return K(s,r)&&O(this.cacheState.map,e),J(this.get(t))}return A(this.lookupValueOf(t,i),q((()=>{const t=p(f(this.cacheState.map,e));if(K(t,r)){const t=((t,s)=>w({_tag:"Refreshing",deferred:t,complete:s}))(i,r);return S(this.cacheState.map,e,t),!0}return!1})),J);case"Pending":case"Refreshing":return $(r.deferred)}}))))}set(t,s){return C((e=>l((()=>{const i=e.unsafeCurrentTimeMillis(),r=t,n=H(s),a=dt(pt(r),n,Et(i),i+I(o(this.timeToLive(n))));S(this.cacheState.map,r,a)}))))}get size(){return l((()=>M(this.cacheState.map)))}get values(){return l((()=>{const t=[];for(const s of this.cacheState.map)"Complete"===s[1]._tag&&"Success"===s[1].exit._tag&&t.push(s[1].exit.value);return t}))}get entries(){return l((()=>{const t=[];for(const s of this.cacheState.map)"Complete"===s[1]._tag&&"Success"===s[1].exit._tag&&t.push([s[0],s[1].exit.value]);return t}))}get keys(){return l((()=>{const t=[];for(const s of this.cacheState.map)"Complete"===s[1]._tag&&"Success"===s[1].exit._tag&&t.push(s[0]);return t}))}resolveMapValue(t,s=!1){return C((e=>{switch(t._tag){case"Complete":return this.trackAccess(t.key),this.hasExpired(e,t.timeToLiveMillis)?(O(this.cacheState.map,t.key.current),v(m())):(this.trackHit(),h(t.exit,R));case"Pending":return this.trackAccess(t.key),this.trackHit(),s?v(m()):h($(t.deferred),R);case"Refreshing":return this.trackAccess(t.complete.key),this.trackHit(),this.hasExpired(e,t.complete.timeToLiveMillis)?s?v(m()):h($(t.deferred),R):h(t.complete.exit,R)}}))}trackHit(){this.cacheState.hits=this.cacheState.hits+1}trackMiss(){this.cacheState.misses=this.cacheState.misses+1}trackAccess(t){if(E(this.cacheState.accesses,t),b(this.cacheState.updating,!1,!0)){let t=!0;for(;t;){const s=k(this.cacheState.accesses,_);s===_?t=!1:this.cacheState.keys.add(s)}let s=M(this.cacheState.map);for(t=s>this.capacity;t;){const e=this.cacheState.keys.remove();void 0!==e?y(this.cacheState.map,e.current)&&(O(this.cacheState.map,e.current),s-=1,t=s>this.capacity):t=!1}V(this.cacheState.updating,!1)}}hasExpired(t,s){return t.unsafeCurrentTimeMillis()>s}lookupValueOf(t,s){return C((e=>d((()=>{const i=t;return A(this.lookup(t),Z(this.context),Y,x((t=>{const r=e.unsafeCurrentTimeMillis(),n=Et(r),a=dt(pt(i),t,n,r+I(o(this.timeToLive(t))));return S(this.cacheState.map,i,a),W(X(s,t),t)})),Q((()=>W(U(s),l((()=>{O(this.cacheState.map,i)}))))))}))))}}const kt=t=>{const s=o(t.timeToLive);return(t=>h(c([tt(),st]),(([s,e])=>new bt(t.capacity,s,e,t.lookup,(s=>o(t.timeToLive(s)))))))({capacity:t.capacity,lookup:t.lookup,timeToLive:()=>s})},_t=function(){const t=Symbol.for("effect/Data/Error/plainArgs");return class extends et{constructor(s){super(s?.message,s?.cause?{cause:s.cause}:void 0),s&&(Object.assign(this,s),Object.defineProperty(this,t,{value:s,enumerable:!1}))}toJSON(){return{...this[t],...this}}}}(),Ot=t=>{const s={BaseEffectError:class extends _t{_tag=t}};return s.BaseEffectError.prototype.name=t,s.BaseEffectError};class Vt extends(Ot("FetchError")){}class Mt extends(Ot("NotFoundError")){}class Nt extends(Ot("ResponseTextError")){constructor(t){super(new Error("Failed to read response text",{cause:t}))}}const Rt=function(...o){const h=2===o.length?t=>o[0](t)?s(t):e(o[1](t)):t=>a(o[0](t),{onNone:()=>s(t),onSome:e});return Object.assign((s=>t(h(s),i)),{[lt]:lt,option:t=>n(h(t)),either:h,is:t=>r(h(t))})}((function(t){if("string"!=typeof t)return!1;try{return"svg"===(new DOMParser).parseFromString(t,"image/svg+xml").documentElement.nodeName}catch{return!1}}),(()=>[{message:"SVG data is malformed",meta:undefined}]));class jt extends(Ot("BrandValidationError")){constructor(t,s){super(new Error(`Brand validation failed for type ${s}.`,{cause:t}))}}const Bt=()=>Rt('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"></svg>');let Pt=null;function Tt(t){const s=t;return ot((function*(){return Pt||(Pt=yield*kt({capacity:200,timeToLive:ht,lookup:t=>ot((function*(){const s=ut(`${t}.svg`,"icons"),e=yield*(i=s,it((function*(){const t=yield*rt({try:()=>fetch(i,void 0),catch:t=>new Vt({cause:t})});return 404===t.status?yield*nt(new Mt({url:t.url})):t})));var i;const r=yield*(t=>rt({try:()=>t.text(),catch:t=>new Nt(t)}))(e);return yield*(n=r,at({try:()=>Rt(n),catch:t=>new jt(t,"SVGString")}));var n}))})),yield*Pt.get(s)}))}function At(){return ot((function*(){Pt?yield*Pt.invalidateAll:ct("Attempted to clear icon cache before it was initialized")}))}export{At as c,Bt as e,Tt as f}
@@ -0,0 +1 @@
1
+ import{a as t}from"./p-smGPjoDX.js";const e=(e,o)=>{const a=function(...t){return t.filter(Boolean).join("/").replace("//","/").replace("/./","/")}("../../assets",o,e);try{return t(a)}catch{return console.warn(`Failed to create URL for asset "${e}" in path "${o}".\n Please provide an absolute URL in your app's 'setAssetPath(...)' configuration! Falling back to a relative URL, which may work in some environments but is not guaranteed to be correct.`),new URL(a,import.meta?.url??window?.location?.origin??"")}};export{e as c}