@vmscloud/moz-ui-components-core 0.1.67 → 0.1.69

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 (94) hide show
  1. package/LICENSE-lucide.txt +43 -0
  2. package/MIGRATION.md +50 -0
  3. package/README.md +5 -0
  4. package/dist/components/button/button.core.d.ts +14 -1
  5. package/dist/components/button/circleLoader.d.ts +6 -0
  6. package/dist/components/button/index.d.ts +1 -1
  7. package/dist/components/callout/callout.core.d.ts +4 -0
  8. package/dist/components/callout/index.d.ts +2 -2
  9. package/dist/components/chip/chip.core.d.ts +4 -3
  10. package/dist/components/code-block/code-block.core.d.ts +39 -0
  11. package/dist/components/code-block/code-syntax.d.ts +24 -0
  12. package/dist/components/code-block/index.d.ts +13 -0
  13. package/dist/components/disclosure/disclosure.core.d.ts +37 -0
  14. package/dist/components/disclosure/index.d.ts +12 -0
  15. package/dist/components/gauge-display/gauge-display.core.d.ts +73 -0
  16. package/dist/components/gauge-display/index.d.ts +12 -0
  17. package/dist/components/icon/icon.core.d.ts +62 -0
  18. package/dist/components/icon/index.d.ts +10 -0
  19. package/dist/components/icon/lucide.generated.d.ts +869 -0
  20. package/dist/components/icon-button/icon-button.core.d.ts +50 -0
  21. package/dist/components/icon-button/index.d.ts +11 -0
  22. package/dist/components/input/index.d.ts +3 -2
  23. package/dist/components/input/input.core.d.ts +13 -0
  24. package/dist/components/link/index.d.ts +11 -0
  25. package/dist/components/link/link.core.d.ts +31 -0
  26. package/dist/components/metric-card/index.d.ts +11 -0
  27. package/dist/components/metric-card/metric-card.core.d.ts +36 -0
  28. package/dist/components/number-input/numberinput.core.d.ts +7 -0
  29. package/dist/components/popup/index.d.ts +1 -0
  30. package/dist/components/popup/popup.core.d.ts +14 -0
  31. package/dist/components/radio/radio.core.d.ts +2 -0
  32. package/dist/components/select/index.d.ts +1 -1
  33. package/dist/components/select/select.core.d.ts +8 -0
  34. package/dist/components/slider/slider.core.d.ts +1 -1
  35. package/dist/components/spinner/index.d.ts +10 -0
  36. package/dist/components/spinner/spinner.core.d.ts +33 -0
  37. package/dist/components/textarea/index.d.ts +1 -1
  38. package/dist/components/textarea/textarea.core.d.ts +21 -0
  39. package/dist/components/time-picker/index.d.ts +1 -1
  40. package/dist/components/time-picker/timepicker.core.d.ts +1 -1
  41. package/dist/components/tooltip/index.d.ts +1 -1
  42. package/dist/components/tooltip/tooltip.core.d.ts +19 -1
  43. package/dist/index.cjs +1109 -1002
  44. package/dist/index.cjs.map +1 -1
  45. package/dist/index.d.ts +8 -1
  46. package/dist/index.js +4807 -3823
  47. package/dist/index.js.map +1 -1
  48. package/dist/locale/types.d.ts +18 -0
  49. package/dist/styles/default/avatar.css +184 -1
  50. package/dist/styles/default/badge.css +195 -1
  51. package/dist/styles/default/breadcrumb.css +186 -3
  52. package/dist/styles/default/button.css +360 -1
  53. package/dist/styles/default/calendar.css +212 -1
  54. package/dist/styles/default/callout.css +262 -1
  55. package/dist/styles/default/checkbox.css +187 -1
  56. package/dist/styles/default/chip.css +235 -4
  57. package/dist/styles/default/codeblock.css +402 -0
  58. package/dist/styles/default/contextmenu.css +192 -9
  59. package/dist/styles/default/controller.css +185 -2
  60. package/dist/styles/default/dateinput.css +184 -1
  61. package/dist/styles/default/disclosure.css +360 -0
  62. package/dist/styles/default/emptystate.css +128 -0
  63. package/dist/styles/default/gaugedisplay.css +370 -0
  64. package/dist/styles/default/iconbutton.css +371 -0
  65. package/dist/styles/default/index.css +1525 -177
  66. package/dist/styles/default/input.css +223 -1
  67. package/dist/styles/default/label.css +184 -1
  68. package/dist/styles/default/link.css +332 -0
  69. package/dist/styles/default/metriccard.css +356 -0
  70. package/dist/styles/default/multiselect.css +213 -18
  71. package/dist/styles/default/notification.css +185 -2
  72. package/dist/styles/default/numberinput.css +219 -1
  73. package/dist/styles/default/popover.css +186 -3
  74. package/dist/styles/default/popup.css +269 -1
  75. package/dist/styles/default/radio.css +203 -1
  76. package/dist/styles/default/scrollarea.css +184 -1
  77. package/dist/styles/default/select.css +270 -21
  78. package/dist/styles/default/slider.css +285 -15
  79. package/dist/styles/default/spinner.css +348 -0
  80. package/dist/styles/default/splitpane.css +128 -0
  81. package/dist/styles/default/tab.css +192 -1
  82. package/dist/styles/default/tableselect.css +185 -2
  83. package/dist/styles/default/taginput.css +187 -4
  84. package/dist/styles/default/textarea.css +247 -3
  85. package/dist/styles/default/timepicker.css +209 -4
  86. package/dist/styles/default/toast.css +192 -2
  87. package/dist/styles/default/toggle.css +184 -1
  88. package/dist/styles/default/tooltip.css +198 -1
  89. package/dist/styles/default/treeselect.css +280 -12
  90. package/package.json +7 -2
  91. package/dist/components/password-input/index.d.ts +0 -7
  92. package/dist/components/password-input/passwordinput.core.d.ts +0 -35
  93. package/dist/styles/default/passwordinput.css +0 -9
  94. /package/dist/components/{password-input/icons.d.ts → input/passwordIcons.d.ts} +0 -0
package/dist/index.cjs CHANGED
@@ -1,5 +1,23 @@
1
- "use strict";var gn=Object.defineProperty;var vn=(e,t,o)=>t in e?gn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var Re=(e,t,o)=>vn(e,typeof t!="symbol"?t+"":t,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("lit-html"),so=require("lit-html/directive.js"),ee=require("lit-html/directives/style-map.js"),wn=require("clsx"),Ee=require("lit-html/directives/if-defined.js"),_o=require("lit-html/directives/unsafe-html.js"),uo=require("lit-html/directives/live.js"),K=require("lit-html/directives/ref.js"),pt=require("dayjs"),bn=require("dayjs/plugin/duration.js"),Cn=require("dayjs/plugin/minMax.js"),yn=require("dayjs/plugin/timezone.js"),$n=require("dayjs/plugin/utc.js"),Sn=require("dayjs/plugin/isSameOrBefore.js"),kn=require("dayjs/plugin/isSameOrAfter.js");require("dayjs/locale/ko.js");require("dayjs/locale/en.js");require("dayjs/locale/zh.js");require("dayjs/locale/ja.js");const nt=require("@tanstack/virtual-core");var lt=typeof document<"u"?document.currentScript:null;class Uo{constructor(t){Re(this,"container");Re(this,"updateScheduled",!1);Re(this,"mounted",!1);Re(this,"cleanups",[]);Re(this,"endMarker",null);this.container=t}mount(){return this.mounted?this:(this.mounted=!0,this.onMount(),this.renderNow(),this)}requestUpdate(){!this.mounted||this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>{this.updateScheduled=!1,this.mounted&&this.renderNow()}))}renderNow(){s.render(this.template(),this.container,this.rootOptions())}rootOptions(){return this.endMarker||(this.endMarker=this.container.appendChild(document.createComment(""))),{renderBefore:this.endMarker}}addCleanup(t){this.cleanups.push(t)}onMount(){}onDestroy(){}destroy(){if(this.mounted){this.mounted=!1,this.onDestroy();for(const t of this.cleanups.splice(0))try{t()}catch{}this.endMarker&&(s.render(s.nothing,this.container,{renderBefore:this.endMarker}),this.endMarker.remove(),this.endMarker=null)}}get isMounted(){return this.mounted}}class En{constructor(){Re(this,"listeners",new Set)}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}emit(){for(const t of this.listeners)t()}clearListeners(){this.listeners.clear()}}class Wo{constructor(){Re(this,"renderers",new Map);Re(this,"resolver",null);Re(this,"mounted",new Map)}setResolver(t){this.resolver=t}lookup(t){var o;return this.renderers.get(t)??((o=this.resolver)==null?void 0:o.call(this,t))}register(t,o){this.renderers.set(t,o)}unregister(t){for(const o of Array.from(this.mounted.keys()))(o===t||o.startsWith(`${t}#`))&&this.clear(o);this.renderers.delete(t)}has(t){return this.lookup(t)!==void 0}fill(t,o,n,l){var i,c;const d=this.lookup(o);if(!d)return!1;const a=this.mounted.get(t);if(a){if(a.el===n)return(c=(i=a.handle).update)==null||c.call(i,l),!0;a.handle.dispose(),this.mounted.delete(t)}for(const[r,u]of this.mounted)u.el===n&&(u.handle.dispose(),this.mounted.delete(r));const f=d(n,l);return this.mounted.set(t,{el:n,handle:f}),!0}clear(t){const o=this.mounted.get(t);o&&(o.handle.dispose(),this.mounted.delete(t))}clearAll(){for(const t of Array.from(this.mounted.keys()))this.clear(t)}destroy(){this.clearAll(),this.renderers.clear(),this.resolver=null}get mountedCount(){return this.mounted.size}}class Nt{constructor(){Re(this,"el",null)}open(t="",o=document.body){return this.el?this.el:(this.el=document.createElement("div"),t&&(this.el.className=t),o.appendChild(this.el),this.el)}close(){this.el&&(this.el.remove(),this.el=null)}get element(){return this.el}get isOpen(){return this.el!==null}}function Mt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function Ae(e,t=16){return e/t}let xo=0;function ot(e=""){return xo+=1,`${e}${xo}`}const wt=(e,t)=>{const o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;for(const l of o)if(e[l]!==t[l])return!1;return!0};function ye(e,t){const o={};for(const n of Object.keys(e))t.has(n)||(o[n]=e[n]);return o}function Wt(e){const t={},o={};for(const n of Object.keys(e))n.startsWith("aria-")?t[n]=e[n]:o[n]=e[n];return{aria:t,dom:o}}const Pn=["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth"],Ln=new Set(Pn.flatMap(e=>[e,...["Webkit","ms","Moz","O"].map(t=>t+e.charAt(0).toUpperCase()+e.slice(1))]));function Mn(e){return e.includes("-")?e.replace(/^-ms-/,"ms-").replace(/-([a-z])/g,(t,o)=>o.toUpperCase()):e}function be(e){if(!e)return{};if(typeof e=="object"){const t={};for(const[o,n]of Object.entries(e))t[o]=typeof n=="number"&&n!==0&&!o.startsWith("--")&&!Ln.has(Mn(o))?`${n}px`:n;return t}if(typeof e=="string"){const t={};for(const o of e.split(";")){const n=o.indexOf(":");n>0&&(t[o.slice(0,n).trim()]=o.slice(n+1).trim())}return t}return{}}function po(e,t,o,n){return e.length>0||t===0||!n||n.getBoundingClientRect().height>0?e:Array.from({length:t},(l,d)=>({index:d,size:o,start:d*o}))}const no={Toast:{close:"닫기"},Chip:{remove:"삭제"},Callout:{dismiss:"닫기"},Notification:{close:"닫기",unread:"읽지 않음"},Popup:{title:"팝업",save:"저장",cancel:"취소",ok:"확인",close:"닫기"},Select:{searchPlaceholder:"검색",emptyText:"데이터가 없습니다",requiredMessage:"{label} 은(는) 필수입니다"},MultiSelect:{search:"검색",selectAll:"전체 선택",selectFiltered:"필터 결과 선택",specificResults:"결과만",specificSelect:"선택만",noData:"데이터가 없습니다",required:"{label} 은(는) 필수입니다",headerFormat:"항목 ({count})"},TreeSelect:{search:"검색",selectAll:"전체 선택",selectFiltered:"필터 결과 선택",specificResults:"결과만",noData:"데이터가 없습니다",showSelectedOnly:"선택한 항목만 표시",expandAll:"모두 펼치기",collapseAll:"모두 접기",required:"{label} 은(는) 필수입니다",headerFormat:"항목 ({count})",expand:"펼치기",collapse:"접기"},Controller:{filterLabel:"조회 조건"},TagInput:{add:"추가",editTag:"{label} 수정",removeTag:"{label} 삭제"},TimePicker:{hour:"시",minute:"분",currentTime:"현재 시간"},EmptyState:{customEmptyHeader:"데이터 없음",customEmptyContent:"표시할 데이터가 없습니다.",dataEmptyHeader:"데이터가 없습니다.",dataEmptyContent:"필요한 데이터를 추가해 주세요.",resultEmptyHeader:"설정한 조건에 해당되는 데이터가 없습니다.",resultEmptyContent:`조회 조건이 적절하게 설정되었는지 확인해주세요.
2
- 조회 조건을 변경하였다면, 조회 버튼을 다시 눌러주세요.`,searchEmptyHeader:"검색 결과 없음",searchEmptyContent:"필터 값을 확인하고 다시 시도해 주세요."},TableSelect:{searchPlaceholder:"검색",emptyText:"데이터가 없습니다",requiredMessage:"{label} 은(는) 필수입니다",footerSelect:"선택",footerNavigate:"이동",footerClose:"닫기"},Common:{requiredMessage:"{label} 은(는) 필수입니다"},Grid:{layoutSetting:"보기 설정",filter:"필터",sort:"정렬",customCellStyle:"조건부 서식 설정",reset:"초기화",searchFilter:"검색",newView:"새 뷰",selectAll:"전체 선택",columnPicker:"열 표시/숨김 설정",viewToolbar:"Tool Bar 보기",viewFooter:"Footer 보기",viewGroupPanel:"그룹 패널 보기",resetFilterAndSort:"필터 및 정렬 초기화",defaultView:"기본 뷰",filterPopup:"필터 설정",resetFilter:"필터 초기화",addFilter:"필터 추가",sortingPopup:"정렬 설정",ascending:"오름차순",descending:"내림차순",resetSort:"정렬 초기화",addSort:"정렬 추가",symbolEqual:"같음",symbolNotEqual:"같지 않음",symbolContains:"포함",symbolNotContains:"포함하지 않음",symbolLessThan:"보다 작음",symbolGreaterThan:"보다 큼",symbolLessOrEqual:"이하",symbolGreaterOrEqual:"이상",symbolEmpty:"비어 있음",symbolNotEmpty:"비어 있지 않음",customCellRuleNamePlaceholder:"규칙 이름을 입력하세요",addFormulaCondition:"조건 추가",applicationColumn:"적용 열",backgroundColor:"배경색",fontColor:"글꼴 색",resetCustomCell:"초기화",addFormulaConditionSet:"규칙 추가",customColor:"사용자 지정 색상",formulaConditionSet:"새 규칙",contextFilterAndSort:"필터 및 정렬",contextAddFilter:"필터 추가",contextSelectFilter:"선택 값으로 필터",contextResetColumnFilter:"열 필터 초기화",contextResetColumnSort:"열 정렬 초기화",contextResetColumnAll:"열 필터/정렬 초기화",contextDataCopy:"선택한 데이터 복사",contextDataExcelCopy:"Excel 복사",contextDataWithHeaderCopy:"선택한 데이터 복사 (헤더 포함)",contextPin:"열 고정 / 해제",contextColumnPicker:"열 표시/숨김 설정",contextMoveColumnFirst:"첫 번째 열로 보내기",contextAutoSizeColumns:"열 너비 자동 조정",contextGroupPanel:"그룹 패널",contextGroupToggle:"그룹 접기/펼치기",contextGroupCollapseAll:"모든 그룹 접기",contextGroupExpandAll:"모든 그룹 펼치기",groupPanelPlaceholder:"열을 드래그 앤 드롭하여 그룹을 만듭니다.",contextBulkEdit:"데이터 일괄변경 [{name}]",contextImport:"가져오기",contextImportExcel:"Excel 가져오기 (덮어쓰기)",contextImportExcelAppend:"Excel 가져오기 (추가)",contextExport:"내보내기",contextExportXlsx:"엑셀 내보내기 (xlsx)",contextExportCsv:"CSV 내보내기 (csv)",contextSum:"합계",check:"확인",cancel:"취소",save:"저장",remove:"삭제",close:"닫기",pause:"일시 중지",add:"추가",immediateApply:"바로 적용",warning:"경고",mozWarning:"경고",confirmCancel:"취소하시겠습니까?",alreadyExcelProgress:"Excel 작업이 이미 진행 중입니다.",downloadFail:"다운로드에 실패했습니다.",addDataWithFilterSort:"필터/정렬이 적용된 상태에서 데이터를 추가하시겠습니까?",resetAndAdd:"초기화 후 추가",confirmDeleteGeneral:"{name}을(를) 삭제하시겠습니까?",toastCopySuccess:"복사되었습니다.",toastSaveSuccess:"저장되었습니다.",toastSaveError:"저장에 실패했습니다.",toastResetSuccess:"초기화되었습니다.",toastRequiredVal:"필수 값을 입력하세요.",excelInvalidExcel:"유효하지 않은 Excel 파일입니다.",excelInvalidUpload:"유효하지 않은 업로드 데이터입니다.",downloadFormat:"서식 내려받기",click:"클릭",drag:"드래그",overwriteSelected:"선택한 항목을 덮어쓰시겠습니까?",fileOverwrite:"파일을 덮어쓰시겠습니까?",dropHere:"이 곳을 클릭 또는 파일을 드래그 하세요.",dropHerePrefix:"이 곳을 ",dropHereMiddle:" 또는 파일을 ",dropHereSuffix:" 하세요.",withFormatting:"서식 포함",requestTimedOut:"요청 시간이 초과되었습니다.",serverError:"서버 오류가 발생했습니다.",total:"전체",correct:"정상",error:"오류",success:"성공",fail:"실패",excelExportConfirmLargeData:"대용량 데이터를 내보내시겠습니까?",footerTotalRowCount:"총 개수: {totalRowCount}개",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"평균",aggregateCount:"개수",aggregateMin:"최소",aggregateMax:"최대",aggregateSum:"합계",settings:"설정",collapseToolbar:"툴바 접기",expandToolbar:"툴바 펼치기",searchPrev:"이전 검색 결과",searchNext:"다음 검색 결과",searchGoTo:"결과 번호로 이동",searching:"검색 중...",deleteCondition:"조건 삭제",deleteSort:"정렬 삭제",selectPlaceholder:"선택",byValueLabel:"레이블",decrease:"감소",increase:"증가",selectColor:"색상 선택",noColor:"색상 없음",customColorInput:"직접 입력",alignLeft:"왼쪽 정렬",alignCenter:"가운데 정렬",alignRight:"오른쪽 정렬",alignLabel:"정렬",fontStyleLabel:"글자 스타일",bold:"굵게",italic:"기울임",underline:"밑줄",columnOptions:"컬럼 옵션",showAllColumns:"전체 표시",commonSection:"공통",headerLabelField:"헤더 라벨",pinColumn:"고정",pinLeft:"왼쪽",pinNone:"없음",pinRight:"오른쪽",columnWidthPx:"너비(px)",headerSection:"헤더",cellSection:"셀",fontLabel:"글자",sizeLabel:"크기",displayMask:"표시 형식(마스크)",resetThisColumn:"이 컬럼 초기화",selectColumnHint:"컬럼을 선택하세요",showColumnNamed:"{column} 표시",columnTextColor:"글자색",cellStyleTitle:"셀 스타일",formulaHelp:"수식 도움말",validFormula:"유효한 수식",formulaHint:"컬럼을 선택하거나 값을 입력해 수식을 작성하세요.",ruleName:"규칙 이름",targetColumns:"적용 컬럼",allColumns:"전체 컬럼",colorLabel:"색상",cellBgColor:"배경 색상",cellTextColor:"텍스트 색상",moveUp:"위로",moveDown:"아래로",formulaPlaceholder:"예: [수요수량] > [재고수량] AND [우선순위] < 3",helpColumnRef:"컬럼 참조",helpCompare:"비교",helpArithmetic:"산술",helpLogic:"논리",helpString:"문자열",helpNull:"NULL 체크",helpValue:"값",groupColon:"그룹:",groupEmptyHint:"여기에 컬럼을 추가해 그룹화",addGroupBtn:"+ 그룹 추가",ungroup:"해제",removeGroup:"그룹 제거",excelImportTitle:"Excel 가져오기",processing:"처리 중…",excelPreview:"미리보기 {shown}행 / 총 {total}행+",clientImportFile:"파일에서 가져오기 (클라이언트)",clientExportXlsx:"XLSX (클라이언트)",groupExpand:"그룹 펼치기",groupCollapse:"그룹 접기",fontSizeDefault:"기본",maskGroupNone:"없음",maskGroupNumber:"숫자",maskGroupDate:"날짜",maskGroupString:"문자열",maskNoneText:"마스크 없음",maskNoneDesc:"원본 값 그대로 표시",maskThousandsText:"천 단위 구분 (1,234)",maskThousandsDesc:"예: 1234 → 1,234",maskDecimal2Text:"소수 2자리 (#,##0.00)",maskDecimal2Desc:"예: 1234.5 → 1,234.50",maskKrwText:"원화 (₩1,234)",maskKrwDesc:"예: 1234 → ₩1,234",maskUsdText:"달러 ($1,234.00)",maskUsdDesc:"예: 1234.5 → $1,234.50",maskPercentText:"퍼센트 (12%)",maskPercentDesc:"예: 12 → 12%",maskDateIsoDesc:"예: 2026-05-26",maskDateKoDesc:"예: 2026년 05월 26일",maskDatetimeDesc:"예: 2026-05-26 14:30",maskDateUsDesc:"예: 05/26/2026",maskPhoneText:"전화번호 (010-1234-5678)",maskPhoneDesc:"예: 01012345678 → 010-1234-5678",maskRrnText:"주민등록번호 (000000-0000000)",maskRrnDesc:"예: 9501011234567 → 950101-1234567",maskBizText:"사업자등록번호 (000-00-00000)",maskBizDesc:"예: 1234567890 → 123-45-67890"},GridPivot:{setting:"피봇 설정",gridSetting:"그리드 설정",fieldSetting:"값 필드 설정",showRowTotals:"행 합계 표시",showColumnTotals:"열 합계 표시",subtotalCriteria:"소계 기준",subtotalAggregateField:"소계 집계 필드",totalsBeforeData:"합계 먼저 보기",showZeros:"빈 값 채우기",showOutlineMode:"개요 모드",collapsibleSubtotal:"소계 접기",fieldName:"필드 이름",fieldAggregate:"집계",fieldShowAs:"표시 방식",fieldFormat:"형식",openChart:"차트 열기",selectValueField:"값 필드 선택",none:"없음",sum:"합계",count:"개수",average:"평균",max:"최대값",min:"최소값",range:"범위",std:"표준 편차",var:"분산",stdPop:"모표준 편차",varPop:"모분산",cntAll:"전체 개수",cntNumbers:"숫자 개수",showFirstValue:"첫 번째 값",showLastValue:"마지막 값",noCalculation:"계산 없음",diffRow:"이전 행과의 차이",diffRowPct:"이전 행과의 차이 (%)",diffCol:"이전 열과의 차이",diffColPct:"이전 열과의 차이 (%)",grandtotalPct:"전체 합계 대비 (%)",rowTotalPct:"행 합계 대비 (%)",colTotalPct:"열 합계 대비 (%)",prevRowPct:"이전 행 대비 (%)",prevColPct:"이전 열 대비 (%)",runTot:"누적 합계",runTotPct:"누적 합계 (%)",generalFormat:"일반",int:"정수",float:"실수",currency:"통화",percentage:"백분율 (정수)",percentageDot2:"백분율 (실수)",thousands:"천 단위",millions:"백만 단위",billions:"십억 단위",subtotal:"소계",grandtotal:"전체 합계",grandtotalValue:"총합계",category:"범주",chartType:"차트 유형",chartXAxis:"X축 범주",chartYAxis:"Y축 범주",categoryName:"카테고리",barChart:"막대 차트",lineChart:"꺾은선 차트",lineSymbolChart:"기호 꺾은선 차트",areaChart:"영역 차트",chartRenderingErrorHeader:"차트 렌더링 오류",chartRenderingErrorContent:"차트를 표시할 수 없습니다.",contextPivotExportXlsx:"화면 내보내기 (xlsx)",contextPivotExportOriginXlsx:"원본 데이터 내보내기 (xlsx)",contextPivotExportOriginCsv:"원본 데이터 내보내기 (csv)",row:"행",column:"열",value:"값",filter:"필터",searchFieldPlaceholder:"필드 검색...",dropZoneRowPlaceholder:"행 축 필드를 드래그하세요",dropZoneColumnPlaceholder:"열 축 필드를 드래그하세요",dropZoneValuePlaceholder:"값 필드를 드래그하세요",dropZoneFilterPlaceholder:"필터 필드를 드래그하세요",update:"업데이트",selectFieldForReport:"보고서에 추가할 필드 선택:",dragFieldsBetweenAreas:"아래 영역 사이에 필드를 끌어 놓으십시오:",valueSummaryCriteria:"값 요약 기준",roundRound:"반올림",roundFloor:"내림",roundCeil:"올림",roundTrunc:"절삭",roundingMode:"반올림 모드",decimalPlaces:"소수점 자리수",decimalUnlimited:"제한 없음",showOriginalValue:"원본값 병기",back:"뒤로",parentRowPct:"상위 행 그룹(%)",parentColPct:"상위 열 그룹(%)",rankAsc:"오름차순 순위",rankDesc:"내림차순 순위",index:"인덱스",showTotalsGrand:"합계",showTotalsSub:"부분합",fieldPanelSetting:"필드 설정",colSubtotalCriteria:"열 소계 기준",allowRowToggle:"행 확장/축소 허용",allowColToggle:"열 확장/축소 허용",outlineMode:"요약 모드"},Gantt:{searchPlaceholder:"검색",columnSize:"컬럼 크기",rowSize:"행 크기"},Chart:{filterPopup:"필터",resetFilter:"필터 초기화",addFilter:"필터 추가",symbolEqual:"같음",symbolNotEqual:"같지 않음",symbolContains:"포함",symbolNotContains:"포함하지 않음",symbolLessThan:"보다 작음",symbolGreaterThan:"보다 큼",symbolLessOrEqual:"작거나 같음",symbolGreaterOrEqual:"크거나 같음",symbolEmpty:"비어있음",symbolNotEmpty:"비어있지 않음",chartSetting:"차트 설정",chartCategory:"차트 카테고리",chartType:"차트 타입",chartUseZoom:"줌 사용",multiYAxisSetting:"Y축 다중 설정",notUsed:"(사용안함)",chartPopup:"차트 팝업",errorMessage:"데이터를 불러오는 중 오류가 발생했습니다.",valueFieldSetting:"값 필드 설정",valueSummaryCriteria:"값 요약 기준",selectFieldForReport:"보고서에 추가할 필드 선택:",column:"열",row:"행",value:"값",sumValue:"∑ 값",count:"개수",sum:"합계",average:"평균",min:"최소값",max:"최대값",seriesCategory:"일반",pieCategory:"파이",scatterCategory:"산점도",treemapCategory:"트리맵",boxplotCategory:"박스플롯",candlestickCategory:"캔들스틱",barChart:"바 차트",stackBarChart:"스택 바 차트",horizontalStackBarChart:"가로 스택 바 차트",lineChart:"선 차트",lineSymbolChart:"선 차트(심볼)",areaChart:"면적 차트",general:"일반",custom:"사용자 지정",axisCategoryLabel:"축 (범주)",legendSeriesLabel:"범례 (계열)",legendSingleLabel:"범례 (단일 선택)",legendMultiLabel:"범례 (다중 선택 가능)",valueSingleLabel:"값 (단일 선택)",xAxisSingleLabel:"X축 (단일 선택)",yAxisMultiLabel:"Y축 (다중 선택 가능)",notSet:"미지정",legendLimitExceededTitle:"차트 범례 개수가 최대 {limit}개를 초과했습니다.",legendLimitExceededContent:"범례를 {limit}개 이하로 재설정하여 주십시오."},NumberInput:{increase:"값 증가",decrease:"값 감소"},DateInput:{prevDate:"이전 날짜",nextDate:"다음 날짜"},PasswordInput:{showPassword:"비밀번호 표시",hidePassword:"비밀번호 숨기기"},Tab:{closeTab:"{label} 닫기"},SplitPane:{resizeHandle:"영역 크기 조절"},BreadCrumb:{navigation:"탐색 경로"}},xn={Toast:{close:"Close"},Chip:{remove:"Remove"},Callout:{dismiss:"Dismiss"},Notification:{close:"Close",unread:"Unread"},Popup:{title:"Popup",save:"Save",cancel:"Cancel",ok:"OK",close:"Close"},Select:{searchPlaceholder:"Search",emptyText:"No data",requiredMessage:"{label} is required"},MultiSelect:{search:"Search",selectAll:"Select All",selectFiltered:"Select Filtered",specificResults:"Only Results",specificSelect:"Only",noData:"No data",required:"{label} is required",headerFormat:"ITEMS ({count})"},TreeSelect:{search:"Search",selectAll:"Select All",selectFiltered:"Select Filtered",specificResults:"Only Results",noData:"No data",showSelectedOnly:"Show selected only",expandAll:"Expand All",collapseAll:"Collapse All",required:"{label} is required",headerFormat:"ITEMS ({count})",expand:"Expand",collapse:"Collapse"},Controller:{filterLabel:"Search criteria"},TagInput:{add:"Add",editTag:"Edit {label}",removeTag:"Remove {label}"},TimePicker:{hour:"Hour",minute:"Minute",currentTime:"Current Time"},EmptyState:{customEmptyHeader:"No data",customEmptyContent:"There is no data to display.",dataEmptyHeader:"No data to display",dataEmptyContent:"Please enter the required data.",resultEmptyHeader:"No results",resultEmptyContent:"Check the search conditions and try again.",searchEmptyHeader:"No search results",searchEmptyContent:"Please check the filter value and try again."},TableSelect:{searchPlaceholder:"Search",emptyText:"No data",requiredMessage:"{label} is required",footerSelect:"Select",footerNavigate:"Navigate",footerClose:"Close"},Common:{requiredMessage:"{label} is required"},Grid:{layoutSetting:"Layout Settings",filter:"Filter",sort:"Sort",customCellStyle:"Conditional Formatting",reset:"Reset",searchFilter:"Search",newView:"New View",selectAll:"Select All",columnPicker:"Show/Hide Columns",viewToolbar:"Show Toolbar",viewFooter:"Show Footer",viewGroupPanel:"Show Group Panel",resetFilterAndSort:"Reset Filter & Sort",defaultView:"Default View",filterPopup:"Filter Settings",resetFilter:"Reset Filter",addFilter:"Add Filter",sortingPopup:"Sort Settings",ascending:"Ascending",descending:"Descending",resetSort:"Reset Sort",addSort:"Add Sort",symbolEqual:"Equal",symbolNotEqual:"Not Equal",symbolContains:"Contains",symbolNotContains:"Does Not Contain",symbolLessThan:"Less Than",symbolGreaterThan:"Greater Than",symbolLessOrEqual:"Less Or Equal",symbolGreaterOrEqual:"Greater Or Equal",symbolEmpty:"Empty",symbolNotEmpty:"Not Empty",customCellRuleNamePlaceholder:"Enter rule name",addFormulaCondition:"Add Condition",applicationColumn:"Application Column",backgroundColor:"Background Color",fontColor:"Font Color",resetCustomCell:"Reset",addFormulaConditionSet:"Add Rule",customColor:"Custom Color",formulaConditionSet:"New Rule",contextFilterAndSort:"Filter & Sort",contextAddFilter:"Add Filter",contextSelectFilter:"Filter by Selection",contextResetColumnFilter:"Reset Column Filter",contextResetColumnSort:"Reset Column Sort",contextResetColumnAll:"Reset Column Filter/Sort",contextDataCopy:"Copy",contextDataExcelCopy:"Copy for Excel",contextDataWithHeaderCopy:"Copy with Header",contextPin:"Pin Column",contextColumnPicker:"Column Picker",contextMoveColumnFirst:"Move to First Column",contextAutoSizeColumns:"Auto Size Columns",contextGroupPanel:"Group Panel",contextGroupToggle:"Toggle Collapse",contextGroupCollapseAll:"Collapse All Groups",contextGroupExpandAll:"Expand All Groups",groupPanelPlaceholder:"Drag and drop columns here to create groups.",contextBulkEdit:"Bulk Edit {name}",contextImport:"Import",contextImportExcel:"Import Excel (Overwrite)",contextImportExcelAppend:"Import Excel (Append)",contextExport:"Export",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"Sum",check:"OK",cancel:"Cancel",save:"Save",remove:"Delete",close:"Close",pause:"Pause",add:"Add",immediateApply:"Apply Immediately",warning:"Warning",mozWarning:"Warning",confirmCancel:"Are you sure you want to cancel?",alreadyExcelProgress:"Excel operation is already in progress.",downloadFail:"Download failed.",addDataWithFilterSort:"Add data while filter/sort is applied?",resetAndAdd:"Reset and Add",confirmDeleteGeneral:"Are you sure you want to delete {name}?",toastCopySuccess:"Copied.",toastSaveSuccess:"Saved.",toastSaveError:"Save failed.",toastResetSuccess:"Reset.",toastRequiredVal:"Please enter the required values.",excelInvalidExcel:"Invalid Excel file.",excelInvalidUpload:"Invalid upload data.",downloadFormat:"Download Format",click:"Click",drag:"Drag",overwriteSelected:"Overwrite selected items?",fileOverwrite:"Overwrite the file?",dropHere:"Drop here",dropHerePrefix:"",dropHereMiddle:" here or ",dropHereSuffix:" a file.",withFormatting:"With Formatting",requestTimedOut:"Request timed out.",serverError:"A server error occurred.",total:"Total",correct:"Correct",error:"Error",success:"Success",fail:"Fail",excelExportConfirmLargeData:"Export large data?",footerTotalRowCount:"Total: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"Average",aggregateCount:"Count",aggregateMin:"Min",aggregateMax:"Max",aggregateSum:"Sum",settings:"Settings",collapseToolbar:"Collapse toolbar",expandToolbar:"Expand toolbar",searchPrev:"Previous result",searchNext:"Next result",searchGoTo:"Go to result",searching:"Searching...",deleteCondition:"Delete condition",deleteSort:"Delete sort",selectPlaceholder:"Select",byValueLabel:"Label",decrease:"Decrease",increase:"Increase",selectColor:"Select color",noColor:"No color",customColorInput:"Custom",alignLeft:"Align left",alignCenter:"Align center",alignRight:"Align right",alignLabel:"Align",fontStyleLabel:"Font style",bold:"Bold",italic:"Italic",underline:"Underline",columnOptions:"Column Options",showAllColumns:"Show all",commonSection:"Common",headerLabelField:"Header label",pinColumn:"Pin",pinLeft:"Left",pinNone:"None",pinRight:"Right",columnWidthPx:"Width (px)",headerSection:"Header",cellSection:"Cell",fontLabel:"Font",sizeLabel:"Size",displayMask:"Display format (mask)",resetThisColumn:"Reset this column",selectColumnHint:"Select a column",showColumnNamed:"Show {column}",columnTextColor:"Text color",cellStyleTitle:"Cell Style",formulaHelp:"Formula help",validFormula:"Valid formula",formulaHint:"Select a column or enter a value to build a formula.",ruleName:"Rule name",targetColumns:"Target columns",allColumns:"All columns",colorLabel:"Color",cellBgColor:"Background color",cellTextColor:"Text color",moveUp:"Move up",moveDown:"Move down",formulaPlaceholder:"e.g. [Demand] > [Stock] AND [Priority] < 3",helpColumnRef:"Column ref",helpCompare:"Compare",helpArithmetic:"Arithmetic",helpLogic:"Logic",helpString:"String",helpNull:"NULL check",helpValue:"Value",groupColon:"Group:",groupEmptyHint:"Drag columns here to group",addGroupBtn:"+ Add group",ungroup:"Clear",removeGroup:"Remove group",excelImportTitle:"Excel Import",processing:"Processing…",excelPreview:"Preview {shown} rows / {total} total+",clientImportFile:"Import from file (client)",clientExportXlsx:"XLSX (client)",groupExpand:"Expand group",groupCollapse:"Collapse group",fontSizeDefault:"Default",maskGroupNone:"None",maskGroupNumber:"Number",maskGroupDate:"Date",maskGroupString:"String",maskNoneText:"No mask",maskNoneDesc:"Show raw value",maskThousandsText:"Thousands (1,234)",maskThousandsDesc:"e.g. 1234 → 1,234",maskDecimal2Text:"2 decimals (#,##0.00)",maskDecimal2Desc:"e.g. 1234.5 → 1,234.50",maskKrwText:"KRW (₩1,234)",maskKrwDesc:"e.g. 1234 → ₩1,234",maskUsdText:"USD ($1,234.00)",maskUsdDesc:"e.g. 1234.5 → $1,234.50",maskPercentText:"Percent (12%)",maskPercentDesc:"e.g. 12 → 12%",maskDateIsoDesc:"e.g. 2026-05-26",maskDateKoDesc:"e.g. 2026-05-26",maskDatetimeDesc:"e.g. 2026-05-26 14:30",maskDateUsDesc:"e.g. 05/26/2026",maskPhoneText:"Phone (010-1234-5678)",maskPhoneDesc:"e.g. 01012345678 → 010-1234-5678",maskRrnText:"RRN (000000-0000000)",maskRrnDesc:"e.g. 9501011234567 → 950101-1234567",maskBizText:"Business No. (000-00-00000)",maskBizDesc:"e.g. 1234567890 → 123-45-67890"},GridPivot:{setting:"Pivot Settings",gridSetting:"Grid Settings",fieldSetting:"Field Settings",showRowTotals:"Show Row Totals",showColumnTotals:"Show Column Totals",subtotalCriteria:"Subtotal Criteria",subtotalAggregateField:"Subtotal Aggregate Field",totalsBeforeData:"Show Totals Before Data",showZeros:"Show Zeros",showOutlineMode:"Outline Mode",collapsibleSubtotal:"Collapsible Subtotal",fieldName:"Field Name",fieldAggregate:"Aggregate",fieldShowAs:"Show As",fieldFormat:"Format",openChart:"Open Chart",selectValueField:"Select Value Field",none:"None",sum:"Sum",count:"Count",average:"Average",max:"Max",min:"Min",range:"Range",std:"Std Dev",var:"Variance",stdPop:"Pop Std Dev",varPop:"Pop Variance",cntAll:"Count All",cntNumbers:"Count Numbers",showFirstValue:"First Value",showLastValue:"Last Value",noCalculation:"No Calculation",diffRow:"Diff from Previous Row",diffRowPct:"Diff from Previous Row (%)",diffCol:"Diff from Previous Column",diffColPct:"Diff from Previous Column (%)",grandtotalPct:"% of Grand Total",rowTotalPct:"% of Row Total",colTotalPct:"% of Column Total",prevRowPct:"% of Previous Row",prevColPct:"% of Previous Column",runTot:"Running Total",runTotPct:"Running Total (%)",generalFormat:"General",int:"Integer",float:"Decimal",currency:"Currency",percentage:"Percentage (Integer)",percentageDot2:"Percentage (Decimal)",thousands:"Thousands",millions:"Millions",billions:"Billions",subtotal:"Subtotal",grandtotal:"Grand Total",grandtotalValue:"Grand Total",category:"Category",chartType:"Chart Type",chartXAxis:"X Axis",chartYAxis:"Y Axis",categoryName:"Category Name",barChart:"Bar Chart",lineChart:"Line Chart",lineSymbolChart:"Symbol Line Chart",areaChart:"Area Chart",chartRenderingErrorHeader:"Chart Rendering Error",chartRenderingErrorContent:"Unable to display the chart.",contextPivotExportXlsx:"View Export (xlsx)",contextPivotExportOriginXlsx:"Source Data Export (xlsx)",contextPivotExportOriginCsv:"Source Data Export (csv)",row:"Rows",column:"Columns",value:"Values",filter:"Filters",searchFieldPlaceholder:"Search fields...",dropZoneRowPlaceholder:"Drag row axis fields here",dropZoneColumnPlaceholder:"Drag column axis fields here",dropZoneValuePlaceholder:"Drag value fields here",dropZoneFilterPlaceholder:"Drag filter fields here",update:"Update",selectFieldForReport:"Choose fields to add to report:",dragFieldsBetweenAreas:"Drag fields between areas below:",valueSummaryCriteria:"Summarize Values By",roundRound:"Round",roundFloor:"Floor",roundCeil:"Ceil",roundTrunc:"Truncate",roundingMode:"Rounding mode",decimalPlaces:"Decimal places",decimalUnlimited:"No limit",showOriginalValue:"Show original value",back:"Back",parentRowPct:"% of Parent Row Group",parentColPct:"% of Parent Column Group",rankAsc:"Rank Ascending",rankDesc:"Rank Descending",index:"Index",showTotalsGrand:"Grand Totals",showTotalsSub:"Subtotals",fieldPanelSetting:"Field Settings",colSubtotalCriteria:"Column Subtotal Criteria",allowRowToggle:"Allow Row Expand/Collapse",allowColToggle:"Allow Column Expand/Collapse",outlineMode:"Outline Mode"},Gantt:{searchPlaceholder:"Search",columnSize:"Column Size",rowSize:"Row Size"},Chart:{filterPopup:"Filter",resetFilter:"Reset Filter",addFilter:"Add Filter",symbolEqual:"Equal",symbolNotEqual:"Not Equal",symbolContains:"Contains",symbolNotContains:"Not Contains",symbolLessThan:"Less Than",symbolGreaterThan:"Greater Than",symbolLessOrEqual:"Less or Equal",symbolGreaterOrEqual:"Greater or Equal",symbolEmpty:"Empty",symbolNotEmpty:"Not Empty",chartSetting:"Chart Setting",chartCategory:"Chart Category",chartType:"Chart Type",chartUseZoom:"Use Zoom",multiYAxisSetting:"Multi Y-Axis Setting",notUsed:"(Not Used)",chartPopup:"Chart Popup",errorMessage:"An error occurred while loading data.",valueFieldSetting:"Value Field Setting",valueSummaryCriteria:"Value Summary Criteria",selectFieldForReport:"Select fields to add to the report:",column:"Column",row:"Row",value:"Value",sumValue:"∑ Value",count:"Count",sum:"Sum",average:"Average",min:"Min",max:"Max",seriesCategory:"General",pieCategory:"Pie",scatterCategory:"Scatter",treemapCategory:"Treemap",boxplotCategory:"Boxplot",candlestickCategory:"Candlestick",barChart:"Bar Chart",stackBarChart:"Stack Bar Chart",horizontalStackBarChart:"Horizontal Stack Bar Chart",lineChart:"Line Chart",lineSymbolChart:"Line Chart (Symbol)",areaChart:"Area Chart",general:"General",custom:"Custom",axisCategoryLabel:"Axis (Category)",legendSeriesLabel:"Legend (Series)",legendSingleLabel:"Legend (Single)",legendMultiLabel:"Legend (Multiple)",valueSingleLabel:"Value (Single)",xAxisSingleLabel:"X-Axis (Single)",yAxisMultiLabel:"Y-Axis (Multiple)",notSet:"Not Set",legendLimitExceededTitle:"The number of chart legends has exceeded the maximum of {limit}.",legendLimitExceededContent:"Please reconfigure the legend to {limit} or fewer."},NumberInput:{increase:"Increase value",decrease:"Decrease value"},DateInput:{prevDate:"Previous date",nextDate:"Next date"},PasswordInput:{showPassword:"Show password",hidePassword:"Hide password"},Tab:{closeTab:"Close {label}"},SplitPane:{resizeHandle:"Resize panes"},BreadCrumb:{navigation:"Breadcrumb"}},zn={Toast:{close:"关闭"},Chip:{remove:"删除"},Callout:{dismiss:"关闭"},Notification:{close:"关闭",unread:"未读"},Popup:{title:"弹窗",save:"保存",cancel:"取消",ok:"确认",close:"关闭"},Select:{searchPlaceholder:"搜索",emptyText:"暂无数据",requiredMessage:"{label} 为必填项"},MultiSelect:{search:"搜索",selectAll:"全选",selectFiltered:"选择筛选结果",specificResults:"仅结果",specificSelect:"仅选择",noData:"暂无数据",required:"{label} 为必填项",headerFormat:"项目 ({count})"},TreeSelect:{search:"搜索",selectAll:"全选",selectFiltered:"选择筛选结果",specificResults:"仅结果",noData:"暂无数据",showSelectedOnly:"仅显示已选项",expandAll:"全部展开",collapseAll:"全部收起",required:"{label} 为必填项",headerFormat:"项目 ({count})",expand:"展开",collapse:"折叠"},Controller:{filterLabel:"查询条件"},TagInput:{add:"添加",editTag:"编辑 {label}",removeTag:"删除 {label}"},TimePicker:{hour:"时",minute:"分",currentTime:"当前时间"},EmptyState:{customEmptyHeader:"暂无数据",customEmptyContent:"没有可显示的数据。",dataEmptyHeader:"暂无数据",dataEmptyContent:"请输入所需数据。",resultEmptyHeader:"无结果",resultEmptyContent:"请检查搜索条件后重试。",searchEmptyHeader:"无搜索结果",searchEmptyContent:"请检查筛选条件后重试。"},TableSelect:{searchPlaceholder:"搜索",emptyText:"暂无数据",requiredMessage:"{label} 为必填项",footerSelect:"选择",footerNavigate:"移动",footerClose:"关闭"},Common:{requiredMessage:"{label} 为必填项"},Grid:{layoutSetting:"布局设置",filter:"筛选",sort:"排序",customCellStyle:"条件格式设置",reset:"重置",searchFilter:"搜索",newView:"新建视图",selectAll:"全选",columnPicker:"列显示/隐藏设置",viewToolbar:"显示工具栏",viewFooter:"显示页脚",viewGroupPanel:"显示分组面板",resetFilterAndSort:"重置筛选和排序",defaultView:"默认视图",filterPopup:"筛选设置",resetFilter:"重置筛选",addFilter:"添加筛选",sortingPopup:"排序设置",ascending:"升序",descending:"降序",resetSort:"重置排序",addSort:"添加排序",symbolEqual:"等于",symbolNotEqual:"不等于",symbolContains:"包含",symbolNotContains:"不包含",symbolLessThan:"小于",symbolGreaterThan:"大于",symbolLessOrEqual:"小于或等于",symbolGreaterOrEqual:"大于或等于",symbolEmpty:"为空",symbolNotEmpty:"不为空",customCellRuleNamePlaceholder:"请输入规则名称",addFormulaCondition:"添加条件",applicationColumn:"应用列",backgroundColor:"背景色",fontColor:"字体颜色",resetCustomCell:"重置",addFormulaConditionSet:"添加规则",customColor:"自定义颜色",formulaConditionSet:"新建规则",contextFilterAndSort:"筛选和排序",contextAddFilter:"添加筛选",contextSelectFilter:"按选定值筛选",contextResetColumnFilter:"重置列筛选",contextResetColumnSort:"重置列排序",contextResetColumnAll:"重置列筛选/排序",contextDataCopy:"复制",contextDataExcelCopy:"Excel 复制",contextDataWithHeaderCopy:"含表头复制",contextPin:"固定列",contextColumnPicker:"列选择",contextMoveColumnFirst:"移至第一列",contextAutoSizeColumns:"自动调整列宽",contextGroupPanel:"分组面板",contextGroupToggle:"折叠/展开组",contextGroupCollapseAll:"折叠所有组",contextGroupExpandAll:"展开所有组",groupPanelPlaceholder:"将列拖放到此处以创建分组。",contextBulkEdit:"批量编辑 {name}",contextImport:"导入",contextImportExcel:"Excel 导入(覆盖)",contextImportExcelAppend:"Excel 导入(追加)",contextExport:"导出",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"合计",check:"确认",cancel:"取消",save:"保存",remove:"删除",close:"关闭",pause:"暂停",add:"添加",immediateApply:"立即应用",warning:"警告",mozWarning:"警告",confirmCancel:"确定要取消吗?",alreadyExcelProgress:"Excel 操作正在进行中。",downloadFail:"下载失败。",addDataWithFilterSort:"在筛选/排序状态下添加数据?",resetAndAdd:"重置后添加",confirmDeleteGeneral:"确定要删除 {name} 吗?",toastCopySuccess:"已复制。",toastSaveSuccess:"已保存。",toastSaveError:"保存失败。",toastResetSuccess:"已重置。",toastRequiredVal:"请输入必填值。",excelInvalidExcel:"无效的 Excel 文件。",excelInvalidUpload:"无效的上传数据。",downloadFormat:"下载格式",click:"点击",drag:"拖拽",overwriteSelected:"覆盖选定项?",fileOverwrite:"覆盖文件?",dropHere:"拖放到此处",dropHerePrefix:"",dropHereMiddle:"此处或",dropHereSuffix:"文件。",withFormatting:"包含格式",requestTimedOut:"请求超时。",serverError:"服务器发生错误。",total:"总计",correct:"正常",error:"错误",success:"成功",fail:"失败",excelExportConfirmLargeData:"确定导出大量数据?",footerTotalRowCount:"总计: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"平均",aggregateCount:"计数",aggregateMin:"最小值",aggregateMax:"最大值",aggregateSum:"合计",settings:"设置",collapseToolbar:"折叠工具栏",expandToolbar:"展开工具栏",searchPrev:"上一个结果",searchNext:"下一个结果",searchGoTo:"跳转到结果",searching:"搜索中...",deleteCondition:"删除条件",deleteSort:"删除排序",selectPlaceholder:"选择",byValueLabel:"标签",decrease:"减少",increase:"增加",selectColor:"选择颜色",noColor:"无颜色",customColorInput:"自定义输入",alignLeft:"左对齐",alignCenter:"居中对齐",alignRight:"右对齐",alignLabel:"对齐",fontStyleLabel:"字体样式",bold:"加粗",italic:"斜体",underline:"下划线",columnOptions:"列选项",showAllColumns:"全部显示",commonSection:"通用",headerLabelField:"表头标签",pinColumn:"固定",pinLeft:"左",pinNone:"无",pinRight:"右",columnWidthPx:"宽度(px)",headerSection:"表头",cellSection:"单元格",fontLabel:"文字",sizeLabel:"大小",displayMask:"显示格式(掩码)",resetThisColumn:"重置此列",selectColumnHint:"请选择列",showColumnNamed:"显示 {column}",columnTextColor:"文字颜色",cellStyleTitle:"单元格样式",formulaHelp:"公式帮助",validFormula:"有效公式",formulaHint:"选择列或输入值以创建公式。",ruleName:"规则名称",targetColumns:"应用列",allColumns:"全部列",colorLabel:"颜色",cellBgColor:"背景色",cellTextColor:"文字色",moveUp:"上移",moveDown:"下移",formulaPlaceholder:"例: [需求量] > [库存量] AND [优先级] < 3",helpColumnRef:"列引用",helpCompare:"比较",helpArithmetic:"算术",helpLogic:"逻辑",helpString:"字符串",helpNull:"NULL 检查",helpValue:"值",groupColon:"分组:",groupEmptyHint:"将列拖到此处进行分组",addGroupBtn:"+ 添加分组",ungroup:"解除",removeGroup:"移除分组",excelImportTitle:"Excel 导入",processing:"处理中…",excelPreview:"预览 {shown} 行 / 共 {total} 行+",clientImportFile:"从文件导入 (客户端)",clientExportXlsx:"XLSX (客户端)",groupExpand:"展开分组",groupCollapse:"折叠分组",fontSizeDefault:"默认",maskGroupNone:"无",maskGroupNumber:"数字",maskGroupDate:"日期",maskGroupString:"字符串",maskNoneText:"无掩码",maskNoneDesc:"按原值显示",maskThousandsText:"千位分隔 (1,234)",maskThousandsDesc:"例: 1234 → 1,234",maskDecimal2Text:"两位小数 (#,##0.00)",maskDecimal2Desc:"例: 1234.5 → 1,234.50",maskKrwText:"韩元 (₩1,234)",maskKrwDesc:"例: 1234 → ₩1,234",maskUsdText:"美元 ($1,234.00)",maskUsdDesc:"例: 1234.5 → $1,234.50",maskPercentText:"百分比 (12%)",maskPercentDesc:"例: 12 → 12%",maskDateIsoDesc:"例: 2026-05-26",maskDateKoDesc:"例: 2026-05-26",maskDatetimeDesc:"例: 2026-05-26 14:30",maskDateUsDesc:"例: 05/26/2026",maskPhoneText:"电话号码 (010-1234-5678)",maskPhoneDesc:"例: 01012345678 → 010-1234-5678",maskRrnText:"身份证号 (000000-0000000)",maskRrnDesc:"例: 9501011234567 → 950101-1234567",maskBizText:"营业执照号 (000-00-00000)",maskBizDesc:"例: 1234567890 → 123-45-67890"},GridPivot:{setting:"数据透视设置",gridSetting:"网格设置",fieldSetting:"字段设置",showRowTotals:"显示行合计",showColumnTotals:"显示列合计",subtotalCriteria:"小计基准",subtotalAggregateField:"小计汇总字段",totalsBeforeData:"在数据前显示合计",showZeros:"显示零值",showOutlineMode:"大纲模式",collapsibleSubtotal:"可折叠小计",fieldName:"字段名称",fieldAggregate:"汇总",fieldShowAs:"显示方式",fieldFormat:"格式",openChart:"打开图表",selectValueField:"选择值字段",none:"无",sum:"求和",count:"计数",average:"平均值",max:"最大值",min:"最小值",range:"范围",std:"标准差",var:"方差",stdPop:"总体标准差",varPop:"总体方差",cntAll:"全部计数",cntNumbers:"数字计数",showFirstValue:"第一个值",showLastValue:"最后一个值",noCalculation:"无计算",diffRow:"与前一行的差",diffRowPct:"与前一行的差 (%)",diffCol:"与前一列的差",diffColPct:"与前一列的差 (%)",grandtotalPct:"占总计百分比",rowTotalPct:"占行合计百分比",colTotalPct:"占列合计百分比",prevRowPct:"占前一行百分比",prevColPct:"占前一列百分比",runTot:"累计",runTotPct:"累计百分比",generalFormat:"常规",int:"整数",float:"小数",currency:"货币",percentage:"百分比 (整数)",percentageDot2:"百分比 (小数)",thousands:"千位",millions:"百万位",billions:"十亿位",subtotal:"小计",grandtotal:"总计",grandtotalValue:"总合计",category:"类别",chartType:"图表类型",chartXAxis:"X轴",chartYAxis:"Y轴",categoryName:"类别名称",barChart:"柱状图",lineChart:"折线图",lineSymbolChart:"符号折线图",areaChart:"面积图",chartRenderingErrorHeader:"图表渲染错误",chartRenderingErrorContent:"无法显示图表。",contextPivotExportXlsx:"视图导出 (xlsx)",contextPivotExportOriginXlsx:"原始数据导出 (xlsx)",contextPivotExportOriginCsv:"原始数据导出 (csv)",row:"行",column:"列",value:"值",filter:"筛选",searchFieldPlaceholder:"搜索字段...",dropZoneRowPlaceholder:"拖动行轴字段到这里",dropZoneColumnPlaceholder:"拖动列轴字段到这里",dropZoneValuePlaceholder:"拖动值字段到这里",dropZoneFilterPlaceholder:"拖动筛选字段到这里",update:"更新",selectFieldForReport:"选择要添加到报表的字段:",dragFieldsBetweenAreas:"在下面的区域之间拖动字段:",valueSummaryCriteria:"值汇总依据",roundRound:"四舍五入",roundFloor:"向下取整",roundCeil:"向上取整",roundTrunc:"截断",roundingMode:"舍入模式",decimalPlaces:"小数位数",decimalUnlimited:"无限制",showOriginalValue:"并列原始值",back:"返回",parentRowPct:"占上级行组百分比",parentColPct:"占上级列组百分比",rankAsc:"升序排名",rankDesc:"降序排名",index:"索引",showTotalsGrand:"总计",showTotalsSub:"小计",fieldPanelSetting:"字段设置",colSubtotalCriteria:"列小计基准",allowRowToggle:"允许行展开/折叠",allowColToggle:"允许列展开/折叠",outlineMode:"大纲模式"},Gantt:{searchPlaceholder:"搜索",columnSize:"列大小",rowSize:"行大小"},Chart:{filterPopup:"筛选",resetFilter:"重置筛选",addFilter:"添加筛选",symbolEqual:"等于",symbolNotEqual:"不等于",symbolContains:"包含",symbolNotContains:"不包含",symbolLessThan:"小于",symbolGreaterThan:"大于",symbolLessOrEqual:"小于等于",symbolGreaterOrEqual:"大于等于",symbolEmpty:"为空",symbolNotEmpty:"不为空",chartSetting:"图表设置",chartCategory:"图表类别",chartType:"图表类型",chartUseZoom:"使用缩放",multiYAxisSetting:"Y轴多轴设置",notUsed:"(未使用)",chartPopup:"图表弹窗",errorMessage:"加载数据时发生错误。",valueFieldSetting:"值字段设置",valueSummaryCriteria:"值汇总基准",selectFieldForReport:"选择要添加到报表的字段:",column:"列",row:"行",value:"值",sumValue:"∑ 值",count:"计数",sum:"合计",average:"平均",min:"最小值",max:"最大值",seriesCategory:"常规",pieCategory:"饼图",scatterCategory:"散点图",treemapCategory:"树状图",boxplotCategory:"箱线图",candlestickCategory:"K线图",barChart:"柱状图",stackBarChart:"堆叠柱状图",horizontalStackBarChart:"水平堆叠柱状图",lineChart:"折线图",lineSymbolChart:"折线图(符号)",areaChart:"面积图",general:"常规",custom:"自定义",axisCategoryLabel:"轴 (类别)",legendSeriesLabel:"图例 (系列)",legendSingleLabel:"图例 (单选)",legendMultiLabel:"图例 (多选)",valueSingleLabel:"值 (单选)",xAxisSingleLabel:"X轴 (单选)",yAxisMultiLabel:"Y轴 (多选)",notSet:"未指定",legendLimitExceededTitle:"图表图例数量已超过最大值 {limit} 个。",legendLimitExceededContent:"请将图例重新设置为 {limit} 个以内。"},NumberInput:{increase:"增加数值",decrease:"减少数值"},DateInput:{prevDate:"上一个日期",nextDate:"下一个日期"},PasswordInput:{showPassword:"显示密码",hidePassword:"隐藏密码"},Tab:{closeTab:"关闭 {label}"},SplitPane:{resizeHandle:"调整区域大小"},BreadCrumb:{navigation:"面包屑导航"}},Tn={Toast:{close:"閉じる"},Chip:{remove:"削除"},Callout:{dismiss:"閉じる"},Notification:{close:"閉じる",unread:"未読"},Popup:{title:"ポップアップ",save:"保存",cancel:"キャンセル",ok:"OK",close:"閉じる"},Select:{searchPlaceholder:"検索",emptyText:"データがありません",requiredMessage:"{label} は必須です"},MultiSelect:{search:"検索",selectAll:"すべて選択",selectFiltered:"フィルター結果を選択",specificResults:"結果のみ",specificSelect:"選択のみ",noData:"データがありません",required:"{label} は必須です",headerFormat:"項目 ({count})"},TreeSelect:{search:"検索",selectAll:"すべて選択",selectFiltered:"フィルター結果を選択",specificResults:"結果のみ",noData:"データがありません",showSelectedOnly:"選択項目のみ表示",expandAll:"すべて展開",collapseAll:"すべて折りたたむ",required:"{label} は必須です",headerFormat:"項目 ({count})",expand:"展開",collapse:"折りたたむ"},Controller:{filterLabel:"検索条件"},TagInput:{add:"追加",editTag:"{label} を編集",removeTag:"{label} を削除"},TimePicker:{hour:"時",minute:"分",currentTime:"現在時刻"},EmptyState:{customEmptyHeader:"データなし",customEmptyContent:"表示するデータがありません。",dataEmptyHeader:"表示するデータがありません",dataEmptyContent:"必要なデータを入力してください。",resultEmptyHeader:"結果なし",resultEmptyContent:"検索条件を確認して再度お試しください。",searchEmptyHeader:"検索結果なし",searchEmptyContent:"フィルター値を確認して再度お試しください。"},TableSelect:{searchPlaceholder:"検索",emptyText:"データがありません",requiredMessage:"{label} は必須です",footerSelect:"選択",footerNavigate:"移動",footerClose:"閉じる"},Common:{requiredMessage:"{label} は必須です"},Grid:{layoutSetting:"レイアウト設定",filter:"フィルター",sort:"ソート",customCellStyle:"条件付き書式設定",reset:"リセット",searchFilter:"検索",newView:"新しいビュー",selectAll:"すべて選択",columnPicker:"列の表示/非表示設定",viewToolbar:"ツールバー表示",viewFooter:"フッター表示",viewGroupPanel:"グループパネル表示",resetFilterAndSort:"フィルター・ソートリセット",defaultView:"デフォルトビュー",filterPopup:"フィルター設定",resetFilter:"フィルターリセット",addFilter:"フィルター追加",sortingPopup:"ソート設定",ascending:"昇順",descending:"降順",resetSort:"ソートリセット",addSort:"ソート追加",symbolEqual:"等しい",symbolNotEqual:"等しくない",symbolContains:"含む",symbolNotContains:"含まない",symbolLessThan:"より小さい",symbolGreaterThan:"より大きい",symbolLessOrEqual:"以下",symbolGreaterOrEqual:"以上",symbolEmpty:"空",symbolNotEmpty:"空でない",customCellRuleNamePlaceholder:"ルール名を入力してください",addFormulaCondition:"条件追加",applicationColumn:"適用列",backgroundColor:"背景色",fontColor:"フォント色",resetCustomCell:"リセット",addFormulaConditionSet:"ルールを追加",customColor:"カスタム色",formulaConditionSet:"新しいルール",contextFilterAndSort:"フィルター・ソート",contextAddFilter:"フィルター追加",contextSelectFilter:"選択値でフィルター",contextResetColumnFilter:"列フィルターリセット",contextResetColumnSort:"列ソートリセット",contextResetColumnAll:"列フィルター/ソートリセット",contextDataCopy:"コピー",contextDataExcelCopy:"Excelコピー",contextDataWithHeaderCopy:"ヘッダー付きコピー",contextPin:"列固定",contextColumnPicker:"列選択",contextMoveColumnFirst:"最初の列に移動",contextAutoSizeColumns:"列幅自動調整",contextGroupPanel:"グループパネル",contextGroupToggle:"グループ折りたたみ/展開",contextGroupCollapseAll:"すべてのグループを折りたたむ",contextGroupExpandAll:"すべてのグループを展開",groupPanelPlaceholder:"列をドラッグ&ドロップしてグループを作成します。",contextBulkEdit:"{name} 一括編集",contextImport:"インポート",contextImportExcel:"Excelインポート(上書き)",contextImportExcelAppend:"Excelインポート(追加)",contextExport:"エクスポート",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"合計",check:"確認",cancel:"キャンセル",save:"保存",remove:"削除",close:"閉じる",pause:"一時停止",add:"追加",immediateApply:"すぐに適用",warning:"警告",mozWarning:"警告",confirmCancel:"キャンセルしますか?",alreadyExcelProgress:"Excel操作が進行中です。",downloadFail:"ダウンロードに失敗しました。",addDataWithFilterSort:"フィルター/ソート適用中にデータを追加しますか?",resetAndAdd:"リセットして追加",confirmDeleteGeneral:"{name}を削除しますか?",toastCopySuccess:"コピーしました。",toastSaveSuccess:"保存しました。",toastSaveError:"保存に失敗しました。",toastResetSuccess:"リセットしました。",toastRequiredVal:"必須値を入力してください。",excelInvalidExcel:"無効なExcelファイルです。",excelInvalidUpload:"無効なアップロードデータです。",downloadFormat:"フォーマットダウンロード",click:"クリック",drag:"ドラッグ",overwriteSelected:"選択項目を上書きしますか?",fileOverwrite:"ファイルを上書きしますか?",dropHere:"ここにドロップ",dropHerePrefix:"ここを",dropHereMiddle:"またはファイルを",dropHereSuffix:"してください。",withFormatting:"書式付き",requestTimedOut:"リクエストがタイムアウトしました。",serverError:"サーバーエラーが発生しました。",total:"合計",correct:"正常",error:"エラー",success:"成功",fail:"失敗",excelExportConfirmLargeData:"大量データをエクスポートしますか?",footerTotalRowCount:"合計: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"平均",aggregateCount:"件数",aggregateMin:"最小値",aggregateMax:"最大値",aggregateSum:"合計",settings:"設定",collapseToolbar:"ツールバーを折りたたむ",expandToolbar:"ツールバーを展開",searchPrev:"前の検索結果",searchNext:"次の検索結果",searchGoTo:"結果番号へ移動",searching:"検索中...",deleteCondition:"条件を削除",deleteSort:"ソートを削除",selectPlaceholder:"選択",byValueLabel:"ラベル",decrease:"減少",increase:"増加",selectColor:"色を選択",noColor:"色なし",customColorInput:"直接入力",alignLeft:"左揃え",alignCenter:"中央揃え",alignRight:"右揃え",alignLabel:"配置",fontStyleLabel:"文字スタイル",bold:"太字",italic:"斜体",underline:"下線",columnOptions:"列オプション",showAllColumns:"すべて表示",commonSection:"共通",headerLabelField:"ヘッダーラベル",pinColumn:"固定",pinLeft:"左",pinNone:"なし",pinRight:"右",columnWidthPx:"幅(px)",headerSection:"ヘッダー",cellSection:"セル",fontLabel:"文字",sizeLabel:"サイズ",displayMask:"表示形式(マスク)",resetThisColumn:"この列をリセット",selectColumnHint:"列を選択してください",showColumnNamed:"{column} を表示",columnTextColor:"文字色",cellStyleTitle:"セルスタイル",formulaHelp:"数式ヘルプ",validFormula:"有効な数式",formulaHint:"列を選択するか値を入力して数式を作成してください。",ruleName:"ルール名",targetColumns:"適用列",allColumns:"全列",colorLabel:"色",cellBgColor:"背景色",cellTextColor:"文字色",moveUp:"上へ",moveDown:"下へ",formulaPlaceholder:"例: [需要数] > [在庫数] AND [優先度] < 3",helpColumnRef:"列参照",helpCompare:"比較",helpArithmetic:"算術",helpLogic:"論理",helpString:"文字列",helpNull:"NULL チェック",helpValue:"値",groupColon:"グループ:",groupEmptyHint:"ここに列をドラッグしてグループ化",addGroupBtn:"+ グループ追加",ungroup:"解除",removeGroup:"グループ削除",excelImportTitle:"Excel 取り込み",processing:"処理中…",excelPreview:"プレビュー {shown}行 / 全 {total}行+",clientImportFile:"ファイルから取り込み (クライアント)",clientExportXlsx:"XLSX (クライアント)",groupExpand:"グループを展開",groupCollapse:"グループを折りたたむ",fontSizeDefault:"既定",maskGroupNone:"なし",maskGroupNumber:"数値",maskGroupDate:"日付",maskGroupString:"文字列",maskNoneText:"マスクなし",maskNoneDesc:"元の値をそのまま表示",maskThousandsText:"桁区切り (1,234)",maskThousandsDesc:"例: 1234 → 1,234",maskDecimal2Text:"小数2桁 (#,##0.00)",maskDecimal2Desc:"例: 1234.5 → 1,234.50",maskKrwText:"ウォン (₩1,234)",maskKrwDesc:"例: 1234 → ₩1,234",maskUsdText:"ドル ($1,234.00)",maskUsdDesc:"例: 1234.5 → $1,234.50",maskPercentText:"パーセント (12%)",maskPercentDesc:"例: 12 → 12%",maskDateIsoDesc:"例: 2026-05-26",maskDateKoDesc:"例: 2026-05-26",maskDatetimeDesc:"例: 2026-05-26 14:30",maskDateUsDesc:"例: 05/26/2026",maskPhoneText:"電話番号 (010-1234-5678)",maskPhoneDesc:"例: 01012345678 → 010-1234-5678",maskRrnText:"住民登録番号 (000000-0000000)",maskRrnDesc:"例: 9501011234567 → 950101-1234567",maskBizText:"事業者登録番号 (000-00-00000)",maskBizDesc:"例: 1234567890 → 123-45-67890"},GridPivot:{setting:"ピボット設定",gridSetting:"グリッド設定",fieldSetting:"フィールド設定",showRowTotals:"行合計表示",showColumnTotals:"列合計表示",subtotalCriteria:"小計基準",subtotalAggregateField:"小計集計フィールド",totalsBeforeData:"データ前に合計表示",showZeros:"ゼロ表示",showOutlineMode:"アウトラインモード",collapsibleSubtotal:"小計折りたたみ",fieldName:"フィールド名",fieldAggregate:"集計",fieldShowAs:"表示方式",fieldFormat:"形式",openChart:"チャートを開く",selectValueField:"値フィールド選択",none:"なし",sum:"合計",count:"個数",average:"平均",max:"最大値",min:"最小値",range:"範囲",std:"標準偏差",var:"分散",stdPop:"母標準偏差",varPop:"母分散",cntAll:"全個数",cntNumbers:"数値の個数",showFirstValue:"最初の値",showLastValue:"最後の値",noCalculation:"計算なし",diffRow:"前の行との差",diffRowPct:"前の行との差 (%)",diffCol:"前の列との差",diffColPct:"前の列との差 (%)",grandtotalPct:"総計に対する割合",rowTotalPct:"行合計に対する割合",colTotalPct:"列合計に対する割合",prevRowPct:"前の行に対する割合",prevColPct:"前の列に対する割合",runTot:"累計",runTotPct:"累計割合",generalFormat:"一般",int:"整数",float:"小数",currency:"通貨",percentage:"パーセント (整数)",percentageDot2:"パーセント (小数)",thousands:"千単位",millions:"百万単位",billions:"十億単位",subtotal:"小計",grandtotal:"総計",grandtotalValue:"総合計",category:"カテゴリ",chartType:"チャートタイプ",chartXAxis:"X軸",chartYAxis:"Y軸",categoryName:"カテゴリ名",barChart:"棒グラフ",lineChart:"折れ線グラフ",lineSymbolChart:"シンボル折れ線グラフ",areaChart:"エリアチャート",chartRenderingErrorHeader:"チャートレンダリングエラー",chartRenderingErrorContent:"チャートを表示できません。",contextPivotExportXlsx:"ビューエクスポート (xlsx)",contextPivotExportOriginXlsx:"元データエクスポート (xlsx)",contextPivotExportOriginCsv:"元データエクスポート (csv)",row:"行",column:"列",value:"値",filter:"フィルター",searchFieldPlaceholder:"フィールド検索...",dropZoneRowPlaceholder:"行軸フィールドをドラッグしてください",dropZoneColumnPlaceholder:"列軸フィールドをドラッグしてください",dropZoneValuePlaceholder:"値フィールドをドラッグしてください",dropZoneFilterPlaceholder:"フィルターフィールドをドラッグしてください",update:"更新",selectFieldForReport:"レポートに追加するフィールドを選択:",dragFieldsBetweenAreas:"下の領域間にフィールドをドラッグしてください:",valueSummaryCriteria:"値の集計方法",roundRound:"四捨五入",roundFloor:"切り捨て",roundCeil:"切り上げ",roundTrunc:"切り捨て(0方向)",roundingMode:"丸めモード",decimalPlaces:"小数点桁数",decimalUnlimited:"制限なし",showOriginalValue:"元の値を併記",back:"戻る",parentRowPct:"上位行グループ比 (%)",parentColPct:"上位列グループ比 (%)",rankAsc:"昇順ランク",rankDesc:"降順ランク",index:"インデックス",showTotalsGrand:"合計",showTotalsSub:"小計",fieldPanelSetting:"フィールド設定",colSubtotalCriteria:"列小計基準",allowRowToggle:"行の展開/折りたたみ許可",allowColToggle:"列の展開/折りたたみ許可",outlineMode:"アウトラインモード"},Gantt:{searchPlaceholder:"検索",columnSize:"列サイズ",rowSize:"行サイズ"},Chart:{filterPopup:"フィルター",resetFilter:"フィルターリセット",addFilter:"フィルター追加",symbolEqual:"等しい",symbolNotEqual:"等しくない",symbolContains:"含む",symbolNotContains:"含まない",symbolLessThan:"より小さい",symbolGreaterThan:"より大きい",symbolLessOrEqual:"以下",symbolGreaterOrEqual:"以上",symbolEmpty:"空",symbolNotEmpty:"空でない",chartSetting:"チャート設定",chartCategory:"チャートカテゴリ",chartType:"チャートタイプ",chartUseZoom:"ズーム使用",multiYAxisSetting:"Y軸マルチ設定",notUsed:"(使用しない)",chartPopup:"チャートポップアップ",errorMessage:"データの読み込み中にエラーが発生しました。",valueFieldSetting:"値フィールド設定",valueSummaryCriteria:"値集計基準",selectFieldForReport:"レポートに追加するフィールドを選択:",column:"列",row:"行",value:"値",sumValue:"∑ 値",count:"件数",sum:"合計",average:"平均",min:"最小値",max:"最大値",seriesCategory:"一般",pieCategory:"パイ",scatterCategory:"散布図",treemapCategory:"ツリーマップ",boxplotCategory:"ボックスプロット",candlestickCategory:"ローソク足",barChart:"棒グラフ",stackBarChart:"スタック棒グラフ",horizontalStackBarChart:"横スタック棒グラフ",lineChart:"折れ線グラフ",lineSymbolChart:"折れ線グラフ(シンボル)",areaChart:"エリアチャート",general:"一般",custom:"カスタム",axisCategoryLabel:"軸 (カテゴリ)",legendSeriesLabel:"凡例 (シリーズ)",legendSingleLabel:"凡例 (単一選択)",legendMultiLabel:"凡例 (複数選択可)",valueSingleLabel:"値 (単一選択)",xAxisSingleLabel:"X軸 (単一選択)",yAxisMultiLabel:"Y軸 (複数選択可)",notSet:"未指定",legendLimitExceededTitle:"チャートの凡例数が最大 {limit} 件を超えました。",legendLimitExceededContent:"凡例を {limit} 件以下に再設定してください。"},NumberInput:{increase:"値を増やす",decrease:"値を減らす"},DateInput:{prevDate:"前の日付",nextDate:"次の日付"},PasswordInput:{showPassword:"パスワードを表示",hidePassword:"パスワードを非表示"},Tab:{closeTab:"{label} を閉じる"},SplitPane:{resizeHandle:"領域サイズの調整"},BreadCrumb:{navigation:"パンくずリスト"}};let An=0;function $e(e){return(t,o,n,l)=>{const d=e.portal?new Nt:null,a=d?d.open():t,f=`h${++An}:`,i=new Wo;if(l!=null&&l.slots)for(const[j,$]of Object.entries(l.slots))i.register(j,$);l!=null&&l.slotResolver&&i.setResolver(l.slotResolver);const c=new Set(Object.keys(o)),r=l!=null&&l.providedKeys?new Set(l.providedKeys):null,u=j=>{const $=e.defaults;if(!$)return j;const I={...j};for(const Y of Object.keys($))I[Y]===void 0&&(I[Y]=$[Y]);return I};let p=u({...o}),y=(l==null?void 0:l.locale)??no;const L=(l==null?void 0:l.validator)??null,D=[];let P=new Map,E=new Set,g=new Map,h=null;const C={get props(){return p},emit:n,slots:i,requestUpdate:()=>W.requestUpdate(),onCleanup:j=>D.push(j),px:j=>Ae(j),get locale(){return y},validator:L,controlled:j=>r?r.has(j):c.has(j),slot(j,$){if(!i.has(j))return s.nothing;const I=g.get(j)??0;g.set(j,I+1);const Y=`${j}#${I}`;return P.set(Y,{name:j,scope:$}),s.html`<span data-moz-slot=${j} data-moz-slot-id=${f+Y}></span>`}},k=e.setup(C);class Z extends Uo{template(){return P=new Map,g=new Map,k.render()}renderNow(){super.renderNow();let $=null;if(k.renderPortal){const I=k.renderPortal(),Y=k.getPortalContainer?k.getPortalContainer():document.body;I===s.nothing||I==null||Y==null?h&&h.isOpen&&(s.render(s.nothing,h.element),h.close()):(h||(h=new Nt),$=h.isOpen?h.element:h.open("moz-overlay-portal",Y),s.render(I,$))}for(const[I,{name:Y,scope:ne}]of P){const B=`[data-moz-slot-id="${f+I}"]`;let se=this.container.querySelector(B);!se&&$&&(se=$.querySelector(B)),se&&i.fill(I,Y,se,ne)}for(const I of E)P.has(I)||i.clear(I);E=new Set(P.keys())}flush(){this.isMounted&&this.renderNow()}onDestroy(){for(const $ of D.splice(0))try{$()}catch{}i.destroy()}}const W=new Z(a);W.mount();let Q=!1;const re=()=>{var j;Q||!W.isMounted||(Q=!0,(j=k.onMounted)==null||j.call(k,a.firstElementChild))};return l!=null&&l.deferMounted||re(),{get el(){return a.firstElementChild},update(j,$){$!=null&&$.replace?(p=u({...j}),c.clear()):p=u({...p,...j});for(const I of Object.keys(j))c.add(I);$!=null&&$.sync?W.flush():W.requestUpdate()},destroy(){W.destroy(),d==null||d.close(),h==null||h.close()},setLocale(j){j!==y&&(y=j??no,W.requestUpdate())},api:k.api??{},notifyMounted:re}}}const Dn={MozBadge:["dot"],MozBreadCrumb:["showFavorite"],MozButton:["disabled","loading"],MozCallout:["compact","dismissible","hideIcon","live"],MozCheckBox:["checked","disabled","indeterminate","modelValue","readonly"],MozChip:["disabled","labelInteractive","removable","selected"],MozCollapsible:["disabled","forceMount","open"],MozContextMenu:["disableCloseOnClickBackdrop","noPadding","toBottomCenter","toTopCenter"],MozController:["customQueryParamsPanel","showFavorite","showFilterButton","showPreset"],MozDateInput:["disabled","readonly","required","showSpin"],MozEmptyState:["composed","isCustomState","isReadOnly","useImg"],MozInput:["disabled","isReadOnly","required","useInvalidV2"],MozLabel:["disabled","isReadOnly","required"],MozMultiSelect:["autoSelectNewItems","disabled","inline","loading","preserveMissingValues","readonly","required","selectAllWhenEmpty","useFilter","useSelectAll","useSpecificSelect"],MozNotificationCard:["dismissible","inline","pauseOnHover"],MozNotificationItem:["unread"],MozNumberInput:["disabled","nullable","required","shortMode"],MozPasswordInput:["disabled","required","useInvalidV2"],MozPopover:["matchTriggerWidth","open","trapFocus"],MozPopup:["autoPosition","closeOnOutsideClick","disabledConfirmButton","draggable","focusTrap","hideOthers","keepAspectRatio","loading","lockScroll","resizeable","showBackdrop","showCloseButton","showFooterBorder","showHeader","useVShow","visible"],MozRadio:["disabled","iconOnly","required"],MozSelect:["disabled","readonly","required","useFilter","useObjBinding"],MozSlider:["disabled"],MozSplitPane:["horizontal"],MozTab:["closeAble","vertical"],MozTableSelect:["disabled","readonly","required","useFilter","useObjKeyProp"],MozTagInput:["disableDelete","disableUpdate","dynamicSearch","isExpandTop","pushOnBlur","required","simplify"],MozTextArea:["disabled","immediatelyFocus","required"],MozTimePicker:["disabled","required"],MozToast:["composed","dismissible","inline","pauseOnHover","queue","showProgress"],MozToggle:["disabled","readonly","required","visible"],MozTooltip:["arrow","open"],MozTreeSelect:["disabled","readonly","required","useFilter","useMultiSelect","useSelectAll","useSpecificSelect"]};class In extends so.Directive{constructor(o){super(o);Re(this,"prevKeys",[]);Re(this,"listeners",new Map);if(o.type!==so.PartType.ELEMENT)throw new Error("spread() 는 element 바인딩(`<el ${spread(obj)}>`)에서만 사용할 수 있습니다.")}render(o){return s.nothing}update(o,[n]){const l=o.element,d=n??{};for(const a of this.prevKeys)if(!(a in d))if(this.isEventKey(a)){const f=this.listeners.get(a);f&&l.removeEventListener(this.eventName(a),f),this.listeners.delete(a)}else l.removeAttribute(a);for(const[a,f]of Object.entries(d))if(!(a==="class"||a==="style"||a==="key"||a==="ref"))if(this.isEventKey(a)&&typeof f=="function"){const i=this.eventName(a),c=this.listeners.get(a);c&&l.removeEventListener(i,c),l.addEventListener(i,f),this.listeners.set(a,f)}else f==null?l.removeAttribute(a):a.startsWith("aria-")?l.setAttribute(a,String(f)):f===!1?l.removeAttribute(a):f===!0?l.setAttribute(a,""):l.setAttribute(a,String(f));return this.prevKeys=Object.keys(d),s.noChange}isEventKey(o){return o.length>2&&o.startsWith("on")&&o[2]===o[2].toUpperCase()}eventName(o){return o.slice(2).toLowerCase()}}const he=so.directive(In);function V(...e){return wn.clsx(e)}function Vn(){return pt.extend($n),pt.extend(yn),pt.extend(bn),pt.extend(Cn),pt.extend(Sn),pt.extend(kn),pt.tz.setDefault("Asia/Seoul"),pt}const Pe=Vn();function Rn(){const e=[];return{addValidator:d=>{e.push(d)},removeValidator:d=>{const a=e.findIndex(f=>f.validate===d.validate);a>=0&&e.splice(a,1)},validate:async(d="save")=>(await Promise.all(e.map(f=>f.validate(d).then(i=>i===void 0?!0:i)))).every(f=>f),initValidator:()=>{var d;for(const a of e)(d=a==null?void 0:a.initValidator)==null||d.call(a)}}}const On=16;function qn(e,t){let o=0;return(...n)=>{const l=Date.now();l-o>=t&&(o=l,e(...n))}}class Kt{constructor(t){Re(this,"opened",!1);Re(this,"scrollHandler");Re(this,"clickHandler");this.opts=t,this.scrollHandler=qn(o=>this.onScroll(o),On),this.clickHandler=o=>this.onOutsideClick(o)}open(){this.opened||(this.opened=!0,document.addEventListener("scroll",this.scrollHandler,{capture:!0}),this.opts.closeOnOutsideClick!==!1&&setTimeout(()=>{this.opened&&document.addEventListener("click",this.clickHandler,{capture:!0})},0),queueMicrotask(()=>this.calcPosition()))}close(){this.opened&&(this.opened=!1,document.removeEventListener("scroll",this.scrollHandler,{capture:!0}),document.removeEventListener("click",this.clickHandler,{capture:!0}))}destroy(){this.close()}calcPosition(){const t=this.opts.anchor(),o=this.opts.panel();if(!t||!o)return;const n=t.getBoundingClientRect(),l=this.opts.maxHeight?this.opts.maxHeight():250,d=window.innerHeight-n.bottom,a=n.top,f=d<l&&a>=l;let i=n.left;const c=o.clientWidth;n.left+c>document.body.clientWidth&&(i-=c-n.width);let r=`${n.width}px`,u=!1;if(this.opts.listWidth){const p=this.opts.listWidth();p&&(typeof p!="number"||p>0)&&(r=typeof p=="number"?`${p}px`:p,u=!0)}o.style.position="fixed",o.style.left=`${i}px`,this.opts.useMinWidth?(o.style.minWidth=`${n.width}px`,u&&(o.style.width=String(r))):u?o.style.width=String(r):o.style.width=`${n.width}px`,f?(o.style.bottom=`${window.innerHeight-n.top}px`,o.style.top="auto"):(o.style.top=`${n.bottom}px`,o.style.bottom="auto")}onScroll(t){const o=t.target;if(this.opts.ignoreScrollTargets&&o&&this.opts.ignoreScrollTargets(o))return;const n=this.opts.anchor();if(n){const l=n.getBoundingClientRect();if(l.bottom<0||l.top>window.innerHeight){this.opts.requestClose();return}}this.calcPosition()}onOutsideClick(t){var n,l,d,a,f;if(this.opts.closeOnOutsideClick===!1)return;const o=t.target;(d=(l=(n=this.opts).container)==null?void 0:l.call(n))!=null&&d.contains(o)||(a=this.opts.panel())!=null&&a.contains(o)||(f=this.opts.anchor())!=null&&f.contains(o)||this.opts.requestClose()}}const ut=[];let Ht=!1;function Ko(e){var o;if(e.key!=="Escape")return;const t=ut[ut.length-1];t&&t.kind==="moz"&&((o=t.onEscape)==null||o.call(t,e),e.stopPropagation())}function Bn(){Ht||typeof window>"u"||(window.addEventListener("keydown",Ko,{capture:!0}),Ht=!0)}function Fn(){!Ht||typeof window>"u"||(window.removeEventListener("keydown",Ko,!0),Ht=!1)}function ho(e){ut.push(e),Bn();let t=!1;return{release(){if(t)return;t=!0;const o=ut.indexOf(e);o>=0&&ut.splice(o,1),ut.length===0&&Fn()},isTopmost(){return ut[ut.length-1]===e}}}function mo(e){return ho({kind:"moz",onEscape:e})}function Nn(){return ho({kind:"foreign"})}function Gt(){return ho({kind:"self"})}function Hn(){return ut.length}function fo(e={}){const{circleClass:t="",progressClass:o=""}=e;return s.html`<svg
1
+ "use strict";var al=Object.defineProperty;var rl=(e,t,o)=>t in e?al(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var Ve=(e,t,o)=>rl(e,typeof t!="symbol"?t+"":t,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("lit-html"),mo=require("lit-html/directive.js"),j=require("lit-html/directives/style-map.js"),cl=require("clsx"),$e=require("lit-html/directives/if-defined.js"),gn=require("lit-html/directives/unsafe-html.js"),So=require("lit-html/directives/live.js"),Y=require("lit-html/directives/ref.js"),gt=require("dayjs"),dl=require("dayjs/plugin/duration.js"),ul=require("dayjs/plugin/minMax.js"),pl=require("dayjs/plugin/timezone.js"),hl=require("dayjs/plugin/utc.js"),ml=require("dayjs/plugin/isSameOrBefore.js"),fl=require("dayjs/plugin/isSameOrAfter.js");require("dayjs/locale/ko.js");require("dayjs/locale/en.js");require("dayjs/locale/zh.js");require("dayjs/locale/ja.js");const st=require("@tanstack/virtual-core");var Se=typeof document<"u"?document.currentScript:null;class vn{constructor(t){Ve(this,"container");Ve(this,"updateScheduled",!1);Ve(this,"mounted",!1);Ve(this,"cleanups",[]);Ve(this,"endMarker",null);this.container=t}mount(){return this.mounted?this:(this.mounted=!0,this.onMount(),this.renderNow(),this)}requestUpdate(){!this.mounted||this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>{this.updateScheduled=!1,this.mounted&&this.renderNow()}))}renderNow(){n.render(this.template(),this.container,this.rootOptions())}rootOptions(){return this.endMarker||(this.endMarker=this.container.appendChild(document.createComment(""))),{renderBefore:this.endMarker}}addCleanup(t){this.cleanups.push(t)}onMount(){}onDestroy(){}destroy(){if(this.mounted){this.mounted=!1,this.onDestroy();for(const t of this.cleanups.splice(0))try{t()}catch{}this.endMarker&&(n.render(n.nothing,this.container,{renderBefore:this.endMarker}),this.endMarker.remove(),this.endMarker=null)}}get isMounted(){return this.mounted}}class gl{constructor(){Ve(this,"listeners",new Set)}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}emit(){for(const t of this.listeners)t()}clearListeners(){this.listeners.clear()}}class wn{constructor(){Ve(this,"renderers",new Map);Ve(this,"resolver",null);Ve(this,"mounted",new Map)}setResolver(t){this.resolver=t}lookup(t){var o;return this.renderers.get(t)??((o=this.resolver)==null?void 0:o.call(this,t))}register(t,o){this.renderers.set(t,o)}unregister(t){for(const o of Array.from(this.mounted.keys()))(o===t||o.startsWith(`${t}#`))&&this.clear(o);this.renderers.delete(t)}has(t){return this.lookup(t)!==void 0}fill(t,o,s,l){var d,b;const i=this.lookup(o);if(!i)return!1;const r=this.mounted.get(t);if(r){if(r.el===s)return(b=(d=r.handle).update)==null||b.call(d,l),!0;r.handle.dispose(),this.mounted.delete(t)}for(const[c,m]of this.mounted)m.el===s&&(m.handle.dispose(),this.mounted.delete(c));const p=i(s,l);return this.mounted.set(t,{el:s,handle:p}),!0}clear(t){const o=this.mounted.get(t);o&&(o.handle.dispose(),this.mounted.delete(t))}clearAll(){for(const t of Array.from(this.mounted.keys()))this.clear(t)}destroy(){this.clearAll(),this.renderers.clear(),this.resolver=null}get mountedCount(){return this.mounted.size}}class Yt{constructor(){Ve(this,"el",null)}open(t="",o=document.body){return this.el?this.el:(this.el=document.createElement("div"),t&&(this.el.className=t),o.appendChild(this.el),this.el)}close(){this.el&&(this.el.remove(),this.el=null)}get element(){return this.el}get isOpen(){return this.el!==null}}function Rt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function Ae(e,t=16){return e/t}let Yo=0;function Qe(e=""){return Yo+=1,`${e}${Yo}`}const Mt=(e,t)=>{const o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(const l of o)if(e[l]!==t[l])return!1;return!0};function ge(e,t){const o={};for(const s of Object.keys(e))t.has(s)||(o[s]=e[s]);return o}function eo(e){const t={},o={};for(const s of Object.keys(e))s.startsWith("aria-")?t[s]=e[s]:o[s]=e[s];return{aria:t,dom:o}}const vl=["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth"],wl=new Set(vl.flatMap(e=>[e,...["Webkit","ms","Moz","O"].map(t=>t+e.charAt(0).toUpperCase()+e.slice(1))]));function yl(e){return e.includes("-")?e.replace(/^-ms-/,"ms-").replace(/-([a-z])/g,(t,o)=>o.toUpperCase()):e}function he(e){if(!e)return{};if(typeof e=="object"){const t={};for(const[o,s]of Object.entries(e))t[o]=typeof s=="number"&&s!==0&&!o.startsWith("--")&&!wl.has(yl(o))?`${s}px`:s;return t}if(typeof e=="string"){const t={};for(const o of e.split(";")){const s=o.indexOf(":");s>0&&(t[o.slice(0,s).trim()]=o.slice(s+1).trim())}return t}return{}}function ko(e,t,o,s){return e.length>0||t===0||!s||s.getBoundingClientRect().height>0?e:Array.from({length:t},(l,i)=>({index:i,size:o,start:i*o}))}const It={Toast:{close:"닫기"},Chip:{remove:"삭제"},Callout:{dismiss:"닫기"},Notification:{close:"닫기",unread:"읽지 않음"},Spinner:{label:"불러오는 중"},CodeBlock:{label:"코드",copy:"{label} 복사",copied:"복사했습니다.",copyFailed:"복사하지 못했습니다. 코드를 선택해 복사해 주세요."},Popup:{title:"팝업",save:"저장",cancel:"취소",ok:"확인",close:"닫기"},Select:{searchPlaceholder:"검색",emptyText:"데이터가 없습니다",requiredMessage:"{label} 은(는) 필수입니다"},MultiSelect:{search:"검색",selectAll:"전체 선택",selectFiltered:"필터 결과 선택",specificResults:"결과만",specificSelect:"선택만",noData:"데이터가 없습니다",required:"{label} 은(는) 필수입니다",headerFormat:"항목 ({count})"},TreeSelect:{search:"검색",selectAll:"전체 선택",selectFiltered:"필터 결과 선택",specificResults:"결과만",noData:"데이터가 없습니다",showSelectedOnly:"선택한 항목만 표시",expandAll:"모두 펼치기",collapseAll:"모두 접기",required:"{label} 은(는) 필수입니다",headerFormat:"항목 ({count})",expand:"펼치기",collapse:"접기"},Controller:{filterLabel:"조회 조건"},TagInput:{add:"추가",editTag:"{label} 수정",removeTag:"{label} 삭제"},TimePicker:{hour:"시",minute:"분",currentTime:"현재 시간으로 설정"},EmptyState:{customEmptyHeader:"데이터 없음",customEmptyContent:"표시할 데이터가 없습니다.",dataEmptyHeader:"데이터가 없습니다.",dataEmptyContent:"필요한 데이터를 추가해 주세요.",resultEmptyHeader:"설정한 조건에 해당되는 데이터가 없습니다.",resultEmptyContent:`조회 조건이 적절하게 설정되었는지 확인해주세요.
2
+ 조회 조건을 변경하였다면, 조회 버튼을 다시 눌러주세요.`,searchEmptyHeader:"검색 결과 없음",searchEmptyContent:"필터 값을 확인하고 다시 시도해 주세요."},TableSelect:{searchPlaceholder:"검색",emptyText:"데이터가 없습니다",requiredMessage:"{label} 은(는) 필수입니다",footerSelect:"선택",footerNavigate:"이동",footerClose:"닫기"},Common:{requiredMessage:"{label} 은(는) 필수입니다"},Grid:{layoutSetting:"보기 설정",filter:"필터",sort:"정렬",customCellStyle:"조건부 서식 설정",reset:"초기화",searchFilter:"검색",newView:"새 뷰",selectAll:"전체 선택",columnPicker:"열 표시/숨김 설정",viewToolbar:"Tool Bar 보기",viewFooter:"Footer 보기",viewGroupPanel:"그룹 패널 보기",resetFilterAndSort:"필터 및 정렬 초기화",defaultView:"기본 뷰",filterPopup:"필터 설정",resetFilter:"필터 초기화",addFilter:"필터 추가",sortingPopup:"정렬 설정",ascending:"오름차순",descending:"내림차순",resetSort:"정렬 초기화",addSort:"정렬 추가",symbolEqual:"같음",symbolNotEqual:"같지 않음",symbolContains:"포함",symbolNotContains:"포함하지 않음",symbolLessThan:"보다 작음",symbolGreaterThan:"보다 큼",symbolLessOrEqual:"이하",symbolGreaterOrEqual:"이상",symbolEmpty:"비어 있음",symbolNotEmpty:"비어 있지 않음",customCellRuleNamePlaceholder:"규칙 이름을 입력하세요",addFormulaCondition:"조건 추가",applicationColumn:"적용 열",backgroundColor:"배경색",fontColor:"글꼴 색",resetCustomCell:"초기화",addFormulaConditionSet:"규칙 추가",customColor:"사용자 지정 색상",formulaConditionSet:"새 규칙",contextFilterAndSort:"필터 및 정렬",contextAddFilter:"필터 추가",contextSelectFilter:"선택 값으로 필터",contextResetColumnFilter:"열 필터 초기화",contextResetColumnSort:"열 정렬 초기화",contextResetColumnAll:"열 필터/정렬 초기화",contextDataCopy:"선택한 데이터 복사",contextDataExcelCopy:"Excel 복사",contextDataWithHeaderCopy:"선택한 데이터 복사 (헤더 포함)",contextPin:"열 고정 / 해제",contextColumnPicker:"열 표시/숨김 설정",contextMoveColumnFirst:"첫 번째 열로 보내기",contextAutoSizeColumns:"열 너비 자동 조정",contextGroupPanel:"그룹 패널",contextGroupToggle:"그룹 접기/펼치기",contextGroupCollapseAll:"모든 그룹 접기",contextGroupExpandAll:"모든 그룹 펼치기",groupPanelPlaceholder:"열을 드래그 앤 드롭하여 그룹을 만듭니다.",contextBulkEdit:"데이터 일괄변경 [{name}]",contextImport:"가져오기",contextImportExcel:"Excel 가져오기 (덮어쓰기)",contextImportExcelAppend:"Excel 가져오기 (추가)",contextExport:"내보내기",contextExportXlsx:"엑셀 내보내기 (xlsx)",contextExportCsv:"CSV 내보내기 (csv)",contextSum:"합계",check:"확인",cancel:"취소",save:"저장",remove:"삭제",close:"닫기",pause:"일시 중지",add:"추가",immediateApply:"바로 적용",warning:"경고",mozWarning:"경고",confirmCancel:"취소하시겠습니까?",alreadyExcelProgress:"Excel 작업이 이미 진행 중입니다.",downloadFail:"다운로드에 실패했습니다.",addDataWithFilterSort:"필터/정렬이 적용된 상태에서 데이터를 추가하시겠습니까?",resetAndAdd:"초기화 후 추가",confirmDeleteGeneral:"{name}을(를) 삭제하시겠습니까?",toastCopySuccess:"복사되었습니다.",toastSaveSuccess:"저장되었습니다.",toastSaveError:"저장에 실패했습니다.",toastResetSuccess:"초기화되었습니다.",toastRequiredVal:"필수 값을 입력하세요.",excelInvalidExcel:"유효하지 않은 Excel 파일입니다.",excelInvalidUpload:"유효하지 않은 업로드 데이터입니다.",downloadFormat:"서식 내려받기",click:"클릭",drag:"드래그",overwriteSelected:"선택한 항목을 덮어쓰시겠습니까?",fileOverwrite:"파일을 덮어쓰시겠습니까?",dropHere:"이 곳을 클릭 또는 파일을 드래그 하세요.",dropHerePrefix:"이 곳을 ",dropHereMiddle:" 또는 파일을 ",dropHereSuffix:" 하세요.",withFormatting:"서식 포함",requestTimedOut:"요청 시간이 초과되었습니다.",serverError:"서버 오류가 발생했습니다.",total:"전체",correct:"정상",error:"오류",success:"성공",fail:"실패",excelExportConfirmLargeData:"대용량 데이터를 내보내시겠습니까?",footerTotalRowCount:"총 개수: {totalRowCount}개",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"평균",aggregateCount:"개수",aggregateMin:"최소",aggregateMax:"최대",aggregateSum:"합계",settings:"설정",collapseToolbar:"툴바 접기",expandToolbar:"툴바 펼치기",searchPrev:"이전 검색 결과",searchNext:"다음 검색 결과",searchGoTo:"결과 번호로 이동",searching:"검색 중...",deleteCondition:"조건 삭제",deleteSort:"정렬 삭제",selectPlaceholder:"선택",byValueLabel:"레이블",decrease:"감소",increase:"증가",selectColor:"색상 선택",noColor:"색상 없음",customColorInput:"직접 입력",alignLeft:"왼쪽 정렬",alignCenter:"가운데 정렬",alignRight:"오른쪽 정렬",alignLabel:"정렬",fontStyleLabel:"글자 스타일",bold:"굵게",italic:"기울임",underline:"밑줄",columnOptions:"컬럼 옵션",showAllColumns:"전체 표시",commonSection:"공통",headerLabelField:"헤더 라벨",pinColumn:"고정",pinLeft:"왼쪽",pinNone:"없음",pinRight:"오른쪽",columnWidthPx:"너비(px)",headerSection:"헤더",cellSection:"셀",fontLabel:"글자",sizeLabel:"크기",displayMask:"표시 형식(마스크)",resetThisColumn:"이 컬럼 초기화",selectColumnHint:"컬럼을 선택하세요",showColumnNamed:"{column} 표시",columnTextColor:"글자색",cellStyleTitle:"셀 스타일",formulaHelp:"수식 도움말",validFormula:"유효한 수식",formulaHint:"컬럼을 선택하거나 값을 입력해 수식을 작성하세요.",ruleName:"규칙 이름",targetColumns:"적용 컬럼",allColumns:"전체 컬럼",colorLabel:"색상",cellBgColor:"배경 색상",cellTextColor:"텍스트 색상",moveUp:"위로",moveDown:"아래로",formulaPlaceholder:"예: [수요수량] > [재고수량] AND [우선순위] < 3",helpColumnRef:"컬럼 참조",helpCompare:"비교",helpArithmetic:"산술",helpLogic:"논리",helpString:"문자열",helpNull:"NULL 체크",helpValue:"값",groupColon:"그룹:",groupEmptyHint:"여기에 컬럼을 추가해 그룹화",addGroupBtn:"+ 그룹 추가",ungroup:"해제",removeGroup:"그룹 제거",excelImportTitle:"Excel 가져오기",processing:"처리 중…",excelPreview:"미리보기 {shown}행 / 총 {total}행+",clientImportFile:"파일에서 가져오기 (클라이언트)",clientExportXlsx:"XLSX (클라이언트)",groupExpand:"그룹 펼치기",groupCollapse:"그룹 접기",fontSizeDefault:"기본",maskGroupNone:"없음",maskGroupNumber:"숫자",maskGroupDate:"날짜",maskGroupString:"문자열",maskNoneText:"마스크 없음",maskNoneDesc:"원본 값 그대로 표시",maskThousandsText:"천 단위 구분 (1,234)",maskThousandsDesc:"예: 1234 → 1,234",maskDecimal2Text:"소수 2자리 (#,##0.00)",maskDecimal2Desc:"예: 1234.5 → 1,234.50",maskKrwText:"원화 (₩1,234)",maskKrwDesc:"예: 1234 → ₩1,234",maskUsdText:"달러 ($1,234.00)",maskUsdDesc:"예: 1234.5 → $1,234.50",maskPercentText:"퍼센트 (12%)",maskPercentDesc:"예: 12 → 12%",maskDateIsoDesc:"예: 2026-05-26",maskDateKoDesc:"예: 2026년 05월 26일",maskDatetimeDesc:"예: 2026-05-26 14:30",maskDateUsDesc:"예: 05/26/2026",maskPhoneText:"전화번호 (010-1234-5678)",maskPhoneDesc:"예: 01012345678 → 010-1234-5678",maskRrnText:"주민등록번호 (000000-0000000)",maskRrnDesc:"예: 9501011234567 → 950101-1234567",maskBizText:"사업자등록번호 (000-00-00000)",maskBizDesc:"예: 1234567890 → 123-45-67890"},GridPivot:{setting:"피봇 설정",gridSetting:"그리드 설정",fieldSetting:"값 필드 설정",showRowTotals:"행 합계 표시",showColumnTotals:"열 합계 표시",subtotalCriteria:"소계 기준",subtotalAggregateField:"소계 집계 필드",totalsBeforeData:"합계 먼저 보기",showZeros:"빈 값 채우기",showOutlineMode:"개요 모드",collapsibleSubtotal:"소계 접기",fieldName:"필드 이름",fieldAggregate:"집계",fieldShowAs:"표시 방식",fieldFormat:"형식",openChart:"차트 열기",selectValueField:"값 필드 선택",none:"없음",sum:"합계",count:"개수",average:"평균",max:"최대값",min:"최소값",range:"범위",std:"표준 편차",var:"분산",stdPop:"모표준 편차",varPop:"모분산",cntAll:"전체 개수",cntNumbers:"숫자 개수",showFirstValue:"첫 번째 값",showLastValue:"마지막 값",noCalculation:"계산 없음",diffRow:"이전 행과의 차이",diffRowPct:"이전 행과의 차이 (%)",diffCol:"이전 열과의 차이",diffColPct:"이전 열과의 차이 (%)",grandtotalPct:"전체 합계 대비 (%)",rowTotalPct:"행 합계 대비 (%)",colTotalPct:"열 합계 대비 (%)",prevRowPct:"이전 행 대비 (%)",prevColPct:"이전 열 대비 (%)",runTot:"누적 합계",runTotPct:"누적 합계 (%)",generalFormat:"일반",int:"정수",float:"실수",currency:"통화",percentage:"백분율 (정수)",percentageDot2:"백분율 (실수)",thousands:"천 단위",millions:"백만 단위",billions:"십억 단위",subtotal:"소계",grandtotal:"전체 합계",grandtotalValue:"총합계",category:"범주",chartType:"차트 유형",chartXAxis:"X축 범주",chartYAxis:"Y축 범주",categoryName:"카테고리",barChart:"막대 차트",lineChart:"꺾은선 차트",lineSymbolChart:"기호 꺾은선 차트",areaChart:"영역 차트",chartRenderingErrorHeader:"차트 렌더링 오류",chartRenderingErrorContent:"차트를 표시할 수 없습니다.",contextPivotExportXlsx:"화면 내보내기 (xlsx)",contextPivotExportOriginXlsx:"원본 데이터 내보내기 (xlsx)",contextPivotExportOriginCsv:"원본 데이터 내보내기 (csv)",row:"행",column:"열",value:"값",filter:"필터",searchFieldPlaceholder:"필드 검색...",dropZoneRowPlaceholder:"행 축 필드를 드래그하세요",dropZoneColumnPlaceholder:"열 축 필드를 드래그하세요",dropZoneValuePlaceholder:"값 필드를 드래그하세요",dropZoneFilterPlaceholder:"필터 필드를 드래그하세요",update:"업데이트",selectFieldForReport:"보고서에 추가할 필드 선택:",dragFieldsBetweenAreas:"아래 영역 사이에 필드를 끌어 놓으십시오:",valueSummaryCriteria:"값 요약 기준",roundRound:"반올림",roundFloor:"내림",roundCeil:"올림",roundTrunc:"절삭",roundingMode:"반올림 모드",decimalPlaces:"소수점 자리수",decimalUnlimited:"제한 없음",showOriginalValue:"원본값 병기",back:"뒤로",parentRowPct:"상위 행 그룹(%)",parentColPct:"상위 열 그룹(%)",rankAsc:"오름차순 순위",rankDesc:"내림차순 순위",index:"인덱스",showTotalsGrand:"합계",showTotalsSub:"부분합",fieldPanelSetting:"필드 설정",colSubtotalCriteria:"열 소계 기준",allowRowToggle:"행 확장/축소 허용",allowColToggle:"열 확장/축소 허용",outlineMode:"요약 모드"},Gantt:{searchPlaceholder:"검색",columnSize:"컬럼 크기",rowSize:"행 크기"},Chart:{filterPopup:"필터",resetFilter:"필터 초기화",addFilter:"필터 추가",symbolEqual:"같음",symbolNotEqual:"같지 않음",symbolContains:"포함",symbolNotContains:"포함하지 않음",symbolLessThan:"보다 작음",symbolGreaterThan:"보다 큼",symbolLessOrEqual:"작거나 같음",symbolGreaterOrEqual:"크거나 같음",symbolEmpty:"비어있음",symbolNotEmpty:"비어있지 않음",chartSetting:"차트 설정",chartCategory:"차트 카테고리",chartType:"차트 타입",chartUseZoom:"줌 사용",multiYAxisSetting:"Y축 다중 설정",notUsed:"(사용안함)",chartPopup:"차트 팝업",errorMessage:"데이터를 불러오는 중 오류가 발생했습니다.",valueFieldSetting:"값 필드 설정",valueSummaryCriteria:"값 요약 기준",selectFieldForReport:"보고서에 추가할 필드 선택:",column:"열",row:"행",value:"값",sumValue:"∑ 값",count:"개수",sum:"합계",average:"평균",min:"최소값",max:"최대값",seriesCategory:"일반",pieCategory:"파이",scatterCategory:"산점도",treemapCategory:"트리맵",boxplotCategory:"박스플롯",candlestickCategory:"캔들스틱",barChart:"바 차트",stackBarChart:"스택 바 차트",horizontalStackBarChart:"가로 스택 바 차트",lineChart:"선 차트",lineSymbolChart:"선 차트(심볼)",areaChart:"면적 차트",general:"일반",custom:"사용자 지정",axisCategoryLabel:"축 (범주)",legendSeriesLabel:"범례 (계열)",legendSingleLabel:"범례 (단일 선택)",legendMultiLabel:"범례 (다중 선택 가능)",valueSingleLabel:"값 (단일 선택)",xAxisSingleLabel:"X축 (단일 선택)",yAxisMultiLabel:"Y축 (다중 선택 가능)",notSet:"미지정",legendLimitExceededTitle:"차트 범례 개수가 최대 {limit}개를 초과했습니다.",legendLimitExceededContent:"범례를 {limit}개 이하로 재설정하여 주십시오."},NumberInput:{increase:"값 증가",decrease:"값 감소"},DateInput:{prevDate:"이전 날짜",nextDate:"다음 날짜"},PasswordInput:{showPassword:"비밀번호 표시",hidePassword:"비밀번호 숨기기"},Tab:{closeTab:"{label} 닫기"},SplitPane:{resizeHandle:"영역 크기 조절"},BreadCrumb:{navigation:"탐색 경로"}},bl={Toast:{close:"Close"},Chip:{remove:"Remove"},Callout:{dismiss:"Dismiss"},Notification:{close:"Close",unread:"Unread"},Spinner:{label:"Loading"},CodeBlock:{label:"Code",copy:"Copy {label}",copied:"Copied.",copyFailed:"Could not copy. Select the code and copy it manually."},Popup:{title:"Popup",save:"Save",cancel:"Cancel",ok:"OK",close:"Close"},Select:{searchPlaceholder:"Search",emptyText:"No data",requiredMessage:"{label} is required"},MultiSelect:{search:"Search",selectAll:"Select All",selectFiltered:"Select Filtered",specificResults:"Only Results",specificSelect:"Only",noData:"No data",required:"{label} is required",headerFormat:"ITEMS ({count})"},TreeSelect:{search:"Search",selectAll:"Select All",selectFiltered:"Select Filtered",specificResults:"Only Results",noData:"No data",showSelectedOnly:"Show selected only",expandAll:"Expand All",collapseAll:"Collapse All",required:"{label} is required",headerFormat:"ITEMS ({count})",expand:"Expand",collapse:"Collapse"},Controller:{filterLabel:"Search criteria"},TagInput:{add:"Add",editTag:"Edit {label}",removeTag:"Remove {label}"},TimePicker:{hour:"Hour",minute:"Minute",currentTime:"Current Time"},EmptyState:{customEmptyHeader:"No data",customEmptyContent:"There is no data to display.",dataEmptyHeader:"No data to display",dataEmptyContent:"Please enter the required data.",resultEmptyHeader:"No results",resultEmptyContent:"Check the search conditions and try again.",searchEmptyHeader:"No search results",searchEmptyContent:"Please check the filter value and try again."},TableSelect:{searchPlaceholder:"Search",emptyText:"No data",requiredMessage:"{label} is required",footerSelect:"Select",footerNavigate:"Navigate",footerClose:"Close"},Common:{requiredMessage:"{label} is required"},Grid:{layoutSetting:"Layout Settings",filter:"Filter",sort:"Sort",customCellStyle:"Conditional Formatting",reset:"Reset",searchFilter:"Search",newView:"New View",selectAll:"Select All",columnPicker:"Show/Hide Columns",viewToolbar:"Show Toolbar",viewFooter:"Show Footer",viewGroupPanel:"Show Group Panel",resetFilterAndSort:"Reset Filter & Sort",defaultView:"Default View",filterPopup:"Filter Settings",resetFilter:"Reset Filter",addFilter:"Add Filter",sortingPopup:"Sort Settings",ascending:"Ascending",descending:"Descending",resetSort:"Reset Sort",addSort:"Add Sort",symbolEqual:"Equal",symbolNotEqual:"Not Equal",symbolContains:"Contains",symbolNotContains:"Does Not Contain",symbolLessThan:"Less Than",symbolGreaterThan:"Greater Than",symbolLessOrEqual:"Less Or Equal",symbolGreaterOrEqual:"Greater Or Equal",symbolEmpty:"Empty",symbolNotEmpty:"Not Empty",customCellRuleNamePlaceholder:"Enter rule name",addFormulaCondition:"Add Condition",applicationColumn:"Application Column",backgroundColor:"Background Color",fontColor:"Font Color",resetCustomCell:"Reset",addFormulaConditionSet:"Add Rule",customColor:"Custom Color",formulaConditionSet:"New Rule",contextFilterAndSort:"Filter & Sort",contextAddFilter:"Add Filter",contextSelectFilter:"Filter by Selection",contextResetColumnFilter:"Reset Column Filter",contextResetColumnSort:"Reset Column Sort",contextResetColumnAll:"Reset Column Filter/Sort",contextDataCopy:"Copy",contextDataExcelCopy:"Copy for Excel",contextDataWithHeaderCopy:"Copy with Header",contextPin:"Pin Column",contextColumnPicker:"Column Picker",contextMoveColumnFirst:"Move to First Column",contextAutoSizeColumns:"Auto Size Columns",contextGroupPanel:"Group Panel",contextGroupToggle:"Toggle Collapse",contextGroupCollapseAll:"Collapse All Groups",contextGroupExpandAll:"Expand All Groups",groupPanelPlaceholder:"Drag and drop columns here to create groups.",contextBulkEdit:"Bulk Edit {name}",contextImport:"Import",contextImportExcel:"Import Excel (Overwrite)",contextImportExcelAppend:"Import Excel (Append)",contextExport:"Export",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"Sum",check:"OK",cancel:"Cancel",save:"Save",remove:"Delete",close:"Close",pause:"Pause",add:"Add",immediateApply:"Apply Immediately",warning:"Warning",mozWarning:"Warning",confirmCancel:"Are you sure you want to cancel?",alreadyExcelProgress:"Excel operation is already in progress.",downloadFail:"Download failed.",addDataWithFilterSort:"Add data while filter/sort is applied?",resetAndAdd:"Reset and Add",confirmDeleteGeneral:"Are you sure you want to delete {name}?",toastCopySuccess:"Copied.",toastSaveSuccess:"Saved.",toastSaveError:"Save failed.",toastResetSuccess:"Reset.",toastRequiredVal:"Please enter the required values.",excelInvalidExcel:"Invalid Excel file.",excelInvalidUpload:"Invalid upload data.",downloadFormat:"Download Format",click:"Click",drag:"Drag",overwriteSelected:"Overwrite selected items?",fileOverwrite:"Overwrite the file?",dropHere:"Drop here",dropHerePrefix:"",dropHereMiddle:" here or ",dropHereSuffix:" a file.",withFormatting:"With Formatting",requestTimedOut:"Request timed out.",serverError:"A server error occurred.",total:"Total",correct:"Correct",error:"Error",success:"Success",fail:"Fail",excelExportConfirmLargeData:"Export large data?",footerTotalRowCount:"Total: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"Average",aggregateCount:"Count",aggregateMin:"Min",aggregateMax:"Max",aggregateSum:"Sum",settings:"Settings",collapseToolbar:"Collapse toolbar",expandToolbar:"Expand toolbar",searchPrev:"Previous result",searchNext:"Next result",searchGoTo:"Go to result",searching:"Searching...",deleteCondition:"Delete condition",deleteSort:"Delete sort",selectPlaceholder:"Select",byValueLabel:"Label",decrease:"Decrease",increase:"Increase",selectColor:"Select color",noColor:"No color",customColorInput:"Custom",alignLeft:"Align left",alignCenter:"Align center",alignRight:"Align right",alignLabel:"Align",fontStyleLabel:"Font style",bold:"Bold",italic:"Italic",underline:"Underline",columnOptions:"Column Options",showAllColumns:"Show all",commonSection:"Common",headerLabelField:"Header label",pinColumn:"Pin",pinLeft:"Left",pinNone:"None",pinRight:"Right",columnWidthPx:"Width (px)",headerSection:"Header",cellSection:"Cell",fontLabel:"Font",sizeLabel:"Size",displayMask:"Display format (mask)",resetThisColumn:"Reset this column",selectColumnHint:"Select a column",showColumnNamed:"Show {column}",columnTextColor:"Text color",cellStyleTitle:"Cell Style",formulaHelp:"Formula help",validFormula:"Valid formula",formulaHint:"Select a column or enter a value to build a formula.",ruleName:"Rule name",targetColumns:"Target columns",allColumns:"All columns",colorLabel:"Color",cellBgColor:"Background color",cellTextColor:"Text color",moveUp:"Move up",moveDown:"Move down",formulaPlaceholder:"e.g. [Demand] > [Stock] AND [Priority] < 3",helpColumnRef:"Column ref",helpCompare:"Compare",helpArithmetic:"Arithmetic",helpLogic:"Logic",helpString:"String",helpNull:"NULL check",helpValue:"Value",groupColon:"Group:",groupEmptyHint:"Drag columns here to group",addGroupBtn:"+ Add group",ungroup:"Clear",removeGroup:"Remove group",excelImportTitle:"Excel Import",processing:"Processing…",excelPreview:"Preview {shown} rows / {total} total+",clientImportFile:"Import from file (client)",clientExportXlsx:"XLSX (client)",groupExpand:"Expand group",groupCollapse:"Collapse group",fontSizeDefault:"Default",maskGroupNone:"None",maskGroupNumber:"Number",maskGroupDate:"Date",maskGroupString:"String",maskNoneText:"No mask",maskNoneDesc:"Show raw value",maskThousandsText:"Thousands (1,234)",maskThousandsDesc:"e.g. 1234 → 1,234",maskDecimal2Text:"2 decimals (#,##0.00)",maskDecimal2Desc:"e.g. 1234.5 → 1,234.50",maskKrwText:"KRW (₩1,234)",maskKrwDesc:"e.g. 1234 → ₩1,234",maskUsdText:"USD ($1,234.00)",maskUsdDesc:"e.g. 1234.5 → $1,234.50",maskPercentText:"Percent (12%)",maskPercentDesc:"e.g. 12 → 12%",maskDateIsoDesc:"e.g. 2026-05-26",maskDateKoDesc:"e.g. 2026-05-26",maskDatetimeDesc:"e.g. 2026-05-26 14:30",maskDateUsDesc:"e.g. 05/26/2026",maskPhoneText:"Phone (010-1234-5678)",maskPhoneDesc:"e.g. 01012345678 → 010-1234-5678",maskRrnText:"RRN (000000-0000000)",maskRrnDesc:"e.g. 9501011234567 → 950101-1234567",maskBizText:"Business No. (000-00-00000)",maskBizDesc:"e.g. 1234567890 → 123-45-67890"},GridPivot:{setting:"Pivot Settings",gridSetting:"Grid Settings",fieldSetting:"Field Settings",showRowTotals:"Show Row Totals",showColumnTotals:"Show Column Totals",subtotalCriteria:"Subtotal Criteria",subtotalAggregateField:"Subtotal Aggregate Field",totalsBeforeData:"Show Totals Before Data",showZeros:"Show Zeros",showOutlineMode:"Outline Mode",collapsibleSubtotal:"Collapsible Subtotal",fieldName:"Field Name",fieldAggregate:"Aggregate",fieldShowAs:"Show As",fieldFormat:"Format",openChart:"Open Chart",selectValueField:"Select Value Field",none:"None",sum:"Sum",count:"Count",average:"Average",max:"Max",min:"Min",range:"Range",std:"Std Dev",var:"Variance",stdPop:"Pop Std Dev",varPop:"Pop Variance",cntAll:"Count All",cntNumbers:"Count Numbers",showFirstValue:"First Value",showLastValue:"Last Value",noCalculation:"No Calculation",diffRow:"Diff from Previous Row",diffRowPct:"Diff from Previous Row (%)",diffCol:"Diff from Previous Column",diffColPct:"Diff from Previous Column (%)",grandtotalPct:"% of Grand Total",rowTotalPct:"% of Row Total",colTotalPct:"% of Column Total",prevRowPct:"% of Previous Row",prevColPct:"% of Previous Column",runTot:"Running Total",runTotPct:"Running Total (%)",generalFormat:"General",int:"Integer",float:"Decimal",currency:"Currency",percentage:"Percentage (Integer)",percentageDot2:"Percentage (Decimal)",thousands:"Thousands",millions:"Millions",billions:"Billions",subtotal:"Subtotal",grandtotal:"Grand Total",grandtotalValue:"Grand Total",category:"Category",chartType:"Chart Type",chartXAxis:"X Axis",chartYAxis:"Y Axis",categoryName:"Category Name",barChart:"Bar Chart",lineChart:"Line Chart",lineSymbolChart:"Symbol Line Chart",areaChart:"Area Chart",chartRenderingErrorHeader:"Chart Rendering Error",chartRenderingErrorContent:"Unable to display the chart.",contextPivotExportXlsx:"View Export (xlsx)",contextPivotExportOriginXlsx:"Source Data Export (xlsx)",contextPivotExportOriginCsv:"Source Data Export (csv)",row:"Rows",column:"Columns",value:"Values",filter:"Filters",searchFieldPlaceholder:"Search fields...",dropZoneRowPlaceholder:"Drag row axis fields here",dropZoneColumnPlaceholder:"Drag column axis fields here",dropZoneValuePlaceholder:"Drag value fields here",dropZoneFilterPlaceholder:"Drag filter fields here",update:"Update",selectFieldForReport:"Choose fields to add to report:",dragFieldsBetweenAreas:"Drag fields between areas below:",valueSummaryCriteria:"Summarize Values By",roundRound:"Round",roundFloor:"Floor",roundCeil:"Ceil",roundTrunc:"Truncate",roundingMode:"Rounding mode",decimalPlaces:"Decimal places",decimalUnlimited:"No limit",showOriginalValue:"Show original value",back:"Back",parentRowPct:"% of Parent Row Group",parentColPct:"% of Parent Column Group",rankAsc:"Rank Ascending",rankDesc:"Rank Descending",index:"Index",showTotalsGrand:"Grand Totals",showTotalsSub:"Subtotals",fieldPanelSetting:"Field Settings",colSubtotalCriteria:"Column Subtotal Criteria",allowRowToggle:"Allow Row Expand/Collapse",allowColToggle:"Allow Column Expand/Collapse",outlineMode:"Outline Mode"},Gantt:{searchPlaceholder:"Search",columnSize:"Column Size",rowSize:"Row Size"},Chart:{filterPopup:"Filter",resetFilter:"Reset Filter",addFilter:"Add Filter",symbolEqual:"Equal",symbolNotEqual:"Not Equal",symbolContains:"Contains",symbolNotContains:"Not Contains",symbolLessThan:"Less Than",symbolGreaterThan:"Greater Than",symbolLessOrEqual:"Less or Equal",symbolGreaterOrEqual:"Greater or Equal",symbolEmpty:"Empty",symbolNotEmpty:"Not Empty",chartSetting:"Chart Setting",chartCategory:"Chart Category",chartType:"Chart Type",chartUseZoom:"Use Zoom",multiYAxisSetting:"Multi Y-Axis Setting",notUsed:"(Not Used)",chartPopup:"Chart Popup",errorMessage:"An error occurred while loading data.",valueFieldSetting:"Value Field Setting",valueSummaryCriteria:"Value Summary Criteria",selectFieldForReport:"Select fields to add to the report:",column:"Column",row:"Row",value:"Value",sumValue:"∑ Value",count:"Count",sum:"Sum",average:"Average",min:"Min",max:"Max",seriesCategory:"General",pieCategory:"Pie",scatterCategory:"Scatter",treemapCategory:"Treemap",boxplotCategory:"Boxplot",candlestickCategory:"Candlestick",barChart:"Bar Chart",stackBarChart:"Stack Bar Chart",horizontalStackBarChart:"Horizontal Stack Bar Chart",lineChart:"Line Chart",lineSymbolChart:"Line Chart (Symbol)",areaChart:"Area Chart",general:"General",custom:"Custom",axisCategoryLabel:"Axis (Category)",legendSeriesLabel:"Legend (Series)",legendSingleLabel:"Legend (Single)",legendMultiLabel:"Legend (Multiple)",valueSingleLabel:"Value (Single)",xAxisSingleLabel:"X-Axis (Single)",yAxisMultiLabel:"Y-Axis (Multiple)",notSet:"Not Set",legendLimitExceededTitle:"The number of chart legends has exceeded the maximum of {limit}.",legendLimitExceededContent:"Please reconfigure the legend to {limit} or fewer."},NumberInput:{increase:"Increase value",decrease:"Decrease value"},DateInput:{prevDate:"Previous date",nextDate:"Next date"},PasswordInput:{showPassword:"Show password",hidePassword:"Hide password"},Tab:{closeTab:"Close {label}"},SplitPane:{resizeHandle:"Resize panes"},BreadCrumb:{navigation:"Breadcrumb"}},Cl={Toast:{close:"关闭"},Chip:{remove:"删除"},Callout:{dismiss:"关闭"},Notification:{close:"关闭",unread:"未读"},Spinner:{label:"加载中"},CodeBlock:{label:"代码",copy:"复制{label}",copied:"已复制。",copyFailed:"无法复制。请选中代码后手动复制。"},Popup:{title:"弹窗",save:"保存",cancel:"取消",ok:"确认",close:"关闭"},Select:{searchPlaceholder:"搜索",emptyText:"暂无数据",requiredMessage:"{label} 为必填项"},MultiSelect:{search:"搜索",selectAll:"全选",selectFiltered:"选择筛选结果",specificResults:"仅结果",specificSelect:"仅选择",noData:"暂无数据",required:"{label} 为必填项",headerFormat:"项目 ({count})"},TreeSelect:{search:"搜索",selectAll:"全选",selectFiltered:"选择筛选结果",specificResults:"仅结果",noData:"暂无数据",showSelectedOnly:"仅显示已选项",expandAll:"全部展开",collapseAll:"全部收起",required:"{label} 为必填项",headerFormat:"项目 ({count})",expand:"展开",collapse:"折叠"},Controller:{filterLabel:"查询条件"},TagInput:{add:"添加",editTag:"编辑 {label}",removeTag:"删除 {label}"},TimePicker:{hour:"时",minute:"分",currentTime:"当前时间"},EmptyState:{customEmptyHeader:"暂无数据",customEmptyContent:"没有可显示的数据。",dataEmptyHeader:"暂无数据",dataEmptyContent:"请输入所需数据。",resultEmptyHeader:"无结果",resultEmptyContent:"请检查搜索条件后重试。",searchEmptyHeader:"无搜索结果",searchEmptyContent:"请检查筛选条件后重试。"},TableSelect:{searchPlaceholder:"搜索",emptyText:"暂无数据",requiredMessage:"{label} 为必填项",footerSelect:"选择",footerNavigate:"移动",footerClose:"关闭"},Common:{requiredMessage:"{label} 为必填项"},Grid:{layoutSetting:"布局设置",filter:"筛选",sort:"排序",customCellStyle:"条件格式设置",reset:"重置",searchFilter:"搜索",newView:"新建视图",selectAll:"全选",columnPicker:"列显示/隐藏设置",viewToolbar:"显示工具栏",viewFooter:"显示页脚",viewGroupPanel:"显示分组面板",resetFilterAndSort:"重置筛选和排序",defaultView:"默认视图",filterPopup:"筛选设置",resetFilter:"重置筛选",addFilter:"添加筛选",sortingPopup:"排序设置",ascending:"升序",descending:"降序",resetSort:"重置排序",addSort:"添加排序",symbolEqual:"等于",symbolNotEqual:"不等于",symbolContains:"包含",symbolNotContains:"不包含",symbolLessThan:"小于",symbolGreaterThan:"大于",symbolLessOrEqual:"小于或等于",symbolGreaterOrEqual:"大于或等于",symbolEmpty:"为空",symbolNotEmpty:"不为空",customCellRuleNamePlaceholder:"请输入规则名称",addFormulaCondition:"添加条件",applicationColumn:"应用列",backgroundColor:"背景色",fontColor:"字体颜色",resetCustomCell:"重置",addFormulaConditionSet:"添加规则",customColor:"自定义颜色",formulaConditionSet:"新建规则",contextFilterAndSort:"筛选和排序",contextAddFilter:"添加筛选",contextSelectFilter:"按选定值筛选",contextResetColumnFilter:"重置列筛选",contextResetColumnSort:"重置列排序",contextResetColumnAll:"重置列筛选/排序",contextDataCopy:"复制",contextDataExcelCopy:"Excel 复制",contextDataWithHeaderCopy:"含表头复制",contextPin:"固定列",contextColumnPicker:"列选择",contextMoveColumnFirst:"移至第一列",contextAutoSizeColumns:"自动调整列宽",contextGroupPanel:"分组面板",contextGroupToggle:"折叠/展开组",contextGroupCollapseAll:"折叠所有组",contextGroupExpandAll:"展开所有组",groupPanelPlaceholder:"将列拖放到此处以创建分组。",contextBulkEdit:"批量编辑 {name}",contextImport:"导入",contextImportExcel:"Excel 导入(覆盖)",contextImportExcelAppend:"Excel 导入(追加)",contextExport:"导出",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"合计",check:"确认",cancel:"取消",save:"保存",remove:"删除",close:"关闭",pause:"暂停",add:"添加",immediateApply:"立即应用",warning:"警告",mozWarning:"警告",confirmCancel:"确定要取消吗?",alreadyExcelProgress:"Excel 操作正在进行中。",downloadFail:"下载失败。",addDataWithFilterSort:"在筛选/排序状态下添加数据?",resetAndAdd:"重置后添加",confirmDeleteGeneral:"确定要删除 {name} 吗?",toastCopySuccess:"已复制。",toastSaveSuccess:"已保存。",toastSaveError:"保存失败。",toastResetSuccess:"已重置。",toastRequiredVal:"请输入必填值。",excelInvalidExcel:"无效的 Excel 文件。",excelInvalidUpload:"无效的上传数据。",downloadFormat:"下载格式",click:"点击",drag:"拖拽",overwriteSelected:"覆盖选定项?",fileOverwrite:"覆盖文件?",dropHere:"拖放到此处",dropHerePrefix:"",dropHereMiddle:"此处或",dropHereSuffix:"文件。",withFormatting:"包含格式",requestTimedOut:"请求超时。",serverError:"服务器发生错误。",total:"总计",correct:"正常",error:"错误",success:"成功",fail:"失败",excelExportConfirmLargeData:"确定导出大量数据?",footerTotalRowCount:"总计: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"平均",aggregateCount:"计数",aggregateMin:"最小值",aggregateMax:"最大值",aggregateSum:"合计",settings:"设置",collapseToolbar:"折叠工具栏",expandToolbar:"展开工具栏",searchPrev:"上一个结果",searchNext:"下一个结果",searchGoTo:"跳转到结果",searching:"搜索中...",deleteCondition:"删除条件",deleteSort:"删除排序",selectPlaceholder:"选择",byValueLabel:"标签",decrease:"减少",increase:"增加",selectColor:"选择颜色",noColor:"无颜色",customColorInput:"自定义输入",alignLeft:"左对齐",alignCenter:"居中对齐",alignRight:"右对齐",alignLabel:"对齐",fontStyleLabel:"字体样式",bold:"加粗",italic:"斜体",underline:"下划线",columnOptions:"列选项",showAllColumns:"全部显示",commonSection:"通用",headerLabelField:"表头标签",pinColumn:"固定",pinLeft:"左",pinNone:"无",pinRight:"右",columnWidthPx:"宽度(px)",headerSection:"表头",cellSection:"单元格",fontLabel:"文字",sizeLabel:"大小",displayMask:"显示格式(掩码)",resetThisColumn:"重置此列",selectColumnHint:"请选择列",showColumnNamed:"显示 {column}",columnTextColor:"文字颜色",cellStyleTitle:"单元格样式",formulaHelp:"公式帮助",validFormula:"有效公式",formulaHint:"选择列或输入值以创建公式。",ruleName:"规则名称",targetColumns:"应用列",allColumns:"全部列",colorLabel:"颜色",cellBgColor:"背景色",cellTextColor:"文字色",moveUp:"上移",moveDown:"下移",formulaPlaceholder:"例: [需求量] > [库存量] AND [优先级] < 3",helpColumnRef:"列引用",helpCompare:"比较",helpArithmetic:"算术",helpLogic:"逻辑",helpString:"字符串",helpNull:"NULL 检查",helpValue:"值",groupColon:"分组:",groupEmptyHint:"将列拖到此处进行分组",addGroupBtn:"+ 添加分组",ungroup:"解除",removeGroup:"移除分组",excelImportTitle:"Excel 导入",processing:"处理中…",excelPreview:"预览 {shown} 行 / 共 {total} 行+",clientImportFile:"从文件导入 (客户端)",clientExportXlsx:"XLSX (客户端)",groupExpand:"展开分组",groupCollapse:"折叠分组",fontSizeDefault:"默认",maskGroupNone:"无",maskGroupNumber:"数字",maskGroupDate:"日期",maskGroupString:"字符串",maskNoneText:"无掩码",maskNoneDesc:"按原值显示",maskThousandsText:"千位分隔 (1,234)",maskThousandsDesc:"例: 1234 → 1,234",maskDecimal2Text:"两位小数 (#,##0.00)",maskDecimal2Desc:"例: 1234.5 → 1,234.50",maskKrwText:"韩元 (₩1,234)",maskKrwDesc:"例: 1234 → ₩1,234",maskUsdText:"美元 ($1,234.00)",maskUsdDesc:"例: 1234.5 → $1,234.50",maskPercentText:"百分比 (12%)",maskPercentDesc:"例: 12 → 12%",maskDateIsoDesc:"例: 2026-05-26",maskDateKoDesc:"例: 2026-05-26",maskDatetimeDesc:"例: 2026-05-26 14:30",maskDateUsDesc:"例: 05/26/2026",maskPhoneText:"电话号码 (010-1234-5678)",maskPhoneDesc:"例: 01012345678 → 010-1234-5678",maskRrnText:"身份证号 (000000-0000000)",maskRrnDesc:"例: 9501011234567 → 950101-1234567",maskBizText:"营业执照号 (000-00-00000)",maskBizDesc:"例: 1234567890 → 123-45-67890"},GridPivot:{setting:"数据透视设置",gridSetting:"网格设置",fieldSetting:"字段设置",showRowTotals:"显示行合计",showColumnTotals:"显示列合计",subtotalCriteria:"小计基准",subtotalAggregateField:"小计汇总字段",totalsBeforeData:"在数据前显示合计",showZeros:"显示零值",showOutlineMode:"大纲模式",collapsibleSubtotal:"可折叠小计",fieldName:"字段名称",fieldAggregate:"汇总",fieldShowAs:"显示方式",fieldFormat:"格式",openChart:"打开图表",selectValueField:"选择值字段",none:"无",sum:"求和",count:"计数",average:"平均值",max:"最大值",min:"最小值",range:"范围",std:"标准差",var:"方差",stdPop:"总体标准差",varPop:"总体方差",cntAll:"全部计数",cntNumbers:"数字计数",showFirstValue:"第一个值",showLastValue:"最后一个值",noCalculation:"无计算",diffRow:"与前一行的差",diffRowPct:"与前一行的差 (%)",diffCol:"与前一列的差",diffColPct:"与前一列的差 (%)",grandtotalPct:"占总计百分比",rowTotalPct:"占行合计百分比",colTotalPct:"占列合计百分比",prevRowPct:"占前一行百分比",prevColPct:"占前一列百分比",runTot:"累计",runTotPct:"累计百分比",generalFormat:"常规",int:"整数",float:"小数",currency:"货币",percentage:"百分比 (整数)",percentageDot2:"百分比 (小数)",thousands:"千位",millions:"百万位",billions:"十亿位",subtotal:"小计",grandtotal:"总计",grandtotalValue:"总合计",category:"类别",chartType:"图表类型",chartXAxis:"X轴",chartYAxis:"Y轴",categoryName:"类别名称",barChart:"柱状图",lineChart:"折线图",lineSymbolChart:"符号折线图",areaChart:"面积图",chartRenderingErrorHeader:"图表渲染错误",chartRenderingErrorContent:"无法显示图表。",contextPivotExportXlsx:"视图导出 (xlsx)",contextPivotExportOriginXlsx:"原始数据导出 (xlsx)",contextPivotExportOriginCsv:"原始数据导出 (csv)",row:"行",column:"列",value:"值",filter:"筛选",searchFieldPlaceholder:"搜索字段...",dropZoneRowPlaceholder:"拖动行轴字段到这里",dropZoneColumnPlaceholder:"拖动列轴字段到这里",dropZoneValuePlaceholder:"拖动值字段到这里",dropZoneFilterPlaceholder:"拖动筛选字段到这里",update:"更新",selectFieldForReport:"选择要添加到报表的字段:",dragFieldsBetweenAreas:"在下面的区域之间拖动字段:",valueSummaryCriteria:"值汇总依据",roundRound:"四舍五入",roundFloor:"向下取整",roundCeil:"向上取整",roundTrunc:"截断",roundingMode:"舍入模式",decimalPlaces:"小数位数",decimalUnlimited:"无限制",showOriginalValue:"并列原始值",back:"返回",parentRowPct:"占上级行组百分比",parentColPct:"占上级列组百分比",rankAsc:"升序排名",rankDesc:"降序排名",index:"索引",showTotalsGrand:"总计",showTotalsSub:"小计",fieldPanelSetting:"字段设置",colSubtotalCriteria:"列小计基准",allowRowToggle:"允许行展开/折叠",allowColToggle:"允许列展开/折叠",outlineMode:"大纲模式"},Gantt:{searchPlaceholder:"搜索",columnSize:"列大小",rowSize:"行大小"},Chart:{filterPopup:"筛选",resetFilter:"重置筛选",addFilter:"添加筛选",symbolEqual:"等于",symbolNotEqual:"不等于",symbolContains:"包含",symbolNotContains:"不包含",symbolLessThan:"小于",symbolGreaterThan:"大于",symbolLessOrEqual:"小于等于",symbolGreaterOrEqual:"大于等于",symbolEmpty:"为空",symbolNotEmpty:"不为空",chartSetting:"图表设置",chartCategory:"图表类别",chartType:"图表类型",chartUseZoom:"使用缩放",multiYAxisSetting:"Y轴多轴设置",notUsed:"(未使用)",chartPopup:"图表弹窗",errorMessage:"加载数据时发生错误。",valueFieldSetting:"值字段设置",valueSummaryCriteria:"值汇总基准",selectFieldForReport:"选择要添加到报表的字段:",column:"列",row:"行",value:"值",sumValue:"∑ 值",count:"计数",sum:"合计",average:"平均",min:"最小值",max:"最大值",seriesCategory:"常规",pieCategory:"饼图",scatterCategory:"散点图",treemapCategory:"树状图",boxplotCategory:"箱线图",candlestickCategory:"K线图",barChart:"柱状图",stackBarChart:"堆叠柱状图",horizontalStackBarChart:"水平堆叠柱状图",lineChart:"折线图",lineSymbolChart:"折线图(符号)",areaChart:"面积图",general:"常规",custom:"自定义",axisCategoryLabel:"轴 (类别)",legendSeriesLabel:"图例 (系列)",legendSingleLabel:"图例 (单选)",legendMultiLabel:"图例 (多选)",valueSingleLabel:"值 (单选)",xAxisSingleLabel:"X轴 (单选)",yAxisMultiLabel:"Y轴 (多选)",notSet:"未指定",legendLimitExceededTitle:"图表图例数量已超过最大值 {limit} 个。",legendLimitExceededContent:"请将图例重新设置为 {limit} 个以内。"},NumberInput:{increase:"增加数值",decrease:"减少数值"},DateInput:{prevDate:"上一个日期",nextDate:"下一个日期"},PasswordInput:{showPassword:"显示密码",hidePassword:"隐藏密码"},Tab:{closeTab:"关闭 {label}"},SplitPane:{resizeHandle:"调整区域大小"},BreadCrumb:{navigation:"面包屑导航"}},$l={Toast:{close:"閉じる"},Chip:{remove:"削除"},Callout:{dismiss:"閉じる"},Notification:{close:"閉じる",unread:"未読"},Spinner:{label:"読み込み中"},CodeBlock:{label:"コード",copy:"{label}をコピー",copied:"コピーしました。",copyFailed:"コピーできませんでした。コードを選択してコピーしてください。"},Popup:{title:"ポップアップ",save:"保存",cancel:"キャンセル",ok:"OK",close:"閉じる"},Select:{searchPlaceholder:"検索",emptyText:"データがありません",requiredMessage:"{label} は必須です"},MultiSelect:{search:"検索",selectAll:"すべて選択",selectFiltered:"フィルター結果を選択",specificResults:"結果のみ",specificSelect:"選択のみ",noData:"データがありません",required:"{label} は必須です",headerFormat:"項目 ({count})"},TreeSelect:{search:"検索",selectAll:"すべて選択",selectFiltered:"フィルター結果を選択",specificResults:"結果のみ",noData:"データがありません",showSelectedOnly:"選択項目のみ表示",expandAll:"すべて展開",collapseAll:"すべて折りたたむ",required:"{label} は必須です",headerFormat:"項目 ({count})",expand:"展開",collapse:"折りたたむ"},Controller:{filterLabel:"検索条件"},TagInput:{add:"追加",editTag:"{label} を編集",removeTag:"{label} を削除"},TimePicker:{hour:"時",minute:"分",currentTime:"現在時刻"},EmptyState:{customEmptyHeader:"データなし",customEmptyContent:"表示するデータがありません。",dataEmptyHeader:"表示するデータがありません",dataEmptyContent:"必要なデータを入力してください。",resultEmptyHeader:"結果なし",resultEmptyContent:"検索条件を確認して再度お試しください。",searchEmptyHeader:"検索結果なし",searchEmptyContent:"フィルター値を確認して再度お試しください。"},TableSelect:{searchPlaceholder:"検索",emptyText:"データがありません",requiredMessage:"{label} は必須です",footerSelect:"選択",footerNavigate:"移動",footerClose:"閉じる"},Common:{requiredMessage:"{label} は必須です"},Grid:{layoutSetting:"レイアウト設定",filter:"フィルター",sort:"ソート",customCellStyle:"条件付き書式設定",reset:"リセット",searchFilter:"検索",newView:"新しいビュー",selectAll:"すべて選択",columnPicker:"列の表示/非表示設定",viewToolbar:"ツールバー表示",viewFooter:"フッター表示",viewGroupPanel:"グループパネル表示",resetFilterAndSort:"フィルター・ソートリセット",defaultView:"デフォルトビュー",filterPopup:"フィルター設定",resetFilter:"フィルターリセット",addFilter:"フィルター追加",sortingPopup:"ソート設定",ascending:"昇順",descending:"降順",resetSort:"ソートリセット",addSort:"ソート追加",symbolEqual:"等しい",symbolNotEqual:"等しくない",symbolContains:"含む",symbolNotContains:"含まない",symbolLessThan:"より小さい",symbolGreaterThan:"より大きい",symbolLessOrEqual:"以下",symbolGreaterOrEqual:"以上",symbolEmpty:"空",symbolNotEmpty:"空でない",customCellRuleNamePlaceholder:"ルール名を入力してください",addFormulaCondition:"条件追加",applicationColumn:"適用列",backgroundColor:"背景色",fontColor:"フォント色",resetCustomCell:"リセット",addFormulaConditionSet:"ルールを追加",customColor:"カスタム色",formulaConditionSet:"新しいルール",contextFilterAndSort:"フィルター・ソート",contextAddFilter:"フィルター追加",contextSelectFilter:"選択値でフィルター",contextResetColumnFilter:"列フィルターリセット",contextResetColumnSort:"列ソートリセット",contextResetColumnAll:"列フィルター/ソートリセット",contextDataCopy:"コピー",contextDataExcelCopy:"Excelコピー",contextDataWithHeaderCopy:"ヘッダー付きコピー",contextPin:"列固定",contextColumnPicker:"列選択",contextMoveColumnFirst:"最初の列に移動",contextAutoSizeColumns:"列幅自動調整",contextGroupPanel:"グループパネル",contextGroupToggle:"グループ折りたたみ/展開",contextGroupCollapseAll:"すべてのグループを折りたたむ",contextGroupExpandAll:"すべてのグループを展開",groupPanelPlaceholder:"列をドラッグ&ドロップしてグループを作成します。",contextBulkEdit:"{name} 一括編集",contextImport:"インポート",contextImportExcel:"Excelインポート(上書き)",contextImportExcelAppend:"Excelインポート(追加)",contextExport:"エクスポート",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"合計",check:"確認",cancel:"キャンセル",save:"保存",remove:"削除",close:"閉じる",pause:"一時停止",add:"追加",immediateApply:"すぐに適用",warning:"警告",mozWarning:"警告",confirmCancel:"キャンセルしますか?",alreadyExcelProgress:"Excel操作が進行中です。",downloadFail:"ダウンロードに失敗しました。",addDataWithFilterSort:"フィルター/ソート適用中にデータを追加しますか?",resetAndAdd:"リセットして追加",confirmDeleteGeneral:"{name}を削除しますか?",toastCopySuccess:"コピーしました。",toastSaveSuccess:"保存しました。",toastSaveError:"保存に失敗しました。",toastResetSuccess:"リセットしました。",toastRequiredVal:"必須値を入力してください。",excelInvalidExcel:"無効なExcelファイルです。",excelInvalidUpload:"無効なアップロードデータです。",downloadFormat:"フォーマットダウンロード",click:"クリック",drag:"ドラッグ",overwriteSelected:"選択項目を上書きしますか?",fileOverwrite:"ファイルを上書きしますか?",dropHere:"ここにドロップ",dropHerePrefix:"ここを",dropHereMiddle:"またはファイルを",dropHereSuffix:"してください。",withFormatting:"書式付き",requestTimedOut:"リクエストがタイムアウトしました。",serverError:"サーバーエラーが発生しました。",total:"合計",correct:"正常",error:"エラー",success:"成功",fail:"失敗",excelExportConfirmLargeData:"大量データをエクスポートしますか?",footerTotalRowCount:"合計: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"平均",aggregateCount:"件数",aggregateMin:"最小値",aggregateMax:"最大値",aggregateSum:"合計",settings:"設定",collapseToolbar:"ツールバーを折りたたむ",expandToolbar:"ツールバーを展開",searchPrev:"前の検索結果",searchNext:"次の検索結果",searchGoTo:"結果番号へ移動",searching:"検索中...",deleteCondition:"条件を削除",deleteSort:"ソートを削除",selectPlaceholder:"選択",byValueLabel:"ラベル",decrease:"減少",increase:"増加",selectColor:"色を選択",noColor:"色なし",customColorInput:"直接入力",alignLeft:"左揃え",alignCenter:"中央揃え",alignRight:"右揃え",alignLabel:"配置",fontStyleLabel:"文字スタイル",bold:"太字",italic:"斜体",underline:"下線",columnOptions:"列オプション",showAllColumns:"すべて表示",commonSection:"共通",headerLabelField:"ヘッダーラベル",pinColumn:"固定",pinLeft:"左",pinNone:"なし",pinRight:"右",columnWidthPx:"幅(px)",headerSection:"ヘッダー",cellSection:"セル",fontLabel:"文字",sizeLabel:"サイズ",displayMask:"表示形式(マスク)",resetThisColumn:"この列をリセット",selectColumnHint:"列を選択してください",showColumnNamed:"{column} を表示",columnTextColor:"文字色",cellStyleTitle:"セルスタイル",formulaHelp:"数式ヘルプ",validFormula:"有効な数式",formulaHint:"列を選択するか値を入力して数式を作成してください。",ruleName:"ルール名",targetColumns:"適用列",allColumns:"全列",colorLabel:"色",cellBgColor:"背景色",cellTextColor:"文字色",moveUp:"上へ",moveDown:"下へ",formulaPlaceholder:"例: [需要数] > [在庫数] AND [優先度] < 3",helpColumnRef:"列参照",helpCompare:"比較",helpArithmetic:"算術",helpLogic:"論理",helpString:"文字列",helpNull:"NULL チェック",helpValue:"値",groupColon:"グループ:",groupEmptyHint:"ここに列をドラッグしてグループ化",addGroupBtn:"+ グループ追加",ungroup:"解除",removeGroup:"グループ削除",excelImportTitle:"Excel 取り込み",processing:"処理中…",excelPreview:"プレビュー {shown}行 / 全 {total}行+",clientImportFile:"ファイルから取り込み (クライアント)",clientExportXlsx:"XLSX (クライアント)",groupExpand:"グループを展開",groupCollapse:"グループを折りたたむ",fontSizeDefault:"既定",maskGroupNone:"なし",maskGroupNumber:"数値",maskGroupDate:"日付",maskGroupString:"文字列",maskNoneText:"マスクなし",maskNoneDesc:"元の値をそのまま表示",maskThousandsText:"桁区切り (1,234)",maskThousandsDesc:"例: 1234 → 1,234",maskDecimal2Text:"小数2桁 (#,##0.00)",maskDecimal2Desc:"例: 1234.5 → 1,234.50",maskKrwText:"ウォン (₩1,234)",maskKrwDesc:"例: 1234 → ₩1,234",maskUsdText:"ドル ($1,234.00)",maskUsdDesc:"例: 1234.5 → $1,234.50",maskPercentText:"パーセント (12%)",maskPercentDesc:"例: 12 → 12%",maskDateIsoDesc:"例: 2026-05-26",maskDateKoDesc:"例: 2026-05-26",maskDatetimeDesc:"例: 2026-05-26 14:30",maskDateUsDesc:"例: 05/26/2026",maskPhoneText:"電話番号 (010-1234-5678)",maskPhoneDesc:"例: 01012345678 → 010-1234-5678",maskRrnText:"住民登録番号 (000000-0000000)",maskRrnDesc:"例: 9501011234567 → 950101-1234567",maskBizText:"事業者登録番号 (000-00-00000)",maskBizDesc:"例: 1234567890 → 123-45-67890"},GridPivot:{setting:"ピボット設定",gridSetting:"グリッド設定",fieldSetting:"フィールド設定",showRowTotals:"行合計表示",showColumnTotals:"列合計表示",subtotalCriteria:"小計基準",subtotalAggregateField:"小計集計フィールド",totalsBeforeData:"データ前に合計表示",showZeros:"ゼロ表示",showOutlineMode:"アウトラインモード",collapsibleSubtotal:"小計折りたたみ",fieldName:"フィールド名",fieldAggregate:"集計",fieldShowAs:"表示方式",fieldFormat:"形式",openChart:"チャートを開く",selectValueField:"値フィールド選択",none:"なし",sum:"合計",count:"個数",average:"平均",max:"最大値",min:"最小値",range:"範囲",std:"標準偏差",var:"分散",stdPop:"母標準偏差",varPop:"母分散",cntAll:"全個数",cntNumbers:"数値の個数",showFirstValue:"最初の値",showLastValue:"最後の値",noCalculation:"計算なし",diffRow:"前の行との差",diffRowPct:"前の行との差 (%)",diffCol:"前の列との差",diffColPct:"前の列との差 (%)",grandtotalPct:"総計に対する割合",rowTotalPct:"行合計に対する割合",colTotalPct:"列合計に対する割合",prevRowPct:"前の行に対する割合",prevColPct:"前の列に対する割合",runTot:"累計",runTotPct:"累計割合",generalFormat:"一般",int:"整数",float:"小数",currency:"通貨",percentage:"パーセント (整数)",percentageDot2:"パーセント (小数)",thousands:"千単位",millions:"百万単位",billions:"十億単位",subtotal:"小計",grandtotal:"総計",grandtotalValue:"総合計",category:"カテゴリ",chartType:"チャートタイプ",chartXAxis:"X軸",chartYAxis:"Y軸",categoryName:"カテゴリ名",barChart:"棒グラフ",lineChart:"折れ線グラフ",lineSymbolChart:"シンボル折れ線グラフ",areaChart:"エリアチャート",chartRenderingErrorHeader:"チャートレンダリングエラー",chartRenderingErrorContent:"チャートを表示できません。",contextPivotExportXlsx:"ビューエクスポート (xlsx)",contextPivotExportOriginXlsx:"元データエクスポート (xlsx)",contextPivotExportOriginCsv:"元データエクスポート (csv)",row:"行",column:"列",value:"値",filter:"フィルター",searchFieldPlaceholder:"フィールド検索...",dropZoneRowPlaceholder:"行軸フィールドをドラッグしてください",dropZoneColumnPlaceholder:"列軸フィールドをドラッグしてください",dropZoneValuePlaceholder:"値フィールドをドラッグしてください",dropZoneFilterPlaceholder:"フィルターフィールドをドラッグしてください",update:"更新",selectFieldForReport:"レポートに追加するフィールドを選択:",dragFieldsBetweenAreas:"下の領域間にフィールドをドラッグしてください:",valueSummaryCriteria:"値の集計方法",roundRound:"四捨五入",roundFloor:"切り捨て",roundCeil:"切り上げ",roundTrunc:"切り捨て(0方向)",roundingMode:"丸めモード",decimalPlaces:"小数点桁数",decimalUnlimited:"制限なし",showOriginalValue:"元の値を併記",back:"戻る",parentRowPct:"上位行グループ比 (%)",parentColPct:"上位列グループ比 (%)",rankAsc:"昇順ランク",rankDesc:"降順ランク",index:"インデックス",showTotalsGrand:"合計",showTotalsSub:"小計",fieldPanelSetting:"フィールド設定",colSubtotalCriteria:"列小計基準",allowRowToggle:"行の展開/折りたたみ許可",allowColToggle:"列の展開/折りたたみ許可",outlineMode:"アウトラインモード"},Gantt:{searchPlaceholder:"検索",columnSize:"列サイズ",rowSize:"行サイズ"},Chart:{filterPopup:"フィルター",resetFilter:"フィルターリセット",addFilter:"フィルター追加",symbolEqual:"等しい",symbolNotEqual:"等しくない",symbolContains:"含む",symbolNotContains:"含まない",symbolLessThan:"より小さい",symbolGreaterThan:"より大きい",symbolLessOrEqual:"以下",symbolGreaterOrEqual:"以上",symbolEmpty:"空",symbolNotEmpty:"空でない",chartSetting:"チャート設定",chartCategory:"チャートカテゴリ",chartType:"チャートタイプ",chartUseZoom:"ズーム使用",multiYAxisSetting:"Y軸マルチ設定",notUsed:"(使用しない)",chartPopup:"チャートポップアップ",errorMessage:"データの読み込み中にエラーが発生しました。",valueFieldSetting:"値フィールド設定",valueSummaryCriteria:"値集計基準",selectFieldForReport:"レポートに追加するフィールドを選択:",column:"列",row:"行",value:"値",sumValue:"∑ 値",count:"件数",sum:"合計",average:"平均",min:"最小値",max:"最大値",seriesCategory:"一般",pieCategory:"パイ",scatterCategory:"散布図",treemapCategory:"ツリーマップ",boxplotCategory:"ボックスプロット",candlestickCategory:"ローソク足",barChart:"棒グラフ",stackBarChart:"スタック棒グラフ",horizontalStackBarChart:"横スタック棒グラフ",lineChart:"折れ線グラフ",lineSymbolChart:"折れ線グラフ(シンボル)",areaChart:"エリアチャート",general:"一般",custom:"カスタム",axisCategoryLabel:"軸 (カテゴリ)",legendSeriesLabel:"凡例 (シリーズ)",legendSingleLabel:"凡例 (単一選択)",legendMultiLabel:"凡例 (複数選択可)",valueSingleLabel:"値 (単一選択)",xAxisSingleLabel:"X軸 (単一選択)",yAxisMultiLabel:"Y軸 (複数選択可)",notSet:"未指定",legendLimitExceededTitle:"チャートの凡例数が最大 {limit} 件を超えました。",legendLimitExceededContent:"凡例を {limit} 件以下に再設定してください。"},NumberInput:{increase:"値を増やす",decrease:"値を減らす"},DateInput:{prevDate:"前の日付",nextDate:"次の日付"},PasswordInput:{showPassword:"パスワードを表示",hidePassword:"パスワードを非表示"},Tab:{closeTab:"{label} を閉じる"},SplitPane:{resizeHandle:"領域サイズの調整"},BreadCrumb:{navigation:"パンくずリスト"}};let Sl=0;function ye(e){return(t,o,s,l)=>{const i=e.portal?new Yt:null,r=i?i.open():t,p=`h${++Sl}:`,d=new wn;if(l!=null&&l.slots)for(const[X,E]of Object.entries(l.slots))d.register(X,E);l!=null&&l.slotResolver&&d.setResolver(l.slotResolver);const b=new Set(Object.keys(o)),c=l!=null&&l.providedKeys?new Set(l.providedKeys):null,m=X=>{const E=e.defaults;if(!E)return X;const V={...X};for(const J of Object.keys(E))V[J]===void 0&&(V[J]=E[J]);return V};let u=m({...o}),k=(l==null?void 0:l.locale)??It;const x=(l==null?void 0:l.validator)??null,S=[];let L=new Map,M=new Set,f=new Map,a=null;const h={get props(){return u},emit:s,slots:d,requestUpdate:()=>O.requestUpdate(),onCleanup:X=>S.push(X),px:X=>Ae(X),get locale(){return k},validator:x,controlled:X=>c?c.has(X):b.has(X),slot(X,E){if(!d.has(X))return n.nothing;const V=f.get(X)??0;f.set(X,V+1);const J=`${X}#${V}`;return L.set(J,{name:X,scope:E}),n.html`<span data-moz-slot=${X} data-moz-slot-id=${p+J}></span>`}},$=e.setup(h);class _ extends vn{template(){return L=new Map,f=new Map,$.render()}renderNow(){super.renderNow();let E=null;if($.renderPortal){const V=$.renderPortal(),J=$.getPortalContainer?$.getPortalContainer():document.body;V===n.nothing||V==null||J==null?a&&a.isOpen&&(n.render(n.nothing,a.element),a.close()):(a||(a=new Yt),E=a.isOpen?a.element:a.open("moz-overlay-portal",J),n.render(V,E))}for(const[V,{name:J,scope:le}]of L){const N=`[data-moz-slot-id="${p+V}"]`;let ie=this.container.querySelector(N);!ie&&E&&(ie=E.querySelector(N)),ie&&d.fill(V,J,ie,le)}for(const V of M)L.has(V)||d.clear(V);M=new Set(L.keys())}flush(){this.isMounted&&this.renderNow()}onDestroy(){for(const E of S.splice(0))try{E()}catch{}d.destroy()}}const O=new _(r);O.mount();let U=!1;const Q=()=>{var X;U||!O.isMounted||(U=!0,(X=$.onMounted)==null||X.call($,r.firstElementChild))};return l!=null&&l.deferMounted||Q(),{get el(){return r.firstElementChild},update(X,E){E!=null&&E.replace?(u=m({...X}),b.clear()):u=m({...u,...X});for(const V of Object.keys(X))b.add(V);E!=null&&E.sync?O.flush():O.requestUpdate()},destroy(){O.destroy(),i==null||i.close(),a==null||a.close()},setLocale(X){X!==k&&(k=X??It,O.requestUpdate())},api:$.api??{},notifyMounted:Q}}}const kl={MozBadge:["dot"],MozBreadCrumb:["showFavorite"],MozButton:["disabled","loading","pressed"],MozCallout:["compact","dismissible","hideIcon","live"],MozCheckBox:["checked","disabled","indeterminate","modelValue","readonly"],MozChip:["disabled","labelInteractive","removable","selected"],MozCodeBlock:["copy","plain"],MozCollapsible:["disabled","forceMount","open"],MozContextMenu:["disableCloseOnClickBackdrop","noPadding","toBottomCenter","toTopCenter"],MozController:["customQueryParamsPanel","showFavorite","showFilterButton","showPreset"],MozDateInput:["disabled","readonly","required","showSpin"],MozDisclosure:["defaultOpen","disabled","marker","open"],MozEmptyState:["composed","isCustomState","isReadOnly","useImg"],MozIconButton:["disabled","loading","pressed"],MozInput:["disabled","isReadOnly","required","useInvalidV2"],MozLabel:["disabled","isReadOnly","required"],MozLink:["download"],MozMultiSelect:["autoSelectNewItems","disabled","inline","loading","preserveMissingValues","readonly","required","selectAllWhenEmpty","useFilter","useSelectAll","useSpecificSelect"],MozNotificationCard:["dismissible","inline","pauseOnHover"],MozNotificationItem:["unread"],MozNumberInput:["disabled","isReadOnly","nullable","required","shortMode","useInvalidV2"],MozPopover:["matchTriggerWidth","open","trapFocus"],MozPopup:["autoPosition","closeOnOutsideClick","disabledConfirmButton","draggable","fitViewport","focusTrap","hideOthers","keepAspectRatio","loading","lockScroll","resizeable","showBackdrop","showCloseButton","showFooterBorder","showHeader","useVShow","visible"],MozRadio:["disabled","iconOnly","required"],MozSelect:["disabled","readonly","required","useFilter","useObjBinding"],MozSlider:["disabled"],MozSplitPane:["horizontal"],MozTab:["closeAble","vertical"],MozTableSelect:["disabled","readonly","required","useFilter","useObjKeyProp"],MozTagInput:["disableDelete","disableUpdate","dynamicSearch","isExpandTop","pushOnBlur","required","simplify"],MozTextArea:["disabled","immediatelyFocus","required"],MozTimePicker:["disabled","required"],MozToast:["composed","dismissible","inline","pauseOnHover","queue","showProgress"],MozToggle:["disabled","readonly","required","visible"],MozTooltip:["arrow","open"],MozTreeSelect:["disabled","readonly","required","useFilter","useMultiSelect","useSelectAll","useSpecificSelect"]};class Ml extends mo.Directive{constructor(o){super(o);Ve(this,"prevKeys",[]);Ve(this,"listeners",new Map);if(o.type!==mo.PartType.ELEMENT)throw new Error("spread() 는 element 바인딩(`<el ${spread(obj)}>`)에서만 사용할 수 있습니다.")}render(o){return n.nothing}update(o,[s]){const l=o.element,i=s??{};for(const r of this.prevKeys)if(!(r in i))if(this.isEventKey(r)){const p=this.listeners.get(r);p&&l.removeEventListener(this.eventName(r),p),this.listeners.delete(r)}else l.removeAttribute(r);for(const[r,p]of Object.entries(i))if(!(r==="class"||r==="style"||r==="key"||r==="ref"))if(this.isEventKey(r)&&typeof p=="function"){const d=this.eventName(r),b=this.listeners.get(r);b&&l.removeEventListener(d,b),l.addEventListener(d,p),this.listeners.set(r,p)}else p==null?l.removeAttribute(r):r.startsWith("aria-")?l.setAttribute(r,String(p)):p===!1?l.removeAttribute(r):p===!0?l.setAttribute(r,""):l.setAttribute(r,String(p));return this.prevKeys=Object.keys(i),n.noChange}isEventKey(o){return o.length>2&&o.startsWith("on")&&o[2]===o[2].toUpperCase()}eventName(o){return o.slice(2).toLowerCase()}}const ce=mo.directive(Ml);function A(...e){return cl.clsx(e)}function El(){return gt.extend(hl),gt.extend(pl),gt.extend(dl),gt.extend(ul),gt.extend(ml),gt.extend(fl),gt.tz.setDefault("Asia/Seoul"),gt}const xe=El();function xl(){const e=[];return{addValidator:i=>{e.push(i)},removeValidator:i=>{const r=e.findIndex(p=>p.validate===i.validate);r>=0&&e.splice(r,1)},validate:async(i="save")=>(await Promise.all(e.map(p=>p.validate(i).then(d=>d===void 0?!0:d)))).every(p=>p),initValidator:()=>{var i;for(const r of e)(i=r==null?void 0:r.initValidator)==null||i.call(r)}}}const Ll=16;function zl(e,t){let o=0;return(...s)=>{const l=Date.now();l-o>=t&&(o=l,e(...s))}}class to{constructor(t){Ve(this,"opened",!1);Ve(this,"scrollHandler");Ve(this,"clickHandler");this.opts=t,this.scrollHandler=zl(o=>this.onScroll(o),Ll),this.clickHandler=o=>this.onOutsideClick(o)}open(){this.opened||(this.opened=!0,document.addEventListener("scroll",this.scrollHandler,{capture:!0}),this.opts.closeOnOutsideClick!==!1&&setTimeout(()=>{this.opened&&document.addEventListener("click",this.clickHandler,{capture:!0})},0),queueMicrotask(()=>this.calcPosition()))}close(){this.opened&&(this.opened=!1,document.removeEventListener("scroll",this.scrollHandler,{capture:!0}),document.removeEventListener("click",this.clickHandler,{capture:!0}))}destroy(){this.close()}calcPosition(){const t=this.opts.anchor(),o=this.opts.panel();if(!t||!o)return;const s=t.getBoundingClientRect(),l=this.opts.maxHeight?this.opts.maxHeight():250,i=window.innerHeight-s.bottom,r=s.top,p=i<l&&r>=l;let d=s.left;const b=o.clientWidth;s.left+b>document.body.clientWidth&&(d-=b-s.width);let c=`${s.width}px`,m=!1;if(this.opts.listWidth){const u=this.opts.listWidth();u&&(typeof u!="number"||u>0)&&(c=typeof u=="number"?`${u}px`:u,m=!0)}o.style.position="fixed",o.style.left=`${d}px`,this.opts.useMinWidth?(o.style.minWidth=`${s.width}px`,m&&(o.style.width=String(c))):m?o.style.width=String(c):o.style.width=`${s.width}px`,p?(o.style.bottom=`${window.innerHeight-s.top}px`,o.style.top="auto"):(o.style.top=`${s.bottom}px`,o.style.bottom="auto")}onScroll(t){const o=t.target;if(this.opts.ignoreScrollTargets&&o&&this.opts.ignoreScrollTargets(o))return;const s=this.opts.anchor();if(s){const l=s.getBoundingClientRect();if(l.bottom<0||l.top>window.innerHeight){this.opts.requestClose();return}}this.calcPosition()}onOutsideClick(t){var s,l,i,r,p;if(this.opts.closeOnOutsideClick===!1)return;const o=t.target;(i=(l=(s=this.opts).container)==null?void 0:l.call(s))!=null&&i.contains(o)||(r=this.opts.panel())!=null&&r.contains(o)||(p=this.opts.anchor())!=null&&p.contains(o)||this.opts.requestClose()}}const ht=[];let jt=!1;function yn(e){var o;if(e.key!=="Escape")return;const t=ht[ht.length-1];t&&t.kind==="moz"&&((o=t.onEscape)==null||o.call(t,e),e.stopPropagation())}function Pl(){jt||typeof window>"u"||(window.addEventListener("keydown",yn,{capture:!0}),jt=!0)}function Tl(){!jt||typeof window>"u"||(window.removeEventListener("keydown",yn,!0),jt=!1)}function Mo(e){ht.push(e),Pl();let t=!1;return{release(){if(t)return;t=!0;const o=ht.indexOf(e);o>=0&&ht.splice(o,1),ht.length===0&&Tl()},isTopmost(){return ht[ht.length-1]===e}}}function Eo(e){return Mo({kind:"moz",onEscape:e})}function Al(){return Mo({kind:"foreign"})}function oo(){return Mo({kind:"self"})}function Il(){return ht.length}function jo(){return n.html`<svg aria-hidden="true" role="status" class="moz-circle-loader"
3
+ width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
4
+ <path d="M7 0C10.866 0 14 3.13401 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0ZM7 2C4.23858 2 2 4.23858 2 7C2 9.76142 4.23858 12 7 12C9.76142 12 12 9.76142 12 7C12 4.23858 9.76142 2 7 2Z"
5
+ fill="var(--moz-color-on-accent)" fill-opacity="0.180392"></path>
6
+ <path d="M0 7C0 3.13401 3.13401 0 7 0C7.55228 0 8 0.447715 8 1C8 1.55228 7.55228 2 7 2C4.23858 2 2 4.23858 2 7C2 9.76142 4.23858 12 7 12C9.76142 12 12 9.76142 12 7C12 6.44772 12.4477 6 13 6C13.5523 6 14 6.44772 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7Z"
7
+ fill="var(--moz-color-on-accent)" fill-opacity="0.956863"></path>
8
+ </svg>`}function Xo(e){return n.html`<svg aria-hidden="true" role="status" class="moz-circle-loader"
9
+ width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
10
+ <path d="M7 0C10.866 0 14 3.13401 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0ZM7 2C4.23858 2 2 4.23858 2 7C2 9.76142 4.23858 12 7 12C9.76142 12 12 9.76142 12 7C12 4.23858 9.76142 2 7 2Z"
11
+ fill=${e} fill-opacity="0.180392"></path>
12
+ <path d="M0 7C0 3.13401 3.13401 0 7 0C7.55228 0 8 0.447715 8 1C8 1.55228 7.55228 2 7 2C4.23858 2 2 4.23858 2 7C2 9.76142 4.23858 12 7 12C9.76142 12 12 9.76142 12 7C12 6.44772 12.4477 6 13 6C13.5523 6 14 6.44772 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7Z"
13
+ fill=${e} fill-opacity="0.956863"></path>
14
+ </svg>`}function Rl(){return n.html`<svg aria-hidden="true" role="status" class="moz-circle-loader"
15
+ width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
16
+ <path d="M7 0C10.866 0 14 3.13401 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0ZM7 2C4.23858 2 2 4.23858 2 7C2 9.76142 4.23858 12 7 12C9.76142 12 12 9.76142 12 7C12 4.23858 9.76142 2 7 2Z"
17
+ fill="#fde7e7"></path>
18
+ <path d="M0 7C0 3.13401 3.13401 0 7 0C7.55228 0 8 0.447715 8 1C8 1.55228 7.55228 2 7 2C4.23858 2 2 4.23858 2 7C2 9.76142 4.23858 12 7 12C9.76142 12 12 9.76142 12 7C12 6.44772 12.4477 6 13 6C13.5523 6 14 6.44772 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7Z"
19
+ fill="var(--moz-color-danger)"></path>
20
+ </svg>`}function bn(e={}){const{circleClass:t="",progressClass:o=""}=e;return n.html`<svg
3
21
  aria-hidden="true"
4
22
  role="status"
5
23
  class="moz-circle-loader"
@@ -20,87 +38,87 @@
20
38
  fill="var(--moz-color-accent)"
21
39
  class=${o}
22
40
  ></path>
23
- </svg>`}const Go=["large","medium","small"];function Dt(e="default"){switch(e){case"contained-large":return"moz-default-button moz-action-button-large";case"contained-small":return"moz-default-button moz-action-button-small";case"text":return"moz-text-button";case"outline":return"moz-outline-button";case"outline-icon":return"moz-outline-icon-button";case"icon":return"moz-icon-button";case"icon-accent":return"moz-icon-button moz-icon-accent-button";case"no-interaction":return"moz-icon-button moz-no-interaction-button";case"default":default:return"moz-default-button"}}function _n(e){return Go.includes(e)?e:void 0}function Zo(e,t){const o=_n(t);switch(e??"default"){case"contained-large":return o??"large";case"contained-small":return o??"small";case"default":case"contained":return o;case"text":return o==="large"?void 0:o;case"outline":return o==="medium"?o:void 0;default:return}}function Yo(e,t){const o=e??"default";return Dt(o==="contained-large"||o==="contained-small"||o==="default"||o==="contained"?t==="large"?"contained-large":t==="small"?"contained-small":"default":o)}const Un=new Set(["action","text","type","nativeType","width","size","loading","disabled","class","style"]);function kt(e,t={}){const o=!!e.disabled||!!e.loading,n=t.icon!=null&&t.icon!==s.nothing,l=Zo(e.type,e.size),d=e.width==null?void 0:typeof e.width=="number"?`${Ae(e.width)}rem`:e.width,a=e.width==null?void 0:typeof e.width=="number"?`${e.width}px`:e.width,f={width:d,minWidth:d,"--moz-btn-loading-width":a,...be(e.style)},i=c=>{var r;o||(r=t.onClick)==null||r.call(t,c)};return s.html`
41
+ </svg>`}const Cn=["large","medium","small"];function Ot(e="default"){switch(e){case"contained-critical":return"moz-critical-button";case"contained-critical-weak":return"moz-critical-weak-button";case"contained-large":return"moz-default-button moz-action-button-large";case"contained-small":return"moz-default-button moz-action-button-small";case"text":return"moz-text-button";case"outline":return"moz-outline-button";case"outline-icon":return"moz-outline-icon-button";case"icon":return"moz-icon-button";case"icon-accent":return"moz-icon-button moz-icon-accent-button";case"no-interaction":return"moz-icon-button moz-no-interaction-button";case"rail":return"moz-rail-button";case"rail-home":return"moz-rail-button moz-rail-home-button";case"rail-profile":return"moz-rail-button moz-rail-profile-button";case"default":default:return"moz-default-button"}}function Dl(e){return Cn.includes(e)?e:void 0}function $n(e,t){const o=Dl(t);switch(e??"default"){case"contained-large":return o??"large";case"contained-small":return o??"small";case"default":case"contained":return o;case"text":return o==="large"?void 0:o;case"outline":case"contained-critical":case"contained-critical-weak":return o==="medium"?o:void 0;default:return}}function Sn(e,t){return e==="text"&&t==="neutral"}function kn(e,t){const o=e??"default";return Ot(o==="contained-large"||o==="contained-small"||o==="default"||o==="contained"?t==="large"?"contained-large":t==="small"?"contained-small":"default":o)}function Mn(e="default"){return e==="contained-critical-weak"?Rl():e==="contained-critical"||e==="default"||e==="contained"||e==="contained-large"||e==="contained-small"?jo():e==="rail"||e==="rail-home"?Xo("var(--moz-color-rail-button-foreground)"):e==="rail-profile"?Xo("var(--moz-color-rail-profile-foreground)"):bn({circleClass:"fill-accent-50",progressClass:"fill-accent-400"})}function En(e,t){return typeof t!="boolean"?e:{...e,"aria-pressed":t?"true":"false"}}const Vl=new Set(["action","text","type","nativeType","width","size","tone","loading","disabled","pressed","class","style"]);function Ct(e,t={}){const o=!!e.disabled||!!e.loading,s=t.icon!=null&&t.icon!==n.nothing,l=$n(e.type,e.size),i=e.width==null?void 0:typeof e.width=="number"?`${Ae(e.width)}rem`:e.width,r=e.width==null?void 0:typeof e.width=="number"?`${e.width}px`:e.width,p={width:i,minWidth:i,"--moz-btn-loading-width":r,...he(e.style)},d=b=>{var c;o||(c=t.onClick)==null||c.call(t,b)};return n.html`
24
42
  <button
25
43
  type=${e.nativeType??"button"}
26
- class=${V("moz-button",Yo(e.type,l),{loading:!!e.loading,disabled:o,"moz-icon-text-button":n},e.class)}
27
- style=${ee.styleMap(f)}
44
+ class=${A("moz-button",kn(e.type,l),{loading:!!e.loading,disabled:o,"moz-icon-text-button":s,"moz-text-neutral-button":Sn(e.type,e.tone)},e.class)}
45
+ style=${j.styleMap(p)}
28
46
  ?disabled=${o}
29
- @click=${i}
30
- ${he(t.rest??{})}
31
- data-size=${l??s.nothing}
47
+ @click=${d}
48
+ ${ce(En(t.rest??{},e.pressed))}
49
+ data-size=${l??n.nothing}
32
50
  aria-busy=${e.loading?"true":"false"}
33
51
  >
34
- ${e.loading?s.html`<span class="spinner" data-part="spinner" aria-hidden="true"
35
- >${fo({circleClass:"fill-accent-50",progressClass:"fill-accent-400"})}</span
36
- >`:s.nothing}
37
- ${t.icon??s.nothing}
38
- ${e.text||t.content!=null?s.html`<span class=${V("text",{"has-icon-text":n})} data-part="label"
39
- >${e.text??""}${t.content??s.nothing}</span
40
- >`:s.nothing}
52
+ ${e.loading?n.html`<span class="spinner" data-part="spinner" aria-hidden="true"
53
+ >${Mn(e.type)}</span
54
+ >`:n.nothing}
55
+ ${t.icon??n.nothing}
56
+ ${e.text||t.content!=null?n.html`<span class=${A("text",{"has-icon-text":s})} data-part="label"
57
+ >${e.text??""}${t.content??n.nothing}</span
58
+ >`:n.nothing}
41
59
  </button>
42
- `}const jo=$e({name:"moz-button",defaults:{type:"default",loading:!1,disabled:!1},setup(e){let t=!!e.props.loading,o=e.props.loading;const n=l=>{const d=e.props;d.disabled||t||(e.emit("click",l),d.action==="Search"&&(t=!0,d.loading||(t=!1),e.requestUpdate()))};return{api:{setLoading(l){t=l,e.requestUpdate()}},render(){const l=e.props;l.loading!==o&&(o=l.loading,t=!!l.loading);const d=e.slots.has("icon"),a=!!l.disabled||t,f=Zo(l.type,l.size),i=l.width==null?void 0:typeof l.width=="number"?`${e.px(l.width)}rem`:l.width,c=l.width==null?void 0:typeof l.width=="number"?`${l.width}px`:l.width,r={};for(const p of Object.keys(l))Un.has(p)||(r[p]=l[p]);const u={width:i,minWidth:i,"--moz-btn-loading-width":c,...be(l.style)};return s.html`
60
+ `}const xn=ye({name:"moz-button",defaults:{type:"default",loading:!1,disabled:!1},setup(e){let t=!!e.props.loading,o=e.props.loading;const s=l=>{const i=e.props;i.disabled||t||(e.emit("click",l),i.action==="Search"&&(t=!0,i.loading||(t=!1),e.requestUpdate()))};return{api:{setLoading(l){t=l,e.requestUpdate()}},render(){const l=e.props;l.loading!==o&&(o=l.loading,t=!!l.loading);const i=e.slots.has("icon"),r=!!l.disabled||t,p=$n(l.type,l.size),d=l.width==null?void 0:typeof l.width=="number"?`${e.px(l.width)}rem`:l.width,b=l.width==null?void 0:typeof l.width=="number"?`${l.width}px`:l.width,c={};for(const u of Object.keys(l))Vl.has(u)||(c[u]=l[u]);const m={width:d,minWidth:d,"--moz-btn-loading-width":b,...he(l.style)};return n.html`
43
61
  <button
44
62
  type=${l.nativeType??"button"}
45
- class=${V("moz-button",Yo(l.type,f),{loading:t,disabled:a,"moz-icon-text-button":d},l.class)}
46
- style=${ee.styleMap(u)}
47
- ?disabled=${a}
48
- @click=${n}
49
- ${he(r)}
50
- data-size=${f??s.nothing}
63
+ class=${A("moz-button",kn(l.type,p),{loading:t,disabled:r,"moz-icon-text-button":i,"moz-text-neutral-button":Sn(l.type,l.tone)},l.class)}
64
+ style=${j.styleMap(m)}
65
+ ?disabled=${r}
66
+ @click=${s}
67
+ ${ce(En(c,l.pressed))}
68
+ data-size=${p??n.nothing}
51
69
  aria-busy=${t?"true":"false"}
52
70
  >
53
- ${t?s.html`<span class="spinner" data-part="spinner" aria-hidden="true"
54
- >${fo({circleClass:"fill-accent-50",progressClass:"fill-accent-400"})}</span
55
- >`:s.nothing}
56
- ${e.slot("icon",{disabled:a})}
57
- ${l.text||e.slots.has("default")?s.html`<span class=${V("text",{"has-icon-text":d})} data-part="label"
58
- >${l.text??""}${e.slot("default",{disabled:a})}</span
59
- >`:s.nothing}
71
+ ${t?n.html`<span class="spinner" data-part="spinner" aria-hidden="true"
72
+ >${Mn(l.type)}</span
73
+ >`:n.nothing}
74
+ ${e.slot("icon",{disabled:r})}
75
+ ${l.text||e.slots.has("default")?n.html`<span class=${A("text",{"has-icon-text":i})} data-part="label"
76
+ >${l.text??""}${e.slot("default",{disabled:r})}</span
77
+ >`:n.nothing}
60
78
  </button>
61
- `}}}}),Wn={name:"MozButton",core:jo,booleanProps:["disabled","loading"],props:["action","text","type","nativeType","width","size","loading","disabled"],emits:["click"],slots:["icon","default"],expose:!0},Kn=new Set(["for","disabled","required","isReadOnly","class","style"]);function go(e,t){return V("moz-label",{disabled:!!e.disabled,"read-only":!!e.isReadOnly},t,e.class)}function Xe(e,t,o){return s.html`<label class=${go(e,o)} for=${Ee.ifDefined(e.for)}
62
- >${t}${e.required?s.html`<span class="require-mark">*</span>`:s.nothing}</label
63
- >`}const Xo=$e({name:"moz-label",setup(e){return{render(){const t=e.props,o=ye(t,Kn);return s.html`<label
64
- class=${go(t)}
65
- for=${Ee.ifDefined(t.for)}
66
- style=${ee.styleMap(be(t.style))}
67
- ${he(o)}
68
- >${e.slot("default")}${t.required?s.html`<span class="require-mark">*</span>`:s.nothing}</label
69
- >`}}}}),Gn={name:"MozLabel",core:Xo,booleanProps:["disabled","isReadOnly","required"],props:["for","disabled","required","isReadOnly"],emits:[],slots:["default"],expose:!1},Zn=new Set(["modelValue","label","labelPosition","required","readonly","disabled","visible","class","style"]);function _t(e){const t=!!e.model;return s.html`
79
+ `}}}}),Ol={name:"MozButton",core:xn,booleanProps:["disabled","loading","pressed"],props:["action","text","type","nativeType","width","size","tone","loading","disabled","pressed"],emits:["click"],slots:["icon","default"],expose:!0},_l=new Set(["for","disabled","required","isReadOnly","class","style"]);function xo(e,t){return A("moz-label",{disabled:!!e.disabled,"read-only":!!e.isReadOnly},t,e.class)}function Je(e,t,o){return n.html`<label class=${xo(e,o)} for=${$e.ifDefined(e.for)}
80
+ >${t}${e.required?n.html`<span class="require-mark">*</span>`:n.nothing}</label
81
+ >`}const Ln=ye({name:"moz-label",setup(e){return{render(){const t=e.props,o=ge(t,_l);return n.html`<label
82
+ class=${xo(t)}
83
+ for=${$e.ifDefined(t.for)}
84
+ style=${j.styleMap(he(t.style))}
85
+ ${ce(o)}
86
+ >${e.slot("default")}${t.required?n.html`<span class="require-mark">*</span>`:n.nothing}</label
87
+ >`}}}}),Bl={name:"MozLabel",core:Ln,booleanProps:["disabled","isReadOnly","required"],props:["for","disabled","required","isReadOnly"],emits:[],slots:["default"],expose:!1},ql=new Set(["modelValue","label","labelPosition","required","readonly","disabled","visible","class","style"]);function Xt(e){const t=!!e.model;return n.html`
70
88
  <div
71
89
  data-part="root"
72
- class=${V(e.class)}
73
- style=${ee.styleMap({...be(e.style),...e.visible===!1?{display:"none"}:{}})}
74
- ${he(e.rest??{})}
90
+ class=${A(e.class)}
91
+ style=${j.styleMap({...he(e.style),...e.visible===!1?{display:"none"}:{}})}
92
+ ${ce(e.rest??{})}
75
93
  >
76
94
  <div class="moz-switch">
77
- ${e.labelPosition!=="right"?Xe({for:e.id,disabled:e.disabled,required:e.required},e.label??"","label-left"):s.nothing}
78
- <div class=${V("moz-switch-box",{active:t,disabled:!!e.disabled})}>
95
+ ${e.labelPosition!=="right"?Je({for:e.id,disabled:e.disabled,required:e.required},e.label??"","label-left"):n.nothing}
96
+ <div class=${A("moz-switch-box",{active:t,disabled:!!e.disabled})}>
79
97
  <input
80
98
  id=${e.id}
81
99
  class="moz-switch-input"
82
100
  type="checkbox"
83
101
  role="switch"
84
- ${he(e.inputRest??{})}
102
+ ${ce(e.inputRest??{})}
85
103
  aria-checked=${t?"true":"false"}
86
104
  ?disabled=${!!e.disabled}
87
105
  .checked=${t}
88
106
  @change=${e.onChange}
89
107
  @click=${e.onClick}
90
108
  />
91
- <div class=${V("moz-switch-handler",{active:t,disabled:!!e.disabled})}></div>
109
+ <div class=${A("moz-switch-handler",{active:t,disabled:!!e.disabled})}></div>
92
110
  </div>
93
- ${e.labelPosition==="right"?Xe({for:e.id,disabled:e.disabled},e.label??"","label-right"):s.nothing}
111
+ ${e.labelPosition==="right"?Je({for:e.id,disabled:e.disabled},e.label??"","label-right"):n.nothing}
94
112
  </div>
95
113
  </div>
96
- `}const Qo=$e({name:"moz-toggle",defaults:{labelPosition:"left",required:!1,readonly:!1,disabled:!1,visible:!0},setup(e){const t=ot("switch_"),o=l=>{const d=e.props;(d.disabled||d.readonly)&&(l.preventDefault(),l.stopPropagation())},n=l=>{const d=e.props;if(d.disabled||d.readonly)return;const a=l.target.checked;e.emit("change",!!a)};return{render(){const l=e.props,{aria:d,dom:a}=Wt(ye(l,Zn));return _t({id:t,class:l.class,style:l.style,rest:a,inputRest:d,model:!!l.modelValue,label:l.label,labelPosition:l.labelPosition,required:l.required,disabled:l.disabled,visible:l.visible,onChange:n,onClick:o})}}}}),Yn={name:"MozToggle",core:Qo,booleanProps:["disabled","modelValue","readonly","required","visible"],props:["label","labelPosition","required","readonly","disabled","visible"],emits:["change"],models:{modelValue:{prop:"modelValue",event:"change"}},slots:[],expose:!1};function jn(e=""){return s.html`<svg class=${e} xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10" fill="none">
114
+ `}const zn=ye({name:"moz-toggle",defaults:{labelPosition:"left",required:!1,readonly:!1,disabled:!1,visible:!0},setup(e){const t=Qe("switch_"),o=l=>{const i=e.props;(i.disabled||i.readonly)&&(l.preventDefault(),l.stopPropagation())},s=l=>{const i=e.props;if(i.disabled||i.readonly)return;const r=l.target.checked;e.emit("change",!!r)};return{render(){const l=e.props,{aria:i,dom:r}=eo(ge(l,ql));return Xt({id:t,class:l.class,style:l.style,rest:r,inputRest:i,model:!!l.modelValue,label:l.label,labelPosition:l.labelPosition,required:l.required,disabled:l.disabled,visible:l.visible,onChange:s,onClick:o})}}}}),Fl={name:"MozToggle",core:zn,booleanProps:["disabled","modelValue","readonly","required","visible"],props:["label","labelPosition","required","readonly","disabled","visible"],emits:["change"],models:{modelValue:{prop:"modelValue",event:"change"}},slots:[],expose:!1};function Nl(e=""){return n.html`<svg class=${e} xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10" fill="none">
97
115
  <path
98
116
  fill-rule="evenodd"
99
117
  clip-rule="evenodd"
100
118
  d="M3.72661 8.48896C3.41073 8.18004 3.40509 7.67354 3.71401 7.35766L6.04911 4.96997L3.72108 2.64854C3.40822 2.33656 3.4075 1.83003 3.71948 1.51717C4.03145 1.2043 4.53798 1.20359 4.85085 1.51556L7.73988 4.39642C8.0506 4.70626 8.05375 5.20855 7.74695 5.52226L4.85791 8.47636C4.54899 8.79224 4.04249 8.79788 3.72661 8.48896Z"
101
119
  fill="var(--moz-color-text-subtle)"
102
120
  ></path>
103
- </svg>`}function Jo(e=""){return s.html`<svg class=${e} xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none">
121
+ </svg>`}function Pn(e=""){return n.html`<svg class=${e} xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none">
104
122
  <path
105
123
  d="M3 5.5L7.05021 9.5L11 5.5"
106
124
  stroke="var(--moz-color-breadcrumb-separator)"
@@ -108,7 +126,7 @@
108
126
  stroke-linecap="round"
109
127
  stroke-linejoin="round"
110
128
  ></path>
111
- </svg>`}function vo(e="var(--moz-color-text-subtle)",t=""){return s.html`<svg class=${t} width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
129
+ </svg>`}function Lo(e="var(--moz-color-text-subtle)",t=""){return n.html`<svg class=${t} width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
112
130
  <path
113
131
  d="M8 1.5L10.163 5.875L15 6.575L11.5 9.975L12.326 14.775L8 12.5L3.674 14.775L4.5 9.975L1 6.575L5.837 5.875L8 1.5Z"
114
132
  stroke=${e}
@@ -116,7 +134,7 @@
116
134
  stroke-linecap="round"
117
135
  stroke-linejoin="round"
118
136
  ></path>
119
- </svg>`}function wo(e="var(--moz-color-accent)",t=""){return s.html`<svg class=${t} width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
137
+ </svg>`}function zo(e="var(--moz-color-accent)",t=""){return n.html`<svg class=${t} width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
120
138
  <path
121
139
  d="M8 1.5L10.163 5.875L15 6.575L11.5 9.975L12.326 14.775L8 12.5L3.674 14.775L4.5 9.975L1 6.575L5.837 5.875L8 1.5Z"
122
140
  fill=${e}
@@ -125,63 +143,63 @@
125
143
  stroke-linecap="round"
126
144
  stroke-linejoin="round"
127
145
  ></path>
128
- </svg>`}const zo=new Set(["itemSource","items","listClass","showFavorite","modelValue","class","style"]);function bo(e){const t=e.itemSource??[],o=!!e.favorite,n=e.showFavorite?e.favoriteSlot!=null?e.favoriteSlot:s.html`<button type="button" class="favorite-icon" @click=${e.onFavClick}>
129
- ${o?wo(void 0,"favorite-filled"):vo(void 0,"empty")}
130
- </button>`:s.nothing;return s.html`
146
+ </svg>`}const Qo=new Set(["itemSource","items","listClass","showFavorite","modelValue","class","style"]);function Po(e){const t=e.itemSource??[],o=!!e.favorite,s=e.showFavorite?e.favoriteSlot!=null?e.favoriteSlot:n.html`<button type="button" class="favorite-icon" @click=${e.onFavClick}>
147
+ ${o?zo(void 0,"favorite-filled"):Lo(void 0,"empty")}
148
+ </button>`:n.nothing;return n.html`
131
149
  <div
132
150
  role="navigation"
133
151
  aria-label=${e.ariaLabel??"breadcrumb"}
134
- class=${V("moz-bread-crumb",e.class)}
135
- style=${ee.styleMap(be(e.style))}
136
- ${he(e.rest??{})}
152
+ class=${A("moz-bread-crumb",e.class)}
153
+ style=${j.styleMap(he(e.style))}
154
+ ${ce(e.rest??{})}
137
155
  >
138
156
  <div class="menu-item">
139
- ${t.map((l,d)=>t.length-1===d?s.html`<div class="current-item" aria-current="page">${l}</div>`:s.html`<div>${l}</div>${Jo("separator")}`)}
157
+ ${t.map((l,i)=>t.length-1===i?n.html`<div class="current-item" aria-current="page">${l}</div>`:n.html`<div>${l}</div>${Pn("separator")}`)}
140
158
  </div>
141
- ${n}${e.titleSlot??s.nothing}
159
+ ${s}${e.titleSlot??n.nothing}
142
160
  </div>
143
- `}const es=$e({name:"moz-bread-crumb",defaults:{showFavorite:!0,modelValue:!0,itemSource:[]},setup(e){const t=()=>e.emit("click",!!e.props.modelValue),o=n=>{const l=e.props,d=!!l.modelValue,a=l.showFavorite?e.slots.has("favorite")?e.slot("favorite"):s.html`<button type="button" class="favorite-icon" @click=${t}>
144
- ${d?wo(void 0,"favorite-filled"):vo(void 0,"empty")}
145
- </button>`:s.nothing,f=()=>s.html`<li role="presentation" aria-hidden="true" class="moz-bread-crumb-separator">
146
- ${e.slots.has("separator")?e.slot("separator"):Jo("moz-bread-crumb-separator-icon")}
147
- </li>`;return s.html`
161
+ `}const Tn=ye({name:"moz-bread-crumb",defaults:{showFavorite:!0,modelValue:!0,itemSource:[]},setup(e){const t=()=>e.emit("click",!!e.props.modelValue),o=s=>{const l=e.props,i=!!l.modelValue,r=l.showFavorite?e.slots.has("favorite")?e.slot("favorite"):n.html`<button type="button" class="favorite-icon" @click=${t}>
162
+ ${i?zo(void 0,"favorite-filled"):Lo(void 0,"empty")}
163
+ </button>`:n.nothing,p=()=>n.html`<li role="presentation" aria-hidden="true" class="moz-bread-crumb-separator">
164
+ ${e.slots.has("separator")?e.slot("separator"):Pn("moz-bread-crumb-separator-icon")}
165
+ </li>`;return n.html`
148
166
  <nav
149
167
  aria-label=${e.locale.BreadCrumb.navigation}
150
- class=${V("moz-bread-crumb","moz-bread-crumb-items",l.class)}
151
- style=${ee.styleMap(be(l.style))}
152
- ${he(ye(l,zo))}
168
+ class=${A("moz-bread-crumb","moz-bread-crumb-items",l.class)}
169
+ style=${j.styleMap(he(l.style))}
170
+ ${ce(ge(l,Qo))}
153
171
  >
154
- <ol class=${V("moz-bread-crumb-list",l.listClass)}>
155
- ${n.map((i,c)=>s.html`
156
- <li class="moz-bread-crumb-item" aria-current=${i.current?"page":s.nothing}>
157
- ${e.slot(`item-${i.key}`)}
172
+ <ol class=${A("moz-bread-crumb-list",l.listClass)}>
173
+ ${s.map((d,b)=>n.html`
174
+ <li class="moz-bread-crumb-item" aria-current=${d.current?"page":n.nothing}>
175
+ ${e.slot(`item-${d.key}`)}
158
176
  </li>
159
- ${c<n.length-1?f():s.nothing}
177
+ ${b<s.length-1?p():n.nothing}
160
178
  `)}
161
179
  </ol>
162
- ${a}${e.slot("title")}
180
+ ${r}${e.slot("title")}
163
181
  </nav>
164
- `};return{render(){const n=e.props;return n.items&&n.items.length>0?o(n.items):bo({itemSource:n.itemSource,showFavorite:n.showFavorite,favorite:!!n.modelValue,onFavClick:t,ariaLabel:e.locale.BreadCrumb.navigation,favoriteSlot:e.slots.has("favorite")?e.slot("favorite"):void 0,titleSlot:e.slot("title"),class:n.class,style:n.style,rest:ye(n,zo)})}}}}),Xn={name:"MozBreadCrumb",core:es,booleanProps:["modelValue","showFavorite"],props:["itemSource","items","listClass","showFavorite"],emits:["click"],models:{modelValue:{prop:"modelValue",event:"update:modelValue"}},slots:["favorite","title","separator"],expose:!1,syncUpdate:!0},ts={customEmptyHeader:"No data",customEmptyContent:"There is no data to display.",dataEmptyHeader:"No data to display",dataEmptyContent:"Please enter the required data.",resultEmptyHeader:"No results",resultEmptyContent:"Check the search conditions and try again.",searchEmptyHeader:"No search results",searchEmptyContent:"Please check the filter value and try again."},os=new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3crect%20x='106.5'%20y='49.5'%20width='51'%20height='28'%20rx='7.5'%20fill='%23F6F8FA'%20stroke='%238B919C'/%3e%3cellipse%20cx='90'%20cy='136'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M34.5%2066C34.5%2061.8579%2037.8579%2058.5%2042%2058.5H143C147.142%2058.5%20150.5%2061.8579%20150.5%2066V115C150.5%20119.694%20146.694%20123.5%20142%20123.5H42C37.8579%20123.5%2034.5%20120.142%2034.5%20116V66Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2328_1616)'%3e%3crect%20x='32'%20y='56'%20width='116'%20height='65'%20rx='8'%20fill='white'/%3e%3crect%20x='32.5'%20y='56.5'%20width='115'%20height='64'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='126'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='132'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='138'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='40'%20y='74'%20width='100'%20height='26'%20rx='2'%20fill='%23E4E6EB'/%3e%3crect%20x='44'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='44'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='116'%20y='104'%20width='24'%20height='9'%20rx='2'%20fill='%23868C98'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M147%2070H33V69H147V70Z'%20fill='%23D6DAE2'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2328_1616'%20x='32'%20y='56'%20width='118'%20height='67'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2328_1616'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2328_1616'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:lt&&lt.tagName.toUpperCase()==="SCRIPT"&&lt.src||new URL("index.cjs",document.baseURI).href).href,Qn=new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3cellipse%20cx='88'%20cy='141'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M32.5%2059C32.5%2054.8579%2035.8579%2051.5%2040%2051.5H141C145.142%2051.5%20148.5%2054.8579%20148.5%2059V120C148.5%20124.694%20144.694%20128.5%20140%20128.5H40C35.8579%20128.5%2032.5%20125.142%2032.5%20121V59Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2357_2211)'%3e%3crect%20x='30'%20y='49'%20width='116'%20height='77'%20rx='8'%20fill='white'/%3e%3crect%20x='30.5'%20y='49.5'%20width='115'%20height='76'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='124'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='130'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='136'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='38.5'%20y='90.5'%20width='99'%20height='27'%20rx='1.5'%20stroke='%238B919C'%20stroke-dasharray='2%202'/%3e%3crect%20x='59'%20y='71'%20width='49'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='59'%20y='77'%20width='79'%20height='6'%20fill='%23CBCFD7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M145%2063H31V62H145V63Z'%20fill='%23D6DAE2'/%3e%3cg%20clip-path='url(%23clip0_2357_2211)'%3e%3cg%20clip-path='url(%23clip1_2357_2211)'%3e%3cpath%20d='M88%2098.2857V109.714'%20stroke='%238B919C'%20stroke-width='1.8'%20stroke-linecap='round'/%3e%3cpath%20d='M82.2856%20104H93.7142'%20stroke='%238B919C'%20stroke-width='1.8'%20stroke-linecap='round'/%3e%3c/g%3e%3c/g%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M46%2084C49.866%2084%2053%2080.866%2053%2077C53%2073.134%2049.866%2070%2046%2070C42.134%2070%2039%2073.134%2039%2077C39%2080.866%2042.134%2084%2046%2084ZM45.5333%2073.8667C45.5333%2073.5353%2045.802%2073.2667%2046.1333%2073.2667H46.3333C46.6647%2073.2667%2046.9333%2073.5353%2046.9333%2073.8667V77.8C46.9333%2078.1314%2046.6647%2078.4%2046.3333%2078.4H46.1333C45.802%2078.4%2045.5333%2078.1314%2045.5333%2077.8V73.8667ZM45.5333%2079.9333C45.5333%2079.602%2045.802%2079.3333%2046.1333%2079.3333H46.3333C46.6647%2079.3333%2046.9333%2079.602%2046.9333%2079.9333V80.1333C46.9333%2080.4647%2046.6647%2080.7333%2046.3333%2080.7333H46.1333C45.802%2080.7333%2045.5333%2080.4647%2045.5333%2080.1333V79.9333Z'%20fill='%23868C98'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2357_2211'%20x='30'%20y='49'%20width='118'%20height='79'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2357_2211'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2357_2211'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_2357_2211'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(80%2096)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_2357_2211'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(80%2096)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:lt&&lt.tagName.toUpperCase()==="SCRIPT"&&lt.src||new URL("index.cjs",document.baseURI).href).href,Jn=new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3crect%20x='106.5'%20y='49.5'%20width='51'%20height='28'%20rx='7.5'%20fill='%23F6F8FA'%20stroke='%238B919C'/%3e%3cellipse%20cx='90'%20cy='136'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M34.5%2066C34.5%2061.8579%2037.8579%2058.5%2042%2058.5H143C147.142%2058.5%20150.5%2061.8579%20150.5%2066V115C150.5%20119.694%20146.694%20123.5%20142%20123.5H42C37.8579%20123.5%2034.5%20120.142%2034.5%20116V66Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2328_1616)'%3e%3crect%20x='32'%20y='56'%20width='116'%20height='65'%20rx='8'%20fill='white'/%3e%3crect%20x='32.5'%20y='56.5'%20width='115'%20height='64'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='126'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='132'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='138'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='40'%20y='74'%20width='100'%20height='26'%20rx='2'%20fill='%23E4E6EB'/%3e%3crect%20x='44'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='44'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='116'%20y='104'%20width='24'%20height='9'%20rx='2'%20fill='%23868C98'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M147%2070H33V69H147V70Z'%20fill='%23D6DAE2'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2328_1616'%20x='32'%20y='56'%20width='118'%20height='67'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2328_1616'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2328_1616'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:lt&&lt.tagName.toUpperCase()==="SCRIPT"&&lt.src||new URL("index.cjs",document.baseURI).href).href,el=new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3cellipse%20cx='88'%20cy='141'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M32.5%2059C32.5%2054.8579%2035.8579%2051.5%2040%2051.5H141C145.142%2051.5%20148.5%2054.8579%20148.5%2059V120C148.5%20124.694%20144.694%20128.5%20140%20128.5H40C35.8579%20128.5%2032.5%20125.142%2032.5%20121V59Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2357_2190)'%3e%3crect%20x='30'%20y='49'%20width='116'%20height='77'%20rx='8'%20fill='white'/%3e%3crect%20x='30.5'%20y='49.5'%20width='115'%20height='76'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='124'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='130'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='136'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='38.5'%20y='70.5'%20width='99'%20height='47'%20rx='1.5'%20stroke='%238B919C'%20stroke-dasharray='2%202'/%3e%3crect%20x='50'%20y='81'%20width='27.54'%20height='4'%20rx='2'%20fill='%23A6ABB3'/%3e%3crect%20x='50'%20y='97'%20width='27.54'%20height='4'%20rx='2'%20fill='%23A6ABB3'/%3e%3crect%20x='50'%20y='87'%20width='51'%20height='4'%20rx='2'%20fill='%23CBCFD7'/%3e%3crect%20x='50'%20y='103'%20width='51'%20height='4'%20rx='2'%20fill='%23CBCFD7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M145%2063H31V62H145V63Z'%20fill='%23D6DAE2'/%3e%3cpath%20d='M123.553%20101.582L119.095%2097.1196C117.866%2097.9205%20116.394%2098.3781%20114.808%2098.2923C111.421%2098.135%20108.521%2095.4892%20108.064%2092.1283C107.435%2087.3372%20111.564%2083.2899%20116.394%2084.1051C119.18%2084.577%20121.495%2086.7509%20122.11%2089.5111C122.581%2091.5991%20122.124%2093.5441%20121.11%2095.0887L125.582%2099.5651C126.139%20100.123%20126.139%20101.024%20125.582%20101.582C125.025%20102.139%20124.11%20102.139%20123.553%20101.582ZM119.438%2091.1558C119.438%2088.796%20117.509%2086.8653%20115.151%2086.8653C112.793%2086.8653%20110.864%2088.796%20110.864%2091.1558C110.864%2093.5155%20112.793%2095.4463%20115.151%2095.4463C117.509%2095.4463%20119.438%2093.5155%20119.438%2091.1558Z'%20fill='%23868C98'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2357_2190'%20x='30'%20y='49'%20width='118'%20height='79'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2357_2190'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2357_2190'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:lt&&lt.tagName.toUpperCase()==="SCRIPT"&&lt.src||new URL("index.cjs",document.baseURI).href).href,tl=new Set(["isReadOnly","isCustomState","headerMsg","contentMsg","filterdRowCount","totalRowCount","useImg","selectImg","messages","composed","class","style"]),ol={custom_empty:os,data_empty:Qn,result_empty:Jn,search_empty:el},sl={custom_empty:"customEmptyHeader",data_empty:"dataEmptyHeader",result_empty:"resultEmptyHeader",search_empty:"searchEmptyHeader"},nl={custom_empty:"customEmptyContent",data_empty:"dataEmptyContent",result_empty:"resultEmptyContent",search_empty:"searchEmptyContent"},ss=$e({name:"moz-empty-state",defaults:{isReadOnly:!0,isCustomState:!1,filterdRowCount:0,totalRowCount:0,useImg:!0,composed:!1},setup(e){const t=n=>{var d;return((d=e.props.messages)==null?void 0:d[n])||e.locale.EmptyState[n]||ts[n]||""},o=()=>{const n=e.props,l=n.totalRowCount??0,d=n.filterdRowCount??0;if(n.selectImg&&(l===0||d===0))switch(n.selectImg){case"Custom":return"custom_empty";case"Result":return"result_empty";case"Data":return"data_empty";case"Search":return"search_empty"}return n.isCustomState?"custom_empty":l===0?n.isReadOnly?"result_empty":"data_empty":d===0?"search_empty":""};return{render(){const n=e.props,l=ye(n,tl);if(n.composed)return s.html`
182
+ `};return{render(){const s=e.props;return s.items&&s.items.length>0?o(s.items):Po({itemSource:s.itemSource,showFavorite:s.showFavorite,favorite:!!s.modelValue,onFavClick:t,ariaLabel:e.locale.BreadCrumb.navigation,favoriteSlot:e.slots.has("favorite")?e.slot("favorite"):void 0,titleSlot:e.slot("title"),class:s.class,style:s.style,rest:ge(s,Qo)})}}}}),Hl={name:"MozBreadCrumb",core:Tn,booleanProps:["modelValue","showFavorite"],props:["itemSource","items","listClass","showFavorite"],emits:["click"],models:{modelValue:{prop:"modelValue",event:"update:modelValue"}},slots:["favorite","title","separator"],expose:!1,syncUpdate:!0},An={customEmptyHeader:"No data",customEmptyContent:"There is no data to display.",dataEmptyHeader:"No data to display",dataEmptyContent:"Please enter the required data.",resultEmptyHeader:"No results",resultEmptyContent:"Check the search conditions and try again.",searchEmptyHeader:"No search results",searchEmptyContent:"Please check the filter value and try again."},In=new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3crect%20x='106.5'%20y='49.5'%20width='51'%20height='28'%20rx='7.5'%20fill='%23F6F8FA'%20stroke='%238B919C'/%3e%3cellipse%20cx='90'%20cy='136'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M34.5%2066C34.5%2061.8579%2037.8579%2058.5%2042%2058.5H143C147.142%2058.5%20150.5%2061.8579%20150.5%2066V115C150.5%20119.694%20146.694%20123.5%20142%20123.5H42C37.8579%20123.5%2034.5%20120.142%2034.5%20116V66Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2328_1616)'%3e%3crect%20x='32'%20y='56'%20width='116'%20height='65'%20rx='8'%20fill='white'/%3e%3crect%20x='32.5'%20y='56.5'%20width='115'%20height='64'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='126'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='132'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='138'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='40'%20y='74'%20width='100'%20height='26'%20rx='2'%20fill='%23E4E6EB'/%3e%3crect%20x='44'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='44'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='116'%20y='104'%20width='24'%20height='9'%20rx='2'%20fill='%23868C98'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M147%2070H33V69H147V70Z'%20fill='%23D6DAE2'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2328_1616'%20x='32'%20y='56'%20width='118'%20height='67'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2328_1616'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2328_1616'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,Ul=new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3cellipse%20cx='88'%20cy='141'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M32.5%2059C32.5%2054.8579%2035.8579%2051.5%2040%2051.5H141C145.142%2051.5%20148.5%2054.8579%20148.5%2059V120C148.5%20124.694%20144.694%20128.5%20140%20128.5H40C35.8579%20128.5%2032.5%20125.142%2032.5%20121V59Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2357_2211)'%3e%3crect%20x='30'%20y='49'%20width='116'%20height='77'%20rx='8'%20fill='white'/%3e%3crect%20x='30.5'%20y='49.5'%20width='115'%20height='76'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='124'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='130'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='136'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='38.5'%20y='90.5'%20width='99'%20height='27'%20rx='1.5'%20stroke='%238B919C'%20stroke-dasharray='2%202'/%3e%3crect%20x='59'%20y='71'%20width='49'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='59'%20y='77'%20width='79'%20height='6'%20fill='%23CBCFD7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M145%2063H31V62H145V63Z'%20fill='%23D6DAE2'/%3e%3cg%20clip-path='url(%23clip0_2357_2211)'%3e%3cg%20clip-path='url(%23clip1_2357_2211)'%3e%3cpath%20d='M88%2098.2857V109.714'%20stroke='%238B919C'%20stroke-width='1.8'%20stroke-linecap='round'/%3e%3cpath%20d='M82.2856%20104H93.7142'%20stroke='%238B919C'%20stroke-width='1.8'%20stroke-linecap='round'/%3e%3c/g%3e%3c/g%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M46%2084C49.866%2084%2053%2080.866%2053%2077C53%2073.134%2049.866%2070%2046%2070C42.134%2070%2039%2073.134%2039%2077C39%2080.866%2042.134%2084%2046%2084ZM45.5333%2073.8667C45.5333%2073.5353%2045.802%2073.2667%2046.1333%2073.2667H46.3333C46.6647%2073.2667%2046.9333%2073.5353%2046.9333%2073.8667V77.8C46.9333%2078.1314%2046.6647%2078.4%2046.3333%2078.4H46.1333C45.802%2078.4%2045.5333%2078.1314%2045.5333%2077.8V73.8667ZM45.5333%2079.9333C45.5333%2079.602%2045.802%2079.3333%2046.1333%2079.3333H46.3333C46.6647%2079.3333%2046.9333%2079.602%2046.9333%2079.9333V80.1333C46.9333%2080.4647%2046.6647%2080.7333%2046.3333%2080.7333H46.1333C45.802%2080.7333%2045.5333%2080.4647%2045.5333%2080.1333V79.9333Z'%20fill='%23868C98'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2357_2211'%20x='30'%20y='49'%20width='118'%20height='79'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2357_2211'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2357_2211'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_2357_2211'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(80%2096)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_2357_2211'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(80%2096)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,Wl=new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3crect%20x='106.5'%20y='49.5'%20width='51'%20height='28'%20rx='7.5'%20fill='%23F6F8FA'%20stroke='%238B919C'/%3e%3cellipse%20cx='90'%20cy='136'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M34.5%2066C34.5%2061.8579%2037.8579%2058.5%2042%2058.5H143C147.142%2058.5%20150.5%2061.8579%20150.5%2066V115C150.5%20119.694%20146.694%20123.5%20142%20123.5H42C37.8579%20123.5%2034.5%20120.142%2034.5%20116V66Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2328_1616)'%3e%3crect%20x='32'%20y='56'%20width='116'%20height='65'%20rx='8'%20fill='white'/%3e%3crect%20x='32.5'%20y='56.5'%20width='115'%20height='64'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='126'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='132'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='138'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='40'%20y='74'%20width='100'%20height='26'%20rx='2'%20fill='%23E4E6EB'/%3e%3crect%20x='44'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='44'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='116'%20y='104'%20width='24'%20height='9'%20rx='2'%20fill='%23868C98'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M147%2070H33V69H147V70Z'%20fill='%23D6DAE2'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2328_1616'%20x='32'%20y='56'%20width='118'%20height='67'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2328_1616'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2328_1616'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,Kl=new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3cellipse%20cx='88'%20cy='141'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M32.5%2059C32.5%2054.8579%2035.8579%2051.5%2040%2051.5H141C145.142%2051.5%20148.5%2054.8579%20148.5%2059V120C148.5%20124.694%20144.694%20128.5%20140%20128.5H40C35.8579%20128.5%2032.5%20125.142%2032.5%20121V59Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2357_2190)'%3e%3crect%20x='30'%20y='49'%20width='116'%20height='77'%20rx='8'%20fill='white'/%3e%3crect%20x='30.5'%20y='49.5'%20width='115'%20height='76'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='124'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='130'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='136'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='38.5'%20y='70.5'%20width='99'%20height='47'%20rx='1.5'%20stroke='%238B919C'%20stroke-dasharray='2%202'/%3e%3crect%20x='50'%20y='81'%20width='27.54'%20height='4'%20rx='2'%20fill='%23A6ABB3'/%3e%3crect%20x='50'%20y='97'%20width='27.54'%20height='4'%20rx='2'%20fill='%23A6ABB3'/%3e%3crect%20x='50'%20y='87'%20width='51'%20height='4'%20rx='2'%20fill='%23CBCFD7'/%3e%3crect%20x='50'%20y='103'%20width='51'%20height='4'%20rx='2'%20fill='%23CBCFD7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M145%2063H31V62H145V63Z'%20fill='%23D6DAE2'/%3e%3cpath%20d='M123.553%20101.582L119.095%2097.1196C117.866%2097.9205%20116.394%2098.3781%20114.808%2098.2923C111.421%2098.135%20108.521%2095.4892%20108.064%2092.1283C107.435%2087.3372%20111.564%2083.2899%20116.394%2084.1051C119.18%2084.577%20121.495%2086.7509%20122.11%2089.5111C122.581%2091.5991%20122.124%2093.5441%20121.11%2095.0887L125.582%2099.5651C126.139%20100.123%20126.139%20101.024%20125.582%20101.582C125.025%20102.139%20124.11%20102.139%20123.553%20101.582ZM119.438%2091.1558C119.438%2088.796%20117.509%2086.8653%20115.151%2086.8653C112.793%2086.8653%20110.864%2088.796%20110.864%2091.1558C110.864%2093.5155%20112.793%2095.4463%20115.151%2095.4463C117.509%2095.4463%20119.438%2093.5155%20119.438%2091.1558Z'%20fill='%23868C98'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2357_2190'%20x='30'%20y='49'%20width='118'%20height='79'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2357_2190'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2357_2190'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,Zl=new Set(["isReadOnly","isCustomState","headerMsg","contentMsg","filterdRowCount","totalRowCount","useImg","selectImg","messages","composed","class","style"]),Gl={custom_empty:In,data_empty:Ul,result_empty:Wl,search_empty:Kl},Yl={custom_empty:"customEmptyHeader",data_empty:"dataEmptyHeader",result_empty:"resultEmptyHeader",search_empty:"searchEmptyHeader"},jl={custom_empty:"customEmptyContent",data_empty:"dataEmptyContent",result_empty:"resultEmptyContent",search_empty:"searchEmptyContent"},Rn=ye({name:"moz-empty-state",defaults:{isReadOnly:!0,isCustomState:!1,filterdRowCount:0,totalRowCount:0,useImg:!0,composed:!1},setup(e){const t=s=>{var i;return((i=e.props.messages)==null?void 0:i[s])||e.locale.EmptyState[s]||An[s]||""},o=()=>{const s=e.props,l=s.totalRowCount??0,i=s.filterdRowCount??0;if(s.selectImg&&(l===0||i===0))switch(s.selectImg){case"Custom":return"custom_empty";case"Result":return"result_empty";case"Data":return"data_empty";case"Search":return"search_empty"}return s.isCustomState?"custom_empty":l===0?s.isReadOnly?"result_empty":"data_empty":i===0?"search_empty":""};return{render(){const s=e.props,l=ge(s,Zl);if(s.composed)return n.html`
165
183
  <div
166
- class=${V("empty-container","empty-composed","moz-empty-state",n.class)}
167
- style=${ee.styleMap(be(n.style))}
168
- ${he(l)}
184
+ class=${A("empty-container","empty-composed","moz-empty-state",s.class)}
185
+ style=${j.styleMap(he(s.style))}
186
+ ${ce(l)}
169
187
  >
170
- ${e.slots.has("icon")?s.html`<div class="empty-icon">${e.slot("icon")}</div>`:s.nothing}
171
- ${e.slots.has("heading")?s.html`<div class="empty-heading-slot">${e.slot("heading")}</div>`:s.nothing}
172
- ${e.slots.has("description")?s.html`<div class="empty-description">${e.slot("description")}</div>`:s.nothing}
173
- ${e.slots.has("actions")?s.html`<div class="empty-actions">${e.slot("actions")}</div>`:s.nothing}
174
- ${e.slots.has("customState")?s.html`<div class="empty-content">${e.slot("customState")}</div>`:s.nothing}
188
+ ${e.slots.has("icon")?n.html`<div class="empty-icon">${e.slot("icon")}</div>`:n.nothing}
189
+ ${e.slots.has("heading")?n.html`<div class="empty-heading-slot">${e.slot("heading")}</div>`:n.nothing}
190
+ ${e.slots.has("description")?n.html`<div class="empty-description">${e.slot("description")}</div>`:n.nothing}
191
+ ${e.slots.has("actions")?n.html`<div class="empty-actions">${e.slot("actions")}</div>`:n.nothing}
192
+ ${e.slots.has("customState")?n.html`<div class="empty-content">${e.slot("customState")}</div>`:n.nothing}
175
193
  </div>
176
- `;const d=o();if(!d)return s.nothing;const a=ol[d]||os,f=typeof n.headerMsg=="string"?n.headerMsg:t(sl[d]||"customEmptyHeader"),i=typeof n.contentMsg=="string"?n.contentMsg:t(nl[d]||"customEmptyContent"),c=e.slots.has("icon")?s.html`<div class="empty-icon">${e.slot("icon")}</div>`:n.useImg?s.html`<img src=${a} alt="Empty state" class="empty-img" />`:s.nothing;return s.html`
177
- <div class=${V("empty-container","moz-empty-state",n.class)} style=${ee.styleMap(be(n.style))} ${he(l)}>
178
- ${c}
179
- <div class="empty-heading">${f}</div>
180
- <div class="empty-content"><span>${_o.unsafeHTML(i)}</span></div>
194
+ `;const i=o();if(!i)return n.nothing;const r=Gl[i]||In,p=typeof s.headerMsg=="string"?s.headerMsg:t(Yl[i]||"customEmptyHeader"),d=typeof s.contentMsg=="string"?s.contentMsg:t(jl[i]||"customEmptyContent"),b=e.slots.has("icon")?n.html`<div class="empty-icon">${e.slot("icon")}</div>`:s.useImg?n.html`<img src=${r} alt="Empty state" class="empty-img" />`:n.nothing;return n.html`
195
+ <div class=${A("empty-container","moz-empty-state",s.class)} style=${j.styleMap(he(s.style))} ${ce(l)}>
196
+ ${b}
197
+ <div class="empty-heading">${p}</div>
198
+ <div class="empty-content"><span>${gn.unsafeHTML(d)}</span></div>
181
199
  <div class="empty-content">${e.slot("customState")}</div>
182
- ${e.slots.has("actions")?s.html`<div class="empty-actions">${e.slot("actions")}</div>`:s.nothing}
200
+ ${e.slots.has("actions")?n.html`<div class="empty-actions">${e.slot("actions")}</div>`:n.nothing}
183
201
  </div>
184
- `}}}}),ll={name:"MozEmptyState",core:ss,booleanProps:["composed","isCustomState","isReadOnly","useImg"],props:["isReadOnly","isCustomState","headerMsg","contentMsg","filterdRowCount","totalRowCount","useImg","selectImg","messages","composed"],emits:[],slots:["customState","icon","heading","description","actions"],expose:!1};function Co(e="var(--moz-color-border-marker)",t=!1,o=""){return s.html`<svg class=${o} data-icon="unchecked" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
202
+ `}}}}),Xl={name:"MozEmptyState",core:Rn,booleanProps:["composed","isCustomState","isReadOnly","useImg"],props:["isReadOnly","isCustomState","headerMsg","contentMsg","filterdRowCount","totalRowCount","useImg","selectImg","messages","composed"],emits:[],slots:["customState","icon","heading","description","actions"],expose:!1};function To(e="var(--moz-color-border-marker)",t=!1,o=""){return n.html`<svg class=${o} data-icon="unchecked" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
185
203
  <path data-part="marker-surface"
186
204
  d="M4 0H10A4 4 0 0 1 14 4V10A4 4 0 0 1 10 14H4A4 4 0 0 1 0 10V4A4 4 0 0 1 4 0Z"
187
205
  fill=${t?"var(--moz-color-disabled)":"var(--moz-color-surface)"}
@@ -190,7 +208,7 @@
190
208
  d="M4 .5H10A3.5 3.5 0 0 1 13.5 4V10A3.5 3.5 0 0 1 10 13.5H4A3.5 3.5 0 0 1 .5 10V4A3.5 3.5 0 0 1 4 .5Z"
191
209
  stroke=${t?"var(--moz-color-text-muted)":e}
192
210
  ></path>
193
- </svg>`}function yo(e="var(--moz-color-accent)",t=!1,o=""){return s.html`<svg class=${o} data-icon="checked" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
211
+ </svg>`}function Ao(e="var(--moz-color-accent)",t=!1,o=""){return n.html`<svg class=${o} data-icon="checked" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
194
212
  <path data-part="marker-surface"
195
213
  d="M4 0H10A4 4 0 0 1 14 4V10A4 4 0 0 1 10 14H4A4 4 0 0 1 0 10V4A4 4 0 0 1 4 0Z"
196
214
  fill=${t?"var(--moz-color-text-muted)":e}
@@ -199,156 +217,156 @@
199
217
  <path data-part="marker-glyph" d="M2.5 6L4.74733 8.14031C4.95328 8.33646 5.28115 8.32154 5.46844 8.10749L9.5 3.5"
200
218
  stroke="var(--moz-color-on-accent)" stroke-width="1.4" stroke-linecap="round"></path>
201
219
  </svg>
202
- </svg>`}function $o(e="var(--moz-color-accent)",t=!1,o=""){return s.html`<svg class=${o} data-icon="indeterminate" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
220
+ </svg>`}function Io(e="var(--moz-color-accent)",t=!1,o=""){return n.html`<svg class=${o} data-icon="indeterminate" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
203
221
  <rect data-part="marker-surface" width="14" height="14" rx="4" fill=${t?"var(--moz-color-text-muted)":e}></rect>
204
222
  <path data-part="marker-glyph" d="M3.5 7H10.5" stroke="var(--moz-color-on-accent)" stroke-width="1.4" stroke-linecap="round"></path>
205
- </svg>`}const il=new Set(["label","fieldId","disabled","readonly","checked","indeterminate","modelValue","class","style"]);function qt(e={}){const t=!!e.checked,o=!!e.disabled,n=!!e.indeterminate,l=()=>{var d;o||(d=e.onChange)==null||d.call(e,!t)};return s.html`
223
+ </svg>`}const Ql=new Set(["label","fieldId","disabled","readonly","checked","indeterminate","modelValue","class","style"]);function Wt(e={}){const t=!!e.checked,o=!!e.disabled,s=!!e.indeterminate,l=()=>{var i;o||(i=e.onChange)==null||i.call(e,!t)};return n.html`
206
224
  <div
207
- class=${V("moz-checkbox",{"cursor-pointer":!o,"cursor-not-allowed":o,disabled:o},e.class)}
208
- @click=${d=>{o||(d.preventDefault(),d.stopPropagation(),l())}}
225
+ class=${A("moz-checkbox",{"cursor-pointer":!o,"cursor-not-allowed":o,disabled:o},e.class)}
226
+ @click=${i=>{o||(i.preventDefault(),i.stopPropagation(),l())}}
209
227
  >
210
228
  <div class="checkbox-icon-wrapper">
211
229
  <input
212
230
  type="checkbox"
213
- class=${V("checkbox-input",{"cursor-pointer":!o,"cursor-not-allowed":o})}
231
+ class=${A("checkbox-input",{"cursor-pointer":!o,"cursor-not-allowed":o})}
214
232
  .checked=${t}
215
- .indeterminate=${n}
233
+ .indeterminate=${s}
216
234
  ?disabled=${o}
217
235
  tabindex=${o?-1:0}
218
- @click=${d=>d.stopPropagation()}
219
- @change=${d=>{d.target.checked=t,d.target.indeterminate=n,l()}}
236
+ @click=${i=>i.stopPropagation()}
237
+ @change=${i=>{i.target.checked=t,i.target.indeterminate=s,l()}}
220
238
  />
221
239
  <div class="checkbox-visual">
222
- ${n?$o(void 0,o,"checked-icon"):t?yo(void 0,o,"checked-icon"):Co(void 0,o,"check-icon")}
240
+ ${s?Io(void 0,o,"checked-icon"):t?Ao(void 0,o,"checked-icon"):To(void 0,o,"check-icon")}
223
241
  </div>
224
242
  </div>
225
243
  </div>
226
- `}const ns=$e({name:"moz-checkbox",defaults:{disabled:!1,readonly:!1,indeterminate:!1,modelValue:!1},setup(e){const t=Mt();let o=!1;const n=()=>{const u=e.props;return e.controlled("checked")?u.checked??!1:u.modelValue??!1},l=()=>{const u=!n();e.controlled("checked")||e.emit("update:modelValue",u),e.emit("change",u)},d=u=>{var y;const p=e.props;p.disabled||p.readonly||(u.preventDefault(),u.stopPropagation(),l(),(y=u.currentTarget.querySelector("input"))==null||y.focus())},a=u=>u.stopPropagation(),f=u=>{const p=e.props,y=u.target;if(y.indeterminate=!!p.indeterminate,p.readonly){y.checked=n();return}const L=y.checked;e.controlled("checked")?(y.checked=n(),e.emit("change",L)):(e.emit("update:modelValue",L),e.emit("change",L))},i=u=>{const p=e.props;p.disabled||p.readonly||(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),l())},c=()=>{o=!0,e.requestUpdate()},r=()=>{o=!1,e.requestUpdate()};return{render(){const u=e.props,p=u.fieldId||t,y=n(),L=ye(u,il);return s.html`
244
+ `}const Dn=ye({name:"moz-checkbox",defaults:{disabled:!1,readonly:!1,indeterminate:!1,modelValue:!1},setup(e){const t=Rt();let o=!1;const s=()=>{const m=e.props;return e.controlled("checked")?m.checked??!1:m.modelValue??!1},l=()=>{const m=!s();e.controlled("checked")||e.emit("update:modelValue",m),e.emit("change",m)},i=m=>{var k;const u=e.props;u.disabled||u.readonly||(m.preventDefault(),m.stopPropagation(),l(),(k=m.currentTarget.querySelector("input"))==null||k.focus())},r=m=>m.stopPropagation(),p=m=>{const u=e.props,k=m.target;if(k.indeterminate=!!u.indeterminate,u.readonly){k.checked=s();return}const x=k.checked;e.controlled("checked")?(k.checked=s(),e.emit("change",x)):(e.emit("update:modelValue",x),e.emit("change",x))},d=m=>{const u=e.props;u.disabled||u.readonly||(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),l())},b=()=>{o=!0,e.requestUpdate()},c=()=>{o=!1,e.requestUpdate()};return{render(){const m=e.props,u=m.fieldId||t,k=s(),x=ge(m,Ql);return n.html`
227
245
  <div
228
- class=${V("moz-checkbox",{"cursor-pointer":!u.disabled&&!u.readonly,"cursor-not-allowed":u.disabled,disabled:u.disabled,"cursor-default":u.readonly&&!u.disabled},u.class)}
229
- style=${ee.styleMap(be(u.style))}
230
- @click=${d}
246
+ class=${A("moz-checkbox moz-checkbox-control",{"cursor-pointer":!m.disabled&&!m.readonly,"cursor-not-allowed":m.disabled,disabled:m.disabled,"cursor-default":m.readonly&&!m.disabled},m.class)}
247
+ style=${j.styleMap(he(m.style))}
248
+ @click=${i}
231
249
  >
232
250
  <div class="checkbox-icon-wrapper">
233
251
  <input
234
- id=${p}
252
+ id=${u}
235
253
  type="checkbox"
236
- class=${V("checkbox-input",{"cursor-pointer":!u.disabled&&!u.readonly,"cursor-not-allowed":u.disabled,"cursor-default":u.readonly&&!u.disabled})}
237
- ${he(L)}
238
- .checked=${y}
239
- .indeterminate=${!!u.indeterminate}
240
- ?disabled=${!!u.disabled}
241
- tabindex=${u.disabled?-1:0}
242
- @click=${a}
243
- @change=${f}
244
- @focus=${c}
245
- @blur=${r}
246
- @keydown=${i}
254
+ class=${A("checkbox-input",{"cursor-pointer":!m.disabled&&!m.readonly,"cursor-not-allowed":m.disabled,"cursor-default":m.readonly&&!m.disabled})}
255
+ ${ce(x)}
256
+ .checked=${k}
257
+ .indeterminate=${!!m.indeterminate}
258
+ ?disabled=${!!m.disabled}
259
+ tabindex=${m.disabled?-1:0}
260
+ @click=${r}
261
+ @change=${p}
262
+ @focus=${b}
263
+ @blur=${c}
264
+ @keydown=${d}
247
265
  />
248
- <div class=${V("checkbox-visual",{focused:o})}>
249
- ${u.indeterminate?$o(void 0,!!u.disabled,"checked-icon"):y?yo(void 0,!!u.disabled,"checked-icon"):Co(void 0,!!u.disabled,"check-icon")}
266
+ <div class=${A("checkbox-visual",{focused:o})}>
267
+ ${m.indeterminate?Io(void 0,!!m.disabled,"checked-icon"):k?Ao(void 0,!!m.disabled,"checked-icon"):To(void 0,!!m.disabled,"check-icon")}
250
268
  </div>
251
269
  </div>
252
- ${u.label?Xe({for:p,disabled:u.disabled},u.label,"moz-checkbox-label"):s.nothing}
270
+ ${m.label?Je({for:u,disabled:m.disabled},m.label,"moz-checkbox-label"):n.nothing}
253
271
  </div>
254
- `}}}}),rl={name:"MozCheckBox",core:ns,booleanProps:["checked","disabled","indeterminate","modelValue","readonly"],props:["label","fieldId","disabled","readonly","checked","indeterminate","modelValue"],emits:["change","update:modelValue"],slots:[],expose:!1},ls=["accent","neutral","info","success","warning","danger"],al=new Set(["label","text","disabled","required","displayExpr","valueExpr","tooltipExpr","disabledExpr","toneExpr","itemsSource","value","name","direction","variant","size","iconOnly","labelPosition","modelValue","class","style"]),is=$e({name:"moz-radio",defaults:{label:"",text:"",disabled:!1,required:!1,displayExpr:"label",valueExpr:"value",tooltipExpr:"tooltip",disabledExpr:"disabled",toneExpr:"tone",itemsSource:[],direction:"horizontal",variant:"boxed",size:"md",iconOnly:!1,labelPosition:"top"},setup(e){const t=ot("radio_"),o=i=>i.key===" "||i.key==="Enter"||i.key==="Spacebar"||i.key==="Space"||i.code==="Space"||i.code==="Enter"||i.keyCode===32||i.keyCode===13,n=i=>typeof requestAnimationFrame=="function"?requestAnimationFrame(i):setTimeout(i,16),l=i=>{const c=i[e.props.toneExpr??"tone"];return typeof c=="string"&&ls.includes(c)?c:void 0},d=i=>{const c=e.props;return!!c.disabled||i[c.disabledExpr??"disabled"]===!0},a=(i,c)=>{const r=e.props,u=r.itemsSource??[];return V("label-container",{boxed:r.variant==="boxed","first-h":r.variant==="boxed"&&r.direction==="horizontal"&&i===0,"last-h":r.variant==="boxed"&&r.direction==="horizontal"&&i===u.length-1,"first-v":r.variant==="boxed"&&r.direction==="vertical"&&i===0,"last-v":r.variant==="boxed"&&r.direction==="vertical"&&i===u.length-1,disabled:c})},f=i=>{const c=e.props;return c.variant!=="boxed"||i===0?{}:c.direction==="horizontal"?{marginInlineStart:"-1px"}:{marginBlockStart:"-1px"}};return{render(){const i=e.props,c=i.itemsSource??[],r=i.valueExpr??"value",u=i.displayExpr??"label",p=!!i.disabled,y=i.modelValue,L=i.value!==void 0&&c.length===0,D=!L&&i.variant==="segment",P=ye(i,al),E=()=>s.html`
272
+ `}}}}),Jl={name:"MozCheckBox",core:Dn,booleanProps:["checked","disabled","indeterminate","modelValue","readonly"],props:["label","fieldId","disabled","readonly","checked","indeterminate","modelValue"],emits:["change","update:modelValue"],slots:[],expose:!1},Vn=["accent","neutral","info","success","warning","danger"],ei=new Set(["label","text","disabled","required","displayExpr","valueExpr","tooltipExpr","disabledExpr","toneExpr","itemsSource","value","name","direction","variant","size","widthMode","iconOnly","labelPosition","modelValue","class","style"]),On=ye({name:"moz-radio",defaults:{label:"",text:"",disabled:!1,required:!1,displayExpr:"label",valueExpr:"value",tooltipExpr:"tooltip",disabledExpr:"disabled",toneExpr:"tone",itemsSource:[],direction:"horizontal",variant:"boxed",size:"md",widthMode:"hug",iconOnly:!1,labelPosition:"top"},setup(e){const t=Qe("radio_"),o=d=>d.key===" "||d.key==="Enter"||d.key==="Spacebar"||d.key==="Space"||d.code==="Space"||d.code==="Enter"||d.keyCode===32||d.keyCode===13,s=d=>typeof requestAnimationFrame=="function"?requestAnimationFrame(d):setTimeout(d,16),l=d=>{const b=d[e.props.toneExpr??"tone"];return typeof b=="string"&&Vn.includes(b)?b:void 0},i=d=>{const b=e.props;return!!b.disabled||d[b.disabledExpr??"disabled"]===!0},r=(d,b)=>{const c=e.props,m=c.itemsSource??[];return A("label-container",{boxed:c.variant==="boxed","first-h":c.variant==="boxed"&&c.direction==="horizontal"&&d===0,"last-h":c.variant==="boxed"&&c.direction==="horizontal"&&d===m.length-1,"first-v":c.variant==="boxed"&&c.direction==="vertical"&&d===0,"last-v":c.variant==="boxed"&&c.direction==="vertical"&&d===m.length-1,disabled:b})},p=d=>{const b=e.props;return b.variant!=="boxed"||d===0?{}:b.direction==="horizontal"?{marginInlineStart:"-1px"}:{marginBlockStart:"-1px"}};return{render(){const d=e.props,b=d.itemsSource??[],c=d.valueExpr??"value",m=d.displayExpr??"label",u=!!d.disabled,k=d.modelValue,x=d.value!==void 0&&b.length===0,S=!x&&d.variant==="segment",L=ge(d,ei),M=()=>n.html`
255
273
  <div class="radio-container">
256
274
  <div class="radio">
257
- <label for=${t} class=${V("label-container",{disabled:p})}>
275
+ <label for=${t} class=${A("label-container",{disabled:u})}>
258
276
  <div class="radio-icon-wrapper">
259
277
  <input
260
278
  type="radio"
261
- name=${i.name||t}
279
+ name=${d.name||t}
262
280
  id=${t}
263
- .checked=${String(y)===String(i.value)}
264
- ?disabled=${p}
281
+ .checked=${String(k)===String(d.value)}
282
+ ?disabled=${u}
265
283
  class="radio-input"
266
- @keydown=${Z=>{o(Z)&&!p&&e.emit("update:modelValue",String(i.value))}}
267
- @change=${()=>{p||e.emit("update:modelValue",String(i.value))}}
284
+ @keydown=${_=>{o(_)&&!u&&e.emit("update:modelValue",String(d.value))}}
285
+ @change=${()=>{u||e.emit("update:modelValue",String(d.value))}}
268
286
  />
269
287
  <span
270
- class=${V("dot",{active:String(y)===String(i.value),disabled:p,"borderless-focus":!p})}
288
+ class=${A("dot",{active:String(k)===String(d.value),disabled:u,"borderless-focus":!u})}
271
289
  ></span>
272
290
  </div>
273
- ${i.text?s.html`<span class="radio-label-text">${i.text}</span>`:s.nothing}
291
+ ${d.text?n.html`<span class="radio-label-text">${d.text}</span>`:n.nothing}
274
292
  </label>
275
293
  </div>
276
294
  </div>
277
- `,g=()=>{const Z=N=>String(y)===String(N[r]??""),W=c.length,Q=c.findIndex(Z),re=(N,X)=>{for(let M=1;M<=W;M+=1){const U=(N+X*M+W*W)%W;if(!d(c[U]))return U}return-1},ae=N=>{for(let X=0;X<W;X+=1){const M=N===1?X:W-1-X;if(!d(c[M]))return M}return-1},j=Q>=0&&!d(c[Q])?Q:ae(1),$=N=>Array.from(N.querySelectorAll('[role="radio"]')),I=(N,X)=>{if(X<0)return;N.preventDefault(),N.stopPropagation();const M=N.currentTarget,U=$(M)[X];U==null||U.focus(),e.emit("update:modelValue",c[X][r]??"");let _=0;const G=()=>{const J=$(M)[X];if(J&&J.getAttribute("aria-checked")==="true"){document.activeElement!==J&&J.focus();return}++_<20&&n(G)};n(G)},Y=N=>{var G,J;if(p||W===0)return;const X=N.currentTarget,M=(J=(G=N.target)==null?void 0:G.closest)==null?void 0:J.call(G,'[role="radio"]'),U=M?$(X).indexOf(M):-1,_=U>=0?U:Q>=0?Q:0;switch(N.key){case"ArrowRight":case"ArrowDown":I(N,re(_,1));break;case"ArrowLeft":case"ArrowUp":I(N,re(_,-1));break;case"Home":I(N,ae(1));break;case"End":I(N,ae(-1));break}},ne=!!i.iconOnly,B=e.slots.has("item-icon"),se=!ne&&e.slots.has("item-badge");return s.html`
295
+ `,f=()=>{const _=F=>String(k)===String(F[c]??""),O=b.length,U=b.findIndex(_),Q=(F,oe)=>{for(let T=1;T<=O;T+=1){const W=(F+oe*T+O*O)%O;if(!i(b[W]))return W}return-1},re=F=>{for(let oe=0;oe<O;oe+=1){const T=F===1?oe:O-1-oe;if(!i(b[T]))return T}return-1},X=U>=0&&!i(b[U])?U:re(1),E=F=>Array.from(F.querySelectorAll('[role="radio"]')),V=(F,oe)=>{if(oe<0)return;F.preventDefault(),F.stopPropagation();const T=F.currentTarget,W=E(T)[oe];W==null||W.focus(),e.emit("update:modelValue",b[oe][c]??"");let K=0;const ee=()=>{const te=E(T)[oe];if(te&&te.getAttribute("aria-checked")==="true"){document.activeElement!==te&&te.focus();return}++K<20&&s(ee)};s(ee)},J=F=>{var ee,te;if(u||O===0)return;const oe=F.currentTarget,T=(te=(ee=F.target)==null?void 0:ee.closest)==null?void 0:te.call(ee,'[role="radio"]'),W=T?E(oe).indexOf(T):-1,K=W>=0?W:U>=0?U:0;switch(F.key){case"ArrowRight":case"ArrowDown":V(F,Q(K,1));break;case"ArrowLeft":case"ArrowUp":V(F,Q(K,-1));break;case"Home":V(F,re(1));break;case"End":V(F,re(-1));break}},le=!!d.iconOnly,N=e.slots.has("item-icon"),ie=!le&&e.slots.has("item-badge");return n.html`
278
296
  <div
279
- class=${V("radio-container",{segment:!0,"disabled-container":p,"size-sm":i.size==="sm","size-md":i.size!=="sm","icon-only":ne})}
280
- @keydown=${Y}
281
- @click=${N=>N.stopPropagation()}
297
+ class=${A("radio-container",{segment:!0,"disabled-container":u,"size-sm":d.size==="sm","size-md":d.size!=="sm","icon-only":le})}
298
+ @keydown=${J}
299
+ @click=${F=>F.stopPropagation()}
282
300
  >
283
- ${c.map((N,X)=>{const M=Z(N),U=d(N),_=String(N[u]??""),G=_||String(N[r]??""),J={item:N,index:X,active:M,disabled:U};return s.html`
301
+ ${b.map((F,oe)=>{const T=_(F),W=i(F),K=String(F[m]??""),ee=K||String(F[c]??""),te={item:F,index:oe,active:T,disabled:W};return n.html`
284
302
  <button
285
303
  type="button"
286
304
  role="radio"
287
- aria-checked=${M?"true":"false"}
288
- aria-label=${ne?G:s.nothing}
289
- data-value=${String(N[r]??"")}
290
- data-tone=${l(N)??s.nothing}
291
- tabindex=${X===j?"0":"-1"}
292
- ?disabled=${U}
293
- class=${V("segment-button",{"is-active":M,disabled:U})}
294
- @click=${()=>{U||e.emit("update:modelValue",N[r]??"")}}
305
+ aria-checked=${T?"true":"false"}
306
+ aria-label=${le?ee:n.nothing}
307
+ data-value=${String(F[c]??"")}
308
+ data-tone=${l(F)??n.nothing}
309
+ tabindex=${oe===X?"0":"-1"}
310
+ ?disabled=${W}
311
+ class=${A("segment-button",{"is-active":T,disabled:W})}
312
+ @click=${()=>{W||e.emit("update:modelValue",F[c]??"")}}
295
313
  >
296
- ${B?s.html`<span class="segment-icon">${e.slot("item-icon",J)}</span>`:s.nothing}
297
- ${ne?s.nothing:_}
298
- ${se?s.html`<span class="segment-badge">${e.slot("item-badge",J)}</span>`:s.nothing}
314
+ ${N?n.html`<span class="segment-icon">${e.slot("item-icon",te)}</span>`:n.nothing}
315
+ ${le?n.nothing:K}
316
+ ${ie?n.html`<span class="segment-badge">${e.slot("item-badge",te)}</span>`:n.nothing}
299
317
  </button>
300
318
  `})}
301
319
  </div>
302
- `},h=()=>s.html`
320
+ `},a=()=>n.html`
303
321
  <div
304
- class=${V("radio-container",{"disabled-container":p,borderless:i.variant==="borderless",vertical:i.direction==="vertical"})}
322
+ class=${A("radio-container",{"disabled-container":u,borderless:d.variant==="borderless",vertical:d.direction==="vertical"})}
305
323
  >
306
- ${c.map((Z,W)=>{const Q=d(Z);return s.html`
324
+ ${b.map((_,O)=>{const U=i(_);return n.html`
307
325
  <div class="radio">
308
326
  <label
309
- for=${`${t}_${W}`}
310
- class=${a(W,Q)}
311
- style=${ee.styleMap(f(W))}
327
+ for=${`${t}_${O}`}
328
+ class=${r(O,U)}
329
+ style=${j.styleMap(p(O))}
312
330
  >
313
331
  <div class="radio-icon-wrapper">
314
332
  <input
315
333
  type="radio"
316
- name=${i.name||t}
317
- id=${`${t}_${W}`}
318
- .checked=${y===String(Z[r]??"")}
319
- ?disabled=${Q}
334
+ name=${d.name||t}
335
+ id=${`${t}_${O}`}
336
+ .checked=${k===String(_[c]??"")}
337
+ ?disabled=${U}
320
338
  class="radio-input"
321
- @keydown=${re=>{o(re)&&e.emit("update:modelValue",String(Z[r]??""))}}
322
- @change=${()=>e.emit("update:modelValue",String(Z[r]??""))}
339
+ @keydown=${Q=>{o(Q)&&e.emit("update:modelValue",String(_[c]??""))}}
340
+ @change=${()=>e.emit("update:modelValue",String(_[c]??""))}
323
341
  />
324
342
  <span
325
- class=${V("dot",{active:y===String(Z[r]??""),disabled:Q,"borderless-focus":i.variant!=="boxed"&&!Q})}
343
+ class=${A("dot",{active:k===String(_[c]??""),disabled:U,"borderless-focus":d.variant!=="boxed"&&!U})}
326
344
  ></span>
327
345
  </div>
328
- <span class="radio-label-text">${String(Z[u]??"")}</span>
346
+ <span class="radio-label-text">${String(_[m]??"")}</span>
329
347
  </label>
330
348
  </div>
331
349
  `})}
332
350
  </div>
333
- `,C="aria-label"in P||"aria-labelledby"in P,k=D&&!C&&i.label?i.label:s.nothing;return s.html`
351
+ `,h="aria-label"in L||"aria-labelledby"in L,$=S&&!h&&d.label?d.label:n.nothing;return n.html`
334
352
  <div
335
- class=${V("moz-radio-buttons",{"label-position-left":i.labelPosition==="left"},i.class)}
336
- style=${ee.styleMap(be(i.style))}
337
- role=${D?"radiogroup":s.nothing}
338
- aria-label=${k}
339
- ${he(P)}
353
+ class=${A("moz-radio-buttons",{"label-position-left":d.labelPosition==="left","segment-width-fixed":S&&d.widthMode==="fixed","segment-width-full":S&&d.widthMode==="full"},d.class)}
354
+ style=${j.styleMap(he(d.style))}
355
+ role=${S?"radiogroup":n.nothing}
356
+ aria-label=${$}
357
+ ${ce(L)}
340
358
  >
341
- ${i.label?Xe({disabled:p,required:i.required},i.label):s.nothing}
342
- ${L?E():D?g():h()}
359
+ ${d.label?Je({disabled:u,required:d.required},d.label):n.nothing}
360
+ ${x?M():S?f():a()}
343
361
  </div>
344
- `}}}}),dl={name:"MozRadio",core:is,booleanProps:["disabled","iconOnly","required"],props:["label","text","disabled","required","displayExpr","valueExpr","tooltipExpr","disabledExpr","toneExpr","itemsSource","value","name","direction","variant","size","iconOnly","labelPosition","modelValue"],emits:["update:modelValue"],slots:[],expose:!1};function rs(e="var(--moz-color-text-subtle)"){return s.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
362
+ `}}}}),ti={name:"MozRadio",core:On,booleanProps:["disabled","iconOnly","required"],props:["label","text","disabled","required","displayExpr","valueExpr","tooltipExpr","disabledExpr","toneExpr","itemsSource","value","name","direction","variant","size","widthMode","iconOnly","labelPosition","modelValue"],emits:["update:modelValue"],slots:[],expose:!1};function Ro(e="var(--moz-color-text-subtle)"){return n.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
345
363
  <g>
346
364
  <path
347
365
  d="M0 6C0 4.81331 0.351894 3.65328 1.01118 2.66658C1.67047 1.67989 2.60754 0.910851 3.7039 0.456726C4.80026 0.00259972 6.00666 -0.11622 7.17054 0.115291C8.33443 0.346802 9.40353 0.918247 10.2426 1.75736C11.0818 2.59648 11.6532 3.66558 11.8847 4.82946C12.1162 5.99335 11.9974 7.19975 11.5433 8.2961C11.0892 9.39246 10.3201 10.3295 9.33342 10.9888C8.34673 11.6481 7.18669 12 6 12C4.40927 11.9981 2.88422 11.3654 1.75941 10.2406C0.634589 9.11578 0.00185261 7.59073 0 6ZM1.26 6C1.26 6.93773 1.53808 7.85439 2.05907 8.63407C2.58006 9.41374 3.32057 10.0214 4.18693 10.3802C5.05329 10.739 6.0066 10.8328 6.92629 10.6498C7.84598 10.4668 8.69075 10.0152 9.35375 9.35204C10.0167 8.6889 10.4682 7.84404 10.651 6.92431C10.8338 6.00458 10.7398 5.05129 10.3808 4.18501C10.0218 3.31872 9.41402 2.57835 8.63423 2.05752C7.85445 1.53669 6.93772 1.2588 6 1.259C4.74319 1.26059 3.53832 1.76063 2.64971 2.64942C1.76111 3.53822 1.26132 4.74319 1.26 6ZM5.743 9.7C5.5867 9.7 5.43678 9.63798 5.32616 9.52755C5.21554 9.41712 5.15326 9.26731 5.153 9.111V5.569C5.153 5.41243 5.21513 5.26226 5.32575 5.15146C5.43636 5.04065 5.58643 4.97827 5.743 4.978H6.163C6.31949 4.97853 6.4694 5.041 6.57996 5.15175C6.69052 5.2625 6.75274 5.41251 6.753 5.569V9.11C6.75247 9.26623 6.69011 9.41588 6.57955 9.52626C6.46899 9.63663 6.31922 9.69874 6.163 9.699L5.743 9.7ZM5.743 4.366C5.58652 4.366 5.43645 4.30384 5.32581 4.1932C5.21516 4.08255 5.153 3.93248 5.153 3.776V3.356C5.153 3.19943 5.21513 3.04926 5.32575 2.93846C5.43636 2.82765 5.58643 2.76527 5.743 2.765H6.163C6.31949 2.76553 6.4694 2.828 6.57996 2.93875C6.69052 3.04949 6.75274 3.19951 6.753 3.356V3.776C6.75274 3.9324 6.69049 4.08231 6.5799 4.1929C6.46931 4.30349 6.3194 4.36574 6.163 4.366H5.743Z"
348
366
  fill=${e}
349
367
  ></path>
350
368
  </g>
351
- </svg>`}function as(){return s.html`<svg data-icon="password-hidden" width="18" height="18" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg">
369
+ </svg>`}function oi(){return n.html`<svg data-icon="password-hidden" width="18" height="18" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg">
352
370
  <path d="M1.5 1.5L16.5 14.5" stroke="var(--moz-color-text-secondary)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
353
371
  <path
354
372
  d="M7.5 8C7.5 7.17157 8.17157 6.5 9 6.5C9.82843 6.5 10.5 7.17157 10.5 8C10.5 8.82843 9.82843 9.5 9 9.5C8.17157 9.5 7.5 8.82843 7.5 8Z"
@@ -362,7 +380,7 @@
362
380
  stroke-linecap="round"
363
381
  stroke-linejoin="round"
364
382
  ></path>
365
- </svg>`}function ds(){return s.html`<svg data-icon="password-visible" width="18" height="18" viewBox="0 0 18 12" fill="none" xmlns="http://www.w3.org/2000/svg">
383
+ </svg>`}function ni(){return n.html`<svg data-icon="password-visible" width="18" height="18" viewBox="0 0 18 12" fill="none" xmlns="http://www.w3.org/2000/svg">
366
384
  <path
367
385
  d="M7.5 6C7.5 5.17157 8.17157 4.5 9 4.5C9.82843 4.5 10.5 5.17157 10.5 6C10.5 6.82843 9.82843 7.5 9 7.5C8.17157 7.5 7.5 6.82843 7.5 6Z"
368
386
  stroke="var(--moz-color-text-secondary)"
@@ -375,216 +393,251 @@
375
393
  stroke-linecap="round"
376
394
  stroke-linejoin="round"
377
395
  ></path>
378
- </svg>`}const cl=new Set(["id","label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue","class","style"]),cs={type:"text",required:!1,disabled:!1,isReadOnly:!1,rules:[],messagePosition:"outside",width:"100%",useInvalidV2:!1},ul=typeof navigator<"u"&&/Edg/.test(navigator.userAgent);function us(e,t={}){const o=!!t.legacyPassword;let n=!1;const l=Mt(),d={change:"",blur:"",save:""},a={change:0,blur:0,save:0};let f=0,i=!1,c,r;const u=()=>{const h=e.props,C=[String(h.modelValue??""),h.disabled,h.isReadOnly,h.required,h.requiredMessage,h.label,h.name,h.rules,...(h.rules??[]).flatMap(k=>[k.type,k.message,k.validator])];if(c){const k=!Object.is(C[0],c[0]),Z=k&&C[0]===r;(C.length!==c.length||C.some((W,Q)=>!Object.is(W,c[Q])&&!(Q===0&&Z)))&&f++,k&&(r=void 0)}c=C};e.onCleanup(()=>{i=!0,f++});const p=()=>{const h=e.props,C=[];return h.required&&C.push({message:h.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",h.label||h.name||""),type:"save",validator:k=>!!k}),[...C,...h.rules??[]]},y=async(h,C)=>{u();const k=++a[C],Z=f,W=()=>!i&&f===Z&&a[C]===k,Q=e.props,re=p();if(re.length<=0||Q.disabled||Q.isReadOnly)return!0;d[C]="";const ae=re.filter(j=>j.type===C);for(const j of ae){let $;try{$=await j.validator(h)}finally{u()}if(!$)return W()&&(d[C]=j.message,e.requestUpdate()),!1}return W()&&(d[C]="",e.requestUpdate()),!0},L=h=>{const C=h.target.value;u(),r=C,a.save++,a.blur++,d.save="",d.blur="",e.emit("update:modelValue",C),y(C,"change")},D=h=>{const C=h.target.value;y(C,"blur"),e.requestUpdate()},P=h=>{h.key==="Enter"&&e.emit("enter",h)},E=()=>{e.props.disabled||(n=!n,e.requestUpdate())},g={validate:(h="save")=>y(String(e.props.modelValue??""),h),initValidator:()=>{f++,d.change="",d.blur="",d.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(g),e.onCleanup(()=>{var h;return(h=e.validator)==null?void 0:h.removeValidator(g)})),{onMounted:h=>{e.emit("mounted",(h==null?void 0:h.querySelector("input"))??null)},render(){u();const h=e.props,C=String(h.modelValue??""),k=d.save||d.blur||d.change,Z=!!h.useInvalidV2,W=h.width?typeof h.width=="number"?`${h.width}px`:h.width:"100%",Q=ye(h,cl),re=h.id==null||h.id===""?l:String(h.id),ae=o||h.type==="password";(!ae||h.disabled)&&(n=!1);const j=ae?n?"text":"password":h.type??"text";o&&Q.autocomplete==null&&(Q.autocomplete="new-password");const $=Z&&k!=="",I=!Z&&k!=="",Y=s.html`<input
379
- class=${V("moz-input",{disabled:h.disabled,"read-only":h.isReadOnly,"is-filled":C!=="","has-inside-message":!Z&&h.messagePosition==="inside"&&k!=="","has-invalid-icon":$,"has-password-toggle":ae,"edge-password":ae&&ul})}
380
- id=${re}
381
- name=${Ee.ifDefined(h.name)}
382
- type=${j}
383
- placeholder=${Ee.ifDefined(h.placeholder)}
384
- ?disabled=${!!h.disabled}
385
- ?readonly=${!!h.isReadOnly}
386
- .value=${uo.live(C)}
387
- ${he(Q)}
388
- @input=${L}
389
- @keypress=${P}
390
- @blur=${D}
391
- />`,ne=$?s.html`<div class="moz-input-invalid-icon-v2">
392
- ${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message:k}):s.html`<div title=${k}>${rs("var(--moz-color-danger)")}</div>`}
393
- </div>`:s.nothing,B=I?s.html`<span class=${V("moz-input-invalid-message",`position-${h.messagePosition}`)}
394
- >${k}</span
395
- >`:s.nothing,se=h.label?Xe({for:re,isReadOnly:h.isReadOnly,required:h.required},h.label,V("input-label",{"moz-input-label":o,"input-label-disabled":h.disabled&&!h.isReadOnly,"input-label-read-only":h.isReadOnly&&!h.disabled})):s.nothing,N=V("moz-input-wrapper",{"is-invalid":k!=="","is-password":ae,"moz-password-input-container":o,disabled:o&&h.disabled},h.class),X=ee.styleMap({width:W,...be(h.style)});return ae?s.html`
396
- <div class=${N} style=${X}>
396
+ </svg>`}const si=new Set(["id","label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue","class","style"]),li={type:"text",required:!1,disabled:!1,isReadOnly:!1,rules:[],messagePosition:"outside",width:"100%",useInvalidV2:!1},ii=typeof navigator<"u"&&/Edg/.test(navigator.userAgent);function ai(e,t={}){const o=!!t.legacyPassword;let s=!1;const l=Rt(),i={change:"",blur:"",save:""},r={change:0,blur:0,save:0};let p=0,d=!1,b,c;const m=()=>{const a=e.props,h=[String(a.modelValue??""),a.disabled,a.isReadOnly,a.required,a.requiredMessage,a.label,a.name,a.rules,...(a.rules??[]).flatMap($=>[$.type,$.message,$.validator])];if(b){const $=!Object.is(h[0],b[0]),_=$&&h[0]===c;(h.length!==b.length||h.some((O,U)=>!Object.is(O,b[U])&&!(U===0&&_)))&&p++,$&&(c=void 0)}b=h};e.onCleanup(()=>{d=!0,p++});const u=()=>{const a=e.props,h=[];return a.required&&h.push({message:a.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",a.label||a.name||""),type:"save",validator:$=>!!$}),[...h,...a.rules??[]]},k=async(a,h)=>{m();const $=++r[h],_=p,O=()=>!d&&p===_&&r[h]===$,U=e.props,Q=u();if(Q.length<=0||U.disabled||U.isReadOnly)return!0;i[h]="";const re=Q.filter(X=>X.type===h);for(const X of re){let E;try{E=await X.validator(a)}finally{m()}if(!E)return O()&&(i[h]=X.message,e.requestUpdate()),!1}return O()&&(i[h]="",e.requestUpdate()),!0},x=a=>{const h=a.target.value;m(),c=h,r.save++,r.blur++,i.save="",i.blur="",e.emit("update:modelValue",h),k(h,"change")},S=a=>{const h=a.target.value;k(h,"blur"),e.requestUpdate()},L=a=>{a.key==="Enter"&&e.emit("enter",a)},M=()=>{e.props.disabled||(s=!s,e.requestUpdate())},f={validate:(a="save")=>k(String(e.props.modelValue??""),a),initValidator:()=>{p++,i.change="",i.blur="",i.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(f),e.onCleanup(()=>{var a;return(a=e.validator)==null?void 0:a.removeValidator(f)})),{onMounted:a=>{e.emit("mounted",(a==null?void 0:a.querySelector("input"))??null)},render(){m();const a=e.props,h=String(a.modelValue??""),$=i.save||i.blur||i.change,_=!!a.useInvalidV2,O=a.width?typeof a.width=="number"?`${a.width}px`:a.width:"100%",U=ge(a,si),Q=a.id==null||a.id===""?l:String(a.id),re=o||a.type==="password";(!re||a.disabled)&&(s=!1);const X=re?s?"text":"password":a.type??"text";o&&U.autocomplete==null&&(U.autocomplete="new-password");const E=_&&$!=="",V=!_&&$!=="",J=e.slots.has("prefixIcon"),le=n.html`<input
397
+ class=${A("moz-input",{disabled:a.disabled,"read-only":a.isReadOnly,"is-filled":h!=="","has-prefix-icon":J,"has-inside-message":!_&&a.messagePosition==="inside"&&$!=="","has-invalid-icon":E,"has-password-toggle":re,"edge-password":re&&ii})}
398
+ id=${Q}
399
+ name=${$e.ifDefined(a.name)}
400
+ type=${X}
401
+ placeholder=${$e.ifDefined(a.placeholder)}
402
+ ?disabled=${!!a.disabled}
403
+ ?readonly=${!!a.isReadOnly}
404
+ .value=${So.live(h)}
405
+ ${ce(U)}
406
+ @input=${x}
407
+ @keypress=${L}
408
+ @blur=${S}
409
+ />`,N={disabled:!!a.disabled,isReadOnly:!!a.isReadOnly,invalid:$!==""},ie=J?n.html`<span class=${A("moz-input-prefix-icon",{disabled:a.disabled})} aria-hidden="true" inert
410
+ >${e.slot("prefixIcon",N)}</span
411
+ >`:n.nothing,F=E?n.html`<div class="moz-input-invalid-icon-v2">
412
+ ${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message:$}):n.html`<div title=${$}>${Ro("var(--moz-color-danger)")}</div>`}
413
+ </div>`:n.nothing,oe=V?n.html`<span class=${A("moz-input-invalid-message",`position-${a.messagePosition}`)}
414
+ >${$}</span
415
+ >`:n.nothing,T=a.label?Je({for:Q,isReadOnly:a.isReadOnly,required:a.required},a.label,A("input-label",{"moz-input-label":o,"input-label-disabled":a.disabled&&!a.isReadOnly,"input-label-read-only":a.isReadOnly&&!a.disabled})):n.nothing,W=A("moz-input-wrapper",{"is-invalid":$!=="","is-password":re,"moz-password-input-container":o,disabled:o&&a.disabled},a.class),K=j.styleMap({width:O,...he(a.style)});return re?n.html`
416
+ <div class=${W} style=${K}>
397
417
  <div class="input-wrapper">
398
- ${se}
418
+ ${T}
399
419
  <div class="moz-password-input-wrapper">
400
- ${Y}
420
+ ${ie}${le}
401
421
  <button
402
422
  type="button"
403
- aria-label=${n?e.locale.PasswordInput.hidePassword:e.locale.PasswordInput.showPassword}
404
- aria-pressed=${n?"true":"false"}
405
- aria-controls=${re}
406
- class=${V("icon-container password-icon",{"cursor-pointer":!h.disabled,"cursor-not-allowed":h.disabled})}
407
- ?disabled=${!!h.disabled}
408
- @click=${E}
423
+ aria-label=${s?e.locale.PasswordInput.hidePassword:e.locale.PasswordInput.showPassword}
424
+ aria-pressed=${s?"true":"false"}
425
+ aria-controls=${Q}
426
+ class=${A("icon-container password-icon",{"cursor-pointer":!a.disabled,"cursor-not-allowed":a.disabled})}
427
+ ?disabled=${!!a.disabled}
428
+ @click=${M}
409
429
  >
410
- ${n?as():ds()}
430
+ ${s?oi():ni()}
411
431
  </button>
412
- ${ne} ${B}
432
+ ${F} ${oe}
413
433
  </div>
414
434
  </div>
415
435
  </div>
416
- `:s.html`
417
- <div class=${N} style=${X}>
436
+ `:n.html`
437
+ <div class=${W} style=${K}>
418
438
  <div class="input-wrapper">
419
- ${se} ${Y} ${ne} ${B}
439
+ ${T} ${ie}${le} ${F} ${oe}
420
440
  </div>
421
441
  </div>
422
- `}}}const ps=$e({name:"moz-input",defaults:cs,setup:e=>us(e)}),pl={name:"MozInput",core:ps,booleanProps:["required","disabled","isReadOnly","useInvalidV2"],props:["id","label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue"],emits:["enter","mounted","update:modelValue"],slots:["invalidTooltip"],expose:!1},hs=$e({name:"moz-password-input",defaults:{...cs,type:"password"},setup:e=>us(e,{legacyPassword:!0})}),hl={name:"MozPasswordInput",core:hs,booleanProps:["disabled","required","useInvalidV2"],props:["id","label","value","name","placeholder","required","disabled","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue"],emits:["enter","mounted","update:modelValue"],slots:["invalidTooltip"],expose:!1},ml=new Set(["id","label","width","height","required","disabled","rules","maxLength","resize","immediatelyFocus","requiredMessage","modelValue","class","style"]),ms=$e({name:"moz-textarea",defaults:{height:80,required:!1,disabled:!1,rules:[],maxLength:null,resize:"none",immediatelyFocus:!1,modelValue:""},setup(e){const t=Mt(),o={change:"",blur:"",save:""},n=()=>{const c=e.props,r=[];return c.required&&r.push({message:c.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",c.label||""),type:"save",validator:u=>!!u}),[...r,...c.rules??[]]},l=async(c,r)=>{const u=e.props,p=n();if(p.length<=0||u.disabled)return!0;o[r]="";for(const y of p.filter(L=>L.type===r))if(!await y.validator(c))return o[r]=y.message,e.requestUpdate(),!1;return e.requestUpdate(),!0},d=c=>{const r=c.target,u=e.props;r.value&&u.maxLength&&r.value.length>u.maxLength&&(r.value=r.value.slice(0,u.maxLength)),e.emit("update:modelValue",r.value),l(r.value,"change")},a=c=>{l(c.target.value,"blur")},f=()=>{o.save="",e.requestUpdate()},i={validate:(c="save")=>l(String(e.props.modelValue??""),c),initValidator:()=>{o.change=o.blur=o.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(i),e.onCleanup(()=>{var c;return(c=e.validator)==null?void 0:c.removeValidator(i)})),{onMounted:c=>{var r;e.props.immediatelyFocus&&((r=c==null?void 0:c.querySelector("textarea"))==null||r.focus())},render(){const c=e.props,r=String(c.modelValue??""),u=o.save||o.blur||o.change,p=c.width?typeof c.width=="number"?`${Ae(c.width)}rem`:c.width:"100%",y=`${Ae(c.height??80)}rem`,L=c.resize??"none",D=L==="none"?{height:y}:{minHeight:y},P=r.length,E=ye(c,ml),g=c.id==null||c.id===""?t:String(c.id);return s.html`
442
+ `}}}const _n=ye({name:"moz-input",defaults:li,setup:e=>ai(e)}),ri={name:"MozInput",core:_n,booleanProps:["required","disabled","isReadOnly","useInvalidV2"],props:["id","label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue"],emits:["enter","mounted","update:modelValue"],slots:["invalidTooltip","prefixIcon"],expose:!1},ci=new Set(["id","label","width","height","required","disabled","rules","maxLength","resize","variant","immediatelyFocus","requiredMessage","modelValue","class","style"]),Bn=ye({name:"moz-textarea",defaults:{height:80,required:!1,disabled:!1,rules:[],maxLength:null,resize:"none",variant:"default",immediatelyFocus:!1,modelValue:""},setup(e){const t=Rt(),o={change:"",blur:"",save:""},s=()=>{const c=e.props,m=[];return c.required&&m.push({message:c.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",c.label||""),type:"save",validator:u=>!!u}),[...m,...c.rules??[]]},l=async(c,m)=>{const u=e.props,k=s();if(k.length<=0||u.disabled)return!0;o[m]="";for(const x of k.filter(S=>S.type===m))if(!await x.validator(c))return o[m]=x.message,e.requestUpdate(),!1;return e.requestUpdate(),!0},i=c=>{const m=c.target,u=e.props;m.value&&u.maxLength&&m.value.length>u.maxLength&&(m.value=m.value.slice(0,u.maxLength)),e.emit("update:modelValue",m.value),l(m.value,"change")},r=c=>{l(c.target.value,"blur")},p=()=>{o.save="",e.requestUpdate()},d={handleEvent(c){e.props.disabled&&(c.preventDefault(),c.stopPropagation())},capture:!0},b={validate:(c="save")=>l(String(e.props.modelValue??""),c),initValidator:()=>{o.change=o.blur=o.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(b),e.onCleanup(()=>{var c;return(c=e.validator)==null?void 0:c.removeValidator(b)})),{onMounted:c=>{var m;e.props.immediatelyFocus&&((m=c==null?void 0:c.querySelector("textarea"))==null||m.focus())},render(){const c=e.props,m=String(c.modelValue??""),u=o.save||o.blur||o.change,k=c.width?typeof c.width=="number"?`${Ae(c.width)}rem`:c.width:"100%",x=`${Ae(c.height??80)}rem`,S=c.resize??"none",L=S==="none"?{height:x}:{minHeight:x},M=m.length,f=ge(c,ci),a=c.id==null||c.id===""?t:String(c.id),h=c.variant==="pill"||c.variant==="borderless"?c.variant:"default",$=!!c.disabled,_=e.slots.has("suffix"),O={disabled:$};return n.html`
423
443
  <div
424
- class=${V("moz-textarea-wrapper",{disabled:c.disabled},c.class)}
425
- style=${ee.styleMap({width:p,...D,...be(c.style)})}
444
+ class=${A("moz-textarea-wrapper",{disabled:c.disabled},c.class)}
445
+ data-variant=${$e.ifDefined(h==="default"?void 0:h)}
446
+ style=${j.styleMap({width:k,...L,...he(c.style)})}
426
447
  >
427
448
  <div class="textarea-inner">
428
- ${c.label?Xe({for:g,disabled:c.disabled,required:c.required},c.label):s.nothing}
429
- <div class=${V("moz-textarea-box",{disabled:c.disabled,invalid:u!==""})}>
449
+ ${c.label?Je({for:a,disabled:c.disabled,required:c.required},c.label):n.nothing}
450
+ <div
451
+ class=${A("moz-textarea-box",{disabled:c.disabled,invalid:u!=="","has-suffix":_})}
452
+ >
430
453
  <textarea
431
- id=${g}
432
- ${he(E)}
433
- .value=${uo.live(r)}
454
+ id=${a}
455
+ ${ce(f)}
456
+ .value=${So.live(m)}
434
457
  ?disabled=${!!c.disabled}
435
- maxlength=${Ee.ifDefined(c.maxLength??void 0)}
436
- class=${V("moz-textarea",{disabled:c.disabled})}
437
- style=${ee.styleMap({resize:L==="none"?void 0:L,height:L==="none"?void 0:"auto"})}
438
- @input=${d}
439
- @blur=${a}
440
- @focus=${f}
458
+ maxlength=${$e.ifDefined(c.maxLength??void 0)}
459
+ class=${A("moz-textarea",{disabled:c.disabled})}
460
+ style=${j.styleMap({resize:S==="none"?void 0:S,height:S==="none"?void 0:"auto"})}
461
+ @input=${i}
462
+ @blur=${r}
463
+ @focus=${p}
441
464
  ></textarea>
442
- ${c.maxLength?s.html`<div class="char-counter"><span>${P}</span><span>/</span><span>${c.maxLength}</span></div>`:s.nothing}
465
+ ${c.maxLength?n.html`<div class="char-counter"><span>${M}</span><span>/</span><span>${c.maxLength}</span></div>`:n.nothing}
466
+ ${_?n.html`<div class="moz-textarea-suffix" ?inert=${$} @click=${d}>
467
+ ${e.slot("suffix",O)}
468
+ </div>`:n.nothing}
443
469
  </div>
444
470
  </div>
445
- ${u!==""?s.html`<span class="moz-textarea-invalid-message">${u}</span>`:s.nothing}
471
+ ${u!==""?n.html`<span class="moz-textarea-invalid-message">${u}</span>`:n.nothing}
446
472
  </div>
447
- `}}}}),fl={name:"MozTextArea",core:ms,booleanProps:["disabled","immediatelyFocus","required"],props:["id","label","width","height","required","disabled","rules","maxLength","resize","immediatelyFocus","requiredMessage","modelValue"],emits:["update:modelValue"],slots:[],expose:!1};function gl(e="var(--moz-color-on-accent)",t=!1){return s.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
473
+ `}}}}),di={name:"MozTextArea",core:Bn,booleanProps:["disabled","immediatelyFocus","required"],props:["id","label","width","height","required","disabled","rules","maxLength","resize","variant","immediatelyFocus","requiredMessage","modelValue"],emits:["update:modelValue"],slots:["suffix"],expose:!1};function ui(e="var(--moz-color-on-accent)",t=!1){return n.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
448
474
  <path d="M7 2V12M2 7H12" stroke=${t?"var(--moz-color-text-muted)":e} stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path>
449
- </svg>`}function vl(e="var(--moz-color-on-accent)",t=!1){return s.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
475
+ </svg>`}function pi(e="var(--moz-color-on-accent)",t=!1){return n.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
450
476
  <path d="M2 7H12" stroke=${t?"var(--moz-color-text-muted)":e} stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path>
451
- </svg>`}function wl(e=!1){return s.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
477
+ </svg>`}function hi(e=!1){return n.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
452
478
  <path d="M9.50097 7.73588L5.95565 4.27686L2.49904 7.73588" stroke=${e?"var(--moz-color-text-muted)":"var(--moz-color-text-subtle)"} stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"></path>
453
- </svg>`}function bl(e=!1){return s.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
479
+ </svg>`}function mi(e=!1){return n.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
454
480
  <path d="M2.49901 4.27686L6.04435 7.73588L9.50099 4.27686" stroke=${e?"var(--moz-color-text-muted)":"var(--moz-color-text-subtle)"} stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"></path>
455
- </svg>`}const Cl=new Set(["id","label","name","width","required","step","min","max","disabled","shortMode","nullable","modelValue","class","style"]),fs=$e({name:"moz-number-input",defaults:{label:"",width:100,required:!1,step:1,min:-Number.MAX_VALUE,max:Number.MAX_VALUE,disabled:!1,shortMode:!1,nullable:!1},setup(e){const t=Mt(),o=()=>{const i=e.props;if(i.disabled||i.modelValue===void 0)return;const c=i.modelValue+i.step;i.max!==void 0&&i.max!==null&&c>i.max||(e.emit("update:modelValue",c),e.emit("change",c))},n=()=>{const i=e.props;if(i.disabled||i.modelValue===void 0)return;const c=i.modelValue-i.step;i.min!==void 0&&i.min!==null&&c<i.min||(e.emit("update:modelValue",c),e.emit("change",c))},l=i=>{const c=e.props;if(c.disabled||c.nullable||i.key!=="Backspace"&&i.key!=="Delete"||c.min===-Number.MAX_VALUE||Number(c.modelValue)!==Number(c.min))return;const r=i.target,u=r.selectionStart??0,p=r.selectionEnd??0,y=r.value,L=u!==p;(L&&u===0&&p===y.length||!L&&y.length===1)&&i.preventDefault()},d=i=>{const c=e.props;if(c.disabled||c.nullable)return;const r=i.target;if(r.value===""){const u=c.min!==-Number.MAX_VALUE?c.min:0;e.emit("update:modelValue",u),r.value=String(u),e.emit("change",u)}},a=i=>{const c=e.props;if(c.disabled)return;const r=i.target;if(!r&&!c.nullable){e.emit("update:modelValue",0),e.emit("change",0);return}if(!r)return;Number(r.value)<c.min&&(r.value=String(c.min)),Number(r.value)>c.max&&(r.value=String(c.max));const u=+r.value.replace(/,/g,"");e.emit("update:modelValue",u),e.emit("change",u)},f=i=>{i.key==="Enter"&&e.emit("enter",i)};return{onMounted:i=>e.emit("mounted",(i==null?void 0:i.querySelector("input"))??null),render(){const i=e.props,c=i.modelValue,r=!!i.disabled,u=i.min,p=i.max,y=typeof i.width=="number"?`${Ae(i.width)}rem`:i.width,L=ye(i,Cl),D=i.id==null||i.id===""?t:String(i.id),P=g=>V("num-change-btn",g),E=s.html`
456
- <div class=${V("moz-number-input",{"input-border":i.shortMode})}>
481
+ </svg>`}const fi=new Set(["id","label","name","width","required","requiredMessage","rules","messagePosition","useInvalidV2","isReadOnly","step","min","max","disabled","shortMode","nullable","modelValue","class","style"]),qn=ye({name:"moz-number-input",defaults:{label:"",width:100,required:!1,rules:[],messagePosition:"outside",useInvalidV2:!1,isReadOnly:!1,step:1,min:-Number.MAX_VALUE,max:Number.MAX_VALUE,disabled:!1,shortMode:!1,nullable:!1},setup(e){const t=Rt(),o={change:"",blur:"",save:""},s={change:0,blur:0,save:0};let l=0,i=!1,r,p;const d=()=>{const a=e.props,h=[String(a.modelValue??""),a.disabled,a.isReadOnly,a.required,a.requiredMessage,a.label,a.name,a.rules,...(a.rules??[]).flatMap($=>[$.type,$.message,$.validator])];if(r){const $=!Object.is(h[0],r[0]),_=$&&h[0]===p;(h.length!==r.length||h.some((O,U)=>!Object.is(O,r[U])&&!(U===0&&_)))&&l++,$&&(p=void 0)}r=h};e.onCleanup(()=>{i=!0,l++});const b=()=>{const a=e.props;return[...a.required?[{message:a.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",a.label||a.name||""),type:"save",validator:$=>!!$}]:[],...a.rules??[]]},c=async(a,h)=>{d();const $=++s[h],_=l,O=()=>!i&&l===_&&s[h]===$,U=b();if(!U.length||e.props.disabled||e.props.isReadOnly)return!0;o[h]="";for(const Q of U.filter(re=>re.type===h)){let re;try{re=await Q.validator(a)}finally{d()}if(!re)return O()&&(o[h]=Q.message,e.requestUpdate()),!1}return O()&&(o[h]="",e.requestUpdate()),!0},m={validate:(a="save")=>c(String(e.props.modelValue??""),a),initValidator:()=>{l++,o.change=o.blur=o.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(m),e.onCleanup(()=>{var a;return(a=e.validator)==null?void 0:a.removeValidator(m)}));const u=a=>{d(),p=String(a),s.save++,s.blur++;const h=!!(o.save||o.blur);o.save=o.blur="",e.emit("update:modelValue",a),e.emit("change",a),c(String(a),"change"),h&&e.requestUpdate()},k=()=>{const a=e.props;if(a.disabled||a.isReadOnly||a.modelValue===void 0)return;const h=a.modelValue+a.step;a.max!==void 0&&a.max!==null&&h>a.max||u(h)},x=()=>{const a=e.props;if(a.disabled||a.isReadOnly||a.modelValue===void 0)return;const h=a.modelValue-a.step;a.min!==void 0&&a.min!==null&&h<a.min||u(h)},S=a=>{const h=e.props;if(h.disabled||h.isReadOnly||h.nullable||a.key!=="Backspace"&&a.key!=="Delete"||h.min===-Number.MAX_VALUE||Number(h.modelValue)!==Number(h.min))return;const $=a.target,_=$.selectionStart??0,O=$.selectionEnd??0,U=$.value,Q=_!==O;(Q&&_===0&&O===U.length||!Q&&U.length===1)&&a.preventDefault()},L=a=>{const h=e.props;if(h.disabled||h.isReadOnly)return;const $=a.target;if(!h.nullable&&$.value===""){const _=h.min!==-Number.MAX_VALUE?h.min:0;u(_),$.value=String(_)}c($.value,"blur")},M=a=>{const h=e.props;if(h.disabled||h.isReadOnly)return;const $=a.target;if(!$&&!h.nullable){u(0);return}if(!$)return;Number($.value)<h.min&&($.value=String(h.min)),Number($.value)>h.max&&($.value=String(h.max));const _=+$.value.replace(/,/g,"");u(_)},f=a=>{a.key==="Enter"&&e.emit("enter",a)};return{onMounted:a=>e.emit("mounted",(a==null?void 0:a.querySelector("input"))??null),render(){d();const a=e.props,h=o.save||o.blur||o.change,$=!!a.useInvalidV2,_=a.modelValue,O=!!a.disabled,U=a.min,Q=a.max,re=typeof a.width=="number"?`${Ae(a.width)}rem`:a.width,X=ge(a,fi),E=a.id==null||a.id===""?t:String(a.id),V=le=>A("num-change-btn",le),J=n.html`
482
+ <div class=${A("moz-number-input",{"input-border":a.shortMode})}>
457
483
  <input
458
- id=${D}
459
- name=${Ee.ifDefined(i.name)}
460
- ?disabled=${r}
461
- .value=${uo.live(String(c??""))}
462
- ${he(L)}
463
- @input=${a}
464
- @change=${a}
465
- @blur=${d}
466
- @keydown=${l}
484
+ id=${E}
485
+ name=${$e.ifDefined(a.name)}
486
+ ?disabled=${O}
487
+ ?readonly=${!!a.isReadOnly}
488
+ .value=${So.live(String(_??""))}
489
+ ${ce(X)}
490
+ @input=${M}
491
+ @change=${M}
492
+ @blur=${L}
493
+ @keydown=${S}
467
494
  @keypress=${f}
468
495
  type="number"
469
496
  />
470
497
  <div class="moz-number-input-btn">
471
- ${i.shortMode?s.html`
472
- <button type="button" aria-label=${e.locale.NumberInput.increase} class="moz-number-input-btn-icon" ?disabled=${r} @click=${o}>${wl(r)}</button>
473
- <button type="button" aria-label=${e.locale.NumberInput.decrease} class="moz-number-input-btn-icon" ?disabled=${r} @click=${n}>${bl(r)}</button>
474
- `:s.nothing}
498
+ ${a.shortMode?n.html`
499
+ <button type="button" aria-label=${e.locale.NumberInput.increase} class="moz-number-input-btn-icon" ?disabled=${O||!!a.isReadOnly} @click=${k}>${hi(O)}</button>
500
+ <button type="button" aria-label=${e.locale.NumberInput.decrease} class="moz-number-input-btn-icon" ?disabled=${O||!!a.isReadOnly} @click=${x}>${mi(O)}</button>
501
+ `:n.nothing}
475
502
  </div>
503
+ ${$&&h?n.html`<div class="moz-number-input-invalid-icon-v2">
504
+ ${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message:h}):n.html`<div title=${h}>${Ro("var(--moz-color-danger)")}</div>`}
505
+ </div>`:n.nothing}
506
+ ${!$&&h&&a.messagePosition==="inside"?n.html`<span class=${A("moz-number-input-invalid-message",`position-${a.messagePosition}`)}>${h}</span>`:n.nothing}
476
507
  </div>
477
- `;return s.html`
478
- <div class=${V("moz-number-input-container",{disabled:r},i.class)} style=${ee.styleMap(be(i.style))}>
479
- ${i.label?Xe({for:D,disabled:r},s.html`${i.label}${i.required?s.html`<span class="require-mark">*</span>`:s.nothing}`):s.nothing}
480
- <div class=${V("moz-number-input-wrapper",{"moz-number-input-quantity":!i.shortMode})} style="width:${y}">
481
- ${i.shortMode?s.nothing:s.html`<button
508
+ `;return n.html`
509
+ <div class=${A("moz-number-input-container",{disabled:O,"is-invalid":!!h,"read-only":!!a.isReadOnly},a.class)} style=${j.styleMap(he(a.style))}>
510
+ ${a.label?Je({for:E,disabled:O},n.html`${a.label}${a.required?n.html`<span class="require-mark">*</span>`:n.nothing}`):n.nothing}
511
+ <div class=${A("moz-number-input-wrapper",{"moz-number-input-quantity":!a.shortMode})} style="width:${re}">
512
+ ${a.shortMode?n.nothing:n.html`<button
482
513
  type="button"
483
514
  aria-label=${e.locale.NumberInput.decrease}
484
- class=${P({disabled:r||u>=c,"min-disabled":u>=c})}
485
- ?disabled=${r}
486
- @click=${n}
515
+ class=${V({disabled:O||U>=_,"min-disabled":U>=_})}
516
+ ?disabled=${O||!!a.isReadOnly}
517
+ @click=${x}
487
518
  >
488
- ${vl("currentColor",r||u>=c)}
519
+ ${pi("currentColor",O||U>=_)}
489
520
  </button>`}
490
- ${E}
491
- ${i.shortMode?s.nothing:s.html`<button
521
+ ${J}
522
+ ${a.shortMode?n.nothing:n.html`<button
492
523
  type="button"
493
524
  aria-label=${e.locale.NumberInput.increase}
494
- class=${P({disabled:r||p<=c,"max-disabled":p<=c})}
495
- ?disabled=${r}
496
- @click=${o}
525
+ class=${V({disabled:O||Q<=_,"max-disabled":Q<=_})}
526
+ ?disabled=${O||!!a.isReadOnly}
527
+ @click=${k}
497
528
  >
498
- ${gl("currentColor",r||p<=c)}
529
+ ${ui("currentColor",O||Q<=_)}
499
530
  </button>`}
500
531
  </div>
532
+ ${!$&&h&&a.messagePosition==="outside"?n.html`<span class="moz-number-input-invalid-message position-outside">${h}</span>`:n.nothing}
501
533
  </div>
502
- `}}}}),yl={name:"MozNumberInput",core:fs,booleanProps:["disabled","nullable","required","shortMode"],props:["id","label","name","width","required","step","min","max","disabled","shortMode","nullable","modelValue"],emits:["change","mounted","enter","update:modelValue"],slots:[],expose:!1};function gs(e="var(--moz-color-text-subtle)"){return s.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
534
+ `}}}}),gi={name:"MozNumberInput",core:qn,booleanProps:["disabled","nullable","required","shortMode","isReadOnly","useInvalidV2"],props:["id","label","name","width","required","step","min","max","disabled","shortMode","nullable","modelValue","isReadOnly","rules","requiredMessage","messagePosition","useInvalidV2"],emits:["change","mounted","enter","update:modelValue"],slots:["invalidTooltip"],expose:!1};function Fn(e="var(--moz-color-text-subtle)"){return n.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
503
535
  <path d="M9 3L3 9M3 3L9 9" stroke=${e} stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
504
- </svg>`}function $l(e="var(--moz-color-tab-close)"){return s.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
536
+ </svg>`}function vi(e="var(--moz-color-tab-close)"){return n.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
505
537
  <path d="M9.99426 3.19027C10.3067 2.87785 10.3067 2.37131 9.99426 2.05889C9.68184 1.74647 9.17531 1.74647 8.86289 2.05889L9.42857 2.62458L9.99426 3.19027ZM2.05894 8.86288C1.74652 9.1753 1.74652 9.68183 2.05894 9.99426C2.37136 10.3067 2.87789 10.3067 3.1903 9.99425L2.62462 9.42857L2.05894 8.86288ZM9.42857 2.62458L8.86289 2.05889L2.05894 8.86288L2.62462 9.42857L3.1903 9.99425L9.99426 3.19027L9.42857 2.62458Z" fill=${e}></path>
506
538
  <path d="M3.13711 2.00574C2.82469 1.69332 2.31816 1.69332 2.00574 2.00574C1.69333 2.31816 1.69333 2.8247 2.00574 3.13712L2.57143 2.57143L3.13711 2.00574ZM8.8097 9.9411C9.12211 10.2535 9.62864 10.2535 9.94106 9.9411C10.2535 9.62868 10.2535 9.12215 9.94106 8.80973L9.37538 9.37542L8.8097 9.9411ZM2.57143 2.57143L2.00574 3.13712L8.8097 9.9411L9.37538 9.37542L9.94106 8.80973L3.13711 2.00574L2.57143 2.57143Z" fill=${e}></path>
507
- </svg>`}const Sl=new Set(["itemSource","vertical","tabWidth","maxTabWidth","closeAble","modelValue","class","style"]),vs=$e({name:"moz-tab",defaults:{vertical:!1,tabWidth:100,closeAble:!1,itemSource:[]},setup(e){const t=ot("tab_"),o=new WeakSet,n=r=>{r&&o.add(r)},l=r=>`${t}-tab-${r}`,d=r=>`${t}-panel-${r}`,a=r=>typeof requestAnimationFrame=="function"?requestAnimationFrame(r):setTimeout(r,16),f=r=>{e.props.modelValue!==r&&(e.emit("update:modelValue",r),e.emit("change",r))},i=(r,u)=>{const p=e.props,y=(p.itemSource??[]).map(k=>k.id);if(y.length===0)return;const L=p.vertical?"ArrowDown":"ArrowRight",D=p.vertical?"ArrowUp":"ArrowLeft";let P;if(r.key===L?P=y[(y.indexOf(u)+1)%y.length]:r.key===D?P=y[(y.indexOf(u)-1+y.length)%y.length]:r.key==="Home"?P=y[0]:r.key==="End"?P=y[y.length-1]:(r.key==="Enter"||r.key===" ")&&(P=u),P===void 0)return;r.preventDefault(),r.stopPropagation(),f(P);const E=r.currentTarget.closest('[role="tablist"]'),g=l(P);let h=0;const C=()=>{const k=Array.from((E==null?void 0:E.querySelectorAll('[role="tab"]'))??[]).find(Z=>Z.id===g);if(k&&k.getAttribute("aria-selected")==="true"){k.focus();return}++h<20&&a(C)};a(C)},c=r=>{const u=e.props;if(u.modelValue===r){const p=(u.itemSource??[]).filter(y=>y.id!==r);p.length>0&&f(p[p.length-1].id)}e.emit("close",r)};return{onMounted:()=>{const r=e.props;!r.modelValue&&(r.itemSource??[]).length>0&&queueMicrotask(()=>{!e.props.modelValue&&(e.props.itemSource??[]).length>0&&f(e.props.itemSource[0].id)})},render(){const r=e.props,u=r.itemSource??[],p=r.modelValue,y=ye(r,Sl),L=ee.styleMap({width:r.closeAble?`${r.tabWidth}px`:"",maxWidth:r.maxTabWidth?`${r.maxTabWidth}px`:void 0,display:"flex",justifyContent:r.closeAble||r.vertical?"space-between":"center",alignItems:"center"});return s.html`
539
+ </svg>`}const wi=new Set(["itemSource","vertical","tabWidth","maxTabWidth","closeAble","modelValue","class","style"]),Nn=ye({name:"moz-tab",defaults:{vertical:!1,tabWidth:100,closeAble:!1,itemSource:[]},setup(e){const t=Qe("tab_"),o=new WeakSet,s=c=>{c&&o.add(c)},l=c=>`${t}-tab-${c}`,i=c=>`${t}-panel-${c}`,r=c=>typeof requestAnimationFrame=="function"?requestAnimationFrame(c):setTimeout(c,16),p=c=>{e.props.modelValue!==c&&(e.emit("update:modelValue",c),e.emit("change",c))},d=(c,m)=>{const u=e.props,k=(u.itemSource??[]).map($=>$.id);if(k.length===0)return;const x=u.vertical?"ArrowDown":"ArrowRight",S=u.vertical?"ArrowUp":"ArrowLeft";let L;if(c.key===x?L=k[(k.indexOf(m)+1)%k.length]:c.key===S?L=k[(k.indexOf(m)-1+k.length)%k.length]:c.key==="Home"?L=k[0]:c.key==="End"?L=k[k.length-1]:(c.key==="Enter"||c.key===" ")&&(L=m),L===void 0)return;c.preventDefault(),c.stopPropagation(),p(L);const M=c.currentTarget.closest('[role="tablist"]'),f=l(L);let a=0;const h=()=>{const $=Array.from((M==null?void 0:M.querySelectorAll('[role="tab"]'))??[]).find(_=>_.id===f);if($&&$.getAttribute("aria-selected")==="true"){$.focus();return}++a<20&&r(h)};r(h)},b=c=>{const m=e.props;if(m.modelValue===c){const u=(m.itemSource??[]).filter(k=>k.id!==c);u.length>0&&p(u[u.length-1].id)}e.emit("close",c)};return{onMounted:()=>{const c=e.props;!c.modelValue&&(c.itemSource??[]).length>0&&queueMicrotask(()=>{!e.props.modelValue&&(e.props.itemSource??[]).length>0&&p(e.props.itemSource[0].id)})},render(){const c=e.props,m=c.itemSource??[],u=c.modelValue,k=ge(c,wi),x=j.styleMap({width:c.closeAble?`${c.tabWidth}px`:"",maxWidth:c.maxTabWidth?`${c.maxTabWidth}px`:void 0,display:"flex",justifyContent:c.closeAble||c.vertical?"space-between":"center",alignItems:"center"});return n.html`
508
540
  <div
509
- class=${V("moz-tabs-container",{vertical:r.vertical},r.class)}
510
- style=${ee.styleMap(be(r.style))}
511
- ${he(y)}
541
+ class=${A("moz-tabs-container",{vertical:c.vertical},c.class)}
542
+ style=${j.styleMap(he(c.style))}
543
+ ${ce(k)}
512
544
  >
513
545
  <div
514
- class=${V("moz-tabs",{vertical:r.vertical})}
546
+ class=${A("moz-tabs",{vertical:c.vertical})}
515
547
  role="tablist"
516
- aria-orientation=${r.vertical?"vertical":"horizontal"}
548
+ aria-orientation=${c.vertical?"vertical":"horizontal"}
517
549
  >
518
- ${u.map(D=>{const P=p===D.id,E=r.closeAble&&!r.vertical&&!r.maxTabWidth&&!e.slots.has(`${D.id}-tab`);return s.html`
550
+ ${m.map(S=>{const L=u===S.id,M=c.closeAble&&!c.vertical&&!c.maxTabWidth&&!e.slots.has(`${S.id}-tab`);return n.html`
519
551
  <div
520
- class=${V("moz-tab",{"current-tab":P,vertical:r.vertical,closeable:r.closeAble,"horizontal-close-default":E})}
521
- style=${L}
522
- id=${l(D.id)}
552
+ class=${A("moz-tab",{"current-tab":L,vertical:c.vertical,closeable:c.closeAble,"horizontal-close-default":M})}
553
+ style=${x}
554
+ id=${l(S.id)}
523
555
  role="tab"
524
- aria-selected=${P?"true":"false"}
525
- aria-controls=${d(D.id)}
526
- tabindex=${P?"0":"-1"}
527
- @click=${()=>f(D.id)}
528
- @mousedown=${g=>{if(g.button!==0)return;const h=g.target instanceof Element?g.target.closest("button"):null;h&&o.has(h)&&h.parentElement===g.currentTarget||f(D.id)}}
529
- @keydown=${g=>i(g,D.id)}
556
+ aria-selected=${L?"true":"false"}
557
+ aria-controls=${i(S.id)}
558
+ tabindex=${L?"0":"-1"}
559
+ @click=${()=>p(S.id)}
560
+ @mousedown=${f=>{if(f.button!==0)return;const a=f.target instanceof Element?f.target.closest("button"):null;a&&o.has(a)&&a.parentElement===f.currentTarget||p(S.id)}}
561
+ @keydown=${f=>d(f,S.id)}
530
562
  >
531
- ${e.slots.has(`${D.id}-tab`)?e.slot(`${D.id}-tab`,{text:D.text,active:P}):s.html`<p class=${V("tab-label",{active:P})}>${D.text}</p>`}
532
- ${r.closeAble?s.html`<button type="button"
533
- ${K.ref(n)}
563
+ ${e.slots.has(`${S.id}-tab`)?e.slot(`${S.id}-tab`,{text:S.text,active:L}):n.html`<p class=${A("tab-label",{active:L})}>${S.text}</p>`}
564
+ ${c.closeAble?n.html`<button type="button"
565
+ ${Y.ref(s)}
534
566
  class="tab-close-btn"
535
- aria-label=${e.locale.Tab.closeTab.replace("{label}",D.text??"")}
536
- @click=${g=>{g.stopPropagation(),c(D.id)}}
567
+ aria-label=${e.locale.Tab.closeTab.replace("{label}",S.text??"")}
568
+ @click=${f=>{f.stopPropagation(),b(S.id)}}
537
569
  >
538
- ${E?$l():gs()}
539
- </button>`:s.nothing}
570
+ ${M?vi():Fn()}
571
+ </button>`:n.nothing}
540
572
  </div>
541
573
  `})}
542
574
  </div>
543
575
  <div class="moz-tab-body">
544
- ${u.map(D=>s.html`
576
+ ${m.map(S=>n.html`
545
577
  <div
546
- class=${V("tab-panel",{active:p===D.id})}
547
- id=${d(D.id)}
578
+ class=${A("tab-panel",{active:u===S.id})}
579
+ id=${i(S.id)}
548
580
  role="tabpanel"
549
- aria-labelledby=${l(D.id)}
550
- tabindex=${p===D.id?"0":"-1"}
551
- ?hidden=${p!==D.id}
581
+ aria-labelledby=${l(S.id)}
582
+ tabindex=${u===S.id?"0":"-1"}
583
+ ?hidden=${u!==S.id}
552
584
  >
553
- ${e.slot(D.id,{active:p===D.id})}
585
+ ${e.slot(S.id,{active:u===S.id})}
554
586
  </div>
555
587
  `)}
556
588
  </div>
557
589
  </div>
558
- `}}}}),kl={name:"MozTab",core:vs,booleanProps:["closeAble","vertical"],props:["itemSource","vertical","tabWidth","maxTabWidth","closeAble","modelValue"],emits:["change","close","update:modelValue"],slots:[],expose:!1},El=new Set(["id","width","label","min","max","step","disabled","modelValue","class","style"]),ws=$e({name:"moz-slider",defaults:{id:"moz-slider-id",width:150,min:0,max:100,step:1,disabled:!1,modelValue:0},setup(e){let t=!1,o=null,n=null;const l=u=>{const p=e.props;if(!o)return;const y=o.getBoundingClientRect(),D=(u.clientX-y.left)/o.offsetWidth;let P=Math.round(p.min+(p.max-p.min)*D);P<p.min?P=p.min:P>p.max&&(P=p.max);const E=Math.round(P/p.step)*p.step;e.emit("update:modelValue",E),e.emit("change")},d=()=>{window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",d),n==null||n.focus()},a=u=>{e.props.disabled||(u.preventDefault(),n=u.currentTarget,o=n.querySelector(".moz-slider"),u.target instanceof Element&&u.target.closest(".moz-slider-handle")||l(u),window.addEventListener("mousemove",l),window.addEventListener("mouseup",d))},f=u=>{const p=e.props;let y=p.modelValue??0;u==="-"?y-=p.step:y+=p.step,y>p.max?y=p.max:y<p.min&&(y=p.min),e.emit("update:modelValue",y),e.emit("change")},i=u=>{u.key==="ArrowLeft"||u.keyCode===37?f("-"):(u.key==="ArrowRight"||u.keyCode===39)&&f("+")},c=()=>{t=!0,e.requestUpdate()},r=()=>{t=!1,e.requestUpdate()};return e.onCleanup(()=>{window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",d)}),{render(){const u=e.props,p=u.modelValue??0,y=!!u.disabled,L=u.min,D=u.max,P=typeof u.width=="number"?`${Ae(u.width)}rem`:u.width,E=typeof u.width=="number"?u.width:Number.isNaN(parseFloat(String(u.width)))?150:parseFloat(String(u.width)),h=(p-L)/(D-L)*(E-18),C=h<0?0:h,k=ye(u,El);return s.html`
559
- <div class=${V("moz-slider-wrapper",u.class)} style=${ee.styleMap(be(u.style))} ${he(k)}>
560
- ${u.label?Xe({for:u.id},u.label):s.nothing}
590
+ `}}}}),yi={name:"MozTab",core:Nn,booleanProps:["closeAble","vertical"],props:["itemSource","vertical","tabWidth","maxTabWidth","closeAble","modelValue"],emits:["change","close","update:modelValue"],slots:[],expose:!1},Jo={top:"bottom",bottom:"top",left:"right",right:"left"};function en(e,t,o,s,l,i){const r=(e==="top"||e==="bottom"?o.height:o.width)+l+i;return{top:t.top,bottom:s.height-(t.top+t.height),left:t.left,right:s.width-(t.left+t.width)}[e]>=r}function _t(e,t,o,s){return e==="start"?t:e==="end"?t+o-s:t+o/2-s/2}function lo(e,t,o){return o<t?t:Math.min(Math.max(e,t),o)}function Hn(e,t,o,s){const{align:l,sideOffset:i,collisionPadding:r}=s,p=s.arrowSize??0;let d=s.side;!en(d,e,t,o,i,r)&&en(Jo[d],e,t,o,i,r)&&(d=Jo[d]);const b=d==="top"||d==="bottom";let c,m;d==="top"?(m=e.top-t.height-i,c=_t(l,e.left,e.width,t.width)):d==="bottom"?(m=e.top+e.height+i,c=_t(l,e.left,e.width,t.width)):d==="left"?(c=e.left-t.width-i,m=_t(l,e.top,e.height,t.height)):(c=e.left+e.width+i,m=_t(l,e.top,e.height,t.height)),b?c=lo(c,r,o.width-t.width-r):m=lo(m,r,o.height-t.height-r);const u=b?e.left+e.width/2:e.top+e.height/2,k=b?c:m,x=b?t.width:t.height,S=lo(u-k,p*2,x-p*2),L={top:e.top-i-r,bottom:o.height-(e.top+e.height)-i-r,left:o.height-r*2,right:o.height-r*2},M=Math.max(0,L[d]);return{side:d,x:c,y:m,arrowOffset:S,availableHeight:M}}const Un=Hn,bi=new Set(["open","anchor","text","side","align","sideOffset","collisionPadding","arrow","appearance","sideAnchor","tooltipId","class","style"]),Ci=5;function $i(e){const{top:t,left:o,right:s,bottom:l,width:i,height:r}=e;return![t,o,s,l,i,r].every(Number.isFinite)||i<0||r<0?!1:i>0||r>0}function Si(e,t,o){if(!t||!t.isConnected)return e;const s=t.getBoundingClientRect();return $i(s)?o==="left"||o==="right"?{top:e.top,height:e.height,left:s.left,width:s.right-s.left}:{top:s.top,height:s.bottom-s.top,left:e.left,width:e.width}:e}const ki=typeof requestAnimationFrame=="function"?e=>{requestAnimationFrame(e)}:e=>{setTimeout(e,0)},no=ye({name:"moz-tooltip",defaults:{open:!1,side:"top",align:"center",sideOffset:8,collisionPadding:8,arrow:!0,appearance:"default"},setup(e){const t=Y.createRef();let o=null,s=null,l=!1;const i=()=>!!e.props.open&&!!e.props.anchor,r=()=>{const m=e.props.anchor,u=t.value;if(!m||!u||!e.props.open)return;const k=e.props.side??"top",x=Un(Si(m.getBoundingClientRect(),e.props.sideAnchor,k),{width:u.offsetWidth,height:u.offsetHeight},{width:window.innerWidth,height:window.innerHeight},{side:k,align:e.props.align??"center",sideOffset:e.props.sideOffset??8,collisionPadding:e.props.collisionPadding??8,arrowSize:Ci});o!==null&&l&&o.side===x.side&&o.x===x.x&&o.y===x.y&&o.arrowOffset===x.arrowOffset||(o=x,l=!0,e.requestUpdate(),s!==x.side&&(s=x.side,e.emit("placed",x.side)))},p=()=>{i()&&r()};typeof window<"u"&&(window.addEventListener("scroll",p,{capture:!0,passive:!0}),window.addEventListener("resize",p,{passive:!0}),e.onCleanup(()=>{window.removeEventListener("scroll",p,!0),window.removeEventListener("resize",p)}));let d=null,b=null;const c=()=>{const m=i()?e.props.sideAnchor??null:null;m!==b&&(b&&(d==null||d.unobserve(b)),b=null,!(!m||typeof ResizeObserver>"u")&&(d??(d=new ResizeObserver(()=>{i()&&r()})),d.observe(m),b=m))};return e.onCleanup(()=>{d==null||d.disconnect(),d=null,b=null}),{render(){return n.nothing},renderPortal(){const m=e.props;if(c(),!i())return o=null,s=null,l=!1,n.nothing;ki(r);const u=(o==null?void 0:o.side)??m.side??"top",k=ge(m,bi),x=u==="top"||u==="bottom"?"left":"top";return n.html`
591
+ <div
592
+ ${Y.ref(t)}
593
+ class=${A("moz-tooltip",m.class)}
594
+ role="tooltip"
595
+ id=${m.tooltipId??n.nothing}
596
+ data-side=${u}
597
+ data-align=${m.align??"center"}
598
+ data-appearance=${m.appearance==="rail"?"rail":n.nothing}
599
+ style=${j.styleMap({...he(m.style),position:"fixed",left:`${(o==null?void 0:o.x)??0}px`,top:`${(o==null?void 0:o.y)??0}px`,opacity:l?"1":"0"})}
600
+ ${ce(k)}
601
+ >
602
+ ${m.arrow?n.html`<span
603
+ class="moz-tooltip-arrow"
604
+ data-side=${u}
605
+ style=${j.styleMap({[x]:`${(o==null?void 0:o.arrowOffset)??0}px`})}
606
+ ></span>`:n.nothing}
607
+ <div class="moz-tooltip-content">
608
+ ${e.slots.has("content")?e.slot("content"):m.text??n.nothing}
609
+ </div>
610
+ </div>
611
+ `},api:{reposition:()=>r()}}}}),Mi=new Set(["id","width","label","min","max","step","disabled","modelValue","class","style"]),Wn=ye({name:"moz-slider",defaults:{id:"moz-slider-id",width:150,min:0,max:100,step:1,disabled:!1,modelValue:0},setup(e){let t=!1,o=null,s=null,l=null;const i=()=>{l==null||l.destroy(),l=null},r=()=>{i(),window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",b)},p=()=>{if(e.props.disabled){r();return}l==null||l.update({text:String(e.props.modelValue??0)},{sync:!0}),l==null||l.api.reposition()},d=S=>{const L=e.props;if(!o)return;const M=o.getBoundingClientRect(),a=(S.clientX-M.left)/o.offsetWidth;let h=Math.round(L.min+(L.max-L.min)*a);h<L.min?h=L.min:h>L.max&&(h=L.max);const $=Math.round(h/L.step)*L.step;e.emit("update:modelValue",$),e.emit("change")},b=()=>{r(),s==null||s.focus()},c=S=>{e.props.disabled||(S.preventDefault(),s=S.currentTarget,o=s.querySelector(".moz-slider"),i(),l=no(document.createElement("div"),{open:!0,anchor:s.querySelector(".moz-slider-handle"),text:String(e.props.modelValue??0),side:"top"},()=>{}),S.target instanceof Element&&S.target.closest(".moz-slider-handle")||d(S),window.addEventListener("mousemove",d),window.addEventListener("mouseup",b))},m=S=>{const L=e.props;let M=L.modelValue??0;S==="-"?M-=L.step:M+=L.step,M>L.max?M=L.max:M<L.min&&(M=L.min),e.emit("update:modelValue",M),e.emit("change")},u=S=>{S.key==="ArrowLeft"||S.keyCode===37?m("-"):(S.key==="ArrowRight"||S.keyCode===39)&&m("+")},k=()=>{t=!0,e.requestUpdate()},x=()=>{t=!1,e.requestUpdate()};return e.onCleanup(r),{render(){const S=e.props;S.disabled?r():l&&queueMicrotask(p);const L=S.modelValue??0,M=!!S.disabled,f=S.min,a=S.max,h=typeof S.width=="number"?`${Ae(S.width)}rem`:S.width,$=typeof S.width=="number"?S.width:Number.isNaN(parseFloat(String(S.width)))?150:parseFloat(String(S.width)),O=(L-f)/(a-f)*($-16),U=O<0?0:O,Q=ge(S,Mi);return n.html`
612
+ <div class=${A("moz-slider-wrapper",S.class)} style=${j.styleMap(he(S.style))} ${ce(Q)}>
613
+ ${S.label?Je({for:S.id},S.label):n.nothing}
561
614
  <div
562
- class=${V("moz-slider-container",{disabled:y,label:!!u.label})}
615
+ class=${A("moz-slider-container",{disabled:M,label:!!S.label})}
563
616
  role="slider"
564
- aria-valuenow=${String(p??0)}
565
- aria-valuemin=${String(u.min??0)}
566
- aria-valuemax=${String(u.max??100)}
617
+ aria-valuenow=${String(L??0)}
618
+ aria-valuemin=${String(S.min??0)}
619
+ aria-valuemax=${String(S.max??100)}
567
620
  aria-orientation="horizontal"
568
- aria-disabled=${y?"true":"false"}
569
- aria-label=${Ee.ifDefined(u.label)}
570
- tabindex=${y?"-1":"0"}
571
- @mousedown=${a}
572
- @focus=${c}
573
- @blur=${r}
574
- @keydown=${i}
621
+ aria-disabled=${M?"true":"false"}
622
+ aria-label=${$e.ifDefined(S.label)}
623
+ tabindex=${M?"-1":"0"}
624
+ @mousedown=${c}
625
+ @focus=${k}
626
+ @blur=${x}
627
+ @keydown=${u}
575
628
  >
576
- <div class="moz-slider" style="width:${P}">
577
- <div class="moz-slider-track" style="width:${Ae(C+10)}rem"></div>
629
+ <div class="moz-slider" style="width:${h}">
630
+ <div class="moz-slider-track" style="width:${Ae(U+8)}rem"></div>
578
631
  </div>
579
632
  <div
580
- class=${V("moz-slider-handle",{focused:t&&!y})}
581
- style="left:${Ae(C)}rem"
633
+ class=${A("moz-slider-handle",{focused:t&&!M})}
634
+ style="left:${Ae(U)}rem"
582
635
  ></div>
583
636
  </div>
584
637
  </div>
585
- `}}}}),Pl={name:"MozSlider",core:ws,booleanProps:["disabled"],props:["id","width","label","min","max","step","disabled","modelValue"],emits:["change","update:modelValue"],slots:[],expose:!1};function Ll(e="var(--moz-color-text-subtle)"){return s.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
638
+ `}}}}),Ei={name:"MozSlider",core:Wn,booleanProps:["disabled"],props:["id","width","label","min","max","step","disabled","modelValue"],emits:["change","update:modelValue"],slots:[],expose:!1};function xi(e="var(--moz-color-text-subtle)"){return n.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
586
639
  <path d="M3 4.5L6 7.5L9 4.5" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
587
- </svg>`}const bs="var(--moz-color-calendar-nav-icon)";function Ml(e=bs){return s.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
640
+ </svg>`}const Do="var(--moz-color-calendar-nav-icon)";function Li(e=Do){return n.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
588
641
  <path
589
642
  d="M3 8.5L7.05021 4.5L11 8.5"
590
643
  transform="rotate(-90 7 7)"
@@ -593,7 +646,7 @@
593
646
  stroke-linecap="round"
594
647
  stroke-linejoin="round"
595
648
  ></path>
596
- </svg>`}function xl(e=bs){return s.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
649
+ </svg>`}function zi(e=Do){return n.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
597
650
  <path
598
651
  d="M3 5.5L7.05021 9.5L11 5.5"
599
652
  transform="rotate(-90 7 7)"
@@ -602,7 +655,7 @@
602
655
  stroke-linecap="round"
603
656
  stroke-linejoin="round"
604
657
  ></path>
605
- </svg>`}function zl(e="var(--moz-color-text-subtle)"){return s.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
658
+ </svg>`}function Pi(e=Do){return n.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
606
659
  <path
607
660
  d="M11.5 2.7H2.50001C1.78204 2.7 1.20001 3.28203 1.20001 4V12C1.20001 12.718 1.78204 13.3 2.50001 13.3H11.5C12.218 13.3 12.8 12.718 12.8 12V4C12.8 3.28203 12.218 2.7 11.5 2.7Z"
608
661
  stroke=${e}
@@ -615,139 +668,139 @@
615
668
  fill=${e}
616
669
  ></path>
617
670
  <rect x="3.34009" y="7.41504" width="2.93262" height="2.93262" rx="0.5" fill=${e}></rect>
618
- </svg>`}const Tl=new Set(["rowHeight","exceptWeeks","min","max","modelValue","class","style"]),Al=(e,...t)=>e.filter(o=>!t.includes(o)),bt=12,Dl=2024,To=e=>e-((e-Dl)%bt+bt)%bt,So=$e({name:"moz-calendar",defaults:{rowHeight:36,exceptWeeks:[],min:null,max:null},setup(e){let t=e.props.modelValue?Pe(e.props.modelValue):Pe(),o=e.props.modelValue,n=!0,l=!1,d=!1,a=-1,f=To(t.year());const i=C=>{const k=e.props;return!!k.min&&C.isBefore(k.min,"day")||!!k.max&&C.isAfter(k.max,"day")},c=C=>{const k=e.props;return!!k.min&&C.endOf("year").isBefore(k.min,"day")||!!k.max&&C.startOf("year").isAfter(k.max,"day")},r=C=>{const k=e.props;return!!k.min&&C.endOf("month").isBefore(k.min,"day")||!!k.max&&C.startOf("month").isAfter(k.max,"day")},u=()=>{l?f-=bt:t=t.subtract(1,"M"),e.requestUpdate()},p=()=>{l?f+=bt:t=t.add(1,"M"),e.requestUpdate()},y=()=>{n=!0,l=!1,d=!1,e.requestUpdate()},L=()=>{f=To(t.year()),n=!1,l=!0,d=!1,e.requestUpdate()},D=()=>{n=!1,l=!1,d=!0,e.requestUpdate()},P=C=>{c(C)||(t=t.set("year",C.year()),n=!0,l=!1,d=!1,e.requestUpdate())},E=C=>{r(C)||(t=t.set("month",C.month()),n=!0,l=!1,d=!1,e.requestUpdate())},g=C=>{i(C)||e.emit("update:modelValue",Pe(C))},h=()=>g(Pe());return{render(){const C=e.props;C.modelValue!==o&&(o=C.modelValue,t=C.modelValue?Pe(C.modelValue):Pe());const k=C.rowHeight??36,Z=["ko","zh","zh-cn"].includes(Pe().locale()),W=t.hour(),Q=t.minute(),re=t.second(),ae=_=>_.set("hour",W||0).set("minute",Q||0).set("second",re||0),j=Al([0,1,2,3,4,5,6],...C.exceptWeeks??[]),$=[];{const _=ae(t.endOf("M"));let G=ae(t.startOf("M")).startOf("w");do $.push(G),G=G.add(7,"d");while(G.diff(_)<=0)}const I=k*$.length+126;I!==a&&(a=I,queueMicrotask(()=>e.emit("setMaxHeight",I)));const Y=(_,G)=>{const J=_.add(G,"d");return t.format("YYYYMMDD")!==J.format("YYYYMMDD")?t.format("MM")===J.format("MM")?"":"moz-calendar-column-otherMonth":""},ne=C.modelValue?Pe(C.modelValue).format("YYYYMMDD"):"",B=(_,G,J)=>s.html`<button
671
+ </svg>`}const Ti=new Set(["rowHeight","exceptWeeks","min","max","modelValue","class","style"]),Ai=(e,...t)=>e.filter(o=>!t.includes(o)),Et=12,Ii=2024,tn=e=>e-((e-Ii)%Et+Et)%Et,Vo=ye({name:"moz-calendar",defaults:{rowHeight:36,exceptWeeks:[],min:null,max:null},setup(e){let t=e.props.modelValue?xe(e.props.modelValue):xe(),o=e.props.modelValue,s=!0,l=!1,i=!1,r=-1,p=tn(t.year());const d=h=>{const $=e.props;return!!$.min&&h.isBefore($.min,"day")||!!$.max&&h.isAfter($.max,"day")},b=h=>{const $=e.props;return!!$.min&&h.endOf("year").isBefore($.min,"day")||!!$.max&&h.startOf("year").isAfter($.max,"day")},c=h=>{const $=e.props;return!!$.min&&h.endOf("month").isBefore($.min,"day")||!!$.max&&h.startOf("month").isAfter($.max,"day")},m=()=>{l?p-=Et:t=t.subtract(1,"M"),e.requestUpdate()},u=()=>{l?p+=Et:t=t.add(1,"M"),e.requestUpdate()},k=()=>{s=!0,l=!1,i=!1,e.requestUpdate()},x=()=>{p=tn(t.year()),s=!1,l=!0,i=!1,e.requestUpdate()},S=()=>{s=!1,l=!1,i=!0,e.requestUpdate()},L=h=>{b(h)||(t=t.set("year",h.year()),s=!0,l=!1,i=!1,e.requestUpdate())},M=h=>{c(h)||(t=t.set("month",h.month()),s=!0,l=!1,i=!1,e.requestUpdate())},f=h=>{d(h)||e.emit("update:modelValue",xe(h))},a=()=>f(xe());return{render(){const h=e.props;h.modelValue!==o&&(o=h.modelValue,t=h.modelValue?xe(h.modelValue):xe());const $=h.rowHeight??36,_=["ko","zh","zh-cn"].includes(xe().locale()),O=t.hour(),U=t.minute(),Q=t.second(),re=K=>K.set("hour",O||0).set("minute",U||0).set("second",Q||0),X=Ai([0,1,2,3,4,5,6],...h.exceptWeeks??[]),E=[];{const K=re(t.endOf("M"));let ee=re(t.startOf("M")).startOf("w");do E.push(ee),ee=ee.add(7,"d");while(ee.diff(K)<=0)}const V=$*E.length+126;V!==r&&(r=V,queueMicrotask(()=>e.emit("setMaxHeight",V)));const J=(K,ee)=>{const te=K.add(ee,"d");return t.format("YYYYMMDD")!==te.format("YYYYMMDD")?t.format("MM")===te.format("MM")?"":"moz-calendar-column-otherMonth":""},le=h.modelValue?xe(h.modelValue).format("YYYYMMDD"):"",N=(K,ee,te)=>n.html`<button
619
672
  type="button"
620
- aria-label=${J}
673
+ aria-label=${te}
621
674
  class="moz-button moz-icon-button"
622
675
  style="width:22px;height:22px;min-width:22px;min-height:22px"
623
- @click=${G}
676
+ @click=${ee}
624
677
  >
625
- ${_}
626
- </button>`,se=s.html`
678
+ ${K}
679
+ </button>`,ie=n.html`
627
680
  <div class="moz-calendar-header">
628
681
  <div class="moz-calendar-select">
629
- ${Z?s.html`
630
- <div class="moz-calendar-select__text" @click=${L}>
631
- ${new Intl.DateTimeFormat(Pe().locale(),{year:"numeric"}).format(t.toDate())}
682
+ ${_?n.html`
683
+ <div class="moz-calendar-select__text" @click=${x}>
684
+ ${new Intl.DateTimeFormat(xe().locale(),{year:"numeric"}).format(t.toDate())}
632
685
  </div>
633
- <div class="moz-calendar-select__text" @click=${D}>${t.format("MMMM")}</div>
634
- `:s.html`
635
- <div class="moz-calendar-select__text" @click=${D}>${t.format("MMMM")}</div>
636
- <div class="moz-calendar-select__text" @click=${L}>${t.format("YYYY")}</div>
686
+ <div class="moz-calendar-select__text" @click=${S}>${t.format("MMMM")}</div>
687
+ `:n.html`
688
+ <div class="moz-calendar-select__text" @click=${S}>${t.format("MMMM")}</div>
689
+ <div class="moz-calendar-select__text" @click=${x}>${t.format("YYYY")}</div>
637
690
  `}
638
- <div class="moz-calendar-select-btn" @click=${y}>${Ll("currentColor")}</div>
691
+ <div class="moz-calendar-select-btn" @click=${k}>${xi("currentColor")}</div>
639
692
  </div>
640
693
  <div class="moz-calendar-header__spacer"></div>
641
694
  <div class="moz-calendar-select-btn-group">
642
- ${B(Ml(),u,l?"이전 연도":"이전 달")}${B(zl(),h,"오늘")}${B(xl(),p,l?"다음 연도":"다음 달")}
695
+ ${N(Li(),m,l?"이전 연도":"이전 달")}${N(Pi(),a,"오늘")}${N(zi(),u,l?"다음 연도":"다음 달")}
643
696
  </div>
644
697
  </div>
645
- `,N=s.html`
698
+ `,F=n.html`
646
699
  <div class="moz-calendar-row">
647
- ${j.map(_=>s.html`<div
700
+ ${X.map(K=>n.html`<div
648
701
  class="moz-calendar-column moz-calendar-column-day"
649
- style="width: ${100/j.length}%; height: ${Ae(k)}rem;"
702
+ style="width: ${100/X.length}%; height: ${Ae($)}rem;"
650
703
  >
651
- ${Pe().day(_).format("ddd")}
704
+ ${xe().day(K).format("ddd")}
652
705
  </div>`)}
653
706
  </div>
654
- ${$.map(_=>s.html`<div class="moz-calendar-row">
655
- ${j.map(G=>{const J=_.add(G,"d");return s.html`<div
656
- class=${V("moz-calendar-column",Y(_,G),ne===J.format("YYYYMMDD")?"moz-calendar-selected":"",i(J)?"date-disable":"moz-calendar-column--hoverable")}
657
- style="width: ${100/j.length}%; height: ${Ae(k)}rem"
658
- @click=${()=>g(J)}
707
+ ${E.map(K=>n.html`<div class="moz-calendar-row">
708
+ ${X.map(ee=>{const te=K.add(ee,"d");return n.html`<div
709
+ class=${A("moz-calendar-column",J(K,ee),le===te.format("YYYYMMDD")?"moz-calendar-selected":"",d(te)?"date-disable":"moz-calendar-column--hoverable")}
710
+ style="width: ${100/X.length}%; height: ${Ae($)}rem"
711
+ @click=${()=>f(te)}
659
712
  >
660
- ${J.format("DD")}
713
+ ${te.format("DD")}
661
714
  </div>`})}
662
715
  </div>`)}
663
- `;let X=s.nothing;if(l){const _=Array.from({length:bt},(G,J)=>Pe().year(f+J).startOf("y"));X=s.html`<div class="moz-calendar-row moz-calendar-row--wrap moz-calendar-row--years">
664
- ${_.map(G=>s.html`<div
665
- class=${V("moz-calendar-column",t.format("YYYY")===G.format("YYYY")?"moz-calendar-selected":"",c(G)?"date-disable":"moz-calendar-column--hoverable")}
666
- style="width: ${100/3}%; height: ${Ae(k)}rem"
667
- @click=${()=>P(G)}
716
+ `;let oe=n.nothing;if(l){const K=Array.from({length:Et},(ee,te)=>xe().year(p+te).startOf("y"));oe=n.html`<div class="moz-calendar-row moz-calendar-row--wrap moz-calendar-row--years">
717
+ ${K.map(ee=>n.html`<div
718
+ class=${A("moz-calendar-column",t.format("YYYY")===ee.format("YYYY")?"moz-calendar-selected":"",b(ee)?"date-disable":"moz-calendar-column--hoverable")}
719
+ style="width: ${100/3}%; height: ${Ae($)}rem"
720
+ @click=${()=>L(ee)}
668
721
  >
669
- ${G.format("YYYY")}
722
+ ${ee.format("YYYY")}
670
723
  </div>`)}
671
- </div>`}let M=s.nothing;if(d){const _=[],G=t.endOf("y");let J=t.startOf("y");do _.push(J),J=J.add(1,"M");while(J.diff(G)<=0);M=s.html`<div class="moz-calendar-row moz-calendar-row--wrap">
672
- ${_.map(x=>s.html`<div
673
- class=${V("moz-calendar-column",t.format("YYYYMM")===x.format("YYYYMM")?"moz-calendar-selected":"",r(x)?"date-disable":"moz-calendar-column--hoverable")}
674
- style="width: ${100/3}%; height: ${Ae(k)}rem"
675
- @click=${()=>E(x)}
724
+ </div>`}let T=n.nothing;if(i){const K=[],ee=t.endOf("y");let te=t.startOf("y");do K.push(te),te=te.add(1,"M");while(te.diff(ee)<=0);T=n.html`<div class="moz-calendar-row moz-calendar-row--wrap">
725
+ ${K.map(P=>n.html`<div
726
+ class=${A("moz-calendar-column",t.format("YYYYMM")===P.format("YYYYMM")?"moz-calendar-selected":"",c(P)?"date-disable":"moz-calendar-column--hoverable")}
727
+ style="width: ${100/3}%; height: ${Ae($)}rem"
728
+ @click=${()=>M(P)}
676
729
  >
677
- ${x.format("MMM")}
730
+ ${P.format("MMM")}
678
731
  </div>`)}
679
- </div>`}const U=ye(C,Tl);return s.html`
732
+ </div>`}const W=ge(h,Ti);return n.html`
680
733
  <div
681
- class=${V("moz-calendar-container",d&&"moz-calendar-container--months",l&&"moz-calendar-container--years",C.class)}
682
- style=${ee.styleMap(be(C.style))}
683
- ${he(U)}
734
+ class=${A("moz-calendar-container",i&&"moz-calendar-container--months",l&&"moz-calendar-container--years",h.class)}
735
+ style=${j.styleMap(he(h.style))}
736
+ ${ce(W)}
684
737
  >
685
- ${se}${n?N:s.nothing}${X}${M}
738
+ ${ie}${s?F:n.nothing}${oe}${T}
686
739
  </div>
687
- `}}}}),Il={name:"MozCalendar",core:So,props:["rowHeight","exceptWeeks","min","max","modelValue"],emits:["changed","setMaxHeight","update:modelValue"],slots:[],expose:!1};function Vl(e="var(--moz-color-on-accent)",t="14",o=!1){return s.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
740
+ `}}}}),Ri={name:"MozCalendar",core:Vo,props:["rowHeight","exceptWeeks","min","max","modelValue"],emits:["changed","setMaxHeight","update:modelValue"],slots:[],expose:!1};function Di(e="var(--moz-color-on-accent)",t="14",o=!1){return n.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
688
741
  <path d="M8.5 3.5L5.5 7L8.5 10.5" stroke=${o?"var(--moz-color-text-muted)":e} stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"></path>
689
- </svg>`}function Rl(e="var(--moz-color-on-accent)",t="14",o=!1){return s.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
742
+ </svg>`}function Vi(e="var(--moz-color-on-accent)",t="14",o=!1){return n.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
690
743
  <path d="M5.5 3.5L8.5 7L5.5 10.5" stroke=${o?"var(--moz-color-text-muted)":e} stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"></path>
691
- </svg>`}function Ol(e="var(--moz-color-text-subtle)",t=""){return s.html`<svg class=${t} width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
744
+ </svg>`}function Oi(e="var(--moz-color-text-subtle)",t=""){return n.html`<svg class=${t} width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
692
745
  <path
693
- d="M12 2.70001H3.00001C2.28204 2.70001 1.70001 3.28204 1.70001 4.00001V12C1.70001 12.718 2.28204 13.3 3.00001 13.3H12C12.718 13.3 13.3 12.718 13.3 12V4.00001C13.3 3.28204 12.718 2.70001 12 2.70001Z"
746
+ d="M2.84618 2.94885H11.1539C11.8166 2.94885 12.3539 3.48201 12.3539 4.13969V11.4679C12.3539 12.1256 11.8166 12.6588 11.1539 12.6588H2.84618C2.18344 12.6588 1.64618 12.1256 1.64618 11.4679V4.13969C1.64618 3.48201 2.18344 2.94885 2.84618 2.94885Z"
694
747
  stroke=${e}
695
748
  stroke-width="1.4"
696
749
  ></path>
697
- <path d="M3.91699 0.899994V2.42899" stroke=${e} stroke-width="1.8" stroke-linecap="round"></path>
698
- <path d="M11.083 0.899994V2.42899" stroke=${e} stroke-width="1.8" stroke-linecap="round"></path>
750
+ <path d="M3.6926 1.3V2.70061" stroke=${e} stroke-width="1.8" stroke-linecap="round"></path>
751
+ <path d="M10.3074 1.3V2.70061" stroke=${e} stroke-width="1.8" stroke-linecap="round"></path>
699
752
  <path
700
- d="M3 2H12C12.5304 2 13.0391 2.21071 13.4142 2.58579C13.7893 2.96086 14 3.46957 14 4V6H1V4C1 3.46957 1.21071 2.96086 1.58579 2.58579C1.96086 2.21071 2.46957 2 3 2Z"
753
+ d="M2.84615 2.30764H11.1538C11.6435 2.30764 12.1131 2.50066 12.4593 2.84424C12.8055 3.18781 13 3.65381 13 4.1397V5.97176H1V4.1397C1 3.65381 1.1945 3.18781 1.54073 2.84424C1.88695 2.50066 2.35652 2.30764 2.84615 2.30764Z"
701
754
  fill=${e}
702
755
  ></path>
703
- </svg>`}const ql="YYYY-MM-DD",Bl=new Set(["label","name","width","required","disabled","readonly","format","showSpin","min","max","modelValue","class","style"]),Cs=$e({name:"moz-date-input",defaults:{label:"",width:200,required:!1,disabled:!1,readonly:!1,showSpin:!1,min:null,max:null},setup(e){let t=!1,o=270,n=e.props.modelValue,l=null,d=null;const a=new Nt,f=ot("moz-date-input-"),i=g=>{const h=e.props.modelValue;let C;g&&h instanceof Date?C=Pe(g).toDate():g&&Pe.isDayjs(h)||!h&&g?C=Pe(g):C=void 0,e.emit("update:modelValue",C)},c=((g,...h)=>{g==="update:modelValue"?i(h[0]):g==="setMaxHeight"&&(o=h[0],r.calcPosition())}),r=new Kt({anchor:()=>l==null?void 0:l.querySelector(".moz-date-input-wrapper"),panel:()=>a.element,maxHeight:()=>o,ignoreScrollTargets:g=>(g&&typeof g.className=="string"?g.className:"").split(" ").includes("moz-calendar-row"),container:()=>l,requestClose:()=>{t&&(t=!1,y(),e.requestUpdate())}}),u=g=>{var h;g.key!=="Escape"||!t||(g.preventDefault(),g.stopPropagation(),t=!1,y(),(h=l==null?void 0:l.querySelector("input"))==null||h.focus(),e.requestUpdate())},p=()=>{const g=a.open("calendar-container moz-date-input-calendar");g.addEventListener("keydown",u),d=So(g,{modelValue:e.props.modelValue,min:e.props.min,max:e.props.max},c),r.open()},y=()=>{var g;(g=a.element)==null||g.removeEventListener("keydown",u),r.close(),d==null||d.destroy(),d=null,a.close(),e.emit("close")},L=()=>{var h;const g=e.props;g.disabled||g.readonly||(t=!t,t?((h=l==null?void 0:l.querySelector("input"))==null||h.focus(),p()):y(),e.requestUpdate())},D=()=>{e.props.disabled||e.props.readonly||e.props.modelValue&&i(Pe(e.props.modelValue).subtract(1,"d"))},P=()=>{e.props.disabled||e.props.readonly||e.props.modelValue&&i(Pe(e.props.modelValue).add(1,"d"))},E=g=>{const h=g.target,C=e.props.modelValue;C?Pe.isDayjs(C)&&Pe(h.value).isValid()?i(Pe(h.value)):C instanceof Date&&!Number.isNaN(Date.parse(h.value))?i(new Date(h.value)):i(void 0):i(Pe(h.value))};return e.onCleanup(()=>{var g;r.destroy(),t=!1,(g=a.element)==null||g.removeEventListener("keydown",u),d==null||d.destroy(),a.close()}),{onMounted:g=>{l=g},render(){const g=e.props;if(g.modelValue!==n){n=g.modelValue;const j=g.modelValue;queueMicrotask(()=>e.emit("change",j)),d&&d.update({modelValue:g.modelValue})}const h=g.format||ql,C=typeof g.width=="number"?`${Ae(g.width)}rem`:g.width,k=g.modelValue?Pe(g.modelValue).format(h):"",Z=!!g.min&&Pe(k).isSameOrBefore(Pe(g.min),"day"),W=!!g.max&&Pe(k).isSameOrAfter(Pe(g.max),"day"),Q=ye(g,Bl),re=g.id==null||g.id===""?f:String(g.id),ae=(j,$,I,Y)=>s.html`<button
756
+ </svg>`}const _i="YYYY-MM-DD",Bi=new Set(["label","name","width","required","disabled","readonly","format","showSpin","min","max","modelValue","class","style"]),Kn=ye({name:"moz-date-input",defaults:{label:"",width:200,required:!1,disabled:!1,readonly:!1,showSpin:!1,min:null,max:null},setup(e){let t=!1,o=270,s=e.props.modelValue,l=null,i=null;const r=new Yt,p=Qe("moz-date-input-"),d=f=>{const a=e.props.modelValue;let h;f&&a instanceof Date?h=xe(f).toDate():f&&xe.isDayjs(a)||!a&&f?h=xe(f):h=void 0,e.emit("update:modelValue",h)},b=((f,...a)=>{f==="update:modelValue"?d(a[0]):f==="setMaxHeight"&&(o=a[0],c.calcPosition())}),c=new to({anchor:()=>l==null?void 0:l.querySelector(".moz-date-input-wrapper"),panel:()=>r.element,maxHeight:()=>o,ignoreScrollTargets:f=>(f&&typeof f.className=="string"?f.className:"").split(" ").includes("moz-calendar-row"),container:()=>l,requestClose:()=>{t&&(t=!1,k(),e.requestUpdate())}}),m=f=>{var a;f.key!=="Escape"||!t||(f.preventDefault(),f.stopPropagation(),t=!1,k(),(a=l==null?void 0:l.querySelector("input"))==null||a.focus(),e.requestUpdate())},u=()=>{const f=r.open("calendar-container moz-date-input-calendar");f.addEventListener("keydown",m),i=Vo(f,{modelValue:e.props.modelValue,min:e.props.min,max:e.props.max},b),c.open()},k=()=>{var f;(f=r.element)==null||f.removeEventListener("keydown",m),c.close(),i==null||i.destroy(),i=null,r.close(),e.emit("close")},x=()=>{var a;const f=e.props;f.disabled||f.readonly||(t=!t,t?((a=l==null?void 0:l.querySelector("input"))==null||a.focus(),u()):k(),e.requestUpdate())},S=()=>{e.props.disabled||e.props.readonly||e.props.modelValue&&d(xe(e.props.modelValue).subtract(1,"d"))},L=()=>{e.props.disabled||e.props.readonly||e.props.modelValue&&d(xe(e.props.modelValue).add(1,"d"))},M=f=>{const a=f.target,h=e.props.modelValue;h?xe.isDayjs(h)&&xe(a.value).isValid()?d(xe(a.value)):h instanceof Date&&!Number.isNaN(Date.parse(a.value))?d(new Date(a.value)):d(void 0):d(xe(a.value))};return e.onCleanup(()=>{var f;c.destroy(),t=!1,(f=r.element)==null||f.removeEventListener("keydown",m),i==null||i.destroy(),r.close()}),{onMounted:f=>{l=f},render(){const f=e.props;if(f.modelValue!==s){s=f.modelValue;const X=f.modelValue;queueMicrotask(()=>e.emit("change",X)),i&&i.update({modelValue:f.modelValue})}const a=f.format||_i,h=typeof f.width=="number"?`${Ae(f.width)}rem`:f.width,$=f.modelValue?xe(f.modelValue).format(a):"",_=!!f.min&&xe($).isSameOrBefore(xe(f.min),"day"),O=!!f.max&&xe($).isSameOrAfter(xe(f.max),"day"),U=ge(f,Bi),Q=f.id==null||f.id===""?p:String(f.id),re=(X,E,V,J)=>n.html`<button
704
757
  type="button"
705
- aria-label=${$==="left"?e.locale.DateInput.prevDate:e.locale.DateInput.nextDate}
706
- class=${V("moz-button","moz-icon-button","moz-icon-accent-button","moz-icon-text-button","date-move-btn",`date-move-btn--${$}`,{"date-move-btn--disabled":I})}
707
- ?disabled=${I}
708
- @click=${Y}
758
+ aria-label=${E==="left"?e.locale.DateInput.prevDate:e.locale.DateInput.nextDate}
759
+ class=${A("moz-button","moz-icon-button","moz-icon-accent-button","moz-icon-text-button","date-move-btn",`date-move-btn--${E}`,{"date-move-btn--disabled":V})}
760
+ ?disabled=${V}
761
+ @click=${J}
709
762
  >
710
- ${j}
711
- </button>`;return s.html`
763
+ ${X}
764
+ </button>`;return n.html`
712
765
  <div
713
- class=${V("moz-date-input-container",{disabled:g.disabled},g.class)}
714
- style=${ee.styleMap({...be(g.style),width:C})}
766
+ class=${A("moz-date-input-container",{disabled:f.disabled},f.class)}
767
+ style=${j.styleMap({...he(f.style),width:h})}
715
768
  >
716
- ${g.label?Xe({for:re,disabled:g.disabled},s.html`${g.label}${g.required?s.html`<span class="require-mark">*</span>`:s.nothing}`):s.nothing}
717
- <div class="moz-date-input-wrapper" style="width:${C}">
718
- ${g.showSpin?ae(Vl("var(--moz-color-on-accent)","14",g.disabled||Z),"left",!!g.disabled||!!g.readonly||Z,D):s.nothing}
769
+ ${f.label?Je({for:Q,disabled:f.disabled},n.html`${f.label}${f.required?n.html`<span class="require-mark">*</span>`:n.nothing}`):n.nothing}
770
+ <div class="moz-date-input-wrapper" style="width:${h}">
771
+ ${f.showSpin?re(Di("var(--moz-color-on-accent)","14",f.disabled||_),"left",!!f.disabled||!!f.readonly||_,S):n.nothing}
719
772
  <div
720
- class=${V("moz-date-input",{"moz-date-input--no-lr-border":g.showSpin,"moz-date-input--radius":!g.showSpin,"moz-date-input--disabled":g.disabled,"moz-date-input--open":t&&!g.disabled})}
721
- @click=${L}
722
- @keydown=${u}
773
+ class=${A("moz-date-input",{"moz-date-input--no-lr-border":f.showSpin,"moz-date-input--radius":!f.showSpin,"moz-date-input--disabled":f.disabled,"moz-date-input--open":t&&!f.disabled})}
774
+ @click=${x}
775
+ @keydown=${m}
723
776
  >
724
777
  <input
725
- id=${re}
726
- .value=${k}
727
- name=${Ee.ifDefined(g.name)}
728
- ?disabled=${!!g.disabled}
729
- ?readonly=${!!g.readonly}
730
- class=${V("moz-date-input__field",{"moz-date-input__field--disabled":g.disabled})}
731
- ${he(Q)}
732
- @change=${E}
778
+ id=${Q}
779
+ .value=${$}
780
+ name=${$e.ifDefined(f.name)}
781
+ ?disabled=${!!f.disabled}
782
+ ?readonly=${!!f.readonly}
783
+ class=${A("moz-date-input__field",{"moz-date-input__field--disabled":f.disabled})}
784
+ ${ce(U)}
785
+ @change=${M}
733
786
  />
734
- ${g.readonly?s.nothing:s.html`<div class="moz-date-input__icon-container">
735
- ${Ol("currentColor",V("moz-date-input__icon",{"moz-date-input__icon--disabled":g.disabled}))}
787
+ ${f.readonly?n.nothing:n.html`<div class="moz-date-input__icon-container">
788
+ ${Oi("currentColor",A("moz-date-input__icon",{"moz-date-input__icon--disabled":f.disabled}))}
736
789
  </div>`}
737
790
  </div>
738
- ${g.showSpin?ae(Rl("var(--moz-color-on-accent)","14",g.disabled||W),"right",!!g.disabled||!!g.readonly||W,P):s.nothing}
791
+ ${f.showSpin?re(Vi("var(--moz-color-on-accent)","14",f.disabled||O),"right",!!f.disabled||!!f.readonly||O,L):n.nothing}
739
792
  </div>
740
793
  </div>
741
- `}}}}),Fl={name:"MozDateInput",core:Cs,booleanProps:["disabled","readonly","required","showSpin"],props:["label","name","width","required","disabled","readonly","format","showSpin","min","max","modelValue"],emits:["change","focus","focusOut","close","update:modelValue"],slots:[],expose:!1};function xt(e){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:12,height:12}}function Nl(e="10",t="var(--moz-color-text-muted)",o=!1,n=!1,l=""){const d=xt(e),a=l||s.nothing;return d.width<=10?s.html`<svg class=${a} width=${d.width} height=${d.height} viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
794
+ `}}}}),qi={name:"MozDateInput",core:Kn,booleanProps:["disabled","readonly","required","showSpin"],props:["label","name","width","required","disabled","readonly","format","showSpin","min","max","modelValue"],emits:["change","focus","focusOut","close","update:modelValue"],slots:[],expose:!1};function Dt(e){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:12,height:12}}function Fi(e="10",t="var(--moz-color-text-muted)",o=!1,s=!1,l=""){const i=Dt(e),r=l||n.nothing;return i.width<=10?n.html`<svg class=${r} width=${i.width} height=${i.height} viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
742
795
  <path d="M8.5 1.5L1.49999 8.50001" stroke=${t} stroke-width="1.75" stroke-linecap="round"></path>
743
796
  <path d="M1.5 1.5L8.50001 8.50001" stroke=${t} stroke-width="1.75" stroke-linecap="round"></path>
744
- </svg>`:d.width<=13&&d.width>=11&&!n?s.html`<svg class=${a} width=${d.width} height=${d.height} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
797
+ </svg>`:i.width<=13&&i.width>=11&&!s?n.html`<svg class=${r} width=${i.width} height=${i.height} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
745
798
  <path d="M1.71436 1.71428L10.8069 10.7926" stroke=${t} stroke-width="2" stroke-linecap="round"></path>
746
799
  <path d="M10.8069 1.71428L1.71436 10.7926" stroke=${t} stroke-width="2" stroke-linecap="round"></path>
747
- </svg>`:d.width<=13&&d.width>=11&&n?s.html`<svg class=${a} width=${d.width} height=${d.height} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
800
+ </svg>`:i.width<=13&&i.width>=11&&s?n.html`<svg class=${r} width=${i.width} height=${i.height} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
748
801
  <path d="M10.2 1.7998L1.79994 10.1998" stroke=${t} stroke-width="1.6" stroke-linecap="round"></path>
749
802
  <path d="M1.79993 1.7998L10.1999 10.1998" stroke=${t} stroke-width="1.6" stroke-linecap="round"></path>
750
- </svg>`:s.html`<svg class=${a} width=${d.width} height=${d.height} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
803
+ </svg>`:n.html`<svg class=${r} width=${i.width} height=${i.height} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
751
804
  <g>
752
805
  <g>
753
806
  <path
@@ -764,7 +817,7 @@
764
817
  ></path>
765
818
  </g>
766
819
  </g>
767
- </svg>`}function Hl(e="30",t="var(--moz-color-danger)",o=""){const n=xt(e);return s.html`<svg class=${o||s.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
820
+ </svg>`}function Ni(e="30",t="var(--moz-color-danger)",o=""){const s=Dt(e);return n.html`<svg class=${o||n.nothing} width=${s.width} height=${s.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
768
821
  <mask id="mask0_6027_4458" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
769
822
  <g><path d="M30 0H0V30H30V0Z" fill="#FFF"></path></g>
770
823
  </mask>
@@ -776,7 +829,7 @@
776
829
  ></path>
777
830
  </g>
778
831
  </g>
779
- </svg>`}function _l(e="30",t="var(--moz-color-accent)",o=""){const n=xt(e);return s.html`<svg class=${o||s.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
832
+ </svg>`}function on(e="30",t="var(--moz-color-accent)",o=""){const s=Dt(e);return n.html`<svg class=${o||n.nothing} width=${s.width} height=${s.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
780
833
  <g>
781
834
  <path
782
835
  fill-rule="evenodd"
@@ -785,7 +838,7 @@
785
838
  fill=${t}
786
839
  ></path>
787
840
  </g>
788
- </svg>`}function Ul(e="30",t="var(--moz-color-success)",o=""){const n=xt(e);return s.html`<svg class=${o||s.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
841
+ </svg>`}function Hi(e="30",t="var(--moz-color-success)",o=""){const s=Dt(e);return n.html`<svg class=${o||n.nothing} width=${s.width} height=${s.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
789
842
  <g>
790
843
  <path
791
844
  fill-rule="evenodd"
@@ -794,7 +847,7 @@
794
847
  fill=${t}
795
848
  ></path>
796
849
  </g>
797
- </svg>`}function Wl(e="30",t="var(--moz-color-warning)",o=""){const n=xt(e);return s.html`<svg class=${o||s.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
850
+ </svg>`}function Ui(e="30",t="var(--moz-color-warning)",o=""){const s=Dt(e);return n.html`<svg class=${o||n.nothing} width=${s.width} height=${s.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
798
851
  <mask id="mask0_6027_4463" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
799
852
  <g><path d="M30 0H0V30H30V0Z" fill="#FFF"></path></g>
800
853
  </mask>
@@ -806,48 +859,47 @@
806
859
  ></path>
807
860
  </g>
808
861
  </g>
809
- </svg>`}const Kl=new Set(["title","minWidth","minHeight","maxWidth","maxHeight","draggable","resizeable","keepAspectRatio","disabledConfirmButton","showCloseButton","dialogClass","showHeader","closeOnOutsideClick","preset","dialogIcon","dialogMessage","onCancel","onBeforeClose","onBeforeUnload","onConfirm","onBeforeConfirm","loading","contentsPadding","class","style","useVShow","top","left","showFooterBorder","action","saveText","cancelText","okText","closeText","visible","width","height","focusTrap","lockScroll","side","showBackdrop","autoPosition","hideOthers"]);let Et=0,ys="";const Gl=()=>{Et===0&&(ys=document.body.style.overflow,document.body.style.overflow="hidden"),Et+=1},Zl=()=>{Et!==0&&(Et-=1,Et===0&&(document.body.style.overflow=ys))},Yl='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',$s=$e({name:"moz-popup",portal:!0,defaults:{title:"Popup",minWidth:300,minHeight:100,maxWidth:800,maxHeight:600,draggable:!0,resizeable:!1,keepAspectRatio:!1,disabledConfirmButton:!1,showCloseButton:!0,showHeader:!0,closeOnOutsideClick:!0,preset:"close",dialogIcon:"info",loading:!1,contentsPadding:"24px 16px",useVShow:!1,top:null,left:null,showFooterBorder:!0,focusTrap:!1,lockScroll:!1,showBackdrop:!0,autoPosition:!0,hideOthers:!1},setup(e){const t=K.createRef(),o=K.createRef(),n=ot("moz-popup-title-"),l=ot("moz-popup-desc-");let d=null,a=e.props.visible??!1,f=e.props.width,i=e.props.height;const c=()=>e.controlled("visible")?!!e.props.visible:a,r=z=>{e.controlled("visible")||(a=z),e.emit("update:visible",z),e.requestUpdate()},u=()=>e.controlled("width")?e.props.width:f,p=z=>{e.controlled("width")||(f=z),e.emit("update:width",z),e.requestUpdate()},y=()=>e.controlled("height")?e.props.height:i,L=z=>{e.controlled("height")||(i=z),e.emit("update:height",z),e.requestUpdate()};let D=0,P=0,E=!1;const g=!0;let h=null;const C={mouseDown:!1,dragging:!1,offset:{x:0,y:0}};let k=c(),Z=!1,W=!1,Q=null,re=[];const ae=()=>{const z=t.value;if(z)for(const de of Array.from(document.body.children))de instanceof HTMLElement&&(de.contains(z)||de.getAttribute("aria-hidden")!=="true"&&(de.setAttribute("aria-hidden","true"),re.push(de)))},j=()=>{for(const z of re)z.removeAttribute("aria-hidden");re=[]},$=()=>{const z=t.value;return z?Array.from(z.querySelectorAll(Yl)).filter(de=>de.getAttribute("aria-hidden")!=="true"):[]},I=()=>{const z=document.querySelectorAll(".moz-popup");return z.length>0&&z[z.length-1]===t.value},Y=()=>{d||(d=mo(()=>T()))},ne=()=>{d==null||d.release(),d=null},B=()=>{Z||(Z=!0,Y(),e.props.lockScroll&&(Gl(),W=!0),e.props.focusTrap&&(Q=document.activeElement instanceof HTMLElement?document.activeElement:null,queueMicrotask(()=>{const z=t.value;!z||!c()||($()[0]??z).focus()})),e.props.hideOthers&&queueMicrotask(()=>{c()&&ae()}))},se=()=>{if(ne(),!Z)return;Z=!1,W&&(Zl(),W=!1),j();const z=Q;Q=null,z&&z.isConnected&&z.focus()},N=()=>{const z=t.value;if(!z)return;const de=e.props,Ie=de.top!=null?de.top:window.innerHeight/2-z.offsetHeight/2,w=de.left!=null?de.left:window.innerWidth/2-z.offsetWidth/2;Ie===P&&w===D||(P=Ie,D=w,e.requestUpdate())};let X=null,M=null;const U=()=>{if(typeof ResizeObserver>"u")return;const z=t.value;!z||z===M||(X??(X=new ResizeObserver(()=>{!c()||e.props.side||e.props.autoPosition===!1||E||N()})),M&&X.unobserve(M),X.observe(z),M=z)},_=()=>{e.props.side||e.props.autoPosition===!1||queueMicrotask(()=>{N(),U()})},G=()=>{!c()||e.props.side||e.props.autoPosition===!1||E||_()},J=()=>{c()||r(!0),e.emit("open"),_(),B()},x=async()=>{let z=!0;return e.props.onBeforeClose?z=await e.props.onBeforeClose()??!0:e.emit("close:before",z),z},m=async z=>{await x()&&(z||!c()||(r(!1),e.props.onCancel?e.props.onCancel():e.emit("close"),e.emit("hidden")))},T=()=>m(!1),A=async()=>{let z=!0;return e.props.onBeforeConfirm?z=await e.props.onBeforeConfirm()??!0:e.emit("confirm:before",z),z},F=async()=>{await A()&&c()&&(r(!1),e.props.onConfirm?e.props.onConfirm():e.emit("confirm"),e.emit("hidden"))},ce=()=>{e.props.onBeforeUnload&&e.props.onBeforeUnload()},ke=()=>{e.props.closeOnOutsideClick&&T()},Me=z=>{z?J():(se(),ce(),m(!0))},Ne=(z,de)=>{document.addEventListener("mouseup",z),document.addEventListener("mousemove",de)},qe=(z,de)=>{document.removeEventListener("mouseup",z),document.removeEventListener("mousemove",de)},st=z=>{const de=D-z.clientX,Ie=P-z.clientY;C.mouseDown=!0,C.offset.x=de,C.offset.y=Ie,e.emit("drag-start")},Qe=z=>{e.props.draggable&&(z.clientX===0&&h&&(z=h),z&&z.clientX&&z.clientY&&(D=z.clientX+C.offset.x,P=z.clientY+C.offset.y,E=!0,e.requestUpdate()))},Je=z=>{z.clientX!==0&&z.clientY!==0&&(h=z),C.mouseDown&&g&&(C.dragging=!0,Qe(z))},Be=()=>{C.dragging&&e.emit("drag-end"),C.mouseDown=!1,setTimeout(()=>{C.dragging=!1,qe(Be,Je)},100)},He=z=>{e.props.side||e.props.autoPosition===!1||(z.preventDefault(),Ne(Be,Je),st(z))},Le=z=>{z.preventDefault();const de=t.value;if(!de)return;const Ie=de.getBoundingClientRect(),w=u()??Ie.width,H=y()??Ie.height;if(!w||!H)return;const te=w/H,me={x:z.clientX,y:z.clientY},ve=e.props,Oe=Se=>{let Ze=Se.clientX-me.x,Te=Se.clientY-me.y;if(ve.keepAspectRatio){const at=Ze/te;Math.abs(Te)>Math.abs(at)?Te=at:Ze=Te*te}const De=Math.max(ve.minWidth,Math.min(w+Ze,ve.maxWidth));let et=Math.max(ve.minHeight,Math.min(H+Te,ve.maxHeight));ve.keepAspectRatio&&De/et!==te&&(et=De/te),p(De),L(et)},Ce=()=>{document.removeEventListener("mousemove",Oe),document.removeEventListener("mouseup",Ce)};document.addEventListener("mousemove",Oe),document.addEventListener("mouseup",Ce)},_e=z=>{if(z.key==="Tab"&&e.props.focusTrap&&c()&&I()){if(d&&!d.isTopmost())return;const de=t.value;if(!de)return;const Ie=$();if(Ie.length===0){z.preventDefault(),de.focus();return}const w=Ie[0],H=Ie[Ie.length-1],te=document.activeElement,me=te instanceof Node&&de.contains(te);z.shiftKey?(!me||te===w||te===de)&&(z.preventDefault(),H.focus()):(!me||te===H)&&(z.preventDefault(),w.focus());return}};e.onCleanup(()=>{X==null||X.disconnect(),X=null,M=null,se(),window.removeEventListener("keydown",_e),window.removeEventListener("resize",G),ce(),window.removeEventListener("unload",ce),qe(Be,Je)});const Ue=()=>{const z=e.props;if(z.action)return z.action;const de=e.locale.Popup;switch(z.preset){case"save":return{positive:z.saveText??de.save,negative:z.cancelText??de.cancel};case"check":return{positive:z.okText??de.ok};case"close":return{negative:z.closeText??de.close};case"confirm":default:return{positive:z.okText??de.ok,negative:z.cancelText??de.cancel}}},rt=z=>{switch(z){case"error":return Hl("30","var(--moz-color-danger)","dialog-icon");case"info":return _l("30","var(--moz-color-accent)","dialog-icon");case"success":return Ul("30","var(--moz-color-success)","dialog-icon");case"warning":return Wl("30","var(--moz-color-warning)","dialog-icon");default:return s.nothing}};return{api:{resetPosition:_},onMounted:()=>{window.addEventListener("keydown",_e),window.addEventListener("resize",G),window.addEventListener("unload",ce),queueMicrotask(()=>e.emit("init",o.value??null)),c()&&(_(),B())},render(){const z=e.props,de=c();if(de!==k){const mt=de;k=de,mt?Y():ne(),queueMicrotask(()=>Me(mt))}if(!(z.useVShow?!0:de))return s.nothing;const w=z.useVShow?!de:!1,H=u(),te=y(),me=z.side,ve=!!me||z.autoPosition===!1,Oe={...be(z.style),...H?{width:`${Ae(H)}rem`}:{},...te?{height:`${Ae(te)}rem`}:{},...ve?{}:{left:`${Ae(D)}rem`,top:`${Ae(P)}rem`}},Ce=!!z.draggable&&!ve,Se=!!z.resizeable&&!me,Ze=typeof z.contentsPadding=="number"?`${Ae(z.contentsPadding)}rem`:z.contentsPadding,Te=Ue(),De=ye(z,Kl),et=e.slots.has("title")?e.slot("title"):s.html`<span class="truncate">${z.title}</span>`,at=e.slots.has("description"),Ct=e.slots.has("default")?e.slot("default"):s.html`<div class="moz-dialog-body">
810
- ${rt(z.dialogIcon)}
811
- <div class="dialog-message">${z.dialogMessage!=null?_o.unsafeHTML(z.dialogMessage):s.nothing}</div>
812
- </div>`,ht=e.slots.has("footer")?e.slot("footer",{onConfirm:F,onCancel:T}):s.html`
813
- ${Te.positive?kt({class:"preset-btn",loading:z.loading,disabled:z.disabledConfirmButton,style:"min-width: 80px"},{onClick:F,content:Te.positive}):s.nothing}
814
- ${Te.negative?kt({class:"preset-btn",type:"outline",disabled:z.loading,style:"min-width: 80px"},{onClick:T,content:Te.negative}):s.nothing}
815
- `;return s.html`
862
+ </svg>`}const Wi=new Set(["title","minWidth","minHeight","maxWidth","maxHeight","draggable","resizeable","keepAspectRatio","disabledConfirmButton","showCloseButton","dialogClass","showHeader","closeOnOutsideClick","preset","dialogIcon","dialogMessage","onCancel","onBeforeClose","onBeforeUnload","onConfirm","onBeforeConfirm","loading","contentsPadding","class","style","useVShow","top","left","showFooterBorder","action","saveText","cancelText","okText","closeText","visible","width","height","focusTrap","lockScroll","side","showBackdrop","autoPosition","hideOthers","fitViewport","returnFocusTo"]);let Pt=0,Zn="";const Ki=()=>{Pt===0&&(Zn=document.body.style.overflow,document.body.style.overflow="hidden"),Pt+=1},Zi=()=>{Pt!==0&&(Pt-=1,Pt===0&&(document.body.style.overflow=Zn))},fo='a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Gn=e=>e.getAttribute("aria-hidden")!=="true";function nn(e){const t=e.querySelector("[data-autofocus]");if(!t)return[];const o=t.matches(fo)?[t]:[];return o.push(...Array.from(t.querySelectorAll(fo))),o.filter(Gn)}function io(e){for(const t of e)if(t.focus(),document.activeElement===t)return t;return null}const Yn=ye({name:"moz-popup",portal:!0,defaults:{title:"Popup",minWidth:300,minHeight:100,maxWidth:800,maxHeight:600,draggable:!0,resizeable:!1,keepAspectRatio:!1,disabledConfirmButton:!1,showCloseButton:!0,showHeader:!0,closeOnOutsideClick:!0,preset:"close",dialogIcon:"info",loading:!1,contentsPadding:"24px 16px",useVShow:!1,top:null,left:null,showFooterBorder:!0,focusTrap:!1,lockScroll:!1,showBackdrop:!0,autoPosition:!0,hideOthers:!1,fitViewport:!1},setup(e){const t=Y.createRef(),o=Y.createRef(),s=()=>{const w=o.value,G=t.value;!w||!G||(G.classList.toggle("moz-popup-scrolled",w.scrollTop>0),G.classList.toggle("moz-popup-scroll-more",w.scrollTop+w.clientHeight<w.scrollHeight-1))},l=Qe("moz-popup-title-"),i=()=>!!e.props.side||e.props.autoPosition===!1||!!e.props.fitViewport,r=Qe("moz-popup-desc-");let p=null,d=e.props.visible??!1,b=e.props.width,c=e.props.height;const m=()=>e.controlled("visible")?!!e.props.visible:d,u=w=>{e.controlled("visible")||(d=w),e.emit("update:visible",w),e.requestUpdate()},k=()=>e.controlled("width")?e.props.width:b,x=w=>{e.controlled("width")||(b=w),e.emit("update:width",w),e.requestUpdate()},S=()=>e.controlled("height")?e.props.height:c,L=w=>{e.controlled("height")||(c=w),e.emit("update:height",w),e.requestUpdate()};let M=0,f=0,a=!1;const h=!0;let $=null;const _={mouseDown:!1,dragging:!1,offset:{x:0,y:0}};let O=m(),U=!1,Q=!1,re=null,X=[];const E=()=>{const w=t.value;if(w)for(const G of Array.from(document.body.children))G instanceof HTMLElement&&(G.contains(w)||G.getAttribute("aria-hidden")!=="true"&&(G.setAttribute("aria-hidden","true"),X.push(G)))},V=()=>{for(const w of X)w.removeAttribute("aria-hidden");X=[]},J=()=>{const w=t.value;return w?Array.from(w.querySelectorAll(fo)).filter(Gn):[]},le=()=>{const w=document.querySelectorAll(".moz-popup");return w.length>0&&w[w.length-1]===t.value},N=()=>{p||(p=Eo(()=>Me()))},ie=()=>{p==null||p.release(),p=null};let F=null;const oe=()=>{F==null||F.disconnect(),F=null},T=(w,G)=>{typeof MutationObserver>"u"||(oe(),F=new MutationObserver(()=>{if(!m()||t.value!==w||document.activeElement!==G){oe();return}io(nn(w))&&oe()}),F.observe(w,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-autofocus"]}))},W=()=>{U||(U=!0,N(),e.props.lockScroll&&(Ki(),Q=!0),e.props.focusTrap&&(re=document.activeElement instanceof HTMLElement?document.activeElement:null,queueMicrotask(()=>{const w=t.value;!w||!m()||io(nn(w))||(io(J())||w.focus(),T(w,document.activeElement))})),e.props.hideOthers&&queueMicrotask(()=>{m()&&E()}))},K=()=>{if(ie(),oe(),!U)return;U=!1,Q&&(Zi(),Q=!1),V();const w=e.props.focusTrap?e.props.returnFocusTo:null,G=w instanceof HTMLElement&&w.isConnected?w:re;re=null,G&&G.isConnected&&G.focus()},ee=()=>{const w=t.value;if(!w)return;const G=e.props,me=G.top!=null?G.top:window.innerHeight/2-w.offsetHeight/2,Ee=G.left!=null?G.left:window.innerWidth/2-w.offsetWidth/2;me===f&&Ee===M||(f=me,M=Ee,e.requestUpdate())};let te=null,P=null;const g=()=>{if(typeof ResizeObserver>"u")return;const w=t.value;!w||w===P||(te??(te=new ResizeObserver(()=>{!m()||i()||a||(ee(),s())})),P&&te.unobserve(P),te.observe(w),P=w)},R=()=>{i()||queueMicrotask(()=>{ee(),g()})},I=()=>{!m()||i()||a||R()},H=()=>{m()||u(!0),e.emit("open"),R(),W()},pe=async()=>{let w=!0;return e.props.onBeforeClose?w=await e.props.onBeforeClose()??!0:e.emit("close:before",w),w},ke=async w=>{await pe()&&(w||!m()||(u(!1),e.props.onCancel?e.props.onCancel():e.emit("close"),e.emit("hidden")))},Me=()=>ke(!1),He=async()=>{let w=!0;return e.props.onBeforeConfirm?w=await e.props.onBeforeConfirm()??!0:e.emit("confirm:before",w),w},Fe=async()=>{await He()&&m()&&(u(!1),e.props.onConfirm?e.props.onConfirm():e.emit("confirm"),e.emit("hidden"))},Ge=()=>{e.props.onBeforeUnload&&e.props.onBeforeUnload()},et=()=>{e.props.closeOnOutsideClick&&Me()},lt=w=>{w?H():(K(),Ge(),ke(!0))},Ke=(w,G)=>{document.addEventListener("mouseup",w),document.addEventListener("mousemove",G)},Ue=(w,G)=>{document.removeEventListener("mouseup",w),document.removeEventListener("mousemove",G)},ze=w=>{const G=M-w.clientX,me=f-w.clientY;_.mouseDown=!0,_.offset.x=G,_.offset.y=me,e.emit("drag-start")},Ze=w=>{e.props.draggable&&(w.clientX===0&&$&&(w=$),w&&w.clientX&&w.clientY&&(M=w.clientX+_.offset.x,f=w.clientY+_.offset.y,a=!0,e.requestUpdate()))},Be=w=>{w.clientX!==0&&w.clientY!==0&&($=w),_.mouseDown&&h&&(_.dragging=!0,Ze(w))},ot=()=>{_.dragging&&e.emit("drag-end"),_.mouseDown=!1,setTimeout(()=>{_.dragging=!1,Ue(ot,Be)},100)},mt=w=>{i()||(w.preventDefault(),Ke(ot,Be),ze(w))},Ye=w=>{w.preventDefault();const G=t.value;if(!G)return;const me=G.getBoundingClientRect(),Ee=k()??me.width,ve=S()??me.height;if(!Ee||!ve)return;const Ce=Ee/ve,Ie={x:w.clientX,y:w.clientY},Re=e.props,Pe=ft=>{let ct=ft.clientX-Ie.x,nt=ft.clientY-Ie.y;if(Re.keepAspectRatio){const D=ct/Ce;Math.abs(nt)>Math.abs(D)?nt=D:ct=nt*Ce}const rt=Math.max(Re.minWidth,Math.min(Ee+ct,Re.maxWidth));let v=Math.max(Re.minHeight,Math.min(ve+nt,Re.maxHeight));Re.keepAspectRatio&&rt/v!==Ce&&(v=rt/Ce),x(rt),L(v)},qe=()=>{document.removeEventListener("mousemove",Pe),document.removeEventListener("mouseup",qe)};document.addEventListener("mousemove",Pe),document.addEventListener("mouseup",qe)},at=w=>{if(w.key==="Tab"&&e.props.focusTrap&&m()&&le()){if(p&&!p.isTopmost())return;const G=t.value;if(!G)return;const me=J();if(me.length===0){w.preventDefault(),G.focus();return}const Ee=me[0],ve=me[me.length-1],Ce=document.activeElement,Ie=Ce instanceof Node&&G.contains(Ce);w.shiftKey?(!Ie||Ce===Ee||Ce===G)&&(w.preventDefault(),ve.focus()):(!Ie||Ce===ve)&&(w.preventDefault(),Ee.focus());return}};e.onCleanup(()=>{te==null||te.disconnect(),te=null,P=null,K(),window.removeEventListener("keydown",at),window.removeEventListener("resize",I),Ge(),window.removeEventListener("unload",Ge),Ue(ot,Be)});const y=()=>{const w=e.props;if(w.action)return w.action;const G=e.locale.Popup;switch(w.preset){case"save":return{positive:w.saveText??G.save,negative:w.cancelText??G.cancel};case"check":return{positive:w.okText??G.ok};case"close":return{negative:w.closeText??G.close};case"confirm":default:return{positive:w.okText??G.ok,negative:w.cancelText??G.cancel}}},Z=w=>{switch(w){case"error":return Ni("30","var(--moz-color-danger)","dialog-icon");case"info":return on("30","var(--moz-color-accent)","dialog-icon");case"success":return Hi("30","var(--moz-color-success)","dialog-icon");case"warning":return Ui("30","var(--moz-color-warning)","dialog-icon");default:return n.nothing}};return{api:{resetPosition:R},onMounted:()=>{window.addEventListener("keydown",at),window.addEventListener("resize",I),window.addEventListener("unload",Ge),queueMicrotask(()=>e.emit("init",o.value??null)),m()&&(R(),W())},render(){const w=e.props,G=m();if(G!==O){const C=G;O=G,C?N():ie(),queueMicrotask(()=>lt(C))}const me=w.useVShow?!0:G;if(queueMicrotask(s),!me)return n.nothing;const Ee=w.useVShow?!G:!1,ve=k(),Ce=S(),Ie=w.side,Re=!!Ie||w.autoPosition===!1,Pe=!!w.fitViewport&&!Re,qe=(C,z,B)=>`min(${Ae(typeof C=="number"?C:z)}rem, calc(100${B} - 32px))`,ft={...he(w.style),...ve?{width:`${Ae(ve)}rem`}:{},...Ce?{height:`${Ae(Ce)}rem`}:{},...Re?{}:Pe?{left:"50%",top:"50%",transform:"translate(-50%, -50%)",minWidth:qe(w.minWidth,300,"dvw"),maxWidth:qe(w.maxWidth,800,"dvw"),minHeight:qe(w.minHeight,100,"dvh"),maxHeight:qe(w.maxHeight,600,"dvh")}:{left:`${Ae(M)}rem`,top:`${Ae(f)}rem`}},ct=!!w.draggable&&!Re&&!Pe,nt=!!w.resizeable&&!Ie&&!Pe,rt=typeof w.contentsPadding=="number"?`${Ae(w.contentsPadding)}rem`:w.contentsPadding,v=y(),D=e.slots.has("default"),q=e.slots.has("footer"),ne=!!v.positive&&!v.negative,se=!Ie&&w.showBackdrop===!1&&w.autoPosition===!1&&D&&(w.preset==="no-footer"||!!w.action&&ne),de=!Ie&&w.showBackdrop!==!1&&w.preset!=="save"&&w.preset!=="no-footer"&&(D?ne:!!w.dialogMessage),fe=Ie?void 0:w.showBackdrop===!1?se?"panel":void 0:de?"alert":"dialog",Ne=de&&!D&&w.dialogIcon==="info",vt=!!fe&&!q,Le=ge(w,Wi),dt=e.slots.has("title")?e.slot("title"):n.html`<span class="truncate">${w.title}</span>`,wt=e.slots.has("description"),Oe=e.slots.has("default")?e.slot("default"):n.html`<div class="moz-dialog-body">
863
+ ${Ne?n.html`<span class="dialog-icon-disc" aria-hidden="true">${on("20","var(--moz-color-accent)","dialog-icon")}</span>`:Z(w.dialogIcon)}
864
+ <div class="dialog-message">${w.dialogMessage!=null?gn.unsafeHTML(w.dialogMessage):n.nothing}</div>
865
+ </div>`,_e=v.positive?Ct({class:"preset-btn",type:se?"text":Ne&&ne?"outline":void 0,loading:w.loading,disabled:w.disabledConfirmButton,style:"min-width: 80px"},{onClick:Fe,content:v.positive}):n.nothing,yt=v.negative?Ct({class:"preset-btn",type:"outline",disabled:w.loading,style:"min-width: 80px"},{onClick:Me,content:v.negative}):n.nothing,xt=e.slots.has("footer")?e.slot("footer",{onConfirm:Fe,onCancel:Me}):Ie||w.showBackdrop===!1?n.html`${_e}${yt}`:n.html`${yt}${_e}`;return n.html`
816
866
  <div
817
- class=${V("moz-popup-container",z.class,me?`moz-popup-side moz-popup-side-${me}`:null,z.showBackdrop===!1?"moz-popup-no-backdrop":null)}
818
- style=${Ee.ifDefined(w?"display: none;":void 0)}
867
+ class=${A("moz-popup-container",w.class,Ie?`moz-popup-side moz-popup-side-${Ie}`:null,w.showBackdrop===!1?"moz-popup-no-backdrop":null)}
868
+ style=${$e.ifDefined(Ee?"display: none;":void 0)}
819
869
  >
820
- ${z.showBackdrop===!1?s.nothing:s.html`<div class="moz-popup-backdrop" aria-hidden="true" @click=${ke}></div>`}
870
+ ${w.showBackdrop===!1?n.nothing:n.html`<div class="moz-popup-backdrop" aria-hidden="true" @click=${et}></div>`}
821
871
  <div
822
- class=${V("moz-popup",z.dialogClass)}
872
+ class=${A("moz-popup",w.dialogClass)}
873
+ data-popup-surface=${$e.ifDefined(fe)}
874
+ data-popup-footer=${$e.ifDefined(vt?"preset":void 0)}
823
875
  role="dialog"
824
876
  aria-modal="true"
825
- aria-labelledby=${Ee.ifDefined(z.showHeader===!1?void 0:n)}
826
- aria-describedby=${Ee.ifDefined(at?l:void 0)}
827
- tabindex=${Ee.ifDefined(z.focusTrap?"-1":void 0)}
828
- style=${ee.styleMap(Oe)}
829
- ${K.ref(t)}
830
- ${he(De)}
877
+ aria-labelledby=${$e.ifDefined(w.showHeader===!1?void 0:l)}
878
+ aria-describedby=${$e.ifDefined(wt?r:void 0)}
879
+ tabindex=${$e.ifDefined(w.focusTrap?"-1":void 0)}
880
+ style=${j.styleMap(ft)}
881
+ ${Y.ref(t)}
882
+ ${ce(Le)}
831
883
  >
832
- ${z.showHeader===!1?s.nothing:s.html`<div
833
- id=${n}
834
- class=${V("moz-popup-title",{draggable:Ce})}
835
- @mousedown=${He}
836
- @touchstart=${He}
884
+ ${w.showHeader===!1?n.nothing:n.html`<div
885
+ id=${l}
886
+ class=${A("moz-popup-title",{draggable:ct})}
887
+ @mousedown=${mt}
888
+ @touchstart=${mt}
837
889
  >
838
- ${et}
839
- ${z.showCloseButton?kt({type:"icon",class:"close-button","aria-label":e.locale.Popup.close},{onClick:T,icon:Nl("14","var(--moz-color-text-subtle)")}):s.nothing}
890
+ ${dt}
891
+ ${w.showCloseButton?Ct({type:"icon",class:"close-button"},{onClick:Me,icon:Fi("14","var(--moz-color-text-subtle)"),rest:{"aria-label":e.locale.Popup.close}}):n.nothing}
840
892
  </div>`}
841
- ${at?s.html`<div id=${l} class="moz-popup-description">${e.slot("description")}</div>`:s.nothing}
842
- <div class="moz-popup-body" style=${ee.styleMap({padding:Ze})} ${K.ref(o)}>${Ct}</div>
843
- ${z.preset!=="no-footer"?s.html`<div class=${V("moz-popup-footer",{"with-border":z.showFooterBorder})}>
844
- ${ht}
845
- </div>`:s.nothing}
846
- ${Se?s.html`<div class="resize-handler" @mousedown=${Le}></div>`:s.nothing}
893
+ ${wt?n.html`<div id=${r} class="moz-popup-description">${e.slot("description")}</div>`:n.nothing}
894
+ <div class="moz-popup-body" @scroll=${s} style=${j.styleMap({padding:rt})} ${Y.ref(o)}>${Oe}</div>
895
+ ${w.preset!=="no-footer"?n.html`<div class=${A("moz-popup-footer",{"with-border":w.showFooterBorder})}>
896
+ ${xt}
897
+ </div>`:n.nothing}
898
+ ${nt?n.html`<div class="resize-handler" @mousedown=${Ye}></div>`:n.nothing}
847
899
  </div>
848
900
  </div>
849
- `}}}}),jl={name:"MozPopup",core:$s,booleanProps:["autoPosition","closeOnOutsideClick","disabledConfirmButton","draggable","focusTrap","hideOthers","keepAspectRatio","loading","lockScroll","resizeable","showBackdrop","showCloseButton","showFooterBorder","showHeader","useVShow","visible"],props:["title","minWidth","minHeight","maxWidth","maxHeight","draggable","resizeable","keepAspectRatio","disabledConfirmButton","showCloseButton","closeOnOutsideClick","preset","dialogIcon","dialogMessage","onCancel","onBeforeClose","onBeforeUnload","onConfirm","onBeforeConfirm","loading","contentsPadding","useVShow","top","left","showFooterBorder","action","saveText","cancelText","okText","closeText","visible","width","height","focusTrap","lockScroll","side","showBackdrop","autoPosition","hideOthers","dialogClass","showHeader"],emits:["open","close","close:before","confirm","confirm:before","drag-start","drag-end","hidden","init","update:visible","update:width","update:height"],slots:["title","default","footer","description"],expose:!0,syncUpdate:!0};function Zt(e,t=12){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function Ss(e="12",t="var(--moz-color-text-subtle)",o=!1,n=""){const l=Zt(e),d=o?"var(--moz-color-text-muted)":t;return s.html`<svg class=${n||s.nothing} xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 16 16">
850
- <g style=${`fill: ${d}`}>
901
+ `}}}}),Gi={name:"MozPopup",core:Yn,booleanProps:["autoPosition","closeOnOutsideClick","disabledConfirmButton","draggable","fitViewport","focusTrap","hideOthers","keepAspectRatio","loading","lockScroll","resizeable","showBackdrop","showCloseButton","showFooterBorder","showHeader","useVShow","visible"],props:["title","minWidth","minHeight","maxWidth","maxHeight","draggable","resizeable","keepAspectRatio","disabledConfirmButton","showCloseButton","closeOnOutsideClick","preset","dialogIcon","dialogMessage","onCancel","onBeforeClose","onBeforeUnload","onConfirm","onBeforeConfirm","loading","contentsPadding","useVShow","top","left","showFooterBorder","action","saveText","cancelText","okText","closeText","visible","width","height","focusTrap","lockScroll","side","showBackdrop","autoPosition","hideOthers","fitViewport","returnFocusTo","dialogClass","showHeader"],emits:["open","close","close:before","confirm","confirm:before","drag-start","drag-end","hidden","init","update:visible","update:width","update:height"],slots:["title","default","footer","description"],expose:!0,syncUpdate:!0};function so(e,t=12){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function jn(e="12",t="var(--moz-color-text-subtle)",o=!1,s=""){const l=so(e),i=o?"var(--moz-color-text-muted)":t;return n.html`<svg class=${s||n.nothing} xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 16 16">
902
+ <g style=${`fill: ${i}`}>
851
903
  <path
852
904
  d="M836.533 699.734h-.022a.928.928 0 0 1-.716-.336l-3.779-4.535a.926.926 0 0 1-.212-.68.93.93 0 0 1 1.643-.512l3.026 3.63 6.096-8.128a.922.922 0 0 1 .745-.373c.202 0 .396.064.559.186.199.15.328.367.363.614a.925.925 0 0 1-.177.69l-6.803 9.071a.928.928 0 0 1-.721.373h-.002z"
853
905
  style="stroke: none"
@@ -855,265 +907,265 @@
855
907
  ></path>
856
908
  <path
857
909
  d="M836.532 699.634a.833.833 0 0 0 .644-.333l6.803-9.07a.831.831 0 1 0-1.33-.998l-6.172 8.23-3.107-3.728a.83.83 0 1 0-1.277 1.064l3.78 4.535c.157.19.391.3.638.3h.021m.003.2h-.024c-.307 0-.596-.136-.793-.372l-3.779-4.535a1.025 1.025 0 0 1-.235-.754 1.03 1.03 0 0 1 1.82-.567l2.945 3.534 6.02-8.027a1.034 1.034 0 0 1 1.444-.207c.22.165.363.407.402.68.04.273-.03.544-.196.765l-6.803 9.07c-.19.254-.481.404-.799.412h-.002z"
858
- style=${`fill: ${d}; stroke: none`}
910
+ style=${`fill: ${i}; stroke: none`}
859
911
  transform="translate(-829.971 -686.318)"
860
912
  ></path>
861
913
  </g>
862
- </svg>`}function ks(e="14",t="var(--moz-color-text-subtle)",o=!1){const n=Zt(e,14);return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
914
+ </svg>`}function Xn(e="14",t="var(--moz-color-text-subtle)",o=!1){const s=so(e,14);return n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${s.width} height=${s.height} viewBox="0 0 14 14" fill="none">
863
915
  <path
864
916
  fill-rule="evenodd"
865
917
  clip-rule="evenodd"
866
918
  d="M4.28543 4.37082C4.63291 4.01541 5.20272 4.00898 5.55814 4.35646L9.05717 7.77743L12.4606 4.36449C12.8116 4.01253 13.3815 4.01174 13.7334 4.36272C14.0854 4.7137 14.0862 5.28355 13.7352 5.63551L9.70247 9.67945C9.35394 10.029 8.78895 10.0325 8.43602 9.68748L4.29979 5.64353C3.94437 5.29605 3.93794 4.72624 4.28543 4.37082Z"
867
919
  fill=${o?"var(--moz-color-text-muted)":t}
868
920
  ></path>
869
- </svg>`}function Es(e="14",t="var(--moz-color-text-subtle)",o=!1){const n=Zt(e,14);return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
921
+ </svg>`}function Qn(e="14",t="var(--moz-color-text-subtle)",o=!1){const s=so(e,14);return n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${s.width} height=${s.height} viewBox="0 0 14 14" fill="none">
870
922
  <path
871
923
  fill-rule="evenodd"
872
924
  clip-rule="evenodd"
873
925
  d="M13.7433 9.67312C13.3958 10.0285 12.826 10.035 12.4705 9.68748L8.97152 6.26652L5.56806 9.67946C5.21708 10.0314 4.64723 10.0322 4.29527 9.68123C3.94331 9.33024 3.94252 8.7604 4.2935 8.40844L8.32621 4.36449C8.67474 4.01499 9.23974 4.01141 9.59267 4.35647L13.7289 8.40041C14.0843 8.7479 14.0907 9.31771 13.7433 9.67312Z"
874
926
  fill=${o?"var(--moz-color-text-muted)":t}
875
927
  ></path>
876
- </svg>`}function lo(e="12",t="var(--moz-color-text-subtle)",o=!1){const n=Zt(e),l=o?"var(--moz-color-text-muted)":t;return n.width<=13?s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 12 12" fill="none">
928
+ </svg>`}function go(e="12",t="var(--moz-color-text-subtle)",o=!1){const s=so(e),l=o?"var(--moz-color-text-muted)":t;return s.width<=13?n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${s.width} height=${s.height} viewBox="0 0 12 12" fill="none">
877
929
  <path
878
930
  d="M10.293 11.375L7.71099 8.79103C6.76581 9.4655 5.60162 9.76002 4.44941 9.61616C3.29719 9.4723 2.24116 8.90058 1.49082 8.01442C0.740489 7.12825 0.350682 5.99242 0.398745 4.83225C0.446808 3.67209 0.929227 2.57239 1.75029 1.75133C2.57135 0.930264 3.67106 0.447845 4.83122 0.399783C5.99138 0.35172 7.12722 0.741526 8.01338 1.49186C8.89954 2.2422 9.47126 3.29823 9.61512 4.45044C9.75898 5.60265 9.46446 6.76684 8.78999 7.71203L11.373 10.294C11.5163 10.4374 11.5969 10.6318 11.5969 10.8345C11.5969 11.0373 11.5163 11.2317 11.373 11.375C11.2296 11.5184 11.0352 11.5989 10.8325 11.5989C10.6298 11.5989 10.4363 11.5184 10.293 11.375ZM1.92899 5.02703C1.92899 5.64015 2.1108 6.2395 2.45144 6.7493C2.79207 7.25909 3.27622 7.65642 3.84267 7.89106C4.40912 8.12569 5.03243 8.18708 5.63377 8.06746C6.23511 7.94785 6.78748 7.6526 7.22102 7.21906C7.65457 6.78552 7.94981 6.23315 8.06943 5.63181C8.18904 5.03047 8.12765 4.40716 7.89302 3.84071C7.65839 3.27426 7.26105 2.79011 6.75126 2.44947C6.24147 2.10884 5.64211 1.92703 5.02899 1.92703C4.20682 1.92703 3.41832 2.25364 2.83696 2.835C2.2556 3.41636 1.92899 4.20486 1.92899 5.02703Z"
879
931
  fill=${l}
880
932
  ></path>
881
- </svg>`:s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
933
+ </svg>`:n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${s.width} height=${s.height} viewBox="0 0 14 14" fill="none">
882
934
  <path
883
935
  d="M5.84944 0.402344C2.83893 0.402344 0.398438 2.84284 0.398438 5.85334C0.398438 8.86385 2.83893 11.3043 5.84944 11.3043C7.0308 11.3043 8.12438 10.9285 9.01716 10.29L12.0619 13.3347C12.4134 13.6862 12.9832 13.6862 13.3347 13.3347C13.6862 12.9832 13.6862 12.4134 13.3347 12.0619L10.2893 9.01651C10.9259 8.12457 11.3004 7.03269 11.3004 5.85334C11.3004 2.84284 8.85994 0.402344 5.84944 0.402344ZM2.19844 5.85334C2.19844 3.83695 3.83305 2.20234 5.84944 2.20234C7.86583 2.20234 9.50044 3.83695 9.50044 5.85334C9.50044 7.86974 7.86583 9.50434 5.84944 9.50434C3.83305 9.50434 2.19844 7.86974 2.19844 5.85334Z"
884
936
  fill=${l}
885
937
  ></path>
886
- </svg>`}const Xl=250,Ql=24,Jl=new Set(["itemsSource","label","width","required","readonly","disabled","keyProp","displayProp","separator","rules","useObjBinding","useFilter","listWidth","placeholder","searchPlaceholder","emptyText","requiredMessage","modelValue","class","style"]);function ei(e,t){let o;return(...n)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...n),t)}}function ti(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Ps=(e=!1)=>$e({name:"moz-select",defaults:{label:null,width:200,required:!1,readonly:!1,disabled:!1,keyProp:"id",displayProp:"text",separator:" / ",rules:[],useObjBinding:!1,useFilter:!0,listWidth:100,modelValue:null},setup(t){const o=K.createRef(),n=K.createRef(),l=K.createRef(),d=K.createRef(),a=K.createRef(),f=K.createRef();let i=null,c=t.props.modelValue??null;const r=()=>t.controlled("modelValue")?t.props.modelValue??null:c,u=w=>{t.controlled("modelValue")||(c=w),t.emit("update:modelValue",w),t.requestUpdate()};let p=!1,y=!1,L=0,D=null,P=null,E="",g=-1;const h=ot("moz-select-listbox-"),C={change:"",blur:"",save:""};let k=r();const Z=()=>t.props.keyProp||"id",W=()=>Array.isArray(t.props.displayProp)?t.props.displayProp:null,Q=()=>W()?32:Ql,re=()=>W()?300:Xl,ae=()=>{var w;return!!((w=W())!=null&&w.some(H=>H.header!==void 0))},j=()=>e?t.locale.TableSelect:t.locale.Select,$=w=>t.props.useObjBinding&&w&&typeof w=="object"?w[Z()]:w,I=w=>r()!=null&&w[Z()]===$(r()),Y=w=>{const H=typeof w.width=="number"?`${w.width}px`:w.width;return{width:H,minWidth:H,maxWidth:H,flex:H==null?"1 1 0":"0 0 auto"}},ne=new nt.Virtualizer({count:0,getScrollElement:()=>i,estimateSize:Q,measureElement:w=>{const H=w.getBoundingClientRect().height;return H>0?H:Q()},overscan:5,observeElementRect:nt.observeElementRect,observeElementOffset:nt.observeElementOffset,scrollToFn:nt.elementScroll,onChange:()=>t.requestUpdate()});t.onCleanup(()=>{y=!0,L+=1,D=null,P=null,window.removeEventListener("keydown",A),ce==null||ce.release(),ce=null}),t.onCleanup(ne._didMount());const B=w=>{i=w??null,w&&(ne._willUpdate(),t.requestUpdate())},se=w=>t.props.itemsSource?t.props.itemsSource.find(te=>te[Z()]===w)??null:null,N=w=>{if(!w)return"";const H=W();return H?H.map(te=>String(w[te.key]??"")).join(t.props.separator??" / "):typeof t.props.displayProp=="function"?t.props.displayProp(w):String(typeof w=="object"?w[t.props.displayProp]??"":w)},X=()=>{const w=r();if(!w&&isNaN(Number(w)))return null;const H=t.props.useObjBinding?w:se(w);return H?N(H):null},M=()=>{if(!E)return t.props.itemsSource??[];const w=E.toLowerCase();return(t.props.itemsSource??[]).filter(H=>W()?W().some(te=>String(H[te.key]??"").toLowerCase().includes(w)):N(H).toLowerCase().includes(w))},U=w=>{if(!E)return[{part:w,highlight:!1}];const H=ti(E),te=new RegExp(`(${H})`,"gi");return w.split(te).map(me=>({part:me,highlight:E.toLowerCase()===me.toLowerCase()}))},_=()=>C.save||C.blur||C.change,G=()=>{const w=[];return t.props.required&&w.push({message:t.props.requiredMessage??j().requiredMessage.replace("{label}",t.props.label||""),type:"save",validator:H=>!!H}),[...w,...t.props.rules??[]]},J=async(w,H)=>{const te=G();if(te.length<=0||t.props.disabled)return!0;C[H]="",t.requestUpdate();const me=te.filter(ve=>ve.type===H);for(const ve of me){const Oe=e&&t.props.useObjBinding?w==null?"":String(w):w;if(!await ve.validator(Oe))return C[H]=ve.message,t.requestUpdate(),!1}return!0},x=async(w="save")=>_()!==""?!1:await J(r(),w),m={validate:x,initValidator:()=>{C.change="",C.blur="",C.save="",t.requestUpdate()}};t.validator&&(t.validator.addValidator(m),t.onCleanup(()=>{var w;return(w=t.validator)==null?void 0:w.removeValidator(m)}));const T=new Kt({anchor:()=>n.value??null,panel:()=>l.value??null,maxHeight:re,container:()=>o.value??null,useMinWidth:!0,listWidth:()=>t.props.listWidth,ignoreScrollTargets:w=>w===i,requestClose:()=>{p&&ke(!1)}});t.onCleanup(()=>T.destroy());const A=w=>{`${w.ctrlKey?"ctrl+":""}${w.altKey?"alt+":""}${w.key.toLowerCase()}`==="escape"&&ke(!1)},F=w=>{const H=re()-(W()&&t.props.useFilter?29:0)-(ae()?32:0),te=Q()*w;return Math.max(0,te-H/2+Q())};let ce=null;const ke=(w,H,te=!0)=>{if(y||p===w)return;p=w;const me=++L;D=w&&H!==void 0?{generation:me,step:H}:null,P=null,t.requestUpdate(),w?(ce=Gt(),T.open(),C.save="",window.addEventListener("keydown",A),queueMicrotask(()=>{var Oe;if(y||!p||me!==L)return;if(r()!=null){const Ce=M().findIndex(I);Ce>=0&&(e&&(g=Ce,t.requestUpdate()),i&&(i.scrollTop=F(Ce)))}te&&H===void 0&&(f.value?f.value.focus():(Oe=a.value)==null||Oe.focus())})):(ce==null||ce.release(),ce=null,T.close(),t.emit("close"),J(r(),"blur"),window.removeEventListener("keydown",A),E="",g=-1,t.emit("close"),queueMicrotask(()=>{var ve;y||p||me!==L||(ve=a.value)==null||ve.focus()}))},Me=()=>{var w;t.props.disabled||(ke(!p),(w=a.value)==null||w.focus())},Ne=w=>{var H;u(w),ke(!1),(H=a.value)==null||H.focus()},qe=ei(w=>{E=w.target.value,e&&(g=M().length?0:-1),t.requestUpdate(),queueMicrotask(()=>{const H=M().length;ne.setOptions({...ne.options,count:H}),ne.measure(),i&&(i.scrollTop=0,ne.scrollToIndex(0),ne.measure())})},300),st=w=>{var H;if(p){w.stopPropagation(),w.preventDefault();const te=f.value??((H=d.value)==null?void 0:H.querySelector("div:first-child"));te==null||te.focus()}},Qe=w=>{var Oe,Ce,Se;const H=((Oe=l.value)==null?void 0:Oe.querySelectorAll('[tabindex="0"]'))??[],te=[...Array.from(H)];f.value&&te.unshift(f.value);const me=te[0],ve=te[te.length-1];(w.target===me||w.target===ve)&&a.value&&(w.target===me&&w.shiftKey?(w.stopPropagation(),w.preventDefault(),(Ce=a.value)==null||Ce.focus()):w.target===ve&&!w.shiftKey&&(w.stopPropagation(),w.preventDefault(),(Se=a.value)==null||Se.focus()))},Je=w=>{i&&(w.shiftKey?i.scrollTop-=24:i.scrollTop+=24)},Be=()=>{var H;const w=Array.from(((H=l.value)==null?void 0:H.querySelectorAll('[tabindex="0"]'))??[]);return f.value&&!w.includes(f.value)&&w.unshift(f.value),w},He=w=>{var ve;const H=Be();if(H.length===0)return;const te=H.indexOf(document.activeElement),me=te<0?w>0?0:H.length-1:Math.min(H.length-1,Math.max(0,te+w));(ve=H[me])==null||ve.focus()},Le=w=>w.find(H=>H.getAttribute("aria-selected")==="true")??null,_e=w=>{ke(!0,w)},Ue=()=>{const w=D;!w||P===w||(P=w,queueMicrotask(()=>{var me;if(P===w&&(P=null),y||!p||w.generation!==L||D!==w||!((me=l.value)!=null&&me.isConnected))return;const H=Be(),te=f.value??Le(H)??H[w.step<0?H.length-1:0];te!=null&&te.isConnected&&(D=null,te.focus())}))},rt=()=>{var w;ke(!1),(w=a.value)==null||w.focus()},z=w=>{if(w.key==="Tab"){st(w);return}if(w.key==="Enter"||w.key===" "){p||(w.preventDefault(),w.stopPropagation(),_e(1));return}if(w.key==="ArrowDown"||w.key==="ArrowUp"){w.preventDefault(),w.stopPropagation();const H=w.key==="ArrowDown"?1:-1;p?He(H):_e(H);return}w.key==="Escape"&&p&&(w.preventDefault(),rt())},de=w=>{if(e){const H=M();if(w.key==="ArrowDown"||w.key==="ArrowUp"){if(w.preventDefault(),!H.length)return;g=w.key==="ArrowDown"?g>=H.length-1?0:g+1:g<=0?H.length-1:g-1,t.requestUpdate();const te=L;queueMicrotask(()=>{!y&&p&&te===L&&ne.scrollToIndex(g,{align:"auto"})})}else if(w.key==="Enter"){w.preventDefault();const te=H[g];te&&Ne(t.props.useObjBinding?te:te[Z()])}return}if(w.key==="Tab"){Qe(w);return}if(w.key==="ArrowDown"||w.key==="ArrowUp"){w.preventDefault(),He(w.key==="ArrowDown"?1:-1);return}w.key==="Escape"&&(w.preventDefault(),rt())},Ie=(w,H)=>{if(!e){if(w.key==="Tab"){Je(w);return}if(w.key==="ArrowDown"||w.key==="ArrowUp"){w.preventDefault(),w.stopPropagation(),He(w.key==="ArrowDown"?1:-1);return}if(w.key==="Escape"){w.preventDefault(),w.stopPropagation(),rt();return}(w.key==="Enter"||w.key===" ")&&(w.key==="Enter"&&w.preventDefault(),Ne(H))}};return{api:{validate:x,setOpen:w=>{y||w&&t.props.disabled||ke(w,void 0,!1)},isOpen:()=>!y&&p},render(){const w=t.props,H=r();if(H!==k){k=H;const Te=H;queueMicrotask(()=>{J(Te,"change"),t.emit("change",Te,se($(Te)))})}const te=typeof w.width=="number"?`${Ae(w.width)}rem`:w.width,me=ye(w,Jl),{aria:ve,dom:Oe}=Wt(me),Ce=t.slots.has("icon")?t.slot("icon",{isOpen:p}):p?Es("14","var(--moz-color-accent)"):ks("14","var(--moz-color-text-subtle)",w.disabled),Se=s.html`<button
938
+ </svg>`}const Yi=250,ji=28,Xi=new Set(["itemsSource","label","width","variant","size","required","readonly","disabled","keyProp","displayProp","separator","rules","useObjBinding","useFilter","listWidth","placeholder","searchPlaceholder","emptyText","requiredMessage","modelValue","class","style"]);function Qi(e,t){let o;return(...s)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...s),t)}}function Ji(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Jn=(e=!1)=>ye({name:"moz-select",defaults:{label:null,width:200,variant:"default",size:"medium",required:!1,readonly:!1,disabled:!1,keyProp:"id",displayProp:"text",separator:" / ",rules:[],useObjBinding:!1,useFilter:!0,listWidth:100,modelValue:null},setup(t){const o=Y.createRef(),s=Y.createRef(),l=Y.createRef(),i=Y.createRef(),r=Y.createRef(),p=Y.createRef();let d=null,b=t.props.modelValue??null;const c=()=>t.controlled("modelValue")?t.props.modelValue??null:b,m=y=>{t.controlled("modelValue")||(b=y),t.emit("update:modelValue",y),t.requestUpdate()};let u=!1,k=!1,x=0,S=null,L=null,M="",f=-1;const a=Qe("moz-select-listbox-"),h={change:"",blur:"",save:""};let $=c();const _=()=>t.props.keyProp||"id",O=()=>Array.isArray(t.props.displayProp)?t.props.displayProp:null,U=()=>O()?32:ji,Q=()=>O()?300:Yi,re=()=>{var y;return!!((y=O())!=null&&y.some(Z=>Z.header!==void 0))},X=()=>e?t.locale.TableSelect:t.locale.Select,E=y=>t.props.useObjBinding&&y&&typeof y=="object"?y[_()]:y,V=y=>c()!=null&&y[_()]===E(c()),J=y=>{const Z=typeof y.width=="number"?`${y.width}px`:y.width;return{width:Z,minWidth:Z,maxWidth:Z,flex:Z==null?"1 1 0":"0 0 auto"}},le=new st.Virtualizer({count:0,getScrollElement:()=>d,estimateSize:U,measureElement:y=>{const Z=y.getBoundingClientRect().height;return Z>0?Z:U()},overscan:5,observeElementRect:st.observeElementRect,observeElementOffset:st.observeElementOffset,scrollToFn:st.elementScroll,onChange:()=>t.requestUpdate()});t.onCleanup(()=>{k=!0,x+=1,S=null,L=null,window.removeEventListener("keydown",I),pe==null||pe.release(),pe=null}),t.onCleanup(le._didMount());const N=y=>{d=y??null,y&&(le._willUpdate(),t.requestUpdate())},ie=y=>t.props.itemsSource?t.props.itemsSource.find(w=>w[_()]===y)??null:null,F=y=>{if(!y)return"";const Z=O();return Z?Z.map(w=>String(y[w.key]??"")).join(t.props.separator??" / "):typeof t.props.displayProp=="function"?t.props.displayProp(y):String(typeof y=="object"?y[t.props.displayProp]??"":y)},oe=()=>{const y=c();if(!y&&isNaN(Number(y)))return null;const Z=t.props.useObjBinding?y:ie(y);return Z?F(Z):null},T=()=>{if(!M)return t.props.itemsSource??[];const y=M.toLowerCase();return(t.props.itemsSource??[]).filter(Z=>O()?O().some(w=>String(Z[w.key]??"").toLowerCase().includes(y)):F(Z).toLowerCase().includes(y))},W=y=>{if(!M)return[{part:y,highlight:!1}];const Z=Ji(M),w=new RegExp(`(${Z})`,"gi");return y.split(w).map(G=>({part:G,highlight:M.toLowerCase()===G.toLowerCase()}))},K=()=>h.save||h.blur||h.change,ee=()=>{const y=[];return t.props.required&&y.push({message:t.props.requiredMessage??X().requiredMessage.replace("{label}",t.props.label||""),type:"save",validator:Z=>!!Z}),[...y,...t.props.rules??[]]},te=async(y,Z)=>{const w=ee();if(w.length<=0||t.props.disabled)return!0;h[Z]="",t.requestUpdate();const G=w.filter(me=>me.type===Z);for(const me of G){const Ee=e&&t.props.useObjBinding?y==null?"":String(y):y;if(!await me.validator(Ee))return h[Z]=me.message,t.requestUpdate(),!1}return!0},P=async(y="save")=>K()!==""?!1:await te(c(),y),g={validate:P,initValidator:()=>{h.change="",h.blur="",h.save="",t.requestUpdate()}};t.validator&&(t.validator.addValidator(g),t.onCleanup(()=>{var y;return(y=t.validator)==null?void 0:y.removeValidator(g)}));const R=new to({anchor:()=>s.value??null,panel:()=>l.value??null,maxHeight:Q,container:()=>o.value??null,useMinWidth:!0,listWidth:()=>t.props.listWidth,ignoreScrollTargets:y=>y===d,requestClose:()=>{u&&ke(!1)}});t.onCleanup(()=>R.destroy());const I=y=>{`${y.ctrlKey?"ctrl+":""}${y.altKey?"alt+":""}${y.key.toLowerCase()}`==="escape"&&ke(!1)},H=y=>{const Z=Q()-(O()&&t.props.useFilter?29:0)-(re()?32:0),w=U()*y;return Math.max(0,w-Z/2+U())};let pe=null;const ke=(y,Z,w=!0)=>{if(k||u===y)return;u=y;const G=++x;S=y&&Z!==void 0?{generation:G,step:Z}:null,L=null,t.requestUpdate(),y?(pe=oo(),R.open(),h.save="",window.addEventListener("keydown",I),queueMicrotask(()=>{var Ee;if(k||!u||G!==x)return;if(c()!=null){const ve=T().findIndex(V);ve>=0&&(e&&(f=ve,t.requestUpdate()),d&&(d.scrollTop=H(ve)))}w&&Z===void 0&&(p.value?p.value.focus():(Ee=r.value)==null||Ee.focus())})):(pe==null||pe.release(),pe=null,R.close(),t.emit("close"),te(c(),"blur"),window.removeEventListener("keydown",I),M="",f=-1,t.emit("close"),queueMicrotask(()=>{var me;k||u||G!==x||(me=r.value)==null||me.focus()}))},Me=()=>{var y;t.props.disabled||(ke(!u),(y=r.value)==null||y.focus())},He=y=>{var Z;m(y),ke(!1),(Z=r.value)==null||Z.focus()},Fe=Qi(y=>{M=y.target.value,e&&(f=T().length?0:-1),t.requestUpdate(),queueMicrotask(()=>{const Z=T().length;le.setOptions({...le.options,count:Z}),le.measure(),d&&(d.scrollTop=0,le.scrollToIndex(0),le.measure())})},300),Ge=y=>{var Z;if(u){y.stopPropagation(),y.preventDefault();const w=p.value??((Z=i.value)==null?void 0:Z.querySelector("div:first-child"));w==null||w.focus()}},et=y=>{var Ee,ve,Ce;const Z=((Ee=l.value)==null?void 0:Ee.querySelectorAll('[tabindex="0"]'))??[],w=[...Array.from(Z)];p.value&&w.unshift(p.value);const G=w[0],me=w[w.length-1];(y.target===G||y.target===me)&&r.value&&(y.target===G&&y.shiftKey?(y.stopPropagation(),y.preventDefault(),(ve=r.value)==null||ve.focus()):y.target===me&&!y.shiftKey&&(y.stopPropagation(),y.preventDefault(),(Ce=r.value)==null||Ce.focus()))},lt=y=>{d&&(y.shiftKey?d.scrollTop-=24:d.scrollTop+=24)},Ke=()=>{var Z;const y=Array.from(((Z=l.value)==null?void 0:Z.querySelectorAll('[tabindex="0"]'))??[]);return p.value&&!y.includes(p.value)&&y.unshift(p.value),y},Ue=y=>{var me;const Z=Ke();if(Z.length===0)return;const w=Z.indexOf(document.activeElement),G=w<0?y>0?0:Z.length-1:Math.min(Z.length-1,Math.max(0,w+y));(me=Z[G])==null||me.focus()},ze=y=>y.find(Z=>Z.getAttribute("aria-selected")==="true")??null,Ze=y=>{ke(!0,y)},Be=()=>{const y=S;!y||L===y||(L=y,queueMicrotask(()=>{var G;if(L===y&&(L=null),k||!u||y.generation!==x||S!==y||!((G=l.value)!=null&&G.isConnected))return;const Z=Ke(),w=p.value??ze(Z)??Z[y.step<0?Z.length-1:0];w!=null&&w.isConnected&&(S=null,w.focus())}))},ot=()=>{var y;ke(!1),(y=r.value)==null||y.focus()},mt=y=>{if(y.key==="Tab"){Ge(y);return}if(y.key==="Enter"||y.key===" "){u||(y.preventDefault(),y.stopPropagation(),Ze(1));return}if(y.key==="ArrowDown"||y.key==="ArrowUp"){y.preventDefault(),y.stopPropagation();const Z=y.key==="ArrowDown"?1:-1;u?Ue(Z):Ze(Z);return}y.key==="Escape"&&u&&(y.preventDefault(),ot())},Ye=y=>{if(e){const Z=T();if(y.key==="ArrowDown"||y.key==="ArrowUp"){if(y.preventDefault(),!Z.length)return;f=y.key==="ArrowDown"?f>=Z.length-1?0:f+1:f<=0?Z.length-1:f-1,t.requestUpdate();const w=x;queueMicrotask(()=>{!k&&u&&w===x&&le.scrollToIndex(f,{align:"auto"})})}else if(y.key==="Enter"){y.preventDefault();const w=Z[f];w&&He(t.props.useObjBinding?w:w[_()])}return}if(y.key==="Tab"){et(y);return}if(y.key==="ArrowDown"||y.key==="ArrowUp"){y.preventDefault(),Ue(y.key==="ArrowDown"?1:-1);return}y.key==="Escape"&&(y.preventDefault(),ot())},at=(y,Z)=>{if(!e){if(y.key==="Tab"){lt(y);return}if(y.key==="ArrowDown"||y.key==="ArrowUp"){y.preventDefault(),y.stopPropagation(),Ue(y.key==="ArrowDown"?1:-1);return}if(y.key==="Escape"){y.preventDefault(),y.stopPropagation(),ot();return}(y.key==="Enter"||y.key===" ")&&(y.key==="Enter"&&y.preventDefault(),He(Z))}};return{api:{validate:P,setOpen:y=>{k||y&&t.props.disabled||ke(y,void 0,!1)},isOpen:()=>!k&&u},render(){const y=t.props,Z=c();if(Z!==$){$=Z;const qe=Z;queueMicrotask(()=>{te(qe,"change"),t.emit("change",qe,ie(E(qe)))})}const w=typeof y.width=="number"?`${Ae(y.width)}rem`:y.width,G=ge(y,Xi),{aria:me,dom:Ee}=eo(G),ve=!e&&y.variant==="text",Ce=!e&&y.size==="small",Ie=t.slots.has("icon")?t.slot("icon",{isOpen:u}):u?Qn("14",ve?"currentColor":"var(--moz-color-accent)"):Xn("14",ve?"currentColor":"var(--moz-color-text-subtle)",y.disabled),Re=n.html`<button
887
939
  type="button"
888
940
  class="icon-container"
889
- ${he(ve)}
941
+ ${ce(me)}
890
942
  role="combobox"
891
943
  aria-haspopup="listbox"
892
- aria-expanded=${p?"true":"false"}
893
- aria-controls=${h}
894
- aria-label=${Ee.ifDefined(ve["aria-label"]??w.label??void 0)}
895
- @keydown=${z}
896
- ${K.ref(a)}
897
- ?disabled=${!!w.disabled}
944
+ aria-expanded=${u?"true":"false"}
945
+ aria-controls=${a}
946
+ aria-label=${$e.ifDefined(me["aria-label"]??y.label??void 0)}
947
+ @keydown=${mt}
948
+ ${Y.ref(r)}
949
+ ?disabled=${!!y.disabled}
898
950
  >
899
- ${Ce}
900
- </button>`,Ze=t.slots.has("input-container")?s.html`<div
951
+ ${Ie}
952
+ </button>`,Pe=t.slots.has("input-container")?n.html`<div
901
953
  class="moz-input-container select-input-container"
902
- style=${ee.styleMap({width:te})}
954
+ style=${j.styleMap({width:w})}
903
955
  @click=${Me}
904
- ${K.ref(n)}
956
+ ${Y.ref(s)}
905
957
  >
906
958
  <div
907
- class=${V("input-container-wrapper",{"input-container-wrapper--disabled":w.disabled})}
959
+ class=${A("input-container-wrapper",{"input-container-wrapper--disabled":y.disabled})}
908
960
  >
909
- ${t.slot("input-container",{text:X(),item:H})}
961
+ ${t.slot("input-container",{text:oe(),item:Z})}
910
962
  </div>
911
- ${Se}
912
- </div>`:s.html`<div
963
+ ${Re}
964
+ </div>`:n.html`<div
913
965
  class="moz-input-container select-input-container"
914
- style=${ee.styleMap({width:te})}
966
+ style=${j.styleMap({width:w})}
915
967
  @click=${Me}
916
- ${K.ref(n)}
968
+ ${Y.ref(s)}
917
969
  >
918
970
  <input
919
- ${he(Oe)}
920
- .value=${X()??""}
921
- placeholder=${Ee.ifDefined(w.placeholder??void 0)}
971
+ ${ce(Ee)}
972
+ .value=${oe()??""}
973
+ placeholder=${$e.ifDefined(y.placeholder??void 0)}
922
974
  autocomplete="off"
923
- ?disabled=${!!w.disabled}
975
+ ?disabled=${!!y.disabled}
924
976
  readonly
925
977
  tabindex="-1"
926
- class=${V("select-display-input",{"select-display-input--disabled":w.disabled})}
978
+ class=${A("select-display-input",{"select-display-input--disabled":y.disabled})}
927
979
  />
928
980
  ${t.slot("input")}
929
- ${Se}
930
- </div>`;return s.html`
981
+ ${Re}
982
+ </div>`;return n.html`
931
983
  <div
932
- class=${V(e?"moz-table-select":"moz-select",{"is-invalid":_()!=="","is-open":p,disabled:!!w.disabled},!e&&w.class)}
933
- style=${ee.styleMap(be(w.style))}
934
- ${K.ref(o)}
984
+ class=${A(e?"moz-table-select":"moz-select",{"is-invalid":K()!=="","is-open":u,disabled:!!y.disabled,"moz-select--text":ve,"moz-select--small":Ce},!e&&y.class)}
985
+ style=${j.styleMap(he(y.style))}
986
+ ${Y.ref(o)}
935
987
  >
936
988
  <div class="input-wrapper">
937
- ${w.label?Xe({disabled:w.disabled,required:w.required},w.label):s.nothing}
938
- ${Ze}
989
+ ${y.label?Je({disabled:y.disabled,required:y.required},y.label):n.nothing}
990
+ ${Pe}
939
991
  </div>
940
992
 
941
- ${_()!==""?s.html`<span class="moz-input-invalid-message">${_()}</span>`:s.nothing}
993
+ ${K()!==""?n.html`<span class="moz-input-invalid-message">${K()}</span>`:n.nothing}
942
994
  </div>
943
- `},renderPortal(){if(!p)return s.nothing;Ue();const w=t.props;r();const H=Z(),te=M();ne.options.count!==te.length&&ne.setOptions({...ne.options,count:te.length}),ne._willUpdate();const me=po(i?ne.getVirtualItems():[],te.length,Q(),i),ve=ne.getTotalSize(),Oe=me.map(Ce=>{if(Ce.index>=te.length)return null;const Se=te[Ce.index];return Se?{index:Ce.index,value:Se,size:Ce.size,start:Ce.start}:null}).filter(Ce=>Ce!==null);return s.html`<div
944
- class=${V(W()?"table-list-box moz-table-select-list":"list-box moz-select-list",{"no-label":!w.label},e&&w.class)}
945
- @keydown=${de}
946
- ${K.ref(l)}
995
+ `},renderPortal(){if(!u)return n.nothing;Be();const y=t.props;c();const Z=_(),w=T();le.options.count!==w.length&&le.setOptions({...le.options,count:w.length}),le._willUpdate();const G=ko(d?le.getVirtualItems():[],w.length,U(),d),me=le.getTotalSize(),Ee=G.map(ve=>{if(ve.index>=w.length)return null;const Ce=w[ve.index];return Ce?{index:ve.index,value:Ce,size:ve.size,start:ve.start}:null}).filter(ve=>ve!==null);return n.html`<div
996
+ class=${A(O()?"table-list-box moz-table-select-list":"list-box moz-select-list",{"no-label":!y.label},e&&y.class)}
997
+ @keydown=${Ye}
998
+ ${Y.ref(l)}
947
999
  >
948
- ${w.useFilter?s.html`<div class="filter-input">
949
- ${e?s.html`<div class="search-icon">${lo("12","var(--moz-color-text-subtle)")}</div>`:s.nothing}
1000
+ ${y.useFilter?n.html`<div class="filter-input">
1001
+ ${e?n.html`<div class="search-icon">${go("12","var(--moz-color-text-subtle)")}</div>`:n.nothing}
950
1002
  <input
951
- ${K.ref(f)}
952
- @mousedown=${Ce=>Ce.stopPropagation()}
953
- placeholder=${w.searchPlaceholder??j().searchPlaceholder}
954
- @input=${qe}
1003
+ ${Y.ref(p)}
1004
+ @mousedown=${ve=>ve.stopPropagation()}
1005
+ placeholder=${y.searchPlaceholder??X().searchPlaceholder}
1006
+ @input=${Fe}
955
1007
  class="filter-input__field"
956
1008
  />
957
- ${e?s.nothing:s.html`<div class="search-icon">${lo("12","var(--moz-color-text-subtle)")}</div>`}
958
- </div>`:s.nothing}
959
- ${ae()?s.html`<div class="table-header">${W().map(Ce=>s.html`<div class="table-header-cell" style=${ee.styleMap(Y(Ce))}>${Ce.header??""}</div>`)}</div>`:s.nothing}
1009
+ ${e?n.nothing:n.html`<div class="search-icon">${go(O()?"12":"14","var(--moz-color-text-subtle)")}</div>`}
1010
+ </div>`:n.nothing}
1011
+ ${re()?n.html`<div class="table-header">${O().map(ve=>n.html`<div class="table-header-cell" style=${j.styleMap(J(ve))}>${ve.header??""}</div>`)}</div>`:n.nothing}
960
1012
  <div
961
- id=${h}
1013
+ id=${a}
962
1014
  role="listbox"
963
- class=${V("list-box-container",{"list-box-container--with-filter":w.useFilter,"list-box-container--with-header":ae(),"list-box-container--with-filter-header":w.useFilter&&ae()})}
964
- ${K.ref(B)}
1015
+ class=${A("list-box-container",{"list-box-container--with-filter":y.useFilter,"list-box-container--with-header":re(),"list-box-container--with-filter-header":y.useFilter&&re()})}
1016
+ ${Y.ref(N)}
965
1017
  >
966
- <div class="inner-container" style=${ee.styleMap({height:`${ve}px`})} ${K.ref(d)}>
967
- ${Oe.map(({index:Ce,value:Se,start:Ze})=>{const Te=I(Se);return s.html`<div
968
- data-index=${Ce}
1018
+ <div class="inner-container" style=${j.styleMap({height:`${me}px`})} ${Y.ref(i)}>
1019
+ ${Ee.map(({index:ve,value:Ce,start:Ie})=>{const Re=V(Ce);return n.html`<div
1020
+ data-index=${ve}
969
1021
  role="option"
970
- aria-selected=${Te?"true":"false"}
971
- ${K.ref(De=>{De&&ne.measureElement(De)})}
972
- style=${ee.styleMap({transform:`translateY(${Ze}px)`})}
973
- class=${V(W()?"table-row virtual-row":"list-box-item virtual-row",{"list-selected":Te,"row-selected":!!W()&&Te,"row-focused":e&&Ce===g})}
974
- @mouseenter=${()=>{e&&(g=Ce,t.requestUpdate())}}
975
- @click=${()=>Ne(w.useObjBinding?Se:Se[H])}
1022
+ aria-selected=${Re?"true":"false"}
1023
+ ${Y.ref(Pe=>{Pe&&le.measureElement(Pe)})}
1024
+ style=${j.styleMap({transform:`translateY(${Ie}px)`})}
1025
+ class=${A(O()?"table-row virtual-row":"list-box-item virtual-row",{"list-selected":Re,"row-selected":!!O()&&Re,"row-focused":e&&ve===f})}
1026
+ @mouseenter=${()=>{e&&(f=ve,t.requestUpdate())}}
1027
+ @click=${()=>He(y.useObjBinding?Ce:Ce[Z])}
976
1028
  tabindex="0"
977
- @keydown=${De=>Ie(De,w.useObjBinding?Se:Se[H])}
1029
+ @keydown=${Pe=>at(Pe,y.useObjBinding?Ce:Ce[Z])}
978
1030
  >
979
- ${t.slots.has("list-item")?t.slot("list-item",{text:N(Se),item:Se,index:Ce,highlightText:U(N(Se))}):W()?W().map(De=>s.html`<div class="table-cell" style=${ee.styleMap(Y(De))} title=${String(Se[De.key]??"")}>${U(String(Se[De.key]??"")).map(et=>s.html`<span class=${V({highlight:et.highlight})}>${et.part}</span>`)}</div>`):s.html`<div class="highlight-container" title=${N(Se)}>
980
- ${U(N(Se)).map(De=>s.html`<span class=${V({highlight:De.highlight})}>${De.part}</span>`)}
1031
+ ${t.slots.has("list-item")?t.slot("list-item",{text:F(Ce),item:Ce,index:ve,highlightText:W(F(Ce))}):O()?O().map(Pe=>n.html`<div class="table-cell" style=${j.styleMap(J(Pe))} title=${String(Ce[Pe.key]??"")}>${W(String(Ce[Pe.key]??"")).map(qe=>n.html`<span class=${A({highlight:qe.highlight})}>${qe.part}</span>`)}</div>`):n.html`<div class="highlight-container" title=${F(Ce)}>
1032
+ ${W(F(Ce)).map(Pe=>n.html`<span class=${A({highlight:Pe.highlight})}>${Pe.part}</span>`)}
981
1033
  </div>`}
982
- ${Te?Ss("12","var(--moz-color-accent)",!1,"icon-check"):s.nothing}
1034
+ ${Re?jn(O()?"12":"14","var(--moz-color-accent)",!1,"icon-check"):n.nothing}
983
1035
  </div>`})}
984
1036
  </div>
985
1037
 
986
- ${!te||te.length<=0?s.html`<div class=${W()?"empty-row table-row":"list-box-item loading not-hover"}>
987
- ${t.slots.has("empty")?t.slot("empty"):w.emptyText??j().emptyText}
988
- </div>`:s.nothing}
1038
+ ${!w||w.length<=0?n.html`<div class=${O()?"empty-row table-row":"list-box-item loading not-hover"}>
1039
+ ${t.slots.has("empty")?t.slot("empty"):y.emptyText??X().emptyText}
1040
+ </div>`:n.nothing}
989
1041
  </div>
990
- </div>`}}}}),Ls=Ps(),oi={name:"MozSelect",core:Ls,booleanProps:["disabled","readonly","required","useFilter","useObjBinding"],props:["itemsSource","label","width","required","readonly","disabled","keyProp","displayProp","separator","rules","useObjBinding","useFilter","listWidth","placeholder","searchPlaceholder","emptyText","requiredMessage","modelValue"],emits:["change","close","update:modelValue"],slots:["input-container","input","icon","list-item","empty"],expose:!0};function ko(e,t=12){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function si(e="14",t="var(--moz-color-text-subtle)",o=!1){const n=ko(e,14);return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
1042
+ </div>`}}}}),es=Jn(),ea={name:"MozSelect",core:es,booleanProps:["disabled","readonly","required","useFilter","useObjBinding"],props:["itemsSource","label","width","variant","size","required","readonly","disabled","keyProp","displayProp","separator","rules","useObjBinding","useFilter","listWidth","placeholder","searchPlaceholder","emptyText","requiredMessage","modelValue"],emits:["change","close","update:modelValue"],slots:["input-container","input","icon","list-item","empty"],expose:!0};function Oo(e,t=12){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function ta(e="14",t="var(--moz-color-text-subtle)",o=!1){const s=Oo(e,14);return n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${s.width} height=${s.height} viewBox="0 0 14 14" fill="none">
991
1043
  <path
992
1044
  fill-rule="evenodd"
993
1045
  clip-rule="evenodd"
994
1046
  d="M4.28543 4.37082C4.63291 4.01541 5.20272 4.00898 5.55814 4.35646L9.05717 7.77743L12.4606 4.36449C12.8116 4.01253 13.3815 4.01174 13.7334 4.36272C14.0854 4.7137 14.0862 5.28355 13.7352 5.63551L9.70247 9.67945C9.35394 10.029 8.78895 10.0325 8.43602 9.68748L4.29979 5.64353C3.94437 5.29605 3.93794 4.72624 4.28543 4.37082Z"
995
1047
  fill=${o?"var(--moz-color-text-muted)":t}
996
1048
  ></path>
997
- </svg>`}function ni(e="14",t="var(--moz-color-text-subtle)",o=!1){const n=ko(e,14);return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
1049
+ </svg>`}function oa(e="14",t="var(--moz-color-text-subtle)",o=!1){const s=Oo(e,14);return n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${s.width} height=${s.height} viewBox="0 0 14 14" fill="none">
998
1050
  <path
999
1051
  fill-rule="evenodd"
1000
1052
  clip-rule="evenodd"
1001
1053
  d="M13.7433 9.67312C13.3958 10.0285 12.826 10.035 12.4705 9.68748L8.97152 6.26652L5.56806 9.67946C5.21708 10.0314 4.64723 10.0322 4.29527 9.68123C3.94331 9.33024 3.94252 8.7604 4.2935 8.40844L8.32621 4.36449C8.67474 4.01499 9.23974 4.01141 9.59267 4.35647L13.7289 8.40041C14.0843 8.7479 14.0907 9.31771 13.7433 9.67312Z"
1002
1054
  fill=${o?"var(--moz-color-text-muted)":t}
1003
1055
  ></path>
1004
- </svg>`}function li(e="12",t="var(--moz-color-text-subtle)",o=!1){const n=ko(e),l=o?"var(--moz-color-text-muted)":t;return n.width<=13?s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 12 12" fill="none">
1056
+ </svg>`}function na(e="12",t="var(--moz-color-text-subtle)",o=!1){const s=Oo(e),l=o?"var(--moz-color-text-muted)":t;return s.width<=13?n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${s.width} height=${s.height} viewBox="0 0 12 12" fill="none">
1005
1057
  <path
1006
1058
  d="M10.293 11.375L7.71099 8.79103C6.76581 9.4655 5.60162 9.76002 4.44941 9.61616C3.29719 9.4723 2.24116 8.90058 1.49082 8.01442C0.740489 7.12825 0.350682 5.99242 0.398745 4.83225C0.446808 3.67209 0.929227 2.57239 1.75029 1.75133C2.57135 0.930264 3.67106 0.447845 4.83122 0.399783C5.99138 0.35172 7.12722 0.741526 8.01338 1.49186C8.89954 2.2422 9.47126 3.29823 9.61512 4.45044C9.75898 5.60265 9.46446 6.76684 8.78999 7.71203L11.373 10.294C11.5163 10.4374 11.5969 10.6318 11.5969 10.8345C11.5969 11.0373 11.5163 11.2317 11.373 11.375C11.2296 11.5184 11.0352 11.5989 10.8325 11.5989C10.6298 11.5989 10.4363 11.5184 10.293 11.375ZM1.92899 5.02703C1.92899 5.64015 2.1108 6.2395 2.45144 6.7493C2.79207 7.25909 3.27622 7.65642 3.84267 7.89106C4.40912 8.12569 5.03243 8.18708 5.63377 8.06746C6.23511 7.94785 6.78748 7.6526 7.22102 7.21906C7.65457 6.78552 7.94981 6.23315 8.06943 5.63181C8.18904 5.03047 8.12765 4.40716 7.89302 3.84071C7.65839 3.27426 7.26105 2.79011 6.75126 2.44947C6.24147 2.10884 5.64211 1.92703 5.02899 1.92703C4.20682 1.92703 3.41832 2.25364 2.83696 2.835C2.2556 3.41636 1.92899 4.20486 1.92899 5.02703Z"
1007
1059
  fill=${l}
1008
1060
  ></path>
1009
- </svg>`:s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
1061
+ </svg>`:n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${s.width} height=${s.height} viewBox="0 0 14 14" fill="none">
1010
1062
  <path
1011
1063
  d="M5.84944 0.402344C2.83893 0.402344 0.398438 2.84284 0.398438 5.85334C0.398438 8.86385 2.83893 11.3043 5.84944 11.3043C7.0308 11.3043 8.12438 10.9285 9.01716 10.29L12.0619 13.3347C12.4134 13.6862 12.9832 13.6862 13.3347 13.3347C13.6862 12.9832 13.6862 12.4134 13.3347 12.0619L10.2893 9.01651C10.9259 8.12457 11.3004 7.03269 11.3004 5.85334C11.3004 2.84284 8.85994 0.402344 5.84944 0.402344ZM2.19844 5.85334C2.19844 3.83695 3.83305 2.20234 5.84944 2.20234C7.86583 2.20234 9.50044 3.83695 9.50044 5.85334C9.50044 7.86974 7.86583 9.50434 5.84944 9.50434C3.83305 9.50434 2.19844 7.86974 2.19844 5.85334Z"
1012
1064
  fill=${l}
1013
1065
  ></path>
1014
- </svg>`}const ii=new Set(["itemsSource","inline","filterMode","filterValue","searchPlaceholder","preserveMissingValues","loading","loadingText","listBoxHeight","label","width","required","readonly","disabled","keyProp","displayProp","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","autoSelectNewItems","selectAllWhenEmpty","modelValue","class","style","dropdown-item-height"]);function ri(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Ms=$e({name:"moz-multi-select",defaults:{inline:!1,filterMode:"local",preserveMissingValues:!1,loading:!1,listBoxHeight:224,label:null,width:200,required:!1,readonly:!1,disabled:!1,keyProp:"id",displayProp:"text",disabledProp:"disabled",rules:[],useSelectAll:!0,useFilter:!1,headerFormat:"ITEMS ({count})",listBoxWidth:0,useSpecificSelect:!0,autoSelectNewItems:!1,selectAllWhenEmpty:!1,modelValue:null},setup(e){const t=K.createRef(),o=K.createRef(),n=K.createRef(),l=K.createRef(),d=K.createRef();let a=null;const f=()=>e.props.keyProp||"id",i=()=>e.props.disabledProp||"disabled";let c=e.props.modelValue??null;const r=()=>{const v=e.controlled("modelValue")?e.props.modelValue:c;return Array.isArray(v)?v:[]},u=v=>{e.controlled("modelValue")||(c=v),e.emit("update:modelValue",v),e.requestUpdate()};let p=!1,y=!1,L=0;e.onCleanup(()=>{y=!0,L+=1});const D=ot("moz-multiselect-listbox-");let P=e.props.filterValue??"",E=!1,g=!1,h={},C=[];const k={change:"",blur:"",save:""};let Z=e.props.itemsSource;const W=(()=>{const v=e.props["dropdown-item-height"];if(v!=null)return+v;try{return+getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height").trim().replace("px","")||void 0}catch{return}})();let Q=W??(e.props.inline?24:28),re=!!e.props.inline,ae="",j=0,$=!1,I=null;const Y=()=>{I=null,j++},ne=()=>{!$&&I===null&&(a!=null&&a.isConnected)&&(I=a.scrollTop)},B=()=>{const v=j,R=a;I===null||!R||queueMicrotask(()=>{if(v!==j||R!==a||!R.isConnected||$||I===null||R.clientHeight<=0)return;const q=Math.min(Math.max(0,I),Math.max(0,R.scrollHeight-R.clientHeight));I=null,R.scrollTop!==q&&se.scrollToOffset(q,{behavior:"auto"})})},se=new nt.Virtualizer({count:0,getScrollElement:()=>a,estimateSize:()=>Q,overscan:5,observeElementRect:nt.observeElementRect,observeElementOffset:nt.observeElementOffset,scrollToFn:nt.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{Y(),me==null||me.release(),me=null}),e.onCleanup(se._didMount());const N=v=>{ne(),j++,a=v??null,v&&(se._willUpdate(),B(),e.requestUpdate())},X=v=>typeof e.props.displayProp=="function"?e.props.displayProp(v):typeof v=="object"?v[e.props.displayProp]??"":v,M=()=>{const v=new Map;return(e.props.itemsSource??[]).forEach(R=>v.set(R[f()],R)),v},U=()=>{if(e.props.filterMode==="remote"||!P)return e.props.itemsSource??[];const v=P.toLowerCase();return(e.props.itemsSource??[]).filter(R=>X(R).toLowerCase().indexOf(v)>-1)},_=v=>{if(!P)return[{part:v,highlight:!1}];const R=ri(P),q=new RegExp(`(${R})`,"gi");return v.split(q).map(oe=>({part:oe,highlight:P.toLowerCase()===oe.toLowerCase()}))},G=v=>new Set(r()).has(v[f()]),J=v=>C.some(R=>wt(R.item,v)),x=()=>{const v=r(),R=U();if(v.length<R.length||v.length===0||R.length===0)return!1;const q=new Set(v);return R.every(oe=>q.has(oe[f()]))},m=()=>new Set(U().map(v=>v[f()])),T=()=>new Set(r()),A=()=>{const v=m(),R=T();return!v.size||!R.size||R.size<v.size?!1:Array.from(v).every(q=>R.has(q))},F=()=>k.save||k.blur||k.change,ce=()=>{const v=[];return e.props.required&&v.push({message:e.locale.MultiSelect.required.replace("{label}",e.props.label||""),type:"save",validator:R=>!!R.length}),[...v,...e.props.rules??[]]},ke=async(v,R)=>{const q=ce();if(q.length<=0)return;if(e.props.disabled)return!0;k[R]="",e.requestUpdate();const oe=q.filter(ie=>ie.type===R);for(const ie of oe)if(!await ie.validator(v))return k[R]=ie.message,e.requestUpdate(),!1;return!0},Me=async(v="save")=>F()!==""?!1:await ke(r(),v)??!0,Ne={validate:Me,initValidator:()=>{k.change="",k.blur="",k.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(Ne),e.onCleanup(()=>{var v;return(v=e.validator)==null?void 0:v.removeValidator(Ne)}));const qe=v=>{if(e.props.disabled||e.props.readonly||e.props.loading)return;const R=M(),q=new Set;r().forEach(ie=>{const pe=R.get(ie);(pe==null?void 0:pe[i()])===!0&&q.add(ie)}),v.forEach(ie=>{const pe=R.get(ie);(pe&&pe[i()]!==!0||!pe&&e.props.preserveMissingValues)&&q.add(ie)});const oe=Array.from(q);wt(r(),oe)||(u(oe),e.emit("change",oe,oe.map(ie=>R.get(ie)).filter(Boolean)),ke(oe,"change"))},st=(v,R)=>v.filter(q=>G(q)!==R).map(q=>q[f()]),Qe=(v,R,q)=>{if(q.shiftKey&&C.length>0){const oe=C[0],ie=Math.min(oe.index,R),pe=Math.max(oe.index,R);C=U().slice(ie,pe+1).map((ge,Ge)=>({item:ge,index:ie+Ge}))}else q.ctrlKey?C.push({item:v,index:R}):C=[{item:v,index:R}];return C.length},Je=(v=!0)=>{const R=C.map(ie=>ie.item),q=st(R,v);let oe=r();v?oe=[...oe,...q]:oe=oe.filter(ie=>!q.some(pe=>ie===pe)),qe(oe)},Be=(v,R,q)=>{if(v[i()]===!0)return;const oe=C.some(pe=>pe.item[f()]===v[f()]);(C.length<=1||!oe)&&Qe(v,R,{shiftKey:!1,ctrlKey:!1});const ie=r().some(pe=>pe===v[f()]);Je(!ie),q.stopPropagation()},He=(v,R,q)=>{v[i()]!==!0&&(!q.ctrlKey&&!q.shiftKey&&C.length<=1&&Be(v,R,q),Qe(v,R,q),e.requestUpdate())},Le=(v,R,q)=>{if(v[i()]===!0)return;const oe=r(),ie=T().size!==0&&oe.every(pe=>pe===v[f()]);qe(ie?[]:[v[f()]]),Qe(v,R,q),q.stopPropagation()},_e=v=>{v.stopPropagation();const R=m().size===T().size&&[...m()].every(q=>T().has(q));if(x()&&R){const q=new Set((e.props.itemsSource??[]).filter(oe=>oe[i()]===!0).map(oe=>oe[f()]));qe(Array.from(q))}else{const q=new Set(U().filter(oe=>oe[i()]!==!0).map(oe=>oe[f()]));qe(Array.from(q))}},Ue=v=>{if(v.stopPropagation(),A()){const R=m();qe(r().filter(q=>!R.has(q)))}else{const R=new Set([...r(),...m()]);qe(Array.from(R))}},rt=v=>{const R=v.target;R===a&&(Y(),E=R.scrollTop>0,e.requestUpdate())},z=()=>{const v=r();if(!(v!=null&&v.length))return"";const R=M(),q=v.map(ie=>R.get(ie)).filter(Boolean).map(ie=>typeof e.props.displayProp=="function"?e.props.displayProp(ie):ie[e.props.displayProp]||""),oe=e.props.itemsSource??[];return q.length===oe.length&&q.length>2?`${e.props.headerFormat.replace(/\{count(:.*?)?}/g,"ALL")}`:q.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${q.length.toLocaleString()}`):q.join(", ")||""},de=(v,R,q=10)=>{const oe=window.innerHeight||document.documentElement.clientHeight,ie=window.innerWidth||document.documentElement.clientWidth,pe=v.getBoundingClientRect(),ge=R.getBoundingClientRect(),Ge=pe.bottom+ge.height+q>oe;if(!Ge)return!1;const yt=pe.top-ge.height-q<0,xe=pe.right+ge.width+q>ie,ft=pe.left-ge.width-q<0;return Ge&&!yt||xe&&!ft},Ie=()=>{const v=o.value;if(!v)return;const R=v.getBoundingClientRect();let q=`${R.width}px`;e.props.listBoxWidth&&(q=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),h={width:String(q),left:`${R.left}px`,top:`${R.top+(g?0:R.height)}px`},e.requestUpdate()},w=v=>{var R;(R=n.value)!=null&&R.contains(v.target)||ve(!1)},H=v=>{var R,q;!((R=t.value)!=null&&R.contains(v.target))&&!((q=n.value)!=null&&q.contains(v.target))&&(ve(!1),document.removeEventListener("click",H,{capture:!0}))},te=v=>{var q;`${v.ctrlKey?"ctrl+":""}${v.altKey?"alt+":""}${v.key.toLowerCase()}`==="escape"&&(ve(!1),(q=l.value)==null||q.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",w,{capture:!0}),document.removeEventListener("click",H,{capture:!0}),window.removeEventListener("keydown",te)});let me=null;const ve=(v,R=!0)=>{if(y||p===v)return;const q=++L;Y(),$=v;const oe=p;if(p=v,e.requestUpdate(),v)me=Gt(),document.body.addEventListener("scroll",w,{capture:!0}),document.addEventListener("click",H,{capture:!0}),k.save="",window.addEventListener("keydown",te),Ie(),queueMicrotask(()=>{var ie,pe;y||!p||q!==L||(!e.props.inline&&p&&o.value&&((ie=n.value)!=null&&ie.isConnected)&&(g=de(o.value,n.value)),Ie(),se.measure(),Y(),a&&(a.scrollTop=0),$=!1,R&&(d.value?d.value.focus():(pe=l.value)==null||pe.focus()))});else if(me==null||me.release(),me=null,P="",d.value&&(d.value.value=""),document.body.removeEventListener("scroll",w,{capture:!0}),document.removeEventListener("click",H,{capture:!0}),ke(r(),"blur"),window.removeEventListener("keydown",te),oe&&!v){const ie=r();if(e.props.selectAllWhenEmpty&&(!ie||ie.length===0)){const pe=(e.props.itemsSource??[]).filter(ge=>ge[i()]!==!0).map(ge=>ge[f()]);pe.length>0&&(u(pe),e.emit("change",pe,(e.props.itemsSource??[]).filter(ge=>pe.includes(ge[f()]))))}e.emit("close")}},Oe=v=>{var R;if(p){v.stopPropagation(),v.preventDefault();const q=(R=n.value)==null?void 0:R.querySelector("input:first-child, button:first-child");q==null||q.focus()}},Ce=v=>{var ie,pe,ge;const R=((ie=n.value)==null?void 0:ie.querySelectorAll("input, button"))??[],q=R[0],oe=R[R.length-1];(v.target===q||v.target===oe)&&l.value&&(v.target===q&&v.shiftKey?(v.stopPropagation(),v.preventDefault(),(pe=l.value)==null||pe.focus()):v.target===oe&&!v.shiftKey&&(v.stopPropagation(),v.preventDefault(),(ge=l.value)==null||ge.focus()))},Se=v=>{v.key==="Tab"&&Oe(v)},Ze=v=>{!e.props.inline&&v.key==="Tab"&&Ce(v)},Te=v=>{!p&&!e.props.inline||(Y(),$=!0,P=v.target.value,C=[],e.emit("update:filterValue",P),e.requestUpdate(),queueMicrotask(()=>{ht(e.props.loading?[]:U()),se.measure(),Y(),a&&(a.scrollTop=0),$=!1}))},De=()=>{var v;e.props.disabled||(ve(!p),(v=l.value)==null||v.focus())},et=(v,R)=>{var q,oe;if(v.key==="Enter"||v.key===" "){v.preventDefault(),v.stopPropagation(),R();return}if(v.key==="ArrowDown"||v.key==="ArrowUp"){v.preventDefault(),v.stopPropagation();const ie=Array.from(((q=n.value)==null?void 0:q.querySelectorAll('[tabindex="0"]'))??[]),pe=ie.indexOf(v.currentTarget),ge=ie[pe+(v.key==="ArrowDown"?1:-1)];ge==null||ge.focus();return}v.key==="Escape"&&!e.props.inline&&(v.preventDefault(),v.stopPropagation(),ve(!1),(oe=l.value)==null||oe.focus())},at=(v,R)=>{He(v,R,{ctrlKey:!1,shiftKey:!1,stopPropagation(){}})},Ct=(v,R)=>{if(C=[],e.props.preserveMissingValues||JSON.stringify(v)===JSON.stringify(R))return;const q=new Set(v.map(ie=>ie[f()])),oe=r();if(e.props.autoSelectNewItems&&R){const ie=new Set(R.map(ge=>ge[f()])),pe=v.filter(ge=>!ie.has(ge[f()])).map(ge=>ge[f()]);if(pe.length>0){const ge=oe.filter(Ge=>q.has(Ge));u([...new Set([...ge,...pe])])}else u(oe.filter(ge=>q.has(ge)))}else{const ie=oe.filter(pe=>q.has(pe));if(wt(oe,ie))return;u(ie)}},ht=v=>{const R=e.props,q=W??(R.inline?24:28),oe=!!R.useSelectAll&&(R.itemsSource??[]).length>0&&v.length>0,ie=R.inline||oe?0:8,pe=R.inline?0:8,ge=`${!!R.inline}/${q}/${ie}/${pe}/${v.length}`;if(ge!==ae){ne(),j++;const Ge=!Object.is(q,Q);ae=ge,Q=q,se.setOptions({...se.options,count:v.length,paddingStart:ie,paddingEnd:pe}),Ge&&se.measure()}return B(),{hasSelectAll:oe,paddingStart:ie,paddingEnd:pe}},mt=()=>{const v=e.props,R=f(),q=v.loading?[]:U(),{hasSelectAll:oe,paddingStart:ie,paddingEnd:pe}=ht(q);se._willUpdate();const ge=new Set(r()),Ge=se.getVirtualItems(),yt=po(Ge,q.length,Q,a).map(Fe=>{if(Fe.index>=q.length)return null;const We=q[Fe.index];return We?{index:Fe.index,value:We,size:Fe.size,start:Fe.start+(Ge.length===0?ie:0),isSelected:ge.has(We[R]),isDisabled:!!v.disabled||!!v.readonly||We[i()]===!0,isFocused:J(We)}:null}).filter(Fe=>Fe!==null),xe=se.getTotalSize(),ft=P?e.locale.MultiSelect.selectFiltered:e.locale.MultiSelect.selectAll,zt=q.length===0?s.html`<div class="list-box-item loading not-hover">
1066
+ </svg>`}const sa=new Set(["itemsSource","inline","filterMode","filterValue","searchPlaceholder","preserveMissingValues","loading","loadingText","listBoxHeight","label","width","required","readonly","disabled","keyProp","displayProp","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","autoSelectNewItems","selectAllWhenEmpty","modelValue","class","style","dropdown-item-height"]);function la(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const ts=ye({name:"moz-multi-select",defaults:{inline:!1,filterMode:"local",preserveMissingValues:!1,loading:!1,listBoxHeight:224,label:null,width:200,required:!1,readonly:!1,disabled:!1,keyProp:"id",displayProp:"text",disabledProp:"disabled",rules:[],useSelectAll:!0,useFilter:!1,headerFormat:"ITEMS ({count})",listBoxWidth:0,useSpecificSelect:!0,autoSelectNewItems:!1,selectAllWhenEmpty:!1,modelValue:null},setup(e){const t=Y.createRef(),o=Y.createRef(),s=Y.createRef(),l=Y.createRef(),i=Y.createRef();let r=null;const p=()=>e.props.keyProp||"id",d=()=>e.props.disabledProp||"disabled";let b=e.props.modelValue??null;const c=()=>{const v=e.controlled("modelValue")?e.props.modelValue:b;return Array.isArray(v)?v:[]},m=v=>{e.controlled("modelValue")||(b=v),e.emit("update:modelValue",v),e.requestUpdate()};let u=!1,k=!1,x=0;e.onCleanup(()=>{k=!0,x+=1});const S=Qe("moz-multiselect-listbox-");let L=e.props.filterValue??"",M=!1,f=!1,a={},h=[];const $={change:"",blur:"",save:""};let _=e.props.itemsSource;const O=(()=>{const v=e.props["dropdown-item-height"];if(v!=null)return+v;try{return+getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height").trim().replace("px","")||void 0}catch{return}})();let U=O??(e.props.inline?24:28),Q=!!e.props.inline,re="",X=0,E=!1,V=null;const J=()=>{V=null,X++},le=()=>{!E&&V===null&&(r!=null&&r.isConnected)&&(V=r.scrollTop)},N=()=>{const v=X,D=r;V===null||!D||queueMicrotask(()=>{if(v!==X||D!==r||!D.isConnected||E||V===null||D.clientHeight<=0)return;const q=Math.min(Math.max(0,V),Math.max(0,D.scrollHeight-D.clientHeight));V=null,D.scrollTop!==q&&ie.scrollToOffset(q,{behavior:"auto"})})},ie=new st.Virtualizer({count:0,getScrollElement:()=>r,estimateSize:()=>U,overscan:5,observeElementRect:st.observeElementRect,observeElementOffset:st.observeElementOffset,scrollToFn:st.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{J(),G==null||G.release(),G=null}),e.onCleanup(ie._didMount());const F=v=>{le(),X++,r=v??null,v&&(ie._willUpdate(),N(),e.requestUpdate())},oe=v=>typeof e.props.displayProp=="function"?e.props.displayProp(v):typeof v=="object"?v[e.props.displayProp]??"":v,T=()=>{const v=new Map;return(e.props.itemsSource??[]).forEach(D=>v.set(D[p()],D)),v},W=()=>{if(e.props.filterMode==="remote"||!L)return e.props.itemsSource??[];const v=L.toLowerCase();return(e.props.itemsSource??[]).filter(D=>oe(D).toLowerCase().indexOf(v)>-1)},K=v=>{if(!L)return[{part:v,highlight:!1}];const D=la(L),q=new RegExp(`(${D})`,"gi");return v.split(q).map(ne=>({part:ne,highlight:L.toLowerCase()===ne.toLowerCase()}))},ee=v=>new Set(c()).has(v[p()]),te=v=>h.some(D=>Mt(D.item,v)),P=()=>{const v=c(),D=W();if(v.length<D.length||v.length===0||D.length===0)return!1;const q=new Set(v);return D.every(ne=>q.has(ne[p()]))},g=()=>new Set(W().map(v=>v[p()])),R=()=>new Set(c()),I=()=>{const v=g(),D=R();return!v.size||!D.size||D.size<v.size?!1:Array.from(v).every(q=>D.has(q))},H=()=>$.save||$.blur||$.change,pe=()=>{const v=[];return e.props.required&&v.push({message:e.locale.MultiSelect.required.replace("{label}",e.props.label||""),type:"save",validator:D=>!!D.length}),[...v,...e.props.rules??[]]},ke=async(v,D)=>{const q=pe();if(q.length<=0)return;if(e.props.disabled)return!0;$[D]="",e.requestUpdate();const ne=q.filter(se=>se.type===D);for(const se of ne)if(!await se.validator(v))return $[D]=se.message,e.requestUpdate(),!1;return!0},Me=async(v="save")=>H()!==""?!1:await ke(c(),v)??!0,He={validate:Me,initValidator:()=>{$.change="",$.blur="",$.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(He),e.onCleanup(()=>{var v;return(v=e.validator)==null?void 0:v.removeValidator(He)}));const Fe=v=>{if(e.props.disabled||e.props.readonly||e.props.loading)return;const D=T(),q=new Set;c().forEach(se=>{const de=D.get(se);(de==null?void 0:de[d()])===!0&&q.add(se)}),v.forEach(se=>{const de=D.get(se);(de&&de[d()]!==!0||!de&&e.props.preserveMissingValues)&&q.add(se)});const ne=Array.from(q);Mt(c(),ne)||(m(ne),e.emit("change",ne,ne.map(se=>D.get(se)).filter(Boolean)),ke(ne,"change"))},Ge=(v,D)=>v.filter(q=>ee(q)!==D).map(q=>q[p()]),et=(v,D,q)=>{if(q.shiftKey&&h.length>0){const ne=h[0],se=Math.min(ne.index,D),de=Math.max(ne.index,D);h=W().slice(se,de+1).map((fe,Ne)=>({item:fe,index:se+Ne}))}else q.ctrlKey?h.push({item:v,index:D}):h=[{item:v,index:D}];return h.length},lt=(v=!0)=>{const D=h.map(se=>se.item),q=Ge(D,v);let ne=c();v?ne=[...ne,...q]:ne=ne.filter(se=>!q.some(de=>se===de)),Fe(ne)},Ke=(v,D,q)=>{if(v[d()]===!0)return;const ne=h.some(de=>de.item[p()]===v[p()]);(h.length<=1||!ne)&&et(v,D,{shiftKey:!1,ctrlKey:!1});const se=c().some(de=>de===v[p()]);lt(!se),q.stopPropagation()},Ue=(v,D,q)=>{v[d()]!==!0&&(!q.ctrlKey&&!q.shiftKey&&h.length<=1&&Ke(v,D,q),et(v,D,q),e.requestUpdate())},ze=(v,D,q)=>{if(v[d()]===!0)return;const ne=c(),se=R().size!==0&&ne.every(de=>de===v[p()]);Fe(se?[]:[v[p()]]),et(v,D,q),q.stopPropagation()},Ze=v=>{v.stopPropagation();const D=g().size===R().size&&[...g()].every(q=>R().has(q));if(P()&&D){const q=new Set((e.props.itemsSource??[]).filter(ne=>ne[d()]===!0).map(ne=>ne[p()]));Fe(Array.from(q))}else{const q=new Set(W().filter(ne=>ne[d()]!==!0).map(ne=>ne[p()]));Fe(Array.from(q))}},Be=v=>{if(v.stopPropagation(),I()){const D=g();Fe(c().filter(q=>!D.has(q)))}else{const D=new Set([...c(),...g()]);Fe(Array.from(D))}},ot=v=>{const D=v.target;D===r&&(J(),M=D.scrollTop>0,e.requestUpdate())},mt=()=>{const v=c();if(!(v!=null&&v.length))return"";const D=T(),q=v.map(se=>D.get(se)).filter(Boolean).map(se=>typeof e.props.displayProp=="function"?e.props.displayProp(se):se[e.props.displayProp]||""),ne=e.props.itemsSource??[];return q.length===ne.length&&q.length>2?`${e.props.headerFormat.replace(/\{count(:.*?)?}/g,"ALL")}`:q.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${q.length.toLocaleString()}`):q.join(", ")||""},Ye=(v,D,q=10)=>{const ne=window.innerHeight||document.documentElement.clientHeight,se=window.innerWidth||document.documentElement.clientWidth,de=v.getBoundingClientRect(),fe=D.getBoundingClientRect(),Ne=de.bottom+fe.height+q>ne;if(!Ne)return!1;const vt=de.top-fe.height-q<0,Le=de.right+fe.width+q>se,dt=de.left-fe.width-q<0;return Ne&&!vt||Le&&!dt},at=()=>{const v=o.value;if(!v)return;const D=v.getBoundingClientRect();let q=`${D.width}px`;e.props.listBoxWidth&&(q=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),a={width:String(q),left:`${D.left}px`,top:`${D.top+(f?0:D.height)}px`},e.requestUpdate()},y=v=>{var D;(D=s.value)!=null&&D.contains(v.target)||me(!1)},Z=v=>{var D,q;!((D=t.value)!=null&&D.contains(v.target))&&!((q=s.value)!=null&&q.contains(v.target))&&(me(!1),document.removeEventListener("click",Z,{capture:!0}))},w=v=>{var q;`${v.ctrlKey?"ctrl+":""}${v.altKey?"alt+":""}${v.key.toLowerCase()}`==="escape"&&(me(!1),(q=l.value)==null||q.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",y,{capture:!0}),document.removeEventListener("click",Z,{capture:!0}),window.removeEventListener("keydown",w)});let G=null;const me=(v,D=!0)=>{if(k||u===v)return;const q=++x;J(),E=v;const ne=u;if(u=v,e.requestUpdate(),v)G=oo(),document.body.addEventListener("scroll",y,{capture:!0}),document.addEventListener("click",Z,{capture:!0}),$.save="",window.addEventListener("keydown",w),at(),queueMicrotask(()=>{var se,de;k||!u||q!==x||(!e.props.inline&&u&&o.value&&((se=s.value)!=null&&se.isConnected)&&(f=Ye(o.value,s.value)),at(),ie.measure(),J(),r&&(r.scrollTop=0),E=!1,D&&(i.value?i.value.focus():(de=l.value)==null||de.focus()))});else if(G==null||G.release(),G=null,L="",i.value&&(i.value.value=""),document.body.removeEventListener("scroll",y,{capture:!0}),document.removeEventListener("click",Z,{capture:!0}),ke(c(),"blur"),window.removeEventListener("keydown",w),ne&&!v){const se=c();if(e.props.selectAllWhenEmpty&&(!se||se.length===0)){const de=(e.props.itemsSource??[]).filter(fe=>fe[d()]!==!0).map(fe=>fe[p()]);de.length>0&&(m(de),e.emit("change",de,(e.props.itemsSource??[]).filter(fe=>de.includes(fe[p()]))))}e.emit("close")}},Ee=v=>{var D;if(u){v.stopPropagation(),v.preventDefault();const q=(D=s.value)==null?void 0:D.querySelector("input:first-child, button:first-child");q==null||q.focus()}},ve=v=>{var se,de,fe;const D=((se=s.value)==null?void 0:se.querySelectorAll("input, button"))??[],q=D[0],ne=D[D.length-1];(v.target===q||v.target===ne)&&l.value&&(v.target===q&&v.shiftKey?(v.stopPropagation(),v.preventDefault(),(de=l.value)==null||de.focus()):v.target===ne&&!v.shiftKey&&(v.stopPropagation(),v.preventDefault(),(fe=l.value)==null||fe.focus()))},Ce=v=>{v.key==="Tab"&&Ee(v)},Ie=v=>{!e.props.inline&&v.key==="Tab"&&ve(v)},Re=v=>{!u&&!e.props.inline||(J(),E=!0,L=v.target.value,h=[],e.emit("update:filterValue",L),e.requestUpdate(),queueMicrotask(()=>{nt(e.props.loading?[]:W()),ie.measure(),J(),r&&(r.scrollTop=0),E=!1}))},Pe=()=>{var v;e.props.disabled||(me(!u),(v=l.value)==null||v.focus())},qe=(v,D)=>{var q,ne;if(v.key==="Enter"||v.key===" "){v.preventDefault(),v.stopPropagation(),D();return}if(v.key==="ArrowDown"||v.key==="ArrowUp"){v.preventDefault(),v.stopPropagation();const se=Array.from(((q=s.value)==null?void 0:q.querySelectorAll('[tabindex="0"]'))??[]),de=se.indexOf(v.currentTarget),fe=se[de+(v.key==="ArrowDown"?1:-1)];fe==null||fe.focus();return}v.key==="Escape"&&!e.props.inline&&(v.preventDefault(),v.stopPropagation(),me(!1),(ne=l.value)==null||ne.focus())},ft=(v,D)=>{Ue(v,D,{ctrlKey:!1,shiftKey:!1,stopPropagation(){}})},ct=(v,D)=>{if(h=[],e.props.preserveMissingValues||JSON.stringify(v)===JSON.stringify(D))return;const q=new Set(v.map(se=>se[p()])),ne=c();if(e.props.autoSelectNewItems&&D){const se=new Set(D.map(fe=>fe[p()])),de=v.filter(fe=>!se.has(fe[p()])).map(fe=>fe[p()]);if(de.length>0){const fe=ne.filter(Ne=>q.has(Ne));m([...new Set([...fe,...de])])}else m(ne.filter(fe=>q.has(fe)))}else{const se=ne.filter(de=>q.has(de));if(Mt(ne,se))return;m(se)}},nt=v=>{const D=e.props,q=O??(D.inline?24:28),ne=!!D.useSelectAll&&(D.itemsSource??[]).length>0&&v.length>0,se=D.inline||ne?0:8,de=D.inline?0:8,fe=`${!!D.inline}/${q}/${se}/${de}/${v.length}`;if(fe!==re){le(),X++;const Ne=!Object.is(q,U);re=fe,U=q,ie.setOptions({...ie.options,count:v.length,paddingStart:se,paddingEnd:de}),Ne&&ie.measure()}return N(),{hasSelectAll:ne,paddingStart:se,paddingEnd:de}},rt=()=>{const v=e.props,D=p(),q=v.loading?[]:W(),{hasSelectAll:ne,paddingStart:se,paddingEnd:de}=nt(q);ie._willUpdate();const fe=new Set(c()),Ne=ie.getVirtualItems(),vt=ko(Ne,q.length,U,r).map(Oe=>{if(Oe.index>=q.length)return null;const _e=q[Oe.index];return _e?{index:Oe.index,value:_e,size:Oe.size,start:Oe.start+(Ne.length===0?se:0),isSelected:fe.has(_e[D]),isDisabled:!!v.disabled||!!v.readonly||_e[d()]===!0,isFocused:te(_e)}:null}).filter(Oe=>Oe!==null),Le=ie.getTotalSize(),dt=L?e.locale.MultiSelect.selectFiltered:e.locale.MultiSelect.selectAll,wt=q.length===0?n.html`<div class="list-box-item loading not-hover">
1015
1067
  ${v.loading?v.loadingText??"Loading…":e.slots.has("empty")?e.slot("empty"):e.locale.MultiSelect.noData}
1016
- </div>`:s.nothing;return s.html`<div
1017
- class=${V("list-box moz-multi-select-list",{"no-label":!v.label,"show-top":g,"moz-multiselect-inline-list":!!v.inline},v.class)}
1018
- style=${ee.styleMap(v.inline?{"--moz-multiselect-list-height":`${v.listBoxHeight??224}px`}:{...h,"--moz-multiselect-row-height":`${Q}px`})}
1019
- @keydown=${Ze}
1020
- ${K.ref(n)}
1068
+ </div>`:n.nothing;return n.html`<div
1069
+ class=${A("list-box moz-multi-select-list",{"no-label":!v.label,"show-top":f,"moz-multiselect-inline-list":!!v.inline},v.class)}
1070
+ style=${j.styleMap(v.inline?{"--moz-multiselect-list-height":`${v.listBoxHeight??224}px`}:{...a,"--moz-multiselect-row-height":`${U}px`})}
1071
+ @keydown=${Ie}
1072
+ ${Y.ref(s)}
1021
1073
  >
1022
- ${v.useFilter?s.html`<div class="filter-input">
1074
+ ${v.useFilter?n.html`<div class="filter-input">
1023
1075
  <input
1024
1076
  placeholder=${v.searchPlaceholder??e.locale.MultiSelect.search}
1025
1077
  aria-label=${v.searchPlaceholder??e.locale.MultiSelect.search}
1026
- .value=${P}
1078
+ .value=${L}
1027
1079
  ?disabled=${!!v.disabled||!!v.readonly}
1028
- @input=${Te}
1029
- ${K.ref(d)}
1080
+ @input=${Re}
1081
+ ${Y.ref(i)}
1030
1082
  />
1031
- <div class="search-icon">${li("12","var(--moz-color-text-subtle)")}</div>
1032
- </div>`:s.nothing}
1033
- ${oe?s.html`<div
1034
- class=${V("list-box-item multi-select-item multi-select-all",{"is-scrolled":E})}
1083
+ <div class="search-icon">${na("12","var(--moz-color-text-subtle)")}</div>
1084
+ </div>`:n.nothing}
1085
+ ${ne?n.html`<div
1086
+ class=${A("list-box-item multi-select-item multi-select-all",{"is-scrolled":M})}
1035
1087
  role="button"
1036
1088
  tabindex=${v.disabled||v.readonly||v.loading?"-1":"0"}
1037
1089
  aria-disabled=${v.disabled||v.readonly||v.loading?"true":"false"}
1038
- aria-pressed=${A()?"true":"false"}
1039
- aria-label=${ft}
1040
- @click=${Ue}
1041
- @keydown=${Fe=>et(Fe,()=>Ue({stopPropagation(){}}))}
1090
+ aria-pressed=${I()?"true":"false"}
1091
+ aria-label=${dt}
1092
+ @click=${Be}
1093
+ @keydown=${Oe=>qe(Oe,()=>Be({stopPropagation(){}}))}
1042
1094
  >
1043
1095
  <input
1044
1096
  type="checkbox"
1045
1097
  aria-hidden="true"
1046
1098
  tabindex="-1"
1047
- class=${V("moz-checkbox",{"is-indeterminate":q.some(Fe=>ge.has(Fe[R]))&&!x()})}
1048
- .checked=${A()}
1099
+ class=${A("moz-checkbox",{"is-indeterminate":q.some(Oe=>fe.has(Oe[D]))&&!P()})}
1100
+ .checked=${I()}
1049
1101
  />
1050
1102
  <div class="highlight-container">
1051
- <span title=${ft}>${ft}</span>
1103
+ <span title=${dt}>${dt}</span>
1052
1104
  </div>
1053
- ${v.useSpecificSelect&&P&&q.length>0?s.html`<button type="button" class="item-only" @click=${_e}>
1105
+ ${v.useSpecificSelect&&L&&q.length>0?n.html`<button type="button" class="item-only" @click=${Ze}>
1054
1106
  ${e.locale.MultiSelect.specificResults}
1055
- </button>`:s.nothing}
1056
- </div>`:s.nothing}
1107
+ </button>`:n.nothing}
1108
+ </div>`:n.nothing}
1057
1109
 
1058
1110
  <div
1059
- id=${D}
1111
+ id=${S}
1060
1112
  role="listbox"
1061
1113
  aria-multiselectable="true"
1062
- aria-label=${Ee.ifDefined(v["aria-label"]??v.label??void 0)}
1114
+ aria-label=${$e.ifDefined(v["aria-label"]??v.label??void 0)}
1063
1115
  aria-busy=${v.loading?"true":"false"}
1064
1116
  class="list-box-container"
1065
- @scroll=${rt}
1066
- @wheel=${Y}
1067
- @pointerdown=${Y}
1068
- @keydown=${Y}
1069
- ${K.ref(N)}
1117
+ @scroll=${ot}
1118
+ @wheel=${J}
1119
+ @pointerdown=${J}
1120
+ @keydown=${J}
1121
+ ${Y.ref(F)}
1070
1122
  >
1071
- ${!v.inline&&q.length===0?s.nothing:s.html`<div class="inner-container" style=${ee.styleMap({height:`${xe}px`})}>
1072
- ${yt.map(({index:Fe,value:We,start:Tt,size:Yt,isSelected:b,isDisabled:S,isFocused:O})=>s.html`<div
1073
- class=${V("list-box-item multi-select-item virtual-row",{"list-selected":b,"moz-multi-focus":O})}
1074
- style=${ee.styleMap({height:`${Yt}px`,transform:`translateY(${Tt}px)`})}
1123
+ ${!v.inline&&q.length===0?n.nothing:n.html`<div class="inner-container" style=${j.styleMap({height:`${Le}px`})}>
1124
+ ${vt.map(({index:Oe,value:_e,start:yt,size:xt,isSelected:C,isDisabled:z,isFocused:B})=>n.html`<div
1125
+ class=${A("list-box-item multi-select-item virtual-row",{"list-selected":C,"moz-multi-focus":B})}
1126
+ style=${j.styleMap({height:`${xt}px`,transform:`translateY(${yt}px)`})}
1075
1127
  role="option"
1076
- aria-selected=${b?"true":"false"}
1077
- aria-disabled=${S?"true":"false"}
1078
- tabindex=${S?"-1":"0"}
1079
- @click=${le=>He(We,Fe,le)}
1080
- @keydown=${le=>et(le,()=>at(We,Fe))}
1128
+ aria-selected=${C?"true":"false"}
1129
+ aria-disabled=${z?"true":"false"}
1130
+ tabindex=${z?"-1":"0"}
1131
+ @click=${ae=>Ue(_e,Oe,ae)}
1132
+ @keydown=${ae=>qe(ae,()=>ft(_e,Oe))}
1081
1133
  >
1082
1134
  <input
1083
1135
  type="checkbox"
1084
1136
  aria-hidden="true"
1085
1137
  tabindex="-1"
1086
1138
  class="moz-checkbox"
1087
- .checked=${b}
1088
- ?disabled=${S}
1089
- @click=${le=>Be(We,Fe,le)}
1139
+ .checked=${C}
1140
+ ?disabled=${z}
1141
+ @click=${ae=>Ke(_e,Oe,ae)}
1090
1142
  />
1091
- ${e.slots.has("list-item")?e.slot("list-item",{text:X(We),item:We}):s.html`<div class="highlight-container" title=${X(We)}>
1092
- ${_(X(We)).map(le=>s.html`<span class=${V("text-part",{highlight:le.highlight})}>${le.part}</span>`)}
1143
+ ${e.slots.has("list-item")?e.slot("list-item",{text:oe(_e),item:_e}):n.html`<div class="highlight-container" title=${oe(_e)}>
1144
+ ${K(oe(_e)).map(ae=>n.html`<span class=${A("text-part",{highlight:ae.highlight})}>${ae.part}</span>`)}
1093
1145
  </div>`}
1094
- ${v.useSpecificSelect&&!S?s.html`<button type="button" class="item-only" @click=${le=>Le(We,Fe,le)}>
1146
+ ${v.useSpecificSelect&&!z?n.html`<button type="button" class="item-only" @click=${ae=>ze(_e,Oe,ae)}>
1095
1147
  ${e.locale.MultiSelect.specificSelect}
1096
- </button>`:s.nothing}
1148
+ </button>`:n.nothing}
1097
1149
  </div>`)}
1098
1150
  </div>`}
1099
- ${q.length<=0?v.inline?zt:s.html`<div style=${ee.styleMap({paddingTop:`${ie}px`,paddingBottom:`${pe}px`})}>
1100
- ${zt}
1101
- </div>`:s.nothing}
1151
+ ${q.length<=0?v.inline?wt:n.html`<div style=${j.styleMap({paddingTop:`${se}px`,paddingBottom:`${de}px`})}>
1152
+ ${wt}
1153
+ </div>`:n.nothing}
1102
1154
  </div>
1103
- </div>`};return{api:{validate:Me,setOpen:v=>{y||e.props.inline||v&&e.props.disabled||ve(v,!1)},isOpen:()=>!y&&!e.props.inline&&p},render(){const v=e.props;if(e.controlled("filterValue")&&(P=v.filterValue??""),re!==!!v.inline&&(ne(),re=!!v.inline),v.itemsSource!==Z){const ge=Z,Ge=v.itemsSource;Z=v.itemsSource,queueMicrotask(()=>Ct(Ge??[],ge??[]))}const R=typeof v.width=="number"?`${Ae(v.width)}rem`:v.width,q=ye(v,ii),{aria:oe,dom:ie}=Wt(q);if(v.inline)return s.html`<div class="moz-multi-select moz-multi-select-inline"
1104
- style=${ee.styleMap({width:R,...be(v.style)})}
1105
- ${K.ref(t)}>${mt()}</div>`;const pe=e.slots.has("icon")?e.slot("icon",{isOpen:p}):p?ni("14","var(--moz-color-accent)"):si("14",v.disabled?"var(--moz-color-text-muted)":"var(--moz-color-text-subtle)");return s.html`
1155
+ </div>`};return{api:{validate:Me,setOpen:v=>{k||e.props.inline||v&&e.props.disabled||me(v,!1)},isOpen:()=>!k&&!e.props.inline&&u},render(){const v=e.props;if(e.controlled("filterValue")&&(L=v.filterValue??""),Q!==!!v.inline&&(le(),Q=!!v.inline),v.itemsSource!==_){const fe=_,Ne=v.itemsSource;_=v.itemsSource,queueMicrotask(()=>ct(Ne??[],fe??[]))}const D=typeof v.width=="number"?`${Ae(v.width)}rem`:v.width,q=ge(v,sa),{aria:ne,dom:se}=eo(q);if(v.inline)return n.html`<div class="moz-multi-select moz-multi-select-inline"
1156
+ style=${j.styleMap({width:D,...he(v.style)})}
1157
+ ${Y.ref(t)}>${rt()}</div>`;const de=e.slots.has("icon")?e.slot("icon",{isOpen:u}):u?oa("14","var(--moz-color-accent)"):ta("14",v.disabled?"var(--moz-color-text-muted)":"var(--moz-color-text-subtle)");return n.html`
1106
1158
  <div
1107
- class=${V("moz-multi-select",{"is-invalid":F()!=="","is-open":p,disabled:!!v.disabled})}
1108
- style=${ee.styleMap({width:R,...be(v.style)})}
1109
- ${K.ref(t)}
1159
+ class=${A("moz-multi-select",{"is-invalid":H()!=="","is-open":u,disabled:!!v.disabled})}
1160
+ style=${j.styleMap({width:D,...he(v.style)})}
1161
+ ${Y.ref(t)}
1110
1162
  >
1111
1163
  <div class="input-wrapper">
1112
- ${v.label?Xe({},s.html`${v.label}${v.required?s.html`<span class="require-mark">*</span>`:s.nothing}`):s.nothing}
1113
- <div class="moz-input-container" @click=${De} ${K.ref(o)}>
1164
+ ${v.label?Je({},n.html`${v.label}${v.required?n.html`<span class="require-mark">*</span>`:n.nothing}`):n.nothing}
1165
+ <div class="moz-input-container" @click=${Pe} ${Y.ref(o)}>
1114
1166
  <input
1115
- ${he(ie)}
1116
- .value=${z()}
1167
+ ${ce(se)}
1168
+ .value=${mt()}
1117
1169
  autocomplete="off"
1118
1170
  readonly
1119
1171
  tabindex="-1"
@@ -1121,24 +1173,24 @@
1121
1173
  <button
1122
1174
  type="button"
1123
1175
  class="icon-container"
1124
- ${he(oe)}
1176
+ ${ce(ne)}
1125
1177
  role="combobox"
1126
1178
  aria-haspopup="listbox"
1127
- aria-expanded=${p?"true":"false"}
1128
- aria-controls=${D}
1129
- aria-label=${Ee.ifDefined(oe["aria-label"]??v.label??void 0)}
1179
+ aria-expanded=${u?"true":"false"}
1180
+ aria-controls=${S}
1181
+ aria-label=${$e.ifDefined(ne["aria-label"]??v.label??void 0)}
1130
1182
  ?disabled=${!!v.disabled}
1131
- @keydown=${Se}
1132
- ${K.ref(l)}
1183
+ @keydown=${Ce}
1184
+ ${Y.ref(l)}
1133
1185
  >
1134
- ${pe}
1186
+ ${de}
1135
1187
  </button>
1136
1188
  </div>
1137
1189
  </div>
1138
1190
 
1139
- ${F()!==""?s.html`<span class="moz-input-invalid-message">${F()}</span>`:s.nothing}
1191
+ ${H()!==""?n.html`<span class="moz-input-invalid-message">${H()}</span>`:n.nothing}
1140
1192
  </div>
1141
- `},renderPortal(){return e.props.inline||!p?s.nothing:mt()}}}}),ai={name:"MozMultiSelect",core:Ms,booleanProps:["autoSelectNewItems","disabled","inline","loading","preserveMissingValues","readonly","required","selectAllWhenEmpty","useFilter","useSelectAll","useSpecificSelect"],props:["itemsSource","inline","filterMode","filterValue","searchPlaceholder","preserveMissingValues","loading","loadingText","listBoxHeight","label","width","required","readonly","disabled","keyProp","displayProp","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","autoSelectNewItems","selectAllWhenEmpty","modelValue"],emits:["change","close","update:modelValue","update:filterValue"],slots:["icon","list-item","empty"],expose:!0};function xs(e,t=14){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function di(e="14",t="var(--moz-color-text-subtle)"){const o=xs(e,14);return s.html`<svg width=${o.width} height=${o.height} viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg">
1193
+ `},renderPortal(){return e.props.inline||!u?n.nothing:rt()}}}}),ia={name:"MozMultiSelect",core:ts,booleanProps:["autoSelectNewItems","disabled","inline","loading","preserveMissingValues","readonly","required","selectAllWhenEmpty","useFilter","useSelectAll","useSpecificSelect"],props:["itemsSource","inline","filterMode","filterValue","searchPlaceholder","preserveMissingValues","loading","loadingText","listBoxHeight","label","width","required","readonly","disabled","keyProp","displayProp","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","autoSelectNewItems","selectAllWhenEmpty","modelValue"],emits:["change","close","update:modelValue","update:filterValue"],slots:["icon","list-item","empty"],expose:!0};function os(e,t=14){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function aa(e="14",t="var(--moz-color-text-subtle)"){const o=os(e,14);return n.html`<svg width=${o.width} height=${o.height} viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg">
1142
1194
  <g clip-path="url(#clip0_4513_575)">
1143
1195
  <path
1144
1196
  fill-rule="evenodd"
@@ -1152,8 +1204,8 @@
1152
1204
  <rect width=${o.width} height=${o.height} fill="white" transform="translate(0 0.704163)"></rect>
1153
1205
  </clipPath>
1154
1206
  </defs>
1155
- </svg>`}function Ao(e="12",t="var(--moz-color-text-subtle)",o=!1,n=""){const l=xs(e,12),d=o?"var(--moz-color-text-muted)":t;return s.html`<svg class=${n||s.nothing} xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 16 16">
1156
- <g style=${`fill: ${d}`}>
1207
+ </svg>`}function sn(e="12",t="var(--moz-color-text-subtle)",o=!1,s=""){const l=os(e,12),i=o?"var(--moz-color-text-muted)":t;return n.html`<svg class=${s||n.nothing} xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 16 16">
1208
+ <g style=${`fill: ${i}`}>
1157
1209
  <path
1158
1210
  d="M836.533 699.734h-.022a.928.928 0 0 1-.716-.336l-3.779-4.535a.926.926 0 0 1-.212-.68.93.93 0 0 1 1.643-.512l3.026 3.63 6.096-8.128a.922.922 0 0 1 .745-.373c.202 0 .396.064.559.186.199.15.328.367.363.614a.925.925 0 0 1-.177.69l-6.803 9.071a.928.928 0 0 1-.721.373h-.002z"
1159
1211
  style="stroke: none"
@@ -1161,189 +1213,189 @@
1161
1213
  ></path>
1162
1214
  <path
1163
1215
  d="M836.532 699.634a.833.833 0 0 0 .644-.333l6.803-9.07a.831.831 0 1 0-1.33-.998l-6.172 8.23-3.107-3.728a.83.83 0 1 0-1.277 1.064l3.78 4.535c.157.19.391.3.638.3h.021m.003.2h-.024c-.307 0-.596-.136-.793-.372l-3.779-4.535a1.025 1.025 0 0 1-.235-.754 1.03 1.03 0 0 1 1.82-.567l2.945 3.534 6.02-8.027a1.034 1.034 0 0 1 1.444-.207c.22.165.363.407.402.68.04.273-.03.544-.196.765l-6.803 9.07c-.19.254-.481.404-.799.412h-.002z"
1164
- style=${`fill: ${d}; stroke: none`}
1216
+ style=${`fill: ${i}; stroke: none`}
1165
1217
  transform="translate(-829.971 -686.318)"
1166
1218
  ></path>
1167
1219
  </g>
1168
- </svg>`}const ci=new Set(["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required","class","style"]),ui=Array.from({length:24},(e,t)=>t),pi=Array.from({length:60},(e,t)=>t),zs=$e({name:"moz-time-picker",defaults:{width:"160px",modelValue:"09:00",label:"",disabled:!1,required:!1},setup(e){const t=K.createRef(),o=K.createRef(),n=K.createRef(),l=K.createRef(),d=K.createRef(),a=K.createRef(),f=ot("moz-time-picker-input-");let i=!1,c=9,r=0,u="",p="";const y=$=>{if($&&$.includes(":")){const[I,Y]=$.split(":").map(Number);!isNaN(I)&&!isNaN(Y)&&(c=I,r=Y,u=$,p=$)}};y(e.props.modelValue);let L=e.props.modelValue,D=u;const P=new Kt({anchor:()=>o.value??null,panel:()=>l.value??null,maxHeight:()=>210,container:()=>t.value??null,listWidth:()=>"160px",requestClose:()=>{i&&g(!1)}});e.onCleanup(()=>P.destroy());const E=()=>{if(!i)return;const $=(I,Y)=>{const ne=I==null?void 0:I.children[Y];if(!(I!=null&&I.isConnected)||!ne||I.clientHeight<=0)return;const B=ne.getBoundingClientRect(),se=I.getBoundingClientRect(),N=B.top+B.height/2-(se.top+I.clientTop+I.clientHeight/2),X=Math.max(0,I.scrollHeight-I.clientHeight);I.scrollTop=Math.max(0,Math.min(I.scrollTop+N,X))};$(d.value,c),$(a.value,r)},g=$=>{$&&e.props.disabled||i!==$&&(i=$,e.requestUpdate(),$?(P.open(),queueMicrotask(E)):P.close())},h=()=>{const $=`${c.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`;u=$,p=$,e.emit("update:modelValue",$),e.requestUpdate()},C=$=>{c=$,h()},k=$=>{r=$,g(!1),h()},Z=()=>{c=new Date().getHours(),r=new Date().getMinutes(),h(),g(!1)},W=$=>{let I=$.replace(/[^\d:]/g,"");return I.length>5&&(I=I.slice(0,5)),I},Q=$=>{g(!1);const I=$.target,Y=$.key;if(!/^\d$/.test(Y))return;const ne=I.selectionStart||0,B=u;if(I.selectionStart!==I.selectionEnd||ne>=B.length)return;$.preventDefault();const se=B.replace(/:/g,""),N=(B.slice(0,ne).match(/:/g)||[]).length,X=ne-N;let M=se.substring(0,X)+Y;X+1<se.length&&(M+=se.substring(X+1)),M.length>4&&(M=M.slice(0,4));let U=M,_=X+1;if(M.length>=2){const G=M.slice(0,2),J=M.slice(2);U=`${G}:${J}`,_>2&&(_=_+1)}u=U,p=U,e.requestUpdate(),queueMicrotask(()=>I.setSelectionRange(_,_))},re=$=>{const I=$.target,Y=I.selectionStart||0,ne=p;let B=I.value;const se=B.length<ne.length;B=W(B);const N=B.replace(/:/g,"");if(!se&&N.length>=2){const X=(B.slice(0,Y).match(/:/g)||[]).length,M=Y-X,U=N.slice(0,2),_=N.slice(2);B=U+(_?`:${_}`:":");let G=M;M>2&&(G=M+1),u=B,p=B,e.requestUpdate(),setTimeout(()=>I.setSelectionRange(G,G),0);return}u=B,p=B,e.requestUpdate()},ae=()=>g(!0),j=()=>{if(!u){h();return}let $=u;!$.includes(":")&&$.length>=2&&($=`${$.slice(0,2)}:${$.slice(2)}`);const I=$.split(":");let Y=c,ne=r;if(I[0]){const B=parseInt(I[0],10);isNaN(B)||(B>=0&&B<=23?Y=B:B>23?Y=23:Y=0)}if(I[1]){const B=parseInt(I[1],10);isNaN(B)||(B>=0&&B<=59?ne=B:B>59?ne=59:ne=0)}c=Y,r=ne,h()};return{render(){const $=e.props;if($.modelValue!==L&&(L=$.modelValue,y($.modelValue)),u!==D){D=u;const N=u;if(/^\d{2}:\d{2}$/.test(N)){const[X,M]=N.split(":").map(Number);!isNaN(X)&&!isNaN(M)&&X>=0&&X<=23&&M>=0&&M<=59&&N!==$.modelValue&&(c=X,r=M,queueMicrotask(()=>{N!==e.props.modelValue&&e.emit("update:modelValue",N)}))}}const I=$.disabled?"var(--moz-color-text-muted)":i?"var(--moz-color-accent)":"var(--moz-color-text-subtle)",Y=ye($,ci),ne=typeof $.width=="number"?`${Ae($.width)}rem`:$.width,B="__:__",se=[];for(let N=0;N<B.length;N++)N<u.length?se.push({char:u[N],isInput:!0}):se.push({char:B[N],isInput:!1});return s.html`
1220
+ </svg>`}const ra=new Set(["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required","class","style"]),ca=Array.from({length:24},(e,t)=>t),da=Array.from({length:60},(e,t)=>t),ns=ye({name:"moz-time-picker",defaults:{width:"160px",modelValue:"09:00",label:"",disabled:!1,required:!1},setup(e){const t=Y.createRef(),o=Y.createRef(),s=Y.createRef(),l=Y.createRef(),i=Y.createRef(),r=Y.createRef(),p=Qe("moz-time-picker-input-");let d=!1,b=9,c=0,m="",u="";const k=E=>{if(E&&E.includes(":")){const[V,J]=E.split(":").map(Number);!isNaN(V)&&!isNaN(J)&&(b=V,c=J,m=E,u=E)}};k(e.props.modelValue);let x=e.props.modelValue,S=m;const L=new to({anchor:()=>o.value??null,panel:()=>l.value??null,maxHeight:()=>210,container:()=>t.value??null,listWidth:()=>"180px",requestClose:()=>{d&&f(!1)}});e.onCleanup(()=>L.destroy());const M=()=>{if(!d)return;const E=(V,J)=>{const le=V==null?void 0:V.children[J];if(!(V!=null&&V.isConnected)||!le||V.clientHeight<=0)return;const N=le.getBoundingClientRect(),ie=V.getBoundingClientRect(),F=N.top+N.height/2-(ie.top+V.clientTop+V.clientHeight/2),oe=Math.max(0,V.scrollHeight-V.clientHeight);V.scrollTop=Math.max(0,Math.min(V.scrollTop+F,oe))};E(i.value,b),E(r.value,c)},f=E=>{E&&e.props.disabled||d!==E&&(d=E,e.requestUpdate(),E?(L.open(),queueMicrotask(M)):L.close())},a=()=>{const E=`${b.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}`;m=E,u=E,e.emit("update:modelValue",E),e.requestUpdate()},h=E=>{b=E,a()},$=E=>{c=E,f(!1),a()},_=()=>{b=new Date().getHours(),c=new Date().getMinutes(),a(),f(!1)},O=E=>{let V=E.replace(/[^\d:]/g,"");return V.length>5&&(V=V.slice(0,5)),V},U=E=>{f(!1);const V=E.target,J=E.key;if(!/^\d$/.test(J))return;const le=V.selectionStart||0,N=m;if(V.selectionStart!==V.selectionEnd||le>=N.length)return;E.preventDefault();const ie=N.replace(/:/g,""),F=(N.slice(0,le).match(/:/g)||[]).length,oe=le-F;let T=ie.substring(0,oe)+J;oe+1<ie.length&&(T+=ie.substring(oe+1)),T.length>4&&(T=T.slice(0,4));let W=T,K=oe+1;if(T.length>=2){const ee=T.slice(0,2),te=T.slice(2);W=`${ee}:${te}`,K>2&&(K=K+1)}m=W,u=W,e.requestUpdate(),queueMicrotask(()=>V.setSelectionRange(K,K))},Q=E=>{const V=E.target,J=V.selectionStart||0,le=u;let N=V.value;const ie=N.length<le.length;N=O(N);const F=N.replace(/:/g,"");if(!ie&&F.length>=2){const oe=(N.slice(0,J).match(/:/g)||[]).length,T=J-oe,W=F.slice(0,2),K=F.slice(2);N=W+(K?`:${K}`:":");let ee=T;T>2&&(ee=T+1),m=N,u=N,e.requestUpdate(),setTimeout(()=>V.setSelectionRange(ee,ee),0);return}m=N,u=N,e.requestUpdate()},re=()=>f(!0),X=()=>{if(!m){a();return}let E=m;!E.includes(":")&&E.length>=2&&(E=`${E.slice(0,2)}:${E.slice(2)}`);const V=E.split(":");let J=b,le=c;if(V[0]){const N=parseInt(V[0],10);isNaN(N)||(N>=0&&N<=23?J=N:N>23?J=23:J=0)}if(V[1]){const N=parseInt(V[1],10);isNaN(N)||(N>=0&&N<=59?le=N:N>59?le=59:le=0)}b=J,c=le,a()};return{render(){const E=e.props;if(E.modelValue!==x&&(x=E.modelValue,k(E.modelValue)),m!==S){S=m;const F=m;if(/^\d{2}:\d{2}$/.test(F)){const[oe,T]=F.split(":").map(Number);!isNaN(oe)&&!isNaN(T)&&oe>=0&&oe<=23&&T>=0&&T<=59&&F!==E.modelValue&&(b=oe,c=T,queueMicrotask(()=>{F!==e.props.modelValue&&e.emit("update:modelValue",F)}))}}const V=E.disabled?"var(--moz-color-text-muted)":d?"var(--moz-color-accent)":"var(--moz-color-text-subtle)",J=ge(E,ra),le=typeof E.width=="number"?`${Ae(E.width)}rem`:E.width,N="__:__",ie=[];for(let F=0;F<N.length;F++)F<m.length?ie.push({char:m[F],isInput:!0}):ie.push({char:N[F],isInput:!1});return n.html`
1169
1221
  <div
1170
- class=${V("custom-time-picker",$.class,{"custom-time-picker--has-class":!!$.class})}
1171
- style=${ee.styleMap({width:ne,...be($.style)})}
1172
- ${he(Y)}
1173
- ${K.ref(t)}
1222
+ class=${A("custom-time-picker",E.class,{"custom-time-picker--has-class":!!E.class})}
1223
+ style=${j.styleMap({width:le,...he(E.style)})}
1224
+ ${ce(J)}
1225
+ ${Y.ref(t)}
1174
1226
  >
1175
- ${$.label?Xe({for:f,disabled:$.disabled,required:$.required},$.label):s.nothing}
1227
+ ${E.label?Je({for:p,disabled:E.disabled,required:E.required},E.label):n.nothing}
1176
1228
  <div
1177
- class=${V("time-input-wrapper",{"time-input-wrapper--disabled":$.disabled,"time-input-wrapper--open":i&&!$.disabled})}
1178
- ${K.ref(o)}
1229
+ class=${A("time-input-wrapper",{"time-input-wrapper--disabled":E.disabled,"time-input-wrapper--open":d&&!E.disabled})}
1230
+ ${Y.ref(o)}
1179
1231
  >
1180
1232
  <div class="input-with-mask">
1181
1233
  <input
1182
1234
  type="text"
1183
- id=${f}
1184
- .value=${u}
1185
- @keydown=${Q}
1186
- @input=${re}
1187
- @blur=${j}
1188
- @focus=${ae}
1189
- @click=${()=>g(!0)}
1190
- class=${V("time-input",{"time-input--disabled":$.disabled,"time-input--open":i})}
1191
- ?disabled=${!!$.disabled}
1235
+ id=${p}
1236
+ .value=${m}
1237
+ @keydown=${U}
1238
+ @input=${Q}
1239
+ @blur=${X}
1240
+ @focus=${re}
1241
+ @click=${()=>f(!0)}
1242
+ class=${A("time-input",{"time-input--disabled":E.disabled,"time-input--open":d})}
1243
+ ?disabled=${!!E.disabled}
1192
1244
  maxlength="5"
1193
- ${K.ref(n)}
1245
+ ${Y.ref(s)}
1194
1246
  />
1195
1247
  <div class="time-mask">
1196
- ${se.map(N=>s.html`<span
1197
- class=${V({"mask-input":N.isInput&&!$.disabled,"mask-placeholder":!N.isInput,"mask-input--disabled":N.isInput&&!!$.disabled})}
1198
- >${N.char}</span
1248
+ ${ie.map(F=>n.html`<span
1249
+ class=${A({"mask-input":F.isInput&&!E.disabled,"mask-placeholder":!F.isInput,"mask-input--disabled":F.isInput&&!!E.disabled})}
1250
+ >${F.char}</span
1199
1251
  >`)}
1200
1252
  </div>
1201
1253
  </div>
1202
1254
  <div class="icon-container">
1203
- <span @click=${()=>g(!0)}>${di("14",I)}</span>
1255
+ <span @click=${()=>f(!0)}>${aa("14",V)}</span>
1204
1256
  </div>
1205
1257
  </div>
1206
1258
  </div>
1207
- `},renderPortal(){if(!i)return s.nothing;const $=e.props;return s.html`<div class="time-picker-dropdown" ${K.ref(l)}>
1259
+ `},renderPortal(){if(!d)return n.nothing;const E=e.props;return n.html`<div class="time-picker-dropdown" ${Y.ref(l)}>
1208
1260
  <div class="time-picker-content">
1209
1261
  <div class="time-column">
1210
- <div class="time-label">${$.hourLabel??e.locale.TimePicker.hour}</div>
1262
+ <div class="time-label" ?hidden=${E.hourLabel==null}>${E.hourLabel??e.locale.TimePicker.hour}</div>
1211
1263
  <div class="time-list">
1212
- <div class="time-option-wrapper" ${K.ref(d)}>
1213
- ${ui.map(I=>s.html`<div @click=${()=>C(I)} class="time-option">
1214
- <div class="time-option-text">${I.toString().padStart(2,"0")}</div>
1215
- ${c===I?Ao("14","var(--moz-color-accent)",!1,"check-icon"):s.nothing}
1264
+ <div class="time-option-wrapper" ${Y.ref(i)}>
1265
+ ${ca.map(V=>n.html`<div @click=${()=>h(V)} class="time-option">
1266
+ <div class="time-option-text">${V.toString().padStart(2,"0")}</div>
1267
+ ${b===V?sn("14","var(--moz-color-accent)",!1,"check-icon"):n.nothing}
1216
1268
  </div>`)}
1217
1269
  </div>
1218
1270
  </div>
1219
1271
  </div>
1220
1272
  <div class="time-column">
1221
- <div class="time-label">${$.minuteLabel??e.locale.TimePicker.minute}</div>
1273
+ <div class="time-label" ?hidden=${E.minuteLabel==null}>${E.minuteLabel??e.locale.TimePicker.minute}</div>
1222
1274
  <div class="time-list">
1223
- <div class="time-option-wrapper" ${K.ref(a)}>
1224
- ${pi.map(I=>s.html`<div @click=${()=>k(I)} class="time-option">
1225
- <div class="time-option-text">${I.toString().padStart(2,"0")}</div>
1226
- ${r===I?Ao("14","var(--moz-color-accent)",!1,"check-icon"):s.nothing}
1275
+ <div class="time-option-wrapper" ${Y.ref(r)}>
1276
+ ${da.map(V=>n.html`<div @click=${()=>$(V)} class="time-option">
1277
+ <div class="time-option-text">${V.toString().padStart(2,"0")}</div>
1278
+ ${c===V?sn("14","var(--moz-color-accent)",!1,"check-icon"):n.nothing}
1227
1279
  </div>`)}
1228
1280
  </div>
1229
1281
  </div>
1230
1282
  </div>
1231
1283
  </div>
1232
- <div class="time-picker-footer" @click=${Z}>
1233
- <span class="time-picker-footer-label">${$.currentTimeLabel??e.locale.TimePicker.currentTime}</span>
1284
+ <div class="time-picker-footer" @click=${_}>
1285
+ <span class="time-picker-footer-label">${E.currentTimeLabel??e.locale.TimePicker.currentTime}</span>
1234
1286
  </div>
1235
- </div>`}}}}),hi={name:"MozTimePicker",core:zs,booleanProps:["disabled","required"],props:["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required"],emits:["update:modelValue"],slots:[],expose:!1};function mi(e,t=12){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function io(e="var(--moz-color-text-subtle)",t=""){return s.html`<svg class=${t} width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
1287
+ </div>`}}}}),ua={name:"MozTimePicker",core:ns,booleanProps:["disabled","required"],props:["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required"],emits:["update:modelValue"],slots:[],expose:!1};function pa(e,t=12){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function vo(e="var(--moz-color-text-subtle)",t=""){return n.html`<svg class=${t} width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
1236
1288
  <path d="M9 3L3 9M3 3L9 9" stroke=${e} stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
1237
- </svg>`}function Do(e="12",t="var(--moz-color-text-subtle)",o=!1,n=""){const l=mi(e,12),d=o?"var(--moz-color-text-muted)":t;return s.html`<svg class=${n} xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 12 12">
1289
+ </svg>`}function ln(e="12",t="var(--moz-color-text-subtle)",o=!1,s=""){const l=pa(e,12),i=o?"var(--moz-color-text-muted)":t;return n.html`<svg class=${s} xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 12 12">
1238
1290
  <g transform="translate(-0.005)">
1239
1291
  <path
1240
1292
  d="M2.311,12.843a1.028,1.028,0,0,1-.291-.933L2.53,9.262a1.029,1.029,0,0,1,.279-.528L9.241,2.186a1.036,1.036,0,0,1,1.45-.021l2.151,2.071A1.03,1.03,0,0,1,12.861,5.7L6.432,12.246a1.024,1.024,0,0,1-.518.283l-2.665.58a.957.957,0,0,1-.22.024,1.027,1.027,0,0,1-.718-.291M3.652,9.515,3.183,11.95l2.456-.535L10.132,6.84,8.147,4.934Zm7.285-3.494,1.021-1.036L9.979,3.079,8.957,4.114Z"
1241
1293
  transform="translate(-1.577 -1.504)"
1242
- fill=${d}
1243
- stroke=${d}
1294
+ fill=${i}
1295
+ stroke=${i}
1244
1296
  stroke-width="0.6"
1245
1297
  ></path>
1246
1298
  </g>
1247
- </svg>`}const fi=new Set(["id","modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","class","style"]);function gi(e,t){let o;return(...n)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...n),t)}}const Ts=$e({name:"moz-tag-input",defaults:{modelValue:[],required:!1,label:"",addButtonLabel:"",itemsSource:[],displayKey:"",pattern:"",dynamicSearch:!1,simplify:!1,limitItemLength:0,limitTextLength:0,disableUpdate:!1,disableDelete:!1,pushOnBlur:!1,isExpandTop:!1},setup(e){const t=K.createRef(),o=K.createRef();let n=null;const l=ot("moz-tag-input-"),d=()=>e.props.id||l;let a=[],f=!1,i=!1,c="",r=!1,u={};const p=()=>e.props,y=m=>p().pattern?new RegExp(`${p().pattern}`).test(m):!0,L=()=>a.map((m,T)=>({...m,idx:T})).filter(m=>m.isSelected!==-1).sort((m,T)=>m.isSelected-T.isSelected),D=()=>L().map(m=>m.value),P=()=>!L().some(m=>!m.isValid),E=(m,T)=>{const A=p().limitItemLength;(!T||T&&A&&L().length<A||T&&!A)&&(T&&a[m].isSelected===-1||!T)&&(a[m].isSelected=T?Date.now():-1)},g=(m,T)=>{const A=a.findIndex(ke=>ke.value===m);if(A!==-1)return D().includes(m)?!1:(E(A,!0),!0);const F={key:Date.now(),isSelected:T?Date.now():-1,isValid:y(m),isEditing:!1,beforeValue:m,value:m};F.isValid&&p().requestCreate&&p().requestCreate(m);const ce=p().limitItemLength;return!T||!ce||T&&ce&&L().length<ce?(a.push(F),!0):!1},h=m=>{a.splice(m,1)},C=m=>{a[m].isValid=y(a[m].value),a[m].isValid&&p().requestUpdate&&p().requestUpdate({before:a[m].beforeValue,after:a[m].value}),a[m].beforeValue=a[m].value},k=()=>{a=a.filter(m=>m.isSelected!==-1),(p().itemsSource??[]).forEach(m=>{g(p().displayKey?m[p().displayKey]:m,!1)})};k();const Z=()=>{const m=p().modelValue;if(m&&m.toString()!==D().toString()){const T=[...m];a.forEach((A,F)=>{const ce=T.indexOf(A.value);ce!==-1?(A.isSelected===-1&&E(F,!0),T.splice(ce,1)):E(F,!1)}),T.forEach(A=>g(A,!0))}};Z();let W=p().modelValue,Q=p().itemsSource,re=D().toString();const ae=()=>{if(!t.value||!o.value)return;const m=t.value.getBoundingClientRect();let T=m.left;m.left+o.value.clientWidth>document.body.clientWidth&&(T-=o.value.clientWidth-m.width),u={minWidth:`${m.width}px`,width:`${m.width}px`,left:`${T}px`,top:`${m.top}px`},e.requestUpdate()},j=m=>{const T=m.target,A=()=>{c&&p().pushOnBlur&&g(c,!0)&&e.emit("modelChange",D()),c="",i=!1,f=!1};T.className&&Array.from(String(T.className).split(" ")).includes("tag-input-not-close")||A(),N(""),window.removeEventListener("mousedown",j),e.requestUpdate()},$=()=>{f=!0,window.addEventListener("mousedown",j),e.requestUpdate(),queueMicrotask(ae)};e.onCleanup(()=>window.removeEventListener("mousedown",j));const I=m=>{setTimeout(()=>{const T=o.value,A=T==null?void 0:T.querySelector(`[data-edit-idx="${m}"] .moz-auto-input`);A==null||A.focus()},0)},Y=m=>{a[m].isEditing=!0,e.requestUpdate(),I(m)},ne=()=>{i=!0,$(),setTimeout(()=>n==null?void 0:n.focus(),0)},B=m=>{if(m.key==="Enter"&&c===""&&e.emit("onEnterEmpty",D()),(m.key==="Enter"||m.key==="Tab"&&p().pushOnBlur)&&c!==""&&(g(c,!0)&&(e.emit("modelChange",D()),c=""),e.requestUpdate()),m.key==="Tab"&&(f=!1,i=!1,e.requestUpdate()),m.key==="Backspace"){const T=m.target,A=L();T.selectionStart===0&&A.length>0&&(E(A[A.length-1].idx,!1),e.requestUpdate())}},se=m=>{p().dynamicSearch&&p().requestRead&&(r=!0,e.requestUpdate(),N(m.target.value))},N=gi(m=>{p().requestRead&&p().requestRead(m).then(()=>{r=!1,e.requestUpdate()})},300),X=(m,T)=>{m.key==="Backspace"&&a[T].value===""&&a.length>1&&(h(T),e.requestUpdate())},M=m=>{m.key==="Enter"&&(i=!0,e.requestUpdate(),setTimeout(()=>n==null?void 0:n.focus(),0))},U=m=>{a[m].value===""&&h(m),(a.length>1||a[m]&&a[m].value!=="")&&a[m]&&(a[m].isEditing=!1),a[m]&&C(m),e.requestUpdate()},_=m=>{E(m,!0),e.requestUpdate(),n==null||n.focus()},G=m=>{m.style.width="1px",m.style.width=`${m.scrollWidth}px`},J=m=>{const T=p().limitTextLength;return s.html`<input
1248
- id=${m.id??s.nothing}
1299
+ </svg>`}const ha=new Set(["id","modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","class","style"]);function ma(e,t){let o;return(...s)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...s),t)}}const ss=ye({name:"moz-tag-input",defaults:{modelValue:[],required:!1,label:"",addButtonLabel:"",itemsSource:[],displayKey:"",pattern:"",dynamicSearch:!1,simplify:!1,limitItemLength:0,limitTextLength:0,disableUpdate:!1,disableDelete:!1,pushOnBlur:!1,isExpandTop:!1},setup(e){const t=Y.createRef(),o=Y.createRef();let s=null;const l=Qe("moz-tag-input-"),i=()=>e.props.id||l;let r=[],p=!1,d=!1,b="",c=!1,m={};const u=()=>e.props,k=g=>u().pattern?new RegExp(`${u().pattern}`).test(g):!0,x=()=>r.map((g,R)=>({...g,idx:R})).filter(g=>g.isSelected!==-1).sort((g,R)=>g.isSelected-R.isSelected),S=()=>x().map(g=>g.value),L=()=>!x().some(g=>!g.isValid),M=(g,R)=>{const I=u().limitItemLength;(!R||R&&I&&x().length<I||R&&!I)&&(R&&r[g].isSelected===-1||!R)&&(r[g].isSelected=R?Date.now():-1)},f=(g,R)=>{const I=r.findIndex(ke=>ke.value===g);if(I!==-1)return S().includes(g)?!1:(M(I,!0),!0);const H={key:Date.now(),isSelected:R?Date.now():-1,isValid:k(g),isEditing:!1,beforeValue:g,value:g};H.isValid&&u().requestCreate&&u().requestCreate(g);const pe=u().limitItemLength;return!R||!pe||R&&pe&&x().length<pe?(r.push(H),!0):!1},a=g=>{r.splice(g,1)},h=g=>{r[g].isValid=k(r[g].value),r[g].isValid&&u().requestUpdate&&u().requestUpdate({before:r[g].beforeValue,after:r[g].value}),r[g].beforeValue=r[g].value},$=()=>{r=r.filter(g=>g.isSelected!==-1),(u().itemsSource??[]).forEach(g=>{f(u().displayKey?g[u().displayKey]:g,!1)})};$();const _=()=>{const g=u().modelValue;if(g&&g.toString()!==S().toString()){const R=[...g];r.forEach((I,H)=>{const pe=R.indexOf(I.value);pe!==-1?(I.isSelected===-1&&M(H,!0),R.splice(pe,1)):M(H,!1)}),R.forEach(I=>f(I,!0))}};_();let O=u().modelValue,U=u().itemsSource,Q=S().toString();const re=()=>{if(!t.value||!o.value)return;const g=t.value.getBoundingClientRect();let R=g.left;g.left+o.value.clientWidth>document.body.clientWidth&&(R-=o.value.clientWidth-g.width),m={minWidth:`${g.width}px`,width:`${g.width}px`,left:`${R}px`,top:`${g.top}px`},e.requestUpdate()},X=g=>{const R=g.target,I=()=>{b&&u().pushOnBlur&&f(b,!0)&&e.emit("modelChange",S()),b="",d=!1,p=!1};R.className&&Array.from(String(R.className).split(" ")).includes("tag-input-not-close")||I(),F(""),window.removeEventListener("mousedown",X),e.requestUpdate()},E=()=>{p=!0,window.addEventListener("mousedown",X),e.requestUpdate(),queueMicrotask(re)};e.onCleanup(()=>window.removeEventListener("mousedown",X));const V=g=>{setTimeout(()=>{const R=o.value,I=R==null?void 0:R.querySelector(`[data-edit-idx="${g}"] .moz-auto-input`);I==null||I.focus()},0)},J=g=>{r[g].isEditing=!0,e.requestUpdate(),V(g)},le=()=>{d=!0,E(),setTimeout(()=>s==null?void 0:s.focus(),0)},N=g=>{if(g.key==="Enter"&&b===""&&e.emit("onEnterEmpty",S()),(g.key==="Enter"||g.key==="Tab"&&u().pushOnBlur)&&b!==""&&(f(b,!0)&&(e.emit("modelChange",S()),b=""),e.requestUpdate()),g.key==="Tab"&&(p=!1,d=!1,e.requestUpdate()),g.key==="Backspace"){const R=g.target,I=x();R.selectionStart===0&&I.length>0&&(M(I[I.length-1].idx,!1),e.requestUpdate())}},ie=g=>{u().dynamicSearch&&u().requestRead&&(c=!0,e.requestUpdate(),F(g.target.value))},F=ma(g=>{u().requestRead&&u().requestRead(g).then(()=>{c=!1,e.requestUpdate()})},300),oe=(g,R)=>{g.key==="Backspace"&&r[R].value===""&&r.length>1&&(a(R),e.requestUpdate())},T=g=>{g.key==="Enter"&&(d=!0,e.requestUpdate(),setTimeout(()=>s==null?void 0:s.focus(),0))},W=g=>{r[g].value===""&&a(g),(r.length>1||r[g]&&r[g].value!=="")&&r[g]&&(r[g].isEditing=!1),r[g]&&h(g),e.requestUpdate()},K=g=>{M(g,!0),e.requestUpdate(),s==null||s.focus()},ee=g=>{g.style.width="1px",g.style.width=`${g.scrollWidth}px`},te=g=>{const R=u().limitTextLength;return n.html`<input
1300
+ id=${g.id??n.nothing}
1249
1301
  class="moz-auto-input tag-input-common tag-input-add"
1250
- .value=${m.value}
1302
+ .value=${g.value}
1251
1303
  style="width:1px"
1252
- ${K.ref(A=>{var ce;const F=A??null;F&&G(F),(ce=m.captureEl)==null||ce.call(m,F)})}
1253
- @input=${A=>{var ce;const F=A.target;T&&F.value.length<=T||!T||T===-1?m.setValue(F.value):F.value=m.value,G(F),(ce=m.onInputExtra)==null||ce.call(m,A)}}
1254
- @keydown=${A=>{var F;return(F=m.onKeydown)==null?void 0:F.call(m,A)}}
1255
- @keyup=${A=>{var F;return(F=m.onKeyup)==null?void 0:F.call(m,A)}}
1256
- @blur=${()=>{var A;return(A=m.onBlur)==null?void 0:A.call(m)}}
1257
- />`},x=(m,T,A)=>s.html`<div class="tag-input-controller" style=${ee.styleMap({display:m.isSelected!==-1?"":"none"})}>
1304
+ ${Y.ref(I=>{var pe;const H=I??null;H&&ee(H),(pe=g.captureEl)==null||pe.call(g,H)})}
1305
+ @input=${I=>{var pe;const H=I.target;R&&H.value.length<=R||!R||R===-1?g.setValue(H.value):H.value=g.value,ee(H),(pe=g.onInputExtra)==null||pe.call(g,I)}}
1306
+ @keydown=${I=>{var H;return(H=g.onKeydown)==null?void 0:H.call(g,I)}}
1307
+ @keyup=${I=>{var H;return(H=g.onKeyup)==null?void 0:H.call(g,I)}}
1308
+ @blur=${()=>{var I;return(I=g.onBlur)==null?void 0:I.call(g)}}
1309
+ />`},P=(g,R,I)=>n.html`<div class="tag-input-controller" style=${j.styleMap({display:g.isSelected!==-1?"":"none"})}>
1258
1310
  <div
1259
- class=${V("tag-input-item",{invalid:!m.isValid})}
1260
- data-isValid=${String(m.isValid)}
1261
- data-edit-idx=${m.idx}
1262
- @mousedown=${F=>F.stopPropagation()}
1311
+ class=${A("tag-input-item",{invalid:!g.isValid})}
1312
+ data-isValid=${String(g.isValid)}
1313
+ data-edit-idx=${g.idx}
1314
+ @mousedown=${H=>H.stopPropagation()}
1263
1315
  >
1264
- ${A&&p().simplify&&m.isEditing?J({value:m.value,setValue:F=>{a[m.idx].value=F,e.requestUpdate()},onKeydown:F=>X(F,m.idx),onKeyup:F=>M(F),onBlur:()=>U(m.idx)}):s.html`<span class="tag-input-preview tag-input-common">${m.value}</span>`}
1316
+ ${I&&u().simplify&&g.isEditing?te({value:g.value,setValue:H=>{r[g.idx].value=H,e.requestUpdate()},onKeydown:H=>oe(H,g.idx),onKeyup:H=>T(H),onBlur:()=>W(g.idx)}):n.html`<span class="tag-input-preview tag-input-common">${g.value}</span>`}
1265
1317
  <div class="tag-input-btn-wrapper">
1266
- ${p().simplify&&!m.isEditing&&!p().disableUpdate?s.html`<span
1318
+ ${u().simplify&&!g.isEditing&&!u().disableUpdate?n.html`<span
1267
1319
  class="tag-input-button cursor-pointer"
1268
1320
  role="button"
1269
1321
  tabindex="0"
1270
- aria-label=${e.locale.TagInput.editTag.replace("{label}",m.value??"")}
1271
- @click=${()=>Y(m.idx)}
1272
- @keydown=${F=>{F.key!=="Enter"&&F.key!==" "||(F.preventDefault(),Y(m.idx))}}
1273
- >${Do("10")}</span
1274
- >`:s.nothing}
1322
+ aria-label=${e.locale.TagInput.editTag.replace("{label}",g.value??"")}
1323
+ @click=${()=>J(g.idx)}
1324
+ @keydown=${H=>{H.key!=="Enter"&&H.key!==" "||(H.preventDefault(),J(g.idx))}}
1325
+ >${ln("10")}</span
1326
+ >`:n.nothing}
1275
1327
  <span
1276
1328
  class="tag-input-button cursor-pointer"
1277
1329
  role="button"
1278
1330
  tabindex="0"
1279
- aria-label=${e.locale.TagInput.removeTag.replace("{label}",m.value??"")}
1280
- @click=${()=>{E(m.idx,!1),e.requestUpdate()}}
1281
- @keydown=${F=>{F.key!=="Enter"&&F.key!==" "||(F.preventDefault(),E(m.idx,!1),e.requestUpdate())}}
1282
- >${io()}</span
1331
+ aria-label=${e.locale.TagInput.removeTag.replace("{label}",g.value??"")}
1332
+ @click=${()=>{M(g.idx,!1),e.requestUpdate()}}
1333
+ @keydown=${H=>{H.key!=="Enter"&&H.key!==" "||(H.preventDefault(),M(g.idx,!1),e.requestUpdate())}}
1334
+ >${vo()}</span
1283
1335
  >
1284
1336
  </div>
1285
1337
  </div>
1286
- </div>`;return{api:{isValid:P},render(){const m=e.props;m.modelValue!==W&&(W=m.modelValue,Z()),m.itemsSource!==Q&&(Q=m.itemsSource,k());const T=D().toString();if(T!==re){re=T;const F=D();queueMicrotask(()=>e.emit("update:modelValue",F))}const A=ye(m,fi);return s.html`
1287
- <div class=${V("moz-tag-input-wrapper",m.class)} style=${ee.styleMap(be(m.style))} ${he(A)}>
1288
- ${m.label?s.html`<label for=${d()} class=${V("tag-input-label",{required:m.required})} @click=${ne}>${m.label}</label>`:s.nothing}
1338
+ </div>`;return{api:{isValid:L},render(){const g=e.props;g.modelValue!==O&&(O=g.modelValue,_()),g.itemsSource!==U&&(U=g.itemsSource,$());const R=S().toString();if(R!==Q){Q=R;const H=S();queueMicrotask(()=>e.emit("update:modelValue",H))}const I=ge(g,ha);return n.html`
1339
+ <div class=${A("moz-tag-input-wrapper",g.class)} style=${j.styleMap(he(g.style))} ${ce(I)}>
1340
+ ${g.label?n.html`<label for=${i()} class=${A("tag-input-label",{required:g.required})} @click=${le}>${g.label}</label>`:n.nothing}
1289
1341
  <div class="tag-input-grid">
1290
1342
  <div
1291
1343
  class="tag-input-not-close tag-input-row scrollbar-none"
1292
- @mousedown=${F=>{F.stopPropagation(),ne()}}
1293
- @click=${$}
1294
- ${K.ref(t)}
1344
+ @mousedown=${H=>{H.stopPropagation(),le()}}
1345
+ @click=${E}
1346
+ ${Y.ref(t)}
1295
1347
  >
1296
1348
  ${e.slot("left")}
1297
- ${L().map((F,ce)=>x(F,ce,!1))}
1298
- ${i?s.html`<span class="tag-input-preview tag-input-common" @click=${ne}>${c}</span>`:s.nothing}
1299
- ${m.limitItemLength&&i?s.html`<div class="tag-input-counter">${L().length} / ${m.limitItemLength}</div>`:s.nothing}
1300
- ${i?s.nothing:s.html`<span class="tag-input-add-to">${m.addButtonLabel?m.addButtonLabel:e.locale.TagInput.add} </span>`}
1349
+ ${x().map((H,pe)=>P(H,pe,!1))}
1350
+ ${d?n.html`<span class="tag-input-preview tag-input-common" @click=${le}>${b}</span>`:n.nothing}
1351
+ ${g.limitItemLength&&d?n.html`<div class="tag-input-counter">${x().length} / ${g.limitItemLength}</div>`:n.nothing}
1352
+ ${d?n.nothing:n.html`<span class="tag-input-add-to">${g.addButtonLabel?g.addButtonLabel:e.locale.TagInput.add} </span>`}
1301
1353
  <div class="flex-1"></div>
1302
1354
  ${e.slot("right")}
1303
1355
  </div>
1304
1356
  </div>
1305
1357
  </div>
1306
- `},renderPortal(){if(!f)return s.nothing;const m=e.props;return s.html`<div class="absolute z-1501 moz-tag-input-float" style=${ee.styleMap(u)}>
1358
+ `},renderPortal(){if(!p)return n.nothing;const g=e.props;return n.html`<div class="absolute z-1501 moz-tag-input-float" style=${j.styleMap(m)}>
1307
1359
  <div
1308
1360
  class="tag-input-placeholder-float tag-input-not-close scrollbar-none shown"
1309
- @mousedown=${T=>{T.stopPropagation(),ne()}}
1310
- ${K.ref(o)}
1361
+ @mousedown=${R=>{R.stopPropagation(),le()}}
1362
+ ${Y.ref(o)}
1311
1363
  >
1312
- ${L().map((T,A)=>x(T,A,!0))}
1313
- ${i?J({id:d(),value:c,setValue:T=>{c=T,e.requestUpdate()},onKeydown:B,onKeyup:()=>{},onBlur:()=>{},onInputExtra:se,captureEl:T=>{n=T}}):s.nothing}
1314
- ${r?s.html`<div class="tag-input-loading">
1364
+ ${x().map((R,I)=>P(R,I,!0))}
1365
+ ${d?te({id:i(),value:b,setValue:R=>{b=R,e.requestUpdate()},onKeydown:N,onKeyup:()=>{},onBlur:()=>{},onInputExtra:ie,captureEl:R=>{s=R}}):n.nothing}
1366
+ ${c?n.html`<div class="tag-input-loading">
1315
1367
  <div class="tag-input-loading-ball-1"></div>
1316
1368
  <div class="tag-input-loading-ball-2"></div>
1317
1369
  <div class="tag-input-loading-ball-3"></div>
1318
- </div>`:s.nothing}
1319
- ${m.limitItemLength&&i?s.html`<div class="tag-input-counter" @click=${ne}>
1320
- ${L().length} / ${m.limitItemLength}
1321
- </div>`:s.nothing}
1322
- ${i?s.nothing:s.html`<span class="tag-input-add-to flex-1">${m.addButtonLabel?m.addButtonLabel:""} </span>`}
1370
+ </div>`:n.nothing}
1371
+ ${g.limitItemLength&&d?n.html`<div class="tag-input-counter" @click=${le}>
1372
+ ${x().length} / ${g.limitItemLength}
1373
+ </div>`:n.nothing}
1374
+ ${d?n.nothing:n.html`<span class="tag-input-add-to flex-1">${g.addButtonLabel?g.addButtonLabel:""} </span>`}
1323
1375
  </div>
1324
- ${m.simplify?s.nothing:s.html`<div class="tag-input-dropdown-outer-wrapper" @mousedown=${T=>T.stopPropagation()}>
1325
- <div class=${V("tag-input-dropdown-wrapper",{"expand-top":m.isExpandTop})}>
1376
+ ${g.simplify?n.nothing:n.html`<div class="tag-input-dropdown-outer-wrapper" @mousedown=${R=>R.stopPropagation()}>
1377
+ <div class=${A("tag-input-dropdown-wrapper",{"expand-top":g.isExpandTop})}>
1326
1378
  <div class="tag-input-dropdown-inner-wrapper">
1327
1379
  <div class="tag-input-dropdown-title"></div>
1328
- ${a.map((T,A)=>s.html`<div class="dropdown-tag-input-item-wrapper tag-input-controller">
1380
+ ${r.map((R,I)=>n.html`<div class="dropdown-tag-input-item-wrapper tag-input-controller">
1329
1381
  <div
1330
- class=${V("tag-input-item tag-item-limit-width",{invalid:!T.isValid})}
1331
- data-isValid=${String(T.isValid)}
1332
- data-edit-idx=${A}
1333
- @click=${()=>_(A)}
1382
+ class=${A("tag-input-item tag-item-limit-width",{invalid:!R.isValid})}
1383
+ data-isValid=${String(R.isValid)}
1384
+ data-edit-idx=${I}
1385
+ @click=${()=>K(I)}
1334
1386
  >
1335
- ${T.isEditing?J({value:T.value,setValue:F=>{a[A].value=F,e.requestUpdate()},onKeydown:F=>X(F,A),onKeyup:F=>M(F),onBlur:()=>U(A)}):s.html`<span class="tag-input-preview tag-input-common">
1336
- <span>${T.value}</span>
1387
+ ${R.isEditing?te({value:R.value,setValue:H=>{r[I].value=H,e.requestUpdate()},onKeydown:H=>oe(H,I),onKeyup:H=>T(H),onBlur:()=>W(I)}):n.html`<span class="tag-input-preview tag-input-common">
1388
+ <span>${R.value}</span>
1337
1389
  <div class="tag-input-btn-wrapper">
1338
- ${!T.isEditing&&!m.disableUpdate?s.html`<span
1390
+ ${!R.isEditing&&!g.disableUpdate?n.html`<span
1339
1391
  class="tag-input-button cursor-pointer"
1340
- @click=${F=>{F.stopPropagation(),Y(A)}}
1341
- >${Do("10")}</span
1342
- >`:s.nothing}
1343
- ${m.disableDelete?s.nothing:s.html`<span
1392
+ @click=${H=>{H.stopPropagation(),J(I)}}
1393
+ >${ln("10")}</span
1394
+ >`:n.nothing}
1395
+ ${g.disableDelete?n.nothing:n.html`<span
1344
1396
  class="tag-input-button cursor-pointer"
1345
- @click=${F=>{F.stopPropagation(),h(A),e.requestUpdate()}}
1346
- >${io()}</span
1397
+ @click=${H=>{H.stopPropagation(),a(I),e.requestUpdate()}}
1398
+ >${vo()}</span
1347
1399
  >`}
1348
1400
  </div>
1349
1401
  </span>`}
@@ -1352,64 +1404,64 @@
1352
1404
  </div>
1353
1405
  </div>
1354
1406
  </div>`}
1355
- </div>`}}}}),vi={name:"MozTagInput",core:Ts,booleanProps:["disableDelete","disableUpdate","dynamicSearch","isExpandTop","pushOnBlur","required","simplify"],props:["modelValue","required","label","addButtonLabel","itemsSource","displayKey","pattern","dynamicSearch","requestCreate","requestRead","requestUpdate","simplify","limitItemLength","limitTextLength","disableUpdate","disableDelete","pushOnBlur","isExpandTop"],emits:["update:modelValue","modelChange","onEnterEmpty"],slots:["left","right"],expose:!0},wi=new Set(["itemSource","fixPosition","noPadding","minWidth","class","style"]);function bi(e,t){let o;return(...n)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...n),t)}}const Ci=500,As=$e({name:"moz-context-menu",defaults:{transition:"fade",minWidth:"150px",direction:"rb"},setup(e){let t=null,o=null;const n=K.createRef();let l=!1,d=!1,a=!1,f=!1,i=null,c=!1,r=!1,u=!1,p=!1,y=0,L=!1,D=null,P=null;const E=x=>{D=e.props.fixPosition?x:null},g=new Map,h=new Map,C=new Map,k=new Map,Z=()=>{l&&d&&(i||e.props.itemSource)&&o&&!p&&(p=!0,e.emit("open",{target:o}))},W=x=>{const m=a!==x;a=x,e.requestUpdate(),m&&!x&&setTimeout(()=>{l=!1,f=!1,p=!1,e.emit("close",{target:o}),e.requestUpdate()},50)},Q=x=>{const m=l!==x;l=x,e.requestUpdate(),m&&(setTimeout(()=>{d=l,e.requestUpdate(),Z()},0),W(l),Z())},re=x=>{if(e.props.fixPosition&&x===P||e.props.disableCloseOnClickBackdrop)return;const m=["list-box-container"],T=x.composedPath();T.includes(o)||m.forEach(A=>{(!A||A&&!T.some(F=>{var ce;return(ce=F.classList)==null?void 0:ce.contains(A)}))&&ae()})},ae=()=>{(e.props.beforeClose??(()=>{}))&&(P=null,D=null,L=!1,++y,W(!1),window.removeEventListener("mousedown",re),window.removeEventListener("resize",ae))},j=(x,m)=>{x instanceof Function&&(i=x(m));const T=!!e.props.fixPosition;P=T&&D&&D.eventPhase!==0?D:null;const A=++y;L=T,Q(!0),setTimeout(()=>{T&&(!L||A!==y)||Q(!0)},60)},$=()=>{l?ae():j()},I=()=>{const x=e.props.fixPosition;if(!x)return;const m=x.selector&&document.querySelector(x.selector)||t;if(!m||!o||!n.value)return;const T=m.getBoundingClientRect(),A=n.value.getBoundingClientRect();c=T.left+m.clientWidth<A.left+o.clientWidth,r=T.left+m.clientWidth<A.left+o.clientWidth*2,u=T.top+m.clientHeight<A.top+o.clientHeight,x.useTeleport?(o.style.left=`${A.left}px`,o.style.top=`${A.top}px`):(o.style.left=`${n.value.offsetLeft}px`,o.style.top=`${n.value.offsetTop}px`),e.requestUpdate()},Y=()=>{if(!e.props.fixPosition||!L||f)return;const x=y;queueMicrotask(()=>{x!==y||!L||!e.props.fixPosition||!l||f||!t||!o||!n.value||(I(),t.style.pointerEvents="none",window.addEventListener("mousedown",re),window.addEventListener("resize",ae),f=!0)})},ne=x=>{f||(o&&t&&(e.props.fixPosition?I():(c=t.clientWidth<x.clientX+o.clientWidth,r=t.clientWidth<x.clientX+o.clientWidth*2,u=t.clientHeight<x.clientY+o.clientHeight,o.style.left=`${x.clientX}px`,o.style.top=`${x.clientY}px`)),t&&(t.style.pointerEvents="none"),window.addEventListener("mousedown",re),window.addEventListener("resize",ae),f=!0,e.requestUpdate())};e.onCleanup(()=>{window.removeEventListener("mousedown",E,!0),D=null,P=null,L=!1,++y,window.removeEventListener("mousedown",re),window.removeEventListener("resize",ae)});const B=x=>{let m=k.get(x);return m||(m=bi((T,A,F)=>{A.children&&(se(F,A),g.set(F,T),e.requestUpdate())},400),k.set(x,m)),m},se=(x,m)=>{if(!m.children||h.get(x))return;const T=C.get(x);if(!T)return;const A=T.getBoundingClientRect();h.set(x,T.clientHeight+A.top>document.body.offsetHeight)},N=(x,m)=>{x.function?(x.function(),ae()):x.children&&(se(m,x),g.set(m,!0),e.requestUpdate())},X=x=>typeof x.disabled=="function"?x.disabled():!!x.disabled,M=(x,m,T,A)=>{const F=g.get(A)??!1,ce=h.get(A)??!1,ke=B(A);return s.html`<div
1356
- class=${V({"context-menu-item-enable-hover":!("hover"in x)||x.hover,"context-menu-item-wrapper":!0,"context-menu-item-wrapper-selected":F,"context-menu-item-wrapper-disabled":X(x)})}
1357
- @mouseenter=${()=>ke(!0,x,A)}
1358
- @mouseleave=${()=>ke(!1,x,A)}
1407
+ </div>`}}}}),fa={name:"MozTagInput",core:ss,booleanProps:["disableDelete","disableUpdate","dynamicSearch","isExpandTop","pushOnBlur","required","simplify"],props:["modelValue","required","label","addButtonLabel","itemsSource","displayKey","pattern","dynamicSearch","requestCreate","requestRead","requestUpdate","simplify","limitItemLength","limitTextLength","disableUpdate","disableDelete","pushOnBlur","isExpandTop"],emits:["update:modelValue","modelChange","onEnterEmpty"],slots:["left","right"],expose:!0},ga=new Set(["itemSource","fixPosition","noPadding","minWidth","class","style"]);function va(e,t){let o;return(...s)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...s),t)}}const wa=500,ls=ye({name:"moz-context-menu",defaults:{transition:"fade",minWidth:"160px",direction:"rb"},setup(e){let t=null,o=null;const s=Y.createRef();let l=!1,i=!1,r=!1,p=!1,d=null,b=!1,c=!1,m=!1,u=!1,k=0,x=!1,S=null,L=null;const M=P=>{S=e.props.fixPosition?P:null},f=new Map,a=new Map,h=new Map,$=new Map,_=()=>{l&&i&&(d||e.props.itemSource)&&o&&!u&&(u=!0,e.emit("open",{target:o}))},O=P=>{const g=r!==P;r=P,e.requestUpdate(),g&&!P&&setTimeout(()=>{l=!1,p=!1,u=!1,e.emit("close",{target:o}),e.requestUpdate()},50)},U=P=>{const g=l!==P;l=P,e.requestUpdate(),g&&(setTimeout(()=>{i=l,e.requestUpdate(),_()},0),O(l),_())},Q=P=>{if(e.props.fixPosition&&P===L||e.props.disableCloseOnClickBackdrop)return;const g=["list-box-container"],R=P.composedPath();R.includes(o)||g.forEach(I=>{(!I||I&&!R.some(H=>{var pe;return(pe=H.classList)==null?void 0:pe.contains(I)}))&&re()})},re=()=>{(e.props.beforeClose??(()=>{}))&&(L=null,S=null,x=!1,++k,O(!1),window.removeEventListener("mousedown",Q),window.removeEventListener("resize",re))},X=(P,g)=>{P instanceof Function&&(d=P(g));const R=!!e.props.fixPosition;L=R&&S&&S.eventPhase!==0?S:null;const I=++k;x=R,U(!0),setTimeout(()=>{R&&(!x||I!==k)||U(!0)},60)},E=()=>{l?re():X()},V=()=>{const P=e.props.fixPosition;if(!P)return;const g=P.selector&&document.querySelector(P.selector)||t;if(!g||!o||!s.value)return;const R=g.getBoundingClientRect(),I=s.value.getBoundingClientRect();b=R.left+g.clientWidth<I.left+o.clientWidth,c=R.left+g.clientWidth<I.left+o.clientWidth*2,m=R.top+g.clientHeight<I.top+o.clientHeight,P.useTeleport?(o.style.left=`${I.left}px`,o.style.top=`${I.top}px`):(o.style.left=`${s.value.offsetLeft}px`,o.style.top=`${s.value.offsetTop}px`),e.requestUpdate()},J=()=>{if(!e.props.fixPosition||!x||p)return;const P=k;queueMicrotask(()=>{P!==k||!x||!e.props.fixPosition||!l||p||!t||!o||!s.value||(V(),t.style.pointerEvents="none",window.addEventListener("mousedown",Q),window.addEventListener("resize",re),p=!0)})},le=P=>{p||(o&&t&&(e.props.fixPosition?V():(b=t.clientWidth<P.clientX+o.clientWidth,c=t.clientWidth<P.clientX+o.clientWidth*2,m=t.clientHeight<P.clientY+o.clientHeight,o.style.left=`${P.clientX}px`,o.style.top=`${P.clientY}px`)),t&&(t.style.pointerEvents="none"),window.addEventListener("mousedown",Q),window.addEventListener("resize",re),p=!0,e.requestUpdate())};e.onCleanup(()=>{window.removeEventListener("mousedown",M,!0),S=null,L=null,x=!1,++k,window.removeEventListener("mousedown",Q),window.removeEventListener("resize",re)});const N=P=>{let g=$.get(P);return g||(g=va((R,I,H)=>{I.children&&(ie(H,I),f.set(H,R),e.requestUpdate())},400),$.set(P,g)),g},ie=(P,g)=>{if(!g.children||a.get(P))return;const R=h.get(P);if(!R)return;const I=R.getBoundingClientRect();a.set(P,R.clientHeight+I.top>document.body.offsetHeight)},F=(P,g)=>{P.function?(P.function(),re()):P.children&&(ie(g,P),f.set(g,!0),e.requestUpdate())},oe=P=>typeof P.disabled=="function"?P.disabled():!!P.disabled,T=(P,g,R,I)=>{const H=f.get(I)??!1,pe=a.get(I)??!1,ke=N(I);return n.html`<div
1408
+ class=${A({"context-menu-item-enable-hover":!("hover"in P)||P.hover,"context-menu-item-wrapper":!0,"context-menu-item-wrapper-selected":H,"context-menu-item-wrapper-disabled":oe(P)})}
1409
+ @mouseenter=${()=>ke(!0,P,I)}
1410
+ @mouseleave=${()=>ke(!1,P,I)}
1359
1411
  >
1360
1412
  <div
1361
- class=${V({"context-menu-sub-items-wrapper-right":T&&!ce,"context-menu-sub-items-wrapper-bottom":ce&&!T,"context-menu-sub-items-wrapper-bottom-right":ce&&T,"context-menu-sub-items-wrapper-hide":!x.children||!F,"context-menu-sub-items-wrapper":!ce&&!T})}
1362
- ${K.ref(Me=>{Me&&C.set(A,Me)})}
1413
+ class=${A({"context-menu-sub-items-wrapper-right":R&&!pe,"context-menu-sub-items-wrapper-bottom":pe&&!R,"context-menu-sub-items-wrapper-bottom-right":pe&&R,"context-menu-sub-items-wrapper-hide":!P.children||!H,"context-menu-sub-items-wrapper":!pe&&!R})}
1414
+ ${Y.ref(Me=>{Me&&h.set(I,Me)})}
1363
1415
  >
1364
- ${x.children?_(x.children,m+1,T,A):s.nothing}
1416
+ ${P.children?K(P.children,g+1,R,I):n.nothing}
1365
1417
  </div>
1366
- ${x.template?s.html`<div
1367
- class=${`context-menu-item-${x.template}`}
1368
- @mouseup=${()=>{var Me;(!("hover"in x)||x.hover)&&((Me=x.function)==null||Me.call(x),ae())}}
1418
+ ${P.template?n.html`<div
1419
+ class=${`context-menu-item-${P.template}`}
1420
+ @mouseup=${()=>{var Me;(!("hover"in P)||P.hover)&&((Me=P.function)==null||Me.call(P),re())}}
1369
1421
  >
1370
- ${U(x)}
1371
- </div>`:s.html`<div
1422
+ ${W(P)}
1423
+ </div>`:n.html`<div
1372
1424
  class="context-menu-item"
1373
1425
  role="menuitem"
1374
1426
  tabindex="-1"
1375
- aria-disabled=${X(x)?"true":"false"}
1376
- aria-haspopup=${x.children?"menu":"false"}
1377
- @click=${()=>N(x,A)}
1427
+ aria-disabled=${oe(P)?"true":"false"}
1428
+ aria-haspopup=${P.children?"menu":"false"}
1429
+ @click=${()=>F(P,I)}
1378
1430
  >
1379
- <div class="context-menu-item-left">${x.text}</div>
1380
- ${x.children?s.html`<div class="context-menu-item-right"></div>`:s.nothing}
1431
+ <div class="context-menu-item-left">${P.text}</div>
1432
+ ${P.children?n.html`<div class="context-menu-item-right"></div>`:n.nothing}
1381
1433
  </div>`}
1382
- </div>`},U=x=>{const m=x.template,T=m.includes("[col-padding]")?"col-padding":m.includes("[row-padding]")?"row-padding":m.includes("[padding]")?"padding":null,A=e.slots.has(m)?e.slot(m,{props:{...x,close:ae}}):s.nothing;return T?s.html`<div class="context-menu-item-template" data-layout=${T}>${A}</div>`:s.html`${A}`},_=(x,m,T,A)=>{const F=m===0;return s.html`<div
1383
- role=${F?"menu":"group"}
1384
- class=${V("context-menu-content-wrapper",F?e.props.class:void 0)}
1434
+ </div>`},W=P=>{const g=P.template,R=g.includes("[col-padding]")?"col-padding":g.includes("[row-padding]")?"row-padding":g.includes("[padding]")?"padding":null,I=e.slots.has(g)?e.slot(g,{props:{...P,close:re}}):n.nothing;return R?n.html`<div class="context-menu-item-template" data-layout=${R}>${I}</div>`:n.html`${I}`},K=(P,g,R,I)=>{const H=g===0;return n.html`<div
1435
+ role=${H?"menu":"group"}
1436
+ class=${A("context-menu-content-wrapper",H?e.props.class:void 0)}
1385
1437
  data-noPadding=${String(!!e.props.noPadding)}
1386
- style=${ee.styleMap({minWidth:e.props.minWidth,...F?be(e.props.style):{}})}
1387
- ${he(F?ye(e.props,wi):{})}
1438
+ style=${j.styleMap({minWidth:e.props.minWidth,...H?he(e.props.style):{}})}
1439
+ ${ce(H?ge(e.props,ga):{})}
1388
1440
  >
1389
- ${x.map((ce,ke)=>{const Me=`${A}/${m}-${ke}`;return s.html`<div class="context-menu-item-outer-wrapper" style=${ee.styleMap({display:ce!=null&&ce.hidden?"none":""})}>
1390
- ${ce.separator?s.html`<div class="context-menu-separator"></div>`:M(ce,m,T,Me)}
1441
+ ${P.map((pe,ke)=>{const Me=`${I}/${g}-${ke}`;return n.html`<div class="context-menu-item-outer-wrapper" style=${j.styleMap({display:pe!=null&&pe.hidden?"none":""})}>
1442
+ ${pe.separator?n.html`<div class="context-menu-separator"></div>`:T(pe,g,R,Me)}
1391
1443
  </div>`})}
1392
- </div>`},G=()=>{const x=e.props.fixPosition;return x?(typeof x.left=="string"||typeof x.left=="number"||typeof x.top=="string"||typeof x.top=="number")&&x.useTeleport!==!0:!1},J=()=>{const x=e.props,m=i||x.itemSource;if(!l||!m)return s.nothing;const T=x.transition,A=x.direction;return s.html`<div
1393
- class=${V({[`before-${T}`]:!0,[`after-${T}`]:d&&a,"context-menu-content-hide":!l,"context-menu-content-init":!0,"context-menu-content-init-right":c&&!u||A==="lb"||A.startsWith("l")&&!u||A.endsWith("b")&&c,"context-menu-content-init-bottom":u&&!c||A==="rt"||A.startsWith("r")&&u||A.endsWith("t")&&!c,"context-menu-content-init-bottom-right":u&&c||A==="lt"||A.startsWith("l")&&u||A.endsWith("t")&&c})}
1394
- style=${ee.styleMap({transitionDuration:`${Ci}ms`,...x.toTopCenter?{transform:"translate(-50%, -100%)"}:{},...x.toBottomCenter?{transform:"translate(-50%, 0)"}:{}})}
1395
- @contextmenu=${F=>F.preventDefault()}
1396
- ${K.ref(F=>{o=F||null,F&&(Y(),Z())})}
1444
+ </div>`},ee=()=>{const P=e.props.fixPosition;return P?(typeof P.left=="string"||typeof P.left=="number"||typeof P.top=="string"||typeof P.top=="number")&&P.useTeleport!==!0:!1},te=()=>{const P=e.props,g=d||P.itemSource;if(!l||!g)return n.nothing;const R=P.transition,I=P.direction;return n.html`<div
1445
+ class=${A({[`before-${R}`]:!0,[`after-${R}`]:i&&r,"context-menu-content-hide":!l,"context-menu-content-init":!0,"context-menu-content-init-right":b&&!m||I==="lb"||I.startsWith("l")&&!m||I.endsWith("b")&&b,"context-menu-content-init-bottom":m&&!b||I==="rt"||I.startsWith("r")&&m||I.endsWith("t")&&!b,"context-menu-content-init-bottom-right":m&&b||I==="lt"||I.startsWith("l")&&m||I.endsWith("t")&&b})}
1446
+ style=${j.styleMap({transitionDuration:`${wa}ms`,...P.toTopCenter?{transform:"translate(-50%, -100%)"}:{},...P.toBottomCenter?{transform:"translate(-50%, 0)"}:{}})}
1447
+ @contextmenu=${H=>H.preventDefault()}
1448
+ ${Y.ref(H=>{o=H||null,H&&(J(),_())})}
1397
1449
  >
1398
- ${_(m,0,r,"root")}
1399
- </div>`};return{onMounted:()=>{window.addEventListener("mousedown",E,{capture:!0,passive:!0})},api:{state:()=>l,open:j,close:ae,toggle:$},render(){const x=e.props;return x.fixPosition?s.html`<div
1450
+ ${K(g,0,c,"root")}
1451
+ </div>`};return{onMounted:()=>{window.addEventListener("mousedown",M,{capture:!0,passive:!0})},api:{state:()=>l,open:X,close:re,toggle:E},render(){const P=e.props;return P.fixPosition?n.html`<div
1400
1452
  class="context-menu-fixed-position-space"
1401
- style=${ee.styleMap({left:typeof x.fixPosition.left=="string"?x.fixPosition.left:`${x.fixPosition.left}px`,top:typeof x.fixPosition.top=="string"?x.fixPosition.top:`${x.fixPosition.top}px`})}
1402
- ${K.ref(n)}
1453
+ style=${j.styleMap({left:typeof P.fixPosition.left=="string"?P.fixPosition.left:`${P.fixPosition.left}px`,top:typeof P.fixPosition.top=="string"?P.fixPosition.top:`${P.fixPosition.top}px`})}
1454
+ ${Y.ref(s)}
1403
1455
  ></div>
1404
- ${G()?J():s.nothing}`:s.nothing},renderPortal(){const x=i||e.props.itemSource;return!l||!x?s.nothing:s.html`
1456
+ ${ee()?te():n.nothing}`:n.nothing},renderPortal(){const P=d||e.props.itemSource;return!l||!P?n.nothing:n.html`
1405
1457
  <div
1406
1458
  class="context-menu-wrapper"
1407
- @mouseenter=${ne}
1408
- @contextmenu=${m=>m.preventDefault()}
1409
- ${K.ref(m=>{t=m||null,m&&Y()})}
1459
+ @mouseenter=${le}
1460
+ @contextmenu=${g=>g.preventDefault()}
1461
+ ${Y.ref(g=>{t=g||null,g&&J()})}
1410
1462
  ></div>
1411
- ${G()?s.nothing:J()}
1412
- `}}}}),yi={name:"MozContextMenu",core:As,booleanProps:["disableCloseOnClickBackdrop","noPadding","toBottomCenter","toTopCenter"],props:["itemSource","beforeClose","transition","minWidth","direction","fixPosition","toTopCenter","toBottomCenter","noPadding","disableCloseOnClickBackdrop"],emits:["open","close"],slots:[],expose:!0};function Io(e){const{displayProps:t=["text"],columnHeaders:o,columnWidths:n=[],useObjKeyProp:l=!1,...d}=e,a=t.reduce((f,i,c)=>f+(n[c]??120),0)+Math.max(0,t.length-1)*12+34+30;return{...d,width:e.width??`${a}px`,listWidth:e.listWidth??"auto",useObjBinding:l,displayProp:t.map((f,i)=>({key:f,header:o!=null&&o.length?o[i]??"":void 0,width:(n[i]??120)+(i===t.length-1?30:0)}))}}const $i=Ps(!0),Ds=(e,t,o,n)=>{let l={...t};const d=$i(e,Io(l),o,n);return{get el(){return d.el},api:d.api,destroy:()=>d.destroy(),notifyMounted:()=>{var a;return(a=d.notifyMounted)==null?void 0:a.call(d)},setLocale:a=>{var f;return(f=d.setLocale)==null?void 0:f.call(d,a)},update(a,f){l=f!=null&&f.replace?{...a}:{...l,...a},d.update(Io(l),f)}}},Si={name:"MozTableSelect",core:Ds,booleanProps:["disabled","readonly","required","useFilter","useObjKeyProp"],props:["itemsSource","label","width","required","readonly","disabled","keyProp","displayProps","columnWidths","separator","rules","useFilter","listWidth","searchPlaceholder","emptyText","requiredMessage","useObjKeyProp","columnHeaders","modelValue"],emits:["change","close","update:modelValue"],slots:["empty"],expose:!0};function ki(e="var(--moz-color-text-subtle)",t=12){return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 12 12" fill="none">
1463
+ ${ee()?n.nothing:te()}
1464
+ `}}}}),ya={name:"MozContextMenu",core:ls,booleanProps:["disableCloseOnClickBackdrop","noPadding","toBottomCenter","toTopCenter"],props:["itemSource","beforeClose","transition","minWidth","direction","fixPosition","toTopCenter","toBottomCenter","noPadding","disableCloseOnClickBackdrop"],emits:["open","close"],slots:[],expose:!0};function an(e){const{displayProps:t=["text"],columnHeaders:o,columnWidths:s=[],useObjKeyProp:l=!1,...i}=e,r=t.reduce((p,d,b)=>p+(s[b]??120),0)+Math.max(0,t.length-1)*12+34+30;return{...i,width:e.width??`${r}px`,listWidth:e.listWidth??"auto",useObjBinding:l,displayProp:t.map((p,d)=>({key:p,header:o!=null&&o.length?o[d]??"":void 0,width:(s[d]??120)+(d===t.length-1?30:0)}))}}const ba=Jn(!0),is=(e,t,o,s)=>{let l={...t};const i=ba(e,an(l),o,s);return{get el(){return i.el},api:i.api,destroy:()=>i.destroy(),notifyMounted:()=>{var r;return(r=i.notifyMounted)==null?void 0:r.call(i)},setLocale:r=>{var p;return(p=i.setLocale)==null?void 0:p.call(i,r)},update(r,p){l=p!=null&&p.replace?{...r}:{...l,...r},i.update(an(l),p)}}},Ca={name:"MozTableSelect",core:is,booleanProps:["disabled","readonly","required","useFilter","useObjKeyProp"],props:["itemsSource","label","width","required","readonly","disabled","keyProp","displayProps","columnWidths","separator","rules","useFilter","listWidth","searchPlaceholder","emptyText","requiredMessage","useObjKeyProp","columnHeaders","modelValue"],emits:["change","close","update:modelValue"],slots:["empty"],expose:!0};function $a(e="var(--moz-color-text-subtle)",t=12){return n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 12 12" fill="none">
1413
1465
  <path
1414
1466
  d="M2.49902 4.27679L6.04436 7.73581L9.501 4.27679"
1415
1467
  stroke=${e}
@@ -1417,7 +1469,7 @@
1417
1469
  stroke-linecap="round"
1418
1470
  stroke-linejoin="round"
1419
1471
  ></path>
1420
- </svg>`}function Ei(e="var(--moz-color-text-subtle)",t=12){return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 12 12" fill="none">
1472
+ </svg>`}function Sa(e="var(--moz-color-text-subtle)",t=12){return n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 12 12" fill="none">
1421
1473
  <path
1422
1474
  d="M9.50095 7.73636L5.95563 4.27734L2.49902 7.73636"
1423
1475
  stroke=${e}
@@ -1425,13 +1477,13 @@
1425
1477
  stroke-linecap="round"
1426
1478
  stroke-linejoin="round"
1427
1479
  ></path>
1428
- </svg>`}function Pi(e="var(--moz-color-text-subtle)",t=12,o=""){return s.html`<svg class=${o} width=${t} height=${t} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
1480
+ </svg>`}function ka(e="var(--moz-color-text-subtle)",t=12,o=""){return n.html`<svg class=${o} width=${t} height=${t} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
1429
1481
  <path d="M1.71436 7.07145L3.00007 6.00002L1.71436 4.92859" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
1430
1482
  <path d="M5.14307 4.71423H10.2859" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1431
1483
  <path d="M1.71436 2.14282L10.2858 2.14282" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1432
1484
  <path d="M5.14307 7.28577H10.2859" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1433
1485
  <path d="M1.71436 9.85718L10.2858 9.85718" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1434
- </svg>`}function Li(e="var(--moz-color-text-subtle)",t=12,o=""){return s.html`<svg class=${o} width=${t} height=${t} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
1486
+ </svg>`}function Ma(e="var(--moz-color-text-subtle)",t=12,o=""){return n.html`<svg class=${o} width=${t} height=${t} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
1435
1487
  <path d="M0.856934 4.92852L2.14265 4.07138L0.856934 3.21423" fill=${e}></path>
1436
1488
  <path d="M0.856934 4.92852L2.14265 4.07138L0.856934 3.21423V4.92852Z" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
1437
1489
  <path d="M0.856934 8.7857L2.14265 7.92855L0.856934 7.07141" fill=${e}></path>
@@ -1439,49 +1491,49 @@
1439
1491
  <path d="M3.8501 2.35718H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1440
1492
  <path d="M3.8501 6H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1441
1493
  <path d="M3.8501 9.64282H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1442
- </svg>`}const ro={keyProp:"code",displayProp:"name",categoryLv1ID:"categoryLv1ID",categoryLv1Label:"categoryLv1Label",categoryLv2ID:"categoryLv2ID",categoryLv2Label:"categoryLv2Label",description:"description"},Pt=new WeakMap;function jt(e){return Pt.get(e)===!0}function Xt(e,t){return Pt.has(e)&&Pt.set(t,Pt.get(e)),t}function Mi(e,t,o="disabled"){const n=a=>t.displayProp&&a[t.displayProp]?a[t.displayProp]:a[t.keyProp],l=a=>t.categoryLv1Label&&a[t.categoryLv1Label]?a[t.categoryLv1Label]:t.categoryLv1ID?a[t.categoryLv1ID]:"",d=a=>t.categoryLv2Label&&a[t.categoryLv2Label]?a[t.categoryLv2Label]:t.categoryLv2ID?a[t.categoryLv2ID]:"";return e.map(a=>{const f={code:a[t.keyProp],name:n(a),categoryLv1ID:t.categoryLv1ID&&a[t.categoryLv1ID]||"",categoryLv1Label:l(a),categoryLv2ID:t.categoryLv2ID&&a[t.categoryLv2ID]||"",categoryLv2Label:d(a),description:t.description&&a[t.description]||""};return Pt.set(f,a[o]===!0),f})}function It(e,t){let o=e.get(t);return o||(o=[],e.set(t,o)),o}function xi(e){const t=new Map([["depth0",[]],["depth1",[]],["depth2",[]]]),o=new Map,n=new Map;e.forEach(a=>{const f=a.categoryLv1ID;if(!o.get(f)){const i={code:f,name:a.categoryLv1Label??f};o.set(f,i),It(t,"depth0").push(i)}if(!a.categoryLv2ID||a.categoryLv2ID.trim()==="")It(t,"depth1").push(Xt(a,{...a,parent:a.categoryLv1ID}));else{const i=`${a.categoryLv1ID}-${a.categoryLv2ID}`;if(!n.get(i)){const c={code:a.categoryLv2ID,name:a.categoryLv2Label??a.categoryLv2ID,parent:a.categoryLv1ID,isSubCategory:!0};n.set(i,c),It(t,"depth1").push(c)}It(t,"depth2").push(Xt(a,{...a,parent:a.categoryLv2ID}))}});function l(a,f,i,c){const r=`depth${f}`,u=`depth${f+1}`,p=i.get(u),y=Xt(a,{...a,depth:f});if(f!==0&&(y.isHidden=!1),p&&p.length>0){const L=c[r],D=c[u],P=p.filter(g=>g[D]===(a.isSubCategory?a.code:a[L]));y.isExpanded=!0;const E=[y];return P.forEach(g=>{E.push(...l(g,f+1,i,c))}),E}return[y]}const d={depth0:"code",depth1:"parent",depth2:"parent"};return(t.get("depth0")??[]).flatMap(a=>l(a,0,t,d))}function zi(e){return new Set(e.map(t=>t.code))}function je(e,t){return t===e}function Bt(e,t){return e.filter(o=>o.categoryLv1ID===t.code||o.categoryLv2ID===t.code)}function Vt(e){return new Set(e.map(t=>t.code))}function Rt(e,t){return{childDepthList:Bt(e,t)}}function Vo(e,t){for(const o of e)if(!t.has(o))return!1;return!0}function Ut(e,t,o){t===0&&e.categoryLv1Set.delete(o),t===1&&e.categoryLv2Set.delete(o)}function Lt(e,t,o){t===0&&e.categoryLv1Set.add(o),t===1&&e.categoryLv2Set.add(o)}function Ti(e,t,o){t.length&&e.categoryLv1Set.add(t),o.length&&e.categoryLv2Set.add(o)}function $t(e){e.categoryLv1Set.clear(),e.categoryLv2Set.clear()}function Is(e,t,o,n){if(Lt(e,o.depth,o.code),o.parent){const l=t.find(d=>d.code===o.parent);l&&Is(e,t,l)}}function Vs(e,t,o,n){if(Lt(e,o.depth,o.code),je(n,o.depth))return;t.filter(d=>d.parent===o.code).forEach(d=>{je(n,d.depth)||Vs(e,t,d,n)})}function Qt(e,t,o,n){Is(e,t,o),Vs(e,t,o,n)}function Rs(e,t,o,n){if(Ut(e,o.depth,o.code),o.parent){const l=t.find(d=>d.code===o.parent);l&&Rs(e,t,l)}}function Os(e,t,o,n){if(Ut(e,o.depth,o.code),je(n,o.depth))return;t.filter(d=>d.parent===o.code).forEach(d=>{je(n,d.depth)||Os(e,t,d,n)})}function Jt(e,t,o,n){Rs(e,t,o),Os(e,t,o,n)}const Ai=new Set(["modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","useFilter","useSelectAll","class","style"]),qs=$e({name:"moz-tree-select",defaults:{label:null,width:200,required:!1,readonly:!1,disabled:!1,disabledProp:"disabled",rules:[],useSelectAll:!0,useFilter:!0,headerFormat:"ITEMS ({count})",listBoxWidth:0,useSpecificSelect:!0,treeLevels:1,useMultiSelect:!1,treeProps:ro,modelValue:[]},setup(e){const t=K.createRef(),o=K.createRef(),n=K.createRef(),l=K.createRef(),d=K.createRef();let a=null;const f=(e.props.treeLevels??1)-1,i=f,c=()=>!!e.props.useMultiSelect,r=()=>e.props.disabledProp||"disabled",u=()=>e.props.treeProps??ro;let p=e.props.modelValue??(c()?[]:"");const y=()=>e.controlled("modelValue")?e.props.modelValue??[]:p,L=()=>{const b=y();return Array.isArray(b)?b:b?[b]:[]},D=b=>{e.controlled("modelValue")||(p=b),e.emit("update:modelValue",b),e.requestUpdate()};let P=!1,E=!1,g=0;e.onCleanup(()=>{E=!0,g+=1});let h="",C=!1,k=!1,Z=!1,W={},Q=[];const re={change:"",blur:"",save:""},ae=new Set,j=new Set,$={categoryLv1Set:ae,categoryLv2Set:j},I=(()=>{try{const b=getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height");return b?+b.trim().replace("px",""):28}catch{return 28}})(),Y=8,ne=Number.isFinite(I)&&I>0?{"--moz-tree-select-row-height":`${I}px`}:{};let B=I;const se=()=>e.slots.has("list-item");let N=[],X=[],M=e.props.itemsSource,U=r();const _=()=>{N=Mi(e.props.itemsSource??[],u(),r()),X=xi(N)};_();const G=()=>{const b=new Map;return N.forEach(S=>b.set(S.code,S)),b},J=b=>b.name??"",x=b=>new Set(L()).has(b.code),m=b=>Q.some(S=>wt(S.item,b)),T=()=>new Set(L()),A=()=>{let b=[];if(!h)b=X;else{const S=[],O=new Set,le=ue=>`depth${ue.depth}_${ue.code}`;for(const ue of X)if(ue.depth!==i){for(;S.length&&S[S.length-1].depth>=ue.depth;)S.pop();S.push(ue)}else if(J(ue).toLowerCase().indexOf(h.toLowerCase())>-1){for(const we of S){const ze=le(we);O.has(ze)||(b.push(we),O.add(ze))}const fe=le(ue);O.has(fe)||(b.push(ue),O.add(fe))}}if(Z){const S=new Set,O=G(),le=T();b.filter(fe=>{if(Ne(fe,le))return!0;if(c()&&!je(f,fe.depth)){const we=Bt(X,fe);if(we.length>0&&we.some(ze=>le.has(ze.code)))return!0}return!1}).forEach(fe=>{let we=fe;for(;we&&(S.add(we.code),!!we.parent);)we=O.get(we.parent)}),b=b.filter(fe=>S.has(fe.code))}return b},F=()=>A().filter(b=>!(b.categoryLv1ID||b.categoryLv2ID)),ce=()=>{const b=F();return A().filter(S=>!b.includes(S))},ke=()=>new Set(ce().map(b=>b.code)),Me=()=>zi(ce()),Ne=(b,S)=>c()?je(i,b.depth)?S.has(b.code):ae.has(b.code)||j.has(b.code):y()===b.code,qe=b=>{if(je(f,b.depth))return!0;const S=Bt(A(),b);return S.length===0?!0:Vo(Vt(S),T())},st=()=>{const b=L().length,S=F().length;if(b<S||b===0||S===0)return!1;for(const O of Me())if(!T().has(O))return!1;return!0},Qe=()=>{const b=Me(),S=T();return!b.size||!S.size||S.size<b.size?!1:Array.from(b).every(O=>S.has(O))},Je=()=>c()?!!e.props.useSelectAll:!1,Be=()=>{const b=y(),S=G();if(typeof b=="string")return S.has(b)?S.get(b).name:b;const O=Array.isArray(b)?b:[],le=O.filter(ue=>S.has(ue)).map(ue=>S.get(ue).name);return O.length?c()&&le.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${le.length.toLocaleString()}`):le.join(", ")||"":""},He=()=>re.save||re.blur||re.change,Le=()=>{const b=[];return e.props.required&&b.push({message:e.locale.TreeSelect.required.replace("{label}",e.props.label||""),type:"save",validator:S=>!!S.length}),[...b,...e.props.rules??[]]},_e=async(b,S)=>{const O=Le();if(O.length<=0)return;if(e.props.disabled)return!0;re[S]="",e.requestUpdate();const le=O.filter(ue=>ue.type===S);for(const ue of le)if(!await ue.validator(b))return re[S]=ue.message,e.requestUpdate(),!1;return!0},Ue=async(b="save")=>He()!==""?!1:await _e(L(),b)??!0,rt={validate:Ue,initValidator:()=>{re.change="",re.blur="",re.save="",e.requestUpdate()}};e.onCleanup(()=>{oe==null||oe.release(),oe=null}),e.validator&&(e.validator.addValidator(rt),e.onCleanup(()=>{var b;return(b=e.validator)==null?void 0:b.removeValidator(rt)}));const z=(b,S)=>b.filter(O=>x(O)!==S).map(O=>O.code),de=b=>{const S=Array.from(new Set(b));wt(L(),S)||(D(S),e.emit("change",S,S.filter(Boolean)),_e(S,"change"),Ie(S))},Ie=b=>{b.length===N.length?F().forEach(S=>Lt($,S.depth,S.code)):b.forEach(S=>{const O=ce().find(le=>le.code===S);O&&Ti($,O.categoryLv1ID??"",O.categoryLv2ID??"")})},w=(b,S,O)=>{if(O.shiftKey&&Q.length>0){const le=Q[0],ue=Math.min(le.index,S),fe=Math.max(le.index,S);Q=A().slice(ue,fe+1).map((we,ze)=>({item:we,index:ue+ze}))}else O.ctrlKey?Q.push({item:b,index:S}):Q=[{item:b,index:S}]},H=(b,S)=>{if(!je(f,b.depth)){const{childDepthList:O}=Rt(A(),b);if(S){const le=Vt(O);D(L().filter(ue=>!le.has(ue))),Jt($,A(),b,i)}else{const le=O.map(ue=>ue.code);D([...L(),...le])}}},te=(b,S)=>{const le=Q.map(we=>we.item).filter(we=>we.depth===i),ue=z(le,b);let fe=[];if(S.depth!==f){const{childDepthList:we}=Rt(A(),S),ze=Vt(we);fe=L().filter(tt=>!ze.has(tt))}else fe=L();b?S.depth===f?fe=[...fe,...ue]:Qt($,A(),S,i):($t($),fe=fe.filter(we=>!ue.some(ze=>we===ze))),de(fe)},me=(b,S,O,le)=>{const ue=Q.some(fe=>fe.item.code===b.code);if((Q.length<=1||!ue)&&w(b,S,{shiftKey:!1,ctrlKey:!1}),je(f,b.depth))te(!le,b);else{const fe=L(),we=A(),{childDepthList:ze}=Rt(we,b),tt=ze.map(Ke=>Ke.code),Ye=new Set(tt);le?($t($),Jt($,we,b,i),de(fe.filter(Ke=>!Ye.has(Ke)))):(Qt($,we,b,i),de([...fe,...tt]))}e.requestUpdate()},ve=new WeakSet,Oe=(b,S,O,le)=>{ve.delete(O)||jt(b)||(!O.ctrlKey&&!O.shiftKey&&Q.length<=1&&me(b,S,O,le),w(b,S,O),e.requestUpdate())},Ce=(b,S,O)=>{if(jt(b))return;let le=[],ue=!1;const fe=b.code;if(je(f,b.depth))ve.add(O),ue=L().length===1&&L()[0]===fe,ue||(le=[fe]),$t($);else{const{childDepthList:we}=Rt(A(),b),ze=Vt(we),tt=T();ue=Vo(ze,tt)&&ze.size===tt.size,ve.add(O),ue?Jt($,A(),b,i):(le=Array.from(ze),$t($),Qt($,A(),b,i)),de(le),w(b,S,O),e.requestUpdate();return}de(le),H(b,ue),w(b,S,O),e.requestUpdate()},Se=b=>{D(b),ie(!1)},Ze=(b,S)=>{A().filter(le=>le.parent===b).forEach(le=>{if(le.isHidden=S,le.depth===i)return;const fe=!S&&!le.isExpanded?!0:S;Ze(le.code,fe)})},Te=(b,S)=>{S.stopPropagation(),b.isExpanded=!b.isExpanded,Ze(b.code,!b.isExpanded),queueMicrotask(()=>xe.measure()),e.requestUpdate()},De=b=>{X.forEach(S=>{S.isExpanded=b,S.depth>0?S.isHidden=!b:S.isHidden=!1}),queueMicrotask(()=>xe.measure()),e.requestUpdate()},et=b=>{b.stopPropagation(),ke().size===T().size&&[...ke()].every(O=>T().has(O))?(F().forEach(O=>Ut($,O.depth,O.code)),de([])):($t($),F().forEach(O=>Lt($,O.depth,O.code)),de([...ke()]))},at=b=>{if(b.stopPropagation(),Qe()){const S=Me();de(L().filter(O=>!S.has(O))),F().forEach(O=>Ut($,O.depth,O.code))}else{const S=new Set([...L(),...ke()]);de(Array.from(S)),F().forEach(O=>Lt($,O.depth,O.code))}},Ct=b=>{C=b.target.scrollTop>0,e.requestUpdate()},ht=()=>{const b=o.value;if(!b)return;const S=b.getBoundingClientRect();let O=`${S.width}px`;e.props.listBoxWidth&&(O=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),W={width:String(O),left:`${S.left}px`,top:`${S.top+(k?0:S.height)}px`},e.requestUpdate()},mt=(b,S,O=10)=>{const le=window.innerHeight||document.documentElement.clientHeight,ue=window.innerWidth||document.documentElement.clientWidth,fe=b.getBoundingClientRect(),we=S.getBoundingClientRect(),ze=fe.bottom+we.height+O>le;if(!ze)return!1;const tt=fe.top-we.height-O<0,Ye=fe.right+we.width+O>ue,Ke=fe.left-we.width-O<0;return ze&&!tt||Ye&&!Ke},v=b=>{b.target!==a&&ie(!1)},R=b=>{var S,O;!((S=t.value)!=null&&S.contains(b.target))&&!((O=n.value)!=null&&O.contains(b.target))&&(ie(!1),document.removeEventListener("click",R,{capture:!0}))},q=b=>{var O;`${b.ctrlKey?"ctrl+":""}${b.altKey?"alt+":""}${b.key.toLowerCase()}`==="escape"&&(ie(!1),(O=l.value)==null||O.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",v,{capture:!0}),document.removeEventListener("click",R,{capture:!0}),window.removeEventListener("keydown",q)});let oe=null;const ie=(b,S=!0)=>{if(E||P===b)return;const O=++g;P=b,e.requestUpdate(),b?(oe=Gt(),document.body.addEventListener("scroll",v,{capture:!0}),document.addEventListener("click",R,{capture:!0}),re.save="",window.addEventListener("keydown",q),ht(),queueMicrotask(()=>{var le;E||!P||O!==g||(o.value&&a&&(k=mt(o.value,a)),ht(),S&&(d.value?d.value.focus():(le=l.value)==null||le.focus()))})):(oe==null||oe.release(),oe=null,document.body.removeEventListener("scroll",v,{capture:!0}),document.removeEventListener("click",R,{capture:!0}),_e(L(),"blur"),window.removeEventListener("keydown",q),h="",e.emit("close"))},pe=()=>{e.props.disabled||ie(!P)};let ge;const Ge=b=>{const S=b.target.value;ge&&clearTimeout(ge),ge=setTimeout(()=>{h=S,e.requestUpdate(),queueMicrotask(()=>{xe.setOptions({...xe.options,count:A().length}),xe.measure()})},300)},yt=b=>{Z=b,e.requestUpdate(),queueMicrotask(()=>{xe.setOptions({...xe.options,count:A().length}),xe.measure()})},xe=new nt.Virtualizer({count:0,getScrollElement:()=>a,estimateSize:b=>{const S=A()[b];return S!=null&&S.isHidden?0:se()&&S&&je(f,S.depth)?B:I},measureElement:b=>{const S=b.getBoundingClientRect().height;return S>0?S:xe.options.estimateSize(Number(b.dataset.index))},overscan:3,observeElementRect:nt.observeElementRect,observeElementOffset:nt.observeElementOffset,scrollToFn:nt.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(xe._didMount());const ft=b=>{a=b??null,b&&(xe._willUpdate(),e.requestUpdate())},zt=(b,S)=>{if(!b||S!==f)return;const O=b.getBoundingClientRect().height;O>0&&(B=O)},Fe=b=>b.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),We=(b,S)=>{if(!h||!je(f,S))return[{part:b,highlight:!1}];const O=new RegExp(`(${Fe(h)})`,"gi");return b.split(O).map(le=>({part:le,highlight:h.toLowerCase()===le.toLowerCase()}))};let Tt=y();const Yt=b=>{const{index:S,item:O,start:le,isSelected:ue,isIndeterminate:fe,isDisabled:we,isFocused:ze}=b;if(O.isHidden)return s.nothing;const tt=e.props,Ye=O.depth,Ke=je(f,Ye),dt=c(),it=Ve=>{Ye!==f?Te(O,Ve):Se(O.code)},ct=Ve=>{dt?Oe(O,S,Ve,ue&&qe(O)):it(Ve)},vt=()=>{me(O,S,{},ue&&qe(O))},At=Ke?"하나만":"그룹만";return s.html`<div
1443
- data-index=${S}
1444
- ${K.ref(Ve=>{Ve&&(xe.measureElement(Ve),zt(Ve,Ye))})}
1445
- style=${ee.styleMap({transform:`translateY(${le}px)`})}
1446
- class=${V("list-box-item virtual-row tree-item",{"list-selected":ue,"moz-multi-focus":ze,"is-selected":ue,"single-select-item":!dt&&Ke,"multi-select-item":dt})}
1494
+ </svg>`}const wo={keyProp:"code",displayProp:"name",categoryLv1ID:"categoryLv1ID",categoryLv1Label:"categoryLv1Label",categoryLv2ID:"categoryLv2ID",categoryLv2Label:"categoryLv2Label",description:"description"},Tt=new WeakMap;function ao(e){return Tt.get(e)===!0}function ro(e,t){return Tt.has(e)&&Tt.set(t,Tt.get(e)),t}function Ea(e,t,o="disabled"){const s=r=>t.displayProp&&r[t.displayProp]?r[t.displayProp]:r[t.keyProp],l=r=>t.categoryLv1Label&&r[t.categoryLv1Label]?r[t.categoryLv1Label]:t.categoryLv1ID?r[t.categoryLv1ID]:"",i=r=>t.categoryLv2Label&&r[t.categoryLv2Label]?r[t.categoryLv2Label]:t.categoryLv2ID?r[t.categoryLv2ID]:"";return e.map(r=>{const p={code:r[t.keyProp],name:s(r),categoryLv1ID:t.categoryLv1ID&&r[t.categoryLv1ID]||"",categoryLv1Label:l(r),categoryLv2ID:t.categoryLv2ID&&r[t.categoryLv2ID]||"",categoryLv2Label:i(r),description:t.description&&r[t.description]||""};return Tt.set(p,r[o]===!0),p})}function Bt(e,t){let o=e.get(t);return o||(o=[],e.set(t,o)),o}function xa(e){const t=new Map([["depth0",[]],["depth1",[]],["depth2",[]]]),o=new Map,s=new Map;e.forEach(r=>{const p=r.categoryLv1ID;if(!o.get(p)){const d={code:p,name:r.categoryLv1Label??p};o.set(p,d),Bt(t,"depth0").push(d)}if(!r.categoryLv2ID||r.categoryLv2ID.trim()==="")Bt(t,"depth1").push(ro(r,{...r,parent:r.categoryLv1ID}));else{const d=`${r.categoryLv1ID}-${r.categoryLv2ID}`;if(!s.get(d)){const b={code:r.categoryLv2ID,name:r.categoryLv2Label??r.categoryLv2ID,parent:r.categoryLv1ID,isSubCategory:!0};s.set(d,b),Bt(t,"depth1").push(b)}Bt(t,"depth2").push(ro(r,{...r,parent:r.categoryLv2ID}))}});function l(r,p,d,b){const c=`depth${p}`,m=`depth${p+1}`,u=d.get(m),k=ro(r,{...r,depth:p});if(p!==0&&(k.isHidden=!1),u&&u.length>0){const x=b[c],S=b[m],L=u.filter(f=>f[S]===(r.isSubCategory?r.code:r[x]));k.isExpanded=!0;const M=[k];return L.forEach(f=>{M.push(...l(f,p+1,d,b))}),M}return[k]}const i={depth0:"code",depth1:"parent",depth2:"parent"};return(t.get("depth0")??[]).flatMap(r=>l(r,0,t,i))}function La(e){return new Set(e.map(t=>t.code))}function Xe(e,t){return t===e}function Kt(e,t){return e.filter(o=>o.categoryLv1ID===t.code||o.categoryLv2ID===t.code)}function qt(e){return new Set(e.map(t=>t.code))}function Ft(e,t){return{childDepthList:Kt(e,t)}}function rn(e,t){for(const o of e)if(!t.has(o))return!1;return!0}function Qt(e,t,o){t===0&&e.categoryLv1Set.delete(o),t===1&&e.categoryLv2Set.delete(o)}function At(e,t,o){t===0&&e.categoryLv1Set.add(o),t===1&&e.categoryLv2Set.add(o)}function za(e,t,o){t.length&&e.categoryLv1Set.add(t),o.length&&e.categoryLv2Set.add(o)}function Lt(e){e.categoryLv1Set.clear(),e.categoryLv2Set.clear()}function as(e,t,o,s){if(At(e,o.depth,o.code),o.parent){const l=t.find(i=>i.code===o.parent);l&&as(e,t,l)}}function rs(e,t,o,s){if(At(e,o.depth,o.code),Xe(s,o.depth))return;t.filter(i=>i.parent===o.code).forEach(i=>{Xe(s,i.depth)||rs(e,t,i,s)})}function co(e,t,o,s){as(e,t,o),rs(e,t,o,s)}function cs(e,t,o,s){if(Qt(e,o.depth,o.code),o.parent){const l=t.find(i=>i.code===o.parent);l&&cs(e,t,l)}}function ds(e,t,o,s){if(Qt(e,o.depth,o.code),Xe(s,o.depth))return;t.filter(i=>i.parent===o.code).forEach(i=>{Xe(s,i.depth)||ds(e,t,i,s)})}function uo(e,t,o,s){cs(e,t,o),ds(e,t,o,s)}const Pa=new Set(["modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","useFilter","useSelectAll","class","style"]),us=ye({name:"moz-tree-select",defaults:{label:null,width:200,required:!1,readonly:!1,disabled:!1,disabledProp:"disabled",rules:[],useSelectAll:!0,useFilter:!0,headerFormat:"ITEMS ({count})",listBoxWidth:0,useSpecificSelect:!0,treeLevels:1,useMultiSelect:!1,treeProps:wo,modelValue:[]},setup(e){const t=Y.createRef(),o=Y.createRef(),s=Y.createRef(),l=Y.createRef(),i=Y.createRef();let r=null;const p=(e.props.treeLevels??1)-1,d=p,b=()=>!!e.props.useMultiSelect,c=()=>e.props.disabledProp||"disabled",m=()=>e.props.treeProps??wo;let u=e.props.modelValue??(b()?[]:"");const k=()=>e.controlled("modelValue")?e.props.modelValue??[]:u,x=()=>{const C=k();return Array.isArray(C)?C:C?[C]:[]},S=C=>{e.controlled("modelValue")||(u=C),e.emit("update:modelValue",C),e.requestUpdate()};let L=!1,M=!1,f=0;e.onCleanup(()=>{M=!0,f+=1});let a="",h=!1,$=!1,_=!1,O={},U=[];const Q={change:"",blur:"",save:""},re=new Set,X=new Set,E={categoryLv1Set:re,categoryLv2Set:X},V=(()=>{try{const C=getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height");return C?+C.trim().replace("px",""):28}catch{return 28}})(),J=8,le=Number.isFinite(V)&&V>0?{"--moz-tree-select-row-height":`${V}px`}:{};let N=V;const ie=()=>e.slots.has("list-item");let F=[],oe=[],T=e.props.itemsSource,W=c();const K=()=>{F=Ea(e.props.itemsSource??[],m(),c()),oe=xa(F)};K();const ee=()=>{const C=new Map;return F.forEach(z=>C.set(z.code,z)),C},te=C=>C.name??"",P=C=>new Set(x()).has(C.code),g=C=>U.some(z=>Mt(z.item,C)),R=()=>new Set(x()),I=()=>{let C=[];if(!a)C=oe;else{const z=[],B=new Set,ae=ue=>`depth${ue.depth}_${ue.code}`;for(const ue of oe)if(ue.depth!==d){for(;z.length&&z[z.length-1].depth>=ue.depth;)z.pop();z.push(ue)}else if(te(ue).toLowerCase().indexOf(a.toLowerCase())>-1){for(const be of z){const Te=ae(be);B.has(Te)||(C.push(be),B.add(Te))}const we=ae(ue);B.has(we)||(C.push(ue),B.add(we))}}if(_){const z=new Set,B=ee(),ae=R();C.filter(we=>{if(He(we,ae))return!0;if(b()&&!Xe(p,we.depth)){const be=Kt(oe,we);if(be.length>0&&be.some(Te=>ae.has(Te.code)))return!0}return!1}).forEach(we=>{let be=we;for(;be&&(z.add(be.code),!!be.parent);)be=B.get(be.parent)}),C=C.filter(we=>z.has(we.code))}return C},H=()=>I().filter(C=>!(C.categoryLv1ID||C.categoryLv2ID)),pe=()=>{const C=H();return I().filter(z=>!C.includes(z))},ke=()=>new Set(pe().map(C=>C.code)),Me=()=>La(pe()),He=(C,z)=>b()?Xe(d,C.depth)?z.has(C.code):re.has(C.code)||X.has(C.code):k()===C.code,Fe=C=>{if(Xe(p,C.depth))return!0;const z=Kt(I(),C);return z.length===0?!0:rn(qt(z),R())},Ge=()=>{const C=x().length,z=H().length;if(C<z||C===0||z===0)return!1;for(const B of Me())if(!R().has(B))return!1;return!0},et=()=>{const C=Me(),z=R();return!C.size||!z.size||z.size<C.size?!1:Array.from(C).every(B=>z.has(B))},lt=()=>b()?!!e.props.useSelectAll:!1,Ke=()=>{const C=k(),z=ee();if(typeof C=="string")return z.has(C)?z.get(C).name:C;const B=Array.isArray(C)?C:[],ae=B.filter(ue=>z.has(ue)).map(ue=>z.get(ue).name);return B.length?b()&&ae.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${ae.length.toLocaleString()}`):ae.join(", ")||"":""},Ue=()=>Q.save||Q.blur||Q.change,ze=()=>{const C=[];return e.props.required&&C.push({message:e.locale.TreeSelect.required.replace("{label}",e.props.label||""),type:"save",validator:z=>!!z.length}),[...C,...e.props.rules??[]]},Ze=async(C,z)=>{const B=ze();if(B.length<=0)return;if(e.props.disabled)return!0;Q[z]="",e.requestUpdate();const ae=B.filter(ue=>ue.type===z);for(const ue of ae)if(!await ue.validator(C))return Q[z]=ue.message,e.requestUpdate(),!1;return!0},Be=async(C="save")=>Ue()!==""?!1:await Ze(x(),C)??!0,ot={validate:Be,initValidator:()=>{Q.change="",Q.blur="",Q.save="",e.requestUpdate()}};e.onCleanup(()=>{ne==null||ne.release(),ne=null}),e.validator&&(e.validator.addValidator(ot),e.onCleanup(()=>{var C;return(C=e.validator)==null?void 0:C.removeValidator(ot)}));const mt=(C,z)=>C.filter(B=>P(B)!==z).map(B=>B.code),Ye=C=>{const z=Array.from(new Set(C));Mt(x(),z)||(S(z),e.emit("change",z,z.filter(Boolean)),Ze(z,"change"),at(z))},at=C=>{C.length===F.length?H().forEach(z=>At(E,z.depth,z.code)):C.forEach(z=>{const B=pe().find(ae=>ae.code===z);B&&za(E,B.categoryLv1ID??"",B.categoryLv2ID??"")})},y=(C,z,B)=>{if(B.shiftKey&&U.length>0){const ae=U[0],ue=Math.min(ae.index,z),we=Math.max(ae.index,z);U=I().slice(ue,we+1).map((be,Te)=>({item:be,index:ue+Te}))}else B.ctrlKey?U.push({item:C,index:z}):U=[{item:C,index:z}]},Z=(C,z)=>{if(!Xe(p,C.depth)){const{childDepthList:B}=Ft(I(),C);if(z){const ae=qt(B);S(x().filter(ue=>!ae.has(ue))),uo(E,I(),C,d)}else{const ae=B.map(ue=>ue.code);S([...x(),...ae])}}},w=(C,z)=>{const ae=U.map(be=>be.item).filter(be=>be.depth===d),ue=mt(ae,C);let we=[];if(z.depth!==p){const{childDepthList:be}=Ft(I(),z),Te=qt(be);we=x().filter(tt=>!Te.has(tt))}else we=x();C?z.depth===p?we=[...we,...ue]:co(E,I(),z,d):(Lt(E),we=we.filter(be=>!ue.some(Te=>be===Te))),Ye(we)},G=(C,z,B,ae)=>{const ue=U.some(we=>we.item.code===C.code);if((U.length<=1||!ue)&&y(C,z,{shiftKey:!1,ctrlKey:!1}),Xe(p,C.depth))w(!ae,C);else{const we=x(),be=I(),{childDepthList:Te}=Ft(be,C),tt=Te.map(We=>We.code),je=new Set(tt);ae?(Lt(E),uo(E,be,C,d),Ye(we.filter(We=>!je.has(We)))):(co(E,be,C,d),Ye([...we,...tt]))}e.requestUpdate()},me=new WeakSet,Ee=(C,z,B,ae)=>{me.delete(B)||ao(C)||(!B.ctrlKey&&!B.shiftKey&&U.length<=1&&G(C,z,B,ae),y(C,z,B),e.requestUpdate())},ve=(C,z,B)=>{if(ao(C))return;let ae=[],ue=!1;const we=C.code;if(Xe(p,C.depth))me.add(B),ue=x().length===1&&x()[0]===we,ue||(ae=[we]),Lt(E);else{const{childDepthList:be}=Ft(I(),C),Te=qt(be),tt=R();ue=rn(Te,tt)&&Te.size===tt.size,me.add(B),ue?uo(E,I(),C,d):(ae=Array.from(Te),Lt(E),co(E,I(),C,d)),Ye(ae),y(C,z,B),e.requestUpdate();return}Ye(ae),Z(C,ue),y(C,z,B),e.requestUpdate()},Ce=C=>{S(C),se(!1)},Ie=(C,z)=>{I().filter(ae=>ae.parent===C).forEach(ae=>{if(ae.isHidden=z,ae.depth===d)return;const we=!z&&!ae.isExpanded?!0:z;Ie(ae.code,we)})},Re=(C,z)=>{z.stopPropagation(),C.isExpanded=!C.isExpanded,Ie(C.code,!C.isExpanded),queueMicrotask(()=>Le.measure()),e.requestUpdate()},Pe=C=>{oe.forEach(z=>{z.isExpanded=C,z.depth>0?z.isHidden=!C:z.isHidden=!1}),queueMicrotask(()=>Le.measure()),e.requestUpdate()},qe=C=>{C.stopPropagation(),ke().size===R().size&&[...ke()].every(B=>R().has(B))?(H().forEach(B=>Qt(E,B.depth,B.code)),Ye([])):(Lt(E),H().forEach(B=>At(E,B.depth,B.code)),Ye([...ke()]))},ft=C=>{if(C.stopPropagation(),et()){const z=Me();Ye(x().filter(B=>!z.has(B))),H().forEach(B=>Qt(E,B.depth,B.code))}else{const z=new Set([...x(),...ke()]);Ye(Array.from(z)),H().forEach(B=>At(E,B.depth,B.code))}},ct=C=>{h=C.target.scrollTop>0,e.requestUpdate()},nt=()=>{const C=o.value;if(!C)return;const z=C.getBoundingClientRect();let B=`${z.width}px`;e.props.listBoxWidth&&(B=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),O={width:String(B),left:`${z.left}px`,top:`${z.top+($?0:z.height)}px`},e.requestUpdate()},rt=(C,z,B=10)=>{const ae=window.innerHeight||document.documentElement.clientHeight,ue=window.innerWidth||document.documentElement.clientWidth,we=C.getBoundingClientRect(),be=z.getBoundingClientRect(),Te=we.bottom+be.height+B>ae;if(!Te)return!1;const tt=we.top-be.height-B<0,je=we.right+be.width+B>ue,We=we.left-be.width-B<0;return Te&&!tt||je&&!We},v=C=>{C.target!==r&&se(!1)},D=C=>{var z,B;!((z=t.value)!=null&&z.contains(C.target))&&!((B=s.value)!=null&&B.contains(C.target))&&(se(!1),document.removeEventListener("click",D,{capture:!0}))},q=C=>{var B;`${C.ctrlKey?"ctrl+":""}${C.altKey?"alt+":""}${C.key.toLowerCase()}`==="escape"&&(se(!1),(B=l.value)==null||B.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",v,{capture:!0}),document.removeEventListener("click",D,{capture:!0}),window.removeEventListener("keydown",q)});let ne=null;const se=(C,z=!0)=>{if(M||L===C)return;const B=++f;L=C,e.requestUpdate(),C?(ne=oo(),document.body.addEventListener("scroll",v,{capture:!0}),document.addEventListener("click",D,{capture:!0}),Q.save="",window.addEventListener("keydown",q),nt(),queueMicrotask(()=>{var ae;M||!L||B!==f||(o.value&&r&&($=rt(o.value,r)),nt(),z&&(i.value?i.value.focus():(ae=l.value)==null||ae.focus()))})):(ne==null||ne.release(),ne=null,document.body.removeEventListener("scroll",v,{capture:!0}),document.removeEventListener("click",D,{capture:!0}),Ze(x(),"blur"),window.removeEventListener("keydown",q),a="",e.emit("close"))},de=()=>{e.props.disabled||se(!L)};let fe;const Ne=C=>{const z=C.target.value;fe&&clearTimeout(fe),fe=setTimeout(()=>{a=z,e.requestUpdate(),queueMicrotask(()=>{Le.setOptions({...Le.options,count:I().length}),Le.measure()})},300)},vt=C=>{_=C,e.requestUpdate(),queueMicrotask(()=>{Le.setOptions({...Le.options,count:I().length}),Le.measure()})},Le=new st.Virtualizer({count:0,getScrollElement:()=>r,estimateSize:C=>{const z=I()[C];return z!=null&&z.isHidden?0:ie()&&z&&Xe(p,z.depth)?N:V},measureElement:C=>{const z=C.getBoundingClientRect().height;return z>0?z:Le.options.estimateSize(Number(C.dataset.index))},overscan:3,observeElementRect:st.observeElementRect,observeElementOffset:st.observeElementOffset,scrollToFn:st.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(Le._didMount());const dt=C=>{r=C??null,C&&(Le._willUpdate(),e.requestUpdate())},wt=(C,z)=>{if(!C||z!==p)return;const B=C.getBoundingClientRect().height;B>0&&(N=B)},Oe=C=>C.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),_e=(C,z)=>{if(!a||!Xe(p,z))return[{part:C,highlight:!1}];const B=new RegExp(`(${Oe(a)})`,"gi");return C.split(B).map(ae=>({part:ae,highlight:a.toLowerCase()===ae.toLowerCase()}))};let yt=k();const xt=C=>{const{index:z,item:B,start:ae,isSelected:ue,isIndeterminate:we,isDisabled:be,isFocused:Te}=C;if(B.isHidden)return n.nothing;const tt=e.props,je=B.depth,We=Xe(p,je),ut=b(),it=De=>{je!==p?Re(B,De):Ce(B.code)},pt=De=>{ut?Ee(B,z,De,ue&&Fe(B)):it(De)},$t=()=>{G(B,z,{},ue&&Fe(B))},Vt=We?"하나만":"그룹만";return n.html`<div
1495
+ data-index=${z}
1496
+ ${Y.ref(De=>{De&&(Le.measureElement(De),wt(De,je))})}
1497
+ style=${j.styleMap({transform:`translateY(${ae}px)`})}
1498
+ class=${A("list-box-item virtual-row tree-item",{"list-selected":ue,"moz-multi-focus":Te,"is-selected":ue,"single-select-item":!ut&&We,"multi-select-item":ut})}
1447
1499
  >
1448
1500
  <div
1449
- class=${V("depth-indicator",{"depth-indicator--parent":!Ke,"depth-indicator--last-depth":Ke,"depth-indicator--custom-item":se()})}
1450
- style=${ee.styleMap({"--depth":String(Ye),"--last-depth-item-height":String(B)})}
1451
- @click=${Ve=>{dt||it(Ve)}}
1501
+ class=${A("depth-indicator",{"depth-indicator--parent":!We,"depth-indicator--last-depth":We,"depth-indicator--custom-item":ie()})}
1502
+ style=${j.styleMap({"--depth":String(je),"--last-depth-item-height":String(N)})}
1503
+ @click=${De=>{ut||it(De)}}
1452
1504
  ></div>
1453
- <div class="item-content" @click=${ct}>
1454
- ${Ke?s.nothing:s.html`<button
1505
+ <div class="item-content" @click=${pt}>
1506
+ ${We?n.nothing:n.html`<button
1455
1507
  type="button"
1456
1508
  class="icon-container"
1457
- aria-expanded=${O.isExpanded?"true":"false"}
1458
- aria-label=${O.isExpanded?e.locale.TreeSelect.collapse:e.locale.TreeSelect.expand}
1459
- @click=${Ve=>Te(O,Ve)}
1509
+ aria-expanded=${B.isExpanded?"true":"false"}
1510
+ aria-label=${B.isExpanded?e.locale.TreeSelect.collapse:e.locale.TreeSelect.expand}
1511
+ @click=${De=>Re(B,De)}
1460
1512
  >
1461
- ${e.slots.has("icon")?e.slot("icon"):O.isExpanded?Ei("var(--moz-color-accent)"):ki("var(--moz-color-text-subtle)")}
1513
+ ${e.slots.has("icon")?e.slot("icon"):B.isExpanded?Sa("var(--moz-color-accent)",14):$a("var(--moz-color-text-subtle)",14)}
1462
1514
  </button>`}
1463
- ${dt?qt({checked:ue,disabled:we,indeterminate:fe,onChange:vt}):s.nothing}
1515
+ ${ut?Wt({checked:ue,disabled:be,indeterminate:we,onChange:$t}):n.nothing}
1464
1516
  <div class="highlight-container">
1465
- ${se()&&Ke?e.slot("list-item",{text:{text:J(O),depth:Ye},item:O,highlightText:We(J(O),Ye)}):s.html`${We(J(O),Ye).map(Ve=>s.html`<span class=${V({highlight:Ve.highlight})}>${Ve.part}</span>`)}`}
1517
+ ${ie()&&We?e.slot("list-item",{text:{text:te(B),depth:je},item:B,highlightText:_e(te(B),je)}):n.html`${_e(te(B),je).map(De=>n.html`<span class=${A({highlight:De.highlight})}>${De.part}</span>`)}`}
1466
1518
  </div>
1467
- ${!dt&&ue&&Ke?Ss("12","var(--moz-color-accent)",!1,"icon-check"):s.nothing}
1468
- ${dt&&tt.useSpecificSelect&&!we?s.html`<button type="button" class="item-only item-only-btn" @click=${Ve=>Ce(O,S,Ve)}>
1469
- ${At}
1470
- </button>`:s.nothing}
1519
+ ${!ut&&ue&&We?jn("14","var(--moz-color-accent)",!1,"icon-check"):n.nothing}
1520
+ ${ut&&tt.useSpecificSelect&&!be?n.html`<button type="button" class="item-only item-only-btn" @click=${De=>ve(B,z,De)}>
1521
+ ${Vt}
1522
+ </button>`:n.nothing}
1471
1523
  </div>
1472
- </div>`};return{api:{validate:Ue,setOpen:b=>{E||b&&e.props.disabled||ie(b,!1)},isOpen:()=>!E&&P},render(){const b=e.props;(b.itemsSource!==M||r()!==U)&&(M=b.itemsSource,U=r(),_());const S=y();S!==Tt&&(Tt=S,typeof S!="string"&&Ie(L()));const O=typeof b.width=="number"?`${Ae(b.width)}rem`:b.width,le=e.slots.has("icon")?e.slot("icon",{isOpen:P}):P?Es("14","var(--moz-color-accent)"):ks("14","var(--moz-color-text-subtle)",b.disabled),ue=ye(b,Ai),{aria:fe,dom:we}=Wt(ue);return s.html`
1524
+ </div>`};return{api:{validate:Be,setOpen:C=>{M||C&&e.props.disabled||se(C,!1)},isOpen:()=>!M&&L},render(){const C=e.props;(C.itemsSource!==T||c()!==W)&&(T=C.itemsSource,W=c(),K());const z=k();z!==yt&&(yt=z,typeof z!="string"&&at(x()));const B=typeof C.width=="number"?`${Ae(C.width)}rem`:C.width,ae=e.slots.has("icon")?e.slot("icon",{isOpen:L}):L?Qn("14","var(--moz-color-accent)"):Xn("14","var(--moz-color-text-subtle)",C.disabled),ue=ge(C,Pa),{aria:we,dom:be}=eo(ue);return n.html`
1473
1525
  <div
1474
- ${he(we)}
1475
- class=${V("moz-multi-select moz-tree-select",b.class,{"is-invalid":He()!=="","is-open":P,disabled:!!b.disabled})}
1476
- style=${ee.styleMap({width:O,...be(b.style)})}
1477
- ${K.ref(t)}
1526
+ ${ce(be)}
1527
+ class=${A("moz-multi-select moz-tree-select",C.class,{"is-invalid":Ue()!=="","is-open":L,disabled:!!C.disabled})}
1528
+ style=${j.styleMap({width:B,...he(C.style)})}
1529
+ ${Y.ref(t)}
1478
1530
  >
1479
1531
  <div class="input-wrapper">
1480
- ${b.label?Xe({},s.html`${b.label}${b.required?s.html`<span class="require-mark">*</span>`:s.nothing}`):s.nothing}
1481
- <div class="moz-input-container" @click=${pe} ${K.ref(o)}>
1532
+ ${C.label?Je({},n.html`${C.label}${C.required?n.html`<span class="require-mark">*</span>`:n.nothing}`):n.nothing}
1533
+ <div class="moz-input-container" @click=${de} ${Y.ref(o)}>
1482
1534
  <input
1483
- .value=${Be()}
1484
- placeholder=${Ee.ifDefined(b.placeholder??void 0)}
1535
+ .value=${Ke()}
1536
+ placeholder=${$e.ifDefined(C.placeholder??void 0)}
1485
1537
  autocomplete="off"
1486
1538
  readonly
1487
1539
  tabindex="-1"
@@ -1489,101 +1541,101 @@
1489
1541
  <button
1490
1542
  type="button"
1491
1543
  class="icon-container"
1492
- ${he(fe)}
1544
+ ${ce(we)}
1493
1545
  role="combobox"
1494
1546
  aria-haspopup="tree"
1495
- aria-expanded=${P?"true":"false"}
1496
- aria-label=${Ee.ifDefined(fe["aria-label"]??b.label)}
1497
- ?disabled=${!!b.disabled}
1498
- ${K.ref(l)}
1547
+ aria-expanded=${L?"true":"false"}
1548
+ aria-label=${$e.ifDefined(we["aria-label"]??C.label)}
1549
+ ?disabled=${!!C.disabled}
1550
+ ${Y.ref(l)}
1499
1551
  >
1500
- ${le}
1552
+ ${ae}
1501
1553
  </button>
1502
1554
  </div>
1503
1555
  </div>
1504
- ${He()!==""?s.html`<span class="moz-input-invalid-message">${He()}</span>`:s.nothing}
1556
+ ${Ue()!==""?n.html`<span class="moz-input-invalid-message">${Ue()}</span>`:n.nothing}
1505
1557
  </div>
1506
- `},renderPortal(){if(!P)return s.nothing;const b=e.props,S=A(),O=Je()&&N.length>0&&S.length>0,le=S.length===0||O?0:Y,ue=S.length===0?0:Y;(xe.options.count!==S.length||xe.options.paddingStart!==le||xe.options.paddingEnd!==ue)&&xe.setOptions({...xe.options,count:S.length,paddingStart:le,paddingEnd:ue}),xe._willUpdate();const fe=xe.getTotalSize(),we=T(),ze=xe.getVirtualItems(),tt=po(ze,S.length,I,a).map(it=>{if(it.index>=S.length)return null;const ct=S[it.index];if(!ct)return null;let vt=Ne(ct,we),At=!1;if(c()&&!je(f,ct.depth)){const Ve=Bt(X,ct);if(Ve.length>0){const Mo=Ve.reduce((mn,fn)=>mn+(we.has(fn.code)?1:0),0);Mo===0?vt=!1:Mo<Ve.length?(vt=!0,At=!0):vt=!0}}return{index:it.index,item:ct,start:it.start+(ze.length===0?le:0),isSelected:vt,isIndeterminate:At,isDisabled:jt(ct),isFocused:m(ct)}}).filter(it=>it!==null),Ye=h?e.locale.TreeSelect.selectFiltered:e.locale.TreeSelect.selectAll,Ke=y(),dt=Array.isArray(Ke)?Ke.length:Ke?1:0;return s.html`<div
1507
- class=${V("list-box moz-tree-select-list",{"no-label":!b.label,"show-top":k},b.class)}
1508
- style=${ee.styleMap({...W,...ne})}
1509
- ${K.ref(n)}
1558
+ `},renderPortal(){if(!L)return n.nothing;const C=e.props,z=I(),B=lt()&&F.length>0&&z.length>0,ae=z.length===0||B?0:J,ue=z.length===0?0:J;(Le.options.count!==z.length||Le.options.paddingStart!==ae||Le.options.paddingEnd!==ue)&&Le.setOptions({...Le.options,count:z.length,paddingStart:ae,paddingEnd:ue}),Le._willUpdate();const we=Le.getTotalSize(),be=R(),Te=Le.getVirtualItems(),tt=ko(Te,z.length,V,r).map(it=>{if(it.index>=z.length)return null;const pt=z[it.index];if(!pt)return null;let $t=He(pt,be),Vt=!1;if(b()&&!Xe(p,pt.depth)){const De=Kt(oe,pt);if(De.length>0){const Go=De.reduce((ll,il)=>ll+(be.has(il.code)?1:0),0);Go===0?$t=!1:Go<De.length?($t=!0,Vt=!0):$t=!0}}return{index:it.index,item:pt,start:it.start+(Te.length===0?ae:0),isSelected:$t,isIndeterminate:Vt,isDisabled:ao(pt),isFocused:g(pt)}}).filter(it=>it!==null),je=a?e.locale.TreeSelect.selectFiltered:e.locale.TreeSelect.selectAll,We=k(),ut=Array.isArray(We)?We.length:We?1:0;return n.html`<div
1559
+ class=${A("list-box moz-tree-select-list",{"no-label":!C.label,"show-top":$},C.class)}
1560
+ style=${j.styleMap({...O,...le})}
1561
+ ${Y.ref(s)}
1510
1562
  >
1511
1563
  <div class="filter-input-wrapper">
1512
- ${b.useFilter?s.html`<div class="filter-input">
1513
- <div class="search-icon">${lo("12","var(--moz-color-text-subtle)")}</div>
1514
- <input placeholder=${e.locale.TreeSelect.search} @input=${Ge} ${K.ref(d)} />
1515
- </div>`:s.nothing}
1564
+ ${C.useFilter?n.html`<div class="filter-input">
1565
+ <div class="search-icon">${go("12","var(--moz-color-text-subtle)")}</div>
1566
+ <input placeholder=${e.locale.TreeSelect.search} @input=${Ne} ${Y.ref(i)} />
1567
+ </div>`:n.nothing}
1516
1568
  <div class="tree-controls">
1517
- <span class="control-btn" @click=${()=>De(!0)}>${Pi("currentColor")}</span>
1518
- <span class="control-btn" @click=${()=>De(!1)}>${Li("currentColor")}</span>
1569
+ <span class="control-btn" @click=${()=>Pe(!0)}>${ka("currentColor")}</span>
1570
+ <span class="control-btn" @click=${()=>Pe(!1)}>${Ma("currentColor")}</span>
1519
1571
  </div>
1520
1572
  </div>
1521
1573
 
1522
- ${Je()&&N.length>0&&S.length>0?s.html`<div class=${V("list-box-item multi-select-item multi-select-all",{"is-scrolled":C})} @click=${at}>
1574
+ ${lt()&&F.length>0&&z.length>0?n.html`<div class=${A("list-box-item multi-select-item multi-select-all",{"is-scrolled":h})} @click=${ft}>
1523
1575
  <div class="select-all-content">
1524
- ${qt({indeterminate:dt>0&&st()===!1,checked:Qe()})}
1525
- <div><span title=${Ye}>${Ye}</span></div>
1576
+ ${Wt({indeterminate:ut>0&&Ge()===!1,checked:et()})}
1577
+ <div><span title=${je}>${je}</span></div>
1526
1578
  </div>
1527
- ${h&&S.length>0?s.html`<button type="button" class="item-only" @click=${et}>${e.locale.TreeSelect.specificResults}</button>`:s.nothing}
1528
- </div>`:s.nothing}
1579
+ ${a&&z.length>0?n.html`<button type="button" class="item-only" @click=${qe}>${e.locale.TreeSelect.specificResults}</button>`:n.nothing}
1580
+ </div>`:n.nothing}
1529
1581
 
1530
- <div class="list-box-container" @scroll=${Ct} ${K.ref(ft)}>
1531
- <div class="inner-container" style=${ee.styleMap({height:`${fe}px`})}>
1532
- ${tt.map(it=>Yt(it))}
1582
+ <div class="list-box-container" @scroll=${ct} ${Y.ref(dt)}>
1583
+ <div class="inner-container" style=${j.styleMap({height:`${we}px`})}>
1584
+ ${tt.map(it=>xt(it))}
1533
1585
  </div>
1534
- ${S.length<=0?s.html`<div style=${ee.styleMap({paddingTop:`${Y}px`,paddingBottom:`${Y}px`})}>
1586
+ ${z.length<=0?n.html`<div style=${j.styleMap({paddingTop:`${J}px`,paddingBottom:`${J}px`})}>
1535
1587
  <div class="list-box-item loading not-hover">
1536
1588
  ${e.slots.has("empty")?e.slot("empty"):e.locale.TreeSelect.noData}
1537
1589
  </div>
1538
- </div>`:s.nothing}
1590
+ </div>`:n.nothing}
1539
1591
  </div>
1540
1592
 
1541
- ${c()?s.html`<div class="list-footer">
1593
+ ${b()?n.html`<div class="list-footer">
1542
1594
  <label class="footer-checkbox">
1543
- ${qt({checked:Z,onChange:yt,class:"moz-checkbox"})}
1595
+ ${Wt({checked:_,onChange:vt,class:"moz-checkbox"})}
1544
1596
  <span>${e.locale.TreeSelect.showSelectedOnly}</span>
1545
1597
  </label>
1546
- </div>`:s.nothing}
1547
- </div>`}}}}),Di={name:"MozTreeSelect",core:qs,booleanProps:["disabled","readonly","required","useFilter","useMultiSelect","useSelectAll","useSpecificSelect"],props:["itemsSource","label","width","required","readonly","disabled","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","treeLevels","useMultiSelect","treeProps","modelValue"],emits:["change","close","update:modelValue"],slots:["icon","list-item","empty"],expose:!0},Ii=new Set(["panes","direction","resizable","minSize","class","style"]),Ro=(e,t)=>e===void 0?t:typeof e=="number"?`${e}px`:e,Bs=$e({name:"moz-split-pane",defaults:{horizontal:!1,panes:[]},setup(e){let t=null,o=null;const n=[],l=[],d=[],a=[];let f=[],i=!1,c=0,r=0,u=-1,p=-1,y=-1,L=null,D=null,P=0;const E=()=>!!e.props.horizontal,g=()=>e.props.panes??[],h=()=>{f=g().map(B=>B.hidden?"0":B.size!=null?String(B.size):"1fr")};h();const C=B=>E()?B.clientHeight:B.clientWidth,k=()=>C(d[p]),Z=()=>C(a[p]),W=()=>C(d[y]),Q=()=>C(a[y]),re=B=>{if(!i)return;let se=E()?B.movementY:B.movementX;L=+(se>0),L!==D&&D!==null&&(p=u,y=u+1),D=L;const N=l[u].getBoundingClientRect(),X=E()?B.clientY-N.top+window.scrollY:B.clientX-N.left+window.scrollX;(L===0&&X>10||L===1&&X<-10)&&(se=se/(Math.abs(X)/10)),(L===0&&E()?B.clientY<N.top:B.clientX<N.left)&&(P=0),(L===1&&E()?B.clientY>N.top:B.clientX>N.left)&&(P=0);const M=G=>n[G][E()?"clientHeight":"clientWidth"];if(c=M(p)+se,r=M(y)+M(p)-c,!(c>k()&&c<Z()||c<k()&&L===1||c>k()&&L===0)){if(c<k()){if(p-1<0&&L===0){P+=E()?B.movementY:B.movementX;return}p=p-1>=0?p-1:0}else if(c>Z()){if(p-1<0){P+=E()?B.movementY:B.movementX;return}p=p-1>=0?p-1:0}}if(!(r>W()&&r<Q()||r<W()&&L===0||r>W()&&L===1)){if(r<W()){if(y+1>=f.length){P+=E()?B.movementY:B.movementX;return}y=y+1<f.length?y+1:f.length-1}else if(r>Q()){if(y+1>=f.length){P+=E()?B.movementY:B.movementX;return}y=y+1<f.length?y+1:f.length-1}}if(L===0&&P>0||L===1&&P<0||L===0&&r>Q()||L===1&&r<W()||L===0&&c<k()||L===1&&c>Z())return;const U=t[E()?"clientHeight":"clientWidth"],_=M(p)+se;f[p]=`clamp(${k()}px, ${_/U*100}%, ${Z()}px)`,f[y]="1fr",e.requestUpdate(),queueMicrotask(()=>{const G=M(y);f[y]=`clamp(${W()}px, ${G/U*100}%, ${Q()}px)`,e.requestUpdate()})},ae=()=>{u=-1,p=-1,y=-1,i=!1,P=0,document.removeEventListener("mousemove",re),document.removeEventListener("mouseup",ae),e.requestUpdate()},j=B=>{B.preventDefault(),i=!0,E()?B.clientY:B.clientX,document.addEventListener("mousemove",re),document.addEventListener("mouseup",ae),e.requestUpdate()},$=(B,se)=>{u=se,p=se,y=se+1,P=0,j(B)};let I=null;const Y=()=>{t&&o&&(o.style.width=`${t.clientWidth}px`,o.style.height=`${t.clientHeight}px`)};e.onCleanup(()=>{document.removeEventListener("mouseup",ae),document.removeEventListener("mousemove",re),I==null||I.disconnect()});let ne=e.props.panes;return{onMounted:()=>{h(),e.requestUpdate()},render(){const B=g();e.props.panes!==ne&&(ne=e.props.panes,queueMicrotask(()=>{h(),e.requestUpdate()}));const se=E()?"gridTemplateRows":"gridTemplateColumns",N=B.length-1,X=ye(e.props,Ii);return s.html`
1598
+ </div>`:n.nothing}
1599
+ </div>`}}}}),Ta={name:"MozTreeSelect",core:us,booleanProps:["disabled","readonly","required","useFilter","useMultiSelect","useSelectAll","useSpecificSelect"],props:["itemsSource","label","width","required","readonly","disabled","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","treeLevels","useMultiSelect","treeProps","modelValue"],emits:["change","close","update:modelValue"],slots:["icon","list-item","empty"],expose:!0},Aa=new Set(["panes","direction","resizable","minSize","class","style"]),cn=(e,t)=>e===void 0?t:typeof e=="number"?`${e}px`:e,ps=ye({name:"moz-split-pane",defaults:{horizontal:!1,panes:[]},setup(e){let t=null,o=null;const s=[],l=[],i=[],r=[];let p=[],d=!1,b=0,c=0,m=-1,u=-1,k=-1,x=null,S=null,L=0;const M=()=>!!e.props.horizontal,f=()=>e.props.panes??[],a=()=>{p=f().map(N=>N.hidden?"0":N.size!=null?String(N.size):"1fr")};a();const h=N=>M()?N.clientHeight:N.clientWidth,$=()=>h(i[u]),_=()=>h(r[u]),O=()=>h(i[k]),U=()=>h(r[k]),Q=N=>{if(!d)return;let ie=M()?N.movementY:N.movementX;x=+(ie>0),x!==S&&S!==null&&(u=m,k=m+1),S=x;const F=l[m].getBoundingClientRect(),oe=M()?N.clientY-F.top+window.scrollY:N.clientX-F.left+window.scrollX;(x===0&&oe>10||x===1&&oe<-10)&&(ie=ie/(Math.abs(oe)/10)),(x===0&&M()?N.clientY<F.top:N.clientX<F.left)&&(L=0),(x===1&&M()?N.clientY>F.top:N.clientX>F.left)&&(L=0);const T=ee=>s[ee][M()?"clientHeight":"clientWidth"];if(b=T(u)+ie,c=T(k)+T(u)-b,!(b>$()&&b<_()||b<$()&&x===1||b>$()&&x===0)){if(b<$()){if(u-1<0&&x===0){L+=M()?N.movementY:N.movementX;return}u=u-1>=0?u-1:0}else if(b>_()){if(u-1<0){L+=M()?N.movementY:N.movementX;return}u=u-1>=0?u-1:0}}if(!(c>O()&&c<U()||c<O()&&x===0||c>O()&&x===1)){if(c<O()){if(k+1>=p.length){L+=M()?N.movementY:N.movementX;return}k=k+1<p.length?k+1:p.length-1}else if(c>U()){if(k+1>=p.length){L+=M()?N.movementY:N.movementX;return}k=k+1<p.length?k+1:p.length-1}}if(x===0&&L>0||x===1&&L<0||x===0&&c>U()||x===1&&c<O()||x===0&&b<$()||x===1&&b>_())return;const W=t[M()?"clientHeight":"clientWidth"],K=T(u)+ie;p[u]=`clamp(${$()}px, ${K/W*100}%, ${_()}px)`,p[k]="1fr",e.requestUpdate(),queueMicrotask(()=>{const ee=T(k);p[k]=`clamp(${O()}px, ${ee/W*100}%, ${U()}px)`,e.requestUpdate()})},re=()=>{m=-1,u=-1,k=-1,d=!1,L=0,document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",re),e.requestUpdate()},X=N=>{N.preventDefault(),d=!0,M()?N.clientY:N.clientX,document.addEventListener("mousemove",Q),document.addEventListener("mouseup",re),e.requestUpdate()},E=(N,ie)=>{m=ie,u=ie,k=ie+1,L=0,X(N)};let V=null;const J=()=>{t&&o&&(o.style.width=`${t.clientWidth}px`,o.style.height=`${t.clientHeight}px`)};e.onCleanup(()=>{document.removeEventListener("mouseup",re),document.removeEventListener("mousemove",Q),V==null||V.disconnect()});let le=e.props.panes;return{onMounted:()=>{a(),e.requestUpdate()},render(){const N=f();e.props.panes!==le&&(le=e.props.panes,queueMicrotask(()=>{a(),e.requestUpdate()}));const ie=M()?"gridTemplateRows":"gridTemplateColumns",F=N.length-1,oe=ge(e.props,Aa);return n.html`
1548
1600
  <div
1549
- ${he(X)}
1550
- class=${V("splitter",e.props.class)}
1551
- style=${ee.styleMap({display:"grid",[se]:f.join(" "),width:"100%",height:"100%",overflow:"hidden",cursor:i?E()?"row-resize":"col-resize":"unset"})}
1552
- ${K.ref(M=>{t=M??null,t&&o&&(Y(),!I&&typeof ResizeObserver<"u"&&(I=new ResizeObserver(()=>Y()),I.observe(t)))})}
1601
+ ${ce(oe)}
1602
+ class=${A("splitter",e.props.class)}
1603
+ style=${j.styleMap({display:"grid",[ie]:p.join(" "),width:"100%",height:"100%",overflow:"hidden",cursor:d?M()?"row-resize":"col-resize":"unset"})}
1604
+ ${Y.ref(T=>{t=T??null,t&&o&&(J(),!V&&typeof ResizeObserver<"u"&&(V=new ResizeObserver(()=>J()),V.observe(t)))})}
1553
1605
  >
1554
- ${B.map((M,U)=>{const _=U===N?"100%":f[U+1]!=="0"?"calc(100% - 10px) 10px":"100%";return s.html`<div
1555
- style=${ee.styleMap({display:"grid",[se]:_,overflow:"hidden"})}
1556
- ${K.ref(G=>{n[U]=G??null})}
1606
+ ${N.map((T,W)=>{const K=W===F?"100%":p[W+1]!=="0"?"calc(100% - 10px) 10px":"100%";return n.html`<div
1607
+ style=${j.styleMap({display:"grid",[ie]:K,overflow:"hidden"})}
1608
+ ${Y.ref(ee=>{s[W]=ee??null})}
1557
1609
  >
1558
- <div style="width: 100%; height: 100%; overflow: hidden">${e.slot(`pane-${U}`)}</div>
1559
- ${U!==N&&f[U+1]!=="0"?s.html`<div
1560
- class=${E()?"resizer resizer-horizontal":"resizer resizer-vertical"}
1610
+ <div style="width: 100%; height: 100%; overflow: hidden">${e.slot(`pane-${W}`)}</div>
1611
+ ${W!==F&&p[W+1]!=="0"?n.html`<div
1612
+ class=${M()?"resizer resizer-horizontal":"resizer resizer-vertical"}
1561
1613
  role="separator"
1562
- aria-orientation=${E()?"horizontal":"vertical"}
1614
+ aria-orientation=${M()?"horizontal":"vertical"}
1563
1615
  aria-label=${e.locale.SplitPane.resizeHandle}
1564
1616
  tabindex="0"
1565
- @mousedown=${G=>$(G,U)}
1566
- ${K.ref(G=>{l[U]=G??null})}
1567
- ></div>`:s.nothing}
1617
+ @mousedown=${ee=>E(ee,W)}
1618
+ ${Y.ref(ee=>{l[W]=ee??null})}
1619
+ ></div>`:n.nothing}
1568
1620
  </div>`})}
1569
1621
 
1570
1622
  <div
1571
1623
  style="pointer-events: none; position: fixed"
1572
- ${K.ref(M=>{o=M??null,t&&o&&Y()})}
1624
+ ${Y.ref(T=>{o=T??null,t&&o&&J()})}
1573
1625
  >
1574
- ${B.map((M,U)=>{const _=Ro(M.minSize,"10px"),G=Ro(M.maxSize,"100%");return s.html`<div
1626
+ ${N.map((T,W)=>{const K=cn(T.minSize,"10px"),ee=cn(T.maxSize,"100%");return n.html`<div
1575
1627
  class="size-calculator min-size"
1576
- style=${ee.styleMap({width:_,height:_})}
1577
- ${K.ref(J=>{d[U]=J??null})}
1628
+ style=${j.styleMap({width:K,height:K})}
1629
+ ${Y.ref(te=>{i[W]=te??null})}
1578
1630
  ></div>
1579
1631
  <div
1580
1632
  class="size-calculator max-size"
1581
- style=${ee.styleMap({width:G,height:G})}
1582
- ${K.ref(J=>{a[U]=J??null})}
1633
+ style=${j.styleMap({width:ee,height:ee})}
1634
+ ${Y.ref(te=>{r[W]=te??null})}
1583
1635
  ></div>`})}
1584
1636
  </div>
1585
1637
  </div>
1586
- `}}}}),Vi={name:"MozSplitPane",core:Bs,booleanProps:["horizontal"],props:["horizontal","panes"],emits:[],slots:["pane-0","pane-1","pane-2","pane-3","pane-4","pane-5","pane-6","pane-7"],expose:!1};function Ri(e="currentColor",t=14){return s.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
1638
+ `}}}}),Ia={name:"MozSplitPane",core:ps,booleanProps:["horizontal"],props:["horizontal","panes"],emits:[],slots:["pane-0","pane-1","pane-2","pane-3","pane-4","pane-5","pane-6","pane-7"],expose:!1};function Ra(e="currentColor",t=14){return n.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
1587
1639
  <path
1588
1640
  d="M12.25 12.25V3.8436L10.163 1.75H1.75V12.25H12.25ZM12.4448 14H1.55615C0.7002 14 0 13.3001 0 12.4446V1.55617C0 0.70013 0.69238 0 1.55615 0H10.2432C10.6558 0 11.0522 0.16353 11.3481 0.46009L13.5415 2.66039C13.8364 2.94828 14 3.34501 14 3.75673V12.4446C14 13.3001 13.3003 14 12.4448 14Z"
1589
1641
  fill=${e}
@@ -1598,7 +1650,7 @@
1598
1650
  d="M4.75 9.75V12.25H9.25V9.75H4.75ZM3.29289 8.29289C3.48043 8.10536 3.73478 8 4 8H10C10.2652 8 10.5196 8.10536 10.7071 8.29289C10.8946 8.48043 11 8.73479 11 9V14H3V9C3 8.73478 3.10536 8.48043 3.29289 8.29289Z"
1599
1651
  fill=${e}
1600
1652
  ></path>
1601
- </svg>`}function Oi(e="currentColor",t=14){return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
1653
+ </svg>`}function Da(e="currentColor",t=14){return n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
1602
1654
  <g clip-path="url(#clip0_16945_2363)">
1603
1655
  <path
1604
1656
  d="M10.8 5.2998H3.2C2.8134 5.2998 2.5 5.61321 2.5 5.9998V12.3998C2.5 12.7864 2.8134 13.0998 3.2 13.0998H10.8C11.1866 13.0998 11.5 12.7864 11.5 12.3998V5.9998C11.5 5.61321 11.1866 5.2998 10.8 5.2998Z"
@@ -1614,7 +1666,7 @@
1614
1666
  <defs>
1615
1667
  <clipPath id="clip0_16945_2363"><rect width="14" height="14" fill=${e}></rect></clipPath>
1616
1668
  </defs>
1617
- </svg>`}function qi(e="currentColor",t=14){return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14">
1669
+ </svg>`}function Va(e="currentColor",t=14){return n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14">
1618
1670
  <path d="M0,0H14V14H0Z" fill="none"></path>
1619
1671
  <line
1620
1672
  y2="10"
@@ -1632,54 +1684,54 @@
1632
1684
  stroke-linecap="round"
1633
1685
  stroke-width="1.8"
1634
1686
  ></line>
1635
- </svg>`}function Bi(e="currentColor",t=14){return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
1687
+ </svg>`}function Oa(e="currentColor",t=14){return n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
1636
1688
  <path
1637
1689
  d="M5.84944 0.402344C2.83893 0.402344 0.398438 2.84284 0.398438 5.85334C0.398438 8.86385 2.83893 11.3043 5.84944 11.3043C7.0308 11.3043 8.12438 10.9285 9.01716 10.29L12.0619 13.3347C12.4134 13.6862 12.9832 13.6862 13.3347 13.3347C13.6862 12.9832 13.6862 12.4134 13.3347 12.0619L10.2893 9.01651C10.9259 8.12457 11.3004 7.03269 11.3004 5.85334C11.3004 2.84284 8.85994 0.402344 5.84944 0.402344ZM2.19844 5.85334C2.19844 3.83695 3.83305 2.20234 5.84944 2.20234C7.86583 2.20234 9.50044 3.83695 9.50044 5.85334C9.50044 7.86974 7.86583 9.50434 5.84944 9.50434C3.83305 9.50434 2.19844 7.86974 2.19844 5.85334Z"
1638
1690
  fill=${e}
1639
1691
  ></path>
1640
- </svg>`}function Fi(e="currentColor",t=14){return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
1692
+ </svg>`}function _a(e="currentColor",t=14){return n.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
1641
1693
  <path
1642
1694
  d="M12.7988 6.23621C12.6596 5.99307 12.4571 5.79178 12.2126 5.65358L4.31964 1.20161C4.08323 1.06797 3.81572 0.998459 3.54385 1.00003C3.27199 1.00159 3.00531 1.07419 2.77047 1.21055C2.53563 1.3469 2.34088 1.54224 2.20567 1.77703C2.07046 2.01181 1.99953 2.27781 2 2.54843V11.4524C1.99975 11.7229 2.07082 11.9888 2.20609 12.2234C2.34136 12.4581 2.53611 12.6533 2.77089 12.7895C3.00567 12.9258 3.27225 12.9984 3.54402 13C3.81579 13.0016 4.08324 12.9322 4.31964 12.7987L12.2117 8.3472C12.5703 8.14432 12.8334 7.80821 12.9435 7.4125C13.0536 7.0168 13.0015 6.59379 12.7988 6.23621Z"
1643
1695
  fill=${e}
1644
1696
  ></path>
1645
- </svg>`}const Ni=new Set(["navigations","containerStyle","headerStyle","class","style"]);function Hi(e){switch(e.action){case"Add":return"IconPlus";case"Remove":return"IconTrash";case"Save":return"IconSave";case"Search":return"IconSearch";case"Run":return"IconPlay";default:return e.icon??null}}function _i(e){switch(e){case"IconSave":return Ri();case"IconTrash":return Oi();case"IconPlus":return qi();case"IconSearch":return Bi();case"IconPlay":return Fi();default:return s.html``}}const Fs=$e({name:"moz-controller",defaults:{height:66,showFilterButton:!1,showFavorite:!0,showPreset:!0},setup(e){var r,u;(u=(r=e.props).setControlHeight)==null||u.call(r,e.props.height??66);let t=!!e.props.showFilterButton,o=!1;const n=()=>e.controlled("customQueryParamsPanel")?!!e.props.customQueryParamsPanel:o;let l=null,d=!1;const a=ot("switch_"),f=ot("switch_"),i=p=>{t=p.target.checked,e.requestUpdate()},c=p=>{const y=p.target.checked;o=y,e.emit("update:customQueryParamsPanel",y),e.requestUpdate()};return{onMounted(){l=document.querySelector(".moz-contents-container"),d=!!l,d&&e.requestUpdate()},getPortalContainer:()=>l,renderPortal(){return!d||!e.slots.has("custom-filter")?s.nothing:s.html`<div style=${ee.styleMap({display:n()?void 0:"none"})}>
1697
+ </svg>`}const Ba=new Set(["navigations","containerStyle","headerStyle","class","style"]);function qa(e){switch(e.action){case"Add":return"IconPlus";case"Remove":return"IconTrash";case"Save":return"IconSave";case"Search":return"IconSearch";case"Run":return"IconPlay";default:return e.icon??null}}function Fa(e){switch(e){case"IconSave":return Ra();case"IconTrash":return Da();case"IconPlus":return Va();case"IconSearch":return Oa();case"IconPlay":return _a();default:return n.html``}}const hs=ye({name:"moz-controller",defaults:{height:66,showFilterButton:!1,showFavorite:!0,showPreset:!0},setup(e){var c,m;(m=(c=e.props).setControlHeight)==null||m.call(c,e.props.height??66);let t=!!e.props.showFilterButton,o=!1;const s=()=>e.controlled("customQueryParamsPanel")?!!e.props.customQueryParamsPanel:o;let l=null,i=!1;const r=Qe("switch_"),p=Qe("switch_"),d=u=>{t=u.target.checked,e.requestUpdate()},b=u=>{const k=u.target.checked;o=k,e.emit("update:customQueryParamsPanel",k),e.requestUpdate()};return{onMounted(){l=document.querySelector(".moz-contents-container"),i=!!l,i&&e.requestUpdate()},getPortalContainer:()=>l,renderPortal(){return!i||!e.slots.has("custom-filter")?n.nothing:n.html`<div style=${j.styleMap({display:s()?void 0:"none"})}>
1646
1698
  ${e.slot("custom-filter")}
1647
- </div>`},render(){const p=e.props,y=e.slots.has("custom-filter"),L=e.slots.has("action"),D=p.actions??[],P=D.find(h=>h.loading===!0),E=D.map(h=>{const C=Hi(h),k=!!P&&h.action!==P.action||!!h.disabled;return{...h,icon:C,disabled:k}}),g=ye(p,Ni);return s.html`
1699
+ </div>`},render(){const u=e.props,k=e.slots.has("custom-filter"),x=e.slots.has("action"),S=u.actions??[],L=S.find(a=>a.loading===!0),M=S.map(a=>{const h=qa(a),$=!!L&&a.action!==L.action||!!a.disabled;return{...a,icon:h,disabled:$}}),f=ge(u,Ba);return n.html`
1648
1700
  <div
1649
- class=${V("moz-controller-root",p.class)}
1650
- style=${ee.styleMap(be(p.containerStyle))}
1651
- ${he(g)}
1701
+ class=${A("moz-controller-root",u.class)}
1702
+ style=${j.styleMap(he(u.containerStyle))}
1703
+ ${ce(f)}
1652
1704
  >
1653
- <div class="moz-controller" style=${ee.styleMap(be(p.headerStyle))}>
1654
- ${p.navigations?bo({itemSource:p.navigations,showFavorite:!1,ariaLabel:e.locale.BreadCrumb.navigation}):s.nothing}
1705
+ <div class="moz-controller" style=${j.styleMap(he(u.headerStyle))}>
1706
+ ${u.navigations?Po({itemSource:u.navigations,showFavorite:!1,ariaLabel:e.locale.BreadCrumb.navigation}):n.nothing}
1655
1707
  <div class="spacer"></div>
1656
1708
 
1657
1709
  <div class="moz-controller-actions">
1658
1710
  ${e.slot("beforeFilter")}
1659
- ${p.showFilterButton&&!y?_t({id:a,model:t,label:e.locale.Controller.filterLabel,onChange:i}):s.nothing}
1660
- ${p.showFilterButton&&y?_t({id:f,model:n(),label:e.locale.Controller.filterLabel,onChange:c}):s.nothing}
1661
- ${p.showFilterButton?s.html`<div class="spacer between-buttons" style="margin: 0 6px"></div>`:s.nothing}
1711
+ ${u.showFilterButton&&!k?Xt({id:r,model:t,label:e.locale.Controller.filterLabel,onChange:d}):n.nothing}
1712
+ ${u.showFilterButton&&k?Xt({id:p,model:s(),label:e.locale.Controller.filterLabel,onChange:b}):n.nothing}
1713
+ ${u.showFilterButton?n.html`<div class="spacer between-buttons" style="margin: 0 6px"></div>`:n.nothing}
1662
1714
  ${e.slot("action")}
1663
- ${L&&E.length>0?s.html`<div class="spacer between-buttons"></div>`:s.nothing}
1664
- ${E.map(h=>kt({action:h.action,text:h.text,disabled:h.disabled,loading:h.loading,width:h.text?void 0:30,style:{padding:h.text?void 0:"0"}},{icon:_i(h.icon),onClick:()=>{h.click&&h.click()},rest:{title:h.action}}))}
1715
+ ${x&&M.length>0?n.html`<div class="spacer between-buttons"></div>`:n.nothing}
1716
+ ${M.map(a=>Ct({action:a.action,text:a.text,disabled:a.disabled,loading:a.loading,width:a.text?void 0:30,style:{padding:a.text?void 0:"0"}},{icon:Fa(a.icon),onClick:()=>{a.click&&a.click()},rest:{title:a.action}}))}
1665
1717
  </div>
1666
1718
  </div>
1667
1719
 
1668
- ${t&&!y?s.html`<div
1720
+ ${t&&!k?n.html`<div
1669
1721
  class="moz-horizontal-filter moz-controller-filter"
1670
- style=${ee.styleMap(be(p.filterStyle))}
1722
+ style=${j.styleMap(he(u.filterStyle))}
1671
1723
  >
1672
1724
  ${e.slot("filter")}
1673
- </div>`:s.nothing}
1725
+ </div>`:n.nothing}
1674
1726
  </div>
1675
- `}}}}),Ui={name:"MozController",core:Fs,booleanProps:["customQueryParamsPanel","showFavorite","showFilterButton","showPreset"],props:["height","setControlHeight","showFilterButton","actions","containerStyle","headerStyle","filterStyle","showFavorite","showPreset","navigations","customQueryParamsPanel"],emits:["update:customQueryParamsPanel"],slots:["beforeFilter","action","filter","custom-filter"],expose:!1};class Eo{constructor(t,o){Re(this,"startedAt");Re(this,"callback");Re(this,"delay");Re(this,"timer");Re(this,"paused",!1);this.startedAt=Date.now(),this.callback=t,this.delay=o,this.timer=setTimeout(t,o)}pause(){this.stop(),this.delay-=Date.now()-this.startedAt,this.paused=!0}resume(){this.stop(),this.startedAt=Date.now(),this.paused=!1,this.timer=setTimeout(this.callback,this.delay)}remaining(){return this.paused?Math.max(0,this.delay):Math.max(0,this.delay-(Date.now()-this.startedAt))}stop(){clearTimeout(this.timer)}}function Wi(e="var(--moz-color-on-accent)"){return s.html`<svg width="24" height="24" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
1727
+ `}}}}),Na={name:"MozController",core:hs,booleanProps:["customQueryParamsPanel","showFavorite","showFilterButton","showPreset"],props:["height","setControlHeight","showFilterButton","actions","containerStyle","headerStyle","filterStyle","showFavorite","showPreset","navigations","customQueryParamsPanel"],emits:["update:customQueryParamsPanel"],slots:["beforeFilter","action","filter","custom-filter"],expose:!1};class _o{constructor(t,o){Ve(this,"startedAt");Ve(this,"callback");Ve(this,"delay");Ve(this,"timer");Ve(this,"paused",!1);this.startedAt=Date.now(),this.callback=t,this.delay=o,this.timer=setTimeout(t,o)}pause(){this.stop(),this.delay-=Date.now()-this.startedAt,this.paused=!0}resume(){this.stop(),this.startedAt=Date.now(),this.paused=!1,this.timer=setTimeout(this.callback,this.delay)}remaining(){return this.paused?Math.max(0,this.delay):Math.max(0,this.delay-(Date.now()-this.startedAt))}stop(){clearTimeout(this.timer)}}function Ha(e="var(--moz-color-on-accent)"){return n.html`<svg width="24" height="24" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
1676
1728
  <path
1677
1729
  fill-rule="evenodd"
1678
1730
  clip-rule="evenodd"
1679
1731
  d="M15 30C23.2843 30 30 23.2843 30 15C30 6.71573 23.2843 0 15 0C6.71573 0 0 6.71573 0 15C0 23.2843 6.71573 30 15 30ZM12.8944 17.9373L10.6229 15.6658C10.1352 15.1781 9.35358 15.1781 8.86582 15.6658C8.37806 16.1536 8.37806 16.9352 8.86582 17.4229L12.0083 20.5654C12.496 21.0531 13.285 21.0532 13.7728 20.5656L21.7228 12.6231C22.2105 12.1353 22.2107 11.3536 21.7229 10.8658C21.2352 10.3781 20.4536 10.3781 19.9658 10.8658L12.8944 17.9373Z"
1680
1732
  fill=${e}
1681
1733
  ></path>
1682
- </svg>`}function Ki(e="var(--moz-color-on-accent)"){return s.html`<svg width="24" height="24" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
1734
+ </svg>`}function Ua(e="var(--moz-color-on-accent)"){return n.html`<svg width="24" height="24" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
1683
1735
  <mask id="mask0_6027_4458" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
1684
1736
  <path d="M30 0H0V30H30V0Z" fill="#FFF"></path>
1685
1737
  </mask>
@@ -1689,14 +1741,14 @@
1689
1741
  fill=${e}
1690
1742
  ></path>
1691
1743
  </g>
1692
- </svg>`}function Gi(e="var(--moz-color-on-accent)"){return s.html`<svg width="24" height="24" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
1744
+ </svg>`}function Wa(e="var(--moz-color-on-accent)"){return n.html`<svg width="24" height="24" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
1693
1745
  <path
1694
1746
  fill-rule="evenodd"
1695
1747
  clip-rule="evenodd"
1696
1748
  d="M30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0C23.2843 0 30 6.71573 30 15ZM14 7.6C14 7.26863 14.2686 7 14.6 7H16.4C16.7314 7 17 7.26863 17 7.6V17.4C17 17.7314 16.7314 18 16.4 18H14.6C14.2686 18 14 17.7314 14 17.4V7.6ZM14.6 20C14.2686 20 14 20.2686 14 20.6V22.4C14 22.7314 14.2686 23 14.6 23H16.4C16.7314 23 17 22.7314 17 22.4V20.6C17 20.2686 16.7314 20 16.4 20H14.6Z"
1697
1749
  fill=${e}
1698
1750
  ></path>
1699
- </svg>`}function Zi(e="var(--moz-color-on-accent)"){return s.html`<svg width="24" height="24" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
1751
+ </svg>`}function Ka(e="var(--moz-color-on-accent)"){return n.html`<svg width="24" height="24" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
1700
1752
  <mask id="mask0_6027_4463" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
1701
1753
  <path d="M30 0H0V30H30V0Z" fill="#FFF"></path>
1702
1754
  </mask>
@@ -1706,173 +1758,153 @@
1706
1758
  fill=${e}
1707
1759
  ></path>
1708
1760
  </g>
1709
- </svg>`}const Yi=()=>s.html`
1761
+ </svg>`}const Za=()=>n.html`
1710
1762
  <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
1711
1763
  <path d="M18 6 6 18M6 6l12 12" />
1712
1764
  </svg>
1713
- `,Oo=new Set(["message","type","position","duration","dismissible","queue","pauseOnHover","onDismiss","class","style","inline","composed","showProgress","progressClass","exitDuration"]);function qo(e){switch(e){case"success":return"bg-success";case"error":return"bg-error";case"info":return"bg-info";default:return"bg-warning"}}function ji(e){switch(e){case"top":case"bottom":return"position-center";case"top-right":case"bottom-right":return"position-end";case"top-left":case"bottom-left":default:return"position-start"}}function Xi(e){switch(e){case"top":case"top-right":case"top-left":return".toast--top";case"bottom":case"bottom-right":case"bottom-left":default:return".toast--bottom"}}function Qi(e){return e==="error"?Ki("var(--moz-color-on-accent)"):e==="info"?Gi("var(--moz-color-on-accent)"):e==="success"?Wi("var(--moz-color-on-accent)"):Zi("var(--moz-color-on-accent)")}const Po=$e({name:"moz-toast",defaults:{type:"warning",position:"bottom",duration:3e3,dismissible:!0,queue:!1,pauseOnHover:!0,inline:!1,composed:!1,showProgress:!1,exitDuration:150},setup(e){let t=!1,o=!1,n=null,l=null,d=null,a=100;const f=()=>{let E=document.querySelector(".toast--top"),g=document.querySelector(".toast--bottom");E&&g||(E||(E=document.createElement("div"),E.className="toast--top moz-toast-body moz-toast-body--top",document.body.appendChild(E)),g||(g=document.createElement("div"),g.className="toast--bottom moz-toast-body moz-toast-body--bottom",document.body.appendChild(g)))},i=()=>{if(!e.props.queue)return!1;const E=document.querySelector(".toast--top"),g=document.querySelector(".toast--bottom");return!E||!g?!1:E.childElementCount>0||g.childElementCount>0},c=()=>{d&&clearInterval(d),d=null},r=()=>{n&&n.stop(),l&&clearTimeout(l),c(),t=!1,e.requestUpdate(),setTimeout(()=>{var E,g;(g=(E=e.props).onDismiss)==null||g.call(E),o=!0,e.requestUpdate()},e.props.exitDuration??150)},u=()=>{if(!e.props.inline&&i()){l=setTimeout(u,250);return}t=!0,e.requestUpdate();const E=e.props.duration;E&&(n=new Eo(r,E),e.props.showProgress&&(d=setInterval(()=>{a=n?Math.max(0,Math.min(100,n.remaining()/E*100)):0,e.requestUpdate()},50)))},p=E=>{!e.props.pauseOnHover||!n||(E?n.pause():n.resume())},y=()=>{e.props.dismissible&&r()};e.props.inline||f(),e.onCleanup(()=>{n&&n.stop(),l&&clearTimeout(l),c()});const L=()=>{const E=e.props,g=E.duration??0;return s.html`
1765
+ `,dn=new Set(["message","type","position","duration","dismissible","queue","pauseOnHover","onDismiss","class","style","inline","composed","showProgress","progressClass","exitDuration"]);function un(e){switch(e){case"success":return"bg-success";case"error":return"bg-error";case"info":return"bg-info";default:return"bg-warning"}}function Ga(e){switch(e){case"top":case"bottom":return"position-center";case"top-right":case"bottom-right":return"position-end";case"top-left":case"bottom-left":default:return"position-start"}}function Ya(e){switch(e){case"top":case"top-right":case"top-left":return".toast--top";case"bottom":case"bottom-right":case"bottom-left":default:return".toast--bottom"}}function ja(e){return e==="error"?Ua("var(--moz-color-on-accent)"):e==="info"?Wa("var(--moz-color-on-accent)"):e==="success"?Ha("var(--moz-color-on-accent)"):Ka("var(--moz-color-on-accent)")}const Bo=ye({name:"moz-toast",defaults:{type:"warning",position:"bottom",duration:3e3,dismissible:!0,queue:!1,pauseOnHover:!0,inline:!1,composed:!1,showProgress:!1,exitDuration:150},setup(e){let t=!1,o=!1,s=null,l=null,i=null,r=100;const p=()=>{let M=document.querySelector(".toast--top"),f=document.querySelector(".toast--bottom");M&&f||(M||(M=document.createElement("div"),M.className="toast--top moz-toast-body moz-toast-body--top",document.body.appendChild(M)),f||(f=document.createElement("div"),f.className="toast--bottom moz-toast-body moz-toast-body--bottom",document.body.appendChild(f)))},d=()=>{if(!e.props.queue)return!1;const M=document.querySelector(".toast--top"),f=document.querySelector(".toast--bottom");return!M||!f?!1:M.childElementCount>0||f.childElementCount>0},b=()=>{i&&clearInterval(i),i=null},c=()=>{s&&s.stop(),l&&clearTimeout(l),b(),t=!1,e.requestUpdate(),setTimeout(()=>{var M,f;(f=(M=e.props).onDismiss)==null||f.call(M),o=!0,e.requestUpdate()},e.props.exitDuration??150)},m=()=>{if(!e.props.inline&&d()){l=setTimeout(m,250);return}t=!0,e.requestUpdate();const M=e.props.duration;M&&(s=new _o(c,M),e.props.showProgress&&(i=setInterval(()=>{r=s?Math.max(0,Math.min(100,s.remaining()/M*100)):0,e.requestUpdate()},50)))},u=M=>{!e.props.pauseOnHover||!s||(M?s.pause():s.resume())},k=()=>{e.props.dismissible&&c()};e.props.inline||p(),e.onCleanup(()=>{s&&s.stop(),l&&clearTimeout(l),b()});const x=()=>{const M=e.props,f=M.duration??0;return n.html`
1714
1766
  <div
1715
1767
  data-testid="toast-container"
1716
- ${he(ye(E,Oo))}
1717
- role=${E.type==="error"?"alert":"status"}
1718
- aria-live=${E.type==="error"?"assertive":"polite"}
1768
+ ${ce(ge(M,dn))}
1769
+ role=${M.type==="error"?"alert":"status"}
1770
+ aria-live=${M.type==="error"?"assertive":"polite"}
1719
1771
  aria-atomic="true"
1720
- class=${V("moz-toast","moz-toast-composed",qo(E.type),E.class)}
1721
- style=${t?s.nothing:"display: none;"}
1722
- @mouseenter=${()=>p(!0)}
1723
- @mouseleave=${()=>p(!1)}
1772
+ class=${A("moz-toast","moz-toast-composed",un(M.type),M.class)}
1773
+ style=${t?n.nothing:"display: none;"}
1774
+ @mouseenter=${()=>u(!0)}
1775
+ @mouseleave=${()=>u(!1)}
1724
1776
  >
1725
- ${E.showProgress&&g>0?s.html`<div class="moz-toast-progress" aria-hidden="true">
1726
- <div class=${V("moz-toast-progress-bar",E.progressClass)} style=${`width: ${a}%`}></div>
1727
- </div>`:s.nothing}
1728
- ${e.slots.has("icon")?s.html`<div class="moz-toast-icon">${e.slot("icon")}</div>`:s.nothing}
1777
+ ${M.showProgress&&f>0?n.html`<div class="moz-toast-progress" aria-hidden="true">
1778
+ <div class=${A("moz-toast-progress-bar",M.progressClass)} style=${`width: ${r}%`}></div>
1779
+ </div>`:n.nothing}
1780
+ ${e.slots.has("icon")?n.html`<div class="moz-toast-icon">${e.slot("icon")}</div>`:n.nothing}
1729
1781
  <div class="moz-toast-content">
1730
- ${e.slots.has("heading")?s.html`<div class="moz-toast-heading">${e.slot("heading")}</div>`:s.nothing}
1731
- ${e.slots.has("description")?s.html`<div class="moz-toast-description">${e.slot("description")}</div>`:s.nothing}
1732
- ${e.slots.has("actions")?s.html`<div class="moz-toast-actions">${e.slot("actions")}</div>`:s.nothing}
1782
+ ${e.slots.has("heading")?n.html`<div class="moz-toast-heading">${e.slot("heading")}</div>`:n.nothing}
1783
+ ${e.slots.has("description")?n.html`<div class="moz-toast-description">${e.slot("description")}</div>`:n.nothing}
1784
+ ${e.slots.has("actions")?n.html`<div class="moz-toast-actions">${e.slot("actions")}</div>`:n.nothing}
1733
1785
  </div>
1734
- ${E.dismissible?s.html`<button type="button" class="moz-toast-close" aria-label=${e.locale.Toast.close} @click=${r}>
1735
- ${Yi()}
1736
- </button>`:s.nothing}
1786
+ ${M.dismissible?n.html`<button type="button" class="moz-toast-close" aria-label=${e.locale.Toast.close} @click=${c}>
1787
+ ${Za()}
1788
+ </button>`:n.nothing}
1737
1789
  </div>
1738
- `},D=()=>{const E=e.props;return s.html`
1790
+ `},S=()=>{const M=e.props;return n.html`
1739
1791
  <div
1740
1792
  data-testid="toast-container"
1741
- ${he(ye(E,Oo))}
1742
- role=${E.type==="error"?"alert":"status"}
1743
- aria-live=${E.type==="error"?"assertive":"polite"}
1793
+ ${ce(ge(M,dn))}
1794
+ role=${M.type==="error"?"alert":"status"}
1795
+ aria-live=${M.type==="error"?"assertive":"polite"}
1744
1796
  aria-atomic="true"
1745
- class=${V("moz-toast",qo(E.type),ji(E.position),E.class)}
1746
- style=${t?s.nothing:"display: none;"}
1747
- @mouseenter=${()=>p(!0)}
1748
- @mouseleave=${()=>p(!1)}
1749
- @click=${y}
1797
+ class=${A("moz-toast",un(M.type),Ga(M.position),M.class)}
1798
+ style=${t?n.nothing:"display: none;"}
1799
+ @mouseenter=${()=>u(!0)}
1800
+ @mouseleave=${()=>u(!1)}
1801
+ @click=${k}
1750
1802
  >
1751
- ${E.showProgress&&(E.duration??0)>0?s.html`<div class="moz-toast-progress" aria-hidden="true">
1752
- <div class=${V("moz-toast-progress-bar",E.progressClass)} style=${`width: ${a}%`}></div>
1753
- </div>`:s.nothing}
1754
- ${Qi(E.type)}
1755
- <span class="toast-message">${E.message}</span>
1803
+ ${M.showProgress&&(M.duration??0)>0?n.html`<div class="moz-toast-progress" aria-hidden="true">
1804
+ <div class=${A("moz-toast-progress-bar",M.progressClass)} style=${`width: ${r}%`}></div>
1805
+ </div>`:n.nothing}
1806
+ ${ja(M.type)}
1807
+ <span class="toast-message">${M.message}</span>
1756
1808
  </div>
1757
- `},P=()=>o?s.nothing:e.props.composed?L():D();return{onMounted(){u()},getPortalContainer:()=>e.props.inline?null:document.querySelector(Xi(e.props.position)),renderPortal(){return e.props.inline?s.nothing:P()},render(){return e.props.inline?P():s.nothing}}}}),Ji=e=>{var t;typeof e.remove<"u"?e.remove():(t=e.parentNode)==null||t.removeChild(e)},er=(e={})=>{const t=o=>{let n;typeof o=="string"&&(n=o);const l=document.createElement("div");l.style.display="contents";const d={message:n||o.message||"",onDismiss:()=>{Ji(l)}},a=Object.assign({},d,e,typeof o=="string"?{}:o);document.body.appendChild(l),Po(l,a,(()=>{}))};return{open:t,success(o,n={}){return t({message:o,type:"success",...n})},error(o,n={}){return t({message:o,type:"error",...n})},info(o,n={}){return t({message:o,type:"info",...n})},warning(o,n={}){return t({message:o,type:"warning",...n})}}},tr={name:"MozToast",core:Po,booleanProps:["composed","dismissible","inline","pauseOnHover","queue","showProgress"],props:["message","type","position","duration","dismissible","queue","pauseOnHover","onDismiss","inline","composed","showProgress","progressClass","exitDuration"],emits:[],slots:["icon","heading","description","actions"],expose:!1,syncUpdate:!0},Bo={top:"bottom",bottom:"top",left:"right",right:"left"};function Fo(e,t,o,n,l,d){const a=(e==="top"||e==="bottom"?o.height:o.width)+l+d;return{top:t.top,bottom:n.height-(t.top+t.height),left:t.left,right:n.width-(t.left+t.width)}[e]>=a}function Ot(e,t,o,n){return e==="start"?t:e==="end"?t+o-n:t+o/2-n/2}function eo(e,t,o){return o<t?t:Math.min(Math.max(e,t),o)}function Ns(e,t,o,n){const{align:l,sideOffset:d,collisionPadding:a}=n,f=n.arrowSize??0;let i=n.side;!Fo(i,e,t,o,d,a)&&Fo(Bo[i],e,t,o,d,a)&&(i=Bo[i]);const c=i==="top"||i==="bottom";let r,u;i==="top"?(u=e.top-t.height-d,r=Ot(l,e.left,e.width,t.width)):i==="bottom"?(u=e.top+e.height+d,r=Ot(l,e.left,e.width,t.width)):i==="left"?(r=e.left-t.width-d,u=Ot(l,e.top,e.height,t.height)):(r=e.left+e.width+d,u=Ot(l,e.top,e.height,t.height)),c?r=eo(r,a,o.width-t.width-a):u=eo(u,a,o.height-t.height-a);const p=c?e.left+e.width/2:e.top+e.height/2,y=c?r:u,L=c?t.width:t.height,D=eo(p-y,f*2,L-f*2),P={top:e.top-d-a,bottom:o.height-(e.top+e.height)-d-a,left:o.height-a*2,right:o.height-a*2},E=Math.max(0,P[i]);return{side:i,x:r,y:u,arrowOffset:D,availableHeight:E}}const Hs=Ns,or=new Set(["open","anchor","text","side","align","sideOffset","collisionPadding","arrow","tooltipId","class","style"]),sr=5,nr=typeof requestAnimationFrame=="function"?e=>{requestAnimationFrame(e)}:e=>{setTimeout(e,0)},_s=$e({name:"moz-tooltip",defaults:{open:!1,side:"top",align:"center",sideOffset:8,collisionPadding:8,arrow:!0},setup(e){const t=K.createRef();let o=null,n=null,l=!1;const d=()=>!!e.props.open&&!!e.props.anchor,a=()=>{const i=e.props.anchor,c=t.value;if(!i||!c||!e.props.open)return;const r=Hs(i.getBoundingClientRect(),{width:c.offsetWidth,height:c.offsetHeight},{width:window.innerWidth,height:window.innerHeight},{side:e.props.side??"top",align:e.props.align??"center",sideOffset:e.props.sideOffset??8,collisionPadding:e.props.collisionPadding??8,arrowSize:sr});o!==null&&l&&o.side===r.side&&o.x===r.x&&o.y===r.y&&o.arrowOffset===r.arrowOffset||(o=r,l=!0,e.requestUpdate(),n!==r.side&&(n=r.side,e.emit("placed",r.side)))},f=()=>{d()&&a()};return typeof window<"u"&&(window.addEventListener("scroll",f,{capture:!0,passive:!0}),window.addEventListener("resize",f,{passive:!0}),e.onCleanup(()=>{window.removeEventListener("scroll",f,!0),window.removeEventListener("resize",f)})),{render(){return s.nothing},renderPortal(){const i=e.props;if(!d())return o=null,n=null,l=!1,s.nothing;nr(a);const c=(o==null?void 0:o.side)??i.side??"top",r=ye(i,or),u=c==="top"||c==="bottom"?"left":"top";return s.html`
1809
+ `},L=()=>o?n.nothing:e.props.composed?x():S();return{onMounted(){m()},getPortalContainer:()=>e.props.inline?null:document.querySelector(Ya(e.props.position)),renderPortal(){return e.props.inline?n.nothing:L()},render(){return e.props.inline?L():n.nothing}}}}),Xa=e=>{var t;typeof e.remove<"u"?e.remove():(t=e.parentNode)==null||t.removeChild(e)},Qa=(e={})=>{const t=o=>{let s;typeof o=="string"&&(s=o);const l=document.createElement("div");l.style.display="contents";const i={message:s||o.message||"",onDismiss:()=>{Xa(l)}},r=Object.assign({},i,e,typeof o=="string"?{}:o);document.body.appendChild(l),Bo(l,r,(()=>{}))};return{open:t,success(o,s={}){return t({message:o,type:"success",...s})},error(o,s={}){return t({message:o,type:"error",...s})},info(o,s={}){return t({message:o,type:"info",...s})},warning(o,s={}){return t({message:o,type:"warning",...s})}}},Ja={name:"MozToast",core:Bo,booleanProps:["composed","dismissible","inline","pauseOnHover","queue","showProgress"],props:["message","type","position","duration","dismissible","queue","pauseOnHover","onDismiss","inline","composed","showProgress","progressClass","exitDuration"],emits:[],slots:["icon","heading","description","actions"],expose:!1,syncUpdate:!0},er={name:"MozTooltip",core:no,booleanProps:["arrow","open"],props:["open","anchor","text","side","align","sideOffset","collisionPadding","arrow","appearance","sideAnchor","tooltipId"],emits:["placed"],slots:["content"],expose:!0},tr=new Set(["open","anchor","side","align","sideOffset","collisionPadding","matchTriggerWidth","trapFocus","popoverId","class","style"]),or='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',pn=typeof requestAnimationFrame=="function"?e=>{requestAnimationFrame(e)}:e=>{setTimeout(e,0)},ms=ye({name:"moz-popover",defaults:{open:!1,side:"bottom",align:"start",sideOffset:4,collisionPadding:8,trapFocus:!0,matchTriggerWidth:!1},setup(e){const t=Y.createRef();let o=null,s=null,l=!1,i=!1,r=null,p=null;const d=()=>!!e.props.open&&!!e.props.anchor,b=()=>{const a=t.value;return a?Array.from(a.querySelectorAll(or)).filter(h=>h.getAttribute("aria-hidden")!=="true"):[]},c=()=>{const a=e.props.anchor,h=t.value;if(!a||!h||!e.props.open)return;const $=Hn(a.getBoundingClientRect(),{width:h.offsetWidth,height:h.offsetHeight},{width:window.innerWidth,height:window.innerHeight},{side:e.props.side??"bottom",align:e.props.align??"start",sideOffset:e.props.sideOffset??4,collisionPadding:e.props.collisionPadding??8});o!==null&&l&&o.side===$.side&&o.x===$.x&&o.y===$.y&&o.availableHeight===$.availableHeight||(o=$,l=!0,e.requestUpdate(),s!==$.side&&(s=$.side,e.emit("placed",$.side)))},m=(a,h)=>new CustomEvent(a,{cancelable:!0,detail:h}),u=a=>{e.emit("requestClose",a)},k=a=>{e.emit("escapeKeyDown",a),a.defaultPrevented||u("escape")},x=a=>{if(!d()||!(r!=null&&r.isTopmost()))return;const h=t.value,$=a.target;if(!h||!$||h.contains($))return;const _=m("moz.interactOutside",{originalEvent:a});e.emit("interactOutside",_),_.defaultPrevented||u("interactOutside")},S=a=>{if(a.key!=="Tab"||!e.props.trapFocus)return;const h=b();if(h.length===0){a.preventDefault();return}const $=h[0],_=h[h.length-1],O=document.activeElement;a.shiftKey&&(O===$||O===t.value)?(a.preventDefault(),_.focus()):!a.shiftKey&&O===_&&(a.preventDefault(),$.focus())},L=()=>{p=document.activeElement??null,r=Eo(k),document.addEventListener("pointerdown",x,!0),pn(()=>{var h;if(!d())return;const a=m("moz.openAutoFocus");e.emit("openAutoFocus",a),!a.defaultPrevented&&((h=b()[0]??t.value)==null||h.focus())})},M=()=>{var $;r==null||r.release(),r=null,document.removeEventListener("pointerdown",x,!0),o=null,s=null,l=!1;const a=m("moz.closeAutoFocus");e.emit("closeAutoFocus",a);const h=p??e.props.anchor;p=null,a.defaultPrevented||($=h==null?void 0:h.focus)==null||$.call(h)},f=()=>{d()&&c()};return typeof window<"u"&&(window.addEventListener("scroll",f,{capture:!0,passive:!0}),window.addEventListener("resize",f,{passive:!0}),e.onCleanup(()=>{window.removeEventListener("scroll",f,!0),window.removeEventListener("resize",f),r==null||r.release(),r=null,document.removeEventListener("pointerdown",x,!0)})),{render(){return n.nothing},renderPortal(){var U;const a=e.props,h=d();if(h!==i&&(i=h,h?L():M()),!h)return n.nothing;pn(c);const $=(o==null?void 0:o.side)??a.side??"bottom",_=ge(a,tr),O=((U=a.anchor)==null?void 0:U.offsetWidth)??0;return n.html`
1758
1810
  <div
1759
- ${K.ref(t)}
1760
- class=${V("moz-tooltip",i.class)}
1761
- role="tooltip"
1762
- id=${i.tooltipId??s.nothing}
1763
- data-side=${c}
1764
- data-align=${i.align??"center"}
1765
- style=${ee.styleMap({...be(i.style),position:"fixed",left:`${(o==null?void 0:o.x)??0}px`,top:`${(o==null?void 0:o.y)??0}px`,opacity:l?"1":"0"})}
1766
- ${he(r)}
1767
- >
1768
- ${i.arrow?s.html`<span
1769
- class="moz-tooltip-arrow"
1770
- data-side=${c}
1771
- style=${ee.styleMap({[u]:`${(o==null?void 0:o.arrowOffset)??0}px`})}
1772
- ></span>`:s.nothing}
1773
- <div class="moz-tooltip-content">
1774
- ${e.slots.has("content")?e.slot("content"):i.text??s.nothing}
1775
- </div>
1776
- </div>
1777
- `},api:{reposition:()=>a()}}}}),lr={name:"MozTooltip",core:_s,booleanProps:["arrow","open"],props:["open","anchor","text","side","align","sideOffset","collisionPadding","arrow","tooltipId"],emits:["placed"],slots:["content"],expose:!0},ir=new Set(["open","anchor","side","align","sideOffset","collisionPadding","matchTriggerWidth","trapFocus","popoverId","class","style"]),rr='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',No=typeof requestAnimationFrame=="function"?e=>{requestAnimationFrame(e)}:e=>{setTimeout(e,0)},Us=$e({name:"moz-popover",defaults:{open:!1,side:"bottom",align:"start",sideOffset:4,collisionPadding:8,trapFocus:!0,matchTriggerWidth:!1},setup(e){const t=K.createRef();let o=null,n=null,l=!1,d=!1,a=null,f=null;const i=()=>!!e.props.open&&!!e.props.anchor,c=()=>{const h=t.value;return h?Array.from(h.querySelectorAll(rr)).filter(C=>C.getAttribute("aria-hidden")!=="true"):[]},r=()=>{const h=e.props.anchor,C=t.value;if(!h||!C||!e.props.open)return;const k=Ns(h.getBoundingClientRect(),{width:C.offsetWidth,height:C.offsetHeight},{width:window.innerWidth,height:window.innerHeight},{side:e.props.side??"bottom",align:e.props.align??"start",sideOffset:e.props.sideOffset??4,collisionPadding:e.props.collisionPadding??8});o!==null&&l&&o.side===k.side&&o.x===k.x&&o.y===k.y&&o.availableHeight===k.availableHeight||(o=k,l=!0,e.requestUpdate(),n!==k.side&&(n=k.side,e.emit("placed",k.side)))},u=(h,C)=>new CustomEvent(h,{cancelable:!0,detail:C}),p=h=>{e.emit("requestClose",h)},y=h=>{e.emit("escapeKeyDown",h),h.defaultPrevented||p("escape")},L=h=>{if(!i()||!(a!=null&&a.isTopmost()))return;const C=t.value,k=h.target;if(!C||!k||C.contains(k))return;const Z=u("moz.interactOutside",{originalEvent:h});e.emit("interactOutside",Z),Z.defaultPrevented||p("interactOutside")},D=h=>{if(h.key!=="Tab"||!e.props.trapFocus)return;const C=c();if(C.length===0){h.preventDefault();return}const k=C[0],Z=C[C.length-1],W=document.activeElement;h.shiftKey&&(W===k||W===t.value)?(h.preventDefault(),Z.focus()):!h.shiftKey&&W===Z&&(h.preventDefault(),k.focus())},P=()=>{f=document.activeElement??null,a=mo(y),document.addEventListener("pointerdown",L,!0),No(()=>{var C;if(!i())return;const h=u("moz.openAutoFocus");e.emit("openAutoFocus",h),!h.defaultPrevented&&((C=c()[0]??t.value)==null||C.focus())})},E=()=>{var k;a==null||a.release(),a=null,document.removeEventListener("pointerdown",L,!0),o=null,n=null,l=!1;const h=u("moz.closeAutoFocus");e.emit("closeAutoFocus",h);const C=f??e.props.anchor;f=null,h.defaultPrevented||(k=C==null?void 0:C.focus)==null||k.call(C)},g=()=>{i()&&r()};return typeof window<"u"&&(window.addEventListener("scroll",g,{capture:!0,passive:!0}),window.addEventListener("resize",g,{passive:!0}),e.onCleanup(()=>{window.removeEventListener("scroll",g,!0),window.removeEventListener("resize",g),a==null||a.release(),a=null,document.removeEventListener("pointerdown",L,!0)})),{render(){return s.nothing},renderPortal(){var Q;const h=e.props,C=i();if(C!==d&&(d=C,C?P():E()),!C)return s.nothing;No(r);const k=(o==null?void 0:o.side)??h.side??"bottom",Z=ye(h,ir),W=((Q=h.anchor)==null?void 0:Q.offsetWidth)??0;return s.html`
1778
- <div
1779
- ${K.ref(t)}
1780
- class=${V("moz-popover",h.class)}
1811
+ ${Y.ref(t)}
1812
+ class=${A("moz-popover",a.class)}
1781
1813
  role="dialog"
1782
- id=${h.popoverId??s.nothing}
1814
+ id=${a.popoverId??n.nothing}
1783
1815
  tabindex="-1"
1784
- data-side=${k}
1785
- data-align=${h.align??"start"}
1786
- @keydown=${D}
1787
- style=${ee.styleMap({...be(h.style),position:"fixed",left:`${(o==null?void 0:o.x)??0}px`,top:`${(o==null?void 0:o.y)??0}px`,opacity:l?"1":"0",pointerEvents:"auto","--moz-popover-trigger-width":`${W}px`,"--moz-popover-available-height":`${(o==null?void 0:o.availableHeight)??0}px`,...h.matchTriggerWidth?{width:`${W}px`}:{}})}
1788
- ${he(Z)}
1816
+ data-side=${$}
1817
+ data-align=${a.align??"start"}
1818
+ @keydown=${S}
1819
+ style=${j.styleMap({...he(a.style),position:"fixed",left:`${(o==null?void 0:o.x)??0}px`,top:`${(o==null?void 0:o.y)??0}px`,opacity:l?"1":"0",pointerEvents:"auto","--moz-popover-trigger-width":`${O}px`,"--moz-popover-available-height":`${(o==null?void 0:o.availableHeight)??0}px`,...a.matchTriggerWidth?{width:`${O}px`}:{}})}
1820
+ ${ce(_)}
1789
1821
  >
1790
1822
  ${e.slot("content")}
1791
1823
  </div>
1792
- `},api:{reposition:()=>r(),panel:()=>t.value??null}}}}),ar={name:"MozPopover",core:Us,booleanProps:["matchTriggerWidth","open","trapFocus"],props:["open","anchor","side","align","sideOffset","collisionPadding","matchTriggerWidth","trapFocus","popoverId"],emits:["placed","escapeKeyDown","interactOutside","openAutoFocus","closeAutoFocus","requestClose"],slots:["content"],expose:!0,syncUpdate:!0},dr=new Set(["open","contentId","disabled","forceMount","class","style"]),Ws="--moz-collapsible-content-height",Ks=$e({name:"moz-collapsible",defaults:{open:!1,disabled:!1,forceMount:!1},setup(e){let t=null,o=null,n=-1;const l=()=>{const f=t;if(!f)return;const i=f.scrollHeight;f.style.setProperty(Ws,`${i}px`),i!==n&&(n=i,e.emit("heightChange",i))},d=()=>{o==null||o.disconnect(),o=null},a=f=>{if(t=f??null,!t){d(),n=-1;return}l(),!(typeof ResizeObserver>"u")&&(d(),o=new ResizeObserver(()=>l()),o.observe(t))};return e.onCleanup(d),{render(){const f=e.props,i=!!f.open;if(!i&&!f.forceMount)return s.nothing;const c=ye(f,dr);return s.html`<div
1793
- ${K.ref(a)}
1794
- class=${V("moz-collapsible-content",f.class)}
1795
- id=${Ee.ifDefined(f.contentId)}
1796
- data-state=${i?"open":"closed"}
1797
- data-disabled=${f.disabled?"":s.nothing}
1798
- ?hidden=${!i}
1799
- style=${ee.styleMap(be(f.style))}
1800
- ${he(c)}
1824
+ `},api:{reposition:()=>c(),panel:()=>t.value??null}}}}),nr={name:"MozPopover",core:ms,booleanProps:["matchTriggerWidth","open","trapFocus"],props:["open","anchor","side","align","sideOffset","collisionPadding","matchTriggerWidth","trapFocus","popoverId"],emits:["placed","escapeKeyDown","interactOutside","openAutoFocus","closeAutoFocus","requestClose"],slots:["content"],expose:!0,syncUpdate:!0},sr=new Set(["open","contentId","disabled","forceMount","class","style"]),fs="--moz-collapsible-content-height",gs=ye({name:"moz-collapsible",defaults:{open:!1,disabled:!1,forceMount:!1},setup(e){let t=null,o=null,s=-1;const l=()=>{const p=t;if(!p)return;const d=p.scrollHeight;p.style.setProperty(fs,`${d}px`),d!==s&&(s=d,e.emit("heightChange",d))},i=()=>{o==null||o.disconnect(),o=null},r=p=>{if(t=p??null,!t){i(),s=-1;return}l(),!(typeof ResizeObserver>"u")&&(i(),o=new ResizeObserver(()=>l()),o.observe(t))};return e.onCleanup(i),{render(){const p=e.props,d=!!p.open;if(!d&&!p.forceMount)return n.nothing;const b=ge(p,sr);return n.html`<div
1825
+ ${Y.ref(r)}
1826
+ class=${A("moz-collapsible-content",p.class)}
1827
+ id=${$e.ifDefined(p.contentId)}
1828
+ data-state=${d?"open":"closed"}
1829
+ data-disabled=${p.disabled?"":n.nothing}
1830
+ ?hidden=${!d}
1831
+ style=${j.styleMap(he(p.style))}
1832
+ ${ce(b)}
1801
1833
  >
1802
1834
  ${e.slot("content")}
1803
- </div>`}}}}),cr={name:"MozCollapsible",core:Ks,booleanProps:["disabled","forceMount","open"],props:["open","contentId","disabled","forceMount"],emits:["heightChange"],slots:["content"],expose:!1,syncUpdate:!0},ur=new Set(["src","alt","delayMs","imageClass","fallbackClass","class","style"]),Gs=$e({name:"moz-avatar",setup(e){let t="idle",o,n=!0,l,d;const a=r=>{t!==r&&(t=r,e.emit("loadingStatusChange",r),e.requestUpdate())},f=()=>{d&&(d.onload=null,d.onerror=null,d=void 0)},i=r=>{if(l!==void 0&&clearTimeout(l),l=void 0,!r||r<=0){n=!0;return}n=!1,l=setTimeout(()=>{n=!0,l=void 0,e.requestUpdate()},r)},c=()=>{const r=e.props.src;if(r===o)return;if(o=r,f(),i(e.props.delayMs),!r){a("idle");return}a("loading");const u=new Image;d=u,u.onload=()=>{d!==u||o!==r||a("loaded")},u.onerror=()=>{d!==u||o!==r||a("error")},u.src=r};return e.onCleanup(()=>{f(),l!==void 0&&clearTimeout(l)}),{render(){c();const r=e.props,u=ye(r,ur),p=t==="loaded",y=!p&&n;return s.html`<span
1804
- class=${V("moz-avatar",r.class)}
1835
+ </div>`}}}}),lr={name:"MozCollapsible",core:gs,booleanProps:["disabled","forceMount","open"],props:["open","contentId","disabled","forceMount"],emits:["heightChange"],slots:["content"],expose:!1,syncUpdate:!0},ir=new Set(["src","alt","delayMs","imageClass","fallbackClass","class","style"]),vs=ye({name:"moz-avatar",setup(e){let t="idle",o,s=!0,l,i;const r=c=>{t!==c&&(t=c,e.emit("loadingStatusChange",c),e.requestUpdate())},p=()=>{i&&(i.onload=null,i.onerror=null,i=void 0)},d=c=>{if(l!==void 0&&clearTimeout(l),l=void 0,!c||c<=0){s=!0;return}s=!1,l=setTimeout(()=>{s=!0,l=void 0,e.requestUpdate()},c)},b=()=>{const c=e.props.src;if(c===o)return;if(o=c,p(),d(e.props.delayMs),!c){r("idle");return}r("loading");const m=new Image;i=m,m.onload=()=>{i!==m||o!==c||r("loaded")},m.onerror=()=>{i!==m||o!==c||r("error")},m.src=c};return e.onCleanup(()=>{p(),l!==void 0&&clearTimeout(l)}),{render(){b();const c=e.props,m=ge(c,ir),u=t==="loaded",k=!u&&s;return n.html`<span
1836
+ class=${A("moz-avatar",c.class)}
1805
1837
  data-status=${t}
1806
- style=${ee.styleMap(be(r.style))}
1807
- ${he(u)}
1838
+ style=${j.styleMap(he(c.style))}
1839
+ ${ce(m)}
1808
1840
  >
1809
- ${p?s.html`<img
1810
- class=${V("moz-avatar-image",r.imageClass)}
1811
- src=${Ee.ifDefined(r.src)}
1812
- alt=${Ee.ifDefined(r.alt)}
1813
- />`:s.nothing}
1814
- ${y?s.html`<span class=${V("moz-avatar-fallback",r.fallbackClass)}>${e.slot("fallback")}</span>`:s.nothing}
1815
- </span>`},api:{get status(){return t}}}}}),pr={name:"MozAvatar",core:Gs,props:["src","alt","delayMs","imageClass","fallbackClass"],emits:["loadingStatusChange"],slots:["fallback"],expose:!0},hr=new Set(["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass","class","style"]),mr=20,Zs=$e({name:"moz-scroll-area",defaults:{orientation:"vertical",scrollbarVisibility:"always"},setup(e){let t=null,o=null,n=null,l=null,d=null,a=!1,f=!1,i=null,c=null,r=null,u=null,p=null,y=!1,L=!1,D=null,P=null;const E=M=>!!M&&"nodeType"in M&&(!!(r!=null&&r.contains(M))||!!(u!=null&&u.contains(M))),g=()=>E((r==null?void 0:r.ownerDocument.activeElement)??null),h=()=>{const M=g();M!==L&&(L=M,e.requestUpdate())},C=M=>{u=M??null},k=M=>{M.pointerType!=="touch"&&(y=!0,e.requestUpdate())},Z=M=>{M.pointerType!=="touch"&&(y=E(M.relatedTarget),e.requestUpdate())},W=()=>{h()},Q=()=>{e.requestUpdate()},re=()=>{D==null||D(),p==null||p.disconnect(),p=null,r==null||r.removeEventListener("pointerenter",k),r==null||r.removeEventListener("pointerleave",Z),r==null||r.removeEventListener("focusin",W),r==null||r.removeEventListener("focusout",Q),r=null,y=L=!1},ae=()=>{(P==null?void 0:P.getAttribute("tabindex"))==="0"&&P.removeAttribute("tabindex"),P=null},j=()=>{var _;const M=e.props.interactionRoot??t;M!==r&&(re(),r=M,M&&(M.addEventListener("pointerenter",k),M.addEventListener("pointerleave",Z),M.addEventListener("focusin",W),M.addEventListener("focusout",Q)));const U=(_=M==null?void 0:M.ownerDocument.defaultView)==null?void 0:_.MutationObserver;e.props.scrollbarVisibility==="hover"&&M&&!p&&U?(p=new U(h),p.observe(M,{childList:!0,subtree:!0})):e.props.scrollbarVisibility!=="hover"&&(p==null||p.disconnect(),p=null),L=g(),e.props.scrollbarVisibility!=="hover"?ae():t&&!t.hasAttribute("tabindex")&&(t.tabIndex=0,P=t)},$=M=>{const U=e.props.orientation??"vertical";return U==="both"||U===M},I=M=>{const U=t;if(!U||!$(M))return!1;const _=M==="vertical",G=_?U.scrollHeight:U.scrollWidth,J=_?U.clientHeight:U.clientWidth;if(G<=J+1||J<=0)return!1;const x=_?l:d,m=_?o:n;if(!x||!m)return!0;const T=_?x.clientHeight:x.clientWidth;if(T<=0)return!0;const A=J/G,F=Math.max(T*A,mr),ce=T-F,ke=_?U.scrollTop:U.scrollLeft,Me=G-J,Ne=Me>0?ke/Me*ce:0;return _?(m.style.height=`${F}px`,m.style.transform=`translateY(${Ne}px)`):(m.style.width=`${F}px`,m.style.transform=`translateX(${Ne}px)`),!0},Y=()=>{const M=I("vertical"),U=I("horizontal");M===a&&U===f||(a=M,f=U,e.requestUpdate())},ne=()=>{const M=t;M&&(Y(),e.emit("scroll",{scrollTop:M.scrollTop,scrollLeft:M.scrollLeft}))},B=()=>{re(),ae(),t&&t.removeEventListener("scroll",ne),i==null||i.disconnect(),i=null,c==null||c.disconnect(),c=null,t=null},se=()=>{const M=e.props.viewport??null;if(M!==t&&(B(),t=M,!!t)){if(t.addEventListener("scroll",ne,{passive:!0}),typeof ResizeObserver<"u"){i=new ResizeObserver(()=>Y()),i.observe(t);const U=t.firstElementChild;U&&(c=new ResizeObserver(()=>Y()),c.observe(U))}Y()}},N=(M,U)=>{var He;const _=t,G=_==null?void 0:_.ownerDocument.defaultView;if(!_||!G||D||U.button!==0)return;const J=M==="vertical",x=J?l:d,m=J?o:n;if(!x||!m)return;U.preventDefault();const T=J?U.clientY:U.clientX,A=J?_.scrollTop:_.scrollLeft,F=J?x.clientHeight:x.clientWidth,ce=J?m.offsetHeight:m.offsetWidth,ke=J?_.scrollHeight:_.scrollWidth,Me=J?_.clientHeight:_.clientWidth,Ne=F-ce,qe=ke-Me;if(Ne<=0||qe<=0)return;const st=U.pointerId,Qe=Le=>{y=Le.pointerType!=="touch"&&[r,l,d].some(_e=>{if(!_e||_e.hidden)return!1;const Ue=_e.getBoundingClientRect();return Le.clientX>=Ue.left&&Le.clientX<Ue.right&&Le.clientY>=Ue.top&&Le.clientY<Ue.bottom})},Je=Le=>{if(Le.pointerId!==st)return;Qe(Le);const _e=(J?Le.clientY:Le.clientX)-T,Ue=A+_e/Ne*qe;J?_.scrollTop=Ue:_.scrollLeft=Ue},Be=Le=>{Le.pointerId===st&&(Qe(Le),Le.type!=="pointerup"&&(y=!1),D==null||D(),e.requestUpdate())};D=()=>{var Le;D=null,G.removeEventListener("pointermove",Je),G.removeEventListener("pointerup",Be),G.removeEventListener("pointercancel",Be),m.removeEventListener("lostpointercapture",Be);try{(Le=m.releasePointerCapture)==null||Le.call(m,st)}catch{}},G.addEventListener("pointermove",Je),G.addEventListener("pointerup",Be),G.addEventListener("pointercancel",Be),m.addEventListener("lostpointercapture",Be);try{(He=m.setPointerCapture)==null||He.call(m,st)}catch{}e.requestUpdate()};e.onCleanup(B);const X=(M,U)=>{const _=M==="vertical",G=x=>{_?l=x??null:d=x??null},J=x=>{_?o=x??null:n=x??null,x&&Y()};return s.html`<div
1816
- class=${V("moz-scroll-area-scrollbar",e.props.scrollbarClass)}
1817
- data-orientation=${M}
1818
- ?hidden=${!U}
1819
- ${K.ref(G)}
1841
+ ${u?n.html`<img
1842
+ class=${A("moz-avatar-image",c.imageClass)}
1843
+ src=${$e.ifDefined(c.src)}
1844
+ alt=${$e.ifDefined(c.alt)}
1845
+ />`:n.nothing}
1846
+ ${k?n.html`<span class=${A("moz-avatar-fallback",c.fallbackClass)}>${e.slot("fallback")}</span>`:n.nothing}
1847
+ </span>`},api:{get status(){return t}}}}}),ar={name:"MozAvatar",core:vs,props:["src","alt","delayMs","imageClass","fallbackClass"],emits:["loadingStatusChange"],slots:["fallback"],expose:!0},rr=new Set(["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass","class","style"]),cr=20,ws=ye({name:"moz-scroll-area",defaults:{orientation:"vertical",scrollbarVisibility:"always"},setup(e){let t=null,o=null,s=null,l=null,i=null,r=!1,p=!1,d=null,b=null,c=null,m=null,u=null,k=!1,x=!1,S=null,L=null;const M=T=>!!T&&"nodeType"in T&&(!!(c!=null&&c.contains(T))||!!(m!=null&&m.contains(T))),f=()=>M((c==null?void 0:c.ownerDocument.activeElement)??null),a=()=>{const T=f();T!==x&&(x=T,e.requestUpdate())},h=T=>{m=T??null},$=T=>{T.pointerType!=="touch"&&(k=!0,e.requestUpdate())},_=T=>{T.pointerType!=="touch"&&(k=M(T.relatedTarget),e.requestUpdate())},O=()=>{a()},U=()=>{e.requestUpdate()},Q=()=>{S==null||S(),u==null||u.disconnect(),u=null,c==null||c.removeEventListener("pointerenter",$),c==null||c.removeEventListener("pointerleave",_),c==null||c.removeEventListener("focusin",O),c==null||c.removeEventListener("focusout",U),c=null,k=x=!1},re=()=>{(L==null?void 0:L.getAttribute("tabindex"))==="0"&&L.removeAttribute("tabindex"),L=null},X=()=>{var K;const T=e.props.interactionRoot??t;T!==c&&(Q(),c=T,T&&(T.addEventListener("pointerenter",$),T.addEventListener("pointerleave",_),T.addEventListener("focusin",O),T.addEventListener("focusout",U)));const W=(K=T==null?void 0:T.ownerDocument.defaultView)==null?void 0:K.MutationObserver;e.props.scrollbarVisibility==="hover"&&T&&!u&&W?(u=new W(a),u.observe(T,{childList:!0,subtree:!0})):e.props.scrollbarVisibility!=="hover"&&(u==null||u.disconnect(),u=null),x=f(),e.props.scrollbarVisibility!=="hover"?re():t&&!t.hasAttribute("tabindex")&&(t.tabIndex=0,L=t)},E=T=>{const W=e.props.orientation??"vertical";return W==="both"||W===T},V=T=>{const W=t;if(!W||!E(T))return!1;const K=T==="vertical",ee=K?W.scrollHeight:W.scrollWidth,te=K?W.clientHeight:W.clientWidth;if(ee<=te+1||te<=0)return!1;const P=K?l:i,g=K?o:s;if(!P||!g)return!0;const R=K?P.clientHeight:P.clientWidth;if(R<=0)return!0;const I=te/ee,H=Math.max(R*I,cr),pe=R-H,ke=K?W.scrollTop:W.scrollLeft,Me=ee-te,He=Me>0?ke/Me*pe:0;return K?(g.style.height=`${H}px`,g.style.transform=`translateY(${He}px)`):(g.style.width=`${H}px`,g.style.transform=`translateX(${He}px)`),!0},J=()=>{const T=V("vertical"),W=V("horizontal");T===r&&W===p||(r=T,p=W,e.requestUpdate())},le=()=>{const T=t;T&&(J(),e.emit("scroll",{scrollTop:T.scrollTop,scrollLeft:T.scrollLeft}))},N=()=>{Q(),re(),t&&t.removeEventListener("scroll",le),d==null||d.disconnect(),d=null,b==null||b.disconnect(),b=null,t=null},ie=()=>{const T=e.props.viewport??null;if(T!==t&&(N(),t=T,!!t)){if(t.addEventListener("scroll",le,{passive:!0}),typeof ResizeObserver<"u"){d=new ResizeObserver(()=>J()),d.observe(t);const W=t.firstElementChild;W&&(b=new ResizeObserver(()=>J()),b.observe(W))}J()}},F=(T,W)=>{var Ue;const K=t,ee=K==null?void 0:K.ownerDocument.defaultView;if(!K||!ee||S||W.button!==0)return;const te=T==="vertical",P=te?l:i,g=te?o:s;if(!P||!g)return;W.preventDefault();const R=te?W.clientY:W.clientX,I=te?K.scrollTop:K.scrollLeft,H=te?P.clientHeight:P.clientWidth,pe=te?g.offsetHeight:g.offsetWidth,ke=te?K.scrollHeight:K.scrollWidth,Me=te?K.clientHeight:K.clientWidth,He=H-pe,Fe=ke-Me;if(He<=0||Fe<=0)return;const Ge=W.pointerId,et=ze=>{k=ze.pointerType!=="touch"&&[c,l,i].some(Ze=>{if(!Ze||Ze.hidden)return!1;const Be=Ze.getBoundingClientRect();return ze.clientX>=Be.left&&ze.clientX<Be.right&&ze.clientY>=Be.top&&ze.clientY<Be.bottom})},lt=ze=>{if(ze.pointerId!==Ge)return;et(ze);const Ze=(te?ze.clientY:ze.clientX)-R,Be=I+Ze/He*Fe;te?K.scrollTop=Be:K.scrollLeft=Be},Ke=ze=>{ze.pointerId===Ge&&(et(ze),ze.type!=="pointerup"&&(k=!1),S==null||S(),e.requestUpdate())};S=()=>{var ze;S=null,ee.removeEventListener("pointermove",lt),ee.removeEventListener("pointerup",Ke),ee.removeEventListener("pointercancel",Ke),g.removeEventListener("lostpointercapture",Ke);try{(ze=g.releasePointerCapture)==null||ze.call(g,Ge)}catch{}},ee.addEventListener("pointermove",lt),ee.addEventListener("pointerup",Ke),ee.addEventListener("pointercancel",Ke),g.addEventListener("lostpointercapture",Ke);try{(Ue=g.setPointerCapture)==null||Ue.call(g,Ge)}catch{}e.requestUpdate()};e.onCleanup(N);const oe=(T,W)=>{const K=T==="vertical",ee=P=>{K?l=P??null:i=P??null},te=P=>{K?o=P??null:s=P??null,P&&J()};return n.html`<div
1848
+ class=${A("moz-scroll-area-scrollbar",e.props.scrollbarClass)}
1849
+ data-orientation=${T}
1850
+ ?hidden=${!W}
1851
+ ${Y.ref(ee)}
1820
1852
  >
1821
1853
  <div
1822
- class=${V("moz-scroll-area-thumb",e.props.thumbClass)}
1823
- @pointerdown=${x=>N(M,x)}
1824
- ${K.ref(J)}
1854
+ class=${A("moz-scroll-area-thumb",e.props.thumbClass)}
1855
+ @pointerdown=${P=>F(T,P)}
1856
+ ${Y.ref(te)}
1825
1857
  ></div>
1826
- </div>`};return{render(){se(),j();const M=e.props,U=ye(M,hr),_=$("vertical")&&$("horizontal");return s.html`<div
1827
- class=${V("moz-scroll-area-bars",M.class)}
1828
- data-orientation=${M.orientation??"vertical"}
1829
- data-state=${M.scrollbarVisibility!=="hover"||y||L||D?"visible":"hidden"}
1830
- style=${ee.styleMap(be(M.style))}
1831
- @pointerenter=${k}
1832
- @pointerleave=${Z}
1833
- @focusin=${W}
1834
- @focusout=${Q}
1835
- ${K.ref(C)}
1836
- ${he(U)}
1858
+ </div>`};return{render(){ie(),X();const T=e.props,W=ge(T,rr),K=E("vertical")&&E("horizontal");return n.html`<div
1859
+ class=${A("moz-scroll-area-bars",T.class)}
1860
+ data-orientation=${T.orientation??"vertical"}
1861
+ data-state=${T.scrollbarVisibility!=="hover"||k||x||S?"visible":"hidden"}
1862
+ style=${j.styleMap(he(T.style))}
1863
+ @pointerenter=${$}
1864
+ @pointerleave=${_}
1865
+ @focusin=${O}
1866
+ @focusout=${U}
1867
+ ${Y.ref(h)}
1868
+ ${ce(W)}
1837
1869
  >
1838
- ${$("vertical")?X("vertical",a):s.nothing}
1839
- ${$("horizontal")?X("horizontal",f):s.nothing}
1840
- ${_&&a&&f?s.html`<div class="moz-scroll-area-corner"></div>`:s.nothing}
1841
- </div>`}}}}),fr={name:"MozScrollAreaBars",core:Zs,props:["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass"],emits:["scroll"],expose:!1,syncUpdate:!0},Ys=["accent","neutral","info","success","warning","danger"],js=["soft","outline","solid"],Xs=["sm","md","lg"],gr=new Set(["tone","appearance","size","dot","text","class","style"]);function to(e,t,o){return typeof t=="string"&&e.includes(t)?t:o}const Qs=$e({name:"moz-badge",defaults:{tone:"neutral",appearance:"soft",size:"md",dot:!1},setup(e){return{render(){const t=e.props,o=ye(t,gr),n=to(Ys,t.tone,"neutral"),l=to(js,t.appearance,"soft"),d=to(Xs,t.size,"md"),a=e.slots.has("default")?e.slot("default"):t.text??s.nothing;return s.html`<span
1842
- class=${V("moz-badge",`size-${d}`,t.class)}
1843
- data-tone=${n}
1870
+ ${E("vertical")?oe("vertical",r):n.nothing}
1871
+ ${E("horizontal")?oe("horizontal",p):n.nothing}
1872
+ ${K&&r&&p?n.html`<div class="moz-scroll-area-corner"></div>`:n.nothing}
1873
+ </div>`}}}}),dr={name:"MozScrollAreaBars",core:ws,props:["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass"],emits:["scroll"],expose:!1,syncUpdate:!0},ys=["accent","neutral","info","success","warning","danger"],bs=["soft","outline","solid"],Cs=["sm","md","lg"],ur=new Set(["tone","appearance","size","dot","text","class","style"]);function po(e,t,o){return typeof t=="string"&&e.includes(t)?t:o}const $s=ye({name:"moz-badge",defaults:{tone:"neutral",appearance:"soft",size:"md",dot:!1},setup(e){return{render(){const t=e.props,o=ge(t,ur),s=po(ys,t.tone,"neutral"),l=po(bs,t.appearance,"soft"),i=po(Cs,t.size,"md"),r=e.slots.has("default")?e.slot("default"):t.text??n.nothing;return n.html`<span
1874
+ class=${A("moz-badge",`size-${i}`,t.class)}
1875
+ data-tone=${s}
1844
1876
  data-appearance=${l}
1845
- style=${ee.styleMap(be(t.style))}
1846
- ${he(o)}
1847
- >${t.dot?s.html`<span class="moz-badge-dot"></span>`:s.nothing}${a}</span
1848
- >`}}}}),vr={name:"MozBadge",core:Qs,booleanProps:["dot"],props:["tone","appearance","size","dot","text"],emits:[],slots:["default"],expose:!1,syncUpdate:!0},Js=["accent","neutral","info","success","warning","danger"],en=["outline","soft"],tn=["sm","md"],wr=new Set(["tone","appearance","size","selected","disabled","removable","labelInteractive","removeLabel","text","class","style"]);function oo(e,t,o){return typeof t=="string"&&e.includes(t)?t:o}const on=$e({name:"moz-chip",defaults:{tone:"accent",appearance:"outline",size:"md",selected:!1,disabled:!1,removable:!1,labelInteractive:!0},setup(e){const t=n=>{e.props.disabled||e.emit("click",n)},o=n=>{e.props.disabled||e.emit("remove",n)};return{render(){const n=e.props,l=ye(n,wr),d=oo(Js,n.tone,"accent"),a=oo(en,n.appearance,"outline"),f=oo(tn,n.size,"md"),i=!!n.disabled,c=e.slots.has("icon")?s.html`<span class="moz-chip-icon">${e.slot("icon")}</span>`:s.nothing,r=e.slots.has("default")?e.slot("default"):n.text??s.nothing;if(n.removable){const y=n.labelInteractive!==!1?s.html`<button type="button" class="moz-chip-label" ?disabled=${i} @click=${t}
1849
- >${c}${r}</button
1850
- >`:s.html`<span class="moz-chip-label">${c}${r}</span>`;return s.html`<span
1851
- class=${V("moz-chip","removable",`size-${f}`,{disabled:i},n.class)}
1852
- data-tone=${d}
1853
- data-appearance=${a}
1854
- style=${ee.styleMap(be(n.style))}
1855
- ${he(l)}
1856
- >${y}<button
1877
+ style=${j.styleMap(he(t.style))}
1878
+ ${ce(o)}
1879
+ >${t.dot?n.html`<span class="moz-badge-dot"></span>`:n.nothing}${r}</span
1880
+ >`}}}}),pr={name:"MozBadge",core:$s,booleanProps:["dot"],props:["tone","appearance","size","dot","text"],emits:[],slots:["default"],expose:!1,syncUpdate:!0},hr=new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_icon_serchbox_clolse_12x12'%3e%3cg%20id='&%23237;&%23140;&%23168;&%23236;&%23138;&%23164;%203250'%3e%3c/g%3e%3cg%20id='Group%201670'%3e%3cpath%20id='&%23236;&%23132;&%23160;%20117'%20d='M11.5657%203.6277C11.8781%203.31528%2011.8781%202.80875%2011.5657%202.49632C11.2533%202.1839%2010.7467%202.1839%2010.4343%202.49632L11%203.06201L11.5657%203.6277ZM2.49637%2010.4343C2.18395%2010.7467%202.18395%2011.2533%202.49637%2011.5657C2.80879%2011.8781%203.31532%2011.8781%203.62774%2011.5657L3.06206%2011L2.49637%2010.4343ZM11%203.06201L10.4343%202.49632L2.49637%2010.4343L3.06206%2011L3.62774%2011.5657L11.5657%203.6277L11%203.06201Z'%20fill='%23949EB8'/%3e%3cpath%20id='&%23236;&%23132;&%23160;%20118'%20d='M3.56568%202.43431C3.25327%202.12189%202.74673%202.12189%202.43432%202.43431C2.1219%202.74673%202.1219%203.25327%202.43432%203.56569L3%203L3.56568%202.43431ZM10.3723%2011.5037C10.6847%2011.8161%2011.1912%2011.8161%2011.5036%2011.5037C11.816%2011.1913%2011.816%2010.6847%2011.5036%2010.3723L10.9379%2010.938L10.3723%2011.5037ZM3%203L2.43432%203.56569L10.3723%2011.5037L10.9379%2010.938L11.5036%2010.3723L3.56568%202.43431L3%203Z'%20fill='%23949EB8'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,Ss=["accent","neutral","info","success","warning","danger"],ks=["outline","soft"],Ms=["sm","md","lg"],mr=new Set(["tone","appearance","size","selected","disabled","removable","labelInteractive","removeLabel","text","class","style"]);function ho(e,t,o){return typeof t=="string"&&e.includes(t)?t:o}const Es=ye({name:"moz-chip",defaults:{tone:"accent",appearance:"outline",size:"md",selected:!1,disabled:!1,removable:!1,labelInteractive:!0},setup(e){const t=s=>{e.props.disabled||e.emit("click",s)},o=s=>{e.props.disabled||e.emit("remove",s)};return{render(){const s=e.props,l=ge(s,mr),i=ho(Ss,s.tone,"accent"),r=ho(ks,s.appearance,"outline"),p=ho(Ms,s.size,"md"),d=!!s.disabled,b=e.slots.has("icon")?n.html`<span class="moz-chip-icon">${e.slot("icon")}</span>`:n.nothing,c=e.slots.has("default")?e.slot("default"):s.text??n.nothing;if(s.removable){const k=s.labelInteractive!==!1?n.html`<button type="button" class="moz-chip-label" ?disabled=${d} @click=${t}
1881
+ >${b}${c}</button
1882
+ >`:n.html`<span class="moz-chip-label">${b}${c}</span>`;return n.html`<span
1883
+ class=${A("moz-chip","removable",`size-${p}`,{disabled:d},s.class)}
1884
+ data-tone=${i}
1885
+ data-appearance=${r}
1886
+ style=${j.styleMap(he(s.style))}
1887
+ ${ce(l)}
1888
+ >${k}<button
1857
1889
  type="button"
1858
1890
  class="moz-chip-remove"
1859
- aria-label=${n.removeLabel||e.locale.Chip.remove}
1860
- ?disabled=${i}
1891
+ aria-label=${s.removeLabel||e.locale.Chip.remove}
1892
+ ?disabled=${d}
1861
1893
  @click=${o}
1862
- >${io("currentColor")}</button
1894
+ >${p!=="sm"?n.html`<span class="moz-chip-close-glyph" aria-hidden="true" style=${j.styleMap({maskImage:`url("${hr}")`})}></span>`:vo("currentColor")}</button
1863
1895
  ></span
1864
- >`}const u=!!n.selected;return s.html`<button
1896
+ >`}const m=!!s.selected;return n.html`<button
1865
1897
  type="button"
1866
- class=${V("moz-chip",`size-${f}`,{"is-selected":u,disabled:i},n.class)}
1867
- data-tone=${d}
1868
- data-appearance=${a}
1869
- aria-pressed=${u?"true":"false"}
1870
- ?disabled=${i}
1871
- style=${ee.styleMap(be(n.style))}
1872
- ${he(l)}
1898
+ class=${A("moz-chip",`size-${p}`,{"is-selected":m,disabled:d},s.class)}
1899
+ data-tone=${i}
1900
+ data-appearance=${r}
1901
+ aria-pressed=${m?"true":"false"}
1902
+ ?disabled=${d}
1903
+ style=${j.styleMap(he(s.style))}
1904
+ ${ce(l)}
1873
1905
  @click=${t}
1874
- >${c}${r}</button
1875
- >`}}}}),br={name:"MozChip",core:on,booleanProps:["disabled","labelInteractive","removable","selected"],props:["tone","appearance","size","selected","disabled","removable","labelInteractive","removeLabel","text"],emits:["click","remove"],slots:["icon","default"],expose:!1,syncUpdate:!0},ao=()=>s.html`<svg
1906
+ >${b}${c}</button
1907
+ >`}}}}),fr={name:"MozChip",core:Es,booleanProps:["disabled","labelInteractive","removable","selected"],props:["tone","appearance","size","selected","disabled","removable","labelInteractive","removeLabel","text"],emits:["click","remove"],slots:["icon","default"],expose:!1,syncUpdate:!0},yo=()=>n.html`<svg
1876
1908
  width="20"
1877
1909
  height="20"
1878
1910
  viewBox="0 0 20 20"
@@ -1885,7 +1917,7 @@
1885
1917
  clip-rule="evenodd"
1886
1918
  d="M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 11-2 0 1 1 0 012 0zm-2 3a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z"
1887
1919
  ></path>
1888
- </svg>`,sn=()=>s.html`<svg
1920
+ </svg>`,xs=()=>n.html`<svg
1889
1921
  width="20"
1890
1922
  height="20"
1891
1923
  viewBox="0 0 20 20"
@@ -1898,7 +1930,7 @@
1898
1930
  clip-rule="evenodd"
1899
1931
  d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"
1900
1932
  ></path>
1901
- </svg>`,nn=()=>s.html`<svg
1933
+ </svg>`,Ls=()=>n.html`<svg
1902
1934
  width="20"
1903
1935
  height="20"
1904
1936
  viewBox="0 0 20 20"
@@ -1911,7 +1943,7 @@
1911
1943
  clip-rule="evenodd"
1912
1944
  d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z"
1913
1945
  ></path>
1914
- </svg>`,ln=()=>s.html`<svg
1946
+ </svg>`,zs=()=>n.html`<svg
1915
1947
  width="20"
1916
1948
  height="20"
1917
1949
  viewBox="0 0 20 20"
@@ -1924,7 +1956,7 @@
1924
1956
  clip-rule="evenodd"
1925
1957
  d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z"
1926
1958
  ></path>
1927
- </svg>`,rn=()=>s.html`<svg
1959
+ </svg>`,Ps=()=>n.html`<svg
1928
1960
  width="20"
1929
1961
  height="20"
1930
1962
  viewBox="0 0 20 20"
@@ -1937,7 +1969,7 @@
1937
1969
  clip-rule="evenodd"
1938
1970
  d="M10 18a8 8 0 100-16 8 8 0 000 16zm0-12a1 1 0 00-1 1v4a1 1 0 102 0V7a1 1 0 00-1-1zm0 8a1 1 0 100-2 1 1 0 000 2z"
1939
1971
  ></path>
1940
- </svg>`,an=()=>s.html`<svg
1972
+ </svg>`,Ts=()=>n.html`<svg
1941
1973
  width="14"
1942
1974
  height="14"
1943
1975
  viewBox="0 0 24 24"
@@ -1949,96 +1981,171 @@
1949
1981
  aria-hidden="true"
1950
1982
  >
1951
1983
  <path d="M18 6 6 18M6 6l12 12"></path>
1952
- </svg>`,dn=["info","success","warning","danger","neutral","accent"],Cr=new Set(["tone","title","text","dismissible","dismissLabel","hideIcon","compact","live","class","style"]),yr={info:ao,success:sn,warning:nn,danger:ln,neutral:rn,accent:ao};function $r(e){return typeof e=="string"&&dn.includes(e)?e:"info"}const cn=$e({name:"moz-callout",defaults:{tone:"info",dismissible:!1,hideIcon:!1,compact:!1,live:!1},setup(e){const t=o=>e.emit("dismiss",o);return{render(){const o=e.props,n=ye(o,Cr),l=$r(o.tone),d=l==="danger"||l==="warning",a=!!o.live,i=e.slots.has("heading")?e.slot("heading"):o.title?o.title:void 0,c=e.slots.has("default")?e.slot("default"):o.text??s.nothing;return s.html`<div
1953
- class=${V("moz-callout",{compact:!!o.compact},o.class)}
1984
+ </svg>`,As=["info","success","warning","danger","neutral","accent"],Is=["block","inline","banner"],gr=new Set(["mode","tone","title","text","dismissible","dismissLabel","hideIcon","compact","live","class","style"]),vr={info:yo,success:xs,warning:Ls,danger:zs,neutral:Ps,accent:yo},wr={info:new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_system_12x12'%20clip-path='url(%23clip0_0_22)'%3e%3cpath%20id='Subtract'%20d='M6%200C9.31371%200%2012%202.68629%2012%206C12%209.31371%209.31371%2012%206%2012C2.68629%2012%200%209.31371%200%206C0%202.68629%202.68629%200%206%200ZM5.98926%207.87109C5.60855%207.87109%205.2998%208.17984%205.2998%208.56055C5.29995%208.94113%205.60864%209.25%205.98926%209.25H6.01074C6.39124%209.24985%206.70005%208.94104%206.7002%208.56055C6.7002%208.17993%206.39133%207.87124%206.01074%207.87109H5.98926ZM6%202.75C5.6134%202.75%205.2998%203.0636%205.2998%203.4502V6.38281C5.2998%206.76941%205.6134%207.08301%206%207.08301C6.3866%207.08301%206.7002%206.76941%206.7002%206.38281V3.4502C6.7002%203.0636%206.3866%202.75%206%202.75Z'%20fill='%232A5DBB'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_22'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,neutral:new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_system_12x12'%20clip-path='url(%23clip0_0_28)'%3e%3cpath%20id='Subtract'%20d='M6%200C9.31371%200%2012%202.68629%2012%206C12%209.31371%209.31371%2012%206%2012C2.68629%2012%200%209.31371%200%206C0%202.68629%202.68629%200%206%200ZM5.98926%207.87109C5.60855%207.87109%205.2998%208.17984%205.2998%208.56055C5.29995%208.94113%205.60864%209.25%205.98926%209.25H6.01074C6.39124%209.24985%206.70005%208.94104%206.7002%208.56055C6.7002%208.17993%206.39133%207.87124%206.01074%207.87109H5.98926ZM6%202.75C5.6134%202.75%205.2998%203.0636%205.2998%203.4502V6.38281C5.2998%206.76941%205.6134%207.08301%206%207.08301C6.3866%207.08301%206.7002%206.76941%206.7002%206.38281V3.4502C6.7002%203.0636%206.3866%202.75%206%202.75Z'%20fill='%232D3752'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_28'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,danger:new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_system_12x12'%20clip-path='url(%23clip0_0_10)'%3e%3cpath%20id='Subtract'%20d='M6%200C9.31371%200%2012%202.68629%2012%206C12%209.31371%209.31371%2012%206%2012C2.68629%2012%200%209.31371%200%206C0%202.68629%202.68629%200%206%200ZM5.98926%207.87109C5.60855%207.87109%205.2998%208.17984%205.2998%208.56055C5.29995%208.94113%205.60864%209.25%205.98926%209.25H6.01074C6.39124%209.24985%206.70005%208.94104%206.7002%208.56055C6.7002%208.17993%206.39133%207.87124%206.01074%207.87109H5.98926ZM6%202.75C5.6134%202.75%205.2998%203.0636%205.2998%203.4502V6.38281C5.2998%206.76941%205.6134%207.08301%206%207.08301C6.3866%207.08301%206.7002%206.76941%206.7002%206.38281V3.4502C6.7002%203.0636%206.3866%202.75%206%202.75Z'%20fill='%23B6373B'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_10'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,success:new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_system_12x12'%20clip-path='url(%23clip0_0_4)'%3e%3cpath%20id='Subtract'%20d='M6%200C9.31371%200%2012%202.68629%2012%206C12%209.31371%209.31371%2012%206%2012C2.68629%2012%200%209.31371%200%206C0%202.68629%202.68629%200%206%200ZM5.98926%207.87109C5.60855%207.87109%205.2998%208.17984%205.2998%208.56055C5.29995%208.94113%205.60864%209.25%205.98926%209.25H6.01074C6.39124%209.24985%206.70005%208.94104%206.7002%208.56055C6.7002%208.17993%206.39133%207.87124%206.01074%207.87109H5.98926ZM6%202.75C5.6134%202.75%205.2998%203.0636%205.2998%203.4502V6.38281C5.2998%206.76941%205.6134%207.08301%206%207.08301C6.3866%207.08301%206.7002%206.76941%206.7002%206.38281V3.4502C6.7002%203.0636%206.3866%202.75%206%202.75Z'%20fill='%23106F40'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_4'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,warning:new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_system_12x12'%20clip-path='url(%23clip0_0_16)'%3e%3cpath%20id='Subtract'%20d='M6%200C9.31371%200%2012%202.68629%2012%206C12%209.31371%209.31371%2012%206%2012C2.68629%2012%200%209.31371%200%206C0%202.68629%202.68629%200%206%200ZM5.98926%207.87109C5.60855%207.87109%205.2998%208.17984%205.2998%208.56055C5.29995%208.94113%205.60864%209.25%205.98926%209.25H6.01074C6.39124%209.24985%206.70005%208.94104%206.7002%208.56055C6.7002%208.17993%206.39133%207.87124%206.01074%207.87109H5.98926ZM6%202.75C5.6134%202.75%205.2998%203.0636%205.2998%203.4502V6.38281C5.2998%206.76941%205.6134%207.08301%206%207.08301C6.3866%207.08301%206.7002%206.76941%206.7002%206.38281V3.4502C6.7002%203.0636%206.3866%202.75%206%202.75Z'%20fill='%23785C0D'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_16'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href},yr=new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_icon_serchbox_clolse_12x12'%3e%3cg%20id='&%23237;&%23140;&%23168;&%23236;&%23138;&%23164;%203250'%3e%3c/g%3e%3cg%20id='Group%201670'%3e%3cpath%20id='&%23236;&%23132;&%23160;%20117'%20d='M9.99426%203.19027C10.3067%202.87785%2010.3067%202.37131%209.99426%202.05889C9.68184%201.74647%209.17531%201.74647%208.86289%202.05889L9.42857%202.62458L9.99426%203.19027ZM2.05894%208.86288C1.74652%209.1753%201.74652%209.68183%202.05894%209.99426C2.37136%2010.3067%202.87789%2010.3067%203.1903%209.99425L2.62462%209.42857L2.05894%208.86288ZM9.42857%202.62458L8.86289%202.05889L2.05894%208.86288L2.62462%209.42857L3.1903%209.99425L9.99426%203.19027L9.42857%202.62458Z'%20fill='%23949EB8'/%3e%3cpath%20id='&%23236;&%23132;&%23160;%20118'%20d='M3.13711%202.00574C2.82469%201.69332%202.31816%201.69332%202.00574%202.00574C1.69333%202.31816%201.69333%202.8247%202.00574%203.13712L2.57143%202.57143L3.13711%202.00574ZM8.8097%209.9411C9.12211%2010.2535%209.62864%2010.2535%209.94106%209.9411C10.2535%209.62868%2010.2535%209.12215%209.94106%208.80973L9.37538%209.37542L8.8097%209.9411ZM2.57143%202.57143L2.00574%203.13712L8.8097%209.9411L9.37538%209.37542L9.94106%208.80973L3.13711%202.00574L2.57143%202.57143Z'%20fill='%23949EB8'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href;function br(e){return typeof e=="string"&&As.includes(e)?e:"info"}const Rs=ye({name:"moz-callout",defaults:{mode:"block",tone:"info",dismissible:!1,hideIcon:!1,compact:!1,live:!1},setup(e){const t=o=>e.emit("dismiss",o);return{render(){const o=e.props,s=ge(o,gr),l=br(o.tone),i=Is.includes(o.mode)?o.mode:"block",r=i!=="block"&&l!=="accent"?n.html`<img src=${wr[l]} alt="" width="12" height="12" />`:vr[l](),p=l==="danger"||l==="warning",d=!!o.live,c=e.slots.has("heading")?e.slot("heading"):o.title?o.title:void 0,m=e.slots.has("default")?e.slot("default"):o.text??n.nothing;return n.html`<div
1985
+ class=${A("moz-callout",{compact:!!o.compact},o.class)}
1954
1986
  data-tone=${l}
1955
- role=${Ee.ifDefined(a?d?"alert":"status":void 0)}
1956
- aria-live=${Ee.ifDefined(a?d?"assertive":"polite":void 0)}
1957
- aria-atomic=${Ee.ifDefined(a?"true":void 0)}
1958
- style=${ee.styleMap(be(o.style))}
1959
- ${he(n)}
1987
+ data-mode=${i}
1988
+ role=${$e.ifDefined(d?p?"alert":"status":void 0)}
1989
+ aria-live=${$e.ifDefined(d?p?"assertive":"polite":void 0)}
1990
+ aria-atomic=${$e.ifDefined(d?"true":void 0)}
1991
+ style=${j.styleMap(he(o.style))}
1992
+ ${ce(s)}
1960
1993
  >
1961
- ${o.hideIcon?s.nothing:s.html`<span class="moz-callout-icon"
1962
- >${e.slots.has("icon")?e.slot("icon"):yr[l]()}</span
1994
+ ${o.hideIcon?n.nothing:n.html`<span class="moz-callout-icon"
1995
+ >${e.slots.has("icon")?e.slot("icon"):r}</span
1963
1996
  >`}
1964
1997
  <div class="moz-callout-body">
1965
- ${i!==void 0?s.html`<div class="moz-callout-title">${i}</div>`:s.nothing}
1966
- <div class="moz-callout-content">${c}</div>
1998
+ ${c!==void 0?n.html`<div class="moz-callout-title">${c}</div>`:n.nothing}
1999
+ <div class="moz-callout-content">${m}</div>
1967
2000
  </div>
1968
- ${o.dismissible?s.html`<button
2001
+ ${o.dismissible?n.html`<button
1969
2002
  type="button"
1970
2003
  class="moz-callout-close"
1971
2004
  aria-label=${o.dismissLabel||e.locale.Callout.dismiss}
1972
2005
  @click=${t}
1973
2006
  >
1974
- ${an()}
1975
- </button>`:s.nothing}
1976
- </div>`}}}}),Sr={name:"MozCallout",core:cn,booleanProps:["compact","dismissible","hideIcon","live"],props:["tone","title","text","dismissible","dismissLabel","hideIcon","compact","live"],emits:["dismiss"],slots:["icon","heading","default"],expose:!1,syncUpdate:!0},un=["info","success","warning","danger","neutral"],pn=["top","top-right","top-left","bottom","bottom-right","bottom-left"],kr=new Set(["tone","title","body","time","datetime","dismissible","closeLabel","duration","pauseOnHover","exitDuration","position","inline","onSelect","onDismiss","class","style"]),Er={info:ao,success:sn,warning:nn,danger:ln,neutral:rn};function Pr(e){return typeof e=="string"&&un.includes(e)?e:"info"}function co(e){return typeof e=="string"&&pn.includes(e)?e:"bottom-right"}function Ho(e){const t=document.querySelector(`.moz-notification-stack[data-position="${e}"]`);if(t)return t;const o=document.createElement("div");return o.className=`moz-notification-stack moz-notification-stack--${e}`,o.setAttribute("data-position",e),document.body.appendChild(o),o}const Lo=$e({name:"moz-notification-card",defaults:{tone:"info",dismissible:!0,duration:5e3,pauseOnHover:!0,exitDuration:150,position:"bottom-right",inline:!1},setup(e){let t=!1,o=!1,n=!1,l=null,d=null;const a=()=>{o||(o=!0,l&&l.stop(),t=!1,e.requestUpdate(),d=setTimeout(()=>{var g,h;d=null,(h=(g=e.props).onDismiss)==null||h.call(g),n=!0,e.requestUpdate()},e.props.exitDuration??150))},f=()=>{t=!0,e.requestUpdate();const g=e.props.duration;g&&g>0&&(l=new Eo(a,g))};let i=!1,c=!1,r=!1;const u=()=>{if(!e.props.pauseOnHover||!l||o)return;const g=i||c;g!==r&&(r=g,g?l.pause():l.resume())},p=g=>{i=g,u()},y=()=>{c=!0,u()},L=g=>{const h=g.relatedTarget;h&&g.currentTarget.contains(h)||(c=!1,u())},D=()=>{const g=e.props.onSelect;typeof g=="function"&&(g(),e.props.dismissible&&a())},P=g=>{g.key!=="Enter"&&g.key!==" "||(g.preventDefault(),D())};e.props.inline||Ho(co(e.props.position)),e.onCleanup(()=>{l&&l.stop(),d&&clearTimeout(d)});const E=()=>{if(n)return s.nothing;const g=e.props,h=Pr(g.tone),C=h==="danger",k=typeof g.onSelect=="function",Z=e.slots.has("heading")?e.slot("heading"):g.title?g.title:void 0,W=e.slots.has("description")?e.slot("description"):g.body?g.body:void 0;return s.html`<div
2007
+ ${i==="block"?Ts():n.html`<img src=${yr} alt="" width="12" height="12" />`}
2008
+ </button>`:n.nothing}
2009
+ </div>`}}}}),Cr={name:"MozCallout",core:Rs,booleanProps:["compact","dismissible","hideIcon","live"],props:["tone","title","text","dismissible","dismissLabel","hideIcon","compact","live","mode"],emits:["dismiss"],slots:["icon","heading","default"],expose:!1,syncUpdate:!0},Ds=["info","success","warning","danger","neutral"],Vs=["top","top-right","top-left","bottom","bottom-right","bottom-left"],$r=new Set(["tone","title","body","time","datetime","dismissible","closeLabel","duration","pauseOnHover","exitDuration","position","inline","onSelect","onDismiss","class","style"]),Sr={info:yo,success:xs,warning:Ls,danger:zs,neutral:Ps};function kr(e){return typeof e=="string"&&Ds.includes(e)?e:"info"}function bo(e){return typeof e=="string"&&Vs.includes(e)?e:"bottom-right"}function hn(e){const t=document.querySelector(`.moz-notification-stack[data-position="${e}"]`);if(t)return t;const o=document.createElement("div");return o.className=`moz-notification-stack moz-notification-stack--${e}`,o.setAttribute("data-position",e),document.body.appendChild(o),o}const qo=ye({name:"moz-notification-card",defaults:{tone:"info",dismissible:!0,duration:5e3,pauseOnHover:!0,exitDuration:150,position:"bottom-right",inline:!1},setup(e){let t=!1,o=!1,s=!1,l=null,i=null;const r=()=>{o||(o=!0,l&&l.stop(),t=!1,e.requestUpdate(),i=setTimeout(()=>{var f,a;i=null,(a=(f=e.props).onDismiss)==null||a.call(f),s=!0,e.requestUpdate()},e.props.exitDuration??150))},p=()=>{t=!0,e.requestUpdate();const f=e.props.duration;f&&f>0&&(l=new _o(r,f))};let d=!1,b=!1,c=!1;const m=()=>{if(!e.props.pauseOnHover||!l||o)return;const f=d||b;f!==c&&(c=f,f?l.pause():l.resume())},u=f=>{d=f,m()},k=()=>{b=!0,m()},x=f=>{const a=f.relatedTarget;a&&f.currentTarget.contains(a)||(b=!1,m())},S=()=>{const f=e.props.onSelect;typeof f=="function"&&(f(),e.props.dismissible&&r())},L=f=>{f.key!=="Enter"&&f.key!==" "||(f.preventDefault(),S())};e.props.inline||hn(bo(e.props.position)),e.onCleanup(()=>{l&&l.stop(),i&&clearTimeout(i)});const M=()=>{if(s)return n.nothing;const f=e.props,a=kr(f.tone),h=a==="danger",$=typeof f.onSelect=="function",_=e.slots.has("heading")?e.slot("heading"):f.title?f.title:void 0,O=e.slots.has("description")?e.slot("description"):f.body?f.body:void 0;return n.html`<div
1977
2010
  data-testid="notification-card"
1978
- ${he(ye(g,kr))}
1979
- class=${V("moz-notification-card",{"is-selectable":k},g.class)}
1980
- data-tone=${h}
1981
- role=${C?"alert":"status"}
1982
- aria-live=${C?"assertive":"polite"}
2011
+ ${ce(ge(f,$r))}
2012
+ class=${A("moz-notification-card",{"is-selectable":$},f.class)}
2013
+ data-tone=${a}
2014
+ role=${h?"alert":"status"}
2015
+ aria-live=${h?"assertive":"polite"}
1983
2016
  aria-atomic="true"
1984
- style=${ee.styleMap({...be(g.style),...t?{}:{display:"none"}})}
1985
- @mouseenter=${()=>p(!0)}
1986
- @mouseleave=${()=>p(!1)}
1987
- @focusin=${y}
1988
- @focusout=${L}
2017
+ style=${j.styleMap({...he(f.style),...t?{}:{display:"none"}})}
2018
+ @mouseenter=${()=>u(!0)}
2019
+ @mouseleave=${()=>u(!1)}
2020
+ @focusin=${k}
2021
+ @focusout=${x}
1989
2022
  >
1990
2023
  <span class="moz-notification-card-icon"
1991
- >${e.slots.has("avatar")?e.slot("avatar"):Er[h]()}</span
2024
+ >${e.slots.has("avatar")?e.slot("avatar"):Sr[a]()}</span
1992
2025
  >
1993
2026
  <div class="moz-notification-card-main">
1994
2027
  <div
1995
2028
  class="moz-notification-card-content"
1996
- role=${Ee.ifDefined(k?"button":void 0)}
1997
- tabindex=${Ee.ifDefined(k?"0":void 0)}
1998
- @click=${D}
1999
- @keydown=${k?P:s.nothing}
2029
+ role=${$e.ifDefined($?"button":void 0)}
2030
+ tabindex=${$e.ifDefined($?"0":void 0)}
2031
+ @click=${S}
2032
+ @keydown=${$?L:n.nothing}
2000
2033
  >
2001
- ${Z!==void 0?s.html`<div class="moz-notification-card-heading">${Z}</div>`:s.nothing}
2002
- ${W!==void 0?s.html`<div class="moz-notification-card-description">${W}</div>`:s.nothing}
2003
- ${g.time?s.html`<time class="moz-notification-card-time" datetime=${Ee.ifDefined(g.datetime||void 0)}
2004
- >${g.time}</time
2005
- >`:s.nothing}
2034
+ ${_!==void 0?n.html`<div class="moz-notification-card-heading">${_}</div>`:n.nothing}
2035
+ ${O!==void 0?n.html`<div class="moz-notification-card-description">${O}</div>`:n.nothing}
2036
+ ${f.time?n.html`<time class="moz-notification-card-time" datetime=${$e.ifDefined(f.datetime||void 0)}
2037
+ >${f.time}</time
2038
+ >`:n.nothing}
2006
2039
  </div>
2007
- ${e.slots.has("actions")?s.html`<div class="moz-notification-card-actions">${e.slot("actions")}</div>`:s.nothing}
2040
+ ${e.slots.has("actions")?n.html`<div class="moz-notification-card-actions">${e.slot("actions")}</div>`:n.nothing}
2008
2041
  </div>
2009
- ${g.dismissible?s.html`<button
2042
+ ${f.dismissible?n.html`<button
2010
2043
  type="button"
2011
2044
  class="moz-notification-card-close"
2012
- aria-label=${g.closeLabel||e.locale.Notification.close}
2013
- @click=${a}
2045
+ aria-label=${f.closeLabel||e.locale.Notification.close}
2046
+ @click=${r}
2014
2047
  >
2015
- ${an()}
2016
- </button>`:s.nothing}
2017
- </div>`};return{api:{dismiss:a,isClosing:()=>o},onMounted(){f()},getPortalContainer:()=>e.props.inline?null:Ho(co(e.props.position)),renderPortal(){return e.props.inline?s.nothing:E()},render(){return e.props.inline?E():s.nothing}}}}),Lr=new Set(["title","body","time","datetime","unread","onSelect","class","style"]),hn=$e({name:"moz-notification-item",defaults:{unread:!1},setup(e){const t=()=>{const o=e.props.onSelect;typeof o=="function"&&o()};return{render(){const o=e.props,n=ye(o,Lr),l=!!o.unread,d=e.slots.has("heading")?e.slot("heading"):o.title?o.title:void 0,a=e.slots.has("description")?e.slot("description"):o.body?o.body:void 0,f=V("moz-notification-item",{"is-unread":l},o.class),i=ee.styleMap(be(o.style)),c=s.html`
2048
+ ${Ts()}
2049
+ </button>`:n.nothing}
2050
+ </div>`};return{api:{dismiss:r,isClosing:()=>o},onMounted(){p()},getPortalContainer:()=>e.props.inline?null:hn(bo(e.props.position)),renderPortal(){return e.props.inline?n.nothing:M()},render(){return e.props.inline?M():n.nothing}}}}),Mr=new Set(["title","body","time","datetime","unread","onSelect","class","style"]),Os=ye({name:"moz-notification-item",defaults:{unread:!1},setup(e){const t=()=>{const o=e.props.onSelect;typeof o=="function"&&o()};return{render(){const o=e.props,s=ge(o,Mr),l=!!o.unread,i=e.slots.has("heading")?e.slot("heading"):o.title?o.title:void 0,r=e.slots.has("description")?e.slot("description"):o.body?o.body:void 0,p=A("moz-notification-item",{"is-unread":l},o.class),d=j.styleMap(he(o.style)),b=n.html`
2018
2051
  <span class="moz-notification-item-header">
2019
- ${d!==void 0?s.html`<span class="moz-notification-item-heading">${d}</span>`:s.nothing}
2020
- ${l?s.html`<span class="moz-notification-item-unread"
2052
+ ${i!==void 0?n.html`<span class="moz-notification-item-heading">${i}</span>`:n.nothing}
2053
+ ${l?n.html`<span class="moz-notification-item-unread"
2021
2054
  ><span class="moz-notification-item-dot" aria-hidden="true"></span
2022
2055
  ><span class="moz-notification-item-sr">${e.locale.Notification.unread}</span></span
2023
- >`:s.nothing}
2024
- ${e.slots.has("meta")?s.html`<span class="moz-notification-item-meta">${e.slot("meta")}</span>`:s.nothing}
2056
+ >`:n.nothing}
2057
+ ${e.slots.has("meta")?n.html`<span class="moz-notification-item-meta">${e.slot("meta")}</span>`:n.nothing}
2025
2058
  </span>
2026
- ${a!==void 0||o.time?s.html`<span class="moz-notification-item-content">
2027
- ${a!==void 0?s.html`<span class="moz-notification-item-description">${a}</span>`:s.nothing}
2028
- ${o.time?s.html`<time class="moz-notification-item-time" datetime=${Ee.ifDefined(o.datetime||void 0)}
2059
+ ${r!==void 0||o.time?n.html`<span class="moz-notification-item-content">
2060
+ ${r!==void 0?n.html`<span class="moz-notification-item-description">${r}</span>`:n.nothing}
2061
+ ${o.time?n.html`<time class="moz-notification-item-time" datetime=${$e.ifDefined(o.datetime||void 0)}
2029
2062
  >${o.time}</time
2030
- >`:s.nothing}
2031
- </span>`:s.nothing}
2032
- `;return typeof o.onSelect=="function"?s.html`<button
2063
+ >`:n.nothing}
2064
+ </span>`:n.nothing}
2065
+ `;return typeof o.onSelect=="function"?n.html`<button
2033
2066
  type="button"
2034
- class=${f}
2067
+ class=${p}
2035
2068
  data-unread=${l?"true":"false"}
2036
- style=${i}
2037
- ${he(n)}
2069
+ style=${d}
2070
+ ${ce(s)}
2038
2071
  @click=${t}
2039
2072
  >
2040
- ${c}
2041
- </button>`:s.html`<div class=${f} data-unread=${l?"true":"false"} style=${i} ${he(n)}>
2042
- ${c}
2043
- </div>`}}}}),Mr=3,gt=[];let xr=0;const zr=e=>{var t;typeof e.remove<"u"?e.remove():(t=e.parentNode)==null||t.removeChild(e)},Ft=e=>e.closing||e.instance.api.isClosing(),St=e=>{Ft(e)||(e.closing=!0,e.instance.api.dismiss())},Tr=(e={})=>({open:(l={},d={})=>{const a={...e,...l},{id:f,max:i,onDismiss:c,...r}=a;if(f){const C=gt.find(k=>k.id===f&&!Ft(k));if(C)return{id:C.id,close:()=>St(C)}}const u=f||`moz-notification-${++xr}`,p=co(r.position),y=typeof i=="number"&&i>0?Math.floor(i):Mr,L=gt.filter(C=>C.position===p&&!Ft(C));for(let C=0;C<=L.length-y;C++)St(L[C]);const D=document.createElement("div");D.style.display="contents",document.body.appendChild(D);let P;const E={...r,position:p,inline:!1,onDismiss:()=>{const C=P?gt.indexOf(P):-1;C!==-1&&gt.splice(C,1),c==null||c(),queueMicrotask(()=>{var k;P==null||P.instance.destroy(),zr(D),(k=d.onRemoved)==null||k.call(d)})}},g=Lo(D,E,(()=>{}),{slots:d.slots,locale:d.locale});P={id:u,position:p,instance:g,closing:!1},gt.push(P);const h=P;return{id:u,close:()=>St(h)}},close:l=>{const d=gt.find(a=>a.id===l&&!Ft(a));d&&St(d)},closeAll:()=>{for(const l of gt.slice())St(l)}}),Ar={name:"MozNotificationCard",core:Lo,booleanProps:["dismissible","inline","pauseOnHover"],props:["tone","title","body","time","datetime","dismissible","closeLabel","duration","pauseOnHover","exitDuration","position","inline","onSelect","onDismiss"],emits:[],slots:["avatar","heading","description","actions"],expose:!1,syncUpdate:!0},Dr={name:"MozNotificationItem",core:hn,booleanProps:["unread"],props:["title","body","time","datetime","unread","onSelect"],emits:[],slots:["heading","description","meta"],expose:!1,syncUpdate:!0};exports.AVATAR_SPEC=pr;exports.BADGE_APPEARANCES=js;exports.BADGE_SIZES=Xs;exports.BADGE_SPEC=vr;exports.BADGE_TONES=Ys;exports.BREADCRUMB_SPEC=Xn;exports.BUTTON_SIZES=Go;exports.BUTTON_SPEC=Wn;exports.CALENDAR_SPEC=Il;exports.CALLOUT_SPEC=Sr;exports.CALLOUT_TONES=dn;exports.CHECKBOX_SPEC=rl;exports.CHIP_APPEARANCES=en;exports.CHIP_SIZES=tn;exports.CHIP_SPEC=br;exports.CHIP_TONES=Js;exports.COLLAPSIBLE_HEIGHT_VAR=Ws;exports.COLLAPSIBLE_SPEC=cr;exports.CONTEXTMENU_SPEC=yi;exports.CONTROLLER_SPEC=Ui;exports.ChromeComponent=Uo;exports.DATEINPUT_SPEC=Fl;exports.DEFAULT_TREE_PROPS=ro;exports.EMPTYSTATE_SPEC=ll;exports.INPUT_SPEC=pl;exports.LABEL_SPEC=Gn;exports.MOZ_BOOLEAN_PROPS=Dn;exports.MULTISELECT_SPEC=ai;exports.NOTIFICATION_CARD_SPEC=Ar;exports.NOTIFICATION_ITEM_SPEC=Dr;exports.NOTIFICATION_POSITIONS=pn;exports.NOTIFICATION_TONES=un;exports.NUMBERINPUT_SPEC=yl;exports.Observable=En;exports.Overlay=Kt;exports.PASSWORDINPUT_SPEC=hl;exports.POPOVER_SPEC=ar;exports.POPUP_SPEC=jl;exports.PortalHost=Nt;exports.RADIO_SPEC=dl;exports.SCROLLAREA_SPEC=fr;exports.SEGMENT_TONES=ls;exports.SELECT_SPEC=oi;exports.SLIDER_SPEC=Pl;exports.SPLITPANE_SPEC=Vi;exports.SlotHost=Wo;exports.TABLESELECT_SPEC=Si;exports.TAB_SPEC=kl;exports.TAGINPUT_SPEC=vi;exports.TEXTAREA_SPEC=fl;exports.TIMEPICKER_SPEC=hi;exports.TOAST_SPEC=tr;exports.TOGGLE_SPEC=Yn;exports.TOOLTIP_SPEC=lr;exports.TREESELECT_SPEC=Di;exports.Timer=Eo;exports.breadcrumbTemplate=bo;exports.buttonTemplate=kt;exports.checkboxTemplate=qt;exports.circleLoader=fo;exports.cn=V;exports.computeTooltipPlacement=Hs;exports.createAvatar=Gs;exports.createBadge=Qs;exports.createBreadCrumb=es;exports.createButton=jo;exports.createCalendar=So;exports.createCallout=cn;exports.createCheckBox=ns;exports.createChip=on;exports.createCollapsible=Ks;exports.createContextMenu=As;exports.createController=Fs;exports.createDateInput=Cs;exports.createEmptyState=ss;exports.createInput=ps;exports.createLabel=Xo;exports.createMultiSelect=Ms;exports.createNotificationCard=Lo;exports.createNotificationItem=hn;exports.createNumberInput=fs;exports.createPasswordInput=hs;exports.createPopover=Us;exports.createPopup=$s;exports.createRadio=is;exports.createScrollArea=Zs;exports.createSelect=Ls;exports.createSlider=ws;exports.createSplitPane=Bs;exports.createTab=vs;exports.createTableSelect=Ds;exports.createTagInput=Ts;exports.createTextArea=ms;exports.createTimePicker=zs;exports.createToast=Po;exports.createToggle=Qo;exports.createTooltip=_s;exports.createTreeSelect=qs;exports.createValidator=Rn;exports.dayjs=Pe;exports.defaultEmptyStateMessages=ts;exports.defineHeadless=$e;exports.dismissLayerCount=Hn;exports.enUS=xn;exports.generateUUID=Mt;exports.iconArrowRight=jn;exports.iconCheckBox=Co;exports.iconCheckBoxChecked=yo;exports.iconCheckboxIndeterminate=$o;exports.iconClose=gs;exports.iconFavorite=vo;exports.iconFavoriteFilled=wo;exports.iconInfo=rs;exports.iconPasswordHidden=as;exports.iconPasswordVisible=ds;exports.jaJP=Tn;exports.koKR=no;exports.labelClass=go;exports.labelTemplate=Xe;exports.normalizeStyle=be;exports.pickRest=ye;exports.pxToRem=Ae;exports.registerDismissLayer=mo;exports.registerForeignLayer=Nn;exports.registerSelfHandledLayer=Gt;exports.shallowEqual=wt;exports.spread=he;exports.toggleTemplate=_t;exports.uniqueId=ot;exports.useNotification=Tr;exports.useToast=er;exports.zhCN=zn;
2073
+ ${b}
2074
+ </button>`:n.html`<div class=${p} data-unread=${l?"true":"false"} style=${d} ${ce(s)}>
2075
+ ${b}
2076
+ </div>`}}}}),Er=3,bt=[];let xr=0;const Lr=e=>{var t;typeof e.remove<"u"?e.remove():(t=e.parentNode)==null||t.removeChild(e)},Zt=e=>e.closing||e.instance.api.isClosing(),zt=e=>{Zt(e)||(e.closing=!0,e.instance.api.dismiss())},zr=(e={})=>({open:(l={},i={})=>{const r={...e,...l},{id:p,max:d,onDismiss:b,...c}=r;if(p){const h=bt.find($=>$.id===p&&!Zt($));if(h)return{id:h.id,close:()=>zt(h)}}const m=p||`moz-notification-${++xr}`,u=bo(c.position),k=typeof d=="number"&&d>0?Math.floor(d):Er,x=bt.filter(h=>h.position===u&&!Zt(h));for(let h=0;h<=x.length-k;h++)zt(x[h]);const S=document.createElement("div");S.style.display="contents",document.body.appendChild(S);let L;const M={...c,position:u,inline:!1,onDismiss:()=>{const h=L?bt.indexOf(L):-1;h!==-1&&bt.splice(h,1),b==null||b(),queueMicrotask(()=>{var $;L==null||L.instance.destroy(),Lr(S),($=i.onRemoved)==null||$.call(i)})}},f=qo(S,M,(()=>{}),{slots:i.slots,locale:i.locale});L={id:m,position:u,instance:f,closing:!1},bt.push(L);const a=L;return{id:m,close:()=>zt(a)}},close:l=>{const i=bt.find(r=>r.id===l&&!Zt(r));i&&zt(i)},closeAll:()=>{for(const l of bt.slice())zt(l)}}),Pr={name:"MozNotificationCard",core:qo,booleanProps:["dismissible","inline","pauseOnHover"],props:["tone","title","body","time","datetime","dismissible","closeLabel","duration","pauseOnHover","exitDuration","position","inline","onSelect","onDismiss"],emits:[],slots:["avatar","heading","description","actions"],expose:!1,syncUpdate:!0},Tr={name:"MozNotificationItem",core:Os,booleanProps:["unread"],props:["title","body","time","datetime","unread","onSelect"],emits:[],slots:["heading","description","meta"],expose:!1,syncUpdate:!0},Ar="1.61.0",Fo={"arrow-down":[["path",{d:"M12 5v14"}],["path",{d:"m19 12-7 7-7-7"}]],"arrow-up":[["path",{d:"m5 12 7-7 7 7"}],["path",{d:"M12 19V5"}]],"book-open":[["path",{d:"M12 5v16"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z"}]],bot:[["path",{d:"M12 8V4H8"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}],["path",{d:"M2 14h2"}],["path",{d:"M20 14h2"}],["path",{d:"M15 13v2"}],["path",{d:"M9 13v2"}]],brain:[["path",{d:"M12 18V5"}],["path",{d:"M15 13a4.17 4.17 0 01-3-4 4.17 4.17 0 01-3 4"}],["path",{d:"M17.707 6.294A3 3 0 1012 5a3 3 0 10-5.707 1.294"}],["path",{d:"M17.996 5.125a4 4 0 012.526 5.77"}],["path",{d:"M18 18a4 4 0 002-7.465"}],["path",{d:"M19.967 17.482a4 4 0 11-7.967.517 4 4 0 11-7.967-.517"}],["path",{d:"M6 18a4 4 0 01-2-7.465"}],["path",{d:"M6.004 5.125a4 4 0 00-2.526 5.77"}]],calendar:[["path",{d:"M8 2v3"}],["path",{d:"M16 2v3"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}],["path",{d:"M3 9h18"}]],"calendar-clock":[["path",{d:"M16 14v2.2l1.6 1"}],["path",{d:"M16 2v3"}],["path",{d:"M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338"}],["path",{d:"M3 9h5.859"}],["path",{d:"M8 2v3"}],["circle",{cx:"16",cy:"16",r:"6"}]],"chart-column":[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16"}],["path",{d:"M18 17V9"}],["path",{d:"M13 17V5"}],["path",{d:"M8 17v-3"}]],"chart-network":[["path",{d:"m13.11 7.664 1.78 2.672"}],["path",{d:"m14.162 12.788-3.324 1.424"}],["path",{d:"m20 4-6.06 1.515"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16"}],["circle",{cx:"12",cy:"6",r:"2"}],["circle",{cx:"16",cy:"12",r:"2"}],["circle",{cx:"9",cy:"15",r:"2"}]],check:[["path",{d:"M20 6 9 17l-5-5"}]],"chevron-down":[["path",{d:"m6 9 6 6 6-6"}]],"chevron-left":[["path",{d:"m15 18-6-6 6-6"}]],"chevron-right":[["path",{d:"m9 18 6-6-6-6"}]],"circle-alert":[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16"}]],"circle-check":[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m16 9-5.5 5.5L8 12"}]],code:[["path",{d:"m16 18 6-6-6-6"}],["path",{d:"m8 6-6 6 6 6"}]],copy:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]],database:[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5"}],["path",{d:"M3 12A9 3 0 0 0 21 12"}]],download:[["path",{d:"M12 15V3"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}],["path",{d:"m7 10 5 5 5-5"}]],ellipsis:[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]],file:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}]],"file-code":[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 12.5 8 15l2 2.5"}],["path",{d:"m14 12.5 2 2.5-2 2.5"}]],"file-image":[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["circle",{cx:"10",cy:"12",r:"2"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22"}]],"file-pen-line":[["path",{d:"M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z"}],["path",{d:"M14.487 7.858A1 1 0 0 1 14 7V2"}],["path",{d:"M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516"}],["path",{d:"M8 18h1"}]],"file-plus":[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M9 15h6"}],["path",{d:"M12 18v-6"}]],"file-spreadsheet":[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M8 13h2"}],["path",{d:"M14 13h2"}],["path",{d:"M8 17h2"}],["path",{d:"M14 17h2"}]],"file-text":[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 9H8"}],["path",{d:"M16 13H8"}],["path",{d:"M16 17H8"}]],folder:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"}]],"folder-git-2":[["path",{d:"M18 19a5 5 0 0 1-5-5v8"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5"}],["circle",{cx:"13",cy:"12",r:"2"}],["circle",{cx:"20",cy:"19",r:"2"}]],"folder-open":[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"}]],"folder-plus":[["path",{d:"M12 10v6"}],["path",{d:"M9 13h6"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"}]],"folder-tree":[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3"}]],"gallery-vertical-end":[["path",{d:"M7 2h10"}],["path",{d:"M5 6h14"}],["rect",{width:"18",height:"12",x:"3",y:"10",rx:"2"}]],"git-branch":[["path",{d:"M15 6a9 9 0 0 0-9 9V3"}],["circle",{cx:"18",cy:"6",r:"3"}],["circle",{cx:"6",cy:"18",r:"3"}]],"git-fork":[["circle",{cx:"12",cy:"18",r:"3"}],["circle",{cx:"6",cy:"6",r:"3"}],["circle",{cx:"18",cy:"6",r:"3"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9"}],["path",{d:"M12 12v3"}]],"git-graph":[["circle",{cx:"5",cy:"6",r:"3"}],["path",{d:"M5 9v6"}],["circle",{cx:"5",cy:"18",r:"3"}],["path",{d:"M12 3v18"}],["circle",{cx:"19",cy:"6",r:"3"}],["path",{d:"M16 15.7A9 9 0 0 0 19 9"}]],"git-pull-request":[["circle",{cx:"18",cy:"18",r:"3"}],["circle",{cx:"6",cy:"6",r:"3"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21"}]],"grid-2x2":[["path",{d:"M12 3v18"}],["path",{d:"M3 12h18"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}]],history:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}],["path",{d:"M3 3v5h5"}],["path",{d:"M12 7v5l4 2"}]],house:[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}]],image:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}],["circle",{cx:"9",cy:"9",r:"2"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"}]],images:[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2"}]],info:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 16v-4"}],["path",{d:"M12 8h.01"}]],layers:[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"}]],"layout-grid":[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"}]],"layout-list":[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"}],["path",{d:"M14 4h7"}],["path",{d:"M14 9h7"}],["path",{d:"M14 15h7"}],["path",{d:"M14 20h7"}]],link:[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}]],list:[["path",{d:"M3 5h.01"}],["path",{d:"M3 12h.01"}],["path",{d:"M3 19h.01"}],["path",{d:"M8 5h13"}],["path",{d:"M8 12h13"}],["path",{d:"M8 19h13"}]],lock:[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4"}]],menu:[["path",{d:"M4 5h16"}],["path",{d:"M4 12h16"}],["path",{d:"M4 19h16"}]],"message-square":[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"}]],monitor:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21"}]],moon:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"}]],network:[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"}],["path",{d:"M12 12V8"}]],"notebook-pen":[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4"}],["path",{d:"M2 6h4"}],["path",{d:"M2 10h4"}],["path",{d:"M2 14h4"}],["path",{d:"M2 18h4"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z"}]],"panel-left-close":[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}],["path",{d:"m16 15-3-3 3-3"}]],"panel-left-open":[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}],["path",{d:"m14 9 3 3-3 3"}]],"panel-right-close":[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M15 3v18"}],["path",{d:"m8 9 3 3-3 3"}]],"panel-right-open":[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M15 3v18"}],["path",{d:"m10 15-3-3 3-3"}]],"panels-top-left":[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M3 9h18"}],["path",{d:"M9 21V9"}]],paperclip:[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"}]],pencil:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]],pin:[["path",{d:"M12 17v5"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"}]],"pin-off":[["path",{d:"M12 17v5"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89"}],["path",{d:"m2 2 20 20"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11"}]],plus:[["path",{d:"M5 12h14"}],["path",{d:"M12 5v14"}]],"redo-2":[["path",{d:"m15 14 5-5-5-5"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13"}]],"refresh-cw":[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}],["path",{d:"M8 16H3v5"}]],"rotate-ccw":[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}],["path",{d:"M3 3v5h5"}]],search:[["path",{d:"m21 21-4.34-4.34"}],["circle",{cx:"11",cy:"11",r:"8"}]],server:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18"}]],settings:[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"}],["circle",{cx:"12",cy:"12",r:"3"}]],sparkles:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"}],["path",{d:"M20 2v4"}],["path",{d:"M22 4h-4"}],["circle",{cx:"4",cy:"20",r:"2"}]],square:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}]],"square-pen":[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z"}]],"sticky-note":[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5"}]],sun:[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M12 2v2"}],["path",{d:"M12 20v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"m17.66 17.66 1.41 1.41"}],["path",{d:"M2 12h2"}],["path",{d:"M20 12h2"}],["path",{d:"m6.34 17.66-1.41 1.41"}],["path",{d:"m19.07 4.93-1.41 1.41"}]],table:[["path",{d:"M12 3v18"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M3 9h18"}],["path",{d:"M3 15h18"}]],tag:[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor"}]],terminal:[["path",{d:"M12 19h8"}],["path",{d:"m4 17 6-6-6-6"}]],"trash-2":[["path",{d:"M10 11v6"}],["path",{d:"M14 11v6"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}],["path",{d:"M3 6h18"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}]],"triangle-alert":[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}],["path",{d:"M12 9v4"}],["path",{d:"M12 17h.01"}]],"undo-2":[["path",{d:"M9 14 4 9l5-5"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11"}]],upload:[["path",{d:"M12 3v12"}],["path",{d:"m17 8-5-5-5 5"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}]],waypoints:[["path",{d:"m10.586 5.414-5.172 5.172"}],["path",{d:"m18.586 13.414-5.172 5.172"}],["path",{d:"M6 12h12"}],["circle",{cx:"12",cy:"20",r:"2"}],["circle",{cx:"12",cy:"4",r:"2"}],["circle",{cx:"20",cy:"12",r:"2"}],["circle",{cx:"4",cy:"12",r:"2"}]],workflow:[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2"}]],wrench:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z"}]],x:[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]],zap:[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z"}]]},_s=Fo,Ir=Object.freeze(Object.keys(Fo).sort()),Jt=16,No=1.5;function Ho(e){return typeof e=="string"&&Object.prototype.hasOwnProperty.call(Fo,e)}function Uo(e){return typeof e=="string"&&e.trim()?e:void 0}function Bs({size:e,strokeWidth:t,title:o}={}){const s=Uo(o);return{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:String(e??Jt),height:String(e??Jt),fill:"none",stroke:"currentColor","stroke-width":String(t??No),"stroke-linecap":"round","stroke-linejoin":"round",...s?{role:"img","aria-label":s}:{"aria-hidden":"true",focusable:"false"}}}function Rr(e,t){switch(e){case"path":return n.svg`<path ${ce(t)}></path>`;case"circle":return n.svg`<circle ${ce(t)}></circle>`;case"rect":return n.svg`<rect ${ce(t)}></rect>`;case"line":return n.svg`<line ${ce(t)}></line>`;case"ellipse":return n.svg`<ellipse ${ce(t)}></ellipse>`;case"polyline":return n.svg`<polyline ${ce(t)}></polyline>`;case"polygon":return n.svg`<polygon ${ce(t)}></polygon>`;default:return n.nothing}}function Wo(e,t={},o={}){if(!Ho(e))return n.nothing;const s=Uo(t.title);return n.svg`<svg ${ce({...Bs(t),...o})} class=${t.class||n.nothing} style=${t.style?j.styleMap(he(t.style)):n.nothing}>${s?n.svg`<title>${s}</title>`:n.nothing}${_s[e].map(([l,i])=>Rr(l,i))}</svg>`}const Dr=new Set(["name","size","strokeWidth","title","class","style"]),qs=ye({name:"moz-icon",defaults:{size:Jt,strokeWidth:No},setup(e){return{render(){const t=e.props;return Wo(t.name,{size:t.size,strokeWidth:t.strokeWidth,title:t.title,class:A(t.class),style:t.style},ge(t,Dr))}}}}),Vr={name:"MozIcon",core:qs,props:["name","size","strokeWidth","title"],emits:[]},Or=["md","sm"],_r=new Set(["icon","label","size","shortcut","tooltipPlacement","tooltipClassName","nativeType","loading","disabled","pressed","class","style"]),Nt=new Set;let Br=0;const qr=["top","bottom","left","right"],Fr=(()=>{});function St(e,t){return o=>{typeof e=="function"&&e(o),t(o)}}function Ht(e){return typeof e=="string"?e:""}const Ko=ye({name:"moz-icon-button",defaults:{size:"md",loading:!1,disabled:!1},setup(e){const t=`moz-icon-btn-tip-${++Br}`;let o=null,s=!1,l=null,i=!1,r=!1,p=!1;const d=()=>Ht(e.props.label),b=()=>d().trim().length>0,c=()=>{const a=Ht(e.props.shortcut);return n.html`${d()}${a?n.html`<kbd class="moz-tooltip-kbd">${a}</kbd>`:n.nothing}`},m=a=>{const h=()=>n.render(c(),a);return h(),{update:h,dispose:()=>n.render(n.nothing,a)}},u=()=>{const a=e.props.tooltipPlacement;return{open:s,anchor:l,side:qr.includes(a)?a:"top",tooltipId:t,class:A("moz-icon-btn-tooltip",Ht(e.props.tooltipClassName)||void 0)}},k=a=>{if(!o){if(!s)return;o=no(document.createElement("div"),u(),Fr,{slots:{content:m}});return}o.update(u(),{replace:!0,sync:a})},x=a=>{a.key==="Escape"&&M()},S=()=>{s&&(s=!1,Nt.delete(S),document.removeEventListener("keydown",x),k(!0),e.requestUpdate())},L=a=>{if(a instanceof HTMLElement&&(l=a),!(s||p||!l||!b())){for(const h of Array.from(Nt))h();s=!0,Nt.add(S),document.addEventListener("keydown",x),k(!0),e.requestUpdate()}},M=()=>{p=i||r,S()},f=()=>{!i&&!r&&(p=!1)};return e.onCleanup(()=>{Nt.delete(S),document.removeEventListener("keydown",x),o==null||o.destroy(),o=null,l=null}),{render(){const a=e.props,h=ge(a,_r),$=d();s&&!b()?queueMicrotask(S):s&&k(!1);const _=[Ht(h["aria-describedby"]),s?t:""].filter(Boolean).join(" "),O={...h,"aria-label":$.trim()?$:h["aria-label"],"aria-describedby":_||void 0,"data-state":s?"open":"closed",onMouseEnter:St(h.onMouseEnter,Q=>{i=!0,L(Q.currentTarget)}),onMouseLeave:St(h.onMouseLeave,()=>{i=!1,f(),S()}),onFocus:St(h.onFocus,Q=>{r=!0,L(Q.currentTarget)}),onBlur:St(h.onBlur,()=>{r=!1,f(),S()}),onPointerDown:St(h.onPointerDown,M),onKeyDown:St(h.onKeyDown,Q=>{(Q.key==="Escape"||Q.key==="Enter"||Q.key===" ")&&M()})},U=a.size==="sm"?"sm":"md";return Ct({type:"icon",nativeType:a.nativeType,loading:a.loading,disabled:a.disabled,pressed:a.pressed,class:A("moz-icon-btn",{"moz-icon-btn--sm":U==="sm"},a.class),style:a.style},{onClick:Q=>e.emit("click",Q),icon:Ho(a.icon)?Wo(a.icon,{class:"moz-icon-btn-glyph"}):n.nothing,rest:O})}}}}),Nr={name:"MozIconButton",core:Ko,booleanProps:["disabled","loading","pressed"],props:["icon","label","size","shortcut","tooltipPlacement","tooltipClassName","nativeType","loading","disabled","pressed"],emits:["click"]},Zo=20;function Fs(e){return typeof e=="number"&&Number.isFinite(e)&&e>0?e:Zo}function Ns(e,t){var o;return typeof e=="string"&&e.trim()?e:((o=t==null?void 0:t.Spinner)==null?void 0:o.label)??It.Spinner.label}const Hr=new Set(["size","label","class","style"]),Ur=()=>n.svg`<svg class="moz-spinner__svg" viewBox="0 0 24 24" fill="none" aria-hidden="true" focusable="false">
2077
+ <circle class="moz-spinner__track" cx="12" cy="12" r="9" stroke="currentColor" stroke-width="2.5"></circle>
2078
+ <path class="moz-spinner__arc" d="M12 3a9 9 0 0 1 9 9" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"></path>
2079
+ </svg>`,Hs=ye({name:"moz-spinner",defaults:{size:Zo},setup(e){return{render(){const t=e.props;return n.html`<span
2080
+ class=${A("moz-spinner",t.class)}
2081
+ role="status"
2082
+ aria-live="polite"
2083
+ aria-atomic="true"
2084
+ aria-label=${Ns(t.label,e.locale)}
2085
+ style=${j.styleMap({"--moz-spinner-size":`${Fs(t.size)}px`,...he(t.style)})}
2086
+ ${ce(ge(t,Hr))}
2087
+ >${Ur()}</span>`}}}}),Wr={name:"MozSpinner",core:Hs,props:["size","label"],emits:[],slots:[],expose:!1},Kr=new Set(["open","defaultOpen","title","meta","marker","disabled","class","style"]),Us=ye({name:"moz-disclosure",defaults:{defaultOpen:!1,marker:!0,disabled:!1},setup(e){const t=Qe("moz-disclosure-body-");let o=!!e.props.defaultOpen;const s=()=>e.controlled("open")&&e.props.open!==void 0?!!e.props.open:o,l=()=>{if(e.props.disabled)return;const i=!s();e.controlled("open")&&e.props.open!==void 0||(o=i,e.requestUpdate()),e.emit("update:open",i)};return{render(){const i=e.props,r=s(),p=r?"open":"closed",d=e.slots.has("title")?e.slot("title"):i.title??"",b=e.slots.has("meta")||i.meta!=null&&i.meta!=="",c=e.slots.has("meta")?e.slot("meta"):i.meta,m=n.html`${i.marker!==!1?n.html`<span class="moz-disclosure__marker" data-open=${r?"true":n.nothing} aria-hidden="true"></span>`:n.nothing}<span class="moz-disclosure__title">${d}</span>${b?n.html`<span class="moz-disclosure__meta">${c}</span>`:n.nothing}`;return n.html`<section
2088
+ class=${A("moz-disclosure",i.class)}
2089
+ data-state=${p}
2090
+ data-disabled=${i.disabled?"":n.nothing}
2091
+ style=${j.styleMap(he(i.style))}
2092
+ ${ce(ge(i,Kr))}
2093
+ >
2094
+ ${Ct({type:"text",class:"moz-disclosure__summary",disabled:i.disabled},{onClick:l,content:m,rest:{"aria-expanded":r?"true":"false","aria-controls":t,"data-state":p}})}
2095
+ <div class="moz-disclosure__body" id=${t} data-state=${p} ?hidden=${!r}>${e.slot("default")}</div>
2096
+ </section>`}}}}),Zr={name:"MozDisclosure",core:Us,booleanProps:["defaultOpen","disabled","marker","open"],props:["open","defaultOpen","title","meta","marker","disabled"],emits:["update:open"],slots:["title","meta","default"],models:{open:{prop:"open",event:"update:open"}},expose:!1},Ws="moz-button moz-default-button moz-link",Gr=new Set(["href","target","rel","download","text","class","style"]);function Yr(e){return e===!0?"":typeof e=="string"?e:void 0}const Ks=ye({name:"moz-link",setup(e){return{render(){const t=e.props,o=e.slots.has("default")?e.slot("default"):t.text??n.nothing;return n.html`<a
2097
+ class=${A(Ws,t.class)}
2098
+ href=${$e.ifDefined(t.href)}
2099
+ target=${$e.ifDefined(t.target)}
2100
+ rel=${$e.ifDefined(t.rel)}
2101
+ download=${$e.ifDefined(Yr(t.download))}
2102
+ style=${j.styleMap(he(t.style))}
2103
+ ${ce(ge(t,Gr))}
2104
+ >${o}</a>`}}}}),jr={name:"MozLink",core:Ks,props:["href","target","rel","download","text"],emits:[],slots:["default"],expose:!1},Xr=new Set(["title","value","unit","footer","valueClass","valueAlign","titleAlign","class","style"]);function Gt(e){return e!=null&&e!==""&&e!==!1}const Zs=ye({name:"moz-metric-card",defaults:{valueAlign:"left",titleAlign:"left"},setup(e){const t=(o,s)=>e.slots.has(o)?e.slot(o):Gt(s)?String(s):n.nothing;return{render(){const o=e.props,s=e.slots.has("unit")||Gt(o.unit);return n.html`<div
2105
+ class=${A("moz-metric-card",o.class)}
2106
+ style=${j.styleMap(he(o.style))}
2107
+ ${ce(ge(o,Xr))}
2108
+ >
2109
+ <label class="moz-metric-card__title" style=${j.styleMap({textAlign:o.titleAlign??"left"})}>${t("title",o.title)}</label>
2110
+ <strong class=${A("moz-metric-card__value",o.valueClass)} style=${j.styleMap({textAlign:o.valueAlign??"left"})}
2111
+ >${t("value",o.value)}${s?n.html`<small class="moz-metric-card__unit">${t("unit",o.unit)}</small>`:n.nothing}</strong
2112
+ >
2113
+ ${e.slots.has("footer")?e.slot("footer"):Gt(o.footer)?n.html`<small class="moz-metric-card__footer">${o.footer}</small>`:n.nothing}
2114
+ </div>`}}}}),Qr={name:"MozMetricCard",core:Zs,props:["title","value","unit","footer","valueClass","valueAlign","titleAlign"],emits:[],slots:["title","value","unit","footer"],expose:!1},Gs=["linear","semicircle","circle"],Jr=new Set(["title","value","unit","range","minLabel","maxLabel","footer","status","shape","level","color","ratio","trackPath","fillPath","trackColor","class","style"]);function Ys(e){const t=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.min(1,Math.max(0,t))}function Co(e){return Gs.includes(e)?e:"semicircle"}function js(e){const t=e==="circle";return{viewBox:t?"0 0 200 200":"0 0 200 128",valueY:t?110:88,minX:t?40:22,maxX:t?160:178,labelY:t?180:124,strokeWidth:16}}function Xs(e,t){const o=typeof t=="string"?t.length*.5:0;return Math.max(12,Math.min(30,140/Math.max(1,e.length+o)/.6))}function Qs(e,t,o){return`${typeof e=="string"&&e?`${e}: `:""}${t}${typeof o=="string"?o:""}`}const Js=ye({name:"moz-gauge-display",defaults:{shape:"semicircle",ratio:0,trackColor:"var(--moz-color-border)"},setup(e){const t=(i,r)=>e.slots.has(i)?e.slot(i):typeof r=="string"&&r?r:n.nothing,o=(i,r)=>e.slots.has(i)||typeof r=="string"&&r!=="",s=(i,r,p,d)=>{const b=js(r);return n.svg`<svg class="moz-gauge-display__svg" viewBox=${b.viewBox} role="img" aria-label=${Qs(i.title,p,i.unit)}>
2115
+ <path d=${i.trackPath??""} fill="none" stroke=${i.trackColor??"var(--moz-color-border)"} stroke-width=${b.strokeWidth} stroke-linecap="round"></path>
2116
+ ${d>0?n.svg`<path class="moz-gauge-display__fill" d=${i.fillPath??""} fill="none" stroke=${i.color??"currentColor"} stroke-width=${b.strokeWidth} stroke-linecap="round"></path>`:n.nothing}
2117
+ <text class="moz-gauge-display__value" x="100" y=${b.valueY} text-anchor="middle" fill="currentColor" font-weight="600" style=${`font-size: ${Xs(p,i.unit)}px`}>${p}<tspan style="font-size: .5em">${i.unit??""}</tspan></text>
2118
+ ${i.minLabel!==void 0?n.svg`<text class="moz-gauge-display__min" x=${b.minX} y=${b.labelY} text-anchor="middle" fill="currentColor" font-size="12">${i.minLabel}</text>`:n.nothing}
2119
+ ${i.maxLabel!==void 0?n.svg`<text class="moz-gauge-display__max" x=${b.maxX} y=${b.labelY} text-anchor="middle" fill="currentColor" font-size="12">${i.maxLabel}</text>`:n.nothing}
2120
+ </svg>`},l=i=>{if(o("status",i.status))return n.html`<span class="moz-gauge-display__status" role="status">${t("status",i.status)}</span>`;const r=Co(i.shape),p=i.value??"",d=Ys(i.ratio),b=o("range",i.range)?n.html`<small class="moz-gauge-display__range">${t("range",i.range)}</small>`:n.nothing;return r==="linear"?n.html`<strong class="moz-gauge-display__linear-value">${p}${i.unit??""}</strong><progress
2121
+ class="moz-gauge-display__bar"
2122
+ aria-label=${p}
2123
+ style=${j.styleMap(i.color?{accentColor:i.color}:{})}
2124
+ max="1"
2125
+ .value=${d}
2126
+ ></progress>${b}`:n.html`${s(i,r,p,d)}${i.minLabel===void 0?b:n.nothing}`};return{render(){const i=e.props;return n.html`<div
2127
+ class=${A("moz-gauge-display",i.class)}
2128
+ data-gauge-shape=${Co(i.shape)}
2129
+ data-gauge-level=${i.level??n.nothing}
2130
+ style=${j.styleMap(he(i.style))}
2131
+ ${ce(ge(i,Jr))}
2132
+ >
2133
+ <label class="moz-gauge-display__title">${t("title",i.title)}</label>
2134
+ <div class="moz-gauge-display__body" data-gauge-body="">${l(i)}</div>
2135
+ ${e.slots.has("footer")?e.slot("footer"):o("footer",i.footer)?n.html`<small class="moz-gauge-display__footer">${i.footer}</small>`:n.nothing}
2136
+ </div>`}}}}),ec={name:"MozGaugeDisplay",core:Js,props:["title","value","unit","range","minLabel","maxLabel","footer","status","shape","level","color","ratio","trackPath","fillPath","trackColor"],emits:[],slots:["title","range","status","footer"],expose:!1},tc=String.raw`\b\d+(?:\.\d+)?\b`,el=String.raw`"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'`,oc={comment:String.raw`--[^\n]*|/\*[\s\S]*?(?:\*/|$)`,string:String.raw`'(?:[^']|'')*(?:'|$)`,ignoreCase:!0,keywords:"select|from|where|group|by|order|having|limit|offset|join|left|right|inner|outer|full|cross|on|as|and|or|not|in|is|null|like|between|exists|case|when|then|else|end|distinct|union|all|insert|into|values|update|set|delete|create|table|view|index|drop|alter|with|over|partition|asc|desc|count|sum|avg|min|max"},mn={comment:"#[^\\n]*",string:String.raw`[rbfRBF]{0,2}(?:"""[\s\S]*?(?:"""|$)|'''[\s\S]*?(?:'''|$)|"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*')`,keywords:"def|class|return|if|elif|else|for|while|in|not|and|or|is|import|from|as|with|try|except|finally|raise|lambda|None|True|False|pass|break|continue|yield|async|await|global|nonlocal"},kt={comment:String.raw`//[^\n]*|/\*[\s\S]*?(?:\*/|$)`,string:String.raw`\`(?:[^\`\\]|\\.)*(?:\`|$)|${el}`,keywords:"const|let|var|function|return|if|else|for|while|do|switch|case|break|continue|new|class|extends|import|export|from|default|async|await|try|catch|finally|throw|typeof|instanceof|in|of|null|undefined|true|false|this|interface|type|enum|implements|public|private|readonly"},nc={comment:"(?!)",string:String.raw`"(?:[^"\\\n]|\\.)*"`,keywords:"true|false|null"},Ut={comment:String.raw`(?<!\S)#[^\n]*`,string:el,keywords:"if|then|else|elif|fi|for|while|until|do|done|case|esac|function|in|return|exit|export|local|echo|cd|set|unset"},tl={sql:oc,python:mn,py:mn,javascript:kt,js:kt,jsx:kt,typescript:kt,ts:kt,tsx:kt,json:nc,bash:Ut,sh:Ut,shell:Ut,zsh:Ut},sc=Object.freeze(Object.keys(tl)),fn=new Map;function lc(e){let t=fn.get(e);return t||(t=new RegExp(`(${e.comment})|(${e.string})|(${tc})|\\b(${e.keywords})\\b`,`g${e.ignoreCase?"i":""}`),fn.set(e,t)),t}const $o={chars:2e4,lines:500};function ic(e){if(e.length>$o.chars)return!0;let t=1;for(let o=e.indexOf(`
2137
+ `);o>=0;o=e.indexOf(`
2138
+ `,o+1))if(++t>$o.lines)return!0;return!1}function ol(e,t=""){if(!e||ic(e))return[{text:e}];const o=[];if(/^(diff|patch)$/i.test(t.trim())){for(const i of e.match(/[^\n]*\n|[^\n]+$/g)??[]){const r=/^@@/.test(i)?"hunk":/^\+(?!\+\+ )/.test(i)?"add":/^-(?!-- )/.test(i)?"del":void 0;o.push(r?{text:i,kind:r}:{text:i})}return o.length?o:[{text:e}]}const s=tl[t.trim().toLowerCase()];if(!s)return[{text:e}];let l=0;for(const i of e.matchAll(lc(s))){const r=i[1]!==void 0?"com":i[2]!==void 0?"str":i[3]!==void 0?"num":"kw",p=i.index??0;p>l&&o.push({text:e.slice(l,p)}),o.push({text:i[0],kind:r}),l=p+i[0].length}return l<e.length&&o.push({text:e.slice(l)}),o}const ac=new Set(["code","language","label","plain","copy","class","style"]),rc=300;function nl(e){return(e==null?void 0:e.CodeBlock)??It.CodeBlock}const sl=ye({name:"moz-code-block",defaults:{code:"",plain:!1,copy:!0},setup(e){let t="",o=!!e.props.plain,s,l=null,i=0;const r=()=>nl(e.locale),p=()=>{const u=e.props.label;return typeof u=="string"&&u.trim()?u:r().label},d=()=>r().copy.replace("{label}",p()),b=async()=>{const u=++i,k=String(e.props.code??"");let x=!1;try{const S=typeof navigator<"u"?navigator.clipboard:void 0;if(!(S!=null&&S.writeText))throw new Error("clipboard unavailable");await S.writeText(k),x=!0}catch{x=!1}u===i&&(t=x?r().copied:r().copyFailed,e.requestUpdate(),e.emit("copy",x))},c=()=>({icon:"copy",label:d(),size:"sm",class:"moz-code-block__copy"}),m=u=>{if(!u){l==null||l.destroy(),l=null;return}l||(l=Ko(u,c(),(k=>{k==="click"&&b()})))};return e.onCleanup(()=>{s&&clearTimeout(s),l==null||l.destroy(),l=null}),{render(){const u=e.props,k=String(u.code??""),x=!!u.plain;x?(o=!0,s&&clearTimeout(s),s=void 0):o&&!s&&(s=setTimeout(()=>{s=void 0,o=!1,e.requestUpdate()},rc));const S=x?null:ol(k,u.language??""),L=u.copy!==!1;L&&l&&l.update(c(),{replace:!0});const M=typeof u.language=="string"?u.language.trim():"";return n.html`<div
2139
+ class=${A("moz-code-block",u.class)}
2140
+ data-plain=${x?"":n.nothing}
2141
+ style=${j.styleMap(he(u.style))}
2142
+ ${ce(ge(u,ac))}
2143
+ >
2144
+ <div class="moz-code-block__head">
2145
+ <span class="moz-code-block__label">${M||p()}</span>
2146
+ ${L?n.html`<span class="moz-code-block__actions" ${Y.ref(m)}></span>`:n.nothing}
2147
+ </div>
2148
+ <pre class="moz-code-block__pre" tabindex="0"><code>${S?S.map(f=>f.kind?n.html`<span class=${A("moz-code-tok",`moz-code-tok--${f.kind}`,{"is-tinting":o})}>${f.text}</span>`:f.text):k}</code></pre>
2149
+ <small class="moz-code-block__status" role="status">${t}</small>
2150
+ </div>`}}}}),cc={name:"MozCodeBlock",core:sl,booleanProps:["copy","plain"],props:["code","language","label","plain","copy"],emits:["copy"],slots:[],expose:!1};exports.AVATAR_SPEC=ar;exports.BADGE_APPEARANCES=bs;exports.BADGE_SIZES=Cs;exports.BADGE_SPEC=pr;exports.BADGE_TONES=ys;exports.BREADCRUMB_SPEC=Hl;exports.BUTTON_SIZES=Cn;exports.BUTTON_SPEC=Ol;exports.CALENDAR_SPEC=Ri;exports.CALLOUT_MODES=Is;exports.CALLOUT_SPEC=Cr;exports.CALLOUT_TONES=As;exports.CHECKBOX_SPEC=Jl;exports.CHIP_APPEARANCES=ks;exports.CHIP_SIZES=Ms;exports.CHIP_SPEC=fr;exports.CHIP_TONES=Ss;exports.CODE_BLOCK_SPEC=cc;exports.CODE_LANGUAGES=sc;exports.CODE_SYNTAX_LIMIT=$o;exports.COLLAPSIBLE_HEIGHT_VAR=fs;exports.COLLAPSIBLE_SPEC=lr;exports.CONTEXTMENU_SPEC=ya;exports.CONTROLLER_SPEC=Na;exports.ChromeComponent=vn;exports.DATEINPUT_SPEC=qi;exports.DEFAULT_TREE_PROPS=wo;exports.DISCLOSURE_SPEC=Zr;exports.EMPTYSTATE_SPEC=Xl;exports.GAUGE_DISPLAY_SPEC=ec;exports.GAUGE_SHAPES=Gs;exports.ICONS=_s;exports.ICON_BUTTON_SIZES=Or;exports.ICON_BUTTON_SPEC=Nr;exports.ICON_DEFAULT_SIZE=Jt;exports.ICON_DEFAULT_STROKE_WIDTH=No;exports.ICON_NAMES=Ir;exports.ICON_SPEC=Vr;exports.INPUT_SPEC=ri;exports.LABEL_SPEC=Bl;exports.LINK_CLASS=Ws;exports.LINK_SPEC=jr;exports.LUCIDE_VERSION=Ar;exports.METRIC_CARD_SPEC=Qr;exports.MOZ_BOOLEAN_PROPS=kl;exports.MULTISELECT_SPEC=ia;exports.NOTIFICATION_CARD_SPEC=Pr;exports.NOTIFICATION_ITEM_SPEC=Tr;exports.NOTIFICATION_POSITIONS=Vs;exports.NOTIFICATION_TONES=Ds;exports.NUMBERINPUT_SPEC=gi;exports.Observable=gl;exports.Overlay=to;exports.POPOVER_SPEC=nr;exports.POPUP_SPEC=Gi;exports.PortalHost=Yt;exports.RADIO_SPEC=ti;exports.SCROLLAREA_SPEC=dr;exports.SEGMENT_TONES=Vn;exports.SELECT_SPEC=ea;exports.SLIDER_SPEC=Ei;exports.SPINNER_DEFAULT_SIZE=Zo;exports.SPINNER_SPEC=Wr;exports.SPLITPANE_SPEC=Ia;exports.SlotHost=wn;exports.TABLESELECT_SPEC=Ca;exports.TAB_SPEC=yi;exports.TAGINPUT_SPEC=fa;exports.TEXTAREA_SPEC=di;exports.TIMEPICKER_SPEC=ua;exports.TOAST_SPEC=Ja;exports.TOGGLE_SPEC=Fl;exports.TOOLTIP_SPEC=er;exports.TREESELECT_SPEC=Ta;exports.Timer=_o;exports.breadcrumbTemplate=Po;exports.buttonTemplate=Ct;exports.checkboxTemplate=Wt;exports.circleLoader=bn;exports.cn=A;exports.codeBlockMessages=nl;exports.computeTooltipPlacement=Un;exports.createAvatar=vs;exports.createBadge=$s;exports.createBreadCrumb=Tn;exports.createButton=xn;exports.createCalendar=Vo;exports.createCallout=Rs;exports.createCheckBox=Dn;exports.createChip=Es;exports.createCodeBlock=sl;exports.createCollapsible=gs;exports.createContextMenu=ls;exports.createController=hs;exports.createDateInput=Kn;exports.createDisclosure=Us;exports.createEmptyState=Rn;exports.createGaugeDisplay=Js;exports.createIcon=qs;exports.createIconButton=Ko;exports.createInput=_n;exports.createLabel=Ln;exports.createLink=Ks;exports.createMetricCard=Zs;exports.createMultiSelect=ts;exports.createNotificationCard=qo;exports.createNotificationItem=Os;exports.createNumberInput=qn;exports.createPopover=ms;exports.createPopup=Yn;exports.createRadio=On;exports.createScrollArea=ws;exports.createSelect=es;exports.createSlider=Wn;exports.createSpinner=Hs;exports.createSplitPane=ps;exports.createTab=Nn;exports.createTableSelect=is;exports.createTagInput=ss;exports.createTextArea=Bn;exports.createTimePicker=ns;exports.createToast=Bo;exports.createToggle=zn;exports.createTooltip=no;exports.createTreeSelect=us;exports.createValidator=xl;exports.dayjs=xe;exports.defaultEmptyStateMessages=An;exports.defineHeadless=ye;exports.dismissLayerCount=Il;exports.enUS=bl;exports.gaugeGeometry=js;exports.gaugeLabel=Qs;exports.gaugeRatio=Ys;exports.gaugeShape=Co;exports.gaugeValueFontSize=Xs;exports.generateUUID=Rt;exports.hasIcon=Ho;exports.hasMetricContent=Gt;exports.iconArrowRight=Nl;exports.iconCheckBox=To;exports.iconCheckBoxChecked=Ao;exports.iconCheckboxIndeterminate=Io;exports.iconClose=Fn;exports.iconFavorite=Lo;exports.iconFavoriteFilled=zo;exports.iconInfo=Ro;exports.iconRootAttributes=Bs;exports.iconSvg=Wo;exports.iconTitle=Uo;exports.jaJP=$l;exports.koKR=It;exports.labelClass=xo;exports.labelTemplate=Je;exports.normalizeStyle=he;exports.pickRest=ge;exports.pxToRem=Ae;exports.registerDismissLayer=Eo;exports.registerForeignLayer=Al;exports.registerSelfHandledLayer=oo;exports.shallowEqual=Mt;exports.spinnerLabel=Ns;exports.spinnerSize=Fs;exports.spread=ce;exports.toggleTemplate=Xt;exports.tokenizeCode=ol;exports.uniqueId=Qe;exports.useNotification=zr;exports.useToast=Qa;exports.zhCN=Cl;
2044
2151
  //# sourceMappingURL=index.cjs.map