@vmscloud/moz-ui-components-core 0.1.65 → 0.1.66

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 (65) hide show
  1. package/dist/components/badge/badge.core.d.ts +2 -2
  2. package/dist/components/bread-crumb/icons.d.ts +2 -0
  3. package/dist/components/button/button.core.d.ts +17 -1
  4. package/dist/components/button/index.d.ts +2 -2
  5. package/dist/components/calendar/calendar.core.d.ts +2 -1
  6. package/dist/components/calendar/icons.d.ts +1 -1
  7. package/dist/components/checkbox/checkbox.core.d.ts +1 -1
  8. package/dist/components/checkbox/icons.d.ts +4 -1
  9. package/dist/components/chip/chip.core.d.ts +2 -2
  10. package/dist/components/input/input.core.d.ts +25 -1
  11. package/dist/components/multi-select/multiselect.core.d.ts +5 -1
  12. package/dist/components/notification/notification-item.core.d.ts +1 -1
  13. package/dist/components/number-input/numberinput.core.d.ts +3 -1
  14. package/dist/components/password-input/passwordinput.core.d.ts +14 -8
  15. package/dist/components/popup/popup.core.d.ts +5 -0
  16. package/dist/components/select/index.d.ts +1 -1
  17. package/dist/components/select/select.core.d.ts +13 -1
  18. package/dist/components/tab/icons.d.ts +2 -0
  19. package/dist/components/table-select/index.d.ts +1 -1
  20. package/dist/components/table-select/tableselect.core.d.ts +7 -11
  21. package/dist/components/time-picker/timepicker.core.d.ts +2 -1
  22. package/dist/components/toast/icons.d.ts +1 -0
  23. package/dist/components/tree-select/tree-utils.d.ts +2 -1
  24. package/dist/components/tree-select/treeselect.core.d.ts +5 -1
  25. package/dist/index.cjs +1047 -1119
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.js +4049 -4136
  28. package/dist/index.js.map +1 -1
  29. package/dist/locale/types.d.ts +3 -0
  30. package/dist/styles/default/avatar.css +72 -12
  31. package/dist/styles/default/badge.css +96 -21
  32. package/dist/styles/default/breadcrumb.css +85 -16
  33. package/dist/styles/default/button.css +249 -30
  34. package/dist/styles/default/calendar.css +130 -26
  35. package/dist/styles/default/callout.css +75 -15
  36. package/dist/styles/default/checkbox.css +87 -24
  37. package/dist/styles/default/chip.css +117 -13
  38. package/dist/styles/default/contextmenu.css +117 -20
  39. package/dist/styles/default/controller.css +72 -12
  40. package/dist/styles/default/dateinput.css +112 -21
  41. package/dist/styles/default/emptystate.css +60 -12
  42. package/dist/styles/default/index.css +1457 -667
  43. package/dist/styles/default/input.css +155 -28
  44. package/dist/styles/default/label.css +96 -12
  45. package/dist/styles/default/multiselect.css +191 -15
  46. package/dist/styles/default/notification.css +99 -30
  47. package/dist/styles/default/numberinput.css +195 -27
  48. package/dist/styles/default/passwordinput.css +6 -198
  49. package/dist/styles/default/popover.css +73 -13
  50. package/dist/styles/default/popup.css +78 -14
  51. package/dist/styles/default/radio.css +182 -26
  52. package/dist/styles/default/scrollarea.css +73 -13
  53. package/dist/styles/default/select.css +347 -29
  54. package/dist/styles/default/slider.css +76 -16
  55. package/dist/styles/default/splitpane.css +54 -11
  56. package/dist/styles/default/tab.css +89 -12
  57. package/dist/styles/default/tableselect.css +95 -33
  58. package/dist/styles/default/taginput.css +77 -12
  59. package/dist/styles/default/textarea.css +98 -22
  60. package/dist/styles/default/timepicker.css +131 -33
  61. package/dist/styles/default/toast.css +101 -12
  62. package/dist/styles/default/toggle.css +86 -23
  63. package/dist/styles/default/tooltip.css +78 -18
  64. package/dist/styles/default/treeselect.css +98 -31
  65. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";var Js=Object.defineProperty;var el=(e,t,s)=>t in e?Js(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var Ve=(e,t,s)=>el(e,typeof t!="symbol"?t+"":t,s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("lit-html"),Ht=require("lit-html/directive.js"),X=require("lit-html/directives/style-map.js"),tl=require("clsx"),Se=require("lit-html/directives/if-defined.js"),Io=require("lit-html/directives/unsafe-html.js"),zt=require("lit-html/directives/live.js"),lt=require("dayjs"),ol=require("dayjs/plugin/duration.js"),sl=require("dayjs/plugin/minMax.js"),ll=require("dayjs/plugin/timezone.js"),nl=require("dayjs/plugin/utc.js"),il=require("dayjs/plugin/isSameOrBefore.js"),rl=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 N=require("lit-html/directives/ref.js"),Fe=require("@tanstack/virtual-core");var Je=typeof document<"u"?document.currentScript:null;class Ro{constructor(t){Ve(this,"container");Ve(this,"updateScheduled",!1);Ve(this,"mounted",!1);Ve(this,"cleanups",[]);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(){o.render(this.template(),this.container)}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{}o.render(o.nothing,this.container)}}get isMounted(){return this.mounted}}class al{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 qo{constructor(){Ve(this,"renderers",new Map);Ve(this,"resolver",null);Ve(this,"mounted",new Map)}setResolver(t){this.resolver=t}lookup(t){var s;return this.renderers.get(t)??((s=this.resolver)==null?void 0:s.call(this,t))}register(t,s){this.renderers.set(t,s)}unregister(t){for(const s of Array.from(this.mounted.keys()))(s===t||s.startsWith(`${t}#`))&&this.clear(s);this.renderers.delete(t)}has(t){return this.lookup(t)!==void 0}fill(t,s,n,i){var l,h;const a=this.lookup(s);if(!a)return!1;const m=this.mounted.get(t);if(m){if(m.el===n)return(h=(l=m.handle).update)==null||h.call(l,i),!0;m.handle.dispose(),this.mounted.delete(t)}for(const[r,u]of this.mounted)u.el===n&&(u.handle.dispose(),this.mounted.delete(r));const d=a(n,i);return this.mounted.set(t,{el:n,handle:d}),!0}clear(t){const s=this.mounted.get(t);s&&(s.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 Tt{constructor(){Ve(this,"el",null)}open(t="",s=document.body){return this.el?this.el:(this.el=document.createElement("div"),t&&(this.el.className=t),s.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 Oo(){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 Te(e,t=16){return e/t}let vo=0;function tt(e=""){return vo+=1,`${e}${vo}`}const rt=(e,t)=>{const s=Object.keys(e),n=Object.keys(t);if(s.length!==n.length)return!1;for(const i of s)if(e[i]!==t[i])return!1;return!0};function be(e,t){const s={};for(const n of Object.keys(e))t.has(n)||(s[n]=e[n]);return s}function ft(e){const t={},s={};for(const n of Object.keys(e))n.startsWith("aria-")?t[n]=e[n]:s[n]=e[n];return{aria:t,dom:s}}const dl=["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"],cl=new Set(dl.flatMap(e=>[e,...["Webkit","ms","Moz","O"].map(t=>t+e.charAt(0).toUpperCase()+e.slice(1))]));function ul(e){return e.includes("-")?e.replace(/^-ms-/,"ms-").replace(/-([a-z])/g,(t,s)=>s.toUpperCase()):e}function fe(e){if(!e)return{};if(typeof e=="object"){const t={};for(const[s,n]of Object.entries(e))t[s]=typeof n=="number"&&n!==0&&!s.startsWith("--")&&!cl.has(ul(s))?`${n}px`:n;return t}if(typeof e=="string"){const t={};for(const s of e.split(";")){const n=s.indexOf(":");n>0&&(t[s.slice(0,n).trim()]=s.slice(n+1).trim())}return t}return{}}function At(e,t,s,n){return e.length>0||t===0||!n||n.getBoundingClientRect().height>0?e:Array.from({length:t},(i,a)=>({index:a,size:s,start:a*s}))}const Nt={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:"접기"},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:"탐색 경로"}},pl={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"},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"}},hl={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:"折叠"},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:"面包屑导航"}},ml={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:"折りたたむ"},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 fl=0;function Ce(e){return(t,s,n,i)=>{const a=e.portal?new Tt:null,m=a?a.open():t,d=`h${++fl}:`,l=new qo;if(i!=null&&i.slots)for(const[A,U]of Object.entries(i.slots))l.register(A,U);i!=null&&i.slotResolver&&l.setResolver(i.slotResolver);const h=new Set(Object.keys(s)),r=i!=null&&i.providedKeys?new Set(i.providedKeys):null,u=A=>{const U=e.defaults;if(!U)return A;const G={...A};for(const oe of Object.keys(U))G[oe]===void 0&&(G[oe]=U[oe]);return G};let p=u({...s}),v=(i==null?void 0:i.locale)??Nt;const $=(i==null?void 0:i.validator)??null,I=[];let w=new Map,C=new Set,E=new Map,y=null;const z={get props(){return p},emit:n,slots:l,requestUpdate:()=>Z.requestUpdate(),onCleanup:A=>I.push(A),px:A=>Te(A),get locale(){return v},validator:$,controlled:A=>r?r.has(A):h.has(A),slot(A,U){if(!l.has(A))return o.nothing;const G=E.get(A)??0;E.set(A,G+1);const oe=`${A}#${G}`;return w.set(oe,{name:A,scope:U}),o.html`<span data-moz-slot=${A} data-moz-slot-id=${d+oe}></span>`}},_=e.setup(z);class W extends Ro{template(){return w=new Map,E=new Map,_.render()}renderNow(){super.renderNow();let U=null;if(_.renderPortal){const G=_.renderPortal(),oe=_.getPortalContainer?_.getPortalContainer():document.body;G===o.nothing||G==null||oe==null?y&&y.isOpen&&(o.render(o.nothing,y.element),y.close()):(y||(y=new Tt),U=y.isOpen?y.element:y.open("moz-overlay-portal",oe),o.render(G,U))}for(const[G,{name:oe,scope:Q}]of w){const F=`[data-moz-slot-id="${d+G}"]`;let se=this.container.querySelector(F);!se&&U&&(se=U.querySelector(F)),se&&l.fill(G,oe,se,Q)}for(const G of C)w.has(G)||l.clear(G);C=new Set(w.keys())}flush(){this.isMounted&&this.renderNow()}onDestroy(){for(const U of I.splice(0))try{U()}catch{}l.destroy()}}const Z=new W(m);Z.mount();let ne=!1;const me=()=>{var A;ne||!Z.isMounted||(ne=!0,(A=_.onMounted)==null||A.call(_,m.firstElementChild))};return i!=null&&i.deferMounted||me(),{get el(){return m.firstElementChild},update(A,U){U!=null&&U.replace?(p=u({...A}),h.clear()):p=u({...p,...A});for(const G of Object.keys(A))h.add(G);U!=null&&U.sync?Z.flush():Z.requestUpdate()},destroy(){Z.destroy(),a==null||a.close(),y==null||y.close()},setLocale(A){A!==v&&(v=A??Nt,Z.requestUpdate())},api:_.api??{},notifyMounted:me}}}const gl={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 vl extends Ht.Directive{constructor(s){super(s);Ve(this,"prevKeys",[]);Ve(this,"listeners",new Map);if(s.type!==Ht.PartType.ELEMENT)throw new Error("spread() 는 element 바인딩(`<el ${spread(obj)}>`)에서만 사용할 수 있습니다.")}render(s){return o.nothing}update(s,[n]){const i=s.element,a=n??{};for(const m of this.prevKeys)if(!(m in a))if(this.isEventKey(m)){const d=this.listeners.get(m);d&&i.removeEventListener(this.eventName(m),d),this.listeners.delete(m)}else i.removeAttribute(m);for(const[m,d]of Object.entries(a))if(!(m==="class"||m==="style"||m==="key"||m==="ref"))if(this.isEventKey(m)&&typeof d=="function"){const l=this.eventName(m),h=this.listeners.get(m);h&&i.removeEventListener(l,h),i.addEventListener(l,d),this.listeners.set(m,d)}else d==null?i.removeAttribute(m):m.startsWith("aria-")?i.setAttribute(m,String(d)):d===!1?i.removeAttribute(m):d===!0?i.setAttribute(m,""):i.setAttribute(m,String(d));return this.prevKeys=Object.keys(a),o.noChange}isEventKey(s){return s.length>2&&s.startsWith("on")&&s[2]===s[2].toUpperCase()}eventName(s){return s.slice(2).toLowerCase()}}const ce=Ht.directive(vl);function D(...e){return tl.clsx(e)}function bl(){return lt.extend(nl),lt.extend(ll),lt.extend(ol),lt.extend(sl),lt.extend(il),lt.extend(rl),lt.tz.setDefault("Asia/Seoul"),lt}const Pe=bl();function wl(){const e=[];return{addValidator:a=>{e.push(a)},removeValidator:a=>{const m=e.findIndex(d=>d.validate===a.validate);m>=0&&e.splice(m,1)},validate:async(a="save")=>(await Promise.all(e.map(d=>d.validate(a).then(l=>l===void 0?!0:l)))).every(d=>d),initValidator:()=>{var a;for(const m of e)(a=m==null?void 0:m.initValidator)==null||a.call(m)}}}const Cl=16;function yl(e,t){let s=0;return(...n)=>{const i=Date.now();i-s>=t&&(s=i,e(...n))}}class gt{constructor(t){Ve(this,"opened",!1);Ve(this,"scrollHandler");Ve(this,"clickHandler");this.opts=t,this.scrollHandler=yl(s=>this.onScroll(s),Cl),this.clickHandler=s=>this.onOutsideClick(s)}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(),s=this.opts.panel();if(!t||!s)return;const n=t.getBoundingClientRect(),i=this.opts.maxHeight?this.opts.maxHeight():250,a=window.innerHeight-n.bottom,m=n.top,d=a<i&&m>=i;let l=n.left;const h=s.clientWidth;n.left+h>document.body.clientWidth&&(l-=h-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)}s.style.position="fixed",s.style.left=`${l}px`,this.opts.useMinWidth?(s.style.minWidth=`${n.width}px`,u&&(s.style.width=String(r))):u?s.style.width=String(r):s.style.width=`${n.width}px`,d?(s.style.bottom=`${window.innerHeight-n.top}px`,s.style.top="auto"):(s.style.top=`${n.bottom}px`,s.style.bottom="auto")}onScroll(t){const s=t.target;if(this.opts.ignoreScrollTargets&&s&&this.opts.ignoreScrollTargets(s))return;const n=this.opts.anchor();if(n){const i=n.getBoundingClientRect();if(i.bottom<0||i.top>window.innerHeight){this.opts.requestClose();return}}this.calcPosition()}onOutsideClick(t){var n,i,a,m,d;if(this.opts.closeOnOutsideClick===!1)return;const s=t.target;(a=(i=(n=this.opts).container)==null?void 0:i.call(n))!=null&&a.contains(s)||(m=this.opts.panel())!=null&&m.contains(s)||(d=this.opts.anchor())!=null&&d.contains(s)||this.opts.requestClose()}}const ot=[];let Mt=!1;function Fo(e){var s;if(e.key!=="Escape")return;const t=ot[ot.length-1];t&&t.kind==="moz"&&((s=t.onEscape)==null||s.call(t,e),e.stopPropagation())}function $l(){Mt||typeof window>"u"||(window.addEventListener("keydown",Fo,{capture:!0}),Mt=!0)}function Sl(){!Mt||typeof window>"u"||(window.removeEventListener("keydown",Fo,!0),Mt=!1)}function Gt(e){ot.push(e),$l();let t=!1;return{release(){if(t)return;t=!0;const s=ot.indexOf(e);s>=0&&ot.splice(s,1),ot.length===0&&Sl()},isTopmost(){return ot[ot.length-1]===e}}}function Yt(e){return Gt({kind:"moz",onEscape:e})}function kl(){return Gt({kind:"foreign"})}function vt(){return Gt({kind:"self"})}function El(){return ot.length}function Zt(e={}){const{circleClass:t="",progressClass:s=""}=e;return o.html`<svg
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 Oe=(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){Oe(this,"container");Oe(this,"updateScheduled",!1);Oe(this,"mounted",!1);Oe(this,"cleanups",[]);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)}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{}s.render(s.nothing,this.container)}}get isMounted(){return this.mounted}}class En{constructor(){Oe(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(){Oe(this,"renderers",new Map);Oe(this,"resolver",null);Oe(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(){Oe(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 xt(){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 Mo=0;function ot(e=""){return Mo+=1,`${e}${Mo}`}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 xn(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(xn(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:"탐색 경로"}},Mn={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);Oe(this,"prevKeys",[]);Oe(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){Oe(this,"opened",!1);Oe(this,"scrollHandler");Oe(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
3
3
  aria-hidden="true"
4
4
  role="status"
5
5
  class="moz-circle-loader"
@@ -18,83 +18,97 @@
18
18
  <path
19
19
  d="M7.10526 0C7.70019 3.43902e-05 8.18241 0.482401 8.18241 1.07715C8.18229 1.67179 7.70012 2.15426 7.10526 2.1543V2.15723C7.06949 2.15639 7.03369 2.15532 6.99784 2.15527C6.03943 2.15531 5.10233 2.43928 4.30545 2.97168C3.50856 3.5041 2.88707 4.26113 2.5203 5.14648C2.1536 6.03179 2.05795 7.00647 2.24491 7.94629C2.43192 8.88601 2.89351 9.74921 3.57108 10.4268C4.24878 11.1044 5.11251 11.5659 6.05252 11.7529C6.99249 11.9399 7.96688 11.8442 8.85233 11.4775C9.7377 11.1109 10.4946 10.49 11.0271 9.69336C11.5399 8.92611 11.8203 8.02853 11.8406 7.10742H11.8455C11.8456 6.51278 12.3278 6.03125 12.9226 6.03125C13.5175 6.03132 13.9996 6.51282 13.9998 7.10742C13.9998 7.14897 13.9966 7.19015 13.992 7.23047C13.9653 8.04804 13.7988 8.86228 13.4851 9.63477C12.7865 11.3552 11.4331 12.7276 9.72245 13.4502C8.86044 13.8148 7.9338 14.0017 6.99784 14C5.38299 13.9991 3.81802 13.4403 2.56815 12.418C1.31831 11.3955 0.460158 9.97214 0.139438 8.38965C-0.181225 6.80702 0.0550344 5.16173 0.808383 3.7334C1.56174 2.30515 2.78597 1.18104 4.27323 0.551758C5.16282 0.176049 6.11107 -0.00627887 7.05838 0.00195312C7.07392 0.0012886 7.08956 0 7.10526 0Z"
20
20
  fill="var(--moz-color-accent)"
21
- class=${s}
21
+ class=${o}
22
22
  ></path>
23
- </svg>`}function Bo(e="default"){switch(e){case"text":return"moz-text-button";case"outline":return"moz-outline-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"}}const Pl=new Set(["action","text","type","nativeType","width","loading","disabled","class","style"]);function pt(e,t={}){const s=!!e.disabled||!!e.loading,n=t.icon!=null&&t.icon!==o.nothing,i=e.width==null?void 0:typeof e.width=="number"?`${Te(e.width)}rem`:e.width,a=e.width==null?void 0:typeof e.width=="number"?`${e.width}px`:e.width,m={width:i,minWidth:i,"--moz-btn-loading-width":a,...fe(e.style)},d=l=>{var h;s||(h=t.onClick)==null||h.call(t,l)};return o.html`
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`
24
24
  <button
25
25
  type=${e.nativeType??"button"}
26
- class=${D("moz-button",Bo(e.type),{loading:!!e.loading,disabled:s,"moz-icon-text-button":n},e.class)}
27
- style=${X.styleMap(m)}
28
- ?disabled=${s}
29
- @click=${d}
30
- ${ce(t.rest??{})}
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)}
28
+ ?disabled=${o}
29
+ @click=${i}
30
+ ${he(t.rest??{})}
31
+ data-size=${l??s.nothing}
32
+ aria-busy=${e.loading?"true":"false"}
31
33
  >
32
- ${e.loading?o.html`<span class="spinner" data-part="spinner"
33
- >${Zt({circleClass:"fill-accent-50",progressClass:"fill-accent-400"})}</span
34
- >`:t.icon??o.nothing}
35
- ${e.text||t.content!=null?o.html`<span class=${D("text",{"has-icon-text":n})} data-part="label"
36
- >${e.text??""}${t.content??o.nothing}</span
37
- >`:o.nothing}
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}
38
41
  </button>
39
- `}const Ho=Ce({name:"moz-button",defaults:{type:"default",loading:!1,disabled:!1},setup(e){let t=!!e.props.loading,s=e.props.loading;const n=i=>{const a=e.props;a.disabled||t||(e.emit("click",i),a.action==="Search"&&(t=!0,a.loading||(t=!1),e.requestUpdate()))};return{api:{setLoading(i){t=i,e.requestUpdate()}},render(){const i=e.props;i.loading!==s&&(s=i.loading,t=!!i.loading);const a=e.slots.has("icon"),m=!!i.disabled||t,d=i.width==null?void 0:typeof i.width=="number"?`${e.px(i.width)}rem`:i.width,l=i.width==null?void 0:typeof i.width=="number"?`${i.width}px`:i.width,h={};for(const u of Object.keys(i))Pl.has(u)||(h[u]=i[u]);const r={width:d,minWidth:d,"--moz-btn-loading-width":l,...fe(i.style)};return o.html`
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`
40
43
  <button
41
- type=${i.nativeType??"button"}
42
- class=${D("moz-button",Bo(i.type),{loading:t,disabled:m,"moz-icon-text-button":a},i.class)}
43
- style=${X.styleMap(r)}
44
- ?disabled=${m}
44
+ 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}
45
48
  @click=${n}
46
- ${ce(h)}
49
+ ${he(r)}
50
+ data-size=${f??s.nothing}
51
+ aria-busy=${t?"true":"false"}
47
52
  >
48
- ${t?o.html`<span class="spinner" data-part="spinner"
49
- >${Zt({circleClass:"fill-accent-50",progressClass:"fill-accent-400"})}</span
50
- >`:e.slot("icon",{disabled:m})}
51
- ${i.text||e.slots.has("default")?o.html`<span class=${D("text",{"has-icon-text":a})} data-part="label"
52
- >${i.text??""}${e.slot("default",{disabled:m})}</span
53
- >`:o.nothing}
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}
54
60
  </button>
55
- `}}}}),Tl={name:"MozButton",core:Ho,booleanProps:["disabled","loading"],props:["action","text","type","nativeType","width","loading","disabled"],emits:["click"],slots:["icon","default"],expose:!0},Ml=new Set(["for","disabled","required","isReadOnly","class","style"]);function jt(e,t){return D("moz-label",{disabled:!!e.disabled,"read-only":!!e.isReadOnly},t,e.class)}function Be(e,t,s){return o.html`<label class=${jt(e,s)} for=${Se.ifDefined(e.for)}
56
- >${t}${e.required?o.html`<span class="require-mark">*</span>`:o.nothing}</label
57
- >`}const No=Ce({name:"moz-label",setup(e){return{render(){const t=e.props,s=be(t,Ml);return o.html`<label
58
- class=${jt(t)}
59
- for=${Se.ifDefined(t.for)}
60
- style=${X.styleMap(fe(t.style))}
61
- ${ce(s)}
62
- >${e.slot("default")}${t.required?o.html`<span class="require-mark">*</span>`:o.nothing}</label
63
- >`}}}}),Ll={name:"MozLabel",core:No,booleanProps:["disabled","isReadOnly","required"],props:["for","disabled","required","isReadOnly"],emits:[],slots:["default"],expose:!1},xl=new Set(["modelValue","label","labelPosition","required","readonly","disabled","visible","class","style"]);function Lt(e){const t=!!e.model;return o.html`
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`
64
70
  <div
65
71
  data-part="root"
66
- class=${D(e.class)}
67
- style=${X.styleMap({...fe(e.style),...e.visible===!1?{display:"none"}:{}})}
68
- ${ce(e.rest??{})}
72
+ class=${V(e.class)}
73
+ style=${ee.styleMap({...be(e.style),...e.visible===!1?{display:"none"}:{}})}
74
+ ${he(e.rest??{})}
69
75
  >
70
76
  <div class="moz-switch">
71
- ${e.labelPosition!=="right"?Be({for:e.id,disabled:e.disabled,required:e.required},e.label??"","label-left"):o.nothing}
72
- <div class=${D("moz-switch-box",{active:t,disabled:!!e.disabled})}>
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})}>
73
79
  <input
74
80
  id=${e.id}
75
81
  class="moz-switch-input"
76
82
  type="checkbox"
77
83
  role="switch"
78
- ${ce(e.inputRest??{})}
84
+ ${he(e.inputRest??{})}
79
85
  aria-checked=${t?"true":"false"}
80
86
  ?disabled=${!!e.disabled}
81
87
  .checked=${t}
82
88
  @change=${e.onChange}
83
89
  @click=${e.onClick}
84
90
  />
85
- <div class=${D("moz-switch-handler",{active:t,disabled:!!e.disabled})}></div>
91
+ <div class=${V("moz-switch-handler",{active:t,disabled:!!e.disabled})}></div>
86
92
  </div>
87
- ${e.labelPosition==="right"?Be({for:e.id,disabled:e.disabled},e.label??"","label-right"):o.nothing}
93
+ ${e.labelPosition==="right"?Xe({for:e.id,disabled:e.disabled},e.label??"","label-right"):s.nothing}
88
94
  </div>
89
95
  </div>
90
- `}const _o=Ce({name:"moz-toggle",defaults:{labelPosition:"left",required:!1,readonly:!1,disabled:!1,visible:!0},setup(e){const t=tt("switch_"),s=i=>{const a=e.props;(a.disabled||a.readonly)&&(i.preventDefault(),i.stopPropagation())},n=i=>{const a=e.props;if(a.disabled||a.readonly)return;const m=i.target.checked;e.emit("change",!!m)};return{render(){const i=e.props,{aria:a,dom:m}=ft(be(i,xl));return Lt({id:t,class:i.class,style:i.style,rest:m,inputRest:a,model:!!i.modelValue,label:i.label,labelPosition:i.labelPosition,required:i.required,disabled:i.disabled,visible:i.visible,onChange:n,onClick:s})}}}}),zl={name:"MozToggle",core:_o,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 Xt(e=""){return o.html`<svg class=${e} xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10" fill="none">
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">
91
97
  <path
92
98
  fill-rule="evenodd"
93
99
  clip-rule="evenodd"
94
100
  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"
95
101
  fill="var(--moz-color-text-subtle)"
96
102
  ></path>
97
- </svg>`}function Qt(e="var(--moz-color-text-subtle)",t=""){return o.html`<svg class=${t} width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
104
+ <path
105
+ d="M3 5.5L7.05021 9.5L11 5.5"
106
+ stroke="var(--moz-color-breadcrumb-separator)"
107
+ stroke-width="1.6"
108
+ stroke-linecap="round"
109
+ stroke-linejoin="round"
110
+ ></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">
98
112
  <path
99
113
  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"
100
114
  stroke=${e}
@@ -102,7 +116,7 @@
102
116
  stroke-linecap="round"
103
117
  stroke-linejoin="round"
104
118
  ></path>
105
- </svg>`}function Jt(e="var(--moz-color-accent)",t=""){return o.html`<svg class=${t} width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
106
120
  <path
107
121
  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"
108
122
  fill=${e}
@@ -111,253 +125,230 @@
111
125
  stroke-linecap="round"
112
126
  stroke-linejoin="round"
113
127
  ></path>
114
- </svg>`}const bo=new Set(["itemSource","items","listClass","showFavorite","modelValue","class","style"]);function eo(e){const t=e.itemSource??[],s=!!e.favorite,n=e.showFavorite?e.favoriteSlot!=null?e.favoriteSlot:o.html`<button type="button" class="favorite-icon" @click=${e.onFavClick}>
115
- ${s?Jt(void 0,"favorite-filled"):Qt(void 0,"empty")}
116
- </button>`:o.nothing;return o.html`
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`
117
131
  <div
118
132
  role="navigation"
119
133
  aria-label=${e.ariaLabel??"breadcrumb"}
120
- class=${D("moz-bread-crumb",e.class)}
121
- style=${X.styleMap(fe(e.style))}
122
- ${ce(e.rest??{})}
134
+ class=${V("moz-bread-crumb",e.class)}
135
+ style=${ee.styleMap(be(e.style))}
136
+ ${he(e.rest??{})}
123
137
  >
124
138
  <div class="menu-item">
125
- ${t.map((i,a)=>t.length-1===a?o.html`<div class="current-item" aria-current="page">${i}</div>`:o.html`<div>${i}</div>${Xt("separator")}`)}
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")}`)}
126
140
  </div>
127
- ${n}${e.titleSlot??o.nothing}
141
+ ${n}${e.titleSlot??s.nothing}
128
142
  </div>
129
- `}const Uo=Ce({name:"moz-bread-crumb",defaults:{showFavorite:!0,modelValue:!0,itemSource:[]},setup(e){const t=()=>e.emit("click",!!e.props.modelValue),s=n=>{const i=e.props,a=!!i.modelValue,m=i.showFavorite?e.slots.has("favorite")?e.slot("favorite"):o.html`<button type="button" class="favorite-icon" @click=${t}>
130
- ${a?Jt(void 0,"favorite-filled"):Qt(void 0,"empty")}
131
- </button>`:o.nothing,d=()=>o.html`<li role="presentation" aria-hidden="true" class="moz-bread-crumb-separator">
132
- ${e.slots.has("separator")?e.slot("separator"):Xt("separator")}
133
- </li>`;return o.html`
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`
134
148
  <nav
135
149
  aria-label=${e.locale.BreadCrumb.navigation}
136
- class=${D("moz-bread-crumb","moz-bread-crumb-items",i.class)}
137
- style=${X.styleMap(fe(i.style))}
138
- ${ce(be(i,bo))}
150
+ class=${V("moz-bread-crumb","moz-bread-crumb-items",l.class)}
151
+ style=${ee.styleMap(be(l.style))}
152
+ ${he(ye(l,zo))}
139
153
  >
140
- <ol class=${D("moz-bread-crumb-list",i.listClass)}>
141
- ${n.map((l,h)=>o.html`
142
- <li class="moz-bread-crumb-item" aria-current=${l.current?"page":o.nothing}>
143
- ${e.slot(`item-${l.key}`)}
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}`)}
144
158
  </li>
145
- ${h<n.length-1?d():o.nothing}
159
+ ${c<n.length-1?f():s.nothing}
146
160
  `)}
147
161
  </ol>
148
- ${m}${e.slot("title")}
162
+ ${a}${e.slot("title")}
149
163
  </nav>
150
- `};return{render(){const n=e.props;return n.items&&n.items.length>0?s(n.items):eo({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:be(n,bo)})}}}}),Al={name:"MozBreadCrumb",core:Uo,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},Wo={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."},Ko=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:Je&&Je.tagName.toUpperCase()==="SCRIPT"&&Je.src||new URL("index.cjs",document.baseURI).href).href,Dl=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:Je&&Je.tagName.toUpperCase()==="SCRIPT"&&Je.src||new URL("index.cjs",document.baseURI).href).href,Vl=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:Je&&Je.tagName.toUpperCase()==="SCRIPT"&&Je.src||new URL("index.cjs",document.baseURI).href).href,Il=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:Je&&Je.tagName.toUpperCase()==="SCRIPT"&&Je.src||new URL("index.cjs",document.baseURI).href).href,Rl=new Set(["isReadOnly","isCustomState","headerMsg","contentMsg","filterdRowCount","totalRowCount","useImg","selectImg","messages","composed","class","style"]),ql={custom_empty:Ko,data_empty:Dl,result_empty:Vl,search_empty:Il},Ol={custom_empty:"customEmptyHeader",data_empty:"dataEmptyHeader",result_empty:"resultEmptyHeader",search_empty:"searchEmptyHeader"},Fl={custom_empty:"customEmptyContent",data_empty:"dataEmptyContent",result_empty:"resultEmptyContent",search_empty:"searchEmptyContent"},Go=Ce({name:"moz-empty-state",defaults:{isReadOnly:!0,isCustomState:!1,filterdRowCount:0,totalRowCount:0,useImg:!0,composed:!1},setup(e){const t=n=>{var a;return((a=e.props.messages)==null?void 0:a[n])||e.locale.EmptyState[n]||Wo[n]||""},s=()=>{const n=e.props,i=n.totalRowCount??0,a=n.filterdRowCount??0;if(n.selectImg&&(i===0||a===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":i===0?n.isReadOnly?"result_empty":"data_empty":a===0?"search_empty":""};return{render(){const n=e.props,i=be(n,Rl);if(n.composed)return o.html`
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`
151
165
  <div
152
- class=${D("empty-container","empty-composed","moz-empty-state",n.class)}
153
- style=${X.styleMap(fe(n.style))}
154
- ${ce(i)}
166
+ class=${V("empty-container","empty-composed","moz-empty-state",n.class)}
167
+ style=${ee.styleMap(be(n.style))}
168
+ ${he(l)}
155
169
  >
156
- ${e.slots.has("icon")?o.html`<div class="empty-icon">${e.slot("icon")}</div>`:o.nothing}
157
- ${e.slots.has("heading")?o.html`<div class="empty-heading-slot">${e.slot("heading")}</div>`:o.nothing}
158
- ${e.slots.has("description")?o.html`<div class="empty-description">${e.slot("description")}</div>`:o.nothing}
159
- ${e.slots.has("actions")?o.html`<div class="empty-actions">${e.slot("actions")}</div>`:o.nothing}
160
- ${e.slots.has("customState")?o.html`<div class="empty-content">${e.slot("customState")}</div>`:o.nothing}
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}
161
175
  </div>
162
- `;const a=s();if(!a)return o.nothing;const m=ql[a]||Ko,d=typeof n.headerMsg=="string"?n.headerMsg:t(Ol[a]||"customEmptyHeader"),l=typeof n.contentMsg=="string"?n.contentMsg:t(Fl[a]||"customEmptyContent"),h=e.slots.has("icon")?o.html`<div class="empty-icon">${e.slot("icon")}</div>`:n.useImg?o.html`<img src=${m} alt="Empty state" class="empty-img" />`:o.nothing;return o.html`
163
- <div class=${D("empty-container","moz-empty-state",n.class)} style=${X.styleMap(fe(n.style))} ${ce(i)}>
164
- ${h}
165
- <div class="empty-heading">${d}</div>
166
- <div class="empty-content"><span>${Io.unsafeHTML(l)}</span></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>
167
181
  <div class="empty-content">${e.slot("customState")}</div>
168
- ${e.slots.has("actions")?o.html`<div class="empty-actions">${e.slot("actions")}</div>`:o.nothing}
182
+ ${e.slots.has("actions")?s.html`<div class="empty-actions">${e.slot("actions")}</div>`:s.nothing}
169
183
  </div>
170
- `}}}}),Bl={name:"MozEmptyState",core:Go,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)",t=!1,s=""){return o.html`<svg class=${s} data-icon="unchecked" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
171
- <path
172
- d="M10 0H2C0.89543 0 0 0.89543 0 2V10C0 11.1046 0.89543 12 2 12H10C11.1046 12 12 11.1046 12 10V2C12 0.89543 11.1046 0 10 0Z"
173
- fill=${t?"var(--moz-color-surface-subtle)":"var(--moz-color-surface)"}
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">
185
+ <path data-part="marker-surface"
186
+ 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
+ fill=${t?"var(--moz-color-disabled)":"var(--moz-color-surface)"}
174
188
  ></path>
175
- <path
176
- d="M10 0.5H2C1.17157 0.5 0.5 1.17157 0.5 2V10C0.5 10.8284 1.17157 11.5 2 11.5H10C10.8284 11.5 11.5 10.8284 11.5 10V2C11.5 1.17157 10.8284 0.5 10 0.5Z"
189
+ <path data-part="marker-border"
190
+ 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"
177
191
  stroke=${t?"var(--moz-color-text-muted)":e}
178
192
  ></path>
179
- </svg>`}function oo(e="var(--moz-color-accent)",t=!1,s=""){return o.html`<svg class=${s} data-icon="checked" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
180
- <path
181
- d="M10 12H2C1.46957 12 0.960859 11.7893 0.585786 11.4142C0.210714 11.0391 0 10.5304 0 10V2C0 1.46957 0.210714 0.960859 0.585786 0.585786C0.960859 0.210714 1.46957 0 2 0L10 0C10.5304 0 11.0391 0.210714 11.4142 0.585786C11.7893 0.960859 12 1.46957 12 2V10C12 10.5304 11.7893 11.0391 11.4142 11.4142C11.0391 11.7893 10.5304 12 10 12ZM2.276 5.472C2.18827 5.47227 2.10149 5.49011 2.02077 5.52446C1.94005 5.5588 1.86702 5.60897 1.806 5.672C1.68191 5.79695 1.61227 5.9659 1.61227 6.142C1.61227 6.3181 1.68191 6.48705 1.806 6.612L4.2 9C4.32469 9.12457 4.49374 9.19455 4.67 9.19455C4.84626 9.19455 5.01531 9.12457 5.14 9L10.194 3.94C10.2557 3.87821 10.3047 3.80487 10.338 3.72417C10.3714 3.64347 10.3886 3.55698 10.3885 3.46965C10.3885 3.38231 10.3712 3.29584 10.3378 3.21518C10.3043 3.13451 10.2553 3.06122 10.1935 2.9995C10.1317 2.93778 10.0584 2.88883 9.97767 2.85545C9.89697 2.82208 9.81048 2.80492 9.72315 2.80497C9.63581 2.80501 9.54934 2.82226 9.46868 2.85572C9.38801 2.88919 9.31472 2.93821 9.253 3L4.667 7.587L2.747 5.667C2.68531 5.60494 2.61191 5.55574 2.53105 5.52227C2.4502 5.48879 2.36351 5.47171 2.276 5.472Z"
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">
194
+ <path data-part="marker-surface"
195
+ 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"
182
196
  fill=${t?"var(--moz-color-text-muted)":e}
183
197
  ></path>
184
- </svg>`}function so(e="var(--moz-color-accent)",t=!1,s=""){return o.html`<svg class=${s} data-icon="indeterminate" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
185
- <rect width="12" height="12" rx="2" fill=${t?"var(--moz-color-text-muted)":e}></rect>
186
- <path d="M3 6H9" stroke="var(--moz-color-on-accent)" stroke-width="2" stroke-linecap="round"></path>
187
- </svg>`}const Hl=new Set(["label","fieldId","disabled","readonly","checked","indeterminate","modelValue","class","style"]);function kt(e={}){const t=!!e.checked,s=!!e.disabled,n=!!e.indeterminate,i=()=>{var a;s||(a=e.onChange)==null||a.call(e,!t)};return o.html`
198
+ <svg x="1" y="1" width="12" height="12" viewBox="0 0 12 12" fill="none" overflow="hidden">
199
+ <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
+ stroke="var(--moz-color-on-accent)" stroke-width="1.4" stroke-linecap="round"></path>
201
+ </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">
203
+ <rect data-part="marker-surface" width="14" height="14" rx="4" fill=${t?"var(--moz-color-text-muted)":e}></rect>
204
+ <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`
188
206
  <div
189
- class=${D("moz-checkbox",{"cursor-pointer":!s,"cursor-not-allowed":s,disabled:s},e.class)}
190
- @click=${a=>{s||(a.preventDefault(),a.stopPropagation(),i())}}
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())}}
191
209
  >
192
210
  <div class="checkbox-icon-wrapper">
193
211
  <input
194
212
  type="checkbox"
195
- class=${D("checkbox-input",{"cursor-pointer":!s,"cursor-not-allowed":s})}
213
+ class=${V("checkbox-input",{"cursor-pointer":!o,"cursor-not-allowed":o})}
196
214
  .checked=${t}
197
- ?disabled=${s}
198
- tabindex=${s?-1:0}
199
- @click=${a=>a.stopPropagation()}
200
- @change=${a=>{a.target.checked=t,i()}}
215
+ .indeterminate=${n}
216
+ ?disabled=${o}
217
+ tabindex=${o?-1:0}
218
+ @click=${d=>d.stopPropagation()}
219
+ @change=${d=>{d.target.checked=t,d.target.indeterminate=n,l()}}
201
220
  />
202
221
  <div class="checkbox-visual">
203
- ${n?so(void 0,s,"checked-icon"):t?oo(void 0,s,"checked-icon"):to(void 0,s,"check-icon")}
222
+ ${n?$o(void 0,o,"checked-icon"):t?yo(void 0,o,"checked-icon"):Co(void 0,o,"check-icon")}
204
223
  </div>
205
224
  </div>
206
225
  </div>
207
- `}const Yo=Ce({name:"moz-checkbox",defaults:{disabled:!1,readonly:!1,indeterminate:!1,modelValue:!1},setup(e){const t=Oo();let s=!1;const n=()=>{const u=e.props;return e.controlled("checked")?u.checked??!1:u.modelValue??!1},i=()=>{const u=!n();e.controlled("checked")||e.emit("update:modelValue",u),e.emit("change",u)},a=u=>{var v;const p=e.props;p.disabled||p.readonly||(u.preventDefault(),u.stopPropagation(),i(),(v=u.currentTarget.querySelector("input"))==null||v.focus())},m=u=>u.stopPropagation(),d=u=>{const p=e.props,v=u.target;if(p.readonly){v.checked=n();return}const $=v.checked;e.controlled("checked")?(v.checked=n(),e.emit("change",$)):(e.emit("update:modelValue",$),e.emit("change",$))},l=u=>{const p=e.props;p.disabled||p.readonly||(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),i())},h=()=>{s=!0,e.requestUpdate()},r=()=>{s=!1,e.requestUpdate()};return{render(){const u=e.props,p=u.fieldId||t,v=n(),$=be(u,Hl);return o.html`
226
+ `}const ns=$e({name:"moz-checkbox",defaults:{disabled:!1,readonly:!1,indeterminate:!1,modelValue:!1},setup(e){const t=xt();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`
208
227
  <div
209
- class=${D("moz-checkbox",{"cursor-pointer":!u.disabled&&!u.readonly,"cursor-not-allowed":u.disabled,disabled:u.disabled,"cursor-default":u.readonly&&!u.disabled},u.class)}
210
- style=${X.styleMap(fe(u.style))}
211
- @click=${a}
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}
212
231
  >
213
232
  <div class="checkbox-icon-wrapper">
214
233
  <input
215
234
  id=${p}
216
235
  type="checkbox"
217
- class=${D("checkbox-input",{"cursor-pointer":!u.disabled&&!u.readonly,"cursor-not-allowed":u.disabled,"cursor-default":u.readonly&&!u.disabled})}
218
- ${ce($)}
219
- .checked=${v}
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}
220
240
  ?disabled=${!!u.disabled}
221
241
  tabindex=${u.disabled?-1:0}
222
- @click=${m}
223
- @change=${d}
224
- @focus=${h}
242
+ @click=${a}
243
+ @change=${f}
244
+ @focus=${c}
225
245
  @blur=${r}
226
- @keydown=${l}
246
+ @keydown=${i}
227
247
  />
228
- <div class=${D("checkbox-visual",{focused:s})}>
229
- ${u.indeterminate?so(void 0,!!u.disabled,"checked-icon"):v?oo(void 0,!!u.disabled,"checked-icon"):to(void 0,!!u.disabled,"check-icon")}
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")}
230
250
  </div>
231
251
  </div>
232
- ${u.label?Be({for:p,disabled:u.disabled},u.label,"moz-checkbox-label"):o.nothing}
252
+ ${u.label?Xe({for:p,disabled:u.disabled},u.label,"moz-checkbox-label"):s.nothing}
233
253
  </div>
234
- `}}}}),Nl={name:"MozCheckBox",core:Yo,booleanProps:["checked","disabled","indeterminate","modelValue","readonly"],props:["label","fieldId","disabled","readonly","checked","indeterminate","modelValue"],emits:["change","update:modelValue"],slots:[],expose:!1},Zo=["accent","neutral","info","success","warning","danger"],_l=new Set(["label","text","disabled","required","displayExpr","valueExpr","tooltipExpr","disabledExpr","toneExpr","itemsSource","value","name","direction","variant","size","iconOnly","labelPosition","modelValue","class","style"]),jo=Ce({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=tt("radio_"),s=l=>l.key===" "||l.key==="Enter"||l.key==="Spacebar"||l.key==="Space"||l.code==="Space"||l.code==="Enter"||l.keyCode===32||l.keyCode===13,n=l=>typeof requestAnimationFrame=="function"?requestAnimationFrame(l):setTimeout(l,16),i=l=>{const h=l[e.props.toneExpr??"tone"];return typeof h=="string"&&Zo.includes(h)?h:void 0},a=l=>{const h=e.props;return!!h.disabled||l[h.disabledExpr??"disabled"]===!0},m=(l,h)=>{const r=e.props,u=r.itemsSource??[];return D("label-container",{boxed:r.variant==="boxed","first-h":r.variant==="boxed"&&r.direction==="horizontal"&&l===0,"last-h":r.variant==="boxed"&&r.direction==="horizontal"&&l===u.length-1,"first-v":r.variant==="boxed"&&r.direction==="vertical"&&l===0,"last-v":r.variant==="boxed"&&r.direction==="vertical"&&l===u.length-1,disabled:h})},d=l=>{const h=e.props;return h.variant!=="boxed"||l===0?{}:h.direction==="horizontal"?{marginInlineStart:"-1px"}:{marginBlockStart:"-1px"}};return{render(){const l=e.props,h=l.itemsSource??[],r=l.valueExpr??"value",u=l.displayExpr??"label",p=!!l.disabled,v=l.modelValue,$=l.value!==void 0&&h.length===0,I=!$&&l.variant==="segment",w=be(l,_l),C=()=>o.html`
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`
235
255
  <div class="radio-container">
236
256
  <div class="radio">
237
- <label for=${t} class=${D("label-container",{disabled:p})}>
257
+ <label for=${t} class=${V("label-container",{disabled:p})}>
238
258
  <div class="radio-icon-wrapper">
239
259
  <input
240
260
  type="radio"
241
- name=${l.name||t}
261
+ name=${i.name||t}
242
262
  id=${t}
243
- .checked=${String(v)===String(l.value)}
263
+ .checked=${String(y)===String(i.value)}
244
264
  ?disabled=${p}
245
265
  class="radio-input"
246
- @keydown=${W=>{s(W)&&!p&&e.emit("update:modelValue",String(l.value))}}
247
- @change=${()=>{p||e.emit("update:modelValue",String(l.value))}}
266
+ @keydown=${Z=>{o(Z)&&!p&&e.emit("update:modelValue",String(i.value))}}
267
+ @change=${()=>{p||e.emit("update:modelValue",String(i.value))}}
248
268
  />
249
269
  <span
250
- class=${D("dot",{active:String(v)===String(l.value),disabled:p,"borderless-focus":!p})}
270
+ class=${V("dot",{active:String(y)===String(i.value),disabled:p,"borderless-focus":!p})}
251
271
  ></span>
252
272
  </div>
253
- ${l.text?o.html`<span class="radio-label-text">${l.text}</span>`:o.nothing}
273
+ ${i.text?s.html`<span class="radio-label-text">${i.text}</span>`:s.nothing}
254
274
  </label>
255
275
  </div>
256
276
  </div>
257
- `,E=()=>{const W=K=>String(v)===String(K[r]??""),Z=h.length,ne=h.findIndex(W),me=(K,k)=>{for(let S=1;S<=Z;S+=1){const x=(K+k*S+Z*Z)%Z;if(!a(h[x]))return x}return-1},le=K=>{for(let k=0;k<Z;k+=1){const S=K===1?k:Z-1-k;if(!a(h[S]))return S}return-1},A=ne>=0&&!a(h[ne])?ne:le(1),U=K=>Array.from(K.querySelectorAll('[role="radio"]')),G=(K,k)=>{if(k<0)return;K.preventDefault(),K.stopPropagation();const S=K.currentTarget,x=U(S)[k];x==null||x.focus(),e.emit("update:modelValue",h[k][r]??"");let T=0;const V=()=>{const f=U(S)[k];if(f&&f.getAttribute("aria-checked")==="true"){document.activeElement!==f&&f.focus();return}++T<20&&n(V)};n(V)},oe=K=>{var V,f;if(p||Z===0)return;const k=K.currentTarget,S=(f=(V=K.target)==null?void 0:V.closest)==null?void 0:f.call(V,'[role="radio"]'),x=S?U(k).indexOf(S):-1,T=x>=0?x:ne>=0?ne:0;switch(K.key){case"ArrowRight":case"ArrowDown":G(K,me(T,1));break;case"ArrowLeft":case"ArrowUp":G(K,me(T,-1));break;case"Home":G(K,le(1));break;case"End":G(K,le(-1));break}},Q=!!l.iconOnly,F=e.slots.has("item-icon"),se=!Q&&e.slots.has("item-badge");return o.html`
277
+ `,g=()=>{const Z=N=>String(y)===String(N[r]??""),W=c.length,Q=c.findIndex(Z),re=(N,X)=>{for(let x=1;x<=W;x+=1){const U=(N+X*x+W*W)%W;if(!d(c[U]))return U}return-1},ae=N=>{for(let X=0;X<W;X+=1){const x=N===1?X:W-1-X;if(!d(c[x]))return x}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 x=N.currentTarget,U=$(x)[X];U==null||U.focus(),e.emit("update:modelValue",c[X][r]??"");let _=0;const G=()=>{const J=$(x)[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,x=(J=(G=N.target)==null?void 0:G.closest)==null?void 0:J.call(G,'[role="radio"]'),U=x?$(X).indexOf(x):-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`
258
278
  <div
259
- class=${D("radio-container",{segment:!0,"disabled-container":p,"size-sm":l.size==="sm","size-md":l.size!=="sm","icon-only":Q})}
260
- @keydown=${oe}
261
- @click=${K=>K.stopPropagation()}
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()}
262
282
  >
263
- ${h.map((K,k)=>{const S=W(K),x=a(K),T=String(K[u]??""),V=T||String(K[r]??""),f={item:K,index:k,active:S,disabled:x};return o.html`
283
+ ${c.map((N,X)=>{const x=Z(N),U=d(N),_=String(N[u]??""),G=_||String(N[r]??""),J={item:N,index:X,active:x,disabled:U};return s.html`
264
284
  <button
265
285
  type="button"
266
286
  role="radio"
267
- aria-checked=${S?"true":"false"}
268
- aria-label=${Q?V:o.nothing}
269
- data-value=${String(K[r]??"")}
270
- data-tone=${i(K)??o.nothing}
271
- tabindex=${k===A?"0":"-1"}
272
- ?disabled=${x}
273
- class=${D("segment-button",{"is-active":S,disabled:x})}
274
- @click=${()=>{x||e.emit("update:modelValue",K[r]??"")}}
287
+ aria-checked=${x?"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":x,disabled:U})}
294
+ @click=${()=>{U||e.emit("update:modelValue",N[r]??"")}}
275
295
  >
276
- ${F?o.html`<span class="segment-icon">${e.slot("item-icon",f)}</span>`:o.nothing}
277
- ${Q?o.nothing:T}
278
- ${se?o.html`<span class="segment-badge">${e.slot("item-badge",f)}</span>`:o.nothing}
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}
279
299
  </button>
280
300
  `})}
281
301
  </div>
282
- `},y=()=>o.html`
302
+ `},h=()=>s.html`
283
303
  <div
284
- class=${D("radio-container",{"disabled-container":p,borderless:l.variant==="borderless",vertical:l.direction==="vertical"})}
304
+ class=${V("radio-container",{"disabled-container":p,borderless:i.variant==="borderless",vertical:i.direction==="vertical"})}
285
305
  >
286
- ${h.map((W,Z)=>{const ne=a(W);return o.html`
306
+ ${c.map((Z,W)=>{const Q=d(Z);return s.html`
287
307
  <div class="radio">
288
308
  <label
289
- for=${`${t}_${Z}`}
290
- class=${m(Z,ne)}
291
- style=${X.styleMap(d(Z))}
309
+ for=${`${t}_${W}`}
310
+ class=${a(W,Q)}
311
+ style=${ee.styleMap(f(W))}
292
312
  >
293
313
  <div class="radio-icon-wrapper">
294
314
  <input
295
315
  type="radio"
296
- name=${l.name||t}
297
- id=${`${t}_${Z}`}
298
- .checked=${v===String(W[r]??"")}
299
- ?disabled=${ne}
316
+ name=${i.name||t}
317
+ id=${`${t}_${W}`}
318
+ .checked=${y===String(Z[r]??"")}
319
+ ?disabled=${Q}
300
320
  class="radio-input"
301
- @keydown=${me=>{s(me)&&e.emit("update:modelValue",String(W[r]??""))}}
302
- @change=${()=>e.emit("update:modelValue",String(W[r]??""))}
321
+ @keydown=${re=>{o(re)&&e.emit("update:modelValue",String(Z[r]??""))}}
322
+ @change=${()=>e.emit("update:modelValue",String(Z[r]??""))}
303
323
  />
304
324
  <span
305
- class=${D("dot",{active:v===String(W[r]??""),disabled:ne,"borderless-focus":l.variant!=="boxed"&&!ne})}
325
+ class=${V("dot",{active:y===String(Z[r]??""),disabled:Q,"borderless-focus":i.variant!=="boxed"&&!Q})}
306
326
  ></span>
307
327
  </div>
308
- <span class="radio-label-text">${String(W[u]??"")}</span>
328
+ <span class="radio-label-text">${String(Z[u]??"")}</span>
309
329
  </label>
310
330
  </div>
311
331
  `})}
312
332
  </div>
313
- `,z="aria-label"in w||"aria-labelledby"in w,_=I&&!z&&l.label?l.label:o.nothing;return o.html`
333
+ `,C="aria-label"in P||"aria-labelledby"in P,k=D&&!C&&i.label?i.label:s.nothing;return s.html`
314
334
  <div
315
- class=${D("moz-radio-buttons",{"label-position-left":l.labelPosition==="left"},l.class)}
316
- style=${X.styleMap(fe(l.style))}
317
- role=${I?"radiogroup":o.nothing}
318
- aria-label=${_}
319
- ${ce(w)}
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)}
320
340
  >
321
- ${l.label?Be({disabled:p,required:l.required},l.label):o.nothing}
322
- ${$?C():I?E():y()}
341
+ ${i.label?Xe({disabled:p,required:i.required},i.label):s.nothing}
342
+ ${L?E():D?g():h()}
323
343
  </div>
324
- `}}}}),Ul={name:"MozRadio",core:jo,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 lo(e="var(--moz-color-text-subtle)"){return o.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
325
345
  <g>
326
346
  <path
327
347
  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"
328
348
  fill=${e}
329
349
  ></path>
330
350
  </g>
331
- </svg>`}const Wl=new Set(["label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue","class","style"]),Xo=Ce({name:"moz-input",defaults:{type:"text",required:!1,disabled:!1,isReadOnly:!1,rules:[],messagePosition:"outside",width:"100%",useInvalidV2:!1},setup(e){const t={change:"",blur:"",save:""};let s=!1;const n=()=>{const r=e.props,u=[];return r.required&&u.push({message:r.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",r.label||r.name||""),type:"save",validator:p=>!!p}),[...u,...r.rules??[]]},i=async(r,u)=>{const p=e.props,v=n();if(v.length<=0||p.disabled||p.isReadOnly)return!0;t[u]="";const $=v.filter(I=>I.type===u);for(const I of $)if(!await I.validator(r))return t[u]=I.message,e.requestUpdate(),!1;return e.requestUpdate(),!0},a=r=>{const u=r.target.value;t.save="",t.blur="",e.emit("update:modelValue",u),i(u,"change")},m=()=>{t.save="",s=!0,e.requestUpdate()},d=r=>{const u=r.target.value;i(u,"blur"),s=!1,e.requestUpdate()},l=r=>{r.key==="Enter"&&e.emit("enter",r)},h={validate:(r="save")=>i(String(e.props.modelValue??""),r),initValidator:()=>{t.change="",t.blur="",t.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(h),e.onCleanup(()=>{var r;return(r=e.validator)==null?void 0:r.removeValidator(h)})),{onMounted:r=>{e.emit("mounted",(r==null?void 0:r.querySelector("input"))??null)},render(){const r=e.props,u=String(r.modelValue??""),p=t.save||t.blur||t.change,v=!!r.useInvalidV2,$=r.width?typeof r.width=="number"?`${r.width}px`:r.width:"100%",I=be(r,Wl);return o.html`
332
- <div
333
- class=${D("moz-input-wrapper",{"is-invalid":p!==""},r.class)}
334
- style=${X.styleMap({width:$,...fe(r.style)})}
335
- >
336
- <div class="input-wrapper">
337
- ${r.label?Be({isReadOnly:r.isReadOnly,required:r.required},r.label,"input-label"):o.nothing}
338
- <input
339
- class=${D("moz-input",{disabled:r.disabled,"read-only":r.isReadOnly,"has-inside-message":!v&&r.messagePosition==="inside"&&p!==""&&!s,"has-invalid-icon":v&&p!==""&&!s})}
340
- name=${Se.ifDefined(r.name)}
341
- type=${r.type??"text"}
342
- placeholder=${Se.ifDefined(r.placeholder)}
343
- ?disabled=${!!r.disabled}
344
- ?readonly=${!!r.isReadOnly}
345
- .value=${zt.live(u)}
346
- ${ce(I)}
347
- @input=${a}
348
- @keypress=${l}
349
- @focus=${m}
350
- @blur=${d}
351
- />
352
- ${v&&p!==""&&!s?o.html`<div class="moz-input-invalid-icon-v2">
353
- ${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message:p}):o.html`<div title=${p}>${lo("var(--moz-color-danger)")}</div>`}
354
- </div>`:o.nothing}
355
- ${!v&&p!==""&&!s?o.html`<span class=${D("moz-input-invalid-message",`position-${r.messagePosition}`)}
356
- >${p}</span
357
- >`:o.nothing}
358
- </div>
359
- </div>
360
- `}}}}),Kl={name:"MozInput",core:Xo,booleanProps:["required","disabled","isReadOnly","useInvalidV2"],props:["label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue"],emits:["enter","mounted","update:modelValue"],slots:["invalidTooltip"],expose:!1};function Qo(){return o.html`<svg data-icon="password-hidden" width="18" height="18" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
361
352
  <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>
362
353
  <path
363
354
  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"
@@ -371,7 +362,7 @@
371
362
  stroke-linecap="round"
372
363
  stroke-linejoin="round"
373
364
  ></path>
374
- </svg>`}function Jo(){return o.html`<svg data-icon="password-visible" width="18" height="18" viewBox="0 0 18 12" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
375
366
  <path
376
367
  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"
377
368
  stroke="var(--moz-color-text-secondary)"
@@ -384,225 +375,234 @@
384
375
  stroke-linecap="round"
385
376
  stroke-linejoin="round"
386
377
  ></path>
387
- </svg>`}const Gl=new Set(["label","value","name","placeholder","required","disabled","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue","class","style"]),Yl=typeof navigator<"u"&&/Edg/.test(navigator.userAgent)?"edge-password":"",es=Ce({name:"moz-password-input",defaults:{required:!1,disabled:!1,rules:[],messagePosition:"outside",width:"100%",useInvalidV2:!1},setup(e){const t={change:"",blur:"",save:""};let s=!1,n=!1;const i=()=>{const p=e.props,v=[];return p.required&&v.push({message:p.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",p.label||p.name||""),type:"save",validator:$=>!!$}),[...v,...p.rules??[]]},a=async(p,v)=>{const $=e.props,I=i();if(I.length<=0||$.disabled)return!0;t[v]="";for(const w of I.filter(C=>C.type===v))if(!await w.validator(p))return t[v]=w.message,e.requestUpdate(),!1;return e.requestUpdate(),!0},m=p=>{const v=p.target.value;t.save="",t.blur="",e.emit("update:modelValue",v),a(v,"change")},d=()=>{t.save="",s=!0,e.requestUpdate()},l=p=>{a(p.target.value,"blur"),s=!1,e.requestUpdate()},h=p=>{p.key==="Enter"&&e.emit("enter",p)},r=()=>{e.props.disabled||(n=!n,e.requestUpdate())},u={validate:(p="save")=>a(String(e.props.modelValue??""),p),initValidator:()=>{t.change=t.blur=t.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(u),e.onCleanup(()=>{var p;return(p=e.validator)==null?void 0:p.removeValidator(u)})),{onMounted:p=>e.emit("mounted",(p==null?void 0:p.querySelector("input"))??null),render(){const p=e.props;p.disabled&&(n=!1);const v=String(p.modelValue??""),$=t.save||t.blur||t.change,I=!!p.useInvalidV2,w=p.width?typeof p.width=="number"?`${p.width}px`:p.width:"100%",C=be(p,Gl);return o.html`
388
- <div
389
- class=${D("moz-password-input-container",{"is-invalid":$!=="",disabled:p.disabled},p.class)}
390
- style=${X.styleMap(fe(p.style))}
391
- >
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=xt(),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}>
392
397
  <div class="input-wrapper">
393
- ${p.label?Be({disabled:p.disabled,required:p.required},p.label,"moz-input-label"):o.nothing}
394
- <div class="moz-password-input-wrapper" style="width:${w}">
395
- <input
396
- autocomplete="new-password"
397
- style="width:${w}"
398
- class=${D("moz-input",Yl,{disabled:p.disabled,"has-inside-message":!I&&p.messagePosition==="inside"&&$!==""&&!s,"has-invalid-icon":I&&$!==""&&!s})}
399
- name=${Se.ifDefined(p.name)}
400
- type=${n?"text":"password"}
401
- placeholder=${Se.ifDefined(p.placeholder)}
402
- ?disabled=${!!p.disabled}
403
- .value=${zt.live(v)}
404
- ${ce(C)}
405
- @input=${m}
406
- @keypress=${h}
407
- @focus=${d}
408
- @blur=${l}
409
- />
398
+ ${se}
399
+ <div class="moz-password-input-wrapper">
400
+ ${Y}
410
401
  <button
411
402
  type="button"
412
403
  aria-label=${n?e.locale.PasswordInput.hidePassword:e.locale.PasswordInput.showPassword}
413
404
  aria-pressed=${n?"true":"false"}
414
- class=${D("icon-container password-icon",{"cursor-pointer":!p.disabled,"cursor-not-allowed":p.disabled})}
415
- ?disabled=${!!p.disabled}
416
- @click=${r}
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}
417
409
  >
418
- ${n?Qo():Jo()}
410
+ ${n?as():ds()}
419
411
  </button>
420
- ${I&&$!==""&&!s?o.html`<div class="moz-input-invalid-icon-v2">
421
- ${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message:$}):o.html`<div title=${$}>${lo("var(--moz-color-danger)")}</div>`}
422
- </div>`:o.nothing}
423
- ${!I&&$!==""&&!s?o.html`<span class=${D("moz-input-invalid-message",`position-${p.messagePosition}`)}
424
- >${$}</span
425
- >`:o.nothing}
412
+ ${ne} ${B}
426
413
  </div>
427
414
  </div>
428
415
  </div>
429
- `}}}}),Zl={name:"MozPasswordInput",core:es,booleanProps:["disabled","required","useInvalidV2"],props:["label","value","name","placeholder","required","disabled","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue"],emits:["enter","mounted","update:modelValue"],slots:["invalidTooltip"],expose:!1},jl=new Set(["id","label","width","height","required","disabled","rules","maxLength","resize","immediatelyFocus","requiredMessage","modelValue","class","style"]),ts=Ce({name:"moz-textarea",defaults:{id:"moz-text-area-id",height:80,required:!1,disabled:!1,rules:[],maxLength:null,resize:"none",immediatelyFocus:!1,modelValue:""},setup(e){const t={change:"",blur:"",save:""},s=()=>{const l=e.props,h=[];return l.required&&h.push({message:l.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",l.label||""),type:"save",validator:r=>!!r}),[...h,...l.rules??[]]},n=async(l,h)=>{const r=e.props,u=s();if(u.length<=0||r.disabled)return!0;t[h]="";for(const p of u.filter(v=>v.type===h))if(!await p.validator(l))return t[h]=p.message,e.requestUpdate(),!1;return e.requestUpdate(),!0},i=l=>{const h=l.target,r=e.props;h.value&&r.maxLength&&h.value.length>r.maxLength&&(h.value=h.value.slice(0,r.maxLength)),e.emit("update:modelValue",h.value),n(h.value,"change")},a=l=>{n(l.target.value,"blur")},m=()=>{t.save="",e.requestUpdate()},d={validate:(l="save")=>n(String(e.props.modelValue??""),l),initValidator:()=>{t.change=t.blur=t.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(d),e.onCleanup(()=>{var l;return(l=e.validator)==null?void 0:l.removeValidator(d)})),{onMounted:l=>{var h;e.props.immediatelyFocus&&((h=l==null?void 0:l.querySelector("textarea"))==null||h.focus())},render(){const l=e.props,h=String(l.modelValue??""),r=t.save||t.blur||t.change,u=l.width?typeof l.width=="number"?`${Te(l.width)}rem`:l.width:"100%",p=`${Te(l.height??80)}rem`,v=l.resize??"none",$=v==="none"?{height:p}:{minHeight:p},I=h.length,w=be(l,jl);return o.html`
416
+ `:s.html`
417
+ <div class=${N} style=${X}>
418
+ <div class="input-wrapper">
419
+ ${se} ${Y} ${ne} ${B}
420
+ </div>
421
+ </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=xt(),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`
430
423
  <div
431
- class=${D("moz-textarea-wrapper",{disabled:l.disabled},l.class)}
432
- style=${X.styleMap({width:u,...$,...fe(l.style)})}
424
+ class=${V("moz-textarea-wrapper",{disabled:c.disabled},c.class)}
425
+ style=${ee.styleMap({width:p,...D,...be(c.style)})}
433
426
  >
434
427
  <div class="textarea-inner">
435
- ${l.label?Be({for:l.id,disabled:l.disabled,required:l.required},l.label):o.nothing}
436
- <div class=${D("moz-textarea-box",{disabled:l.disabled,invalid:r!==""})}>
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!==""})}>
437
430
  <textarea
438
- id=${Se.ifDefined(l.id)}
439
- ${ce(w)}
440
- .value=${zt.live(h)}
441
- ?disabled=${!!l.disabled}
442
- maxlength=${Se.ifDefined(l.maxLength??void 0)}
443
- class=${D("moz-textarea",{disabled:l.disabled})}
444
- style=${X.styleMap({resize:v==="none"?void 0:v,height:v==="none"?void 0:"auto"})}
445
- @input=${i}
431
+ id=${g}
432
+ ${he(E)}
433
+ .value=${uo.live(r)}
434
+ ?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}
446
439
  @blur=${a}
447
- @focus=${m}
440
+ @focus=${f}
448
441
  ></textarea>
449
- ${l.maxLength?o.html`<div class="char-counter"><span>${I}</span><span>/</span><span>${l.maxLength}</span></div>`:o.nothing}
442
+ ${c.maxLength?s.html`<div class="char-counter"><span>${P}</span><span>/</span><span>${c.maxLength}</span></div>`:s.nothing}
450
443
  </div>
451
444
  </div>
452
- ${r!==""?o.html`<span class="moz-textarea-invalid-message">${r}</span>`:o.nothing}
445
+ ${u!==""?s.html`<span class="moz-textarea-invalid-message">${u}</span>`:s.nothing}
453
446
  </div>
454
- `}}}}),Xl={name:"MozTextArea",core:ts,booleanProps:["disabled","immediatelyFocus","required"],props:["id","label","width","height","required","disabled","rules","maxLength","resize","immediatelyFocus","requiredMessage","modelValue"],emits:["update:modelValue"],slots:[],expose:!1};function Ql(e="var(--moz-color-on-accent)",t=!1){return o.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
455
- <path d="M7 1V13M1 7H13" stroke=${t?"var(--moz-color-text-muted)":e} stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
456
- </svg>`}function Jl(e="var(--moz-color-on-accent)",t=!1){return o.html`<svg width="14" height="2" viewBox="0 0 14 2" fill="none" xmlns="http://www.w3.org/2000/svg">
457
- <path d="M1 1H13" stroke=${t?"var(--moz-color-text-muted)":e} stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
458
- </svg>`}function en(e=!1){return o.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
448
+ <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">
450
+ <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">
459
452
  <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>
460
- </svg>`}function tn(e=!1){return o.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
461
454
  <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>
462
- </svg>`}const on=new Set(["label","name","width","required","step","min","max","disabled","shortMode","nullable","modelValue","class","style"]),os=Ce({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=()=>{const d=e.props;if(d.disabled||d.modelValue===void 0)return;const l=d.modelValue+d.step;d.max!==void 0&&d.max!==null&&l>d.max||(e.emit("update:modelValue",l),e.emit("change",l))},s=()=>{const d=e.props;if(d.disabled||d.modelValue===void 0)return;const l=d.modelValue-d.step;d.min!==void 0&&d.min!==null&&l<d.min||(e.emit("update:modelValue",l),e.emit("change",l))},n=d=>{const l=e.props;if(l.disabled||l.nullable||d.key!=="Backspace"&&d.key!=="Delete"||l.min===-Number.MAX_VALUE||Number(l.modelValue)!==Number(l.min))return;const h=d.target,r=h.selectionStart??0,u=h.selectionEnd??0,p=h.value,v=r!==u;(v&&r===0&&u===p.length||!v&&p.length===1)&&d.preventDefault()},i=d=>{const l=e.props;if(l.disabled||l.nullable)return;const h=d.target;if(h.value===""){const r=l.min!==-Number.MAX_VALUE?l.min:0;e.emit("update:modelValue",r),h.value=String(r),e.emit("change",r)}},a=d=>{const l=e.props;if(l.disabled)return;const h=d.target;if(!h&&!l.nullable){e.emit("update:modelValue",0),e.emit("change",0);return}if(!h)return;Number(h.value)<l.min&&(h.value=String(l.min)),Number(h.value)>l.max&&(h.value=String(l.max));const r=+h.value.replace(/,/g,"");e.emit("update:modelValue",r),e.emit("change",r)},m=d=>{d.key==="Enter"&&e.emit("enter",d)};return{onMounted:d=>e.emit("mounted",(d==null?void 0:d.querySelector("input"))??null),render(){const d=e.props,l=d.modelValue,h=!!d.disabled,r=d.min,u=d.max,p=typeof d.width=="number"?`${Te(d.width)}rem`:d.width,v=be(d,on),$=w=>D("moz-button","moz-icon-button","moz-icon-accent-button","num-change-btn",w),I=o.html`
463
- <div class=${D("moz-number-input",{"input-border":d.shortMode})}>
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=xt(),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})}>
464
457
  <input
465
- name=${Se.ifDefined(d.name)}
466
- ?disabled=${h}
467
- .value=${zt.live(String(l??""))}
468
- ${ce(v)}
458
+ id=${D}
459
+ name=${Ee.ifDefined(i.name)}
460
+ ?disabled=${r}
461
+ .value=${uo.live(String(c??""))}
462
+ ${he(L)}
469
463
  @input=${a}
470
464
  @change=${a}
471
- @blur=${i}
472
- @keydown=${n}
473
- @keypress=${m}
465
+ @blur=${d}
466
+ @keydown=${l}
467
+ @keypress=${f}
474
468
  type="number"
475
469
  />
476
470
  <div class="moz-number-input-btn">
477
- ${d.shortMode?o.html`
478
- <button type="button" aria-label=${e.locale.NumberInput.increase} class="moz-number-input-btn-icon" @click=${t}>${en(h)}</button>
479
- <button type="button" aria-label=${e.locale.NumberInput.decrease} class="moz-number-input-btn-icon" @click=${s}>${tn(h)}</button>
480
- `:o.nothing}
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}
481
475
  </div>
