@vmscloud/moz-ui-components-core 0.1.60 → 0.1.62

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.
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";var Bs=Object.defineProperty;var Os=(e,t,s)=>t in e?Bs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var Ae=(e,t,s)=>Os(e,typeof t!="symbol"?t+"":t,s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("lit-html"),Ft=require("lit-html/directive.js"),ee=require("lit-html/directives/style-map.js"),Hs=require("clsx"),Me=require("lit-html/directives/if-defined.js"),To=require("lit-html/directives/unsafe-html.js"),Tt=require("lit-html/directives/live.js"),lt=require("dayjs"),_s=require("dayjs/plugin/duration.js"),Ns=require("dayjs/plugin/minMax.js"),Us=require("dayjs/plugin/timezone.js"),Ws=require("dayjs/plugin/utc.js"),Ks=require("dayjs/plugin/isSameOrBefore.js"),Gs=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 _=require("lit-html/directives/ref.js"),Fe=require("@tanstack/virtual-core");var Ye=typeof document<"u"?document.currentScript:null;class xo{constructor(t){Ae(this,"container");Ae(this,"updateScheduled",!1);Ae(this,"mounted",!1);Ae(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 Ys{constructor(){Ae(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 Lo{constructor(){Ae(this,"renderers",new Map);Ae(this,"resolver",null);Ae(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,p]of this.mounted)p.el===n&&(p.handle.dispose(),this.mounted.delete(r));const c=a(n,i);return this.mounted.set(t,{el:n,handle:c}),!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 kt{constructor(){Ae(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 zo(){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 co=0;function Xe(e=""){return co+=1,`${e}${co}`}const it=(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 ve(e,t){const s={};for(const n of Object.keys(e))t.has(n)||(s[n]=e[n]);return s}function ht(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}}function me(e){if(!e)return{};if(typeof e=="object")return e;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 xt(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 Bt={Toast:{close:"닫기"},Chip:{remove:"삭제"},Callout:{dismiss:"닫기"},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:"탐색 경로"}},Zs={Toast:{close:"Close"},Chip:{remove:"Remove"},Callout:{dismiss:"Dismiss"},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"}},js={Toast:{close:"关闭"},Chip:{remove:"删除"},Callout:{dismiss:"关闭"},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:"面包屑导航"}},Xs={Toast:{close:"閉じる"},Chip:{remove:"削除"},Callout:{dismiss:"閉じる"},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 Qs=0;function we(e){return(t,s,n,i)=>{var ue;const a=e.portal?new kt:null,m=a?a.open():t,c=`h${++Qs}:`,l=new Lo;if(i!=null&&i.slots)for(const[U,z]of Object.entries(i.slots))l.register(U,z);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,p=U=>{const z=e.defaults;if(!z)return U;const W={...U};for(const J of Object.keys(z))W[J]===void 0&&(W[J]=z[J]);return W};let u=p({...s}),v=(i==null?void 0:i.locale)??Bt;const $=(i==null?void 0:i.validator)??null,R=[];let C=new Map,y=new Set,D=new Map,E=null;const V={get props(){return u},emit:n,slots:l,requestUpdate:()=>Q.requestUpdate(),onCleanup:U=>R.push(U),px:U=>Te(U),get locale(){return v},validator:$,controlled:U=>r?r.has(U):h.has(U),slot(U,z){if(!l.has(U))return o.nothing;const W=D.get(U)??0;D.set(U,W+1);const J=`${U}#${W}`;return C.set(J,{name:U,scope:z}),o.html`<span data-moz-slot=${U} data-moz-slot-id=${c+J}></span>`}},G=e.setup(V);class Y extends xo{template(){return C=new Map,D=new Map,G.render()}renderNow(){super.renderNow();let z=null;if(G.renderPortal){const W=G.renderPortal(),J=G.getPortalContainer?G.getPortalContainer():document.body;W===o.nothing||W==null||J==null?E&&E.isOpen&&(o.render(o.nothing,E.element),E.close()):(E||(E=new kt),z=E.isOpen?E.element:E.open("moz-overlay-portal",J),o.render(W,z))}for(const[W,{name:J,scope:ne}]of C){const X=`[data-moz-slot-id="${c+W}"]`;let B=this.container.querySelector(X);!B&&z&&(B=z.querySelector(X)),B&&l.fill(W,J,B,ne)}for(const W of y)C.has(W)||l.clear(W);y=new Set(C.keys())}flush(){this.isMounted&&this.renderNow()}onDestroy(){for(const z of R.splice(0))try{z()}catch{}l.destroy()}}const Q=new Y(m);return Q.mount(),(ue=G.onMounted)==null||ue.call(G,m.firstElementChild),{get el(){return m.firstElementChild},update(U,z){z!=null&&z.replace?(u=p({...U}),h.clear()):u=p({...u,...U});for(const W of Object.keys(U))h.add(W);z!=null&&z.sync?Q.flush():Q.requestUpdate()},destroy(){Q.destroy(),a==null||a.close(),E==null||E.close()},setLocale(U){U!==v&&(v=U??Bt,Q.requestUpdate())},api:G.api??{}}}}const Js={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"],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 el extends Ft.Directive{constructor(s){super(s);Ae(this,"prevKeys",[]);Ae(this,"listeners",new Map);if(s.type!==Ft.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 c=this.listeners.get(m);c&&i.removeEventListener(this.eventName(m),c),this.listeners.delete(m)}else i.removeAttribute(m);for(const[m,c]of Object.entries(a))if(!(m==="class"||m==="style"||m==="key"||m==="ref"))if(this.isEventKey(m)&&typeof c=="function"){const l=this.eventName(m),h=this.listeners.get(m);h&&i.removeEventListener(l,h),i.addEventListener(l,c),this.listeners.set(m,c)}else c==null?i.removeAttribute(m):m.startsWith("aria-")?i.setAttribute(m,String(c)):c===!1?i.removeAttribute(m):c===!0?i.setAttribute(m,""):i.setAttribute(m,String(c));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=Ft.directive(el);function L(...e){return Hs.clsx(e)}function tl(){return lt.extend(Ws),lt.extend(Us),lt.extend(_s),lt.extend(Ns),lt.extend(Ks),lt.extend(Gs),lt.tz.setDefault("Asia/Seoul"),lt}const Pe=tl();function ol(){const e=[];return{addValidator:a=>{e.push(a)},removeValidator:a=>{const m=e.findIndex(c=>c.validate===a.validate);m>=0&&e.splice(m,1)},validate:async(a="save")=>(await Promise.all(e.map(c=>c.validate(a).then(l=>l===void 0?!0:l)))).every(c=>c),initValidator:()=>{var a;for(const m of e)(a=m==null?void 0:m.initValidator)==null||a.call(m)}}}const sl=16;function ll(e,t){let s=0;return(...n)=>{const i=Date.now();i-s>=t&&(s=i,e(...n))}}class mt{constructor(t){Ae(this,"opened",!1);Ae(this,"scrollHandler");Ae(this,"clickHandler");this.opts=t,this.scrollHandler=ll(s=>this.onScroll(s),sl),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,c=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`,p=!1;if(this.opts.listWidth){const u=this.opts.listWidth();u&&(typeof u!="number"||u>0)&&(r=typeof u=="number"?`${u}px`:u,p=!0)}s.style.position="fixed",s.style.left=`${l}px`,this.opts.useMinWidth?(s.style.minWidth=`${n.width}px`,p&&(s.style.width=String(r))):p?s.style.width=String(r):s.style.width=`${n.width}px`,c?(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,c;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)||(c=this.opts.anchor())!=null&&c.contains(s)||this.opts.requestClose()}}const tt=[];let Et=!1;function Ao(e){var s;if(e.key!=="Escape")return;const t=tt[tt.length-1];t&&t.kind==="moz"&&((s=t.onEscape)==null||s.call(t,e),e.stopPropagation())}function nl(){Et||typeof window>"u"||(window.addEventListener("keydown",Ao,{capture:!0}),Et=!0)}function il(){!Et||typeof window>"u"||(window.removeEventListener("keydown",Ao,!0),Et=!1)}function _t(e){tt.push(e),nl();let t=!1;return{release(){if(t)return;t=!0;const s=tt.indexOf(e);s>=0&&tt.splice(s,1),tt.length===0&&il()},isTopmost(){return tt[tt.length-1]===e}}}function Nt(e){return _t({kind:"moz",onEscape:e})}function rl(){return _t({kind:"foreign"})}function ft(){return _t({kind:"self"})}function al(){return tt.length}function Ut(e={}){const{circleClass:t="",progressClass:s=""}=e;return o.html`<svg
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 Ae=(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"),J=require("lit-html/directives/style-map.js"),tl=require("clsx"),Ce=require("lit-html/directives/if-defined.js"),Io=require("lit-html/directives/unsafe-html.js"),xt=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"),Oe=require("@tanstack/virtual-core");var Ye=typeof document<"u"?document.currentScript:null;class Ro{constructor(t){Ae(this,"container");Ae(this,"updateScheduled",!1);Ae(this,"mounted",!1);Ae(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(){Ae(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(){Ae(this,"renderers",new Map);Ae(this,"resolver",null);Ae(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,p]of this.mounted)p.el===n&&(p.handle.dispose(),this.mounted.delete(r));const c=a(n,i);return this.mounted.set(t,{el:n,handle:c}),!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(){Ae(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 Me(e,t=16){return e/t}let vo=0;function Xe(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 fe(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}}function me(e){if(!e)return{};if(typeof e=="object")return e;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:"탐색 경로"}},cl={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"}},dl={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:"面包屑导航"}},ul={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 pl=0;function ve(e){return(t,s,n,i)=>{var ue;const a=e.portal?new Tt:null,m=a?a.open():t,c=`h${++pl}:`,l=new qo;if(i!=null&&i.slots)for(const[W,D]of Object.entries(i.slots))l.register(W,D);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,p=W=>{const D=e.defaults;if(!D)return W;const K={...W};for(const ee of Object.keys(D))K[ee]===void 0&&(K[ee]=D[ee]);return K};let u=p({...s}),v=(i==null?void 0:i.locale)??Nt;const S=(i==null?void 0:i.validator)??null,I=[];let w=new Map,y=new Set,P=new Map,$=null;const x={get props(){return u},emit:n,slots:l,requestUpdate:()=>j.requestUpdate(),onCleanup:W=>I.push(W),px:W=>Me(W),get locale(){return v},validator:S,controlled:W=>r?r.has(W):h.has(W),slot(W,D){if(!l.has(W))return o.nothing;const K=P.get(W)??0;P.set(W,K+1);const ee=`${W}#${K}`;return w.set(ee,{name:W,scope:D}),o.html`<span data-moz-slot=${W} data-moz-slot-id=${c+ee}></span>`}},_=e.setup(x);class Y extends Ro{template(){return w=new Map,P=new Map,_.render()}renderNow(){super.renderNow();let D=null;if(_.renderPortal){const K=_.renderPortal(),ee=_.getPortalContainer?_.getPortalContainer():document.body;K===o.nothing||K==null||ee==null?$&&$.isOpen&&(o.render(o.nothing,$.element),$.close()):($||($=new Tt),D=$.isOpen?$.element:$.open("moz-overlay-portal",ee),o.render(K,D))}for(const[K,{name:ee,scope:ne}]of w){const Q=`[data-moz-slot-id="${c+K}"]`;let F=this.container.querySelector(Q);!F&&D&&(F=D.querySelector(Q)),F&&l.fill(K,ee,F,ne)}for(const K of y)w.has(K)||l.clear(K);y=new Set(w.keys())}flush(){this.isMounted&&this.renderNow()}onDestroy(){for(const D of I.splice(0))try{D()}catch{}l.destroy()}}const j=new Y(m);return j.mount(),(ue=_.onMounted)==null||ue.call(_,m.firstElementChild),{get el(){return m.firstElementChild},update(W,D){D!=null&&D.replace?(u=p({...W}),h.clear()):u=p({...u,...W});for(const K of Object.keys(W))h.add(K);D!=null&&D.sync?j.flush():j.requestUpdate()},destroy(){j.destroy(),a==null||a.close(),$==null||$.close()},setLocale(W){W!==v&&(v=W??Nt,j.requestUpdate())},api:_.api??{}}}}const hl={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 ml extends Ht.Directive{constructor(s){super(s);Ae(this,"prevKeys",[]);Ae(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 c=this.listeners.get(m);c&&i.removeEventListener(this.eventName(m),c),this.listeners.delete(m)}else i.removeAttribute(m);for(const[m,c]of Object.entries(a))if(!(m==="class"||m==="style"||m==="key"||m==="ref"))if(this.isEventKey(m)&&typeof c=="function"){const l=this.eventName(m),h=this.listeners.get(m);h&&i.removeEventListener(l,h),i.addEventListener(l,c),this.listeners.set(m,c)}else c==null?i.removeAttribute(m):m.startsWith("aria-")?i.setAttribute(m,String(c)):c===!1?i.removeAttribute(m):c===!0?i.setAttribute(m,""):i.setAttribute(m,String(c));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(ml);function A(...e){return tl.clsx(e)}function fl(){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 Te=fl();function gl(){const e=[];return{addValidator:a=>{e.push(a)},removeValidator:a=>{const m=e.findIndex(c=>c.validate===a.validate);m>=0&&e.splice(m,1)},validate:async(a="save")=>(await Promise.all(e.map(c=>c.validate(a).then(l=>l===void 0?!0:l)))).every(c=>c),initValidator:()=>{var a;for(const m of e)(a=m==null?void 0:m.initValidator)==null||a.call(m)}}}const vl=16;function bl(e,t){let s=0;return(...n)=>{const i=Date.now();i-s>=t&&(s=i,e(...n))}}class gt{constructor(t){Ae(this,"opened",!1);Ae(this,"scrollHandler");Ae(this,"clickHandler");this.opts=t,this.scrollHandler=bl(s=>this.onScroll(s),vl),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,c=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`,p=!1;if(this.opts.listWidth){const u=this.opts.listWidth();u&&(typeof u!="number"||u>0)&&(r=typeof u=="number"?`${u}px`:u,p=!0)}s.style.position="fixed",s.style.left=`${l}px`,this.opts.useMinWidth?(s.style.minWidth=`${n.width}px`,p&&(s.style.width=String(r))):p?s.style.width=String(r):s.style.width=`${n.width}px`,c?(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,c;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)||(c=this.opts.anchor())!=null&&c.contains(s)||this.opts.requestClose()}}const tt=[];let Mt=!1;function Fo(e){var s;if(e.key!=="Escape")return;const t=tt[tt.length-1];t&&t.kind==="moz"&&((s=t.onEscape)==null||s.call(t,e),e.stopPropagation())}function wl(){Mt||typeof window>"u"||(window.addEventListener("keydown",Fo,{capture:!0}),Mt=!0)}function Cl(){!Mt||typeof window>"u"||(window.removeEventListener("keydown",Fo,!0),Mt=!1)}function Gt(e){tt.push(e),wl();let t=!1;return{release(){if(t)return;t=!0;const s=tt.indexOf(e);s>=0&&tt.splice(s,1),tt.length===0&&Cl()},isTopmost(){return tt[tt.length-1]===e}}}function Yt(e){return Gt({kind:"moz",onEscape:e})}function yl(){return Gt({kind:"foreign"})}function vt(){return Gt({kind:"self"})}function $l(){return tt.length}function Zt(e={}){const{circleClass:t="",progressClass:s=""}=e;return o.html`<svg
3
3
  aria-hidden="true"
4
4
  role="status"
5
5
  class="moz-circle-loader"
@@ -20,56 +20,56 @@
20
20
  fill="var(--moz-color-accent)"
21
21
  class=${s}
22
22
  ></path>
23
- </svg>`}function Vo(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 dl=new Set(["action","text","type","nativeType","width","loading","disabled","class","style"]);function ct(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,...me(e.style)},c=l=>{var h;s||(h=t.onClick)==null||h.call(t,l)};return o.html`
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 Sl=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"?`${Me(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,...me(e.style)},c=l=>{var h;s||(h=t.onClick)==null||h.call(t,l)};return o.html`
24
24
  <button
25
25
  type=${e.nativeType??"button"}
26
- class=${L("moz-button",Vo(e.type),{loading:!!e.loading,disabled:s,"moz-icon-text-button":n},e.class)}
27
- style=${ee.styleMap(m)}
26
+ class=${A("moz-button",Bo(e.type),{loading:!!e.loading,disabled:s,"moz-icon-text-button":n},e.class)}
27
+ style=${J.styleMap(m)}
28
28
  ?disabled=${s}
29
29
  @click=${c}
30
30
  ${ce(t.rest??{})}
31
31
  >
32
32
  ${e.loading?o.html`<span class="spinner" data-part="spinner"
33
- >${Ut({circleClass:"fill-accent-50",progressClass:"fill-accent-400"})}</span
33
+ >${Zt({circleClass:"fill-accent-50",progressClass:"fill-accent-400"})}</span
34
34
  >`:t.icon??o.nothing}
35
- ${e.text||t.content!=null?o.html`<span class=${L("text",{"has-icon-text":n})} data-part="label"
35
+ ${e.text||t.content!=null?o.html`<span class=${A("text",{"has-icon-text":n})} data-part="label"
36
36
  >${e.text??""}${t.content??o.nothing}</span
37
37
  >`:o.nothing}
38
38
  </button>
39
- `}const Do=we({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,c=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 p of Object.keys(i))dl.has(p)||(h[p]=i[p]);const r={width:c,minWidth:c,"--moz-btn-loading-width":l,...me(i.style)};return o.html`
39
+ `}const Ho=ve({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,c=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 p of Object.keys(i))Sl.has(p)||(h[p]=i[p]);const r={width:c,minWidth:c,"--moz-btn-loading-width":l,...me(i.style)};return o.html`
40
40
  <button
41
41
  type=${i.nativeType??"button"}
42
- class=${L("moz-button",Vo(i.type),{loading:t,disabled:m,"moz-icon-text-button":a},i.class)}
43
- style=${ee.styleMap(r)}
42
+ class=${A("moz-button",Bo(i.type),{loading:t,disabled:m,"moz-icon-text-button":a},i.class)}
43
+ style=${J.styleMap(r)}
44
44
  ?disabled=${m}
45
45
  @click=${n}
46
46
  ${ce(h)}
47
47
  >
48
48
  ${t?o.html`<span class="spinner" data-part="spinner"
49
- >${Ut({circleClass:"fill-accent-50",progressClass:"fill-accent-400"})}</span
49
+ >${Zt({circleClass:"fill-accent-50",progressClass:"fill-accent-400"})}</span
50
50
  >`:e.slot("icon",{disabled:m})}
51
- ${i.text||e.slots.has("default")?o.html`<span class=${L("text",{"has-icon-text":a})} data-part="label"
51
+ ${i.text||e.slots.has("default")?o.html`<span class=${A("text",{"has-icon-text":a})} data-part="label"
52
52
  >${i.text??""}${e.slot("default",{disabled:m})}</span
53
53
  >`:o.nothing}
54
54
  </button>
55
- `}}}}),cl={name:"MozButton",core:Do,booleanProps:["disabled","loading"],props:["action","text","type","nativeType","width","loading","disabled"],emits:["click"],slots:["icon","default"],expose:!0},ul=new Set(["for","disabled","required","isReadOnly","class","style"]);function Wt(e,t){return L("moz-label",{disabled:!!e.disabled,"read-only":!!e.isReadOnly},t,e.class)}function Be(e,t,s){return o.html`<label class=${Wt(e,s)} for=${Me.ifDefined(e.for)}
55
+ `}}}}),kl={name:"MozButton",core:Ho,booleanProps:["disabled","loading"],props:["action","text","type","nativeType","width","loading","disabled"],emits:["click"],slots:["icon","default"],expose:!0},El=new Set(["for","disabled","required","isReadOnly","class","style"]);function jt(e,t){return A("moz-label",{disabled:!!e.disabled,"read-only":!!e.isReadOnly},t,e.class)}function Fe(e,t,s){return o.html`<label class=${jt(e,s)} for=${Ce.ifDefined(e.for)}
56
56
  >${t}${e.required?o.html`<span class="require-mark">*</span>`:o.nothing}</label
57
- >`}const Ro=we({name:"moz-label",setup(e){return{render(){const t=e.props,s=ve(t,ul);return o.html`<label
58
- class=${Wt(t)}
59
- for=${Me.ifDefined(t.for)}
60
- style=${ee.styleMap(me(t.style))}
57
+ >`}const No=ve({name:"moz-label",setup(e){return{render(){const t=e.props,s=fe(t,El);return o.html`<label
58
+ class=${jt(t)}
59
+ for=${Ce.ifDefined(t.for)}
60
+ style=${J.styleMap(me(t.style))}
61
61
  ${ce(s)}
62
62
  >${e.slot("default")}${t.required?o.html`<span class="require-mark">*</span>`:o.nothing}</label
63
- >`}}}}),pl={name:"MozLabel",core:Ro,booleanProps:["disabled","isReadOnly","required"],props:["for","disabled","required","isReadOnly"],emits:[],slots:["default"],expose:!1},hl=new Set(["modelValue","label","labelPosition","required","readonly","disabled","visible","class","style"]);function Pt(e){const t=!!e.model;return o.html`
63
+ >`}}}}),Pl={name:"MozLabel",core:No,booleanProps:["disabled","isReadOnly","required"],props:["for","disabled","required","isReadOnly"],emits:[],slots:["default"],expose:!1},Tl=new Set(["modelValue","label","labelPosition","required","readonly","disabled","visible","class","style"]);function Lt(e){const t=!!e.model;return o.html`
64
64
  <div
65
65
  data-part="root"
66
- class=${L(e.class)}
67
- style=${ee.styleMap({...me(e.style),...e.visible===!1?{display:"none"}:{}})}
66
+ class=${A(e.class)}
67
+ style=${J.styleMap({...me(e.style),...e.visible===!1?{display:"none"}:{}})}
68
68
  ${ce(e.rest??{})}
69
69
  >
70
70
  <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=${L("moz-switch-box",{active:t,disabled:!!e.disabled})}>
71
+ ${e.labelPosition!=="right"?Fe({for:e.id,disabled:e.disabled,required:e.required},e.label??"","label-left"):o.nothing}
72
+ <div class=${A("moz-switch-box",{active:t,disabled:!!e.disabled})}>
73
73
  <input
74
74
  id=${e.id}
75
75
  class="moz-switch-input"
@@ -82,19 +82,19 @@
82
82
  @change=${e.onChange}
83
83
  @click=${e.onClick}
84
84
  />
85
- <div class=${L("moz-switch-handler",{active:t,disabled:!!e.disabled})}></div>
85
+ <div class=${A("moz-switch-handler",{active:t,disabled:!!e.disabled})}></div>
86
86
  </div>
87
- ${e.labelPosition==="right"?Be({for:e.id,disabled:e.disabled},e.label??"","label-right"):o.nothing}
87
+ ${e.labelPosition==="right"?Fe({for:e.id,disabled:e.disabled},e.label??"","label-right"):o.nothing}
88
88
  </div>
89
89
  </div>
90
- `}const qo=we({name:"moz-toggle",defaults:{labelPosition:"left",required:!1,readonly:!1,disabled:!1,visible:!0},setup(e){const t=Xe("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}=ht(ve(i,hl));return Pt({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})}}}}),ml={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 Kt(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">
90
+ `}const _o=ve({name:"moz-toggle",defaults:{labelPosition:"left",required:!1,readonly:!1,disabled:!1,visible:!0},setup(e){const t=Xe("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(fe(i,Tl));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})}}}}),Ml={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">
91
91
  <path
92
92
  fill-rule="evenodd"
93
93
  clip-rule="evenodd"
94
94
  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
95
  fill="var(--moz-color-text-subtle)"
96
96
  ></path>
97
- </svg>`}function Gt(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">
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">
98
98
  <path
99
99
  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
100
  stroke=${e}
@@ -102,7 +102,7 @@
102
102
  stroke-linecap="round"
103
103
  stroke-linejoin="round"
104
104
  ></path>
105
- </svg>`}function Yt(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">
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">
106
106
  <path
107
107
  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
108
  fill=${e}
@@ -111,33 +111,33 @@
111
111
  stroke-linecap="round"
112
112
  stroke-linejoin="round"
113
113
  ></path>
114
- </svg>`}const uo=new Set(["itemSource","items","listClass","showFavorite","modelValue","class","style"]);function Zt(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?Yt(void 0,"favorite-filled"):Gt(void 0,"empty")}
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
116
  </button>`:o.nothing;return o.html`
117
117
  <div
118
118
  role="navigation"
119
119
  aria-label=${e.ariaLabel??"breadcrumb"}
120
- class=${L("moz-bread-crumb",e.class)}
121
- style=${ee.styleMap(me(e.style))}
120
+ class=${A("moz-bread-crumb",e.class)}
121
+ style=${J.styleMap(me(e.style))}
122
122
  ${ce(e.rest??{})}
123
123
  >
124
124
  <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>${Kt("separator")}`)}
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")}`)}
126
126
  </div>
127
127
  ${n}${e.titleSlot??o.nothing}
128
128
  </div>
129
- `}const Io=we({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?Yt(void 0,"favorite-filled"):Gt(void 0,"empty")}
129
+ `}const Uo=ve({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
131
  </button>`:o.nothing,c=()=>o.html`<li role="presentation" aria-hidden="true" class="moz-bread-crumb-separator">
132
- ${e.slots.has("separator")?e.slot("separator"):Kt("separator")}
132
+ ${e.slots.has("separator")?e.slot("separator"):Xt("separator")}
133
133
  </li>`;return o.html`
134
134
  <nav
135
135
  aria-label=${e.locale.BreadCrumb.navigation}
136
- class=${L("moz-bread-crumb","moz-bread-crumb-items",i.class)}
137
- style=${ee.styleMap(me(i.style))}
138
- ${ce(ve(i,uo))}
136
+ class=${A("moz-bread-crumb","moz-bread-crumb-items",i.class)}
137
+ style=${J.styleMap(me(i.style))}
138
+ ${ce(fe(i,bo))}
139
139
  >
140
- <ol class=${L("moz-bread-crumb-list",i.listClass)}>
140
+ <ol class=${A("moz-bread-crumb-list",i.listClass)}>
141
141
  ${n.map((l,h)=>o.html`
142
142
  <li class="moz-bread-crumb-item" aria-current=${l.current?"page":o.nothing}>
143
143
  ${e.slot(`item-${l.key}`)}
@@ -147,10 +147,10 @@
147
147
  </ol>
148
148
  ${m}${e.slot("title")}
149
149
  </nav>
150
- `};return{render(){const n=e.props;return n.items&&n.items.length>0?s(n.items):Zt({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:ve(n,uo)})}}}}),fl={name:"MozBreadCrumb",core:Io,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},Fo={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."},Bo=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:Ye&&Ye.tagName.toUpperCase()==="SCRIPT"&&Ye.src||new URL("index.cjs",document.baseURI).href).href,gl=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:Ye&&Ye.tagName.toUpperCase()==="SCRIPT"&&Ye.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:Ye&&Ye.tagName.toUpperCase()==="SCRIPT"&&Ye.src||new URL("index.cjs",document.baseURI).href).href,wl=new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%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:Ye&&Ye.tagName.toUpperCase()==="SCRIPT"&&Ye.src||new URL("index.cjs",document.baseURI).href).href,bl=new Set(["isReadOnly","isCustomState","headerMsg","contentMsg","filterdRowCount","totalRowCount","useImg","selectImg","messages","composed","class","style"]),Cl={custom_empty:Bo,data_empty:gl,result_empty:vl,search_empty:wl},yl={custom_empty:"customEmptyHeader",data_empty:"dataEmptyHeader",result_empty:"resultEmptyHeader",search_empty:"searchEmptyHeader"},$l={custom_empty:"customEmptyContent",data_empty:"dataEmptyContent",result_empty:"resultEmptyContent",search_empty:"searchEmptyContent"},Oo=we({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]||Fo[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=ve(n,bl);if(n.composed)return o.html`
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:fe(n,bo)})}}}}),Ll={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:Ye&&Ye.tagName.toUpperCase()==="SCRIPT"&&Ye.src||new URL("index.cjs",document.baseURI).href).href,zl=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:Ye&&Ye.tagName.toUpperCase()==="SCRIPT"&&Ye.src||new URL("index.cjs",document.baseURI).href).href,xl=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:Ye&&Ye.tagName.toUpperCase()==="SCRIPT"&&Ye.src||new URL("index.cjs",document.baseURI).href).href,Al=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:Ye&&Ye.tagName.toUpperCase()==="SCRIPT"&&Ye.src||new URL("index.cjs",document.baseURI).href).href,Dl=new Set(["isReadOnly","isCustomState","headerMsg","contentMsg","filterdRowCount","totalRowCount","useImg","selectImg","messages","composed","class","style"]),Vl={custom_empty:Ko,data_empty:zl,result_empty:xl,search_empty:Al},Il={custom_empty:"customEmptyHeader",data_empty:"dataEmptyHeader",result_empty:"resultEmptyHeader",search_empty:"searchEmptyHeader"},Rl={custom_empty:"customEmptyContent",data_empty:"dataEmptyContent",result_empty:"resultEmptyContent",search_empty:"searchEmptyContent"},Go=ve({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=fe(n,Dl);if(n.composed)return o.html`
151
151
  <div
152
- class=${L("empty-container","empty-composed","moz-empty-state",n.class)}
153
- style=${ee.styleMap(me(n.style))}
152
+ class=${A("empty-container","empty-composed","moz-empty-state",n.class)}
153
+ style=${J.styleMap(me(n.style))}
154
154
  ${ce(i)}
155
155
  >
156
156
  ${e.slots.has("icon")?o.html`<div class="empty-icon">${e.slot("icon")}</div>`:o.nothing}
@@ -159,15 +159,15 @@
159
159
  ${e.slots.has("actions")?o.html`<div class="empty-actions">${e.slot("actions")}</div>`:o.nothing}
160
160
  ${e.slots.has("customState")?o.html`<div class="empty-content">${e.slot("customState")}</div>`:o.nothing}
161
161
  </div>
162
- `;const a=s();if(!a)return o.nothing;const m=Cl[a]||Bo,c=typeof n.headerMsg=="string"?n.headerMsg:t(yl[a]||"customEmptyHeader"),l=typeof n.contentMsg=="string"?n.contentMsg:t($l[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=${L("empty-container","moz-empty-state",n.class)} style=${ee.styleMap(me(n.style))} ${ce(i)}>
162
+ `;const a=s();if(!a)return o.nothing;const m=Vl[a]||Ko,c=typeof n.headerMsg=="string"?n.headerMsg:t(Il[a]||"customEmptyHeader"),l=typeof n.contentMsg=="string"?n.contentMsg:t(Rl[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=${A("empty-container","moz-empty-state",n.class)} style=${J.styleMap(me(n.style))} ${ce(i)}>
164
164
  ${h}
165
165
  <div class="empty-heading">${c}</div>
166
- <div class="empty-content"><span>${To.unsafeHTML(l)}</span></div>
166
+ <div class="empty-content"><span>${Io.unsafeHTML(l)}</span></div>
167
167
  <div class="empty-content">${e.slot("customState")}</div>
168
168
  ${e.slots.has("actions")?o.html`<div class="empty-actions">${e.slot("actions")}</div>`:o.nothing}
169
169
  </div>
170
- `}}}}),Sl={name:"MozEmptyState",core:Oo,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 jt(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">
170
+ `}}}}),ql={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
171
  <path
172
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
173
  fill=${t?"var(--moz-color-surface-subtle)":"var(--moz-color-surface)"}
@@ -176,23 +176,23 @@
176
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"
177
177
  stroke=${t?"var(--moz-color-text-muted)":e}
178
178
  ></path>
179
- </svg>`}function Xt(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">
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
180
  <path
181
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"
182
182
  fill=${t?"var(--moz-color-text-muted)":e}
183
183
  ></path>
184
- </svg>`}function Qt(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">
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
185
  <rect width="12" height="12" rx="2" fill=${t?"var(--moz-color-text-muted)":e}></rect>
186
186
  <path d="M3 6H9" stroke="var(--moz-color-on-accent)" stroke-width="2" stroke-linecap="round"></path>
187
- </svg>`}const kl=new Set(["label","fieldId","disabled","readonly","checked","indeterminate","modelValue","class","style"]);function $t(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`
187
+ </svg>`}const Ol=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`
188
188
  <div
189
- class=${L("moz-checkbox",{"cursor-pointer":!s,"cursor-not-allowed":s,disabled:s},e.class)}
189
+ class=${A("moz-checkbox",{"cursor-pointer":!s,"cursor-not-allowed":s,disabled:s},e.class)}
190
190
  @click=${a=>{s||(a.preventDefault(),a.stopPropagation(),i())}}
191
191
  >
192
192
  <div class="checkbox-icon-wrapper">
193
193
  <input
194
194
  type="checkbox"
195
- class=${L("checkbox-input",{"cursor-pointer":!s,"cursor-not-allowed":s})}
195
+ class=${A("checkbox-input",{"cursor-pointer":!s,"cursor-not-allowed":s})}
196
196
  .checked=${t}
197
197
  ?disabled=${s}
198
198
  tabindex=${s?-1:0}
@@ -200,21 +200,21 @@
200
200
  @change=${a=>{a.target.checked=t,i()}}
201
201
  />
202
202
  <div class="checkbox-visual">
203
- ${n?Qt(void 0,s,"checked-icon"):t?Xt(void 0,s,"checked-icon"):jt(void 0,s,"check-icon")}
203
+ ${n?so(void 0,s,"checked-icon"):t?oo(void 0,s,"checked-icon"):to(void 0,s,"check-icon")}
204
204
  </div>
205
205
  </div>
206
206
  </div>
207
- `}const Ho=we({name:"moz-checkbox",defaults:{disabled:!1,readonly:!1,indeterminate:!1,modelValue:!1},setup(e){const t=zo();let s=!1;const n=()=>{const p=e.props;return e.controlled("checked")?p.checked??!1:p.modelValue??!1},i=()=>{const p=!n();e.controlled("checked")||e.emit("update:modelValue",p),e.emit("change",p)},a=p=>{var v;const u=e.props;u.disabled||u.readonly||(p.preventDefault(),p.stopPropagation(),i(),(v=p.currentTarget.querySelector("input"))==null||v.focus())},m=p=>p.stopPropagation(),c=p=>{const u=e.props,v=p.target;if(u.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=p=>{const u=e.props;u.disabled||u.readonly||(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),i())},h=()=>{s=!0,e.requestUpdate()},r=()=>{s=!1,e.requestUpdate()};return{render(){const p=e.props,u=p.fieldId||t,v=n(),$=ve(p,kl);return o.html`
207
+ `}const Yo=ve({name:"moz-checkbox",defaults:{disabled:!1,readonly:!1,indeterminate:!1,modelValue:!1},setup(e){const t=Oo();let s=!1;const n=()=>{const p=e.props;return e.controlled("checked")?p.checked??!1:p.modelValue??!1},i=()=>{const p=!n();e.controlled("checked")||e.emit("update:modelValue",p),e.emit("change",p)},a=p=>{var v;const u=e.props;u.disabled||u.readonly||(p.preventDefault(),p.stopPropagation(),i(),(v=p.currentTarget.querySelector("input"))==null||v.focus())},m=p=>p.stopPropagation(),c=p=>{const u=e.props,v=p.target;if(u.readonly){v.checked=n();return}const S=v.checked;e.controlled("checked")?(v.checked=n(),e.emit("change",S)):(e.emit("update:modelValue",S),e.emit("change",S))},l=p=>{const u=e.props;u.disabled||u.readonly||(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),i())},h=()=>{s=!0,e.requestUpdate()},r=()=>{s=!1,e.requestUpdate()};return{render(){const p=e.props,u=p.fieldId||t,v=n(),S=fe(p,Ol);return o.html`
208
208
  <div
209
- class=${L("moz-checkbox",{"cursor-pointer":!p.disabled&&!p.readonly,"cursor-not-allowed":p.disabled,disabled:p.disabled,"cursor-default":p.readonly&&!p.disabled})}
209
+ class=${A("moz-checkbox",{"cursor-pointer":!p.disabled&&!p.readonly,"cursor-not-allowed":p.disabled,disabled:p.disabled,"cursor-default":p.readonly&&!p.disabled})}
210
210
  @click=${a}
211
211
  >
212
212
  <div class="checkbox-icon-wrapper">
213
213
  <input
214
214
  id=${u}
215
215
  type="checkbox"
216
- class=${L("checkbox-input",{"cursor-pointer":!p.disabled&&!p.readonly,"cursor-not-allowed":p.disabled,"cursor-default":p.readonly&&!p.disabled})}
217
- ${ce($)}
216
+ class=${A("checkbox-input",{"cursor-pointer":!p.disabled&&!p.readonly,"cursor-not-allowed":p.disabled,"cursor-default":p.readonly&&!p.disabled})}
217
+ ${ce(S)}
218
218
  .checked=${v}
219
219
  ?disabled=${!!p.disabled}
220
220
  tabindex=${p.disabled?-1:0}
@@ -224,16 +224,16 @@
224
224
  @blur=${r}
225
225
  @keydown=${l}
226
226
  />
227
- <div class=${L("checkbox-visual",{focused:s})}>
228
- ${p.indeterminate?Qt(void 0,!!p.disabled,"checked-icon"):v?Xt(void 0,!!p.disabled,"checked-icon"):jt(void 0,!!p.disabled,"check-icon")}
227
+ <div class=${A("checkbox-visual",{focused:s})}>
228
+ ${p.indeterminate?so(void 0,!!p.disabled,"checked-icon"):v?oo(void 0,!!p.disabled,"checked-icon"):to(void 0,!!p.disabled,"check-icon")}
229
229
  </div>
230
230
  </div>
231
- ${p.label?Be({for:u,disabled:p.disabled},p.label,"moz-checkbox-label"):o.nothing}
231
+ ${p.label?Fe({for:u,disabled:p.disabled},p.label,"moz-checkbox-label"):o.nothing}
232
232
  </div>
233
- `}}}}),El={name:"MozCheckBox",core:Ho,booleanProps:["checked","disabled","indeterminate","modelValue","readonly"],props:["label","fieldId","disabled","readonly","checked","indeterminate","modelValue"],emits:["change","update:modelValue"],slots:[],expose:!1},_o=["accent","neutral","info","success","warning","danger"],Pl=new Set(["label","text","disabled","required","displayExpr","valueExpr","tooltipExpr","disabledExpr","toneExpr","itemsSource","value","name","direction","variant","size","iconOnly","labelPosition","modelValue","class","style"]),No=we({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=Xe("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"&&_o.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,p=r.itemsSource??[];return L("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===p.length-1,"first-v":r.variant==="boxed"&&r.direction==="vertical"&&l===0,"last-v":r.variant==="boxed"&&r.direction==="vertical"&&l===p.length-1,disabled:h})},c=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",p=l.displayExpr??"label",u=!!l.disabled,v=l.modelValue,$=l.value!==void 0&&h.length===0,R=!$&&l.variant==="segment",C=ve(l,Pl),y=()=>o.html`
233
+ `}}}}),Fl={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"],Bl=new Set(["label","text","disabled","required","displayExpr","valueExpr","tooltipExpr","disabledExpr","toneExpr","itemsSource","value","name","direction","variant","size","iconOnly","labelPosition","modelValue","class","style"]),jo=ve({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=Xe("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,p=r.itemsSource??[];return A("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===p.length-1,"first-v":r.variant==="boxed"&&r.direction==="vertical"&&l===0,"last-v":r.variant==="boxed"&&r.direction==="vertical"&&l===p.length-1,disabled:h})},c=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",p=l.displayExpr??"label",u=!!l.disabled,v=l.modelValue,S=l.value!==void 0&&h.length===0,I=!S&&l.variant==="segment",w=fe(l,Bl),y=()=>o.html`
234
234
  <div class="radio-container">
235
235
  <div class="radio">
236
- <label for=${t} class=${L("label-container",{disabled:u})}>
236
+ <label for=${t} class=${A("label-container",{disabled:u})}>
237
237
  <div class="radio-icon-wrapper">
238
238
  <input
239
239
  type="radio"
@@ -246,54 +246,54 @@
246
246
  @change=${()=>{u||e.emit("update:modelValue",String(l.value))}}
247
247
  />
248
248
  <span
249
- class=${L("dot",{active:String(v)===String(l.value),disabled:u,"borderless-focus":!u})}
249
+ class=${A("dot",{active:String(v)===String(l.value),disabled:u,"borderless-focus":!u})}
250
250
  ></span>
251
251
  </div>
252
252
  ${l.text?o.html`<span class="radio-label-text">${l.text}</span>`:o.nothing}
253
253
  </label>
254
254
  </div>
255
255
  </div>
256
- `,D=()=>{const Y=K=>String(v)===String(K[r]??""),Q=h.length,le=h.findIndex(Y),ue=(K,k)=>{for(let S=1;S<=Q;S+=1){const x=(K+k*S+Q*Q)%Q;if(!a(h[x]))return x}return-1},U=K=>{for(let k=0;k<Q;k+=1){const S=K===1?k:Q-1-k;if(!a(h[S]))return S}return-1},z=le>=0&&!a(h[le])?le:U(1),W=K=>Array.from(K.querySelectorAll('[role="radio"]')),J=(K,k)=>{if(k<0)return;K.preventDefault(),K.stopPropagation();const S=K.currentTarget,x=W(S)[k];x==null||x.focus(),e.emit("update:modelValue",h[k][r]??"");let P=0;const A=()=>{const f=W(S)[k];if(f&&f.getAttribute("aria-checked")==="true"){document.activeElement!==f&&f.focus();return}++P<20&&n(A)};n(A)},ne=K=>{var A,f;if(u||Q===0)return;const k=K.currentTarget,S=(f=(A=K.target)==null?void 0:A.closest)==null?void 0:f.call(A,'[role="radio"]'),x=S?W(k).indexOf(S):-1,P=x>=0?x:le>=0?le:0;switch(K.key){case"ArrowRight":case"ArrowDown":J(K,ue(P,1));break;case"ArrowLeft":case"ArrowUp":J(K,ue(P,-1));break;case"Home":J(K,U(1));break;case"End":J(K,U(-1));break}},X=!!l.iconOnly,B=e.slots.has("item-icon"),se=!X&&e.slots.has("item-badge");return o.html`
256
+ `,P=()=>{const Y=G=>String(v)===String(G[r]??""),j=h.length,le=h.findIndex(Y),ue=(G,E)=>{for(let k=1;k<=j;k+=1){const z=(G+E*k+j*j)%j;if(!a(h[z]))return z}return-1},W=G=>{for(let E=0;E<j;E+=1){const k=G===1?E:j-1-E;if(!a(h[k]))return k}return-1},D=le>=0&&!a(h[le])?le:W(1),K=G=>Array.from(G.querySelectorAll('[role="radio"]')),ee=(G,E)=>{if(E<0)return;G.preventDefault(),G.stopPropagation();const k=G.currentTarget,z=K(k)[E];z==null||z.focus(),e.emit("update:modelValue",h[E][r]??"");let T=0;const V=()=>{const f=K(k)[E];if(f&&f.getAttribute("aria-checked")==="true"){document.activeElement!==f&&f.focus();return}++T<20&&n(V)};n(V)},ne=G=>{var V,f;if(u||j===0)return;const E=G.currentTarget,k=(f=(V=G.target)==null?void 0:V.closest)==null?void 0:f.call(V,'[role="radio"]'),z=k?K(E).indexOf(k):-1,T=z>=0?z:le>=0?le:0;switch(G.key){case"ArrowRight":case"ArrowDown":ee(G,ue(T,1));break;case"ArrowLeft":case"ArrowUp":ee(G,ue(T,-1));break;case"Home":ee(G,W(1));break;case"End":ee(G,W(-1));break}},Q=!!l.iconOnly,F=e.slots.has("item-icon"),se=!Q&&e.slots.has("item-badge");return o.html`
257
257
  <div
258
- class=${L("radio-container",{segment:!0,"disabled-container":u,"size-sm":l.size==="sm","size-md":l.size!=="sm","icon-only":X})}
258
+ class=${A("radio-container",{segment:!0,"disabled-container":u,"size-sm":l.size==="sm","size-md":l.size!=="sm","icon-only":Q})}
259
259
  @keydown=${ne}
260
- @click=${K=>K.stopPropagation()}
260
+ @click=${G=>G.stopPropagation()}
261
261
  >
262
- ${h.map((K,k)=>{const S=Y(K),x=a(K),P=String(K[p]??""),A=P||String(K[r]??""),f={item:K,index:k,active:S,disabled:x};return o.html`
262
+ ${h.map((G,E)=>{const k=Y(G),z=a(G),T=String(G[p]??""),V=T||String(G[r]??""),f={item:G,index:E,active:k,disabled:z};return o.html`
263
263
  <button
264
264
  type="button"
265
265
  role="radio"
266
- aria-checked=${S?"true":"false"}
267
- aria-label=${X?A:o.nothing}
268
- data-value=${String(K[r]??"")}
269
- data-tone=${i(K)??o.nothing}
270
- tabindex=${k===z?"0":"-1"}
271
- ?disabled=${x}
272
- class=${L("segment-button",{"is-active":S,disabled:x})}
273
- @click=${()=>{x||e.emit("update:modelValue",K[r]??"")}}
266
+ aria-checked=${k?"true":"false"}
267
+ aria-label=${Q?V:o.nothing}
268
+ data-value=${String(G[r]??"")}
269
+ data-tone=${i(G)??o.nothing}
270
+ tabindex=${E===D?"0":"-1"}
271
+ ?disabled=${z}
272
+ class=${A("segment-button",{"is-active":k,disabled:z})}
273
+ @click=${()=>{z||e.emit("update:modelValue",G[r]??"")}}
274
274
  >
275
- ${B?o.html`<span class="segment-icon">${e.slot("item-icon",f)}</span>`:o.nothing}
276
- ${X?o.nothing:P}
275
+ ${F?o.html`<span class="segment-icon">${e.slot("item-icon",f)}</span>`:o.nothing}
276
+ ${Q?o.nothing:T}
277
277
  ${se?o.html`<span class="segment-badge">${e.slot("item-badge",f)}</span>`:o.nothing}
278
278
  </button>
279
279
  `})}
280
280
  </div>
281
- `},E=()=>o.html`
281
+ `},$=()=>o.html`
282
282
  <div
283
- class=${L("radio-container",{"disabled-container":u,borderless:l.variant==="borderless",vertical:l.direction==="vertical"})}
283
+ class=${A("radio-container",{"disabled-container":u,borderless:l.variant==="borderless",vertical:l.direction==="vertical"})}
284
284
  >
285
- ${h.map((Y,Q)=>{const le=a(Y);return o.html`
285
+ ${h.map((Y,j)=>{const le=a(Y);return o.html`
286
286
  <div class="radio">
287
287
  <label
288
- for=${`${t}_${Q}`}
289
- class=${m(Q,le)}
290
- style=${ee.styleMap(c(Q))}
288
+ for=${`${t}_${j}`}
289
+ class=${m(j,le)}
290
+ style=${J.styleMap(c(j))}
291
291
  >
292
292
  <div class="radio-icon-wrapper">
293
293
  <input
294
294
  type="radio"
295
295
  name=${l.name||t}
296
- id=${`${t}_${Q}`}
296
+ id=${`${t}_${j}`}
297
297
  .checked=${v===String(Y[r]??"")}
298
298
  ?disabled=${le}
299
299
  class="radio-input"
@@ -301,7 +301,7 @@
301
301
  @change=${()=>e.emit("update:modelValue",String(Y[r]??""))}
302
302
  />
303
303
  <span
304
- class=${L("dot",{active:v===String(Y[r]??""),disabled:le,"borderless-focus":l.variant!=="boxed"&&!le})}
304
+ class=${A("dot",{active:v===String(Y[r]??""),disabled:le,"borderless-focus":l.variant!=="boxed"&&!le})}
305
305
  ></span>
306
306
  </div>
307
307
  <span class="radio-label-text">${String(Y[p]??"")}</span>
@@ -309,54 +309,54 @@
309
309
  </div>
310
310
  `})}
311
311
  </div>
312
- `,V="aria-label"in C||"aria-labelledby"in C,G=R&&!V&&l.label?l.label:o.nothing;return o.html`
312
+ `,x="aria-label"in w||"aria-labelledby"in w,_=I&&!x&&l.label?l.label:o.nothing;return o.html`
313
313
  <div
314
- class=${L("moz-radio-buttons",{"label-position-left":l.labelPosition==="left"},l.class)}
315
- style=${ee.styleMap(me(l.style))}
316
- role=${R?"radiogroup":o.nothing}
317
- aria-label=${G}
318
- ${ce(C)}
314
+ class=${A("moz-radio-buttons",{"label-position-left":l.labelPosition==="left"},l.class)}
315
+ style=${J.styleMap(me(l.style))}
316
+ role=${I?"radiogroup":o.nothing}
317
+ aria-label=${_}
318
+ ${ce(w)}
319
319
  >
320
- ${l.label?Be({disabled:u,required:l.required},l.label):o.nothing}
321
- ${$?y():R?D():E()}
320
+ ${l.label?Fe({disabled:u,required:l.required},l.label):o.nothing}
321
+ ${S?y():I?P():$()}
322
322
  </div>
323
- `}}}}),Ml={name:"MozRadio",core:No,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 Jt(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">
323
+ `}}}}),Hl={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">
324
324
  <g>
325
325
  <path
326
326
  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"
327
327
  fill=${e}
328
328
  ></path>
329
329
  </g>
330
- </svg>`}const Tl=new Set(["label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue","class","style"]),Uo=we({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,p=[];return r.required&&p.push({message:r.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",r.label||r.name||""),type:"save",validator:u=>!!u}),[...p,...r.rules??[]]},i=async(r,p)=>{const u=e.props,v=n();if(v.length<=0||u.disabled||u.isReadOnly)return!0;t[p]="";const $=v.filter(R=>R.type===p);for(const R of $)if(!await R.validator(r))return t[p]=R.message,e.requestUpdate(),!1;return e.requestUpdate(),!0},a=r=>{const p=r.target.value;t.save="",t.blur="",e.emit("update:modelValue",p),i(p,"change")},m=()=>{t.save="",s=!0,e.requestUpdate()},c=r=>{const p=r.target.value;i(p,"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,p=String(r.modelValue??""),u=t.save||t.blur||t.change,v=!!r.useInvalidV2,$=r.width?typeof r.width=="number"?`${r.width}px`:r.width:"100%",R=ve(r,Tl);return o.html`
330
+ </svg>`}const Nl=new Set(["label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue","class","style"]),Xo=ve({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,p=[];return r.required&&p.push({message:r.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",r.label||r.name||""),type:"save",validator:u=>!!u}),[...p,...r.rules??[]]},i=async(r,p)=>{const u=e.props,v=n();if(v.length<=0||u.disabled||u.isReadOnly)return!0;t[p]="";const S=v.filter(I=>I.type===p);for(const I of S)if(!await I.validator(r))return t[p]=I.message,e.requestUpdate(),!1;return e.requestUpdate(),!0},a=r=>{const p=r.target.value;t.save="",t.blur="",e.emit("update:modelValue",p),i(p,"change")},m=()=>{t.save="",s=!0,e.requestUpdate()},c=r=>{const p=r.target.value;i(p,"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,p=String(r.modelValue??""),u=t.save||t.blur||t.change,v=!!r.useInvalidV2,S=r.width?typeof r.width=="number"?`${r.width}px`:r.width:"100%",I=fe(r,Nl);return o.html`
331
331
  <div
332
- class=${L("moz-input-wrapper",{"is-invalid":u!==""},r.class)}
333
- style=${ee.styleMap({width:$,...me(r.style)})}
332
+ class=${A("moz-input-wrapper",{"is-invalid":u!==""},r.class)}
333
+ style=${J.styleMap({width:S,...me(r.style)})}
334
334
  >
335
335
  <div class="input-wrapper">
336
- ${r.label?Be({isReadOnly:r.isReadOnly,required:r.required},r.label,"input-label"):o.nothing}
336
+ ${r.label?Fe({isReadOnly:r.isReadOnly,required:r.required},r.label,"input-label"):o.nothing}
337
337
  <input
338
- class=${L("moz-input",{disabled:r.disabled,"read-only":r.isReadOnly,"has-inside-message":!v&&r.messagePosition==="inside"&&u!==""&&!s,"has-invalid-icon":v&&u!==""&&!s})}
339
- name=${Me.ifDefined(r.name)}
338
+ class=${A("moz-input",{disabled:r.disabled,"read-only":r.isReadOnly,"has-inside-message":!v&&r.messagePosition==="inside"&&u!==""&&!s,"has-invalid-icon":v&&u!==""&&!s})}
339
+ name=${Ce.ifDefined(r.name)}
340
340
  type=${r.type??"text"}
341
- placeholder=${Me.ifDefined(r.placeholder)}
341
+ placeholder=${Ce.ifDefined(r.placeholder)}
342
342
  ?disabled=${!!r.disabled}
343
343
  ?readonly=${!!r.isReadOnly}
344
- .value=${Tt.live(p)}
345
- ${ce(R)}
344
+ .value=${xt.live(p)}
345
+ ${ce(I)}
346
346
  @input=${a}
347
347
  @keypress=${l}
348
348
  @focus=${m}
349
349
  @blur=${c}
350
350
  />
351
351
  ${v&&u!==""&&!s?o.html`<div class="moz-input-invalid-icon-v2">
352
- ${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message:u}):o.html`<div title=${u}>${Jt("var(--moz-color-danger)")}</div>`}
352
+ ${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message:u}):o.html`<div title=${u}>${lo("var(--moz-color-danger)")}</div>`}
353
353
  </div>`:o.nothing}
354
- ${!v&&u!==""&&!s?o.html`<span class=${L("moz-input-invalid-message",`position-${r.messagePosition}`)}
354
+ ${!v&&u!==""&&!s?o.html`<span class=${A("moz-input-invalid-message",`position-${r.messagePosition}`)}
355
355
  >${u}</span
356
356
  >`:o.nothing}
357
357
  </div>
358
358
  </div>
359
- `}}}}),xl={name:"MozInput",core:Uo,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 Wo(){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">
359
+ `}}}}),_l={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">
360
360
  <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>
361
361
  <path
362
362
  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"
@@ -370,7 +370,7 @@
370
370
  stroke-linecap="round"
371
371
  stroke-linejoin="round"
372
372
  ></path>
373
- </svg>`}function Ko(){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">
373
+ </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">
374
374
  <path
375
375
  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"
376
376
  stroke="var(--moz-color-text-secondary)"
@@ -383,23 +383,23 @@
383
383
  stroke-linecap="round"
384
384
  stroke-linejoin="round"
385
385
  ></path>
386
- </svg>`}const Ll=new Set(["label","value","name","placeholder","required","disabled","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue","class","style"]),zl=typeof navigator<"u"&&/Edg/.test(navigator.userAgent)?"edge-password":"",Go=we({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 u=e.props,v=[];return u.required&&v.push({message:u.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",u.label||u.name||""),type:"save",validator:$=>!!$}),[...v,...u.rules??[]]},a=async(u,v)=>{const $=e.props,R=i();if(R.length<=0||$.disabled)return!0;t[v]="";for(const C of R.filter(y=>y.type===v))if(!await C.validator(u))return t[v]=C.message,e.requestUpdate(),!1;return e.requestUpdate(),!0},m=u=>{const v=u.target.value;t.save="",t.blur="",e.emit("update:modelValue",v),a(v,"change")},c=()=>{t.save="",s=!0,e.requestUpdate()},l=u=>{a(u.target.value,"blur"),s=!1,e.requestUpdate()},h=u=>{u.key==="Enter"&&e.emit("enter",u)},r=()=>{e.props.disabled||(n=!n,e.requestUpdate())},p={validate:(u="save")=>a(String(e.props.modelValue??""),u),initValidator:()=>{t.change=t.blur=t.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(p),e.onCleanup(()=>{var u;return(u=e.validator)==null?void 0:u.removeValidator(p)})),{onMounted:u=>e.emit("mounted",(u==null?void 0:u.querySelector("input"))??null),render(){const u=e.props;u.disabled&&(n=!1);const v=String(u.modelValue??""),$=t.save||t.blur||t.change,R=!!u.useInvalidV2,C=u.width?typeof u.width=="number"?`${u.width}px`:u.width:"100%",y=ve(u,Ll);return o.html`
386
+ </svg>`}const Ul=new Set(["label","value","name","placeholder","required","disabled","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue","class","style"]),Wl=typeof navigator<"u"&&/Edg/.test(navigator.userAgent)?"edge-password":"",es=ve({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 u=e.props,v=[];return u.required&&v.push({message:u.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",u.label||u.name||""),type:"save",validator:S=>!!S}),[...v,...u.rules??[]]},a=async(u,v)=>{const S=e.props,I=i();if(I.length<=0||S.disabled)return!0;t[v]="";for(const w of I.filter(y=>y.type===v))if(!await w.validator(u))return t[v]=w.message,e.requestUpdate(),!1;return e.requestUpdate(),!0},m=u=>{const v=u.target.value;t.save="",t.blur="",e.emit("update:modelValue",v),a(v,"change")},c=()=>{t.save="",s=!0,e.requestUpdate()},l=u=>{a(u.target.value,"blur"),s=!1,e.requestUpdate()},h=u=>{u.key==="Enter"&&e.emit("enter",u)},r=()=>{e.props.disabled||(n=!n,e.requestUpdate())},p={validate:(u="save")=>a(String(e.props.modelValue??""),u),initValidator:()=>{t.change=t.blur=t.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(p),e.onCleanup(()=>{var u;return(u=e.validator)==null?void 0:u.removeValidator(p)})),{onMounted:u=>e.emit("mounted",(u==null?void 0:u.querySelector("input"))??null),render(){const u=e.props;u.disabled&&(n=!1);const v=String(u.modelValue??""),S=t.save||t.blur||t.change,I=!!u.useInvalidV2,w=u.width?typeof u.width=="number"?`${u.width}px`:u.width:"100%",y=fe(u,Ul);return o.html`
387
387
  <div
388
- class=${L("moz-password-input-container",{"is-invalid":$!=="",disabled:u.disabled},u.class)}
389
- style=${ee.styleMap(me(u.style))}
388
+ class=${A("moz-password-input-container",{"is-invalid":S!=="",disabled:u.disabled},u.class)}
389
+ style=${J.styleMap(me(u.style))}
390
390
  >
391
391
  <div class="input-wrapper">
392
- ${u.label?Be({disabled:u.disabled,required:u.required},u.label,"moz-input-label"):o.nothing}
393
- <div class="moz-password-input-wrapper" style="width:${C}">
392
+ ${u.label?Fe({disabled:u.disabled,required:u.required},u.label,"moz-input-label"):o.nothing}
393
+ <div class="moz-password-input-wrapper" style="width:${w}">
394
394
  <input
395
395
  autocomplete="new-password"
396
- style="width:${C}"
397
- class=${L("moz-input",zl,{disabled:u.disabled,"has-inside-message":!R&&u.messagePosition==="inside"&&$!==""&&!s,"has-invalid-icon":R&&$!==""&&!s})}
398
- name=${Me.ifDefined(u.name)}
396
+ style="width:${w}"
397
+ class=${A("moz-input",Wl,{disabled:u.disabled,"has-inside-message":!I&&u.messagePosition==="inside"&&S!==""&&!s,"has-invalid-icon":I&&S!==""&&!s})}
398
+ name=${Ce.ifDefined(u.name)}
399
399
  type=${n?"text":"password"}
400
- placeholder=${Me.ifDefined(u.placeholder)}
400
+ placeholder=${Ce.ifDefined(u.placeholder)}
401
401
  ?disabled=${!!u.disabled}
402
- .value=${Tt.live(v)}
402
+ .value=${xt.live(v)}
403
403
  ${ce(y)}
404
404
  @input=${m}
405
405
  @keypress=${h}
@@ -410,60 +410,60 @@
410
410
  type="button"
411
411
  aria-label=${n?e.locale.PasswordInput.hidePassword:e.locale.PasswordInput.showPassword}
412
412
  aria-pressed=${n?"true":"false"}
413
- class=${L("icon-container password-icon",{"cursor-pointer":!u.disabled,"cursor-not-allowed":u.disabled})}
413
+ class=${A("icon-container password-icon",{"cursor-pointer":!u.disabled,"cursor-not-allowed":u.disabled})}
414
414
  ?disabled=${!!u.disabled}
415
415
  @click=${r}
416
416
  >
417
- ${n?Wo():Ko()}
417
+ ${n?Qo():Jo()}
418
418
  </button>
419
- ${R&&$!==""&&!s?o.html`<div class="moz-input-invalid-icon-v2">
420
- ${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message:$}):o.html`<div title=${$}>${Jt("var(--moz-color-danger)")}</div>`}
419
+ ${I&&S!==""&&!s?o.html`<div class="moz-input-invalid-icon-v2">
420
+ ${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message:S}):o.html`<div title=${S}>${lo("var(--moz-color-danger)")}</div>`}
421
421
  </div>`:o.nothing}
422
- ${!R&&$!==""&&!s?o.html`<span class=${L("moz-input-invalid-message",`position-${u.messagePosition}`)}
423
- >${$}</span
422
+ ${!I&&S!==""&&!s?o.html`<span class=${A("moz-input-invalid-message",`position-${u.messagePosition}`)}
423
+ >${S}</span
424
424
  >`:o.nothing}
425
425
  </div>
426
426
  </div>
427
427
  </div>
428
- `}}}}),Al={name:"MozPasswordInput",core:Go,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},Vl=new Set(["id","label","width","height","required","disabled","rules","maxLength","resize","immediatelyFocus","requiredMessage","modelValue","class","style"]),Yo=we({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,p=s();if(p.length<=0||r.disabled)return!0;t[h]="";for(const u of p.filter(v=>v.type===h))if(!await u.validator(l))return t[h]=u.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()},c={validate:(l="save")=>n(String(e.props.modelValue??""),l),initValidator:()=>{t.change=t.blur=t.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(c),e.onCleanup(()=>{var l;return(l=e.validator)==null?void 0:l.removeValidator(c)})),{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,p=l.width?typeof l.width=="number"?`${Te(l.width)}rem`:l.width:"100%",u=`${Te(l.height??80)}rem`,v=l.resize??"none",$=v==="none"?`height:${u}`:`min-height:${u}`,R=h.length,C=ve(l,Vl);return o.html`
428
+ `}}}}),Kl={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},Gl=new Set(["id","label","width","height","required","disabled","rules","maxLength","resize","immediatelyFocus","requiredMessage","modelValue","class","style"]),ts=ve({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,p=s();if(p.length<=0||r.disabled)return!0;t[h]="";for(const u of p.filter(v=>v.type===h))if(!await u.validator(l))return t[h]=u.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()},c={validate:(l="save")=>n(String(e.props.modelValue??""),l),initValidator:()=>{t.change=t.blur=t.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(c),e.onCleanup(()=>{var l;return(l=e.validator)==null?void 0:l.removeValidator(c)})),{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,p=l.width?typeof l.width=="number"?`${Me(l.width)}rem`:l.width:"100%",u=`${Me(l.height??80)}rem`,v=l.resize??"none",S=v==="none"?`height:${u}`:`min-height:${u}`,I=h.length,w=fe(l,Gl);return o.html`
429
429
  <div
430
- class=${L("moz-textarea-wrapper",{disabled:l.disabled},l.class)}
431
- style="width:${p};${$}"
430
+ class=${A("moz-textarea-wrapper",{disabled:l.disabled},l.class)}
431
+ style="width:${p};${S}"
432
432
  >
433
433
  <div class="textarea-inner">
434
- ${l.label?Be({for:l.id,disabled:l.disabled,required:l.required},l.label):o.nothing}
435
- <div class=${L("moz-textarea-box",{disabled:l.disabled,invalid:r!==""})}>
434
+ ${l.label?Fe({for:l.id,disabled:l.disabled,required:l.required},l.label):o.nothing}
435
+ <div class=${A("moz-textarea-box",{disabled:l.disabled,invalid:r!==""})}>
436
436
  <textarea
437
- id=${Me.ifDefined(l.id)}
438
- ${ce(C)}
439
- .value=${Tt.live(h)}
437
+ id=${Ce.ifDefined(l.id)}
438
+ ${ce(w)}
439
+ .value=${xt.live(h)}
440
440
  ?disabled=${!!l.disabled}
441
- maxlength=${Me.ifDefined(l.maxLength??void 0)}
442
- class=${L("moz-textarea",{disabled:l.disabled})}
443
- style=${ee.styleMap({resize:v==="none"?void 0:v,height:v==="none"?void 0:"auto"})}
441
+ maxlength=${Ce.ifDefined(l.maxLength??void 0)}
442
+ class=${A("moz-textarea",{disabled:l.disabled})}
443
+ style=${J.styleMap({resize:v==="none"?void 0:v,height:v==="none"?void 0:"auto"})}
444
444
  @input=${i}
445
445
  @blur=${a}
446
446
  @focus=${m}
447
447
  ></textarea>
448
- ${l.maxLength?o.html`<div class="char-counter"><span>${R}</span><span>/</span><span>${l.maxLength}</span></div>`:o.nothing}
448
+ ${l.maxLength?o.html`<div class="char-counter"><span>${I}</span><span>/</span><span>${l.maxLength}</span></div>`:o.nothing}
449
449
  </div>
450
450
  </div>
451
451
  ${r!==""?o.html`<span class="moz-textarea-invalid-message">${r}</span>`:o.nothing}
452
452
  </div>
453
- `}}}}),Dl={name:"MozTextArea",core:Yo,booleanProps:["disabled","immediatelyFocus","required"],props:["id","label","width","height","required","disabled","rules","maxLength","resize","immediatelyFocus","requiredMessage","modelValue"],emits:["update:modelValue"],slots:[],expose:!1};function Rl(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">
453
+ `}}}}),Yl={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 Zl(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">
454
454
  <path d="M7 1V13M1 7H13" stroke=${t?"var(--moz-color-text-muted)":e} stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
455
- </svg>`}function ql(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">
455
+ </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">
456
456
  <path d="M1 1H13" stroke=${t?"var(--moz-color-text-muted)":e} stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
457
- </svg>`}function Il(e=!1){return o.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
457
+ </svg>`}function Xl(e=!1){return o.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
458
458
  <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>
459
- </svg>`}function Fl(e=!1){return o.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
459
+ </svg>`}function Ql(e=!1){return o.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
460
460
  <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>
461
- </svg>`}const Bl=new Set(["label","name","width","required","step","min","max","disabled","shortMode","nullable","modelValue","class","style"]),Zo=we({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 c=e.props;if(c.disabled||c.modelValue===void 0)return;const l=c.modelValue+c.step;c.max!==void 0&&c.max!==null&&l>c.max||(e.emit("update:modelValue",l),e.emit("change",l))},s=()=>{const c=e.props;if(c.disabled||c.modelValue===void 0)return;const l=c.modelValue-c.step;c.min!==void 0&&c.min!==null&&l<c.min||(e.emit("update:modelValue",l),e.emit("change",l))},n=c=>{const l=e.props;if(l.disabled||l.nullable||c.key!=="Backspace"&&c.key!=="Delete"||l.min===-Number.MAX_VALUE||Number(l.modelValue)!==Number(l.min))return;const h=c.target,r=h.selectionStart??0,p=h.selectionEnd??0,u=h.value,v=r!==p;(v&&r===0&&p===u.length||!v&&u.length===1)&&c.preventDefault()},i=c=>{const l=e.props;if(l.disabled||l.nullable)return;const h=c.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=c=>{const l=e.props;if(l.disabled)return;const h=c.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=c=>{c.key==="Enter"&&e.emit("enter",c)};return{onMounted:c=>e.emit("mounted",(c==null?void 0:c.querySelector("input"))??null),render(){const c=e.props,l=c.modelValue,h=!!c.disabled,r=c.min,p=c.max,u=typeof c.width=="number"?`${Te(c.width)}rem`:c.width,v=ve(c,Bl),$=C=>L("moz-button","moz-icon-button","moz-icon-accent-button","num-change-btn",C),R=o.html`
462
- <div class=${L("moz-number-input",{"input-border":c.shortMode})}>
461
+ </svg>`}const Jl=new Set(["label","name","width","required","step","min","max","disabled","shortMode","nullable","modelValue","class","style"]),os=ve({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 c=e.props;if(c.disabled||c.modelValue===void 0)return;const l=c.modelValue+c.step;c.max!==void 0&&c.max!==null&&l>c.max||(e.emit("update:modelValue",l),e.emit("change",l))},s=()=>{const c=e.props;if(c.disabled||c.modelValue===void 0)return;const l=c.modelValue-c.step;c.min!==void 0&&c.min!==null&&l<c.min||(e.emit("update:modelValue",l),e.emit("change",l))},n=c=>{const l=e.props;if(l.disabled||l.nullable||c.key!=="Backspace"&&c.key!=="Delete"||l.min===-Number.MAX_VALUE||Number(l.modelValue)!==Number(l.min))return;const h=c.target,r=h.selectionStart??0,p=h.selectionEnd??0,u=h.value,v=r!==p;(v&&r===0&&p===u.length||!v&&u.length===1)&&c.preventDefault()},i=c=>{const l=e.props;if(l.disabled||l.nullable)return;const h=c.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=c=>{const l=e.props;if(l.disabled)return;const h=c.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=c=>{c.key==="Enter"&&e.emit("enter",c)};return{onMounted:c=>e.emit("mounted",(c==null?void 0:c.querySelector("input"))??null),render(){const c=e.props,l=c.modelValue,h=!!c.disabled,r=c.min,p=c.max,u=typeof c.width=="number"?`${Me(c.width)}rem`:c.width,v=fe(c,Jl),S=w=>A("moz-button","moz-icon-button","moz-icon-accent-button","num-change-btn",w),I=o.html`
462
+ <div class=${A("moz-number-input",{"input-border":c.shortMode})}>
463
463
  <input
464
- name=${Me.ifDefined(c.name)}
464
+ name=${Ce.ifDefined(c.name)}
465
465
  ?disabled=${h}
466
- .value=${Tt.live(String(l??""))}
466
+ .value=${xt.live(String(l??""))}
467
467
  ${ce(v)}
468
468
  @input=${a}
469
469
  @change=${a}
@@ -474,71 +474,71 @@
474
474
  />
475
475
  <div class="moz-number-input-btn">
476
476
  ${c.shortMode?o.html`
477
- <button type="button" aria-label=${e.locale.NumberInput.increase} class="moz-number-input-btn-icon" @click=${t}>${Il(h)}</button>
478
- <button type="button" aria-label=${e.locale.NumberInput.decrease} class="moz-number-input-btn-icon" @click=${s}>${Fl(h)}</button>
477
+ <button type="button" aria-label=${e.locale.NumberInput.increase} class="moz-number-input-btn-icon" @click=${t}>${Xl(h)}</button>
478
+ <button type="button" aria-label=${e.locale.NumberInput.decrease} class="moz-number-input-btn-icon" @click=${s}>${Ql(h)}</button>
479
479
  `:o.nothing}
480
480
  </div>
481
481
  </div>
482
482
  `;return o.html`
483
- <div class=${L("moz-number-input-container",{disabled:h},c.class)} style=${ee.styleMap(me(c.style))}>
484
- ${c.label?Be({disabled:h},o.html`${c.label}${c.required?o.html`<span class="require-mark">*</span>`:o.nothing}`):o.nothing}
483
+ <div class=${A("moz-number-input-container",{disabled:h},c.class)} style=${J.styleMap(me(c.style))}>
484
+ ${c.label?Fe({disabled:h},o.html`${c.label}${c.required?o.html`<span class="require-mark">*</span>`:o.nothing}`):o.nothing}
485
485
  <div class="moz-number-input-wrapper" style="width:${u}">
486
486
  ${c.shortMode?o.nothing:o.html`<button
487
487
  type="button"
488
488
  aria-label=${e.locale.NumberInput.decrease}
489
- class=${$({disabled:h||r>=l,"min-disabled":r>=l})}
489
+ class=${S({disabled:h||r>=l,"min-disabled":r>=l})}
490
490
  style="border-radius: 4px 0px 0px 4px"
491
491
  ?disabled=${h}
492
492
  @click=${s}
493
493
  >
494
- ${ql("var(--moz-color-on-accent)",h||r>=l)}
494
+ ${jl("var(--moz-color-on-accent)",h||r>=l)}
495
495
  </button>`}
496
- ${R}
496
+ ${I}
497
497
  ${c.shortMode?o.nothing:o.html`<button
498
498
  type="button"
499
499
  aria-label=${e.locale.NumberInput.increase}
500
- class=${$({disabled:h||p<=l,"max-disabled":p<=l})}
500
+ class=${S({disabled:h||p<=l,"max-disabled":p<=l})}
501
501
  style="border-radius: 0px 4px 4px 0px"
502
502
  ?disabled=${h}
503
503
  @click=${t}
504
504
  >
505
- ${Rl("var(--moz-color-on-accent)",h||p<=l)}
505
+ ${Zl("var(--moz-color-on-accent)",h||p<=l)}
506
506
  </button>`}
507
507
  </div>
508
508
  </div>
509
- `}}}}),Ol={name:"MozNumberInput",core:Zo,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 jo(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">
509
+ `}}}}),en={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">
510
510
  <path d="M9 3L3 9M3 3L9 9" stroke=${e} stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
511
- </svg>`}const Hl=new Set(["itemSource","vertical","tabWidth","maxTabWidth","closeAble","modelValue","class","style"]),Xo=we({name:"moz-tab",defaults:{vertical:!1,tabWidth:100,closeAble:!1,itemSource:[]},setup(e){const t=Xe("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,p=(r.itemSource??[]).map(E=>E.id);if(p.length===0)return;const u=r.vertical?"ArrowDown":"ArrowRight",v=r.vertical?"ArrowUp":"ArrowLeft";let $;if(l.key===u?$=p[(p.indexOf(h)+1)%p.length]:l.key===v?$=p[(p.indexOf(h)-1+p.length)%p.length]:l.key==="Home"?$=p[0]:l.key==="End"?$=p[p.length-1]:(l.key==="Enter"||l.key===" ")&&($=h),$===void 0)return;l.preventDefault(),l.stopPropagation(),a($);const R=l.currentTarget.closest('[role="tablist"]'),C=s($);let y=0;const D=()=>{const E=Array.from((R==null?void 0:R.querySelectorAll('[role="tab"]'))??[]).find(V=>V.id===C);if(E&&E.getAttribute("aria-selected")==="true"){E.focus();return}++y<20&&i(D)};i(D)},c=l=>{const h=e.props;if(h.modelValue===l){const r=(h.itemSource??[]).filter(p=>p.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,p=ve(l,Hl),u=ee.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`
511
+ </svg>`}const tn=new Set(["itemSource","vertical","tabWidth","maxTabWidth","closeAble","modelValue","class","style"]),ls=ve({name:"moz-tab",defaults:{vertical:!1,tabWidth:100,closeAble:!1,itemSource:[]},setup(e){const t=Xe("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,p=(r.itemSource??[]).map($=>$.id);if(p.length===0)return;const u=r.vertical?"ArrowDown":"ArrowRight",v=r.vertical?"ArrowUp":"ArrowLeft";let S;if(l.key===u?S=p[(p.indexOf(h)+1)%p.length]:l.key===v?S=p[(p.indexOf(h)-1+p.length)%p.length]:l.key==="Home"?S=p[0]:l.key==="End"?S=p[p.length-1]:(l.key==="Enter"||l.key===" ")&&(S=h),S===void 0)return;l.preventDefault(),l.stopPropagation(),a(S);const I=l.currentTarget.closest('[role="tablist"]'),w=s(S);let y=0;const P=()=>{const $=Array.from((I==null?void 0:I.querySelectorAll('[role="tab"]'))??[]).find(x=>x.id===w);if($&&$.getAttribute("aria-selected")==="true"){$.focus();return}++y<20&&i(P)};i(P)},c=l=>{const h=e.props;if(h.modelValue===l){const r=(h.itemSource??[]).filter(p=>p.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,p=fe(l,tn),u=J.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`
512
512
  <div
513
- class=${L("moz-tabs-container",{vertical:l.vertical},l.class)}
514
- style=${ee.styleMap(me(l.style))}
513
+ class=${A("moz-tabs-container",{vertical:l.vertical},l.class)}
514
+ style=${J.styleMap(me(l.style))}
515
515
  ${ce(p)}
516
516
  >
517
517
  <div
518
- class=${L("moz-tabs",{vertical:l.vertical})}
518
+ class=${A("moz-tabs",{vertical:l.vertical})}
519
519
  role="tablist"
520
520
  aria-orientation=${l.vertical?"vertical":"horizontal"}
521
521
  >
522
- ${h.map(v=>{const $=r===v.id;return o.html`
522
+ ${h.map(v=>{const S=r===v.id;return o.html`
523
523
  <div
524
- class=${L("moz-tab",{"current-tab":$,vertical:l.vertical,closeable:l.closeAble})}
524
+ class=${A("moz-tab",{"current-tab":S,vertical:l.vertical,closeable:l.closeAble})}
525
525
  style=${u}
526
526
  id=${s(v.id)}
527
527
  role="tab"
528
- aria-selected=${$?"true":"false"}
528
+ aria-selected=${S?"true":"false"}
529
529
  aria-controls=${n(v.id)}
530
- tabindex=${$?"0":"-1"}
530
+ tabindex=${S?"0":"-1"}
531
531
  @click=${()=>a(v.id)}
532
- @mousedown=${R=>{R.button===0&&a(v.id)}}
533
- @keydown=${R=>m(R,v.id)}
532
+ @mousedown=${I=>{I.button===0&&a(v.id)}}
533
+ @keydown=${I=>m(I,v.id)}
534
534
  >
535
- ${e.slots.has(`${v.id}-tab`)?e.slot(`${v.id}-tab`,{text:v.text,active:$}):o.html`<p class=${L("tab-label",{active:$})}>${v.text}</p>`}
535
+ ${e.slots.has(`${v.id}-tab`)?e.slot(`${v.id}-tab`,{text:v.text,active:S}):o.html`<p class=${A("tab-label",{active:S})}>${v.text}</p>`}
536
536
  ${l.closeAble?o.html`<button type="button"
537
537
  class="tab-close-btn"
538
538
  aria-label=${e.locale.Tab.closeTab.replace("{label}",v.text??"")}
539
- @click=${R=>{R.stopPropagation(),c(v.id)}}
539
+ @click=${I=>{I.stopPropagation(),c(v.id)}}
540
540
  >
541
- ${jo()}
541
+ ${ss()}
542
542
  </button>`:o.nothing}
543
543
  </div>
544
544
  `})}
@@ -546,7 +546,7 @@
546
546
  <div class="moz-tab-body">
547
547
  ${h.map(v=>o.html`
548
548
  <div
549
- class=${L("tab-panel",{active:r===v.id})}
549
+ class=${A("tab-panel",{active:r===v.id})}
550
550
  id=${n(v.id)}
551
551
  role="tabpanel"
552
552
  aria-labelledby=${s(v.id)}
@@ -558,50 +558,50 @@
558
558
  `)}
559
559
  </div>
560
560
  </div>
561
- `}}}}),_l={name:"MozTab",core:Xo,booleanProps:["closeAble","vertical"],props:["itemSource","vertical","tabWidth","maxTabWidth","closeAble","modelValue"],emits:["change","close","update:modelValue"],slots:[],expose:!1},Nl=new Set(["id","width","label","min","max","step","disabled","modelValue","class","style"]),Qo=we({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=p=>{const u=e.props;if(!s)return;const v=s.getBoundingClientRect(),R=(p.clientX-v.left)/s.offsetWidth;let C=Math.round(u.min+(u.max-u.min)*R);C<u.min?C=u.min:C>u.max&&(C=u.max);const y=Math.round(C/u.step)*u.step;e.emit("update:modelValue",y),e.emit("change")},a=()=>{window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",a),n==null||n.focus()},m=p=>{e.props.disabled||(p.preventDefault(),n=p.currentTarget,s=n.querySelector(".moz-slider"),i(p),window.addEventListener("mousemove",i),window.addEventListener("mouseup",a))},c=p=>{const u=e.props;let v=u.modelValue??0;p==="-"?v-=u.step:v+=u.step,v>u.max?v=u.max:v<u.min&&(v=u.min),e.emit("update:modelValue",v),e.emit("change")},l=p=>{p.key==="ArrowLeft"||p.keyCode===37?c("-"):(p.key==="ArrowRight"||p.keyCode===39)&&c("+")},h=()=>{t=!0,e.requestUpdate()},r=()=>{t=!1,e.requestUpdate()};return e.onCleanup(()=>{window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",a)}),{render(){const p=e.props,u=p.modelValue??0,v=!!p.disabled,$=p.min,R=p.max,C=typeof p.width=="number"?`${Te(p.width)}rem`:p.width,y=typeof p.width=="number"?p.width:Number.isNaN(parseFloat(String(p.width)))?150:parseFloat(String(p.width)),E=(u-$)/(R-$)*(y-18),V=E<0?0:E,G=ve(p,Nl);return o.html`
562
- <div class=${L("moz-slider-wrapper",p.class)} style=${ee.styleMap(me(p.style))} ${ce(G)}>
563
- ${p.label?Be({for:p.id},p.label):o.nothing}
561
+ `}}}}),on={name:"MozTab",core:ls,booleanProps:["closeAble","vertical"],props:["itemSource","vertical","tabWidth","maxTabWidth","closeAble","modelValue"],emits:["change","close","update:modelValue"],slots:[],expose:!1},sn=new Set(["id","width","label","min","max","step","disabled","modelValue","class","style"]),ns=ve({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=p=>{const u=e.props;if(!s)return;const v=s.getBoundingClientRect(),I=(p.clientX-v.left)/s.offsetWidth;let w=Math.round(u.min+(u.max-u.min)*I);w<u.min?w=u.min:w>u.max&&(w=u.max);const y=Math.round(w/u.step)*u.step;e.emit("update:modelValue",y),e.emit("change")},a=()=>{window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",a),n==null||n.focus()},m=p=>{e.props.disabled||(p.preventDefault(),n=p.currentTarget,s=n.querySelector(".moz-slider"),i(p),window.addEventListener("mousemove",i),window.addEventListener("mouseup",a))},c=p=>{const u=e.props;let v=u.modelValue??0;p==="-"?v-=u.step:v+=u.step,v>u.max?v=u.max:v<u.min&&(v=u.min),e.emit("update:modelValue",v),e.emit("change")},l=p=>{p.key==="ArrowLeft"||p.keyCode===37?c("-"):(p.key==="ArrowRight"||p.keyCode===39)&&c("+")},h=()=>{t=!0,e.requestUpdate()},r=()=>{t=!1,e.requestUpdate()};return e.onCleanup(()=>{window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",a)}),{render(){const p=e.props,u=p.modelValue??0,v=!!p.disabled,S=p.min,I=p.max,w=typeof p.width=="number"?`${Me(p.width)}rem`:p.width,y=typeof p.width=="number"?p.width:Number.isNaN(parseFloat(String(p.width)))?150:parseFloat(String(p.width)),$=(u-S)/(I-S)*(y-18),x=$<0?0:$,_=fe(p,sn);return o.html`
562
+ <div class=${A("moz-slider-wrapper",p.class)} style=${J.styleMap(me(p.style))} ${ce(_)}>
563
+ ${p.label?Fe({for:p.id},p.label):o.nothing}
564
564
  <div
565
- class=${L("moz-slider-container",{disabled:v,label:!!p.label})}
565
+ class=${A("moz-slider-container",{disabled:v,label:!!p.label})}
566
566
  role="slider"
567
567
  aria-valuenow=${String(u??0)}
568
568
  aria-valuemin=${String(p.min??0)}
569
569
  aria-valuemax=${String(p.max??100)}
570
570
  aria-orientation="horizontal"
571
571
  aria-disabled=${v?"true":"false"}
572
- aria-label=${Me.ifDefined(p.label)}
572
+ aria-label=${Ce.ifDefined(p.label)}
573
573
  tabindex=${v?"-1":"0"}
574
574
  @mousedown=${m}
575
575
  @focus=${h}
576
576
  @blur=${r}
577
577
  @keydown=${l}
578
578
  >
579
- <div class="moz-slider" style="width:${C}">
580
- <div class="moz-slider-track" style="width:${Te(V+10)}rem"></div>
579
+ <div class="moz-slider" style="width:${w}">
580
+ <div class="moz-slider-track" style="width:${Me(x+10)}rem"></div>
581
581
  </div>
582
582
  <div
583
- class=${L("moz-slider-handle",{focused:t&&!v})}
584
- style="left:${Te(V)}rem"
583
+ class=${A("moz-slider-handle",{focused:t&&!v})}
584
+ style="left:${Me(x)}rem"
585
585
  ></div>
586
586
  </div>
587
587
  </div>
588
- `}}}}),Ul={name:"MozSlider",core:Qo,booleanProps:["disabled"],props:["id","width","label","min","max","step","disabled","modelValue"],emits:["change","update:modelValue"],slots:[],expose:!1};function Wl(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">
588
+ `}}}}),ln={name:"MozSlider",core:ns,booleanProps:["disabled"],props:["id","width","label","min","max","step","disabled","modelValue"],emits:["change","update:modelValue"],slots:[],expose:!1};function nn(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">
589
589
  <path d="M3 4.5L6 7.5L9 4.5" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
590
- </svg>`}function Kl(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">
590
+ </svg>`}function rn(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">
591
591
  <path
592
592
  fill-rule="evenodd"
593
593
  clip-rule="evenodd"
594
594
  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"
595
595
  fill=${e}
596
596
  ></path>
597
- </svg>`}function Gl(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">
597
+ </svg>`}function an(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">
598
598
  <path
599
599
  fill-rule="evenodd"
600
600
  clip-rule="evenodd"
601
601
  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"
602
602
  fill=${e}
603
603
  ></path>
604
- </svg>`}function Yl(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">
604
+ </svg>`}function cn(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
605
  <path
606
606
  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"
607
607
  stroke=${e}
@@ -614,79 +614,79 @@
614
614
  fill=${e}
615
615
  ></path>
616
616
  <rect x="3.34009" y="7.41504" width="2.93262" height="2.93262" rx="0.5" fill=${e}></rect>
617
- </svg>`}const Zl=new Set(["rowHeight","exceptWeeks","min","max","modelValue","class","style"]),jl=(e,...t)=>e.filter(s=>!t.includes(s)),eo=we({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 c=E=>{const V=e.props;return!!V.min&&E.isBefore(V.min,"day")||!!V.max&&E.isAfter(V.max,"day")},l=E=>{const V=e.props;return!!V.min&&E.endOf("year").isBefore(V.min,"day")||!!V.max&&E.startOf("year").isAfter(V.max,"day")},h=E=>{const V=e.props;return!!V.min&&E.endOf("month").isBefore(V.min,"day")||!!V.max&&E.startOf("month").isAfter(V.max,"day")},r=()=>{t=t.subtract(1,"M"),e.requestUpdate()},p=()=>{t=t.add(1,"M"),e.requestUpdate()},u=()=>{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()},R=E=>{l(E)||(t=t.set("year",E.year()),n=!0,i=!1,a=!1,e.requestUpdate())},C=E=>{h(E)||(t=t.set("month",E.month()),n=!0,i=!1,a=!1,e.requestUpdate())},y=E=>{c(E)||e.emit("update:modelValue",Pe(E))},D=()=>y(Pe());return{render(){const E=e.props;E.modelValue!==s&&(s=E.modelValue,t=E.modelValue?Pe(E.modelValue):Pe());const V=E.rowHeight??36,G=["ko","zh","zh-cn"].includes(Pe().locale()),Y=t.hour(),Q=t.minute(),le=t.second(),ue=x=>x.set("hour",Y||0).set("minute",Q||0).set("second",le||0),U=jl([0,1,2,3,4,5,6],...E.exceptWeeks??[]),z=[];{const x=ue(t.endOf("M"));let P=ue(t.startOf("M")).startOf("w");do z.push(P),P=P.add(7,"d");while(P.diff(x)<=0)}const W=V*z.length+126;W!==m&&(m=W,queueMicrotask(()=>e.emit("setMaxHeight",W)));const J=(x,P)=>{const A=x.add(P,"d");return t.format("YYYYMMDD")!==A.format("YYYYMMDD")?t.format("MM")===A.format("MM")?"":"moz-calendar-column-otherMonth":""},ne=E.modelValue?Pe(E.modelValue).format("YYYYMMDD"):"",X=(x,P,A)=>o.html`<button
617
+ </svg>`}const dn=new Set(["rowHeight","exceptWeeks","min","max","modelValue","class","style"]),un=(e,...t)=>e.filter(s=>!t.includes(s)),no=ve({name:"moz-calendar",defaults:{rowHeight:36,exceptWeeks:[],min:null,max:null},setup(e){let t=e.props.modelValue?Te(e.props.modelValue):Te(),s=e.props.modelValue,n=!0,i=!1,a=!1,m=-1;const c=$=>{const x=e.props;return!!x.min&&$.isBefore(x.min,"day")||!!x.max&&$.isAfter(x.max,"day")},l=$=>{const x=e.props;return!!x.min&&$.endOf("year").isBefore(x.min,"day")||!!x.max&&$.startOf("year").isAfter(x.max,"day")},h=$=>{const x=e.props;return!!x.min&&$.endOf("month").isBefore(x.min,"day")||!!x.max&&$.startOf("month").isAfter(x.max,"day")},r=()=>{t=t.subtract(1,"M"),e.requestUpdate()},p=()=>{t=t.add(1,"M"),e.requestUpdate()},u=()=>{n=!0,i=!1,a=!1,e.requestUpdate()},v=()=>{n=!1,i=!0,a=!1,e.requestUpdate()},S=()=>{n=!1,i=!1,a=!0,e.requestUpdate()},I=$=>{l($)||(t=t.set("year",$.year()),n=!0,i=!1,a=!1,e.requestUpdate())},w=$=>{h($)||(t=t.set("month",$.month()),n=!0,i=!1,a=!1,e.requestUpdate())},y=$=>{c($)||e.emit("update:modelValue",Te($))},P=()=>y(Te());return{render(){const $=e.props;$.modelValue!==s&&(s=$.modelValue,t=$.modelValue?Te($.modelValue):Te());const x=$.rowHeight??36,_=["ko","zh","zh-cn"].includes(Te().locale()),Y=t.hour(),j=t.minute(),le=t.second(),ue=z=>z.set("hour",Y||0).set("minute",j||0).set("second",le||0),W=un([0,1,2,3,4,5,6],...$.exceptWeeks??[]),D=[];{const z=ue(t.endOf("M"));let T=ue(t.startOf("M")).startOf("w");do D.push(T),T=T.add(7,"d");while(T.diff(z)<=0)}const K=x*D.length+126;K!==m&&(m=K,queueMicrotask(()=>e.emit("setMaxHeight",K)));const ee=(z,T)=>{const V=z.add(T,"d");return t.format("YYYYMMDD")!==V.format("YYYYMMDD")?t.format("MM")===V.format("MM")?"":"moz-calendar-column-otherMonth":""},ne=$.modelValue?Te($.modelValue).format("YYYYMMDD"):"",Q=(z,T,V)=>o.html`<button
618
618
  type="button"
619
- aria-label=${A}
619
+ aria-label=${V}
620
620
  class="moz-button moz-icon-button"
621
621
  style="width:24px;height:24px;min-width:24px;min-height:24px"
622
- @click=${P}
622
+ @click=${T}
623
623
  >
624
- ${x}
625
- </button>`,B=o.html`
624
+ ${z}
625
+ </button>`,F=o.html`
626
626
  <div class="moz-calendar-header">
627
627
  <div class="moz-calendar-select">
628
- ${G?o.html`
628
+ ${_?o.html`
629
629
  <div class="moz-calendar-select__text" @click=${v}>
630
- ${new Intl.DateTimeFormat(Pe().locale(),{year:"numeric"}).format(t.toDate())}
630
+ ${new Intl.DateTimeFormat(Te().locale(),{year:"numeric"}).format(t.toDate())}
631
631
  </div>
632
- <div class="moz-calendar-select__text" @click=${$}>${t.format("MMMM")}</div>
632
+ <div class="moz-calendar-select__text" @click=${S}>${t.format("MMMM")}</div>
633
633
  `:o.html`
634
- <div class="moz-calendar-select__text" @click=${$}>${t.format("MMMM")}</div>
634
+ <div class="moz-calendar-select__text" @click=${S}>${t.format("MMMM")}</div>
635
635
  <div class="moz-calendar-select__text" @click=${v}>${t.format("YYYY")}</div>
636
636
  `}
637
- <div class="moz-calendar-select-btn" @click=${u}>${Wl("currentColor")}</div>
637
+ <div class="moz-calendar-select-btn" @click=${u}>${nn("currentColor")}</div>
638
638
  </div>
639
639
  <div class="moz-calendar-header__spacer"></div>
640
640
  <div class="moz-calendar-select-btn-group">
641
- ${X(Kl(),r,"이전 달")}${X(Yl(),D,"오늘")}${X(Gl(),p,"다음 달")}
641
+ ${Q(rn(),r,"이전 달")}${Q(cn(),P,"오늘")}${Q(an(),p,"다음 달")}
642
642
  </div>
643
643
  </div>
644
644
  `,se=o.html`
645
645
  <div class="moz-calendar-row">
646
- ${U.map(x=>o.html`<div
646
+ ${W.map(z=>o.html`<div
647
647
  class="moz-calendar-column moz-calendar-column-day"
648
- style="width: ${100/U.length}%; height: ${Te(V)}rem;"
648
+ style="width: ${100/W.length}%; height: ${Me(x)}rem;"
649
649
  >
650
- ${Pe().day(x).format("ddd")}
650
+ ${Te().day(z).format("ddd")}
651
651
  </div>`)}
652
652
  </div>
653
- ${z.map(x=>o.html`<div class="moz-calendar-row">
654
- ${U.map(P=>{const A=x.add(P,"d");return o.html`<div
655
- class=${L("moz-calendar-column",J(x,P),ne===A.format("YYYYMMDD")?"moz-calendar-selected":"",c(A)?"date-disable":"moz-calendar-column--hoverable")}
656
- style="width: ${100/U.length}%; height: ${Te(V)}rem"
657
- @click=${()=>y(A)}
653
+ ${D.map(z=>o.html`<div class="moz-calendar-row">
654
+ ${W.map(T=>{const V=z.add(T,"d");return o.html`<div
655
+ class=${A("moz-calendar-column",ee(z,T),ne===V.format("YYYYMMDD")?"moz-calendar-selected":"",c(V)?"date-disable":"moz-calendar-column--hoverable")}
656
+ style="width: ${100/W.length}%; height: ${Me(x)}rem"
657
+ @click=${()=>y(V)}
658
658
  >
659
- ${A.format("DD")}
659
+ ${V.format("DD")}
660
660
  </div>`})}
661
661
  </div>`)}
662
- `;let K=o.nothing;if(i){const x=[],P=Pe().add(100,"y").startOf("y");let A=Pe().subtract(100,"y").startOf("y");do x.push(A),A=A.add(1,"y");while(A.diff(P)<=0);K=o.html`<div
662
+ `;let G=o.nothing;if(i){const z=[],T=Te().add(100,"y").startOf("y");let V=Te().subtract(100,"y").startOf("y");do z.push(V),V=V.add(1,"y");while(V.diff(T)<=0);G=o.html`<div
663
663
  class="moz-calendar-row moz-calendar-row--wrap"
664
- style="max-height: ${Te(V*z.length)}rem"
664
+ style="max-height: ${Me(x*D.length)}rem"
665
665
  >
666
- ${x.map(f=>o.html`<div
667
- class=${L("moz-calendar-column",t.format("YYYY")===f.format("YYYY")?"moz-calendar-selected":"",l(f)?"date-disable":"moz-calendar-column--hoverable")}
668
- style="width: ${100/3}%; height: ${Te(V)}rem"
669
- @click=${()=>R(f)}
666
+ ${z.map(f=>o.html`<div
667
+ class=${A("moz-calendar-column",t.format("YYYY")===f.format("YYYY")?"moz-calendar-selected":"",l(f)?"date-disable":"moz-calendar-column--hoverable")}
668
+ style="width: ${100/3}%; height: ${Me(x)}rem"
669
+ @click=${()=>I(f)}
670
670
  >
671
671
  ${f.format("YYYY")}
672
672
  </div>`)}
673
- </div>`}let k=o.nothing;if(a){const x=[],P=t.endOf("y");let A=t.startOf("y");do x.push(A),A=A.add(1,"M");while(A.diff(P)<=0);k=o.html`<div class="moz-calendar-row moz-calendar-row--wrap">
674
- ${x.map(f=>o.html`<div
675
- class=${L("moz-calendar-column",t.format("YYYYMM")===f.format("YYYYMM")?"moz-calendar-selected":"",h(f)?"date-disable":"moz-calendar-column--hoverable")}
676
- style="width: ${100/3}%; height: ${Te(V)}rem"
677
- @click=${()=>C(f)}
673
+ </div>`}let E=o.nothing;if(a){const z=[],T=t.endOf("y");let V=t.startOf("y");do z.push(V),V=V.add(1,"M");while(V.diff(T)<=0);E=o.html`<div class="moz-calendar-row moz-calendar-row--wrap">
674
+ ${z.map(f=>o.html`<div
675
+ class=${A("moz-calendar-column",t.format("YYYYMM")===f.format("YYYYMM")?"moz-calendar-selected":"",h(f)?"date-disable":"moz-calendar-column--hoverable")}
676
+ style="width: ${100/3}%; height: ${Me(x)}rem"
677
+ @click=${()=>w(f)}
678
678
  >
679
679
  ${f.format("MMM")}
680
680
  </div>`)}
681
- </div>`}const S=ve(E,Zl);return o.html`
682
- <div class=${L("moz-calendar-container",E.class)} style=${ee.styleMap(me(E.style))} ${ce(S)}>
683
- ${B}${n?se:o.nothing}${K}${k}
681
+ </div>`}const k=fe($,dn);return o.html`
682
+ <div class=${A("moz-calendar-container",$.class)} style=${J.styleMap(me($.style))} ${ce(k)}>
683
+ ${F}${n?se:o.nothing}${G}${E}
684
684
  </div>
685
- `}}}}),Xl={name:"MozCalendar",core:eo,props:["rowHeight","exceptWeeks","min","max","modelValue"],emits:["changed","setMaxHeight","update:modelValue"],slots:[],expose:!1};function Ql(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">
685
+ `}}}}),pn={name:"MozCalendar",core:no,props:["rowHeight","exceptWeeks","min","max","modelValue"],emits:["changed","setMaxHeight","update:modelValue"],slots:[],expose:!1};function hn(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">
686
686
  <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>
687
- </svg>`}function Jl(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
+ </svg>`}function mn(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">
688
688
  <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>
689
- </svg>`}function en(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">
689
+ </svg>`}function fn(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">
690
690
  <path
691
691
  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"
692
692
  stroke=${e}
@@ -698,43 +698,43 @@
698
698
  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"
699
699
  fill=${e}
700
700
  ></path>
701
- </svg>`}const tn="YYYY-MM-DD",on=new Set(["label","name","width","required","disabled","readonly","format","showSpin","min","max","modelValue","class","style"]),Jo=we({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 kt,c=C=>{const y=e.props.modelValue;let D;C&&y instanceof Date?D=Pe(C).toDate():C&&Pe.isDayjs(y)||!y&&C?D=Pe(C):D=void 0,e.emit("update:modelValue",D)},l=((C,...y)=>{C==="update:modelValue"?c(y[0]):C==="setMaxHeight"&&(s=y[0],h.calcPosition())}),h=new mt({anchor:()=>i==null?void 0:i.querySelector(".moz-date-input-wrapper"),panel:()=>m.element,maxHeight:()=>s,ignoreScrollTargets:C=>(C&&typeof C.className=="string"?C.className:"").split(" ").includes("moz-calendar-row"),container:()=>i,requestClose:()=>{t&&(t=!1,p(),e.requestUpdate())}}),r=()=>{const C=m.open("calendar-container moz-date-input-calendar");a=eo(C,{modelValue:e.props.modelValue,min:e.props.min,max:e.props.max},l),h.open()},p=()=>{h.close(),a==null||a.destroy(),a=null,m.close(),e.emit("close")},u=()=>{var y;const C=e.props;C.disabled||C.readonly||(t=!t,t?((y=i==null?void 0:i.querySelector("input"))==null||y.focus(),r()):p(),e.requestUpdate())},v=()=>{e.props.modelValue&&c(Pe(e.props.modelValue).subtract(1,"d"))},$=()=>{e.props.modelValue&&c(Pe(e.props.modelValue).add(1,"d"))},R=C=>{const y=C.target,D=e.props.modelValue;D?Pe.isDayjs(D)&&Pe(y.value).isValid()?c(Pe(y.value)):D instanceof Date&&!Number.isNaN(Date.parse(y.value))?c(new Date(y.value)):c(void 0):c(Pe(y.value))};return e.onCleanup(()=>{h.destroy(),a==null||a.destroy(),m.close()}),{onMounted:C=>{i=C},render(){const C=e.props;if(C.modelValue!==n){n=C.modelValue;const le=C.modelValue;queueMicrotask(()=>e.emit("change",le)),a&&a.update({modelValue:C.modelValue})}const y=C.format||tn,D=typeof C.width=="number"?`${Te(C.width)}rem`:C.width,E=C.modelValue?Pe(C.modelValue).format(y):"",V=!!C.min&&Pe(E).isSameOrBefore(Pe(C.min),"day"),G=!!C.max&&Pe(E).isSameOrAfter(Pe(C.max),"day"),Y=ve(C,on),Q=(le,ue,U,z)=>o.html`<button
701
+ </svg>`}const gn="YYYY-MM-DD",vn=new Set(["label","name","width","required","disabled","readonly","format","showSpin","min","max","modelValue","class","style"]),is=ve({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,c=w=>{const y=e.props.modelValue;let P;w&&y instanceof Date?P=Te(w).toDate():w&&Te.isDayjs(y)||!y&&w?P=Te(w):P=void 0,e.emit("update:modelValue",P)},l=((w,...y)=>{w==="update:modelValue"?c(y[0]):w==="setMaxHeight"&&(s=y[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,p(),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()},p=()=>{h.close(),a==null||a.destroy(),a=null,m.close(),e.emit("close")},u=()=>{var y;const w=e.props;w.disabled||w.readonly||(t=!t,t?((y=i==null?void 0:i.querySelector("input"))==null||y.focus(),r()):p(),e.requestUpdate())},v=()=>{e.props.modelValue&&c(Te(e.props.modelValue).subtract(1,"d"))},S=()=>{e.props.modelValue&&c(Te(e.props.modelValue).add(1,"d"))},I=w=>{const y=w.target,P=e.props.modelValue;P?Te.isDayjs(P)&&Te(y.value).isValid()?c(Te(y.value)):P instanceof Date&&!Number.isNaN(Date.parse(y.value))?c(new Date(y.value)):c(void 0):c(Te(y.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 le=w.modelValue;queueMicrotask(()=>e.emit("change",le)),a&&a.update({modelValue:w.modelValue})}const y=w.format||gn,P=typeof w.width=="number"?`${Me(w.width)}rem`:w.width,$=w.modelValue?Te(w.modelValue).format(y):"",x=!!w.min&&Te($).isSameOrBefore(Te(w.min),"day"),_=!!w.max&&Te($).isSameOrAfter(Te(w.max),"day"),Y=fe(w,vn),j=(le,ue,W,D)=>o.html`<button
702
702
  type="button"
703
703
  aria-label=${ue==="left"?e.locale.DateInput.prevDate:e.locale.DateInput.nextDate}
704
- class=${L("moz-button","moz-icon-button","moz-icon-accent-button","moz-icon-text-button","date-move-btn",`date-move-btn--${ue}`,{"date-move-btn--disabled":U})}
705
- ?disabled=${U}
706
- @click=${z}
704
+ class=${A("moz-button","moz-icon-button","moz-icon-accent-button","moz-icon-text-button","date-move-btn",`date-move-btn--${ue}`,{"date-move-btn--disabled":W})}
705
+ ?disabled=${W}
706
+ @click=${D}
707
707
  >
708
708
  ${le}
709
709
  </button>`;return o.html`
710
710
  <div
711
- class=${L("moz-date-input-container",{disabled:C.disabled},C.class)}
712
- style=${ee.styleMap({...me(C.style),width:D})}
711
+ class=${A("moz-date-input-container",{disabled:w.disabled},w.class)}
712
+ style=${J.styleMap({...me(w.style),width:P})}
713
713
  >
714
- ${C.label?Be({disabled:C.disabled},o.html`${C.label}${C.required?o.html`<span class="require-mark">*</span>`:o.nothing}`):o.nothing}
715
- <div class="moz-date-input-wrapper" style="width:${D}">
716
- ${C.showSpin?Q(Ql("var(--moz-color-on-accent)","14",C.disabled||V),"left",V,v):o.nothing}
714
+ ${w.label?Fe({disabled:w.disabled},o.html`${w.label}${w.required?o.html`<span class="require-mark">*</span>`:o.nothing}`):o.nothing}
715
+ <div class="moz-date-input-wrapper" style="width:${P}">
716
+ ${w.showSpin?j(hn("var(--moz-color-on-accent)","14",w.disabled||x),"left",x,v):o.nothing}
717
717
  <div
718
- class=${L("moz-date-input",{"moz-date-input--no-lr-border":C.showSpin,"moz-date-input--radius":!C.showSpin,"moz-date-input--disabled":C.disabled})}
718
+ class=${A("moz-date-input",{"moz-date-input--no-lr-border":w.showSpin,"moz-date-input--radius":!w.showSpin,"moz-date-input--disabled":w.disabled})}
719
719
  @click=${u}
720
720
  >
721
721
  <input
722
- .value=${E}
723
- name=${Me.ifDefined(C.name)}
724
- ?disabled=${!!C.disabled}
725
- ?readonly=${!!C.readonly}
726
- class=${L("moz-date-input__field",{"moz-date-input__field--disabled":C.disabled})}
722
+ .value=${$}
723
+ name=${Ce.ifDefined(w.name)}
724
+ ?disabled=${!!w.disabled}
725
+ ?readonly=${!!w.readonly}
726
+ class=${A("moz-date-input__field",{"moz-date-input__field--disabled":w.disabled})}
727
727
  ${ce(Y)}
728
- @change=${R}
728
+ @change=${I}
729
729
  />
730
- ${C.readonly?o.nothing:o.html`<div class="moz-date-input__icon-container">
731
- ${en("currentColor",L("moz-date-input__icon",{"moz-date-input__icon--disabled":C.disabled}))}
730
+ ${w.readonly?o.nothing:o.html`<div class="moz-date-input__icon-container">
731
+ ${fn("currentColor",A("moz-date-input__icon",{"moz-date-input__icon--disabled":w.disabled}))}
732
732
  </div>`}
733
733
  </div>
734
- ${C.showSpin?Q(Jl("var(--moz-color-on-accent)","14",C.disabled||G),"right",G,$):o.nothing}
734
+ ${w.showSpin?j(mn("var(--moz-color-on-accent)","14",w.disabled||_),"right",_,S):o.nothing}
735
735
  </div>
736
736
  </div>
737
- `}}}}),sn={name:"MozDateInput",core:Jo,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 gt(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 ln(e="10",t="var(--moz-color-text-muted)",s=!1,n=!1,i=""){const a=gt(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">
737
+ `}}}}),bn={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 wn(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">
738
738
  <path d="M8.5 1.5L1.49999 8.50001" stroke=${t} stroke-width="1.75" stroke-linecap="round"></path>
739
739
  <path d="M1.5 1.5L8.50001 8.50001" stroke=${t} stroke-width="1.75" stroke-linecap="round"></path>
740
740
  </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">
@@ -760,7 +760,7 @@
760
760
  ></path>
761
761
  </g>
762
762
  </g>
763
- </svg>`}function nn(e="30",t="var(--moz-color-danger)",s=""){const n=gt(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">
763
+ </svg>`}function Cn(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">
764
764
  <mask id="mask0_6027_4458" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
765
765
  <g><path d="M30 0H0V30H30V0Z" fill="#FFF"></path></g>
766
766
  </mask>
@@ -772,7 +772,7 @@
772
772
  ></path>
773
773
  </g>
774
774
  </g>
775
- </svg>`}function rn(e="30",t="var(--moz-color-accent)",s=""){const n=gt(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">
775
+ </svg>`}function yn(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">
776
776
  <g>
777
777
  <path
778
778
  fill-rule="evenodd"
@@ -781,7 +781,7 @@
781
781
  fill=${t}
782
782
  ></path>
783
783
  </g>
784
- </svg>`}function an(e="30",t="var(--moz-color-success)",s=""){const n=gt(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">
784
+ </svg>`}function $n(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">
785
785
  <g>
786
786
  <path
787
787
  fill-rule="evenodd"
@@ -790,7 +790,7 @@
790
790
  fill=${t}
791
791
  ></path>
792
792
  </g>
793
- </svg>`}function dn(e="30",t="var(--moz-color-warning)",s=""){const n=gt(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">
793
+ </svg>`}function Sn(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">
794
794
  <mask id="mask0_6027_4463" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
795
795
  <g><path d="M30 0H0V30H30V0Z" fill="#FFF"></path></g>
796
796
  </mask>
@@ -802,47 +802,47 @@
802
802
  ></path>
803
803
  </g>
804
804
  </g>
805
- </svg>`}const cn=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 ut=0,es="";const un=()=>{ut===0&&(es=document.body.style.overflow,document.body.style.overflow="hidden"),ut+=1},pn=()=>{ut!==0&&(ut-=1,ut===0&&(document.body.style.overflow=es))},hn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',ts=we({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=_.createRef(),s=_.createRef(),n=Xe("moz-popup-title-"),i=Xe("moz-popup-desc-");let a=null,m=e.props.visible??!1,c=e.props.width,l=e.props.height;const h=()=>e.controlled("visible")?!!e.props.visible:m,r=b=>{e.controlled("visible")||(m=b),e.emit("update:visible",b),e.requestUpdate()},p=()=>e.controlled("width")?e.props.width:c,u=b=>{e.controlled("width")||(c=b),e.emit("update:width",b),e.requestUpdate()},v=()=>e.controlled("height")?e.props.height:l,$=b=>{e.controlled("height")||(l=b),e.emit("update:height",b),e.requestUpdate()};let R=0,C=0,y=!1;const D=!0;let E=null;const V={mouseDown:!1,dragging:!1,offset:{x:0,y:0}};let G=h(),Y=!1,Q=!1,le=null,ue=[];const U=()=>{const b=t.value;if(b)for(const I of Array.from(document.body.children))I instanceof HTMLElement&&(I.contains(b)||I.getAttribute("aria-hidden")!=="true"&&(I.setAttribute("aria-hidden","true"),ue.push(I)))},z=()=>{for(const b of ue)b.removeAttribute("aria-hidden");ue=[]},W=()=>{const b=t.value;return b?Array.from(b.querySelectorAll(hn)).filter(I=>I.getAttribute("aria-hidden")!=="true"):[]},J=()=>{const b=document.querySelectorAll(".moz-popup");return b.length>0&&b[b.length-1]===t.value},ne=()=>{a||(a=Nt(()=>P()))},X=()=>{a==null||a.release(),a=null},B=()=>{Y||(Y=!0,ne(),e.props.lockScroll&&(un(),Q=!0),e.props.focusTrap&&(le=document.activeElement instanceof HTMLElement?document.activeElement:null,queueMicrotask(()=>{const b=t.value;!b||!h()||(W()[0]??b).focus()})),e.props.hideOthers&&queueMicrotask(()=>{h()&&U()}))},se=()=>{if(X(),!Y)return;Y=!1,Q&&(pn(),Q=!1),z();const b=le;le=null,b&&b.isConnected&&b.focus()},K=()=>{e.props.side||e.props.autoPosition===!1||queueMicrotask(()=>{const b=t.value;if(!b)return;const I=e.props;C=I.top!=null?I.top:window.innerHeight/2-b.offsetHeight/2,R=I.left!=null?I.left:window.innerWidth/2-b.offsetWidth/2,e.requestUpdate()})},k=()=>{!h()||e.props.side||e.props.autoPosition===!1||y||K()},S=()=>{h()||r(!0),e.emit("open"),K(),B()},x=async()=>{let b=!0;return e.props.onBeforeClose?b=await e.props.onBeforeClose()??!0:e.emit("close:before",b),b},P=async()=>{await x()&&h()&&(r(!1),e.props.onCancel?e.props.onCancel():e.emit("close"),e.emit("hidden"))},A=async()=>{let b=!0;return e.props.onBeforeConfirm?b=await e.props.onBeforeConfirm()??!0:e.emit("confirm:before",b),b},f=async()=>{await A()&&h()&&(r(!1),e.props.onConfirm?e.props.onConfirm():e.emit("confirm"),e.emit("hidden"))},q=()=>{e.props.onBeforeUnload&&e.props.onBeforeUnload()},N=()=>{e.props.closeOnOutsideClick&&P()},j=b=>{b?S():(se(),q(),P())},be=(b,I)=>{document.addEventListener("mouseup",b),document.addEventListener("mousemove",I)},Ve=(b,I)=>{document.removeEventListener("mouseup",b),document.removeEventListener("mousemove",I)},Ne=b=>{const I=R-b.clientX,Ce=C-b.clientY;V.mouseDown=!0,V.offset.x=I,V.offset.y=Ce,e.emit("drag-start")},Oe=b=>{e.props.draggable&&(b.clientX===0&&E&&(b=E),b&&b.clientX&&b.clientY&&(R=b.clientX+V.offset.x,C=b.clientY+V.offset.y,y=!0,e.requestUpdate()))},d=b=>{b.clientX!==0&&b.clientY!==0&&(E=b),V.mouseDown&&D&&(V.dragging=!0,Oe(b))},T=()=>{V.dragging&&e.emit("drag-end"),V.mouseDown=!1,setTimeout(()=>{V.dragging=!1,Ve(T,d)},100)},Z=b=>{e.props.side||e.props.autoPosition===!1||(b.preventDefault(),be(T,d),Ne(b))},ie=b=>{b.preventDefault();const I=t.value;if(!I)return;const Ce=I.getBoundingClientRect(),ke=p()??Ce.width,Ee=v()??Ce.height;if(!ke||!Ee)return;const xe=ke/Ee,De={x:b.clientX,y:b.clientY},Ue=e.props,Qe=Je=>{let Ze=Je.clientX-De.x,g=Je.clientY-De.y;if(Ue.keepAspectRatio){const te=Ze/xe;Math.abs(g)>Math.abs(te)?g=te:Ze=g*xe}const O=Math.max(Ue.minWidth,Math.min(ke+Ze,Ue.maxWidth));let F=Math.max(Ue.minHeight,Math.min(Ee+g,Ue.maxHeight));Ue.keepAspectRatio&&O/F!==xe&&(F=O/xe),u(O),$(F)},ot=()=>{document.removeEventListener("mousemove",Qe),document.removeEventListener("mouseup",ot)};document.addEventListener("mousemove",Qe),document.addEventListener("mouseup",ot)},de=b=>{if(b.key==="Tab"&&e.props.focusTrap&&h()&&J()){if(a&&!a.isTopmost())return;const I=t.value;if(!I)return;const Ce=W();if(Ce.length===0){b.preventDefault(),I.focus();return}const ke=Ce[0],Ee=Ce[Ce.length-1],xe=document.activeElement,De=xe instanceof Node&&I.contains(xe);b.shiftKey?(!De||xe===ke||xe===I)&&(b.preventDefault(),Ee.focus()):(!De||xe===Ee)&&(b.preventDefault(),ke.focus());return}};e.onCleanup(()=>{se(),window.removeEventListener("keydown",de),window.removeEventListener("resize",k),q(),window.removeEventListener("unload",q),Ve(T,d)});const Se=()=>{const b=e.props;if(b.action)return b.action;const I=e.locale.Popup;switch(b.preset){case"save":return{positive:b.saveText??I.save,negative:b.cancelText??I.cancel};case"check":return{positive:b.okText??I.ok};case"close":return{negative:b.closeText??I.close};case"confirm":default:return{positive:b.okText??I.ok,negative:b.cancelText??I.cancel}}},ye=b=>{switch(b){case"error":return nn("30","var(--moz-color-danger)","dialog-icon");case"info":return rn("30","var(--moz-color-accent)","dialog-icon");case"success":return an("30","var(--moz-color-success)","dialog-icon");case"warning":return dn("30","var(--moz-color-warning)","dialog-icon");default:return o.nothing}};return{api:{resetPosition:K},onMounted:()=>{window.addEventListener("keydown",de),window.addEventListener("resize",k),window.addEventListener("unload",q),queueMicrotask(()=>e.emit("init",s.value??null)),h()&&(K(),B())},render(){const b=e.props,I=h();if(I!==G){const ge=I;G=I,ge?ne():X(),queueMicrotask(()=>j(ge))}if(!(b.useVShow?!0:I))return o.nothing;const ke=b.useVShow?!I:!1,Ee=p(),xe=v(),De=b.side,Ue=!!De||b.autoPosition===!1,Qe={...me(b.style),...Ee?{width:`${Te(Ee)}rem`}:{},...xe?{height:`${Te(xe)}rem`}:{},...Ue?{}:{left:`${Te(R)}rem`,top:`${Te(C)}rem`}},ot=!!b.draggable&&!Ue,Je=!!b.resizeable&&!De,Ze=typeof b.contentsPadding=="number"?`${Te(b.contentsPadding)}rem`:b.contentsPadding,g=Se(),O=ve(b,cn),F=e.slots.has("title")?e.slot("title"):o.html`<span class="truncate">${b.title}</span>`,te=e.slots.has("description"),oe=e.slots.has("default")?e.slot("default"):o.html`<div class="moz-dialog-body">
806
- ${ye(b.dialogIcon)}
807
- <div class="dialog-message">${b.dialogMessage!=null?To.unsafeHTML(b.dialogMessage):o.nothing}</div>
808
- </div>`,pe=e.slots.has("footer")?e.slot("footer",{onConfirm:f,onCancel:P}):o.html`
809
- ${g.positive?ct({class:"preset-btn",loading:b.loading,disabled:b.disabledConfirmButton,style:"min-width: 80px"},{onClick:f,content:g.positive}):o.nothing}
810
- ${g.negative?ct({class:"preset-btn",type:"outline",disabled:b.loading,style:"min-width: 80px"},{onClick:P,content:g.negative}):o.nothing}
805
+ </svg>`}const kn=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 En=()=>{ht===0&&(rs=document.body.style.overflow,document.body.style.overflow="hidden"),ht+=1},Pn=()=>{ht!==0&&(ht-=1,ht===0&&(document.body.style.overflow=rs))},Tn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',as=ve({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=Xe("moz-popup-title-"),i=Xe("moz-popup-desc-");let a=null,m=e.props.visible??!1,c=e.props.width,l=e.props.height;const h=()=>e.controlled("visible")?!!e.props.visible:m,r=C=>{e.controlled("visible")||(m=C),e.emit("update:visible",C),e.requestUpdate()},p=()=>e.controlled("width")?e.props.width:c,u=C=>{e.controlled("width")||(c=C),e.emit("update:width",C),e.requestUpdate()},v=()=>e.controlled("height")?e.props.height:l,S=C=>{e.controlled("height")||(l=C),e.emit("update:height",C),e.requestUpdate()};let I=0,w=0,y=!1;const P=!0;let $=null;const x={mouseDown:!1,dragging:!1,offset:{x:0,y:0}};let _=h(),Y=!1,j=!1,le=null,ue=[];const W=()=>{const C=t.value;if(C)for(const q of Array.from(document.body.children))q instanceof HTMLElement&&(q.contains(C)||q.getAttribute("aria-hidden")!=="true"&&(q.setAttribute("aria-hidden","true"),ue.push(q)))},D=()=>{for(const C of ue)C.removeAttribute("aria-hidden");ue=[]},K=()=>{const C=t.value;return C?Array.from(C.querySelectorAll(Tn)).filter(q=>q.getAttribute("aria-hidden")!=="true"):[]},ee=()=>{const C=document.querySelectorAll(".moz-popup");return C.length>0&&C[C.length-1]===t.value},ne=()=>{a||(a=Yt(()=>T()))},Q=()=>{a==null||a.release(),a=null},F=()=>{Y||(Y=!0,ne(),e.props.lockScroll&&(En(),j=!0),e.props.focusTrap&&(le=document.activeElement instanceof HTMLElement?document.activeElement:null,queueMicrotask(()=>{const C=t.value;!C||!h()||(K()[0]??C).focus()})),e.props.hideOthers&&queueMicrotask(()=>{h()&&W()}))},se=()=>{if(Q(),!Y)return;Y=!1,j&&(Pn(),j=!1),D();const C=le;le=null,C&&C.isConnected&&C.focus()},G=()=>{e.props.side||e.props.autoPosition===!1||queueMicrotask(()=>{const C=t.value;if(!C)return;const q=e.props;w=q.top!=null?q.top:window.innerHeight/2-C.offsetHeight/2,I=q.left!=null?q.left:window.innerWidth/2-C.offsetWidth/2,e.requestUpdate()})},E=()=>{!h()||e.props.side||e.props.autoPosition===!1||y||G()},k=()=>{h()||r(!0),e.emit("open"),G(),F()},z=async()=>{let C=!0;return e.props.onBeforeClose?C=await e.props.onBeforeClose()??!0:e.emit("close:before",C),C},T=async()=>{await z()&&h()&&(r(!1),e.props.onCancel?e.props.onCancel():e.emit("close"),e.emit("hidden"))},V=async()=>{let C=!0;return e.props.onBeforeConfirm?C=await e.props.onBeforeConfirm()??!0:e.emit("confirm:before",C),C},f=async()=>{await V()&&h()&&(r(!1),e.props.onConfirm?e.props.onConfirm():e.emit("confirm"),e.emit("hidden"))},R=()=>{e.props.onBeforeUnload&&e.props.onBeforeUnload()},U=()=>{e.props.closeOnOutsideClick&&T()},X=C=>{C?k():(se(),R(),T())},we=(C,q)=>{document.addEventListener("mouseup",C),document.addEventListener("mousemove",q)},De=(C,q)=>{document.removeEventListener("mouseup",C),document.removeEventListener("mousemove",q)},_e=C=>{const q=I-C.clientX,ye=w-C.clientY;x.mouseDown=!0,x.offset.x=q,x.offset.y=ye,e.emit("drag-start")},Be=C=>{e.props.draggable&&(C.clientX===0&&$&&(C=$),C&&C.clientX&&C.clientY&&(I=C.clientX+x.offset.x,w=C.clientY+x.offset.y,y=!0,e.requestUpdate()))},d=C=>{C.clientX!==0&&C.clientY!==0&&($=C),x.mouseDown&&P&&(x.dragging=!0,Be(C))},L=()=>{x.dragging&&e.emit("drag-end"),x.mouseDown=!1,setTimeout(()=>{x.dragging=!1,De(L,d)},100)},Z=C=>{e.props.side||e.props.autoPosition===!1||(C.preventDefault(),we(L,d),_e(C))},ie=C=>{C.preventDefault();const q=t.value;if(!q)return;const ye=q.getBoundingClientRect(),Ee=p()??ye.width,Pe=v()??ye.height;if(!Ee||!Pe)return;const Le=Ee/Pe,Ve={x:C.clientX,y:C.clientY},Ue=e.props,Qe=Je=>{let Ze=Je.clientX-Ve.x,g=Je.clientY-Ve.y;if(Ue.keepAspectRatio){const te=Ze/Le;Math.abs(g)>Math.abs(te)?g=te:Ze=g*Le}const B=Math.max(Ue.minWidth,Math.min(Ee+Ze,Ue.maxWidth));let O=Math.max(Ue.minHeight,Math.min(Pe+g,Ue.maxHeight));Ue.keepAspectRatio&&B/O!==Le&&(O=B/Le),u(B),S(O)},ot=()=>{document.removeEventListener("mousemove",Qe),document.removeEventListener("mouseup",ot)};document.addEventListener("mousemove",Qe),document.addEventListener("mouseup",ot)},de=C=>{if(C.key==="Tab"&&e.props.focusTrap&&h()&&ee()){if(a&&!a.isTopmost())return;const q=t.value;if(!q)return;const ye=K();if(ye.length===0){C.preventDefault(),q.focus();return}const Ee=ye[0],Pe=ye[ye.length-1],Le=document.activeElement,Ve=Le instanceof Node&&q.contains(Le);C.shiftKey?(!Ve||Le===Ee||Le===q)&&(C.preventDefault(),Pe.focus()):(!Ve||Le===Pe)&&(C.preventDefault(),Ee.focus());return}};e.onCleanup(()=>{se(),window.removeEventListener("keydown",de),window.removeEventListener("resize",E),R(),window.removeEventListener("unload",R),De(L,d)});const ke=()=>{const C=e.props;if(C.action)return C.action;const q=e.locale.Popup;switch(C.preset){case"save":return{positive:C.saveText??q.save,negative:C.cancelText??q.cancel};case"check":return{positive:C.okText??q.ok};case"close":return{negative:C.closeText??q.close};case"confirm":default:return{positive:C.okText??q.ok,negative:C.cancelText??q.cancel}}},$e=C=>{switch(C){case"error":return Cn("30","var(--moz-color-danger)","dialog-icon");case"info":return yn("30","var(--moz-color-accent)","dialog-icon");case"success":return $n("30","var(--moz-color-success)","dialog-icon");case"warning":return Sn("30","var(--moz-color-warning)","dialog-icon");default:return o.nothing}};return{api:{resetPosition:G},onMounted:()=>{window.addEventListener("keydown",de),window.addEventListener("resize",E),window.addEventListener("unload",R),queueMicrotask(()=>e.emit("init",s.value??null)),h()&&(G(),F())},render(){const C=e.props,q=h();if(q!==_){const be=q;_=q,be?ne():Q(),queueMicrotask(()=>X(be))}if(!(C.useVShow?!0:q))return o.nothing;const Ee=C.useVShow?!q:!1,Pe=p(),Le=v(),Ve=C.side,Ue=!!Ve||C.autoPosition===!1,Qe={...me(C.style),...Pe?{width:`${Me(Pe)}rem`}:{},...Le?{height:`${Me(Le)}rem`}:{},...Ue?{}:{left:`${Me(I)}rem`,top:`${Me(w)}rem`}},ot=!!C.draggable&&!Ue,Je=!!C.resizeable&&!Ve,Ze=typeof C.contentsPadding=="number"?`${Me(C.contentsPadding)}rem`:C.contentsPadding,g=ke(),B=fe(C,kn),O=e.slots.has("title")?e.slot("title"):o.html`<span class="truncate">${C.title}</span>`,te=e.slots.has("description"),oe=e.slots.has("default")?e.slot("default"):o.html`<div class="moz-dialog-body">
806
+ ${$e(C.dialogIcon)}
807
+ <div class="dialog-message">${C.dialogMessage!=null?Io.unsafeHTML(C.dialogMessage):o.nothing}</div>
808
+ </div>`,pe=e.slots.has("footer")?e.slot("footer",{onConfirm:f,onCancel:T}):o.html`
809
+ ${g.positive?pt({class:"preset-btn",loading:C.loading,disabled:C.disabledConfirmButton,style:"min-width: 80px"},{onClick:f,content:g.positive}):o.nothing}
810
+ ${g.negative?pt({class:"preset-btn",type:"outline",disabled:C.loading,style:"min-width: 80px"},{onClick:T,content:g.negative}):o.nothing}
811
811
  `;return o.html`
812
812
  <div
813
- class=${L("moz-popup-container",b.class,De?`moz-popup-side moz-popup-side-${De}`:null,b.showBackdrop===!1?"moz-popup-no-backdrop":null)}
814
- style=${Me.ifDefined(ke?"display: none;":void 0)}
813
+ class=${A("moz-popup-container",C.class,Ve?`moz-popup-side moz-popup-side-${Ve}`:null,C.showBackdrop===!1?"moz-popup-no-backdrop":null)}
814
+ style=${Ce.ifDefined(Ee?"display: none;":void 0)}
815
815
  >
816
- ${b.showBackdrop===!1?o.nothing:o.html`<div class="moz-popup-backdrop" aria-hidden="true" @click=${N}></div>`}
816
+ ${C.showBackdrop===!1?o.nothing:o.html`<div class="moz-popup-backdrop" aria-hidden="true" @click=${U}></div>`}
817
817
  <div
818
- class=${L("moz-popup",b.dialogClass)}
818
+ class=${A("moz-popup",C.dialogClass)}
819
819
  role="dialog"
820
820
  aria-modal="true"
821
- aria-labelledby=${Me.ifDefined(b.showHeader===!1?void 0:n)}
822
- aria-describedby=${Me.ifDefined(te?i:void 0)}
823
- tabindex=${Me.ifDefined(b.focusTrap?"-1":void 0)}
824
- style=${ee.styleMap(Qe)}
825
- ${_.ref(t)}
826
- ${ce(O)}
821
+ aria-labelledby=${Ce.ifDefined(C.showHeader===!1?void 0:n)}
822
+ aria-describedby=${Ce.ifDefined(te?i:void 0)}
823
+ tabindex=${Ce.ifDefined(C.focusTrap?"-1":void 0)}
824
+ style=${J.styleMap(Qe)}
825
+ ${N.ref(t)}
826
+ ${ce(B)}
827
827
  >
828
- ${b.showHeader===!1?o.nothing:o.html`<div
828
+ ${C.showHeader===!1?o.nothing:o.html`<div
829
829
  id=${n}
830
- class=${L("moz-popup-title",{draggable:ot})}
830
+ class=${A("moz-popup-title",{draggable:ot})}
831
831
  @mousedown=${Z}
832
832
  @touchstart=${Z}
833
833
  >
834
- ${F}
835
- ${b.showCloseButton?ct({type:"icon",class:"close-button","aria-label":e.locale.Popup.close},{onClick:P,icon:ln("14","var(--moz-color-text-subtle)")}):o.nothing}
834
+ ${O}
835
+ ${C.showCloseButton?pt({type:"icon",class:"close-button","aria-label":e.locale.Popup.close},{onClick:T,icon:wn("14","var(--moz-color-text-subtle)")}):o.nothing}
836
836
  </div>`}
837
837
  ${te?o.html`<div id=${i} class="moz-popup-description">${e.slot("description")}</div>`:o.nothing}
838
- <div class="moz-popup-body" style=${ee.styleMap({padding:Ze})} ${_.ref(s)}>${oe}</div>
839
- ${b.preset!=="no-footer"?o.html`<div class=${L("moz-popup-footer",{"with-border":b.showFooterBorder})}>
838
+ <div class="moz-popup-body" style=${J.styleMap({padding:Ze})} ${N.ref(s)}>${oe}</div>
839
+ ${C.preset!=="no-footer"?o.html`<div class=${A("moz-popup-footer",{"with-border":C.showFooterBorder})}>
840
840
  ${pe}
841
841
  </div>`:o.nothing}
842
842
  ${Je?o.html`<div class="resize-handler" @mousedown=${ie}></div>`:o.nothing}
843
843
  </div>
844
844
  </div>
845
- `}}}}),mn={name:"MozPopup",core:ts,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 Lt(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 to(e="12",t="var(--moz-color-text-subtle)",s=!1,n=""){const i=Lt(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">
845
+ `}}}}),Mn={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">
846
846
  <g style=${`fill: ${a}`}>
847
847
  <path
848
848
  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"
@@ -855,21 +855,21 @@
855
855
  transform="translate(-829.971 -686.318)"
856
856
  ></path>
857
857
  </g>
858
- </svg>`}function oo(e="14",t="var(--moz-color-text-subtle)",s=!1){const n=Lt(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">
858
+ </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">
859
859
  <path
860
860
  fill-rule="evenodd"
861
861
  clip-rule="evenodd"
862
862
  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"
863
863
  fill=${s?"var(--moz-color-text-muted)":t}
864
864
  ></path>
865
- </svg>`}function so(e="14",t="var(--moz-color-text-subtle)",s=!1){const n=Lt(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">
865
+ </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">
866
866
  <path
867
867
  fill-rule="evenodd"
868
868
  clip-rule="evenodd"
869
869
  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"
870
870
  fill=${s?"var(--moz-color-text-muted)":t}
871
871
  ></path>
872
- </svg>`}function lo(e="12",t="var(--moz-color-text-subtle)",s=!1){const n=Lt(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">
872
+ </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">
873
873
  <path
874
874
  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"
875
875
  fill=${i}
@@ -879,7 +879,7 @@
879
879
  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"
880
880
  fill=${i}
881
881
  ></path>
882
- </svg>`}const po=250,at=24,fn=new Set(["itemsSource","label","width","required","readonly","disabled","keyProp","displayProp","rules","useObjBinding","useFilter","listWidth","placeholder","searchPlaceholder","emptyText","requiredMessage","modelValue","class","style"]);function gn(e,t){let s;return(...n)=>{s&&clearTimeout(s),s=setTimeout(()=>e(...n),t)}}function vn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const os=we({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=_.createRef(),s=_.createRef(),n=_.createRef(),i=_.createRef(),a=_.createRef(),m=_.createRef();let c=null,l=e.props.modelValue??null;const h=()=>e.controlled("modelValue")?e.props.modelValue??null:l,r=d=>{e.controlled("modelValue")||(l=d),e.emit("update:modelValue",d),e.requestUpdate()};let p=!1,u="";const v=Xe("moz-select-listbox-"),$={change:"",blur:"",save:""};let R=h();const C=()=>e.props.keyProp||"id",y=new Fe.Virtualizer({count:0,getScrollElement:()=>c,estimateSize:()=>at,measureElement:d=>{const T=d.getBoundingClientRect().height;return T>0?T:at},overscan:5,observeElementRect:Fe.observeElementRect,observeElementOffset:Fe.observeElementOffset,scrollToFn:Fe.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{B==null||B.release(),B=null}),e.onCleanup(y._didMount());const D=d=>{c=d??null,d&&(y._willUpdate(),e.requestUpdate())},E=d=>e.props.itemsSource?e.props.itemsSource.find(Z=>Z[C()]===d)??null:null,V=d=>d?typeof e.props.displayProp=="function"?e.props.displayProp(d):typeof d=="object"?d[e.props.displayProp]:String(d):"",G=()=>{const d=h();if(!d&&isNaN(Number(d)))return null;const T=e.props.useObjBinding?d:E(d);return T?typeof e.props.displayProp=="function"?e.props.displayProp(T):T[e.props.displayProp]:null},Y=()=>{if(!u)return e.props.itemsSource??[];const d=u.toLowerCase();return(e.props.itemsSource??[]).filter(T=>V(T).toLowerCase().indexOf(d)>-1)},Q=d=>{if(!u)return[{part:d,highlight:!1}];const T=vn(u),Z=new RegExp(`(${T})`,"gi");return d.split(Z).map(ie=>({part:ie,highlight:u.toLowerCase()===ie.toLowerCase()}))},le=()=>$.save||$.blur||$.change,ue=()=>{const d=[];return e.props.required&&d.push({message:e.props.requiredMessage??e.locale.Select.requiredMessage.replace("{label}",e.props.label||""),type:"save",validator:T=>!!T}),[...d,...e.props.rules??[]]},U=async(d,T)=>{const Z=ue();if(Z.length<=0||e.props.disabled)return!0;$[T]="",e.requestUpdate();const ie=Z.filter(de=>de.type===T);for(const de of ie)if(!await de.validator(d))return $[T]=de.message,e.requestUpdate(),!1;return!0},z=async(d="save")=>le()!==""?!1:await U(h(),d),W={validate:z,initValidator:()=>{$.change="",$.blur="",$.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(W),e.onCleanup(()=>{var d;return(d=e.validator)==null?void 0:d.removeValidator(W)}));const J=new mt({anchor:()=>s.value??null,panel:()=>n.value??null,maxHeight:()=>po,container:()=>t.value??null,useMinWidth:!0,listWidth:()=>e.props.listWidth,ignoreScrollTargets:d=>d===c,requestClose:()=>{p&&se(!1)}});e.onCleanup(()=>J.destroy());const ne=d=>{`${d.ctrlKey?"ctrl+":""}${d.altKey?"alt+":""}${d.key.toLowerCase()}`==="escape"&&se(!1)},X=d=>{const Z=at*d-po/2;return Math.max(0,Z+at)};let B=null;const se=d=>{p!==d&&(p=d,e.requestUpdate(),d?(B=ft(),J.open(),$.save="",window.addEventListener("keydown",ne),queueMicrotask(()=>{var Z;const T=h();if(T&&c){const ie=(e.props.itemsSource??[]).findIndex(de=>de[C()]===T);c.scrollTop=X(ie)}m.value?m.value.focus():(Z=a.value)==null||Z.focus()})):(B==null||B.release(),B=null,J.close(),e.emit("close"),U(h(),"blur"),window.removeEventListener("keydown",ne),u="",e.emit("close"),queueMicrotask(()=>{var T;return(T=a.value)==null?void 0:T.focus()})))},K=()=>{var d;e.props.disabled||(se(!p),(d=a.value)==null||d.focus())},k=d=>{var T;r(d),se(!1),(T=a.value)==null||T.focus()},S=gn(d=>{u=d.target.value,e.requestUpdate(),queueMicrotask(()=>{const T=Y().length;y.setOptions({...y.options,count:T}),y.measure(),c&&(c.scrollTop=0,y.scrollToIndex(0),y.measure())})},300),x=d=>{var T;if(p){d.stopPropagation(),d.preventDefault();const Z=m.value??((T=i.value)==null?void 0:T.querySelector("div:first-child"));Z==null||Z.focus()}},P=d=>{var Se,ye,b;const T=((Se=n.value)==null?void 0:Se.querySelectorAll('[tabindex="0"]'))??[],Z=[...Array.from(T)];m.value&&Z.unshift(m.value);const ie=Z[0],de=Z[Z.length-1];(d.target===ie||d.target===de)&&a.value&&(d.target===ie&&d.shiftKey?(d.stopPropagation(),d.preventDefault(),(ye=a.value)==null||ye.focus()):d.target===de&&!d.shiftKey&&(d.stopPropagation(),d.preventDefault(),(b=a.value)==null||b.focus()))},A=d=>{c&&(d.shiftKey?c.scrollTop-=24:c.scrollTop+=24)},f=()=>{var T;const d=Array.from(((T=n.value)==null?void 0:T.querySelectorAll('[tabindex="0"]'))??[]);return m.value&&!d.includes(m.value)&&d.unshift(m.value),d},q=d=>{var de;const T=f();if(T.length===0)return;const Z=T.indexOf(document.activeElement),ie=Z<0?d>0?0:T.length-1:Math.min(T.length-1,Math.max(0,Z+d));(de=T[ie])==null||de.focus()},N=d=>d.find(T=>T.getAttribute("aria-selected")==="true")??null,j=d=>{se(!0),queueMicrotask(()=>queueMicrotask(()=>{if(m.value)return;const T=f();T.length!==0&&(N(T)??T[d<0?T.length-1:0]).focus()}))},be=()=>{var d;se(!1),(d=a.value)==null||d.focus()},Ve=d=>{if(d.key==="Tab"){x(d);return}if(d.key==="Enter"||d.key===" "){p||(d.preventDefault(),d.stopPropagation(),j(1));return}if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault(),d.stopPropagation();const T=d.key==="ArrowDown"?1:-1;p?q(T):j(T);return}d.key==="Escape"&&p&&(d.preventDefault(),be())},Ne=d=>{if(d.key==="Tab"){P(d);return}if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault(),q(d.key==="ArrowDown"?1:-1);return}d.key==="Escape"&&(d.preventDefault(),be())},Oe=(d,T)=>{if(d.key==="Tab"){A(d);return}if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault(),d.stopPropagation(),q(d.key==="ArrowDown"?1:-1);return}if(d.key==="Escape"){d.preventDefault(),d.stopPropagation(),be();return}(d.key==="Enter"||d.key===" ")&&k(T)};return{api:{validate:z},render(){const d=e.props,T=h();if(T!==R){R=T;const Ce=T;queueMicrotask(()=>{U(Ce,"change"),e.emit("change",d.useObjBinding?Ce:Ce&&Ce[C()],Ce)})}const Z=typeof d.width=="number"?`${Te(d.width)}rem`:d.width,ie=ve(d,fn),{aria:de,dom:Se}=ht(ie),ye=e.slots.has("icon")?e.slot("icon",{isOpen:p}):p?so("14","var(--moz-color-accent)"):oo("14","var(--moz-color-text-subtle)",d.disabled),b=o.html`<button
882
+ </svg>`}const wo=250,ct=24,Ln=new Set(["itemsSource","label","width","required","readonly","disabled","keyProp","displayProp","rules","useObjBinding","useFilter","listWidth","placeholder","searchPlaceholder","emptyText","requiredMessage","modelValue","class","style"]);function zn(e,t){let s;return(...n)=>{s&&clearTimeout(s),s=setTimeout(()=>e(...n),t)}}function xn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const cs=ve({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 c=null,l=e.props.modelValue??null;const h=()=>e.controlled("modelValue")?e.props.modelValue??null:l,r=d=>{e.controlled("modelValue")||(l=d),e.emit("update:modelValue",d),e.requestUpdate()};let p=!1,u="";const v=Xe("moz-select-listbox-"),S={change:"",blur:"",save:""};let I=h();const w=()=>e.props.keyProp||"id",y=new Oe.Virtualizer({count:0,getScrollElement:()=>c,estimateSize:()=>ct,measureElement:d=>{const L=d.getBoundingClientRect().height;return L>0?L:ct},overscan:5,observeElementRect:Oe.observeElementRect,observeElementOffset:Oe.observeElementOffset,scrollToFn:Oe.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{F==null||F.release(),F=null}),e.onCleanup(y._didMount());const P=d=>{c=d??null,d&&(y._willUpdate(),e.requestUpdate())},$=d=>e.props.itemsSource?e.props.itemsSource.find(Z=>Z[w()]===d)??null:null,x=d=>d?typeof e.props.displayProp=="function"?e.props.displayProp(d):typeof d=="object"?d[e.props.displayProp]:String(d):"",_=()=>{const d=h();if(!d&&isNaN(Number(d)))return null;const L=e.props.useObjBinding?d:$(d);return L?typeof e.props.displayProp=="function"?e.props.displayProp(L):L[e.props.displayProp]:null},Y=()=>{if(!u)return e.props.itemsSource??[];const d=u.toLowerCase();return(e.props.itemsSource??[]).filter(L=>x(L).toLowerCase().indexOf(d)>-1)},j=d=>{if(!u)return[{part:d,highlight:!1}];const L=xn(u),Z=new RegExp(`(${L})`,"gi");return d.split(Z).map(ie=>({part:ie,highlight:u.toLowerCase()===ie.toLowerCase()}))},le=()=>S.save||S.blur||S.change,ue=()=>{const d=[];return e.props.required&&d.push({message:e.props.requiredMessage??e.locale.Select.requiredMessage.replace("{label}",e.props.label||""),type:"save",validator:L=>!!L}),[...d,...e.props.rules??[]]},W=async(d,L)=>{const Z=ue();if(Z.length<=0||e.props.disabled)return!0;S[L]="",e.requestUpdate();const ie=Z.filter(de=>de.type===L);for(const de of ie)if(!await de.validator(d))return S[L]=de.message,e.requestUpdate(),!1;return!0},D=async(d="save")=>le()!==""?!1:await W(h(),d),K={validate:D,initValidator:()=>{S.change="",S.blur="",S.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(K),e.onCleanup(()=>{var d;return(d=e.validator)==null?void 0:d.removeValidator(K)}));const ee=new gt({anchor:()=>s.value??null,panel:()=>n.value??null,maxHeight:()=>wo,container:()=>t.value??null,useMinWidth:!0,listWidth:()=>e.props.listWidth,ignoreScrollTargets:d=>d===c,requestClose:()=>{p&&se(!1)}});e.onCleanup(()=>ee.destroy());const ne=d=>{`${d.ctrlKey?"ctrl+":""}${d.altKey?"alt+":""}${d.key.toLowerCase()}`==="escape"&&se(!1)},Q=d=>{const Z=ct*d-wo/2;return Math.max(0,Z+ct)};let F=null;const se=d=>{p!==d&&(p=d,e.requestUpdate(),d?(F=vt(),ee.open(),S.save="",window.addEventListener("keydown",ne),queueMicrotask(()=>{var Z;const L=h();if(L&&c){const ie=(e.props.itemsSource??[]).findIndex(de=>de[w()]===L);c.scrollTop=Q(ie)}m.value?m.value.focus():(Z=a.value)==null||Z.focus()})):(F==null||F.release(),F=null,ee.close(),e.emit("close"),W(h(),"blur"),window.removeEventListener("keydown",ne),u="",e.emit("close"),queueMicrotask(()=>{var L;return(L=a.value)==null?void 0:L.focus()})))},G=()=>{var d;e.props.disabled||(se(!p),(d=a.value)==null||d.focus())},E=d=>{var L;r(d),se(!1),(L=a.value)==null||L.focus()},k=zn(d=>{u=d.target.value,e.requestUpdate(),queueMicrotask(()=>{const L=Y().length;y.setOptions({...y.options,count:L}),y.measure(),c&&(c.scrollTop=0,y.scrollToIndex(0),y.measure())})},300),z=d=>{var L;if(p){d.stopPropagation(),d.preventDefault();const Z=m.value??((L=i.value)==null?void 0:L.querySelector("div:first-child"));Z==null||Z.focus()}},T=d=>{var ke,$e,C;const L=((ke=n.value)==null?void 0:ke.querySelectorAll('[tabindex="0"]'))??[],Z=[...Array.from(L)];m.value&&Z.unshift(m.value);const ie=Z[0],de=Z[Z.length-1];(d.target===ie||d.target===de)&&a.value&&(d.target===ie&&d.shiftKey?(d.stopPropagation(),d.preventDefault(),($e=a.value)==null||$e.focus()):d.target===de&&!d.shiftKey&&(d.stopPropagation(),d.preventDefault(),(C=a.value)==null||C.focus()))},V=d=>{c&&(d.shiftKey?c.scrollTop-=24:c.scrollTop+=24)},f=()=>{var L;const d=Array.from(((L=n.value)==null?void 0:L.querySelectorAll('[tabindex="0"]'))??[]);return m.value&&!d.includes(m.value)&&d.unshift(m.value),d},R=d=>{var de;const L=f();if(L.length===0)return;const Z=L.indexOf(document.activeElement),ie=Z<0?d>0?0:L.length-1:Math.min(L.length-1,Math.max(0,Z+d));(de=L[ie])==null||de.focus()},U=d=>d.find(L=>L.getAttribute("aria-selected")==="true")??null,X=d=>{se(!0),queueMicrotask(()=>queueMicrotask(()=>{if(m.value)return;const L=f();L.length!==0&&(U(L)??L[d<0?L.length-1:0]).focus()}))},we=()=>{var d;se(!1),(d=a.value)==null||d.focus()},De=d=>{if(d.key==="Tab"){z(d);return}if(d.key==="Enter"||d.key===" "){p||(d.preventDefault(),d.stopPropagation(),X(1));return}if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault(),d.stopPropagation();const L=d.key==="ArrowDown"?1:-1;p?R(L):X(L);return}d.key==="Escape"&&p&&(d.preventDefault(),we())},_e=d=>{if(d.key==="Tab"){T(d);return}if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault(),R(d.key==="ArrowDown"?1:-1);return}d.key==="Escape"&&(d.preventDefault(),we())},Be=(d,L)=>{if(d.key==="Tab"){V(d);return}if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault(),d.stopPropagation(),R(d.key==="ArrowDown"?1:-1);return}if(d.key==="Escape"){d.preventDefault(),d.stopPropagation(),we();return}(d.key==="Enter"||d.key===" ")&&E(L)};return{api:{validate:D},render(){const d=e.props,L=h();if(L!==I){I=L;const ye=L;queueMicrotask(()=>{W(ye,"change"),e.emit("change",d.useObjBinding?ye:ye&&ye[w()],ye)})}const Z=typeof d.width=="number"?`${Me(d.width)}rem`:d.width,ie=fe(d,Ln),{aria:de,dom:ke}=ft(ie),$e=e.slots.has("icon")?e.slot("icon",{isOpen:p}):p?ao("14","var(--moz-color-accent)"):ro("14","var(--moz-color-text-subtle)",d.disabled),C=o.html`<button
883
883
  type="button"
884
884
  class="icon-container"
885
885
  ${ce(de)}
@@ -887,92 +887,92 @@
887
887
  aria-haspopup="listbox"
888
888
  aria-expanded=${p?"true":"false"}
889
889
  aria-controls=${v}
890
- aria-label=${Me.ifDefined(de["aria-label"]??d.label??void 0)}
891
- @keydown=${Ve}
892
- ${_.ref(a)}
890
+ aria-label=${Ce.ifDefined(de["aria-label"]??d.label??void 0)}
891
+ @keydown=${De}
892
+ ${N.ref(a)}
893
893
  ?disabled=${!!d.disabled}
894
894
  >
895
- ${ye}
896
- </button>`,I=e.slots.has("input-container")?o.html`<div
895
+ ${$e}
896
+ </button>`,q=e.slots.has("input-container")?o.html`<div
897
897
  class="moz-input-container select-input-container"
898
- style=${ee.styleMap({width:Z})}
899
- @click=${K}
900
- ${_.ref(s)}
898
+ style=${J.styleMap({width:Z})}
899
+ @click=${G}
900
+ ${N.ref(s)}
901
901
  >
902
902
  <div
903
- class=${L("input-container-wrapper",{"input-container-wrapper--disabled":d.disabled})}
903
+ class=${A("input-container-wrapper",{"input-container-wrapper--disabled":d.disabled})}
904
904
  >
905
- ${e.slot("input-container",{text:G(),item:T})}
905
+ ${e.slot("input-container",{text:_(),item:L})}
906
906
  </div>
907
- ${b}
907
+ ${C}
908
908
  </div>`:o.html`<div
909
909
  class="moz-input-container select-input-container"
910
- style=${ee.styleMap({width:Z})}
911
- @click=${K}
912
- ${_.ref(s)}
910
+ style=${J.styleMap({width:Z})}
911
+ @click=${G}
912
+ ${N.ref(s)}
913
913
  >
914
914
  <input
915
- ${ce(Se)}
916
- .value=${G()??""}
917
- placeholder=${Me.ifDefined(d.placeholder??void 0)}
915
+ ${ce(ke)}
916
+ .value=${_()??""}
917
+ placeholder=${Ce.ifDefined(d.placeholder??void 0)}
918
918
  autocomplete="off"
919
919
  ?disabled=${!!d.disabled}
920
920
  readonly
921
921
  tabindex="-1"
922
- class=${L("select-display-input",{"select-display-input--disabled":d.disabled})}
922
+ class=${A("select-display-input",{"select-display-input--disabled":d.disabled})}
923
923
  />
924
924
  ${e.slot("input")}
925
- ${b}
925
+ ${C}
926
926
  </div>`;return o.html`
927
927
  <div
928
- class=${L("moz-select",{"is-invalid":le()!=="","is-open":p,disabled:!!d.disabled},d.class)}
929
- style=${ee.styleMap(me(d.style))}
930
- ${_.ref(t)}
928
+ class=${A("moz-select",{"is-invalid":le()!=="","is-open":p,disabled:!!d.disabled},d.class)}
929
+ style=${J.styleMap(me(d.style))}
930
+ ${N.ref(t)}
931
931
  >
932
932
  <div class="input-wrapper">
933
- ${d.label?Be({disabled:d.disabled,required:d.required},d.label):o.nothing}
934
- ${I}
933
+ ${d.label?Fe({disabled:d.disabled,required:d.required},d.label):o.nothing}
934
+ ${q}
935
935
  </div>
936
936
 
937
937
  ${le()!==""?o.html`<span class="moz-input-invalid-message">${le()}</span>`:o.nothing}
938
938
  </div>
939
- `},renderPortal(){if(!p)return o.nothing;const d=e.props,T=h(),Z=C(),ie=Y();y.options.count!==ie.length&&y.setOptions({...y.options,count:ie.length}),y._willUpdate();const de=xt(y.getVirtualItems(),ie.length,at,c),Se=y.getTotalSize(),ye=de.map(b=>{if(b.index>=ie.length)return null;const I=ie[b.index];return I?{index:b.index,value:I,size:b.size,start:b.start}:null}).filter(b=>b!==null);return o.html`<div
940
- class=${L("list-box moz-select-list",{"no-label":!d.label})}
941
- @keydown=${Ne}
942
- ${_.ref(n)}
939
+ `},renderPortal(){if(!p)return o.nothing;const d=e.props,L=h(),Z=w(),ie=Y();y.options.count!==ie.length&&y.setOptions({...y.options,count:ie.length}),y._willUpdate();const de=At(y.getVirtualItems(),ie.length,ct,c),ke=y.getTotalSize(),$e=de.map(C=>{if(C.index>=ie.length)return null;const q=ie[C.index];return q?{index:C.index,value:q,size:C.size,start:C.start}:null}).filter(C=>C!==null);return o.html`<div
940
+ class=${A("list-box moz-select-list",{"no-label":!d.label})}
941
+ @keydown=${_e}
942
+ ${N.ref(n)}
943
943
  >
944
944
  ${d.useFilter?o.html`<div class="filter-input">
945
945
  <input
946
- ${_.ref(m)}
947
- @mousedown=${b=>b.stopPropagation()}
946
+ ${N.ref(m)}
947
+ @mousedown=${C=>C.stopPropagation()}
948
948
  placeholder=${d.searchPlaceholder??e.locale.Select.searchPlaceholder}
949
- @input=${S}
949
+ @input=${k}
950
950
  class="filter-input__field"
951
951
  />
952
- <div class="search-icon">${lo("12","var(--moz-color-text-subtle)")}</div>
952
+ <div class="search-icon">${co("12","var(--moz-color-text-subtle)")}</div>
953
953
  </div>`:o.nothing}
954
954
  <div
955
955
  id=${v}
956
956
  role="listbox"
957
- class=${L("list-box-container",{"list-box-container--with-filter":d.useFilter})}
958
- ${_.ref(D)}
957
+ class=${A("list-box-container",{"list-box-container--with-filter":d.useFilter})}
958
+ ${N.ref(P)}
959
959
  >
960
- <div class="inner-container" style=${ee.styleMap({height:`${Se}px`})} ${_.ref(i)}>
961
- ${ye.map(({index:b,value:I,start:Ce})=>{const ke=d.useObjBinding?I&&T&&I[Z]===T[Z]:I[Z]===T;return o.html`<div
962
- data-index=${b}
960
+ <div class="inner-container" style=${J.styleMap({height:`${ke}px`})} ${N.ref(i)}>
961
+ ${$e.map(({index:C,value:q,start:ye})=>{const Ee=d.useObjBinding?q&&L&&q[Z]===L[Z]:q[Z]===L;return o.html`<div
962
+ data-index=${C}
963
963
  role="option"
964
- aria-selected=${ke?"true":"false"}
965
- ${_.ref(Ee=>{Ee&&y.measureElement(Ee)})}
966
- style=${ee.styleMap({transform:`translateY(${Ce}px)`})}
967
- class=${L("list-box-item virtual-row",{"list-selected":I[Z]===T})}
968
- @click=${()=>k(d.useObjBinding?I:I[Z])}
964
+ aria-selected=${Ee?"true":"false"}
965
+ ${N.ref(Pe=>{Pe&&y.measureElement(Pe)})}
966
+ style=${J.styleMap({transform:`translateY(${ye}px)`})}
967
+ class=${A("list-box-item virtual-row",{"list-selected":q[Z]===L})}
968
+ @click=${()=>E(d.useObjBinding?q:q[Z])}
969
969
  tabindex="0"
970
- @keydown=${Ee=>Oe(Ee,d.useObjBinding?I:I[Z])}
970
+ @keydown=${Pe=>Be(Pe,d.useObjBinding?q:q[Z])}
971
971
  >
972
- ${e.slots.has("list-item")?e.slot("list-item",{text:V(I),item:I,index:b,highlightText:Q(V(I))}):o.html`<div class="highlight-container" title=${V(I)}>
973
- ${Q(V(I)).map(Ee=>o.html`<span class=${L({highlight:Ee.highlight})}>${Ee.part}</span>`)}
972
+ ${e.slots.has("list-item")?e.slot("list-item",{text:x(q),item:q,index:C,highlightText:j(x(q))}):o.html`<div class="highlight-container" title=${x(q)}>
973
+ ${j(x(q)).map(Pe=>o.html`<span class=${A({highlight:Pe.highlight})}>${Pe.part}</span>`)}
974
974
  </div>`}
975
- ${ke?to("12","var(--moz-color-accent)",!1,"icon-check"):o.nothing}
975
+ ${Ee?io("12","var(--moz-color-accent)",!1,"icon-check"):o.nothing}
976
976
  </div>`})}
977
977
  </div>
978
978
 
@@ -980,21 +980,21 @@
980
980
  ${e.slots.has("empty")?e.slot("empty"):d.emptyText??e.locale.Select.emptyText}
981
981
  </div>`:o.nothing}
982
982
  </div>
983
- </div>`}}}}),wn={name:"MozSelect",core:os,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 no(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 bn(e="14",t="var(--moz-color-text-subtle)",s=!1){const n=no(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">
983
+ </div>`}}}}),An={name:"MozSelect",core:cs,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 Dn(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">
984
984
  <path
985
985
  fill-rule="evenodd"
986
986
  clip-rule="evenodd"
987
987
  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"
988
988
  fill=${s?"var(--moz-color-text-muted)":t}
989
989
  ></path>
990
- </svg>`}function Cn(e="14",t="var(--moz-color-text-subtle)",s=!1){const n=no(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
+ </svg>`}function Vn(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">
991
991
  <path
992
992
  fill-rule="evenodd"
993
993
  clip-rule="evenodd"
994
994
  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"
995
995
  fill=${s?"var(--moz-color-text-muted)":t}
996
996
  ></path>
997
- </svg>`}function yn(e="12",t="var(--moz-color-text-subtle)",s=!1){const n=no(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">
997
+ </svg>`}function In(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">
998
998
  <path
999
999
  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"
1000
1000
  fill=${i}
@@ -1004,44 +1004,44 @@
1004
1004
  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"
1005
1005
  fill=${i}
1006
1006
  ></path>
1007
- </svg>`}const $n=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 Sn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const ss=we({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=_.createRef(),s=_.createRef(),n=_.createRef(),i=_.createRef(),a=_.createRef();let m=null;const c=()=>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:[]},p=g=>{e.controlled("modelValue")||(h=g),e.emit("update:modelValue",g),e.requestUpdate()};let u=!1;const v=Xe("moz-multiselect-listbox-");let $=e.props.filterValue??"",R=!1,C=!1,y={},D=[];const E={change:"",blur:"",save:""};let V=e.props.itemsSource;const G=(()=>{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}})(),Y=new Fe.Virtualizer({count:0,getScrollElement:()=>m,estimateSize:()=>G,overscan:5,observeElementRect:Fe.observeElementRect,observeElementOffset:Fe.observeElementOffset,scrollToFn:Fe.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{b==null||b.release(),b=null}),e.onCleanup(Y._didMount());const Q=g=>{m=g??null,g&&(Y._willUpdate(),e.requestUpdate())},le=g=>typeof e.props.displayProp=="function"?e.props.displayProp(g):typeof g=="object"?g[e.props.displayProp]??"":g,ue=()=>{const g=new Map;return(e.props.itemsSource??[]).forEach(O=>g.set(O[c()],O)),g},U=()=>{if(e.props.filterMode==="remote"||!$)return e.props.itemsSource??[];const g=$.toLowerCase();return(e.props.itemsSource??[]).filter(O=>le(O).toLowerCase().indexOf(g)>-1)},z=g=>{if(!$)return[{part:g,highlight:!1}];const O=Sn($),F=new RegExp(`(${O})`,"gi");return g.split(F).map(te=>({part:te,highlight:$.toLowerCase()===te.toLowerCase()}))},W=g=>new Set(r()).has(g[c()]),J=g=>D.some(O=>it(O.item,g)),ne=()=>{const g=r(),O=U();if(g.length<O.length||g.length===0||O.length===0)return!1;const F=new Set(g);return O.every(te=>F.has(te[c()]))},X=()=>new Set(U().map(g=>g[c()])),B=()=>new Set(r()),se=()=>{const g=X(),O=B();return!g.size||!O.size||O.size<g.size?!1:Array.from(g).every(F=>O.has(F))},K=()=>E.save||E.blur||E.change,k=()=>{const g=[];return e.props.required&&g.push({message:e.locale.MultiSelect.required.replace("{label}",e.props.label||""),type:"save",validator:O=>!!O.length}),[...g,...e.props.rules??[]]},S=async(g,O)=>{const F=k();if(F.length<=0)return;if(e.props.disabled)return!0;E[O]="",e.requestUpdate();const te=F.filter(oe=>oe.type===O);for(const oe of te)if(!await oe.validator(g))return E[O]=oe.message,e.requestUpdate(),!1;return!0},x=async(g="save")=>K()!==""?!1:await S(r(),g)??!0,P={validate:x,initValidator:()=>{E.change="",E.blur="",E.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(P),e.onCleanup(()=>{var g;return(g=e.validator)==null?void 0:g.removeValidator(P)}));const A=g=>{if(e.props.disabled||e.props.readonly||e.props.loading)return;const O=ue(),F=new Set;r().forEach(oe=>{const pe=O.get(oe);(pe==null?void 0:pe[l()])===!0&&F.add(oe)}),g.forEach(oe=>{const pe=O.get(oe);(pe&&pe[l()]!==!0||!pe&&e.props.preserveMissingValues)&&F.add(oe)});const te=Array.from(F);it(r(),te)||(p(te),e.emit("change",te,te.map(oe=>O.get(oe)).filter(Boolean)),S(te,"change"))},f=(g,O)=>g.filter(F=>W(F)!==O).map(F=>F[c()]),q=(g,O,F)=>{if(F.shiftKey&&D.length>0){const te=D[0],oe=Math.min(te.index,O),pe=Math.max(te.index,O);D=U().slice(oe,pe+1).map((ge,$e)=>({item:ge,index:oe+$e}))}else F.ctrlKey?D.push({item:g,index:O}):D=[{item:g,index:O}];return D.length},N=(g=!0)=>{const O=D.map(oe=>oe.item),F=f(O,g);let te=r();g?te=[...te,...F]:te=te.filter(oe=>!F.some(pe=>oe===pe)),A(te)},j=(g,O,F)=>{if(g[l()]===!0)return;const te=D.some(pe=>pe.item[c()]===g[c()]);(D.length<=1||!te)&&q(g,O,{shiftKey:!1,ctrlKey:!1});const oe=r().some(pe=>pe===g[c()]);N(!oe),F.stopPropagation()},be=(g,O,F)=>{g[l()]!==!0&&(!F.ctrlKey&&!F.shiftKey&&D.length<=1&&j(g,O,F),q(g,O,F),e.requestUpdate())},Ve=(g,O,F)=>{if(g[l()]===!0)return;const te=r(),oe=B().size!==0&&te.every(pe=>pe===g[c()]);A(oe?[]:[g[c()]]),q(g,O,F),F.stopPropagation()},Ne=g=>{g.stopPropagation();const O=X().size===B().size&&[...X()].every(F=>B().has(F));if(ne()&&O){const F=new Set((e.props.itemsSource??[]).filter(te=>te[l()]===!0).map(te=>te[c()]));A(Array.from(F))}else{const F=new Set(U().filter(te=>te[l()]!==!0).map(te=>te[c()]));A(Array.from(F))}},Oe=g=>{if(g.stopPropagation(),se()){const O=X();A(r().filter(F=>!O.has(F)))}else{const O=new Set([...r(),...X()]);A(Array.from(O))}},d=g=>{R=g.target.scrollTop>0,e.requestUpdate()},T=()=>{const g=r();if(!(g!=null&&g.length))return"";const O=ue(),F=g.map(oe=>O.get(oe)).filter(Boolean).map(oe=>typeof e.props.displayProp=="function"?e.props.displayProp(oe):oe[e.props.displayProp]||""),te=e.props.itemsSource??[];return F.length===te.length&&F.length>2?`${e.props.headerFormat.replace(/\{count(:.*?)?}/g,"ALL")}`:F.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${F.length.toLocaleString()}`):F.join(", ")||""},Z=(g,O,F=10)=>{const te=window.innerHeight||document.documentElement.clientHeight,oe=window.innerWidth||document.documentElement.clientWidth,pe=g.getBoundingClientRect(),ge=O.getBoundingClientRect(),$e=pe.bottom+ge.height+F>te;if(!$e)return!1;const Le=pe.top-ge.height-F<0,We=pe.right+ge.width+F>oe,et=pe.left-ge.width-F<0;return $e&&!Le||We&&!et},ie=()=>{const g=s.value;if(!g)return;const O=g.getBoundingClientRect();let F=`${O.width}px`;e.props.listBoxWidth&&(F=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),y={width:String(F),left:`${O.left}px`,top:`${O.top+(C?0:O.height)}px`},e.requestUpdate()},de=g=>{var O;(O=n.value)!=null&&O.contains(g.target)||I(!1)},Se=g=>{var O,F;!((O=t.value)!=null&&O.contains(g.target))&&!((F=n.value)!=null&&F.contains(g.target))&&(I(!1),document.removeEventListener("click",Se,{capture:!0}))},ye=g=>{var F;`${g.ctrlKey?"ctrl+":""}${g.altKey?"alt+":""}${g.key.toLowerCase()}`==="escape"&&(I(!1),(F=i.value)==null||F.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",de,{capture:!0}),document.removeEventListener("click",Se,{capture:!0}),window.removeEventListener("keydown",ye)});let b=null;const I=g=>{if(u===g)return;const O=u;if(u=g,e.requestUpdate(),g)b=ft(),document.body.addEventListener("scroll",de,{capture:!0}),document.addEventListener("click",Se,{capture:!0}),E.save="",window.addEventListener("keydown",ye),ie(),queueMicrotask(()=>{var F;s.value&&m&&(C=Z(s.value,m)),ie(),Y.measure(),m&&(m.scrollTop=0),a.value?a.value.focus():(F=i.value)==null||F.focus()});else if(b==null||b.release(),b=null,$="",a.value&&(a.value.value=""),document.body.removeEventListener("scroll",de,{capture:!0}),document.removeEventListener("click",Se,{capture:!0}),S(r(),"blur"),window.removeEventListener("keydown",ye),O&&!g){const F=r();if(e.props.selectAllWhenEmpty&&(!F||F.length===0)){const te=(e.props.itemsSource??[]).filter(oe=>oe[l()]!==!0).map(oe=>oe[c()]);te.length>0&&(p(te),e.emit("change",te,(e.props.itemsSource??[]).filter(oe=>te.includes(oe[c()]))))}e.emit("close")}},Ce=g=>{var O;if(u){g.stopPropagation(),g.preventDefault();const F=(O=n.value)==null?void 0:O.querySelector("input:first-child, button:first-child");F==null||F.focus()}},ke=g=>{var oe,pe,ge;const O=((oe=n.value)==null?void 0:oe.querySelectorAll("input, button"))??[],F=O[0],te=O[O.length-1];(g.target===F||g.target===te)&&i.value&&(g.target===F&&g.shiftKey?(g.stopPropagation(),g.preventDefault(),(pe=i.value)==null||pe.focus()):g.target===te&&!g.shiftKey&&(g.stopPropagation(),g.preventDefault(),(ge=i.value)==null||ge.focus()))},Ee=g=>{g.key==="Tab"&&Ce(g)},xe=g=>{!e.props.inline&&g.key==="Tab"&&ke(g)},De=g=>{!u&&!e.props.inline||($=g.target.value,D=[],e.emit("update:filterValue",$),e.requestUpdate(),queueMicrotask(()=>{Y.setOptions({...Y.options,count:U().length}),Y.measure(),m&&(m.scrollTop=0)}))},Ue=()=>{var g;e.props.disabled||(I(!u),(g=i.value)==null||g.focus())},Qe=(g,O)=>{var F,te;if(g.key==="Enter"||g.key===" "){g.preventDefault(),g.stopPropagation(),O();return}if(g.key==="ArrowDown"||g.key==="ArrowUp"){g.preventDefault(),g.stopPropagation();const oe=Array.from(((F=n.value)==null?void 0:F.querySelectorAll('[tabindex="0"]'))??[]),pe=oe.indexOf(g.currentTarget),ge=oe[pe+(g.key==="ArrowDown"?1:-1)];ge==null||ge.focus();return}g.key==="Escape"&&!e.props.inline&&(g.preventDefault(),g.stopPropagation(),I(!1),(te=i.value)==null||te.focus())},ot=(g,O)=>{be(g,O,{ctrlKey:!1,shiftKey:!1,stopPropagation(){}})},Je=(g,O)=>{if(D=[],e.props.preserveMissingValues||JSON.stringify(g)===JSON.stringify(O))return;const F=new Set(g.map(oe=>oe[c()])),te=r();if(e.props.autoSelectNewItems&&O){const oe=new Set(O.map(ge=>ge[c()])),pe=g.filter(ge=>!oe.has(ge[c()])).map(ge=>ge[c()]);if(pe.length>0){const ge=te.filter($e=>F.has($e));p([...new Set([...ge,...pe])])}else p(te.filter(ge=>F.has(ge)))}else{const oe=te.filter(pe=>F.has(pe));if(it(te,oe))return;p(oe)}},Ze=()=>{const g=e.props,O=c(),F=g.loading?[]:U();Y.options.count!==F.length&&Y.setOptions({...Y.options,count:F.length}),Y._willUpdate();const te=new Set(r()),oe=xt(Y.getVirtualItems(),F.length,G,m).map($e=>{if($e.index>=F.length)return null;const Le=F[$e.index];return Le?{index:$e.index,value:Le,size:$e.size,start:$e.start,isSelected:te.has(Le[O]),isDisabled:!!g.disabled||!!g.readonly||Le[l()]===!0,isFocused:J(Le)}:null}).filter($e=>$e!==null),pe=Y.getTotalSize(),ge=$?e.locale.MultiSelect.selectFiltered:e.locale.MultiSelect.selectAll;return o.html`<div
1008
- class=${L("list-box moz-multi-select-list",{"no-label":!g.label,"show-top":C,"moz-multiselect-inline-list":!!g.inline},g.class)}
1009
- style=${ee.styleMap(g.inline?{"--moz-multiselect-list-height":`${g.listBoxHeight??224}px`}:y)}
1010
- @keydown=${xe}
1011
- ${_.ref(n)}
1007
+ </svg>`}const Rn=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 qn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const ds=ve({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 c=()=>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:[]},p=g=>{e.controlled("modelValue")||(h=g),e.emit("update:modelValue",g),e.requestUpdate()};let u=!1;const v=Xe("moz-multiselect-listbox-");let S=e.props.filterValue??"",I=!1,w=!1,y={},P=[];const $={change:"",blur:"",save:""};let x=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}})(),Y=new Oe.Virtualizer({count:0,getScrollElement:()=>m,estimateSize:()=>_,overscan:5,observeElementRect:Oe.observeElementRect,observeElementOffset:Oe.observeElementOffset,scrollToFn:Oe.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{C==null||C.release(),C=null}),e.onCleanup(Y._didMount());const j=g=>{m=g??null,g&&(Y._willUpdate(),e.requestUpdate())},le=g=>typeof e.props.displayProp=="function"?e.props.displayProp(g):typeof g=="object"?g[e.props.displayProp]??"":g,ue=()=>{const g=new Map;return(e.props.itemsSource??[]).forEach(B=>g.set(B[c()],B)),g},W=()=>{if(e.props.filterMode==="remote"||!S)return e.props.itemsSource??[];const g=S.toLowerCase();return(e.props.itemsSource??[]).filter(B=>le(B).toLowerCase().indexOf(g)>-1)},D=g=>{if(!S)return[{part:g,highlight:!1}];const B=qn(S),O=new RegExp(`(${B})`,"gi");return g.split(O).map(te=>({part:te,highlight:S.toLowerCase()===te.toLowerCase()}))},K=g=>new Set(r()).has(g[c()]),ee=g=>P.some(B=>rt(B.item,g)),ne=()=>{const g=r(),B=W();if(g.length<B.length||g.length===0||B.length===0)return!1;const O=new Set(g);return B.every(te=>O.has(te[c()]))},Q=()=>new Set(W().map(g=>g[c()])),F=()=>new Set(r()),se=()=>{const g=Q(),B=F();return!g.size||!B.size||B.size<g.size?!1:Array.from(g).every(O=>B.has(O))},G=()=>$.save||$.blur||$.change,E=()=>{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??[]]},k=async(g,B)=>{const O=E();if(O.length<=0)return;if(e.props.disabled)return!0;$[B]="",e.requestUpdate();const te=O.filter(oe=>oe.type===B);for(const oe of te)if(!await oe.validator(g))return $[B]=oe.message,e.requestUpdate(),!1;return!0},z=async(g="save")=>G()!==""?!1:await k(r(),g)??!0,T={validate:z,initValidator:()=>{$.change="",$.blur="",$.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=ue(),O=new Set;r().forEach(oe=>{const pe=B.get(oe);(pe==null?void 0:pe[l()])===!0&&O.add(oe)}),g.forEach(oe=>{const pe=B.get(oe);(pe&&pe[l()]!==!0||!pe&&e.props.preserveMissingValues)&&O.add(oe)});const te=Array.from(O);rt(r(),te)||(p(te),e.emit("change",te,te.map(oe=>B.get(oe)).filter(Boolean)),k(te,"change"))},f=(g,B)=>g.filter(O=>K(O)!==B).map(O=>O[c()]),R=(g,B,O)=>{if(O.shiftKey&&P.length>0){const te=P[0],oe=Math.min(te.index,B),pe=Math.max(te.index,B);P=W().slice(oe,pe+1).map((be,Se)=>({item:be,index:oe+Se}))}else O.ctrlKey?P.push({item:g,index:B}):P=[{item:g,index:B}];return P.length},U=(g=!0)=>{const B=P.map(oe=>oe.item),O=f(B,g);let te=r();g?te=[...te,...O]:te=te.filter(oe=>!O.some(pe=>oe===pe)),V(te)},X=(g,B,O)=>{if(g[l()]===!0)return;const te=P.some(pe=>pe.item[c()]===g[c()]);(P.length<=1||!te)&&R(g,B,{shiftKey:!1,ctrlKey:!1});const oe=r().some(pe=>pe===g[c()]);U(!oe),O.stopPropagation()},we=(g,B,O)=>{g[l()]!==!0&&(!O.ctrlKey&&!O.shiftKey&&P.length<=1&&X(g,B,O),R(g,B,O),e.requestUpdate())},De=(g,B,O)=>{if(g[l()]===!0)return;const te=r(),oe=F().size!==0&&te.every(pe=>pe===g[c()]);V(oe?[]:[g[c()]]),R(g,B,O),O.stopPropagation()},_e=g=>{g.stopPropagation();const B=Q().size===F().size&&[...Q()].every(O=>F().has(O));if(ne()&&B){const O=new Set((e.props.itemsSource??[]).filter(te=>te[l()]===!0).map(te=>te[c()]));V(Array.from(O))}else{const O=new Set(W().filter(te=>te[l()]!==!0).map(te=>te[c()]));V(Array.from(O))}},Be=g=>{if(g.stopPropagation(),se()){const B=Q();V(r().filter(O=>!B.has(O)))}else{const B=new Set([...r(),...Q()]);V(Array.from(B))}},d=g=>{I=g.target.scrollTop>0,e.requestUpdate()},L=()=>{const g=r();if(!(g!=null&&g.length))return"";const B=ue(),O=g.map(oe=>B.get(oe)).filter(Boolean).map(oe=>typeof e.props.displayProp=="function"?e.props.displayProp(oe):oe[e.props.displayProp]||""),te=e.props.itemsSource??[];return O.length===te.length&&O.length>2?`${e.props.headerFormat.replace(/\{count(:.*?)?}/g,"ALL")}`:O.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${O.length.toLocaleString()}`):O.join(", ")||""},Z=(g,B,O=10)=>{const te=window.innerHeight||document.documentElement.clientHeight,oe=window.innerWidth||document.documentElement.clientWidth,pe=g.getBoundingClientRect(),be=B.getBoundingClientRect(),Se=pe.bottom+be.height+O>te;if(!Se)return!1;const ze=pe.top-be.height-O<0,We=pe.right+be.width+O>oe,et=pe.left-be.width-O<0;return Se&&!ze||We&&!et},ie=()=>{const g=s.value;if(!g)return;const B=g.getBoundingClientRect();let O=`${B.width}px`;e.props.listBoxWidth&&(O=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),y={width:String(O),left:`${B.left}px`,top:`${B.top+(w?0:B.height)}px`},e.requestUpdate()},de=g=>{var B;(B=n.value)!=null&&B.contains(g.target)||q(!1)},ke=g=>{var B,O;!((B=t.value)!=null&&B.contains(g.target))&&!((O=n.value)!=null&&O.contains(g.target))&&(q(!1),document.removeEventListener("click",ke,{capture:!0}))},$e=g=>{var O;`${g.ctrlKey?"ctrl+":""}${g.altKey?"alt+":""}${g.key.toLowerCase()}`==="escape"&&(q(!1),(O=i.value)==null||O.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",de,{capture:!0}),document.removeEventListener("click",ke,{capture:!0}),window.removeEventListener("keydown",$e)});let C=null;const q=g=>{if(u===g)return;const B=u;if(u=g,e.requestUpdate(),g)C=vt(),document.body.addEventListener("scroll",de,{capture:!0}),document.addEventListener("click",ke,{capture:!0}),$.save="",window.addEventListener("keydown",$e),ie(),queueMicrotask(()=>{var O;s.value&&m&&(w=Z(s.value,m)),ie(),Y.measure(),m&&(m.scrollTop=0),a.value?a.value.focus():(O=i.value)==null||O.focus()});else if(C==null||C.release(),C=null,S="",a.value&&(a.value.value=""),document.body.removeEventListener("scroll",de,{capture:!0}),document.removeEventListener("click",ke,{capture:!0}),k(r(),"blur"),window.removeEventListener("keydown",$e),B&&!g){const O=r();if(e.props.selectAllWhenEmpty&&(!O||O.length===0)){const te=(e.props.itemsSource??[]).filter(oe=>oe[l()]!==!0).map(oe=>oe[c()]);te.length>0&&(p(te),e.emit("change",te,(e.props.itemsSource??[]).filter(oe=>te.includes(oe[c()]))))}e.emit("close")}},ye=g=>{var B;if(u){g.stopPropagation(),g.preventDefault();const O=(B=n.value)==null?void 0:B.querySelector("input:first-child, button:first-child");O==null||O.focus()}},Ee=g=>{var oe,pe,be;const B=((oe=n.value)==null?void 0:oe.querySelectorAll("input, button"))??[],O=B[0],te=B[B.length-1];(g.target===O||g.target===te)&&i.value&&(g.target===O&&g.shiftKey?(g.stopPropagation(),g.preventDefault(),(pe=i.value)==null||pe.focus()):g.target===te&&!g.shiftKey&&(g.stopPropagation(),g.preventDefault(),(be=i.value)==null||be.focus()))},Pe=g=>{g.key==="Tab"&&ye(g)},Le=g=>{!e.props.inline&&g.key==="Tab"&&Ee(g)},Ve=g=>{!u&&!e.props.inline||(S=g.target.value,P=[],e.emit("update:filterValue",S),e.requestUpdate(),queueMicrotask(()=>{Y.setOptions({...Y.options,count:W().length}),Y.measure(),m&&(m.scrollTop=0)}))},Ue=()=>{var g;e.props.disabled||(q(!u),(g=i.value)==null||g.focus())},Qe=(g,B)=>{var O,te;if(g.key==="Enter"||g.key===" "){g.preventDefault(),g.stopPropagation(),B();return}if(g.key==="ArrowDown"||g.key==="ArrowUp"){g.preventDefault(),g.stopPropagation();const oe=Array.from(((O=n.value)==null?void 0:O.querySelectorAll('[tabindex="0"]'))??[]),pe=oe.indexOf(g.currentTarget),be=oe[pe+(g.key==="ArrowDown"?1:-1)];be==null||be.focus();return}g.key==="Escape"&&!e.props.inline&&(g.preventDefault(),g.stopPropagation(),q(!1),(te=i.value)==null||te.focus())},ot=(g,B)=>{we(g,B,{ctrlKey:!1,shiftKey:!1,stopPropagation(){}})},Je=(g,B)=>{if(P=[],e.props.preserveMissingValues||JSON.stringify(g)===JSON.stringify(B))return;const O=new Set(g.map(oe=>oe[c()])),te=r();if(e.props.autoSelectNewItems&&B){const oe=new Set(B.map(be=>be[c()])),pe=g.filter(be=>!oe.has(be[c()])).map(be=>be[c()]);if(pe.length>0){const be=te.filter(Se=>O.has(Se));p([...new Set([...be,...pe])])}else p(te.filter(be=>O.has(be)))}else{const oe=te.filter(pe=>O.has(pe));if(rt(te,oe))return;p(oe)}},Ze=()=>{const g=e.props,B=c(),O=g.loading?[]:W();Y.options.count!==O.length&&Y.setOptions({...Y.options,count:O.length}),Y._willUpdate();const te=new Set(r()),oe=At(Y.getVirtualItems(),O.length,_,m).map(Se=>{if(Se.index>=O.length)return null;const ze=O[Se.index];return ze?{index:Se.index,value:ze,size:Se.size,start:Se.start,isSelected:te.has(ze[B]),isDisabled:!!g.disabled||!!g.readonly||ze[l()]===!0,isFocused:ee(ze)}:null}).filter(Se=>Se!==null),pe=Y.getTotalSize(),be=S?e.locale.MultiSelect.selectFiltered:e.locale.MultiSelect.selectAll;return o.html`<div
1008
+ class=${A("list-box moz-multi-select-list",{"no-label":!g.label,"show-top":w,"moz-multiselect-inline-list":!!g.inline},g.class)}
1009
+ style=${J.styleMap(g.inline?{"--moz-multiselect-list-height":`${g.listBoxHeight??224}px`}:y)}
1010
+ @keydown=${Le}
1011
+ ${N.ref(n)}
1012
1012
  >
1013
1013
  ${g.useFilter?o.html`<div class="filter-input">
1014
1014
  <input
1015
1015
  placeholder=${g.searchPlaceholder??e.locale.MultiSelect.search}
1016
1016
  aria-label=${g.searchPlaceholder??e.locale.MultiSelect.search}
1017
- .value=${$}
1017
+ .value=${S}
1018
1018
  ?disabled=${!!g.disabled||!!g.readonly}
1019
- @input=${De}
1020
- ${_.ref(a)}
1019
+ @input=${Ve}
1020
+ ${N.ref(a)}
1021
1021
  />
1022
- <div class="search-icon">${yn("12","var(--moz-color-text-subtle)")}</div>
1022
+ <div class="search-icon">${In("12","var(--moz-color-text-subtle)")}</div>
1023
1023
  </div>`:o.nothing}
1024
- ${g.useSelectAll&&(g.itemsSource??[]).length>0&&F.length>0?o.html`<div
1025
- class=${L("list-box-item multi-select-item multi-select-all",{"is-scrolled":R})}
1024
+ ${g.useSelectAll&&(g.itemsSource??[]).length>0&&O.length>0?o.html`<div
1025
+ class=${A("list-box-item multi-select-item multi-select-all",{"is-scrolled":I})}
1026
1026
  role="button"
1027
1027
  tabindex=${g.disabled||g.readonly||g.loading?"-1":"0"}
1028
1028
  aria-disabled=${g.disabled||g.readonly||g.loading?"true":"false"}
1029
1029
  aria-pressed=${se()?"true":"false"}
1030
- aria-label=${ge}
1031
- @click=${Oe}
1032
- @keydown=${$e=>Qe($e,()=>Oe({stopPropagation(){}}))}
1030
+ aria-label=${be}
1031
+ @click=${Be}
1032
+ @keydown=${Se=>Qe(Se,()=>Be({stopPropagation(){}}))}
1033
1033
  >
1034
1034
  <input
1035
1035
  type="checkbox"
1036
1036
  aria-hidden="true"
1037
1037
  tabindex="-1"
1038
- class=${L("moz-checkbox",{"is-indeterminate":F.some($e=>te.has($e[O]))&&!ne()})}
1038
+ class=${A("moz-checkbox",{"is-indeterminate":O.some(Se=>te.has(Se[B]))&&!ne()})}
1039
1039
  .checked=${se()}
1040
1040
  />
1041
1041
  <div class="highlight-container">
1042
- <span title=${ge}>${ge}</span>
1042
+ <span title=${be}>${be}</span>
1043
1043
  </div>
1044
- ${g.useSpecificSelect&&$&&F.length>0?o.html`<button type="button" class="item-only" @click=${Ne}>
1044
+ ${g.useSpecificSelect&&S&&O.length>0?o.html`<button type="button" class="item-only" @click=${_e}>
1045
1045
  ${e.locale.MultiSelect.specificResults}
1046
1046
  </button>`:o.nothing}
1047
1047
  </div>`:o.nothing}
@@ -1050,58 +1050,58 @@
1050
1050
  id=${v}
1051
1051
  role="listbox"
1052
1052
  aria-multiselectable="true"
1053
- aria-label=${Me.ifDefined(g["aria-label"]??g.label??void 0)}
1053
+ aria-label=${Ce.ifDefined(g["aria-label"]??g.label??void 0)}
1054
1054
  aria-busy=${g.loading?"true":"false"}
1055
1055
  class="list-box-container"
1056
1056
  @scroll=${d}
1057
- ${_.ref(Q)}
1057
+ ${N.ref(j)}
1058
1058
  >
1059
- <div class="inner-container" style=${ee.styleMap({height:`${pe}px`})}>
1060
- ${oe.map(({index:$e,value:Le,start:We,size:et,isSelected:rt,isDisabled:st,isFocused:zt})=>o.html`<div
1061
- class=${L("list-box-item multi-select-item virtual-row",{"list-selected":rt,"moz-multi-focus":zt})}
1062
- style=${ee.styleMap({height:`${et}px`,transform:`translateY(${We}px)`})}
1059
+ <div class="inner-container" style=${J.styleMap({height:`${pe}px`})}>
1060
+ ${oe.map(({index:Se,value:ze,start:We,size:et,isSelected:at,isDisabled:st,isFocused:Vt})=>o.html`<div
1061
+ class=${A("list-box-item multi-select-item virtual-row",{"list-selected":at,"moz-multi-focus":Vt})}
1062
+ style=${J.styleMap({height:`${et}px`,transform:`translateY(${We}px)`})}
1063
1063
  role="option"
1064
- aria-selected=${rt?"true":"false"}
1064
+ aria-selected=${at?"true":"false"}
1065
1065
  aria-disabled=${st?"true":"false"}
1066
1066
  tabindex=${st?"-1":"0"}
1067
- @click=${Ge=>be(Le,$e,Ge)}
1068
- @keydown=${Ge=>Qe(Ge,()=>ot(Le,$e))}
1067
+ @click=${Ge=>we(ze,Se,Ge)}
1068
+ @keydown=${Ge=>Qe(Ge,()=>ot(ze,Se))}
1069
1069
  >
1070
1070
  <input
1071
1071
  type="checkbox"
1072
1072
  aria-hidden="true"
1073
1073
  tabindex="-1"
1074
1074
  class="moz-checkbox"
1075
- .checked=${rt}
1075
+ .checked=${at}
1076
1076
  ?disabled=${st}
1077
- @click=${Ge=>j(Le,$e,Ge)}
1077
+ @click=${Ge=>X(ze,Se,Ge)}
1078
1078
  />
1079
- ${e.slots.has("list-item")?e.slot("list-item",{text:le(Le),item:Le}):o.html`<div class="highlight-container" title=${le(Le)}>
1080
- ${z(le(Le)).map(Ge=>o.html`<span class=${L("text-part",{highlight:Ge.highlight})}>${Ge.part}</span>`)}
1079
+ ${e.slots.has("list-item")?e.slot("list-item",{text:le(ze),item:ze}):o.html`<div class="highlight-container" title=${le(ze)}>
1080
+ ${D(le(ze)).map(Ge=>o.html`<span class=${A("text-part",{highlight:Ge.highlight})}>${Ge.part}</span>`)}
1081
1081
  </div>`}
1082
- ${g.useSpecificSelect&&!st?o.html`<button type="button" class="item-only" @click=${Ge=>Ve(Le,$e,Ge)}>
1082
+ ${g.useSpecificSelect&&!st?o.html`<button type="button" class="item-only" @click=${Ge=>De(ze,Se,Ge)}>
1083
1083
  ${e.locale.MultiSelect.specificSelect}
1084
1084
  </button>`:o.nothing}
1085
1085
  </div>`)}
1086
1086
  </div>
1087
- ${F.length<=0?o.html`<div class="list-box-item loading not-hover">
1087
+ ${O.length<=0?o.html`<div class="list-box-item loading not-hover">
1088
1088
  ${g.loading?g.loadingText??"Loading…":e.slots.has("empty")?e.slot("empty"):e.locale.MultiSelect.noData}
1089
1089
  </div>`:o.nothing}
1090
1090
  </div>
1091
- </div>`};return{api:{validate:x},render(){const g=e.props;if(e.controlled("filterValue")&&($=g.filterValue??""),g.itemsSource!==V){const ge=V,$e=g.itemsSource;V=g.itemsSource,queueMicrotask(()=>Je($e??[],ge??[]))}const O=typeof g.width=="number"?`${Te(g.width)}rem`:g.width,F=ve(g,$n),{aria:te,dom:oe}=ht(F);if(g.inline)return o.html`<div class="moz-multi-select moz-multi-select-inline"
1092
- style=${ee.styleMap({width:O,...me(g.style)})}
1093
- ${_.ref(t)}>${Ze()}</div>`;const pe=e.slots.has("icon")?e.slot("icon",{isOpen:u}):u?Cn("14","var(--moz-color-accent)"):bn("14",g.disabled?"var(--moz-color-text-muted)":"var(--moz-color-text-subtle)");return o.html`
1091
+ </div>`};return{api:{validate:z},render(){const g=e.props;if(e.controlled("filterValue")&&(S=g.filterValue??""),g.itemsSource!==x){const be=x,Se=g.itemsSource;x=g.itemsSource,queueMicrotask(()=>Je(Se??[],be??[]))}const B=typeof g.width=="number"?`${Me(g.width)}rem`:g.width,O=fe(g,Rn),{aria:te,dom:oe}=ft(O);if(g.inline)return o.html`<div class="moz-multi-select moz-multi-select-inline"
1092
+ style=${J.styleMap({width:B,...me(g.style)})}
1093
+ ${N.ref(t)}>${Ze()}</div>`;const pe=e.slots.has("icon")?e.slot("icon",{isOpen:u}):u?Vn("14","var(--moz-color-accent)"):Dn("14",g.disabled?"var(--moz-color-text-muted)":"var(--moz-color-text-subtle)");return o.html`
1094
1094
  <div
1095
- class=${L("moz-multi-select",{"is-invalid":K()!=="","is-open":u,disabled:!!g.disabled})}
1096
- style=${ee.styleMap({width:O,...me(g.style)})}
1097
- ${_.ref(t)}
1095
+ class=${A("moz-multi-select",{"is-invalid":G()!=="","is-open":u,disabled:!!g.disabled})}
1096
+ style=${J.styleMap({width:B,...me(g.style)})}
1097
+ ${N.ref(t)}
1098
1098
  >
1099
1099
  <div class="input-wrapper">
1100
- ${g.label?Be({},o.html`${g.label}${g.required?o.html`<span class="require-mark">*</span>`:o.nothing}`):o.nothing}
1101
- <div class="moz-input-container" @click=${Ue} ${_.ref(s)}>
1100
+ ${g.label?Fe({},o.html`${g.label}${g.required?o.html`<span class="require-mark">*</span>`:o.nothing}`):o.nothing}
1101
+ <div class="moz-input-container" @click=${Ue} ${N.ref(s)}>
1102
1102
  <input
1103
1103
  ${ce(oe)}
1104
- .value=${T()}
1104
+ .value=${L()}
1105
1105
  autocomplete="off"
1106
1106
  readonly
1107
1107
  tabindex="-1"
@@ -1114,19 +1114,19 @@
1114
1114
  aria-haspopup="listbox"
1115
1115
  aria-expanded=${u?"true":"false"}
1116
1116
  aria-controls=${v}
1117
- aria-label=${Me.ifDefined(te["aria-label"]??g.label??void 0)}
1117
+ aria-label=${Ce.ifDefined(te["aria-label"]??g.label??void 0)}
1118
1118
  ?disabled=${!!g.disabled}
1119
- @keydown=${Ee}
1120
- ${_.ref(i)}
1119
+ @keydown=${Pe}
1120
+ ${N.ref(i)}
1121
1121
  >
1122
1122
  ${pe}
1123
1123
  </button>
1124
1124
  </div>
1125
1125
  </div>
1126
1126
 
1127
- ${K()!==""?o.html`<span class="moz-input-invalid-message">${K()}</span>`:o.nothing}
1127
+ ${G()!==""?o.html`<span class="moz-input-invalid-message">${G()}</span>`:o.nothing}
1128
1128
  </div>
1129
- `},renderPortal(){return e.props.inline||!u?o.nothing:Ze()}}}}),kn={name:"MozMultiSelect",core:ss,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 ls(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 En(e="14",t="var(--moz-color-text-subtle)"){const s=ls(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">
1129
+ `},renderPortal(){return e.props.inline||!u?o.nothing:Ze()}}}}),On={name:"MozMultiSelect",core:ds,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 Fn(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">
1130
1130
  <g clip-path="url(#clip0_4513_575)">
1131
1131
  <path
1132
1132
  fill-rule="evenodd"
@@ -1140,7 +1140,7 @@
1140
1140
  <rect width=${s.width} height=${s.height} fill="white" transform="translate(0 0.704163)"></rect>
1141
1141
  </clipPath>
1142
1142
  </defs>
1143
- </svg>`}function ho(e="12",t="var(--moz-color-text-subtle)",s=!1,n=""){const i=ls(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">
1143
+ </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">
1144
1144
  <g style=${`fill: ${a}`}>
1145
1145
  <path
1146
1146
  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"
@@ -1153,75 +1153,75 @@
1153
1153
  transform="translate(-829.971 -686.318)"
1154
1154
  ></path>
1155
1155
  </g>
1156
- </svg>`}const Pn=new Set(["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required","class","style"]),Mn=Array.from({length:24},(e,t)=>t),Tn=Array.from({length:60},(e,t)=>t),ns=we({name:"moz-time-picker",defaults:{width:"160px",modelValue:"09:00",label:"",disabled:!1,required:!1},setup(e){const t=_.createRef(),s=_.createRef(),n=_.createRef(),i=_.createRef(),a=_.createRef(),m=_.createRef();let c=!1,l=9,h=0,r="",p="";const u=z=>{if(z&&z.includes(":")){const[W,J]=z.split(":").map(Number);!isNaN(W)&&!isNaN(J)&&(l=W,h=J,r=z,p=z)}};u(e.props.modelValue);let v=e.props.modelValue,$=r;const R=new mt({anchor:()=>s.value??null,panel:()=>i.value??null,maxHeight:()=>210,container:()=>t.value??null,listWidth:()=>"160px",requestClose:()=>{c&&y(!1)}});e.onCleanup(()=>R.destroy());const C=()=>{a.value&&(a.value.scrollTop=l*24-72),m.value&&(m.value.scrollTop=h*24-72)},y=z=>{c!==z&&(c=z,e.requestUpdate(),z?(R.open(),queueMicrotask(C)):R.close())},D=()=>{const z=`${l.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`;r=z,p=z,e.emit("update:modelValue",z),e.requestUpdate()},E=z=>{l=z,D()},V=z=>{h=z,y(!1),D()},G=()=>{l=new Date().getHours(),h=new Date().getMinutes(),D(),y(!1)},Y=z=>{let W=z.replace(/[^\d:]/g,"");return W.length>5&&(W=W.slice(0,5)),W},Q=z=>{y(!1);const W=z.target,J=z.key;if(!/^\d$/.test(J))return;const ne=W.selectionStart||0,X=r;if(W.selectionStart!==W.selectionEnd||ne>=X.length)return;z.preventDefault();const B=X.replace(/:/g,""),se=(X.slice(0,ne).match(/:/g)||[]).length,K=ne-se;let k=B.substring(0,K)+J;K+1<B.length&&(k+=B.substring(K+1)),k.length>4&&(k=k.slice(0,4));let S=k,x=K+1;if(k.length>=2){const P=k.slice(0,2),A=k.slice(2);S=`${P}:${A}`,x>2&&(x=x+1)}r=S,p=S,e.requestUpdate(),queueMicrotask(()=>W.setSelectionRange(x,x))},le=z=>{const W=z.target,J=W.selectionStart||0,ne=p;let X=W.value;const B=X.length<ne.length;X=Y(X);const se=X.replace(/:/g,"");if(!B&&se.length>=2){const K=(X.slice(0,J).match(/:/g)||[]).length,k=J-K,S=se.slice(0,2),x=se.slice(2);X=S+(x?`:${x}`:":");let P=k;k>2&&(P=k+1),r=X,p=X,e.requestUpdate(),setTimeout(()=>W.setSelectionRange(P,P),0);return}r=X,p=X,e.requestUpdate()},ue=()=>y(!0),U=()=>{if(!r){D();return}let z=r;!z.includes(":")&&z.length>=2&&(z=`${z.slice(0,2)}:${z.slice(2)}`);const W=z.split(":");let J=l,ne=h;if(W[0]){const X=parseInt(W[0],10);isNaN(X)||(X>=0&&X<=23?J=X:X>23?J=23:J=0)}if(W[1]){const X=parseInt(W[1],10);isNaN(X)||(X>=0&&X<=59?ne=X:X>59?ne=59:ne=0)}l=J,h=ne,D()};return{render(){const z=e.props;if(z.modelValue!==v&&(v=z.modelValue,u(z.modelValue)),r!==$){$=r;const B=r;if(/^\d{2}:\d{2}$/.test(B)){const[se,K]=B.split(":").map(Number);!isNaN(se)&&!isNaN(K)&&se>=0&&se<=23&&K>=0&&K<=59&&B!==z.modelValue&&(l=se,h=K,queueMicrotask(()=>e.emit("update:modelValue",B)))}}const W=z.disabled?"var(--moz-color-text-muted)":c?"var(--moz-color-accent)":"var(--moz-color-text-subtle)",J=ve(z,Pn),ne="__:__",X=[];for(let B=0;B<ne.length;B++)B<r.length?X.push({char:r[B],isInput:!0}):X.push({char:ne[B],isInput:!1});return o.html`
1156
+ </svg>`}const Bn=new Set(["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required","class","style"]),Hn=Array.from({length:24},(e,t)=>t),Nn=Array.from({length:60},(e,t)=>t),ps=ve({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 c=!1,l=9,h=0,r="",p="";const u=D=>{if(D&&D.includes(":")){const[K,ee]=D.split(":").map(Number);!isNaN(K)&&!isNaN(ee)&&(l=K,h=ee,r=D,p=D)}};u(e.props.modelValue);let v=e.props.modelValue,S=r;const I=new gt({anchor:()=>s.value??null,panel:()=>i.value??null,maxHeight:()=>210,container:()=>t.value??null,listWidth:()=>"160px",requestClose:()=>{c&&y(!1)}});e.onCleanup(()=>I.destroy());const w=()=>{a.value&&(a.value.scrollTop=l*24-72),m.value&&(m.value.scrollTop=h*24-72)},y=D=>{c!==D&&(c=D,e.requestUpdate(),D?(I.open(),queueMicrotask(w)):I.close())},P=()=>{const D=`${l.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`;r=D,p=D,e.emit("update:modelValue",D),e.requestUpdate()},$=D=>{l=D,P()},x=D=>{h=D,y(!1),P()},_=()=>{l=new Date().getHours(),h=new Date().getMinutes(),P(),y(!1)},Y=D=>{let K=D.replace(/[^\d:]/g,"");return K.length>5&&(K=K.slice(0,5)),K},j=D=>{y(!1);const K=D.target,ee=D.key;if(!/^\d$/.test(ee))return;const ne=K.selectionStart||0,Q=r;if(K.selectionStart!==K.selectionEnd||ne>=Q.length)return;D.preventDefault();const F=Q.replace(/:/g,""),se=(Q.slice(0,ne).match(/:/g)||[]).length,G=ne-se;let E=F.substring(0,G)+ee;G+1<F.length&&(E+=F.substring(G+1)),E.length>4&&(E=E.slice(0,4));let k=E,z=G+1;if(E.length>=2){const T=E.slice(0,2),V=E.slice(2);k=`${T}:${V}`,z>2&&(z=z+1)}r=k,p=k,e.requestUpdate(),queueMicrotask(()=>K.setSelectionRange(z,z))},le=D=>{const K=D.target,ee=K.selectionStart||0,ne=p;let Q=K.value;const F=Q.length<ne.length;Q=Y(Q);const se=Q.replace(/:/g,"");if(!F&&se.length>=2){const G=(Q.slice(0,ee).match(/:/g)||[]).length,E=ee-G,k=se.slice(0,2),z=se.slice(2);Q=k+(z?`:${z}`:":");let T=E;E>2&&(T=E+1),r=Q,p=Q,e.requestUpdate(),setTimeout(()=>K.setSelectionRange(T,T),0);return}r=Q,p=Q,e.requestUpdate()},ue=()=>y(!0),W=()=>{if(!r){P();return}let D=r;!D.includes(":")&&D.length>=2&&(D=`${D.slice(0,2)}:${D.slice(2)}`);const K=D.split(":");let ee=l,ne=h;if(K[0]){const Q=parseInt(K[0],10);isNaN(Q)||(Q>=0&&Q<=23?ee=Q:Q>23?ee=23:ee=0)}if(K[1]){const Q=parseInt(K[1],10);isNaN(Q)||(Q>=0&&Q<=59?ne=Q:Q>59?ne=59:ne=0)}l=ee,h=ne,P()};return{render(){const D=e.props;if(D.modelValue!==v&&(v=D.modelValue,u(D.modelValue)),r!==S){S=r;const F=r;if(/^\d{2}:\d{2}$/.test(F)){const[se,G]=F.split(":").map(Number);!isNaN(se)&&!isNaN(G)&&se>=0&&se<=23&&G>=0&&G<=59&&F!==D.modelValue&&(l=se,h=G,queueMicrotask(()=>e.emit("update:modelValue",F)))}}const K=D.disabled?"var(--moz-color-text-muted)":c?"var(--moz-color-accent)":"var(--moz-color-text-subtle)",ee=fe(D,Bn),ne="__:__",Q=[];for(let F=0;F<ne.length;F++)F<r.length?Q.push({char:r[F],isInput:!0}):Q.push({char:ne[F],isInput:!1});return o.html`
1157
1157
  <div
1158
- class=${L("custom-time-picker",z.class,{"custom-time-picker--has-class":!!z.class})}
1159
- style=${ee.styleMap({width:z.width,...me(z.style)})}
1160
- ${ce(J)}
1161
- ${_.ref(t)}
1158
+ class=${A("custom-time-picker",D.class,{"custom-time-picker--has-class":!!D.class})}
1159
+ style=${J.styleMap({width:D.width,...me(D.style)})}
1160
+ ${ce(ee)}
1161
+ ${N.ref(t)}
1162
1162
  >
1163
- ${z.label?Be({disabled:z.disabled,required:z.required},z.label):o.nothing}
1163
+ ${D.label?Fe({disabled:D.disabled,required:D.required},D.label):o.nothing}
1164
1164
  <div
1165
- class=${L("time-input-wrapper",{"time-input-wrapper--disabled":z.disabled,"time-input-wrapper--open":c&&!z.disabled})}
1166
- ${_.ref(s)}
1165
+ class=${A("time-input-wrapper",{"time-input-wrapper--disabled":D.disabled,"time-input-wrapper--open":c&&!D.disabled})}
1166
+ ${N.ref(s)}
1167
1167
  >
1168
1168
  <div class="input-with-mask">
1169
1169
  <input
1170
1170
  type="text"
1171
1171
  .value=${r}
1172
- @keydown=${Q}
1172
+ @keydown=${j}
1173
1173
  @input=${le}
1174
- @blur=${U}
1174
+ @blur=${W}
1175
1175
  @focus=${ue}
1176
1176
  @click=${()=>y(!0)}
1177
- class=${L("time-input",{"time-input--disabled":z.disabled,"time-input--open":c})}
1178
- ?disabled=${!!z.disabled}
1177
+ class=${A("time-input",{"time-input--disabled":D.disabled,"time-input--open":c})}
1178
+ ?disabled=${!!D.disabled}
1179
1179
  maxlength="5"
1180
- ${_.ref(n)}
1180
+ ${N.ref(n)}
1181
1181
  />
1182
1182
  <div class="time-mask">
1183
- ${X.map(B=>o.html`<span
1184
- class=${L({"mask-input":B.isInput&&!z.disabled,"mask-placeholder":!B.isInput,"mask-input--disabled":B.isInput&&!!z.disabled})}
1185
- >${B.char}</span
1183
+ ${Q.map(F=>o.html`<span
1184
+ class=${A({"mask-input":F.isInput&&!D.disabled,"mask-placeholder":!F.isInput,"mask-input--disabled":F.isInput&&!!D.disabled})}
1185
+ >${F.char}</span
1186
1186
  >`)}
1187
1187
  </div>
1188
1188
  </div>
1189
1189
  <div class="icon-container">
1190
- <span @click=${()=>y(!0)}>${En("14",W)}</span>
1190
+ <span @click=${()=>y(!0)}>${Fn("14",K)}</span>
1191
1191
  </div>
1192
1192
  </div>
1193
1193
  </div>
1194
- `},renderPortal(){if(!c)return o.nothing;const z=e.props;return o.html`<div class="time-picker-dropdown" ${_.ref(i)}>
1194
+ `},renderPortal(){if(!c)return o.nothing;const D=e.props;return o.html`<div class="time-picker-dropdown" ${N.ref(i)}>
1195
1195
  <div class="time-picker-content">
1196
1196
  <div class="time-column">
1197
- <div class="time-label">${z.hourLabel??e.locale.TimePicker.hour}</div>
1197
+ <div class="time-label">${D.hourLabel??e.locale.TimePicker.hour}</div>
1198
1198
  <div class="time-list">
1199
- <div class="time-option-wrapper" ${_.ref(a)}>
1200
- ${Mn.map(W=>o.html`<div @click=${()=>E(W)} class="time-option">
1201
- <div class="time-option-text">${W.toString().padStart(2,"0")}</div>
1202
- ${l===W?ho("12","var(--moz-color-accent)",!1,"check-icon"):o.nothing}
1199
+ <div class="time-option-wrapper" ${N.ref(a)}>
1200
+ ${Hn.map(K=>o.html`<div @click=${()=>$(K)} class="time-option">
1201
+ <div class="time-option-text">${K.toString().padStart(2,"0")}</div>
1202
+ ${l===K?Co("12","var(--moz-color-accent)",!1,"check-icon"):o.nothing}
1203
1203
  </div>`)}
1204
1204
  </div>
1205
1205
  </div>
1206
1206
  </div>
1207
1207
  <div class="time-column">
1208
- <div class="time-label">${z.minuteLabel??e.locale.TimePicker.minute}</div>
1208
+ <div class="time-label">${D.minuteLabel??e.locale.TimePicker.minute}</div>
1209
1209
  <div class="time-list">
1210
- <div class="time-option-wrapper" ${_.ref(m)}>
1211
- ${Tn.map(W=>o.html`<div @click=${()=>V(W)} class="time-option">
1212
- <div class="time-option-text">${W.toString().padStart(2,"0")}</div>
1213
- ${h===W?ho("12","var(--moz-color-accent)",!1,"check-icon"):o.nothing}
1210
+ <div class="time-option-wrapper" ${N.ref(m)}>
1211
+ ${Nn.map(K=>o.html`<div @click=${()=>x(K)} class="time-option">
1212
+ <div class="time-option-text">${K.toString().padStart(2,"0")}</div>
1213
+ ${h===K?Co("12","var(--moz-color-accent)",!1,"check-icon"):o.nothing}
1214
1214
  </div>`)}
1215
1215
  </div>
1216
1216
  </div>
1217
1217
  </div>
1218
1218
  </div>
1219
- <div class="time-picker-footer" @click=${G}>
1220
- ${z.currentTimeLabel??e.locale.TimePicker.currentTime}
1219
+ <div class="time-picker-footer" @click=${_}>
1220
+ ${D.currentTimeLabel??e.locale.TimePicker.currentTime}
1221
1221
  </div>
1222
- </div>`}}}}),xn={name:"MozTimePicker",core:ns,booleanProps:["disabled","required"],props:["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required"],emits:["update:modelValue"],slots:[],expose:!1};function Ln(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 Ot(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">
1222
+ </div>`}}}}),_n={name:"MozTimePicker",core:ps,booleanProps:["disabled","required"],props:["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required"],emits:["update:modelValue"],slots:[],expose:!1};function Un(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">
1223
1223
  <path d="M9 3L3 9M3 3L9 9" stroke=${e} stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
1224
- </svg>`}function mo(e="12",t="var(--moz-color-text-subtle)",s=!1,n=""){const i=Ln(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">
1224
+ </svg>`}function yo(e="12",t="var(--moz-color-text-subtle)",s=!1,n=""){const i=Un(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">
1225
1225
  <g transform="translate(-0.005)">
1226
1226
  <path
1227
1227
  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"
@@ -1231,57 +1231,57 @@
1231
1231
  stroke-width="0.6"
1232
1232
  ></path>
1233
1233
  </g>
1234
- </svg>`}const zn=new Set(["modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","class","style"]);function An(e,t){let s;return(...n)=>{s&&clearTimeout(s),s=setTimeout(()=>e(...n),t)}}const is=we({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=_.createRef(),s=_.createRef();let n=null,i=[],a=!1,m=!1,c="",l=!1,h={};const r=()=>e.props,p=f=>r().pattern?new RegExp(`${r().pattern}`).test(f):!0,u=()=>i.map((f,q)=>({...f,idx:q})).filter(f=>f.isSelected!==-1).sort((f,q)=>f.isSelected-q.isSelected),v=()=>u().map(f=>f.value),$=()=>!u().some(f=>!f.isValid),R=(f,q)=>{const N=r().limitItemLength;(!q||q&&N&&u().length<N||q&&!N)&&(q&&i[f].isSelected===-1||!q)&&(i[f].isSelected=q?Date.now():-1)},C=(f,q)=>{const N=i.findIndex(Ve=>Ve.value===f);if(N!==-1)return v().includes(f)?!1:(R(N,!0),!0);const j={key:Date.now(),isSelected:q?Date.now():-1,isValid:p(f),isEditing:!1,beforeValue:f,value:f};j.isValid&&r().requestCreate&&r().requestCreate(f);const be=r().limitItemLength;return!q||!be||q&&be&&u().length<be?(i.push(j),!0):!1},y=f=>{i.splice(f,1)},D=f=>{i[f].isValid=p(i[f].value),i[f].isValid&&r().requestUpdate&&r().requestUpdate({before:i[f].beforeValue,after:i[f].value}),i[f].beforeValue=i[f].value},E=()=>{i=i.filter(f=>f.isSelected!==-1),(r().itemsSource??[]).forEach(f=>{C(r().displayKey?f[r().displayKey]:f,!1)})};E();const V=()=>{const f=r().modelValue;if(f&&f.toString()!==v().toString()){const q=[...f];i.forEach((N,j)=>{const be=q.indexOf(N.value);be!==-1&&(N.key===-1&&R(j,!0),q.splice(be,1))}),q.forEach(N=>C(N,!0))}};V();let G=r().modelValue,Y=r().itemsSource,Q=v().toString();const le=()=>{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()},ue=f=>{const q=f.target,N=()=>{c&&r().pushOnBlur&&C(c,!0)&&e.emit("modelChange",v()),c="",m=!1,a=!1};q.className&&Array.from(String(q.className).split(" ")).includes("tag-input-not-close")||N(),B(""),window.removeEventListener("mousedown",ue),e.requestUpdate()},U=()=>{a=!0,window.addEventListener("mousedown",ue),e.requestUpdate(),queueMicrotask(le)};e.onCleanup(()=>window.removeEventListener("mousedown",ue));const z=f=>{setTimeout(()=>{const q=s.value,N=q==null?void 0:q.querySelector(`[data-edit-idx="${f}"] .moz-auto-input`);N==null||N.focus()},0)},W=f=>{i[f].isEditing=!0,e.requestUpdate(),z(f)},J=()=>{m=!0,U(),setTimeout(()=>n==null?void 0:n.focus(),0)},ne=f=>{if(f.key==="Enter"&&c===""&&e.emit("onEnterEmpty",v()),(f.key==="Enter"||f.key==="Tab"&&r().pushOnBlur)&&c!==""&&(C(c,!0)&&(e.emit("modelChange",v()),c=""),e.requestUpdate()),f.key==="Tab"&&(a=!1,m=!1,e.requestUpdate()),f.key==="Backspace"){const q=f.target,N=u();q.selectionStart===0&&N.length>0&&(R(N[N.length-1].idx,!1),e.requestUpdate())}},X=f=>{r().dynamicSearch&&r().requestRead&&(l=!0,e.requestUpdate(),B(f.target.value))},B=An(f=>{r().requestRead&&r().requestRead(f).then(()=>{l=!1,e.requestUpdate()})},300),se=(f,q)=>{f.key==="Backspace"&&i[q].value===""&&i.length>1&&(y(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===""&&y(f),(i.length>1||i[f]&&i[f].value!=="")&&i[f]&&(i[f].isEditing=!1),i[f]&&D(f),e.requestUpdate()},S=f=>{R(f,!0),e.requestUpdate(),n==null||n.focus()},x=f=>{f.style.width="1px",f.style.width=`${f.scrollWidth}px`},P=f=>{const q=r().limitTextLength;return o.html`<input
1234
+ </svg>`}const Wn=new Set(["modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","class","style"]);function Kn(e,t){let s;return(...n)=>{s&&clearTimeout(s),s=setTimeout(()=>e(...n),t)}}const hs=ve({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,c="",l=!1,h={};const r=()=>e.props,p=f=>r().pattern?new RegExp(`${r().pattern}`).test(f):!0,u=()=>i.map((f,R)=>({...f,idx:R})).filter(f=>f.isSelected!==-1).sort((f,R)=>f.isSelected-R.isSelected),v=()=>u().map(f=>f.value),S=()=>!u().some(f=>!f.isValid),I=(f,R)=>{const U=r().limitItemLength;(!R||R&&U&&u().length<U||R&&!U)&&(R&&i[f].isSelected===-1||!R)&&(i[f].isSelected=R?Date.now():-1)},w=(f,R)=>{const U=i.findIndex(De=>De.value===f);if(U!==-1)return v().includes(f)?!1:(I(U,!0),!0);const X={key:Date.now(),isSelected:R?Date.now():-1,isValid:p(f),isEditing:!1,beforeValue:f,value:f};X.isValid&&r().requestCreate&&r().requestCreate(f);const we=r().limitItemLength;return!R||!we||R&&we&&u().length<we?(i.push(X),!0):!1},y=f=>{i.splice(f,1)},P=f=>{i[f].isValid=p(i[f].value),i[f].isValid&&r().requestUpdate&&r().requestUpdate({before:i[f].beforeValue,after:i[f].value}),i[f].beforeValue=i[f].value},$=()=>{i=i.filter(f=>f.isSelected!==-1),(r().itemsSource??[]).forEach(f=>{w(r().displayKey?f[r().displayKey]:f,!1)})};$();const x=()=>{const f=r().modelValue;if(f&&f.toString()!==v().toString()){const R=[...f];i.forEach((U,X)=>{const we=R.indexOf(U.value);we!==-1&&(U.key===-1&&I(X,!0),R.splice(we,1))}),R.forEach(U=>w(U,!0))}};x();let _=r().modelValue,Y=r().itemsSource,j=v().toString();const le=()=>{if(!t.value||!s.value)return;const f=t.value.getBoundingClientRect();let R=f.left;f.left+s.value.clientWidth>document.body.clientWidth&&(R-=s.value.clientWidth-f.width),h={minWidth:`${f.width}px`,width:`${f.width}px`,left:`${R}px`,top:`${f.top}px`},e.requestUpdate()},ue=f=>{const R=f.target,U=()=>{c&&r().pushOnBlur&&w(c,!0)&&e.emit("modelChange",v()),c="",m=!1,a=!1};R.className&&Array.from(String(R.className).split(" ")).includes("tag-input-not-close")||U(),F(""),window.removeEventListener("mousedown",ue),e.requestUpdate()},W=()=>{a=!0,window.addEventListener("mousedown",ue),e.requestUpdate(),queueMicrotask(le)};e.onCleanup(()=>window.removeEventListener("mousedown",ue));const D=f=>{setTimeout(()=>{const R=s.value,U=R==null?void 0:R.querySelector(`[data-edit-idx="${f}"] .moz-auto-input`);U==null||U.focus()},0)},K=f=>{i[f].isEditing=!0,e.requestUpdate(),D(f)},ee=()=>{m=!0,W(),setTimeout(()=>n==null?void 0:n.focus(),0)},ne=f=>{if(f.key==="Enter"&&c===""&&e.emit("onEnterEmpty",v()),(f.key==="Enter"||f.key==="Tab"&&r().pushOnBlur)&&c!==""&&(w(c,!0)&&(e.emit("modelChange",v()),c=""),e.requestUpdate()),f.key==="Tab"&&(a=!1,m=!1,e.requestUpdate()),f.key==="Backspace"){const R=f.target,U=u();R.selectionStart===0&&U.length>0&&(I(U[U.length-1].idx,!1),e.requestUpdate())}},Q=f=>{r().dynamicSearch&&r().requestRead&&(l=!0,e.requestUpdate(),F(f.target.value))},F=Kn(f=>{r().requestRead&&r().requestRead(f).then(()=>{l=!1,e.requestUpdate()})},300),se=(f,R)=>{f.key==="Backspace"&&i[R].value===""&&i.length>1&&(y(R),e.requestUpdate())},G=f=>{f.key==="Enter"&&(m=!0,e.requestUpdate(),setTimeout(()=>n==null?void 0:n.focus(),0))},E=f=>{i[f].value===""&&y(f),(i.length>1||i[f]&&i[f].value!=="")&&i[f]&&(i[f].isEditing=!1),i[f]&&P(f),e.requestUpdate()},k=f=>{I(f,!0),e.requestUpdate(),n==null||n.focus()},z=f=>{f.style.width="1px",f.style.width=`${f.scrollWidth}px`},T=f=>{const R=r().limitTextLength;return o.html`<input
1235
1235
  class="moz-auto-input tag-input-common tag-input-add"
1236
1236
  .value=${f.value}
1237
1237
  style="width:1px"
1238
- ${_.ref(N=>{var be;const j=N??null;j&&x(j),(be=f.captureEl)==null||be.call(f,j)})}
1239
- @input=${N=>{var be;const j=N.target;q&&j.value.length<=q||!q||q===-1?f.setValue(j.value):j.value=f.value,x(j),(be=f.onInputExtra)==null||be.call(f,N)}}
1240
- @keydown=${N=>{var j;return(j=f.onKeydown)==null?void 0:j.call(f,N)}}
1241
- @keyup=${N=>{var j;return(j=f.onKeyup)==null?void 0:j.call(f,N)}}
1242
- @blur=${()=>{var N;return(N=f.onBlur)==null?void 0:N.call(f)}}
1243
- />`},A=(f,q,N)=>o.html`<div class="tag-input-controller" style=${ee.styleMap({display:f.isSelected!==-1?"":"none"})}>
1238
+ ${N.ref(U=>{var we;const X=U??null;X&&z(X),(we=f.captureEl)==null||we.call(f,X)})}
1239
+ @input=${U=>{var we;const X=U.target;R&&X.value.length<=R||!R||R===-1?f.setValue(X.value):X.value=f.value,z(X),(we=f.onInputExtra)==null||we.call(f,U)}}
1240
+ @keydown=${U=>{var X;return(X=f.onKeydown)==null?void 0:X.call(f,U)}}
1241
+ @keyup=${U=>{var X;return(X=f.onKeyup)==null?void 0:X.call(f,U)}}
1242
+ @blur=${()=>{var U;return(U=f.onBlur)==null?void 0:U.call(f)}}
1243
+ />`},V=(f,R,U)=>o.html`<div class="tag-input-controller" style=${J.styleMap({display:f.isSelected!==-1?"":"none"})}>
1244
1244
  <div
1245
- class=${L("tag-input-item",{invalid:!f.isValid})}
1245
+ class=${A("tag-input-item",{invalid:!f.isValid})}
1246
1246
  data-isValid=${String(f.isValid)}
1247
1247
  data-edit-idx=${f.idx}
1248
- @mousedown=${j=>j.stopPropagation()}
1248
+ @mousedown=${X=>X.stopPropagation()}
1249
1249
  >
1250
- ${N&&r().simplify&&f.isEditing?P({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>`}
1250
+ ${U&&r().simplify&&f.isEditing?T({value:f.value,setValue:X=>{i[f.idx].value=X,e.requestUpdate()},onKeydown:X=>se(X,f.idx),onKeyup:X=>G(X),onBlur:()=>E(f.idx)}):o.html`<span class="tag-input-preview tag-input-common">${f.value}</span>`}
1251
1251
  <div class="tag-input-btn-wrapper">
1252
1252
  ${r().simplify&&!f.isEditing&&!r().disableUpdate?o.html`<span
1253
1253
  class="tag-input-button cursor-pointer"
1254
1254
  role="button"
1255
1255
  tabindex="0"
1256
1256
  aria-label=${e.locale.TagInput.editTag.replace("{label}",f.value??"")}
1257
- @click=${()=>W(f.idx)}
1258
- @keydown=${j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),W(f.idx))}}
1259
- >${mo("10")}</span
1257
+ @click=${()=>K(f.idx)}
1258
+ @keydown=${X=>{X.key!=="Enter"&&X.key!==" "||(X.preventDefault(),K(f.idx))}}
1259
+ >${yo("10")}</span
1260
1260
  >`:o.nothing}
1261
1261
  <span
1262
1262
  class="tag-input-button cursor-pointer"
1263
1263
  role="button"
1264
1264
  tabindex="0"
1265
1265
  aria-label=${e.locale.TagInput.removeTag.replace("{label}",f.value??"")}
1266
- @click=${()=>{R(f.idx,!1),e.requestUpdate()}}
1267
- @keydown=${j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),R(f.idx,!1),e.requestUpdate())}}
1268
- >${Ot()}</span
1266
+ @click=${()=>{I(f.idx,!1),e.requestUpdate()}}
1267
+ @keydown=${X=>{X.key!=="Enter"&&X.key!==" "||(X.preventDefault(),I(f.idx,!1),e.requestUpdate())}}
1268
+ >${_t()}</span
1269
1269
  >
1270
1270
  </div>
1271
1271
  </div>
1272
- </div>`;return{api:{isValid:$},render(){const f=e.props;f.modelValue!==G&&(G=f.modelValue,V()),f.itemsSource!==Y&&(Y=f.itemsSource,E());const q=v().toString();if(q!==Q){Q=q;const j=v();queueMicrotask(()=>e.emit("update:modelValue",j))}const N=ve(f,zn);return o.html`
1273
- <div class=${L("moz-tag-input-wrapper",f.class)} style=${ee.styleMap(me(f.style))} ${ce(N)}>
1274
- ${f.label?o.html`<label class=${L("tag-input-label",{required:f.required})}>${f.label}</label>`:o.nothing}
1272
+ </div>`;return{api:{isValid:S},render(){const f=e.props;f.modelValue!==_&&(_=f.modelValue,x()),f.itemsSource!==Y&&(Y=f.itemsSource,$());const R=v().toString();if(R!==j){j=R;const X=v();queueMicrotask(()=>e.emit("update:modelValue",X))}const U=fe(f,Wn);return o.html`
1273
+ <div class=${A("moz-tag-input-wrapper",f.class)} style=${J.styleMap(me(f.style))} ${ce(U)}>
1274
+ ${f.label?o.html`<label class=${A("tag-input-label",{required:f.required})}>${f.label}</label>`:o.nothing}
1275
1275
  <div class="tag-input-grid">
1276
1276
  <div
1277
1277
  class="tag-input-not-close tag-input-row scrollbar-none"
1278
- @mousedown=${j=>{j.stopPropagation(),J()}}
1279
- @click=${U}
1280
- ${_.ref(t)}
1278
+ @mousedown=${X=>{X.stopPropagation(),ee()}}
1279
+ @click=${W}
1280
+ ${N.ref(t)}
1281
1281
  >
1282
1282
  ${e.slot("left")}
1283
- ${u().map((j,be)=>A(j,be,!1))}
1284
- ${m?o.html`<span class="tag-input-preview tag-input-common" @click=${J}>${c}</span>`:o.nothing}
1283
+ ${u().map((X,we)=>V(X,we,!1))}
1284
+ ${m?o.html`<span class="tag-input-preview tag-input-common" @click=${ee}>${c}</span>`:o.nothing}
1285
1285
  ${f.limitItemLength&&m?o.html`<div class="tag-input-counter">${u().length} / ${f.limitItemLength}</div>`:o.nothing}
1286
1286
  ${m?o.nothing:o.html`<span class="tag-input-add-to">${f.addButtonLabel?f.addButtonLabel:e.locale.TagInput.add} </span>`}
1287
1287
  <div class="flex-1"></div>
@@ -1289,47 +1289,47 @@
1289
1289
  </div>
1290
1290
  </div>
1291
1291
  </div>
1292
- `},renderPortal(){if(!a)return o.nothing;const f=e.props;return o.html`<div class="absolute z-1501 moz-tag-input-float" style=${ee.styleMap(h)}>
1292
+ `},renderPortal(){if(!a)return o.nothing;const f=e.props;return o.html`<div class="absolute z-1501 moz-tag-input-float" style=${J.styleMap(h)}>
1293
1293
  <div
1294
1294
  class="tag-input-placeholder-float tag-input-not-close scrollbar-none shown"
1295
- @mousedown=${q=>{q.stopPropagation(),J()}}
1296
- ${_.ref(s)}
1295
+ @mousedown=${R=>{R.stopPropagation(),ee()}}
1296
+ ${N.ref(s)}
1297
1297
  >
1298
- ${u().map((q,N)=>A(q,N,!0))}
1299
- ${m?P({value:c,setValue:q=>{c=q,e.requestUpdate()},onKeydown:ne,onKeyup:()=>{},onBlur:()=>{},onInputExtra:X,captureEl:q=>{n=q}}):o.nothing}
1298
+ ${u().map((R,U)=>V(R,U,!0))}
1299
+ ${m?T({value:c,setValue:R=>{c=R,e.requestUpdate()},onKeydown:ne,onKeyup:()=>{},onBlur:()=>{},onInputExtra:Q,captureEl:R=>{n=R}}):o.nothing}
1300
1300
  ${l?o.html`<div class="tag-input-loading">
1301
1301
  <div class="tag-input-loading-ball-1"></div>
1302
1302
  <div class="tag-input-loading-ball-2"></div>
1303
1303
  <div class="tag-input-loading-ball-3"></div>
1304
1304
  </div>`:o.nothing}
1305
- ${f.limitItemLength&&m?o.html`<div class="tag-input-counter" @click=${J}>
1305
+ ${f.limitItemLength&&m?o.html`<div class="tag-input-counter" @click=${ee}>
1306
1306
  ${u().length} / ${f.limitItemLength}
1307
1307
  </div>`:o.nothing}
1308
1308
  ${m?o.nothing:o.html`<span class="tag-input-add-to flex-1">${f.addButtonLabel?f.addButtonLabel:""} </span>`}
1309
1309
  </div>
1310
- ${f.simplify?o.nothing:o.html`<div class="tag-input-dropdown-outer-wrapper" @mousedown=${q=>q.stopPropagation()}>
1311
- <div class=${L("tag-input-dropdown-wrapper",{"expand-top":f.isExpandTop})}>
1310
+ ${f.simplify?o.nothing:o.html`<div class="tag-input-dropdown-outer-wrapper" @mousedown=${R=>R.stopPropagation()}>
1311
+ <div class=${A("tag-input-dropdown-wrapper",{"expand-top":f.isExpandTop})}>
1312
1312
  <div class="tag-input-dropdown-inner-wrapper">
1313
1313
  <div class="tag-input-dropdown-title"></div>
1314
- ${i.map((q,N)=>o.html`<div class="dropdown-tag-input-item-wrapper tag-input-controller">
1314
+ ${i.map((R,U)=>o.html`<div class="dropdown-tag-input-item-wrapper tag-input-controller">
1315
1315
  <div
1316
- class=${L("tag-input-item tag-item-limit-width",{invalid:!q.isValid})}
1317
- data-isValid=${String(q.isValid)}
1318
- data-edit-idx=${N}
1319
- @click=${()=>S(N)}
1316
+ class=${A("tag-input-item tag-item-limit-width",{invalid:!R.isValid})}
1317
+ data-isValid=${String(R.isValid)}
1318
+ data-edit-idx=${U}
1319
+ @click=${()=>k(U)}
1320
1320
  >
1321
- ${q.isEditing?P({value:q.value,setValue:j=>{i[N].value=j,e.requestUpdate()},onKeydown:j=>se(j,N),onKeyup:j=>K(j),onBlur:()=>k(N)}):o.html`<span class="tag-input-preview tag-input-common">
1322
- <span>${q.value}</span>
1321
+ ${R.isEditing?T({value:R.value,setValue:X=>{i[U].value=X,e.requestUpdate()},onKeydown:X=>se(X,U),onKeyup:X=>G(X),onBlur:()=>E(U)}):o.html`<span class="tag-input-preview tag-input-common">
1322
+ <span>${R.value}</span>
1323
1323
  <div class="tag-input-btn-wrapper">
1324
- ${!q.isEditing&&!f.disableUpdate?o.html`<span
1324
+ ${!R.isEditing&&!f.disableUpdate?o.html`<span
1325
1325
  class="tag-input-button cursor-pointer"
1326
- @click=${j=>{j.stopPropagation(),W(N)}}
1327
- >${mo("10")}</span
1326
+ @click=${X=>{X.stopPropagation(),K(U)}}
1327
+ >${yo("10")}</span
1328
1328
  >`:o.nothing}
1329
1329
  ${f.disableDelete?o.nothing:o.html`<span
1330
1330
  class="tag-input-button cursor-pointer"
1331
- @click=${j=>{j.stopPropagation(),y(N),e.requestUpdate()}}
1332
- >${Ot()}</span
1331
+ @click=${X=>{X.stopPropagation(),y(U),e.requestUpdate()}}
1332
+ >${_t()}</span
1333
1333
  >`}
1334
1334
  </div>
1335
1335
  </span>`}
@@ -1338,85 +1338,85 @@
1338
1338
  </div>
1339
1339
  </div>
1340
1340
  </div>`}
1341
- </div>`}}}}),Vn={name:"MozTagInput",core:is,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},Dn=new Set(["itemSource","fixPosition","noPadding","minWidth","class","style"]);function Rn(e,t){let s;return(...n)=>{s&&clearTimeout(s),s=setTimeout(()=>e(...n),t)}}const qn=500,rs=we({name:"moz-context-menu",defaults:{transition:"fade",minWidth:"150px",direction:"rb"},setup(e){let t=null,s=null;const n=_.createRef();let i=!1,a=!1,m=!1,c=!1,l=null,h=!1,r=!1,p=!1,u=!1;const v=new Map,$=new Map,R=new Map,C=new Map,y=()=>{i&&a&&(l||e.props.itemSource)&&s&&!u&&(u=!0,e.emit("open",{target:s}))},D=k=>{const S=m!==k;m=k,e.requestUpdate(),S&&!k&&setTimeout(()=>{i=!1,c=!1,u=!1,e.emit("close",{target:s}),e.requestUpdate()},50)},E=k=>{const S=i!==k;i=k,e.requestUpdate(),S&&(setTimeout(()=>{a=i,e.requestUpdate(),y()},0),D(i),y())},V=k=>{if(e.props.disableCloseOnClickBackdrop)return;const S=["list-box-container"],x=k.composedPath();x.includes(s)||S.forEach(P=>{(!P||P&&!x.some(A=>{var f;return(f=A.classList)==null?void 0:f.contains(P)}))&&G()})},G=()=>{(e.props.beforeClose??(()=>{}))&&(D(!1),window.removeEventListener("mousedown",V),window.removeEventListener("resize",G))},Y=(k,S)=>{k instanceof Function&&(l=k(S)),E(!0),setTimeout(()=>E(!0),60)},Q=()=>{i?G():Y()},le=()=>{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(),P=n.value.getBoundingClientRect();h=x.left+S.clientWidth<P.left+s.clientWidth,r=x.left+S.clientWidth<P.left+s.clientWidth*2,p=x.top+S.clientHeight<P.top+s.clientHeight,k.useTeleport?(s.style.left=`${P.left}px`,s.style.top=`${P.top}px`):(s.style.left=`${n.value.offsetLeft}px`,s.style.top=`${n.value.offsetTop}px`),e.requestUpdate()},ue=k=>{c||(s&&t&&(e.props.fixPosition?le():(h=t.clientWidth<k.clientX+s.clientWidth,r=t.clientWidth<k.clientX+s.clientWidth*2,p=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",V),window.addEventListener("resize",G),c=!0,e.requestUpdate())};e.onCleanup(()=>{window.removeEventListener("mousedown",V),window.removeEventListener("resize",G)});const U=k=>{let S=C.get(k);return S||(S=Rn((x,P,A)=>{P.children&&(z(A,P),v.set(A,x),e.requestUpdate())},400),C.set(k,S)),S},z=(k,S)=>{if(!S.children||$.get(k))return;const x=R.get(k);if(!x)return;const P=x.getBoundingClientRect();$.set(k,x.clientHeight+P.top>document.body.offsetHeight)},W=(k,S)=>{k.function?(k.function(),G()):k.children&&(z(S,k),v.set(S,!0),e.requestUpdate())},J=k=>typeof k.disabled=="function"?k.disabled():!!k.disabled,ne=(k,S,x,P)=>{const A=v.get(P)??!1,f=$.get(P)??!1,q=U(P);return o.html`<div
1342
- class=${L({"context-menu-item-enable-hover":!("hover"in k)||k.hover,"context-menu-item-wrapper":!0,"context-menu-item-wrapper-selected":A,"context-menu-item-wrapper-disabled":J(k)})}
1343
- @mouseenter=${()=>q(!0,k,P)}
1344
- @mouseleave=${()=>q(!1,k,P)}
1341
+ </div>`}}}}),Gn={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},Yn=new Set(["itemSource","fixPosition","noPadding","minWidth","class","style"]);function Zn(e,t){let s;return(...n)=>{s&&clearTimeout(s),s=setTimeout(()=>e(...n),t)}}const jn=500,ms=ve({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,c=!1,l=null,h=!1,r=!1,p=!1,u=!1;const v=new Map,S=new Map,I=new Map,w=new Map,y=()=>{i&&a&&(l||e.props.itemSource)&&s&&!u&&(u=!0,e.emit("open",{target:s}))},P=E=>{const k=m!==E;m=E,e.requestUpdate(),k&&!E&&setTimeout(()=>{i=!1,c=!1,u=!1,e.emit("close",{target:s}),e.requestUpdate()},50)},$=E=>{const k=i!==E;i=E,e.requestUpdate(),k&&(setTimeout(()=>{a=i,e.requestUpdate(),y()},0),P(i),y())},x=E=>{if(e.props.disableCloseOnClickBackdrop)return;const k=["list-box-container"],z=E.composedPath();z.includes(s)||k.forEach(T=>{(!T||T&&!z.some(V=>{var f;return(f=V.classList)==null?void 0:f.contains(T)}))&&_()})},_=()=>{(e.props.beforeClose??(()=>{}))&&(P(!1),window.removeEventListener("mousedown",x),window.removeEventListener("resize",_))},Y=(E,k)=>{E instanceof Function&&(l=E(k)),$(!0),setTimeout(()=>$(!0),60)},j=()=>{i?_():Y()},le=()=>{const E=e.props.fixPosition;if(!E)return;const k=E.selector&&document.querySelector(E.selector)||t;if(!k||!s||!n.value)return;const z=k.getBoundingClientRect(),T=n.value.getBoundingClientRect();h=z.left+k.clientWidth<T.left+s.clientWidth,r=z.left+k.clientWidth<T.left+s.clientWidth*2,p=z.top+k.clientHeight<T.top+s.clientHeight,E.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()},ue=E=>{c||(s&&t&&(e.props.fixPosition?le():(h=t.clientWidth<E.clientX+s.clientWidth,r=t.clientWidth<E.clientX+s.clientWidth*2,p=t.clientHeight<E.clientY+s.clientHeight,s.style.left=`${E.clientX}px`,s.style.top=`${E.clientY}px`)),t&&(t.style.pointerEvents="none"),window.addEventListener("mousedown",x),window.addEventListener("resize",_),c=!0,e.requestUpdate())};e.onCleanup(()=>{window.removeEventListener("mousedown",x),window.removeEventListener("resize",_)});const W=E=>{let k=w.get(E);return k||(k=Zn((z,T,V)=>{T.children&&(D(V,T),v.set(V,z),e.requestUpdate())},400),w.set(E,k)),k},D=(E,k)=>{if(!k.children||S.get(E))return;const z=I.get(E);if(!z)return;const T=z.getBoundingClientRect();S.set(E,z.clientHeight+T.top>document.body.offsetHeight)},K=(E,k)=>{E.function?(E.function(),_()):E.children&&(D(k,E),v.set(k,!0),e.requestUpdate())},ee=E=>typeof E.disabled=="function"?E.disabled():!!E.disabled,ne=(E,k,z,T)=>{const V=v.get(T)??!1,f=S.get(T)??!1,R=W(T);return o.html`<div
1342
+ class=${A({"context-menu-item-enable-hover":!("hover"in E)||E.hover,"context-menu-item-wrapper":!0,"context-menu-item-wrapper-selected":V,"context-menu-item-wrapper-disabled":ee(E)})}
1343
+ @mouseenter=${()=>R(!0,E,T)}
1344
+ @mouseleave=${()=>R(!1,E,T)}
1345
1345
  >
1346
1346
  <div
1347
- class=${L({"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||!A,"context-menu-sub-items-wrapper":!f&&!x})}
1348
- ${_.ref(N=>{N&&R.set(P,N)})}
1347
+ class=${A({"context-menu-sub-items-wrapper-right":z&&!f,"context-menu-sub-items-wrapper-bottom":f&&!z,"context-menu-sub-items-wrapper-bottom-right":f&&z,"context-menu-sub-items-wrapper-hide":!E.children||!V,"context-menu-sub-items-wrapper":!f&&!z})}
1348
+ ${N.ref(U=>{U&&I.set(T,U)})}
1349
1349
  >
1350
- ${k.children?B(k.children,S+1,x,P):o.nothing}
1350
+ ${E.children?F(E.children,k+1,z,T):o.nothing}
1351
1351
  </div>
1352
- ${k.template?o.html`<div
1353
- class=${`context-menu-item-${k.template}`}
1354
- @mouseup=${()=>{var N;(!("hover"in k)||k.hover)&&((N=k.function)==null||N.call(k),G())}}
1352
+ ${E.template?o.html`<div
1353
+ class=${`context-menu-item-${E.template}`}
1354
+ @mouseup=${()=>{var U;(!("hover"in E)||E.hover)&&((U=E.function)==null||U.call(E),_())}}
1355
1355
  >
1356
- ${X(k)}
1356
+ ${Q(E)}
1357
1357
  </div>`:o.html`<div
1358
1358
  class="context-menu-item"
1359
1359
  role="menuitem"
1360
1360
  tabindex="-1"
1361
- aria-disabled=${J(k)?"true":"false"}
1362
- aria-haspopup=${k.children?"menu":"false"}
1363
- @click=${()=>W(k,P)}
1361
+ aria-disabled=${ee(E)?"true":"false"}
1362
+ aria-haspopup=${E.children?"menu":"false"}
1363
+ @click=${()=>K(E,T)}
1364
1364
  >
1365
- <div class="context-menu-item-left">${k.text}</div>
1366
- ${k.children?o.html`<div class="context-menu-item-right"></div>`:o.nothing}
1365
+ <div class="context-menu-item-left">${E.text}</div>
1366
+ ${E.children?o.html`<div class="context-menu-item-right"></div>`:o.nothing}
1367
1367
  </div>`}
1368
- </div>`},X=k=>{const S=k.template,x=S.includes("[col-padding]")?"col-padding":S.includes("[row-padding]")?"row-padding":S.includes("[padding]")?"padding":null,P=e.slots.has(S)?e.slot(S,{props:{...k,close:G}}):o.nothing;return x?o.html`<div class="context-menu-item-template" data-layout=${x}>${P}</div>`:o.html`${P}`},B=(k,S,x,P)=>{const A=S===0;return o.html`<div
1369
- role=${A?"menu":"group"}
1370
- class=${L("context-menu-content-wrapper",A?e.props.class:void 0)}
1368
+ </div>`},Q=E=>{const k=E.template,z=k.includes("[col-padding]")?"col-padding":k.includes("[row-padding]")?"row-padding":k.includes("[padding]")?"padding":null,T=e.slots.has(k)?e.slot(k,{props:{...E,close:_}}):o.nothing;return z?o.html`<div class="context-menu-item-template" data-layout=${z}>${T}</div>`:o.html`${T}`},F=(E,k,z,T)=>{const V=k===0;return o.html`<div
1369
+ role=${V?"menu":"group"}
1370
+ class=${A("context-menu-content-wrapper",V?e.props.class:void 0)}
1371
1371
  data-noPadding=${String(!!e.props.noPadding)}
1372
- style=${ee.styleMap({minWidth:e.props.minWidth,...A?me(e.props.style):{}})}
1373
- ${ce(A?ve(e.props,Dn):{})}
1372
+ style=${J.styleMap({minWidth:e.props.minWidth,...V?me(e.props.style):{}})}
1373
+ ${ce(V?fe(e.props,Yn):{})}
1374
1374
  >
1375
- ${k.map((f,q)=>{const N=`${P}/${S}-${q}`;return o.html`<div class="context-menu-item-outer-wrapper" style=${ee.styleMap({display:f!=null&&f.hidden?"none":""})}>
1376
- ${f.separator?o.html`<div class="context-menu-separator"></div>`:ne(f,S,x,N)}
1375
+ ${E.map((f,R)=>{const U=`${T}/${k}-${R}`;return o.html`<div class="context-menu-item-outer-wrapper" style=${J.styleMap({display:f!=null&&f.hidden?"none":""})}>
1376
+ ${f.separator?o.html`<div class="context-menu-separator"></div>`:ne(f,k,z,U)}
1377
1377
  </div>`})}
1378
- </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,P=k.direction;return o.html`<div
1379
- class=${L({[`before-${x}`]:!0,[`after-${x}`]:a&&m,"context-menu-content-hide":!i,"context-menu-content-init":!0,"context-menu-content-init-right":h&&!p||P==="lb"||P.startsWith("l")&&!p||P.endsWith("b")&&h,"context-menu-content-init-bottom":p&&!h||P==="rt"||P.startsWith("r")&&p||P.endsWith("t")&&!h,"context-menu-content-init-bottom-right":p&&h||P==="lt"||P.startsWith("l")&&p||P.endsWith("t")&&h})}
1380
- style=${ee.styleMap({transitionDuration:`${qn}ms`,...k.toTopCenter?{transform:"translate(-50%, -100%)"}:{},...k.toBottomCenter?{transform:"translate(-50%, 0)"}:{}})}
1381
- @contextmenu=${A=>A.preventDefault()}
1382
- ${_.ref(A=>{A&&(s=A,y())})}
1378
+ </div>`},se=()=>{const E=e.props.fixPosition;return E?(typeof E.left=="string"||typeof E.left=="number"||typeof E.top=="string"||typeof E.top=="number")&&E.useTeleport!==!0:!1},G=()=>{const E=e.props,k=l||E.itemSource;if(!i||!k)return o.nothing;const z=E.transition,T=E.direction;return o.html`<div
1379
+ class=${A({[`before-${z}`]:!0,[`after-${z}`]:a&&m,"context-menu-content-hide":!i,"context-menu-content-init":!0,"context-menu-content-init-right":h&&!p||T==="lb"||T.startsWith("l")&&!p||T.endsWith("b")&&h,"context-menu-content-init-bottom":p&&!h||T==="rt"||T.startsWith("r")&&p||T.endsWith("t")&&!h,"context-menu-content-init-bottom-right":p&&h||T==="lt"||T.startsWith("l")&&p||T.endsWith("t")&&h})}
1380
+ style=${J.styleMap({transitionDuration:`${jn}ms`,...E.toTopCenter?{transform:"translate(-50%, -100%)"}:{},...E.toBottomCenter?{transform:"translate(-50%, 0)"}:{}})}
1381
+ @contextmenu=${V=>V.preventDefault()}
1382
+ ${N.ref(V=>{V&&(s=V,y())})}
1383
1383
  >
1384
- ${B(S,0,r,"root")}
1385
- </div>`};return{api:{state:()=>i,open:Y,close:G,toggle:Q},render(){const k=e.props;return k.fixPosition?o.html`<div
1384
+ ${F(k,0,r,"root")}
1385
+ </div>`};return{api:{state:()=>i,open:Y,close:_,toggle:j},render(){const E=e.props;return E.fixPosition?o.html`<div
1386
1386
  class="context-menu-fixed-position-space"
1387
- style=${ee.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`})}
1388
- ${_.ref(n)}
1387
+ style=${J.styleMap({left:typeof E.fixPosition.left=="string"?E.fixPosition.left:`${E.fixPosition.left}px`,top:typeof E.fixPosition.top=="string"?E.fixPosition.top:`${E.fixPosition.top}px`})}
1388
+ ${N.ref(n)}
1389
1389
  ></div>
1390
- ${se()?K():o.nothing}`:o.nothing},renderPortal(){const k=l||e.props.itemSource;return!i||!k?o.nothing:o.html`
1390
+ ${se()?G():o.nothing}`:o.nothing},renderPortal(){const E=l||e.props.itemSource;return!i||!E?o.nothing:o.html`
1391
1391
  <div
1392
1392
  class="context-menu-wrapper"
1393
1393
  @mouseenter=${ue}
1394
- @contextmenu=${S=>S.preventDefault()}
1395
- ${_.ref(S=>{S&&(t=S)})}
1394
+ @contextmenu=${k=>k.preventDefault()}
1395
+ ${N.ref(k=>{k&&(t=k)})}
1396
1396
  ></div>
1397
- ${se()?o.nothing:K()}
1398
- `}}}}),In={name:"MozContextMenu",core:rs,booleanProps:["disableCloseOnClickBackdrop","noPadding","toBottomCenter","toTopCenter"],props:["itemSource","beforeClose","transition","minWidth","direction","fixPosition","toTopCenter","toBottomCenter","noPadding","disableCloseOnClickBackdrop"],emits:["open","close"],slots:[],expose:!0},dt=32,fo=300,Fn=29,Bn=32,go=120,On=34,Hn=12,vo=30,_n=new Set(["itemsSource","label","width","required","readonly","disabled","keyProp","displayProps","columnWidths","separator","rules","useFilter","listWidth","searchPlaceholder","emptyText","requiredMessage","useObjKeyProp","columnHeaders","modelValue","class","style"]);function Nn(e,t){let s;return(...n)=>{s&&clearTimeout(s),s=setTimeout(()=>e(...n),t)}}function Un(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const as=we({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=_.createRef(),s=_.createRef(),n=_.createRef(),i=_.createRef(),a=_.createRef(),m=_.createRef();let c=null,l=e.props.modelValue??null;const h=()=>e.controlled("modelValue")?e.props.modelValue??null:l,r=d=>{e.controlled("modelValue")||(l=d),e.emit("update:modelValue",d),e.requestUpdate()};let p=!1,u="",v=-1;const $={change:"",blur:"",save:""};let R=h();const C=()=>e.props.keyProp||"id",y=()=>e.props.displayProps??["text"],D=new Fe.Virtualizer({count:0,getScrollElement:()=>c,estimateSize:()=>dt,measureElement:d=>{const T=d.getBoundingClientRect().height;return T>0?T:dt},overscan:5,observeElementRect:Fe.observeElementRect,observeElementOffset:Fe.observeElementOffset,scrollToFn:Fe.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{P==null||P.release(),P=null}),e.onCleanup(D._didMount());const E=d=>{c=d??null,d&&(D._willUpdate(),e.requestUpdate())},V=d=>{const T=h();return T==null?!1:e.props.useObjKeyProp?typeof T!="object"?!1:y().every(Z=>d[Z]===T[Z]):d[C()]===T},G=()=>h()==null||!e.props.itemsSource?null:e.props.itemsSource.find(d=>V(d))??null,Y=d=>e.props.itemsSource?e.props.itemsSource.find(T=>T[C()]===d)??null:null,Q=()=>{const d=h();if(d==null)return null;const T=e.props.useObjKeyProp?G():Y(d);return T?y().map(Z=>String(T[Z]??"")).join(e.props.separator):null},le=()=>{const d=y(),T=e.props.columnWidths??[],Z=d.reduce((de,Se,ye)=>de+(T[ye]??go),0),ie=Math.max(0,d.length-1)*Hn;return Z+ie+On+vo},ue=()=>{const d=e.props.width;return d!=null?typeof d=="number"?`${Te(d)}rem`:d:`${le()}px`},U=d=>{const T=(e.props.columnWidths??[])[d]??go,Z=d===y().length-1;return`${T+(Z?vo:0)}px`},z=()=>{if(!u)return e.props.itemsSource??[];const d=u.toLowerCase();return(e.props.itemsSource??[]).filter(T=>y().some(Z=>String(T[Z]??"").toLowerCase().indexOf(d)>-1))},W=d=>{if(!u)return[{part:d,highlight:!1}];const T=Un(u),Z=new RegExp(`(${T})`,"gi");return d.split(Z).map(ie=>({part:ie,highlight:u.toLowerCase()===ie.toLowerCase()}))},J=()=>{const d=h();return e.props.useObjKeyProp?d==null?"":String(d):d},ne=()=>$.save||$.blur||$.change,X=()=>{const d=[];return e.props.required&&d.push({message:e.props.requiredMessage??e.locale.TableSelect.requiredMessage.replace("{label}",e.props.label||""),type:"save",validator:T=>!!T}),[...d,...e.props.rules??[]]},B=async(d,T)=>{const Z=X();if(Z.length<=0||e.props.disabled)return!0;$[T]="",e.requestUpdate();const ie=Z.filter(de=>de.type===T);for(const de of ie)if(!await de.validator(d))return $[T]=de.message,e.requestUpdate(),!1;return!0},se=async(d="save")=>ne()!==""?!1:await B(J(),d),K={validate:se,initValidator:()=>{$.change="",$.blur="",$.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(K),e.onCleanup(()=>{var d;return(d=e.validator)==null?void 0:d.removeValidator(K)}));const k=new mt({anchor:()=>s.value??null,panel:()=>n.value??null,maxHeight:()=>fo,container:()=>t.value??null,useMinWidth:!0,listWidth:()=>e.props.listWidth,ignoreScrollTargets:d=>d===c,requestClose:()=>{p&&A(!1)}});e.onCleanup(()=>k.destroy());const S=d=>{d.key==="Escape"&&A(!1)},x=d=>{const T=!!e.props.columnHeaders&&e.props.columnHeaders.length>0,Z=fo-(e.props.useFilter?Fn:0)-(T?Bn:0),de=dt*d-Z/2;return Math.max(0,de+dt)};let P=null;const A=d=>{p!==d&&(p=d,e.requestUpdate(),d?(P=ft(),k.open(),$.save="",window.addEventListener("keydown",S),queueMicrotask(()=>{var Z;if(h()!=null){const ie=z().findIndex(de=>V(de));ie>=0&&(v=ie,c&&(c.scrollTop=x(ie)),e.requestUpdate())}m.value?m.value.focus():(Z=a.value)==null||Z.focus()})):(P==null||P.release(),P=null,k.close(),e.emit("close"),B(J(),"blur"),v=-1,window.removeEventListener("keydown",S),u="",e.emit("close"),queueMicrotask(()=>{var T;return(T=a.value)==null?void 0:T.focus()})))};e.onCleanup(()=>window.removeEventListener("keydown",S));const f=()=>{var d;e.props.disabled||(A(!p),(d=a.value)==null||d.focus())},q=d=>{r(e.props.useObjKeyProp?{...d}:d[C()]),A(!1)},N=()=>{queueMicrotask(()=>D.scrollToIndex(v,{align:"auto"}))},j=d=>{d.preventDefault();const T=z().length-1;T<0||(v=v>=T?0:v+1,e.requestUpdate(),N())},be=d=>{d.preventDefault();const T=z().length-1;T<0||(v=v<=0?T:v-1,e.requestUpdate(),N())},Ve=d=>{d.preventDefault();const T=z();v>=0&&v<T.length&&q(T[v])},Ne=d=>{d.key==="ArrowDown"?j(d):d.key==="ArrowUp"?be(d):d.key==="Enter"&&Ve(d)},Oe=Nn(d=>{u=d.target.value;const T=z().length;v=T>0?0:-1,e.requestUpdate(),queueMicrotask(()=>{D.setOptions({...D.options,count:T}),D.measure(),c&&(c.scrollTop=0,D.scrollToIndex(0),D.measure())})},300);return{api:{validate:se},render(){const d=e.props,T=h();if(T!==R){R=T;const Se=T;queueMicrotask(()=>{B(J(),"change");let ye=null;d.useObjKeyProp?ye=G():Se!=null&&(ye=Y(Se)),e.emit("change",Se,ye)})}const Z=ve(d,_n),{aria:ie,dom:de}=ht(Z);return o.html`
1397
+ ${se()?o.nothing:G()}
1398
+ `}}}}),Xn={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},dt=32,$o=300,Qn=29,Jn=32,So=120,ei=34,ti=12,ko=30,oi=new Set(["itemsSource","label","width","required","readonly","disabled","keyProp","displayProps","columnWidths","separator","rules","useFilter","listWidth","searchPlaceholder","emptyText","requiredMessage","useObjKeyProp","columnHeaders","modelValue","class","style"]);function si(e,t){let s;return(...n)=>{s&&clearTimeout(s),s=setTimeout(()=>e(...n),t)}}function li(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const fs=ve({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 c=null,l=e.props.modelValue??null;const h=()=>e.controlled("modelValue")?e.props.modelValue??null:l,r=d=>{e.controlled("modelValue")||(l=d),e.emit("update:modelValue",d),e.requestUpdate()};let p=!1,u="",v=-1;const S={change:"",blur:"",save:""};let I=h();const w=()=>e.props.keyProp||"id",y=()=>e.props.displayProps??["text"],P=new Oe.Virtualizer({count:0,getScrollElement:()=>c,estimateSize:()=>dt,measureElement:d=>{const L=d.getBoundingClientRect().height;return L>0?L:dt},overscan:5,observeElementRect:Oe.observeElementRect,observeElementOffset:Oe.observeElementOffset,scrollToFn:Oe.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{T==null||T.release(),T=null}),e.onCleanup(P._didMount());const $=d=>{c=d??null,d&&(P._willUpdate(),e.requestUpdate())},x=d=>{const L=h();return L==null?!1:e.props.useObjKeyProp?typeof L!="object"?!1:y().every(Z=>d[Z]===L[Z]):d[w()]===L},_=()=>h()==null||!e.props.itemsSource?null:e.props.itemsSource.find(d=>x(d))??null,Y=d=>e.props.itemsSource?e.props.itemsSource.find(L=>L[w()]===d)??null:null,j=()=>{const d=h();if(d==null)return null;const L=e.props.useObjKeyProp?_():Y(d);return L?y().map(Z=>String(L[Z]??"")).join(e.props.separator):null},le=()=>{const d=y(),L=e.props.columnWidths??[],Z=d.reduce((de,ke,$e)=>de+(L[$e]??So),0),ie=Math.max(0,d.length-1)*ti;return Z+ie+ei+ko},ue=()=>{const d=e.props.width;return d!=null?typeof d=="number"?`${Me(d)}rem`:d:`${le()}px`},W=d=>{const L=(e.props.columnWidths??[])[d]??So,Z=d===y().length-1;return`${L+(Z?ko:0)}px`},D=()=>{if(!u)return e.props.itemsSource??[];const d=u.toLowerCase();return(e.props.itemsSource??[]).filter(L=>y().some(Z=>String(L[Z]??"").toLowerCase().indexOf(d)>-1))},K=d=>{if(!u)return[{part:d,highlight:!1}];const L=li(u),Z=new RegExp(`(${L})`,"gi");return d.split(Z).map(ie=>({part:ie,highlight:u.toLowerCase()===ie.toLowerCase()}))},ee=()=>{const d=h();return e.props.useObjKeyProp?d==null?"":String(d):d},ne=()=>S.save||S.blur||S.change,Q=()=>{const d=[];return e.props.required&&d.push({message:e.props.requiredMessage??e.locale.TableSelect.requiredMessage.replace("{label}",e.props.label||""),type:"save",validator:L=>!!L}),[...d,...e.props.rules??[]]},F=async(d,L)=>{const Z=Q();if(Z.length<=0||e.props.disabled)return!0;S[L]="",e.requestUpdate();const ie=Z.filter(de=>de.type===L);for(const de of ie)if(!await de.validator(d))return S[L]=de.message,e.requestUpdate(),!1;return!0},se=async(d="save")=>ne()!==""?!1:await F(ee(),d),G={validate:se,initValidator:()=>{S.change="",S.blur="",S.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(G),e.onCleanup(()=>{var d;return(d=e.validator)==null?void 0:d.removeValidator(G)}));const E=new gt({anchor:()=>s.value??null,panel:()=>n.value??null,maxHeight:()=>$o,container:()=>t.value??null,useMinWidth:!0,listWidth:()=>e.props.listWidth,ignoreScrollTargets:d=>d===c,requestClose:()=>{p&&V(!1)}});e.onCleanup(()=>E.destroy());const k=d=>{d.key==="Escape"&&V(!1)},z=d=>{const L=!!e.props.columnHeaders&&e.props.columnHeaders.length>0,Z=$o-(e.props.useFilter?Qn:0)-(L?Jn:0),de=dt*d-Z/2;return Math.max(0,de+dt)};let T=null;const V=d=>{p!==d&&(p=d,e.requestUpdate(),d?(T=vt(),E.open(),S.save="",window.addEventListener("keydown",k),queueMicrotask(()=>{var Z;if(h()!=null){const ie=D().findIndex(de=>x(de));ie>=0&&(v=ie,c&&(c.scrollTop=z(ie)),e.requestUpdate())}m.value?m.value.focus():(Z=a.value)==null||Z.focus()})):(T==null||T.release(),T=null,E.close(),e.emit("close"),F(ee(),"blur"),v=-1,window.removeEventListener("keydown",k),u="",e.emit("close"),queueMicrotask(()=>{var L;return(L=a.value)==null?void 0:L.focus()})))};e.onCleanup(()=>window.removeEventListener("keydown",k));const f=()=>{var d;e.props.disabled||(V(!p),(d=a.value)==null||d.focus())},R=d=>{r(e.props.useObjKeyProp?{...d}:d[w()]),V(!1)},U=()=>{queueMicrotask(()=>P.scrollToIndex(v,{align:"auto"}))},X=d=>{d.preventDefault();const L=D().length-1;L<0||(v=v>=L?0:v+1,e.requestUpdate(),U())},we=d=>{d.preventDefault();const L=D().length-1;L<0||(v=v<=0?L:v-1,e.requestUpdate(),U())},De=d=>{d.preventDefault();const L=D();v>=0&&v<L.length&&R(L[v])},_e=d=>{d.key==="ArrowDown"?X(d):d.key==="ArrowUp"?we(d):d.key==="Enter"&&De(d)},Be=si(d=>{u=d.target.value;const L=D().length;v=L>0?0:-1,e.requestUpdate(),queueMicrotask(()=>{P.setOptions({...P.options,count:L}),P.measure(),c&&(c.scrollTop=0,P.scrollToIndex(0),P.measure())})},300);return{api:{validate:se},render(){const d=e.props,L=h();if(L!==I){I=L;const ke=L;queueMicrotask(()=>{F(ee(),"change");let $e=null;d.useObjKeyProp?$e=_():ke!=null&&($e=Y(ke)),e.emit("change",ke,$e)})}const Z=fe(d,oi),{aria:ie,dom:de}=ft(Z);return o.html`
1399
1399
  <div
1400
- class=${L("moz-table-select",{"is-invalid":ne()!=="","is-open":p,disabled:!!d.disabled})}
1401
- style=${ee.styleMap(me(d.style))}
1402
- ${_.ref(t)}
1400
+ class=${A("moz-table-select",{"is-invalid":ne()!=="","is-open":p,disabled:!!d.disabled})}
1401
+ style=${J.styleMap(me(d.style))}
1402
+ ${N.ref(t)}
1403
1403
  >
1404
1404
  <div class="input-wrapper">
1405
- ${d.label?Be({disabled:d.disabled,required:d.required},d.label):o.nothing}
1405
+ ${d.label?Fe({disabled:d.disabled,required:d.required},d.label):o.nothing}
1406
1406
  <div
1407
1407
  class="moz-input-container select-input-container"
1408
- style=${ee.styleMap({width:ue()})}
1408
+ style=${J.styleMap({width:ue()})}
1409
1409
  @click=${f}
1410
- ${_.ref(s)}
1410
+ ${N.ref(s)}
1411
1411
  >
1412
1412
  <input
1413
1413
  ${ce(de)}
1414
- .value=${Q()??""}
1414
+ .value=${j()??""}
1415
1415
  autocomplete="off"
1416
1416
  ?disabled=${!!d.disabled}
1417
1417
  readonly
1418
1418
  tabindex="-1"
1419
- class=${L("select-display-input",{"select-display-input--disabled":d.disabled})}
1419
+ class=${A("select-display-input",{"select-display-input--disabled":d.disabled})}
1420
1420
  />
1421
1421
  <button
1422
1422
  type="button"
@@ -1425,69 +1425,69 @@
1425
1425
  role="combobox"
1426
1426
  aria-haspopup="listbox"
1427
1427
  aria-expanded=${p?"true":"false"}
1428
- aria-label=${Me.ifDefined(ie["aria-label"]??d.label)}
1428
+ aria-label=${Ce.ifDefined(ie["aria-label"]??d.label)}
1429
1429
  ?disabled=${!!d.disabled}
1430
- ${_.ref(a)}
1430
+ ${N.ref(a)}
1431
1431
  >
1432
- ${p?so("14","var(--moz-color-accent)"):oo("14","var(--moz-color-text-subtle)",d.disabled)}
1432
+ ${p?ao("14","var(--moz-color-accent)"):ro("14","var(--moz-color-text-subtle)",d.disabled)}
1433
1433
  </button>
1434
1434
  </div>
1435
1435
  </div>
1436
1436
  ${ne()!==""?o.html`<span class="moz-input-invalid-message">${ne()}</span>`:o.nothing}
1437
1437
  </div>
1438
- `},renderPortal(){if(!p)return o.nothing;const d=e.props,T=y(),Z=z(),ie=!!d.columnHeaders&&d.columnHeaders.length>0;D.options.count!==Z.length&&D.setOptions({...D.options,count:Z.length}),D._willUpdate();const de=D.getTotalSize(),Se=xt(D.getVirtualItems(),Z.length,dt,c).map(b=>{if(b.index>=Z.length)return null;const I=Z[b.index];return I?{index:b.index,value:I,start:b.start}:null}).filter(b=>b!==null),ye=d.listWidth?typeof d.listWidth=="number"?`${d.listWidth}px`:d.listWidth:void 0;return o.html`<div
1439
- class=${L("table-list-box moz-table-select-list",{"no-label":!d.label},d.class)}
1440
- style=${ee.styleMap({width:ye})}
1441
- @keydown=${Ne}
1442
- ${_.ref(n)}
1438
+ `},renderPortal(){if(!p)return o.nothing;const d=e.props,L=y(),Z=D(),ie=!!d.columnHeaders&&d.columnHeaders.length>0;P.options.count!==Z.length&&P.setOptions({...P.options,count:Z.length}),P._willUpdate();const de=P.getTotalSize(),ke=At(P.getVirtualItems(),Z.length,dt,c).map(C=>{if(C.index>=Z.length)return null;const q=Z[C.index];return q?{index:C.index,value:q,start:C.start}:null}).filter(C=>C!==null),$e=d.listWidth?typeof d.listWidth=="number"?`${d.listWidth}px`:d.listWidth:void 0;return o.html`<div
1439
+ class=${A("table-list-box moz-table-select-list",{"no-label":!d.label},d.class)}
1440
+ style=${J.styleMap({width:$e})}
1441
+ @keydown=${_e}
1442
+ ${N.ref(n)}
1443
1443
  >
1444
1444
  ${d.useFilter?o.html`<div class="filter-input">
1445
- <div class="search-icon">${lo("12","var(--moz-color-text-subtle)")}</div>
1445
+ <div class="search-icon">${co("12","var(--moz-color-text-subtle)")}</div>
1446
1446
  <input
1447
- ${_.ref(m)}
1448
- @mousedown=${b=>b.stopPropagation()}
1447
+ ${N.ref(m)}
1448
+ @mousedown=${C=>C.stopPropagation()}
1449
1449
  placeholder=${d.searchPlaceholder??e.locale.TableSelect.searchPlaceholder}
1450
- @input=${Oe}
1450
+ @input=${Be}
1451
1451
  class="filter-input__field"
1452
1452
  />
1453
1453
  </div>`:o.nothing}
1454
1454
  ${ie?o.html`<div class="table-header">
1455
- ${T.map((b,I)=>o.html`<div
1455
+ ${L.map((C,q)=>o.html`<div
1456
1456
  class="table-header-cell"
1457
- style=${ee.styleMap({width:U(I),minWidth:U(I),maxWidth:U(I)})}
1457
+ style=${J.styleMap({width:W(q),minWidth:W(q),maxWidth:W(q)})}
1458
1458
  >
1459
- ${(d.columnHeaders??[])[I]??""}
1459
+ ${(d.columnHeaders??[])[q]??""}
1460
1460
  </div>`)}
1461
1461
  </div>`:o.nothing}
1462
1462
  <div
1463
- class=${L("list-box-container",{"list-box-container--with-filter":d.useFilter,"list-box-container--with-header":ie,"list-box-container--with-filter-header":d.useFilter&&ie})}
1464
- ${_.ref(E)}
1463
+ class=${A("list-box-container",{"list-box-container--with-filter":d.useFilter,"list-box-container--with-header":ie,"list-box-container--with-filter-header":d.useFilter&&ie})}
1464
+ ${N.ref($)}
1465
1465
  >
1466
- <div class="inner-container" style=${ee.styleMap({height:`${de}px`})} ${_.ref(i)}>
1467
- ${Se.map(({index:b,value:I,start:Ce})=>{const ke=V(I);return o.html`<div
1468
- data-index=${b}
1469
- ${_.ref(Ee=>{Ee&&D.measureElement(Ee)})}
1470
- style=${ee.styleMap({transform:`translateY(${Ce}px)`})}
1471
- class=${L("virtual-row table-row",{"row-selected":ke,"row-focused":b===v})}
1472
- @click=${()=>q(I)}
1473
- @mouseenter=${()=>{v=b,e.requestUpdate()}}
1466
+ <div class="inner-container" style=${J.styleMap({height:`${de}px`})} ${N.ref(i)}>
1467
+ ${ke.map(({index:C,value:q,start:ye})=>{const Ee=x(q);return o.html`<div
1468
+ data-index=${C}
1469
+ ${N.ref(Pe=>{Pe&&P.measureElement(Pe)})}
1470
+ style=${J.styleMap({transform:`translateY(${ye}px)`})}
1471
+ class=${A("virtual-row table-row",{"row-selected":Ee,"row-focused":C===v})}
1472
+ @click=${()=>R(q)}
1473
+ @mouseenter=${()=>{v=C,e.requestUpdate()}}
1474
1474
  tabindex="0"
1475
1475
  >
1476
- ${T.map((Ee,xe)=>o.html`<div
1476
+ ${L.map((Pe,Le)=>o.html`<div
1477
1477
  class="table-cell"
1478
- style=${ee.styleMap({width:U(xe),minWidth:U(xe),maxWidth:U(xe)})}
1479
- title=${String(I[Ee]??"")}
1478
+ style=${J.styleMap({width:W(Le),minWidth:W(Le),maxWidth:W(Le)})}
1479
+ title=${String(q[Pe]??"")}
1480
1480
  >
1481
- ${W(String(I[Ee]??"")).map(De=>o.html`<span class=${L({highlight:De.highlight})}>${De.part}</span>`)}
1481
+ ${K(String(q[Pe]??"")).map(Ve=>o.html`<span class=${A({highlight:Ve.highlight})}>${Ve.part}</span>`)}
1482
1482
  </div>`)}
1483
- ${ke?to("12","var(--moz-color-accent)",!1,"icon-check"):o.nothing}
1483
+ ${Ee?io("12","var(--moz-color-accent)",!1,"icon-check"):o.nothing}
1484
1484
  </div>`})}
1485
1485
  </div>
1486
1486
  ${!Z||Z.length<=0?o.html`<div class="empty-row table-row">
1487
1487
  ${e.slots.has("empty")?e.slot("empty"):d.emptyText??e.locale.TableSelect.emptyText}
1488
1488
  </div>`:o.nothing}
1489
1489
  </div>
1490
- </div>`}}}}),Wn={name:"MozTableSelect",core:as,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 Kn(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">
1490
+ </div>`}}}}),ni={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 ii(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">
1491
1491
  <path
1492
1492
  d="M2.49902 4.27679L6.04436 7.73581L9.501 4.27679"
1493
1493
  stroke=${e}
@@ -1495,7 +1495,7 @@
1495
1495
  stroke-linecap="round"
1496
1496
  stroke-linejoin="round"
1497
1497
  ></path>
1498
- </svg>`}function Gn(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">
1498
+ </svg>`}function ri(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">
1499
1499
  <path
1500
1500
  d="M9.50095 7.73636L5.95563 4.27734L2.49902 7.73636"
1501
1501
  stroke=${e}
@@ -1503,13 +1503,13 @@
1503
1503
  stroke-linecap="round"
1504
1504
  stroke-linejoin="round"
1505
1505
  ></path>
1506
- </svg>`}function Yn(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">
1506
+ </svg>`}function ai(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">
1507
1507
  <path d="M1.71436 7.07145L3.00007 6.00002L1.71436 4.92859" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
1508
1508
  <path d="M5.14307 4.71423H10.2859" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1509
1509
  <path d="M1.71436 2.14282L10.2858 2.14282" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1510
1510
  <path d="M5.14307 7.28577H10.2859" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1511
1511
  <path d="M1.71436 9.85718L10.2858 9.85718" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1512
- </svg>`}function Zn(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">
1512
+ </svg>`}function ci(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">
1513
1513
  <path d="M0.856934 4.92852L2.14265 4.07138L0.856934 3.21423" fill=${e}></path>
1514
1514
  <path d="M0.856934 4.92852L2.14265 4.07138L0.856934 3.21423V4.92852Z" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
1515
1515
  <path d="M0.856934 8.7857L2.14265 7.92855L0.856934 7.07141" fill=${e}></path>
@@ -1517,49 +1517,49 @@
1517
1517
  <path d="M3.8501 2.35718H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1518
1518
  <path d="M3.8501 6H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1519
1519
  <path d="M3.8501 9.64282H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
1520
- </svg>`}const Ht={keyProp:"code",displayProp:"name",categoryLv1ID:"categoryLv1ID",categoryLv1Label:"categoryLv1Label",categoryLv2ID:"categoryLv2ID",categoryLv2Label:"categoryLv2Label",description:"description"};function jn(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 wt(e,t){let s=e.get(t);return s||(s=[],e.set(t,s)),s}function Xn(e){const t=new Map([["depth0",[]],["depth1",[]],["depth2",[]]]),s=new Map,n=new Map;e.forEach(m=>{const c=m.categoryLv1ID;if(!s.get(c)){const l={code:c,name:m.categoryLv1Label??c};s.set(c,l),wt(t,"depth0").push(l)}if(!m.categoryLv2ID||m.categoryLv2ID.trim()==="")wt(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),wt(t,"depth1").push(h)}wt(t,"depth2").push({...m,parent:m.categoryLv2ID})}});function i(m,c,l,h){const r=`depth${c}`,p=`depth${c+1}`,u=l.get(p),v={...m,depth:c};if(c!==0&&(v.isHidden=!1),u&&u.length>0){const $=h[r],R=h[p],C=u.filter(D=>D[R]===(m.isSubCategory?m.code:m[$]));v.isExpanded=!0;const y=[v];return C.forEach(D=>{y.push(...i(D,c+1,l,h))}),y}return[v]}const a={depth0:"code",depth1:"parent",depth2:"parent"};return(t.get("depth0")??[]).flatMap(m=>i(m,0,t,a))}function Qn(e){return new Set(e.map(t=>t.code))}function Ke(e,t){return t===e}function St(e,t){return e.filter(s=>s.categoryLv1ID===t.code||s.categoryLv2ID===t.code)}function bt(e){return new Set(e.map(t=>t.code))}function Dt(e,t){return{childDepthList:St(e,t)}}function wo(e,t){for(const s of e)if(!t.has(s))return!1;return!0}function Mt(e,t,s){t===0&&e.categoryLv1Set.delete(s),t===1&&e.categoryLv2Set.delete(s)}function pt(e,t,s){t===0&&e.categoryLv1Set.add(s),t===1&&e.categoryLv2Set.add(s)}function Jn(e,t,s){t.length&&e.categoryLv1Set.add(t),s.length&&e.categoryLv2Set.add(s)}function Ct(e){e.categoryLv1Set.clear(),e.categoryLv2Set.clear()}function ds(e,t,s,n){if(pt(e,s.depth,s.code),s.parent){const i=t.find(a=>a.code===s.parent);i&&ds(e,t,i)}}function cs(e,t,s,n){if(pt(e,s.depth,s.code),Ke(n,s.depth))return;t.filter(a=>a.parent===s.code).forEach(a=>{Ke(n,a.depth)||cs(e,t,a,n)})}function bo(e,t,s,n){ds(e,t,s),cs(e,t,s,n)}function us(e,t,s,n){if(Mt(e,s.depth,s.code),s.parent){const i=t.find(a=>a.code===s.parent);i&&us(e,t,i)}}function ps(e,t,s,n){if(Mt(e,s.depth,s.code),Ke(n,s.depth))return;t.filter(a=>a.parent===s.code).forEach(a=>{Ke(n,a.depth)||ps(e,t,a,n)})}function Co(e,t,s,n){us(e,t,s),ps(e,t,s,n)}const ei=new Set(["modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","useFilter","useSelectAll","class","style"]),hs=we({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:Ht,modelValue:[]},setup(e){const t=_.createRef(),s=_.createRef(),n=_.createRef(),i=_.createRef(),a=_.createRef();let m=null;const c=(e.props.treeLevels??1)-1,l=c,h=()=>!!e.props.useMultiSelect,r=()=>e.props.disabledProp||"disabled",p=()=>e.props.treeProps??Ht;let u=e.props.modelValue??(h()?[]:"");const v=()=>e.controlled("modelValue")?e.props.modelValue??[]:u,$=()=>{const w=v();return Array.isArray(w)?w:w?[w]:[]},R=w=>{e.controlled("modelValue")||(u=w),e.emit("update:modelValue",w),e.requestUpdate()};let C=!1,y="",D=!1,E=!1,V=!1,G={},Y=[];const Q={change:"",blur:"",save:""},le=new Set,ue=new Set,U={categoryLv1Set:le,categoryLv2Set:ue},z=(()=>{try{const w=getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height");return w?+w.trim().replace("px",""):24}catch{return 24}})();let W=z;const J=()=>e.slots.has("list-item");let ne=[],X=[],B=e.props.itemsSource;const se=()=>{ne=jn(e.props.itemsSource??[],p()),X=Xn(ne)};se();const K=()=>{const w=new Map;return ne.forEach(M=>w.set(M.code,M)),w},k=w=>w.name??"",S=w=>new Set($()).has(w.code),x=w=>Y.some(M=>it(M.item,w)),P=()=>new Set($()),A=()=>{let w=[];if(!y)w=X;else{const M=[],H=new Set,ae=re=>`depth${re.depth}_${re.code}`;for(const re of X)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(y.toLowerCase())>-1){for(const fe of M){const ze=ae(fe);H.has(ze)||(w.push(fe),H.add(ze))}const he=ae(re);H.has(he)||(w.push(re),H.add(he))}}if(V){const M=new Set,H=K(),ae=P();w.filter(he=>{if(be(he,ae))return!0;if(h()&&!Ke(c,he.depth)){const fe=St(X,he);if(fe.length>0&&fe.some(ze=>ae.has(ze.code)))return!0}return!1}).forEach(he=>{let fe=he;for(;fe&&(M.add(fe.code),!!fe.parent);)fe=H.get(fe.parent)}),w=w.filter(he=>M.has(he.code))}return w},f=()=>A().filter(w=>!(w.categoryLv1ID||w.categoryLv2ID)),q=()=>{const w=f();return A().filter(M=>!w.includes(M))},N=()=>new Set(q().map(w=>w.code)),j=()=>Qn(q()),be=(w,M)=>h()?Ke(l,w.depth)?M.has(w.code):le.has(w.code)||ue.has(w.code):v()===w.code,Ve=w=>{if(Ke(c,w.depth))return!0;const M=St(A(),w);return M.length===0?!0:wo(bt(M),P())},Ne=()=>{const w=$().length,M=f().length;if(w<M||w===0||M===0)return!1;for(const H of j())if(!P().has(H))return!1;return!0},Oe=()=>{const w=j(),M=P();return!w.size||!M.size||M.size<w.size?!1:Array.from(w).every(H=>M.has(H))},d=()=>h()?!!e.props.useSelectAll:!1,T=()=>{const w=v(),M=K();if(typeof w=="string")return M.has(w)?M.get(w).name:w;const H=Array.isArray(w)?w:[],ae=H.filter(re=>M.has(re)).map(re=>M.get(re).name);return H.length?h()&&ae.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${ae.length.toLocaleString()}`):ae.join(", ")||"":""},Z=()=>Q.save||Q.blur||Q.change,ie=()=>{const w=[];return e.props.required&&w.push({message:e.locale.TreeSelect.required.replace("{label}",e.props.label||""),type:"save",validator:M=>!!M.length}),[...w,...e.props.rules??[]]},de=async(w,M)=>{const H=ie();if(H.length<=0)return;if(e.props.disabled)return!0;Q[M]="",e.requestUpdate();const ae=H.filter(re=>re.type===M);for(const re of ae)if(!await re.validator(w))return Q[M]=re.message,e.requestUpdate(),!1;return!0},Se=async(w="save")=>Z()!==""?!1:await de($(),w)??!0,ye={validate:Se,initValidator:()=>{Q.change="",Q.blur="",Q.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(ye),e.onCleanup(()=>{We==null||We.release(),We=null}),e.onCleanup(()=>{var w;return(w=e.validator)==null?void 0:w.removeValidator(ye)}));const b=(w,M)=>w.filter(H=>S(H)!==M).map(H=>H.code),I=w=>{const M=Array.from(new Set(w));it($(),M)||(R(M),e.emit("change",M,M.filter(Boolean)),de(M,"change"),Ce(M))},Ce=w=>{w.length===ne.length?f().forEach(M=>pt(U,M.depth,M.code)):w.forEach(M=>{const H=q().find(ae=>ae.code===M);H&&Jn(U,H.categoryLv1ID??"",H.categoryLv2ID??"")})},ke=(w,M,H)=>{if(H.shiftKey&&Y.length>0){const ae=Y[0],re=Math.min(ae.index,M),he=Math.max(ae.index,M);Y=A().slice(re,he+1).map((fe,ze)=>({item:fe,index:re+ze}))}else H.ctrlKey?Y.push({item:w,index:M}):Y=[{item:w,index:M}]},Ee=(w,M)=>{if(!Ke(c,w.depth)){const{childDepthList:H}=Dt(A(),w);if(M){const ae=bt(H);R($().filter(re=>!ae.has(re))),Co(U,A(),w,l)}else{const ae=H.map(re=>re.code);R([...$(),...ae])}}},xe=(w,M)=>{const ae=Y.map(fe=>fe.item).filter(fe=>fe.depth===l),re=b(ae,w);let he=[];if(M.depth!==c){const{childDepthList:fe}=Dt(A(),M),ze=bt(fe);he=$().filter(He=>!ze.has(He))}else he=$();w?M.depth===c?he=[...he,...re]:bo(U,A(),M,l):(Ct(U),he=he.filter(fe=>!re.some(ze=>fe===ze))),I(he)},De=(w,M,H,ae)=>{const re=Y.some(he=>he.item.code===w.code);(Y.length<=1||!re)&&ke(w,M,{shiftKey:!1,ctrlKey:!1}),xe(!ae,w),Ee(w,ae),e.requestUpdate()},Ue=(w,M,H,ae)=>{w[r()]!==!0&&(!H.ctrlKey&&!H.shiftKey&&Y.length<=1&&De(w,M,H,ae),ke(w,M,H),e.requestUpdate())},Qe=(w,M,H)=>{if(w[r()]===!0)return;let ae=[],re=!1;const he=w.code;if(Ke(c,w.depth))re=$().length===1&&$()[0]===he,re||(ae=[he]),Ct(U);else{const{childDepthList:fe}=Dt(A(),w),ze=bt(fe);re=wo(ze,P())&&ze.size===P().size,re?Co(U,A(),w,l):(ae=[],Ct(U),bo(U,A(),w,l))}I(ae),Ee(w,re),ke(w,M,H),e.requestUpdate()},ot=w=>{R(w),et(!1)},Je=(w,M)=>{A().filter(ae=>ae.parent===w).forEach(ae=>{if(ae.isHidden=M,ae.depth===l)return;const he=!M&&!ae.isExpanded?!0:M;Je(ae.code,he)})},Ze=(w,M)=>{M.stopPropagation(),w.isExpanded=!w.isExpanded,Je(w.code,!w.isExpanded),queueMicrotask(()=>Re.measure()),e.requestUpdate()},g=w=>{X.forEach(M=>{M.isExpanded=w,M.depth>0?M.isHidden=!w:M.isHidden=!1}),queueMicrotask(()=>Re.measure()),e.requestUpdate()},O=w=>{w.stopPropagation(),N().size===P().size&&[...N()].every(H=>P().has(H))?(f().forEach(H=>Mt(U,H.depth,H.code)),I([])):(Ct(U),f().forEach(H=>pt(U,H.depth,H.code)),I([...N()]))},F=w=>{if(w.stopPropagation(),Oe()){const M=j();I($().filter(H=>!M.has(H))),f().forEach(H=>Mt(U,H.depth,H.code))}else{const M=new Set([...$(),...N()]);I(Array.from(M)),f().forEach(H=>pt(U,H.depth,H.code))}},te=w=>{D=w.target.scrollTop>0,e.requestUpdate()},oe=()=>{const w=s.value;if(!w)return;const M=w.getBoundingClientRect();let H=`${M.width}px`;e.props.listBoxWidth&&(H=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),G={width:String(H),left:`${M.left}px`,top:`${M.top+(E?0:M.height)}px`},e.requestUpdate()},pe=(w,M,H=10)=>{const ae=window.innerHeight||document.documentElement.clientHeight,re=window.innerWidth||document.documentElement.clientWidth,he=w.getBoundingClientRect(),fe=M.getBoundingClientRect(),ze=he.bottom+fe.height+H>ae;if(!ze)return!1;const He=he.top-fe.height-H<0,qe=he.right+fe.width+H>re,_e=he.left-fe.width-H<0;return ze&&!He||qe&&!_e},ge=w=>{w.target!==m&&et(!1)},$e=w=>{var M,H;!((M=t.value)!=null&&M.contains(w.target))&&!((H=n.value)!=null&&H.contains(w.target))&&(et(!1),document.removeEventListener("click",$e,{capture:!0}))},Le=w=>{var H;`${w.ctrlKey?"ctrl+":""}${w.altKey?"alt+":""}${w.key.toLowerCase()}`==="escape"&&(et(!1),(H=i.value)==null||H.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",ge,{capture:!0}),document.removeEventListener("click",$e,{capture:!0}),window.removeEventListener("keydown",Le)});let We=null;const et=w=>{C!==w&&(C=w,e.requestUpdate(),w?(We=ft(),document.body.addEventListener("scroll",ge,{capture:!0}),document.addEventListener("click",$e,{capture:!0}),Q.save="",window.addEventListener("keydown",Le),oe(),queueMicrotask(()=>{var M;s.value&&m&&(E=pe(s.value,m)),oe(),a.value?a.value.focus():(M=i.value)==null||M.focus()})):(We==null||We.release(),We=null,document.body.removeEventListener("scroll",ge,{capture:!0}),document.removeEventListener("click",$e,{capture:!0}),de($(),"blur"),window.removeEventListener("keydown",Le),y="",e.emit("close")))},rt=()=>{e.props.disabled||et(!C)};let st;const zt=w=>{const M=w.target.value;st&&clearTimeout(st),st=setTimeout(()=>{y=M,e.requestUpdate(),queueMicrotask(()=>{Re.setOptions({...Re.options,count:A().length}),Re.measure()})},300)},Ge=w=>{V=w,e.requestUpdate(),queueMicrotask(()=>{Re.setOptions({...Re.options,count:A().length}),Re.measure()})},Re=new Fe.Virtualizer({count:0,getScrollElement:()=>m,estimateSize:w=>{const M=A()[w];return M!=null&&M.isHidden?0:J()&&M&&Ke(c,M.depth)?W:z},measureElement:w=>{const M=w.getBoundingClientRect().height;return M>0?M:Re.options.estimateSize(Number(w.dataset.index))},overscan:3,observeElementRect:Fe.observeElementRect,observeElementOffset:Fe.observeElementOffset,scrollToFn:Fe.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(Re._didMount());const Rs=w=>{m=w??null,w&&(Re._willUpdate(),e.requestUpdate())},qs=(w,M)=>{if(!w||M!==c)return;const H=w.getBoundingClientRect().height;H>0&&(W=H)},Is=w=>w.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),ro=(w,M)=>{if(!y||!Ke(c,M))return[{part:w,highlight:!1}];const H=new RegExp(`(${Is(y)})`,"gi");return w.split(H).map(ae=>({part:ae,highlight:y.toLowerCase()===ae.toLowerCase()}))};let ao=v();const Fs=w=>{const{index:M,item:H,start:ae,isSelected:re,isIndeterminate:he,isDisabled:fe,isFocused:ze}=w;if(H.isHidden)return o.nothing;const He=e.props,qe=H.depth,_e=Ke(c,qe),je=h(),nt=Ie=>{qe!==c?Ze(H,Ie):ot(H.code)},vt=Ie=>{je?Ue(H,M,Ie,re&&Ve(H)):nt(Ie)},At=()=>{De(H,M,{},re&&Ve(H))},Vt=_e?"하나만":"그룹만";return o.html`<div
1520
+ </svg>`}const Ut={keyProp:"code",displayProp:"name",categoryLv1ID:"categoryLv1ID",categoryLv1Label:"categoryLv1Label",categoryLv2ID:"categoryLv2ID",categoryLv2Label:"categoryLv2Label",description:"description"};function di(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 ui(e){const t=new Map([["depth0",[]],["depth1",[]],["depth2",[]]]),s=new Map,n=new Map;e.forEach(m=>{const c=m.categoryLv1ID;if(!s.get(c)){const l={code:c,name:m.categoryLv1Label??c};s.set(c,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,c,l,h){const r=`depth${c}`,p=`depth${c+1}`,u=l.get(p),v={...m,depth:c};if(c!==0&&(v.isHidden=!1),u&&u.length>0){const S=h[r],I=h[p],w=u.filter(P=>P[I]===(m.isSubCategory?m.code:m[S]));v.isExpanded=!0;const y=[v];return w.forEach(P=>{y.push(...i(P,c+1,l,h))}),y}return[v]}const a={depth0:"code",depth1:"parent",depth2:"parent"};return(t.get("depth0")??[]).flatMap(m=>i(m,0,t,a))}function pi(e){return new Set(e.map(t=>t.code))}function Ke(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 zt(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 hi(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),Ke(n,s.depth))return;t.filter(a=>a.parent===s.code).forEach(a=>{Ke(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(zt(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(zt(e,s.depth,s.code),Ke(n,s.depth))return;t.filter(a=>a.parent===s.code).forEach(a=>{Ke(n,a.depth)||ws(e,t,a,n)})}function To(e,t,s,n){bs(e,t,s),ws(e,t,s,n)}const mi=new Set(["modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","useFilter","useSelectAll","class","style"]),Cs=ve({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 c=(e.props.treeLevels??1)-1,l=c,h=()=>!!e.props.useMultiSelect,r=()=>e.props.disabledProp||"disabled",p=()=>e.props.treeProps??Ut;let u=e.props.modelValue??(h()?[]:"");const v=()=>e.controlled("modelValue")?e.props.modelValue??[]:u,S=()=>{const b=v();return Array.isArray(b)?b:b?[b]:[]},I=b=>{e.controlled("modelValue")||(u=b),e.emit("update:modelValue",b),e.requestUpdate()};let w=!1,y="",P=!1,$=!1,x=!1,_={},Y=[];const j={change:"",blur:"",save:""},le=new Set,ue=new Set,W={categoryLv1Set:le,categoryLv2Set:ue},D=(()=>{try{const b=getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height");return b?+b.trim().replace("px",""):24}catch{return 24}})();let K=D;const ee=()=>e.slots.has("list-item");let ne=[],Q=[],F=e.props.itemsSource;const se=()=>{ne=di(e.props.itemsSource??[],p()),Q=ui(ne)};se();const G=()=>{const b=new Map;return ne.forEach(M=>b.set(M.code,M)),b},E=b=>b.name??"",k=b=>new Set(S()).has(b.code),z=b=>Y.some(M=>rt(M.item,b)),T=()=>new Set(S()),V=()=>{let b=[];if(!y)b=Q;else{const M=[],H=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(E(re).toLowerCase().indexOf(y.toLowerCase())>-1){for(const ge of M){const xe=ae(ge);H.has(xe)||(b.push(ge),H.add(xe))}const he=ae(re);H.has(he)||(b.push(re),H.add(he))}}if(x){const M=new Set,H=G(),ae=T();b.filter(he=>{if(we(he,ae))return!0;if(h()&&!Ke(c,he.depth)){const ge=Et(Q,he);if(ge.length>0&&ge.some(xe=>ae.has(xe.code)))return!0}return!1}).forEach(he=>{let ge=he;for(;ge&&(M.add(ge.code),!!ge.parent);)ge=H.get(ge.parent)}),b=b.filter(he=>M.has(he.code))}return b},f=()=>V().filter(b=>!(b.categoryLv1ID||b.categoryLv2ID)),R=()=>{const b=f();return V().filter(M=>!b.includes(M))},U=()=>new Set(R().map(b=>b.code)),X=()=>pi(R()),we=(b,M)=>h()?Ke(l,b.depth)?M.has(b.code):le.has(b.code)||ue.has(b.code):v()===b.code,De=b=>{if(Ke(c,b.depth))return!0;const M=Et(V(),b);return M.length===0?!0:Eo(yt(M),T())},_e=()=>{const b=S().length,M=f().length;if(b<M||b===0||M===0)return!1;for(const H of X())if(!T().has(H))return!1;return!0},Be=()=>{const b=X(),M=T();return!b.size||!M.size||M.size<b.size?!1:Array.from(b).every(H=>M.has(H))},d=()=>h()?!!e.props.useSelectAll:!1,L=()=>{const b=v(),M=G();if(typeof b=="string")return M.has(b)?M.get(b).name:b;const H=Array.isArray(b)?b:[],ae=H.filter(re=>M.has(re)).map(re=>M.get(re).name);return H.length?h()&&ae.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${ae.length.toLocaleString()}`):ae.join(", ")||"":""},Z=()=>j.save||j.blur||j.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??[]]},de=async(b,M)=>{const H=ie();if(H.length<=0)return;if(e.props.disabled)return!0;j[M]="",e.requestUpdate();const ae=H.filter(re=>re.type===M);for(const re of ae)if(!await re.validator(b))return j[M]=re.message,e.requestUpdate(),!1;return!0},ke=async(b="save")=>Z()!==""?!1:await de(S(),b)??!0,$e={validate:ke,initValidator:()=>{j.change="",j.blur="",j.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator($e),e.onCleanup(()=>{We==null||We.release(),We=null}),e.onCleanup(()=>{var b;return(b=e.validator)==null?void 0:b.removeValidator($e)}));const C=(b,M)=>b.filter(H=>k(H)!==M).map(H=>H.code),q=b=>{const M=Array.from(new Set(b));rt(S(),M)||(I(M),e.emit("change",M,M.filter(Boolean)),de(M,"change"),ye(M))},ye=b=>{b.length===ne.length?f().forEach(M=>mt(W,M.depth,M.code)):b.forEach(M=>{const H=R().find(ae=>ae.code===M);H&&hi(W,H.categoryLv1ID??"",H.categoryLv2ID??"")})},Ee=(b,M,H)=>{if(H.shiftKey&&Y.length>0){const ae=Y[0],re=Math.min(ae.index,M),he=Math.max(ae.index,M);Y=V().slice(re,he+1).map((ge,xe)=>({item:ge,index:re+xe}))}else H.ctrlKey?Y.push({item:b,index:M}):Y=[{item:b,index:M}]},Pe=(b,M)=>{if(!Ke(c,b.depth)){const{childDepthList:H}=qt(V(),b);if(M){const ae=yt(H);I(S().filter(re=>!ae.has(re))),To(W,V(),b,l)}else{const ae=H.map(re=>re.code);I([...S(),...ae])}}},Le=(b,M)=>{const ae=Y.map(ge=>ge.item).filter(ge=>ge.depth===l),re=C(ae,b);let he=[];if(M.depth!==c){const{childDepthList:ge}=qt(V(),M),xe=yt(ge);he=S().filter(He=>!xe.has(He))}else he=S();b?M.depth===c?he=[...he,...re]:Po(W,V(),M,l):($t(W),he=he.filter(ge=>!re.some(xe=>ge===xe))),q(he)},Ve=(b,M,H,ae)=>{const re=Y.some(he=>he.item.code===b.code);(Y.length<=1||!re)&&Ee(b,M,{shiftKey:!1,ctrlKey:!1}),Le(!ae,b),Pe(b,ae),e.requestUpdate()},Ue=(b,M,H,ae)=>{b[r()]!==!0&&(!H.ctrlKey&&!H.shiftKey&&Y.length<=1&&Ve(b,M,H,ae),Ee(b,M,H),e.requestUpdate())},Qe=(b,M,H)=>{if(b[r()]===!0)return;let ae=[],re=!1;const he=b.code;if(Ke(c,b.depth))re=S().length===1&&S()[0]===he,re||(ae=[he]),$t(W);else{const{childDepthList:ge}=qt(V(),b),xe=yt(ge);re=Eo(xe,T())&&xe.size===T().size,re?To(W,V(),b,l):(ae=[],$t(W),Po(W,V(),b,l))}q(ae),Pe(b,re),Ee(b,M,H),e.requestUpdate()},ot=b=>{I(b),et(!1)},Je=(b,M)=>{V().filter(ae=>ae.parent===b).forEach(ae=>{if(ae.isHidden=M,ae.depth===l)return;const he=!M&&!ae.isExpanded?!0:M;Je(ae.code,he)})},Ze=(b,M)=>{M.stopPropagation(),b.isExpanded=!b.isExpanded,Je(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(),U().size===T().size&&[...U()].every(H=>T().has(H))?(f().forEach(H=>zt(W,H.depth,H.code)),q([])):($t(W),f().forEach(H=>mt(W,H.depth,H.code)),q([...U()]))},O=b=>{if(b.stopPropagation(),Be()){const M=X();q(S().filter(H=>!M.has(H))),f().forEach(H=>zt(W,H.depth,H.code))}else{const M=new Set([...S(),...U()]);q(Array.from(M)),f().forEach(H=>mt(W,H.depth,H.code))}},te=b=>{P=b.target.scrollTop>0,e.requestUpdate()},oe=()=>{const b=s.value;if(!b)return;const M=b.getBoundingClientRect();let H=`${M.width}px`;e.props.listBoxWidth&&(H=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),_={width:String(H),left:`${M.left}px`,top:`${M.top+($?0:M.height)}px`},e.requestUpdate()},pe=(b,M,H=10)=>{const ae=window.innerHeight||document.documentElement.clientHeight,re=window.innerWidth||document.documentElement.clientWidth,he=b.getBoundingClientRect(),ge=M.getBoundingClientRect(),xe=he.bottom+ge.height+H>ae;if(!xe)return!1;const He=he.top-ge.height-H<0,Re=he.right+ge.width+H>re,Ne=he.left-ge.width-H<0;return xe&&!He||Re&&!Ne},be=b=>{b.target!==m&&et(!1)},Se=b=>{var M,H;!((M=t.value)!=null&&M.contains(b.target))&&!((H=n.value)!=null&&H.contains(b.target))&&(et(!1),document.removeEventListener("click",Se,{capture:!0}))},ze=b=>{var H;`${b.ctrlKey?"ctrl+":""}${b.altKey?"alt+":""}${b.key.toLowerCase()}`==="escape"&&(et(!1),(H=i.value)==null||H.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",be,{capture:!0}),document.removeEventListener("click",Se,{capture:!0}),window.removeEventListener("keydown",ze)});let We=null;const et=b=>{w!==b&&(w=b,e.requestUpdate(),b?(We=vt(),document.body.addEventListener("scroll",be,{capture:!0}),document.addEventListener("click",Se,{capture:!0}),j.save="",window.addEventListener("keydown",ze),oe(),queueMicrotask(()=>{var M;s.value&&m&&($=pe(s.value,m)),oe(),a.value?a.value.focus():(M=i.value)==null||M.focus()})):(We==null||We.release(),We=null,document.body.removeEventListener("scroll",be,{capture:!0}),document.removeEventListener("click",Se,{capture:!0}),de(S(),"blur"),window.removeEventListener("keydown",ze),y="",e.emit("close")))},at=()=>{e.props.disabled||et(!w)};let st;const Vt=b=>{const M=b.target.value;st&&clearTimeout(st),st=setTimeout(()=>{y=M,e.requestUpdate(),queueMicrotask(()=>{Ie.setOptions({...Ie.options,count:V().length}),Ie.measure()})},300)},Ge=b=>{x=b,e.requestUpdate(),queueMicrotask(()=>{Ie.setOptions({...Ie.options,count:V().length}),Ie.measure()})},Ie=new Oe.Virtualizer({count:0,getScrollElement:()=>m,estimateSize:b=>{const M=V()[b];return M!=null&&M.isHidden?0:ee()&&M&&Ke(c,M.depth)?K:D},measureElement:b=>{const M=b.getBoundingClientRect().height;return M>0?M:Ie.options.estimateSize(Number(b.dataset.index))},overscan:3,observeElementRect:Oe.observeElementRect,observeElementOffset:Oe.observeElementOffset,scrollToFn:Oe.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!==c)return;const H=b.getBoundingClientRect().height;H>0&&(K=H)},Xs=b=>b.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),fo=(b,M)=>{if(!y||!Ke(c,M))return[{part:b,highlight:!1}];const H=new RegExp(`(${Xs(y)})`,"gi");return b.split(H).map(ae=>({part:ae,highlight:y.toLowerCase()===ae.toLowerCase()}))};let go=v();const Qs=b=>{const{index:M,item:H,start:ae,isSelected:re,isIndeterminate:he,isDisabled:ge,isFocused:xe}=b;if(H.isHidden)return o.nothing;const He=e.props,Re=H.depth,Ne=Ke(c,Re),je=h(),it=qe=>{Re!==c?Ze(H,qe):ot(H.code)},wt=qe=>{je?Ue(H,M,qe,re&&De(H)):it(qe)},It=()=>{Ve(H,M,{},re&&De(H))},Rt=Ne?"하나만":"그룹만";return o.html`<div
1521
1521
  data-index=${M}
1522
- ${_.ref(Ie=>{Ie&&(Re.measureElement(Ie),qs(Ie,qe))})}
1523
- style=${ee.styleMap({transform:`translateY(${ae}px)`})}
1524
- class=${L("list-box-item virtual-row tree-item",{"list-selected":re,"moz-multi-focus":ze,"is-selected":re,"single-select-item":!je&&_e,"multi-select-item":je})}
1522
+ ${N.ref(qe=>{qe&&(Ie.measureElement(qe),js(qe,Re))})}
1523
+ style=${J.styleMap({transform:`translateY(${ae}px)`})}
1524
+ class=${A("list-box-item virtual-row tree-item",{"list-selected":re,"moz-multi-focus":xe,"is-selected":re,"single-select-item":!je&&Ne,"multi-select-item":je})}
1525
1525
  >
1526
1526
  <div
1527
- class=${L("depth-indicator",{"depth-indicator--parent":!_e,"depth-indicator--last-depth":_e,"depth-indicator--custom-item":J()})}
1528
- style=${ee.styleMap({"--depth":String(qe),"--last-depth-item-height":String(W)})}
1529
- @click=${Ie=>{je||nt(Ie)}}
1527
+ class=${A("depth-indicator",{"depth-indicator--parent":!Ne,"depth-indicator--last-depth":Ne,"depth-indicator--custom-item":ee()})}
1528
+ style=${J.styleMap({"--depth":String(Re),"--last-depth-item-height":String(K)})}
1529
+ @click=${qe=>{je||it(qe)}}
1530
1530
  ></div>
1531
- <div class="item-content" @click=${vt}>
1532
- ${_e?o.nothing:o.html`<button
1531
+ <div class="item-content" @click=${wt}>
1532
+ ${Ne?o.nothing:o.html`<button
1533
1533
  type="button"
1534
1534
  class="icon-container"
1535
1535
  aria-expanded=${H.isExpanded?"true":"false"}
1536
1536
  aria-label=${H.isExpanded?e.locale.TreeSelect.collapse:e.locale.TreeSelect.expand}
1537
- @click=${Ie=>Ze(H,Ie)}
1537
+ @click=${qe=>Ze(H,qe)}
1538
1538
  >
1539
- ${e.slots.has("icon")?e.slot("icon"):H.isExpanded?Gn("var(--moz-color-accent)"):Kn("var(--moz-color-text-subtle)")}
1539
+ ${e.slots.has("icon")?e.slot("icon"):H.isExpanded?ri("var(--moz-color-accent)"):ii("var(--moz-color-text-subtle)")}
1540
1540
  </button>`}
1541
- ${je?$t({checked:re,disabled:fe,indeterminate:he,onChange:At}):o.nothing}
1541
+ ${je?kt({checked:re,disabled:ge,indeterminate:he,onChange:It}):o.nothing}
1542
1542
  <div class="highlight-container">
1543
- ${J()&&_e?e.slot("list-item",{text:{text:k(H),depth:qe},item:H,highlightText:ro(k(H),qe)}):o.html`${ro(k(H),qe).map(Ie=>o.html`<span class=${L({highlight:Ie.highlight})}>${Ie.part}</span>`)}`}
1543
+ ${ee()&&Ne?e.slot("list-item",{text:{text:E(H),depth:Re},item:H,highlightText:fo(E(H),Re)}):o.html`${fo(E(H),Re).map(qe=>o.html`<span class=${A({highlight:qe.highlight})}>${qe.part}</span>`)}`}
1544
1544
  </div>
1545
- ${!je&&re&&_e?to("12","var(--moz-color-accent)",!1,"icon-check"):o.nothing}
1546
- ${je&&He.useSpecificSelect&&!fe?o.html`<button type="button" class="item-only item-only-btn" @click=${Ie=>Qe(H,M,Ie)}>
1547
- ${Vt}
1545
+ ${!je&&re&&Ne?io("12","var(--moz-color-accent)",!1,"icon-check"):o.nothing}
1546
+ ${je&&He.useSpecificSelect&&!ge?o.html`<button type="button" class="item-only item-only-btn" @click=${qe=>Qe(H,M,qe)}>
1547
+ ${Rt}
1548
1548
  </button>`:o.nothing}
1549
1549
  </div>
1550
- </div>`};return{api:{validate:Se},render(){const w=e.props;w.itemsSource!==B&&(B=w.itemsSource,se());const M=v();M!==ao&&(ao=M,typeof M!="string"&&Ce($()));const H=typeof w.width=="number"?`${Te(w.width)}rem`:w.width,ae=e.slots.has("icon")?e.slot("icon",{isOpen:C}):C?so("14","var(--moz-color-accent)"):oo("14","var(--moz-color-text-subtle)",w.disabled),re=ve(w,ei),{aria:he,dom:fe}=ht(re);return o.html`
1550
+ </div>`};return{api:{validate:ke},render(){const b=e.props;b.itemsSource!==F&&(F=b.itemsSource,se());const M=v();M!==go&&(go=M,typeof M!="string"&&ye(S()));const H=typeof b.width=="number"?`${Me(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=fe(b,mi),{aria:he,dom:ge}=ft(re);return o.html`
1551
1551
  <div
1552
- ${ce(fe)}
1553
- class=${L("moz-multi-select moz-tree-select",w.class,{"is-invalid":Z()!=="","is-open":C,disabled:!!w.disabled})}
1554
- style=${ee.styleMap({width:H,...me(w.style)})}
1555
- ${_.ref(t)}
1552
+ ${ce(ge)}
1553
+ class=${A("moz-multi-select moz-tree-select",b.class,{"is-invalid":Z()!=="","is-open":w,disabled:!!b.disabled})}
1554
+ style=${J.styleMap({width:H,...me(b.style)})}
1555
+ ${N.ref(t)}
1556
1556
  >
1557
1557
  <div class="input-wrapper">
1558
- ${w.label?Be({},o.html`${w.label}${w.required?o.html`<span class="require-mark">*</span>`:o.nothing}`):o.nothing}
1559
- <div class="moz-input-container" @click=${rt} ${_.ref(s)}>
1558
+ ${b.label?Fe({},o.html`${b.label}${b.required?o.html`<span class="require-mark">*</span>`:o.nothing}`):o.nothing}
1559
+ <div class="moz-input-container" @click=${at} ${N.ref(s)}>
1560
1560
  <input
1561
- .value=${T()}
1562
- placeholder=${Me.ifDefined(w.placeholder??void 0)}
1561
+ .value=${L()}
1562
+ placeholder=${Ce.ifDefined(b.placeholder??void 0)}
1563
1563
  autocomplete="off"
1564
1564
  readonly
1565
1565
  tabindex="-1"
@@ -1570,10 +1570,10 @@
1570
1570
  ${ce(he)}
1571
1571
  role="combobox"
1572
1572
  aria-haspopup="tree"
1573
- aria-expanded=${C?"true":"false"}
1574
- aria-label=${Me.ifDefined(he["aria-label"]??w.label)}
1575
- ?disabled=${!!w.disabled}
1576
- ${_.ref(i)}
1573
+ aria-expanded=${w?"true":"false"}
1574
+ aria-label=${Ce.ifDefined(he["aria-label"]??b.label)}
1575
+ ?disabled=${!!b.disabled}
1576
+ ${N.ref(i)}
1577
1577
  >
1578
1578
  ${ae}
1579
1579
  </button>
@@ -1581,33 +1581,33 @@
1581
1581
  </div>
1582
1582
  ${Z()!==""?o.html`<span class="moz-input-invalid-message">${Z()}</span>`:o.nothing}
1583
1583
  </div>
1584
- `},renderPortal(){if(!C)return o.nothing;const w=e.props,M=A();Re.options.count!==M.length&&Re.setOptions({...Re.options,count:M.length}),Re._willUpdate();const H=Re.getTotalSize(),ae=P(),re=xt(Re.getVirtualItems(),M.length,z,m).map(He=>{if(He.index>=M.length)return null;const qe=M[He.index];if(!qe)return null;let _e=be(qe,ae),je=!1;if(h()&&!Ke(c,qe.depth)){const nt=St(X,qe);if(nt.length>0){const vt=nt.reduce((At,Vt)=>At+(ae.has(Vt.code)?1:0),0);vt===0?_e=!1:vt<nt.length?(_e=!0,je=!0):_e=!0}}return{index:He.index,item:qe,start:He.start,isSelected:_e,isIndeterminate:je,isDisabled:qe[r()]===!0,isFocused:x(qe)}}).filter(He=>He!==null),he=y?e.locale.TreeSelect.selectFiltered:e.locale.TreeSelect.selectAll,fe=v(),ze=Array.isArray(fe)?fe.length:fe?1:0;return o.html`<div
1585
- class=${L("list-box moz-tree-select-list",{"no-label":!w.label,"show-top":E},w.class)}
1586
- style=${ee.styleMap(G)}
1587
- ${_.ref(n)}
1584
+ `},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 H=Ie.getTotalSize(),ae=T(),re=At(Ie.getVirtualItems(),M.length,D,m).map(He=>{if(He.index>=M.length)return null;const Re=M[He.index];if(!Re)return null;let Ne=we(Re,ae),je=!1;if(h()&&!Ke(c,Re.depth)){const it=Et(Q,Re);if(it.length>0){const wt=it.reduce((It,Rt)=>It+(ae.has(Rt.code)?1:0),0);wt===0?Ne=!1:wt<it.length?(Ne=!0,je=!0):Ne=!0}}return{index:He.index,item:Re,start:He.start,isSelected:Ne,isIndeterminate:je,isDisabled:Re[r()]===!0,isFocused:z(Re)}}).filter(He=>He!==null),he=y?e.locale.TreeSelect.selectFiltered:e.locale.TreeSelect.selectAll,ge=v(),xe=Array.isArray(ge)?ge.length:ge?1:0;return o.html`<div
1585
+ class=${A("list-box moz-tree-select-list",{"no-label":!b.label,"show-top":$},b.class)}
1586
+ style=${J.styleMap(_)}
1587
+ ${N.ref(n)}
1588
1588
  >
1589
1589
  <div class="filter-input-wrapper">
1590
- ${w.useFilter?o.html`<div class="filter-input">
1591
- <div class="search-icon">${lo("12","var(--moz-color-text-subtle)")}</div>
1592
- <input placeholder=${e.locale.TreeSelect.search} @input=${zt} ${_.ref(a)} />
1590
+ ${b.useFilter?o.html`<div class="filter-input">
1591
+ <div class="search-icon">${co("12","var(--moz-color-text-subtle)")}</div>
1592
+ <input placeholder=${e.locale.TreeSelect.search} @input=${Vt} ${N.ref(a)} />
1593
1593
  </div>`:o.nothing}
1594
1594
  <div class="tree-controls">
1595
- <span class="control-btn" @click=${()=>g(!0)}>${Yn("currentColor")}</span>
1596
- <span class="control-btn" @click=${()=>g(!1)}>${Zn("currentColor")}</span>
1595
+ <span class="control-btn" @click=${()=>g(!0)}>${ai("currentColor")}</span>
1596
+ <span class="control-btn" @click=${()=>g(!1)}>${ci("currentColor")}</span>
1597
1597
  </div>
1598
1598
  </div>
1599
1599
 
1600
- ${d()&&ne.length>0&&M.length>0?o.html`<div class=${L("list-box-item multi-select-item multi-select-all",{"is-scrolled":D})} @click=${F}>
1600
+ ${d()&&ne.length>0&&M.length>0?o.html`<div class=${A("list-box-item multi-select-item multi-select-all",{"is-scrolled":P})} @click=${O}>
1601
1601
  <div class="select-all-content">
1602
- ${$t({indeterminate:ze>0&&Ne()===!1,checked:Oe()})}
1602
+ ${kt({indeterminate:xe>0&&_e()===!1,checked:Be()})}
1603
1603
  <div><span title=${he}>${he}</span></div>
1604
1604
  </div>
1605
- ${y&&M.length>0?o.html`<button type="button" class="item-only" @click=${O}>${e.locale.TreeSelect.specificResults}</button>`:o.nothing}
1605
+ ${y&&M.length>0?o.html`<button type="button" class="item-only" @click=${B}>${e.locale.TreeSelect.specificResults}</button>`:o.nothing}
1606
1606
  </div>`:o.nothing}
1607
1607
 
1608
- <div class="list-box-container" @scroll=${te} ${_.ref(Rs)}>
1609
- <div class="inner-container" style=${ee.styleMap({height:`${H}px`})}>
1610
- ${re.map(He=>Fs(He))}
1608
+ <div class="list-box-container" @scroll=${te} ${N.ref(Zs)}>
1609
+ <div class="inner-container" style=${J.styleMap({height:`${H}px`})}>
1610
+ ${re.map(He=>Qs(He))}
1611
1611
  </div>
1612
1612
  ${M.length<=0?o.html`<div class="list-box-item loading not-hover">
1613
1613
  ${e.slots.has("empty")?e.slot("empty"):e.locale.TreeSelect.noData}
@@ -1616,50 +1616,50 @@
1616
1616
 
1617
1617
  ${h()?o.html`<div class="list-footer">
1618
1618
  <label class="footer-checkbox">
1619
- ${$t({checked:V,onChange:Ge,class:"moz-checkbox"})}
1619
+ ${kt({checked:x,onChange:Ge,class:"moz-checkbox"})}
1620
1620
  <span>${e.locale.TreeSelect.showSelectedOnly}</span>
1621
1621
  </label>
1622
1622
  </div>`:o.nothing}
1623
- </div>`}}}}),ti={name:"MozTreeSelect",core:hs,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},oi=new Set(["panes","direction","resizable","minSize","class","style"]),yo=(e,t)=>e===void 0?t:typeof e=="number"?`${e}px`:e,ms=we({name:"moz-split-pane",defaults:{horizontal:!1,panes:[]},setup(e){let t=null,s=null;const n=[],i=[],a=[],m=[];let c=[],l=!1,h=0,r=0,p=-1,u=-1,v=-1,$=null,R=null,C=0;const y=()=>!!e.props.horizontal,D=()=>e.props.panes??[],E=()=>{c=D().map(B=>B.hidden?"0":B.size!=null?String(B.size):"1fr")};E();const V=B=>y()?B.clientHeight:B.clientWidth,G=()=>V(a[u]),Y=()=>V(m[u]),Q=()=>V(a[v]),le=()=>V(m[v]),ue=B=>{if(!l)return;let se=y()?B.movementY:B.movementX;$=+(se>0),$!==R&&R!==null&&(u=p,v=p+1),R=$;const K=i[p].getBoundingClientRect(),k=y()?B.clientY-K.top+window.scrollY:B.clientX-K.left+window.scrollX;($===0&&k>10||$===1&&k<-10)&&(se=se/(Math.abs(k)/10)),($===0&&y()?B.clientY<K.top:B.clientX<K.left)&&(C=0),($===1&&y()?B.clientY>K.top:B.clientX>K.left)&&(C=0);const S=A=>n[A][y()?"clientHeight":"clientWidth"];if(h=S(u)+se,r=S(v)+S(u)-h,!(h>G()&&h<Y()||h<G()&&$===1||h>G()&&$===0)){if(h<G()){if(u-1<0&&$===0){C+=y()?B.movementY:B.movementX;return}u=u-1>=0?u-1:0}else if(h>Y()){if(u-1<0){C+=y()?B.movementY:B.movementX;return}u=u-1>=0?u-1:0}}if(!(r>Q()&&r<le()||r<Q()&&$===0||r>Q()&&$===1)){if(r<Q()){if(v+1>=c.length){C+=y()?B.movementY:B.movementX;return}v=v+1<c.length?v+1:c.length-1}else if(r>le()){if(v+1>=c.length){C+=y()?B.movementY:B.movementX;return}v=v+1<c.length?v+1:c.length-1}}if($===0&&C>0||$===1&&C<0||$===0&&r>le()||$===1&&r<Q()||$===0&&h<G()||$===1&&h>Y())return;const x=t[y()?"clientHeight":"clientWidth"],P=S(u)+se;c[u]=`clamp(${G()}px, ${P/x*100}%, ${Y()}px)`,c[v]="1fr",e.requestUpdate(),queueMicrotask(()=>{const A=S(v);c[v]=`clamp(${Q()}px, ${A/x*100}%, ${le()}px)`,e.requestUpdate()})},U=()=>{p=-1,u=-1,v=-1,l=!1,C=0,document.removeEventListener("mousemove",ue),document.removeEventListener("mouseup",U),e.requestUpdate()},z=B=>{B.preventDefault(),l=!0,y()?B.clientY:B.clientX,document.addEventListener("mousemove",ue),document.addEventListener("mouseup",U),e.requestUpdate()},W=(B,se)=>{p=se,u=se,v=se+1,C=0,z(B)};let J=null;const ne=()=>{t&&s&&(s.style.width=`${t.clientWidth}px`,s.style.height=`${t.clientHeight}px`)};e.onCleanup(()=>{document.removeEventListener("mouseup",U),document.removeEventListener("mousemove",ue),J==null||J.disconnect()});let X=e.props.panes;return{onMounted:()=>{E(),e.requestUpdate()},render(){const B=D();e.props.panes!==X&&(X=e.props.panes,queueMicrotask(()=>{E(),e.requestUpdate()}));const se=y()?"gridTemplateRows":"gridTemplateColumns",K=B.length-1,k=ve(e.props,oi);return o.html`
1623
+ </div>`}}}}),fi={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},gi=new Set(["panes","direction","resizable","minSize","class","style"]),Mo=(e,t)=>e===void 0?t:typeof e=="number"?`${e}px`:e,ys=ve({name:"moz-split-pane",defaults:{horizontal:!1,panes:[]},setup(e){let t=null,s=null;const n=[],i=[],a=[],m=[];let c=[],l=!1,h=0,r=0,p=-1,u=-1,v=-1,S=null,I=null,w=0;const y=()=>!!e.props.horizontal,P=()=>e.props.panes??[],$=()=>{c=P().map(F=>F.hidden?"0":F.size!=null?String(F.size):"1fr")};$();const x=F=>y()?F.clientHeight:F.clientWidth,_=()=>x(a[u]),Y=()=>x(m[u]),j=()=>x(a[v]),le=()=>x(m[v]),ue=F=>{if(!l)return;let se=y()?F.movementY:F.movementX;S=+(se>0),S!==I&&I!==null&&(u=p,v=p+1),I=S;const G=i[p].getBoundingClientRect(),E=y()?F.clientY-G.top+window.scrollY:F.clientX-G.left+window.scrollX;(S===0&&E>10||S===1&&E<-10)&&(se=se/(Math.abs(E)/10)),(S===0&&y()?F.clientY<G.top:F.clientX<G.left)&&(w=0),(S===1&&y()?F.clientY>G.top:F.clientX>G.left)&&(w=0);const k=V=>n[V][y()?"clientHeight":"clientWidth"];if(h=k(u)+se,r=k(v)+k(u)-h,!(h>_()&&h<Y()||h<_()&&S===1||h>_()&&S===0)){if(h<_()){if(u-1<0&&S===0){w+=y()?F.movementY:F.movementX;return}u=u-1>=0?u-1:0}else if(h>Y()){if(u-1<0){w+=y()?F.movementY:F.movementX;return}u=u-1>=0?u-1:0}}if(!(r>j()&&r<le()||r<j()&&S===0||r>j()&&S===1)){if(r<j()){if(v+1>=c.length){w+=y()?F.movementY:F.movementX;return}v=v+1<c.length?v+1:c.length-1}else if(r>le()){if(v+1>=c.length){w+=y()?F.movementY:F.movementX;return}v=v+1<c.length?v+1:c.length-1}}if(S===0&&w>0||S===1&&w<0||S===0&&r>le()||S===1&&r<j()||S===0&&h<_()||S===1&&h>Y())return;const z=t[y()?"clientHeight":"clientWidth"],T=k(u)+se;c[u]=`clamp(${_()}px, ${T/z*100}%, ${Y()}px)`,c[v]="1fr",e.requestUpdate(),queueMicrotask(()=>{const V=k(v);c[v]=`clamp(${j()}px, ${V/z*100}%, ${le()}px)`,e.requestUpdate()})},W=()=>{p=-1,u=-1,v=-1,l=!1,w=0,document.removeEventListener("mousemove",ue),document.removeEventListener("mouseup",W),e.requestUpdate()},D=F=>{F.preventDefault(),l=!0,y()?F.clientY:F.clientX,document.addEventListener("mousemove",ue),document.addEventListener("mouseup",W),e.requestUpdate()},K=(F,se)=>{p=se,u=se,v=se+1,w=0,D(F)};let ee=null;const ne=()=>{t&&s&&(s.style.width=`${t.clientWidth}px`,s.style.height=`${t.clientHeight}px`)};e.onCleanup(()=>{document.removeEventListener("mouseup",W),document.removeEventListener("mousemove",ue),ee==null||ee.disconnect()});let Q=e.props.panes;return{onMounted:()=>{$(),e.requestUpdate()},render(){const F=P();e.props.panes!==Q&&(Q=e.props.panes,queueMicrotask(()=>{$(),e.requestUpdate()}));const se=y()?"gridTemplateRows":"gridTemplateColumns",G=F.length-1,E=fe(e.props,gi);return o.html`
1624
1624
  <div
1625
- ${ce(k)}
1626
- class=${L("splitter",e.props.class)}
1627
- style=${ee.styleMap({display:"grid",[se]:c.join(" "),width:"100%",height:"100%",overflow:"hidden",cursor:l?y()?"row-resize":"col-resize":"unset"})}
1628
- ${_.ref(S=>{t=S??null,t&&s&&(ne(),!J&&typeof ResizeObserver<"u"&&(J=new ResizeObserver(()=>ne()),J.observe(t)))})}
1625
+ ${ce(E)}
1626
+ class=${A("splitter",e.props.class)}
1627
+ style=${J.styleMap({display:"grid",[se]:c.join(" "),width:"100%",height:"100%",overflow:"hidden",cursor:l?y()?"row-resize":"col-resize":"unset"})}
1628
+ ${N.ref(k=>{t=k??null,t&&s&&(ne(),!ee&&typeof ResizeObserver<"u"&&(ee=new ResizeObserver(()=>ne()),ee.observe(t)))})}
1629
1629
  >
1630
- ${B.map((S,x)=>{const P=x===K?"100%":c[x+1]!=="0"?"calc(100% - 10px) 10px":"100%";return o.html`<div
1631
- style=${ee.styleMap({display:"grid",[se]:P,overflow:"hidden"})}
1632
- ${_.ref(A=>{n[x]=A??null})}
1630
+ ${F.map((k,z)=>{const T=z===G?"100%":c[z+1]!=="0"?"calc(100% - 10px) 10px":"100%";return o.html`<div
1631
+ style=${J.styleMap({display:"grid",[se]:T,overflow:"hidden"})}
1632
+ ${N.ref(V=>{n[z]=V??null})}
1633
1633
  >
1634
- <div style="width: 100%; height: 100%; overflow: hidden">${e.slot(`pane-${x}`)}</div>
1635
- ${x!==K&&c[x+1]!=="0"?o.html`<div
1634
+ <div style="width: 100%; height: 100%; overflow: hidden">${e.slot(`pane-${z}`)}</div>
1635
+ ${z!==G&&c[z+1]!=="0"?o.html`<div
1636
1636
  class=${y()?"resizer resizer-horizontal":"resizer resizer-vertical"}
1637
1637
  role="separator"
1638
1638
  aria-orientation=${y()?"horizontal":"vertical"}
1639
1639
  aria-label=${e.locale.SplitPane.resizeHandle}
1640
1640
  tabindex="0"
1641
- @mousedown=${A=>W(A,x)}
1642
- ${_.ref(A=>{i[x]=A??null})}
1641
+ @mousedown=${V=>K(V,z)}
1642
+ ${N.ref(V=>{i[z]=V??null})}
1643
1643
  ></div>`:o.nothing}
1644
1644
  </div>`})}
1645
1645
 
1646
1646
  <div
1647
1647
  style="pointer-events: none; position: fixed"
1648
- ${_.ref(S=>{s=S??null,t&&s&&ne()})}
1648
+ ${N.ref(k=>{s=k??null,t&&s&&ne()})}
1649
1649
  >
1650
- ${B.map((S,x)=>{const P=yo(S.minSize,"10px"),A=yo(S.maxSize,"100%");return o.html`<div
1650
+ ${F.map((k,z)=>{const T=Mo(k.minSize,"10px"),V=Mo(k.maxSize,"100%");return o.html`<div
1651
1651
  class="size-calculator min-size"
1652
- style=${ee.styleMap({width:P,height:P})}
1653
- ${_.ref(f=>{a[x]=f??null})}
1652
+ style=${J.styleMap({width:T,height:T})}
1653
+ ${N.ref(f=>{a[z]=f??null})}
1654
1654
  ></div>
1655
1655
  <div
1656
1656
  class="size-calculator max-size"
1657
- style=${ee.styleMap({width:A,height:A})}
1658
- ${_.ref(f=>{m[x]=f??null})}
1657
+ style=${J.styleMap({width:V,height:V})}
1658
+ ${N.ref(f=>{m[z]=f??null})}
1659
1659
  ></div>`})}
1660
1660
  </div>
1661
1661
  </div>
1662
- `}}}}),si={name:"MozSplitPane",core:ms,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 li(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">
1662
+ `}}}}),vi={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 bi(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">
1663
1663
  <path
1664
1664
  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"
1665
1665
  fill=${e}
@@ -1674,7 +1674,7 @@
1674
1674
  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"
1675
1675
  fill=${e}
1676
1676
  ></path>
1677
- </svg>`}function ni(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">
1677
+ </svg>`}function wi(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">
1678
1678
  <g clip-path="url(#clip0_16945_2363)">
1679
1679
  <path
1680
1680
  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"
@@ -1690,7 +1690,7 @@
1690
1690
  <defs>
1691
1691
  <clipPath id="clip0_16945_2363"><rect width="14" height="14" fill=${e}></rect></clipPath>
1692
1692
  </defs>
1693
- </svg>`}function ii(e="currentColor",t=14){return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14">
1693
+ </svg>`}function Ci(e="currentColor",t=14){return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14">
1694
1694
  <path d="M0,0H14V14H0Z" fill="none"></path>
1695
1695
  <line
1696
1696
  y2="10"
@@ -1708,54 +1708,54 @@
1708
1708
  stroke-linecap="round"
1709
1709
  stroke-width="1.8"
1710
1710
  ></line>
1711
- </svg>`}function ri(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">
1711
+ </svg>`}function yi(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">
1712
1712
  <path
1713
1713
  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"
1714
1714
  fill=${e}
1715
1715
  ></path>
1716
- </svg>`}function ai(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">
1716
+ </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">
1717
1717
  <path
1718
1718
  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"
1719
1719
  fill=${e}
1720
1720
  ></path>
1721
- </svg>`}const di=new Set(["navigations","containerStyle","headerStyle","class","style"]);function ci(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 ui(e){switch(e){case"IconSave":return li();case"IconTrash":return ni();case"IconPlus":return ii();case"IconSearch":return ri();case"IconPlay":return ai();default:return o.html``}}const fs=we({name:"moz-controller",defaults:{height:66,showFilterButton:!1,showFavorite:!0,showPreset:!0},setup(e){var r,p;(p=(r=e.props).setControlHeight)==null||p.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=Xe("switch_"),c=Xe("switch_"),l=u=>{t=u.target.checked,e.requestUpdate()},h=u=>{const v=u.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=${ee.styleMap({display:n()?void 0:"none"})}>
1721
+ </svg>`}const Si=new Set(["navigations","containerStyle","headerStyle","class","style"]);function ki(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 Ei(e){switch(e){case"IconSave":return bi();case"IconTrash":return wi();case"IconPlus":return Ci();case"IconSearch":return yi();case"IconPlay":return $i();default:return o.html``}}const $s=ve({name:"moz-controller",defaults:{height:66,showFilterButton:!1,showFavorite:!0,showPreset:!0},setup(e){var r,p;(p=(r=e.props).setControlHeight)==null||p.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=Xe("switch_"),c=Xe("switch_"),l=u=>{t=u.target.checked,e.requestUpdate()},h=u=>{const v=u.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=${J.styleMap({display:n()?void 0:"none"})}>
1722
1722
  ${e.slot("custom-filter")}
1723
- </div>`},render(){const u=e.props,v=e.slots.has("custom-filter"),$=e.slots.has("action"),R=u.actions??[],C=R.find(E=>E.loading===!0),y=R.map(E=>{const V=ci(E),G=!!C&&E.action!==C.action||!!E.disabled;return{...E,icon:V,disabled:G}}),D=ve(u,di);return o.html`
1723
+ </div>`},render(){const u=e.props,v=e.slots.has("custom-filter"),S=e.slots.has("action"),I=u.actions??[],w=I.find($=>$.loading===!0),y=I.map($=>{const x=ki($),_=!!w&&$.action!==w.action||!!$.disabled;return{...$,icon:x,disabled:_}}),P=fe(u,Si);return o.html`
1724
1724
  <div
1725
- class=${L("moz-controller-root",u.class)}
1726
- style=${ee.styleMap(me(u.containerStyle))}
1727
- ${ce(D)}
1725
+ class=${A("moz-controller-root",u.class)}
1726
+ style=${J.styleMap(me(u.containerStyle))}
1727
+ ${ce(P)}
1728
1728
  >
1729
- <div class="moz-controller" style=${ee.styleMap(me(u.headerStyle))}>
1730
- ${u.navigations?Zt({itemSource:u.navigations,showFavorite:!1,ariaLabel:e.locale.BreadCrumb.navigation}):o.nothing}
1729
+ <div class="moz-controller" style=${J.styleMap(me(u.headerStyle))}>
1730
+ ${u.navigations?eo({itemSource:u.navigations,showFavorite:!1,ariaLabel:e.locale.BreadCrumb.navigation}):o.nothing}
1731
1731
  <div class="spacer"></div>
1732
1732
 
1733
1733
  <div class="moz-controller-actions">
1734
1734
  ${e.slot("beforeFilter")}
1735
- ${u.showFilterButton&&!v?Pt({id:m,model:t,label:"조회 조건",onChange:l}):o.nothing}
1736
- ${u.showFilterButton&&v?Pt({id:c,model:n(),label:"조회 조건",onChange:h}):o.nothing}
1735
+ ${u.showFilterButton&&!v?Lt({id:m,model:t,label:"조회 조건",onChange:l}):o.nothing}
1736
+ ${u.showFilterButton&&v?Lt({id:c,model:n(),label:"조회 조건",onChange:h}):o.nothing}
1737
1737
  ${u.showFilterButton?o.html`<div class="spacer between-buttons" style="margin: 0 6px"></div>`:o.nothing}
1738
1738
  ${e.slot("action")}
1739
- ${$&&y.length>0?o.html`<div class="spacer between-buttons"></div>`:o.nothing}
1740
- ${y.map(E=>ct({action:E.action,text:E.text,disabled:E.disabled,loading:E.loading,width:E.text?void 0:30,style:{padding:E.text?void 0:"0"}},{icon:ui(E.icon),onClick:()=>{E.click&&E.click()},rest:{title:E.action}}))}
1739
+ ${S&&y.length>0?o.html`<div class="spacer between-buttons"></div>`:o.nothing}
1740
+ ${y.map($=>pt({action:$.action,text:$.text,disabled:$.disabled,loading:$.loading,width:$.text?void 0:30,style:{padding:$.text?void 0:"0"}},{icon:Ei($.icon),onClick:()=>{$.click&&$.click()},rest:{title:$.action}}))}
1741
1741
  </div>
1742
1742
  </div>
1743
1743
 
1744
1744
  ${t&&!v?o.html`<div
1745
1745
  class="moz-horizontal-filter moz-controller-filter"
1746
- style=${ee.styleMap(me(u.filterStyle))}
1746
+ style=${J.styleMap(me(u.filterStyle))}
1747
1747
  >
1748
1748
  ${e.slot("filter")}
1749
1749
  </div>`:o.nothing}
1750
1750
  </div>
1751
- `}}}}),pi={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 gs{constructor(t,s){Ae(this,"startedAt");Ae(this,"callback");Ae(this,"delay");Ae(this,"timer");Ae(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 hi(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">
1751
+ `}}}}),Pi={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){Ae(this,"startedAt");Ae(this,"callback");Ae(this,"delay");Ae(this,"timer");Ae(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 Ti(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">
1752
1752
  <path
1753
1753
  fill-rule="evenodd"
1754
1754
  clip-rule="evenodd"
1755
1755
  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"
1756
1756
  fill=${e}
1757
1757
  ></path>
1758
- </svg>`}function mi(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">
1758
+ </svg>`}function Mi(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">
1759
1759
  <mask id="mask0_6027_4458" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
1760
1760
  <path d="M30 0H0V30H30V0Z" fill="#FFF"></path>
1761
1761
  </mask>
@@ -1765,14 +1765,14 @@
1765
1765
  fill=${e}
1766
1766
  ></path>
1767
1767
  </g>
1768
- </svg>`}function fi(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">
1768
+ </svg>`}function Li(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">
1769
1769
  <path
1770
1770
  fill-rule="evenodd"
1771
1771
  clip-rule="evenodd"
1772
1772
  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"
1773
1773
  fill=${e}
1774
1774
  ></path>
1775
- </svg>`}function gi(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">
1775
+ </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">
1776
1776
  <mask id="mask0_6027_4463" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
1777
1777
  <path d="M30 0H0V30H30V0Z" fill="#FFF"></path>
1778
1778
  </mask>
@@ -1782,24 +1782,24 @@
1782
1782
  fill=${e}
1783
1783
  ></path>
1784
1784
  </g>
1785
- </svg>`}const vi=()=>o.html`
1785
+ </svg>`}const xi=()=>o.html`
1786
1786
  <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">
1787
1787
  <path d="M18 6 6 18M6 6l12 12" />
1788
1788
  </svg>
1789
- `,$o=new Set(["message","type","position","duration","dismissible","queue","pauseOnHover","onDismiss","class","style","inline","composed","showProgress","progressClass","exitDuration"]);function So(e){switch(e){case"success":return"bg-success";case"error":return"bg-error";case"info":return"bg-info";default:return"bg-warning"}}function wi(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 bi(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 Ci(e){return e==="error"?mi("var(--moz-color-on-accent)"):e==="info"?fi("var(--moz-color-on-accent)"):e==="success"?hi("var(--moz-color-on-accent)"):gi("var(--moz-color-on-accent)")}const io=we({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 c=()=>{let y=document.querySelector(".toast--top"),D=document.querySelector(".toast--bottom");y&&D||(y||(y=document.createElement("div"),y.className="toast--top moz-toast-body moz-toast-body--top",document.body.appendChild(y)),D||(D=document.createElement("div"),D.className="toast--bottom moz-toast-body moz-toast-body--bottom",document.body.appendChild(D)))},l=()=>{if(!e.props.queue)return!1;const y=document.querySelector(".toast--top"),D=document.querySelector(".toast--bottom");return!y||!D?!1:y.childElementCount>0||D.childElementCount>0},h=()=>{a&&clearInterval(a),a=null},r=()=>{n&&n.stop(),i&&clearTimeout(i),h(),t=!1,e.requestUpdate(),setTimeout(()=>{var y,D;(D=(y=e.props).onDismiss)==null||D.call(y),s=!0,e.requestUpdate()},e.props.exitDuration??150)},p=()=>{if(!e.props.inline&&l()){i=setTimeout(p,250);return}t=!0,e.requestUpdate();const y=e.props.duration;y&&(n=new gs(r,y),e.props.showProgress&&(a=setInterval(()=>{m=n?Math.max(0,Math.min(100,n.remaining()/y*100)):0,e.requestUpdate()},50)))},u=y=>{!e.props.pauseOnHover||!n||(y?n.pause():n.resume())},v=()=>{e.props.dismissible&&r()};e.props.inline||c(),e.onCleanup(()=>{n&&n.stop(),i&&clearTimeout(i),h()});const $=()=>{const y=e.props,D=y.duration??0;return o.html`
1789
+ `,Lo=new Set(["message","type","position","duration","dismissible","queue","pauseOnHover","onDismiss","class","style","inline","composed","showProgress","progressClass","exitDuration"]);function zo(e){switch(e){case"success":return"bg-success";case"error":return"bg-error";case"info":return"bg-info";default:return"bg-warning"}}function Ai(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 Di(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 Vi(e){return e==="error"?Mi("var(--moz-color-on-accent)"):e==="info"?Li("var(--moz-color-on-accent)"):e==="success"?Ti("var(--moz-color-on-accent)"):zi("var(--moz-color-on-accent)")}const ho=ve({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 c=()=>{let y=document.querySelector(".toast--top"),P=document.querySelector(".toast--bottom");y&&P||(y||(y=document.createElement("div"),y.className="toast--top moz-toast-body moz-toast-body--top",document.body.appendChild(y)),P||(P=document.createElement("div"),P.className="toast--bottom moz-toast-body moz-toast-body--bottom",document.body.appendChild(P)))},l=()=>{if(!e.props.queue)return!1;const y=document.querySelector(".toast--top"),P=document.querySelector(".toast--bottom");return!y||!P?!1:y.childElementCount>0||P.childElementCount>0},h=()=>{a&&clearInterval(a),a=null},r=()=>{n&&n.stop(),i&&clearTimeout(i),h(),t=!1,e.requestUpdate(),setTimeout(()=>{var y,P;(P=(y=e.props).onDismiss)==null||P.call(y),s=!0,e.requestUpdate()},e.props.exitDuration??150)},p=()=>{if(!e.props.inline&&l()){i=setTimeout(p,250);return}t=!0,e.requestUpdate();const y=e.props.duration;y&&(n=new po(r,y),e.props.showProgress&&(a=setInterval(()=>{m=n?Math.max(0,Math.min(100,n.remaining()/y*100)):0,e.requestUpdate()},50)))},u=y=>{!e.props.pauseOnHover||!n||(y?n.pause():n.resume())},v=()=>{e.props.dismissible&&r()};e.props.inline||c(),e.onCleanup(()=>{n&&n.stop(),i&&clearTimeout(i),h()});const S=()=>{const y=e.props,P=y.duration??0;return o.html`
1790
1790
  <div
1791
1791
  data-testid="toast-container"
1792
- ${ce(ve(y,$o))}
1792
+ ${ce(fe(y,Lo))}
1793
1793
  role=${y.type==="error"?"alert":"status"}
1794
1794
  aria-live=${y.type==="error"?"assertive":"polite"}
1795
1795
  aria-atomic="true"
1796
- class=${L("moz-toast","moz-toast-composed",So(y.type),y.class)}
1796
+ class=${A("moz-toast","moz-toast-composed",zo(y.type),y.class)}
1797
1797
  style=${t?o.nothing:"display: none;"}
1798
1798
  @mouseenter=${()=>u(!0)}
1799
1799
  @mouseleave=${()=>u(!1)}
1800
1800
  >
1801
- ${y.showProgress&&D>0?o.html`<div class="moz-toast-progress" aria-hidden="true">
1802
- <div class=${L("moz-toast-progress-bar",y.progressClass)} style=${`width: ${m}%`}></div>
1801
+ ${y.showProgress&&P>0?o.html`<div class="moz-toast-progress" aria-hidden="true">
1802
+ <div class=${A("moz-toast-progress-bar",y.progressClass)} style=${`width: ${m}%`}></div>
1803
1803
  </div>`:o.nothing}
1804
1804
  ${e.slots.has("icon")?o.html`<div class="moz-toast-icon">${e.slot("icon")}</div>`:o.nothing}
1805
1805
  <div class="moz-toast-content">
@@ -1808,123 +1808,123 @@
1808
1808
  ${e.slots.has("actions")?o.html`<div class="moz-toast-actions">${e.slot("actions")}</div>`:o.nothing}
1809
1809
  </div>
1810
1810
  ${y.dismissible?o.html`<button type="button" class="moz-toast-close" aria-label=${e.locale.Toast.close} @click=${r}>
1811
- ${vi()}
1811
+ ${xi()}
1812
1812
  </button>`:o.nothing}
1813
1813
  </div>
1814
- `},R=()=>{const y=e.props;return o.html`
1814
+ `},I=()=>{const y=e.props;return o.html`
1815
1815
  <div
1816
1816
  data-testid="toast-container"
1817
- ${ce(ve(y,$o))}
1817
+ ${ce(fe(y,Lo))}
1818
1818
  role=${y.type==="error"?"alert":"status"}
1819
1819
  aria-live=${y.type==="error"?"assertive":"polite"}
1820
1820
  aria-atomic="true"
1821
- class=${L("moz-toast",So(y.type),wi(y.position),y.class)}
1821
+ class=${A("moz-toast",zo(y.type),Ai(y.position),y.class)}
1822
1822
  style=${t?o.nothing:"display: none;"}
1823
1823
  @mouseenter=${()=>u(!0)}
1824
1824
  @mouseleave=${()=>u(!1)}
1825
1825
  @click=${v}
1826
1826
  >
1827
- ${Ci(y.type)}
1827
+ ${Vi(y.type)}
1828
1828
  <span class="toast-message">${y.message}</span>
1829
1829
  </div>
1830
- `},C=()=>s?o.nothing:e.props.composed?$():R();return{onMounted(){p()},getPortalContainer:()=>e.props.inline?null:document.querySelector(bi(e.props.position)),renderPortal(){return e.props.inline?o.nothing:C()},render(){return e.props.inline?C():o.nothing}}}}),yi=e=>{var t;typeof e.remove<"u"?e.remove():(t=e.parentNode)==null||t.removeChild(e)},$i=(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:()=>{yi(i)}},m=Object.assign({},a,e,typeof s=="string"?{}:s);document.body.appendChild(i),io(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})}}},Si={name:"MozToast",core:io,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},ko={top:"bottom",bottom:"top",left:"right",right:"left"};function Eo(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 yt(e,t,s,n){return e==="start"?t:e==="end"?t+s-n:t+s/2-n/2}function Rt(e,t,s){return s<t?t:Math.min(Math.max(e,t),s)}function vs(e,t,s,n){const{align:i,sideOffset:a,collisionPadding:m}=n,c=n.arrowSize??0;let l=n.side;!Eo(l,e,t,s,a,m)&&Eo(ko[l],e,t,s,a,m)&&(l=ko[l]);const h=l==="top"||l==="bottom";let r,p;l==="top"?(p=e.top-t.height-a,r=yt(i,e.left,e.width,t.width)):l==="bottom"?(p=e.top+e.height+a,r=yt(i,e.left,e.width,t.width)):l==="left"?(r=e.left-t.width-a,p=yt(i,e.top,e.height,t.height)):(r=e.left+e.width+a,p=yt(i,e.top,e.height,t.height)),h?r=Rt(r,m,s.width-t.width-m):p=Rt(p,m,s.height-t.height-m);const u=h?e.left+e.width/2:e.top+e.height/2,v=h?r:p,$=h?t.width:t.height,R=Rt(u-v,c*2,$-c*2),C={top:e.top-a-m,bottom:s.height-(e.top+e.height)-a-m,left:s.height-m*2,right:s.height-m*2},y=Math.max(0,C[l]);return{side:l,x:r,y:p,arrowOffset:R,availableHeight:y}}const ws=vs,ki=new Set(["open","anchor","text","side","align","sideOffset","collisionPadding","arrow","tooltipId","class","style"]),Ei=5,Pi=typeof requestAnimationFrame=="function"?e=>{requestAnimationFrame(e)}:e=>{setTimeout(e,0)},bs=we({name:"moz-tooltip",defaults:{open:!1,side:"top",align:"center",sideOffset:8,collisionPadding:8,arrow:!0},setup(e){const t=_.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=ws(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:Ei});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)))},c=()=>{a()&&m()};return typeof window<"u"&&(window.addEventListener("scroll",c,{capture:!0,passive:!0}),window.addEventListener("resize",c,{passive:!0}),e.onCleanup(()=>{window.removeEventListener("scroll",c,!0),window.removeEventListener("resize",c)})),{render(){return o.nothing},renderPortal(){const l=e.props;if(!a())return s=null,n=null,i=!1,o.nothing;Pi(m);const h=(s==null?void 0:s.side)??l.side??"top",r=ve(l,ki),p=h==="top"||h==="bottom"?"left":"top";return o.html`
1830
+ `},w=()=>s?o.nothing:e.props.composed?S():I();return{onMounted(){p()},getPortalContainer:()=>e.props.inline?null:document.querySelector(Di(e.props.position)),renderPortal(){return e.props.inline?o.nothing:w()},render(){return e.props.inline?w():o.nothing}}}}),Ii=e=>{var t;typeof e.remove<"u"?e.remove():(t=e.parentNode)==null||t.removeChild(e)},Ri=(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:()=>{Ii(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})}}},qi={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},xo={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,c=n.arrowSize??0;let l=n.side;!Ao(l,e,t,s,a,m)&&Ao(xo[l],e,t,s,a,m)&&(l=xo[l]);const h=l==="top"||l==="bottom";let r,p;l==="top"?(p=e.top-t.height-a,r=St(i,e.left,e.width,t.width)):l==="bottom"?(p=e.top+e.height+a,r=St(i,e.left,e.width,t.width)):l==="left"?(r=e.left-t.width-a,p=St(i,e.top,e.height,t.height)):(r=e.left+e.width+a,p=St(i,e.top,e.height,t.height)),h?r=Ot(r,m,s.width-t.width-m):p=Ot(p,m,s.height-t.height-m);const u=h?e.left+e.width/2:e.top+e.height/2,v=h?r:p,S=h?t.width:t.height,I=Ot(u-v,c*2,S-c*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},y=Math.max(0,w[l]);return{side:l,x:r,y:p,arrowOffset:I,availableHeight:y}}const ks=Ss,Oi=new Set(["open","anchor","text","side","align","sideOffset","collisionPadding","arrow","tooltipId","class","style"]),Fi=5,Bi=typeof requestAnimationFrame=="function"?e=>{requestAnimationFrame(e)}:e=>{setTimeout(e,0)},Es=ve({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:Fi});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)))},c=()=>{a()&&m()};return typeof window<"u"&&(window.addEventListener("scroll",c,{capture:!0,passive:!0}),window.addEventListener("resize",c,{passive:!0}),e.onCleanup(()=>{window.removeEventListener("scroll",c,!0),window.removeEventListener("resize",c)})),{render(){return o.nothing},renderPortal(){const l=e.props;if(!a())return s=null,n=null,i=!1,o.nothing;Bi(m);const h=(s==null?void 0:s.side)??l.side??"top",r=fe(l,Oi),p=h==="top"||h==="bottom"?"left":"top";return o.html`
1831
1831
  <div
1832
- ${_.ref(t)}
1833
- class=${L("moz-tooltip",l.class)}
1832
+ ${N.ref(t)}
1833
+ class=${A("moz-tooltip",l.class)}
1834
1834
  role="tooltip"
1835
1835
  id=${l.tooltipId??o.nothing}
1836
1836
  data-side=${h}
1837
1837
  data-align=${l.align??"center"}
1838
- style=${ee.styleMap({...me(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"})}
1838
+ style=${J.styleMap({...me(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"})}
1839
1839
  ${ce(r)}
1840
1840
  >
1841
1841
  ${l.arrow?o.html`<span
1842
1842
  class="moz-tooltip-arrow"
1843
1843
  data-side=${h}
1844
- style=${ee.styleMap({[p]:`${(s==null?void 0:s.arrowOffset)??0}px`})}
1844
+ style=${J.styleMap({[p]:`${(s==null?void 0:s.arrowOffset)??0}px`})}
1845
1845
  ></span>`:o.nothing}
1846
1846
  <div class="moz-tooltip-content">
1847
1847
  ${e.slots.has("content")?e.slot("content"):l.text??o.nothing}
1848
1848
  </div>
1849
1849
  </div>
1850
- `},api:{reposition:()=>m()}}}}),Mi={name:"MozTooltip",core:bs,booleanProps:["arrow","open"],props:["open","anchor","text","side","align","sideOffset","collisionPadding","arrow","tooltipId"],emits:["placed"],slots:["content"],expose:!0},Ti=new Set(["open","anchor","side","align","sideOffset","collisionPadding","matchTriggerWidth","trapFocus","popoverId","class","style"]),xi='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Po=typeof requestAnimationFrame=="function"?e=>{requestAnimationFrame(e)}:e=>{setTimeout(e,0)},Cs=we({name:"moz-popover",defaults:{open:!1,side:"bottom",align:"start",sideOffset:4,collisionPadding:8,trapFocus:!0,matchTriggerWidth:!1},setup(e){const t=_.createRef();let s=null,n=null,i=!1,a=!1,m=null,c=null;const l=()=>!!e.props.open&&!!e.props.anchor,h=()=>{const E=t.value;return E?Array.from(E.querySelectorAll(xi)).filter(V=>V.getAttribute("aria-hidden")!=="true"):[]},r=()=>{const E=e.props.anchor,V=t.value;if(!E||!V||!e.props.open)return;const G=vs(E.getBoundingClientRect(),{width:V.offsetWidth,height:V.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===G.side&&s.x===G.x&&s.y===G.y&&s.availableHeight===G.availableHeight||(s=G,i=!0,e.requestUpdate(),n!==G.side&&(n=G.side,e.emit("placed",G.side)))},p=(E,V)=>new CustomEvent(E,{cancelable:!0,detail:V}),u=E=>{e.emit("requestClose",E)},v=E=>{e.emit("escapeKeyDown",E),E.defaultPrevented||u("escape")},$=E=>{if(!l()||!(m!=null&&m.isTopmost()))return;const V=t.value,G=E.target;if(!V||!G||V.contains(G))return;const Y=p("moz.interactOutside",{originalEvent:E});e.emit("interactOutside",Y),Y.defaultPrevented||u("interactOutside")},R=E=>{if(E.key!=="Tab"||!e.props.trapFocus)return;const V=h();if(V.length===0){E.preventDefault();return}const G=V[0],Y=V[V.length-1],Q=document.activeElement;E.shiftKey&&(Q===G||Q===t.value)?(E.preventDefault(),Y.focus()):!E.shiftKey&&Q===Y&&(E.preventDefault(),G.focus())},C=()=>{c=document.activeElement??null,m=Nt(v),document.addEventListener("pointerdown",$,!0),Po(()=>{var V;if(!l())return;const E=p("moz.openAutoFocus");e.emit("openAutoFocus",E),!E.defaultPrevented&&((V=h()[0]??t.value)==null||V.focus())})},y=()=>{var G;m==null||m.release(),m=null,document.removeEventListener("pointerdown",$,!0),s=null,n=null,i=!1;const E=p("moz.closeAutoFocus");e.emit("closeAutoFocus",E);const V=c??e.props.anchor;c=null,E.defaultPrevented||(G=V==null?void 0:V.focus)==null||G.call(V)},D=()=>{l()&&r()};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),m==null||m.release(),m=null,document.removeEventListener("pointerdown",$,!0)})),{render(){return o.nothing},renderPortal(){var le;const E=e.props,V=l();if(V!==a&&(a=V,V?C():y()),!V)return o.nothing;Po(r);const G=(s==null?void 0:s.side)??E.side??"bottom",Y=ve(E,Ti),Q=((le=E.anchor)==null?void 0:le.offsetWidth)??0;return o.html`
1850
+ `},api:{reposition:()=>m()}}}}),Hi={name:"MozTooltip",core:Es,booleanProps:["arrow","open"],props:["open","anchor","text","side","align","sideOffset","collisionPadding","arrow","tooltipId"],emits:["placed"],slots:["content"],expose:!0},Ni=new Set(["open","anchor","side","align","sideOffset","collisionPadding","matchTriggerWidth","trapFocus","popoverId","class","style"]),_i='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=ve({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,c=null;const l=()=>!!e.props.open&&!!e.props.anchor,h=()=>{const $=t.value;return $?Array.from($.querySelectorAll(_i)).filter(x=>x.getAttribute("aria-hidden")!=="true"):[]},r=()=>{const $=e.props.anchor,x=t.value;if(!$||!x||!e.props.open)return;const _=Ss($.getBoundingClientRect(),{width:x.offsetWidth,height:x.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)))},p=($,x)=>new CustomEvent($,{cancelable:!0,detail:x}),u=$=>{e.emit("requestClose",$)},v=$=>{e.emit("escapeKeyDown",$),$.defaultPrevented||u("escape")},S=$=>{if(!l()||!(m!=null&&m.isTopmost()))return;const x=t.value,_=$.target;if(!x||!_||x.contains(_))return;const Y=p("moz.interactOutside",{originalEvent:$});e.emit("interactOutside",Y),Y.defaultPrevented||u("interactOutside")},I=$=>{if($.key!=="Tab"||!e.props.trapFocus)return;const x=h();if(x.length===0){$.preventDefault();return}const _=x[0],Y=x[x.length-1],j=document.activeElement;$.shiftKey&&(j===_||j===t.value)?($.preventDefault(),Y.focus()):!$.shiftKey&&j===Y&&($.preventDefault(),_.focus())},w=()=>{c=document.activeElement??null,m=Yt(v),document.addEventListener("pointerdown",S,!0),Do(()=>{var x;if(!l())return;const $=p("moz.openAutoFocus");e.emit("openAutoFocus",$),!$.defaultPrevented&&((x=h()[0]??t.value)==null||x.focus())})},y=()=>{var _;m==null||m.release(),m=null,document.removeEventListener("pointerdown",S,!0),s=null,n=null,i=!1;const $=p("moz.closeAutoFocus");e.emit("closeAutoFocus",$);const x=c??e.props.anchor;c=null,$.defaultPrevented||(_=x==null?void 0:x.focus)==null||_.call(x)},P=()=>{l()&&r()};return typeof window<"u"&&(window.addEventListener("scroll",P,{capture:!0,passive:!0}),window.addEventListener("resize",P,{passive:!0}),e.onCleanup(()=>{window.removeEventListener("scroll",P,!0),window.removeEventListener("resize",P),m==null||m.release(),m=null,document.removeEventListener("pointerdown",S,!0)})),{render(){return o.nothing},renderPortal(){var le;const $=e.props,x=l();if(x!==a&&(a=x,x?w():y()),!x)return o.nothing;Do(r);const _=(s==null?void 0:s.side)??$.side??"bottom",Y=fe($,Ni),j=((le=$.anchor)==null?void 0:le.offsetWidth)??0;return o.html`
1851
1851
  <div
1852
- ${_.ref(t)}
1853
- class=${L("moz-popover",E.class)}
1852
+ ${N.ref(t)}
1853
+ class=${A("moz-popover",$.class)}
1854
1854
  role="dialog"
1855
- id=${E.popoverId??o.nothing}
1855
+ id=${$.popoverId??o.nothing}
1856
1856
  tabindex="-1"
1857
- data-side=${G}
1858
- data-align=${E.align??"start"}
1859
- @keydown=${R}
1860
- style=${ee.styleMap({...me(E.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":`${Q}px`,"--moz-popover-available-height":`${(s==null?void 0:s.availableHeight)??0}px`,...E.matchTriggerWidth?{width:`${Q}px`}:{}})}
1857
+ data-side=${_}
1858
+ data-align=${$.align??"start"}
1859
+ @keydown=${I}
1860
+ style=${J.styleMap({...me($.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":`${j}px`,"--moz-popover-available-height":`${(s==null?void 0:s.availableHeight)??0}px`,...$.matchTriggerWidth?{width:`${j}px`}:{}})}
1861
1861
  ${ce(Y)}
1862
1862
  >
1863
1863
  ${e.slot("content")}
1864
1864
  </div>
1865
- `},api:{reposition:()=>r(),panel:()=>t.value??null}}}}),Li={name:"MozPopover",core:Cs,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},zi=new Set(["open","contentId","disabled","forceMount","class","style"]),ys="--moz-collapsible-content-height",$s=we({name:"moz-collapsible",defaults:{open:!1,disabled:!1,forceMount:!1},setup(e){let t=null,s=null,n=-1;const i=()=>{const c=t;if(!c)return;const l=c.scrollHeight;c.style.setProperty(ys,`${l}px`),l!==n&&(n=l,e.emit("heightChange",l))},a=()=>{s==null||s.disconnect(),s=null},m=c=>{if(t=c??null,!t){a(),n=-1;return}i(),!(typeof ResizeObserver>"u")&&(a(),s=new ResizeObserver(()=>i()),s.observe(t))};return e.onCleanup(a),{render(){const c=e.props,l=!!c.open;if(!l&&!c.forceMount)return o.nothing;const h=ve(c,zi);return o.html`<div
1866
- ${_.ref(m)}
1867
- class=${L("moz-collapsible-content",c.class)}
1868
- id=${Me.ifDefined(c.contentId)}
1865
+ `},api:{reposition:()=>r(),panel:()=>t.value??null}}}}),Ui={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},Wi=new Set(["open","contentId","disabled","forceMount","class","style"]),Ts="--moz-collapsible-content-height",Ms=ve({name:"moz-collapsible",defaults:{open:!1,disabled:!1,forceMount:!1},setup(e){let t=null,s=null,n=-1;const i=()=>{const c=t;if(!c)return;const l=c.scrollHeight;c.style.setProperty(Ts,`${l}px`),l!==n&&(n=l,e.emit("heightChange",l))},a=()=>{s==null||s.disconnect(),s=null},m=c=>{if(t=c??null,!t){a(),n=-1;return}i(),!(typeof ResizeObserver>"u")&&(a(),s=new ResizeObserver(()=>i()),s.observe(t))};return e.onCleanup(a),{render(){const c=e.props,l=!!c.open;if(!l&&!c.forceMount)return o.nothing;const h=fe(c,Wi);return o.html`<div
1866
+ ${N.ref(m)}
1867
+ class=${A("moz-collapsible-content",c.class)}
1868
+ id=${Ce.ifDefined(c.contentId)}
1869
1869
  data-state=${l?"open":"closed"}
1870
1870
  data-disabled=${c.disabled?"":o.nothing}
1871
1871
  ?hidden=${!l}
1872
- style=${ee.styleMap(me(c.style))}
1872
+ style=${J.styleMap(me(c.style))}
1873
1873
  ${ce(h)}
1874
1874
  >
1875
1875
  ${e.slot("content")}
1876
- </div>`}}}}),Ai={name:"MozCollapsible",core:$s,booleanProps:["disabled","forceMount","open"],props:["open","contentId","disabled","forceMount"],emits:["heightChange"],slots:["content"],expose:!1,syncUpdate:!0},Vi=new Set(["src","alt","delayMs","imageClass","fallbackClass","class","style"]),Ss=we({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())},c=()=>{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,c(),l(e.props.delayMs),!r){m("idle");return}m("loading");const p=new Image;a=p,p.onload=()=>{a!==p||s!==r||m("loaded")},p.onerror=()=>{a!==p||s!==r||m("error")},p.src=r};return e.onCleanup(()=>{c(),i!==void 0&&clearTimeout(i)}),{render(){h();const r=e.props,p=ve(r,Vi),u=t==="loaded",v=!u&&n;return o.html`<span
1877
- class=${L("moz-avatar",r.class)}
1876
+ </div>`}}}}),Ki={name:"MozCollapsible",core:Ms,booleanProps:["disabled","forceMount","open"],props:["open","contentId","disabled","forceMount"],emits:["heightChange"],slots:["content"],expose:!1,syncUpdate:!0},Gi=new Set(["src","alt","delayMs","imageClass","fallbackClass","class","style"]),Ls=ve({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())},c=()=>{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,c(),l(e.props.delayMs),!r){m("idle");return}m("loading");const p=new Image;a=p,p.onload=()=>{a!==p||s!==r||m("loaded")},p.onerror=()=>{a!==p||s!==r||m("error")},p.src=r};return e.onCleanup(()=>{c(),i!==void 0&&clearTimeout(i)}),{render(){h();const r=e.props,p=fe(r,Gi),u=t==="loaded",v=!u&&n;return o.html`<span
1877
+ class=${A("moz-avatar",r.class)}
1878
1878
  data-status=${t}
1879
- style=${ee.styleMap(me(r.style))}
1879
+ style=${J.styleMap(me(r.style))}
1880
1880
  ${ce(p)}
1881
1881
  >
1882
1882
  ${u?o.html`<img
1883
- class=${L("moz-avatar-image",r.imageClass)}
1884
- src=${Me.ifDefined(r.src)}
1885
- alt=${Me.ifDefined(r.alt)}
1883
+ class=${A("moz-avatar-image",r.imageClass)}
1884
+ src=${Ce.ifDefined(r.src)}
1885
+ alt=${Ce.ifDefined(r.alt)}
1886
1886
  />`:o.nothing}
1887
- ${v?o.html`<span class=${L("moz-avatar-fallback",r.fallbackClass)}>${e.slot("fallback")}</span>`:o.nothing}
1888
- </span>`},api:{get status(){return t}}}}}),Di={name:"MozAvatar",core:Ss,props:["src","alt","delayMs","imageClass","fallbackClass"],emits:["loadingStatusChange"],slots:["fallback"],expose:!0},Ri=new Set(["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass","class","style"]),qi=20,ks=we({name:"moz-scroll-area",defaults:{orientation:"vertical",scrollbarVisibility:"always"},setup(e){let t=null,s=null,n=null,i=null,a=null,m=!1,c=!1,l=null,h=null,r=null,p=null,u=null,v=!1,$=!1,R=null,C=null;const y=S=>!!S&&"nodeType"in S&&(!!(r!=null&&r.contains(S))||!!(p!=null&&p.contains(S))),D=()=>y((r==null?void 0:r.ownerDocument.activeElement)??null),E=()=>{const S=D();S!==$&&($=S,e.requestUpdate())},V=S=>{p=S??null},G=S=>{S.pointerType!=="touch"&&(v=!0,e.requestUpdate())},Y=S=>{S.pointerType!=="touch"&&(v=y(S.relatedTarget),e.requestUpdate())},Q=()=>{E()},le=()=>{e.requestUpdate()},ue=()=>{R==null||R(),u==null||u.disconnect(),u=null,r==null||r.removeEventListener("pointerenter",G),r==null||r.removeEventListener("pointerleave",Y),r==null||r.removeEventListener("focusin",Q),r==null||r.removeEventListener("focusout",le),r=null,v=$=!1},U=()=>{(C==null?void 0:C.getAttribute("tabindex"))==="0"&&C.removeAttribute("tabindex"),C=null},z=()=>{var P;const S=e.props.interactionRoot??t;S!==r&&(ue(),r=S,S&&(S.addEventListener("pointerenter",G),S.addEventListener("pointerleave",Y),S.addEventListener("focusin",Q),S.addEventListener("focusout",le)));const x=(P=S==null?void 0:S.ownerDocument.defaultView)==null?void 0:P.MutationObserver;e.props.scrollbarVisibility==="hover"&&S&&!u&&x?(u=new x(E),u.observe(S,{childList:!0,subtree:!0})):e.props.scrollbarVisibility!=="hover"&&(u==null||u.disconnect(),u=null),$=D(),e.props.scrollbarVisibility!=="hover"?U():t&&!t.hasAttribute("tabindex")&&(t.tabIndex=0,C=t)},W=S=>{const x=e.props.orientation??"vertical";return x==="both"||x===S},J=S=>{const x=t;if(!x||!W(S))return!1;const P=S==="vertical",A=P?x.scrollHeight:x.scrollWidth,f=P?x.clientHeight:x.clientWidth;if(A<=f+1||f<=0)return!1;const q=P?i:a,N=P?s:n;if(!q||!N)return!0;const j=P?q.clientHeight:q.clientWidth;if(j<=0)return!0;const be=f/A,Ve=Math.max(j*be,qi),Ne=j-Ve,Oe=P?x.scrollTop:x.scrollLeft,d=A-f,T=d>0?Oe/d*Ne:0;return P?(N.style.height=`${Ve}px`,N.style.transform=`translateY(${T}px)`):(N.style.width=`${Ve}px`,N.style.transform=`translateX(${T}px)`),!0},ne=()=>{const S=J("vertical"),x=J("horizontal");S===m&&x===c||(m=S,c=x,e.requestUpdate())},X=()=>{const S=t;S&&(ne(),e.emit("scroll",{scrollTop:S.scrollTop,scrollLeft:S.scrollLeft}))},B=()=>{ue(),U(),t&&t.removeEventListener("scroll",X),l==null||l.disconnect(),l=null,h==null||h.disconnect(),h=null,t=null},se=()=>{const S=e.props.viewport??null;if(S!==t&&(B(),t=S,!!t)){if(t.addEventListener("scroll",X,{passive:!0}),typeof ResizeObserver<"u"){l=new ResizeObserver(()=>ne()),l.observe(t);const x=t.firstElementChild;x&&(h=new ResizeObserver(()=>ne()),h.observe(x))}ne()}},K=(S,x)=>{var b;const P=t,A=P==null?void 0:P.ownerDocument.defaultView;if(!P||!A||R||x.button!==0)return;const f=S==="vertical",q=f?i:a,N=f?s:n;if(!q||!N)return;x.preventDefault();const j=f?x.clientY:x.clientX,be=f?P.scrollTop:P.scrollLeft,Ve=f?q.clientHeight:q.clientWidth,Ne=f?N.offsetHeight:N.offsetWidth,Oe=f?P.scrollHeight:P.scrollWidth,d=f?P.clientHeight:P.clientWidth,T=Ve-Ne,Z=Oe-d;if(T<=0||Z<=0)return;const ie=x.pointerId,de=I=>{v=I.pointerType!=="touch"&&[r,i,a].some(Ce=>{if(!Ce||Ce.hidden)return!1;const ke=Ce.getBoundingClientRect();return I.clientX>=ke.left&&I.clientX<ke.right&&I.clientY>=ke.top&&I.clientY<ke.bottom})},Se=I=>{if(I.pointerId!==ie)return;de(I);const Ce=(f?I.clientY:I.clientX)-j,ke=be+Ce/T*Z;f?P.scrollTop=ke:P.scrollLeft=ke},ye=I=>{I.pointerId===ie&&(de(I),I.type!=="pointerup"&&(v=!1),R==null||R(),e.requestUpdate())};R=()=>{var I;R=null,A.removeEventListener("pointermove",Se),A.removeEventListener("pointerup",ye),A.removeEventListener("pointercancel",ye),N.removeEventListener("lostpointercapture",ye);try{(I=N.releasePointerCapture)==null||I.call(N,ie)}catch{}},A.addEventListener("pointermove",Se),A.addEventListener("pointerup",ye),A.addEventListener("pointercancel",ye),N.addEventListener("lostpointercapture",ye);try{(b=N.setPointerCapture)==null||b.call(N,ie)}catch{}e.requestUpdate()};e.onCleanup(B);const k=(S,x)=>{const P=S==="vertical",A=q=>{P?i=q??null:a=q??null},f=q=>{P?s=q??null:n=q??null,q&&ne()};return o.html`<div
1889
- class=${L("moz-scroll-area-scrollbar",e.props.scrollbarClass)}
1890
- data-orientation=${S}
1891
- ?hidden=${!x}
1892
- ${_.ref(A)}
1887
+ ${v?o.html`<span class=${A("moz-avatar-fallback",r.fallbackClass)}>${e.slot("fallback")}</span>`:o.nothing}
1888
+ </span>`},api:{get status(){return t}}}}}),Yi={name:"MozAvatar",core:Ls,props:["src","alt","delayMs","imageClass","fallbackClass"],emits:["loadingStatusChange"],slots:["fallback"],expose:!0},Zi=new Set(["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass","class","style"]),ji=20,zs=ve({name:"moz-scroll-area",defaults:{orientation:"vertical",scrollbarVisibility:"always"},setup(e){let t=null,s=null,n=null,i=null,a=null,m=!1,c=!1,l=null,h=null,r=null,p=null,u=null,v=!1,S=!1,I=null,w=null;const y=k=>!!k&&"nodeType"in k&&(!!(r!=null&&r.contains(k))||!!(p!=null&&p.contains(k))),P=()=>y((r==null?void 0:r.ownerDocument.activeElement)??null),$=()=>{const k=P();k!==S&&(S=k,e.requestUpdate())},x=k=>{p=k??null},_=k=>{k.pointerType!=="touch"&&(v=!0,e.requestUpdate())},Y=k=>{k.pointerType!=="touch"&&(v=y(k.relatedTarget),e.requestUpdate())},j=()=>{$()},le=()=>{e.requestUpdate()},ue=()=>{I==null||I(),u==null||u.disconnect(),u=null,r==null||r.removeEventListener("pointerenter",_),r==null||r.removeEventListener("pointerleave",Y),r==null||r.removeEventListener("focusin",j),r==null||r.removeEventListener("focusout",le),r=null,v=S=!1},W=()=>{(w==null?void 0:w.getAttribute("tabindex"))==="0"&&w.removeAttribute("tabindex"),w=null},D=()=>{var T;const k=e.props.interactionRoot??t;k!==r&&(ue(),r=k,k&&(k.addEventListener("pointerenter",_),k.addEventListener("pointerleave",Y),k.addEventListener("focusin",j),k.addEventListener("focusout",le)));const z=(T=k==null?void 0:k.ownerDocument.defaultView)==null?void 0:T.MutationObserver;e.props.scrollbarVisibility==="hover"&&k&&!u&&z?(u=new z($),u.observe(k,{childList:!0,subtree:!0})):e.props.scrollbarVisibility!=="hover"&&(u==null||u.disconnect(),u=null),S=P(),e.props.scrollbarVisibility!=="hover"?W():t&&!t.hasAttribute("tabindex")&&(t.tabIndex=0,w=t)},K=k=>{const z=e.props.orientation??"vertical";return z==="both"||z===k},ee=k=>{const z=t;if(!z||!K(k))return!1;const T=k==="vertical",V=T?z.scrollHeight:z.scrollWidth,f=T?z.clientHeight:z.clientWidth;if(V<=f+1||f<=0)return!1;const R=T?i:a,U=T?s:n;if(!R||!U)return!0;const X=T?R.clientHeight:R.clientWidth;if(X<=0)return!0;const we=f/V,De=Math.max(X*we,ji),_e=X-De,Be=T?z.scrollTop:z.scrollLeft,d=V-f,L=d>0?Be/d*_e:0;return T?(U.style.height=`${De}px`,U.style.transform=`translateY(${L}px)`):(U.style.width=`${De}px`,U.style.transform=`translateX(${L}px)`),!0},ne=()=>{const k=ee("vertical"),z=ee("horizontal");k===m&&z===c||(m=k,c=z,e.requestUpdate())},Q=()=>{const k=t;k&&(ne(),e.emit("scroll",{scrollTop:k.scrollTop,scrollLeft:k.scrollLeft}))},F=()=>{ue(),W(),t&&t.removeEventListener("scroll",Q),l==null||l.disconnect(),l=null,h==null||h.disconnect(),h=null,t=null},se=()=>{const k=e.props.viewport??null;if(k!==t&&(F(),t=k,!!t)){if(t.addEventListener("scroll",Q,{passive:!0}),typeof ResizeObserver<"u"){l=new ResizeObserver(()=>ne()),l.observe(t);const z=t.firstElementChild;z&&(h=new ResizeObserver(()=>ne()),h.observe(z))}ne()}},G=(k,z)=>{var C;const T=t,V=T==null?void 0:T.ownerDocument.defaultView;if(!T||!V||I||z.button!==0)return;const f=k==="vertical",R=f?i:a,U=f?s:n;if(!R||!U)return;z.preventDefault();const X=f?z.clientY:z.clientX,we=f?T.scrollTop:T.scrollLeft,De=f?R.clientHeight:R.clientWidth,_e=f?U.offsetHeight:U.offsetWidth,Be=f?T.scrollHeight:T.scrollWidth,d=f?T.clientHeight:T.clientWidth,L=De-_e,Z=Be-d;if(L<=0||Z<=0)return;const ie=z.pointerId,de=q=>{v=q.pointerType!=="touch"&&[r,i,a].some(ye=>{if(!ye||ye.hidden)return!1;const Ee=ye.getBoundingClientRect();return q.clientX>=Ee.left&&q.clientX<Ee.right&&q.clientY>=Ee.top&&q.clientY<Ee.bottom})},ke=q=>{if(q.pointerId!==ie)return;de(q);const ye=(f?q.clientY:q.clientX)-X,Ee=we+ye/L*Z;f?T.scrollTop=Ee:T.scrollLeft=Ee},$e=q=>{q.pointerId===ie&&(de(q),q.type!=="pointerup"&&(v=!1),I==null||I(),e.requestUpdate())};I=()=>{var q;I=null,V.removeEventListener("pointermove",ke),V.removeEventListener("pointerup",$e),V.removeEventListener("pointercancel",$e),U.removeEventListener("lostpointercapture",$e);try{(q=U.releasePointerCapture)==null||q.call(U,ie)}catch{}},V.addEventListener("pointermove",ke),V.addEventListener("pointerup",$e),V.addEventListener("pointercancel",$e),U.addEventListener("lostpointercapture",$e);try{(C=U.setPointerCapture)==null||C.call(U,ie)}catch{}e.requestUpdate()};e.onCleanup(F);const E=(k,z)=>{const T=k==="vertical",V=R=>{T?i=R??null:a=R??null},f=R=>{T?s=R??null:n=R??null,R&&ne()};return o.html`<div
1889
+ class=${A("moz-scroll-area-scrollbar",e.props.scrollbarClass)}
1890
+ data-orientation=${k}
1891
+ ?hidden=${!z}
1892
+ ${N.ref(V)}
1893
1893
  >
1894
1894
  <div
1895
- class=${L("moz-scroll-area-thumb",e.props.thumbClass)}
1896
- @pointerdown=${q=>K(S,q)}
1897
- ${_.ref(f)}
1895
+ class=${A("moz-scroll-area-thumb",e.props.thumbClass)}
1896
+ @pointerdown=${R=>G(k,R)}
1897
+ ${N.ref(f)}
1898
1898
  ></div>
1899
- </div>`};return{render(){se(),z();const S=e.props,x=ve(S,Ri),P=W("vertical")&&W("horizontal");return o.html`<div
1900
- class=${L("moz-scroll-area-bars",S.class)}
1901
- data-orientation=${S.orientation??"vertical"}
1902
- data-state=${S.scrollbarVisibility!=="hover"||v||$||R?"visible":"hidden"}
1903
- style=${ee.styleMap(me(S.style))}
1904
- @pointerenter=${G}
1899
+ </div>`};return{render(){se(),D();const k=e.props,z=fe(k,Zi),T=K("vertical")&&K("horizontal");return o.html`<div
1900
+ class=${A("moz-scroll-area-bars",k.class)}
1901
+ data-orientation=${k.orientation??"vertical"}
1902
+ data-state=${k.scrollbarVisibility!=="hover"||v||S||I?"visible":"hidden"}
1903
+ style=${J.styleMap(me(k.style))}
1904
+ @pointerenter=${_}
1905
1905
  @pointerleave=${Y}
1906
- @focusin=${Q}
1906
+ @focusin=${j}
1907
1907
  @focusout=${le}
1908
- ${_.ref(V)}
1909
- ${ce(x)}
1908
+ ${N.ref(x)}
1909
+ ${ce(z)}
1910
1910
  >
1911
- ${W("vertical")?k("vertical",m):o.nothing}
1912
- ${W("horizontal")?k("horizontal",c):o.nothing}
1913
- ${P&&m&&c?o.html`<div class="moz-scroll-area-corner"></div>`:o.nothing}
1914
- </div>`}}}}),Ii={name:"MozScrollAreaBars",core:ks,props:["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass"],emits:["scroll"],expose:!1,syncUpdate:!0},Es=["accent","neutral","info","success","warning","danger"],Ps=["soft","outline","solid"],Ms=["sm","md","lg"],Fi=new Set(["tone","appearance","size","dot","text","class","style"]);function qt(e,t,s){return typeof t=="string"&&e.includes(t)?t:s}const Ts=we({name:"moz-badge",defaults:{tone:"neutral",appearance:"soft",size:"md",dot:!1},setup(e){return{render(){const t=e.props,s=ve(t,Fi),n=qt(Es,t.tone,"neutral"),i=qt(Ps,t.appearance,"soft"),a=qt(Ms,t.size,"md"),m=e.slots.has("default")?e.slot("default"):t.text??o.nothing;return o.html`<span
1915
- class=${L("moz-badge",`size-${a}`,t.class)}
1911
+ ${K("vertical")?E("vertical",m):o.nothing}
1912
+ ${K("horizontal")?E("horizontal",c):o.nothing}
1913
+ ${T&&m&&c?o.html`<div class="moz-scroll-area-corner"></div>`:o.nothing}
1914
+ </div>`}}}}),Xi={name:"MozScrollAreaBars",core:zs,props:["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass"],emits:["scroll"],expose:!1,syncUpdate:!0},xs=["accent","neutral","info","success","warning","danger"],As=["soft","outline","solid"],Ds=["sm","md","lg"],Qi=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=ve({name:"moz-badge",defaults:{tone:"neutral",appearance:"soft",size:"md",dot:!1},setup(e){return{render(){const t=e.props,s=fe(t,Qi),n=Ft(xs,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
1915
+ class=${A("moz-badge",`size-${a}`,t.class)}
1916
1916
  data-tone=${n}
1917
1917
  data-appearance=${i}
1918
- style=${ee.styleMap(me(t.style))}
1918
+ style=${J.styleMap(me(t.style))}
1919
1919
  ${ce(s)}
1920
1920
  >${t.dot?o.html`<span class="moz-badge-dot"></span>`:o.nothing}${m}</span
1921
- >`}}}}),Bi={name:"MozBadge",core:Ts,booleanProps:["dot"],props:["tone","appearance","size","dot","text"],emits:[],slots:["default"],expose:!1,syncUpdate:!0},xs=["accent","neutral","info","success","warning","danger"],Ls=["outline","soft"],zs=["sm","md"],Oi=new Set(["tone","appearance","size","selected","disabled","removable","labelInteractive","removeLabel","text","class","style"]);function It(e,t,s){return typeof t=="string"&&e.includes(t)?t:s}const As=we({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=ve(n,Oi),a=It(xs,n.tone,"accent"),m=It(Ls,n.appearance,"outline"),c=It(zs,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}
1921
+ >`}}}}),Ji={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"],er=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=ve({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=fe(n,er),a=Bt(Is,n.tone,"accent"),m=Bt(Rs,n.appearance,"outline"),c=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}
1922
1922
  >${h}${r}</button
1923
1923
  >`:o.html`<span class="moz-chip-label">${h}${r}</span>`;return o.html`<span
1924
- class=${L("moz-chip","removable",`size-${c}`,{disabled:l},n.class)}
1924
+ class=${A("moz-chip","removable",`size-${c}`,{disabled:l},n.class)}
1925
1925
  data-tone=${a}
1926
1926
  data-appearance=${m}
1927
- style=${ee.styleMap(me(n.style))}
1927
+ style=${J.styleMap(me(n.style))}
1928
1928
  ${ce(i)}
1929
1929
  >${v}<button
1930
1930
  type="button"
@@ -1932,20 +1932,20 @@
1932
1932
  aria-label=${n.removeLabel||e.locale.Chip.remove}
1933
1933
  ?disabled=${l}
1934
1934
  @click=${s}
1935
- >${Ot("currentColor")}</button
1935
+ >${_t("currentColor")}</button
1936
1936
  ></span
1937
1937
  >`}const p=!!n.selected;return o.html`<button
1938
1938
  type="button"
1939
- class=${L("moz-chip",`size-${c}`,{"is-selected":p,disabled:l},n.class)}
1939
+ class=${A("moz-chip",`size-${c}`,{"is-selected":p,disabled:l},n.class)}
1940
1940
  data-tone=${a}
1941
1941
  data-appearance=${m}
1942
1942
  aria-pressed=${p?"true":"false"}
1943
1943
  ?disabled=${l}
1944
- style=${ee.styleMap(me(n.style))}
1944
+ style=${J.styleMap(me(n.style))}
1945
1945
  ${ce(i)}
1946
1946
  @click=${t}
1947
1947
  >${h}${r}</button
1948
- >`}}}}),Hi={name:"MozChip",core:As,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},Mo=()=>o.html`<svg
1948
+ >`}}}}),tr={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
1949
1949
  width="20"
1950
1950
  height="20"
1951
1951
  viewBox="0 0 20 20"
@@ -1958,7 +1958,7 @@
1958
1958
  clip-rule="evenodd"
1959
1959
  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"
1960
1960
  ></path>
1961
- </svg>`,_i=()=>o.html`<svg
1961
+ </svg>`,Fs=()=>o.html`<svg
1962
1962
  width="20"
1963
1963
  height="20"
1964
1964
  viewBox="0 0 20 20"
@@ -1971,7 +1971,7 @@
1971
1971
  clip-rule="evenodd"
1972
1972
  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"
1973
1973
  ></path>
1974
- </svg>`,Ni=()=>o.html`<svg
1974
+ </svg>`,Bs=()=>o.html`<svg
1975
1975
  width="20"
1976
1976
  height="20"
1977
1977
  viewBox="0 0 20 20"
@@ -1984,7 +1984,7 @@
1984
1984
  clip-rule="evenodd"
1985
1985
  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"
1986
1986
  ></path>
1987
- </svg>`,Ui=()=>o.html`<svg
1987
+ </svg>`,Hs=()=>o.html`<svg
1988
1988
  width="20"
1989
1989
  height="20"
1990
1990
  viewBox="0 0 20 20"
@@ -1997,7 +1997,7 @@
1997
1997
  clip-rule="evenodd"
1998
1998
  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"
1999
1999
  ></path>
2000
- </svg>`,Wi=()=>o.html`<svg
2000
+ </svg>`,Ns=()=>o.html`<svg
2001
2001
  width="20"
2002
2002
  height="20"
2003
2003
  viewBox="0 0 20 20"
@@ -2010,7 +2010,7 @@
2010
2010
  clip-rule="evenodd"
2011
2011
  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"
2012
2012
  ></path>
2013
- </svg>`,Ki=()=>o.html`<svg
2013
+ </svg>`,_s=()=>o.html`<svg
2014
2014
  width="14"
2015
2015
  height="14"
2016
2016
  viewBox="0 0 24 24"
@@ -2022,17 +2022,17 @@
2022
2022
  aria-hidden="true"
2023
2023
  >
2024
2024
  <path d="M18 6 6 18M6 6l12 12"></path>
2025
- </svg>`,Vs=["info","success","warning","danger","neutral","accent"],Gi=new Set(["tone","title","text","dismissible","dismissLabel","hideIcon","compact","live","class","style"]),Yi={info:Mo,success:_i,warning:Ni,danger:Ui,neutral:Wi,accent:Mo};function Zi(e){return typeof e=="string"&&Vs.includes(e)?e:"info"}const Ds=we({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=ve(s,Gi),i=Zi(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
2026
- class=${L("moz-callout",{compact:!!s.compact},s.class)}
2025
+ </svg>`,Us=["info","success","warning","danger","neutral","accent"],or=new Set(["tone","title","text","dismissible","dismissLabel","hideIcon","compact","live","class","style"]),sr={info:Wt,success:Fs,warning:Bs,danger:Hs,neutral:Ns,accent:Wt};function lr(e){return typeof e=="string"&&Us.includes(e)?e:"info"}const Ws=ve({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=fe(s,or),i=lr(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
2026
+ class=${A("moz-callout",{compact:!!s.compact},s.class)}
2027
2027
  data-tone=${i}
2028
- role=${Me.ifDefined(m?a?"alert":"status":void 0)}
2029
- aria-live=${Me.ifDefined(m?a?"assertive":"polite":void 0)}
2030
- aria-atomic=${Me.ifDefined(m?"true":void 0)}
2031
- style=${ee.styleMap(me(s.style))}
2028
+ role=${Ce.ifDefined(m?a?"alert":"status":void 0)}
2029
+ aria-live=${Ce.ifDefined(m?a?"assertive":"polite":void 0)}
2030
+ aria-atomic=${Ce.ifDefined(m?"true":void 0)}
2031
+ style=${J.styleMap(me(s.style))}
2032
2032
  ${ce(n)}
2033
2033
  >
2034
2034
  ${s.hideIcon?o.nothing:o.html`<span class="moz-callout-icon"
2035
- >${e.slots.has("icon")?e.slot("icon"):Yi[i]()}</span
2035
+ >${e.slots.has("icon")?e.slot("icon"):sr[i]()}</span
2036
2036
  >`}
2037
2037
  <div class="moz-callout-body">
2038
2038
  ${l!==void 0?o.html`<div class="moz-callout-title">${l}</div>`:o.nothing}
@@ -2044,7 +2044,72 @@
2044
2044
  aria-label=${s.dismissLabel||e.locale.Callout.dismiss}
2045
2045
  @click=${t}
2046
2046
  >
2047
- ${Ki()}
2047
+ ${_s()}
2048
2048
  </button>`:o.nothing}
2049
- </div>`}}}}),ji={name:"MozCallout",core:Ds,booleanProps:["compact","dismissible","hideIcon","live"],props:["tone","title","text","dismissible","dismissLabel","hideIcon","compact","live"],emits:["dismiss"],slots:["icon","heading","default"],expose:!1,syncUpdate:!0};exports.AVATAR_SPEC=Di;exports.BADGE_APPEARANCES=Ps;exports.BADGE_SIZES=Ms;exports.BADGE_SPEC=Bi;exports.BADGE_TONES=Es;exports.BREADCRUMB_SPEC=fl;exports.BUTTON_SPEC=cl;exports.CALENDAR_SPEC=Xl;exports.CALLOUT_SPEC=ji;exports.CALLOUT_TONES=Vs;exports.CHECKBOX_SPEC=El;exports.CHIP_APPEARANCES=Ls;exports.CHIP_SIZES=zs;exports.CHIP_SPEC=Hi;exports.CHIP_TONES=xs;exports.COLLAPSIBLE_HEIGHT_VAR=ys;exports.COLLAPSIBLE_SPEC=Ai;exports.CONTEXTMENU_SPEC=In;exports.CONTROLLER_SPEC=pi;exports.ChromeComponent=xo;exports.DATEINPUT_SPEC=sn;exports.DEFAULT_TREE_PROPS=Ht;exports.EMPTYSTATE_SPEC=Sl;exports.INPUT_SPEC=xl;exports.LABEL_SPEC=pl;exports.MOZ_BOOLEAN_PROPS=Js;exports.MULTISELECT_SPEC=kn;exports.NUMBERINPUT_SPEC=Ol;exports.Observable=Ys;exports.Overlay=mt;exports.PASSWORDINPUT_SPEC=Al;exports.POPOVER_SPEC=Li;exports.POPUP_SPEC=mn;exports.PortalHost=kt;exports.RADIO_SPEC=Ml;exports.SCROLLAREA_SPEC=Ii;exports.SEGMENT_TONES=_o;exports.SELECT_SPEC=wn;exports.SLIDER_SPEC=Ul;exports.SPLITPANE_SPEC=si;exports.SlotHost=Lo;exports.TABLESELECT_SPEC=Wn;exports.TAB_SPEC=_l;exports.TAGINPUT_SPEC=Vn;exports.TEXTAREA_SPEC=Dl;exports.TIMEPICKER_SPEC=xn;exports.TOAST_SPEC=Si;exports.TOGGLE_SPEC=ml;exports.TOOLTIP_SPEC=Mi;exports.TREESELECT_SPEC=ti;exports.Timer=gs;exports.breadcrumbTemplate=Zt;exports.buttonTemplate=ct;exports.checkboxTemplate=$t;exports.circleLoader=Ut;exports.cn=L;exports.computeTooltipPlacement=ws;exports.createAvatar=Ss;exports.createBadge=Ts;exports.createBreadCrumb=Io;exports.createButton=Do;exports.createCalendar=eo;exports.createCallout=Ds;exports.createCheckBox=Ho;exports.createChip=As;exports.createCollapsible=$s;exports.createContextMenu=rs;exports.createController=fs;exports.createDateInput=Jo;exports.createEmptyState=Oo;exports.createInput=Uo;exports.createLabel=Ro;exports.createMultiSelect=ss;exports.createNumberInput=Zo;exports.createPasswordInput=Go;exports.createPopover=Cs;exports.createPopup=ts;exports.createRadio=No;exports.createScrollArea=ks;exports.createSelect=os;exports.createSlider=Qo;exports.createSplitPane=ms;exports.createTab=Xo;exports.createTableSelect=as;exports.createTagInput=is;exports.createTextArea=Yo;exports.createTimePicker=ns;exports.createToast=io;exports.createToggle=qo;exports.createTooltip=bs;exports.createTreeSelect=hs;exports.createValidator=ol;exports.dayjs=Pe;exports.defaultEmptyStateMessages=Fo;exports.defineHeadless=we;exports.dismissLayerCount=al;exports.enUS=Zs;exports.generateUUID=zo;exports.iconArrowRight=Kt;exports.iconCheckBox=jt;exports.iconCheckBoxChecked=Xt;exports.iconCheckboxIndeterminate=Qt;exports.iconClose=jo;exports.iconFavorite=Gt;exports.iconFavoriteFilled=Yt;exports.iconInfo=Jt;exports.iconPasswordHidden=Wo;exports.iconPasswordVisible=Ko;exports.jaJP=Xs;exports.koKR=Bt;exports.labelClass=Wt;exports.labelTemplate=Be;exports.normalizeStyle=me;exports.pickRest=ve;exports.pxToRem=Te;exports.registerDismissLayer=Nt;exports.registerForeignLayer=rl;exports.registerSelfHandledLayer=ft;exports.shallowEqual=it;exports.spread=ce;exports.toggleTemplate=Pt;exports.uniqueId=Xe;exports.useToast=$i;exports.zhCN=js;
2049
+ </div>`}}}}),nr={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"],ir=new Set(["tone","title","body","time","datetime","dismissible","closeLabel","duration","pauseOnHover","exitDuration","position","inline","onSelect","onDismiss","class","style"]),rr={info:Wt,success:Fs,warning:Bs,danger:Hs,neutral:Ns};function ar(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=ve({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 P,$;a=null,($=(P=e.props).onDismiss)==null||$.call(P),n=!0,e.requestUpdate()},e.props.exitDuration??150))},c=()=>{t=!0,e.requestUpdate();const P=e.props.duration;P&&P>0&&(i=new po(m,P))};let l=!1,h=!1,r=!1;const p=()=>{if(!e.props.pauseOnHover||!i||s)return;const P=l||h;P!==r&&(r=P,P?i.pause():i.resume())},u=P=>{l=P,p()},v=()=>{h=!0,p()},S=P=>{const $=P.relatedTarget;$&&P.currentTarget.contains($)||(h=!1,p())},I=()=>{const P=e.props.onSelect;typeof P=="function"&&(P(),e.props.dismissible&&m())},w=P=>{P.key!=="Enter"&&P.key!==" "||(P.preventDefault(),I())};e.props.inline||Vo(Kt(e.props.position)),e.onCleanup(()=>{i&&i.stop(),a&&clearTimeout(a)});const y=()=>{if(n)return o.nothing;const P=e.props,$=ar(P.tone),x=$==="danger",_=typeof P.onSelect=="function",Y=e.slots.has("heading")?e.slot("heading"):P.title?P.title:void 0,j=e.slots.has("description")?e.slot("description"):P.body?P.body:void 0;return o.html`<div
2050
+ data-testid="notification-card"
2051
+ ${ce(fe(P,ir))}
2052
+ class=${A("moz-notification-card",{"is-selectable":_},P.class)}
2053
+ data-tone=${$}
2054
+ role=${x?"alert":"status"}
2055
+ aria-live=${x?"assertive":"polite"}
2056
+ aria-atomic="true"
2057
+ style=${J.styleMap({...me(P.style),...t?{}:{display:"none"}})}
2058
+ @mouseenter=${()=>u(!0)}
2059
+ @mouseleave=${()=>u(!1)}
2060
+ @focusin=${v}
2061
+ @focusout=${S}
2062
+ >
2063
+ <span class="moz-notification-card-icon"
2064
+ >${e.slots.has("avatar")?e.slot("avatar"):rr[$]()}</span
2065
+ >
2066
+ <div class="moz-notification-card-main">
2067
+ <div
2068
+ class="moz-notification-card-content"
2069
+ role=${Ce.ifDefined(_?"button":void 0)}
2070
+ tabindex=${Ce.ifDefined(_?"0":void 0)}
2071
+ @click=${I}
2072
+ @keydown=${_?w:o.nothing}
2073
+ >
2074
+ ${Y!==void 0?o.html`<div class="moz-notification-card-heading">${Y}</div>`:o.nothing}
2075
+ ${j!==void 0?o.html`<div class="moz-notification-card-description">${j}</div>`:o.nothing}
2076
+ ${P.time?o.html`<time class="moz-notification-card-time" datetime=${Ce.ifDefined(P.datetime||void 0)}
2077
+ >${P.time}</time
2078
+ >`:o.nothing}
2079
+ </div>
2080
+ ${e.slots.has("actions")?o.html`<div class="moz-notification-card-actions">${e.slot("actions")}</div>`:o.nothing}
2081
+ </div>
2082
+ ${P.dismissible?o.html`<button
2083
+ type="button"
2084
+ class="moz-notification-card-close"
2085
+ aria-label=${P.closeLabel||e.locale.Notification.close}
2086
+ @click=${m}
2087
+ >
2088
+ ${_s()}
2089
+ </button>`:o.nothing}
2090
+ </div>`};return{api:{dismiss:m,isClosing:()=>s},onMounted(){c()},getPortalContainer:()=>e.props.inline?null:Vo(Kt(e.props.position)),renderPortal(){return e.props.inline?o.nothing:y()},render(){return e.props.inline?y():o.nothing}}}}),cr=new Set(["title","body","time","datetime","unread","onSelect","class","style"]),Ys=ve({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=fe(s,cr),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,c=A("moz-notification-item",{"is-unread":i},s.class),l=J.styleMap(me(s.style)),h=o.html`
2091
+ <span class="moz-notification-item-header">
2092
+ ${a!==void 0?o.html`<span class="moz-notification-item-heading">${a}</span>`:o.nothing}
2093
+ ${i?o.html`<span class="moz-notification-item-unread"
2094
+ ><span class="moz-notification-item-dot" aria-hidden="true"></span
2095
+ ><span class="moz-notification-item-sr">${e.locale.Notification.unread}</span></span
2096
+ >`:o.nothing}
2097
+ ${e.slots.has("meta")?o.html`<span class="moz-notification-item-meta">${e.slot("meta")}</span>`:o.nothing}
2098
+ </span>
2099
+ ${m!==void 0?o.html`<span class="moz-notification-item-description">${m}</span>`:o.nothing}
2100
+ ${s.time?o.html`<time class="moz-notification-item-time" datetime=${Ce.ifDefined(s.datetime||void 0)}
2101
+ >${s.time}</time
2102
+ >`:o.nothing}
2103
+ `;return typeof s.onSelect=="function"?o.html`<button
2104
+ type="button"
2105
+ class=${c}
2106
+ data-unread=${i?"true":"false"}
2107
+ style=${l}
2108
+ ${ce(n)}
2109
+ @click=${t}
2110
+ >
2111
+ ${h}
2112
+ </button>`:o.html`<div class=${c} data-unread=${i?"true":"false"} style=${l} ${ce(n)}>
2113
+ ${h}
2114
+ </div>`}}}}),dr=3,nt=[];let ur=0;const pr=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())},hr=(e={})=>({open:(i={},a={})=>{const m={...e,...i},{id:c,max:l,onDismiss:h,...r}=m;if(c){const x=nt.find(_=>_.id===c&&!Pt(_));if(x)return{id:x.id,close:()=>ut(x)}}const p=c||`moz-notification-${++ur}`,u=Kt(r.position),v=typeof l=="number"&&l>0?Math.floor(l):dr,S=nt.filter(x=>x.position===u&&!Pt(x));for(let x=0;x<=S.length-v;x++)ut(S[x]);const I=document.createElement("div");I.style.display="contents",document.body.appendChild(I);let w;const y={...r,position:u,inline:!1,onDismiss:()=>{const x=w?nt.indexOf(w):-1;x!==-1&&nt.splice(x,1),h==null||h(),queueMicrotask(()=>{var _;w==null||w.instance.destroy(),pr(I),(_=a.onRemoved)==null||_.call(a)})}},P=mo(I,y,(()=>{}),{slots:a.slots,locale:a.locale});w={id:p,position:u,instance:P,closing:!1},nt.push(w);const $=w;return{id:p,close:()=>ut($)}},close:i=>{const a=nt.find(m=>m.id===i&&!Pt(m));a&&ut(a)},closeAll:()=>{for(const i of nt.slice())ut(i)}}),mr={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},fr={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=Yi;exports.BADGE_APPEARANCES=As;exports.BADGE_SIZES=Ds;exports.BADGE_SPEC=Ji;exports.BADGE_TONES=xs;exports.BREADCRUMB_SPEC=Ll;exports.BUTTON_SPEC=kl;exports.CALENDAR_SPEC=pn;exports.CALLOUT_SPEC=nr;exports.CALLOUT_TONES=Us;exports.CHECKBOX_SPEC=Fl;exports.CHIP_APPEARANCES=Rs;exports.CHIP_SIZES=qs;exports.CHIP_SPEC=tr;exports.CHIP_TONES=Is;exports.COLLAPSIBLE_HEIGHT_VAR=Ts;exports.COLLAPSIBLE_SPEC=Ki;exports.CONTEXTMENU_SPEC=Xn;exports.CONTROLLER_SPEC=Pi;exports.ChromeComponent=Ro;exports.DATEINPUT_SPEC=bn;exports.DEFAULT_TREE_PROPS=Ut;exports.EMPTYSTATE_SPEC=ql;exports.INPUT_SPEC=_l;exports.LABEL_SPEC=Pl;exports.MOZ_BOOLEAN_PROPS=hl;exports.MULTISELECT_SPEC=On;exports.NOTIFICATION_CARD_SPEC=mr;exports.NOTIFICATION_ITEM_SPEC=fr;exports.NOTIFICATION_POSITIONS=Gs;exports.NOTIFICATION_TONES=Ks;exports.NUMBERINPUT_SPEC=en;exports.Observable=al;exports.Overlay=gt;exports.PASSWORDINPUT_SPEC=Kl;exports.POPOVER_SPEC=Ui;exports.POPUP_SPEC=Mn;exports.PortalHost=Tt;exports.RADIO_SPEC=Hl;exports.SCROLLAREA_SPEC=Xi;exports.SEGMENT_TONES=Zo;exports.SELECT_SPEC=An;exports.SLIDER_SPEC=ln;exports.SPLITPANE_SPEC=vi;exports.SlotHost=qo;exports.TABLESELECT_SPEC=ni;exports.TAB_SPEC=on;exports.TAGINPUT_SPEC=Gn;exports.TEXTAREA_SPEC=Yl;exports.TIMEPICKER_SPEC=_n;exports.TOAST_SPEC=qi;exports.TOGGLE_SPEC=Ml;exports.TOOLTIP_SPEC=Hi;exports.TREESELECT_SPEC=fi;exports.Timer=po;exports.breadcrumbTemplate=eo;exports.buttonTemplate=pt;exports.checkboxTemplate=kt;exports.circleLoader=Zt;exports.cn=A;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=ds;exports.createNotificationCard=mo;exports.createNotificationItem=Ys;exports.createNumberInput=os;exports.createPasswordInput=es;exports.createPopover=Ps;exports.createPopup=as;exports.createRadio=jo;exports.createScrollArea=zs;exports.createSelect=cs;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=gl;exports.dayjs=Te;exports.defaultEmptyStateMessages=Wo;exports.defineHeadless=ve;exports.dismissLayerCount=$l;exports.enUS=cl;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=ul;exports.koKR=Nt;exports.labelClass=jt;exports.labelTemplate=Fe;exports.normalizeStyle=me;exports.pickRest=fe;exports.pxToRem=Me;exports.registerDismissLayer=Yt;exports.registerForeignLayer=yl;exports.registerSelfHandledLayer=vt;exports.shallowEqual=rt;exports.spread=ce;exports.toggleTemplate=Lt;exports.uniqueId=Xe;exports.useNotification=hr;exports.useToast=Ri;exports.zhCN=dl;
2050
2115
  //# sourceMappingURL=index.cjs.map