482
476
  </div>
483
- `;return o.html`
484
- <div class=${D("moz-number-input-container",{disabled:h},d.class)} style=${X.styleMap(fe(d.style))}>
485
- ${d.label?Be({disabled:h},o.html`${d.label}${d.required?o.html`<span class="require-mark">*</span>`:o.nothing}`):o.nothing}
486
- <div class="moz-number-input-wrapper" style="width:${p}">
487
- ${d.shortMode?o.nothing:o.html`<button
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
488
482
  type="button"
489
483
  aria-label=${e.locale.NumberInput.decrease}
490
- class=${$({disabled:h||r>=l,"min-disabled":r>=l})}
491
- style="border-radius: 4px 0px 0px 4px"
492
- ?disabled=${h}
493
- @click=${s}
484
+ class=${P({disabled:r||u>=c,"min-disabled":u>=c})}
485
+ ?disabled=${r}
486
+ @click=${n}
494
487
  >
495
- ${Jl("var(--moz-color-on-accent)",h||r>=l)}
488
+ ${vl("currentColor",r||u>=c)}
496
489
  </button>`}
497
- ${I}
498
- ${d.shortMode?o.nothing:o.html`<button
490
+ ${E}
491
+ ${i.shortMode?s.nothing:s.html`<button
499
492
  type="button"
500
493
  aria-label=${e.locale.NumberInput.increase}
501
- class=${$({disabled:h||u<=l,"max-disabled":u<=l})}
502
- style="border-radius: 0px 4px 4px 0px"
503
- ?disabled=${h}
504
- @click=${t}
494
+ class=${P({disabled:r||p<=c,"max-disabled":p<=c})}
495
+ ?disabled=${r}
496
+ @click=${o}
505
497
  >
506
- ${Ql("var(--moz-color-on-accent)",h||u<=l)}
498
+ ${gl("currentColor",r||p<=c)}
507
499
  </button>`}
508
500
  </div>
509
501
  </div>
510
- `}}}}),sn={name:"MozNumberInput",core:os,booleanProps:["disabled","nullable","required","shortMode"],props:["label","name","width","required","step","min","max","disabled","shortMode","nullable","modelValue"],emits:["change","mounted","enter","update:modelValue"],slots:[],expose:!1};function ss(e="var(--moz-color-text-subtle)"){return o.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
511
503
  <path d="M9 3L3 9M3 3L9 9" stroke=${e} stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
512
- </svg>`}const ln=new Set(["itemSource","vertical","tabWidth","maxTabWidth","closeAble","modelValue","class","style"]),ls=Ce({name:"moz-tab",defaults:{vertical:!1,tabWidth:100,closeAble:!1,itemSource:[]},setup(e){const t=tt("tab_"),s=l=>`${t}-tab-${l}`,n=l=>`${t}-panel-${l}`,i=l=>typeof requestAnimationFrame=="function"?requestAnimationFrame(l):setTimeout(l,16),a=l=>{e.props.modelValue!==l&&(e.emit("update:modelValue",l),e.emit("change",l))},m=(l,h)=>{const r=e.props,u=(r.itemSource??[]).map(y=>y.id);if(u.length===0)return;const p=r.vertical?"ArrowDown":"ArrowRight",v=r.vertical?"ArrowUp":"ArrowLeft";let $;if(l.key===p?$=u[(u.indexOf(h)+1)%u.length]:l.key===v?$=u[(u.indexOf(h)-1+u.length)%u.length]:l.key==="Home"?$=u[0]:l.key==="End"?$=u[u.length-1]:(l.key==="Enter"||l.key===" ")&&($=h),$===void 0)return;l.preventDefault(),l.stopPropagation(),a($);const I=l.currentTarget.closest('[role="tablist"]'),w=s($);let C=0;const E=()=>{const y=Array.from((I==null?void 0:I.querySelectorAll('[role="tab"]'))??[]).find(z=>z.id===w);if(y&&y.getAttribute("aria-selected")==="true"){y.focus();return}++C<20&&i(E)};i(E)},d=l=>{const h=e.props;if(h.modelValue===l){const r=(h.itemSource??[]).filter(u=>u.id!==l);r.length>0&&a(r[r.length-1].id)}e.emit("close",l)};return{onMounted:()=>{const l=e.props;!l.modelValue&&(l.itemSource??[]).length>0&&queueMicrotask(()=>{!e.props.modelValue&&(e.props.itemSource??[]).length>0&&a(e.props.itemSource[0].id)})},render(){const l=e.props,h=l.itemSource??[],r=l.modelValue,u=be(l,ln),p=X.styleMap({width:l.closeAble?`${l.tabWidth}px`:"",maxWidth:l.maxTabWidth?`${l.maxTabWidth}px`:void 0,display:"flex",justifyContent:l.closeAble||l.vertical?"space-between":"center",alignItems:l.vertical?"center":"normal"});return o.html`
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">
505
+ <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
+ <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`
513
508
  <div
514
- class=${D("moz-tabs-container",{vertical:l.vertical},l.class)}
515
- style=${X.styleMap(fe(l.style))}
516
- ${ce(u)}
509
+ class=${V("moz-tabs-container",{vertical:r.vertical},r.class)}
510
+ style=${ee.styleMap(be(r.style))}
511
+ ${he(y)}
517
512
  >
518
513
  <div
519
- class=${D("moz-tabs",{vertical:l.vertical})}
514
+ class=${V("moz-tabs",{vertical:r.vertical})}
520
515
  role="tablist"
521
- aria-orientation=${l.vertical?"vertical":"horizontal"}
516
+ aria-orientation=${r.vertical?"vertical":"horizontal"}
522
517
  >
523
- ${h.map(v=>{const $=r===v.id;return o.html`
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`
524
519
  <div
525
- class=${D("moz-tab",{"current-tab":$,vertical:l.vertical,closeable:l.closeAble})}
526
- style=${p}
527
- id=${s(v.id)}
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)}
528
523
  role="tab"
529
- aria-selected=${$?"true":"false"}
530
- aria-controls=${n(v.id)}
531
- tabindex=${$?"0":"-1"}
532
- @click=${()=>a(v.id)}
533
- @mousedown=${I=>{I.button===0&&a(v.id)}}
534
- @keydown=${I=>m(I,v.id)}
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)}
535
530
  >
536
- ${e.slots.has(`${v.id}-tab`)?e.slot(`${v.id}-tab`,{text:v.text,active:$}):o.html`<p class=${D("tab-label",{active:$})}>${v.text}</p>`}
537
- ${l.closeAble?o.html`<button type="button"
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)}
538
534
  class="tab-close-btn"
539
- aria-label=${e.locale.Tab.closeTab.replace("{label}",v.text??"")}
540
- @click=${I=>{I.stopPropagation(),d(v.id)}}
535
+ aria-label=${e.locale.Tab.closeTab.replace("{label}",D.text??"")}
536
+ @click=${g=>{g.stopPropagation(),c(D.id)}}
541
537
  >
542
- ${ss()}
543
- </button>`:o.nothing}
538
+ ${E?$l():gs()}
539
+ </button>`:s.nothing}
544
540
  </div>
545
541
  `})}
546
542
  </div>
547
543
  <div class="moz-tab-body">
548
- ${h.map(v=>o.html`
544
+ ${u.map(D=>s.html`
549
545
  <div
550
- class=${D("tab-panel",{active:r===v.id})}
551
- id=${n(v.id)}
546
+ class=${V("tab-panel",{active:p===D.id})}
547
+ id=${d(D.id)}
552
548
  role="tabpanel"
553
- aria-labelledby=${s(v.id)}
554
- tabindex=${r===v.id?"0":"-1"}
555
- ?hidden=${r!==v.id}
549
+ aria-labelledby=${l(D.id)}
550
+ tabindex=${p===D.id?"0":"-1"}
551
+ ?hidden=${p!==D.id}
556
552
  >
557
- ${e.slot(v.id,{active:r===v.id})}
553
+ ${e.slot(D.id,{active:p===D.id})}
558
554
  </div>
559
555
  `)}
560
556
  </div>
561
557
  </div>
562
- `}}}}),nn={name:"MozTab",core:ls,booleanProps:["closeAble","vertical"],props:["itemSource","vertical","tabWidth","maxTabWidth","closeAble","modelValue"],emits:["change","close","update:modelValue"],slots:[],expose:!1},rn=new Set(["id","width","label","min","max","step","disabled","modelValue","class","style"]),ns=Ce({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,s=null,n=null;const i=u=>{const p=e.props;if(!s)return;const v=s.getBoundingClientRect(),I=(u.clientX-v.left)/s.offsetWidth;let w=Math.round(p.min+(p.max-p.min)*I);w<p.min?w=p.min:w>p.max&&(w=p.max);const C=Math.round(w/p.step)*p.step;e.emit("update:modelValue",C),e.emit("change")},a=()=>{window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",a),n==null||n.focus()},m=u=>{e.props.disabled||(u.preventDefault(),n=u.currentTarget,s=n.querySelector(".moz-slider"),i(u),window.addEventListener("mousemove",i),window.addEventListener("mouseup",a))},d=u=>{const p=e.props;let v=p.modelValue??0;u==="-"?v-=p.step:v+=p.step,v>p.max?v=p.max:v<p.min&&(v=p.min),e.emit("update:modelValue",v),e.emit("change")},l=u=>{u.key==="ArrowLeft"||u.keyCode===37?d("-"):(u.key==="ArrowRight"||u.keyCode===39)&&d("+")},h=()=>{t=!0,e.requestUpdate()},r=()=>{t=!1,e.requestUpdate()};return e.onCleanup(()=>{window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",a)}),{render(){const u=e.props,p=u.modelValue??0,v=!!u.disabled,$=u.min,I=u.max,w=typeof u.width=="number"?`${Te(u.width)}rem`:u.width,C=typeof u.width=="number"?u.width:Number.isNaN(parseFloat(String(u.width)))?150:parseFloat(String(u.width)),y=(p-$)/(I-$)*(C-18),z=y<0?0:y,_=be(u,rn);return o.html`
563
- <div class=${D("moz-slider-wrapper",u.class)} style=${X.styleMap(fe(u.style))} ${ce(_)}>
564
- ${u.label?Be({for:u.id},u.label):o.nothing}
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}
565
561
  <div
566
- class=${D("moz-slider-container",{disabled:v,label:!!u.label})}
562
+ class=${V("moz-slider-container",{disabled:y,label:!!u.label})}
567
563
  role="slider"
568
564
  aria-valuenow=${String(p??0)}
569
565
  aria-valuemin=${String(u.min??0)}
570
566
  aria-valuemax=${String(u.max??100)}
571
567
  aria-orientation="horizontal"
572
- aria-disabled=${v?"true":"false"}
573
- aria-label=${Se.ifDefined(u.label)}
574
- tabindex=${v?"-1":"0"}
575
- @mousedown=${m}
576
- @focus=${h}
568
+ aria-disabled=${y?"true":"false"}
569
+ aria-label=${Ee.ifDefined(u.label)}
570
+ tabindex=${y?"-1":"0"}
571
+ @mousedown=${a}
572
+ @focus=${c}
577
573
  @blur=${r}
578
- @keydown=${l}
574
+ @keydown=${i}
579
575
  >
580
- <div class="moz-slider" style="width:${w}">
581
- <div class="moz-slider-track" style="width:${Te(z+10)}rem"></div>
576
+ <div class="moz-slider" style="width:${P}">
577
+ <div class="moz-slider-track" style="width:${Ae(C+10)}rem"></div>
582
578
  </div>
583
579
  <div
584
- class=${D("moz-slider-handle",{focused:t&&!v})}
585
- style="left:${Te(z)}rem"
580
+ class=${V("moz-slider-handle",{focused:t&&!y})}
581
+ style="left:${Ae(C)}rem"
586
582
  ></div>
587
583
  </div>
588
584
  </div>
589
- `}}}}),an={name:"MozSlider",core:ns,booleanProps:["disabled"],props:["id","width","label","min","max","step","disabled","modelValue"],emits:["change","update:modelValue"],slots:[],expose:!1};function dn(e="var(--moz-color-text-subtle)"){return o.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
590
586
  <path d="M3 4.5L6 7.5L9 4.5" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
591
- </svg>`}function cn(e="var(--moz-color-text-subtle)"){return o.html`<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
587
+ </svg>`}const bs="var(--moz-color-calendar-nav-icon)";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">
592
588
  <path
593
- fill-rule="evenodd"
594
- clip-rule="evenodd"
595
- d="M6.44838 8.48894C6.76426 8.18002 6.7699 7.67352 6.46097 7.35764L4.12588 4.96996L6.45391 2.64852C6.76677 2.33654 6.76749 1.83001 6.45551 1.51715C6.14354 1.20429 5.637 1.20357 5.32414 1.51555L2.4351 4.39641C2.12439 4.70624 2.12124 5.20853 2.42804 5.52225L5.31708 8.47635C5.626 8.79223 6.1325 8.79787 6.44838 8.48894Z"
596
- fill=${e}
589
+ d="M3 8.5L7.05021 4.5L11 8.5"
590
+ transform="rotate(-90 7 7)"
591
+ stroke=${e}
592
+ stroke-width="1.6"
593
+ stroke-linecap="round"
594
+ stroke-linejoin="round"
597
595
  ></path>
598
- </svg>`}function un(e="var(--moz-color-text-subtle)"){return o.html`<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
596
+ </svg>`}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">
599
597
  <path
600
- fill-rule="evenodd"
601
- clip-rule="evenodd"
602
- d="M3.72667 8.48894C3.41079 8.18002 3.40515 7.67352 3.71407 7.35764L6.04917 4.96996L3.72114 2.64852C3.40828 2.33654 3.40756 1.83001 3.71954 1.51715C4.03151 1.20429 4.53804 1.20357 4.85091 1.51555L7.73994 4.39641C8.05066 4.70624 8.05381 5.20853 7.74701 5.52225L4.85797 8.47635C4.54905 8.79223 4.04255 8.79787 3.72667 8.48894Z"
603
- fill=${e}
598
+ d="M3 5.5L7.05021 9.5L11 5.5"
599
+ transform="rotate(-90 7 7)"
600
+ stroke=${e}
601
+ stroke-width="1.6"
602
+ stroke-linecap="round"
603
+ stroke-linejoin="round"
604
604
  ></path>
605
- </svg>`}function pn(e="var(--moz-color-text-subtle)"){return o.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
606
606
  <path
607
607
  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
608
  stroke=${e}
@@ -615,79 +615,80 @@
615
615
  fill=${e}
616
616
  ></path>
617
617
  <rect x="3.34009" y="7.41504" width="2.93262" height="2.93262" rx="0.5" fill=${e}></rect>
618
- </svg>`}const hn=new Set(["rowHeight","exceptWeeks","min","max","modelValue","class","style"]),mn=(e,...t)=>e.filter(s=>!t.includes(s)),no=Ce({name:"moz-calendar",defaults:{rowHeight:36,exceptWeeks:[],min:null,max:null},setup(e){let t=e.props.modelValue?Pe(e.props.modelValue):Pe(),s=e.props.modelValue,n=!0,i=!1,a=!1,m=-1;const d=y=>{const z=e.props;return!!z.min&&y.isBefore(z.min,"day")||!!z.max&&y.isAfter(z.max,"day")},l=y=>{const z=e.props;return!!z.min&&y.endOf("year").isBefore(z.min,"day")||!!z.max&&y.startOf("year").isAfter(z.max,"day")},h=y=>{const z=e.props;return!!z.min&&y.endOf("month").isBefore(z.min,"day")||!!z.max&&y.startOf("month").isAfter(z.max,"day")},r=()=>{t=t.subtract(1,"M"),e.requestUpdate()},u=()=>{t=t.add(1,"M"),e.requestUpdate()},p=()=>{n=!0,i=!1,a=!1,e.requestUpdate()},v=()=>{n=!1,i=!0,a=!1,e.requestUpdate()},$=()=>{n=!1,i=!1,a=!0,e.requestUpdate()},I=y=>{l(y)||(t=t.set("year",y.year()),n=!0,i=!1,a=!1,e.requestUpdate())},w=y=>{h(y)||(t=t.set("month",y.month()),n=!0,i=!1,a=!1,e.requestUpdate())},C=y=>{d(y)||e.emit("update:modelValue",Pe(y))},E=()=>C(Pe());return{render(){const y=e.props;y.modelValue!==s&&(s=y.modelValue,t=y.modelValue?Pe(y.modelValue):Pe());const z=y.rowHeight??36,_=["ko","zh","zh-cn"].includes(Pe().locale()),W=t.hour(),Z=t.minute(),ne=t.second(),me=x=>x.set("hour",W||0).set("minute",Z||0).set("second",ne||0),le=mn([0,1,2,3,4,5,6],...y.exceptWeeks??[]),A=[];{const x=me(t.endOf("M"));let T=me(t.startOf("M")).startOf("w");do A.push(T),T=T.add(7,"d");while(T.diff(x)<=0)}const U=z*A.length+126;U!==m&&(m=U,queueMicrotask(()=>e.emit("setMaxHeight",U)));const G=(x,T)=>{const V=x.add(T,"d");return t.format("YYYYMMDD")!==V.format("YYYYMMDD")?t.format("MM")===V.format("MM")?"":"moz-calendar-column-otherMonth":""},oe=y.modelValue?Pe(y.modelValue).format("YYYYMMDD"):"",Q=(x,T,V)=>o.html`<button
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
619
619
  type="button"
620
- aria-label=${V}
620
+ aria-label=${J}
621
621
  class="moz-button moz-icon-button"
622
- style="width:24px;height:24px;min-width:24px;min-height:24px"
623
- @click=${T}
622
+ style="width:22px;height:22px;min-width:22px;min-height:22px"
623
+ @click=${G}
624
624
  >
625
- ${x}
626
- </button>`,F=o.html`
625
+ ${_}
626
+ </button>`,se=s.html`
627
627
  <div class="moz-calendar-header">
628
628
  <div class="moz-calendar-select">
629
- ${_?o.html`
630
- <div class="moz-calendar-select__text" @click=${v}>
629
+ ${Z?s.html`
630
+ <div class="moz-calendar-select__text" @click=${L}>
631
631
  ${new Intl.DateTimeFormat(Pe().locale(),{year:"numeric"}).format(t.toDate())}
632
632
  </div>
633
- <div class="moz-calendar-select__text" @click=${$}>${t.format("MMMM")}</div>
634
- `:o.html`
635
- <div class="moz-calendar-select__text" @click=${$}>${t.format("MMMM")}</div>
636
- <div class="moz-calendar-select__text" @click=${v}>${t.format("YYYY")}</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>
637
637
  `}
638
- <div class="moz-calendar-select-btn" @click=${p}>${dn("currentColor")}</div>
638
+ <div class="moz-calendar-select-btn" @click=${y}>${Ll("currentColor")}</div>
639
639
  </div>
640
640
  <div class="moz-calendar-header__spacer"></div>
641
641
  <div class="moz-calendar-select-btn-group">
642
- ${Q(cn(),r,"이전 달")}${Q(pn(),E,"오늘")}${Q(un(),u,"다음 달")}
642
+ ${B(xl(),u,l?"이전 연도":"이전 달")}${B(zl(),h,"오늘")}${B(Ml(),p,l?"다음 연도":"다음 달")}
643
643
  </div>
644
644
  </div>
645
- `,se=o.html`
645
+ `,N=s.html`
646
646
  <div class="moz-calendar-row">
647
- ${le.map(x=>o.html`<div
647
+ ${j.map(_=>s.html`<div
648
648
  class="moz-calendar-column moz-calendar-column-day"
649
- style="width: ${100/le.length}%; height: ${Te(z)}rem;"
649
+ style="width: ${100/j.length}%; height: ${Ae(k)}rem;"
650
650
  >
651
- ${Pe().day(x).format("ddd")}
651
+ ${Pe().day(_).format("ddd")}
652
652
  </div>`)}
653
653
  </div>
654
- ${A.map(x=>o.html`<div class="moz-calendar-row">
655
- ${le.map(T=>{const V=x.add(T,"d");return o.html`<div
656
- class=${D("moz-calendar-column",G(x,T),oe===V.format("YYYYMMDD")?"moz-calendar-selected":"",d(V)?"date-disable":"moz-calendar-column--hoverable")}
657
- style="width: ${100/le.length}%; height: ${Te(z)}rem"
658
- @click=${()=>C(V)}
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)}
659
659
  >
660
- ${V.format("DD")}
660
+ ${J.format("DD")}
661
661
  </div>`})}
662
662
  </div>`)}
663
- `;let K=o.nothing;if(i){const x=[],T=Pe().add(100,"y").startOf("y");let V=Pe().subtract(100,"y").startOf("y");do x.push(V),V=V.add(1,"y");while(V.diff(T)<=0);K=o.html`<div
664
- class="moz-calendar-row moz-calendar-row--wrap"
665
- style="max-height: ${Te(z*A.length)}rem"
666
- >
667
- ${x.map(f=>o.html`<div
668
- class=${D("moz-calendar-column",t.format("YYYY")===f.format("YYYY")?"moz-calendar-selected":"",l(f)?"date-disable":"moz-calendar-column--hoverable")}
669
- style="width: ${100/3}%; height: ${Te(z)}rem"
670
- @click=${()=>I(f)}
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)}
671
668
  >
672
- ${f.format("YYYY")}
669
+ ${G.format("YYYY")}
673
670
  </div>`)}
674
- </div>`}let k=o.nothing;if(a){const x=[],T=t.endOf("y");let V=t.startOf("y");do x.push(V),V=V.add(1,"M");while(V.diff(T)<=0);k=o.html`<div class="moz-calendar-row moz-calendar-row--wrap">
675
- ${x.map(f=>o.html`<div
676
- class=${D("moz-calendar-column",t.format("YYYYMM")===f.format("YYYYMM")?"moz-calendar-selected":"",h(f)?"date-disable":"moz-calendar-column--hoverable")}
677
- style="width: ${100/3}%; height: ${Te(z)}rem"
678
- @click=${()=>w(f)}
671
+ </div>`}let x=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);x=s.html`<div class="moz-calendar-row moz-calendar-row--wrap">
672
+ ${_.map(M=>s.html`<div
673
+ class=${V("moz-calendar-column",t.format("YYYYMM")===M.format("YYYYMM")?"moz-calendar-selected":"",r(M)?"date-disable":"moz-calendar-column--hoverable")}
674
+ style="width: ${100/3}%; height: ${Ae(k)}rem"
675
+ @click=${()=>E(M)}
679
676
  >
680
- ${f.format("MMM")}
677
+ ${M.format("MMM")}
681
678
  </div>`)}
682
- </div>`}const S=be(y,hn);return o.html`
683
- <div class=${D("moz-calendar-container",y.class)} style=${X.styleMap(fe(y.style))} ${ce(S)}>
684
- ${F}${n?se:o.nothing}${K}${k}
679
+ </div>`}const U=ye(C,Tl);return s.html`
680
+ <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)}
684
+ >
685
+ ${se}${n?N:s.nothing}${X}${x}
685
686
  </div>
686
- `}}}}),fn={name:"MozCalendar",core:no,props:["rowHeight","exceptWeeks","min","max","modelValue"],emits:["changed","setMaxHeight","update:modelValue"],slots:[],expose:!1};function gn(e="var(--moz-color-on-accent)",t="14",s=!1){return o.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
687
- <path d="M8.5 3.5L5.5 7L8.5 10.5" stroke=${s?"var(--moz-color-text-muted)":e} stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"></path>
688
- </svg>`}function vn(e="var(--moz-color-on-accent)",t="14",s=!1){return o.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
689
- <path d="M5.5 3.5L8.5 7L5.5 10.5" stroke=${s?"var(--moz-color-text-muted)":e} stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"></path>
690
- </svg>`}function bn(e="var(--moz-color-text-subtle)",t=""){return o.html`<svg class=${t} width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
688
+ <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">
690
+ <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">
691
692
  <path
692
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"
693
694
  stroke=${e}
@@ -699,69 +700,71 @@
699
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"
700
701
  fill=${e}
701
702
  ></path>
702
- </svg>`}const wn="YYYY-MM-DD",Cn=new Set(["label","name","width","required","disabled","readonly","format","showSpin","min","max","modelValue","class","style"]),is=Ce({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,s=270,n=e.props.modelValue,i=null,a=null;const m=new Tt,d=w=>{const C=e.props.modelValue;let E;w&&C instanceof Date?E=Pe(w).toDate():w&&Pe.isDayjs(C)||!C&&w?E=Pe(w):E=void 0,e.emit("update:modelValue",E)},l=((w,...C)=>{w==="update:modelValue"?d(C[0]):w==="setMaxHeight"&&(s=C[0],h.calcPosition())}),h=new gt({anchor:()=>i==null?void 0:i.querySelector(".moz-date-input-wrapper"),panel:()=>m.element,maxHeight:()=>s,ignoreScrollTargets:w=>(w&&typeof w.className=="string"?w.className:"").split(" ").includes("moz-calendar-row"),container:()=>i,requestClose:()=>{t&&(t=!1,u(),e.requestUpdate())}}),r=()=>{const w=m.open("calendar-container moz-date-input-calendar");a=no(w,{modelValue:e.props.modelValue,min:e.props.min,max:e.props.max},l),h.open()},u=()=>{h.close(),a==null||a.destroy(),a=null,m.close(),e.emit("close")},p=()=>{var C;const w=e.props;w.disabled||w.readonly||(t=!t,t?((C=i==null?void 0:i.querySelector("input"))==null||C.focus(),r()):u(),e.requestUpdate())},v=()=>{e.props.modelValue&&d(Pe(e.props.modelValue).subtract(1,"d"))},$=()=>{e.props.modelValue&&d(Pe(e.props.modelValue).add(1,"d"))},I=w=>{const C=w.target,E=e.props.modelValue;E?Pe.isDayjs(E)&&Pe(C.value).isValid()?d(Pe(C.value)):E instanceof Date&&!Number.isNaN(Date.parse(C.value))?d(new Date(C.value)):d(void 0):d(Pe(C.value))};return e.onCleanup(()=>{h.destroy(),a==null||a.destroy(),m.close()}),{onMounted:w=>{i=w},render(){const w=e.props;if(w.modelValue!==n){n=w.modelValue;const ne=w.modelValue;queueMicrotask(()=>e.emit("change",ne)),a&&a.update({modelValue:w.modelValue})}const C=w.format||wn,E=typeof w.width=="number"?`${Te(w.width)}rem`:w.width,y=w.modelValue?Pe(w.modelValue).format(C):"",z=!!w.min&&Pe(y).isSameOrBefore(Pe(w.min),"day"),_=!!w.max&&Pe(y).isSameOrAfter(Pe(w.max),"day"),W=be(w,Cn),Z=(ne,me,le,A)=>o.html`<button
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
703
704
  type="button"
704
- aria-label=${me==="left"?e.locale.DateInput.prevDate:e.locale.DateInput.nextDate}
705
- class=${D("moz-button","moz-icon-button","moz-icon-accent-button","moz-icon-text-button","date-move-btn",`date-move-btn--${me}`,{"date-move-btn--disabled":le})}
706
- ?disabled=${le}
707
- @click=${A}
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}
708
709
  >
709
- ${ne}
710
- </button>`;return o.html`
710
+ ${j}
711
+ </button>`;return s.html`
711
712
  <div
712
- class=${D("moz-date-input-container",{disabled:w.disabled},w.class)}
713
- style=${X.styleMap({...fe(w.style),width:E})}
713
+ class=${V("moz-date-input-container",{disabled:g.disabled},g.class)}
714
+ style=${ee.styleMap({...be(g.style),width:C})}
714
715
  >
715
- ${w.label?Be({disabled:w.disabled},o.html`${w.label}${w.required?o.html`<span class="require-mark">*</span>`:o.nothing}`):o.nothing}
716
- <div class="moz-date-input-wrapper" style="width:${E}">
717
- ${w.showSpin?Z(gn("var(--moz-color-on-accent)","14",w.disabled||z),"left",z,v):o.nothing}
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}
718
719
  <div
719
- class=${D("moz-date-input",{"moz-date-input--no-lr-border":w.showSpin,"moz-date-input--radius":!w.showSpin,"moz-date-input--disabled":w.disabled})}
720
- @click=${p}
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}
721
723
  >
722
724
  <input
723
- .value=${y}
724
- name=${Se.ifDefined(w.name)}
725
- ?disabled=${!!w.disabled}
726
- ?readonly=${!!w.readonly}
727
- class=${D("moz-date-input__field",{"moz-date-input__field--disabled":w.disabled})}
728
- ${ce(W)}
729
- @change=${I}
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}
730
733
  />
731
- ${w.readonly?o.nothing:o.html`<div class="moz-date-input__icon-container">
732
- ${bn("currentColor",D("moz-date-input__icon",{"moz-date-input__icon--disabled":w.disabled}))}
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}))}
733
736
  </div>`}
734
737
  </div>
735
- ${w.showSpin?Z(vn("var(--moz-color-on-accent)","14",w.disabled||_),"right",_,$):o.nothing}
738
+ ${g.showSpin?ae(Rl("var(--moz-color-on-accent)","14",g.disabled||W),"right",!!g.disabled||!!g.readonly||W,P):s.nothing}
736
739
  </div>
737
740
  </div>
738
- `}}}}),yn={name:"MozDateInput",core:is,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 bt(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 $n(e="10",t="var(--moz-color-text-muted)",s=!1,n=!1,i=""){const a=bt(e),m=i||o.nothing;return a.width<=10?o.html`<svg class=${m} width=${a.width} height=${a.height} viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
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 Mt(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=Mt(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">
739
742
  <path d="M8.5 1.5L1.49999 8.50001" stroke=${t} stroke-width="1.75" stroke-linecap="round"></path>
740
743
  <path d="M1.5 1.5L8.50001 8.50001" stroke=${t} stroke-width="1.75" stroke-linecap="round"></path>
741
- </svg>`:a.width<=13&&a.width>=11&&!n?o.html`<svg class=${m} width=${a.width} height=${a.height} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
742
745
  <path d="M1.71436 1.71428L10.8069 10.7926" stroke=${t} stroke-width="2" stroke-linecap="round"></path>
743
746
  <path d="M10.8069 1.71428L1.71436 10.7926" stroke=${t} stroke-width="2" stroke-linecap="round"></path>
744
- </svg>`:a.width<=13&&a.width>=11&&n?o.html`<svg class=${m} width=${a.width} height=${a.height} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
745
748
  <path d="M10.2 1.7998L1.79994 10.1998" stroke=${t} stroke-width="1.6" stroke-linecap="round"></path>
746
749
  <path d="M1.79993 1.7998L10.1999 10.1998" stroke=${t} stroke-width="1.6" stroke-linecap="round"></path>
747
- </svg>`:o.html`<svg class=${m} width=${a.width} height=${a.height} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
748
751
  <g>
749
752
  <g>
750
753
  <path
751
754
  fill-rule="evenodd"
752
755
  clip-rule="evenodd"
753
756
  d="M1.29234 1.29345C1.68256 0.902618 2.31572 0.902121 2.70655 1.29234L13.3146 11.8837C13.7054 12.2739 13.7059 12.9071 13.3157 13.2979C12.9254 13.6887 12.2923 13.6892 11.9014 13.299L1.29345 2.70766C0.902618 2.31744 0.902121 1.68428 1.29234 1.29345Z"
754
- fill=${s?"var(--moz-color-text-muted)":t}
757
+ fill=${o?"var(--moz-color-text-muted)":t}
755
758
  ></path>
756
759
  <path
757
760
  fill-rule="evenodd"
758
761
  clip-rule="evenodd"
759
762
  d="M13.3157 1.29345C13.7059 1.68428 13.7054 2.31744 13.3146 2.70766L2.70655 13.299C2.31572 13.6892 1.68256 13.6887 1.29234 13.2979C0.902121 12.9071 0.902618 12.2739 1.29345 11.8837L11.9014 1.29234C12.2923 0.902121 12.9254 0.902618 13.3157 1.29345Z"
760
- fill=${s?"var(--moz-color-text-muted)":t}
763
+ fill=${o?"var(--moz-color-text-muted)":t}
761
764
  ></path>
762
765
  </g>
763
766
  </g>
764
- </svg>`}function Sn(e="30",t="var(--moz-color-danger)",s=""){const n=bt(e);return o.html`<svg class=${s||o.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
767
+ </svg>`}function Hl(e="30",t="var(--moz-color-danger)",o=""){const n=Mt(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">
765
768
  <mask id="mask0_6027_4458" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
766
769
  <g><path d="M30 0H0V30H30V0Z" fill="#FFF"></path></g>
767
770
  </mask>
@@ -773,7 +776,7 @@
773
776
  ></path>
774
777
  </g>
775
778
  </g>
776
- </svg>`}function kn(e="30",t="var(--moz-color-accent)",s=""){const n=bt(e);return o.html`<svg class=${s||o.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
779
+ </svg>`}function _l(e="30",t="var(--moz-color-accent)",o=""){const n=Mt(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">
777
780
  <g>
778
781
  <path
779
782
  fill-rule="evenodd"
@@ -782,7 +785,7 @@
782
785
  fill=${t}
783
786
  ></path>
784
787
  </g>
785
- </svg>`}function En(e="30",t="var(--moz-color-success)",s=""){const n=bt(e);return o.html`<svg class=${s||o.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
788
+ </svg>`}function Ul(e="30",t="var(--moz-color-success)",o=""){const n=Mt(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">
786
789
  <g>
787
790
  <path
788
791
  fill-rule="evenodd"
@@ -791,7 +794,7 @@
791
794
  fill=${t}
792
795
  ></path>
793
796
  </g>
794
- </svg>`}function Pn(e="30",t="var(--moz-color-warning)",s=""){const n=bt(e);return o.html`<svg class=${s||o.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
797
+ </svg>`}function Wl(e="30",t="var(--moz-color-warning)",o=""){const n=Mt(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">
795
798
  <mask id="mask0_6027_4463" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
796
799
  <g><path d="M30 0H0V30H30V0Z" fill="#FFF"></path></g>
797
800
  </mask>
@@ -803,48 +806,48 @@
803
806
  ></path>
804
807
  </g>
805
808
  </g>
806
- </svg>`}const Tn=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 ht=0,rs="";const Mn=()=>{ht===0&&(rs=document.body.style.overflow,document.body.style.overflow="hidden"),ht+=1},Ln=()=>{ht!==0&&(ht-=1,ht===0&&(document.body.style.overflow=rs))},xn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',as=Ce({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=N.createRef(),s=N.createRef(),n=tt("moz-popup-title-"),i=tt("moz-popup-desc-");let a=null,m=e.props.visible??!1,d=e.props.width,l=e.props.height;const h=()=>e.controlled("visible")?!!e.props.visible:m,r=P=>{e.controlled("visible")||(m=P),e.emit("update:visible",P),e.requestUpdate()},u=()=>e.controlled("width")?e.props.width:d,p=P=>{e.controlled("width")||(d=P),e.emit("update:width",P),e.requestUpdate()},v=()=>e.controlled("height")?e.props.height:l,$=P=>{e.controlled("height")||(l=P),e.emit("update:height",P),e.requestUpdate()};let I=0,w=0,C=!1;const E=!0;let y=null;const z={mouseDown:!1,dragging:!1,offset:{x:0,y:0}};let _=h(),W=!1,Z=!1,ne=null,me=[];const le=()=>{const P=t.value;if(P)for(const pe of Array.from(document.body.children))pe instanceof HTMLElement&&(pe.contains(P)||pe.getAttribute("aria-hidden")!=="true"&&(pe.setAttribute("aria-hidden","true"),me.push(pe)))},A=()=>{for(const P of me)P.removeAttribute("aria-hidden");me=[]},U=()=>{const P=t.value;return P?Array.from(P.querySelectorAll(xn)).filter(pe=>pe.getAttribute("aria-hidden")!=="true"):[]},G=()=>{const P=document.querySelectorAll(".moz-popup");return P.length>0&&P[P.length-1]===t.value},oe=()=>{a||(a=Yt(()=>H()))},Q=()=>{a==null||a.release(),a=null},F=()=>{W||(W=!0,oe(),e.props.lockScroll&&(Mn(),Z=!0),e.props.focusTrap&&(ne=document.activeElement instanceof HTMLElement?document.activeElement:null,queueMicrotask(()=>{const P=t.value;!P||!h()||(U()[0]??P).focus()})),e.props.hideOthers&&queueMicrotask(()=>{h()&&le()}))},se=()=>{if(Q(),!W)return;W=!1,Z&&(Ln(),Z=!1),A();const P=ne;ne=null,P&&P.isConnected&&P.focus()},K=()=>{const P=t.value;if(!P)return;const pe=e.props,Ae=pe.top!=null?pe.top:window.innerHeight/2-P.offsetHeight/2,Ne=pe.left!=null?pe.left:window.innerWidth/2-P.offsetWidth/2;Ae===w&&Ne===I||(w=Ae,I=Ne,e.requestUpdate())};let k=null,S=null;const x=()=>{if(typeof ResizeObserver>"u")return;const P=t.value;!P||P===S||(k??(k=new ResizeObserver(()=>{!h()||e.props.side||e.props.autoPosition===!1||C||K()})),S&&k.unobserve(S),k.observe(P),S=P)},T=()=>{e.props.side||e.props.autoPosition===!1||queueMicrotask(()=>{K(),x()})},V=()=>{!h()||e.props.side||e.props.autoPosition===!1||C||T()},f=()=>{h()||r(!0),e.emit("open"),T(),F()},q=async()=>{let P=!0;return e.props.onBeforeClose?P=await e.props.onBeforeClose()??!0:e.emit("close:before",P),P},H=async()=>{await q()&&h()&&(r(!1),e.props.onCancel?e.props.onCancel():e.emit("close"),e.emit("hidden"))},j=async()=>{let P=!0;return e.props.onBeforeConfirm?P=await e.props.onBeforeConfirm()??!0:e.emit("confirm:before",P),P},$e=async()=>{await j()&&h()&&(r(!1),e.props.onConfirm?e.props.onConfirm():e.emit("confirm"),e.emit("hidden"))},xe=()=>{e.props.onBeforeUnload&&e.props.onBeforeUnload()},Ze=()=>{e.props.closeOnOutsideClick&&H()},He=P=>{P?f():(se(),xe(),H())},c=(P,pe)=>{document.addEventListener("mouseup",P),document.addEventListener("mousemove",pe)},L=(P,pe)=>{document.removeEventListener("mouseup",P),document.removeEventListener("mousemove",pe)},Y=P=>{const pe=I-P.clientX,Ae=w-P.clientY;z.mouseDown=!0,z.offset.x=pe,z.offset.y=Ae,e.emit("drag-start")},ie=P=>{e.props.draggable&&(P.clientX===0&&y&&(P=y),P&&P.clientX&&P.clientY&&(I=P.clientX+z.offset.x,w=P.clientY+z.offset.y,C=!0,e.requestUpdate()))},ue=P=>{P.clientX!==0&&P.clientY!==0&&(y=P),z.mouseDown&&E&&(z.dragging=!0,ie(P))},Ee=()=>{z.dragging&&e.emit("drag-end"),z.mouseDown=!1,setTimeout(()=>{z.dragging=!1,L(Ee,ue)},100)},ke=P=>{e.props.side||e.props.autoPosition===!1||(P.preventDefault(),c(Ee,ue),Y(P))},de=P=>{P.preventDefault();const pe=t.value;if(!pe)return;const Ae=pe.getBoundingClientRect(),Ne=u()??Ae.width,Ke=v()??Ae.height;if(!Ne||!Ke)return;const Re=Ne/Ke,_e={x:P.clientX,y:P.clientY},Ue=e.props,g=R=>{let J=R.clientX-_e.x,ee=R.clientY-_e.y;if(Ue.keepAspectRatio){const ye=J/Re;Math.abs(ee)>Math.abs(ye)?ee=ye:J=ee*Re}const he=Math.max(Ue.minWidth,Math.min(Ne+J,Ue.maxWidth));let ve=Math.max(Ue.minHeight,Math.min(Ke+ee,Ue.maxHeight));Ue.keepAspectRatio&&he/ve!==Re&&(ve=he/Re),p(he),$(ve)},B=()=>{document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",B)};document.addEventListener("mousemove",g),document.addEventListener("mouseup",B)},te=P=>{if(P.key==="Tab"&&e.props.focusTrap&&h()&&G()){if(a&&!a.isTopmost())return;const pe=t.value;if(!pe)return;const Ae=U();if(Ae.length===0){P.preventDefault(),pe.focus();return}const Ne=Ae[0],Ke=Ae[Ae.length-1],Re=document.activeElement,_e=Re instanceof Node&&pe.contains(Re);P.shiftKey?(!_e||Re===Ne||Re===pe)&&(P.preventDefault(),Ke.focus()):(!_e||Re===Ke)&&(P.preventDefault(),Ne.focus());return}};e.onCleanup(()=>{k==null||k.disconnect(),k=null,S=null,se(),window.removeEventListener("keydown",te),window.removeEventListener("resize",V),xe(),window.removeEventListener("unload",xe),L(Ee,ue)});const Me=()=>{const P=e.props;if(P.action)return P.action;const pe=e.locale.Popup;switch(P.preset){case"save":return{positive:P.saveText??pe.save,negative:P.cancelText??pe.cancel};case"check":return{positive:P.okText??pe.ok};case"close":return{negative:P.closeText??pe.close};case"confirm":default:return{positive:P.okText??pe.ok,negative:P.cancelText??pe.cancel}}},ze=P=>{switch(P){case"error":return Sn("30","var(--moz-color-danger)","dialog-icon");case"info":return kn("30","var(--moz-color-accent)","dialog-icon");case"success":return En("30","var(--moz-color-success)","dialog-icon");case"warning":return Pn("30","var(--moz-color-warning)","dialog-icon");default:return o.nothing}};return{api:{resetPosition:T},onMounted:()=>{window.addEventListener("keydown",te),window.addEventListener("resize",V),window.addEventListener("unload",xe),queueMicrotask(()=>e.emit("init",s.value??null)),h()&&(T(),F())},render(){const P=e.props,pe=h();if(pe!==_){const Xe=pe;_=pe,Xe?oe():Q(),queueMicrotask(()=>He(Xe))}if(!(P.useVShow?!0:pe))return o.nothing;const Ne=P.useVShow?!pe:!1,Ke=u(),Re=v(),_e=P.side,Ue=!!_e||P.autoPosition===!1,g={...fe(P.style),...Ke?{width:`${Te(Ke)}rem`}:{},...Re?{height:`${Te(Re)}rem`}:{},...Ue?{}:{left:`${Te(I)}rem`,top:`${Te(w)}rem`}},B=!!P.draggable&&!Ue,R=!!P.resizeable&&!_e,J=typeof P.contentsPadding=="number"?`${Te(P.contentsPadding)}rem`:P.contentsPadding,ee=Me(),he=be(P,Tn),ve=e.slots.has("title")?e.slot("title"):o.html`<span class="truncate">${P.title}</span>`,ye=e.slots.has("description"),Le=e.slots.has("default")?e.slot("default"):o.html`<div class="moz-dialog-body">
807
- ${ze(P.dialogIcon)}
808
- <div class="dialog-message">${P.dialogMessage!=null?Io.unsafeHTML(P.dialogMessage):o.nothing}</div>
809
- </div>`,We=e.slots.has("footer")?e.slot("footer",{onConfirm:$e,onCancel:H}):o.html`
810
- ${ee.positive?pt({class:"preset-btn",loading:P.loading,disabled:P.disabledConfirmButton,style:"min-width: 80px"},{onClick:$e,content:ee.positive}):o.nothing}
811
- ${ee.negative?pt({class:"preset-btn",type:"outline",disabled:P.loading,style:"min-width: 80px"},{onClick:H,content:ee.negative}):o.nothing}
812
- `;return o.html`
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,x=null;const U=()=>{if(typeof ResizeObserver>"u")return;const z=t.value;!z||z===x||(X??(X=new ResizeObserver(()=>{!c()||e.props.side||e.props.autoPosition===!1||E||N()})),x&&X.unobserve(x),X.observe(z),x=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()},M=async()=>{let z=!0;return e.props.onBeforeClose?z=await e.props.onBeforeClose()??!0:e.emit("close:before",z),z},m=async z=>{await M()&&(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()},xe=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,Re=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",Re),document.removeEventListener("mouseup",Ce)};document.addEventListener("mousemove",Re),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,x=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(()=>xe(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,Re={...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`
813
816
  <div
814
- class=${D("moz-popup-container",P.class,_e?`moz-popup-side moz-popup-side-${_e}`:null,P.showBackdrop===!1?"moz-popup-no-backdrop":null)}
815
- style=${Se.ifDefined(Ne?"display: none;":void 0)}
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)}
816
819
  >
817
- ${P.showBackdrop===!1?o.nothing:o.html`<div class="moz-popup-backdrop" aria-hidden="true" @click=${Ze}></div>`}
820
+ ${z.showBackdrop===!1?s.nothing:s.html`<div class="moz-popup-backdrop" aria-hidden="true" @click=${ke}></div>`}
818
821
  <div
819
- class=${D("moz-popup",P.dialogClass)}
822
+ class=${V("moz-popup",z.dialogClass)}
820
823
  role="dialog"
821
824
  aria-modal="true"
822
- aria-labelledby=${Se.ifDefined(P.showHeader===!1?void 0:n)}
823
- aria-describedby=${Se.ifDefined(ye?i:void 0)}
824
- tabindex=${Se.ifDefined(P.focusTrap?"-1":void 0)}
825
- style=${X.styleMap(g)}
826
- ${N.ref(t)}
827
- ${ce(he)}
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(Re)}
829
+ ${K.ref(t)}
830
+ ${he(De)}
828
831
  >
829
- ${P.showHeader===!1?o.nothing:o.html`<div
832
+ ${z.showHeader===!1?s.nothing:s.html`<div
830
833
  id=${n}
831
- class=${D("moz-popup-title",{draggable:B})}
832
- @mousedown=${ke}
833
- @touchstart=${ke}
834
+ class=${V("moz-popup-title",{draggable:Ce})}
835
+ @mousedown=${He}
836
+ @touchstart=${He}
834
837
  >
835
- ${ve}
836
- ${P.showCloseButton?pt({type:"icon",class:"close-button","aria-label":e.locale.Popup.close},{onClick:H,icon:$n("14","var(--moz-color-text-subtle)")}):o.nothing}
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}
837
840
  </div>`}
838
- ${ye?o.html`<div id=${i} class="moz-popup-description">${e.slot("description")}</div>`:o.nothing}
839
- <div class="moz-popup-body" style=${X.styleMap({padding:J})} ${N.ref(s)}>${Le}</div>
840
- ${P.preset!=="no-footer"?o.html`<div class=${D("moz-popup-footer",{"with-border":P.showFooterBorder})}>
841
- ${We}
842
- </div>`:o.nothing}
843
- ${R?o.html`<div class="resize-handler" @mousedown=${de}></div>`:o.nothing}
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}
844
847
  </div>
845
848
  </div>
846
- `}}}}),zn={name:"MozPopup",core:as,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 Dt(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="12",t="var(--moz-color-text-subtle)",s=!1,n=""){const i=Dt(e),a=s?"var(--moz-color-text-muted)":t;return o.html`<svg class=${n||o.nothing} xmlns="http://www.w3.org/2000/svg" width=${i.width} height=${i.height} viewBox="0 0 16 16">
847
- <g style=${`fill: ${a}`}>
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}`}>
848
851
  <path
849
852
  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"
850
853
  style="stroke: none"
@@ -852,257 +855,265 @@
852
855
  ></path>
853
856
  <path
854
857
  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"
855
- style=${`fill: ${a}; stroke: none`}
858
+ style=${`fill: ${d}; stroke: none`}
856
859
  transform="translate(-829.971 -686.318)"
857
860
  ></path>
858
861
  </g>
859
- </svg>`}function ro(e="14",t="var(--moz-color-text-subtle)",s=!1){const n=Dt(e,14);return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
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">
860
863
  <path
861
864
  fill-rule="evenodd"
862
865
  clip-rule="evenodd"
863
866
  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"
864
- fill=${s?"var(--moz-color-text-muted)":t}
867
+ fill=${o?"var(--moz-color-text-muted)":t}
865
868
  ></path>
866
- </svg>`}function ao(e="14",t="var(--moz-color-text-subtle)",s=!1){const n=Dt(e,14);return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
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">
867
870
  <path
868
871
  fill-rule="evenodd"
869
872
  clip-rule="evenodd"
870
873
  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"
871
- fill=${s?"var(--moz-color-text-muted)":t}
874
+ fill=${o?"var(--moz-color-text-muted)":t}
872
875
  ></path>
873
- </svg>`}function co(e="12",t="var(--moz-color-text-subtle)",s=!1){const n=Dt(e),i=s?"var(--moz-color-text-muted)":t;return n.width<=13?o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 12 12" fill="none">
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">
874
877
  <path
875
878
  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"
876
- fill=${i}
879
+ fill=${l}
877
880
  ></path>
878
- </svg>`:o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
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">
879
882
  <path
880
883
  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"
881
- fill=${i}
884
+ fill=${l}
882
885
  ></path>
883
- </svg>`}const wo=250,dt=24,An=new Set(["itemsSource","label","width","required","readonly","disabled","keyProp","displayProp","rules","useObjBinding","useFilter","listWidth","placeholder","searchPlaceholder","emptyText","requiredMessage","modelValue","class","style"]);function Dn(e,t){let s;return(...n)=>{s&&clearTimeout(s),s=setTimeout(()=>e(...n),t)}}function Vn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const ds=Ce({name:"moz-select",defaults:{label:null,width:200,required:!1,readonly:!1,disabled:!1,keyProp:"id",displayProp:"text",rules:[],useObjBinding:!1,useFilter:!0,listWidth:100,modelValue:null},setup(e){const t=N.createRef(),s=N.createRef(),n=N.createRef(),i=N.createRef(),a=N.createRef(),m=N.createRef();let d=null,l=e.props.modelValue??null;const h=()=>e.controlled("modelValue")?e.props.modelValue??null:l,r=c=>{e.controlled("modelValue")||(l=c),e.emit("update:modelValue",c),e.requestUpdate()};let u=!1,p="";const v=tt("moz-select-listbox-"),$={change:"",blur:"",save:""};let I=h();const w=()=>e.props.keyProp||"id",C=new Fe.Virtualizer({count:0,getScrollElement:()=>d,estimateSize:()=>dt,measureElement:c=>{const L=c.getBoundingClientRect().height;return L>0?L:dt},overscan:5,observeElementRect:Fe.observeElementRect,observeElementOffset:Fe.observeElementOffset,scrollToFn:Fe.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{F==null||F.release(),F=null}),e.onCleanup(C._didMount());const E=c=>{d=c??null,c&&(C._willUpdate(),e.requestUpdate())},y=c=>e.props.itemsSource?e.props.itemsSource.find(Y=>Y[w()]===c)??null:null,z=c=>c?typeof e.props.displayProp=="function"?e.props.displayProp(c):typeof c=="object"?c[e.props.displayProp]:String(c):"",_=()=>{const c=h();if(!c&&isNaN(Number(c)))return null;const L=e.props.useObjBinding?c:y(c);return L?typeof e.props.displayProp=="function"?e.props.displayProp(L):L[e.props.displayProp]:null},W=()=>{if(!p)return e.props.itemsSource??[];const c=p.toLowerCase();return(e.props.itemsSource??[]).filter(L=>z(L).toLowerCase().indexOf(c)>-1)},Z=c=>{if(!p)return[{part:c,highlight:!1}];const L=Vn(p),Y=new RegExp(`(${L})`,"gi");return c.split(Y).map(ie=>({part:ie,highlight:p.toLowerCase()===ie.toLowerCase()}))},ne=()=>$.save||$.blur||$.change,me=()=>{const c=[];return e.props.required&&c.push({message:e.props.requiredMessage??e.locale.Select.requiredMessage.replace("{label}",e.props.label||""),type:"save",validator:L=>!!L}),[...c,...e.props.rules??[]]},le=async(c,L)=>{const Y=me();if(Y.length<=0||e.props.disabled)return!0;$[L]="",e.requestUpdate();const ie=Y.filter(ue=>ue.type===L);for(const ue of ie)if(!await ue.validator(c))return $[L]=ue.message,e.requestUpdate(),!1;return!0},A=async(c="save")=>ne()!==""?!1:await le(h(),c),U={validate:A,initValidator:()=>{$.change="",$.blur="",$.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(U),e.onCleanup(()=>{var c;return(c=e.validator)==null?void 0:c.removeValidator(U)}));const G=new gt({anchor:()=>s.value??null,panel:()=>n.value??null,maxHeight:()=>wo,container:()=>t.value??null,useMinWidth:!0,listWidth:()=>e.props.listWidth,ignoreScrollTargets:c=>c===d,requestClose:()=>{u&&se(!1)}});e.onCleanup(()=>G.destroy());const oe=c=>{`${c.ctrlKey?"ctrl+":""}${c.altKey?"alt+":""}${c.key.toLowerCase()}`==="escape"&&se(!1)},Q=c=>{const Y=dt*c-wo/2;return Math.max(0,Y+dt)};let F=null;const se=c=>{u!==c&&(u=c,e.requestUpdate(),c?(F=vt(),G.open(),$.save="",window.addEventListener("keydown",oe),queueMicrotask(()=>{var Y;const L=h();if(L&&d){const ie=(e.props.itemsSource??[]).findIndex(ue=>ue[w()]===L);d.scrollTop=Q(ie)}m.value?m.value.focus():(Y=a.value)==null||Y.focus()})):(F==null||F.release(),F=null,G.close(),e.emit("close"),le(h(),"blur"),window.removeEventListener("keydown",oe),p="",e.emit("close"),queueMicrotask(()=>{var L;return(L=a.value)==null?void 0:L.focus()})))},K=()=>{var c;e.props.disabled||(se(!u),(c=a.value)==null||c.focus())},k=c=>{var L;r(c),se(!1),(L=a.value)==null||L.focus()},S=Dn(c=>{p=c.target.value,e.requestUpdate(),queueMicrotask(()=>{const L=W().length;C.setOptions({...C.options,count:L}),C.measure(),d&&(d.scrollTop=0,C.scrollToIndex(0),C.measure())})},300),x=c=>{var L;if(u){c.stopPropagation(),c.preventDefault();const Y=m.value??((L=i.value)==null?void 0:L.querySelector("div:first-child"));Y==null||Y.focus()}},T=c=>{var Ee,ke,de;const L=((Ee=n.value)==null?void 0:Ee.querySelectorAll('[tabindex="0"]'))??[],Y=[...Array.from(L)];m.value&&Y.unshift(m.value);const ie=Y[0],ue=Y[Y.length-1];(c.target===ie||c.target===ue)&&a.value&&(c.target===ie&&c.shiftKey?(c.stopPropagation(),c.preventDefault(),(ke=a.value)==null||ke.focus()):c.target===ue&&!c.shiftKey&&(c.stopPropagation(),c.preventDefault(),(de=a.value)==null||de.focus()))},V=c=>{d&&(c.shiftKey?d.scrollTop-=24:d.scrollTop+=24)},f=()=>{var L;const c=Array.from(((L=n.value)==null?void 0:L.querySelectorAll('[tabindex="0"]'))??[]);return m.value&&!c.includes(m.value)&&c.unshift(m.value),c},q=c=>{var ue;const L=f();if(L.length===0)return;const Y=L.indexOf(document.activeElement),ie=Y<0?c>0?0:L.length-1:Math.min(L.length-1,Math.max(0,Y+c));(ue=L[ie])==null||ue.focus()},H=c=>c.find(L=>L.getAttribute("aria-selected")==="true")??null,j=c=>{se(!0),queueMicrotask(()=>queueMicrotask(()=>{if(m.value)return;const L=f();L.length!==0&&(H(L)??L[c<0?L.length-1:0]).focus()}))},$e=()=>{var c;se(!1),(c=a.value)==null||c.focus()},xe=c=>{if(c.key==="Tab"){x(c);return}if(c.key==="Enter"||c.key===" "){u||(c.preventDefault(),c.stopPropagation(),j(1));return}if(c.key==="ArrowDown"||c.key==="ArrowUp"){c.preventDefault(),c.stopPropagation();const L=c.key==="ArrowDown"?1:-1;u?q(L):j(L);return}c.key==="Escape"&&u&&(c.preventDefault(),$e())},Ze=c=>{if(c.key==="Tab"){T(c);return}if(c.key==="ArrowDown"||c.key==="ArrowUp"){c.preventDefault(),q(c.key==="ArrowDown"?1:-1);return}c.key==="Escape"&&(c.preventDefault(),$e())},He=(c,L)=>{if(c.key==="Tab"){V(c);return}if(c.key==="ArrowDown"||c.key==="ArrowUp"){c.preventDefault(),c.stopPropagation(),q(c.key==="ArrowDown"?1:-1);return}if(c.key==="Escape"){c.preventDefault(),c.stopPropagation(),$e();return}(c.key==="Enter"||c.key===" ")&&k(L)};return{api:{validate:A},render(){const c=e.props,L=h();if(L!==I){I=L;const Me=L;queueMicrotask(()=>{le(Me,"change"),e.emit("change",c.useObjBinding?Me:Me&&Me[w()],Me)})}const Y=typeof c.width=="number"?`${Te(c.width)}rem`:c.width,ie=be(c,An),{aria:ue,dom:Ee}=ft(ie),ke=e.slots.has("icon")?e.slot("icon",{isOpen:u}):u?ao("14","var(--moz-color-accent)"):ro("14","var(--moz-color-text-subtle)",c.disabled),de=o.html`<button
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},x=()=>{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 Re=e&&t.props.useObjBinding?w==null?"":String(w):w;if(!await ve.validator(Re))return C[H]=ve.message,t.requestUpdate(),!1}return!0},M=async(w="save")=>_()!==""?!1:await J(r(),w),m={validate:M,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 Re;if(y||!p||me!==L)return;if(r()!=null){const Ce=x().findIndex(I);Ce>=0&&(e&&(g=Ce,t.requestUpdate()),i&&(i.scrollTop=F(Ce)))}te&&H===void 0&&(f.value?f.value.focus():(Re=a.value)==null||Re.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()}))},xe=()=>{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=x().length?0:-1),t.requestUpdate(),queueMicrotask(()=>{const H=x().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 Re,Ce,Se;const H=((Re=l.value)==null?void 0:Re.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=x();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:M,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:Re}=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
884
887
  type="button"
885
888
  class="icon-container"
886
- ${ce(ue)}
889
+ ${he(ve)}
887
890
  role="combobox"
888
891
  aria-haspopup="listbox"
889
- aria-expanded=${u?"true":"false"}
890
- aria-controls=${v}
891
- aria-label=${Se.ifDefined(ue["aria-label"]??c.label??void 0)}
892
- @keydown=${xe}
893
- ${N.ref(a)}
894
- ?disabled=${!!c.disabled}
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}
895
898
  >
896
- ${ke}
897
- </button>`,te=e.slots.has("input-container")?o.html`<div
899
+ ${Ce}
900
+ </button>`,Ze=t.slots.has("input-container")?s.html`<div
898
901
  class="moz-input-container select-input-container"
899
- style=${X.styleMap({width:Y})}
900
- @click=${K}
901
- ${N.ref(s)}
902
+ style=${ee.styleMap({width:te})}
903
+ @click=${xe}
904
+ ${K.ref(n)}
902
905
  >
903
906
  <div
904
- class=${D("input-container-wrapper",{"input-container-wrapper--disabled":c.disabled})}
907
+ class=${V("input-container-wrapper",{"input-container-wrapper--disabled":w.disabled})}
905
908
  >
906
- ${e.slot("input-container",{text:_(),item:L})}
909
+ ${t.slot("input-container",{text:X(),item:H})}
907
910
  </div>
908
- ${de}
909
- </div>`:o.html`<div
911
+ ${Se}
912
+ </div>`:s.html`<div
910
913
  class="moz-input-container select-input-container"
911
- style=${X.styleMap({width:Y})}
912
- @click=${K}
913
- ${N.ref(s)}
914
+ style=${ee.styleMap({width:te})}
915
+ @click=${xe}
916
+ ${K.ref(n)}
914
917
  >
915
918
  <input
916
- ${ce(Ee)}
917
- .value=${_()??""}
918
- placeholder=${Se.ifDefined(c.placeholder??void 0)}
919
+ ${he(Re)}
920
+ .value=${X()??""}
921
+ placeholder=${Ee.ifDefined(w.placeholder??void 0)}
919
922
  autocomplete="off"
920
- ?disabled=${!!c.disabled}
923
+ ?disabled=${!!w.disabled}
921
924
  readonly
922
925
  tabindex="-1"
923
- class=${D("select-display-input",{"select-display-input--disabled":c.disabled})}
926
+ class=${V("select-display-input",{"select-display-input--disabled":w.disabled})}
924
927
  />
925
- ${e.slot("input")}
926
- ${de}
927
- </div>`;return o.html`
928
+ ${t.slot("input")}
929
+ ${Se}
930
+ </div>`;return s.html`
928
931
  <div
929
- class=${D("moz-select",{"is-invalid":ne()!=="","is-open":u,disabled:!!c.disabled},c.class)}
930
- style=${X.styleMap(fe(c.style))}
931
- ${N.ref(t)}
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)}
932
935
  >
933
936
  <div class="input-wrapper">
934
- ${c.label?Be({disabled:c.disabled,required:c.required},c.label):o.nothing}
935
- ${te}
937
+ ${w.label?Xe({disabled:w.disabled,required:w.required},w.label):s.nothing}
938
+ ${Ze}
936
939
  </div>
937
940
 
938
- ${ne()!==""?o.html`<span class="moz-input-invalid-message">${ne()}</span>`:o.nothing}
941
+ ${_()!==""?s.html`<span class="moz-input-invalid-message">${_()}</span>`:s.nothing}
939
942
  </div>
940
- `},renderPortal(){if(!u)return o.nothing;const c=e.props,L=h(),Y=w(),ie=W();C.options.count!==ie.length&&C.setOptions({...C.options,count:ie.length}),C._willUpdate();const ue=At(C.getVirtualItems(),ie.length,dt,d),Ee=C.getTotalSize(),ke=ue.map(de=>{if(de.index>=ie.length)return null;const te=ie[de.index];return te?{index:de.index,value:te,size:de.size,start:de.start}:null}).filter(de=>de!==null);return o.html`<div
941
- class=${D("list-box moz-select-list",{"no-label":!c.label})}
942
- @keydown=${Ze}
943
- ${N.ref(n)}
943
+ `},renderPortal(){if(!p)return s.nothing;Ue();const w=t.props;r();const H=Z(),te=x();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(),Re=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)}
944
947
  >
945
- ${c.useFilter?o.html`<div class="filter-input">
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}
946
950
  <input
947
- ${N.ref(m)}
948
- @mousedown=${de=>de.stopPropagation()}
949
- placeholder=${c.searchPlaceholder??e.locale.Select.searchPlaceholder}
950
- @input=${S}
951
+ ${K.ref(f)}
952
+ @mousedown=${Ce=>Ce.stopPropagation()}
953
+ placeholder=${w.searchPlaceholder??j().searchPlaceholder}
954
+ @input=${qe}
951
955
  class="filter-input__field"
952
956
  />
953
- <div class="search-icon">${co("12","var(--moz-color-text-subtle)")}</div>
954
- </div>`:o.nothing}
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}
955
960
  <div
956
- id=${v}
961
+ id=${h}
957
962
  role="listbox"
958
- class=${D("list-box-container",{"list-box-container--with-filter":c.useFilter})}
959
- ${N.ref(E)}
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)}
960
965
  >
961
- <div class="inner-container" style=${X.styleMap({height:`${Ee}px`})} ${N.ref(i)}>
962
- ${ke.map(({index:de,value:te,start:Me})=>{const ze=c.useObjBinding?te&&L&&te[Y]===L[Y]:te[Y]===L;return o.html`<div
963
- data-index=${de}
966
+ <div class="inner-container" style=${ee.styleMap({height:`${ve}px`})} ${K.ref(d)}>
967
+ ${Re.map(({index:Ce,value:Se,start:Ze})=>{const Te=I(Se);return s.html`<div
968
+ data-index=${Ce}
964
969
  role="option"
965
- aria-selected=${ze?"true":"false"}
966
- ${N.ref(P=>{P&&C.measureElement(P)})}
967
- style=${X.styleMap({transform:`translateY(${Me}px)`})}
968
- class=${D("list-box-item virtual-row",{"list-selected":te[Y]===L})}
969
- @click=${()=>k(c.useObjBinding?te:te[Y])}
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])}
970
976
  tabindex="0"
971
- @keydown=${P=>He(P,c.useObjBinding?te:te[Y])}
977
+ @keydown=${De=>Ie(De,w.useObjBinding?Se:Se[H])}
972
978
  >
973
- ${e.slots.has("list-item")?e.slot("list-item",{text:z(te),item:te,index:de,highlightText:Z(z(te))}):o.html`<div class="highlight-container" title=${z(te)}>
974
- ${Z(z(te)).map(P=>o.html`<span class=${D({highlight:P.highlight})}>${P.part}</span>`)}
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>`)}
975
981
  </div>`}
976
- ${ze?io("12","var(--moz-color-accent)",!1,"icon-check"):o.nothing}
982
+ ${Te?Ss("12","var(--moz-color-accent)",!1,"icon-check"):s.nothing}
977
983
  </div>`})}
978
984
  </div>
979
985
 
980
- ${!ie||ie.length<=0?o.html`<div class="list-box-item loading not-hover">
981
- ${e.slots.has("empty")?e.slot("empty"):c.emptyText??e.locale.Select.emptyText}
982
- </div>`:o.nothing}
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}
983
989
  </div>
984
- </div>`}}}}),In={name:"MozSelect",core:ds,booleanProps:["disabled","readonly","required","useFilter","useObjBinding"],props:["itemsSource","label","width","required","readonly","disabled","keyProp","displayProp","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 uo(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 Rn(e="14",t="var(--moz-color-text-subtle)",s=!1){const n=uo(e,14);return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
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">
985
991
  <path
986
992
  fill-rule="evenodd"
987
993
  clip-rule="evenodd"
988
994
  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"
989
- fill=${s?"var(--moz-color-text-muted)":t}
995
+ fill=${o?"var(--moz-color-text-muted)":t}
990
996
  ></path>
991
- </svg>`}function qn(e="14",t="var(--moz-color-text-subtle)",s=!1){const n=uo(e,14);return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
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">
992
998
  <path
993
999
  fill-rule="evenodd"
994
1000
  clip-rule="evenodd"
995
1001
  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"
996
- fill=${s?"var(--moz-color-text-muted)":t}
1002
+ fill=${o?"var(--moz-color-text-muted)":t}
997
1003
  ></path>
998
- </svg>`}function On(e="12",t="var(--moz-color-text-subtle)",s=!1){const n=uo(e),i=s?"var(--moz-color-text-muted)":t;return n.width<=13?o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 12 12" fill="none">
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">
999
1005
  <path
1000
1006
  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"
1001
- fill=${i}
1007
+ fill=${l}
1002
1008
  ></path>
1003
- </svg>`:o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
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">
1004
1010
  <path
1005
1011
  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"
1006
- fill=${i}
1012
+ fill=${l}
1007
1013
  ></path>
1008
- </svg>`}const Fn=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 Bn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const cs=Ce({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=N.createRef(),s=N.createRef(),n=N.createRef(),i=N.createRef(),a=N.createRef();let m=null;const d=()=>e.props.keyProp||"id",l=()=>e.props.disabledProp||"disabled";let h=e.props.modelValue??null;const r=()=>{const g=e.controlled("modelValue")?e.props.modelValue:h;return Array.isArray(g)?g:[]},u=g=>{e.controlled("modelValue")||(h=g),e.emit("update:modelValue",g),e.requestUpdate()};let p=!1;const v=tt("moz-multiselect-listbox-");let $=e.props.filterValue??"",I=!1,w=!1,C={},E=[];const y={change:"",blur:"",save:""};let z=e.props.itemsSource;const _=(()=>{const g=e.props["dropdown-item-height"];if(g!=null)return+g;try{return+getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height").trim().replace("px","")||24}catch{return 24}})(),W=new Fe.Virtualizer({count:0,getScrollElement:()=>m,estimateSize:()=>_,overscan:5,observeElementRect:Fe.observeElementRect,observeElementOffset:Fe.observeElementOffset,scrollToFn:Fe.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{de==null||de.release(),de=null}),e.onCleanup(W._didMount());const Z=g=>{m=g??null,g&&(W._willUpdate(),e.requestUpdate())},ne=g=>typeof e.props.displayProp=="function"?e.props.displayProp(g):typeof g=="object"?g[e.props.displayProp]??"":g,me=()=>{const g=new Map;return(e.props.itemsSource??[]).forEach(B=>g.set(B[d()],B)),g},le=()=>{if(e.props.filterMode==="remote"||!$)return e.props.itemsSource??[];const g=$.toLowerCase();return(e.props.itemsSource??[]).filter(B=>ne(B).toLowerCase().indexOf(g)>-1)},A=g=>{if(!$)return[{part:g,highlight:!1}];const B=Bn($),R=new RegExp(`(${B})`,"gi");return g.split(R).map(J=>({part:J,highlight:$.toLowerCase()===J.toLowerCase()}))},U=g=>new Set(r()).has(g[d()]),G=g=>E.some(B=>rt(B.item,g)),oe=()=>{const g=r(),B=le();if(g.length<B.length||g.length===0||B.length===0)return!1;const R=new Set(g);return B.every(J=>R.has(J[d()]))},Q=()=>new Set(le().map(g=>g[d()])),F=()=>new Set(r()),se=()=>{const g=Q(),B=F();return!g.size||!B.size||B.size<g.size?!1:Array.from(g).every(R=>B.has(R))},K=()=>y.save||y.blur||y.change,k=()=>{const g=[];return e.props.required&&g.push({message:e.locale.MultiSelect.required.replace("{label}",e.props.label||""),type:"save",validator:B=>!!B.length}),[...g,...e.props.rules??[]]},S=async(g,B)=>{const R=k();if(R.length<=0)return;if(e.props.disabled)return!0;y[B]="",e.requestUpdate();const J=R.filter(ee=>ee.type===B);for(const ee of J)if(!await ee.validator(g))return y[B]=ee.message,e.requestUpdate(),!1;return!0},x=async(g="save")=>K()!==""?!1:await S(r(),g)??!0,T={validate:x,initValidator:()=>{y.change="",y.blur="",y.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(T),e.onCleanup(()=>{var g;return(g=e.validator)==null?void 0:g.removeValidator(T)}));const V=g=>{if(e.props.disabled||e.props.readonly||e.props.loading)return;const B=me(),R=new Set;r().forEach(ee=>{const he=B.get(ee);(he==null?void 0:he[l()])===!0&&R.add(ee)}),g.forEach(ee=>{const he=B.get(ee);(he&&he[l()]!==!0||!he&&e.props.preserveMissingValues)&&R.add(ee)});const J=Array.from(R);rt(r(),J)||(u(J),e.emit("change",J,J.map(ee=>B.get(ee)).filter(Boolean)),S(J,"change"))},f=(g,B)=>g.filter(R=>U(R)!==B).map(R=>R[d()]),q=(g,B,R)=>{if(R.shiftKey&&E.length>0){const J=E[0],ee=Math.min(J.index,B),he=Math.max(J.index,B);E=le().slice(ee,he+1).map((ve,ye)=>({item:ve,index:ee+ye}))}else R.ctrlKey?E.push({item:g,index:B}):E=[{item:g,index:B}];return E.length},H=(g=!0)=>{const B=E.map(ee=>ee.item),R=f(B,g);let J=r();g?J=[...J,...R]:J=J.filter(ee=>!R.some(he=>ee===he)),V(J)},j=(g,B,R)=>{if(g[l()]===!0)return;const J=E.some(he=>he.item[d()]===g[d()]);(E.length<=1||!J)&&q(g,B,{shiftKey:!1,ctrlKey:!1});const ee=r().some(he=>he===g[d()]);H(!ee),R.stopPropagation()},$e=(g,B,R)=>{g[l()]!==!0&&(!R.ctrlKey&&!R.shiftKey&&E.length<=1&&j(g,B,R),q(g,B,R),e.requestUpdate())},xe=(g,B,R)=>{if(g[l()]===!0)return;const J=r(),ee=F().size!==0&&J.every(he=>he===g[d()]);V(ee?[]:[g[d()]]),q(g,B,R),R.stopPropagation()},Ze=g=>{g.stopPropagation();const B=Q().size===F().size&&[...Q()].every(R=>F().has(R));if(oe()&&B){const R=new Set((e.props.itemsSource??[]).filter(J=>J[l()]===!0).map(J=>J[d()]));V(Array.from(R))}else{const R=new Set(le().filter(J=>J[l()]!==!0).map(J=>J[d()]));V(Array.from(R))}},He=g=>{if(g.stopPropagation(),se()){const B=Q();V(r().filter(R=>!B.has(R)))}else{const B=new Set([...r(),...Q()]);V(Array.from(B))}},c=g=>{I=g.target.scrollTop>0,e.requestUpdate()},L=()=>{const g=r();if(!(g!=null&&g.length))return"";const B=me(),R=g.map(ee=>B.get(ee)).filter(Boolean).map(ee=>typeof e.props.displayProp=="function"?e.props.displayProp(ee):ee[e.props.displayProp]||""),J=e.props.itemsSource??[];return R.length===J.length&&R.length>2?`${e.props.headerFormat.replace(/\{count(:.*?)?}/g,"ALL")}`:R.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${R.length.toLocaleString()}`):R.join(", ")||""},Y=(g,B,R=10)=>{const J=window.innerHeight||document.documentElement.clientHeight,ee=window.innerWidth||document.documentElement.clientWidth,he=g.getBoundingClientRect(),ve=B.getBoundingClientRect(),ye=he.bottom+ve.height+R>J;if(!ye)return!1;const Le=he.top-ve.height-R<0,We=he.right+ve.width+R>ee,Xe=he.left-ve.width-R<0;return ye&&!Le||We&&!Xe},ie=()=>{const g=s.value;if(!g)return;const B=g.getBoundingClientRect();let R=`${B.width}px`;e.props.listBoxWidth&&(R=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),C={width:String(R),left:`${B.left}px`,top:`${B.top+(w?0:B.height)}px`},e.requestUpdate()},ue=g=>{var B;(B=n.value)!=null&&B.contains(g.target)||te(!1)},Ee=g=>{var B,R;!((B=t.value)!=null&&B.contains(g.target))&&!((R=n.value)!=null&&R.contains(g.target))&&(te(!1),document.removeEventListener("click",Ee,{capture:!0}))},ke=g=>{var R;`${g.ctrlKey?"ctrl+":""}${g.altKey?"alt+":""}${g.key.toLowerCase()}`==="escape"&&(te(!1),(R=i.value)==null||R.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",ue,{capture:!0}),document.removeEventListener("click",Ee,{capture:!0}),window.removeEventListener("keydown",ke)});let de=null;const te=g=>{if(p===g)return;const B=p;if(p=g,e.requestUpdate(),g)de=vt(),document.body.addEventListener("scroll",ue,{capture:!0}),document.addEventListener("click",Ee,{capture:!0}),y.save="",window.addEventListener("keydown",ke),ie(),queueMicrotask(()=>{var R;s.value&&m&&(w=Y(s.value,m)),ie(),W.measure(),m&&(m.scrollTop=0),a.value?a.value.focus():(R=i.value)==null||R.focus()});else if(de==null||de.release(),de=null,$="",a.value&&(a.value.value=""),document.body.removeEventListener("scroll",ue,{capture:!0}),document.removeEventListener("click",Ee,{capture:!0}),S(r(),"blur"),window.removeEventListener("keydown",ke),B&&!g){const R=r();if(e.props.selectAllWhenEmpty&&(!R||R.length===0)){const J=(e.props.itemsSource??[]).filter(ee=>ee[l()]!==!0).map(ee=>ee[d()]);J.length>0&&(u(J),e.emit("change",J,(e.props.itemsSource??[]).filter(ee=>J.includes(ee[d()]))))}e.emit("close")}},Me=g=>{var B;if(p){g.stopPropagation(),g.preventDefault();const R=(B=n.value)==null?void 0:B.querySelector("input:first-child, button:first-child");R==null||R.focus()}},ze=g=>{var ee,he,ve;const B=((ee=n.value)==null?void 0:ee.querySelectorAll("input, button"))??[],R=B[0],J=B[B.length-1];(g.target===R||g.target===J)&&i.value&&(g.target===R&&g.shiftKey?(g.stopPropagation(),g.preventDefault(),(he=i.value)==null||he.focus()):g.target===J&&!g.shiftKey&&(g.stopPropagation(),g.preventDefault(),(ve=i.value)==null||ve.focus()))},P=g=>{g.key==="Tab"&&Me(g)},pe=g=>{!e.props.inline&&g.key==="Tab"&&ze(g)},Ae=g=>{!p&&!e.props.inline||($=g.target.value,E=[],e.emit("update:filterValue",$),e.requestUpdate(),queueMicrotask(()=>{W.setOptions({...W.options,count:le().length}),W.measure(),m&&(m.scrollTop=0)}))},Ne=()=>{var g;e.props.disabled||(te(!p),(g=i.value)==null||g.focus())},Ke=(g,B)=>{var R,J;if(g.key==="Enter"||g.key===" "){g.preventDefault(),g.stopPropagation(),B();return}if(g.key==="ArrowDown"||g.key==="ArrowUp"){g.preventDefault(),g.stopPropagation();const ee=Array.from(((R=n.value)==null?void 0:R.querySelectorAll('[tabindex="0"]'))??[]),he=ee.indexOf(g.currentTarget),ve=ee[he+(g.key==="ArrowDown"?1:-1)];ve==null||ve.focus();return}g.key==="Escape"&&!e.props.inline&&(g.preventDefault(),g.stopPropagation(),te(!1),(J=i.value)==null||J.focus())},Re=(g,B)=>{$e(g,B,{ctrlKey:!1,shiftKey:!1,stopPropagation(){}})},_e=(g,B)=>{if(E=[],e.props.preserveMissingValues||JSON.stringify(g)===JSON.stringify(B))return;const R=new Set(g.map(ee=>ee[d()])),J=r();if(e.props.autoSelectNewItems&&B){const ee=new Set(B.map(ve=>ve[d()])),he=g.filter(ve=>!ee.has(ve[d()])).map(ve=>ve[d()]);if(he.length>0){const ve=J.filter(ye=>R.has(ye));u([...new Set([...ve,...he])])}else u(J.filter(ve=>R.has(ve)))}else{const ee=J.filter(he=>R.has(he));if(rt(J,ee))return;u(ee)}},Ue=()=>{const g=e.props,B=d(),R=g.loading?[]:le();W.options.count!==R.length&&W.setOptions({...W.options,count:R.length}),W._willUpdate();const J=new Set(r()),ee=At(W.getVirtualItems(),R.length,_,m).map(ye=>{if(ye.index>=R.length)return null;const Le=R[ye.index];return Le?{index:ye.index,value:Le,size:ye.size,start:ye.start,isSelected:J.has(Le[B]),isDisabled:!!g.disabled||!!g.readonly||Le[l()]===!0,isFocused:G(Le)}:null}).filter(ye=>ye!==null),he=W.getTotalSize(),ve=$?e.locale.MultiSelect.selectFiltered:e.locale.MultiSelect.selectAll;return o.html`<div
1009
- class=${D("list-box moz-multi-select-list",{"no-label":!g.label,"show-top":w,"moz-multiselect-inline-list":!!g.inline},g.class)}
1010
- style=${X.styleMap(g.inline?{"--moz-multiselect-list-height":`${g.listBoxHeight??224}px`}:C)}
1011
- @keydown=${pe}
1012
- ${N.ref(n)}
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 xs=$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,x=()=>{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)),M=()=>{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},xe=async(v="save")=>F()!==""?!1:await ke(r(),v)??!0,Ne={validate:xe,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=x(),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(M()&&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=x(),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,Me=pe.right+ge.width+q>ie,ft=pe.left-ge.width-q<0;return Ge&&!yt||Me&&!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")}},Re=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"&&Re(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),Me=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">
1015
+ ${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)}
1013
1021
  >
1014
- ${g.useFilter?o.html`<div class="filter-input">
1022
+ ${v.useFilter?s.html`<div class="filter-input">
1015
1023
  <input
1016
- placeholder=${g.searchPlaceholder??e.locale.MultiSelect.search}
1017
- aria-label=${g.searchPlaceholder??e.locale.MultiSelect.search}
1018
- .value=${$}
1019
- ?disabled=${!!g.disabled||!!g.readonly}
1020
- @input=${Ae}
1021
- ${N.ref(a)}
1024
+ placeholder=${v.searchPlaceholder??e.locale.MultiSelect.search}
1025
+ aria-label=${v.searchPlaceholder??e.locale.MultiSelect.search}
1026
+ .value=${P}
1027
+ ?disabled=${!!v.disabled||!!v.readonly}
1028
+ @input=${Te}
1029
+ ${K.ref(d)}
1022
1030
  />
1023
- <div class="search-icon">${On("12","var(--moz-color-text-subtle)")}</div>
1024
- </div>`:o.nothing}
1025
- ${g.useSelectAll&&(g.itemsSource??[]).length>0&&R.length>0?o.html`<div
1026
- class=${D("list-box-item multi-select-item multi-select-all",{"is-scrolled":I})}
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})}
1027
1035
  role="button"
1028
- tabindex=${g.disabled||g.readonly||g.loading?"-1":"0"}
1029
- aria-disabled=${g.disabled||g.readonly||g.loading?"true":"false"}
1030
- aria-pressed=${se()?"true":"false"}
1031
- aria-label=${ve}
1032
- @click=${He}
1033
- @keydown=${ye=>Ke(ye,()=>He({stopPropagation(){}}))}
1036
+ tabindex=${v.disabled||v.readonly||v.loading?"-1":"0"}
1037
+ 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(){}}))}
1034
1042
  >
1035
1043
  <input
1036
1044
  type="checkbox"
1037
1045
  aria-hidden="true"
1038
1046
  tabindex="-1"
1039
- class=${D("moz-checkbox",{"is-indeterminate":R.some(ye=>J.has(ye[B]))&&!oe()})}
1040
- .checked=${se()}
1047
+ class=${V("moz-checkbox",{"is-indeterminate":q.some(Fe=>ge.has(Fe[R]))&&!M()})}
1048
+ .checked=${A()}
1041
1049
  />
1042
1050
  <div class="highlight-container">
1043
- <span title=${ve}>${ve}</span>
1051
+ <span title=${ft}>${ft}</span>
1044
1052
  </div>
1045
- ${g.useSpecificSelect&&$&&R.length>0?o.html`<button type="button" class="item-only" @click=${Ze}>
1053
+ ${v.useSpecificSelect&&P&&q.length>0?s.html`<button type="button" class="item-only" @click=${_e}>
1046
1054
  ${e.locale.MultiSelect.specificResults}
1047
- </button>`:o.nothing}
1048
- </div>`:o.nothing}
1055
+ </button>`:s.nothing}
1056
+ </div>`:s.nothing}
1049
1057
 
1050
1058
  <div
1051
- id=${v}
1059
+ id=${D}
1052
1060
  role="listbox"
1053
1061
  aria-multiselectable="true"
1054
- aria-label=${Se.ifDefined(g["aria-label"]??g.label??void 0)}
1055
- aria-busy=${g.loading?"true":"false"}
1062
+ aria-label=${Ee.ifDefined(v["aria-label"]??v.label??void 0)}
1063
+ aria-busy=${v.loading?"true":"false"}
1056
1064
  class="list-box-container"
1057
- @scroll=${c}
1058
- ${N.ref(Z)}
1065
+ @scroll=${rt}
1066
+ @wheel=${Y}
1067
+ @pointerdown=${Y}
1068
+ @keydown=${Y}
1069
+ ${K.ref(N)}
1059
1070
  >
1060
- <div class="inner-container" style=${X.styleMap({height:`${he}px`})}>
1061
- ${ee.map(({index:ye,value:Le,start:We,size:Xe,isSelected:at,isDisabled:st,isFocused:Vt})=>o.html`<div
1062
- class=${D("list-box-item multi-select-item virtual-row",{"list-selected":at,"moz-multi-focus":Vt})}
1063
- style=${X.styleMap({height:`${Xe}px`,transform:`translateY(${We}px)`})}
1071
+ ${!v.inline&&q.length===0?s.nothing:s.html`<div class="inner-container" style=${ee.styleMap({height:`${Me}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)`})}
1064
1075
  role="option"
1065
- aria-selected=${at?"true":"false"}
1066
- aria-disabled=${st?"true":"false"}
1067
- tabindex=${st?"-1":"0"}
1068
- @click=${Qe=>$e(Le,ye,Qe)}
1069
- @keydown=${Qe=>Ke(Qe,()=>Re(Le,ye))}
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))}
1070
1081
  >
1071
1082
  <input
1072
1083
  type="checkbox"
1073
1084
  aria-hidden="true"
1074
1085
  tabindex="-1"
1075
1086
  class="moz-checkbox"
1076
- .checked=${at}
1077
- ?disabled=${st}
1078
- @click=${Qe=>j(Le,ye,Qe)}
1087
+ .checked=${b}
1088
+ ?disabled=${S}
1089
+ @click=${le=>Be(We,Fe,le)}
1079
1090
  />
1080
- ${e.slots.has("list-item")?e.slot("list-item",{text:ne(Le),item:Le}):o.html`<div class="highlight-container" title=${ne(Le)}>
1081
- ${A(ne(Le)).map(Qe=>o.html`<span class=${D("text-part",{highlight:Qe.highlight})}>${Qe.part}</span>`)}
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>`)}
1082
1093
  </div>`}
1083
- ${g.useSpecificSelect&&!st?o.html`<button type="button" class="item-only" @click=${Qe=>xe(Le,ye,Qe)}>
1094
+ ${v.useSpecificSelect&&!S?s.html`<button type="button" class="item-only" @click=${le=>Le(We,Fe,le)}>
1084
1095
  ${e.locale.MultiSelect.specificSelect}
1085
- </button>`:o.nothing}
1096
+ </button>`:s.nothing}
1086
1097
  </div>`)}
1087
- </div>
1088
- ${R.length<=0?o.html`<div class="list-box-item loading not-hover">
1089
- ${g.loading?g.loadingText??"Loading…":e.slots.has("empty")?e.slot("empty"):e.locale.MultiSelect.noData}
1090
- </div>`:o.nothing}
1098
+ </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}
1091
1102
  </div>
1092
- </div>`};return{api:{validate:x},render(){const g=e.props;if(e.controlled("filterValue")&&($=g.filterValue??""),g.itemsSource!==z){const ve=z,ye=g.itemsSource;z=g.itemsSource,queueMicrotask(()=>_e(ye??[],ve??[]))}const B=typeof g.width=="number"?`${Te(g.width)}rem`:g.width,R=be(g,Fn),{aria:J,dom:ee}=ft(R);if(g.inline)return o.html`<div class="moz-multi-select moz-multi-select-inline"
1093
- style=${X.styleMap({width:B,...fe(g.style)})}
1094
- ${N.ref(t)}>${Ue()}</div>`;const he=e.slots.has("icon")?e.slot("icon",{isOpen:p}):p?qn("14","var(--moz-color-accent)"):Rn("14",g.disabled?"var(--moz-color-text-muted)":"var(--moz-color-text-subtle)");return o.html`
1103
+ </div>`};return{api:{validate:xe,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`
1095
1106
  <div
1096
- class=${D("moz-multi-select",{"is-invalid":K()!=="","is-open":p,disabled:!!g.disabled})}
1097
- style=${X.styleMap({width:B,...fe(g.style)})}
1098
- ${N.ref(t)}
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)}
1099
1110
  >
1100
1111
  <div class="input-wrapper">
1101
- ${g.label?Be({},o.html`${g.label}${g.required?o.html`<span class="require-mark">*</span>`:o.nothing}`):o.nothing}
1102
- <div class="moz-input-container" @click=${Ne} ${N.ref(s)}>
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)}>
1103
1114
  <input
1104
- ${ce(ee)}
1105
- .value=${L()}
1115
+ ${he(ie)}
1116
+ .value=${z()}
1106
1117
  autocomplete="off"
1107
1118
  readonly
1108
1119
  tabindex="-1"
@@ -1110,24 +1121,24 @@
1110
1121
  <button
1111
1122
  type="button"
1112
1123
  class="icon-container"
1113
- ${ce(J)}
1124
+ ${he(oe)}
1114
1125
  role="combobox"
1115
1126
  aria-haspopup="listbox"
1116
1127
  aria-expanded=${p?"true":"false"}
1117
- aria-controls=${v}
1118
- aria-label=${Se.ifDefined(J["aria-label"]??g.label??void 0)}
1119
- ?disabled=${!!g.disabled}
1120
- @keydown=${P}
1121
- ${N.ref(i)}
1128
+ aria-controls=${D}
1129
+ aria-label=${Ee.ifDefined(oe["aria-label"]??v.label??void 0)}
1130
+ ?disabled=${!!v.disabled}
1131
+ @keydown=${Se}
1132
+ ${K.ref(l)}
1122
1133
  >
1123
- ${he}
1134
+ ${pe}
1124
1135
  </button>
1125
1136
  </div>
1126
1137
  </div>
1127
1138
 
1128
- ${K()!==""?o.html`<span class="moz-input-invalid-message">${K()}</span>`:o.nothing}
1139
+ ${F()!==""?s.html`<span class="moz-input-invalid-message">${F()}</span>`:s.nothing}
1129
1140
  </div>
1130
- `},renderPortal(){return e.props.inline||!p?o.nothing:Ue()}}}}),Hn={name:"MozMultiSelect",core:cs,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 us(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 Nn(e="14",t="var(--moz-color-text-subtle)"){const s=us(e,14);return o.html`<svg width=${s.width} height=${s.height} viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg">
1141
+ `},renderPortal(){return e.props.inline||!p?s.nothing:mt()}}}}),ai={name:"MozMultiSelect",core:xs,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 Ms(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=Ms(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">
1131
1142
  <g clip-path="url(#clip0_4513_575)">
1132
1143
  <path
1133
1144
  fill-rule="evenodd"
@@ -1138,11 +1149,11 @@
1138
1149
  </g>
1139
1150
  <defs>
1140
1151
  <clipPath id="clip0_4513_575">
1141
- <rect width=${s.width} height=${s.height} fill="white" transform="translate(0 0.704163)"></rect>
1152
+ <rect width=${o.width} height=${o.height} fill="white" transform="translate(0 0.704163)"></rect>
1142
1153
  </clipPath>
1143
1154
  </defs>
1144
- </svg>`}function Co(e="12",t="var(--moz-color-text-subtle)",s=!1,n=""){const i=us(e,12),a=s?"var(--moz-color-text-muted)":t;return o.html`<svg class=${n||o.nothing} xmlns="http://www.w3.org/2000/svg" width=${i.width} height=${i.height} viewBox="0 0 16 16">
1145
- <g style=${`fill: ${a}`}>
1155
+ </svg>`}function Ao(e="12",t="var(--moz-color-text-subtle)",o=!1,n=""){const l=Ms(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}`}>
1146
1157
  <path
1147
1158
  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"
1148
1159
  style="stroke: none"
@@ -1150,187 +1161,189 @@
1150
1161
  ></path>
1151
1162
  <path
1152
1163
  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"
1153
- style=${`fill: ${a}; stroke: none`}
1164
+ style=${`fill: ${d}; stroke: none`}
1154
1165
  transform="translate(-829.971 -686.318)"
1155
1166
  ></path>
1156
1167
  </g>
1157
- </svg>`}const _n=new Set(["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required","class","style"]),Un=Array.from({length:24},(e,t)=>t),Wn=Array.from({length:60},(e,t)=>t),ps=Ce({name:"moz-time-picker",defaults:{width:"160px",modelValue:"09:00",label:"",disabled:!1,required:!1},setup(e){const t=N.createRef(),s=N.createRef(),n=N.createRef(),i=N.createRef(),a=N.createRef(),m=N.createRef();let d=!1,l=9,h=0,r="",u="";const p=A=>{if(A&&A.includes(":")){const[U,G]=A.split(":").map(Number);!isNaN(U)&&!isNaN(G)&&(l=U,h=G,r=A,u=A)}};p(e.props.modelValue);let v=e.props.modelValue,$=r;const I=new gt({anchor:()=>s.value??null,panel:()=>i.value??null,maxHeight:()=>210,container:()=>t.value??null,listWidth:()=>"160px",requestClose:()=>{d&&C(!1)}});e.onCleanup(()=>I.destroy());const w=()=>{a.value&&(a.value.scrollTop=l*24-72),m.value&&(m.value.scrollTop=h*24-72)},C=A=>{d!==A&&(d=A,e.requestUpdate(),A?(I.open(),queueMicrotask(w)):I.close())},E=()=>{const A=`${l.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`;r=A,u=A,e.emit("update:modelValue",A),e.requestUpdate()},y=A=>{l=A,E()},z=A=>{h=A,C(!1),E()},_=()=>{l=new Date().getHours(),h=new Date().getMinutes(),E(),C(!1)},W=A=>{let U=A.replace(/[^\d:]/g,"");return U.length>5&&(U=U.slice(0,5)),U},Z=A=>{C(!1);const U=A.target,G=A.key;if(!/^\d$/.test(G))return;const oe=U.selectionStart||0,Q=r;if(U.selectionStart!==U.selectionEnd||oe>=Q.length)return;A.preventDefault();const F=Q.replace(/:/g,""),se=(Q.slice(0,oe).match(/:/g)||[]).length,K=oe-se;let k=F.substring(0,K)+G;K+1<F.length&&(k+=F.substring(K+1)),k.length>4&&(k=k.slice(0,4));let S=k,x=K+1;if(k.length>=2){const T=k.slice(0,2),V=k.slice(2);S=`${T}:${V}`,x>2&&(x=x+1)}r=S,u=S,e.requestUpdate(),queueMicrotask(()=>U.setSelectionRange(x,x))},ne=A=>{const U=A.target,G=U.selectionStart||0,oe=u;let Q=U.value;const F=Q.length<oe.length;Q=W(Q);const se=Q.replace(/:/g,"");if(!F&&se.length>=2){const K=(Q.slice(0,G).match(/:/g)||[]).length,k=G-K,S=se.slice(0,2),x=se.slice(2);Q=S+(x?`:${x}`:":");let T=k;k>2&&(T=k+1),r=Q,u=Q,e.requestUpdate(),setTimeout(()=>U.setSelectionRange(T,T),0);return}r=Q,u=Q,e.requestUpdate()},me=()=>C(!0),le=()=>{if(!r){E();return}let A=r;!A.includes(":")&&A.length>=2&&(A=`${A.slice(0,2)}:${A.slice(2)}`);const U=A.split(":");let G=l,oe=h;if(U[0]){const Q=parseInt(U[0],10);isNaN(Q)||(Q>=0&&Q<=23?G=Q:Q>23?G=23:G=0)}if(U[1]){const Q=parseInt(U[1],10);isNaN(Q)||(Q>=0&&Q<=59?oe=Q:Q>59?oe=59:oe=0)}l=G,h=oe,E()};return{render(){const A=e.props;if(A.modelValue!==v&&(v=A.modelValue,p(A.modelValue)),r!==$){$=r;const F=r;if(/^\d{2}:\d{2}$/.test(F)){const[se,K]=F.split(":").map(Number);!isNaN(se)&&!isNaN(K)&&se>=0&&se<=23&&K>=0&&K<=59&&F!==A.modelValue&&(l=se,h=K,queueMicrotask(()=>e.emit("update:modelValue",F)))}}const U=A.disabled?"var(--moz-color-text-muted)":d?"var(--moz-color-accent)":"var(--moz-color-text-subtle)",G=be(A,_n),oe="__:__",Q=[];for(let F=0;F<oe.length;F++)F<r.length?Q.push({char:r[F],isInput:!0}):Q.push({char:oe[F],isInput:!1});return o.html`
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 x=se.substring(0,X)+Y;X+1<se.length&&(x+=se.substring(X+1)),x.length>4&&(x=x.slice(0,4));let U=x,_=X+1;if(x.length>=2){const G=x.slice(0,2),J=x.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,x=Y-X,U=N.slice(0,2),_=N.slice(2);B=U+(_?`:${_}`:":");let G=x;x>2&&(G=x+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,x]=N.split(":").map(Number);!isNaN(X)&&!isNaN(x)&&X>=0&&X<=23&&x>=0&&x<=59&&N!==$.modelValue&&(c=X,r=x,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`
1158
1169
  <div
1159
- class=${D("custom-time-picker",A.class,{"custom-time-picker--has-class":!!A.class})}
1160
- style=${X.styleMap({width:A.width,...fe(A.style)})}
1161
- ${ce(G)}
1162
- ${N.ref(t)}
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)}
1163
1174
  >
1164
- ${A.label?Be({disabled:A.disabled,required:A.required},A.label):o.nothing}
1175
+ ${$.label?Xe({for:f,disabled:$.disabled,required:$.required},$.label):s.nothing}
1165
1176
  <div
1166
- class=${D("time-input-wrapper",{"time-input-wrapper--disabled":A.disabled,"time-input-wrapper--open":d&&!A.disabled})}
1167
- ${N.ref(s)}
1177
+ class=${V("time-input-wrapper",{"time-input-wrapper--disabled":$.disabled,"time-input-wrapper--open":i&&!$.disabled})}
1178
+ ${K.ref(o)}
1168
1179
  >
1169
1180
  <div class="input-with-mask">
1170
1181
  <input
1171
1182
  type="text"
1172
- .value=${r}
1173
- @keydown=${Z}
1174
- @input=${ne}
1175
- @blur=${le}
1176
- @focus=${me}
1177
- @click=${()=>C(!0)}
1178
- class=${D("time-input",{"time-input--disabled":A.disabled,"time-input--open":d})}
1179
- ?disabled=${!!A.disabled}
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}
1180
1192
  maxlength="5"
1181
- ${N.ref(n)}
1193
+ ${K.ref(n)}
1182
1194
  />
1183
1195
  <div class="time-mask">
1184
- ${Q.map(F=>o.html`<span
1185
- class=${D({"mask-input":F.isInput&&!A.disabled,"mask-placeholder":!F.isInput,"mask-input--disabled":F.isInput&&!!A.disabled})}
1186
- >${F.char}</span
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
1187
1199
  >`)}
1188
1200
  </div>
1189
1201
  </div>
1190
1202
  <div class="icon-container">
1191
- <span @click=${()=>C(!0)}>${Nn("14",U)}</span>
1203
+ <span @click=${()=>g(!0)}>${di("14",I)}</span>
1192
1204
  </div>
1193
1205
  </div>
1194
1206
  </div>
1195
- `},renderPortal(){if(!d)return o.nothing;const A=e.props;return o.html`<div class="time-picker-dropdown" ${N.ref(i)}>
1207
+ `},renderPortal(){if(!i)return s.nothing;const $=e.props;return s.html`<div class="time-picker-dropdown" ${K.ref(l)}>
1196
1208
  <div class="time-picker-content">
1197
1209
  <div class="time-column">
1198
- <div class="time-label">${A.hourLabel??e.locale.TimePicker.hour}</div>
1210
+ <div class="time-label">${$.hourLabel??e.locale.TimePicker.hour}</div>
1199
1211
  <div class="time-list">
1200
- <div class="time-option-wrapper" ${N.ref(a)}>
1201
- ${Un.map(U=>o.html`<div @click=${()=>y(U)} class="time-option">
1202
- <div class="time-option-text">${U.toString().padStart(2,"0")}</div>
1203
- ${l===U?Co("12","var(--moz-color-accent)",!1,"check-icon"):o.nothing}
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}
1204
1216
  </div>`)}
1205
1217
  </div>
1206
1218
  </div>
1207
1219
  </div>
1208
1220
  <div class="time-column">
1209
- <div class="time-label">${A.minuteLabel??e.locale.TimePicker.minute}</div>
1221
+ <div class="time-label">${$.minuteLabel??e.locale.TimePicker.minute}</div>
1210
1222
  <div class="time-list">
1211
- <div class="time-option-wrapper" ${N.ref(m)}>
1212
- ${Wn.map(U=>o.html`<div @click=${()=>z(U)} class="time-option">
1213
- <div class="time-option-text">${U.toString().padStart(2,"0")}</div>
1214
- ${h===U?Co("12","var(--moz-color-accent)",!1,"check-icon"):o.nothing}
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}
1215
1227
  </div>`)}
1216
1228
  </div>
1217
1229
  </div>
1218
1230
  </div>
1219
1231
  </div>
1220
- <div class="time-picker-footer" @click=${_}>
1221
- ${A.currentTimeLabel??e.locale.TimePicker.currentTime}
1232
+ <div class="time-picker-footer" @click=${Z}>
1233
+ <span class="time-picker-footer-label">${$.currentTimeLabel??e.locale.TimePicker.currentTime}</span>
1222
1234
  </div>
1223
- </div>`}}}}),Kn={name:"MozTimePicker",core:ps,booleanProps:["disabled","required"],props:["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required"],emits:["update:modelValue"],slots:[],expose:!1};function Gn(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 _t(e="var(--moz-color-text-subtle)",t=""){return o.html`<svg class=${t} width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
1224
1236
  <path d="M9 3L3 9M3 3L9 9" stroke=${e} stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
1225
- </svg>`}function yo(e="12",t="var(--moz-color-text-subtle)",s=!1,n=""){const i=Gn(e,12),a=s?"var(--moz-color-text-muted)":t;return o.html`<svg class=${n} xmlns="http://www.w3.org/2000/svg" width=${i.width} height=${i.height} viewBox="0 0 12 12">
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">
1226
1238
  <g transform="translate(-0.005)">
1227
1239
  <path
1228
1240
  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"
1229
1241
  transform="translate(-1.577 -1.504)"
1230
- fill=${a}
1231
- stroke=${a}
1242
+ fill=${d}
1243
+ stroke=${d}
1232
1244
  stroke-width="0.6"
1233
1245
  ></path>
1234
1246
  </g>
1235
- </svg>`}const Yn=new Set(["modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","class","style"]);function Zn(e,t){let s;return(...n)=>{s&&clearTimeout(s),s=setTimeout(()=>e(...n),t)}}const hs=Ce({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=N.createRef(),s=N.createRef();let n=null,i=[],a=!1,m=!1,d="",l=!1,h={};const r=()=>e.props,u=f=>r().pattern?new RegExp(`${r().pattern}`).test(f):!0,p=()=>i.map((f,q)=>({...f,idx:q})).filter(f=>f.isSelected!==-1).sort((f,q)=>f.isSelected-q.isSelected),v=()=>p().map(f=>f.value),$=()=>!p().some(f=>!f.isValid),I=(f,q)=>{const H=r().limitItemLength;(!q||q&&H&&p().length<H||q&&!H)&&(q&&i[f].isSelected===-1||!q)&&(i[f].isSelected=q?Date.now():-1)},w=(f,q)=>{const H=i.findIndex(xe=>xe.value===f);if(H!==-1)return v().includes(f)?!1:(I(H,!0),!0);const j={key:Date.now(),isSelected:q?Date.now():-1,isValid:u(f),isEditing:!1,beforeValue:f,value:f};j.isValid&&r().requestCreate&&r().requestCreate(f);const $e=r().limitItemLength;return!q||!$e||q&&$e&&p().length<$e?(i.push(j),!0):!1},C=f=>{i.splice(f,1)},E=f=>{i[f].isValid=u(i[f].value),i[f].isValid&&r().requestUpdate&&r().requestUpdate({before:i[f].beforeValue,after:i[f].value}),i[f].beforeValue=i[f].value},y=()=>{i=i.filter(f=>f.isSelected!==-1),(r().itemsSource??[]).forEach(f=>{w(r().displayKey?f[r().displayKey]:f,!1)})};y();const z=()=>{const f=r().modelValue;if(f&&f.toString()!==v().toString()){const q=[...f];i.forEach((H,j)=>{const $e=q.indexOf(H.value);$e!==-1&&(H.key===-1&&I(j,!0),q.splice($e,1))}),q.forEach(H=>w(H,!0))}};z();let _=r().modelValue,W=r().itemsSource,Z=v().toString();const ne=()=>{if(!t.value||!s.value)return;const f=t.value.getBoundingClientRect();let q=f.left;f.left+s.value.clientWidth>document.body.clientWidth&&(q-=s.value.clientWidth-f.width),h={minWidth:`${f.width}px`,width:`${f.width}px`,left:`${q}px`,top:`${f.top}px`},e.requestUpdate()},me=f=>{const q=f.target,H=()=>{d&&r().pushOnBlur&&w(d,!0)&&e.emit("modelChange",v()),d="",m=!1,a=!1};q.className&&Array.from(String(q.className).split(" ")).includes("tag-input-not-close")||H(),F(""),window.removeEventListener("mousedown",me),e.requestUpdate()},le=()=>{a=!0,window.addEventListener("mousedown",me),e.requestUpdate(),queueMicrotask(ne)};e.onCleanup(()=>window.removeEventListener("mousedown",me));const A=f=>{setTimeout(()=>{const q=s.value,H=q==null?void 0:q.querySelector(`[data-edit-idx="${f}"] .moz-auto-input`);H==null||H.focus()},0)},U=f=>{i[f].isEditing=!0,e.requestUpdate(),A(f)},G=()=>{m=!0,le(),setTimeout(()=>n==null?void 0:n.focus(),0)},oe=f=>{if(f.key==="Enter"&&d===""&&e.emit("onEnterEmpty",v()),(f.key==="Enter"||f.key==="Tab"&&r().pushOnBlur)&&d!==""&&(w(d,!0)&&(e.emit("modelChange",v()),d=""),e.requestUpdate()),f.key==="Tab"&&(a=!1,m=!1,e.requestUpdate()),f.key==="Backspace"){const q=f.target,H=p();q.selectionStart===0&&H.length>0&&(I(H[H.length-1].idx,!1),e.requestUpdate())}},Q=f=>{r().dynamicSearch&&r().requestRead&&(l=!0,e.requestUpdate(),F(f.target.value))},F=Zn(f=>{r().requestRead&&r().requestRead(f).then(()=>{l=!1,e.requestUpdate()})},300),se=(f,q)=>{f.key==="Backspace"&&i[q].value===""&&i.length>1&&(C(q),e.requestUpdate())},K=f=>{f.key==="Enter"&&(m=!0,e.requestUpdate(),setTimeout(()=>n==null?void 0:n.focus(),0))},k=f=>{i[f].value===""&&C(f),(i.length>1||i[f]&&i[f].value!=="")&&i[f]&&(i[f].isEditing=!1),i[f]&&E(f),e.requestUpdate()},S=f=>{I(f,!0),e.requestUpdate(),n==null||n.focus()},x=f=>{f.style.width="1px",f.style.width=`${f.scrollWidth}px`},T=f=>{const q=r().limitTextLength;return o.html`<input
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())},x=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}
1236
1249
  class="moz-auto-input tag-input-common tag-input-add"
1237
- .value=${f.value}
1250
+ .value=${m.value}
1238
1251
  style="width:1px"
1239
- ${N.ref(H=>{var $e;const j=H??null;j&&x(j),($e=f.captureEl)==null||$e.call(f,j)})}
1240
- @input=${H=>{var $e;const j=H.target;q&&j.value.length<=q||!q||q===-1?f.setValue(j.value):j.value=f.value,x(j),($e=f.onInputExtra)==null||$e.call(f,H)}}
1241
- @keydown=${H=>{var j;return(j=f.onKeydown)==null?void 0:j.call(f,H)}}
1242
- @keyup=${H=>{var j;return(j=f.onKeyup)==null?void 0:j.call(f,H)}}
1243
- @blur=${()=>{var H;return(H=f.onBlur)==null?void 0:H.call(f)}}
1244
- />`},V=(f,q,H)=>o.html`<div class="tag-input-controller" style=${X.styleMap({display:f.isSelected!==-1?"":"none"})}>
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
+ />`},M=(m,T,A)=>s.html`<div class="tag-input-controller" style=${ee.styleMap({display:m.isSelected!==-1?"":"none"})}>
1245
1258
  <div
1246
- class=${D("tag-input-item",{invalid:!f.isValid})}
1247
- data-isValid=${String(f.isValid)}
1248
- data-edit-idx=${f.idx}
1249
- @mousedown=${j=>j.stopPropagation()}
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()}
1250
1263
  >
1251
- ${H&&r().simplify&&f.isEditing?T({value:f.value,setValue:j=>{i[f.idx].value=j,e.requestUpdate()},onKeydown:j=>se(j,f.idx),onKeyup:j=>K(j),onBlur:()=>k(f.idx)}):o.html`<span class="tag-input-preview tag-input-common">${f.value}</span>`}
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=>x(F),onBlur:()=>U(m.idx)}):s.html`<span class="tag-input-preview tag-input-common">${m.value}</span>`}
1252
1265
  <div class="tag-input-btn-wrapper">
1253
- ${r().simplify&&!f.isEditing&&!r().disableUpdate?o.html`<span
1266
+ ${p().simplify&&!m.isEditing&&!p().disableUpdate?s.html`<span
1254
1267
  class="tag-input-button cursor-pointer"
1255
1268
  role="button"
1256
1269
  tabindex="0"
1257
- aria-label=${e.locale.TagInput.editTag.replace("{label}",f.value??"")}
1258
- @click=${()=>U(f.idx)}
1259
- @keydown=${j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),U(f.idx))}}
1260
- >${yo("10")}</span
1261
- >`:o.nothing}
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}
1262
1275
  <span
1263
1276
  class="tag-input-button cursor-pointer"
1264
1277
  role="button"
1265
1278
  tabindex="0"
1266
- aria-label=${e.locale.TagInput.removeTag.replace("{label}",f.value??"")}
1267
- @click=${()=>{I(f.idx,!1),e.requestUpdate()}}
1268
- @keydown=${j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),I(f.idx,!1),e.requestUpdate())}}
1269
- >${_t()}</span
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
1270
1283
  >
1271
1284
  </div>
1272
1285
  </div>
1273
- </div>`;return{api:{isValid:$},render(){const f=e.props;f.modelValue!==_&&(_=f.modelValue,z()),f.itemsSource!==W&&(W=f.itemsSource,y());const q=v().toString();if(q!==Z){Z=q;const j=v();queueMicrotask(()=>e.emit("update:modelValue",j))}const H=be(f,Yn);return o.html`
1274
- <div class=${D("moz-tag-input-wrapper",f.class)} style=${X.styleMap(fe(f.style))} ${ce(H)}>
1275
- ${f.label?o.html`<label class=${D("tag-input-label",{required:f.required})}>${f.label}</label>`:o.nothing}
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}
1276
1289
  <div class="tag-input-grid">
1277
1290
  <div
1278
1291
  class="tag-input-not-close tag-input-row scrollbar-none"
1279
- @mousedown=${j=>{j.stopPropagation(),G()}}
1280
- @click=${le}
1281
- ${N.ref(t)}
1292
+ @mousedown=${F=>{F.stopPropagation(),ne()}}
1293
+ @click=${$}
1294
+ ${K.ref(t)}
1282
1295
  >
1283
1296
  ${e.slot("left")}
1284
- ${p().map((j,$e)=>V(j,$e,!1))}
1285
- ${m?o.html`<span class="tag-input-preview tag-input-common" @click=${G}>${d}</span>`:o.nothing}
1286
- ${f.limitItemLength&&m?o.html`<div class="tag-input-counter">${p().length} / ${f.limitItemLength}</div>`:o.nothing}
1287
- ${m?o.nothing:o.html`<span class="tag-input-add-to">${f.addButtonLabel?f.addButtonLabel:e.locale.TagInput.add} </span>`}
1297
+ ${L().map((F,ce)=>M(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>`}
1288
1301
  <div class="flex-1"></div>
1289
1302
  ${e.slot("right")}
1290
1303
  </div>
1291
1304
  </div>
1292
1305
  </div>
1293
- `},renderPortal(){if(!a)return o.nothing;const f=e.props;return o.html`<div class="absolute z-1501 moz-tag-input-float" style=${X.styleMap(h)}>
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)}>
1294
1307
  <div
1295
1308
  class="tag-input-placeholder-float tag-input-not-close scrollbar-none shown"
1296
- @mousedown=${q=>{q.stopPropagation(),G()}}
1297
- ${N.ref(s)}
1309
+ @mousedown=${T=>{T.stopPropagation(),ne()}}
1310
+ ${K.ref(o)}
1298
1311
  >
1299
- ${p().map((q,H)=>V(q,H,!0))}
1300
- ${m?T({value:d,setValue:q=>{d=q,e.requestUpdate()},onKeydown:oe,onKeyup:()=>{},onBlur:()=>{},onInputExtra:Q,captureEl:q=>{n=q}}):o.nothing}
1301
- ${l?o.html`<div class="tag-input-loading">
1312
+ ${L().map((T,A)=>M(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">
1302
1315
  <div class="tag-input-loading-ball-1"></div>
1303
1316
  <div class="tag-input-loading-ball-2"></div>
1304
1317
  <div class="tag-input-loading-ball-3"></div>
1305
- </div>`:o.nothing}
1306
- ${f.limitItemLength&&m?o.html`<div class="tag-input-counter" @click=${G}>
1307
- ${p().length} / ${f.limitItemLength}
1308
- </div>`:o.nothing}
1309
- ${m?o.nothing:o.html`<span class="tag-input-add-to flex-1">${f.addButtonLabel?f.addButtonLabel:""} </span>`}
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>`}
1310
1323
  </div>
1311
- ${f.simplify?o.nothing:o.html`<div class="tag-input-dropdown-outer-wrapper" @mousedown=${q=>q.stopPropagation()}>
1312
- <div class=${D("tag-input-dropdown-wrapper",{"expand-top":f.isExpandTop})}>
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})}>
1313
1326
  <div class="tag-input-dropdown-inner-wrapper">
1314
1327
  <div class="tag-input-dropdown-title"></div>
1315
- ${i.map((q,H)=>o.html`<div class="dropdown-tag-input-item-wrapper tag-input-controller">
1328
+ ${a.map((T,A)=>s.html`<div class="dropdown-tag-input-item-wrapper tag-input-controller">
1316
1329
  <div
1317
- class=${D("tag-input-item tag-item-limit-width",{invalid:!q.isValid})}
1318
- data-isValid=${String(q.isValid)}
1319
- data-edit-idx=${H}
1320
- @click=${()=>S(H)}
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)}
1321
1334
  >
1322
- ${q.isEditing?T({value:q.value,setValue:j=>{i[H].value=j,e.requestUpdate()},onKeydown:j=>se(j,H),onKeyup:j=>K(j),onBlur:()=>k(H)}):o.html`<span class="tag-input-preview tag-input-common">
1323
- <span>${q.value}</span>
1335
+ ${T.isEditing?J({value:T.value,setValue:F=>{a[A].value=F,e.requestUpdate()},onKeydown:F=>X(F,A),onKeyup:F=>x(F),onBlur:()=>U(A)}):s.html`<span class="tag-input-preview tag-input-common">
1336
+ <span>${T.value}</span>
1324
1337
  <div class="tag-input-btn-wrapper">
1325
- ${!q.isEditing&&!f.disableUpdate?o.html`<span
1338
+ ${!T.isEditing&&!m.disableUpdate?s.html`<span
1326
1339
  class="tag-input-button cursor-pointer"
1327
- @click=${j=>{j.stopPropagation(),U(H)}}
1328
- >${yo("10")}</span
1329
- >`:o.nothing}
1330
- ${f.disableDelete?o.nothing:o.html`<span
1340
+ @click=${F=>{F.stopPropagation(),Y(A)}}
1341
+ >${Do("10")}</span
1342
+ >`:s.nothing}
1343
+ ${m.disableDelete?s.nothing:s.html`<span
1331
1344
  class="tag-input-button cursor-pointer"
1332
- @click=${j=>{j.stopPropagation(),C(H),e.requestUpdate()}}
1333
- >${_t()}</span
1345
+ @click=${F=>{F.stopPropagation(),h(A),e.requestUpdate()}}
1346
+ >${io()}</span
1334
1347
  >`}
1335
1348
  </div>
1336
1349
  </span>`}
@@ -1339,156 +1352,64 @@
1339
1352
  </div>
1340
1353
  </div>
1341
1354
  </div>`}
1342
- </div>`}}}}),jn={name:"MozTagInput",core:hs,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},Xn=new Set(["itemSource","fixPosition","noPadding","minWidth","class","style"]);function Qn(e,t){let s;return(...n)=>{s&&clearTimeout(s),s=setTimeout(()=>e(...n),t)}}const Jn=500,ms=Ce({name:"moz-context-menu",defaults:{transition:"fade",minWidth:"150px",direction:"rb"},setup(e){let t=null,s=null;const n=N.createRef();let i=!1,a=!1,m=!1,d=!1,l=null,h=!1,r=!1,u=!1,p=!1;const v=new Map,$=new Map,I=new Map,w=new Map,C=()=>{i&&a&&(l||e.props.itemSource)&&s&&!p&&(p=!0,e.emit("open",{target:s}))},E=k=>{const S=m!==k;m=k,e.requestUpdate(),S&&!k&&setTimeout(()=>{i=!1,d=!1,p=!1,e.emit("close",{target:s}),e.requestUpdate()},50)},y=k=>{const S=i!==k;i=k,e.requestUpdate(),S&&(setTimeout(()=>{a=i,e.requestUpdate(),C()},0),E(i),C())},z=k=>{if(e.props.disableCloseOnClickBackdrop)return;const S=["list-box-container"],x=k.composedPath();x.includes(s)||S.forEach(T=>{(!T||T&&!x.some(V=>{var f;return(f=V.classList)==null?void 0:f.contains(T)}))&&_()})},_=()=>{(e.props.beforeClose??(()=>{}))&&(E(!1),window.removeEventListener("mousedown",z),window.removeEventListener("resize",_))},W=(k,S)=>{k instanceof Function&&(l=k(S)),y(!0),setTimeout(()=>y(!0),60)},Z=()=>{i?_():W()},ne=()=>{const k=e.props.fixPosition;if(!k)return;const S=k.selector&&document.querySelector(k.selector)||t;if(!S||!s||!n.value)return;const x=S.getBoundingClientRect(),T=n.value.getBoundingClientRect();h=x.left+S.clientWidth<T.left+s.clientWidth,r=x.left+S.clientWidth<T.left+s.clientWidth*2,u=x.top+S.clientHeight<T.top+s.clientHeight,k.useTeleport?(s.style.left=`${T.left}px`,s.style.top=`${T.top}px`):(s.style.left=`${n.value.offsetLeft}px`,s.style.top=`${n.value.offsetTop}px`),e.requestUpdate()},me=k=>{d||(s&&t&&(e.props.fixPosition?ne():(h=t.clientWidth<k.clientX+s.clientWidth,r=t.clientWidth<k.clientX+s.clientWidth*2,u=t.clientHeight<k.clientY+s.clientHeight,s.style.left=`${k.clientX}px`,s.style.top=`${k.clientY}px`)),t&&(t.style.pointerEvents="none"),window.addEventListener("mousedown",z),window.addEventListener("resize",_),d=!0,e.requestUpdate())};e.onCleanup(()=>{window.removeEventListener("mousedown",z),window.removeEventListener("resize",_)});const le=k=>{let S=w.get(k);return S||(S=Qn((x,T,V)=>{T.children&&(A(V,T),v.set(V,x),e.requestUpdate())},400),w.set(k,S)),S},A=(k,S)=>{if(!S.children||$.get(k))return;const x=I.get(k);if(!x)return;const T=x.getBoundingClientRect();$.set(k,x.clientHeight+T.top>document.body.offsetHeight)},U=(k,S)=>{k.function?(k.function(),_()):k.children&&(A(S,k),v.set(S,!0),e.requestUpdate())},G=k=>typeof k.disabled=="function"?k.disabled():!!k.disabled,oe=(k,S,x,T)=>{const V=v.get(T)??!1,f=$.get(T)??!1,q=le(T);return o.html`<div
1343
- class=${D({"context-menu-item-enable-hover":!("hover"in k)||k.hover,"context-menu-item-wrapper":!0,"context-menu-item-wrapper-selected":V,"context-menu-item-wrapper-disabled":G(k)})}
1344
- @mouseenter=${()=>q(!0,k,T)}
1345
- @mouseleave=${()=>q(!1,k,T)}
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=M=>{D=e.props.fixPosition?M: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=M=>{const m=a!==M;a=M,e.requestUpdate(),m&&!M&&setTimeout(()=>{l=!1,f=!1,p=!1,e.emit("close",{target:o}),e.requestUpdate()},50)},Q=M=>{const m=l!==M;l=M,e.requestUpdate(),m&&(setTimeout(()=>{d=l,e.requestUpdate(),Z()},0),W(l),Z())},re=M=>{if(e.props.fixPosition&&M===P||e.props.disableCloseOnClickBackdrop)return;const m=["list-box-container"],T=M.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=(M,m)=>{M instanceof Function&&(i=M(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 M=e.props.fixPosition;if(!M)return;const m=M.selector&&document.querySelector(M.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,M.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 M=y;queueMicrotask(()=>{M!==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=M=>{f||(o&&t&&(e.props.fixPosition?I():(c=t.clientWidth<M.clientX+o.clientWidth,r=t.clientWidth<M.clientX+o.clientWidth*2,u=t.clientHeight<M.clientY+o.clientHeight,o.style.left=`${M.clientX}px`,o.style.top=`${M.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=M=>{let m=k.get(M);return m||(m=bi((T,A,F)=>{A.children&&(se(F,A),g.set(F,T),e.requestUpdate())},400),k.set(M,m)),m},se=(M,m)=>{if(!m.children||h.get(M))return;const T=C.get(M);if(!T)return;const A=T.getBoundingClientRect();h.set(M,T.clientHeight+A.top>document.body.offsetHeight)},N=(M,m)=>{M.function?(M.function(),ae()):M.children&&(se(m,M),g.set(m,!0),e.requestUpdate())},X=M=>typeof M.disabled=="function"?M.disabled():!!M.disabled,x=(M,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 M)||M.hover,"context-menu-item-wrapper":!0,"context-menu-item-wrapper-selected":F,"context-menu-item-wrapper-disabled":X(M)})}
1357
+ @mouseenter=${()=>ke(!0,M,A)}
1358
+ @mouseleave=${()=>ke(!1,M,A)}
1346
1359
  >
1347
1360
  <div
1348
- class=${D({"context-menu-sub-items-wrapper-right":x&&!f,"context-menu-sub-items-wrapper-bottom":f&&!x,"context-menu-sub-items-wrapper-bottom-right":f&&x,"context-menu-sub-items-wrapper-hide":!k.children||!V,"context-menu-sub-items-wrapper":!f&&!x})}
1349
- ${N.ref(H=>{H&&I.set(T,H)})}
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":!M.children||!F,"context-menu-sub-items-wrapper":!ce&&!T})}
1362
+ ${K.ref(xe=>{xe&&C.set(A,xe)})}
1350
1363
  >
1351
- ${k.children?F(k.children,S+1,x,T):o.nothing}
1364
+ ${M.children?_(M.children,m+1,T,A):s.nothing}
1352
1365
  </div>
1353
- ${k.template?o.html`<div
1354
- class=${`context-menu-item-${k.template}`}
1355
- @mouseup=${()=>{var H;(!("hover"in k)||k.hover)&&((H=k.function)==null||H.call(k),_())}}
1366
+ ${M.template?s.html`<div
1367
+ class=${`context-menu-item-${M.template}`}
1368
+ @mouseup=${()=>{var xe;(!("hover"in M)||M.hover)&&((xe=M.function)==null||xe.call(M),ae())}}
1356
1369
  >
1357
- ${Q(k)}
1358
- </div>`:o.html`<div
1370
+ ${U(M)}
1371
+ </div>`:s.html`<div
1359
1372
  class="context-menu-item"
1360
1373
  role="menuitem"
1361
1374
  tabindex="-1"
1362
- aria-disabled=${G(k)?"true":"false"}
1363
- aria-haspopup=${k.children?"menu":"false"}
1364
- @click=${()=>U(k,T)}
1375
+ aria-disabled=${X(M)?"true":"false"}
1376
+ aria-haspopup=${M.children?"menu":"false"}
1377
+ @click=${()=>N(M,A)}
1365
1378
  >
1366
- <div class="context-menu-item-left">${k.text}</div>
1367
- ${k.children?o.html`<div class="context-menu-item-right"></div>`:o.nothing}
1379
+ <div class="context-menu-item-left">${M.text}</div>
1380
+ ${M.children?s.html`<div class="context-menu-item-right"></div>`:s.nothing}
1368
1381
  </div>`}
1369
- </div>`},Q=k=>{const S=k.template,x=S.includes("[col-padding]")?"col-padding":S.includes("[row-padding]")?"row-padding":S.includes("[padding]")?"padding":null,T=e.slots.has(S)?e.slot(S,{props:{...k,close:_}}):o.nothing;return x?o.html`<div class="context-menu-item-template" data-layout=${x}>${T}</div>`:o.html`${T}`},F=(k,S,x,T)=>{const V=S===0;return o.html`<div
1370
- role=${V?"menu":"group"}
1371
- class=${D("context-menu-content-wrapper",V?e.props.class:void 0)}
1382
+ </div>`},U=M=>{const m=M.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:{...M,close:ae}}):s.nothing;return T?s.html`<div class="context-menu-item-template" data-layout=${T}>${A}</div>`:s.html`${A}`},_=(M,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)}
1372
1385
  data-noPadding=${String(!!e.props.noPadding)}
1373
- style=${X.styleMap({minWidth:e.props.minWidth,...V?fe(e.props.style):{}})}
1374
- ${ce(V?be(e.props,Xn):{})}
1386
+ style=${ee.styleMap({minWidth:e.props.minWidth,...F?be(e.props.style):{}})}
1387
+ ${he(F?ye(e.props,wi):{})}
1375
1388
  >
1376
- ${k.map((f,q)=>{const H=`${T}/${S}-${q}`;return o.html`<div class="context-menu-item-outer-wrapper" style=${X.styleMap({display:f!=null&&f.hidden?"none":""})}>
1377
- ${f.separator?o.html`<div class="context-menu-separator"></div>`:oe(f,S,x,H)}
1389
+ ${M.map((ce,ke)=>{const xe=`${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>`:x(ce,m,T,xe)}
1378
1391
  </div>`})}
1379
- </div>`},se=()=>{const k=e.props.fixPosition;return k?(typeof k.left=="string"||typeof k.left=="number"||typeof k.top=="string"||typeof k.top=="number")&&k.useTeleport!==!0:!1},K=()=>{const k=e.props,S=l||k.itemSource;if(!i||!S)return o.nothing;const x=k.transition,T=k.direction;return o.html`<div
1380
- class=${D({[`before-${x}`]:!0,[`after-${x}`]:a&&m,"context-menu-content-hide":!i,"context-menu-content-init":!0,"context-menu-content-init-right":h&&!u||T==="lb"||T.startsWith("l")&&!u||T.endsWith("b")&&h,"context-menu-content-init-bottom":u&&!h||T==="rt"||T.startsWith("r")&&u||T.endsWith("t")&&!h,"context-menu-content-init-bottom-right":u&&h||T==="lt"||T.startsWith("l")&&u||T.endsWith("t")&&h})}
1381
- style=${X.styleMap({transitionDuration:`${Jn}ms`,...k.toTopCenter?{transform:"translate(-50%, -100%)"}:{},...k.toBottomCenter?{transform:"translate(-50%, 0)"}:{}})}
1382
- @contextmenu=${V=>V.preventDefault()}
1383
- ${N.ref(V=>{V&&(s=V,C())})}
1392
+ </div>`},G=()=>{const M=e.props.fixPosition;return M?(typeof M.left=="string"||typeof M.left=="number"||typeof M.top=="string"||typeof M.top=="number")&&M.useTeleport!==!0:!1},J=()=>{const M=e.props,m=i||M.itemSource;if(!l||!m)return s.nothing;const T=M.transition,A=M.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`,...M.toTopCenter?{transform:"translate(-50%, -100%)"}:{},...M.toBottomCenter?{transform:"translate(-50%, 0)"}:{}})}
1395
+ @contextmenu=${F=>F.preventDefault()}
1396
+ ${K.ref(F=>{o=F||null,F&&(Y(),Z())})}
1384
1397
  >
1385
- ${F(S,0,r,"root")}
1386
- </div>`};return{api:{state:()=>i,open:W,close:_,toggle:Z},render(){const k=e.props;return k.fixPosition?o.html`<div
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 M=e.props;return M.fixPosition?s.html`<div
1387
1400
  class="context-menu-fixed-position-space"
1388
- style=${X.styleMap({left:typeof k.fixPosition.left=="string"?k.fixPosition.left:`${k.fixPosition.left}px`,top:typeof k.fixPosition.top=="string"?k.fixPosition.top:`${k.fixPosition.top}px`})}
1389
- ${N.ref(n)}
1401
+ style=${ee.styleMap({left:typeof M.fixPosition.left=="string"?M.fixPosition.left:`${M.fixPosition.left}px`,top:typeof M.fixPosition.top=="string"?M.fixPosition.top:`${M.fixPosition.top}px`})}
1402
+ ${K.ref(n)}
1390
1403
  ></div>
1391
- ${se()?K():o.nothing}`:o.nothing},renderPortal(){const k=l||e.props.itemSource;return!i||!k?o.nothing:o.html`
1404
+ ${G()?J():s.nothing}`:s.nothing},renderPortal(){const M=i||e.props.itemSource;return!l||!M?s.nothing:s.html`
1392
1405
  <div
1393
1406
  class="context-menu-wrapper"
1394
- @mouseenter=${me}
1395
- @contextmenu=${S=>S.preventDefault()}
1396
- ${N.ref(S=>{S&&(t=S)})}
1407
+ @mouseenter=${ne}
1408
+ @contextmenu=${m=>m.preventDefault()}
1409
+ ${K.ref(m=>{t=m||null,m&&Y()})}
1397
1410
  ></div>
1398
- ${se()?o.nothing:K()}
1399
- `}}}}),ei={name:"MozContextMenu",core:ms,booleanProps:["disableCloseOnClickBackdrop","noPadding","toBottomCenter","toTopCenter"],props:["itemSource","beforeClose","transition","minWidth","direction","fixPosition","toTopCenter","toBottomCenter","noPadding","disableCloseOnClickBackdrop"],emits:["open","close"],slots:[],expose:!0},ct=32,$o=300,ti=29,oi=32,So=120,si=34,li=12,ko=30,ni=new Set(["itemsSource","label","width","required","readonly","disabled","keyProp","displayProps","columnWidths","separator","rules","useFilter","listWidth","searchPlaceholder","emptyText","requiredMessage","useObjKeyProp","columnHeaders","modelValue","class","style"]);function ii(e,t){let s;return(...n)=>{s&&clearTimeout(s),s=setTimeout(()=>e(...n),t)}}function ri(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const fs=Ce({name:"moz-table-select",defaults:{label:null,required:!1,readonly:!1,disabled:!1,keyProp:"id",displayProps:["text"],columnWidths:[],separator:" / ",rules:[],useFilter:!0,useObjKeyProp:!1,modelValue:null},setup(e){const t=N.createRef(),s=N.createRef(),n=N.createRef(),i=N.createRef(),a=N.createRef(),m=N.createRef();let d=null,l=e.props.modelValue??null;const h=()=>e.controlled("modelValue")?e.props.modelValue??null:l,r=c=>{e.controlled("modelValue")||(l=c),e.emit("update:modelValue",c),e.requestUpdate()};let u=!1,p="",v=-1;const $={change:"",blur:"",save:""};let I=h();const w=()=>e.props.keyProp||"id",C=()=>e.props.displayProps??["text"],E=new Fe.Virtualizer({count:0,getScrollElement:()=>d,estimateSize:()=>ct,measureElement:c=>{const L=c.getBoundingClientRect().height;return L>0?L:ct},overscan:5,observeElementRect:Fe.observeElementRect,observeElementOffset:Fe.observeElementOffset,scrollToFn:Fe.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{T==null||T.release(),T=null}),e.onCleanup(E._didMount());const y=c=>{d=c??null,c&&(E._willUpdate(),e.requestUpdate())},z=c=>{const L=h();return L==null?!1:e.props.useObjKeyProp?typeof L!="object"?!1:C().every(Y=>c[Y]===L[Y]):c[w()]===L},_=()=>h()==null||!e.props.itemsSource?null:e.props.itemsSource.find(c=>z(c))??null,W=c=>e.props.itemsSource?e.props.itemsSource.find(L=>L[w()]===c)??null:null,Z=()=>{const c=h();if(c==null)return null;const L=e.props.useObjKeyProp?_():W(c);return L?C().map(Y=>String(L[Y]??"")).join(e.props.separator):null},ne=()=>{const c=C(),L=e.props.columnWidths??[],Y=c.reduce((ue,Ee,ke)=>ue+(L[ke]??So),0),ie=Math.max(0,c.length-1)*li;return Y+ie+si+ko},me=()=>{const c=e.props.width;return c!=null?typeof c=="number"?`${Te(c)}rem`:c:`${ne()}px`},le=c=>{const L=(e.props.columnWidths??[])[c]??So,Y=c===C().length-1;return`${L+(Y?ko:0)}px`},A=()=>{if(!p)return e.props.itemsSource??[];const c=p.toLowerCase();return(e.props.itemsSource??[]).filter(L=>C().some(Y=>String(L[Y]??"").toLowerCase().indexOf(c)>-1))},U=c=>{if(!p)return[{part:c,highlight:!1}];const L=ri(p),Y=new RegExp(`(${L})`,"gi");return c.split(Y).map(ie=>({part:ie,highlight:p.toLowerCase()===ie.toLowerCase()}))},G=()=>{const c=h();return e.props.useObjKeyProp?c==null?"":String(c):c},oe=()=>$.save||$.blur||$.change,Q=()=>{const c=[];return e.props.required&&c.push({message:e.props.requiredMessage??e.locale.TableSelect.requiredMessage.replace("{label}",e.props.label||""),type:"save",validator:L=>!!L}),[...c,...e.props.rules??[]]},F=async(c,L)=>{const Y=Q();if(Y.length<=0||e.props.disabled)return!0;$[L]="",e.requestUpdate();const ie=Y.filter(ue=>ue.type===L);for(const ue of ie)if(!await ue.validator(c))return $[L]=ue.message,e.requestUpdate(),!1;return!0},se=async(c="save")=>oe()!==""?!1:await F(G(),c),K={validate:se,initValidator:()=>{$.change="",$.blur="",$.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(K),e.onCleanup(()=>{var c;return(c=e.validator)==null?void 0:c.removeValidator(K)}));const k=new gt({anchor:()=>s.value??null,panel:()=>n.value??null,maxHeight:()=>$o,container:()=>t.value??null,useMinWidth:!0,listWidth:()=>e.props.listWidth,ignoreScrollTargets:c=>c===d,requestClose:()=>{u&&V(!1)}});e.onCleanup(()=>k.destroy());const S=c=>{c.key==="Escape"&&V(!1)},x=c=>{const L=!!e.props.columnHeaders&&e.props.columnHeaders.length>0,Y=$o-(e.props.useFilter?ti:0)-(L?oi:0),ue=ct*c-Y/2;return Math.max(0,ue+ct)};let T=null;const V=c=>{u!==c&&(u=c,e.requestUpdate(),c?(T=vt(),k.open(),$.save="",window.addEventListener("keydown",S),queueMicrotask(()=>{var Y;if(h()!=null){const ie=A().findIndex(ue=>z(ue));ie>=0&&(v=ie,d&&(d.scrollTop=x(ie)),e.requestUpdate())}m.value?m.value.focus():(Y=a.value)==null||Y.focus()})):(T==null||T.release(),T=null,k.close(),e.emit("close"),F(G(),"blur"),v=-1,window.removeEventListener("keydown",S),p="",e.emit("close"),queueMicrotask(()=>{var L;return(L=a.value)==null?void 0:L.focus()})))};e.onCleanup(()=>window.removeEventListener("keydown",S));const f=()=>{var c;e.props.disabled||(V(!u),(c=a.value)==null||c.focus())},q=c=>{r(e.props.useObjKeyProp?{...c}:c[w()]),V(!1)},H=()=>{queueMicrotask(()=>E.scrollToIndex(v,{align:"auto"}))},j=c=>{c.preventDefault();const L=A().length-1;L<0||(v=v>=L?0:v+1,e.requestUpdate(),H())},$e=c=>{c.preventDefault();const L=A().length-1;L<0||(v=v<=0?L:v-1,e.requestUpdate(),H())},xe=c=>{c.preventDefault();const L=A();v>=0&&v<L.length&&q(L[v])},Ze=c=>{c.key==="ArrowDown"?j(c):c.key==="ArrowUp"?$e(c):c.key==="Enter"&&xe(c)},He=ii(c=>{p=c.target.value;const L=A().length;v=L>0?0:-1,e.requestUpdate(),queueMicrotask(()=>{E.setOptions({...E.options,count:L}),E.measure(),d&&(d.scrollTop=0,E.scrollToIndex(0),E.measure())})},300);return{api:{validate:se},render(){const c=e.props,L=h();if(L!==I){I=L;const Ee=L;queueMicrotask(()=>{F(G(),"change");let ke=null;c.useObjKeyProp?ke=_():Ee!=null&&(ke=W(Ee)),e.emit("change",Ee,ke)})}const Y=be(c,ni),{aria:ie,dom:ue}=ft(Y);return o.html`
1400
- <div
1401
- class=${D("moz-table-select",{"is-invalid":oe()!=="","is-open":u,disabled:!!c.disabled})}
1402
- style=${X.styleMap(fe(c.style))}
1403
- ${N.ref(t)}
1404
- >
1405
- <div class="input-wrapper">
1406
- ${c.label?Be({disabled:c.disabled,required:c.required},c.label):o.nothing}
1407
- <div
1408
- class="moz-input-container select-input-container"
1409
- style=${X.styleMap({width:me()})}
1410
- @click=${f}
1411
- ${N.ref(s)}
1412
- >
1413
- <input
1414
- ${ce(ue)}
1415
- .value=${Z()??""}
1416
- autocomplete="off"
1417
- ?disabled=${!!c.disabled}
1418
- readonly
1419
- tabindex="-1"
1420
- class=${D("select-display-input",{"select-display-input--disabled":c.disabled})}
1421
- />
1422
- <button
1423
- type="button"
1424
- class="icon-container"
1425
- ${ce(ie)}
1426
- role="combobox"
1427
- aria-haspopup="listbox"
1428
- aria-expanded=${u?"true":"false"}
1429
- aria-label=${Se.ifDefined(ie["aria-label"]??c.label)}
1430
- ?disabled=${!!c.disabled}
1431
- ${N.ref(a)}
1432
- >
1433
- ${u?ao("14","var(--moz-color-accent)"):ro("14","var(--moz-color-text-subtle)",c.disabled)}
1434
- </button>
1435
- </div>
1436
- </div>
1437
- ${oe()!==""?o.html`<span class="moz-input-invalid-message">${oe()}</span>`:o.nothing}
1438
- </div>
1439
- `},renderPortal(){if(!u)return o.nothing;const c=e.props,L=C(),Y=A(),ie=!!c.columnHeaders&&c.columnHeaders.length>0;E.options.count!==Y.length&&E.setOptions({...E.options,count:Y.length}),E._willUpdate();const ue=E.getTotalSize(),Ee=At(E.getVirtualItems(),Y.length,ct,d).map(de=>{if(de.index>=Y.length)return null;const te=Y[de.index];return te?{index:de.index,value:te,start:de.start}:null}).filter(de=>de!==null),ke=c.listWidth?typeof c.listWidth=="number"?`${c.listWidth}px`:c.listWidth:void 0;return o.html`<div
1440
- class=${D("table-list-box moz-table-select-list",{"no-label":!c.label},c.class)}
1441
- style=${X.styleMap({width:ke})}
1442
- @keydown=${Ze}
1443
- ${N.ref(n)}
1444
- >
1445
- ${c.useFilter?o.html`<div class="filter-input">
1446
- <div class="search-icon">${co("12","var(--moz-color-text-subtle)")}</div>
1447
- <input
1448
- ${N.ref(m)}
1449
- @mousedown=${de=>de.stopPropagation()}
1450
- placeholder=${c.searchPlaceholder??e.locale.TableSelect.searchPlaceholder}
1451
- @input=${He}
1452
- class="filter-input__field"
1453
- />
1454
- </div>`:o.nothing}
1455
- ${ie?o.html`<div class="table-header">
1456
- ${L.map((de,te)=>o.html`<div
1457
- class="table-header-cell"
1458
- style=${X.styleMap({width:le(te),minWidth:le(te),maxWidth:le(te)})}
1459
- >
1460
- ${(c.columnHeaders??[])[te]??""}
1461
- </div>`)}
1462
- </div>`:o.nothing}
1463
- <div
1464
- class=${D("list-box-container",{"list-box-container--with-filter":c.useFilter,"list-box-container--with-header":ie,"list-box-container--with-filter-header":c.useFilter&&ie})}
1465
- ${N.ref(y)}
1466
- >
1467
- <div class="inner-container" style=${X.styleMap({height:`${ue}px`})} ${N.ref(i)}>
1468
- ${Ee.map(({index:de,value:te,start:Me})=>{const ze=z(te);return o.html`<div
1469
- data-index=${de}
1470
- ${N.ref(P=>{P&&E.measureElement(P)})}
1471
- style=${X.styleMap({transform:`translateY(${Me}px)`})}
1472
- class=${D("virtual-row table-row",{"row-selected":ze,"row-focused":de===v})}
1473
- @click=${()=>q(te)}
1474
- @mouseenter=${()=>{v=de,e.requestUpdate()}}
1475
- tabindex="0"
1476
- >
1477
- ${L.map((P,pe)=>o.html`<div
1478
- class="table-cell"
1479
- style=${X.styleMap({width:le(pe),minWidth:le(pe),maxWidth:le(pe)})}
1480
- title=${String(te[P]??"")}
1481
- >
1482
- ${U(String(te[P]??"")).map(Ae=>o.html`<span class=${D({highlight:Ae.highlight})}>${Ae.part}</span>`)}
1483
- </div>`)}
1484
- ${ze?io("12","var(--moz-color-accent)",!1,"icon-check"):o.nothing}
1485
- </div>`})}
1486
- </div>
1487
- ${!Y||Y.length<=0?o.html`<div class="empty-row table-row">
1488
- ${e.slots.has("empty")?e.slot("empty"):c.emptyText??e.locale.TableSelect.emptyText}
1489
- </div>`:o.nothing}
1490
- </div>
1491
- </div>`}}}}),ai={name:"MozTableSelect",core:fs,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 di(e="var(--moz-color-text-subtle)",t=12){return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 12 12" fill="none">
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">
1492
1413
  <path
1493
1414
  d="M2.49902 4.27679L6.04436 7.73581L9.501 4.27679"
1494
1415
  stroke=${e}
@@ -1496,7 +1417,7 @@
1496
1417
  stroke-linecap="round"
1497
1418
  stroke-linejoin="round"
1498
1419
  ></path>
1499
- </svg>`}function ci(e="var(--moz-color-text-subtle)",t=12){return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 12 12" fill="none">
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">
1500
1421
  <path
1501
1422
  d="M9.50095 7.73636L5.95563 4.27734L2.49902 7.73636"
1502
1423
  stroke=${e}
@@ -1504,13 +1425,13 @@
1504
1425
  stroke-linecap="round"
1505
1426
  stroke-linejoin="round"
1506
1427
  ></path>
1507
- </svg>`}function ui(e="var(--moz-color-text-subtle)",t=12,s=""){return o.html`<svg class=${s} width=${t} height=${t} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
1508
1429
  <path d="M1.71436 7.07145L3.00007 6.00002L1.71436 4.92859" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
1509
1430
  <path d="M5.14307 4.71423H10.2859" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1510
1431
  <path d="M1.71436 2.14282L10.2858 2.14282" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1511
1432
  <path d="M5.14307 7.28577H10.2859" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1512
1433
  <path d="M1.71436 9.85718L10.2858 9.85718" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1513
- </svg>`}function pi(e="var(--moz-color-text-subtle)",t=12,s=""){return o.html`<svg class=${s} width=${t} height=${t} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
1514
1435
  <path d="M0.856934 4.92852L2.14265 4.07138L0.856934 3.21423" fill=${e}></path>
1515
1436
  <path d="M0.856934 4.92852L2.14265 4.07138L0.856934 3.21423V4.92852Z" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
1516
1437
  <path d="M0.856934 8.7857L2.14265 7.92855L0.856934 7.07141" fill=${e}></path>
@@ -1518,49 +1439,49 @@
1518
1439
  <path d="M3.8501 2.35718H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1519
1440
  <path d="M3.8501 6H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1520
1441
  <path d="M3.8501 9.64282H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1521
- </svg>`}const Ut={keyProp:"code",displayProp:"name",categoryLv1ID:"categoryLv1ID",categoryLv1Label:"categoryLv1Label",categoryLv2ID:"categoryLv2ID",categoryLv2Label:"categoryLv2Label",description:"description"};function hi(e,t){const s=a=>t.displayProp&&a[t.displayProp]?a[t.displayProp]:a[t.keyProp],n=a=>t.categoryLv1Label&&a[t.categoryLv1Label]?a[t.categoryLv1Label]:t.categoryLv1ID?a[t.categoryLv1ID]:"",i=a=>t.categoryLv2Label&&a[t.categoryLv2Label]?a[t.categoryLv2Label]:t.categoryLv2ID?a[t.categoryLv2ID]:"";return e.map(a=>({code:a[t.keyProp],name:s(a),categoryLv1ID:t.categoryLv1ID&&a[t.categoryLv1ID]||"",categoryLv1Label:n(a),categoryLv2ID:t.categoryLv2ID&&a[t.categoryLv2ID]||"",categoryLv2Label:i(a),description:t.description&&a[t.description]||""}))}function Ct(e,t){let s=e.get(t);return s||(s=[],e.set(t,s)),s}function mi(e){const t=new Map([["depth0",[]],["depth1",[]],["depth2",[]]]),s=new Map,n=new Map;e.forEach(m=>{const d=m.categoryLv1ID;if(!s.get(d)){const l={code:d,name:m.categoryLv1Label??d};s.set(d,l),Ct(t,"depth0").push(l)}if(!m.categoryLv2ID||m.categoryLv2ID.trim()==="")Ct(t,"depth1").push({...m,parent:m.categoryLv1ID});else{const l=`${m.categoryLv1ID}-${m.categoryLv2ID}`;if(!n.get(l)){const h={code:m.categoryLv2ID,name:m.categoryLv2Label??m.categoryLv2ID,parent:m.categoryLv1ID,isSubCategory:!0};n.set(l,h),Ct(t,"depth1").push(h)}Ct(t,"depth2").push({...m,parent:m.categoryLv2ID})}});function i(m,d,l,h){const r=`depth${d}`,u=`depth${d+1}`,p=l.get(u),v={...m,depth:d};if(d!==0&&(v.isHidden=!1),p&&p.length>0){const $=h[r],I=h[u],w=p.filter(E=>E[I]===(m.isSubCategory?m.code:m[$]));v.isExpanded=!0;const C=[v];return w.forEach(E=>{C.push(...i(E,d+1,l,h))}),C}return[v]}const a={depth0:"code",depth1:"parent",depth2:"parent"};return(t.get("depth0")??[]).flatMap(m=>i(m,0,t,a))}function fi(e){return new Set(e.map(t=>t.code))}function je(e,t){return t===e}function Et(e,t){return e.filter(s=>s.categoryLv1ID===t.code||s.categoryLv2ID===t.code)}function yt(e){return new Set(e.map(t=>t.code))}function qt(e,t){return{childDepthList:Et(e,t)}}function Eo(e,t){for(const s of e)if(!t.has(s))return!1;return!0}function xt(e,t,s){t===0&&e.categoryLv1Set.delete(s),t===1&&e.categoryLv2Set.delete(s)}function mt(e,t,s){t===0&&e.categoryLv1Set.add(s),t===1&&e.categoryLv2Set.add(s)}function gi(e,t,s){t.length&&e.categoryLv1Set.add(t),s.length&&e.categoryLv2Set.add(s)}function $t(e){e.categoryLv1Set.clear(),e.categoryLv2Set.clear()}function gs(e,t,s,n){if(mt(e,s.depth,s.code),s.parent){const i=t.find(a=>a.code===s.parent);i&&gs(e,t,i)}}function vs(e,t,s,n){if(mt(e,s.depth,s.code),je(n,s.depth))return;t.filter(a=>a.parent===s.code).forEach(a=>{je(n,a.depth)||vs(e,t,a,n)})}function Po(e,t,s,n){gs(e,t,s),vs(e,t,s,n)}function bs(e,t,s,n){if(xt(e,s.depth,s.code),s.parent){const i=t.find(a=>a.code===s.parent);i&&bs(e,t,i)}}function ws(e,t,s,n){if(xt(e,s.depth,s.code),je(n,s.depth))return;t.filter(a=>a.parent===s.code).forEach(a=>{je(n,a.depth)||ws(e,t,a,n)})}function To(e,t,s,n){bs(e,t,s),ws(e,t,s,n)}const vi=new Set(["modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","useFilter","useSelectAll","class","style"]),Cs=Ce({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:Ut,modelValue:[]},setup(e){const t=N.createRef(),s=N.createRef(),n=N.createRef(),i=N.createRef(),a=N.createRef();let m=null;const d=(e.props.treeLevels??1)-1,l=d,h=()=>!!e.props.useMultiSelect,r=()=>e.props.disabledProp||"disabled",u=()=>e.props.treeProps??Ut;let p=e.props.modelValue??(h()?[]:"");const v=()=>e.controlled("modelValue")?e.props.modelValue??[]:p,$=()=>{const b=v();return Array.isArray(b)?b:b?[b]:[]},I=b=>{e.controlled("modelValue")||(p=b),e.emit("update:modelValue",b),e.requestUpdate()};let w=!1,C="",E=!1,y=!1,z=!1,_={},W=[];const Z={change:"",blur:"",save:""},ne=new Set,me=new Set,le={categoryLv1Set:ne,categoryLv2Set:me},A=(()=>{try{const b=getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height");return b?+b.trim().replace("px",""):24}catch{return 24}})();let U=A;const G=()=>e.slots.has("list-item");let oe=[],Q=[],F=e.props.itemsSource;const se=()=>{oe=hi(e.props.itemsSource??[],u()),Q=mi(oe)};se();const K=()=>{const b=new Map;return oe.forEach(M=>b.set(M.code,M)),b},k=b=>b.name??"",S=b=>new Set($()).has(b.code),x=b=>W.some(M=>rt(M.item,b)),T=()=>new Set($()),V=()=>{let b=[];if(!C)b=Q;else{const M=[],O=new Set,ae=re=>`depth${re.depth}_${re.code}`;for(const re of Q)if(re.depth!==l){for(;M.length&&M[M.length-1].depth>=re.depth;)M.pop();M.push(re)}else if(k(re).toLowerCase().indexOf(C.toLowerCase())>-1){for(const we of M){const De=ae(we);O.has(De)||(b.push(we),O.add(De))}const ge=ae(re);O.has(ge)||(b.push(re),O.add(ge))}}if(z){const M=new Set,O=K(),ae=T();b.filter(ge=>{if($e(ge,ae))return!0;if(h()&&!je(d,ge.depth)){const we=Et(Q,ge);if(we.length>0&&we.some(De=>ae.has(De.code)))return!0}return!1}).forEach(ge=>{let we=ge;for(;we&&(M.add(we.code),!!we.parent);)we=O.get(we.parent)}),b=b.filter(ge=>M.has(ge.code))}return b},f=()=>V().filter(b=>!(b.categoryLv1ID||b.categoryLv2ID)),q=()=>{const b=f();return V().filter(M=>!b.includes(M))},H=()=>new Set(q().map(b=>b.code)),j=()=>fi(q()),$e=(b,M)=>h()?je(l,b.depth)?M.has(b.code):ne.has(b.code)||me.has(b.code):v()===b.code,xe=b=>{if(je(d,b.depth))return!0;const M=Et(V(),b);return M.length===0?!0:Eo(yt(M),T())},Ze=()=>{const b=$().length,M=f().length;if(b<M||b===0||M===0)return!1;for(const O of j())if(!T().has(O))return!1;return!0},He=()=>{const b=j(),M=T();return!b.size||!M.size||M.size<b.size?!1:Array.from(b).every(O=>M.has(O))},c=()=>h()?!!e.props.useSelectAll:!1,L=()=>{const b=v(),M=K();if(typeof b=="string")return M.has(b)?M.get(b).name:b;const O=Array.isArray(b)?b:[],ae=O.filter(re=>M.has(re)).map(re=>M.get(re).name);return O.length?h()&&ae.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${ae.length.toLocaleString()}`):ae.join(", ")||"":""},Y=()=>Z.save||Z.blur||Z.change,ie=()=>{const b=[];return e.props.required&&b.push({message:e.locale.TreeSelect.required.replace("{label}",e.props.label||""),type:"save",validator:M=>!!M.length}),[...b,...e.props.rules??[]]},ue=async(b,M)=>{const O=ie();if(O.length<=0)return;if(e.props.disabled)return!0;Z[M]="",e.requestUpdate();const ae=O.filter(re=>re.type===M);for(const re of ae)if(!await re.validator(b))return Z[M]=re.message,e.requestUpdate(),!1;return!0},Ee=async(b="save")=>Y()!==""?!1:await ue($(),b)??!0,ke={validate:Ee,initValidator:()=>{Z.change="",Z.blur="",Z.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(ke),e.onCleanup(()=>{We==null||We.release(),We=null}),e.onCleanup(()=>{var b;return(b=e.validator)==null?void 0:b.removeValidator(ke)}));const de=(b,M)=>b.filter(O=>S(O)!==M).map(O=>O.code),te=b=>{const M=Array.from(new Set(b));rt($(),M)||(I(M),e.emit("change",M,M.filter(Boolean)),ue(M,"change"),Me(M))},Me=b=>{b.length===oe.length?f().forEach(M=>mt(le,M.depth,M.code)):b.forEach(M=>{const O=q().find(ae=>ae.code===M);O&&gi(le,O.categoryLv1ID??"",O.categoryLv2ID??"")})},ze=(b,M,O)=>{if(O.shiftKey&&W.length>0){const ae=W[0],re=Math.min(ae.index,M),ge=Math.max(ae.index,M);W=V().slice(re,ge+1).map((we,De)=>({item:we,index:re+De}))}else O.ctrlKey?W.push({item:b,index:M}):W=[{item:b,index:M}]},P=(b,M)=>{if(!je(d,b.depth)){const{childDepthList:O}=qt(V(),b);if(M){const ae=yt(O);I($().filter(re=>!ae.has(re))),To(le,V(),b,l)}else{const ae=O.map(re=>re.code);I([...$(),...ae])}}},pe=(b,M)=>{const ae=W.map(we=>we.item).filter(we=>we.depth===l),re=de(ae,b);let ge=[];if(M.depth!==d){const{childDepthList:we}=qt(V(),M),De=yt(we);ge=$().filter(Ge=>!De.has(Ge))}else ge=$();b?M.depth===d?ge=[...ge,...re]:Po(le,V(),M,l):($t(le),ge=ge.filter(we=>!re.some(De=>we===De))),te(ge)},Ae=(b,M,O,ae)=>{const re=W.some(ge=>ge.item.code===b.code);(W.length<=1||!re)&&ze(b,M,{shiftKey:!1,ctrlKey:!1}),pe(!ae,b),P(b,ae),e.requestUpdate()},Ne=(b,M,O,ae)=>{b[r()]!==!0&&(!O.ctrlKey&&!O.shiftKey&&W.length<=1&&Ae(b,M,O,ae),ze(b,M,O),e.requestUpdate())},Ke=(b,M,O)=>{if(b[r()]===!0)return;let ae=[],re=!1;const ge=b.code;if(je(d,b.depth))re=$().length===1&&$()[0]===ge,re||(ae=[ge]),$t(le);else{const{childDepthList:we}=qt(V(),b),De=yt(we);re=Eo(De,T())&&De.size===T().size,re?To(le,V(),b,l):(ae=[],$t(le),Po(le,V(),b,l))}te(ae),P(b,re),ze(b,M,O),e.requestUpdate()},Re=b=>{I(b),Xe(!1)},_e=(b,M)=>{V().filter(ae=>ae.parent===b).forEach(ae=>{if(ae.isHidden=M,ae.depth===l)return;const ge=!M&&!ae.isExpanded?!0:M;_e(ae.code,ge)})},Ue=(b,M)=>{M.stopPropagation(),b.isExpanded=!b.isExpanded,_e(b.code,!b.isExpanded),queueMicrotask(()=>Ie.measure()),e.requestUpdate()},g=b=>{Q.forEach(M=>{M.isExpanded=b,M.depth>0?M.isHidden=!b:M.isHidden=!1}),queueMicrotask(()=>Ie.measure()),e.requestUpdate()},B=b=>{b.stopPropagation(),H().size===T().size&&[...H()].every(O=>T().has(O))?(f().forEach(O=>xt(le,O.depth,O.code)),te([])):($t(le),f().forEach(O=>mt(le,O.depth,O.code)),te([...H()]))},R=b=>{if(b.stopPropagation(),He()){const M=j();te($().filter(O=>!M.has(O))),f().forEach(O=>xt(le,O.depth,O.code))}else{const M=new Set([...$(),...H()]);te(Array.from(M)),f().forEach(O=>mt(le,O.depth,O.code))}},J=b=>{E=b.target.scrollTop>0,e.requestUpdate()},ee=()=>{const b=s.value;if(!b)return;const M=b.getBoundingClientRect();let O=`${M.width}px`;e.props.listBoxWidth&&(O=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),_={width:String(O),left:`${M.left}px`,top:`${M.top+(y?0:M.height)}px`},e.requestUpdate()},he=(b,M,O=10)=>{const ae=window.innerHeight||document.documentElement.clientHeight,re=window.innerWidth||document.documentElement.clientWidth,ge=b.getBoundingClientRect(),we=M.getBoundingClientRect(),De=ge.bottom+we.height+O>ae;if(!De)return!1;const Ge=ge.top-we.height-O<0,qe=ge.right+we.width+O>re,Ye=ge.left-we.width-O<0;return De&&!Ge||qe&&!Ye},ve=b=>{b.target!==m&&Xe(!1)},ye=b=>{var M,O;!((M=t.value)!=null&&M.contains(b.target))&&!((O=n.value)!=null&&O.contains(b.target))&&(Xe(!1),document.removeEventListener("click",ye,{capture:!0}))},Le=b=>{var O;`${b.ctrlKey?"ctrl+":""}${b.altKey?"alt+":""}${b.key.toLowerCase()}`==="escape"&&(Xe(!1),(O=i.value)==null||O.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",ve,{capture:!0}),document.removeEventListener("click",ye,{capture:!0}),window.removeEventListener("keydown",Le)});let We=null;const Xe=b=>{w!==b&&(w=b,e.requestUpdate(),b?(We=vt(),document.body.addEventListener("scroll",ve,{capture:!0}),document.addEventListener("click",ye,{capture:!0}),Z.save="",window.addEventListener("keydown",Le),ee(),queueMicrotask(()=>{var M;s.value&&m&&(y=he(s.value,m)),ee(),a.value?a.value.focus():(M=i.value)==null||M.focus()})):(We==null||We.release(),We=null,document.body.removeEventListener("scroll",ve,{capture:!0}),document.removeEventListener("click",ye,{capture:!0}),ue($(),"blur"),window.removeEventListener("keydown",Le),C="",e.emit("close")))},at=()=>{e.props.disabled||Xe(!w)};let st;const Vt=b=>{const M=b.target.value;st&&clearTimeout(st),st=setTimeout(()=>{C=M,e.requestUpdate(),queueMicrotask(()=>{Ie.setOptions({...Ie.options,count:V().length}),Ie.measure()})},300)},Qe=b=>{z=b,e.requestUpdate(),queueMicrotask(()=>{Ie.setOptions({...Ie.options,count:V().length}),Ie.measure()})},Ie=new Fe.Virtualizer({count:0,getScrollElement:()=>m,estimateSize:b=>{const M=V()[b];return M!=null&&M.isHidden?0:G()&&M&&je(d,M.depth)?U:A},measureElement:b=>{const M=b.getBoundingClientRect().height;return M>0?M:Ie.options.estimateSize(Number(b.dataset.index))},overscan:3,observeElementRect:Fe.observeElementRect,observeElementOffset:Fe.observeElementOffset,scrollToFn:Fe.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(Ie._didMount());const Zs=b=>{m=b??null,b&&(Ie._willUpdate(),e.requestUpdate())},js=(b,M)=>{if(!b||M!==d)return;const O=b.getBoundingClientRect().height;O>0&&(U=O)},Xs=b=>b.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),fo=(b,M)=>{if(!C||!je(d,M))return[{part:b,highlight:!1}];const O=new RegExp(`(${Xs(C)})`,"gi");return b.split(O).map(ae=>({part:ae,highlight:C.toLowerCase()===ae.toLowerCase()}))};let go=v();const Qs=b=>{const{index:M,item:O,start:ae,isSelected:re,isIndeterminate:ge,isDisabled:we,isFocused:De}=b;if(O.isHidden)return o.nothing;const Ge=e.props,qe=O.depth,Ye=je(d,qe),et=h(),it=Oe=>{qe!==d?Ue(O,Oe):Re(O.code)},wt=Oe=>{et?Ne(O,M,Oe,re&&xe(O)):it(Oe)},It=()=>{Ae(O,M,{},re&&xe(O))},Rt=Ye?"하나만":"그룹만";return o.html`<div
1522
- data-index=${M}
1523
- ${N.ref(Oe=>{Oe&&(Ie.measureElement(Oe),js(Oe,qe))})}
1524
- style=${X.styleMap({transform:`translateY(${ae}px)`})}
1525
- class=${D("list-box-item virtual-row tree-item",{"list-selected":re,"moz-multi-focus":De,"is-selected":re,"single-select-item":!et&&Ye,"multi-select-item":et})}
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 xi(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 Mi(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=[],x=e.props.itemsSource,U=r();const _=()=>{N=xi(e.props.itemsSource??[],u(),r()),X=Mi(N)};_();const G=()=>{const b=new Map;return N.forEach(S=>b.set(S.code,S)),b},J=b=>b.name??"",M=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)),xe=()=>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 xe())if(!T().has(O))return!1;return!0},Qe=()=>{const b=xe(),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=>M(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,Re=(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(()=>Me.measure()),e.requestUpdate()},De=b=>{X.forEach(S=>{S.isExpanded=b,S.depth>0?S.isHidden=!b:S.isHidden=!1}),queueMicrotask(()=>Me.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=xe();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(()=>{Me.setOptions({...Me.options,count:A().length}),Me.measure()})},300)},yt=b=>{Z=b,e.requestUpdate(),queueMicrotask(()=>{Me.setOptions({...Me.options,count:A().length}),Me.measure()})},Me=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:Me.options.estimateSize(Number(b.dataset.index))},overscan:3,observeElementRect:nt.observeElementRect,observeElementOffset:nt.observeElementOffset,scrollToFn:nt.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(Me._didMount());const ft=b=>{a=b??null,b&&(Me._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?Re(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&&(Me.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})}
1526
1447
  >
1527
1448
  <div
1528
- class=${D("depth-indicator",{"depth-indicator--parent":!Ye,"depth-indicator--last-depth":Ye,"depth-indicator--custom-item":G()})}
1529
- style=${X.styleMap({"--depth":String(qe),"--last-depth-item-height":String(U)})}
1530
- @click=${Oe=>{et||it(Oe)}}
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)}}
1531
1452
  ></div>
1532
- <div class="item-content" @click=${wt}>
1533
- ${Ye?o.nothing:o.html`<button
1453
+ <div class="item-content" @click=${ct}>
1454
+ ${Ke?s.nothing:s.html`<button
1534
1455
  type="button"
1535
1456
  class="icon-container"
1536
1457
  aria-expanded=${O.isExpanded?"true":"false"}
1537
1458
  aria-label=${O.isExpanded?e.locale.TreeSelect.collapse:e.locale.TreeSelect.expand}
1538
- @click=${Oe=>Ue(O,Oe)}
1459
+ @click=${Ve=>Te(O,Ve)}
1539
1460
  >
1540
- ${e.slots.has("icon")?e.slot("icon"):O.isExpanded?ci("var(--moz-color-accent)"):di("var(--moz-color-text-subtle)")}
1461
+ ${e.slots.has("icon")?e.slot("icon"):O.isExpanded?Ei("var(--moz-color-accent)"):ki("var(--moz-color-text-subtle)")}
1541
1462
  </button>`}
1542
- ${et?kt({checked:re,disabled:we,indeterminate:ge,onChange:It}):o.nothing}
1463
+ ${dt?qt({checked:ue,disabled:we,indeterminate:fe,onChange:vt}):s.nothing}
1543
1464
  <div class="highlight-container">
1544
- ${G()&&Ye?e.slot("list-item",{text:{text:k(O),depth:qe},item:O,highlightText:fo(k(O),qe)}):o.html`${fo(k(O),qe).map(Oe=>o.html`<span class=${D({highlight:Oe.highlight})}>${Oe.part}</span>`)}`}
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>`)}`}
1545
1466
  </div>
1546
- ${!et&&re&&Ye?io("12","var(--moz-color-accent)",!1,"icon-check"):o.nothing}
1547
- ${et&&Ge.useSpecificSelect&&!we?o.html`<button type="button" class="item-only item-only-btn" @click=${Oe=>Ke(O,M,Oe)}>
1548
- ${Rt}
1549
- </button>`:o.nothing}
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}
1550
1471
  </div>
1551
- </div>`};return{api:{validate:Ee},render(){const b=e.props;b.itemsSource!==F&&(F=b.itemsSource,se());const M=v();M!==go&&(go=M,typeof M!="string"&&Me($()));const O=typeof b.width=="number"?`${Te(b.width)}rem`:b.width,ae=e.slots.has("icon")?e.slot("icon",{isOpen:w}):w?ao("14","var(--moz-color-accent)"):ro("14","var(--moz-color-text-subtle)",b.disabled),re=be(b,vi),{aria:ge,dom:we}=ft(re);return o.html`
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!==x||r()!==U)&&(x=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`
1552
1473
  <div
1553
- ${ce(we)}
1554
- class=${D("moz-multi-select moz-tree-select",b.class,{"is-invalid":Y()!=="","is-open":w,disabled:!!b.disabled})}
1555
- style=${X.styleMap({width:O,...fe(b.style)})}
1556
- ${N.ref(t)}
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)}
1557
1478
  >
1558
1479
  <div class="input-wrapper">
1559
- ${b.label?Be({},o.html`${b.label}${b.required?o.html`<span class="require-mark">*</span>`:o.nothing}`):o.nothing}
1560
- <div class="moz-input-container" @click=${at} ${N.ref(s)}>
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)}>
1561
1482
  <input
1562
- .value=${L()}
1563
- placeholder=${Se.ifDefined(b.placeholder??void 0)}
1483
+ .value=${Be()}
1484
+ placeholder=${Ee.ifDefined(b.placeholder??void 0)}
1564
1485
  autocomplete="off"
1565
1486
  readonly
1566
1487
  tabindex="-1"
@@ -1568,99 +1489,101 @@
1568
1489
  <button
1569
1490
  type="button"
1570
1491
  class="icon-container"
1571
- ${ce(ge)}
1492
+ ${he(fe)}
1572
1493
  role="combobox"
1573
1494
  aria-haspopup="tree"
1574
- aria-expanded=${w?"true":"false"}
1575
- aria-label=${Se.ifDefined(ge["aria-label"]??b.label)}
1495
+ aria-expanded=${P?"true":"false"}
1496
+ aria-label=${Ee.ifDefined(fe["aria-label"]??b.label)}
1576
1497
  ?disabled=${!!b.disabled}
1577
- ${N.ref(i)}
1498
+ ${K.ref(l)}
1578
1499
  >
1579
- ${ae}
1500
+ ${le}
1580
1501
  </button>
1581
1502
  </div>
1582
1503
  </div>
1583
- ${Y()!==""?o.html`<span class="moz-input-invalid-message">${Y()}</span>`:o.nothing}
1504
+ ${He()!==""?s.html`<span class="moz-input-invalid-message">${He()}</span>`:s.nothing}
1584
1505
  </div>
1585
- `},renderPortal(){if(!w)return o.nothing;const b=e.props,M=V();Ie.options.count!==M.length&&Ie.setOptions({...Ie.options,count:M.length}),Ie._willUpdate();const O=Ie.getTotalSize(),ae=T(),re=At(Ie.getVirtualItems(),M.length,A,m).map(Ge=>{if(Ge.index>=M.length)return null;const qe=M[Ge.index];if(!qe)return null;let Ye=$e(qe,ae),et=!1;if(h()&&!je(d,qe.depth)){const it=Et(Q,qe);if(it.length>0){const wt=it.reduce((It,Rt)=>It+(ae.has(Rt.code)?1:0),0);wt===0?Ye=!1:wt<it.length?(Ye=!0,et=!0):Ye=!0}}return{index:Ge.index,item:qe,start:Ge.start,isSelected:Ye,isIndeterminate:et,isDisabled:qe[r()]===!0,isFocused:x(qe)}}).filter(Ge=>Ge!==null),ge=C?e.locale.TreeSelect.selectFiltered:e.locale.TreeSelect.selectAll,we=v(),De=Array.isArray(we)?we.length:we?1:0;return o.html`<div
1586
- class=${D("list-box moz-tree-select-list",{"no-label":!b.label,"show-top":y},b.class)}
1587
- style=${X.styleMap(_)}
1588
- ${N.ref(n)}
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;(Me.options.count!==S.length||Me.options.paddingStart!==le||Me.options.paddingEnd!==ue)&&Me.setOptions({...Me.options,count:S.length,paddingStart:le,paddingEnd:ue}),Me._willUpdate();const fe=Me.getTotalSize(),we=T(),ze=Me.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 xo=Ve.reduce((mn,fn)=>mn+(we.has(fn.code)?1:0),0);xo===0?vt=!1:xo<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)}
1589
1510
  >
1590
1511
  <div class="filter-input-wrapper">
1591
- ${b.useFilter?o.html`<div class="filter-input">
1592
- <div class="search-icon">${co("12","var(--moz-color-text-subtle)")}</div>
1593
- <input placeholder=${e.locale.TreeSelect.search} @input=${Vt} ${N.ref(a)} />
1594
- </div>`:o.nothing}
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}
1595
1516
  <div class="tree-controls">
1596
- <span class="control-btn" @click=${()=>g(!0)}>${ui("currentColor")}</span>
1597
- <span class="control-btn" @click=${()=>g(!1)}>${pi("currentColor")}</span>
1517
+ <span class="control-btn" @click=${()=>De(!0)}>${Pi("currentColor")}</span>
1518
+ <span class="control-btn" @click=${()=>De(!1)}>${Li("currentColor")}</span>
1598
1519
  </div>
1599
1520
  </div>
1600
1521
 
1601
- ${c()&&oe.length>0&&M.length>0?o.html`<div class=${D("list-box-item multi-select-item multi-select-all",{"is-scrolled":E})} @click=${R}>
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}>
1602
1523
  <div class="select-all-content">
1603
- ${kt({indeterminate:De>0&&Ze()===!1,checked:He()})}
1604
- <div><span title=${ge}>${ge}</span></div>
1524
+ ${qt({indeterminate:dt>0&&st()===!1,checked:Qe()})}
1525
+ <div><span title=${Ye}>${Ye}</span></div>
1605
1526
  </div>
1606
- ${C&&M.length>0?o.html`<button type="button" class="item-only" @click=${B}>${e.locale.TreeSelect.specificResults}</button>`:o.nothing}
1607
- </div>`:o.nothing}
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}
1608
1529
 
1609
- <div class="list-box-container" @scroll=${J} ${N.ref(Zs)}>
1610
- <div class="inner-container" style=${X.styleMap({height:`${O}px`})}>
1611
- ${re.map(Ge=>Qs(Ge))}
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))}
1612
1533
  </div>
1613
- ${M.length<=0?o.html`<div class="list-box-item loading not-hover">
1614
- ${e.slots.has("empty")?e.slot("empty"):e.locale.TreeSelect.noData}
1615
- </div>`:o.nothing}
1534
+ ${S.length<=0?s.html`<div style=${ee.styleMap({paddingTop:`${Y}px`,paddingBottom:`${Y}px`})}>
1535
+ <div class="list-box-item loading not-hover">
1536
+ ${e.slots.has("empty")?e.slot("empty"):e.locale.TreeSelect.noData}
1537
+ </div>
1538
+ </div>`:s.nothing}
1616
1539
  </div>
1617
1540
 
1618
- ${h()?o.html`<div class="list-footer">
1541
+ ${c()?s.html`<div class="list-footer">
1619
1542
  <label class="footer-checkbox">
1620
- ${kt({checked:z,onChange:Qe,class:"moz-checkbox"})}
1543
+ ${qt({checked:Z,onChange:yt,class:"moz-checkbox"})}
1621
1544
  <span>${e.locale.TreeSelect.showSelectedOnly}</span>
1622
1545
  </label>
1623
- </div>`:o.nothing}
1624
- </div>`}}}}),bi={name:"MozTreeSelect",core:Cs,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},wi=new Set(["panes","direction","resizable","minSize","class","style"]),Mo=(e,t)=>e===void 0?t:typeof e=="number"?`${e}px`:e,ys=Ce({name:"moz-split-pane",defaults:{horizontal:!1,panes:[]},setup(e){let t=null,s=null;const n=[],i=[],a=[],m=[];let d=[],l=!1,h=0,r=0,u=-1,p=-1,v=-1,$=null,I=null,w=0;const C=()=>!!e.props.horizontal,E=()=>e.props.panes??[],y=()=>{d=E().map(F=>F.hidden?"0":F.size!=null?String(F.size):"1fr")};y();const z=F=>C()?F.clientHeight:F.clientWidth,_=()=>z(a[p]),W=()=>z(m[p]),Z=()=>z(a[v]),ne=()=>z(m[v]),me=F=>{if(!l)return;let se=C()?F.movementY:F.movementX;$=+(se>0),$!==I&&I!==null&&(p=u,v=u+1),I=$;const K=i[u].getBoundingClientRect(),k=C()?F.clientY-K.top+window.scrollY:F.clientX-K.left+window.scrollX;($===0&&k>10||$===1&&k<-10)&&(se=se/(Math.abs(k)/10)),($===0&&C()?F.clientY<K.top:F.clientX<K.left)&&(w=0),($===1&&C()?F.clientY>K.top:F.clientX>K.left)&&(w=0);const S=V=>n[V][C()?"clientHeight":"clientWidth"];if(h=S(p)+se,r=S(v)+S(p)-h,!(h>_()&&h<W()||h<_()&&$===1||h>_()&&$===0)){if(h<_()){if(p-1<0&&$===0){w+=C()?F.movementY:F.movementX;return}p=p-1>=0?p-1:0}else if(h>W()){if(p-1<0){w+=C()?F.movementY:F.movementX;return}p=p-1>=0?p-1:0}}if(!(r>Z()&&r<ne()||r<Z()&&$===0||r>Z()&&$===1)){if(r<Z()){if(v+1>=d.length){w+=C()?F.movementY:F.movementX;return}v=v+1<d.length?v+1:d.length-1}else if(r>ne()){if(v+1>=d.length){w+=C()?F.movementY:F.movementX;return}v=v+1<d.length?v+1:d.length-1}}if($===0&&w>0||$===1&&w<0||$===0&&r>ne()||$===1&&r<Z()||$===0&&h<_()||$===1&&h>W())return;const x=t[C()?"clientHeight":"clientWidth"],T=S(p)+se;d[p]=`clamp(${_()}px, ${T/x*100}%, ${W()}px)`,d[v]="1fr",e.requestUpdate(),queueMicrotask(()=>{const V=S(v);d[v]=`clamp(${Z()}px, ${V/x*100}%, ${ne()}px)`,e.requestUpdate()})},le=()=>{u=-1,p=-1,v=-1,l=!1,w=0,document.removeEventListener("mousemove",me),document.removeEventListener("mouseup",le),e.requestUpdate()},A=F=>{F.preventDefault(),l=!0,C()?F.clientY:F.clientX,document.addEventListener("mousemove",me),document.addEventListener("mouseup",le),e.requestUpdate()},U=(F,se)=>{u=se,p=se,v=se+1,w=0,A(F)};let G=null;const oe=()=>{t&&s&&(s.style.width=`${t.clientWidth}px`,s.style.height=`${t.clientHeight}px`)};e.onCleanup(()=>{document.removeEventListener("mouseup",le),document.removeEventListener("mousemove",me),G==null||G.disconnect()});let Q=e.props.panes;return{onMounted:()=>{y(),e.requestUpdate()},render(){const F=E();e.props.panes!==Q&&(Q=e.props.panes,queueMicrotask(()=>{y(),e.requestUpdate()}));const se=C()?"gridTemplateRows":"gridTemplateColumns",K=F.length-1,k=be(e.props,wi);return o.html`
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 x=G=>n[G][E()?"clientHeight":"clientWidth"];if(c=x(p)+se,r=x(y)+x(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"],_=x(p)+se;f[p]=`clamp(${k()}px, ${_/U*100}%, ${Z()}px)`,f[y]="1fr",e.requestUpdate(),queueMicrotask(()=>{const G=x(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`
1625
1548
  <div
1626
- ${ce(k)}
1627
- class=${D("splitter",e.props.class)}
1628
- style=${X.styleMap({display:"grid",[se]:d.join(" "),width:"100%",height:"100%",overflow:"hidden",cursor:l?C()?"row-resize":"col-resize":"unset"})}
1629
- ${N.ref(S=>{t=S??null,t&&s&&(oe(),!G&&typeof ResizeObserver<"u"&&(G=new ResizeObserver(()=>oe()),G.observe(t)))})}
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(x=>{t=x??null,t&&o&&(Y(),!I&&typeof ResizeObserver<"u"&&(I=new ResizeObserver(()=>Y()),I.observe(t)))})}
1630
1553
  >
1631
- ${F.map((S,x)=>{const T=x===K?"100%":d[x+1]!=="0"?"calc(100% - 10px) 10px":"100%";return o.html`<div
1632
- style=${X.styleMap({display:"grid",[se]:T,overflow:"hidden"})}
1633
- ${N.ref(V=>{n[x]=V??null})}
1554
+ ${B.map((x,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})}
1634
1557
  >
1635
- <div style="width: 100%; height: 100%; overflow: hidden">${e.slot(`pane-${x}`)}</div>
1636
- ${x!==K&&d[x+1]!=="0"?o.html`<div
1637
- class=${C()?"resizer resizer-horizontal":"resizer resizer-vertical"}
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"}
1638
1561
  role="separator"
1639
- aria-orientation=${C()?"horizontal":"vertical"}
1562
+ aria-orientation=${E()?"horizontal":"vertical"}
1640
1563
  aria-label=${e.locale.SplitPane.resizeHandle}
1641
1564
  tabindex="0"
1642
- @mousedown=${V=>U(V,x)}
1643
- ${N.ref(V=>{i[x]=V??null})}
1644
- ></div>`:o.nothing}
1565
+ @mousedown=${G=>$(G,U)}
1566
+ ${K.ref(G=>{l[U]=G??null})}
1567
+ ></div>`:s.nothing}
1645
1568
  </div>`})}
1646
1569
 
1647
1570
  <div
1648
1571
  style="pointer-events: none; position: fixed"
1649
- ${N.ref(S=>{s=S??null,t&&s&&oe()})}
1572
+ ${K.ref(x=>{o=x??null,t&&o&&Y()})}
1650
1573
  >
1651
- ${F.map((S,x)=>{const T=Mo(S.minSize,"10px"),V=Mo(S.maxSize,"100%");return o.html`<div
1574
+ ${B.map((x,U)=>{const _=Ro(x.minSize,"10px"),G=Ro(x.maxSize,"100%");return s.html`<div
1652
1575
  class="size-calculator min-size"
1653
- style=${X.styleMap({width:T,height:T})}
1654
- ${N.ref(f=>{a[x]=f??null})}
1576
+ style=${ee.styleMap({width:_,height:_})}
1577
+ ${K.ref(J=>{d[U]=J??null})}
1655
1578
  ></div>
1656
1579
  <div
1657
1580
  class="size-calculator max-size"
1658
- style=${X.styleMap({width:V,height:V})}
1659
- ${N.ref(f=>{m[x]=f??null})}
1581
+ style=${ee.styleMap({width:G,height:G})}
1582
+ ${K.ref(J=>{a[U]=J??null})}
1660
1583
  ></div>`})}
1661
1584
  </div>
1662
1585
  </div>
1663
- `}}}}),Ci={name:"MozSplitPane",core:ys,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 yi(e="currentColor",t=14){return o.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
1664
1587
  <path
1665
1588
  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"
1666
1589
  fill=${e}
@@ -1675,7 +1598,7 @@
1675
1598
  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"
1676
1599
  fill=${e}
1677
1600
  ></path>
1678
- </svg>`}function $i(e="currentColor",t=14){return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
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">
1679
1602
  <g clip-path="url(#clip0_16945_2363)">
1680
1603
  <path
1681
1604
  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"
@@ -1691,7 +1614,7 @@
1691
1614
  <defs>
1692
1615
  <clipPath id="clip0_16945_2363"><rect width="14" height="14" fill=${e}></rect></clipPath>
1693
1616
  </defs>
1694
- </svg>`}function Si(e="currentColor",t=14){return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14">
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">
1695
1618
  <path d="M0,0H14V14H0Z" fill="none"></path>
1696
1619
  <line
1697
1620
  y2="10"
@@ -1709,54 +1632,54 @@
1709
1632
  stroke-linecap="round"
1710
1633
  stroke-width="1.8"
1711
1634
  ></line>
1712
- </svg>`}function ki(e="currentColor",t=14){return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
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">
1713
1636
  <path
1714
1637
  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"
1715
1638
  fill=${e}
1716
1639
  ></path>
1717
- </svg>`}function Ei(e="currentColor",t=14){return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
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">
1718
1641
  <path
1719
1642
  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"
1720
1643
  fill=${e}
1721
1644
  ></path>
1722
- </svg>`}const Pi=new Set(["navigations","containerStyle","headerStyle","class","style"]);function Ti(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 Mi(e){switch(e){case"IconSave":return yi();case"IconTrash":return $i();case"IconPlus":return Si();case"IconSearch":return ki();case"IconPlay":return Ei();default:return o.html``}}const $s=Ce({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,s=!1;const n=()=>e.controlled("customQueryParamsPanel")?!!e.props.customQueryParamsPanel:s;let i=null,a=!1;const m=tt("switch_"),d=tt("switch_"),l=p=>{t=p.target.checked,e.requestUpdate()},h=p=>{const v=p.target.checked;s=v,e.emit("update:customQueryParamsPanel",v),e.requestUpdate()};return{onMounted(){i=document.querySelector(".moz-contents-container"),a=!!i,a&&e.requestUpdate()},getPortalContainer:()=>i,renderPortal(){return!a||!e.slots.has("custom-filter")?o.nothing:o.html`<div style=${X.styleMap({display:n()?void 0:"none"})}>
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"})}>
1723
1646
  ${e.slot("custom-filter")}
1724
- </div>`},render(){const p=e.props,v=e.slots.has("custom-filter"),$=e.slots.has("action"),I=p.actions??[],w=I.find(y=>y.loading===!0),C=I.map(y=>{const z=Ti(y),_=!!w&&y.action!==w.action||!!y.disabled;return{...y,icon:z,disabled:_}}),E=be(p,Pi);return o.html`
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`
1725
1648
  <div
1726
- class=${D("moz-controller-root",p.class)}
1727
- style=${X.styleMap(fe(p.containerStyle))}
1728
- ${ce(E)}
1649
+ class=${V("moz-controller-root",p.class)}
1650
+ style=${ee.styleMap(be(p.containerStyle))}
1651
+ ${he(g)}
1729
1652
  >
1730
- <div class="moz-controller" style=${X.styleMap(fe(p.headerStyle))}>
1731
- ${p.navigations?eo({itemSource:p.navigations,showFavorite:!1,ariaLabel:e.locale.BreadCrumb.navigation}):o.nothing}
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}
1732
1655
  <div class="spacer"></div>
1733
1656
 
1734
1657
  <div class="moz-controller-actions">
1735
1658
  ${e.slot("beforeFilter")}
1736
- ${p.showFilterButton&&!v?Lt({id:m,model:t,label:"조회 조건",onChange:l}):o.nothing}
1737
- ${p.showFilterButton&&v?Lt({id:d,model:n(),label:"조회 조건",onChange:h}):o.nothing}
1738
- ${p.showFilterButton?o.html`<div class="spacer between-buttons" style="margin: 0 6px"></div>`:o.nothing}
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}
1739
1662
  ${e.slot("action")}
1740
- ${$&&C.length>0?o.html`<div class="spacer between-buttons"></div>`:o.nothing}
1741
- ${C.map(y=>pt({action:y.action,text:y.text,disabled:y.disabled,loading:y.loading,width:y.text?void 0:30,style:{padding:y.text?void 0:"0"}},{icon:Mi(y.icon),onClick:()=>{y.click&&y.click()},rest:{title:y.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}}))}
1742
1665
  </div>
1743
1666
  </div>
1744
1667
 
1745
- ${t&&!v?o.html`<div
1668
+ ${t&&!y?s.html`<div
1746
1669
  class="moz-horizontal-filter moz-controller-filter"
1747
- style=${X.styleMap(fe(p.filterStyle))}
1670
+ style=${ee.styleMap(be(p.filterStyle))}
1748
1671
  >
1749
1672
  ${e.slot("filter")}
1750
- </div>`:o.nothing}
1673
+ </div>`:s.nothing}
1751
1674
  </div>
1752
- `}}}}),Li={name:"MozController",core:$s,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 po{constructor(t,s){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=s,this.timer=setTimeout(t,s)}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 xi(e="var(--moz-color-on-accent)"){return o.html`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
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){Oe(this,"startedAt");Oe(this,"callback");Oe(this,"delay");Oe(this,"timer");Oe(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">
1753
1676
  <path
1754
1677
  fill-rule="evenodd"
1755
1678
  clip-rule="evenodd"
1756
1679
  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"
1757
1680
  fill=${e}
1758
1681
  ></path>
1759
- </svg>`}function zi(e="var(--moz-color-on-accent)"){return o.html`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
1760
1683
  <mask id="mask0_6027_4458" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
1761
1684
  <path d="M30 0H0V30H30V0Z" fill="#FFF"></path>
1762
1685
  </mask>
@@ -1766,14 +1689,14 @@
1766
1689
  fill=${e}
1767
1690
  ></path>
1768
1691
  </g>
1769
- </svg>`}function Ai(e="var(--moz-color-on-accent)"){return o.html`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
1770
1693
  <path
1771
1694
  fill-rule="evenodd"
1772
1695
  clip-rule="evenodd"
1773
1696
  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"
1774
1697
  fill=${e}
1775
1698
  ></path>
1776
- </svg>`}function Di(e="var(--moz-color-on-accent)"){return o.html`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
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">
1777
1700
  <mask id="mask0_6027_4463" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
1778
1701
  <path d="M30 0H0V30H30V0Z" fill="#FFF"></path>
1779
1702
  </mask>
@@ -1783,170 +1706,173 @@
1783
1706
  fill=${e}
1784
1707
  ></path>
1785
1708
  </g>
1786
- </svg>`}const Vi=()=>o.html`
1709
+ </svg>`}const Yi=()=>s.html`
1787
1710
  <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">
1788
1711
  <path d="M18 6 6 18M6 6l12 12" />
1789
1712
  </svg>
1790
- `,Lo=new Set(["message","type","position","duration","dismissible","queue","pauseOnHover","onDismiss","class","style","inline","composed","showProgress","progressClass","exitDuration"]);function xo(e){switch(e){case"success":return"bg-success";case"error":return"bg-error";case"info":return"bg-info";default:return"bg-warning"}}function Ii(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 Ri(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"?zi("var(--moz-color-on-accent)"):e==="info"?Ai("var(--moz-color-on-accent)"):e==="success"?xi("var(--moz-color-on-accent)"):Di("var(--moz-color-on-accent)")}const ho=Ce({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,s=!1,n=null,i=null,a=null,m=100;const d=()=>{let C=document.querySelector(".toast--top"),E=document.querySelector(".toast--bottom");C&&E||(C||(C=document.createElement("div"),C.className="toast--top moz-toast-body moz-toast-body--top",document.body.appendChild(C)),E||(E=document.createElement("div"),E.className="toast--bottom moz-toast-body moz-toast-body--bottom",document.body.appendChild(E)))},l=()=>{if(!e.props.queue)return!1;const C=document.querySelector(".toast--top"),E=document.querySelector(".toast--bottom");return!C||!E?!1:C.childElementCount>0||E.childElementCount>0},h=()=>{a&&clearInterval(a),a=null},r=()=>{n&&n.stop(),i&&clearTimeout(i),h(),t=!1,e.requestUpdate(),setTimeout(()=>{var C,E;(E=(C=e.props).onDismiss)==null||E.call(C),s=!0,e.requestUpdate()},e.props.exitDuration??150)},u=()=>{if(!e.props.inline&&l()){i=setTimeout(u,250);return}t=!0,e.requestUpdate();const C=e.props.duration;C&&(n=new po(r,C),e.props.showProgress&&(a=setInterval(()=>{m=n?Math.max(0,Math.min(100,n.remaining()/C*100)):0,e.requestUpdate()},50)))},p=C=>{!e.props.pauseOnHover||!n||(C?n.pause():n.resume())},v=()=>{e.props.dismissible&&r()};e.props.inline||d(),e.onCleanup(()=>{n&&n.stop(),i&&clearTimeout(i),h()});const $=()=>{const C=e.props,E=C.duration??0;return o.html`
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`
1791
1714
  <div
1792
1715
  data-testid="toast-container"
1793
- ${ce(be(C,Lo))}
1794
- role=${C.type==="error"?"alert":"status"}
1795
- aria-live=${C.type==="error"?"assertive":"polite"}
1716
+ ${he(ye(E,Oo))}
1717
+ role=${E.type==="error"?"alert":"status"}
1718
+ aria-live=${E.type==="error"?"assertive":"polite"}
1796
1719
  aria-atomic="true"
1797
- class=${D("moz-toast","moz-toast-composed",xo(C.type),C.class)}
1798
- style=${t?o.nothing:"display: none;"}
1720
+ class=${V("moz-toast","moz-toast-composed",qo(E.type),E.class)}
1721
+ style=${t?s.nothing:"display: none;"}
1799
1722
  @mouseenter=${()=>p(!0)}
1800
1723
  @mouseleave=${()=>p(!1)}
1801
1724
  >
1802
- ${C.showProgress&&E>0?o.html`<div class="moz-toast-progress" aria-hidden="true">
1803
- <div class=${D("moz-toast-progress-bar",C.progressClass)} style=${`width: ${m}%`}></div>
1804
- </div>`:o.nothing}
1805
- ${e.slots.has("icon")?o.html`<div class="moz-toast-icon">${e.slot("icon")}</div>`:o.nothing}
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}
1806
1729
  <div class="moz-toast-content">
1807
- ${e.slots.has("heading")?o.html`<div class="moz-toast-heading">${e.slot("heading")}</div>`:o.nothing}
1808
- ${e.slots.has("description")?o.html`<div class="moz-toast-description">${e.slot("description")}</div>`:o.nothing}
1809
- ${e.slots.has("actions")?o.html`<div class="moz-toast-actions">${e.slot("actions")}</div>`:o.nothing}
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}
1810
1733
  </div>
1811
- ${C.dismissible?o.html`<button type="button" class="moz-toast-close" aria-label=${e.locale.Toast.close} @click=${r}>
1812
- ${Vi()}
1813
- </button>`:o.nothing}
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}
1814
1737
  </div>
1815
- `},I=()=>{const C=e.props;return o.html`
1738
+ `},D=()=>{const E=e.props;return s.html`
1816
1739
  <div
1817
1740
  data-testid="toast-container"
1818
- ${ce(be(C,Lo))}
1819
- role=${C.type==="error"?"alert":"status"}
1820
- aria-live=${C.type==="error"?"assertive":"polite"}
1741
+ ${he(ye(E,Oo))}
1742
+ role=${E.type==="error"?"alert":"status"}
1743
+ aria-live=${E.type==="error"?"assertive":"polite"}
1821
1744
  aria-atomic="true"
1822
- class=${D("moz-toast",xo(C.type),Ii(C.position),C.class)}
1823
- style=${t?o.nothing:"display: none;"}
1745
+ class=${V("moz-toast",qo(E.type),ji(E.position),E.class)}
1746
+ style=${t?s.nothing:"display: none;"}
1824
1747
  @mouseenter=${()=>p(!0)}
1825
1748
  @mouseleave=${()=>p(!1)}
1826
- @click=${v}
1749
+ @click=${y}
1827
1750
  >
1828
- ${qi(C.type)}
1829
- <span class="toast-message">${C.message}</span>
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>
1830
1756
  </div>
1831
- `},w=()=>s?o.nothing:e.props.composed?$():I();return{onMounted(){u()},getPortalContainer:()=>e.props.inline?null:document.querySelector(Ri(e.props.position)),renderPortal(){return e.props.inline?o.nothing:w()},render(){return e.props.inline?w():o.nothing}}}}),Oi=e=>{var t;typeof e.remove<"u"?e.remove():(t=e.parentNode)==null||t.removeChild(e)},Fi=(e={})=>{const t=s=>{let n;typeof s=="string"&&(n=s);const i=document.createElement("div");i.style.display="contents";const a={message:n||s.message||"",onDismiss:()=>{Oi(i)}},m=Object.assign({},a,e,typeof s=="string"?{}:s);document.body.appendChild(i),ho(i,m,(()=>{}))};return{open:t,success(s,n={}){return t({message:s,type:"success",...n})},error(s,n={}){return t({message:s,type:"error",...n})},info(s,n={}){return t({message:s,type:"info",...n})},warning(s,n={}){return t({message:s,type:"warning",...n})}}},Bi={name:"MozToast",core:ho,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},zo={top:"bottom",bottom:"top",left:"right",right:"left"};function Ao(e,t,s,n,i,a){const m=(e==="top"||e==="bottom"?s.height:s.width)+i+a;return{top:t.top,bottom:n.height-(t.top+t.height),left:t.left,right:n.width-(t.left+t.width)}[e]>=m}function St(e,t,s,n){return e==="start"?t:e==="end"?t+s-n:t+s/2-n/2}function Ot(e,t,s){return s<t?t:Math.min(Math.max(e,t),s)}function Ss(e,t,s,n){const{align:i,sideOffset:a,collisionPadding:m}=n,d=n.arrowSize??0;let l=n.side;!Ao(l,e,t,s,a,m)&&Ao(zo[l],e,t,s,a,m)&&(l=zo[l]);const h=l==="top"||l==="bottom";let r,u;l==="top"?(u=e.top-t.height-a,r=St(i,e.left,e.width,t.width)):l==="bottom"?(u=e.top+e.height+a,r=St(i,e.left,e.width,t.width)):l==="left"?(r=e.left-t.width-a,u=St(i,e.top,e.height,t.height)):(r=e.left+e.width+a,u=St(i,e.top,e.height,t.height)),h?r=Ot(r,m,s.width-t.width-m):u=Ot(u,m,s.height-t.height-m);const p=h?e.left+e.width/2:e.top+e.height/2,v=h?r:u,$=h?t.width:t.height,I=Ot(p-v,d*2,$-d*2),w={top:e.top-a-m,bottom:s.height-(e.top+e.height)-a-m,left:s.height-m*2,right:s.height-m*2},C=Math.max(0,w[l]);return{side:l,x:r,y:u,arrowOffset:I,availableHeight:C}}const ks=Ss,Hi=new Set(["open","anchor","text","side","align","sideOffset","collisionPadding","arrow","tooltipId","class","style"]),Ni=5,_i=typeof requestAnimationFrame=="function"?e=>{requestAnimationFrame(e)}:e=>{setTimeout(e,0)},Es=Ce({name:"moz-tooltip",defaults:{open:!1,side:"top",align:"center",sideOffset:8,collisionPadding:8,arrow:!0},setup(e){const t=N.createRef();let s=null,n=null,i=!1;const a=()=>!!e.props.open&&!!e.props.anchor,m=()=>{const l=e.props.anchor,h=t.value;if(!l||!h||!e.props.open)return;const r=ks(l.getBoundingClientRect(),{width:h.offsetWidth,height:h.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:Ni});s!==null&&i&&s.side===r.side&&s.x===r.x&&s.y===r.y&&s.arrowOffset===r.arrowOffset||(s=r,i=!0,e.requestUpdate(),n!==r.side&&(n=r.side,e.emit("placed",r.side)))},d=()=>{a()&&m()};return typeof window<"u"&&(window.addEventListener("scroll",d,{capture:!0,passive:!0}),window.addEventListener("resize",d,{passive:!0}),e.onCleanup(()=>{window.removeEventListener("scroll",d,!0),window.removeEventListener("resize",d)})),{render(){return o.nothing},renderPortal(){const l=e.props;if(!a())return s=null,n=null,i=!1,o.nothing;_i(m);const h=(s==null?void 0:s.side)??l.side??"top",r=be(l,Hi),u=h==="top"||h==="bottom"?"left":"top";return o.html`
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`
1832
1758
  <div
1833
- ${N.ref(t)}
1834
- class=${D("moz-tooltip",l.class)}
1759
+ ${K.ref(t)}
1760
+ class=${V("moz-tooltip",i.class)}
1835
1761
  role="tooltip"
1836
- id=${l.tooltipId??o.nothing}
1837
- data-side=${h}
1838
- data-align=${l.align??"center"}
1839
- style=${X.styleMap({...fe(l.style),position:"fixed",left:`${(s==null?void 0:s.x)??0}px`,top:`${(s==null?void 0:s.y)??0}px`,opacity:i?"1":"0"})}
1840
- ${ce(r)}
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)}
1841
1767
  >
1842
- ${l.arrow?o.html`<span
1768
+ ${i.arrow?s.html`<span
1843
1769
  class="moz-tooltip-arrow"
1844
- data-side=${h}
1845
- style=${X.styleMap({[u]:`${(s==null?void 0:s.arrowOffset)??0}px`})}
1846
- ></span>`:o.nothing}
1770
+ data-side=${c}
1771
+ style=${ee.styleMap({[u]:`${(o==null?void 0:o.arrowOffset)??0}px`})}
1772
+ ></span>`:s.nothing}
1847
1773
  <div class="moz-tooltip-content">
1848
- ${e.slots.has("content")?e.slot("content"):l.text??o.nothing}
1774
+ ${e.slots.has("content")?e.slot("content"):i.text??s.nothing}
1849
1775
  </div>
1850
1776
  </div>
1851
- `},api:{reposition:()=>m()}}}}),Ui={name:"MozTooltip",core:Es,booleanProps:["arrow","open"],props:["open","anchor","text","side","align","sideOffset","collisionPadding","arrow","tooltipId"],emits:["placed"],slots:["content"],expose:!0},Wi=new Set(["open","anchor","side","align","sideOffset","collisionPadding","matchTriggerWidth","trapFocus","popoverId","class","style"]),Ki='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Do=typeof requestAnimationFrame=="function"?e=>{requestAnimationFrame(e)}:e=>{setTimeout(e,0)},Ps=Ce({name:"moz-popover",defaults:{open:!1,side:"bottom",align:"start",sideOffset:4,collisionPadding:8,trapFocus:!0,matchTriggerWidth:!1},setup(e){const t=N.createRef();let s=null,n=null,i=!1,a=!1,m=null,d=null;const l=()=>!!e.props.open&&!!e.props.anchor,h=()=>{const y=t.value;return y?Array.from(y.querySelectorAll(Ki)).filter(z=>z.getAttribute("aria-hidden")!=="true"):[]},r=()=>{const y=e.props.anchor,z=t.value;if(!y||!z||!e.props.open)return;const _=Ss(y.getBoundingClientRect(),{width:z.offsetWidth,height:z.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});s!==null&&i&&s.side===_.side&&s.x===_.x&&s.y===_.y&&s.availableHeight===_.availableHeight||(s=_,i=!0,e.requestUpdate(),n!==_.side&&(n=_.side,e.emit("placed",_.side)))},u=(y,z)=>new CustomEvent(y,{cancelable:!0,detail:z}),p=y=>{e.emit("requestClose",y)},v=y=>{e.emit("escapeKeyDown",y),y.defaultPrevented||p("escape")},$=y=>{if(!l()||!(m!=null&&m.isTopmost()))return;const z=t.value,_=y.target;if(!z||!_||z.contains(_))return;const W=u("moz.interactOutside",{originalEvent:y});e.emit("interactOutside",W),W.defaultPrevented||p("interactOutside")},I=y=>{if(y.key!=="Tab"||!e.props.trapFocus)return;const z=h();if(z.length===0){y.preventDefault();return}const _=z[0],W=z[z.length-1],Z=document.activeElement;y.shiftKey&&(Z===_||Z===t.value)?(y.preventDefault(),W.focus()):!y.shiftKey&&Z===W&&(y.preventDefault(),_.focus())},w=()=>{d=document.activeElement??null,m=Yt(v),document.addEventListener("pointerdown",$,!0),Do(()=>{var z;if(!l())return;const y=u("moz.openAutoFocus");e.emit("openAutoFocus",y),!y.defaultPrevented&&((z=h()[0]??t.value)==null||z.focus())})},C=()=>{var _;m==null||m.release(),m=null,document.removeEventListener("pointerdown",$,!0),s=null,n=null,i=!1;const y=u("moz.closeAutoFocus");e.emit("closeAutoFocus",y);const z=d??e.props.anchor;d=null,y.defaultPrevented||(_=z==null?void 0:z.focus)==null||_.call(z)},E=()=>{l()&&r()};return typeof window<"u"&&(window.addEventListener("scroll",E,{capture:!0,passive:!0}),window.addEventListener("resize",E,{passive:!0}),e.onCleanup(()=>{window.removeEventListener("scroll",E,!0),window.removeEventListener("resize",E),m==null||m.release(),m=null,document.removeEventListener("pointerdown",$,!0)})),{render(){return o.nothing},renderPortal(){var ne;const y=e.props,z=l();if(z!==a&&(a=z,z?w():C()),!z)return o.nothing;Do(r);const _=(s==null?void 0:s.side)??y.side??"bottom",W=be(y,Wi),Z=((ne=y.anchor)==null?void 0:ne.offsetWidth)??0;return o.html`
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`
1852
1778
  <div
1853
- ${N.ref(t)}
1854
- class=${D("moz-popover",y.class)}
1779
+ ${K.ref(t)}
1780
+ class=${V("moz-popover",h.class)}
1855
1781
  role="dialog"
1856
- id=${y.popoverId??o.nothing}
1782
+ id=${h.popoverId??s.nothing}
1857
1783
  tabindex="-1"
1858
- data-side=${_}
1859
- data-align=${y.align??"start"}
1860
- @keydown=${I}
1861
- style=${X.styleMap({...fe(y.style),position:"fixed",left:`${(s==null?void 0:s.x)??0}px`,top:`${(s==null?void 0:s.y)??0}px`,opacity:i?"1":"0",pointerEvents:"auto","--moz-popover-trigger-width":`${Z}px`,"--moz-popover-available-height":`${(s==null?void 0:s.availableHeight)??0}px`,...y.matchTriggerWidth?{width:`${Z}px`}:{}})}
1862
- ${ce(W)}
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)}
1863
1789
  >
1864
1790
  ${e.slot("content")}
1865
1791
  </div>
1866
- `},api:{reposition:()=>r(),panel:()=>t.value??null}}}}),Gi={name:"MozPopover",core:Ps,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},Yi=new Set(["open","contentId","disabled","forceMount","class","style"]),Ts="--moz-collapsible-content-height",Ms=Ce({name:"moz-collapsible",defaults:{open:!1,disabled:!1,forceMount:!1},setup(e){let t=null,s=null,n=-1;const i=()=>{const d=t;if(!d)return;const l=d.scrollHeight;d.style.setProperty(Ts,`${l}px`),l!==n&&(n=l,e.emit("heightChange",l))},a=()=>{s==null||s.disconnect(),s=null},m=d=>{if(t=d??null,!t){a(),n=-1;return}i(),!(typeof ResizeObserver>"u")&&(a(),s=new ResizeObserver(()=>i()),s.observe(t))};return e.onCleanup(a),{render(){const d=e.props,l=!!d.open;if(!l&&!d.forceMount)return o.nothing;const h=be(d,Yi);return o.html`<div
1867
- ${N.ref(m)}
1868
- class=${D("moz-collapsible-content",d.class)}
1869
- id=${Se.ifDefined(d.contentId)}
1870
- data-state=${l?"open":"closed"}
1871
- data-disabled=${d.disabled?"":o.nothing}
1872
- ?hidden=${!l}
1873
- style=${X.styleMap(fe(d.style))}
1874
- ${ce(h)}
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)}
1875
1801
  >
1876
1802
  ${e.slot("content")}
1877
- </div>`}}}}),Zi={name:"MozCollapsible",core:Ms,booleanProps:["disabled","forceMount","open"],props:["open","contentId","disabled","forceMount"],emits:["heightChange"],slots:["content"],expose:!1,syncUpdate:!0},ji=new Set(["src","alt","delayMs","imageClass","fallbackClass","class","style"]),Ls=Ce({name:"moz-avatar",setup(e){let t="idle",s,n=!0,i,a;const m=r=>{t!==r&&(t=r,e.emit("loadingStatusChange",r),e.requestUpdate())},d=()=>{a&&(a.onload=null,a.onerror=null,a=void 0)},l=r=>{if(i!==void 0&&clearTimeout(i),i=void 0,!r||r<=0){n=!0;return}n=!1,i=setTimeout(()=>{n=!0,i=void 0,e.requestUpdate()},r)},h=()=>{const r=e.props.src;if(r===s)return;if(s=r,d(),l(e.props.delayMs),!r){m("idle");return}m("loading");const u=new Image;a=u,u.onload=()=>{a!==u||s!==r||m("loaded")},u.onerror=()=>{a!==u||s!==r||m("error")},u.src=r};return e.onCleanup(()=>{d(),i!==void 0&&clearTimeout(i)}),{render(){h();const r=e.props,u=be(r,ji),p=t==="loaded",v=!p&&n;return o.html`<span
1878
- class=${D("moz-avatar",r.class)}
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)}
1879
1805
  data-status=${t}
1880
- style=${X.styleMap(fe(r.style))}
1881
- ${ce(u)}
1806
+ style=${ee.styleMap(be(r.style))}
1807
+ ${he(u)}
1882
1808
  >
1883
- ${p?o.html`<img
1884
- class=${D("moz-avatar-image",r.imageClass)}
1885
- src=${Se.ifDefined(r.src)}
1886
- alt=${Se.ifDefined(r.alt)}
1887
- />`:o.nothing}
1888
- ${v?o.html`<span class=${D("moz-avatar-fallback",r.fallbackClass)}>${e.slot("fallback")}</span>`:o.nothing}
1889
- </span>`},api:{get status(){return t}}}}}),Xi={name:"MozAvatar",core:Ls,props:["src","alt","delayMs","imageClass","fallbackClass"],emits:["loadingStatusChange"],slots:["fallback"],expose:!0},Qi=new Set(["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass","class","style"]),Ji=20,xs=Ce({name:"moz-scroll-area",defaults:{orientation:"vertical",scrollbarVisibility:"always"},setup(e){let t=null,s=null,n=null,i=null,a=null,m=!1,d=!1,l=null,h=null,r=null,u=null,p=null,v=!1,$=!1,I=null,w=null;const C=S=>!!S&&"nodeType"in S&&(!!(r!=null&&r.contains(S))||!!(u!=null&&u.contains(S))),E=()=>C((r==null?void 0:r.ownerDocument.activeElement)??null),y=()=>{const S=E();S!==$&&($=S,e.requestUpdate())},z=S=>{u=S??null},_=S=>{S.pointerType!=="touch"&&(v=!0,e.requestUpdate())},W=S=>{S.pointerType!=="touch"&&(v=C(S.relatedTarget),e.requestUpdate())},Z=()=>{y()},ne=()=>{e.requestUpdate()},me=()=>{I==null||I(),p==null||p.disconnect(),p=null,r==null||r.removeEventListener("pointerenter",_),r==null||r.removeEventListener("pointerleave",W),r==null||r.removeEventListener("focusin",Z),r==null||r.removeEventListener("focusout",ne),r=null,v=$=!1},le=()=>{(w==null?void 0:w.getAttribute("tabindex"))==="0"&&w.removeAttribute("tabindex"),w=null},A=()=>{var T;const S=e.props.interactionRoot??t;S!==r&&(me(),r=S,S&&(S.addEventListener("pointerenter",_),S.addEventListener("pointerleave",W),S.addEventListener("focusin",Z),S.addEventListener("focusout",ne)));const x=(T=S==null?void 0:S.ownerDocument.defaultView)==null?void 0:T.MutationObserver;e.props.scrollbarVisibility==="hover"&&S&&!p&&x?(p=new x(y),p.observe(S,{childList:!0,subtree:!0})):e.props.scrollbarVisibility!=="hover"&&(p==null||p.disconnect(),p=null),$=E(),e.props.scrollbarVisibility!=="hover"?le():t&&!t.hasAttribute("tabindex")&&(t.tabIndex=0,w=t)},U=S=>{const x=e.props.orientation??"vertical";return x==="both"||x===S},G=S=>{const x=t;if(!x||!U(S))return!1;const T=S==="vertical",V=T?x.scrollHeight:x.scrollWidth,f=T?x.clientHeight:x.clientWidth;if(V<=f+1||f<=0)return!1;const q=T?i:a,H=T?s:n;if(!q||!H)return!0;const j=T?q.clientHeight:q.clientWidth;if(j<=0)return!0;const $e=f/V,xe=Math.max(j*$e,Ji),Ze=j-xe,He=T?x.scrollTop:x.scrollLeft,c=V-f,L=c>0?He/c*Ze:0;return T?(H.style.height=`${xe}px`,H.style.transform=`translateY(${L}px)`):(H.style.width=`${xe}px`,H.style.transform=`translateX(${L}px)`),!0},oe=()=>{const S=G("vertical"),x=G("horizontal");S===m&&x===d||(m=S,d=x,e.requestUpdate())},Q=()=>{const S=t;S&&(oe(),e.emit("scroll",{scrollTop:S.scrollTop,scrollLeft:S.scrollLeft}))},F=()=>{me(),le(),t&&t.removeEventListener("scroll",Q),l==null||l.disconnect(),l=null,h==null||h.disconnect(),h=null,t=null},se=()=>{const S=e.props.viewport??null;if(S!==t&&(F(),t=S,!!t)){if(t.addEventListener("scroll",Q,{passive:!0}),typeof ResizeObserver<"u"){l=new ResizeObserver(()=>oe()),l.observe(t);const x=t.firstElementChild;x&&(h=new ResizeObserver(()=>oe()),h.observe(x))}oe()}},K=(S,x)=>{var de;const T=t,V=T==null?void 0:T.ownerDocument.defaultView;if(!T||!V||I||x.button!==0)return;const f=S==="vertical",q=f?i:a,H=f?s:n;if(!q||!H)return;x.preventDefault();const j=f?x.clientY:x.clientX,$e=f?T.scrollTop:T.scrollLeft,xe=f?q.clientHeight:q.clientWidth,Ze=f?H.offsetHeight:H.offsetWidth,He=f?T.scrollHeight:T.scrollWidth,c=f?T.clientHeight:T.clientWidth,L=xe-Ze,Y=He-c;if(L<=0||Y<=0)return;const ie=x.pointerId,ue=te=>{v=te.pointerType!=="touch"&&[r,i,a].some(Me=>{if(!Me||Me.hidden)return!1;const ze=Me.getBoundingClientRect();return te.clientX>=ze.left&&te.clientX<ze.right&&te.clientY>=ze.top&&te.clientY<ze.bottom})},Ee=te=>{if(te.pointerId!==ie)return;ue(te);const Me=(f?te.clientY:te.clientX)-j,ze=$e+Me/L*Y;f?T.scrollTop=ze:T.scrollLeft=ze},ke=te=>{te.pointerId===ie&&(ue(te),te.type!=="pointerup"&&(v=!1),I==null||I(),e.requestUpdate())};I=()=>{var te;I=null,V.removeEventListener("pointermove",Ee),V.removeEventListener("pointerup",ke),V.removeEventListener("pointercancel",ke),H.removeEventListener("lostpointercapture",ke);try{(te=H.releasePointerCapture)==null||te.call(H,ie)}catch{}},V.addEventListener("pointermove",Ee),V.addEventListener("pointerup",ke),V.addEventListener("pointercancel",ke),H.addEventListener("lostpointercapture",ke);try{(de=H.setPointerCapture)==null||de.call(H,ie)}catch{}e.requestUpdate()};e.onCleanup(F);const k=(S,x)=>{const T=S==="vertical",V=q=>{T?i=q??null:a=q??null},f=q=>{T?s=q??null:n=q??null,q&&oe()};return o.html`<div
1890
- class=${D("moz-scroll-area-scrollbar",e.props.scrollbarClass)}
1891
- data-orientation=${S}
1892
- ?hidden=${!x}
1893
- ${N.ref(V)}
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=x=>!!x&&"nodeType"in x&&(!!(r!=null&&r.contains(x))||!!(u!=null&&u.contains(x))),g=()=>E((r==null?void 0:r.ownerDocument.activeElement)??null),h=()=>{const x=g();x!==L&&(L=x,e.requestUpdate())},C=x=>{u=x??null},k=x=>{x.pointerType!=="touch"&&(y=!0,e.requestUpdate())},Z=x=>{x.pointerType!=="touch"&&(y=E(x.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 x=e.props.interactionRoot??t;x!==r&&(re(),r=x,x&&(x.addEventListener("pointerenter",k),x.addEventListener("pointerleave",Z),x.addEventListener("focusin",W),x.addEventListener("focusout",Q)));const U=(_=x==null?void 0:x.ownerDocument.defaultView)==null?void 0:_.MutationObserver;e.props.scrollbarVisibility==="hover"&&x&&!p&&U?(p=new U(h),p.observe(x,{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)},$=x=>{const U=e.props.orientation??"vertical";return U==="both"||U===x},I=x=>{const U=t;if(!U||!$(x))return!1;const _=x==="vertical",G=_?U.scrollHeight:U.scrollWidth,J=_?U.clientHeight:U.clientWidth;if(G<=J+1||J<=0)return!1;const M=_?l:d,m=_?o:n;if(!M||!m)return!0;const T=_?M.clientHeight:M.clientWidth;if(T<=0)return!0;const A=J/G,F=Math.max(T*A,mr),ce=T-F,ke=_?U.scrollTop:U.scrollLeft,xe=G-J,Ne=xe>0?ke/xe*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 x=I("vertical"),U=I("horizontal");x===a&&U===f||(a=x,f=U,e.requestUpdate())},ne=()=>{const x=t;x&&(Y(),e.emit("scroll",{scrollTop:x.scrollTop,scrollLeft:x.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 x=e.props.viewport??null;if(x!==t&&(B(),t=x,!!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=(x,U)=>{var He;const _=t,G=_==null?void 0:_.ownerDocument.defaultView;if(!_||!G||D||U.button!==0)return;const J=x==="vertical",M=J?l:d,m=J?o:n;if(!M||!m)return;U.preventDefault();const T=J?U.clientY:U.clientX,A=J?_.scrollTop:_.scrollLeft,F=J?M.clientHeight:M.clientWidth,ce=J?m.offsetHeight:m.offsetWidth,ke=J?_.scrollHeight:_.scrollWidth,xe=J?_.clientHeight:_.clientWidth,Ne=F-ce,qe=ke-xe;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=(x,U)=>{const _=x==="vertical",G=M=>{_?l=M??null:d=M??null},J=M=>{_?o=M??null:n=M??null,M&&Y()};return s.html`<div
1816
+ class=${V("moz-scroll-area-scrollbar",e.props.scrollbarClass)}
1817
+ data-orientation=${x}
1818
+ ?hidden=${!U}
1819
+ ${K.ref(G)}
1894
1820
  >
1895
1821
  <div
1896
- class=${D("moz-scroll-area-thumb",e.props.thumbClass)}
1897
- @pointerdown=${q=>K(S,q)}
1898
- ${N.ref(f)}
1822
+ class=${V("moz-scroll-area-thumb",e.props.thumbClass)}
1823
+ @pointerdown=${M=>N(x,M)}
1824
+ ${K.ref(J)}
1899
1825
  ></div>
1900
- </div>`};return{render(){se(),A();const S=e.props,x=be(S,Qi),T=U("vertical")&&U("horizontal");return o.html`<div
1901
- class=${D("moz-scroll-area-bars",S.class)}
1902
- data-orientation=${S.orientation??"vertical"}
1903
- data-state=${S.scrollbarVisibility!=="hover"||v||$||I?"visible":"hidden"}
1904
- style=${X.styleMap(fe(S.style))}
1905
- @pointerenter=${_}
1906
- @pointerleave=${W}
1907
- @focusin=${Z}
1908
- @focusout=${ne}
1909
- ${N.ref(z)}
1910
- ${ce(x)}
1826
+ </div>`};return{render(){se(),j();const x=e.props,U=ye(x,hr),_=$("vertical")&&$("horizontal");return s.html`<div
1827
+ class=${V("moz-scroll-area-bars",x.class)}
1828
+ data-orientation=${x.orientation??"vertical"}
1829
+ data-state=${x.scrollbarVisibility!=="hover"||y||L||D?"visible":"hidden"}
1830
+ style=${ee.styleMap(be(x.style))}
1831
+ @pointerenter=${k}
1832
+ @pointerleave=${Z}
1833
+ @focusin=${W}
1834
+ @focusout=${Q}
1835
+ ${K.ref(C)}
1836
+ ${he(U)}
1911
1837
  >
1912
- ${U("vertical")?k("vertical",m):o.nothing}
1913
- ${U("horizontal")?k("horizontal",d):o.nothing}
1914
- ${T&&m&&d?o.html`<div class="moz-scroll-area-corner"></div>`:o.nothing}
1915
- </div>`}}}}),er={name:"MozScrollAreaBars",core:xs,props:["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass"],emits:["scroll"],expose:!1,syncUpdate:!0},zs=["accent","neutral","info","success","warning","danger"],As=["soft","outline","solid"],Ds=["sm","md","lg"],tr=new Set(["tone","appearance","size","dot","text","class","style"]);function Ft(e,t,s){return typeof t=="string"&&e.includes(t)?t:s}const Vs=Ce({name:"moz-badge",defaults:{tone:"neutral",appearance:"soft",size:"md",dot:!1},setup(e){return{render(){const t=e.props,s=be(t,tr),n=Ft(zs,t.tone,"neutral"),i=Ft(As,t.appearance,"soft"),a=Ft(Ds,t.size,"md"),m=e.slots.has("default")?e.slot("default"):t.text??o.nothing;return o.html`<span
1916
- class=${D("moz-badge",`size-${a}`,t.class)}
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)}
1917
1843
  data-tone=${n}
1918
- data-appearance=${i}
1919
- style=${X.styleMap(fe(t.style))}
1920
- ${ce(s)}
1921
- >${t.dot?o.html`<span class="moz-badge-dot"></span>`:o.nothing}${m}</span
1922
- >`}}}}),or={name:"MozBadge",core:Vs,booleanProps:["dot"],props:["tone","appearance","size","dot","text"],emits:[],slots:["default"],expose:!1,syncUpdate:!0},Is=["accent","neutral","info","success","warning","danger"],Rs=["outline","soft"],qs=["sm","md"],sr=new Set(["tone","appearance","size","selected","disabled","removable","labelInteractive","removeLabel","text","class","style"]);function Bt(e,t,s){return typeof t=="string"&&e.includes(t)?t:s}const Os=Ce({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)},s=n=>{e.props.disabled||e.emit("remove",n)};return{render(){const n=e.props,i=be(n,sr),a=Bt(Is,n.tone,"accent"),m=Bt(Rs,n.appearance,"outline"),d=Bt(qs,n.size,"md"),l=!!n.disabled,h=e.slots.has("icon")?o.html`<span class="moz-chip-icon">${e.slot("icon")}</span>`:o.nothing,r=e.slots.has("default")?e.slot("default"):n.text??o.nothing;if(n.removable){const v=n.labelInteractive!==!1?o.html`<button type="button" class="moz-chip-label" ?disabled=${l} @click=${t}
1923
- >${h}${r}</button
1924
- >`:o.html`<span class="moz-chip-label">${h}${r}</span>`;return o.html`<span
1925
- class=${D("moz-chip","removable",`size-${d}`,{disabled:l},n.class)}
1926
- data-tone=${a}
1927
- data-appearance=${m}
1928
- style=${X.styleMap(fe(n.style))}
1929
- ${ce(i)}
1930
- >${v}<button
1844
+ 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
1931
1857
  type="button"
1932
1858
  class="moz-chip-remove"
1933
1859
  aria-label=${n.removeLabel||e.locale.Chip.remove}
1934
- ?disabled=${l}
1935
- @click=${s}
1936
- >${_t("currentColor")}</button
1860
+ ?disabled=${i}
1861
+ @click=${o}
1862
+ >${io("currentColor")}</button
1937
1863
  ></span
1938
- >`}const u=!!n.selected;return o.html`<button
1864
+ >`}const u=!!n.selected;return s.html`<button
1939
1865
  type="button"
1940
- class=${D("moz-chip",`size-${d}`,{"is-selected":u,disabled:l},n.class)}
1941
- data-tone=${a}
1942
- data-appearance=${m}
1866
+ class=${V("moz-chip",`size-${f}`,{"is-selected":u,disabled:i},n.class)}
1867
+ data-tone=${d}
1868
+ data-appearance=${a}
1943
1869
  aria-pressed=${u?"true":"false"}
1944
- ?disabled=${l}
1945
- style=${X.styleMap(fe(n.style))}
1946
- ${ce(i)}
1870
+ ?disabled=${i}
1871
+ style=${ee.styleMap(be(n.style))}
1872
+ ${he(l)}
1947
1873
  @click=${t}
1948
- >${h}${r}</button
1949
- >`}}}}),lr={name:"MozChip",core:Os,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},Wt=()=>o.html`<svg
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
1950
1876
  width="20"
1951
1877
  height="20"
1952
1878
  viewBox="0 0 20 20"
@@ -1959,7 +1885,7 @@
1959
1885
  clip-rule="evenodd"
1960
1886
  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"
1961
1887
  ></path>
1962
- </svg>`,Fs=()=>o.html`<svg
1888
+ </svg>`,sn=()=>s.html`<svg
1963
1889
  width="20"
1964
1890
  height="20"
1965
1891
  viewBox="0 0 20 20"
@@ -1972,7 +1898,7 @@
1972
1898
  clip-rule="evenodd"
1973
1899
  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"
1974
1900
  ></path>
1975
- </svg>`,Bs=()=>o.html`<svg
1901
+ </svg>`,nn=()=>s.html`<svg
1976
1902
  width="20"
1977
1903
  height="20"
1978
1904
  viewBox="0 0 20 20"
@@ -1985,7 +1911,7 @@
1985
1911
  clip-rule="evenodd"
1986
1912
  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"
1987
1913
  ></path>
1988
- </svg>`,Hs=()=>o.html`<svg
1914
+ </svg>`,ln=()=>s.html`<svg
1989
1915
  width="20"
1990
1916
  height="20"
1991
1917
  viewBox="0 0 20 20"
@@ -1998,7 +1924,7 @@
1998
1924
  clip-rule="evenodd"
1999
1925
  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"
2000
1926
  ></path>
2001
- </svg>`,Ns=()=>o.html`<svg
1927
+ </svg>`,rn=()=>s.html`<svg
2002
1928
  width="20"
2003
1929
  height="20"
2004
1930
  viewBox="0 0 20 20"
@@ -2011,7 +1937,7 @@
2011
1937
  clip-rule="evenodd"
2012
1938
  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"
2013
1939
  ></path>
2014
- </svg>`,_s=()=>o.html`<svg
1940
+ </svg>`,an=()=>s.html`<svg
2015
1941
  width="14"
2016
1942
  height="14"
2017
1943
  viewBox="0 0 24 24"
@@ -2023,94 +1949,96 @@
2023
1949
  aria-hidden="true"
2024
1950
  >
2025
1951
  <path d="M18 6 6 18M6 6l12 12"></path>
2026
- </svg>`,Us=["info","success","warning","danger","neutral","accent"],nr=new Set(["tone","title","text","dismissible","dismissLabel","hideIcon","compact","live","class","style"]),ir={info:Wt,success:Fs,warning:Bs,danger:Hs,neutral:Ns,accent:Wt};function rr(e){return typeof e=="string"&&Us.includes(e)?e:"info"}const Ws=Ce({name:"moz-callout",defaults:{tone:"info",dismissible:!1,hideIcon:!1,compact:!1,live:!1},setup(e){const t=s=>e.emit("dismiss",s);return{render(){const s=e.props,n=be(s,nr),i=rr(s.tone),a=i==="danger"||i==="warning",m=!!s.live,l=e.slots.has("heading")?e.slot("heading"):s.title?s.title:void 0,h=e.slots.has("default")?e.slot("default"):s.text??o.nothing;return o.html`<div
2027
- class=${D("moz-callout",{compact:!!s.compact},s.class)}
2028
- data-tone=${i}
2029
- role=${Se.ifDefined(m?a?"alert":"status":void 0)}
2030
- aria-live=${Se.ifDefined(m?a?"assertive":"polite":void 0)}
2031
- aria-atomic=${Se.ifDefined(m?"true":void 0)}
2032
- style=${X.styleMap(fe(s.style))}
2033
- ${ce(n)}
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)}
1954
+ 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)}
2034
1960
  >
2035
- ${s.hideIcon?o.nothing:o.html`<span class="moz-callout-icon"
2036
- >${e.slots.has("icon")?e.slot("icon"):ir[i]()}</span
1961
+ ${o.hideIcon?s.nothing:s.html`<span class="moz-callout-icon"
1962
+ >${e.slots.has("icon")?e.slot("icon"):yr[l]()}</span
2037
1963
  >`}
2038
1964
  <div class="moz-callout-body">
2039
- ${l!==void 0?o.html`<div class="moz-callout-title">${l}</div>`:o.nothing}
2040
- <div class="moz-callout-content">${h}</div>
1965
+ ${i!==void 0?s.html`<div class="moz-callout-title">${i}</div>`:s.nothing}
1966
+ <div class="moz-callout-content">${c}</div>
2041
1967
  </div>
2042
- ${s.dismissible?o.html`<button
1968
+ ${o.dismissible?s.html`<button
2043
1969
  type="button"
2044
1970
  class="moz-callout-close"
2045
- aria-label=${s.dismissLabel||e.locale.Callout.dismiss}
1971
+ aria-label=${o.dismissLabel||e.locale.Callout.dismiss}
2046
1972
  @click=${t}
2047
1973
  >
2048
- ${_s()}
2049
- </button>`:o.nothing}
2050
- </div>`}}}}),ar={name:"MozCallout",core:Ws,booleanProps:["compact","dismissible","hideIcon","live"],props:["tone","title","text","dismissible","dismissLabel","hideIcon","compact","live"],emits:["dismiss"],slots:["icon","heading","default"],expose:!1,syncUpdate:!0},Ks=["info","success","warning","danger","neutral"],Gs=["top","top-right","top-left","bottom","bottom-right","bottom-left"],dr=new Set(["tone","title","body","time","datetime","dismissible","closeLabel","duration","pauseOnHover","exitDuration","position","inline","onSelect","onDismiss","class","style"]),cr={info:Wt,success:Fs,warning:Bs,danger:Hs,neutral:Ns};function ur(e){return typeof e=="string"&&Ks.includes(e)?e:"info"}function Kt(e){return typeof e=="string"&&Gs.includes(e)?e:"bottom-right"}function Vo(e){const t=document.querySelector(`.moz-notification-stack[data-position="${e}"]`);if(t)return t;const s=document.createElement("div");return s.className=`moz-notification-stack moz-notification-stack--${e}`,s.setAttribute("data-position",e),document.body.appendChild(s),s}const mo=Ce({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,s=!1,n=!1,i=null,a=null;const m=()=>{s||(s=!0,i&&i.stop(),t=!1,e.requestUpdate(),a=setTimeout(()=>{var E,y;a=null,(y=(E=e.props).onDismiss)==null||y.call(E),n=!0,e.requestUpdate()},e.props.exitDuration??150))},d=()=>{t=!0,e.requestUpdate();const E=e.props.duration;E&&E>0&&(i=new po(m,E))};let l=!1,h=!1,r=!1;const u=()=>{if(!e.props.pauseOnHover||!i||s)return;const E=l||h;E!==r&&(r=E,E?i.pause():i.resume())},p=E=>{l=E,u()},v=()=>{h=!0,u()},$=E=>{const y=E.relatedTarget;y&&E.currentTarget.contains(y)||(h=!1,u())},I=()=>{const E=e.props.onSelect;typeof E=="function"&&(E(),e.props.dismissible&&m())},w=E=>{E.key!=="Enter"&&E.key!==" "||(E.preventDefault(),I())};e.props.inline||Vo(Kt(e.props.position)),e.onCleanup(()=>{i&&i.stop(),a&&clearTimeout(a)});const C=()=>{if(n)return o.nothing;const E=e.props,y=ur(E.tone),z=y==="danger",_=typeof E.onSelect=="function",W=e.slots.has("heading")?e.slot("heading"):E.title?E.title:void 0,Z=e.slots.has("description")?e.slot("description"):E.body?E.body:void 0;return o.html`<div
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
2051
1977
  data-testid="notification-card"
2052
- ${ce(be(E,dr))}
2053
- class=${D("moz-notification-card",{"is-selectable":_},E.class)}
2054
- data-tone=${y}
2055
- role=${z?"alert":"status"}
2056
- aria-live=${z?"assertive":"polite"}
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"}
2057
1983
  aria-atomic="true"
2058
- style=${X.styleMap({...fe(E.style),...t?{}:{display:"none"}})}
1984
+ style=${ee.styleMap({...be(g.style),...t?{}:{display:"none"}})}
2059
1985
  @mouseenter=${()=>p(!0)}
2060
1986
  @mouseleave=${()=>p(!1)}
2061
- @focusin=${v}
2062
- @focusout=${$}
1987
+ @focusin=${y}
1988
+ @focusout=${L}
2063
1989
  >
2064
1990
  <span class="moz-notification-card-icon"
2065
- >${e.slots.has("avatar")?e.slot("avatar"):cr[y]()}</span
1991
+ >${e.slots.has("avatar")?e.slot("avatar"):Er[h]()}</span
2066
1992
  >
2067
1993
  <div class="moz-notification-card-main">
2068
1994
  <div
2069
1995
  class="moz-notification-card-content"
2070
- role=${Se.ifDefined(_?"button":void 0)}
2071
- tabindex=${Se.ifDefined(_?"0":void 0)}
2072
- @click=${I}
2073
- @keydown=${_?w:o.nothing}
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}
2074
2000
  >
2075
- ${W!==void 0?o.html`<div class="moz-notification-card-heading">${W}</div>`:o.nothing}
2076
- ${Z!==void 0?o.html`<div class="moz-notification-card-description">${Z}</div>`:o.nothing}
2077
- ${E.time?o.html`<time class="moz-notification-card-time" datetime=${Se.ifDefined(E.datetime||void 0)}
2078
- >${E.time}</time
2079
- >`:o.nothing}
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}
2080
2006
  </div>
2081
- ${e.slots.has("actions")?o.html`<div class="moz-notification-card-actions">${e.slot("actions")}</div>`:o.nothing}
2007
+ ${e.slots.has("actions")?s.html`<div class="moz-notification-card-actions">${e.slot("actions")}</div>`:s.nothing}
2082
2008
  </div>
2083
- ${E.dismissible?o.html`<button
2009
+ ${g.dismissible?s.html`<button
2084
2010
  type="button"
2085
2011
  class="moz-notification-card-close"
2086
- aria-label=${E.closeLabel||e.locale.Notification.close}
2087
- @click=${m}
2012
+ aria-label=${g.closeLabel||e.locale.Notification.close}
2013
+ @click=${a}
2088
2014
  >
2089
- ${_s()}
2090
- </button>`:o.nothing}
2091
- </div>`};return{api:{dismiss:m,isClosing:()=>s},onMounted(){d()},getPortalContainer:()=>e.props.inline?null:Vo(Kt(e.props.position)),renderPortal(){return e.props.inline?o.nothing:C()},render(){return e.props.inline?C():o.nothing}}}}),pr=new Set(["title","body","time","datetime","unread","onSelect","class","style"]),Ys=Ce({name:"moz-notification-item",defaults:{unread:!1},setup(e){const t=()=>{const s=e.props.onSelect;typeof s=="function"&&s()};return{render(){const s=e.props,n=be(s,pr),i=!!s.unread,a=e.slots.has("heading")?e.slot("heading"):s.title?s.title:void 0,m=e.slots.has("description")?e.slot("description"):s.body?s.body:void 0,d=D("moz-notification-item",{"is-unread":i},s.class),l=X.styleMap(fe(s.style)),h=o.html`
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`
2092
2018
  <span class="moz-notification-item-header">
2093
- ${a!==void 0?o.html`<span class="moz-notification-item-heading">${a}</span>`:o.nothing}
2094
- ${i?o.html`<span class="moz-notification-item-unread"
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"
2095
2021
  ><span class="moz-notification-item-dot" aria-hidden="true"></span
2096
2022
  ><span class="moz-notification-item-sr">${e.locale.Notification.unread}</span></span
2097
- >`:o.nothing}
2098
- ${e.slots.has("meta")?o.html`<span class="moz-notification-item-meta">${e.slot("meta")}</span>`:o.nothing}
2023
+ >`:s.nothing}
2024
+ ${e.slots.has("meta")?s.html`<span class="moz-notification-item-meta">${e.slot("meta")}</span>`:s.nothing}
2099
2025
  </span>
2100
- ${m!==void 0?o.html`<span class="moz-notification-item-description">${m}</span>`:o.nothing}
2101
- ${s.time?o.html`<time class="moz-notification-item-time" datetime=${Se.ifDefined(s.datetime||void 0)}
2102
- >${s.time}</time
2103
- >`:o.nothing}
2104
- `;return typeof s.onSelect=="function"?o.html`<button
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)}
2029
+ >${o.time}</time
2030
+ >`:s.nothing}
2031
+ </span>`:s.nothing}
2032
+ `;return typeof o.onSelect=="function"?s.html`<button
2105
2033
  type="button"
2106
- class=${d}
2107
- data-unread=${i?"true":"false"}
2108
- style=${l}
2109
- ${ce(n)}
2034
+ class=${f}
2035
+ data-unread=${l?"true":"false"}
2036
+ style=${i}
2037
+ ${he(n)}
2110
2038
  @click=${t}
2111
2039
  >
2112
- ${h}
2113
- </button>`:o.html`<div class=${d} data-unread=${i?"true":"false"} style=${l} ${ce(n)}>
2114
- ${h}
2115
- </div>`}}}}),hr=3,nt=[];let mr=0;const fr=e=>{var t;typeof e.remove<"u"?e.remove():(t=e.parentNode)==null||t.removeChild(e)},Pt=e=>e.closing||e.instance.api.isClosing(),ut=e=>{Pt(e)||(e.closing=!0,e.instance.api.dismiss())},gr=(e={})=>({open:(i={},a={})=>{const m={...e,...i},{id:d,max:l,onDismiss:h,...r}=m;if(d){const z=nt.find(_=>_.id===d&&!Pt(_));if(z)return{id:z.id,close:()=>ut(z)}}const u=d||`moz-notification-${++mr}`,p=Kt(r.position),v=typeof l=="number"&&l>0?Math.floor(l):hr,$=nt.filter(z=>z.position===p&&!Pt(z));for(let z=0;z<=$.length-v;z++)ut($[z]);const I=document.createElement("div");I.style.display="contents",document.body.appendChild(I);let w;const C={...r,position:p,inline:!1,onDismiss:()=>{const z=w?nt.indexOf(w):-1;z!==-1&&nt.splice(z,1),h==null||h(),queueMicrotask(()=>{var _;w==null||w.instance.destroy(),fr(I),(_=a.onRemoved)==null||_.call(a)})}},E=mo(I,C,(()=>{}),{slots:a.slots,locale:a.locale});w={id:u,position:p,instance:E,closing:!1},nt.push(w);const y=w;return{id:u,close:()=>ut(y)}},close:i=>{const a=nt.find(m=>m.id===i&&!Pt(m));a&&ut(a)},closeAll:()=>{for(const i of nt.slice())ut(i)}}),vr={name:"MozNotificationCard",core:mo,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},br={name:"MozNotificationItem",core:Ys,booleanProps:["unread"],props:["title","body","time","datetime","unread","onSelect"],emits:[],slots:["heading","description","meta"],expose:!1,syncUpdate:!0};exports.AVATAR_SPEC=Xi;exports.BADGE_APPEARANCES=As;exports.BADGE_SIZES=Ds;exports.BADGE_SPEC=or;exports.BADGE_TONES=zs;exports.BREADCRUMB_SPEC=Al;exports.BUTTON_SPEC=Tl;exports.CALENDAR_SPEC=fn;exports.CALLOUT_SPEC=ar;exports.CALLOUT_TONES=Us;exports.CHECKBOX_SPEC=Nl;exports.CHIP_APPEARANCES=Rs;exports.CHIP_SIZES=qs;exports.CHIP_SPEC=lr;exports.CHIP_TONES=Is;exports.COLLAPSIBLE_HEIGHT_VAR=Ts;exports.COLLAPSIBLE_SPEC=Zi;exports.CONTEXTMENU_SPEC=ei;exports.CONTROLLER_SPEC=Li;exports.ChromeComponent=Ro;exports.DATEINPUT_SPEC=yn;exports.DEFAULT_TREE_PROPS=Ut;exports.EMPTYSTATE_SPEC=Bl;exports.INPUT_SPEC=Kl;exports.LABEL_SPEC=Ll;exports.MOZ_BOOLEAN_PROPS=gl;exports.MULTISELECT_SPEC=Hn;exports.NOTIFICATION_CARD_SPEC=vr;exports.NOTIFICATION_ITEM_SPEC=br;exports.NOTIFICATION_POSITIONS=Gs;exports.NOTIFICATION_TONES=Ks;exports.NUMBERINPUT_SPEC=sn;exports.Observable=al;exports.Overlay=gt;exports.PASSWORDINPUT_SPEC=Zl;exports.POPOVER_SPEC=Gi;exports.POPUP_SPEC=zn;exports.PortalHost=Tt;exports.RADIO_SPEC=Ul;exports.SCROLLAREA_SPEC=er;exports.SEGMENT_TONES=Zo;exports.SELECT_SPEC=In;exports.SLIDER_SPEC=an;exports.SPLITPANE_SPEC=Ci;exports.SlotHost=qo;exports.TABLESELECT_SPEC=ai;exports.TAB_SPEC=nn;exports.TAGINPUT_SPEC=jn;exports.TEXTAREA_SPEC=Xl;exports.TIMEPICKER_SPEC=Kn;exports.TOAST_SPEC=Bi;exports.TOGGLE_SPEC=zl;exports.TOOLTIP_SPEC=Ui;exports.TREESELECT_SPEC=bi;exports.Timer=po;exports.breadcrumbTemplate=eo;exports.buttonTemplate=pt;exports.checkboxTemplate=kt;exports.circleLoader=Zt;exports.cn=D;exports.computeTooltipPlacement=ks;exports.createAvatar=Ls;exports.createBadge=Vs;exports.createBreadCrumb=Uo;exports.createButton=Ho;exports.createCalendar=no;exports.createCallout=Ws;exports.createCheckBox=Yo;exports.createChip=Os;exports.createCollapsible=Ms;exports.createContextMenu=ms;exports.createController=$s;exports.createDateInput=is;exports.createEmptyState=Go;exports.createInput=Xo;exports.createLabel=No;exports.createMultiSelect=cs;exports.createNotificationCard=mo;exports.createNotificationItem=Ys;exports.createNumberInput=os;exports.createPasswordInput=es;exports.createPopover=Ps;exports.createPopup=as;exports.createRadio=jo;exports.createScrollArea=xs;exports.createSelect=ds;exports.createSlider=ns;exports.createSplitPane=ys;exports.createTab=ls;exports.createTableSelect=fs;exports.createTagInput=hs;exports.createTextArea=ts;exports.createTimePicker=ps;exports.createToast=ho;exports.createToggle=_o;exports.createTooltip=Es;exports.createTreeSelect=Cs;exports.createValidator=wl;exports.dayjs=Pe;exports.defaultEmptyStateMessages=Wo;exports.defineHeadless=Ce;exports.dismissLayerCount=El;exports.enUS=pl;exports.generateUUID=Oo;exports.iconArrowRight=Xt;exports.iconCheckBox=to;exports.iconCheckBoxChecked=oo;exports.iconCheckboxIndeterminate=so;exports.iconClose=ss;exports.iconFavorite=Qt;exports.iconFavoriteFilled=Jt;exports.iconInfo=lo;exports.iconPasswordHidden=Qo;exports.iconPasswordVisible=Jo;exports.jaJP=ml;exports.koKR=Nt;exports.labelClass=jt;exports.labelTemplate=Be;exports.normalizeStyle=fe;exports.pickRest=be;exports.pxToRem=Te;exports.registerDismissLayer=Yt;exports.registerForeignLayer=kl;exports.registerSelfHandledLayer=vt;exports.shallowEqual=rt;exports.spread=ce;exports.toggleTemplate=Lt;exports.uniqueId=tt;exports.useNotification=gr;exports.useToast=Fi;exports.zhCN=hl;
2040
+ ${c}
2041
+ </button>`:s.html`<div class=${f} data-unread=${l?"true":"false"} style=${i} ${he(n)}>
2042
+ ${c}
2043
+ </div>`}}}}),xr=3,gt=[];let Mr=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-${++Mr}`,p=co(r.position),y=typeof i=="number"&&i>0?Math.floor(i):xr,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=xs;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=Mn;exports.generateUUID=xt;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;
2116
2044
  //# sourceMappingURL=index.cjs.map