@vmscloud/moz-ui-components-core 0.1.66 → 0.1.67
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 +88 -88
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +231 -226
- package/dist/index.js.map +1 -1
- package/dist/runtime/ChromeComponent.d.ts +5 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";var gn=Object.defineProperty;var vn=(e,t,o)=>t in e?gn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var
|
|
2
|
-
조회 조건을 변경하였다면, 조회 버튼을 다시 눌러주세요.`,searchEmptyHeader:"검색 결과 없음",searchEmptyContent:"필터 값을 확인하고 다시 시도해 주세요."},TableSelect:{searchPlaceholder:"검색",emptyText:"데이터가 없습니다",requiredMessage:"{label} 은(는) 필수입니다",footerSelect:"선택",footerNavigate:"이동",footerClose:"닫기"},Common:{requiredMessage:"{label} 은(는) 필수입니다"},Grid:{layoutSetting:"보기 설정",filter:"필터",sort:"정렬",customCellStyle:"조건부 서식 설정",reset:"초기화",searchFilter:"검색",newView:"새 뷰",selectAll:"전체 선택",columnPicker:"열 표시/숨김 설정",viewToolbar:"Tool Bar 보기",viewFooter:"Footer 보기",viewGroupPanel:"그룹 패널 보기",resetFilterAndSort:"필터 및 정렬 초기화",defaultView:"기본 뷰",filterPopup:"필터 설정",resetFilter:"필터 초기화",addFilter:"필터 추가",sortingPopup:"정렬 설정",ascending:"오름차순",descending:"내림차순",resetSort:"정렬 초기화",addSort:"정렬 추가",symbolEqual:"같음",symbolNotEqual:"같지 않음",symbolContains:"포함",symbolNotContains:"포함하지 않음",symbolLessThan:"보다 작음",symbolGreaterThan:"보다 큼",symbolLessOrEqual:"이하",symbolGreaterOrEqual:"이상",symbolEmpty:"비어 있음",symbolNotEmpty:"비어 있지 않음",customCellRuleNamePlaceholder:"규칙 이름을 입력하세요",addFormulaCondition:"조건 추가",applicationColumn:"적용 열",backgroundColor:"배경색",fontColor:"글꼴 색",resetCustomCell:"초기화",addFormulaConditionSet:"규칙 추가",customColor:"사용자 지정 색상",formulaConditionSet:"새 규칙",contextFilterAndSort:"필터 및 정렬",contextAddFilter:"필터 추가",contextSelectFilter:"선택 값으로 필터",contextResetColumnFilter:"열 필터 초기화",contextResetColumnSort:"열 정렬 초기화",contextResetColumnAll:"열 필터/정렬 초기화",contextDataCopy:"선택한 데이터 복사",contextDataExcelCopy:"Excel 복사",contextDataWithHeaderCopy:"선택한 데이터 복사 (헤더 포함)",contextPin:"열 고정 / 해제",contextColumnPicker:"열 표시/숨김 설정",contextMoveColumnFirst:"첫 번째 열로 보내기",contextAutoSizeColumns:"열 너비 자동 조정",contextGroupPanel:"그룹 패널",contextGroupToggle:"그룹 접기/펼치기",contextGroupCollapseAll:"모든 그룹 접기",contextGroupExpandAll:"모든 그룹 펼치기",groupPanelPlaceholder:"열을 드래그 앤 드롭하여 그룹을 만듭니다.",contextBulkEdit:"데이터 일괄변경 [{name}]",contextImport:"가져오기",contextImportExcel:"Excel 가져오기 (덮어쓰기)",contextImportExcelAppend:"Excel 가져오기 (추가)",contextExport:"내보내기",contextExportXlsx:"엑셀 내보내기 (xlsx)",contextExportCsv:"CSV 내보내기 (csv)",contextSum:"합계",check:"확인",cancel:"취소",save:"저장",remove:"삭제",close:"닫기",pause:"일시 중지",add:"추가",immediateApply:"바로 적용",warning:"경고",mozWarning:"경고",confirmCancel:"취소하시겠습니까?",alreadyExcelProgress:"Excel 작업이 이미 진행 중입니다.",downloadFail:"다운로드에 실패했습니다.",addDataWithFilterSort:"필터/정렬이 적용된 상태에서 데이터를 추가하시겠습니까?",resetAndAdd:"초기화 후 추가",confirmDeleteGeneral:"{name}을(를) 삭제하시겠습니까?",toastCopySuccess:"복사되었습니다.",toastSaveSuccess:"저장되었습니다.",toastSaveError:"저장에 실패했습니다.",toastResetSuccess:"초기화되었습니다.",toastRequiredVal:"필수 값을 입력하세요.",excelInvalidExcel:"유효하지 않은 Excel 파일입니다.",excelInvalidUpload:"유효하지 않은 업로드 데이터입니다.",downloadFormat:"서식 내려받기",click:"클릭",drag:"드래그",overwriteSelected:"선택한 항목을 덮어쓰시겠습니까?",fileOverwrite:"파일을 덮어쓰시겠습니까?",dropHere:"이 곳을 클릭 또는 파일을 드래그 하세요.",dropHerePrefix:"이 곳을 ",dropHereMiddle:" 또는 파일을 ",dropHereSuffix:" 하세요.",withFormatting:"서식 포함",requestTimedOut:"요청 시간이 초과되었습니다.",serverError:"서버 오류가 발생했습니다.",total:"전체",correct:"정상",error:"오류",success:"성공",fail:"실패",excelExportConfirmLargeData:"대용량 데이터를 내보내시겠습니까?",footerTotalRowCount:"총 개수: {totalRowCount}개",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"평균",aggregateCount:"개수",aggregateMin:"최소",aggregateMax:"최대",aggregateSum:"합계",settings:"설정",collapseToolbar:"툴바 접기",expandToolbar:"툴바 펼치기",searchPrev:"이전 검색 결과",searchNext:"다음 검색 결과",searchGoTo:"결과 번호로 이동",searching:"검색 중...",deleteCondition:"조건 삭제",deleteSort:"정렬 삭제",selectPlaceholder:"선택",byValueLabel:"레이블",decrease:"감소",increase:"증가",selectColor:"색상 선택",noColor:"색상 없음",customColorInput:"직접 입력",alignLeft:"왼쪽 정렬",alignCenter:"가운데 정렬",alignRight:"오른쪽 정렬",alignLabel:"정렬",fontStyleLabel:"글자 스타일",bold:"굵게",italic:"기울임",underline:"밑줄",columnOptions:"컬럼 옵션",showAllColumns:"전체 표시",commonSection:"공통",headerLabelField:"헤더 라벨",pinColumn:"고정",pinLeft:"왼쪽",pinNone:"없음",pinRight:"오른쪽",columnWidthPx:"너비(px)",headerSection:"헤더",cellSection:"셀",fontLabel:"글자",sizeLabel:"크기",displayMask:"표시 형식(마스크)",resetThisColumn:"이 컬럼 초기화",selectColumnHint:"컬럼을 선택하세요",showColumnNamed:"{column} 표시",columnTextColor:"글자색",cellStyleTitle:"셀 스타일",formulaHelp:"수식 도움말",validFormula:"유효한 수식",formulaHint:"컬럼을 선택하거나 값을 입력해 수식을 작성하세요.",ruleName:"규칙 이름",targetColumns:"적용 컬럼",allColumns:"전체 컬럼",colorLabel:"색상",cellBgColor:"배경 색상",cellTextColor:"텍스트 색상",moveUp:"위로",moveDown:"아래로",formulaPlaceholder:"예: [수요수량] > [재고수량] AND [우선순위] < 3",helpColumnRef:"컬럼 참조",helpCompare:"비교",helpArithmetic:"산술",helpLogic:"논리",helpString:"문자열",helpNull:"NULL 체크",helpValue:"값",groupColon:"그룹:",groupEmptyHint:"여기에 컬럼을 추가해 그룹화",addGroupBtn:"+ 그룹 추가",ungroup:"해제",removeGroup:"그룹 제거",excelImportTitle:"Excel 가져오기",processing:"처리 중…",excelPreview:"미리보기 {shown}행 / 총 {total}행+",clientImportFile:"파일에서 가져오기 (클라이언트)",clientExportXlsx:"XLSX (클라이언트)",groupExpand:"그룹 펼치기",groupCollapse:"그룹 접기",fontSizeDefault:"기본",maskGroupNone:"없음",maskGroupNumber:"숫자",maskGroupDate:"날짜",maskGroupString:"문자열",maskNoneText:"마스크 없음",maskNoneDesc:"원본 값 그대로 표시",maskThousandsText:"천 단위 구분 (1,234)",maskThousandsDesc:"예: 1234 → 1,234",maskDecimal2Text:"소수 2자리 (#,##0.00)",maskDecimal2Desc:"예: 1234.5 → 1,234.50",maskKrwText:"원화 (₩1,234)",maskKrwDesc:"예: 1234 → ₩1,234",maskUsdText:"달러 ($1,234.00)",maskUsdDesc:"예: 1234.5 → $1,234.50",maskPercentText:"퍼센트 (12%)",maskPercentDesc:"예: 12 → 12%",maskDateIsoDesc:"예: 2026-05-26",maskDateKoDesc:"예: 2026년 05월 26일",maskDatetimeDesc:"예: 2026-05-26 14:30",maskDateUsDesc:"예: 05/26/2026",maskPhoneText:"전화번호 (010-1234-5678)",maskPhoneDesc:"예: 01012345678 → 010-1234-5678",maskRrnText:"주민등록번호 (000000-0000000)",maskRrnDesc:"예: 9501011234567 → 950101-1234567",maskBizText:"사업자등록번호 (000-00-00000)",maskBizDesc:"예: 1234567890 → 123-45-67890"},GridPivot:{setting:"피봇 설정",gridSetting:"그리드 설정",fieldSetting:"값 필드 설정",showRowTotals:"행 합계 표시",showColumnTotals:"열 합계 표시",subtotalCriteria:"소계 기준",subtotalAggregateField:"소계 집계 필드",totalsBeforeData:"합계 먼저 보기",showZeros:"빈 값 채우기",showOutlineMode:"개요 모드",collapsibleSubtotal:"소계 접기",fieldName:"필드 이름",fieldAggregate:"집계",fieldShowAs:"표시 방식",fieldFormat:"형식",openChart:"차트 열기",selectValueField:"값 필드 선택",none:"없음",sum:"합계",count:"개수",average:"평균",max:"최대값",min:"최소값",range:"범위",std:"표준 편차",var:"분산",stdPop:"모표준 편차",varPop:"모분산",cntAll:"전체 개수",cntNumbers:"숫자 개수",showFirstValue:"첫 번째 값",showLastValue:"마지막 값",noCalculation:"계산 없음",diffRow:"이전 행과의 차이",diffRowPct:"이전 행과의 차이 (%)",diffCol:"이전 열과의 차이",diffColPct:"이전 열과의 차이 (%)",grandtotalPct:"전체 합계 대비 (%)",rowTotalPct:"행 합계 대비 (%)",colTotalPct:"열 합계 대비 (%)",prevRowPct:"이전 행 대비 (%)",prevColPct:"이전 열 대비 (%)",runTot:"누적 합계",runTotPct:"누적 합계 (%)",generalFormat:"일반",int:"정수",float:"실수",currency:"통화",percentage:"백분율 (정수)",percentageDot2:"백분율 (실수)",thousands:"천 단위",millions:"백만 단위",billions:"십억 단위",subtotal:"소계",grandtotal:"전체 합계",grandtotalValue:"총합계",category:"범주",chartType:"차트 유형",chartXAxis:"X축 범주",chartYAxis:"Y축 범주",categoryName:"카테고리",barChart:"막대 차트",lineChart:"꺾은선 차트",lineSymbolChart:"기호 꺾은선 차트",areaChart:"영역 차트",chartRenderingErrorHeader:"차트 렌더링 오류",chartRenderingErrorContent:"차트를 표시할 수 없습니다.",contextPivotExportXlsx:"화면 내보내기 (xlsx)",contextPivotExportOriginXlsx:"원본 데이터 내보내기 (xlsx)",contextPivotExportOriginCsv:"원본 데이터 내보내기 (csv)",row:"행",column:"열",value:"값",filter:"필터",searchFieldPlaceholder:"필드 검색...",dropZoneRowPlaceholder:"행 축 필드를 드래그하세요",dropZoneColumnPlaceholder:"열 축 필드를 드래그하세요",dropZoneValuePlaceholder:"값 필드를 드래그하세요",dropZoneFilterPlaceholder:"필터 필드를 드래그하세요",update:"업데이트",selectFieldForReport:"보고서에 추가할 필드 선택:",dragFieldsBetweenAreas:"아래 영역 사이에 필드를 끌어 놓으십시오:",valueSummaryCriteria:"값 요약 기준",roundRound:"반올림",roundFloor:"내림",roundCeil:"올림",roundTrunc:"절삭",roundingMode:"반올림 모드",decimalPlaces:"소수점 자리수",decimalUnlimited:"제한 없음",showOriginalValue:"원본값 병기",back:"뒤로",parentRowPct:"상위 행 그룹(%)",parentColPct:"상위 열 그룹(%)",rankAsc:"오름차순 순위",rankDesc:"내림차순 순위",index:"인덱스",showTotalsGrand:"합계",showTotalsSub:"부분합",fieldPanelSetting:"필드 설정",colSubtotalCriteria:"열 소계 기준",allowRowToggle:"행 확장/축소 허용",allowColToggle:"열 확장/축소 허용",outlineMode:"요약 모드"},Gantt:{searchPlaceholder:"검색",columnSize:"컬럼 크기",rowSize:"행 크기"},Chart:{filterPopup:"필터",resetFilter:"필터 초기화",addFilter:"필터 추가",symbolEqual:"같음",symbolNotEqual:"같지 않음",symbolContains:"포함",symbolNotContains:"포함하지 않음",symbolLessThan:"보다 작음",symbolGreaterThan:"보다 큼",symbolLessOrEqual:"작거나 같음",symbolGreaterOrEqual:"크거나 같음",symbolEmpty:"비어있음",symbolNotEmpty:"비어있지 않음",chartSetting:"차트 설정",chartCategory:"차트 카테고리",chartType:"차트 타입",chartUseZoom:"줌 사용",multiYAxisSetting:"Y축 다중 설정",notUsed:"(사용안함)",chartPopup:"차트 팝업",errorMessage:"데이터를 불러오는 중 오류가 발생했습니다.",valueFieldSetting:"값 필드 설정",valueSummaryCriteria:"값 요약 기준",selectFieldForReport:"보고서에 추가할 필드 선택:",column:"열",row:"행",value:"값",sumValue:"∑ 값",count:"개수",sum:"합계",average:"평균",min:"최소값",max:"최대값",seriesCategory:"일반",pieCategory:"파이",scatterCategory:"산점도",treemapCategory:"트리맵",boxplotCategory:"박스플롯",candlestickCategory:"캔들스틱",barChart:"바 차트",stackBarChart:"스택 바 차트",horizontalStackBarChart:"가로 스택 바 차트",lineChart:"선 차트",lineSymbolChart:"선 차트(심볼)",areaChart:"면적 차트",general:"일반",custom:"사용자 지정",axisCategoryLabel:"축 (범주)",legendSeriesLabel:"범례 (계열)",legendSingleLabel:"범례 (단일 선택)",legendMultiLabel:"범례 (다중 선택 가능)",valueSingleLabel:"값 (단일 선택)",xAxisSingleLabel:"X축 (단일 선택)",yAxisMultiLabel:"Y축 (다중 선택 가능)",notSet:"미지정",legendLimitExceededTitle:"차트 범례 개수가 최대 {limit}개를 초과했습니다.",legendLimitExceededContent:"범례를 {limit}개 이하로 재설정하여 주십시오."},NumberInput:{increase:"값 증가",decrease:"값 감소"},DateInput:{prevDate:"이전 날짜",nextDate:"다음 날짜"},PasswordInput:{showPassword:"비밀번호 표시",hidePassword:"비밀번호 숨기기"},Tab:{closeTab:"{label} 닫기"},SplitPane:{resizeHandle:"영역 크기 조절"},BreadCrumb:{navigation:"탐색 경로"}},Mn={Toast:{close:"Close"},Chip:{remove:"Remove"},Callout:{dismiss:"Dismiss"},Notification:{close:"Close",unread:"Unread"},Popup:{title:"Popup",save:"Save",cancel:"Cancel",ok:"OK",close:"Close"},Select:{searchPlaceholder:"Search",emptyText:"No data",requiredMessage:"{label} is required"},MultiSelect:{search:"Search",selectAll:"Select All",selectFiltered:"Select Filtered",specificResults:"Only Results",specificSelect:"Only",noData:"No data",required:"{label} is required",headerFormat:"ITEMS ({count})"},TreeSelect:{search:"Search",selectAll:"Select All",selectFiltered:"Select Filtered",specificResults:"Only Results",noData:"No data",showSelectedOnly:"Show selected only",expandAll:"Expand All",collapseAll:"Collapse All",required:"{label} is required",headerFormat:"ITEMS ({count})",expand:"Expand",collapse:"Collapse"},Controller:{filterLabel:"Search criteria"},TagInput:{add:"Add",editTag:"Edit {label}",removeTag:"Remove {label}"},TimePicker:{hour:"Hour",minute:"Minute",currentTime:"Current Time"},EmptyState:{customEmptyHeader:"No data",customEmptyContent:"There is no data to display.",dataEmptyHeader:"No data to display",dataEmptyContent:"Please enter the required data.",resultEmptyHeader:"No results",resultEmptyContent:"Check the search conditions and try again.",searchEmptyHeader:"No search results",searchEmptyContent:"Please check the filter value and try again."},TableSelect:{searchPlaceholder:"Search",emptyText:"No data",requiredMessage:"{label} is required",footerSelect:"Select",footerNavigate:"Navigate",footerClose:"Close"},Common:{requiredMessage:"{label} is required"},Grid:{layoutSetting:"Layout Settings",filter:"Filter",sort:"Sort",customCellStyle:"Conditional Formatting",reset:"Reset",searchFilter:"Search",newView:"New View",selectAll:"Select All",columnPicker:"Show/Hide Columns",viewToolbar:"Show Toolbar",viewFooter:"Show Footer",viewGroupPanel:"Show Group Panel",resetFilterAndSort:"Reset Filter & Sort",defaultView:"Default View",filterPopup:"Filter Settings",resetFilter:"Reset Filter",addFilter:"Add Filter",sortingPopup:"Sort Settings",ascending:"Ascending",descending:"Descending",resetSort:"Reset Sort",addSort:"Add Sort",symbolEqual:"Equal",symbolNotEqual:"Not Equal",symbolContains:"Contains",symbolNotContains:"Does Not Contain",symbolLessThan:"Less Than",symbolGreaterThan:"Greater Than",symbolLessOrEqual:"Less Or Equal",symbolGreaterOrEqual:"Greater Or Equal",symbolEmpty:"Empty",symbolNotEmpty:"Not Empty",customCellRuleNamePlaceholder:"Enter rule name",addFormulaCondition:"Add Condition",applicationColumn:"Application Column",backgroundColor:"Background Color",fontColor:"Font Color",resetCustomCell:"Reset",addFormulaConditionSet:"Add Rule",customColor:"Custom Color",formulaConditionSet:"New Rule",contextFilterAndSort:"Filter & Sort",contextAddFilter:"Add Filter",contextSelectFilter:"Filter by Selection",contextResetColumnFilter:"Reset Column Filter",contextResetColumnSort:"Reset Column Sort",contextResetColumnAll:"Reset Column Filter/Sort",contextDataCopy:"Copy",contextDataExcelCopy:"Copy for Excel",contextDataWithHeaderCopy:"Copy with Header",contextPin:"Pin Column",contextColumnPicker:"Column Picker",contextMoveColumnFirst:"Move to First Column",contextAutoSizeColumns:"Auto Size Columns",contextGroupPanel:"Group Panel",contextGroupToggle:"Toggle Collapse",contextGroupCollapseAll:"Collapse All Groups",contextGroupExpandAll:"Expand All Groups",groupPanelPlaceholder:"Drag and drop columns here to create groups.",contextBulkEdit:"Bulk Edit {name}",contextImport:"Import",contextImportExcel:"Import Excel (Overwrite)",contextImportExcelAppend:"Import Excel (Append)",contextExport:"Export",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"Sum",check:"OK",cancel:"Cancel",save:"Save",remove:"Delete",close:"Close",pause:"Pause",add:"Add",immediateApply:"Apply Immediately",warning:"Warning",mozWarning:"Warning",confirmCancel:"Are you sure you want to cancel?",alreadyExcelProgress:"Excel operation is already in progress.",downloadFail:"Download failed.",addDataWithFilterSort:"Add data while filter/sort is applied?",resetAndAdd:"Reset and Add",confirmDeleteGeneral:"Are you sure you want to delete {name}?",toastCopySuccess:"Copied.",toastSaveSuccess:"Saved.",toastSaveError:"Save failed.",toastResetSuccess:"Reset.",toastRequiredVal:"Please enter the required values.",excelInvalidExcel:"Invalid Excel file.",excelInvalidUpload:"Invalid upload data.",downloadFormat:"Download Format",click:"Click",drag:"Drag",overwriteSelected:"Overwrite selected items?",fileOverwrite:"Overwrite the file?",dropHere:"Drop here",dropHerePrefix:"",dropHereMiddle:" here or ",dropHereSuffix:" a file.",withFormatting:"With Formatting",requestTimedOut:"Request timed out.",serverError:"A server error occurred.",total:"Total",correct:"Correct",error:"Error",success:"Success",fail:"Fail",excelExportConfirmLargeData:"Export large data?",footerTotalRowCount:"Total: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"Average",aggregateCount:"Count",aggregateMin:"Min",aggregateMax:"Max",aggregateSum:"Sum",settings:"Settings",collapseToolbar:"Collapse toolbar",expandToolbar:"Expand toolbar",searchPrev:"Previous result",searchNext:"Next result",searchGoTo:"Go to result",searching:"Searching...",deleteCondition:"Delete condition",deleteSort:"Delete sort",selectPlaceholder:"Select",byValueLabel:"Label",decrease:"Decrease",increase:"Increase",selectColor:"Select color",noColor:"No color",customColorInput:"Custom",alignLeft:"Align left",alignCenter:"Align center",alignRight:"Align right",alignLabel:"Align",fontStyleLabel:"Font style",bold:"Bold",italic:"Italic",underline:"Underline",columnOptions:"Column Options",showAllColumns:"Show all",commonSection:"Common",headerLabelField:"Header label",pinColumn:"Pin",pinLeft:"Left",pinNone:"None",pinRight:"Right",columnWidthPx:"Width (px)",headerSection:"Header",cellSection:"Cell",fontLabel:"Font",sizeLabel:"Size",displayMask:"Display format (mask)",resetThisColumn:"Reset this column",selectColumnHint:"Select a column",showColumnNamed:"Show {column}",columnTextColor:"Text color",cellStyleTitle:"Cell Style",formulaHelp:"Formula help",validFormula:"Valid formula",formulaHint:"Select a column or enter a value to build a formula.",ruleName:"Rule name",targetColumns:"Target columns",allColumns:"All columns",colorLabel:"Color",cellBgColor:"Background color",cellTextColor:"Text color",moveUp:"Move up",moveDown:"Move down",formulaPlaceholder:"e.g. [Demand] > [Stock] AND [Priority] < 3",helpColumnRef:"Column ref",helpCompare:"Compare",helpArithmetic:"Arithmetic",helpLogic:"Logic",helpString:"String",helpNull:"NULL check",helpValue:"Value",groupColon:"Group:",groupEmptyHint:"Drag columns here to group",addGroupBtn:"+ Add group",ungroup:"Clear",removeGroup:"Remove group",excelImportTitle:"Excel Import",processing:"Processing…",excelPreview:"Preview {shown} rows / {total} total+",clientImportFile:"Import from file (client)",clientExportXlsx:"XLSX (client)",groupExpand:"Expand group",groupCollapse:"Collapse group",fontSizeDefault:"Default",maskGroupNone:"None",maskGroupNumber:"Number",maskGroupDate:"Date",maskGroupString:"String",maskNoneText:"No mask",maskNoneDesc:"Show raw value",maskThousandsText:"Thousands (1,234)",maskThousandsDesc:"e.g. 1234 → 1,234",maskDecimal2Text:"2 decimals (#,##0.00)",maskDecimal2Desc:"e.g. 1234.5 → 1,234.50",maskKrwText:"KRW (₩1,234)",maskKrwDesc:"e.g. 1234 → ₩1,234",maskUsdText:"USD ($1,234.00)",maskUsdDesc:"e.g. 1234.5 → $1,234.50",maskPercentText:"Percent (12%)",maskPercentDesc:"e.g. 12 → 12%",maskDateIsoDesc:"e.g. 2026-05-26",maskDateKoDesc:"e.g. 2026-05-26",maskDatetimeDesc:"e.g. 2026-05-26 14:30",maskDateUsDesc:"e.g. 05/26/2026",maskPhoneText:"Phone (010-1234-5678)",maskPhoneDesc:"e.g. 01012345678 → 010-1234-5678",maskRrnText:"RRN (000000-0000000)",maskRrnDesc:"e.g. 9501011234567 → 950101-1234567",maskBizText:"Business No. (000-00-00000)",maskBizDesc:"e.g. 1234567890 → 123-45-67890"},GridPivot:{setting:"Pivot Settings",gridSetting:"Grid Settings",fieldSetting:"Field Settings",showRowTotals:"Show Row Totals",showColumnTotals:"Show Column Totals",subtotalCriteria:"Subtotal Criteria",subtotalAggregateField:"Subtotal Aggregate Field",totalsBeforeData:"Show Totals Before Data",showZeros:"Show Zeros",showOutlineMode:"Outline Mode",collapsibleSubtotal:"Collapsible Subtotal",fieldName:"Field Name",fieldAggregate:"Aggregate",fieldShowAs:"Show As",fieldFormat:"Format",openChart:"Open Chart",selectValueField:"Select Value Field",none:"None",sum:"Sum",count:"Count",average:"Average",max:"Max",min:"Min",range:"Range",std:"Std Dev",var:"Variance",stdPop:"Pop Std Dev",varPop:"Pop Variance",cntAll:"Count All",cntNumbers:"Count Numbers",showFirstValue:"First Value",showLastValue:"Last Value",noCalculation:"No Calculation",diffRow:"Diff from Previous Row",diffRowPct:"Diff from Previous Row (%)",diffCol:"Diff from Previous Column",diffColPct:"Diff from Previous Column (%)",grandtotalPct:"% of Grand Total",rowTotalPct:"% of Row Total",colTotalPct:"% of Column Total",prevRowPct:"% of Previous Row",prevColPct:"% of Previous Column",runTot:"Running Total",runTotPct:"Running Total (%)",generalFormat:"General",int:"Integer",float:"Decimal",currency:"Currency",percentage:"Percentage (Integer)",percentageDot2:"Percentage (Decimal)",thousands:"Thousands",millions:"Millions",billions:"Billions",subtotal:"Subtotal",grandtotal:"Grand Total",grandtotalValue:"Grand Total",category:"Category",chartType:"Chart Type",chartXAxis:"X Axis",chartYAxis:"Y Axis",categoryName:"Category Name",barChart:"Bar Chart",lineChart:"Line Chart",lineSymbolChart:"Symbol Line Chart",areaChart:"Area Chart",chartRenderingErrorHeader:"Chart Rendering Error",chartRenderingErrorContent:"Unable to display the chart.",contextPivotExportXlsx:"View Export (xlsx)",contextPivotExportOriginXlsx:"Source Data Export (xlsx)",contextPivotExportOriginCsv:"Source Data Export (csv)",row:"Rows",column:"Columns",value:"Values",filter:"Filters",searchFieldPlaceholder:"Search fields...",dropZoneRowPlaceholder:"Drag row axis fields here",dropZoneColumnPlaceholder:"Drag column axis fields here",dropZoneValuePlaceholder:"Drag value fields here",dropZoneFilterPlaceholder:"Drag filter fields here",update:"Update",selectFieldForReport:"Choose fields to add to report:",dragFieldsBetweenAreas:"Drag fields between areas below:",valueSummaryCriteria:"Summarize Values By",roundRound:"Round",roundFloor:"Floor",roundCeil:"Ceil",roundTrunc:"Truncate",roundingMode:"Rounding mode",decimalPlaces:"Decimal places",decimalUnlimited:"No limit",showOriginalValue:"Show original value",back:"Back",parentRowPct:"% of Parent Row Group",parentColPct:"% of Parent Column Group",rankAsc:"Rank Ascending",rankDesc:"Rank Descending",index:"Index",showTotalsGrand:"Grand Totals",showTotalsSub:"Subtotals",fieldPanelSetting:"Field Settings",colSubtotalCriteria:"Column Subtotal Criteria",allowRowToggle:"Allow Row Expand/Collapse",allowColToggle:"Allow Column Expand/Collapse",outlineMode:"Outline Mode"},Gantt:{searchPlaceholder:"Search",columnSize:"Column Size",rowSize:"Row Size"},Chart:{filterPopup:"Filter",resetFilter:"Reset Filter",addFilter:"Add Filter",symbolEqual:"Equal",symbolNotEqual:"Not Equal",symbolContains:"Contains",symbolNotContains:"Not Contains",symbolLessThan:"Less Than",symbolGreaterThan:"Greater Than",symbolLessOrEqual:"Less or Equal",symbolGreaterOrEqual:"Greater or Equal",symbolEmpty:"Empty",symbolNotEmpty:"Not Empty",chartSetting:"Chart Setting",chartCategory:"Chart Category",chartType:"Chart Type",chartUseZoom:"Use Zoom",multiYAxisSetting:"Multi Y-Axis Setting",notUsed:"(Not Used)",chartPopup:"Chart Popup",errorMessage:"An error occurred while loading data.",valueFieldSetting:"Value Field Setting",valueSummaryCriteria:"Value Summary Criteria",selectFieldForReport:"Select fields to add to the report:",column:"Column",row:"Row",value:"Value",sumValue:"∑ Value",count:"Count",sum:"Sum",average:"Average",min:"Min",max:"Max",seriesCategory:"General",pieCategory:"Pie",scatterCategory:"Scatter",treemapCategory:"Treemap",boxplotCategory:"Boxplot",candlestickCategory:"Candlestick",barChart:"Bar Chart",stackBarChart:"Stack Bar Chart",horizontalStackBarChart:"Horizontal Stack Bar Chart",lineChart:"Line Chart",lineSymbolChart:"Line Chart (Symbol)",areaChart:"Area Chart",general:"General",custom:"Custom",axisCategoryLabel:"Axis (Category)",legendSeriesLabel:"Legend (Series)",legendSingleLabel:"Legend (Single)",legendMultiLabel:"Legend (Multiple)",valueSingleLabel:"Value (Single)",xAxisSingleLabel:"X-Axis (Single)",yAxisMultiLabel:"Y-Axis (Multiple)",notSet:"Not Set",legendLimitExceededTitle:"The number of chart legends has exceeded the maximum of {limit}.",legendLimitExceededContent:"Please reconfigure the legend to {limit} or fewer."},NumberInput:{increase:"Increase value",decrease:"Decrease value"},DateInput:{prevDate:"Previous date",nextDate:"Next date"},PasswordInput:{showPassword:"Show password",hidePassword:"Hide password"},Tab:{closeTab:"Close {label}"},SplitPane:{resizeHandle:"Resize panes"},BreadCrumb:{navigation:"Breadcrumb"}},zn={Toast:{close:"关闭"},Chip:{remove:"删除"},Callout:{dismiss:"关闭"},Notification:{close:"关闭",unread:"未读"},Popup:{title:"弹窗",save:"保存",cancel:"取消",ok:"确认",close:"关闭"},Select:{searchPlaceholder:"搜索",emptyText:"暂无数据",requiredMessage:"{label} 为必填项"},MultiSelect:{search:"搜索",selectAll:"全选",selectFiltered:"选择筛选结果",specificResults:"仅结果",specificSelect:"仅选择",noData:"暂无数据",required:"{label} 为必填项",headerFormat:"项目 ({count})"},TreeSelect:{search:"搜索",selectAll:"全选",selectFiltered:"选择筛选结果",specificResults:"仅结果",noData:"暂无数据",showSelectedOnly:"仅显示已选项",expandAll:"全部展开",collapseAll:"全部收起",required:"{label} 为必填项",headerFormat:"项目 ({count})",expand:"展开",collapse:"折叠"},Controller:{filterLabel:"查询条件"},TagInput:{add:"添加",editTag:"编辑 {label}",removeTag:"删除 {label}"},TimePicker:{hour:"时",minute:"分",currentTime:"当前时间"},EmptyState:{customEmptyHeader:"暂无数据",customEmptyContent:"没有可显示的数据。",dataEmptyHeader:"暂无数据",dataEmptyContent:"请输入所需数据。",resultEmptyHeader:"无结果",resultEmptyContent:"请检查搜索条件后重试。",searchEmptyHeader:"无搜索结果",searchEmptyContent:"请检查筛选条件后重试。"},TableSelect:{searchPlaceholder:"搜索",emptyText:"暂无数据",requiredMessage:"{label} 为必填项",footerSelect:"选择",footerNavigate:"移动",footerClose:"关闭"},Common:{requiredMessage:"{label} 为必填项"},Grid:{layoutSetting:"布局设置",filter:"筛选",sort:"排序",customCellStyle:"条件格式设置",reset:"重置",searchFilter:"搜索",newView:"新建视图",selectAll:"全选",columnPicker:"列显示/隐藏设置",viewToolbar:"显示工具栏",viewFooter:"显示页脚",viewGroupPanel:"显示分组面板",resetFilterAndSort:"重置筛选和排序",defaultView:"默认视图",filterPopup:"筛选设置",resetFilter:"重置筛选",addFilter:"添加筛选",sortingPopup:"排序设置",ascending:"升序",descending:"降序",resetSort:"重置排序",addSort:"添加排序",symbolEqual:"等于",symbolNotEqual:"不等于",symbolContains:"包含",symbolNotContains:"不包含",symbolLessThan:"小于",symbolGreaterThan:"大于",symbolLessOrEqual:"小于或等于",symbolGreaterOrEqual:"大于或等于",symbolEmpty:"为空",symbolNotEmpty:"不为空",customCellRuleNamePlaceholder:"请输入规则名称",addFormulaCondition:"添加条件",applicationColumn:"应用列",backgroundColor:"背景色",fontColor:"字体颜色",resetCustomCell:"重置",addFormulaConditionSet:"添加规则",customColor:"自定义颜色",formulaConditionSet:"新建规则",contextFilterAndSort:"筛选和排序",contextAddFilter:"添加筛选",contextSelectFilter:"按选定值筛选",contextResetColumnFilter:"重置列筛选",contextResetColumnSort:"重置列排序",contextResetColumnAll:"重置列筛选/排序",contextDataCopy:"复制",contextDataExcelCopy:"Excel 复制",contextDataWithHeaderCopy:"含表头复制",contextPin:"固定列",contextColumnPicker:"列选择",contextMoveColumnFirst:"移至第一列",contextAutoSizeColumns:"自动调整列宽",contextGroupPanel:"分组面板",contextGroupToggle:"折叠/展开组",contextGroupCollapseAll:"折叠所有组",contextGroupExpandAll:"展开所有组",groupPanelPlaceholder:"将列拖放到此处以创建分组。",contextBulkEdit:"批量编辑 {name}",contextImport:"导入",contextImportExcel:"Excel 导入(覆盖)",contextImportExcelAppend:"Excel 导入(追加)",contextExport:"导出",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"合计",check:"确认",cancel:"取消",save:"保存",remove:"删除",close:"关闭",pause:"暂停",add:"添加",immediateApply:"立即应用",warning:"警告",mozWarning:"警告",confirmCancel:"确定要取消吗?",alreadyExcelProgress:"Excel 操作正在进行中。",downloadFail:"下载失败。",addDataWithFilterSort:"在筛选/排序状态下添加数据?",resetAndAdd:"重置后添加",confirmDeleteGeneral:"确定要删除 {name} 吗?",toastCopySuccess:"已复制。",toastSaveSuccess:"已保存。",toastSaveError:"保存失败。",toastResetSuccess:"已重置。",toastRequiredVal:"请输入必填值。",excelInvalidExcel:"无效的 Excel 文件。",excelInvalidUpload:"无效的上传数据。",downloadFormat:"下载格式",click:"点击",drag:"拖拽",overwriteSelected:"覆盖选定项?",fileOverwrite:"覆盖文件?",dropHere:"拖放到此处",dropHerePrefix:"",dropHereMiddle:"此处或",dropHereSuffix:"文件。",withFormatting:"包含格式",requestTimedOut:"请求超时。",serverError:"服务器发生错误。",total:"总计",correct:"正常",error:"错误",success:"成功",fail:"失败",excelExportConfirmLargeData:"确定导出大量数据?",footerTotalRowCount:"总计: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"平均",aggregateCount:"计数",aggregateMin:"最小值",aggregateMax:"最大值",aggregateSum:"合计",settings:"设置",collapseToolbar:"折叠工具栏",expandToolbar:"展开工具栏",searchPrev:"上一个结果",searchNext:"下一个结果",searchGoTo:"跳转到结果",searching:"搜索中...",deleteCondition:"删除条件",deleteSort:"删除排序",selectPlaceholder:"选择",byValueLabel:"标签",decrease:"减少",increase:"增加",selectColor:"选择颜色",noColor:"无颜色",customColorInput:"自定义输入",alignLeft:"左对齐",alignCenter:"居中对齐",alignRight:"右对齐",alignLabel:"对齐",fontStyleLabel:"字体样式",bold:"加粗",italic:"斜体",underline:"下划线",columnOptions:"列选项",showAllColumns:"全部显示",commonSection:"通用",headerLabelField:"表头标签",pinColumn:"固定",pinLeft:"左",pinNone:"无",pinRight:"右",columnWidthPx:"宽度(px)",headerSection:"表头",cellSection:"单元格",fontLabel:"文字",sizeLabel:"大小",displayMask:"显示格式(掩码)",resetThisColumn:"重置此列",selectColumnHint:"请选择列",showColumnNamed:"显示 {column}",columnTextColor:"文字颜色",cellStyleTitle:"单元格样式",formulaHelp:"公式帮助",validFormula:"有效公式",formulaHint:"选择列或输入值以创建公式。",ruleName:"规则名称",targetColumns:"应用列",allColumns:"全部列",colorLabel:"颜色",cellBgColor:"背景色",cellTextColor:"文字色",moveUp:"上移",moveDown:"下移",formulaPlaceholder:"例: [需求量] > [库存量] AND [优先级] < 3",helpColumnRef:"列引用",helpCompare:"比较",helpArithmetic:"算术",helpLogic:"逻辑",helpString:"字符串",helpNull:"NULL 检查",helpValue:"值",groupColon:"分组:",groupEmptyHint:"将列拖到此处进行分组",addGroupBtn:"+ 添加分组",ungroup:"解除",removeGroup:"移除分组",excelImportTitle:"Excel 导入",processing:"处理中…",excelPreview:"预览 {shown} 行 / 共 {total} 行+",clientImportFile:"从文件导入 (客户端)",clientExportXlsx:"XLSX (客户端)",groupExpand:"展开分组",groupCollapse:"折叠分组",fontSizeDefault:"默认",maskGroupNone:"无",maskGroupNumber:"数字",maskGroupDate:"日期",maskGroupString:"字符串",maskNoneText:"无掩码",maskNoneDesc:"按原值显示",maskThousandsText:"千位分隔 (1,234)",maskThousandsDesc:"例: 1234 → 1,234",maskDecimal2Text:"两位小数 (#,##0.00)",maskDecimal2Desc:"例: 1234.5 → 1,234.50",maskKrwText:"韩元 (₩1,234)",maskKrwDesc:"例: 1234 → ₩1,234",maskUsdText:"美元 ($1,234.00)",maskUsdDesc:"例: 1234.5 → $1,234.50",maskPercentText:"百分比 (12%)",maskPercentDesc:"例: 12 → 12%",maskDateIsoDesc:"例: 2026-05-26",maskDateKoDesc:"例: 2026-05-26",maskDatetimeDesc:"例: 2026-05-26 14:30",maskDateUsDesc:"例: 05/26/2026",maskPhoneText:"电话号码 (010-1234-5678)",maskPhoneDesc:"例: 01012345678 → 010-1234-5678",maskRrnText:"身份证号 (000000-0000000)",maskRrnDesc:"例: 9501011234567 → 950101-1234567",maskBizText:"营业执照号 (000-00-00000)",maskBizDesc:"例: 1234567890 → 123-45-67890"},GridPivot:{setting:"数据透视设置",gridSetting:"网格设置",fieldSetting:"字段设置",showRowTotals:"显示行合计",showColumnTotals:"显示列合计",subtotalCriteria:"小计基准",subtotalAggregateField:"小计汇总字段",totalsBeforeData:"在数据前显示合计",showZeros:"显示零值",showOutlineMode:"大纲模式",collapsibleSubtotal:"可折叠小计",fieldName:"字段名称",fieldAggregate:"汇总",fieldShowAs:"显示方式",fieldFormat:"格式",openChart:"打开图表",selectValueField:"选择值字段",none:"无",sum:"求和",count:"计数",average:"平均值",max:"最大值",min:"最小值",range:"范围",std:"标准差",var:"方差",stdPop:"总体标准差",varPop:"总体方差",cntAll:"全部计数",cntNumbers:"数字计数",showFirstValue:"第一个值",showLastValue:"最后一个值",noCalculation:"无计算",diffRow:"与前一行的差",diffRowPct:"与前一行的差 (%)",diffCol:"与前一列的差",diffColPct:"与前一列的差 (%)",grandtotalPct:"占总计百分比",rowTotalPct:"占行合计百分比",colTotalPct:"占列合计百分比",prevRowPct:"占前一行百分比",prevColPct:"占前一列百分比",runTot:"累计",runTotPct:"累计百分比",generalFormat:"常规",int:"整数",float:"小数",currency:"货币",percentage:"百分比 (整数)",percentageDot2:"百分比 (小数)",thousands:"千位",millions:"百万位",billions:"十亿位",subtotal:"小计",grandtotal:"总计",grandtotalValue:"总合计",category:"类别",chartType:"图表类型",chartXAxis:"X轴",chartYAxis:"Y轴",categoryName:"类别名称",barChart:"柱状图",lineChart:"折线图",lineSymbolChart:"符号折线图",areaChart:"面积图",chartRenderingErrorHeader:"图表渲染错误",chartRenderingErrorContent:"无法显示图表。",contextPivotExportXlsx:"视图导出 (xlsx)",contextPivotExportOriginXlsx:"原始数据导出 (xlsx)",contextPivotExportOriginCsv:"原始数据导出 (csv)",row:"行",column:"列",value:"值",filter:"筛选",searchFieldPlaceholder:"搜索字段...",dropZoneRowPlaceholder:"拖动行轴字段到这里",dropZoneColumnPlaceholder:"拖动列轴字段到这里",dropZoneValuePlaceholder:"拖动值字段到这里",dropZoneFilterPlaceholder:"拖动筛选字段到这里",update:"更新",selectFieldForReport:"选择要添加到报表的字段:",dragFieldsBetweenAreas:"在下面的区域之间拖动字段:",valueSummaryCriteria:"值汇总依据",roundRound:"四舍五入",roundFloor:"向下取整",roundCeil:"向上取整",roundTrunc:"截断",roundingMode:"舍入模式",decimalPlaces:"小数位数",decimalUnlimited:"无限制",showOriginalValue:"并列原始值",back:"返回",parentRowPct:"占上级行组百分比",parentColPct:"占上级列组百分比",rankAsc:"升序排名",rankDesc:"降序排名",index:"索引",showTotalsGrand:"总计",showTotalsSub:"小计",fieldPanelSetting:"字段设置",colSubtotalCriteria:"列小计基准",allowRowToggle:"允许行展开/折叠",allowColToggle:"允许列展开/折叠",outlineMode:"大纲模式"},Gantt:{searchPlaceholder:"搜索",columnSize:"列大小",rowSize:"行大小"},Chart:{filterPopup:"筛选",resetFilter:"重置筛选",addFilter:"添加筛选",symbolEqual:"等于",symbolNotEqual:"不等于",symbolContains:"包含",symbolNotContains:"不包含",symbolLessThan:"小于",symbolGreaterThan:"大于",symbolLessOrEqual:"小于等于",symbolGreaterOrEqual:"大于等于",symbolEmpty:"为空",symbolNotEmpty:"不为空",chartSetting:"图表设置",chartCategory:"图表类别",chartType:"图表类型",chartUseZoom:"使用缩放",multiYAxisSetting:"Y轴多轴设置",notUsed:"(未使用)",chartPopup:"图表弹窗",errorMessage:"加载数据时发生错误。",valueFieldSetting:"值字段设置",valueSummaryCriteria:"值汇总基准",selectFieldForReport:"选择要添加到报表的字段:",column:"列",row:"行",value:"值",sumValue:"∑ 值",count:"计数",sum:"合计",average:"平均",min:"最小值",max:"最大值",seriesCategory:"常规",pieCategory:"饼图",scatterCategory:"散点图",treemapCategory:"树状图",boxplotCategory:"箱线图",candlestickCategory:"K线图",barChart:"柱状图",stackBarChart:"堆叠柱状图",horizontalStackBarChart:"水平堆叠柱状图",lineChart:"折线图",lineSymbolChart:"折线图(符号)",areaChart:"面积图",general:"常规",custom:"自定义",axisCategoryLabel:"轴 (类别)",legendSeriesLabel:"图例 (系列)",legendSingleLabel:"图例 (单选)",legendMultiLabel:"图例 (多选)",valueSingleLabel:"值 (单选)",xAxisSingleLabel:"X轴 (单选)",yAxisMultiLabel:"Y轴 (多选)",notSet:"未指定",legendLimitExceededTitle:"图表图例数量已超过最大值 {limit} 个。",legendLimitExceededContent:"请将图例重新设置为 {limit} 个以内。"},NumberInput:{increase:"增加数值",decrease:"减少数值"},DateInput:{prevDate:"上一个日期",nextDate:"下一个日期"},PasswordInput:{showPassword:"显示密码",hidePassword:"隐藏密码"},Tab:{closeTab:"关闭 {label}"},SplitPane:{resizeHandle:"调整区域大小"},BreadCrumb:{navigation:"面包屑导航"}},Tn={Toast:{close:"閉じる"},Chip:{remove:"削除"},Callout:{dismiss:"閉じる"},Notification:{close:"閉じる",unread:"未読"},Popup:{title:"ポップアップ",save:"保存",cancel:"キャンセル",ok:"OK",close:"閉じる"},Select:{searchPlaceholder:"検索",emptyText:"データがありません",requiredMessage:"{label} は必須です"},MultiSelect:{search:"検索",selectAll:"すべて選択",selectFiltered:"フィルター結果を選択",specificResults:"結果のみ",specificSelect:"選択のみ",noData:"データがありません",required:"{label} は必須です",headerFormat:"項目 ({count})"},TreeSelect:{search:"検索",selectAll:"すべて選択",selectFiltered:"フィルター結果を選択",specificResults:"結果のみ",noData:"データがありません",showSelectedOnly:"選択項目のみ表示",expandAll:"すべて展開",collapseAll:"すべて折りたたむ",required:"{label} は必須です",headerFormat:"項目 ({count})",expand:"展開",collapse:"折りたたむ"},Controller:{filterLabel:"検索条件"},TagInput:{add:"追加",editTag:"{label} を編集",removeTag:"{label} を削除"},TimePicker:{hour:"時",minute:"分",currentTime:"現在時刻"},EmptyState:{customEmptyHeader:"データなし",customEmptyContent:"表示するデータがありません。",dataEmptyHeader:"表示するデータがありません",dataEmptyContent:"必要なデータを入力してください。",resultEmptyHeader:"結果なし",resultEmptyContent:"検索条件を確認して再度お試しください。",searchEmptyHeader:"検索結果なし",searchEmptyContent:"フィルター値を確認して再度お試しください。"},TableSelect:{searchPlaceholder:"検索",emptyText:"データがありません",requiredMessage:"{label} は必須です",footerSelect:"選択",footerNavigate:"移動",footerClose:"閉じる"},Common:{requiredMessage:"{label} は必須です"},Grid:{layoutSetting:"レイアウト設定",filter:"フィルター",sort:"ソート",customCellStyle:"条件付き書式設定",reset:"リセット",searchFilter:"検索",newView:"新しいビュー",selectAll:"すべて選択",columnPicker:"列の表示/非表示設定",viewToolbar:"ツールバー表示",viewFooter:"フッター表示",viewGroupPanel:"グループパネル表示",resetFilterAndSort:"フィルター・ソートリセット",defaultView:"デフォルトビュー",filterPopup:"フィルター設定",resetFilter:"フィルターリセット",addFilter:"フィルター追加",sortingPopup:"ソート設定",ascending:"昇順",descending:"降順",resetSort:"ソートリセット",addSort:"ソート追加",symbolEqual:"等しい",symbolNotEqual:"等しくない",symbolContains:"含む",symbolNotContains:"含まない",symbolLessThan:"より小さい",symbolGreaterThan:"より大きい",symbolLessOrEqual:"以下",symbolGreaterOrEqual:"以上",symbolEmpty:"空",symbolNotEmpty:"空でない",customCellRuleNamePlaceholder:"ルール名を入力してください",addFormulaCondition:"条件追加",applicationColumn:"適用列",backgroundColor:"背景色",fontColor:"フォント色",resetCustomCell:"リセット",addFormulaConditionSet:"ルールを追加",customColor:"カスタム色",formulaConditionSet:"新しいルール",contextFilterAndSort:"フィルター・ソート",contextAddFilter:"フィルター追加",contextSelectFilter:"選択値でフィルター",contextResetColumnFilter:"列フィルターリセット",contextResetColumnSort:"列ソートリセット",contextResetColumnAll:"列フィルター/ソートリセット",contextDataCopy:"コピー",contextDataExcelCopy:"Excelコピー",contextDataWithHeaderCopy:"ヘッダー付きコピー",contextPin:"列固定",contextColumnPicker:"列選択",contextMoveColumnFirst:"最初の列に移動",contextAutoSizeColumns:"列幅自動調整",contextGroupPanel:"グループパネル",contextGroupToggle:"グループ折りたたみ/展開",contextGroupCollapseAll:"すべてのグループを折りたたむ",contextGroupExpandAll:"すべてのグループを展開",groupPanelPlaceholder:"列をドラッグ&ドロップしてグループを作成します。",contextBulkEdit:"{name} 一括編集",contextImport:"インポート",contextImportExcel:"Excelインポート(上書き)",contextImportExcelAppend:"Excelインポート(追加)",contextExport:"エクスポート",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"合計",check:"確認",cancel:"キャンセル",save:"保存",remove:"削除",close:"閉じる",pause:"一時停止",add:"追加",immediateApply:"すぐに適用",warning:"警告",mozWarning:"警告",confirmCancel:"キャンセルしますか?",alreadyExcelProgress:"Excel操作が進行中です。",downloadFail:"ダウンロードに失敗しました。",addDataWithFilterSort:"フィルター/ソート適用中にデータを追加しますか?",resetAndAdd:"リセットして追加",confirmDeleteGeneral:"{name}を削除しますか?",toastCopySuccess:"コピーしました。",toastSaveSuccess:"保存しました。",toastSaveError:"保存に失敗しました。",toastResetSuccess:"リセットしました。",toastRequiredVal:"必須値を入力してください。",excelInvalidExcel:"無効なExcelファイルです。",excelInvalidUpload:"無効なアップロードデータです。",downloadFormat:"フォーマットダウンロード",click:"クリック",drag:"ドラッグ",overwriteSelected:"選択項目を上書きしますか?",fileOverwrite:"ファイルを上書きしますか?",dropHere:"ここにドロップ",dropHerePrefix:"ここを",dropHereMiddle:"またはファイルを",dropHereSuffix:"してください。",withFormatting:"書式付き",requestTimedOut:"リクエストがタイムアウトしました。",serverError:"サーバーエラーが発生しました。",total:"合計",correct:"正常",error:"エラー",success:"成功",fail:"失敗",excelExportConfirmLargeData:"大量データをエクスポートしますか?",footerTotalRowCount:"合計: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"平均",aggregateCount:"件数",aggregateMin:"最小値",aggregateMax:"最大値",aggregateSum:"合計",settings:"設定",collapseToolbar:"ツールバーを折りたたむ",expandToolbar:"ツールバーを展開",searchPrev:"前の検索結果",searchNext:"次の検索結果",searchGoTo:"結果番号へ移動",searching:"検索中...",deleteCondition:"条件を削除",deleteSort:"ソートを削除",selectPlaceholder:"選択",byValueLabel:"ラベル",decrease:"減少",increase:"増加",selectColor:"色を選択",noColor:"色なし",customColorInput:"直接入力",alignLeft:"左揃え",alignCenter:"中央揃え",alignRight:"右揃え",alignLabel:"配置",fontStyleLabel:"文字スタイル",bold:"太字",italic:"斜体",underline:"下線",columnOptions:"列オプション",showAllColumns:"すべて表示",commonSection:"共通",headerLabelField:"ヘッダーラベル",pinColumn:"固定",pinLeft:"左",pinNone:"なし",pinRight:"右",columnWidthPx:"幅(px)",headerSection:"ヘッダー",cellSection:"セル",fontLabel:"文字",sizeLabel:"サイズ",displayMask:"表示形式(マスク)",resetThisColumn:"この列をリセット",selectColumnHint:"列を選択してください",showColumnNamed:"{column} を表示",columnTextColor:"文字色",cellStyleTitle:"セルスタイル",formulaHelp:"数式ヘルプ",validFormula:"有効な数式",formulaHint:"列を選択するか値を入力して数式を作成してください。",ruleName:"ルール名",targetColumns:"適用列",allColumns:"全列",colorLabel:"色",cellBgColor:"背景色",cellTextColor:"文字色",moveUp:"上へ",moveDown:"下へ",formulaPlaceholder:"例: [需要数] > [在庫数] AND [優先度] < 3",helpColumnRef:"列参照",helpCompare:"比較",helpArithmetic:"算術",helpLogic:"論理",helpString:"文字列",helpNull:"NULL チェック",helpValue:"値",groupColon:"グループ:",groupEmptyHint:"ここに列をドラッグしてグループ化",addGroupBtn:"+ グループ追加",ungroup:"解除",removeGroup:"グループ削除",excelImportTitle:"Excel 取り込み",processing:"処理中…",excelPreview:"プレビュー {shown}行 / 全 {total}行+",clientImportFile:"ファイルから取り込み (クライアント)",clientExportXlsx:"XLSX (クライアント)",groupExpand:"グループを展開",groupCollapse:"グループを折りたたむ",fontSizeDefault:"既定",maskGroupNone:"なし",maskGroupNumber:"数値",maskGroupDate:"日付",maskGroupString:"文字列",maskNoneText:"マスクなし",maskNoneDesc:"元の値をそのまま表示",maskThousandsText:"桁区切り (1,234)",maskThousandsDesc:"例: 1234 → 1,234",maskDecimal2Text:"小数2桁 (#,##0.00)",maskDecimal2Desc:"例: 1234.5 → 1,234.50",maskKrwText:"ウォン (₩1,234)",maskKrwDesc:"例: 1234 → ₩1,234",maskUsdText:"ドル ($1,234.00)",maskUsdDesc:"例: 1234.5 → $1,234.50",maskPercentText:"パーセント (12%)",maskPercentDesc:"例: 12 → 12%",maskDateIsoDesc:"例: 2026-05-26",maskDateKoDesc:"例: 2026-05-26",maskDatetimeDesc:"例: 2026-05-26 14:30",maskDateUsDesc:"例: 05/26/2026",maskPhoneText:"電話番号 (010-1234-5678)",maskPhoneDesc:"例: 01012345678 → 010-1234-5678",maskRrnText:"住民登録番号 (000000-0000000)",maskRrnDesc:"例: 9501011234567 → 950101-1234567",maskBizText:"事業者登録番号 (000-00-00000)",maskBizDesc:"例: 1234567890 → 123-45-67890"},GridPivot:{setting:"ピボット設定",gridSetting:"グリッド設定",fieldSetting:"フィールド設定",showRowTotals:"行合計表示",showColumnTotals:"列合計表示",subtotalCriteria:"小計基準",subtotalAggregateField:"小計集計フィールド",totalsBeforeData:"データ前に合計表示",showZeros:"ゼロ表示",showOutlineMode:"アウトラインモード",collapsibleSubtotal:"小計折りたたみ",fieldName:"フィールド名",fieldAggregate:"集計",fieldShowAs:"表示方式",fieldFormat:"形式",openChart:"チャートを開く",selectValueField:"値フィールド選択",none:"なし",sum:"合計",count:"個数",average:"平均",max:"最大値",min:"最小値",range:"範囲",std:"標準偏差",var:"分散",stdPop:"母標準偏差",varPop:"母分散",cntAll:"全個数",cntNumbers:"数値の個数",showFirstValue:"最初の値",showLastValue:"最後の値",noCalculation:"計算なし",diffRow:"前の行との差",diffRowPct:"前の行との差 (%)",diffCol:"前の列との差",diffColPct:"前の列との差 (%)",grandtotalPct:"総計に対する割合",rowTotalPct:"行合計に対する割合",colTotalPct:"列合計に対する割合",prevRowPct:"前の行に対する割合",prevColPct:"前の列に対する割合",runTot:"累計",runTotPct:"累計割合",generalFormat:"一般",int:"整数",float:"小数",currency:"通貨",percentage:"パーセント (整数)",percentageDot2:"パーセント (小数)",thousands:"千単位",millions:"百万単位",billions:"十億単位",subtotal:"小計",grandtotal:"総計",grandtotalValue:"総合計",category:"カテゴリ",chartType:"チャートタイプ",chartXAxis:"X軸",chartYAxis:"Y軸",categoryName:"カテゴリ名",barChart:"棒グラフ",lineChart:"折れ線グラフ",lineSymbolChart:"シンボル折れ線グラフ",areaChart:"エリアチャート",chartRenderingErrorHeader:"チャートレンダリングエラー",chartRenderingErrorContent:"チャートを表示できません。",contextPivotExportXlsx:"ビューエクスポート (xlsx)",contextPivotExportOriginXlsx:"元データエクスポート (xlsx)",contextPivotExportOriginCsv:"元データエクスポート (csv)",row:"行",column:"列",value:"値",filter:"フィルター",searchFieldPlaceholder:"フィールド検索...",dropZoneRowPlaceholder:"行軸フィールドをドラッグしてください",dropZoneColumnPlaceholder:"列軸フィールドをドラッグしてください",dropZoneValuePlaceholder:"値フィールドをドラッグしてください",dropZoneFilterPlaceholder:"フィルターフィールドをドラッグしてください",update:"更新",selectFieldForReport:"レポートに追加するフィールドを選択:",dragFieldsBetweenAreas:"下の領域間にフィールドをドラッグしてください:",valueSummaryCriteria:"値の集計方法",roundRound:"四捨五入",roundFloor:"切り捨て",roundCeil:"切り上げ",roundTrunc:"切り捨て(0方向)",roundingMode:"丸めモード",decimalPlaces:"小数点桁数",decimalUnlimited:"制限なし",showOriginalValue:"元の値を併記",back:"戻る",parentRowPct:"上位行グループ比 (%)",parentColPct:"上位列グループ比 (%)",rankAsc:"昇順ランク",rankDesc:"降順ランク",index:"インデックス",showTotalsGrand:"合計",showTotalsSub:"小計",fieldPanelSetting:"フィールド設定",colSubtotalCriteria:"列小計基準",allowRowToggle:"行の展開/折りたたみ許可",allowColToggle:"列の展開/折りたたみ許可",outlineMode:"アウトラインモード"},Gantt:{searchPlaceholder:"検索",columnSize:"列サイズ",rowSize:"行サイズ"},Chart:{filterPopup:"フィルター",resetFilter:"フィルターリセット",addFilter:"フィルター追加",symbolEqual:"等しい",symbolNotEqual:"等しくない",symbolContains:"含む",symbolNotContains:"含まない",symbolLessThan:"より小さい",symbolGreaterThan:"より大きい",symbolLessOrEqual:"以下",symbolGreaterOrEqual:"以上",symbolEmpty:"空",symbolNotEmpty:"空でない",chartSetting:"チャート設定",chartCategory:"チャートカテゴリ",chartType:"チャートタイプ",chartUseZoom:"ズーム使用",multiYAxisSetting:"Y軸マルチ設定",notUsed:"(使用しない)",chartPopup:"チャートポップアップ",errorMessage:"データの読み込み中にエラーが発生しました。",valueFieldSetting:"値フィールド設定",valueSummaryCriteria:"値集計基準",selectFieldForReport:"レポートに追加するフィールドを選択:",column:"列",row:"行",value:"値",sumValue:"∑ 値",count:"件数",sum:"合計",average:"平均",min:"最小値",max:"最大値",seriesCategory:"一般",pieCategory:"パイ",scatterCategory:"散布図",treemapCategory:"ツリーマップ",boxplotCategory:"ボックスプロット",candlestickCategory:"ローソク足",barChart:"棒グラフ",stackBarChart:"スタック棒グラフ",horizontalStackBarChart:"横スタック棒グラフ",lineChart:"折れ線グラフ",lineSymbolChart:"折れ線グラフ(シンボル)",areaChart:"エリアチャート",general:"一般",custom:"カスタム",axisCategoryLabel:"軸 (カテゴリ)",legendSeriesLabel:"凡例 (シリーズ)",legendSingleLabel:"凡例 (単一選択)",legendMultiLabel:"凡例 (複数選択可)",valueSingleLabel:"値 (単一選択)",xAxisSingleLabel:"X軸 (単一選択)",yAxisMultiLabel:"Y軸 (複数選択可)",notSet:"未指定",legendLimitExceededTitle:"チャートの凡例数が最大 {limit} 件を超えました。",legendLimitExceededContent:"凡例を {limit} 件以下に再設定してください。"},NumberInput:{increase:"値を増やす",decrease:"値を減らす"},DateInput:{prevDate:"前の日付",nextDate:"次の日付"},PasswordInput:{showPassword:"パスワードを表示",hidePassword:"パスワードを非表示"},Tab:{closeTab:"{label} を閉じる"},SplitPane:{resizeHandle:"領域サイズの調整"},BreadCrumb:{navigation:"パンくずリスト"}};let An=0;function $e(e){return(t,o,n,l)=>{const d=e.portal?new Nt:null,a=d?d.open():t,f=`h${++An}:`,i=new Wo;if(l!=null&&l.slots)for(const[j,$]of Object.entries(l.slots))i.register(j,$);l!=null&&l.slotResolver&&i.setResolver(l.slotResolver);const c=new Set(Object.keys(o)),r=l!=null&&l.providedKeys?new Set(l.providedKeys):null,u=j=>{const $=e.defaults;if(!$)return j;const I={...j};for(const Y of Object.keys($))I[Y]===void 0&&(I[Y]=$[Y]);return I};let p=u({...o}),y=(l==null?void 0:l.locale)??no;const L=(l==null?void 0:l.validator)??null,D=[];let P=new Map,E=new Set,g=new Map,h=null;const C={get props(){return p},emit:n,slots:i,requestUpdate:()=>W.requestUpdate(),onCleanup:j=>D.push(j),px:j=>Ae(j),get locale(){return y},validator:L,controlled:j=>r?r.has(j):c.has(j),slot(j,$){if(!i.has(j))return s.nothing;const I=g.get(j)??0;g.set(j,I+1);const Y=`${j}#${I}`;return P.set(Y,{name:j,scope:$}),s.html`<span data-moz-slot=${j} data-moz-slot-id=${f+Y}></span>`}},k=e.setup(C);class Z extends Uo{template(){return P=new Map,g=new Map,k.render()}renderNow(){super.renderNow();let $=null;if(k.renderPortal){const I=k.renderPortal(),Y=k.getPortalContainer?k.getPortalContainer():document.body;I===s.nothing||I==null||Y==null?h&&h.isOpen&&(s.render(s.nothing,h.element),h.close()):(h||(h=new Nt),$=h.isOpen?h.element:h.open("moz-overlay-portal",Y),s.render(I,$))}for(const[I,{name:Y,scope:ne}]of P){const B=`[data-moz-slot-id="${f+I}"]`;let se=this.container.querySelector(B);!se&&$&&(se=$.querySelector(B)),se&&i.fill(I,Y,se,ne)}for(const I of E)P.has(I)||i.clear(I);E=new Set(P.keys())}flush(){this.isMounted&&this.renderNow()}onDestroy(){for(const $ of D.splice(0))try{$()}catch{}i.destroy()}}const W=new Z(a);W.mount();let Q=!1;const re=()=>{var j;Q||!W.isMounted||(Q=!0,(j=k.onMounted)==null||j.call(k,a.firstElementChild))};return l!=null&&l.deferMounted||re(),{get el(){return a.firstElementChild},update(j,$){$!=null&&$.replace?(p=u({...j}),c.clear()):p=u({...p,...j});for(const I of Object.keys(j))c.add(I);$!=null&&$.sync?W.flush():W.requestUpdate()},destroy(){W.destroy(),d==null||d.close(),h==null||h.close()},setLocale(j){j!==y&&(y=j??no,W.requestUpdate())},api:k.api??{},notifyMounted:re}}}const Dn={MozBadge:["dot"],MozBreadCrumb:["showFavorite"],MozButton:["disabled","loading"],MozCallout:["compact","dismissible","hideIcon","live"],MozCheckBox:["checked","disabled","indeterminate","modelValue","readonly"],MozChip:["disabled","labelInteractive","removable","selected"],MozCollapsible:["disabled","forceMount","open"],MozContextMenu:["disableCloseOnClickBackdrop","noPadding","toBottomCenter","toTopCenter"],MozController:["customQueryParamsPanel","showFavorite","showFilterButton","showPreset"],MozDateInput:["disabled","readonly","required","showSpin"],MozEmptyState:["composed","isCustomState","isReadOnly","useImg"],MozInput:["disabled","isReadOnly","required","useInvalidV2"],MozLabel:["disabled","isReadOnly","required"],MozMultiSelect:["autoSelectNewItems","disabled","inline","loading","preserveMissingValues","readonly","required","selectAllWhenEmpty","useFilter","useSelectAll","useSpecificSelect"],MozNotificationCard:["dismissible","inline","pauseOnHover"],MozNotificationItem:["unread"],MozNumberInput:["disabled","nullable","required","shortMode"],MozPasswordInput:["disabled","required","useInvalidV2"],MozPopover:["matchTriggerWidth","open","trapFocus"],MozPopup:["autoPosition","closeOnOutsideClick","disabledConfirmButton","draggable","focusTrap","hideOthers","keepAspectRatio","loading","lockScroll","resizeable","showBackdrop","showCloseButton","showFooterBorder","showHeader","useVShow","visible"],MozRadio:["disabled","iconOnly","required"],MozSelect:["disabled","readonly","required","useFilter","useObjBinding"],MozSlider:["disabled"],MozSplitPane:["horizontal"],MozTab:["closeAble","vertical"],MozTableSelect:["disabled","readonly","required","useFilter","useObjKeyProp"],MozTagInput:["disableDelete","disableUpdate","dynamicSearch","isExpandTop","pushOnBlur","required","simplify"],MozTextArea:["disabled","immediatelyFocus","required"],MozTimePicker:["disabled","required"],MozToast:["composed","dismissible","inline","pauseOnHover","queue","showProgress"],MozToggle:["disabled","readonly","required","visible"],MozTooltip:["arrow","open"],MozTreeSelect:["disabled","readonly","required","useFilter","useMultiSelect","useSelectAll","useSpecificSelect"]};class In extends so.Directive{constructor(o){super(o);Oe(this,"prevKeys",[]);Oe(this,"listeners",new Map);if(o.type!==so.PartType.ELEMENT)throw new Error("spread() 는 element 바인딩(`<el ${spread(obj)}>`)에서만 사용할 수 있습니다.")}render(o){return s.nothing}update(o,[n]){const l=o.element,d=n??{};for(const a of this.prevKeys)if(!(a in d))if(this.isEventKey(a)){const f=this.listeners.get(a);f&&l.removeEventListener(this.eventName(a),f),this.listeners.delete(a)}else l.removeAttribute(a);for(const[a,f]of Object.entries(d))if(!(a==="class"||a==="style"||a==="key"||a==="ref"))if(this.isEventKey(a)&&typeof f=="function"){const i=this.eventName(a),c=this.listeners.get(a);c&&l.removeEventListener(i,c),l.addEventListener(i,f),this.listeners.set(a,f)}else f==null?l.removeAttribute(a):a.startsWith("aria-")?l.setAttribute(a,String(f)):f===!1?l.removeAttribute(a):f===!0?l.setAttribute(a,""):l.setAttribute(a,String(f));return this.prevKeys=Object.keys(d),s.noChange}isEventKey(o){return o.length>2&&o.startsWith("on")&&o[2]===o[2].toUpperCase()}eventName(o){return o.slice(2).toLowerCase()}}const he=so.directive(In);function V(...e){return wn.clsx(e)}function Vn(){return pt.extend($n),pt.extend(yn),pt.extend(bn),pt.extend(Cn),pt.extend(Sn),pt.extend(kn),pt.tz.setDefault("Asia/Seoul"),pt}const Pe=Vn();function Rn(){const e=[];return{addValidator:d=>{e.push(d)},removeValidator:d=>{const a=e.findIndex(f=>f.validate===d.validate);a>=0&&e.splice(a,1)},validate:async(d="save")=>(await Promise.all(e.map(f=>f.validate(d).then(i=>i===void 0?!0:i)))).every(f=>f),initValidator:()=>{var d;for(const a of e)(d=a==null?void 0:a.initValidator)==null||d.call(a)}}}const On=16;function qn(e,t){let o=0;return(...n)=>{const l=Date.now();l-o>=t&&(o=l,e(...n))}}class Kt{constructor(t){Oe(this,"opened",!1);Oe(this,"scrollHandler");Oe(this,"clickHandler");this.opts=t,this.scrollHandler=qn(o=>this.onScroll(o),On),this.clickHandler=o=>this.onOutsideClick(o)}open(){this.opened||(this.opened=!0,document.addEventListener("scroll",this.scrollHandler,{capture:!0}),this.opts.closeOnOutsideClick!==!1&&setTimeout(()=>{this.opened&&document.addEventListener("click",this.clickHandler,{capture:!0})},0),queueMicrotask(()=>this.calcPosition()))}close(){this.opened&&(this.opened=!1,document.removeEventListener("scroll",this.scrollHandler,{capture:!0}),document.removeEventListener("click",this.clickHandler,{capture:!0}))}destroy(){this.close()}calcPosition(){const t=this.opts.anchor(),o=this.opts.panel();if(!t||!o)return;const n=t.getBoundingClientRect(),l=this.opts.maxHeight?this.opts.maxHeight():250,d=window.innerHeight-n.bottom,a=n.top,f=d<l&&a>=l;let i=n.left;const c=o.clientWidth;n.left+c>document.body.clientWidth&&(i-=c-n.width);let r=`${n.width}px`,u=!1;if(this.opts.listWidth){const p=this.opts.listWidth();p&&(typeof p!="number"||p>0)&&(r=typeof p=="number"?`${p}px`:p,u=!0)}o.style.position="fixed",o.style.left=`${i}px`,this.opts.useMinWidth?(o.style.minWidth=`${n.width}px`,u&&(o.style.width=String(r))):u?o.style.width=String(r):o.style.width=`${n.width}px`,f?(o.style.bottom=`${window.innerHeight-n.top}px`,o.style.top="auto"):(o.style.top=`${n.bottom}px`,o.style.bottom="auto")}onScroll(t){const o=t.target;if(this.opts.ignoreScrollTargets&&o&&this.opts.ignoreScrollTargets(o))return;const n=this.opts.anchor();if(n){const l=n.getBoundingClientRect();if(l.bottom<0||l.top>window.innerHeight){this.opts.requestClose();return}}this.calcPosition()}onOutsideClick(t){var n,l,d,a,f;if(this.opts.closeOnOutsideClick===!1)return;const o=t.target;(d=(l=(n=this.opts).container)==null?void 0:l.call(n))!=null&&d.contains(o)||(a=this.opts.panel())!=null&&a.contains(o)||(f=this.opts.anchor())!=null&&f.contains(o)||this.opts.requestClose()}}const ut=[];let Ht=!1;function Ko(e){var o;if(e.key!=="Escape")return;const t=ut[ut.length-1];t&&t.kind==="moz"&&((o=t.onEscape)==null||o.call(t,e),e.stopPropagation())}function Bn(){Ht||typeof window>"u"||(window.addEventListener("keydown",Ko,{capture:!0}),Ht=!0)}function Fn(){!Ht||typeof window>"u"||(window.removeEventListener("keydown",Ko,!0),Ht=!1)}function ho(e){ut.push(e),Bn();let t=!1;return{release(){if(t)return;t=!0;const o=ut.indexOf(e);o>=0&&ut.splice(o,1),ut.length===0&&Fn()},isTopmost(){return ut[ut.length-1]===e}}}function mo(e){return ho({kind:"moz",onEscape:e})}function Nn(){return ho({kind:"foreign"})}function Gt(){return ho({kind:"self"})}function Hn(){return ut.length}function fo(e={}){const{circleClass:t="",progressClass:o=""}=e;return s.html`<svg
|
|
1
|
+
"use strict";var gn=Object.defineProperty;var vn=(e,t,o)=>t in e?gn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var Re=(e,t,o)=>vn(e,typeof t!="symbol"?t+"":t,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("lit-html"),so=require("lit-html/directive.js"),ee=require("lit-html/directives/style-map.js"),wn=require("clsx"),Ee=require("lit-html/directives/if-defined.js"),_o=require("lit-html/directives/unsafe-html.js"),uo=require("lit-html/directives/live.js"),K=require("lit-html/directives/ref.js"),pt=require("dayjs"),bn=require("dayjs/plugin/duration.js"),Cn=require("dayjs/plugin/minMax.js"),yn=require("dayjs/plugin/timezone.js"),$n=require("dayjs/plugin/utc.js"),Sn=require("dayjs/plugin/isSameOrBefore.js"),kn=require("dayjs/plugin/isSameOrAfter.js");require("dayjs/locale/ko.js");require("dayjs/locale/en.js");require("dayjs/locale/zh.js");require("dayjs/locale/ja.js");const nt=require("@tanstack/virtual-core");var lt=typeof document<"u"?document.currentScript:null;class Uo{constructor(t){Re(this,"container");Re(this,"updateScheduled",!1);Re(this,"mounted",!1);Re(this,"cleanups",[]);Re(this,"endMarker",null);this.container=t}mount(){return this.mounted?this:(this.mounted=!0,this.onMount(),this.renderNow(),this)}requestUpdate(){!this.mounted||this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>{this.updateScheduled=!1,this.mounted&&this.renderNow()}))}renderNow(){s.render(this.template(),this.container,this.rootOptions())}rootOptions(){return this.endMarker||(this.endMarker=this.container.appendChild(document.createComment(""))),{renderBefore:this.endMarker}}addCleanup(t){this.cleanups.push(t)}onMount(){}onDestroy(){}destroy(){if(this.mounted){this.mounted=!1,this.onDestroy();for(const t of this.cleanups.splice(0))try{t()}catch{}this.endMarker&&(s.render(s.nothing,this.container,{renderBefore:this.endMarker}),this.endMarker.remove(),this.endMarker=null)}}get isMounted(){return this.mounted}}class En{constructor(){Re(this,"listeners",new Set)}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}emit(){for(const t of this.listeners)t()}clearListeners(){this.listeners.clear()}}class Wo{constructor(){Re(this,"renderers",new Map);Re(this,"resolver",null);Re(this,"mounted",new Map)}setResolver(t){this.resolver=t}lookup(t){var o;return this.renderers.get(t)??((o=this.resolver)==null?void 0:o.call(this,t))}register(t,o){this.renderers.set(t,o)}unregister(t){for(const o of Array.from(this.mounted.keys()))(o===t||o.startsWith(`${t}#`))&&this.clear(o);this.renderers.delete(t)}has(t){return this.lookup(t)!==void 0}fill(t,o,n,l){var i,c;const d=this.lookup(o);if(!d)return!1;const a=this.mounted.get(t);if(a){if(a.el===n)return(c=(i=a.handle).update)==null||c.call(i,l),!0;a.handle.dispose(),this.mounted.delete(t)}for(const[r,u]of this.mounted)u.el===n&&(u.handle.dispose(),this.mounted.delete(r));const f=d(n,l);return this.mounted.set(t,{el:n,handle:f}),!0}clear(t){const o=this.mounted.get(t);o&&(o.handle.dispose(),this.mounted.delete(t))}clearAll(){for(const t of Array.from(this.mounted.keys()))this.clear(t)}destroy(){this.clearAll(),this.renderers.clear(),this.resolver=null}get mountedCount(){return this.mounted.size}}class Nt{constructor(){Re(this,"el",null)}open(t="",o=document.body){return this.el?this.el:(this.el=document.createElement("div"),t&&(this.el.className=t),o.appendChild(this.el),this.el)}close(){this.el&&(this.el.remove(),this.el=null)}get element(){return this.el}get isOpen(){return this.el!==null}}function Mt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function Ae(e,t=16){return e/t}let xo=0;function ot(e=""){return xo+=1,`${e}${xo}`}const wt=(e,t)=>{const o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;for(const l of o)if(e[l]!==t[l])return!1;return!0};function ye(e,t){const o={};for(const n of Object.keys(e))t.has(n)||(o[n]=e[n]);return o}function Wt(e){const t={},o={};for(const n of Object.keys(e))n.startsWith("aria-")?t[n]=e[n]:o[n]=e[n];return{aria:t,dom:o}}const Pn=["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth"],Ln=new Set(Pn.flatMap(e=>[e,...["Webkit","ms","Moz","O"].map(t=>t+e.charAt(0).toUpperCase()+e.slice(1))]));function Mn(e){return e.includes("-")?e.replace(/^-ms-/,"ms-").replace(/-([a-z])/g,(t,o)=>o.toUpperCase()):e}function be(e){if(!e)return{};if(typeof e=="object"){const t={};for(const[o,n]of Object.entries(e))t[o]=typeof n=="number"&&n!==0&&!o.startsWith("--")&&!Ln.has(Mn(o))?`${n}px`:n;return t}if(typeof e=="string"){const t={};for(const o of e.split(";")){const n=o.indexOf(":");n>0&&(t[o.slice(0,n).trim()]=o.slice(n+1).trim())}return t}return{}}function po(e,t,o,n){return e.length>0||t===0||!n||n.getBoundingClientRect().height>0?e:Array.from({length:t},(l,d)=>({index:d,size:o,start:d*o}))}const no={Toast:{close:"닫기"},Chip:{remove:"삭제"},Callout:{dismiss:"닫기"},Notification:{close:"닫기",unread:"읽지 않음"},Popup:{title:"팝업",save:"저장",cancel:"취소",ok:"확인",close:"닫기"},Select:{searchPlaceholder:"검색",emptyText:"데이터가 없습니다",requiredMessage:"{label} 은(는) 필수입니다"},MultiSelect:{search:"검색",selectAll:"전체 선택",selectFiltered:"필터 결과 선택",specificResults:"결과만",specificSelect:"선택만",noData:"데이터가 없습니다",required:"{label} 은(는) 필수입니다",headerFormat:"항목 ({count})"},TreeSelect:{search:"검색",selectAll:"전체 선택",selectFiltered:"필터 결과 선택",specificResults:"결과만",noData:"데이터가 없습니다",showSelectedOnly:"선택한 항목만 표시",expandAll:"모두 펼치기",collapseAll:"모두 접기",required:"{label} 은(는) 필수입니다",headerFormat:"항목 ({count})",expand:"펼치기",collapse:"접기"},Controller:{filterLabel:"조회 조건"},TagInput:{add:"추가",editTag:"{label} 수정",removeTag:"{label} 삭제"},TimePicker:{hour:"시",minute:"분",currentTime:"현재 시간"},EmptyState:{customEmptyHeader:"데이터 없음",customEmptyContent:"표시할 데이터가 없습니다.",dataEmptyHeader:"데이터가 없습니다.",dataEmptyContent:"필요한 데이터를 추가해 주세요.",resultEmptyHeader:"설정한 조건에 해당되는 데이터가 없습니다.",resultEmptyContent:`조회 조건이 적절하게 설정되었는지 확인해주세요.
|
|
2
|
+
조회 조건을 변경하였다면, 조회 버튼을 다시 눌러주세요.`,searchEmptyHeader:"검색 결과 없음",searchEmptyContent:"필터 값을 확인하고 다시 시도해 주세요."},TableSelect:{searchPlaceholder:"검색",emptyText:"데이터가 없습니다",requiredMessage:"{label} 은(는) 필수입니다",footerSelect:"선택",footerNavigate:"이동",footerClose:"닫기"},Common:{requiredMessage:"{label} 은(는) 필수입니다"},Grid:{layoutSetting:"보기 설정",filter:"필터",sort:"정렬",customCellStyle:"조건부 서식 설정",reset:"초기화",searchFilter:"검색",newView:"새 뷰",selectAll:"전체 선택",columnPicker:"열 표시/숨김 설정",viewToolbar:"Tool Bar 보기",viewFooter:"Footer 보기",viewGroupPanel:"그룹 패널 보기",resetFilterAndSort:"필터 및 정렬 초기화",defaultView:"기본 뷰",filterPopup:"필터 설정",resetFilter:"필터 초기화",addFilter:"필터 추가",sortingPopup:"정렬 설정",ascending:"오름차순",descending:"내림차순",resetSort:"정렬 초기화",addSort:"정렬 추가",symbolEqual:"같음",symbolNotEqual:"같지 않음",symbolContains:"포함",symbolNotContains:"포함하지 않음",symbolLessThan:"보다 작음",symbolGreaterThan:"보다 큼",symbolLessOrEqual:"이하",symbolGreaterOrEqual:"이상",symbolEmpty:"비어 있음",symbolNotEmpty:"비어 있지 않음",customCellRuleNamePlaceholder:"규칙 이름을 입력하세요",addFormulaCondition:"조건 추가",applicationColumn:"적용 열",backgroundColor:"배경색",fontColor:"글꼴 색",resetCustomCell:"초기화",addFormulaConditionSet:"규칙 추가",customColor:"사용자 지정 색상",formulaConditionSet:"새 규칙",contextFilterAndSort:"필터 및 정렬",contextAddFilter:"필터 추가",contextSelectFilter:"선택 값으로 필터",contextResetColumnFilter:"열 필터 초기화",contextResetColumnSort:"열 정렬 초기화",contextResetColumnAll:"열 필터/정렬 초기화",contextDataCopy:"선택한 데이터 복사",contextDataExcelCopy:"Excel 복사",contextDataWithHeaderCopy:"선택한 데이터 복사 (헤더 포함)",contextPin:"열 고정 / 해제",contextColumnPicker:"열 표시/숨김 설정",contextMoveColumnFirst:"첫 번째 열로 보내기",contextAutoSizeColumns:"열 너비 자동 조정",contextGroupPanel:"그룹 패널",contextGroupToggle:"그룹 접기/펼치기",contextGroupCollapseAll:"모든 그룹 접기",contextGroupExpandAll:"모든 그룹 펼치기",groupPanelPlaceholder:"열을 드래그 앤 드롭하여 그룹을 만듭니다.",contextBulkEdit:"데이터 일괄변경 [{name}]",contextImport:"가져오기",contextImportExcel:"Excel 가져오기 (덮어쓰기)",contextImportExcelAppend:"Excel 가져오기 (추가)",contextExport:"내보내기",contextExportXlsx:"엑셀 내보내기 (xlsx)",contextExportCsv:"CSV 내보내기 (csv)",contextSum:"합계",check:"확인",cancel:"취소",save:"저장",remove:"삭제",close:"닫기",pause:"일시 중지",add:"추가",immediateApply:"바로 적용",warning:"경고",mozWarning:"경고",confirmCancel:"취소하시겠습니까?",alreadyExcelProgress:"Excel 작업이 이미 진행 중입니다.",downloadFail:"다운로드에 실패했습니다.",addDataWithFilterSort:"필터/정렬이 적용된 상태에서 데이터를 추가하시겠습니까?",resetAndAdd:"초기화 후 추가",confirmDeleteGeneral:"{name}을(를) 삭제하시겠습니까?",toastCopySuccess:"복사되었습니다.",toastSaveSuccess:"저장되었습니다.",toastSaveError:"저장에 실패했습니다.",toastResetSuccess:"초기화되었습니다.",toastRequiredVal:"필수 값을 입력하세요.",excelInvalidExcel:"유효하지 않은 Excel 파일입니다.",excelInvalidUpload:"유효하지 않은 업로드 데이터입니다.",downloadFormat:"서식 내려받기",click:"클릭",drag:"드래그",overwriteSelected:"선택한 항목을 덮어쓰시겠습니까?",fileOverwrite:"파일을 덮어쓰시겠습니까?",dropHere:"이 곳을 클릭 또는 파일을 드래그 하세요.",dropHerePrefix:"이 곳을 ",dropHereMiddle:" 또는 파일을 ",dropHereSuffix:" 하세요.",withFormatting:"서식 포함",requestTimedOut:"요청 시간이 초과되었습니다.",serverError:"서버 오류가 발생했습니다.",total:"전체",correct:"정상",error:"오류",success:"성공",fail:"실패",excelExportConfirmLargeData:"대용량 데이터를 내보내시겠습니까?",footerTotalRowCount:"총 개수: {totalRowCount}개",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"평균",aggregateCount:"개수",aggregateMin:"최소",aggregateMax:"최대",aggregateSum:"합계",settings:"설정",collapseToolbar:"툴바 접기",expandToolbar:"툴바 펼치기",searchPrev:"이전 검색 결과",searchNext:"다음 검색 결과",searchGoTo:"결과 번호로 이동",searching:"검색 중...",deleteCondition:"조건 삭제",deleteSort:"정렬 삭제",selectPlaceholder:"선택",byValueLabel:"레이블",decrease:"감소",increase:"증가",selectColor:"색상 선택",noColor:"색상 없음",customColorInput:"직접 입력",alignLeft:"왼쪽 정렬",alignCenter:"가운데 정렬",alignRight:"오른쪽 정렬",alignLabel:"정렬",fontStyleLabel:"글자 스타일",bold:"굵게",italic:"기울임",underline:"밑줄",columnOptions:"컬럼 옵션",showAllColumns:"전체 표시",commonSection:"공통",headerLabelField:"헤더 라벨",pinColumn:"고정",pinLeft:"왼쪽",pinNone:"없음",pinRight:"오른쪽",columnWidthPx:"너비(px)",headerSection:"헤더",cellSection:"셀",fontLabel:"글자",sizeLabel:"크기",displayMask:"표시 형식(마스크)",resetThisColumn:"이 컬럼 초기화",selectColumnHint:"컬럼을 선택하세요",showColumnNamed:"{column} 표시",columnTextColor:"글자색",cellStyleTitle:"셀 스타일",formulaHelp:"수식 도움말",validFormula:"유효한 수식",formulaHint:"컬럼을 선택하거나 값을 입력해 수식을 작성하세요.",ruleName:"규칙 이름",targetColumns:"적용 컬럼",allColumns:"전체 컬럼",colorLabel:"색상",cellBgColor:"배경 색상",cellTextColor:"텍스트 색상",moveUp:"위로",moveDown:"아래로",formulaPlaceholder:"예: [수요수량] > [재고수량] AND [우선순위] < 3",helpColumnRef:"컬럼 참조",helpCompare:"비교",helpArithmetic:"산술",helpLogic:"논리",helpString:"문자열",helpNull:"NULL 체크",helpValue:"값",groupColon:"그룹:",groupEmptyHint:"여기에 컬럼을 추가해 그룹화",addGroupBtn:"+ 그룹 추가",ungroup:"해제",removeGroup:"그룹 제거",excelImportTitle:"Excel 가져오기",processing:"처리 중…",excelPreview:"미리보기 {shown}행 / 총 {total}행+",clientImportFile:"파일에서 가져오기 (클라이언트)",clientExportXlsx:"XLSX (클라이언트)",groupExpand:"그룹 펼치기",groupCollapse:"그룹 접기",fontSizeDefault:"기본",maskGroupNone:"없음",maskGroupNumber:"숫자",maskGroupDate:"날짜",maskGroupString:"문자열",maskNoneText:"마스크 없음",maskNoneDesc:"원본 값 그대로 표시",maskThousandsText:"천 단위 구분 (1,234)",maskThousandsDesc:"예: 1234 → 1,234",maskDecimal2Text:"소수 2자리 (#,##0.00)",maskDecimal2Desc:"예: 1234.5 → 1,234.50",maskKrwText:"원화 (₩1,234)",maskKrwDesc:"예: 1234 → ₩1,234",maskUsdText:"달러 ($1,234.00)",maskUsdDesc:"예: 1234.5 → $1,234.50",maskPercentText:"퍼센트 (12%)",maskPercentDesc:"예: 12 → 12%",maskDateIsoDesc:"예: 2026-05-26",maskDateKoDesc:"예: 2026년 05월 26일",maskDatetimeDesc:"예: 2026-05-26 14:30",maskDateUsDesc:"예: 05/26/2026",maskPhoneText:"전화번호 (010-1234-5678)",maskPhoneDesc:"예: 01012345678 → 010-1234-5678",maskRrnText:"주민등록번호 (000000-0000000)",maskRrnDesc:"예: 9501011234567 → 950101-1234567",maskBizText:"사업자등록번호 (000-00-00000)",maskBizDesc:"예: 1234567890 → 123-45-67890"},GridPivot:{setting:"피봇 설정",gridSetting:"그리드 설정",fieldSetting:"값 필드 설정",showRowTotals:"행 합계 표시",showColumnTotals:"열 합계 표시",subtotalCriteria:"소계 기준",subtotalAggregateField:"소계 집계 필드",totalsBeforeData:"합계 먼저 보기",showZeros:"빈 값 채우기",showOutlineMode:"개요 모드",collapsibleSubtotal:"소계 접기",fieldName:"필드 이름",fieldAggregate:"집계",fieldShowAs:"표시 방식",fieldFormat:"형식",openChart:"차트 열기",selectValueField:"값 필드 선택",none:"없음",sum:"합계",count:"개수",average:"평균",max:"최대값",min:"최소값",range:"범위",std:"표준 편차",var:"분산",stdPop:"모표준 편차",varPop:"모분산",cntAll:"전체 개수",cntNumbers:"숫자 개수",showFirstValue:"첫 번째 값",showLastValue:"마지막 값",noCalculation:"계산 없음",diffRow:"이전 행과의 차이",diffRowPct:"이전 행과의 차이 (%)",diffCol:"이전 열과의 차이",diffColPct:"이전 열과의 차이 (%)",grandtotalPct:"전체 합계 대비 (%)",rowTotalPct:"행 합계 대비 (%)",colTotalPct:"열 합계 대비 (%)",prevRowPct:"이전 행 대비 (%)",prevColPct:"이전 열 대비 (%)",runTot:"누적 합계",runTotPct:"누적 합계 (%)",generalFormat:"일반",int:"정수",float:"실수",currency:"통화",percentage:"백분율 (정수)",percentageDot2:"백분율 (실수)",thousands:"천 단위",millions:"백만 단위",billions:"십억 단위",subtotal:"소계",grandtotal:"전체 합계",grandtotalValue:"총합계",category:"범주",chartType:"차트 유형",chartXAxis:"X축 범주",chartYAxis:"Y축 범주",categoryName:"카테고리",barChart:"막대 차트",lineChart:"꺾은선 차트",lineSymbolChart:"기호 꺾은선 차트",areaChart:"영역 차트",chartRenderingErrorHeader:"차트 렌더링 오류",chartRenderingErrorContent:"차트를 표시할 수 없습니다.",contextPivotExportXlsx:"화면 내보내기 (xlsx)",contextPivotExportOriginXlsx:"원본 데이터 내보내기 (xlsx)",contextPivotExportOriginCsv:"원본 데이터 내보내기 (csv)",row:"행",column:"열",value:"값",filter:"필터",searchFieldPlaceholder:"필드 검색...",dropZoneRowPlaceholder:"행 축 필드를 드래그하세요",dropZoneColumnPlaceholder:"열 축 필드를 드래그하세요",dropZoneValuePlaceholder:"값 필드를 드래그하세요",dropZoneFilterPlaceholder:"필터 필드를 드래그하세요",update:"업데이트",selectFieldForReport:"보고서에 추가할 필드 선택:",dragFieldsBetweenAreas:"아래 영역 사이에 필드를 끌어 놓으십시오:",valueSummaryCriteria:"값 요약 기준",roundRound:"반올림",roundFloor:"내림",roundCeil:"올림",roundTrunc:"절삭",roundingMode:"반올림 모드",decimalPlaces:"소수점 자리수",decimalUnlimited:"제한 없음",showOriginalValue:"원본값 병기",back:"뒤로",parentRowPct:"상위 행 그룹(%)",parentColPct:"상위 열 그룹(%)",rankAsc:"오름차순 순위",rankDesc:"내림차순 순위",index:"인덱스",showTotalsGrand:"합계",showTotalsSub:"부분합",fieldPanelSetting:"필드 설정",colSubtotalCriteria:"열 소계 기준",allowRowToggle:"행 확장/축소 허용",allowColToggle:"열 확장/축소 허용",outlineMode:"요약 모드"},Gantt:{searchPlaceholder:"검색",columnSize:"컬럼 크기",rowSize:"행 크기"},Chart:{filterPopup:"필터",resetFilter:"필터 초기화",addFilter:"필터 추가",symbolEqual:"같음",symbolNotEqual:"같지 않음",symbolContains:"포함",symbolNotContains:"포함하지 않음",symbolLessThan:"보다 작음",symbolGreaterThan:"보다 큼",symbolLessOrEqual:"작거나 같음",symbolGreaterOrEqual:"크거나 같음",symbolEmpty:"비어있음",symbolNotEmpty:"비어있지 않음",chartSetting:"차트 설정",chartCategory:"차트 카테고리",chartType:"차트 타입",chartUseZoom:"줌 사용",multiYAxisSetting:"Y축 다중 설정",notUsed:"(사용안함)",chartPopup:"차트 팝업",errorMessage:"데이터를 불러오는 중 오류가 발생했습니다.",valueFieldSetting:"값 필드 설정",valueSummaryCriteria:"값 요약 기준",selectFieldForReport:"보고서에 추가할 필드 선택:",column:"열",row:"행",value:"값",sumValue:"∑ 값",count:"개수",sum:"합계",average:"평균",min:"최소값",max:"최대값",seriesCategory:"일반",pieCategory:"파이",scatterCategory:"산점도",treemapCategory:"트리맵",boxplotCategory:"박스플롯",candlestickCategory:"캔들스틱",barChart:"바 차트",stackBarChart:"스택 바 차트",horizontalStackBarChart:"가로 스택 바 차트",lineChart:"선 차트",lineSymbolChart:"선 차트(심볼)",areaChart:"면적 차트",general:"일반",custom:"사용자 지정",axisCategoryLabel:"축 (범주)",legendSeriesLabel:"범례 (계열)",legendSingleLabel:"범례 (단일 선택)",legendMultiLabel:"범례 (다중 선택 가능)",valueSingleLabel:"값 (단일 선택)",xAxisSingleLabel:"X축 (단일 선택)",yAxisMultiLabel:"Y축 (다중 선택 가능)",notSet:"미지정",legendLimitExceededTitle:"차트 범례 개수가 최대 {limit}개를 초과했습니다.",legendLimitExceededContent:"범례를 {limit}개 이하로 재설정하여 주십시오."},NumberInput:{increase:"값 증가",decrease:"값 감소"},DateInput:{prevDate:"이전 날짜",nextDate:"다음 날짜"},PasswordInput:{showPassword:"비밀번호 표시",hidePassword:"비밀번호 숨기기"},Tab:{closeTab:"{label} 닫기"},SplitPane:{resizeHandle:"영역 크기 조절"},BreadCrumb:{navigation:"탐색 경로"}},xn={Toast:{close:"Close"},Chip:{remove:"Remove"},Callout:{dismiss:"Dismiss"},Notification:{close:"Close",unread:"Unread"},Popup:{title:"Popup",save:"Save",cancel:"Cancel",ok:"OK",close:"Close"},Select:{searchPlaceholder:"Search",emptyText:"No data",requiredMessage:"{label} is required"},MultiSelect:{search:"Search",selectAll:"Select All",selectFiltered:"Select Filtered",specificResults:"Only Results",specificSelect:"Only",noData:"No data",required:"{label} is required",headerFormat:"ITEMS ({count})"},TreeSelect:{search:"Search",selectAll:"Select All",selectFiltered:"Select Filtered",specificResults:"Only Results",noData:"No data",showSelectedOnly:"Show selected only",expandAll:"Expand All",collapseAll:"Collapse All",required:"{label} is required",headerFormat:"ITEMS ({count})",expand:"Expand",collapse:"Collapse"},Controller:{filterLabel:"Search criteria"},TagInput:{add:"Add",editTag:"Edit {label}",removeTag:"Remove {label}"},TimePicker:{hour:"Hour",minute:"Minute",currentTime:"Current Time"},EmptyState:{customEmptyHeader:"No data",customEmptyContent:"There is no data to display.",dataEmptyHeader:"No data to display",dataEmptyContent:"Please enter the required data.",resultEmptyHeader:"No results",resultEmptyContent:"Check the search conditions and try again.",searchEmptyHeader:"No search results",searchEmptyContent:"Please check the filter value and try again."},TableSelect:{searchPlaceholder:"Search",emptyText:"No data",requiredMessage:"{label} is required",footerSelect:"Select",footerNavigate:"Navigate",footerClose:"Close"},Common:{requiredMessage:"{label} is required"},Grid:{layoutSetting:"Layout Settings",filter:"Filter",sort:"Sort",customCellStyle:"Conditional Formatting",reset:"Reset",searchFilter:"Search",newView:"New View",selectAll:"Select All",columnPicker:"Show/Hide Columns",viewToolbar:"Show Toolbar",viewFooter:"Show Footer",viewGroupPanel:"Show Group Panel",resetFilterAndSort:"Reset Filter & Sort",defaultView:"Default View",filterPopup:"Filter Settings",resetFilter:"Reset Filter",addFilter:"Add Filter",sortingPopup:"Sort Settings",ascending:"Ascending",descending:"Descending",resetSort:"Reset Sort",addSort:"Add Sort",symbolEqual:"Equal",symbolNotEqual:"Not Equal",symbolContains:"Contains",symbolNotContains:"Does Not Contain",symbolLessThan:"Less Than",symbolGreaterThan:"Greater Than",symbolLessOrEqual:"Less Or Equal",symbolGreaterOrEqual:"Greater Or Equal",symbolEmpty:"Empty",symbolNotEmpty:"Not Empty",customCellRuleNamePlaceholder:"Enter rule name",addFormulaCondition:"Add Condition",applicationColumn:"Application Column",backgroundColor:"Background Color",fontColor:"Font Color",resetCustomCell:"Reset",addFormulaConditionSet:"Add Rule",customColor:"Custom Color",formulaConditionSet:"New Rule",contextFilterAndSort:"Filter & Sort",contextAddFilter:"Add Filter",contextSelectFilter:"Filter by Selection",contextResetColumnFilter:"Reset Column Filter",contextResetColumnSort:"Reset Column Sort",contextResetColumnAll:"Reset Column Filter/Sort",contextDataCopy:"Copy",contextDataExcelCopy:"Copy for Excel",contextDataWithHeaderCopy:"Copy with Header",contextPin:"Pin Column",contextColumnPicker:"Column Picker",contextMoveColumnFirst:"Move to First Column",contextAutoSizeColumns:"Auto Size Columns",contextGroupPanel:"Group Panel",contextGroupToggle:"Toggle Collapse",contextGroupCollapseAll:"Collapse All Groups",contextGroupExpandAll:"Expand All Groups",groupPanelPlaceholder:"Drag and drop columns here to create groups.",contextBulkEdit:"Bulk Edit {name}",contextImport:"Import",contextImportExcel:"Import Excel (Overwrite)",contextImportExcelAppend:"Import Excel (Append)",contextExport:"Export",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"Sum",check:"OK",cancel:"Cancel",save:"Save",remove:"Delete",close:"Close",pause:"Pause",add:"Add",immediateApply:"Apply Immediately",warning:"Warning",mozWarning:"Warning",confirmCancel:"Are you sure you want to cancel?",alreadyExcelProgress:"Excel operation is already in progress.",downloadFail:"Download failed.",addDataWithFilterSort:"Add data while filter/sort is applied?",resetAndAdd:"Reset and Add",confirmDeleteGeneral:"Are you sure you want to delete {name}?",toastCopySuccess:"Copied.",toastSaveSuccess:"Saved.",toastSaveError:"Save failed.",toastResetSuccess:"Reset.",toastRequiredVal:"Please enter the required values.",excelInvalidExcel:"Invalid Excel file.",excelInvalidUpload:"Invalid upload data.",downloadFormat:"Download Format",click:"Click",drag:"Drag",overwriteSelected:"Overwrite selected items?",fileOverwrite:"Overwrite the file?",dropHere:"Drop here",dropHerePrefix:"",dropHereMiddle:" here or ",dropHereSuffix:" a file.",withFormatting:"With Formatting",requestTimedOut:"Request timed out.",serverError:"A server error occurred.",total:"Total",correct:"Correct",error:"Error",success:"Success",fail:"Fail",excelExportConfirmLargeData:"Export large data?",footerTotalRowCount:"Total: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"Average",aggregateCount:"Count",aggregateMin:"Min",aggregateMax:"Max",aggregateSum:"Sum",settings:"Settings",collapseToolbar:"Collapse toolbar",expandToolbar:"Expand toolbar",searchPrev:"Previous result",searchNext:"Next result",searchGoTo:"Go to result",searching:"Searching...",deleteCondition:"Delete condition",deleteSort:"Delete sort",selectPlaceholder:"Select",byValueLabel:"Label",decrease:"Decrease",increase:"Increase",selectColor:"Select color",noColor:"No color",customColorInput:"Custom",alignLeft:"Align left",alignCenter:"Align center",alignRight:"Align right",alignLabel:"Align",fontStyleLabel:"Font style",bold:"Bold",italic:"Italic",underline:"Underline",columnOptions:"Column Options",showAllColumns:"Show all",commonSection:"Common",headerLabelField:"Header label",pinColumn:"Pin",pinLeft:"Left",pinNone:"None",pinRight:"Right",columnWidthPx:"Width (px)",headerSection:"Header",cellSection:"Cell",fontLabel:"Font",sizeLabel:"Size",displayMask:"Display format (mask)",resetThisColumn:"Reset this column",selectColumnHint:"Select a column",showColumnNamed:"Show {column}",columnTextColor:"Text color",cellStyleTitle:"Cell Style",formulaHelp:"Formula help",validFormula:"Valid formula",formulaHint:"Select a column or enter a value to build a formula.",ruleName:"Rule name",targetColumns:"Target columns",allColumns:"All columns",colorLabel:"Color",cellBgColor:"Background color",cellTextColor:"Text color",moveUp:"Move up",moveDown:"Move down",formulaPlaceholder:"e.g. [Demand] > [Stock] AND [Priority] < 3",helpColumnRef:"Column ref",helpCompare:"Compare",helpArithmetic:"Arithmetic",helpLogic:"Logic",helpString:"String",helpNull:"NULL check",helpValue:"Value",groupColon:"Group:",groupEmptyHint:"Drag columns here to group",addGroupBtn:"+ Add group",ungroup:"Clear",removeGroup:"Remove group",excelImportTitle:"Excel Import",processing:"Processing…",excelPreview:"Preview {shown} rows / {total} total+",clientImportFile:"Import from file (client)",clientExportXlsx:"XLSX (client)",groupExpand:"Expand group",groupCollapse:"Collapse group",fontSizeDefault:"Default",maskGroupNone:"None",maskGroupNumber:"Number",maskGroupDate:"Date",maskGroupString:"String",maskNoneText:"No mask",maskNoneDesc:"Show raw value",maskThousandsText:"Thousands (1,234)",maskThousandsDesc:"e.g. 1234 → 1,234",maskDecimal2Text:"2 decimals (#,##0.00)",maskDecimal2Desc:"e.g. 1234.5 → 1,234.50",maskKrwText:"KRW (₩1,234)",maskKrwDesc:"e.g. 1234 → ₩1,234",maskUsdText:"USD ($1,234.00)",maskUsdDesc:"e.g. 1234.5 → $1,234.50",maskPercentText:"Percent (12%)",maskPercentDesc:"e.g. 12 → 12%",maskDateIsoDesc:"e.g. 2026-05-26",maskDateKoDesc:"e.g. 2026-05-26",maskDatetimeDesc:"e.g. 2026-05-26 14:30",maskDateUsDesc:"e.g. 05/26/2026",maskPhoneText:"Phone (010-1234-5678)",maskPhoneDesc:"e.g. 01012345678 → 010-1234-5678",maskRrnText:"RRN (000000-0000000)",maskRrnDesc:"e.g. 9501011234567 → 950101-1234567",maskBizText:"Business No. (000-00-00000)",maskBizDesc:"e.g. 1234567890 → 123-45-67890"},GridPivot:{setting:"Pivot Settings",gridSetting:"Grid Settings",fieldSetting:"Field Settings",showRowTotals:"Show Row Totals",showColumnTotals:"Show Column Totals",subtotalCriteria:"Subtotal Criteria",subtotalAggregateField:"Subtotal Aggregate Field",totalsBeforeData:"Show Totals Before Data",showZeros:"Show Zeros",showOutlineMode:"Outline Mode",collapsibleSubtotal:"Collapsible Subtotal",fieldName:"Field Name",fieldAggregate:"Aggregate",fieldShowAs:"Show As",fieldFormat:"Format",openChart:"Open Chart",selectValueField:"Select Value Field",none:"None",sum:"Sum",count:"Count",average:"Average",max:"Max",min:"Min",range:"Range",std:"Std Dev",var:"Variance",stdPop:"Pop Std Dev",varPop:"Pop Variance",cntAll:"Count All",cntNumbers:"Count Numbers",showFirstValue:"First Value",showLastValue:"Last Value",noCalculation:"No Calculation",diffRow:"Diff from Previous Row",diffRowPct:"Diff from Previous Row (%)",diffCol:"Diff from Previous Column",diffColPct:"Diff from Previous Column (%)",grandtotalPct:"% of Grand Total",rowTotalPct:"% of Row Total",colTotalPct:"% of Column Total",prevRowPct:"% of Previous Row",prevColPct:"% of Previous Column",runTot:"Running Total",runTotPct:"Running Total (%)",generalFormat:"General",int:"Integer",float:"Decimal",currency:"Currency",percentage:"Percentage (Integer)",percentageDot2:"Percentage (Decimal)",thousands:"Thousands",millions:"Millions",billions:"Billions",subtotal:"Subtotal",grandtotal:"Grand Total",grandtotalValue:"Grand Total",category:"Category",chartType:"Chart Type",chartXAxis:"X Axis",chartYAxis:"Y Axis",categoryName:"Category Name",barChart:"Bar Chart",lineChart:"Line Chart",lineSymbolChart:"Symbol Line Chart",areaChart:"Area Chart",chartRenderingErrorHeader:"Chart Rendering Error",chartRenderingErrorContent:"Unable to display the chart.",contextPivotExportXlsx:"View Export (xlsx)",contextPivotExportOriginXlsx:"Source Data Export (xlsx)",contextPivotExportOriginCsv:"Source Data Export (csv)",row:"Rows",column:"Columns",value:"Values",filter:"Filters",searchFieldPlaceholder:"Search fields...",dropZoneRowPlaceholder:"Drag row axis fields here",dropZoneColumnPlaceholder:"Drag column axis fields here",dropZoneValuePlaceholder:"Drag value fields here",dropZoneFilterPlaceholder:"Drag filter fields here",update:"Update",selectFieldForReport:"Choose fields to add to report:",dragFieldsBetweenAreas:"Drag fields between areas below:",valueSummaryCriteria:"Summarize Values By",roundRound:"Round",roundFloor:"Floor",roundCeil:"Ceil",roundTrunc:"Truncate",roundingMode:"Rounding mode",decimalPlaces:"Decimal places",decimalUnlimited:"No limit",showOriginalValue:"Show original value",back:"Back",parentRowPct:"% of Parent Row Group",parentColPct:"% of Parent Column Group",rankAsc:"Rank Ascending",rankDesc:"Rank Descending",index:"Index",showTotalsGrand:"Grand Totals",showTotalsSub:"Subtotals",fieldPanelSetting:"Field Settings",colSubtotalCriteria:"Column Subtotal Criteria",allowRowToggle:"Allow Row Expand/Collapse",allowColToggle:"Allow Column Expand/Collapse",outlineMode:"Outline Mode"},Gantt:{searchPlaceholder:"Search",columnSize:"Column Size",rowSize:"Row Size"},Chart:{filterPopup:"Filter",resetFilter:"Reset Filter",addFilter:"Add Filter",symbolEqual:"Equal",symbolNotEqual:"Not Equal",symbolContains:"Contains",symbolNotContains:"Not Contains",symbolLessThan:"Less Than",symbolGreaterThan:"Greater Than",symbolLessOrEqual:"Less or Equal",symbolGreaterOrEqual:"Greater or Equal",symbolEmpty:"Empty",symbolNotEmpty:"Not Empty",chartSetting:"Chart Setting",chartCategory:"Chart Category",chartType:"Chart Type",chartUseZoom:"Use Zoom",multiYAxisSetting:"Multi Y-Axis Setting",notUsed:"(Not Used)",chartPopup:"Chart Popup",errorMessage:"An error occurred while loading data.",valueFieldSetting:"Value Field Setting",valueSummaryCriteria:"Value Summary Criteria",selectFieldForReport:"Select fields to add to the report:",column:"Column",row:"Row",value:"Value",sumValue:"∑ Value",count:"Count",sum:"Sum",average:"Average",min:"Min",max:"Max",seriesCategory:"General",pieCategory:"Pie",scatterCategory:"Scatter",treemapCategory:"Treemap",boxplotCategory:"Boxplot",candlestickCategory:"Candlestick",barChart:"Bar Chart",stackBarChart:"Stack Bar Chart",horizontalStackBarChart:"Horizontal Stack Bar Chart",lineChart:"Line Chart",lineSymbolChart:"Line Chart (Symbol)",areaChart:"Area Chart",general:"General",custom:"Custom",axisCategoryLabel:"Axis (Category)",legendSeriesLabel:"Legend (Series)",legendSingleLabel:"Legend (Single)",legendMultiLabel:"Legend (Multiple)",valueSingleLabel:"Value (Single)",xAxisSingleLabel:"X-Axis (Single)",yAxisMultiLabel:"Y-Axis (Multiple)",notSet:"Not Set",legendLimitExceededTitle:"The number of chart legends has exceeded the maximum of {limit}.",legendLimitExceededContent:"Please reconfigure the legend to {limit} or fewer."},NumberInput:{increase:"Increase value",decrease:"Decrease value"},DateInput:{prevDate:"Previous date",nextDate:"Next date"},PasswordInput:{showPassword:"Show password",hidePassword:"Hide password"},Tab:{closeTab:"Close {label}"},SplitPane:{resizeHandle:"Resize panes"},BreadCrumb:{navigation:"Breadcrumb"}},zn={Toast:{close:"关闭"},Chip:{remove:"删除"},Callout:{dismiss:"关闭"},Notification:{close:"关闭",unread:"未读"},Popup:{title:"弹窗",save:"保存",cancel:"取消",ok:"确认",close:"关闭"},Select:{searchPlaceholder:"搜索",emptyText:"暂无数据",requiredMessage:"{label} 为必填项"},MultiSelect:{search:"搜索",selectAll:"全选",selectFiltered:"选择筛选结果",specificResults:"仅结果",specificSelect:"仅选择",noData:"暂无数据",required:"{label} 为必填项",headerFormat:"项目 ({count})"},TreeSelect:{search:"搜索",selectAll:"全选",selectFiltered:"选择筛选结果",specificResults:"仅结果",noData:"暂无数据",showSelectedOnly:"仅显示已选项",expandAll:"全部展开",collapseAll:"全部收起",required:"{label} 为必填项",headerFormat:"项目 ({count})",expand:"展开",collapse:"折叠"},Controller:{filterLabel:"查询条件"},TagInput:{add:"添加",editTag:"编辑 {label}",removeTag:"删除 {label}"},TimePicker:{hour:"时",minute:"分",currentTime:"当前时间"},EmptyState:{customEmptyHeader:"暂无数据",customEmptyContent:"没有可显示的数据。",dataEmptyHeader:"暂无数据",dataEmptyContent:"请输入所需数据。",resultEmptyHeader:"无结果",resultEmptyContent:"请检查搜索条件后重试。",searchEmptyHeader:"无搜索结果",searchEmptyContent:"请检查筛选条件后重试。"},TableSelect:{searchPlaceholder:"搜索",emptyText:"暂无数据",requiredMessage:"{label} 为必填项",footerSelect:"选择",footerNavigate:"移动",footerClose:"关闭"},Common:{requiredMessage:"{label} 为必填项"},Grid:{layoutSetting:"布局设置",filter:"筛选",sort:"排序",customCellStyle:"条件格式设置",reset:"重置",searchFilter:"搜索",newView:"新建视图",selectAll:"全选",columnPicker:"列显示/隐藏设置",viewToolbar:"显示工具栏",viewFooter:"显示页脚",viewGroupPanel:"显示分组面板",resetFilterAndSort:"重置筛选和排序",defaultView:"默认视图",filterPopup:"筛选设置",resetFilter:"重置筛选",addFilter:"添加筛选",sortingPopup:"排序设置",ascending:"升序",descending:"降序",resetSort:"重置排序",addSort:"添加排序",symbolEqual:"等于",symbolNotEqual:"不等于",symbolContains:"包含",symbolNotContains:"不包含",symbolLessThan:"小于",symbolGreaterThan:"大于",symbolLessOrEqual:"小于或等于",symbolGreaterOrEqual:"大于或等于",symbolEmpty:"为空",symbolNotEmpty:"不为空",customCellRuleNamePlaceholder:"请输入规则名称",addFormulaCondition:"添加条件",applicationColumn:"应用列",backgroundColor:"背景色",fontColor:"字体颜色",resetCustomCell:"重置",addFormulaConditionSet:"添加规则",customColor:"自定义颜色",formulaConditionSet:"新建规则",contextFilterAndSort:"筛选和排序",contextAddFilter:"添加筛选",contextSelectFilter:"按选定值筛选",contextResetColumnFilter:"重置列筛选",contextResetColumnSort:"重置列排序",contextResetColumnAll:"重置列筛选/排序",contextDataCopy:"复制",contextDataExcelCopy:"Excel 复制",contextDataWithHeaderCopy:"含表头复制",contextPin:"固定列",contextColumnPicker:"列选择",contextMoveColumnFirst:"移至第一列",contextAutoSizeColumns:"自动调整列宽",contextGroupPanel:"分组面板",contextGroupToggle:"折叠/展开组",contextGroupCollapseAll:"折叠所有组",contextGroupExpandAll:"展开所有组",groupPanelPlaceholder:"将列拖放到此处以创建分组。",contextBulkEdit:"批量编辑 {name}",contextImport:"导入",contextImportExcel:"Excel 导入(覆盖)",contextImportExcelAppend:"Excel 导入(追加)",contextExport:"导出",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"合计",check:"确认",cancel:"取消",save:"保存",remove:"删除",close:"关闭",pause:"暂停",add:"添加",immediateApply:"立即应用",warning:"警告",mozWarning:"警告",confirmCancel:"确定要取消吗?",alreadyExcelProgress:"Excel 操作正在进行中。",downloadFail:"下载失败。",addDataWithFilterSort:"在筛选/排序状态下添加数据?",resetAndAdd:"重置后添加",confirmDeleteGeneral:"确定要删除 {name} 吗?",toastCopySuccess:"已复制。",toastSaveSuccess:"已保存。",toastSaveError:"保存失败。",toastResetSuccess:"已重置。",toastRequiredVal:"请输入必填值。",excelInvalidExcel:"无效的 Excel 文件。",excelInvalidUpload:"无效的上传数据。",downloadFormat:"下载格式",click:"点击",drag:"拖拽",overwriteSelected:"覆盖选定项?",fileOverwrite:"覆盖文件?",dropHere:"拖放到此处",dropHerePrefix:"",dropHereMiddle:"此处或",dropHereSuffix:"文件。",withFormatting:"包含格式",requestTimedOut:"请求超时。",serverError:"服务器发生错误。",total:"总计",correct:"正常",error:"错误",success:"成功",fail:"失败",excelExportConfirmLargeData:"确定导出大量数据?",footerTotalRowCount:"总计: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"平均",aggregateCount:"计数",aggregateMin:"最小值",aggregateMax:"最大值",aggregateSum:"合计",settings:"设置",collapseToolbar:"折叠工具栏",expandToolbar:"展开工具栏",searchPrev:"上一个结果",searchNext:"下一个结果",searchGoTo:"跳转到结果",searching:"搜索中...",deleteCondition:"删除条件",deleteSort:"删除排序",selectPlaceholder:"选择",byValueLabel:"标签",decrease:"减少",increase:"增加",selectColor:"选择颜色",noColor:"无颜色",customColorInput:"自定义输入",alignLeft:"左对齐",alignCenter:"居中对齐",alignRight:"右对齐",alignLabel:"对齐",fontStyleLabel:"字体样式",bold:"加粗",italic:"斜体",underline:"下划线",columnOptions:"列选项",showAllColumns:"全部显示",commonSection:"通用",headerLabelField:"表头标签",pinColumn:"固定",pinLeft:"左",pinNone:"无",pinRight:"右",columnWidthPx:"宽度(px)",headerSection:"表头",cellSection:"单元格",fontLabel:"文字",sizeLabel:"大小",displayMask:"显示格式(掩码)",resetThisColumn:"重置此列",selectColumnHint:"请选择列",showColumnNamed:"显示 {column}",columnTextColor:"文字颜色",cellStyleTitle:"单元格样式",formulaHelp:"公式帮助",validFormula:"有效公式",formulaHint:"选择列或输入值以创建公式。",ruleName:"规则名称",targetColumns:"应用列",allColumns:"全部列",colorLabel:"颜色",cellBgColor:"背景色",cellTextColor:"文字色",moveUp:"上移",moveDown:"下移",formulaPlaceholder:"例: [需求量] > [库存量] AND [优先级] < 3",helpColumnRef:"列引用",helpCompare:"比较",helpArithmetic:"算术",helpLogic:"逻辑",helpString:"字符串",helpNull:"NULL 检查",helpValue:"值",groupColon:"分组:",groupEmptyHint:"将列拖到此处进行分组",addGroupBtn:"+ 添加分组",ungroup:"解除",removeGroup:"移除分组",excelImportTitle:"Excel 导入",processing:"处理中…",excelPreview:"预览 {shown} 行 / 共 {total} 行+",clientImportFile:"从文件导入 (客户端)",clientExportXlsx:"XLSX (客户端)",groupExpand:"展开分组",groupCollapse:"折叠分组",fontSizeDefault:"默认",maskGroupNone:"无",maskGroupNumber:"数字",maskGroupDate:"日期",maskGroupString:"字符串",maskNoneText:"无掩码",maskNoneDesc:"按原值显示",maskThousandsText:"千位分隔 (1,234)",maskThousandsDesc:"例: 1234 → 1,234",maskDecimal2Text:"两位小数 (#,##0.00)",maskDecimal2Desc:"例: 1234.5 → 1,234.50",maskKrwText:"韩元 (₩1,234)",maskKrwDesc:"例: 1234 → ₩1,234",maskUsdText:"美元 ($1,234.00)",maskUsdDesc:"例: 1234.5 → $1,234.50",maskPercentText:"百分比 (12%)",maskPercentDesc:"例: 12 → 12%",maskDateIsoDesc:"例: 2026-05-26",maskDateKoDesc:"例: 2026-05-26",maskDatetimeDesc:"例: 2026-05-26 14:30",maskDateUsDesc:"例: 05/26/2026",maskPhoneText:"电话号码 (010-1234-5678)",maskPhoneDesc:"例: 01012345678 → 010-1234-5678",maskRrnText:"身份证号 (000000-0000000)",maskRrnDesc:"例: 9501011234567 → 950101-1234567",maskBizText:"营业执照号 (000-00-00000)",maskBizDesc:"例: 1234567890 → 123-45-67890"},GridPivot:{setting:"数据透视设置",gridSetting:"网格设置",fieldSetting:"字段设置",showRowTotals:"显示行合计",showColumnTotals:"显示列合计",subtotalCriteria:"小计基准",subtotalAggregateField:"小计汇总字段",totalsBeforeData:"在数据前显示合计",showZeros:"显示零值",showOutlineMode:"大纲模式",collapsibleSubtotal:"可折叠小计",fieldName:"字段名称",fieldAggregate:"汇总",fieldShowAs:"显示方式",fieldFormat:"格式",openChart:"打开图表",selectValueField:"选择值字段",none:"无",sum:"求和",count:"计数",average:"平均值",max:"最大值",min:"最小值",range:"范围",std:"标准差",var:"方差",stdPop:"总体标准差",varPop:"总体方差",cntAll:"全部计数",cntNumbers:"数字计数",showFirstValue:"第一个值",showLastValue:"最后一个值",noCalculation:"无计算",diffRow:"与前一行的差",diffRowPct:"与前一行的差 (%)",diffCol:"与前一列的差",diffColPct:"与前一列的差 (%)",grandtotalPct:"占总计百分比",rowTotalPct:"占行合计百分比",colTotalPct:"占列合计百分比",prevRowPct:"占前一行百分比",prevColPct:"占前一列百分比",runTot:"累计",runTotPct:"累计百分比",generalFormat:"常规",int:"整数",float:"小数",currency:"货币",percentage:"百分比 (整数)",percentageDot2:"百分比 (小数)",thousands:"千位",millions:"百万位",billions:"十亿位",subtotal:"小计",grandtotal:"总计",grandtotalValue:"总合计",category:"类别",chartType:"图表类型",chartXAxis:"X轴",chartYAxis:"Y轴",categoryName:"类别名称",barChart:"柱状图",lineChart:"折线图",lineSymbolChart:"符号折线图",areaChart:"面积图",chartRenderingErrorHeader:"图表渲染错误",chartRenderingErrorContent:"无法显示图表。",contextPivotExportXlsx:"视图导出 (xlsx)",contextPivotExportOriginXlsx:"原始数据导出 (xlsx)",contextPivotExportOriginCsv:"原始数据导出 (csv)",row:"行",column:"列",value:"值",filter:"筛选",searchFieldPlaceholder:"搜索字段...",dropZoneRowPlaceholder:"拖动行轴字段到这里",dropZoneColumnPlaceholder:"拖动列轴字段到这里",dropZoneValuePlaceholder:"拖动值字段到这里",dropZoneFilterPlaceholder:"拖动筛选字段到这里",update:"更新",selectFieldForReport:"选择要添加到报表的字段:",dragFieldsBetweenAreas:"在下面的区域之间拖动字段:",valueSummaryCriteria:"值汇总依据",roundRound:"四舍五入",roundFloor:"向下取整",roundCeil:"向上取整",roundTrunc:"截断",roundingMode:"舍入模式",decimalPlaces:"小数位数",decimalUnlimited:"无限制",showOriginalValue:"并列原始值",back:"返回",parentRowPct:"占上级行组百分比",parentColPct:"占上级列组百分比",rankAsc:"升序排名",rankDesc:"降序排名",index:"索引",showTotalsGrand:"总计",showTotalsSub:"小计",fieldPanelSetting:"字段设置",colSubtotalCriteria:"列小计基准",allowRowToggle:"允许行展开/折叠",allowColToggle:"允许列展开/折叠",outlineMode:"大纲模式"},Gantt:{searchPlaceholder:"搜索",columnSize:"列大小",rowSize:"行大小"},Chart:{filterPopup:"筛选",resetFilter:"重置筛选",addFilter:"添加筛选",symbolEqual:"等于",symbolNotEqual:"不等于",symbolContains:"包含",symbolNotContains:"不包含",symbolLessThan:"小于",symbolGreaterThan:"大于",symbolLessOrEqual:"小于等于",symbolGreaterOrEqual:"大于等于",symbolEmpty:"为空",symbolNotEmpty:"不为空",chartSetting:"图表设置",chartCategory:"图表类别",chartType:"图表类型",chartUseZoom:"使用缩放",multiYAxisSetting:"Y轴多轴设置",notUsed:"(未使用)",chartPopup:"图表弹窗",errorMessage:"加载数据时发生错误。",valueFieldSetting:"值字段设置",valueSummaryCriteria:"值汇总基准",selectFieldForReport:"选择要添加到报表的字段:",column:"列",row:"行",value:"值",sumValue:"∑ 值",count:"计数",sum:"合计",average:"平均",min:"最小值",max:"最大值",seriesCategory:"常规",pieCategory:"饼图",scatterCategory:"散点图",treemapCategory:"树状图",boxplotCategory:"箱线图",candlestickCategory:"K线图",barChart:"柱状图",stackBarChart:"堆叠柱状图",horizontalStackBarChart:"水平堆叠柱状图",lineChart:"折线图",lineSymbolChart:"折线图(符号)",areaChart:"面积图",general:"常规",custom:"自定义",axisCategoryLabel:"轴 (类别)",legendSeriesLabel:"图例 (系列)",legendSingleLabel:"图例 (单选)",legendMultiLabel:"图例 (多选)",valueSingleLabel:"值 (单选)",xAxisSingleLabel:"X轴 (单选)",yAxisMultiLabel:"Y轴 (多选)",notSet:"未指定",legendLimitExceededTitle:"图表图例数量已超过最大值 {limit} 个。",legendLimitExceededContent:"请将图例重新设置为 {limit} 个以内。"},NumberInput:{increase:"增加数值",decrease:"减少数值"},DateInput:{prevDate:"上一个日期",nextDate:"下一个日期"},PasswordInput:{showPassword:"显示密码",hidePassword:"隐藏密码"},Tab:{closeTab:"关闭 {label}"},SplitPane:{resizeHandle:"调整区域大小"},BreadCrumb:{navigation:"面包屑导航"}},Tn={Toast:{close:"閉じる"},Chip:{remove:"削除"},Callout:{dismiss:"閉じる"},Notification:{close:"閉じる",unread:"未読"},Popup:{title:"ポップアップ",save:"保存",cancel:"キャンセル",ok:"OK",close:"閉じる"},Select:{searchPlaceholder:"検索",emptyText:"データがありません",requiredMessage:"{label} は必須です"},MultiSelect:{search:"検索",selectAll:"すべて選択",selectFiltered:"フィルター結果を選択",specificResults:"結果のみ",specificSelect:"選択のみ",noData:"データがありません",required:"{label} は必須です",headerFormat:"項目 ({count})"},TreeSelect:{search:"検索",selectAll:"すべて選択",selectFiltered:"フィルター結果を選択",specificResults:"結果のみ",noData:"データがありません",showSelectedOnly:"選択項目のみ表示",expandAll:"すべて展開",collapseAll:"すべて折りたたむ",required:"{label} は必須です",headerFormat:"項目 ({count})",expand:"展開",collapse:"折りたたむ"},Controller:{filterLabel:"検索条件"},TagInput:{add:"追加",editTag:"{label} を編集",removeTag:"{label} を削除"},TimePicker:{hour:"時",minute:"分",currentTime:"現在時刻"},EmptyState:{customEmptyHeader:"データなし",customEmptyContent:"表示するデータがありません。",dataEmptyHeader:"表示するデータがありません",dataEmptyContent:"必要なデータを入力してください。",resultEmptyHeader:"結果なし",resultEmptyContent:"検索条件を確認して再度お試しください。",searchEmptyHeader:"検索結果なし",searchEmptyContent:"フィルター値を確認して再度お試しください。"},TableSelect:{searchPlaceholder:"検索",emptyText:"データがありません",requiredMessage:"{label} は必須です",footerSelect:"選択",footerNavigate:"移動",footerClose:"閉じる"},Common:{requiredMessage:"{label} は必須です"},Grid:{layoutSetting:"レイアウト設定",filter:"フィルター",sort:"ソート",customCellStyle:"条件付き書式設定",reset:"リセット",searchFilter:"検索",newView:"新しいビュー",selectAll:"すべて選択",columnPicker:"列の表示/非表示設定",viewToolbar:"ツールバー表示",viewFooter:"フッター表示",viewGroupPanel:"グループパネル表示",resetFilterAndSort:"フィルター・ソートリセット",defaultView:"デフォルトビュー",filterPopup:"フィルター設定",resetFilter:"フィルターリセット",addFilter:"フィルター追加",sortingPopup:"ソート設定",ascending:"昇順",descending:"降順",resetSort:"ソートリセット",addSort:"ソート追加",symbolEqual:"等しい",symbolNotEqual:"等しくない",symbolContains:"含む",symbolNotContains:"含まない",symbolLessThan:"より小さい",symbolGreaterThan:"より大きい",symbolLessOrEqual:"以下",symbolGreaterOrEqual:"以上",symbolEmpty:"空",symbolNotEmpty:"空でない",customCellRuleNamePlaceholder:"ルール名を入力してください",addFormulaCondition:"条件追加",applicationColumn:"適用列",backgroundColor:"背景色",fontColor:"フォント色",resetCustomCell:"リセット",addFormulaConditionSet:"ルールを追加",customColor:"カスタム色",formulaConditionSet:"新しいルール",contextFilterAndSort:"フィルター・ソート",contextAddFilter:"フィルター追加",contextSelectFilter:"選択値でフィルター",contextResetColumnFilter:"列フィルターリセット",contextResetColumnSort:"列ソートリセット",contextResetColumnAll:"列フィルター/ソートリセット",contextDataCopy:"コピー",contextDataExcelCopy:"Excelコピー",contextDataWithHeaderCopy:"ヘッダー付きコピー",contextPin:"列固定",contextColumnPicker:"列選択",contextMoveColumnFirst:"最初の列に移動",contextAutoSizeColumns:"列幅自動調整",contextGroupPanel:"グループパネル",contextGroupToggle:"グループ折りたたみ/展開",contextGroupCollapseAll:"すべてのグループを折りたたむ",contextGroupExpandAll:"すべてのグループを展開",groupPanelPlaceholder:"列をドラッグ&ドロップしてグループを作成します。",contextBulkEdit:"{name} 一括編集",contextImport:"インポート",contextImportExcel:"Excelインポート(上書き)",contextImportExcelAppend:"Excelインポート(追加)",contextExport:"エクスポート",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"合計",check:"確認",cancel:"キャンセル",save:"保存",remove:"削除",close:"閉じる",pause:"一時停止",add:"追加",immediateApply:"すぐに適用",warning:"警告",mozWarning:"警告",confirmCancel:"キャンセルしますか?",alreadyExcelProgress:"Excel操作が進行中です。",downloadFail:"ダウンロードに失敗しました。",addDataWithFilterSort:"フィルター/ソート適用中にデータを追加しますか?",resetAndAdd:"リセットして追加",confirmDeleteGeneral:"{name}を削除しますか?",toastCopySuccess:"コピーしました。",toastSaveSuccess:"保存しました。",toastSaveError:"保存に失敗しました。",toastResetSuccess:"リセットしました。",toastRequiredVal:"必須値を入力してください。",excelInvalidExcel:"無効なExcelファイルです。",excelInvalidUpload:"無効なアップロードデータです。",downloadFormat:"フォーマットダウンロード",click:"クリック",drag:"ドラッグ",overwriteSelected:"選択項目を上書きしますか?",fileOverwrite:"ファイルを上書きしますか?",dropHere:"ここにドロップ",dropHerePrefix:"ここを",dropHereMiddle:"またはファイルを",dropHereSuffix:"してください。",withFormatting:"書式付き",requestTimedOut:"リクエストがタイムアウトしました。",serverError:"サーバーエラーが発生しました。",total:"合計",correct:"正常",error:"エラー",success:"成功",fail:"失敗",excelExportConfirmLargeData:"大量データをエクスポートしますか?",footerTotalRowCount:"合計: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"平均",aggregateCount:"件数",aggregateMin:"最小値",aggregateMax:"最大値",aggregateSum:"合計",settings:"設定",collapseToolbar:"ツールバーを折りたたむ",expandToolbar:"ツールバーを展開",searchPrev:"前の検索結果",searchNext:"次の検索結果",searchGoTo:"結果番号へ移動",searching:"検索中...",deleteCondition:"条件を削除",deleteSort:"ソートを削除",selectPlaceholder:"選択",byValueLabel:"ラベル",decrease:"減少",increase:"増加",selectColor:"色を選択",noColor:"色なし",customColorInput:"直接入力",alignLeft:"左揃え",alignCenter:"中央揃え",alignRight:"右揃え",alignLabel:"配置",fontStyleLabel:"文字スタイル",bold:"太字",italic:"斜体",underline:"下線",columnOptions:"列オプション",showAllColumns:"すべて表示",commonSection:"共通",headerLabelField:"ヘッダーラベル",pinColumn:"固定",pinLeft:"左",pinNone:"なし",pinRight:"右",columnWidthPx:"幅(px)",headerSection:"ヘッダー",cellSection:"セル",fontLabel:"文字",sizeLabel:"サイズ",displayMask:"表示形式(マスク)",resetThisColumn:"この列をリセット",selectColumnHint:"列を選択してください",showColumnNamed:"{column} を表示",columnTextColor:"文字色",cellStyleTitle:"セルスタイル",formulaHelp:"数式ヘルプ",validFormula:"有効な数式",formulaHint:"列を選択するか値を入力して数式を作成してください。",ruleName:"ルール名",targetColumns:"適用列",allColumns:"全列",colorLabel:"色",cellBgColor:"背景色",cellTextColor:"文字色",moveUp:"上へ",moveDown:"下へ",formulaPlaceholder:"例: [需要数] > [在庫数] AND [優先度] < 3",helpColumnRef:"列参照",helpCompare:"比較",helpArithmetic:"算術",helpLogic:"論理",helpString:"文字列",helpNull:"NULL チェック",helpValue:"値",groupColon:"グループ:",groupEmptyHint:"ここに列をドラッグしてグループ化",addGroupBtn:"+ グループ追加",ungroup:"解除",removeGroup:"グループ削除",excelImportTitle:"Excel 取り込み",processing:"処理中…",excelPreview:"プレビュー {shown}行 / 全 {total}行+",clientImportFile:"ファイルから取り込み (クライアント)",clientExportXlsx:"XLSX (クライアント)",groupExpand:"グループを展開",groupCollapse:"グループを折りたたむ",fontSizeDefault:"既定",maskGroupNone:"なし",maskGroupNumber:"数値",maskGroupDate:"日付",maskGroupString:"文字列",maskNoneText:"マスクなし",maskNoneDesc:"元の値をそのまま表示",maskThousandsText:"桁区切り (1,234)",maskThousandsDesc:"例: 1234 → 1,234",maskDecimal2Text:"小数2桁 (#,##0.00)",maskDecimal2Desc:"例: 1234.5 → 1,234.50",maskKrwText:"ウォン (₩1,234)",maskKrwDesc:"例: 1234 → ₩1,234",maskUsdText:"ドル ($1,234.00)",maskUsdDesc:"例: 1234.5 → $1,234.50",maskPercentText:"パーセント (12%)",maskPercentDesc:"例: 12 → 12%",maskDateIsoDesc:"例: 2026-05-26",maskDateKoDesc:"例: 2026-05-26",maskDatetimeDesc:"例: 2026-05-26 14:30",maskDateUsDesc:"例: 05/26/2026",maskPhoneText:"電話番号 (010-1234-5678)",maskPhoneDesc:"例: 01012345678 → 010-1234-5678",maskRrnText:"住民登録番号 (000000-0000000)",maskRrnDesc:"例: 9501011234567 → 950101-1234567",maskBizText:"事業者登録番号 (000-00-00000)",maskBizDesc:"例: 1234567890 → 123-45-67890"},GridPivot:{setting:"ピボット設定",gridSetting:"グリッド設定",fieldSetting:"フィールド設定",showRowTotals:"行合計表示",showColumnTotals:"列合計表示",subtotalCriteria:"小計基準",subtotalAggregateField:"小計集計フィールド",totalsBeforeData:"データ前に合計表示",showZeros:"ゼロ表示",showOutlineMode:"アウトラインモード",collapsibleSubtotal:"小計折りたたみ",fieldName:"フィールド名",fieldAggregate:"集計",fieldShowAs:"表示方式",fieldFormat:"形式",openChart:"チャートを開く",selectValueField:"値フィールド選択",none:"なし",sum:"合計",count:"個数",average:"平均",max:"最大値",min:"最小値",range:"範囲",std:"標準偏差",var:"分散",stdPop:"母標準偏差",varPop:"母分散",cntAll:"全個数",cntNumbers:"数値の個数",showFirstValue:"最初の値",showLastValue:"最後の値",noCalculation:"計算なし",diffRow:"前の行との差",diffRowPct:"前の行との差 (%)",diffCol:"前の列との差",diffColPct:"前の列との差 (%)",grandtotalPct:"総計に対する割合",rowTotalPct:"行合計に対する割合",colTotalPct:"列合計に対する割合",prevRowPct:"前の行に対する割合",prevColPct:"前の列に対する割合",runTot:"累計",runTotPct:"累計割合",generalFormat:"一般",int:"整数",float:"小数",currency:"通貨",percentage:"パーセント (整数)",percentageDot2:"パーセント (小数)",thousands:"千単位",millions:"百万単位",billions:"十億単位",subtotal:"小計",grandtotal:"総計",grandtotalValue:"総合計",category:"カテゴリ",chartType:"チャートタイプ",chartXAxis:"X軸",chartYAxis:"Y軸",categoryName:"カテゴリ名",barChart:"棒グラフ",lineChart:"折れ線グラフ",lineSymbolChart:"シンボル折れ線グラフ",areaChart:"エリアチャート",chartRenderingErrorHeader:"チャートレンダリングエラー",chartRenderingErrorContent:"チャートを表示できません。",contextPivotExportXlsx:"ビューエクスポート (xlsx)",contextPivotExportOriginXlsx:"元データエクスポート (xlsx)",contextPivotExportOriginCsv:"元データエクスポート (csv)",row:"行",column:"列",value:"値",filter:"フィルター",searchFieldPlaceholder:"フィールド検索...",dropZoneRowPlaceholder:"行軸フィールドをドラッグしてください",dropZoneColumnPlaceholder:"列軸フィールドをドラッグしてください",dropZoneValuePlaceholder:"値フィールドをドラッグしてください",dropZoneFilterPlaceholder:"フィルターフィールドをドラッグしてください",update:"更新",selectFieldForReport:"レポートに追加するフィールドを選択:",dragFieldsBetweenAreas:"下の領域間にフィールドをドラッグしてください:",valueSummaryCriteria:"値の集計方法",roundRound:"四捨五入",roundFloor:"切り捨て",roundCeil:"切り上げ",roundTrunc:"切り捨て(0方向)",roundingMode:"丸めモード",decimalPlaces:"小数点桁数",decimalUnlimited:"制限なし",showOriginalValue:"元の値を併記",back:"戻る",parentRowPct:"上位行グループ比 (%)",parentColPct:"上位列グループ比 (%)",rankAsc:"昇順ランク",rankDesc:"降順ランク",index:"インデックス",showTotalsGrand:"合計",showTotalsSub:"小計",fieldPanelSetting:"フィールド設定",colSubtotalCriteria:"列小計基準",allowRowToggle:"行の展開/折りたたみ許可",allowColToggle:"列の展開/折りたたみ許可",outlineMode:"アウトラインモード"},Gantt:{searchPlaceholder:"検索",columnSize:"列サイズ",rowSize:"行サイズ"},Chart:{filterPopup:"フィルター",resetFilter:"フィルターリセット",addFilter:"フィルター追加",symbolEqual:"等しい",symbolNotEqual:"等しくない",symbolContains:"含む",symbolNotContains:"含まない",symbolLessThan:"より小さい",symbolGreaterThan:"より大きい",symbolLessOrEqual:"以下",symbolGreaterOrEqual:"以上",symbolEmpty:"空",symbolNotEmpty:"空でない",chartSetting:"チャート設定",chartCategory:"チャートカテゴリ",chartType:"チャートタイプ",chartUseZoom:"ズーム使用",multiYAxisSetting:"Y軸マルチ設定",notUsed:"(使用しない)",chartPopup:"チャートポップアップ",errorMessage:"データの読み込み中にエラーが発生しました。",valueFieldSetting:"値フィールド設定",valueSummaryCriteria:"値集計基準",selectFieldForReport:"レポートに追加するフィールドを選択:",column:"列",row:"行",value:"値",sumValue:"∑ 値",count:"件数",sum:"合計",average:"平均",min:"最小値",max:"最大値",seriesCategory:"一般",pieCategory:"パイ",scatterCategory:"散布図",treemapCategory:"ツリーマップ",boxplotCategory:"ボックスプロット",candlestickCategory:"ローソク足",barChart:"棒グラフ",stackBarChart:"スタック棒グラフ",horizontalStackBarChart:"横スタック棒グラフ",lineChart:"折れ線グラフ",lineSymbolChart:"折れ線グラフ(シンボル)",areaChart:"エリアチャート",general:"一般",custom:"カスタム",axisCategoryLabel:"軸 (カテゴリ)",legendSeriesLabel:"凡例 (シリーズ)",legendSingleLabel:"凡例 (単一選択)",legendMultiLabel:"凡例 (複数選択可)",valueSingleLabel:"値 (単一選択)",xAxisSingleLabel:"X軸 (単一選択)",yAxisMultiLabel:"Y軸 (複数選択可)",notSet:"未指定",legendLimitExceededTitle:"チャートの凡例数が最大 {limit} 件を超えました。",legendLimitExceededContent:"凡例を {limit} 件以下に再設定してください。"},NumberInput:{increase:"値を増やす",decrease:"値を減らす"},DateInput:{prevDate:"前の日付",nextDate:"次の日付"},PasswordInput:{showPassword:"パスワードを表示",hidePassword:"パスワードを非表示"},Tab:{closeTab:"{label} を閉じる"},SplitPane:{resizeHandle:"領域サイズの調整"},BreadCrumb:{navigation:"パンくずリスト"}};let An=0;function $e(e){return(t,o,n,l)=>{const d=e.portal?new Nt:null,a=d?d.open():t,f=`h${++An}:`,i=new Wo;if(l!=null&&l.slots)for(const[j,$]of Object.entries(l.slots))i.register(j,$);l!=null&&l.slotResolver&&i.setResolver(l.slotResolver);const c=new Set(Object.keys(o)),r=l!=null&&l.providedKeys?new Set(l.providedKeys):null,u=j=>{const $=e.defaults;if(!$)return j;const I={...j};for(const Y of Object.keys($))I[Y]===void 0&&(I[Y]=$[Y]);return I};let p=u({...o}),y=(l==null?void 0:l.locale)??no;const L=(l==null?void 0:l.validator)??null,D=[];let P=new Map,E=new Set,g=new Map,h=null;const C={get props(){return p},emit:n,slots:i,requestUpdate:()=>W.requestUpdate(),onCleanup:j=>D.push(j),px:j=>Ae(j),get locale(){return y},validator:L,controlled:j=>r?r.has(j):c.has(j),slot(j,$){if(!i.has(j))return s.nothing;const I=g.get(j)??0;g.set(j,I+1);const Y=`${j}#${I}`;return P.set(Y,{name:j,scope:$}),s.html`<span data-moz-slot=${j} data-moz-slot-id=${f+Y}></span>`}},k=e.setup(C);class Z extends Uo{template(){return P=new Map,g=new Map,k.render()}renderNow(){super.renderNow();let $=null;if(k.renderPortal){const I=k.renderPortal(),Y=k.getPortalContainer?k.getPortalContainer():document.body;I===s.nothing||I==null||Y==null?h&&h.isOpen&&(s.render(s.nothing,h.element),h.close()):(h||(h=new Nt),$=h.isOpen?h.element:h.open("moz-overlay-portal",Y),s.render(I,$))}for(const[I,{name:Y,scope:ne}]of P){const B=`[data-moz-slot-id="${f+I}"]`;let se=this.container.querySelector(B);!se&&$&&(se=$.querySelector(B)),se&&i.fill(I,Y,se,ne)}for(const I of E)P.has(I)||i.clear(I);E=new Set(P.keys())}flush(){this.isMounted&&this.renderNow()}onDestroy(){for(const $ of D.splice(0))try{$()}catch{}i.destroy()}}const W=new Z(a);W.mount();let Q=!1;const re=()=>{var j;Q||!W.isMounted||(Q=!0,(j=k.onMounted)==null||j.call(k,a.firstElementChild))};return l!=null&&l.deferMounted||re(),{get el(){return a.firstElementChild},update(j,$){$!=null&&$.replace?(p=u({...j}),c.clear()):p=u({...p,...j});for(const I of Object.keys(j))c.add(I);$!=null&&$.sync?W.flush():W.requestUpdate()},destroy(){W.destroy(),d==null||d.close(),h==null||h.close()},setLocale(j){j!==y&&(y=j??no,W.requestUpdate())},api:k.api??{},notifyMounted:re}}}const Dn={MozBadge:["dot"],MozBreadCrumb:["showFavorite"],MozButton:["disabled","loading"],MozCallout:["compact","dismissible","hideIcon","live"],MozCheckBox:["checked","disabled","indeterminate","modelValue","readonly"],MozChip:["disabled","labelInteractive","removable","selected"],MozCollapsible:["disabled","forceMount","open"],MozContextMenu:["disableCloseOnClickBackdrop","noPadding","toBottomCenter","toTopCenter"],MozController:["customQueryParamsPanel","showFavorite","showFilterButton","showPreset"],MozDateInput:["disabled","readonly","required","showSpin"],MozEmptyState:["composed","isCustomState","isReadOnly","useImg"],MozInput:["disabled","isReadOnly","required","useInvalidV2"],MozLabel:["disabled","isReadOnly","required"],MozMultiSelect:["autoSelectNewItems","disabled","inline","loading","preserveMissingValues","readonly","required","selectAllWhenEmpty","useFilter","useSelectAll","useSpecificSelect"],MozNotificationCard:["dismissible","inline","pauseOnHover"],MozNotificationItem:["unread"],MozNumberInput:["disabled","nullable","required","shortMode"],MozPasswordInput:["disabled","required","useInvalidV2"],MozPopover:["matchTriggerWidth","open","trapFocus"],MozPopup:["autoPosition","closeOnOutsideClick","disabledConfirmButton","draggable","focusTrap","hideOthers","keepAspectRatio","loading","lockScroll","resizeable","showBackdrop","showCloseButton","showFooterBorder","showHeader","useVShow","visible"],MozRadio:["disabled","iconOnly","required"],MozSelect:["disabled","readonly","required","useFilter","useObjBinding"],MozSlider:["disabled"],MozSplitPane:["horizontal"],MozTab:["closeAble","vertical"],MozTableSelect:["disabled","readonly","required","useFilter","useObjKeyProp"],MozTagInput:["disableDelete","disableUpdate","dynamicSearch","isExpandTop","pushOnBlur","required","simplify"],MozTextArea:["disabled","immediatelyFocus","required"],MozTimePicker:["disabled","required"],MozToast:["composed","dismissible","inline","pauseOnHover","queue","showProgress"],MozToggle:["disabled","readonly","required","visible"],MozTooltip:["arrow","open"],MozTreeSelect:["disabled","readonly","required","useFilter","useMultiSelect","useSelectAll","useSpecificSelect"]};class In extends so.Directive{constructor(o){super(o);Re(this,"prevKeys",[]);Re(this,"listeners",new Map);if(o.type!==so.PartType.ELEMENT)throw new Error("spread() 는 element 바인딩(`<el ${spread(obj)}>`)에서만 사용할 수 있습니다.")}render(o){return s.nothing}update(o,[n]){const l=o.element,d=n??{};for(const a of this.prevKeys)if(!(a in d))if(this.isEventKey(a)){const f=this.listeners.get(a);f&&l.removeEventListener(this.eventName(a),f),this.listeners.delete(a)}else l.removeAttribute(a);for(const[a,f]of Object.entries(d))if(!(a==="class"||a==="style"||a==="key"||a==="ref"))if(this.isEventKey(a)&&typeof f=="function"){const i=this.eventName(a),c=this.listeners.get(a);c&&l.removeEventListener(i,c),l.addEventListener(i,f),this.listeners.set(a,f)}else f==null?l.removeAttribute(a):a.startsWith("aria-")?l.setAttribute(a,String(f)):f===!1?l.removeAttribute(a):f===!0?l.setAttribute(a,""):l.setAttribute(a,String(f));return this.prevKeys=Object.keys(d),s.noChange}isEventKey(o){return o.length>2&&o.startsWith("on")&&o[2]===o[2].toUpperCase()}eventName(o){return o.slice(2).toLowerCase()}}const he=so.directive(In);function V(...e){return wn.clsx(e)}function Vn(){return pt.extend($n),pt.extend(yn),pt.extend(bn),pt.extend(Cn),pt.extend(Sn),pt.extend(kn),pt.tz.setDefault("Asia/Seoul"),pt}const Pe=Vn();function Rn(){const e=[];return{addValidator:d=>{e.push(d)},removeValidator:d=>{const a=e.findIndex(f=>f.validate===d.validate);a>=0&&e.splice(a,1)},validate:async(d="save")=>(await Promise.all(e.map(f=>f.validate(d).then(i=>i===void 0?!0:i)))).every(f=>f),initValidator:()=>{var d;for(const a of e)(d=a==null?void 0:a.initValidator)==null||d.call(a)}}}const On=16;function qn(e,t){let o=0;return(...n)=>{const l=Date.now();l-o>=t&&(o=l,e(...n))}}class Kt{constructor(t){Re(this,"opened",!1);Re(this,"scrollHandler");Re(this,"clickHandler");this.opts=t,this.scrollHandler=qn(o=>this.onScroll(o),On),this.clickHandler=o=>this.onOutsideClick(o)}open(){this.opened||(this.opened=!0,document.addEventListener("scroll",this.scrollHandler,{capture:!0}),this.opts.closeOnOutsideClick!==!1&&setTimeout(()=>{this.opened&&document.addEventListener("click",this.clickHandler,{capture:!0})},0),queueMicrotask(()=>this.calcPosition()))}close(){this.opened&&(this.opened=!1,document.removeEventListener("scroll",this.scrollHandler,{capture:!0}),document.removeEventListener("click",this.clickHandler,{capture:!0}))}destroy(){this.close()}calcPosition(){const t=this.opts.anchor(),o=this.opts.panel();if(!t||!o)return;const n=t.getBoundingClientRect(),l=this.opts.maxHeight?this.opts.maxHeight():250,d=window.innerHeight-n.bottom,a=n.top,f=d<l&&a>=l;let i=n.left;const c=o.clientWidth;n.left+c>document.body.clientWidth&&(i-=c-n.width);let r=`${n.width}px`,u=!1;if(this.opts.listWidth){const p=this.opts.listWidth();p&&(typeof p!="number"||p>0)&&(r=typeof p=="number"?`${p}px`:p,u=!0)}o.style.position="fixed",o.style.left=`${i}px`,this.opts.useMinWidth?(o.style.minWidth=`${n.width}px`,u&&(o.style.width=String(r))):u?o.style.width=String(r):o.style.width=`${n.width}px`,f?(o.style.bottom=`${window.innerHeight-n.top}px`,o.style.top="auto"):(o.style.top=`${n.bottom}px`,o.style.bottom="auto")}onScroll(t){const o=t.target;if(this.opts.ignoreScrollTargets&&o&&this.opts.ignoreScrollTargets(o))return;const n=this.opts.anchor();if(n){const l=n.getBoundingClientRect();if(l.bottom<0||l.top>window.innerHeight){this.opts.requestClose();return}}this.calcPosition()}onOutsideClick(t){var n,l,d,a,f;if(this.opts.closeOnOutsideClick===!1)return;const o=t.target;(d=(l=(n=this.opts).container)==null?void 0:l.call(n))!=null&&d.contains(o)||(a=this.opts.panel())!=null&&a.contains(o)||(f=this.opts.anchor())!=null&&f.contains(o)||this.opts.requestClose()}}const ut=[];let Ht=!1;function Ko(e){var o;if(e.key!=="Escape")return;const t=ut[ut.length-1];t&&t.kind==="moz"&&((o=t.onEscape)==null||o.call(t,e),e.stopPropagation())}function Bn(){Ht||typeof window>"u"||(window.addEventListener("keydown",Ko,{capture:!0}),Ht=!0)}function Fn(){!Ht||typeof window>"u"||(window.removeEventListener("keydown",Ko,!0),Ht=!1)}function ho(e){ut.push(e),Bn();let t=!1;return{release(){if(t)return;t=!0;const o=ut.indexOf(e);o>=0&&ut.splice(o,1),ut.length===0&&Fn()},isTopmost(){return ut[ut.length-1]===e}}}function mo(e){return ho({kind:"moz",onEscape:e})}function Nn(){return ho({kind:"foreign"})}function Gt(){return ho({kind:"self"})}function Hn(){return ut.length}function fo(e={}){const{circleClass:t="",progressClass:o=""}=e;return s.html`<svg
|
|
3
3
|
aria-hidden="true"
|
|
4
4
|
role="status"
|
|
5
5
|
class="moz-circle-loader"
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
</div>
|
|
224
224
|
</div>
|
|
225
225
|
</div>
|
|
226
|
-
`}const ns=$e({name:"moz-checkbox",defaults:{disabled:!1,readonly:!1,indeterminate:!1,modelValue:!1},setup(e){const t=
|
|
226
|
+
`}const ns=$e({name:"moz-checkbox",defaults:{disabled:!1,readonly:!1,indeterminate:!1,modelValue:!1},setup(e){const t=Mt();let o=!1;const n=()=>{const u=e.props;return e.controlled("checked")?u.checked??!1:u.modelValue??!1},l=()=>{const u=!n();e.controlled("checked")||e.emit("update:modelValue",u),e.emit("change",u)},d=u=>{var y;const p=e.props;p.disabled||p.readonly||(u.preventDefault(),u.stopPropagation(),l(),(y=u.currentTarget.querySelector("input"))==null||y.focus())},a=u=>u.stopPropagation(),f=u=>{const p=e.props,y=u.target;if(y.indeterminate=!!p.indeterminate,p.readonly){y.checked=n();return}const L=y.checked;e.controlled("checked")?(y.checked=n(),e.emit("change",L)):(e.emit("update:modelValue",L),e.emit("change",L))},i=u=>{const p=e.props;p.disabled||p.readonly||(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),l())},c=()=>{o=!0,e.requestUpdate()},r=()=>{o=!1,e.requestUpdate()};return{render(){const u=e.props,p=u.fieldId||t,y=n(),L=ye(u,il);return s.html`
|
|
227
227
|
<div
|
|
228
228
|
class=${V("moz-checkbox",{"cursor-pointer":!u.disabled&&!u.readonly,"cursor-not-allowed":u.disabled,disabled:u.disabled,"cursor-default":u.readonly&&!u.disabled},u.class)}
|
|
229
229
|
style=${ee.styleMap(be(u.style))}
|
|
@@ -274,23 +274,23 @@
|
|
|
274
274
|
</label>
|
|
275
275
|
</div>
|
|
276
276
|
</div>
|
|
277
|
-
`,g=()=>{const Z=N=>String(y)===String(N[r]??""),W=c.length,Q=c.findIndex(Z),re=(N,X)=>{for(let
|
|
277
|
+
`,g=()=>{const Z=N=>String(y)===String(N[r]??""),W=c.length,Q=c.findIndex(Z),re=(N,X)=>{for(let M=1;M<=W;M+=1){const U=(N+X*M+W*W)%W;if(!d(c[U]))return U}return-1},ae=N=>{for(let X=0;X<W;X+=1){const M=N===1?X:W-1-X;if(!d(c[M]))return M}return-1},j=Q>=0&&!d(c[Q])?Q:ae(1),$=N=>Array.from(N.querySelectorAll('[role="radio"]')),I=(N,X)=>{if(X<0)return;N.preventDefault(),N.stopPropagation();const M=N.currentTarget,U=$(M)[X];U==null||U.focus(),e.emit("update:modelValue",c[X][r]??"");let _=0;const G=()=>{const J=$(M)[X];if(J&&J.getAttribute("aria-checked")==="true"){document.activeElement!==J&&J.focus();return}++_<20&&n(G)};n(G)},Y=N=>{var G,J;if(p||W===0)return;const X=N.currentTarget,M=(J=(G=N.target)==null?void 0:G.closest)==null?void 0:J.call(G,'[role="radio"]'),U=M?$(X).indexOf(M):-1,_=U>=0?U:Q>=0?Q:0;switch(N.key){case"ArrowRight":case"ArrowDown":I(N,re(_,1));break;case"ArrowLeft":case"ArrowUp":I(N,re(_,-1));break;case"Home":I(N,ae(1));break;case"End":I(N,ae(-1));break}},ne=!!i.iconOnly,B=e.slots.has("item-icon"),se=!ne&&e.slots.has("item-badge");return s.html`
|
|
278
278
|
<div
|
|
279
279
|
class=${V("radio-container",{segment:!0,"disabled-container":p,"size-sm":i.size==="sm","size-md":i.size!=="sm","icon-only":ne})}
|
|
280
280
|
@keydown=${Y}
|
|
281
281
|
@click=${N=>N.stopPropagation()}
|
|
282
282
|
>
|
|
283
|
-
${c.map((N,X)=>{const
|
|
283
|
+
${c.map((N,X)=>{const M=Z(N),U=d(N),_=String(N[u]??""),G=_||String(N[r]??""),J={item:N,index:X,active:M,disabled:U};return s.html`
|
|
284
284
|
<button
|
|
285
285
|
type="button"
|
|
286
286
|
role="radio"
|
|
287
|
-
aria-checked=${
|
|
287
|
+
aria-checked=${M?"true":"false"}
|
|
288
288
|
aria-label=${ne?G:s.nothing}
|
|
289
289
|
data-value=${String(N[r]??"")}
|
|
290
290
|
data-tone=${l(N)??s.nothing}
|
|
291
291
|
tabindex=${X===j?"0":"-1"}
|
|
292
292
|
?disabled=${U}
|
|
293
|
-
class=${V("segment-button",{"is-active":
|
|
293
|
+
class=${V("segment-button",{"is-active":M,disabled:U})}
|
|
294
294
|
@click=${()=>{U||e.emit("update:modelValue",N[r]??"")}}
|
|
295
295
|
>
|
|
296
296
|
${B?s.html`<span class="segment-icon">${e.slot("item-icon",J)}</span>`:s.nothing}
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
stroke-linecap="round"
|
|
376
376
|
stroke-linejoin="round"
|
|
377
377
|
></path>
|
|
378
|
-
</svg>`}const cl=new Set(["id","label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue","class","style"]),cs={type:"text",required:!1,disabled:!1,isReadOnly:!1,rules:[],messagePosition:"outside",width:"100%",useInvalidV2:!1},ul=typeof navigator<"u"&&/Edg/.test(navigator.userAgent);function us(e,t={}){const o=!!t.legacyPassword;let n=!1;const l=
|
|
378
|
+
</svg>`}const cl=new Set(["id","label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue","class","style"]),cs={type:"text",required:!1,disabled:!1,isReadOnly:!1,rules:[],messagePosition:"outside",width:"100%",useInvalidV2:!1},ul=typeof navigator<"u"&&/Edg/.test(navigator.userAgent);function us(e,t={}){const o=!!t.legacyPassword;let n=!1;const l=Mt(),d={change:"",blur:"",save:""},a={change:0,blur:0,save:0};let f=0,i=!1,c,r;const u=()=>{const h=e.props,C=[String(h.modelValue??""),h.disabled,h.isReadOnly,h.required,h.requiredMessage,h.label,h.name,h.rules,...(h.rules??[]).flatMap(k=>[k.type,k.message,k.validator])];if(c){const k=!Object.is(C[0],c[0]),Z=k&&C[0]===r;(C.length!==c.length||C.some((W,Q)=>!Object.is(W,c[Q])&&!(Q===0&&Z)))&&f++,k&&(r=void 0)}c=C};e.onCleanup(()=>{i=!0,f++});const p=()=>{const h=e.props,C=[];return h.required&&C.push({message:h.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",h.label||h.name||""),type:"save",validator:k=>!!k}),[...C,...h.rules??[]]},y=async(h,C)=>{u();const k=++a[C],Z=f,W=()=>!i&&f===Z&&a[C]===k,Q=e.props,re=p();if(re.length<=0||Q.disabled||Q.isReadOnly)return!0;d[C]="";const ae=re.filter(j=>j.type===C);for(const j of ae){let $;try{$=await j.validator(h)}finally{u()}if(!$)return W()&&(d[C]=j.message,e.requestUpdate()),!1}return W()&&(d[C]="",e.requestUpdate()),!0},L=h=>{const C=h.target.value;u(),r=C,a.save++,a.blur++,d.save="",d.blur="",e.emit("update:modelValue",C),y(C,"change")},D=h=>{const C=h.target.value;y(C,"blur"),e.requestUpdate()},P=h=>{h.key==="Enter"&&e.emit("enter",h)},E=()=>{e.props.disabled||(n=!n,e.requestUpdate())},g={validate:(h="save")=>y(String(e.props.modelValue??""),h),initValidator:()=>{f++,d.change="",d.blur="",d.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(g),e.onCleanup(()=>{var h;return(h=e.validator)==null?void 0:h.removeValidator(g)})),{onMounted:h=>{e.emit("mounted",(h==null?void 0:h.querySelector("input"))??null)},render(){u();const h=e.props,C=String(h.modelValue??""),k=d.save||d.blur||d.change,Z=!!h.useInvalidV2,W=h.width?typeof h.width=="number"?`${h.width}px`:h.width:"100%",Q=ye(h,cl),re=h.id==null||h.id===""?l:String(h.id),ae=o||h.type==="password";(!ae||h.disabled)&&(n=!1);const j=ae?n?"text":"password":h.type??"text";o&&Q.autocomplete==null&&(Q.autocomplete="new-password");const $=Z&&k!=="",I=!Z&&k!=="",Y=s.html`<input
|
|
379
379
|
class=${V("moz-input",{disabled:h.disabled,"read-only":h.isReadOnly,"is-filled":C!=="","has-inside-message":!Z&&h.messagePosition==="inside"&&k!=="","has-invalid-icon":$,"has-password-toggle":ae,"edge-password":ae&&ul})}
|
|
380
380
|
id=${re}
|
|
381
381
|
name=${Ee.ifDefined(h.name)}
|
|
@@ -419,7 +419,7 @@
|
|
|
419
419
|
${se} ${Y} ${ne} ${B}
|
|
420
420
|
</div>
|
|
421
421
|
</div>
|
|
422
|
-
`}}}const ps=$e({name:"moz-input",defaults:cs,setup:e=>us(e)}),pl={name:"MozInput",core:ps,booleanProps:["required","disabled","isReadOnly","useInvalidV2"],props:["id","label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue"],emits:["enter","mounted","update:modelValue"],slots:["invalidTooltip"],expose:!1},hs=$e({name:"moz-password-input",defaults:{...cs,type:"password"},setup:e=>us(e,{legacyPassword:!0})}),hl={name:"MozPasswordInput",core:hs,booleanProps:["disabled","required","useInvalidV2"],props:["id","label","value","name","placeholder","required","disabled","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue"],emits:["enter","mounted","update:modelValue"],slots:["invalidTooltip"],expose:!1},ml=new Set(["id","label","width","height","required","disabled","rules","maxLength","resize","immediatelyFocus","requiredMessage","modelValue","class","style"]),ms=$e({name:"moz-textarea",defaults:{height:80,required:!1,disabled:!1,rules:[],maxLength:null,resize:"none",immediatelyFocus:!1,modelValue:""},setup(e){const t=
|
|
422
|
+
`}}}const ps=$e({name:"moz-input",defaults:cs,setup:e=>us(e)}),pl={name:"MozInput",core:ps,booleanProps:["required","disabled","isReadOnly","useInvalidV2"],props:["id","label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue"],emits:["enter","mounted","update:modelValue"],slots:["invalidTooltip"],expose:!1},hs=$e({name:"moz-password-input",defaults:{...cs,type:"password"},setup:e=>us(e,{legacyPassword:!0})}),hl={name:"MozPasswordInput",core:hs,booleanProps:["disabled","required","useInvalidV2"],props:["id","label","value","name","placeholder","required","disabled","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue"],emits:["enter","mounted","update:modelValue"],slots:["invalidTooltip"],expose:!1},ml=new Set(["id","label","width","height","required","disabled","rules","maxLength","resize","immediatelyFocus","requiredMessage","modelValue","class","style"]),ms=$e({name:"moz-textarea",defaults:{height:80,required:!1,disabled:!1,rules:[],maxLength:null,resize:"none",immediatelyFocus:!1,modelValue:""},setup(e){const t=Mt(),o={change:"",blur:"",save:""},n=()=>{const c=e.props,r=[];return c.required&&r.push({message:c.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",c.label||""),type:"save",validator:u=>!!u}),[...r,...c.rules??[]]},l=async(c,r)=>{const u=e.props,p=n();if(p.length<=0||u.disabled)return!0;o[r]="";for(const y of p.filter(L=>L.type===r))if(!await y.validator(c))return o[r]=y.message,e.requestUpdate(),!1;return e.requestUpdate(),!0},d=c=>{const r=c.target,u=e.props;r.value&&u.maxLength&&r.value.length>u.maxLength&&(r.value=r.value.slice(0,u.maxLength)),e.emit("update:modelValue",r.value),l(r.value,"change")},a=c=>{l(c.target.value,"blur")},f=()=>{o.save="",e.requestUpdate()},i={validate:(c="save")=>l(String(e.props.modelValue??""),c),initValidator:()=>{o.change=o.blur=o.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(i),e.onCleanup(()=>{var c;return(c=e.validator)==null?void 0:c.removeValidator(i)})),{onMounted:c=>{var r;e.props.immediatelyFocus&&((r=c==null?void 0:c.querySelector("textarea"))==null||r.focus())},render(){const c=e.props,r=String(c.modelValue??""),u=o.save||o.blur||o.change,p=c.width?typeof c.width=="number"?`${Ae(c.width)}rem`:c.width:"100%",y=`${Ae(c.height??80)}rem`,L=c.resize??"none",D=L==="none"?{height:y}:{minHeight:y},P=r.length,E=ye(c,ml),g=c.id==null||c.id===""?t:String(c.id);return s.html`
|
|
423
423
|
<div
|
|
424
424
|
class=${V("moz-textarea-wrapper",{disabled:c.disabled},c.class)}
|
|
425
425
|
style=${ee.styleMap({width:p,...D,...be(c.style)})}
|
|
@@ -452,7 +452,7 @@
|
|
|
452
452
|
<path d="M9.50097 7.73588L5.95565 4.27686L2.49904 7.73588" stroke=${e?"var(--moz-color-text-muted)":"var(--moz-color-text-subtle)"} stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
453
453
|
</svg>`}function bl(e=!1){return s.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
454
454
|
<path d="M2.49901 4.27686L6.04435 7.73588L9.50099 4.27686" stroke=${e?"var(--moz-color-text-muted)":"var(--moz-color-text-subtle)"} stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
455
|
-
</svg>`}const Cl=new Set(["id","label","name","width","required","step","min","max","disabled","shortMode","nullable","modelValue","class","style"]),fs=$e({name:"moz-number-input",defaults:{label:"",width:100,required:!1,step:1,min:-Number.MAX_VALUE,max:Number.MAX_VALUE,disabled:!1,shortMode:!1,nullable:!1},setup(e){const t=
|
|
455
|
+
</svg>`}const Cl=new Set(["id","label","name","width","required","step","min","max","disabled","shortMode","nullable","modelValue","class","style"]),fs=$e({name:"moz-number-input",defaults:{label:"",width:100,required:!1,step:1,min:-Number.MAX_VALUE,max:Number.MAX_VALUE,disabled:!1,shortMode:!1,nullable:!1},setup(e){const t=Mt(),o=()=>{const i=e.props;if(i.disabled||i.modelValue===void 0)return;const c=i.modelValue+i.step;i.max!==void 0&&i.max!==null&&c>i.max||(e.emit("update:modelValue",c),e.emit("change",c))},n=()=>{const i=e.props;if(i.disabled||i.modelValue===void 0)return;const c=i.modelValue-i.step;i.min!==void 0&&i.min!==null&&c<i.min||(e.emit("update:modelValue",c),e.emit("change",c))},l=i=>{const c=e.props;if(c.disabled||c.nullable||i.key!=="Backspace"&&i.key!=="Delete"||c.min===-Number.MAX_VALUE||Number(c.modelValue)!==Number(c.min))return;const r=i.target,u=r.selectionStart??0,p=r.selectionEnd??0,y=r.value,L=u!==p;(L&&u===0&&p===y.length||!L&&y.length===1)&&i.preventDefault()},d=i=>{const c=e.props;if(c.disabled||c.nullable)return;const r=i.target;if(r.value===""){const u=c.min!==-Number.MAX_VALUE?c.min:0;e.emit("update:modelValue",u),r.value=String(u),e.emit("change",u)}},a=i=>{const c=e.props;if(c.disabled)return;const r=i.target;if(!r&&!c.nullable){e.emit("update:modelValue",0),e.emit("change",0);return}if(!r)return;Number(r.value)<c.min&&(r.value=String(c.min)),Number(r.value)>c.max&&(r.value=String(c.max));const u=+r.value.replace(/,/g,"");e.emit("update:modelValue",u),e.emit("change",u)},f=i=>{i.key==="Enter"&&e.emit("enter",i)};return{onMounted:i=>e.emit("mounted",(i==null?void 0:i.querySelector("input"))??null),render(){const i=e.props,c=i.modelValue,r=!!i.disabled,u=i.min,p=i.max,y=typeof i.width=="number"?`${Ae(i.width)}rem`:i.width,L=ye(i,Cl),D=i.id==null||i.id===""?t:String(i.id),P=g=>V("num-change-btn",g),E=s.html`
|
|
456
456
|
<div class=${V("moz-number-input",{"input-border":i.shortMode})}>
|
|
457
457
|
<input
|
|
458
458
|
id=${D}
|
|
@@ -584,7 +584,7 @@
|
|
|
584
584
|
</div>
|
|
585
585
|
`}}}}),Pl={name:"MozSlider",core:ws,booleanProps:["disabled"],props:["id","width","label","min","max","step","disabled","modelValue"],emits:["change","update:modelValue"],slots:[],expose:!1};function Ll(e="var(--moz-color-text-subtle)"){return s.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
586
586
|
<path d="M3 4.5L6 7.5L9 4.5" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
|
|
587
|
-
</svg>`}const bs="var(--moz-color-calendar-nav-icon)";function
|
|
587
|
+
</svg>`}const bs="var(--moz-color-calendar-nav-icon)";function Ml(e=bs){return s.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
588
588
|
<path
|
|
589
589
|
d="M3 8.5L7.05021 4.5L11 8.5"
|
|
590
590
|
transform="rotate(-90 7 7)"
|
|
@@ -593,7 +593,7 @@
|
|
|
593
593
|
stroke-linecap="round"
|
|
594
594
|
stroke-linejoin="round"
|
|
595
595
|
></path>
|
|
596
|
-
</svg>`}function
|
|
596
|
+
</svg>`}function xl(e=bs){return s.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
597
597
|
<path
|
|
598
598
|
d="M3 5.5L7.05021 9.5L11 5.5"
|
|
599
599
|
transform="rotate(-90 7 7)"
|
|
@@ -639,7 +639,7 @@
|
|
|
639
639
|
</div>
|
|
640
640
|
<div class="moz-calendar-header__spacer"></div>
|
|
641
641
|
<div class="moz-calendar-select-btn-group">
|
|
642
|
-
${B(
|
|
642
|
+
${B(Ml(),u,l?"이전 연도":"이전 달")}${B(zl(),h,"오늘")}${B(xl(),p,l?"다음 연도":"다음 달")}
|
|
643
643
|
</div>
|
|
644
644
|
</div>
|
|
645
645
|
`,N=s.html`
|
|
@@ -668,13 +668,13 @@
|
|
|
668
668
|
>
|
|
669
669
|
${G.format("YYYY")}
|
|
670
670
|
</div>`)}
|
|
671
|
-
</div>`}let
|
|
672
|
-
${_.map(
|
|
673
|
-
class=${V("moz-calendar-column",t.format("YYYYMM")===
|
|
671
|
+
</div>`}let M=s.nothing;if(d){const _=[],G=t.endOf("y");let J=t.startOf("y");do _.push(J),J=J.add(1,"M");while(J.diff(G)<=0);M=s.html`<div class="moz-calendar-row moz-calendar-row--wrap">
|
|
672
|
+
${_.map(x=>s.html`<div
|
|
673
|
+
class=${V("moz-calendar-column",t.format("YYYYMM")===x.format("YYYYMM")?"moz-calendar-selected":"",r(x)?"date-disable":"moz-calendar-column--hoverable")}
|
|
674
674
|
style="width: ${100/3}%; height: ${Ae(k)}rem"
|
|
675
|
-
@click=${()=>E(
|
|
675
|
+
@click=${()=>E(x)}
|
|
676
676
|
>
|
|
677
|
-
${
|
|
677
|
+
${x.format("MMM")}
|
|
678
678
|
</div>`)}
|
|
679
679
|
</div>`}const U=ye(C,Tl);return s.html`
|
|
680
680
|
<div
|
|
@@ -682,7 +682,7 @@
|
|
|
682
682
|
style=${ee.styleMap(be(C.style))}
|
|
683
683
|
${he(U)}
|
|
684
684
|
>
|
|
685
|
-
${se}${n?N:s.nothing}${X}${
|
|
685
|
+
${se}${n?N:s.nothing}${X}${M}
|
|
686
686
|
</div>
|
|
687
687
|
`}}}}),Il={name:"MozCalendar",core:So,props:["rowHeight","exceptWeeks","min","max","modelValue"],emits:["changed","setMaxHeight","update:modelValue"],slots:[],expose:!1};function Vl(e="var(--moz-color-on-accent)",t="14",o=!1){return s.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
688
688
|
<path d="M8.5 3.5L5.5 7L8.5 10.5" stroke=${o?"var(--moz-color-text-muted)":e} stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
@@ -738,7 +738,7 @@
|
|
|
738
738
|
${g.showSpin?ae(Rl("var(--moz-color-on-accent)","14",g.disabled||W),"right",!!g.disabled||!!g.readonly||W,P):s.nothing}
|
|
739
739
|
</div>
|
|
740
740
|
</div>
|
|
741
|
-
`}}}}),Fl={name:"MozDateInput",core:Cs,booleanProps:["disabled","readonly","required","showSpin"],props:["label","name","width","required","disabled","readonly","format","showSpin","min","max","modelValue"],emits:["change","focus","focusOut","close","update:modelValue"],slots:[],expose:!1};function
|
|
741
|
+
`}}}}),Fl={name:"MozDateInput",core:Cs,booleanProps:["disabled","readonly","required","showSpin"],props:["label","name","width","required","disabled","readonly","format","showSpin","min","max","modelValue"],emits:["change","focus","focusOut","close","update:modelValue"],slots:[],expose:!1};function xt(e){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:12,height:12}}function Nl(e="10",t="var(--moz-color-text-muted)",o=!1,n=!1,l=""){const d=xt(e),a=l||s.nothing;return d.width<=10?s.html`<svg class=${a} width=${d.width} height=${d.height} viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
742
742
|
<path d="M8.5 1.5L1.49999 8.50001" stroke=${t} stroke-width="1.75" stroke-linecap="round"></path>
|
|
743
743
|
<path d="M1.5 1.5L8.50001 8.50001" stroke=${t} stroke-width="1.75" stroke-linecap="round"></path>
|
|
744
744
|
</svg>`:d.width<=13&&d.width>=11&&!n?s.html`<svg class=${a} width=${d.width} height=${d.height} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -764,7 +764,7 @@
|
|
|
764
764
|
></path>
|
|
765
765
|
</g>
|
|
766
766
|
</g>
|
|
767
|
-
</svg>`}function Hl(e="30",t="var(--moz-color-danger)",o=""){const n=
|
|
767
|
+
</svg>`}function Hl(e="30",t="var(--moz-color-danger)",o=""){const n=xt(e);return s.html`<svg class=${o||s.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
768
768
|
<mask id="mask0_6027_4458" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
|
|
769
769
|
<g><path d="M30 0H0V30H30V0Z" fill="#FFF"></path></g>
|
|
770
770
|
</mask>
|
|
@@ -776,7 +776,7 @@
|
|
|
776
776
|
></path>
|
|
777
777
|
</g>
|
|
778
778
|
</g>
|
|
779
|
-
</svg>`}function _l(e="30",t="var(--moz-color-accent)",o=""){const n=
|
|
779
|
+
</svg>`}function _l(e="30",t="var(--moz-color-accent)",o=""){const n=xt(e);return s.html`<svg class=${o||s.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
780
780
|
<g>
|
|
781
781
|
<path
|
|
782
782
|
fill-rule="evenodd"
|
|
@@ -785,7 +785,7 @@
|
|
|
785
785
|
fill=${t}
|
|
786
786
|
></path>
|
|
787
787
|
</g>
|
|
788
|
-
</svg>`}function Ul(e="30",t="var(--moz-color-success)",o=""){const n=
|
|
788
|
+
</svg>`}function Ul(e="30",t="var(--moz-color-success)",o=""){const n=xt(e);return s.html`<svg class=${o||s.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
789
789
|
<g>
|
|
790
790
|
<path
|
|
791
791
|
fill-rule="evenodd"
|
|
@@ -794,7 +794,7 @@
|
|
|
794
794
|
fill=${t}
|
|
795
795
|
></path>
|
|
796
796
|
</g>
|
|
797
|
-
</svg>`}function Wl(e="30",t="var(--moz-color-warning)",o=""){const n=
|
|
797
|
+
</svg>`}function Wl(e="30",t="var(--moz-color-warning)",o=""){const n=xt(e);return s.html`<svg class=${o||s.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
798
798
|
<mask id="mask0_6027_4463" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
|
|
799
799
|
<g><path d="M30 0H0V30H30V0Z" fill="#FFF"></path></g>
|
|
800
800
|
</mask>
|
|
@@ -806,7 +806,7 @@
|
|
|
806
806
|
></path>
|
|
807
807
|
</g>
|
|
808
808
|
</g>
|
|
809
|
-
</svg>`}const Kl=new Set(["title","minWidth","minHeight","maxWidth","maxHeight","draggable","resizeable","keepAspectRatio","disabledConfirmButton","showCloseButton","dialogClass","showHeader","closeOnOutsideClick","preset","dialogIcon","dialogMessage","onCancel","onBeforeClose","onBeforeUnload","onConfirm","onBeforeConfirm","loading","contentsPadding","class","style","useVShow","top","left","showFooterBorder","action","saveText","cancelText","okText","closeText","visible","width","height","focusTrap","lockScroll","side","showBackdrop","autoPosition","hideOthers"]);let Et=0,ys="";const Gl=()=>{Et===0&&(ys=document.body.style.overflow,document.body.style.overflow="hidden"),Et+=1},Zl=()=>{Et!==0&&(Et-=1,Et===0&&(document.body.style.overflow=ys))},Yl='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',$s=$e({name:"moz-popup",portal:!0,defaults:{title:"Popup",minWidth:300,minHeight:100,maxWidth:800,maxHeight:600,draggable:!0,resizeable:!1,keepAspectRatio:!1,disabledConfirmButton:!1,showCloseButton:!0,showHeader:!0,closeOnOutsideClick:!0,preset:"close",dialogIcon:"info",loading:!1,contentsPadding:"24px 16px",useVShow:!1,top:null,left:null,showFooterBorder:!0,focusTrap:!1,lockScroll:!1,showBackdrop:!0,autoPosition:!0,hideOthers:!1},setup(e){const t=K.createRef(),o=K.createRef(),n=ot("moz-popup-title-"),l=ot("moz-popup-desc-");let d=null,a=e.props.visible??!1,f=e.props.width,i=e.props.height;const c=()=>e.controlled("visible")?!!e.props.visible:a,r=z=>{e.controlled("visible")||(a=z),e.emit("update:visible",z),e.requestUpdate()},u=()=>e.controlled("width")?e.props.width:f,p=z=>{e.controlled("width")||(f=z),e.emit("update:width",z),e.requestUpdate()},y=()=>e.controlled("height")?e.props.height:i,L=z=>{e.controlled("height")||(i=z),e.emit("update:height",z),e.requestUpdate()};let D=0,P=0,E=!1;const g=!0;let h=null;const C={mouseDown:!1,dragging:!1,offset:{x:0,y:0}};let k=c(),Z=!1,W=!1,Q=null,re=[];const ae=()=>{const z=t.value;if(z)for(const de of Array.from(document.body.children))de instanceof HTMLElement&&(de.contains(z)||de.getAttribute("aria-hidden")!=="true"&&(de.setAttribute("aria-hidden","true"),re.push(de)))},j=()=>{for(const z of re)z.removeAttribute("aria-hidden");re=[]},$=()=>{const z=t.value;return z?Array.from(z.querySelectorAll(Yl)).filter(de=>de.getAttribute("aria-hidden")!=="true"):[]},I=()=>{const z=document.querySelectorAll(".moz-popup");return z.length>0&&z[z.length-1]===t.value},Y=()=>{d||(d=mo(()=>T()))},ne=()=>{d==null||d.release(),d=null},B=()=>{Z||(Z=!0,Y(),e.props.lockScroll&&(Gl(),W=!0),e.props.focusTrap&&(Q=document.activeElement instanceof HTMLElement?document.activeElement:null,queueMicrotask(()=>{const z=t.value;!z||!c()||($()[0]??z).focus()})),e.props.hideOthers&&queueMicrotask(()=>{c()&&ae()}))},se=()=>{if(ne(),!Z)return;Z=!1,W&&(Zl(),W=!1),j();const z=Q;Q=null,z&&z.isConnected&&z.focus()},N=()=>{const z=t.value;if(!z)return;const de=e.props,Ie=de.top!=null?de.top:window.innerHeight/2-z.offsetHeight/2,w=de.left!=null?de.left:window.innerWidth/2-z.offsetWidth/2;Ie===P&&w===D||(P=Ie,D=w,e.requestUpdate())};let X=null,
|
|
809
|
+
</svg>`}const Kl=new Set(["title","minWidth","minHeight","maxWidth","maxHeight","draggable","resizeable","keepAspectRatio","disabledConfirmButton","showCloseButton","dialogClass","showHeader","closeOnOutsideClick","preset","dialogIcon","dialogMessage","onCancel","onBeforeClose","onBeforeUnload","onConfirm","onBeforeConfirm","loading","contentsPadding","class","style","useVShow","top","left","showFooterBorder","action","saveText","cancelText","okText","closeText","visible","width","height","focusTrap","lockScroll","side","showBackdrop","autoPosition","hideOthers"]);let Et=0,ys="";const Gl=()=>{Et===0&&(ys=document.body.style.overflow,document.body.style.overflow="hidden"),Et+=1},Zl=()=>{Et!==0&&(Et-=1,Et===0&&(document.body.style.overflow=ys))},Yl='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',$s=$e({name:"moz-popup",portal:!0,defaults:{title:"Popup",minWidth:300,minHeight:100,maxWidth:800,maxHeight:600,draggable:!0,resizeable:!1,keepAspectRatio:!1,disabledConfirmButton:!1,showCloseButton:!0,showHeader:!0,closeOnOutsideClick:!0,preset:"close",dialogIcon:"info",loading:!1,contentsPadding:"24px 16px",useVShow:!1,top:null,left:null,showFooterBorder:!0,focusTrap:!1,lockScroll:!1,showBackdrop:!0,autoPosition:!0,hideOthers:!1},setup(e){const t=K.createRef(),o=K.createRef(),n=ot("moz-popup-title-"),l=ot("moz-popup-desc-");let d=null,a=e.props.visible??!1,f=e.props.width,i=e.props.height;const c=()=>e.controlled("visible")?!!e.props.visible:a,r=z=>{e.controlled("visible")||(a=z),e.emit("update:visible",z),e.requestUpdate()},u=()=>e.controlled("width")?e.props.width:f,p=z=>{e.controlled("width")||(f=z),e.emit("update:width",z),e.requestUpdate()},y=()=>e.controlled("height")?e.props.height:i,L=z=>{e.controlled("height")||(i=z),e.emit("update:height",z),e.requestUpdate()};let D=0,P=0,E=!1;const g=!0;let h=null;const C={mouseDown:!1,dragging:!1,offset:{x:0,y:0}};let k=c(),Z=!1,W=!1,Q=null,re=[];const ae=()=>{const z=t.value;if(z)for(const de of Array.from(document.body.children))de instanceof HTMLElement&&(de.contains(z)||de.getAttribute("aria-hidden")!=="true"&&(de.setAttribute("aria-hidden","true"),re.push(de)))},j=()=>{for(const z of re)z.removeAttribute("aria-hidden");re=[]},$=()=>{const z=t.value;return z?Array.from(z.querySelectorAll(Yl)).filter(de=>de.getAttribute("aria-hidden")!=="true"):[]},I=()=>{const z=document.querySelectorAll(".moz-popup");return z.length>0&&z[z.length-1]===t.value},Y=()=>{d||(d=mo(()=>T()))},ne=()=>{d==null||d.release(),d=null},B=()=>{Z||(Z=!0,Y(),e.props.lockScroll&&(Gl(),W=!0),e.props.focusTrap&&(Q=document.activeElement instanceof HTMLElement?document.activeElement:null,queueMicrotask(()=>{const z=t.value;!z||!c()||($()[0]??z).focus()})),e.props.hideOthers&&queueMicrotask(()=>{c()&&ae()}))},se=()=>{if(ne(),!Z)return;Z=!1,W&&(Zl(),W=!1),j();const z=Q;Q=null,z&&z.isConnected&&z.focus()},N=()=>{const z=t.value;if(!z)return;const de=e.props,Ie=de.top!=null?de.top:window.innerHeight/2-z.offsetHeight/2,w=de.left!=null?de.left:window.innerWidth/2-z.offsetWidth/2;Ie===P&&w===D||(P=Ie,D=w,e.requestUpdate())};let X=null,M=null;const U=()=>{if(typeof ResizeObserver>"u")return;const z=t.value;!z||z===M||(X??(X=new ResizeObserver(()=>{!c()||e.props.side||e.props.autoPosition===!1||E||N()})),M&&X.unobserve(M),X.observe(z),M=z)},_=()=>{e.props.side||e.props.autoPosition===!1||queueMicrotask(()=>{N(),U()})},G=()=>{!c()||e.props.side||e.props.autoPosition===!1||E||_()},J=()=>{c()||r(!0),e.emit("open"),_(),B()},x=async()=>{let z=!0;return e.props.onBeforeClose?z=await e.props.onBeforeClose()??!0:e.emit("close:before",z),z},m=async z=>{await x()&&(z||!c()||(r(!1),e.props.onCancel?e.props.onCancel():e.emit("close"),e.emit("hidden")))},T=()=>m(!1),A=async()=>{let z=!0;return e.props.onBeforeConfirm?z=await e.props.onBeforeConfirm()??!0:e.emit("confirm:before",z),z},F=async()=>{await A()&&c()&&(r(!1),e.props.onConfirm?e.props.onConfirm():e.emit("confirm"),e.emit("hidden"))},ce=()=>{e.props.onBeforeUnload&&e.props.onBeforeUnload()},ke=()=>{e.props.closeOnOutsideClick&&T()},Me=z=>{z?J():(se(),ce(),m(!0))},Ne=(z,de)=>{document.addEventListener("mouseup",z),document.addEventListener("mousemove",de)},qe=(z,de)=>{document.removeEventListener("mouseup",z),document.removeEventListener("mousemove",de)},st=z=>{const de=D-z.clientX,Ie=P-z.clientY;C.mouseDown=!0,C.offset.x=de,C.offset.y=Ie,e.emit("drag-start")},Qe=z=>{e.props.draggable&&(z.clientX===0&&h&&(z=h),z&&z.clientX&&z.clientY&&(D=z.clientX+C.offset.x,P=z.clientY+C.offset.y,E=!0,e.requestUpdate()))},Je=z=>{z.clientX!==0&&z.clientY!==0&&(h=z),C.mouseDown&&g&&(C.dragging=!0,Qe(z))},Be=()=>{C.dragging&&e.emit("drag-end"),C.mouseDown=!1,setTimeout(()=>{C.dragging=!1,qe(Be,Je)},100)},He=z=>{e.props.side||e.props.autoPosition===!1||(z.preventDefault(),Ne(Be,Je),st(z))},Le=z=>{z.preventDefault();const de=t.value;if(!de)return;const Ie=de.getBoundingClientRect(),w=u()??Ie.width,H=y()??Ie.height;if(!w||!H)return;const te=w/H,me={x:z.clientX,y:z.clientY},ve=e.props,Oe=Se=>{let Ze=Se.clientX-me.x,Te=Se.clientY-me.y;if(ve.keepAspectRatio){const at=Ze/te;Math.abs(Te)>Math.abs(at)?Te=at:Ze=Te*te}const De=Math.max(ve.minWidth,Math.min(w+Ze,ve.maxWidth));let et=Math.max(ve.minHeight,Math.min(H+Te,ve.maxHeight));ve.keepAspectRatio&&De/et!==te&&(et=De/te),p(De),L(et)},Ce=()=>{document.removeEventListener("mousemove",Oe),document.removeEventListener("mouseup",Ce)};document.addEventListener("mousemove",Oe),document.addEventListener("mouseup",Ce)},_e=z=>{if(z.key==="Tab"&&e.props.focusTrap&&c()&&I()){if(d&&!d.isTopmost())return;const de=t.value;if(!de)return;const Ie=$();if(Ie.length===0){z.preventDefault(),de.focus();return}const w=Ie[0],H=Ie[Ie.length-1],te=document.activeElement,me=te instanceof Node&&de.contains(te);z.shiftKey?(!me||te===w||te===de)&&(z.preventDefault(),H.focus()):(!me||te===H)&&(z.preventDefault(),w.focus());return}};e.onCleanup(()=>{X==null||X.disconnect(),X=null,M=null,se(),window.removeEventListener("keydown",_e),window.removeEventListener("resize",G),ce(),window.removeEventListener("unload",ce),qe(Be,Je)});const Ue=()=>{const z=e.props;if(z.action)return z.action;const de=e.locale.Popup;switch(z.preset){case"save":return{positive:z.saveText??de.save,negative:z.cancelText??de.cancel};case"check":return{positive:z.okText??de.ok};case"close":return{negative:z.closeText??de.close};case"confirm":default:return{positive:z.okText??de.ok,negative:z.cancelText??de.cancel}}},rt=z=>{switch(z){case"error":return Hl("30","var(--moz-color-danger)","dialog-icon");case"info":return _l("30","var(--moz-color-accent)","dialog-icon");case"success":return Ul("30","var(--moz-color-success)","dialog-icon");case"warning":return Wl("30","var(--moz-color-warning)","dialog-icon");default:return s.nothing}};return{api:{resetPosition:_},onMounted:()=>{window.addEventListener("keydown",_e),window.addEventListener("resize",G),window.addEventListener("unload",ce),queueMicrotask(()=>e.emit("init",o.value??null)),c()&&(_(),B())},render(){const z=e.props,de=c();if(de!==k){const mt=de;k=de,mt?Y():ne(),queueMicrotask(()=>Me(mt))}if(!(z.useVShow?!0:de))return s.nothing;const w=z.useVShow?!de:!1,H=u(),te=y(),me=z.side,ve=!!me||z.autoPosition===!1,Oe={...be(z.style),...H?{width:`${Ae(H)}rem`}:{},...te?{height:`${Ae(te)}rem`}:{},...ve?{}:{left:`${Ae(D)}rem`,top:`${Ae(P)}rem`}},Ce=!!z.draggable&&!ve,Se=!!z.resizeable&&!me,Ze=typeof z.contentsPadding=="number"?`${Ae(z.contentsPadding)}rem`:z.contentsPadding,Te=Ue(),De=ye(z,Kl),et=e.slots.has("title")?e.slot("title"):s.html`<span class="truncate">${z.title}</span>`,at=e.slots.has("description"),Ct=e.slots.has("default")?e.slot("default"):s.html`<div class="moz-dialog-body">
|
|
810
810
|
${rt(z.dialogIcon)}
|
|
811
811
|
<div class="dialog-message">${z.dialogMessage!=null?_o.unsafeHTML(z.dialogMessage):s.nothing}</div>
|
|
812
812
|
</div>`,ht=e.slots.has("footer")?e.slot("footer",{onConfirm:F,onCancel:T}):s.html`
|
|
@@ -825,7 +825,7 @@
|
|
|
825
825
|
aria-labelledby=${Ee.ifDefined(z.showHeader===!1?void 0:n)}
|
|
826
826
|
aria-describedby=${Ee.ifDefined(at?l:void 0)}
|
|
827
827
|
tabindex=${Ee.ifDefined(z.focusTrap?"-1":void 0)}
|
|
828
|
-
style=${ee.styleMap(
|
|
828
|
+
style=${ee.styleMap(Oe)}
|
|
829
829
|
${K.ref(t)}
|
|
830
830
|
${he(De)}
|
|
831
831
|
>
|
|
@@ -883,7 +883,7 @@
|
|
|
883
883
|
d="M5.84944 0.402344C2.83893 0.402344 0.398438 2.84284 0.398438 5.85334C0.398438 8.86385 2.83893 11.3043 5.84944 11.3043C7.0308 11.3043 8.12438 10.9285 9.01716 10.29L12.0619 13.3347C12.4134 13.6862 12.9832 13.6862 13.3347 13.3347C13.6862 12.9832 13.6862 12.4134 13.3347 12.0619L10.2893 9.01651C10.9259 8.12457 11.3004 7.03269 11.3004 5.85334C11.3004 2.84284 8.85994 0.402344 5.84944 0.402344ZM2.19844 5.85334C2.19844 3.83695 3.83305 2.20234 5.84944 2.20234C7.86583 2.20234 9.50044 3.83695 9.50044 5.85334C9.50044 7.86974 7.86583 9.50434 5.84944 9.50434C3.83305 9.50434 2.19844 7.86974 2.19844 5.85334Z"
|
|
884
884
|
fill=${l}
|
|
885
885
|
></path>
|
|
886
|
-
</svg>`}const Xl=250,Ql=24,Jl=new Set(["itemsSource","label","width","required","readonly","disabled","keyProp","displayProp","separator","rules","useObjBinding","useFilter","listWidth","placeholder","searchPlaceholder","emptyText","requiredMessage","modelValue","class","style"]);function ei(e,t){let o;return(...n)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...n),t)}}function ti(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Ps=(e=!1)=>$e({name:"moz-select",defaults:{label:null,width:200,required:!1,readonly:!1,disabled:!1,keyProp:"id",displayProp:"text",separator:" / ",rules:[],useObjBinding:!1,useFilter:!0,listWidth:100,modelValue:null},setup(t){const o=K.createRef(),n=K.createRef(),l=K.createRef(),d=K.createRef(),a=K.createRef(),f=K.createRef();let i=null,c=t.props.modelValue??null;const r=()=>t.controlled("modelValue")?t.props.modelValue??null:c,u=w=>{t.controlled("modelValue")||(c=w),t.emit("update:modelValue",w),t.requestUpdate()};let p=!1,y=!1,L=0,D=null,P=null,E="",g=-1;const h=ot("moz-select-listbox-"),C={change:"",blur:"",save:""};let k=r();const Z=()=>t.props.keyProp||"id",W=()=>Array.isArray(t.props.displayProp)?t.props.displayProp:null,Q=()=>W()?32:Ql,re=()=>W()?300:Xl,ae=()=>{var w;return!!((w=W())!=null&&w.some(H=>H.header!==void 0))},j=()=>e?t.locale.TableSelect:t.locale.Select,$=w=>t.props.useObjBinding&&w&&typeof w=="object"?w[Z()]:w,I=w=>r()!=null&&w[Z()]===$(r()),Y=w=>{const H=typeof w.width=="number"?`${w.width}px`:w.width;return{width:H,minWidth:H,maxWidth:H,flex:H==null?"1 1 0":"0 0 auto"}},ne=new nt.Virtualizer({count:0,getScrollElement:()=>i,estimateSize:Q,measureElement:w=>{const H=w.getBoundingClientRect().height;return H>0?H:Q()},overscan:5,observeElementRect:nt.observeElementRect,observeElementOffset:nt.observeElementOffset,scrollToFn:nt.elementScroll,onChange:()=>t.requestUpdate()});t.onCleanup(()=>{y=!0,L+=1,D=null,P=null,window.removeEventListener("keydown",A),ce==null||ce.release(),ce=null}),t.onCleanup(ne._didMount());const B=w=>{i=w??null,w&&(ne._willUpdate(),t.requestUpdate())},se=w=>t.props.itemsSource?t.props.itemsSource.find(te=>te[Z()]===w)??null:null,N=w=>{if(!w)return"";const H=W();return H?H.map(te=>String(w[te.key]??"")).join(t.props.separator??" / "):typeof t.props.displayProp=="function"?t.props.displayProp(w):String(typeof w=="object"?w[t.props.displayProp]??"":w)},X=()=>{const w=r();if(!w&&isNaN(Number(w)))return null;const H=t.props.useObjBinding?w:se(w);return H?N(H):null},
|
|
886
|
+
</svg>`}const Xl=250,Ql=24,Jl=new Set(["itemsSource","label","width","required","readonly","disabled","keyProp","displayProp","separator","rules","useObjBinding","useFilter","listWidth","placeholder","searchPlaceholder","emptyText","requiredMessage","modelValue","class","style"]);function ei(e,t){let o;return(...n)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...n),t)}}function ti(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Ps=(e=!1)=>$e({name:"moz-select",defaults:{label:null,width:200,required:!1,readonly:!1,disabled:!1,keyProp:"id",displayProp:"text",separator:" / ",rules:[],useObjBinding:!1,useFilter:!0,listWidth:100,modelValue:null},setup(t){const o=K.createRef(),n=K.createRef(),l=K.createRef(),d=K.createRef(),a=K.createRef(),f=K.createRef();let i=null,c=t.props.modelValue??null;const r=()=>t.controlled("modelValue")?t.props.modelValue??null:c,u=w=>{t.controlled("modelValue")||(c=w),t.emit("update:modelValue",w),t.requestUpdate()};let p=!1,y=!1,L=0,D=null,P=null,E="",g=-1;const h=ot("moz-select-listbox-"),C={change:"",blur:"",save:""};let k=r();const Z=()=>t.props.keyProp||"id",W=()=>Array.isArray(t.props.displayProp)?t.props.displayProp:null,Q=()=>W()?32:Ql,re=()=>W()?300:Xl,ae=()=>{var w;return!!((w=W())!=null&&w.some(H=>H.header!==void 0))},j=()=>e?t.locale.TableSelect:t.locale.Select,$=w=>t.props.useObjBinding&&w&&typeof w=="object"?w[Z()]:w,I=w=>r()!=null&&w[Z()]===$(r()),Y=w=>{const H=typeof w.width=="number"?`${w.width}px`:w.width;return{width:H,minWidth:H,maxWidth:H,flex:H==null?"1 1 0":"0 0 auto"}},ne=new nt.Virtualizer({count:0,getScrollElement:()=>i,estimateSize:Q,measureElement:w=>{const H=w.getBoundingClientRect().height;return H>0?H:Q()},overscan:5,observeElementRect:nt.observeElementRect,observeElementOffset:nt.observeElementOffset,scrollToFn:nt.elementScroll,onChange:()=>t.requestUpdate()});t.onCleanup(()=>{y=!0,L+=1,D=null,P=null,window.removeEventListener("keydown",A),ce==null||ce.release(),ce=null}),t.onCleanup(ne._didMount());const B=w=>{i=w??null,w&&(ne._willUpdate(),t.requestUpdate())},se=w=>t.props.itemsSource?t.props.itemsSource.find(te=>te[Z()]===w)??null:null,N=w=>{if(!w)return"";const H=W();return H?H.map(te=>String(w[te.key]??"")).join(t.props.separator??" / "):typeof t.props.displayProp=="function"?t.props.displayProp(w):String(typeof w=="object"?w[t.props.displayProp]??"":w)},X=()=>{const w=r();if(!w&&isNaN(Number(w)))return null;const H=t.props.useObjBinding?w:se(w);return H?N(H):null},M=()=>{if(!E)return t.props.itemsSource??[];const w=E.toLowerCase();return(t.props.itemsSource??[]).filter(H=>W()?W().some(te=>String(H[te.key]??"").toLowerCase().includes(w)):N(H).toLowerCase().includes(w))},U=w=>{if(!E)return[{part:w,highlight:!1}];const H=ti(E),te=new RegExp(`(${H})`,"gi");return w.split(te).map(me=>({part:me,highlight:E.toLowerCase()===me.toLowerCase()}))},_=()=>C.save||C.blur||C.change,G=()=>{const w=[];return t.props.required&&w.push({message:t.props.requiredMessage??j().requiredMessage.replace("{label}",t.props.label||""),type:"save",validator:H=>!!H}),[...w,...t.props.rules??[]]},J=async(w,H)=>{const te=G();if(te.length<=0||t.props.disabled)return!0;C[H]="",t.requestUpdate();const me=te.filter(ve=>ve.type===H);for(const ve of me){const Oe=e&&t.props.useObjBinding?w==null?"":String(w):w;if(!await ve.validator(Oe))return C[H]=ve.message,t.requestUpdate(),!1}return!0},x=async(w="save")=>_()!==""?!1:await J(r(),w),m={validate:x,initValidator:()=>{C.change="",C.blur="",C.save="",t.requestUpdate()}};t.validator&&(t.validator.addValidator(m),t.onCleanup(()=>{var w;return(w=t.validator)==null?void 0:w.removeValidator(m)}));const T=new Kt({anchor:()=>n.value??null,panel:()=>l.value??null,maxHeight:re,container:()=>o.value??null,useMinWidth:!0,listWidth:()=>t.props.listWidth,ignoreScrollTargets:w=>w===i,requestClose:()=>{p&&ke(!1)}});t.onCleanup(()=>T.destroy());const A=w=>{`${w.ctrlKey?"ctrl+":""}${w.altKey?"alt+":""}${w.key.toLowerCase()}`==="escape"&&ke(!1)},F=w=>{const H=re()-(W()&&t.props.useFilter?29:0)-(ae()?32:0),te=Q()*w;return Math.max(0,te-H/2+Q())};let ce=null;const ke=(w,H,te=!0)=>{if(y||p===w)return;p=w;const me=++L;D=w&&H!==void 0?{generation:me,step:H}:null,P=null,t.requestUpdate(),w?(ce=Gt(),T.open(),C.save="",window.addEventListener("keydown",A),queueMicrotask(()=>{var Oe;if(y||!p||me!==L)return;if(r()!=null){const Ce=M().findIndex(I);Ce>=0&&(e&&(g=Ce,t.requestUpdate()),i&&(i.scrollTop=F(Ce)))}te&&H===void 0&&(f.value?f.value.focus():(Oe=a.value)==null||Oe.focus())})):(ce==null||ce.release(),ce=null,T.close(),t.emit("close"),J(r(),"blur"),window.removeEventListener("keydown",A),E="",g=-1,t.emit("close"),queueMicrotask(()=>{var ve;y||p||me!==L||(ve=a.value)==null||ve.focus()}))},Me=()=>{var w;t.props.disabled||(ke(!p),(w=a.value)==null||w.focus())},Ne=w=>{var H;u(w),ke(!1),(H=a.value)==null||H.focus()},qe=ei(w=>{E=w.target.value,e&&(g=M().length?0:-1),t.requestUpdate(),queueMicrotask(()=>{const H=M().length;ne.setOptions({...ne.options,count:H}),ne.measure(),i&&(i.scrollTop=0,ne.scrollToIndex(0),ne.measure())})},300),st=w=>{var H;if(p){w.stopPropagation(),w.preventDefault();const te=f.value??((H=d.value)==null?void 0:H.querySelector("div:first-child"));te==null||te.focus()}},Qe=w=>{var Oe,Ce,Se;const H=((Oe=l.value)==null?void 0:Oe.querySelectorAll('[tabindex="0"]'))??[],te=[...Array.from(H)];f.value&&te.unshift(f.value);const me=te[0],ve=te[te.length-1];(w.target===me||w.target===ve)&&a.value&&(w.target===me&&w.shiftKey?(w.stopPropagation(),w.preventDefault(),(Ce=a.value)==null||Ce.focus()):w.target===ve&&!w.shiftKey&&(w.stopPropagation(),w.preventDefault(),(Se=a.value)==null||Se.focus()))},Je=w=>{i&&(w.shiftKey?i.scrollTop-=24:i.scrollTop+=24)},Be=()=>{var H;const w=Array.from(((H=l.value)==null?void 0:H.querySelectorAll('[tabindex="0"]'))??[]);return f.value&&!w.includes(f.value)&&w.unshift(f.value),w},He=w=>{var ve;const H=Be();if(H.length===0)return;const te=H.indexOf(document.activeElement),me=te<0?w>0?0:H.length-1:Math.min(H.length-1,Math.max(0,te+w));(ve=H[me])==null||ve.focus()},Le=w=>w.find(H=>H.getAttribute("aria-selected")==="true")??null,_e=w=>{ke(!0,w)},Ue=()=>{const w=D;!w||P===w||(P=w,queueMicrotask(()=>{var me;if(P===w&&(P=null),y||!p||w.generation!==L||D!==w||!((me=l.value)!=null&&me.isConnected))return;const H=Be(),te=f.value??Le(H)??H[w.step<0?H.length-1:0];te!=null&&te.isConnected&&(D=null,te.focus())}))},rt=()=>{var w;ke(!1),(w=a.value)==null||w.focus()},z=w=>{if(w.key==="Tab"){st(w);return}if(w.key==="Enter"||w.key===" "){p||(w.preventDefault(),w.stopPropagation(),_e(1));return}if(w.key==="ArrowDown"||w.key==="ArrowUp"){w.preventDefault(),w.stopPropagation();const H=w.key==="ArrowDown"?1:-1;p?He(H):_e(H);return}w.key==="Escape"&&p&&(w.preventDefault(),rt())},de=w=>{if(e){const H=M();if(w.key==="ArrowDown"||w.key==="ArrowUp"){if(w.preventDefault(),!H.length)return;g=w.key==="ArrowDown"?g>=H.length-1?0:g+1:g<=0?H.length-1:g-1,t.requestUpdate();const te=L;queueMicrotask(()=>{!y&&p&&te===L&&ne.scrollToIndex(g,{align:"auto"})})}else if(w.key==="Enter"){w.preventDefault();const te=H[g];te&&Ne(t.props.useObjBinding?te:te[Z()])}return}if(w.key==="Tab"){Qe(w);return}if(w.key==="ArrowDown"||w.key==="ArrowUp"){w.preventDefault(),He(w.key==="ArrowDown"?1:-1);return}w.key==="Escape"&&(w.preventDefault(),rt())},Ie=(w,H)=>{if(!e){if(w.key==="Tab"){Je(w);return}if(w.key==="ArrowDown"||w.key==="ArrowUp"){w.preventDefault(),w.stopPropagation(),He(w.key==="ArrowDown"?1:-1);return}if(w.key==="Escape"){w.preventDefault(),w.stopPropagation(),rt();return}(w.key==="Enter"||w.key===" ")&&(w.key==="Enter"&&w.preventDefault(),Ne(H))}};return{api:{validate:x,setOpen:w=>{y||w&&t.props.disabled||ke(w,void 0,!1)},isOpen:()=>!y&&p},render(){const w=t.props,H=r();if(H!==k){k=H;const Te=H;queueMicrotask(()=>{J(Te,"change"),t.emit("change",Te,se($(Te)))})}const te=typeof w.width=="number"?`${Ae(w.width)}rem`:w.width,me=ye(w,Jl),{aria:ve,dom:Oe}=Wt(me),Ce=t.slots.has("icon")?t.slot("icon",{isOpen:p}):p?Es("14","var(--moz-color-accent)"):ks("14","var(--moz-color-text-subtle)",w.disabled),Se=s.html`<button
|
|
887
887
|
type="button"
|
|
888
888
|
class="icon-container"
|
|
889
889
|
${he(ve)}
|
|
@@ -900,7 +900,7 @@
|
|
|
900
900
|
</button>`,Ze=t.slots.has("input-container")?s.html`<div
|
|
901
901
|
class="moz-input-container select-input-container"
|
|
902
902
|
style=${ee.styleMap({width:te})}
|
|
903
|
-
@click=${
|
|
903
|
+
@click=${Me}
|
|
904
904
|
${K.ref(n)}
|
|
905
905
|
>
|
|
906
906
|
<div
|
|
@@ -912,11 +912,11 @@
|
|
|
912
912
|
</div>`:s.html`<div
|
|
913
913
|
class="moz-input-container select-input-container"
|
|
914
914
|
style=${ee.styleMap({width:te})}
|
|
915
|
-
@click=${
|
|
915
|
+
@click=${Me}
|
|
916
916
|
${K.ref(n)}
|
|
917
917
|
>
|
|
918
918
|
<input
|
|
919
|
-
${he(
|
|
919
|
+
${he(Oe)}
|
|
920
920
|
.value=${X()??""}
|
|
921
921
|
placeholder=${Ee.ifDefined(w.placeholder??void 0)}
|
|
922
922
|
autocomplete="off"
|
|
@@ -940,7 +940,7 @@
|
|
|
940
940
|
|
|
941
941
|
${_()!==""?s.html`<span class="moz-input-invalid-message">${_()}</span>`:s.nothing}
|
|
942
942
|
</div>
|
|
943
|
-
`},renderPortal(){if(!p)return s.nothing;Ue();const w=t.props;r();const H=Z(),te=
|
|
943
|
+
`},renderPortal(){if(!p)return s.nothing;Ue();const w=t.props;r();const H=Z(),te=M();ne.options.count!==te.length&&ne.setOptions({...ne.options,count:te.length}),ne._willUpdate();const me=po(i?ne.getVirtualItems():[],te.length,Q(),i),ve=ne.getTotalSize(),Oe=me.map(Ce=>{if(Ce.index>=te.length)return null;const Se=te[Ce.index];return Se?{index:Ce.index,value:Se,size:Ce.size,start:Ce.start}:null}).filter(Ce=>Ce!==null);return s.html`<div
|
|
944
944
|
class=${V(W()?"table-list-box moz-table-select-list":"list-box moz-select-list",{"no-label":!w.label},e&&w.class)}
|
|
945
945
|
@keydown=${de}
|
|
946
946
|
${K.ref(l)}
|
|
@@ -964,7 +964,7 @@
|
|
|
964
964
|
${K.ref(B)}
|
|
965
965
|
>
|
|
966
966
|
<div class="inner-container" style=${ee.styleMap({height:`${ve}px`})} ${K.ref(d)}>
|
|
967
|
-
${
|
|
967
|
+
${Oe.map(({index:Ce,value:Se,start:Ze})=>{const Te=I(Se);return s.html`<div
|
|
968
968
|
data-index=${Ce}
|
|
969
969
|
role="option"
|
|
970
970
|
aria-selected=${Te?"true":"false"}
|
|
@@ -1011,7 +1011,7 @@
|
|
|
1011
1011
|
d="M5.84944 0.402344C2.83893 0.402344 0.398438 2.84284 0.398438 5.85334C0.398438 8.86385 2.83893 11.3043 5.84944 11.3043C7.0308 11.3043 8.12438 10.9285 9.01716 10.29L12.0619 13.3347C12.4134 13.6862 12.9832 13.6862 13.3347 13.3347C13.6862 12.9832 13.6862 12.4134 13.3347 12.0619L10.2893 9.01651C10.9259 8.12457 11.3004 7.03269 11.3004 5.85334C11.3004 2.84284 8.85994 0.402344 5.84944 0.402344ZM2.19844 5.85334C2.19844 3.83695 3.83305 2.20234 5.84944 2.20234C7.86583 2.20234 9.50044 3.83695 9.50044 5.85334C9.50044 7.86974 7.86583 9.50434 5.84944 9.50434C3.83305 9.50434 2.19844 7.86974 2.19844 5.85334Z"
|
|
1012
1012
|
fill=${l}
|
|
1013
1013
|
></path>
|
|
1014
|
-
</svg>`}const ii=new Set(["itemsSource","inline","filterMode","filterValue","searchPlaceholder","preserveMissingValues","loading","loadingText","listBoxHeight","label","width","required","readonly","disabled","keyProp","displayProp","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","autoSelectNewItems","selectAllWhenEmpty","modelValue","class","style","dropdown-item-height"]);function ri(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const xs=$e({name:"moz-multi-select",defaults:{inline:!1,filterMode:"local",preserveMissingValues:!1,loading:!1,listBoxHeight:224,label:null,width:200,required:!1,readonly:!1,disabled:!1,keyProp:"id",displayProp:"text",disabledProp:"disabled",rules:[],useSelectAll:!0,useFilter:!1,headerFormat:"ITEMS ({count})",listBoxWidth:0,useSpecificSelect:!0,autoSelectNewItems:!1,selectAllWhenEmpty:!1,modelValue:null},setup(e){const t=K.createRef(),o=K.createRef(),n=K.createRef(),l=K.createRef(),d=K.createRef();let a=null;const f=()=>e.props.keyProp||"id",i=()=>e.props.disabledProp||"disabled";let c=e.props.modelValue??null;const r=()=>{const v=e.controlled("modelValue")?e.props.modelValue:c;return Array.isArray(v)?v:[]},u=v=>{e.controlled("modelValue")||(c=v),e.emit("update:modelValue",v),e.requestUpdate()};let p=!1,y=!1,L=0;e.onCleanup(()=>{y=!0,L+=1});const D=ot("moz-multiselect-listbox-");let P=e.props.filterValue??"",E=!1,g=!1,h={},C=[];const k={change:"",blur:"",save:""};let Z=e.props.itemsSource;const W=(()=>{const v=e.props["dropdown-item-height"];if(v!=null)return+v;try{return+getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height").trim().replace("px","")||void 0}catch{return}})();let Q=W??(e.props.inline?24:28),re=!!e.props.inline,ae="",j=0,$=!1,I=null;const Y=()=>{I=null,j++},ne=()=>{!$&&I===null&&(a!=null&&a.isConnected)&&(I=a.scrollTop)},B=()=>{const v=j,R=a;I===null||!R||queueMicrotask(()=>{if(v!==j||R!==a||!R.isConnected||$||I===null||R.clientHeight<=0)return;const q=Math.min(Math.max(0,I),Math.max(0,R.scrollHeight-R.clientHeight));I=null,R.scrollTop!==q&&se.scrollToOffset(q,{behavior:"auto"})})},se=new nt.Virtualizer({count:0,getScrollElement:()=>a,estimateSize:()=>Q,overscan:5,observeElementRect:nt.observeElementRect,observeElementOffset:nt.observeElementOffset,scrollToFn:nt.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{Y(),me==null||me.release(),me=null}),e.onCleanup(se._didMount());const N=v=>{ne(),j++,a=v??null,v&&(se._willUpdate(),B(),e.requestUpdate())},X=v=>typeof e.props.displayProp=="function"?e.props.displayProp(v):typeof v=="object"?v[e.props.displayProp]??"":v,x=()=>{const v=new Map;return(e.props.itemsSource??[]).forEach(R=>v.set(R[f()],R)),v},U=()=>{if(e.props.filterMode==="remote"||!P)return e.props.itemsSource??[];const v=P.toLowerCase();return(e.props.itemsSource??[]).filter(R=>X(R).toLowerCase().indexOf(v)>-1)},_=v=>{if(!P)return[{part:v,highlight:!1}];const R=ri(P),q=new RegExp(`(${R})`,"gi");return v.split(q).map(oe=>({part:oe,highlight:P.toLowerCase()===oe.toLowerCase()}))},G=v=>new Set(r()).has(v[f()]),J=v=>C.some(R=>wt(R.item,v)),M=()=>{const v=r(),R=U();if(v.length<R.length||v.length===0||R.length===0)return!1;const q=new Set(v);return R.every(oe=>q.has(oe[f()]))},m=()=>new Set(U().map(v=>v[f()])),T=()=>new Set(r()),A=()=>{const v=m(),R=T();return!v.size||!R.size||R.size<v.size?!1:Array.from(v).every(q=>R.has(q))},F=()=>k.save||k.blur||k.change,ce=()=>{const v=[];return e.props.required&&v.push({message:e.locale.MultiSelect.required.replace("{label}",e.props.label||""),type:"save",validator:R=>!!R.length}),[...v,...e.props.rules??[]]},ke=async(v,R)=>{const q=ce();if(q.length<=0)return;if(e.props.disabled)return!0;k[R]="",e.requestUpdate();const oe=q.filter(ie=>ie.type===R);for(const ie of oe)if(!await ie.validator(v))return k[R]=ie.message,e.requestUpdate(),!1;return!0},xe=async(v="save")=>F()!==""?!1:await ke(r(),v)??!0,Ne={validate:xe,initValidator:()=>{k.change="",k.blur="",k.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(Ne),e.onCleanup(()=>{var v;return(v=e.validator)==null?void 0:v.removeValidator(Ne)}));const qe=v=>{if(e.props.disabled||e.props.readonly||e.props.loading)return;const R=x(),q=new Set;r().forEach(ie=>{const pe=R.get(ie);(pe==null?void 0:pe[i()])===!0&&q.add(ie)}),v.forEach(ie=>{const pe=R.get(ie);(pe&&pe[i()]!==!0||!pe&&e.props.preserveMissingValues)&&q.add(ie)});const oe=Array.from(q);wt(r(),oe)||(u(oe),e.emit("change",oe,oe.map(ie=>R.get(ie)).filter(Boolean)),ke(oe,"change"))},st=(v,R)=>v.filter(q=>G(q)!==R).map(q=>q[f()]),Qe=(v,R,q)=>{if(q.shiftKey&&C.length>0){const oe=C[0],ie=Math.min(oe.index,R),pe=Math.max(oe.index,R);C=U().slice(ie,pe+1).map((ge,Ge)=>({item:ge,index:ie+Ge}))}else q.ctrlKey?C.push({item:v,index:R}):C=[{item:v,index:R}];return C.length},Je=(v=!0)=>{const R=C.map(ie=>ie.item),q=st(R,v);let oe=r();v?oe=[...oe,...q]:oe=oe.filter(ie=>!q.some(pe=>ie===pe)),qe(oe)},Be=(v,R,q)=>{if(v[i()]===!0)return;const oe=C.some(pe=>pe.item[f()]===v[f()]);(C.length<=1||!oe)&&Qe(v,R,{shiftKey:!1,ctrlKey:!1});const ie=r().some(pe=>pe===v[f()]);Je(!ie),q.stopPropagation()},He=(v,R,q)=>{v[i()]!==!0&&(!q.ctrlKey&&!q.shiftKey&&C.length<=1&&Be(v,R,q),Qe(v,R,q),e.requestUpdate())},Le=(v,R,q)=>{if(v[i()]===!0)return;const oe=r(),ie=T().size!==0&&oe.every(pe=>pe===v[f()]);qe(ie?[]:[v[f()]]),Qe(v,R,q),q.stopPropagation()},_e=v=>{v.stopPropagation();const R=m().size===T().size&&[...m()].every(q=>T().has(q));if(M()&&R){const q=new Set((e.props.itemsSource??[]).filter(oe=>oe[i()]===!0).map(oe=>oe[f()]));qe(Array.from(q))}else{const q=new Set(U().filter(oe=>oe[i()]!==!0).map(oe=>oe[f()]));qe(Array.from(q))}},Ue=v=>{if(v.stopPropagation(),A()){const R=m();qe(r().filter(q=>!R.has(q)))}else{const R=new Set([...r(),...m()]);qe(Array.from(R))}},rt=v=>{const R=v.target;R===a&&(Y(),E=R.scrollTop>0,e.requestUpdate())},z=()=>{const v=r();if(!(v!=null&&v.length))return"";const R=x(),q=v.map(ie=>R.get(ie)).filter(Boolean).map(ie=>typeof e.props.displayProp=="function"?e.props.displayProp(ie):ie[e.props.displayProp]||""),oe=e.props.itemsSource??[];return q.length===oe.length&&q.length>2?`${e.props.headerFormat.replace(/\{count(:.*?)?}/g,"ALL")}`:q.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${q.length.toLocaleString()}`):q.join(", ")||""},de=(v,R,q=10)=>{const oe=window.innerHeight||document.documentElement.clientHeight,ie=window.innerWidth||document.documentElement.clientWidth,pe=v.getBoundingClientRect(),ge=R.getBoundingClientRect(),Ge=pe.bottom+ge.height+q>oe;if(!Ge)return!1;const yt=pe.top-ge.height-q<0,Me=pe.right+ge.width+q>ie,ft=pe.left-ge.width-q<0;return Ge&&!yt||Me&&!ft},Ie=()=>{const v=o.value;if(!v)return;const R=v.getBoundingClientRect();let q=`${R.width}px`;e.props.listBoxWidth&&(q=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),h={width:String(q),left:`${R.left}px`,top:`${R.top+(g?0:R.height)}px`},e.requestUpdate()},w=v=>{var R;(R=n.value)!=null&&R.contains(v.target)||ve(!1)},H=v=>{var R,q;!((R=t.value)!=null&&R.contains(v.target))&&!((q=n.value)!=null&&q.contains(v.target))&&(ve(!1),document.removeEventListener("click",H,{capture:!0}))},te=v=>{var q;`${v.ctrlKey?"ctrl+":""}${v.altKey?"alt+":""}${v.key.toLowerCase()}`==="escape"&&(ve(!1),(q=l.value)==null||q.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",w,{capture:!0}),document.removeEventListener("click",H,{capture:!0}),window.removeEventListener("keydown",te)});let me=null;const ve=(v,R=!0)=>{if(y||p===v)return;const q=++L;Y(),$=v;const oe=p;if(p=v,e.requestUpdate(),v)me=Gt(),document.body.addEventListener("scroll",w,{capture:!0}),document.addEventListener("click",H,{capture:!0}),k.save="",window.addEventListener("keydown",te),Ie(),queueMicrotask(()=>{var ie,pe;y||!p||q!==L||(!e.props.inline&&p&&o.value&&((ie=n.value)!=null&&ie.isConnected)&&(g=de(o.value,n.value)),Ie(),se.measure(),Y(),a&&(a.scrollTop=0),$=!1,R&&(d.value?d.value.focus():(pe=l.value)==null||pe.focus()))});else if(me==null||me.release(),me=null,P="",d.value&&(d.value.value=""),document.body.removeEventListener("scroll",w,{capture:!0}),document.removeEventListener("click",H,{capture:!0}),ke(r(),"blur"),window.removeEventListener("keydown",te),oe&&!v){const ie=r();if(e.props.selectAllWhenEmpty&&(!ie||ie.length===0)){const pe=(e.props.itemsSource??[]).filter(ge=>ge[i()]!==!0).map(ge=>ge[f()]);pe.length>0&&(u(pe),e.emit("change",pe,(e.props.itemsSource??[]).filter(ge=>pe.includes(ge[f()]))))}e.emit("close")}},Re=v=>{var R;if(p){v.stopPropagation(),v.preventDefault();const q=(R=n.value)==null?void 0:R.querySelector("input:first-child, button:first-child");q==null||q.focus()}},Ce=v=>{var ie,pe,ge;const R=((ie=n.value)==null?void 0:ie.querySelectorAll("input, button"))??[],q=R[0],oe=R[R.length-1];(v.target===q||v.target===oe)&&l.value&&(v.target===q&&v.shiftKey?(v.stopPropagation(),v.preventDefault(),(pe=l.value)==null||pe.focus()):v.target===oe&&!v.shiftKey&&(v.stopPropagation(),v.preventDefault(),(ge=l.value)==null||ge.focus()))},Se=v=>{v.key==="Tab"&&Re(v)},Ze=v=>{!e.props.inline&&v.key==="Tab"&&Ce(v)},Te=v=>{!p&&!e.props.inline||(Y(),$=!0,P=v.target.value,C=[],e.emit("update:filterValue",P),e.requestUpdate(),queueMicrotask(()=>{ht(e.props.loading?[]:U()),se.measure(),Y(),a&&(a.scrollTop=0),$=!1}))},De=()=>{var v;e.props.disabled||(ve(!p),(v=l.value)==null||v.focus())},et=(v,R)=>{var q,oe;if(v.key==="Enter"||v.key===" "){v.preventDefault(),v.stopPropagation(),R();return}if(v.key==="ArrowDown"||v.key==="ArrowUp"){v.preventDefault(),v.stopPropagation();const ie=Array.from(((q=n.value)==null?void 0:q.querySelectorAll('[tabindex="0"]'))??[]),pe=ie.indexOf(v.currentTarget),ge=ie[pe+(v.key==="ArrowDown"?1:-1)];ge==null||ge.focus();return}v.key==="Escape"&&!e.props.inline&&(v.preventDefault(),v.stopPropagation(),ve(!1),(oe=l.value)==null||oe.focus())},at=(v,R)=>{He(v,R,{ctrlKey:!1,shiftKey:!1,stopPropagation(){}})},Ct=(v,R)=>{if(C=[],e.props.preserveMissingValues||JSON.stringify(v)===JSON.stringify(R))return;const q=new Set(v.map(ie=>ie[f()])),oe=r();if(e.props.autoSelectNewItems&&R){const ie=new Set(R.map(ge=>ge[f()])),pe=v.filter(ge=>!ie.has(ge[f()])).map(ge=>ge[f()]);if(pe.length>0){const ge=oe.filter(Ge=>q.has(Ge));u([...new Set([...ge,...pe])])}else u(oe.filter(ge=>q.has(ge)))}else{const ie=oe.filter(pe=>q.has(pe));if(wt(oe,ie))return;u(ie)}},ht=v=>{const R=e.props,q=W??(R.inline?24:28),oe=!!R.useSelectAll&&(R.itemsSource??[]).length>0&&v.length>0,ie=R.inline||oe?0:8,pe=R.inline?0:8,ge=`${!!R.inline}/${q}/${ie}/${pe}/${v.length}`;if(ge!==ae){ne(),j++;const Ge=!Object.is(q,Q);ae=ge,Q=q,se.setOptions({...se.options,count:v.length,paddingStart:ie,paddingEnd:pe}),Ge&&se.measure()}return B(),{hasSelectAll:oe,paddingStart:ie,paddingEnd:pe}},mt=()=>{const v=e.props,R=f(),q=v.loading?[]:U(),{hasSelectAll:oe,paddingStart:ie,paddingEnd:pe}=ht(q);se._willUpdate();const ge=new Set(r()),Ge=se.getVirtualItems(),yt=po(Ge,q.length,Q,a).map(Fe=>{if(Fe.index>=q.length)return null;const We=q[Fe.index];return We?{index:Fe.index,value:We,size:Fe.size,start:Fe.start+(Ge.length===0?ie:0),isSelected:ge.has(We[R]),isDisabled:!!v.disabled||!!v.readonly||We[i()]===!0,isFocused:J(We)}:null}).filter(Fe=>Fe!==null),Me=se.getTotalSize(),ft=P?e.locale.MultiSelect.selectFiltered:e.locale.MultiSelect.selectAll,zt=q.length===0?s.html`<div class="list-box-item loading not-hover">
|
|
1014
|
+
</svg>`}const ii=new Set(["itemsSource","inline","filterMode","filterValue","searchPlaceholder","preserveMissingValues","loading","loadingText","listBoxHeight","label","width","required","readonly","disabled","keyProp","displayProp","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","autoSelectNewItems","selectAllWhenEmpty","modelValue","class","style","dropdown-item-height"]);function ri(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Ms=$e({name:"moz-multi-select",defaults:{inline:!1,filterMode:"local",preserveMissingValues:!1,loading:!1,listBoxHeight:224,label:null,width:200,required:!1,readonly:!1,disabled:!1,keyProp:"id",displayProp:"text",disabledProp:"disabled",rules:[],useSelectAll:!0,useFilter:!1,headerFormat:"ITEMS ({count})",listBoxWidth:0,useSpecificSelect:!0,autoSelectNewItems:!1,selectAllWhenEmpty:!1,modelValue:null},setup(e){const t=K.createRef(),o=K.createRef(),n=K.createRef(),l=K.createRef(),d=K.createRef();let a=null;const f=()=>e.props.keyProp||"id",i=()=>e.props.disabledProp||"disabled";let c=e.props.modelValue??null;const r=()=>{const v=e.controlled("modelValue")?e.props.modelValue:c;return Array.isArray(v)?v:[]},u=v=>{e.controlled("modelValue")||(c=v),e.emit("update:modelValue",v),e.requestUpdate()};let p=!1,y=!1,L=0;e.onCleanup(()=>{y=!0,L+=1});const D=ot("moz-multiselect-listbox-");let P=e.props.filterValue??"",E=!1,g=!1,h={},C=[];const k={change:"",blur:"",save:""};let Z=e.props.itemsSource;const W=(()=>{const v=e.props["dropdown-item-height"];if(v!=null)return+v;try{return+getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height").trim().replace("px","")||void 0}catch{return}})();let Q=W??(e.props.inline?24:28),re=!!e.props.inline,ae="",j=0,$=!1,I=null;const Y=()=>{I=null,j++},ne=()=>{!$&&I===null&&(a!=null&&a.isConnected)&&(I=a.scrollTop)},B=()=>{const v=j,R=a;I===null||!R||queueMicrotask(()=>{if(v!==j||R!==a||!R.isConnected||$||I===null||R.clientHeight<=0)return;const q=Math.min(Math.max(0,I),Math.max(0,R.scrollHeight-R.clientHeight));I=null,R.scrollTop!==q&&se.scrollToOffset(q,{behavior:"auto"})})},se=new nt.Virtualizer({count:0,getScrollElement:()=>a,estimateSize:()=>Q,overscan:5,observeElementRect:nt.observeElementRect,observeElementOffset:nt.observeElementOffset,scrollToFn:nt.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{Y(),me==null||me.release(),me=null}),e.onCleanup(se._didMount());const N=v=>{ne(),j++,a=v??null,v&&(se._willUpdate(),B(),e.requestUpdate())},X=v=>typeof e.props.displayProp=="function"?e.props.displayProp(v):typeof v=="object"?v[e.props.displayProp]??"":v,M=()=>{const v=new Map;return(e.props.itemsSource??[]).forEach(R=>v.set(R[f()],R)),v},U=()=>{if(e.props.filterMode==="remote"||!P)return e.props.itemsSource??[];const v=P.toLowerCase();return(e.props.itemsSource??[]).filter(R=>X(R).toLowerCase().indexOf(v)>-1)},_=v=>{if(!P)return[{part:v,highlight:!1}];const R=ri(P),q=new RegExp(`(${R})`,"gi");return v.split(q).map(oe=>({part:oe,highlight:P.toLowerCase()===oe.toLowerCase()}))},G=v=>new Set(r()).has(v[f()]),J=v=>C.some(R=>wt(R.item,v)),x=()=>{const v=r(),R=U();if(v.length<R.length||v.length===0||R.length===0)return!1;const q=new Set(v);return R.every(oe=>q.has(oe[f()]))},m=()=>new Set(U().map(v=>v[f()])),T=()=>new Set(r()),A=()=>{const v=m(),R=T();return!v.size||!R.size||R.size<v.size?!1:Array.from(v).every(q=>R.has(q))},F=()=>k.save||k.blur||k.change,ce=()=>{const v=[];return e.props.required&&v.push({message:e.locale.MultiSelect.required.replace("{label}",e.props.label||""),type:"save",validator:R=>!!R.length}),[...v,...e.props.rules??[]]},ke=async(v,R)=>{const q=ce();if(q.length<=0)return;if(e.props.disabled)return!0;k[R]="",e.requestUpdate();const oe=q.filter(ie=>ie.type===R);for(const ie of oe)if(!await ie.validator(v))return k[R]=ie.message,e.requestUpdate(),!1;return!0},Me=async(v="save")=>F()!==""?!1:await ke(r(),v)??!0,Ne={validate:Me,initValidator:()=>{k.change="",k.blur="",k.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(Ne),e.onCleanup(()=>{var v;return(v=e.validator)==null?void 0:v.removeValidator(Ne)}));const qe=v=>{if(e.props.disabled||e.props.readonly||e.props.loading)return;const R=M(),q=new Set;r().forEach(ie=>{const pe=R.get(ie);(pe==null?void 0:pe[i()])===!0&&q.add(ie)}),v.forEach(ie=>{const pe=R.get(ie);(pe&&pe[i()]!==!0||!pe&&e.props.preserveMissingValues)&&q.add(ie)});const oe=Array.from(q);wt(r(),oe)||(u(oe),e.emit("change",oe,oe.map(ie=>R.get(ie)).filter(Boolean)),ke(oe,"change"))},st=(v,R)=>v.filter(q=>G(q)!==R).map(q=>q[f()]),Qe=(v,R,q)=>{if(q.shiftKey&&C.length>0){const oe=C[0],ie=Math.min(oe.index,R),pe=Math.max(oe.index,R);C=U().slice(ie,pe+1).map((ge,Ge)=>({item:ge,index:ie+Ge}))}else q.ctrlKey?C.push({item:v,index:R}):C=[{item:v,index:R}];return C.length},Je=(v=!0)=>{const R=C.map(ie=>ie.item),q=st(R,v);let oe=r();v?oe=[...oe,...q]:oe=oe.filter(ie=>!q.some(pe=>ie===pe)),qe(oe)},Be=(v,R,q)=>{if(v[i()]===!0)return;const oe=C.some(pe=>pe.item[f()]===v[f()]);(C.length<=1||!oe)&&Qe(v,R,{shiftKey:!1,ctrlKey:!1});const ie=r().some(pe=>pe===v[f()]);Je(!ie),q.stopPropagation()},He=(v,R,q)=>{v[i()]!==!0&&(!q.ctrlKey&&!q.shiftKey&&C.length<=1&&Be(v,R,q),Qe(v,R,q),e.requestUpdate())},Le=(v,R,q)=>{if(v[i()]===!0)return;const oe=r(),ie=T().size!==0&&oe.every(pe=>pe===v[f()]);qe(ie?[]:[v[f()]]),Qe(v,R,q),q.stopPropagation()},_e=v=>{v.stopPropagation();const R=m().size===T().size&&[...m()].every(q=>T().has(q));if(x()&&R){const q=new Set((e.props.itemsSource??[]).filter(oe=>oe[i()]===!0).map(oe=>oe[f()]));qe(Array.from(q))}else{const q=new Set(U().filter(oe=>oe[i()]!==!0).map(oe=>oe[f()]));qe(Array.from(q))}},Ue=v=>{if(v.stopPropagation(),A()){const R=m();qe(r().filter(q=>!R.has(q)))}else{const R=new Set([...r(),...m()]);qe(Array.from(R))}},rt=v=>{const R=v.target;R===a&&(Y(),E=R.scrollTop>0,e.requestUpdate())},z=()=>{const v=r();if(!(v!=null&&v.length))return"";const R=M(),q=v.map(ie=>R.get(ie)).filter(Boolean).map(ie=>typeof e.props.displayProp=="function"?e.props.displayProp(ie):ie[e.props.displayProp]||""),oe=e.props.itemsSource??[];return q.length===oe.length&&q.length>2?`${e.props.headerFormat.replace(/\{count(:.*?)?}/g,"ALL")}`:q.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${q.length.toLocaleString()}`):q.join(", ")||""},de=(v,R,q=10)=>{const oe=window.innerHeight||document.documentElement.clientHeight,ie=window.innerWidth||document.documentElement.clientWidth,pe=v.getBoundingClientRect(),ge=R.getBoundingClientRect(),Ge=pe.bottom+ge.height+q>oe;if(!Ge)return!1;const yt=pe.top-ge.height-q<0,xe=pe.right+ge.width+q>ie,ft=pe.left-ge.width-q<0;return Ge&&!yt||xe&&!ft},Ie=()=>{const v=o.value;if(!v)return;const R=v.getBoundingClientRect();let q=`${R.width}px`;e.props.listBoxWidth&&(q=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),h={width:String(q),left:`${R.left}px`,top:`${R.top+(g?0:R.height)}px`},e.requestUpdate()},w=v=>{var R;(R=n.value)!=null&&R.contains(v.target)||ve(!1)},H=v=>{var R,q;!((R=t.value)!=null&&R.contains(v.target))&&!((q=n.value)!=null&&q.contains(v.target))&&(ve(!1),document.removeEventListener("click",H,{capture:!0}))},te=v=>{var q;`${v.ctrlKey?"ctrl+":""}${v.altKey?"alt+":""}${v.key.toLowerCase()}`==="escape"&&(ve(!1),(q=l.value)==null||q.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",w,{capture:!0}),document.removeEventListener("click",H,{capture:!0}),window.removeEventListener("keydown",te)});let me=null;const ve=(v,R=!0)=>{if(y||p===v)return;const q=++L;Y(),$=v;const oe=p;if(p=v,e.requestUpdate(),v)me=Gt(),document.body.addEventListener("scroll",w,{capture:!0}),document.addEventListener("click",H,{capture:!0}),k.save="",window.addEventListener("keydown",te),Ie(),queueMicrotask(()=>{var ie,pe;y||!p||q!==L||(!e.props.inline&&p&&o.value&&((ie=n.value)!=null&&ie.isConnected)&&(g=de(o.value,n.value)),Ie(),se.measure(),Y(),a&&(a.scrollTop=0),$=!1,R&&(d.value?d.value.focus():(pe=l.value)==null||pe.focus()))});else if(me==null||me.release(),me=null,P="",d.value&&(d.value.value=""),document.body.removeEventListener("scroll",w,{capture:!0}),document.removeEventListener("click",H,{capture:!0}),ke(r(),"blur"),window.removeEventListener("keydown",te),oe&&!v){const ie=r();if(e.props.selectAllWhenEmpty&&(!ie||ie.length===0)){const pe=(e.props.itemsSource??[]).filter(ge=>ge[i()]!==!0).map(ge=>ge[f()]);pe.length>0&&(u(pe),e.emit("change",pe,(e.props.itemsSource??[]).filter(ge=>pe.includes(ge[f()]))))}e.emit("close")}},Oe=v=>{var R;if(p){v.stopPropagation(),v.preventDefault();const q=(R=n.value)==null?void 0:R.querySelector("input:first-child, button:first-child");q==null||q.focus()}},Ce=v=>{var ie,pe,ge;const R=((ie=n.value)==null?void 0:ie.querySelectorAll("input, button"))??[],q=R[0],oe=R[R.length-1];(v.target===q||v.target===oe)&&l.value&&(v.target===q&&v.shiftKey?(v.stopPropagation(),v.preventDefault(),(pe=l.value)==null||pe.focus()):v.target===oe&&!v.shiftKey&&(v.stopPropagation(),v.preventDefault(),(ge=l.value)==null||ge.focus()))},Se=v=>{v.key==="Tab"&&Oe(v)},Ze=v=>{!e.props.inline&&v.key==="Tab"&&Ce(v)},Te=v=>{!p&&!e.props.inline||(Y(),$=!0,P=v.target.value,C=[],e.emit("update:filterValue",P),e.requestUpdate(),queueMicrotask(()=>{ht(e.props.loading?[]:U()),se.measure(),Y(),a&&(a.scrollTop=0),$=!1}))},De=()=>{var v;e.props.disabled||(ve(!p),(v=l.value)==null||v.focus())},et=(v,R)=>{var q,oe;if(v.key==="Enter"||v.key===" "){v.preventDefault(),v.stopPropagation(),R();return}if(v.key==="ArrowDown"||v.key==="ArrowUp"){v.preventDefault(),v.stopPropagation();const ie=Array.from(((q=n.value)==null?void 0:q.querySelectorAll('[tabindex="0"]'))??[]),pe=ie.indexOf(v.currentTarget),ge=ie[pe+(v.key==="ArrowDown"?1:-1)];ge==null||ge.focus();return}v.key==="Escape"&&!e.props.inline&&(v.preventDefault(),v.stopPropagation(),ve(!1),(oe=l.value)==null||oe.focus())},at=(v,R)=>{He(v,R,{ctrlKey:!1,shiftKey:!1,stopPropagation(){}})},Ct=(v,R)=>{if(C=[],e.props.preserveMissingValues||JSON.stringify(v)===JSON.stringify(R))return;const q=new Set(v.map(ie=>ie[f()])),oe=r();if(e.props.autoSelectNewItems&&R){const ie=new Set(R.map(ge=>ge[f()])),pe=v.filter(ge=>!ie.has(ge[f()])).map(ge=>ge[f()]);if(pe.length>0){const ge=oe.filter(Ge=>q.has(Ge));u([...new Set([...ge,...pe])])}else u(oe.filter(ge=>q.has(ge)))}else{const ie=oe.filter(pe=>q.has(pe));if(wt(oe,ie))return;u(ie)}},ht=v=>{const R=e.props,q=W??(R.inline?24:28),oe=!!R.useSelectAll&&(R.itemsSource??[]).length>0&&v.length>0,ie=R.inline||oe?0:8,pe=R.inline?0:8,ge=`${!!R.inline}/${q}/${ie}/${pe}/${v.length}`;if(ge!==ae){ne(),j++;const Ge=!Object.is(q,Q);ae=ge,Q=q,se.setOptions({...se.options,count:v.length,paddingStart:ie,paddingEnd:pe}),Ge&&se.measure()}return B(),{hasSelectAll:oe,paddingStart:ie,paddingEnd:pe}},mt=()=>{const v=e.props,R=f(),q=v.loading?[]:U(),{hasSelectAll:oe,paddingStart:ie,paddingEnd:pe}=ht(q);se._willUpdate();const ge=new Set(r()),Ge=se.getVirtualItems(),yt=po(Ge,q.length,Q,a).map(Fe=>{if(Fe.index>=q.length)return null;const We=q[Fe.index];return We?{index:Fe.index,value:We,size:Fe.size,start:Fe.start+(Ge.length===0?ie:0),isSelected:ge.has(We[R]),isDisabled:!!v.disabled||!!v.readonly||We[i()]===!0,isFocused:J(We)}:null}).filter(Fe=>Fe!==null),xe=se.getTotalSize(),ft=P?e.locale.MultiSelect.selectFiltered:e.locale.MultiSelect.selectAll,zt=q.length===0?s.html`<div class="list-box-item loading not-hover">
|
|
1015
1015
|
${v.loading?v.loadingText??"Loading…":e.slots.has("empty")?e.slot("empty"):e.locale.MultiSelect.noData}
|
|
1016
1016
|
</div>`:s.nothing;return s.html`<div
|
|
1017
1017
|
class=${V("list-box moz-multi-select-list",{"no-label":!v.label,"show-top":g,"moz-multiselect-inline-list":!!v.inline},v.class)}
|
|
@@ -1044,7 +1044,7 @@
|
|
|
1044
1044
|
type="checkbox"
|
|
1045
1045
|
aria-hidden="true"
|
|
1046
1046
|
tabindex="-1"
|
|
1047
|
-
class=${V("moz-checkbox",{"is-indeterminate":q.some(Fe=>ge.has(Fe[R]))&&!
|
|
1047
|
+
class=${V("moz-checkbox",{"is-indeterminate":q.some(Fe=>ge.has(Fe[R]))&&!x()})}
|
|
1048
1048
|
.checked=${A()}
|
|
1049
1049
|
/>
|
|
1050
1050
|
<div class="highlight-container">
|
|
@@ -1068,7 +1068,7 @@
|
|
|
1068
1068
|
@keydown=${Y}
|
|
1069
1069
|
${K.ref(N)}
|
|
1070
1070
|
>
|
|
1071
|
-
${!v.inline&&q.length===0?s.nothing:s.html`<div class="inner-container" style=${ee.styleMap({height:`${
|
|
1071
|
+
${!v.inline&&q.length===0?s.nothing:s.html`<div class="inner-container" style=${ee.styleMap({height:`${xe}px`})}>
|
|
1072
1072
|
${yt.map(({index:Fe,value:We,start:Tt,size:Yt,isSelected:b,isDisabled:S,isFocused:O})=>s.html`<div
|
|
1073
1073
|
class=${V("list-box-item multi-select-item virtual-row",{"list-selected":b,"moz-multi-focus":O})}
|
|
1074
1074
|
style=${ee.styleMap({height:`${Yt}px`,transform:`translateY(${Tt}px)`})}
|
|
@@ -1100,7 +1100,7 @@
|
|
|
1100
1100
|
${zt}
|
|
1101
1101
|
</div>`:s.nothing}
|
|
1102
1102
|
</div>
|
|
1103
|
-
</div>`};return{api:{validate:
|
|
1103
|
+
</div>`};return{api:{validate:Me,setOpen:v=>{y||e.props.inline||v&&e.props.disabled||ve(v,!1)},isOpen:()=>!y&&!e.props.inline&&p},render(){const v=e.props;if(e.controlled("filterValue")&&(P=v.filterValue??""),re!==!!v.inline&&(ne(),re=!!v.inline),v.itemsSource!==Z){const ge=Z,Ge=v.itemsSource;Z=v.itemsSource,queueMicrotask(()=>Ct(Ge??[],ge??[]))}const R=typeof v.width=="number"?`${Ae(v.width)}rem`:v.width,q=ye(v,ii),{aria:oe,dom:ie}=Wt(q);if(v.inline)return s.html`<div class="moz-multi-select moz-multi-select-inline"
|
|
1104
1104
|
style=${ee.styleMap({width:R,...be(v.style)})}
|
|
1105
1105
|
${K.ref(t)}>${mt()}</div>`;const pe=e.slots.has("icon")?e.slot("icon",{isOpen:p}):p?ni("14","var(--moz-color-accent)"):si("14",v.disabled?"var(--moz-color-text-muted)":"var(--moz-color-text-subtle)");return s.html`
|
|
1106
1106
|
<div
|
|
@@ -1138,7 +1138,7 @@
|
|
|
1138
1138
|
|
|
1139
1139
|
${F()!==""?s.html`<span class="moz-input-invalid-message">${F()}</span>`:s.nothing}
|
|
1140
1140
|
</div>
|
|
1141
|
-
`},renderPortal(){return e.props.inline||!p?s.nothing:mt()}}}}),ai={name:"MozMultiSelect",core:
|
|
1141
|
+
`},renderPortal(){return e.props.inline||!p?s.nothing:mt()}}}}),ai={name:"MozMultiSelect",core:Ms,booleanProps:["autoSelectNewItems","disabled","inline","loading","preserveMissingValues","readonly","required","selectAllWhenEmpty","useFilter","useSelectAll","useSpecificSelect"],props:["itemsSource","inline","filterMode","filterValue","searchPlaceholder","preserveMissingValues","loading","loadingText","listBoxHeight","label","width","required","readonly","disabled","keyProp","displayProp","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","autoSelectNewItems","selectAllWhenEmpty","modelValue"],emits:["change","close","update:modelValue","update:filterValue"],slots:["icon","list-item","empty"],expose:!0};function xs(e,t=14){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function di(e="14",t="var(--moz-color-text-subtle)"){const o=xs(e,14);return s.html`<svg width=${o.width} height=${o.height} viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1142
1142
|
<g clip-path="url(#clip0_4513_575)">
|
|
1143
1143
|
<path
|
|
1144
1144
|
fill-rule="evenodd"
|
|
@@ -1152,7 +1152,7 @@
|
|
|
1152
1152
|
<rect width=${o.width} height=${o.height} fill="white" transform="translate(0 0.704163)"></rect>
|
|
1153
1153
|
</clipPath>
|
|
1154
1154
|
</defs>
|
|
1155
|
-
</svg>`}function Ao(e="12",t="var(--moz-color-text-subtle)",o=!1,n=""){const l=
|
|
1155
|
+
</svg>`}function Ao(e="12",t="var(--moz-color-text-subtle)",o=!1,n=""){const l=xs(e,12),d=o?"var(--moz-color-text-muted)":t;return s.html`<svg class=${n||s.nothing} xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 16 16">
|
|
1156
1156
|
<g style=${`fill: ${d}`}>
|
|
1157
1157
|
<path
|
|
1158
1158
|
d="M836.533 699.734h-.022a.928.928 0 0 1-.716-.336l-3.779-4.535a.926.926 0 0 1-.212-.68.93.93 0 0 1 1.643-.512l3.026 3.63 6.096-8.128a.922.922 0 0 1 .745-.373c.202 0 .396.064.559.186.199.15.328.367.363.614a.925.925 0 0 1-.177.69l-6.803 9.071a.928.928 0 0 1-.721.373h-.002z"
|
|
@@ -1165,7 +1165,7 @@
|
|
|
1165
1165
|
transform="translate(-829.971 -686.318)"
|
|
1166
1166
|
></path>
|
|
1167
1167
|
</g>
|
|
1168
|
-
</svg>`}const ci=new Set(["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required","class","style"]),ui=Array.from({length:24},(e,t)=>t),pi=Array.from({length:60},(e,t)=>t),zs=$e({name:"moz-time-picker",defaults:{width:"160px",modelValue:"09:00",label:"",disabled:!1,required:!1},setup(e){const t=K.createRef(),o=K.createRef(),n=K.createRef(),l=K.createRef(),d=K.createRef(),a=K.createRef(),f=ot("moz-time-picker-input-");let i=!1,c=9,r=0,u="",p="";const y=$=>{if($&&$.includes(":")){const[I,Y]=$.split(":").map(Number);!isNaN(I)&&!isNaN(Y)&&(c=I,r=Y,u=$,p=$)}};y(e.props.modelValue);let L=e.props.modelValue,D=u;const P=new Kt({anchor:()=>o.value??null,panel:()=>l.value??null,maxHeight:()=>210,container:()=>t.value??null,listWidth:()=>"160px",requestClose:()=>{i&&g(!1)}});e.onCleanup(()=>P.destroy());const E=()=>{if(!i)return;const $=(I,Y)=>{const ne=I==null?void 0:I.children[Y];if(!(I!=null&&I.isConnected)||!ne||I.clientHeight<=0)return;const B=ne.getBoundingClientRect(),se=I.getBoundingClientRect(),N=B.top+B.height/2-(se.top+I.clientTop+I.clientHeight/2),X=Math.max(0,I.scrollHeight-I.clientHeight);I.scrollTop=Math.max(0,Math.min(I.scrollTop+N,X))};$(d.value,c),$(a.value,r)},g=$=>{$&&e.props.disabled||i!==$&&(i=$,e.requestUpdate(),$?(P.open(),queueMicrotask(E)):P.close())},h=()=>{const $=`${c.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`;u=$,p=$,e.emit("update:modelValue",$),e.requestUpdate()},C=$=>{c=$,h()},k=$=>{r=$,g(!1),h()},Z=()=>{c=new Date().getHours(),r=new Date().getMinutes(),h(),g(!1)},W=$=>{let I=$.replace(/[^\d:]/g,"");return I.length>5&&(I=I.slice(0,5)),I},Q=$=>{g(!1);const I=$.target,Y=$.key;if(!/^\d$/.test(Y))return;const ne=I.selectionStart||0,B=u;if(I.selectionStart!==I.selectionEnd||ne>=B.length)return;$.preventDefault();const se=B.replace(/:/g,""),N=(B.slice(0,ne).match(/:/g)||[]).length,X=ne-N;let
|
|
1168
|
+
</svg>`}const ci=new Set(["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required","class","style"]),ui=Array.from({length:24},(e,t)=>t),pi=Array.from({length:60},(e,t)=>t),zs=$e({name:"moz-time-picker",defaults:{width:"160px",modelValue:"09:00",label:"",disabled:!1,required:!1},setup(e){const t=K.createRef(),o=K.createRef(),n=K.createRef(),l=K.createRef(),d=K.createRef(),a=K.createRef(),f=ot("moz-time-picker-input-");let i=!1,c=9,r=0,u="",p="";const y=$=>{if($&&$.includes(":")){const[I,Y]=$.split(":").map(Number);!isNaN(I)&&!isNaN(Y)&&(c=I,r=Y,u=$,p=$)}};y(e.props.modelValue);let L=e.props.modelValue,D=u;const P=new Kt({anchor:()=>o.value??null,panel:()=>l.value??null,maxHeight:()=>210,container:()=>t.value??null,listWidth:()=>"160px",requestClose:()=>{i&&g(!1)}});e.onCleanup(()=>P.destroy());const E=()=>{if(!i)return;const $=(I,Y)=>{const ne=I==null?void 0:I.children[Y];if(!(I!=null&&I.isConnected)||!ne||I.clientHeight<=0)return;const B=ne.getBoundingClientRect(),se=I.getBoundingClientRect(),N=B.top+B.height/2-(se.top+I.clientTop+I.clientHeight/2),X=Math.max(0,I.scrollHeight-I.clientHeight);I.scrollTop=Math.max(0,Math.min(I.scrollTop+N,X))};$(d.value,c),$(a.value,r)},g=$=>{$&&e.props.disabled||i!==$&&(i=$,e.requestUpdate(),$?(P.open(),queueMicrotask(E)):P.close())},h=()=>{const $=`${c.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`;u=$,p=$,e.emit("update:modelValue",$),e.requestUpdate()},C=$=>{c=$,h()},k=$=>{r=$,g(!1),h()},Z=()=>{c=new Date().getHours(),r=new Date().getMinutes(),h(),g(!1)},W=$=>{let I=$.replace(/[^\d:]/g,"");return I.length>5&&(I=I.slice(0,5)),I},Q=$=>{g(!1);const I=$.target,Y=$.key;if(!/^\d$/.test(Y))return;const ne=I.selectionStart||0,B=u;if(I.selectionStart!==I.selectionEnd||ne>=B.length)return;$.preventDefault();const se=B.replace(/:/g,""),N=(B.slice(0,ne).match(/:/g)||[]).length,X=ne-N;let M=se.substring(0,X)+Y;X+1<se.length&&(M+=se.substring(X+1)),M.length>4&&(M=M.slice(0,4));let U=M,_=X+1;if(M.length>=2){const G=M.slice(0,2),J=M.slice(2);U=`${G}:${J}`,_>2&&(_=_+1)}u=U,p=U,e.requestUpdate(),queueMicrotask(()=>I.setSelectionRange(_,_))},re=$=>{const I=$.target,Y=I.selectionStart||0,ne=p;let B=I.value;const se=B.length<ne.length;B=W(B);const N=B.replace(/:/g,"");if(!se&&N.length>=2){const X=(B.slice(0,Y).match(/:/g)||[]).length,M=Y-X,U=N.slice(0,2),_=N.slice(2);B=U+(_?`:${_}`:":");let G=M;M>2&&(G=M+1),u=B,p=B,e.requestUpdate(),setTimeout(()=>I.setSelectionRange(G,G),0);return}u=B,p=B,e.requestUpdate()},ae=()=>g(!0),j=()=>{if(!u){h();return}let $=u;!$.includes(":")&&$.length>=2&&($=`${$.slice(0,2)}:${$.slice(2)}`);const I=$.split(":");let Y=c,ne=r;if(I[0]){const B=parseInt(I[0],10);isNaN(B)||(B>=0&&B<=23?Y=B:B>23?Y=23:Y=0)}if(I[1]){const B=parseInt(I[1],10);isNaN(B)||(B>=0&&B<=59?ne=B:B>59?ne=59:ne=0)}c=Y,r=ne,h()};return{render(){const $=e.props;if($.modelValue!==L&&(L=$.modelValue,y($.modelValue)),u!==D){D=u;const N=u;if(/^\d{2}:\d{2}$/.test(N)){const[X,M]=N.split(":").map(Number);!isNaN(X)&&!isNaN(M)&&X>=0&&X<=23&&M>=0&&M<=59&&N!==$.modelValue&&(c=X,r=M,queueMicrotask(()=>{N!==e.props.modelValue&&e.emit("update:modelValue",N)}))}}const I=$.disabled?"var(--moz-color-text-muted)":i?"var(--moz-color-accent)":"var(--moz-color-text-subtle)",Y=ye($,ci),ne=typeof $.width=="number"?`${Ae($.width)}rem`:$.width,B="__:__",se=[];for(let N=0;N<B.length;N++)N<u.length?se.push({char:u[N],isInput:!0}):se.push({char:B[N],isInput:!1});return s.html`
|
|
1169
1169
|
<div
|
|
1170
1170
|
class=${V("custom-time-picker",$.class,{"custom-time-picker--has-class":!!$.class})}
|
|
1171
1171
|
style=${ee.styleMap({width:ne,...be($.style)})}
|
|
@@ -1244,7 +1244,7 @@
|
|
|
1244
1244
|
stroke-width="0.6"
|
|
1245
1245
|
></path>
|
|
1246
1246
|
</g>
|
|
1247
|
-
</svg>`}const fi=new Set(["id","modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","class","style"]);function gi(e,t){let o;return(...n)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...n),t)}}const Ts=$e({name:"moz-tag-input",defaults:{modelValue:[],required:!1,label:"",addButtonLabel:"",itemsSource:[],displayKey:"",pattern:"",dynamicSearch:!1,simplify:!1,limitItemLength:0,limitTextLength:0,disableUpdate:!1,disableDelete:!1,pushOnBlur:!1,isExpandTop:!1},setup(e){const t=K.createRef(),o=K.createRef();let n=null;const l=ot("moz-tag-input-"),d=()=>e.props.id||l;let a=[],f=!1,i=!1,c="",r=!1,u={};const p=()=>e.props,y=m=>p().pattern?new RegExp(`${p().pattern}`).test(m):!0,L=()=>a.map((m,T)=>({...m,idx:T})).filter(m=>m.isSelected!==-1).sort((m,T)=>m.isSelected-T.isSelected),D=()=>L().map(m=>m.value),P=()=>!L().some(m=>!m.isValid),E=(m,T)=>{const A=p().limitItemLength;(!T||T&&A&&L().length<A||T&&!A)&&(T&&a[m].isSelected===-1||!T)&&(a[m].isSelected=T?Date.now():-1)},g=(m,T)=>{const A=a.findIndex(ke=>ke.value===m);if(A!==-1)return D().includes(m)?!1:(E(A,!0),!0);const F={key:Date.now(),isSelected:T?Date.now():-1,isValid:y(m),isEditing:!1,beforeValue:m,value:m};F.isValid&&p().requestCreate&&p().requestCreate(m);const ce=p().limitItemLength;return!T||!ce||T&&ce&&L().length<ce?(a.push(F),!0):!1},h=m=>{a.splice(m,1)},C=m=>{a[m].isValid=y(a[m].value),a[m].isValid&&p().requestUpdate&&p().requestUpdate({before:a[m].beforeValue,after:a[m].value}),a[m].beforeValue=a[m].value},k=()=>{a=a.filter(m=>m.isSelected!==-1),(p().itemsSource??[]).forEach(m=>{g(p().displayKey?m[p().displayKey]:m,!1)})};k();const Z=()=>{const m=p().modelValue;if(m&&m.toString()!==D().toString()){const T=[...m];a.forEach((A,F)=>{const ce=T.indexOf(A.value);ce!==-1?(A.isSelected===-1&&E(F,!0),T.splice(ce,1)):E(F,!1)}),T.forEach(A=>g(A,!0))}};Z();let W=p().modelValue,Q=p().itemsSource,re=D().toString();const ae=()=>{if(!t.value||!o.value)return;const m=t.value.getBoundingClientRect();let T=m.left;m.left+o.value.clientWidth>document.body.clientWidth&&(T-=o.value.clientWidth-m.width),u={minWidth:`${m.width}px`,width:`${m.width}px`,left:`${T}px`,top:`${m.top}px`},e.requestUpdate()},j=m=>{const T=m.target,A=()=>{c&&p().pushOnBlur&&g(c,!0)&&e.emit("modelChange",D()),c="",i=!1,f=!1};T.className&&Array.from(String(T.className).split(" ")).includes("tag-input-not-close")||A(),N(""),window.removeEventListener("mousedown",j),e.requestUpdate()},$=()=>{f=!0,window.addEventListener("mousedown",j),e.requestUpdate(),queueMicrotask(ae)};e.onCleanup(()=>window.removeEventListener("mousedown",j));const I=m=>{setTimeout(()=>{const T=o.value,A=T==null?void 0:T.querySelector(`[data-edit-idx="${m}"] .moz-auto-input`);A==null||A.focus()},0)},Y=m=>{a[m].isEditing=!0,e.requestUpdate(),I(m)},ne=()=>{i=!0,$(),setTimeout(()=>n==null?void 0:n.focus(),0)},B=m=>{if(m.key==="Enter"&&c===""&&e.emit("onEnterEmpty",D()),(m.key==="Enter"||m.key==="Tab"&&p().pushOnBlur)&&c!==""&&(g(c,!0)&&(e.emit("modelChange",D()),c=""),e.requestUpdate()),m.key==="Tab"&&(f=!1,i=!1,e.requestUpdate()),m.key==="Backspace"){const T=m.target,A=L();T.selectionStart===0&&A.length>0&&(E(A[A.length-1].idx,!1),e.requestUpdate())}},se=m=>{p().dynamicSearch&&p().requestRead&&(r=!0,e.requestUpdate(),N(m.target.value))},N=gi(m=>{p().requestRead&&p().requestRead(m).then(()=>{r=!1,e.requestUpdate()})},300),X=(m,T)=>{m.key==="Backspace"&&a[T].value===""&&a.length>1&&(h(T),e.requestUpdate())},
|
|
1247
|
+
</svg>`}const fi=new Set(["id","modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","class","style"]);function gi(e,t){let o;return(...n)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...n),t)}}const Ts=$e({name:"moz-tag-input",defaults:{modelValue:[],required:!1,label:"",addButtonLabel:"",itemsSource:[],displayKey:"",pattern:"",dynamicSearch:!1,simplify:!1,limitItemLength:0,limitTextLength:0,disableUpdate:!1,disableDelete:!1,pushOnBlur:!1,isExpandTop:!1},setup(e){const t=K.createRef(),o=K.createRef();let n=null;const l=ot("moz-tag-input-"),d=()=>e.props.id||l;let a=[],f=!1,i=!1,c="",r=!1,u={};const p=()=>e.props,y=m=>p().pattern?new RegExp(`${p().pattern}`).test(m):!0,L=()=>a.map((m,T)=>({...m,idx:T})).filter(m=>m.isSelected!==-1).sort((m,T)=>m.isSelected-T.isSelected),D=()=>L().map(m=>m.value),P=()=>!L().some(m=>!m.isValid),E=(m,T)=>{const A=p().limitItemLength;(!T||T&&A&&L().length<A||T&&!A)&&(T&&a[m].isSelected===-1||!T)&&(a[m].isSelected=T?Date.now():-1)},g=(m,T)=>{const A=a.findIndex(ke=>ke.value===m);if(A!==-1)return D().includes(m)?!1:(E(A,!0),!0);const F={key:Date.now(),isSelected:T?Date.now():-1,isValid:y(m),isEditing:!1,beforeValue:m,value:m};F.isValid&&p().requestCreate&&p().requestCreate(m);const ce=p().limitItemLength;return!T||!ce||T&&ce&&L().length<ce?(a.push(F),!0):!1},h=m=>{a.splice(m,1)},C=m=>{a[m].isValid=y(a[m].value),a[m].isValid&&p().requestUpdate&&p().requestUpdate({before:a[m].beforeValue,after:a[m].value}),a[m].beforeValue=a[m].value},k=()=>{a=a.filter(m=>m.isSelected!==-1),(p().itemsSource??[]).forEach(m=>{g(p().displayKey?m[p().displayKey]:m,!1)})};k();const Z=()=>{const m=p().modelValue;if(m&&m.toString()!==D().toString()){const T=[...m];a.forEach((A,F)=>{const ce=T.indexOf(A.value);ce!==-1?(A.isSelected===-1&&E(F,!0),T.splice(ce,1)):E(F,!1)}),T.forEach(A=>g(A,!0))}};Z();let W=p().modelValue,Q=p().itemsSource,re=D().toString();const ae=()=>{if(!t.value||!o.value)return;const m=t.value.getBoundingClientRect();let T=m.left;m.left+o.value.clientWidth>document.body.clientWidth&&(T-=o.value.clientWidth-m.width),u={minWidth:`${m.width}px`,width:`${m.width}px`,left:`${T}px`,top:`${m.top}px`},e.requestUpdate()},j=m=>{const T=m.target,A=()=>{c&&p().pushOnBlur&&g(c,!0)&&e.emit("modelChange",D()),c="",i=!1,f=!1};T.className&&Array.from(String(T.className).split(" ")).includes("tag-input-not-close")||A(),N(""),window.removeEventListener("mousedown",j),e.requestUpdate()},$=()=>{f=!0,window.addEventListener("mousedown",j),e.requestUpdate(),queueMicrotask(ae)};e.onCleanup(()=>window.removeEventListener("mousedown",j));const I=m=>{setTimeout(()=>{const T=o.value,A=T==null?void 0:T.querySelector(`[data-edit-idx="${m}"] .moz-auto-input`);A==null||A.focus()},0)},Y=m=>{a[m].isEditing=!0,e.requestUpdate(),I(m)},ne=()=>{i=!0,$(),setTimeout(()=>n==null?void 0:n.focus(),0)},B=m=>{if(m.key==="Enter"&&c===""&&e.emit("onEnterEmpty",D()),(m.key==="Enter"||m.key==="Tab"&&p().pushOnBlur)&&c!==""&&(g(c,!0)&&(e.emit("modelChange",D()),c=""),e.requestUpdate()),m.key==="Tab"&&(f=!1,i=!1,e.requestUpdate()),m.key==="Backspace"){const T=m.target,A=L();T.selectionStart===0&&A.length>0&&(E(A[A.length-1].idx,!1),e.requestUpdate())}},se=m=>{p().dynamicSearch&&p().requestRead&&(r=!0,e.requestUpdate(),N(m.target.value))},N=gi(m=>{p().requestRead&&p().requestRead(m).then(()=>{r=!1,e.requestUpdate()})},300),X=(m,T)=>{m.key==="Backspace"&&a[T].value===""&&a.length>1&&(h(T),e.requestUpdate())},M=m=>{m.key==="Enter"&&(i=!0,e.requestUpdate(),setTimeout(()=>n==null?void 0:n.focus(),0))},U=m=>{a[m].value===""&&h(m),(a.length>1||a[m]&&a[m].value!=="")&&a[m]&&(a[m].isEditing=!1),a[m]&&C(m),e.requestUpdate()},_=m=>{E(m,!0),e.requestUpdate(),n==null||n.focus()},G=m=>{m.style.width="1px",m.style.width=`${m.scrollWidth}px`},J=m=>{const T=p().limitTextLength;return s.html`<input
|
|
1248
1248
|
id=${m.id??s.nothing}
|
|
1249
1249
|
class="moz-auto-input tag-input-common tag-input-add"
|
|
1250
1250
|
.value=${m.value}
|
|
@@ -1254,14 +1254,14 @@
|
|
|
1254
1254
|
@keydown=${A=>{var F;return(F=m.onKeydown)==null?void 0:F.call(m,A)}}
|
|
1255
1255
|
@keyup=${A=>{var F;return(F=m.onKeyup)==null?void 0:F.call(m,A)}}
|
|
1256
1256
|
@blur=${()=>{var A;return(A=m.onBlur)==null?void 0:A.call(m)}}
|
|
1257
|
-
/>`},
|
|
1257
|
+
/>`},x=(m,T,A)=>s.html`<div class="tag-input-controller" style=${ee.styleMap({display:m.isSelected!==-1?"":"none"})}>
|
|
1258
1258
|
<div
|
|
1259
1259
|
class=${V("tag-input-item",{invalid:!m.isValid})}
|
|
1260
1260
|
data-isValid=${String(m.isValid)}
|
|
1261
1261
|
data-edit-idx=${m.idx}
|
|
1262
1262
|
@mousedown=${F=>F.stopPropagation()}
|
|
1263
1263
|
>
|
|
1264
|
-
${A&&p().simplify&&m.isEditing?J({value:m.value,setValue:F=>{a[m.idx].value=F,e.requestUpdate()},onKeydown:F=>X(F,m.idx),onKeyup:F=>
|
|
1264
|
+
${A&&p().simplify&&m.isEditing?J({value:m.value,setValue:F=>{a[m.idx].value=F,e.requestUpdate()},onKeydown:F=>X(F,m.idx),onKeyup:F=>M(F),onBlur:()=>U(m.idx)}):s.html`<span class="tag-input-preview tag-input-common">${m.value}</span>`}
|
|
1265
1265
|
<div class="tag-input-btn-wrapper">
|
|
1266
1266
|
${p().simplify&&!m.isEditing&&!p().disableUpdate?s.html`<span
|
|
1267
1267
|
class="tag-input-button cursor-pointer"
|
|
@@ -1294,7 +1294,7 @@
|
|
|
1294
1294
|
${K.ref(t)}
|
|
1295
1295
|
>
|
|
1296
1296
|
${e.slot("left")}
|
|
1297
|
-
${L().map((F,ce)=>
|
|
1297
|
+
${L().map((F,ce)=>x(F,ce,!1))}
|
|
1298
1298
|
${i?s.html`<span class="tag-input-preview tag-input-common" @click=${ne}>${c}</span>`:s.nothing}
|
|
1299
1299
|
${m.limitItemLength&&i?s.html`<div class="tag-input-counter">${L().length} / ${m.limitItemLength}</div>`:s.nothing}
|
|
1300
1300
|
${i?s.nothing:s.html`<span class="tag-input-add-to">${m.addButtonLabel?m.addButtonLabel:e.locale.TagInput.add} </span>`}
|
|
@@ -1309,7 +1309,7 @@
|
|
|
1309
1309
|
@mousedown=${T=>{T.stopPropagation(),ne()}}
|
|
1310
1310
|
${K.ref(o)}
|
|
1311
1311
|
>
|
|
1312
|
-
${L().map((T,A)=>
|
|
1312
|
+
${L().map((T,A)=>x(T,A,!0))}
|
|
1313
1313
|
${i?J({id:d(),value:c,setValue:T=>{c=T,e.requestUpdate()},onKeydown:B,onKeyup:()=>{},onBlur:()=>{},onInputExtra:se,captureEl:T=>{n=T}}):s.nothing}
|
|
1314
1314
|
${r?s.html`<div class="tag-input-loading">
|
|
1315
1315
|
<div class="tag-input-loading-ball-1"></div>
|
|
@@ -1332,7 +1332,7 @@
|
|
|
1332
1332
|
data-edit-idx=${A}
|
|
1333
1333
|
@click=${()=>_(A)}
|
|
1334
1334
|
>
|
|
1335
|
-
${T.isEditing?J({value:T.value,setValue:F=>{a[A].value=F,e.requestUpdate()},onKeydown:F=>X(F,A),onKeyup:F=>
|
|
1335
|
+
${T.isEditing?J({value:T.value,setValue:F=>{a[A].value=F,e.requestUpdate()},onKeydown:F=>X(F,A),onKeyup:F=>M(F),onBlur:()=>U(A)}):s.html`<span class="tag-input-preview tag-input-common">
|
|
1336
1336
|
<span>${T.value}</span>
|
|
1337
1337
|
<div class="tag-input-btn-wrapper">
|
|
1338
1338
|
${!T.isEditing&&!m.disableUpdate?s.html`<span
|
|
@@ -1352,56 +1352,56 @@
|
|
|
1352
1352
|
</div>
|
|
1353
1353
|
</div>
|
|
1354
1354
|
</div>`}
|
|
1355
|
-
</div>`}}}}),vi={name:"MozTagInput",core:Ts,booleanProps:["disableDelete","disableUpdate","dynamicSearch","isExpandTop","pushOnBlur","required","simplify"],props:["modelValue","required","label","addButtonLabel","itemsSource","displayKey","pattern","dynamicSearch","requestCreate","requestRead","requestUpdate","simplify","limitItemLength","limitTextLength","disableUpdate","disableDelete","pushOnBlur","isExpandTop"],emits:["update:modelValue","modelChange","onEnterEmpty"],slots:["left","right"],expose:!0},wi=new Set(["itemSource","fixPosition","noPadding","minWidth","class","style"]);function bi(e,t){let o;return(...n)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...n),t)}}const Ci=500,As=$e({name:"moz-context-menu",defaults:{transition:"fade",minWidth:"150px",direction:"rb"},setup(e){let t=null,o=null;const n=K.createRef();let l=!1,d=!1,a=!1,f=!1,i=null,c=!1,r=!1,u=!1,p=!1,y=0,L=!1,D=null,P=null;const E=
|
|
1356
|
-
class=${V({"context-menu-item-enable-hover":!("hover"in
|
|
1357
|
-
@mouseenter=${()=>ke(!0,
|
|
1358
|
-
@mouseleave=${()=>ke(!1,
|
|
1355
|
+
</div>`}}}}),vi={name:"MozTagInput",core:Ts,booleanProps:["disableDelete","disableUpdate","dynamicSearch","isExpandTop","pushOnBlur","required","simplify"],props:["modelValue","required","label","addButtonLabel","itemsSource","displayKey","pattern","dynamicSearch","requestCreate","requestRead","requestUpdate","simplify","limitItemLength","limitTextLength","disableUpdate","disableDelete","pushOnBlur","isExpandTop"],emits:["update:modelValue","modelChange","onEnterEmpty"],slots:["left","right"],expose:!0},wi=new Set(["itemSource","fixPosition","noPadding","minWidth","class","style"]);function bi(e,t){let o;return(...n)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...n),t)}}const Ci=500,As=$e({name:"moz-context-menu",defaults:{transition:"fade",minWidth:"150px",direction:"rb"},setup(e){let t=null,o=null;const n=K.createRef();let l=!1,d=!1,a=!1,f=!1,i=null,c=!1,r=!1,u=!1,p=!1,y=0,L=!1,D=null,P=null;const E=x=>{D=e.props.fixPosition?x:null},g=new Map,h=new Map,C=new Map,k=new Map,Z=()=>{l&&d&&(i||e.props.itemSource)&&o&&!p&&(p=!0,e.emit("open",{target:o}))},W=x=>{const m=a!==x;a=x,e.requestUpdate(),m&&!x&&setTimeout(()=>{l=!1,f=!1,p=!1,e.emit("close",{target:o}),e.requestUpdate()},50)},Q=x=>{const m=l!==x;l=x,e.requestUpdate(),m&&(setTimeout(()=>{d=l,e.requestUpdate(),Z()},0),W(l),Z())},re=x=>{if(e.props.fixPosition&&x===P||e.props.disableCloseOnClickBackdrop)return;const m=["list-box-container"],T=x.composedPath();T.includes(o)||m.forEach(A=>{(!A||A&&!T.some(F=>{var ce;return(ce=F.classList)==null?void 0:ce.contains(A)}))&&ae()})},ae=()=>{(e.props.beforeClose??(()=>{}))&&(P=null,D=null,L=!1,++y,W(!1),window.removeEventListener("mousedown",re),window.removeEventListener("resize",ae))},j=(x,m)=>{x instanceof Function&&(i=x(m));const T=!!e.props.fixPosition;P=T&&D&&D.eventPhase!==0?D:null;const A=++y;L=T,Q(!0),setTimeout(()=>{T&&(!L||A!==y)||Q(!0)},60)},$=()=>{l?ae():j()},I=()=>{const x=e.props.fixPosition;if(!x)return;const m=x.selector&&document.querySelector(x.selector)||t;if(!m||!o||!n.value)return;const T=m.getBoundingClientRect(),A=n.value.getBoundingClientRect();c=T.left+m.clientWidth<A.left+o.clientWidth,r=T.left+m.clientWidth<A.left+o.clientWidth*2,u=T.top+m.clientHeight<A.top+o.clientHeight,x.useTeleport?(o.style.left=`${A.left}px`,o.style.top=`${A.top}px`):(o.style.left=`${n.value.offsetLeft}px`,o.style.top=`${n.value.offsetTop}px`),e.requestUpdate()},Y=()=>{if(!e.props.fixPosition||!L||f)return;const x=y;queueMicrotask(()=>{x!==y||!L||!e.props.fixPosition||!l||f||!t||!o||!n.value||(I(),t.style.pointerEvents="none",window.addEventListener("mousedown",re),window.addEventListener("resize",ae),f=!0)})},ne=x=>{f||(o&&t&&(e.props.fixPosition?I():(c=t.clientWidth<x.clientX+o.clientWidth,r=t.clientWidth<x.clientX+o.clientWidth*2,u=t.clientHeight<x.clientY+o.clientHeight,o.style.left=`${x.clientX}px`,o.style.top=`${x.clientY}px`)),t&&(t.style.pointerEvents="none"),window.addEventListener("mousedown",re),window.addEventListener("resize",ae),f=!0,e.requestUpdate())};e.onCleanup(()=>{window.removeEventListener("mousedown",E,!0),D=null,P=null,L=!1,++y,window.removeEventListener("mousedown",re),window.removeEventListener("resize",ae)});const B=x=>{let m=k.get(x);return m||(m=bi((T,A,F)=>{A.children&&(se(F,A),g.set(F,T),e.requestUpdate())},400),k.set(x,m)),m},se=(x,m)=>{if(!m.children||h.get(x))return;const T=C.get(x);if(!T)return;const A=T.getBoundingClientRect();h.set(x,T.clientHeight+A.top>document.body.offsetHeight)},N=(x,m)=>{x.function?(x.function(),ae()):x.children&&(se(m,x),g.set(m,!0),e.requestUpdate())},X=x=>typeof x.disabled=="function"?x.disabled():!!x.disabled,M=(x,m,T,A)=>{const F=g.get(A)??!1,ce=h.get(A)??!1,ke=B(A);return s.html`<div
|
|
1356
|
+
class=${V({"context-menu-item-enable-hover":!("hover"in x)||x.hover,"context-menu-item-wrapper":!0,"context-menu-item-wrapper-selected":F,"context-menu-item-wrapper-disabled":X(x)})}
|
|
1357
|
+
@mouseenter=${()=>ke(!0,x,A)}
|
|
1358
|
+
@mouseleave=${()=>ke(!1,x,A)}
|
|
1359
1359
|
>
|
|
1360
1360
|
<div
|
|
1361
|
-
class=${V({"context-menu-sub-items-wrapper-right":T&&!ce,"context-menu-sub-items-wrapper-bottom":ce&&!T,"context-menu-sub-items-wrapper-bottom-right":ce&&T,"context-menu-sub-items-wrapper-hide":!
|
|
1362
|
-
${K.ref(
|
|
1361
|
+
class=${V({"context-menu-sub-items-wrapper-right":T&&!ce,"context-menu-sub-items-wrapper-bottom":ce&&!T,"context-menu-sub-items-wrapper-bottom-right":ce&&T,"context-menu-sub-items-wrapper-hide":!x.children||!F,"context-menu-sub-items-wrapper":!ce&&!T})}
|
|
1362
|
+
${K.ref(Me=>{Me&&C.set(A,Me)})}
|
|
1363
1363
|
>
|
|
1364
|
-
${
|
|
1364
|
+
${x.children?_(x.children,m+1,T,A):s.nothing}
|
|
1365
1365
|
</div>
|
|
1366
|
-
${
|
|
1367
|
-
class=${`context-menu-item-${
|
|
1368
|
-
@mouseup=${()=>{var
|
|
1366
|
+
${x.template?s.html`<div
|
|
1367
|
+
class=${`context-menu-item-${x.template}`}
|
|
1368
|
+
@mouseup=${()=>{var Me;(!("hover"in x)||x.hover)&&((Me=x.function)==null||Me.call(x),ae())}}
|
|
1369
1369
|
>
|
|
1370
|
-
${U(
|
|
1370
|
+
${U(x)}
|
|
1371
1371
|
</div>`:s.html`<div
|
|
1372
1372
|
class="context-menu-item"
|
|
1373
1373
|
role="menuitem"
|
|
1374
1374
|
tabindex="-1"
|
|
1375
|
-
aria-disabled=${X(
|
|
1376
|
-
aria-haspopup=${
|
|
1377
|
-
@click=${()=>N(
|
|
1375
|
+
aria-disabled=${X(x)?"true":"false"}
|
|
1376
|
+
aria-haspopup=${x.children?"menu":"false"}
|
|
1377
|
+
@click=${()=>N(x,A)}
|
|
1378
1378
|
>
|
|
1379
|
-
<div class="context-menu-item-left">${
|
|
1380
|
-
${
|
|
1379
|
+
<div class="context-menu-item-left">${x.text}</div>
|
|
1380
|
+
${x.children?s.html`<div class="context-menu-item-right"></div>`:s.nothing}
|
|
1381
1381
|
</div>`}
|
|
1382
|
-
</div>`},U=
|
|
1382
|
+
</div>`},U=x=>{const m=x.template,T=m.includes("[col-padding]")?"col-padding":m.includes("[row-padding]")?"row-padding":m.includes("[padding]")?"padding":null,A=e.slots.has(m)?e.slot(m,{props:{...x,close:ae}}):s.nothing;return T?s.html`<div class="context-menu-item-template" data-layout=${T}>${A}</div>`:s.html`${A}`},_=(x,m,T,A)=>{const F=m===0;return s.html`<div
|
|
1383
1383
|
role=${F?"menu":"group"}
|
|
1384
1384
|
class=${V("context-menu-content-wrapper",F?e.props.class:void 0)}
|
|
1385
1385
|
data-noPadding=${String(!!e.props.noPadding)}
|
|
1386
1386
|
style=${ee.styleMap({minWidth:e.props.minWidth,...F?be(e.props.style):{}})}
|
|
1387
1387
|
${he(F?ye(e.props,wi):{})}
|
|
1388
1388
|
>
|
|
1389
|
-
${
|
|
1390
|
-
${ce.separator?s.html`<div class="context-menu-separator"></div>`:
|
|
1389
|
+
${x.map((ce,ke)=>{const Me=`${A}/${m}-${ke}`;return s.html`<div class="context-menu-item-outer-wrapper" style=${ee.styleMap({display:ce!=null&&ce.hidden?"none":""})}>
|
|
1390
|
+
${ce.separator?s.html`<div class="context-menu-separator"></div>`:M(ce,m,T,Me)}
|
|
1391
1391
|
</div>`})}
|
|
1392
|
-
</div>`},G=()=>{const
|
|
1392
|
+
</div>`},G=()=>{const x=e.props.fixPosition;return x?(typeof x.left=="string"||typeof x.left=="number"||typeof x.top=="string"||typeof x.top=="number")&&x.useTeleport!==!0:!1},J=()=>{const x=e.props,m=i||x.itemSource;if(!l||!m)return s.nothing;const T=x.transition,A=x.direction;return s.html`<div
|
|
1393
1393
|
class=${V({[`before-${T}`]:!0,[`after-${T}`]:d&&a,"context-menu-content-hide":!l,"context-menu-content-init":!0,"context-menu-content-init-right":c&&!u||A==="lb"||A.startsWith("l")&&!u||A.endsWith("b")&&c,"context-menu-content-init-bottom":u&&!c||A==="rt"||A.startsWith("r")&&u||A.endsWith("t")&&!c,"context-menu-content-init-bottom-right":u&&c||A==="lt"||A.startsWith("l")&&u||A.endsWith("t")&&c})}
|
|
1394
|
-
style=${ee.styleMap({transitionDuration:`${Ci}ms`,...
|
|
1394
|
+
style=${ee.styleMap({transitionDuration:`${Ci}ms`,...x.toTopCenter?{transform:"translate(-50%, -100%)"}:{},...x.toBottomCenter?{transform:"translate(-50%, 0)"}:{}})}
|
|
1395
1395
|
@contextmenu=${F=>F.preventDefault()}
|
|
1396
1396
|
${K.ref(F=>{o=F||null,F&&(Y(),Z())})}
|
|
1397
1397
|
>
|
|
1398
1398
|
${_(m,0,r,"root")}
|
|
1399
|
-
</div>`};return{onMounted:()=>{window.addEventListener("mousedown",E,{capture:!0,passive:!0})},api:{state:()=>l,open:j,close:ae,toggle:$},render(){const
|
|
1399
|
+
</div>`};return{onMounted:()=>{window.addEventListener("mousedown",E,{capture:!0,passive:!0})},api:{state:()=>l,open:j,close:ae,toggle:$},render(){const x=e.props;return x.fixPosition?s.html`<div
|
|
1400
1400
|
class="context-menu-fixed-position-space"
|
|
1401
|
-
style=${ee.styleMap({left:typeof
|
|
1401
|
+
style=${ee.styleMap({left:typeof x.fixPosition.left=="string"?x.fixPosition.left:`${x.fixPosition.left}px`,top:typeof x.fixPosition.top=="string"?x.fixPosition.top:`${x.fixPosition.top}px`})}
|
|
1402
1402
|
${K.ref(n)}
|
|
1403
1403
|
></div>
|
|
1404
|
-
${G()?J():s.nothing}`:s.nothing},renderPortal(){const
|
|
1404
|
+
${G()?J():s.nothing}`:s.nothing},renderPortal(){const x=i||e.props.itemSource;return!l||!x?s.nothing:s.html`
|
|
1405
1405
|
<div
|
|
1406
1406
|
class="context-menu-wrapper"
|
|
1407
1407
|
@mouseenter=${ne}
|
|
@@ -1439,9 +1439,9 @@
|
|
|
1439
1439
|
<path d="M3.8501 2.35718H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1440
1440
|
<path d="M3.8501 6H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1441
1441
|
<path d="M3.8501 9.64282H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1442
|
-
</svg>`}const ro={keyProp:"code",displayProp:"name",categoryLv1ID:"categoryLv1ID",categoryLv1Label:"categoryLv1Label",categoryLv2ID:"categoryLv2ID",categoryLv2Label:"categoryLv2Label",description:"description"},Pt=new WeakMap;function jt(e){return Pt.get(e)===!0}function Xt(e,t){return Pt.has(e)&&Pt.set(t,Pt.get(e)),t}function xi(e,t,o="disabled"){const n=a=>t.displayProp&&a[t.displayProp]?a[t.displayProp]:a[t.keyProp],l=a=>t.categoryLv1Label&&a[t.categoryLv1Label]?a[t.categoryLv1Label]:t.categoryLv1ID?a[t.categoryLv1ID]:"",d=a=>t.categoryLv2Label&&a[t.categoryLv2Label]?a[t.categoryLv2Label]:t.categoryLv2ID?a[t.categoryLv2ID]:"";return e.map(a=>{const f={code:a[t.keyProp],name:n(a),categoryLv1ID:t.categoryLv1ID&&a[t.categoryLv1ID]||"",categoryLv1Label:l(a),categoryLv2ID:t.categoryLv2ID&&a[t.categoryLv2ID]||"",categoryLv2Label:d(a),description:t.description&&a[t.description]||""};return Pt.set(f,a[o]===!0),f})}function It(e,t){let o=e.get(t);return o||(o=[],e.set(t,o)),o}function Mi(e){const t=new Map([["depth0",[]],["depth1",[]],["depth2",[]]]),o=new Map,n=new Map;e.forEach(a=>{const f=a.categoryLv1ID;if(!o.get(f)){const i={code:f,name:a.categoryLv1Label??f};o.set(f,i),It(t,"depth0").push(i)}if(!a.categoryLv2ID||a.categoryLv2ID.trim()==="")It(t,"depth1").push(Xt(a,{...a,parent:a.categoryLv1ID}));else{const i=`${a.categoryLv1ID}-${a.categoryLv2ID}`;if(!n.get(i)){const c={code:a.categoryLv2ID,name:a.categoryLv2Label??a.categoryLv2ID,parent:a.categoryLv1ID,isSubCategory:!0};n.set(i,c),It(t,"depth1").push(c)}It(t,"depth2").push(Xt(a,{...a,parent:a.categoryLv2ID}))}});function l(a,f,i,c){const r=`depth${f}`,u=`depth${f+1}`,p=i.get(u),y=Xt(a,{...a,depth:f});if(f!==0&&(y.isHidden=!1),p&&p.length>0){const L=c[r],D=c[u],P=p.filter(g=>g[D]===(a.isSubCategory?a.code:a[L]));y.isExpanded=!0;const E=[y];return P.forEach(g=>{E.push(...l(g,f+1,i,c))}),E}return[y]}const d={depth0:"code",depth1:"parent",depth2:"parent"};return(t.get("depth0")??[]).flatMap(a=>l(a,0,t,d))}function zi(e){return new Set(e.map(t=>t.code))}function je(e,t){return t===e}function Bt(e,t){return e.filter(o=>o.categoryLv1ID===t.code||o.categoryLv2ID===t.code)}function Vt(e){return new Set(e.map(t=>t.code))}function Rt(e,t){return{childDepthList:Bt(e,t)}}function Vo(e,t){for(const o of e)if(!t.has(o))return!1;return!0}function Ut(e,t,o){t===0&&e.categoryLv1Set.delete(o),t===1&&e.categoryLv2Set.delete(o)}function Lt(e,t,o){t===0&&e.categoryLv1Set.add(o),t===1&&e.categoryLv2Set.add(o)}function Ti(e,t,o){t.length&&e.categoryLv1Set.add(t),o.length&&e.categoryLv2Set.add(o)}function $t(e){e.categoryLv1Set.clear(),e.categoryLv2Set.clear()}function Is(e,t,o,n){if(Lt(e,o.depth,o.code),o.parent){const l=t.find(d=>d.code===o.parent);l&&Is(e,t,l)}}function Vs(e,t,o,n){if(Lt(e,o.depth,o.code),je(n,o.depth))return;t.filter(d=>d.parent===o.code).forEach(d=>{je(n,d.depth)||Vs(e,t,d,n)})}function Qt(e,t,o,n){Is(e,t,o),Vs(e,t,o,n)}function Rs(e,t,o,n){if(Ut(e,o.depth,o.code),o.parent){const l=t.find(d=>d.code===o.parent);l&&Rs(e,t,l)}}function Os(e,t,o,n){if(Ut(e,o.depth,o.code),je(n,o.depth))return;t.filter(d=>d.parent===o.code).forEach(d=>{je(n,d.depth)||Os(e,t,d,n)})}function Jt(e,t,o,n){Rs(e,t,o),Os(e,t,o,n)}const Ai=new Set(["modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","useFilter","useSelectAll","class","style"]),qs=$e({name:"moz-tree-select",defaults:{label:null,width:200,required:!1,readonly:!1,disabled:!1,disabledProp:"disabled",rules:[],useSelectAll:!0,useFilter:!0,headerFormat:"ITEMS ({count})",listBoxWidth:0,useSpecificSelect:!0,treeLevels:1,useMultiSelect:!1,treeProps:ro,modelValue:[]},setup(e){const t=K.createRef(),o=K.createRef(),n=K.createRef(),l=K.createRef(),d=K.createRef();let a=null;const f=(e.props.treeLevels??1)-1,i=f,c=()=>!!e.props.useMultiSelect,r=()=>e.props.disabledProp||"disabled",u=()=>e.props.treeProps??ro;let p=e.props.modelValue??(c()?[]:"");const y=()=>e.controlled("modelValue")?e.props.modelValue??[]:p,L=()=>{const b=y();return Array.isArray(b)?b:b?[b]:[]},D=b=>{e.controlled("modelValue")||(p=b),e.emit("update:modelValue",b),e.requestUpdate()};let P=!1,E=!1,g=0;e.onCleanup(()=>{E=!0,g+=1});let h="",C=!1,k=!1,Z=!1,W={},Q=[];const re={change:"",blur:"",save:""},ae=new Set,j=new Set,$={categoryLv1Set:ae,categoryLv2Set:j},I=(()=>{try{const b=getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height");return b?+b.trim().replace("px",""):28}catch{return 28}})(),Y=8,ne=Number.isFinite(I)&&I>0?{"--moz-tree-select-row-height":`${I}px`}:{};let B=I;const se=()=>e.slots.has("list-item");let N=[],X=[],x=e.props.itemsSource,U=r();const _=()=>{N=xi(e.props.itemsSource??[],u(),r()),X=Mi(N)};_();const G=()=>{const b=new Map;return N.forEach(S=>b.set(S.code,S)),b},J=b=>b.name??"",M=b=>new Set(L()).has(b.code),m=b=>Q.some(S=>wt(S.item,b)),T=()=>new Set(L()),A=()=>{let b=[];if(!h)b=X;else{const S=[],O=new Set,le=ue=>`depth${ue.depth}_${ue.code}`;for(const ue of X)if(ue.depth!==i){for(;S.length&&S[S.length-1].depth>=ue.depth;)S.pop();S.push(ue)}else if(J(ue).toLowerCase().indexOf(h.toLowerCase())>-1){for(const we of S){const ze=le(we);O.has(ze)||(b.push(we),O.add(ze))}const fe=le(ue);O.has(fe)||(b.push(ue),O.add(fe))}}if(Z){const S=new Set,O=G(),le=T();b.filter(fe=>{if(Ne(fe,le))return!0;if(c()&&!je(f,fe.depth)){const we=Bt(X,fe);if(we.length>0&&we.some(ze=>le.has(ze.code)))return!0}return!1}).forEach(fe=>{let we=fe;for(;we&&(S.add(we.code),!!we.parent);)we=O.get(we.parent)}),b=b.filter(fe=>S.has(fe.code))}return b},F=()=>A().filter(b=>!(b.categoryLv1ID||b.categoryLv2ID)),ce=()=>{const b=F();return A().filter(S=>!b.includes(S))},ke=()=>new Set(ce().map(b=>b.code)),xe=()=>zi(ce()),Ne=(b,S)=>c()?je(i,b.depth)?S.has(b.code):ae.has(b.code)||j.has(b.code):y()===b.code,qe=b=>{if(je(f,b.depth))return!0;const S=Bt(A(),b);return S.length===0?!0:Vo(Vt(S),T())},st=()=>{const b=L().length,S=F().length;if(b<S||b===0||S===0)return!1;for(const O of xe())if(!T().has(O))return!1;return!0},Qe=()=>{const b=xe(),S=T();return!b.size||!S.size||S.size<b.size?!1:Array.from(b).every(O=>S.has(O))},Je=()=>c()?!!e.props.useSelectAll:!1,Be=()=>{const b=y(),S=G();if(typeof b=="string")return S.has(b)?S.get(b).name:b;const O=Array.isArray(b)?b:[],le=O.filter(ue=>S.has(ue)).map(ue=>S.get(ue).name);return O.length?c()&&le.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${le.length.toLocaleString()}`):le.join(", ")||"":""},He=()=>re.save||re.blur||re.change,Le=()=>{const b=[];return e.props.required&&b.push({message:e.locale.TreeSelect.required.replace("{label}",e.props.label||""),type:"save",validator:S=>!!S.length}),[...b,...e.props.rules??[]]},_e=async(b,S)=>{const O=Le();if(O.length<=0)return;if(e.props.disabled)return!0;re[S]="",e.requestUpdate();const le=O.filter(ue=>ue.type===S);for(const ue of le)if(!await ue.validator(b))return re[S]=ue.message,e.requestUpdate(),!1;return!0},Ue=async(b="save")=>He()!==""?!1:await _e(L(),b)??!0,rt={validate:Ue,initValidator:()=>{re.change="",re.blur="",re.save="",e.requestUpdate()}};e.onCleanup(()=>{oe==null||oe.release(),oe=null}),e.validator&&(e.validator.addValidator(rt),e.onCleanup(()=>{var b;return(b=e.validator)==null?void 0:b.removeValidator(rt)}));const z=(b,S)=>b.filter(O=>M(O)!==S).map(O=>O.code),de=b=>{const S=Array.from(new Set(b));wt(L(),S)||(D(S),e.emit("change",S,S.filter(Boolean)),_e(S,"change"),Ie(S))},Ie=b=>{b.length===N.length?F().forEach(S=>Lt($,S.depth,S.code)):b.forEach(S=>{const O=ce().find(le=>le.code===S);O&&Ti($,O.categoryLv1ID??"",O.categoryLv2ID??"")})},w=(b,S,O)=>{if(O.shiftKey&&Q.length>0){const le=Q[0],ue=Math.min(le.index,S),fe=Math.max(le.index,S);Q=A().slice(ue,fe+1).map((we,ze)=>({item:we,index:ue+ze}))}else O.ctrlKey?Q.push({item:b,index:S}):Q=[{item:b,index:S}]},H=(b,S)=>{if(!je(f,b.depth)){const{childDepthList:O}=Rt(A(),b);if(S){const le=Vt(O);D(L().filter(ue=>!le.has(ue))),Jt($,A(),b,i)}else{const le=O.map(ue=>ue.code);D([...L(),...le])}}},te=(b,S)=>{const le=Q.map(we=>we.item).filter(we=>we.depth===i),ue=z(le,b);let fe=[];if(S.depth!==f){const{childDepthList:we}=Rt(A(),S),ze=Vt(we);fe=L().filter(tt=>!ze.has(tt))}else fe=L();b?S.depth===f?fe=[...fe,...ue]:Qt($,A(),S,i):($t($),fe=fe.filter(we=>!ue.some(ze=>we===ze))),de(fe)},me=(b,S,O,le)=>{const ue=Q.some(fe=>fe.item.code===b.code);if((Q.length<=1||!ue)&&w(b,S,{shiftKey:!1,ctrlKey:!1}),je(f,b.depth))te(!le,b);else{const fe=L(),we=A(),{childDepthList:ze}=Rt(we,b),tt=ze.map(Ke=>Ke.code),Ye=new Set(tt);le?($t($),Jt($,we,b,i),de(fe.filter(Ke=>!Ye.has(Ke)))):(Qt($,we,b,i),de([...fe,...tt]))}e.requestUpdate()},ve=new WeakSet,Re=(b,S,O,le)=>{ve.delete(O)||jt(b)||(!O.ctrlKey&&!O.shiftKey&&Q.length<=1&&me(b,S,O,le),w(b,S,O),e.requestUpdate())},Ce=(b,S,O)=>{if(jt(b))return;let le=[],ue=!1;const fe=b.code;if(je(f,b.depth))ve.add(O),ue=L().length===1&&L()[0]===fe,ue||(le=[fe]),$t($);else{const{childDepthList:we}=Rt(A(),b),ze=Vt(we),tt=T();ue=Vo(ze,tt)&&ze.size===tt.size,ve.add(O),ue?Jt($,A(),b,i):(le=Array.from(ze),$t($),Qt($,A(),b,i)),de(le),w(b,S,O),e.requestUpdate();return}de(le),H(b,ue),w(b,S,O),e.requestUpdate()},Se=b=>{D(b),ie(!1)},Ze=(b,S)=>{A().filter(le=>le.parent===b).forEach(le=>{if(le.isHidden=S,le.depth===i)return;const fe=!S&&!le.isExpanded?!0:S;Ze(le.code,fe)})},Te=(b,S)=>{S.stopPropagation(),b.isExpanded=!b.isExpanded,Ze(b.code,!b.isExpanded),queueMicrotask(()=>Me.measure()),e.requestUpdate()},De=b=>{X.forEach(S=>{S.isExpanded=b,S.depth>0?S.isHidden=!b:S.isHidden=!1}),queueMicrotask(()=>Me.measure()),e.requestUpdate()},et=b=>{b.stopPropagation(),ke().size===T().size&&[...ke()].every(O=>T().has(O))?(F().forEach(O=>Ut($,O.depth,O.code)),de([])):($t($),F().forEach(O=>Lt($,O.depth,O.code)),de([...ke()]))},at=b=>{if(b.stopPropagation(),Qe()){const S=xe();de(L().filter(O=>!S.has(O))),F().forEach(O=>Ut($,O.depth,O.code))}else{const S=new Set([...L(),...ke()]);de(Array.from(S)),F().forEach(O=>Lt($,O.depth,O.code))}},Ct=b=>{C=b.target.scrollTop>0,e.requestUpdate()},ht=()=>{const b=o.value;if(!b)return;const S=b.getBoundingClientRect();let O=`${S.width}px`;e.props.listBoxWidth&&(O=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),W={width:String(O),left:`${S.left}px`,top:`${S.top+(k?0:S.height)}px`},e.requestUpdate()},mt=(b,S,O=10)=>{const le=window.innerHeight||document.documentElement.clientHeight,ue=window.innerWidth||document.documentElement.clientWidth,fe=b.getBoundingClientRect(),we=S.getBoundingClientRect(),ze=fe.bottom+we.height+O>le;if(!ze)return!1;const tt=fe.top-we.height-O<0,Ye=fe.right+we.width+O>ue,Ke=fe.left-we.width-O<0;return ze&&!tt||Ye&&!Ke},v=b=>{b.target!==a&&ie(!1)},R=b=>{var S,O;!((S=t.value)!=null&&S.contains(b.target))&&!((O=n.value)!=null&&O.contains(b.target))&&(ie(!1),document.removeEventListener("click",R,{capture:!0}))},q=b=>{var O;`${b.ctrlKey?"ctrl+":""}${b.altKey?"alt+":""}${b.key.toLowerCase()}`==="escape"&&(ie(!1),(O=l.value)==null||O.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",v,{capture:!0}),document.removeEventListener("click",R,{capture:!0}),window.removeEventListener("keydown",q)});let oe=null;const ie=(b,S=!0)=>{if(E||P===b)return;const O=++g;P=b,e.requestUpdate(),b?(oe=Gt(),document.body.addEventListener("scroll",v,{capture:!0}),document.addEventListener("click",R,{capture:!0}),re.save="",window.addEventListener("keydown",q),ht(),queueMicrotask(()=>{var le;E||!P||O!==g||(o.value&&a&&(k=mt(o.value,a)),ht(),S&&(d.value?d.value.focus():(le=l.value)==null||le.focus()))})):(oe==null||oe.release(),oe=null,document.body.removeEventListener("scroll",v,{capture:!0}),document.removeEventListener("click",R,{capture:!0}),_e(L(),"blur"),window.removeEventListener("keydown",q),h="",e.emit("close"))},pe=()=>{e.props.disabled||ie(!P)};let ge;const Ge=b=>{const S=b.target.value;ge&&clearTimeout(ge),ge=setTimeout(()=>{h=S,e.requestUpdate(),queueMicrotask(()=>{Me.setOptions({...Me.options,count:A().length}),Me.measure()})},300)},yt=b=>{Z=b,e.requestUpdate(),queueMicrotask(()=>{Me.setOptions({...Me.options,count:A().length}),Me.measure()})},Me=new nt.Virtualizer({count:0,getScrollElement:()=>a,estimateSize:b=>{const S=A()[b];return S!=null&&S.isHidden?0:se()&&S&&je(f,S.depth)?B:I},measureElement:b=>{const S=b.getBoundingClientRect().height;return S>0?S:Me.options.estimateSize(Number(b.dataset.index))},overscan:3,observeElementRect:nt.observeElementRect,observeElementOffset:nt.observeElementOffset,scrollToFn:nt.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(Me._didMount());const ft=b=>{a=b??null,b&&(Me._willUpdate(),e.requestUpdate())},zt=(b,S)=>{if(!b||S!==f)return;const O=b.getBoundingClientRect().height;O>0&&(B=O)},Fe=b=>b.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),We=(b,S)=>{if(!h||!je(f,S))return[{part:b,highlight:!1}];const O=new RegExp(`(${Fe(h)})`,"gi");return b.split(O).map(le=>({part:le,highlight:h.toLowerCase()===le.toLowerCase()}))};let Tt=y();const Yt=b=>{const{index:S,item:O,start:le,isSelected:ue,isIndeterminate:fe,isDisabled:we,isFocused:ze}=b;if(O.isHidden)return s.nothing;const tt=e.props,Ye=O.depth,Ke=je(f,Ye),dt=c(),it=Ve=>{Ye!==f?Te(O,Ve):Se(O.code)},ct=Ve=>{dt?Re(O,S,Ve,ue&&qe(O)):it(Ve)},vt=()=>{me(O,S,{},ue&&qe(O))},At=Ke?"하나만":"그룹만";return s.html`<div
|
|
1442
|
+
</svg>`}const ro={keyProp:"code",displayProp:"name",categoryLv1ID:"categoryLv1ID",categoryLv1Label:"categoryLv1Label",categoryLv2ID:"categoryLv2ID",categoryLv2Label:"categoryLv2Label",description:"description"},Pt=new WeakMap;function jt(e){return Pt.get(e)===!0}function Xt(e,t){return Pt.has(e)&&Pt.set(t,Pt.get(e)),t}function Mi(e,t,o="disabled"){const n=a=>t.displayProp&&a[t.displayProp]?a[t.displayProp]:a[t.keyProp],l=a=>t.categoryLv1Label&&a[t.categoryLv1Label]?a[t.categoryLv1Label]:t.categoryLv1ID?a[t.categoryLv1ID]:"",d=a=>t.categoryLv2Label&&a[t.categoryLv2Label]?a[t.categoryLv2Label]:t.categoryLv2ID?a[t.categoryLv2ID]:"";return e.map(a=>{const f={code:a[t.keyProp],name:n(a),categoryLv1ID:t.categoryLv1ID&&a[t.categoryLv1ID]||"",categoryLv1Label:l(a),categoryLv2ID:t.categoryLv2ID&&a[t.categoryLv2ID]||"",categoryLv2Label:d(a),description:t.description&&a[t.description]||""};return Pt.set(f,a[o]===!0),f})}function It(e,t){let o=e.get(t);return o||(o=[],e.set(t,o)),o}function xi(e){const t=new Map([["depth0",[]],["depth1",[]],["depth2",[]]]),o=new Map,n=new Map;e.forEach(a=>{const f=a.categoryLv1ID;if(!o.get(f)){const i={code:f,name:a.categoryLv1Label??f};o.set(f,i),It(t,"depth0").push(i)}if(!a.categoryLv2ID||a.categoryLv2ID.trim()==="")It(t,"depth1").push(Xt(a,{...a,parent:a.categoryLv1ID}));else{const i=`${a.categoryLv1ID}-${a.categoryLv2ID}`;if(!n.get(i)){const c={code:a.categoryLv2ID,name:a.categoryLv2Label??a.categoryLv2ID,parent:a.categoryLv1ID,isSubCategory:!0};n.set(i,c),It(t,"depth1").push(c)}It(t,"depth2").push(Xt(a,{...a,parent:a.categoryLv2ID}))}});function l(a,f,i,c){const r=`depth${f}`,u=`depth${f+1}`,p=i.get(u),y=Xt(a,{...a,depth:f});if(f!==0&&(y.isHidden=!1),p&&p.length>0){const L=c[r],D=c[u],P=p.filter(g=>g[D]===(a.isSubCategory?a.code:a[L]));y.isExpanded=!0;const E=[y];return P.forEach(g=>{E.push(...l(g,f+1,i,c))}),E}return[y]}const d={depth0:"code",depth1:"parent",depth2:"parent"};return(t.get("depth0")??[]).flatMap(a=>l(a,0,t,d))}function zi(e){return new Set(e.map(t=>t.code))}function je(e,t){return t===e}function Bt(e,t){return e.filter(o=>o.categoryLv1ID===t.code||o.categoryLv2ID===t.code)}function Vt(e){return new Set(e.map(t=>t.code))}function Rt(e,t){return{childDepthList:Bt(e,t)}}function Vo(e,t){for(const o of e)if(!t.has(o))return!1;return!0}function Ut(e,t,o){t===0&&e.categoryLv1Set.delete(o),t===1&&e.categoryLv2Set.delete(o)}function Lt(e,t,o){t===0&&e.categoryLv1Set.add(o),t===1&&e.categoryLv2Set.add(o)}function Ti(e,t,o){t.length&&e.categoryLv1Set.add(t),o.length&&e.categoryLv2Set.add(o)}function $t(e){e.categoryLv1Set.clear(),e.categoryLv2Set.clear()}function Is(e,t,o,n){if(Lt(e,o.depth,o.code),o.parent){const l=t.find(d=>d.code===o.parent);l&&Is(e,t,l)}}function Vs(e,t,o,n){if(Lt(e,o.depth,o.code),je(n,o.depth))return;t.filter(d=>d.parent===o.code).forEach(d=>{je(n,d.depth)||Vs(e,t,d,n)})}function Qt(e,t,o,n){Is(e,t,o),Vs(e,t,o,n)}function Rs(e,t,o,n){if(Ut(e,o.depth,o.code),o.parent){const l=t.find(d=>d.code===o.parent);l&&Rs(e,t,l)}}function Os(e,t,o,n){if(Ut(e,o.depth,o.code),je(n,o.depth))return;t.filter(d=>d.parent===o.code).forEach(d=>{je(n,d.depth)||Os(e,t,d,n)})}function Jt(e,t,o,n){Rs(e,t,o),Os(e,t,o,n)}const Ai=new Set(["modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","useFilter","useSelectAll","class","style"]),qs=$e({name:"moz-tree-select",defaults:{label:null,width:200,required:!1,readonly:!1,disabled:!1,disabledProp:"disabled",rules:[],useSelectAll:!0,useFilter:!0,headerFormat:"ITEMS ({count})",listBoxWidth:0,useSpecificSelect:!0,treeLevels:1,useMultiSelect:!1,treeProps:ro,modelValue:[]},setup(e){const t=K.createRef(),o=K.createRef(),n=K.createRef(),l=K.createRef(),d=K.createRef();let a=null;const f=(e.props.treeLevels??1)-1,i=f,c=()=>!!e.props.useMultiSelect,r=()=>e.props.disabledProp||"disabled",u=()=>e.props.treeProps??ro;let p=e.props.modelValue??(c()?[]:"");const y=()=>e.controlled("modelValue")?e.props.modelValue??[]:p,L=()=>{const b=y();return Array.isArray(b)?b:b?[b]:[]},D=b=>{e.controlled("modelValue")||(p=b),e.emit("update:modelValue",b),e.requestUpdate()};let P=!1,E=!1,g=0;e.onCleanup(()=>{E=!0,g+=1});let h="",C=!1,k=!1,Z=!1,W={},Q=[];const re={change:"",blur:"",save:""},ae=new Set,j=new Set,$={categoryLv1Set:ae,categoryLv2Set:j},I=(()=>{try{const b=getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height");return b?+b.trim().replace("px",""):28}catch{return 28}})(),Y=8,ne=Number.isFinite(I)&&I>0?{"--moz-tree-select-row-height":`${I}px`}:{};let B=I;const se=()=>e.slots.has("list-item");let N=[],X=[],M=e.props.itemsSource,U=r();const _=()=>{N=Mi(e.props.itemsSource??[],u(),r()),X=xi(N)};_();const G=()=>{const b=new Map;return N.forEach(S=>b.set(S.code,S)),b},J=b=>b.name??"",x=b=>new Set(L()).has(b.code),m=b=>Q.some(S=>wt(S.item,b)),T=()=>new Set(L()),A=()=>{let b=[];if(!h)b=X;else{const S=[],O=new Set,le=ue=>`depth${ue.depth}_${ue.code}`;for(const ue of X)if(ue.depth!==i){for(;S.length&&S[S.length-1].depth>=ue.depth;)S.pop();S.push(ue)}else if(J(ue).toLowerCase().indexOf(h.toLowerCase())>-1){for(const we of S){const ze=le(we);O.has(ze)||(b.push(we),O.add(ze))}const fe=le(ue);O.has(fe)||(b.push(ue),O.add(fe))}}if(Z){const S=new Set,O=G(),le=T();b.filter(fe=>{if(Ne(fe,le))return!0;if(c()&&!je(f,fe.depth)){const we=Bt(X,fe);if(we.length>0&&we.some(ze=>le.has(ze.code)))return!0}return!1}).forEach(fe=>{let we=fe;for(;we&&(S.add(we.code),!!we.parent);)we=O.get(we.parent)}),b=b.filter(fe=>S.has(fe.code))}return b},F=()=>A().filter(b=>!(b.categoryLv1ID||b.categoryLv2ID)),ce=()=>{const b=F();return A().filter(S=>!b.includes(S))},ke=()=>new Set(ce().map(b=>b.code)),Me=()=>zi(ce()),Ne=(b,S)=>c()?je(i,b.depth)?S.has(b.code):ae.has(b.code)||j.has(b.code):y()===b.code,qe=b=>{if(je(f,b.depth))return!0;const S=Bt(A(),b);return S.length===0?!0:Vo(Vt(S),T())},st=()=>{const b=L().length,S=F().length;if(b<S||b===0||S===0)return!1;for(const O of Me())if(!T().has(O))return!1;return!0},Qe=()=>{const b=Me(),S=T();return!b.size||!S.size||S.size<b.size?!1:Array.from(b).every(O=>S.has(O))},Je=()=>c()?!!e.props.useSelectAll:!1,Be=()=>{const b=y(),S=G();if(typeof b=="string")return S.has(b)?S.get(b).name:b;const O=Array.isArray(b)?b:[],le=O.filter(ue=>S.has(ue)).map(ue=>S.get(ue).name);return O.length?c()&&le.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${le.length.toLocaleString()}`):le.join(", ")||"":""},He=()=>re.save||re.blur||re.change,Le=()=>{const b=[];return e.props.required&&b.push({message:e.locale.TreeSelect.required.replace("{label}",e.props.label||""),type:"save",validator:S=>!!S.length}),[...b,...e.props.rules??[]]},_e=async(b,S)=>{const O=Le();if(O.length<=0)return;if(e.props.disabled)return!0;re[S]="",e.requestUpdate();const le=O.filter(ue=>ue.type===S);for(const ue of le)if(!await ue.validator(b))return re[S]=ue.message,e.requestUpdate(),!1;return!0},Ue=async(b="save")=>He()!==""?!1:await _e(L(),b)??!0,rt={validate:Ue,initValidator:()=>{re.change="",re.blur="",re.save="",e.requestUpdate()}};e.onCleanup(()=>{oe==null||oe.release(),oe=null}),e.validator&&(e.validator.addValidator(rt),e.onCleanup(()=>{var b;return(b=e.validator)==null?void 0:b.removeValidator(rt)}));const z=(b,S)=>b.filter(O=>x(O)!==S).map(O=>O.code),de=b=>{const S=Array.from(new Set(b));wt(L(),S)||(D(S),e.emit("change",S,S.filter(Boolean)),_e(S,"change"),Ie(S))},Ie=b=>{b.length===N.length?F().forEach(S=>Lt($,S.depth,S.code)):b.forEach(S=>{const O=ce().find(le=>le.code===S);O&&Ti($,O.categoryLv1ID??"",O.categoryLv2ID??"")})},w=(b,S,O)=>{if(O.shiftKey&&Q.length>0){const le=Q[0],ue=Math.min(le.index,S),fe=Math.max(le.index,S);Q=A().slice(ue,fe+1).map((we,ze)=>({item:we,index:ue+ze}))}else O.ctrlKey?Q.push({item:b,index:S}):Q=[{item:b,index:S}]},H=(b,S)=>{if(!je(f,b.depth)){const{childDepthList:O}=Rt(A(),b);if(S){const le=Vt(O);D(L().filter(ue=>!le.has(ue))),Jt($,A(),b,i)}else{const le=O.map(ue=>ue.code);D([...L(),...le])}}},te=(b,S)=>{const le=Q.map(we=>we.item).filter(we=>we.depth===i),ue=z(le,b);let fe=[];if(S.depth!==f){const{childDepthList:we}=Rt(A(),S),ze=Vt(we);fe=L().filter(tt=>!ze.has(tt))}else fe=L();b?S.depth===f?fe=[...fe,...ue]:Qt($,A(),S,i):($t($),fe=fe.filter(we=>!ue.some(ze=>we===ze))),de(fe)},me=(b,S,O,le)=>{const ue=Q.some(fe=>fe.item.code===b.code);if((Q.length<=1||!ue)&&w(b,S,{shiftKey:!1,ctrlKey:!1}),je(f,b.depth))te(!le,b);else{const fe=L(),we=A(),{childDepthList:ze}=Rt(we,b),tt=ze.map(Ke=>Ke.code),Ye=new Set(tt);le?($t($),Jt($,we,b,i),de(fe.filter(Ke=>!Ye.has(Ke)))):(Qt($,we,b,i),de([...fe,...tt]))}e.requestUpdate()},ve=new WeakSet,Oe=(b,S,O,le)=>{ve.delete(O)||jt(b)||(!O.ctrlKey&&!O.shiftKey&&Q.length<=1&&me(b,S,O,le),w(b,S,O),e.requestUpdate())},Ce=(b,S,O)=>{if(jt(b))return;let le=[],ue=!1;const fe=b.code;if(je(f,b.depth))ve.add(O),ue=L().length===1&&L()[0]===fe,ue||(le=[fe]),$t($);else{const{childDepthList:we}=Rt(A(),b),ze=Vt(we),tt=T();ue=Vo(ze,tt)&&ze.size===tt.size,ve.add(O),ue?Jt($,A(),b,i):(le=Array.from(ze),$t($),Qt($,A(),b,i)),de(le),w(b,S,O),e.requestUpdate();return}de(le),H(b,ue),w(b,S,O),e.requestUpdate()},Se=b=>{D(b),ie(!1)},Ze=(b,S)=>{A().filter(le=>le.parent===b).forEach(le=>{if(le.isHidden=S,le.depth===i)return;const fe=!S&&!le.isExpanded?!0:S;Ze(le.code,fe)})},Te=(b,S)=>{S.stopPropagation(),b.isExpanded=!b.isExpanded,Ze(b.code,!b.isExpanded),queueMicrotask(()=>xe.measure()),e.requestUpdate()},De=b=>{X.forEach(S=>{S.isExpanded=b,S.depth>0?S.isHidden=!b:S.isHidden=!1}),queueMicrotask(()=>xe.measure()),e.requestUpdate()},et=b=>{b.stopPropagation(),ke().size===T().size&&[...ke()].every(O=>T().has(O))?(F().forEach(O=>Ut($,O.depth,O.code)),de([])):($t($),F().forEach(O=>Lt($,O.depth,O.code)),de([...ke()]))},at=b=>{if(b.stopPropagation(),Qe()){const S=Me();de(L().filter(O=>!S.has(O))),F().forEach(O=>Ut($,O.depth,O.code))}else{const S=new Set([...L(),...ke()]);de(Array.from(S)),F().forEach(O=>Lt($,O.depth,O.code))}},Ct=b=>{C=b.target.scrollTop>0,e.requestUpdate()},ht=()=>{const b=o.value;if(!b)return;const S=b.getBoundingClientRect();let O=`${S.width}px`;e.props.listBoxWidth&&(O=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),W={width:String(O),left:`${S.left}px`,top:`${S.top+(k?0:S.height)}px`},e.requestUpdate()},mt=(b,S,O=10)=>{const le=window.innerHeight||document.documentElement.clientHeight,ue=window.innerWidth||document.documentElement.clientWidth,fe=b.getBoundingClientRect(),we=S.getBoundingClientRect(),ze=fe.bottom+we.height+O>le;if(!ze)return!1;const tt=fe.top-we.height-O<0,Ye=fe.right+we.width+O>ue,Ke=fe.left-we.width-O<0;return ze&&!tt||Ye&&!Ke},v=b=>{b.target!==a&&ie(!1)},R=b=>{var S,O;!((S=t.value)!=null&&S.contains(b.target))&&!((O=n.value)!=null&&O.contains(b.target))&&(ie(!1),document.removeEventListener("click",R,{capture:!0}))},q=b=>{var O;`${b.ctrlKey?"ctrl+":""}${b.altKey?"alt+":""}${b.key.toLowerCase()}`==="escape"&&(ie(!1),(O=l.value)==null||O.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",v,{capture:!0}),document.removeEventListener("click",R,{capture:!0}),window.removeEventListener("keydown",q)});let oe=null;const ie=(b,S=!0)=>{if(E||P===b)return;const O=++g;P=b,e.requestUpdate(),b?(oe=Gt(),document.body.addEventListener("scroll",v,{capture:!0}),document.addEventListener("click",R,{capture:!0}),re.save="",window.addEventListener("keydown",q),ht(),queueMicrotask(()=>{var le;E||!P||O!==g||(o.value&&a&&(k=mt(o.value,a)),ht(),S&&(d.value?d.value.focus():(le=l.value)==null||le.focus()))})):(oe==null||oe.release(),oe=null,document.body.removeEventListener("scroll",v,{capture:!0}),document.removeEventListener("click",R,{capture:!0}),_e(L(),"blur"),window.removeEventListener("keydown",q),h="",e.emit("close"))},pe=()=>{e.props.disabled||ie(!P)};let ge;const Ge=b=>{const S=b.target.value;ge&&clearTimeout(ge),ge=setTimeout(()=>{h=S,e.requestUpdate(),queueMicrotask(()=>{xe.setOptions({...xe.options,count:A().length}),xe.measure()})},300)},yt=b=>{Z=b,e.requestUpdate(),queueMicrotask(()=>{xe.setOptions({...xe.options,count:A().length}),xe.measure()})},xe=new nt.Virtualizer({count:0,getScrollElement:()=>a,estimateSize:b=>{const S=A()[b];return S!=null&&S.isHidden?0:se()&&S&&je(f,S.depth)?B:I},measureElement:b=>{const S=b.getBoundingClientRect().height;return S>0?S:xe.options.estimateSize(Number(b.dataset.index))},overscan:3,observeElementRect:nt.observeElementRect,observeElementOffset:nt.observeElementOffset,scrollToFn:nt.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(xe._didMount());const ft=b=>{a=b??null,b&&(xe._willUpdate(),e.requestUpdate())},zt=(b,S)=>{if(!b||S!==f)return;const O=b.getBoundingClientRect().height;O>0&&(B=O)},Fe=b=>b.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),We=(b,S)=>{if(!h||!je(f,S))return[{part:b,highlight:!1}];const O=new RegExp(`(${Fe(h)})`,"gi");return b.split(O).map(le=>({part:le,highlight:h.toLowerCase()===le.toLowerCase()}))};let Tt=y();const Yt=b=>{const{index:S,item:O,start:le,isSelected:ue,isIndeterminate:fe,isDisabled:we,isFocused:ze}=b;if(O.isHidden)return s.nothing;const tt=e.props,Ye=O.depth,Ke=je(f,Ye),dt=c(),it=Ve=>{Ye!==f?Te(O,Ve):Se(O.code)},ct=Ve=>{dt?Oe(O,S,Ve,ue&&qe(O)):it(Ve)},vt=()=>{me(O,S,{},ue&&qe(O))},At=Ke?"하나만":"그룹만";return s.html`<div
|
|
1443
1443
|
data-index=${S}
|
|
1444
|
-
${K.ref(Ve=>{Ve&&(
|
|
1444
|
+
${K.ref(Ve=>{Ve&&(xe.measureElement(Ve),zt(Ve,Ye))})}
|
|
1445
1445
|
style=${ee.styleMap({transform:`translateY(${le}px)`})}
|
|
1446
1446
|
class=${V("list-box-item virtual-row tree-item",{"list-selected":ue,"moz-multi-focus":ze,"is-selected":ue,"single-select-item":!dt&&Ke,"multi-select-item":dt})}
|
|
1447
1447
|
>
|
|
@@ -1469,7 +1469,7 @@
|
|
|
1469
1469
|
${At}
|
|
1470
1470
|
</button>`:s.nothing}
|
|
1471
1471
|
</div>
|
|
1472
|
-
</div>`};return{api:{validate:Ue,setOpen:b=>{E||b&&e.props.disabled||ie(b,!1)},isOpen:()=>!E&&P},render(){const b=e.props;(b.itemsSource!==
|
|
1472
|
+
</div>`};return{api:{validate:Ue,setOpen:b=>{E||b&&e.props.disabled||ie(b,!1)},isOpen:()=>!E&&P},render(){const b=e.props;(b.itemsSource!==M||r()!==U)&&(M=b.itemsSource,U=r(),_());const S=y();S!==Tt&&(Tt=S,typeof S!="string"&&Ie(L()));const O=typeof b.width=="number"?`${Ae(b.width)}rem`:b.width,le=e.slots.has("icon")?e.slot("icon",{isOpen:P}):P?Es("14","var(--moz-color-accent)"):ks("14","var(--moz-color-text-subtle)",b.disabled),ue=ye(b,Ai),{aria:fe,dom:we}=Wt(ue);return s.html`
|
|
1473
1473
|
<div
|
|
1474
1474
|
${he(we)}
|
|
1475
1475
|
class=${V("moz-multi-select moz-tree-select",b.class,{"is-invalid":He()!=="","is-open":P,disabled:!!b.disabled})}
|
|
@@ -1503,7 +1503,7 @@
|
|
|
1503
1503
|
</div>
|
|
1504
1504
|
${He()!==""?s.html`<span class="moz-input-invalid-message">${He()}</span>`:s.nothing}
|
|
1505
1505
|
</div>
|
|
1506
|
-
`},renderPortal(){if(!P)return s.nothing;const b=e.props,S=A(),O=Je()&&N.length>0&&S.length>0,le=S.length===0||O?0:Y,ue=S.length===0?0:Y;(
|
|
1506
|
+
`},renderPortal(){if(!P)return s.nothing;const b=e.props,S=A(),O=Je()&&N.length>0&&S.length>0,le=S.length===0||O?0:Y,ue=S.length===0?0:Y;(xe.options.count!==S.length||xe.options.paddingStart!==le||xe.options.paddingEnd!==ue)&&xe.setOptions({...xe.options,count:S.length,paddingStart:le,paddingEnd:ue}),xe._willUpdate();const fe=xe.getTotalSize(),we=T(),ze=xe.getVirtualItems(),tt=po(ze,S.length,I,a).map(it=>{if(it.index>=S.length)return null;const ct=S[it.index];if(!ct)return null;let vt=Ne(ct,we),At=!1;if(c()&&!je(f,ct.depth)){const Ve=Bt(X,ct);if(Ve.length>0){const Mo=Ve.reduce((mn,fn)=>mn+(we.has(fn.code)?1:0),0);Mo===0?vt=!1:Mo<Ve.length?(vt=!0,At=!0):vt=!0}}return{index:it.index,item:ct,start:it.start+(ze.length===0?le:0),isSelected:vt,isIndeterminate:At,isDisabled:jt(ct),isFocused:m(ct)}}).filter(it=>it!==null),Ye=h?e.locale.TreeSelect.selectFiltered:e.locale.TreeSelect.selectAll,Ke=y(),dt=Array.isArray(Ke)?Ke.length:Ke?1:0;return s.html`<div
|
|
1507
1507
|
class=${V("list-box moz-tree-select-list",{"no-label":!b.label,"show-top":k},b.class)}
|
|
1508
1508
|
style=${ee.styleMap({...W,...ne})}
|
|
1509
1509
|
${K.ref(n)}
|
|
@@ -1544,14 +1544,14 @@
|
|
|
1544
1544
|
<span>${e.locale.TreeSelect.showSelectedOnly}</span>
|
|
1545
1545
|
</label>
|
|
1546
1546
|
</div>`:s.nothing}
|
|
1547
|
-
</div>`}}}}),Di={name:"MozTreeSelect",core:qs,booleanProps:["disabled","readonly","required","useFilter","useMultiSelect","useSelectAll","useSpecificSelect"],props:["itemsSource","label","width","required","readonly","disabled","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","treeLevels","useMultiSelect","treeProps","modelValue"],emits:["change","close","update:modelValue"],slots:["icon","list-item","empty"],expose:!0},Ii=new Set(["panes","direction","resizable","minSize","class","style"]),Ro=(e,t)=>e===void 0?t:typeof e=="number"?`${e}px`:e,Bs=$e({name:"moz-split-pane",defaults:{horizontal:!1,panes:[]},setup(e){let t=null,o=null;const n=[],l=[],d=[],a=[];let f=[],i=!1,c=0,r=0,u=-1,p=-1,y=-1,L=null,D=null,P=0;const E=()=>!!e.props.horizontal,g=()=>e.props.panes??[],h=()=>{f=g().map(B=>B.hidden?"0":B.size!=null?String(B.size):"1fr")};h();const C=B=>E()?B.clientHeight:B.clientWidth,k=()=>C(d[p]),Z=()=>C(a[p]),W=()=>C(d[y]),Q=()=>C(a[y]),re=B=>{if(!i)return;let se=E()?B.movementY:B.movementX;L=+(se>0),L!==D&&D!==null&&(p=u,y=u+1),D=L;const N=l[u].getBoundingClientRect(),X=E()?B.clientY-N.top+window.scrollY:B.clientX-N.left+window.scrollX;(L===0&&X>10||L===1&&X<-10)&&(se=se/(Math.abs(X)/10)),(L===0&&E()?B.clientY<N.top:B.clientX<N.left)&&(P=0),(L===1&&E()?B.clientY>N.top:B.clientX>N.left)&&(P=0);const
|
|
1547
|
+
</div>`}}}}),Di={name:"MozTreeSelect",core:qs,booleanProps:["disabled","readonly","required","useFilter","useMultiSelect","useSelectAll","useSpecificSelect"],props:["itemsSource","label","width","required","readonly","disabled","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","treeLevels","useMultiSelect","treeProps","modelValue"],emits:["change","close","update:modelValue"],slots:["icon","list-item","empty"],expose:!0},Ii=new Set(["panes","direction","resizable","minSize","class","style"]),Ro=(e,t)=>e===void 0?t:typeof e=="number"?`${e}px`:e,Bs=$e({name:"moz-split-pane",defaults:{horizontal:!1,panes:[]},setup(e){let t=null,o=null;const n=[],l=[],d=[],a=[];let f=[],i=!1,c=0,r=0,u=-1,p=-1,y=-1,L=null,D=null,P=0;const E=()=>!!e.props.horizontal,g=()=>e.props.panes??[],h=()=>{f=g().map(B=>B.hidden?"0":B.size!=null?String(B.size):"1fr")};h();const C=B=>E()?B.clientHeight:B.clientWidth,k=()=>C(d[p]),Z=()=>C(a[p]),W=()=>C(d[y]),Q=()=>C(a[y]),re=B=>{if(!i)return;let se=E()?B.movementY:B.movementX;L=+(se>0),L!==D&&D!==null&&(p=u,y=u+1),D=L;const N=l[u].getBoundingClientRect(),X=E()?B.clientY-N.top+window.scrollY:B.clientX-N.left+window.scrollX;(L===0&&X>10||L===1&&X<-10)&&(se=se/(Math.abs(X)/10)),(L===0&&E()?B.clientY<N.top:B.clientX<N.left)&&(P=0),(L===1&&E()?B.clientY>N.top:B.clientX>N.left)&&(P=0);const M=G=>n[G][E()?"clientHeight":"clientWidth"];if(c=M(p)+se,r=M(y)+M(p)-c,!(c>k()&&c<Z()||c<k()&&L===1||c>k()&&L===0)){if(c<k()){if(p-1<0&&L===0){P+=E()?B.movementY:B.movementX;return}p=p-1>=0?p-1:0}else if(c>Z()){if(p-1<0){P+=E()?B.movementY:B.movementX;return}p=p-1>=0?p-1:0}}if(!(r>W()&&r<Q()||r<W()&&L===0||r>W()&&L===1)){if(r<W()){if(y+1>=f.length){P+=E()?B.movementY:B.movementX;return}y=y+1<f.length?y+1:f.length-1}else if(r>Q()){if(y+1>=f.length){P+=E()?B.movementY:B.movementX;return}y=y+1<f.length?y+1:f.length-1}}if(L===0&&P>0||L===1&&P<0||L===0&&r>Q()||L===1&&r<W()||L===0&&c<k()||L===1&&c>Z())return;const U=t[E()?"clientHeight":"clientWidth"],_=M(p)+se;f[p]=`clamp(${k()}px, ${_/U*100}%, ${Z()}px)`,f[y]="1fr",e.requestUpdate(),queueMicrotask(()=>{const G=M(y);f[y]=`clamp(${W()}px, ${G/U*100}%, ${Q()}px)`,e.requestUpdate()})},ae=()=>{u=-1,p=-1,y=-1,i=!1,P=0,document.removeEventListener("mousemove",re),document.removeEventListener("mouseup",ae),e.requestUpdate()},j=B=>{B.preventDefault(),i=!0,E()?B.clientY:B.clientX,document.addEventListener("mousemove",re),document.addEventListener("mouseup",ae),e.requestUpdate()},$=(B,se)=>{u=se,p=se,y=se+1,P=0,j(B)};let I=null;const Y=()=>{t&&o&&(o.style.width=`${t.clientWidth}px`,o.style.height=`${t.clientHeight}px`)};e.onCleanup(()=>{document.removeEventListener("mouseup",ae),document.removeEventListener("mousemove",re),I==null||I.disconnect()});let ne=e.props.panes;return{onMounted:()=>{h(),e.requestUpdate()},render(){const B=g();e.props.panes!==ne&&(ne=e.props.panes,queueMicrotask(()=>{h(),e.requestUpdate()}));const se=E()?"gridTemplateRows":"gridTemplateColumns",N=B.length-1,X=ye(e.props,Ii);return s.html`
|
|
1548
1548
|
<div
|
|
1549
1549
|
${he(X)}
|
|
1550
1550
|
class=${V("splitter",e.props.class)}
|
|
1551
1551
|
style=${ee.styleMap({display:"grid",[se]:f.join(" "),width:"100%",height:"100%",overflow:"hidden",cursor:i?E()?"row-resize":"col-resize":"unset"})}
|
|
1552
|
-
${K.ref(
|
|
1552
|
+
${K.ref(M=>{t=M??null,t&&o&&(Y(),!I&&typeof ResizeObserver<"u"&&(I=new ResizeObserver(()=>Y()),I.observe(t)))})}
|
|
1553
1553
|
>
|
|
1554
|
-
${B.map((
|
|
1554
|
+
${B.map((M,U)=>{const _=U===N?"100%":f[U+1]!=="0"?"calc(100% - 10px) 10px":"100%";return s.html`<div
|
|
1555
1555
|
style=${ee.styleMap({display:"grid",[se]:_,overflow:"hidden"})}
|
|
1556
1556
|
${K.ref(G=>{n[U]=G??null})}
|
|
1557
1557
|
>
|
|
@@ -1569,9 +1569,9 @@
|
|
|
1569
1569
|
|
|
1570
1570
|
<div
|
|
1571
1571
|
style="pointer-events: none; position: fixed"
|
|
1572
|
-
${K.ref(
|
|
1572
|
+
${K.ref(M=>{o=M??null,t&&o&&Y()})}
|
|
1573
1573
|
>
|
|
1574
|
-
${B.map((
|
|
1574
|
+
${B.map((M,U)=>{const _=Ro(M.minSize,"10px"),G=Ro(M.maxSize,"100%");return s.html`<div
|
|
1575
1575
|
class="size-calculator min-size"
|
|
1576
1576
|
style=${ee.styleMap({width:_,height:_})}
|
|
1577
1577
|
${K.ref(J=>{d[U]=J??null})}
|
|
@@ -1672,7 +1672,7 @@
|
|
|
1672
1672
|
${e.slot("filter")}
|
|
1673
1673
|
</div>`:s.nothing}
|
|
1674
1674
|
</div>
|
|
1675
|
-
`}}}}),Ui={name:"MozController",core:Fs,booleanProps:["customQueryParamsPanel","showFavorite","showFilterButton","showPreset"],props:["height","setControlHeight","showFilterButton","actions","containerStyle","headerStyle","filterStyle","showFavorite","showPreset","navigations","customQueryParamsPanel"],emits:["update:customQueryParamsPanel"],slots:["beforeFilter","action","filter","custom-filter"],expose:!1};class Eo{constructor(t,o){
|
|
1675
|
+
`}}}}),Ui={name:"MozController",core:Fs,booleanProps:["customQueryParamsPanel","showFavorite","showFilterButton","showPreset"],props:["height","setControlHeight","showFilterButton","actions","containerStyle","headerStyle","filterStyle","showFavorite","showPreset","navigations","customQueryParamsPanel"],emits:["update:customQueryParamsPanel"],slots:["beforeFilter","action","filter","custom-filter"],expose:!1};class Eo{constructor(t,o){Re(this,"startedAt");Re(this,"callback");Re(this,"delay");Re(this,"timer");Re(this,"paused",!1);this.startedAt=Date.now(),this.callback=t,this.delay=o,this.timer=setTimeout(t,o)}pause(){this.stop(),this.delay-=Date.now()-this.startedAt,this.paused=!0}resume(){this.stop(),this.startedAt=Date.now(),this.paused=!1,this.timer=setTimeout(this.callback,this.delay)}remaining(){return this.paused?Math.max(0,this.delay):Math.max(0,this.delay-(Date.now()-this.startedAt))}stop(){clearTimeout(this.timer)}}function Wi(e="var(--moz-color-on-accent)"){return s.html`<svg width="24" height="24" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1676
1676
|
<path
|
|
1677
1677
|
fill-rule="evenodd"
|
|
1678
1678
|
clip-rule="evenodd"
|
|
@@ -1812,22 +1812,22 @@
|
|
|
1812
1812
|
alt=${Ee.ifDefined(r.alt)}
|
|
1813
1813
|
/>`:s.nothing}
|
|
1814
1814
|
${y?s.html`<span class=${V("moz-avatar-fallback",r.fallbackClass)}>${e.slot("fallback")}</span>`:s.nothing}
|
|
1815
|
-
</span>`},api:{get status(){return t}}}}}),pr={name:"MozAvatar",core:Gs,props:["src","alt","delayMs","imageClass","fallbackClass"],emits:["loadingStatusChange"],slots:["fallback"],expose:!0},hr=new Set(["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass","class","style"]),mr=20,Zs=$e({name:"moz-scroll-area",defaults:{orientation:"vertical",scrollbarVisibility:"always"},setup(e){let t=null,o=null,n=null,l=null,d=null,a=!1,f=!1,i=null,c=null,r=null,u=null,p=null,y=!1,L=!1,D=null,P=null;const E=
|
|
1815
|
+
</span>`},api:{get status(){return t}}}}}),pr={name:"MozAvatar",core:Gs,props:["src","alt","delayMs","imageClass","fallbackClass"],emits:["loadingStatusChange"],slots:["fallback"],expose:!0},hr=new Set(["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass","class","style"]),mr=20,Zs=$e({name:"moz-scroll-area",defaults:{orientation:"vertical",scrollbarVisibility:"always"},setup(e){let t=null,o=null,n=null,l=null,d=null,a=!1,f=!1,i=null,c=null,r=null,u=null,p=null,y=!1,L=!1,D=null,P=null;const E=M=>!!M&&"nodeType"in M&&(!!(r!=null&&r.contains(M))||!!(u!=null&&u.contains(M))),g=()=>E((r==null?void 0:r.ownerDocument.activeElement)??null),h=()=>{const M=g();M!==L&&(L=M,e.requestUpdate())},C=M=>{u=M??null},k=M=>{M.pointerType!=="touch"&&(y=!0,e.requestUpdate())},Z=M=>{M.pointerType!=="touch"&&(y=E(M.relatedTarget),e.requestUpdate())},W=()=>{h()},Q=()=>{e.requestUpdate()},re=()=>{D==null||D(),p==null||p.disconnect(),p=null,r==null||r.removeEventListener("pointerenter",k),r==null||r.removeEventListener("pointerleave",Z),r==null||r.removeEventListener("focusin",W),r==null||r.removeEventListener("focusout",Q),r=null,y=L=!1},ae=()=>{(P==null?void 0:P.getAttribute("tabindex"))==="0"&&P.removeAttribute("tabindex"),P=null},j=()=>{var _;const M=e.props.interactionRoot??t;M!==r&&(re(),r=M,M&&(M.addEventListener("pointerenter",k),M.addEventListener("pointerleave",Z),M.addEventListener("focusin",W),M.addEventListener("focusout",Q)));const U=(_=M==null?void 0:M.ownerDocument.defaultView)==null?void 0:_.MutationObserver;e.props.scrollbarVisibility==="hover"&&M&&!p&&U?(p=new U(h),p.observe(M,{childList:!0,subtree:!0})):e.props.scrollbarVisibility!=="hover"&&(p==null||p.disconnect(),p=null),L=g(),e.props.scrollbarVisibility!=="hover"?ae():t&&!t.hasAttribute("tabindex")&&(t.tabIndex=0,P=t)},$=M=>{const U=e.props.orientation??"vertical";return U==="both"||U===M},I=M=>{const U=t;if(!U||!$(M))return!1;const _=M==="vertical",G=_?U.scrollHeight:U.scrollWidth,J=_?U.clientHeight:U.clientWidth;if(G<=J+1||J<=0)return!1;const x=_?l:d,m=_?o:n;if(!x||!m)return!0;const T=_?x.clientHeight:x.clientWidth;if(T<=0)return!0;const A=J/G,F=Math.max(T*A,mr),ce=T-F,ke=_?U.scrollTop:U.scrollLeft,Me=G-J,Ne=Me>0?ke/Me*ce:0;return _?(m.style.height=`${F}px`,m.style.transform=`translateY(${Ne}px)`):(m.style.width=`${F}px`,m.style.transform=`translateX(${Ne}px)`),!0},Y=()=>{const M=I("vertical"),U=I("horizontal");M===a&&U===f||(a=M,f=U,e.requestUpdate())},ne=()=>{const M=t;M&&(Y(),e.emit("scroll",{scrollTop:M.scrollTop,scrollLeft:M.scrollLeft}))},B=()=>{re(),ae(),t&&t.removeEventListener("scroll",ne),i==null||i.disconnect(),i=null,c==null||c.disconnect(),c=null,t=null},se=()=>{const M=e.props.viewport??null;if(M!==t&&(B(),t=M,!!t)){if(t.addEventListener("scroll",ne,{passive:!0}),typeof ResizeObserver<"u"){i=new ResizeObserver(()=>Y()),i.observe(t);const U=t.firstElementChild;U&&(c=new ResizeObserver(()=>Y()),c.observe(U))}Y()}},N=(M,U)=>{var He;const _=t,G=_==null?void 0:_.ownerDocument.defaultView;if(!_||!G||D||U.button!==0)return;const J=M==="vertical",x=J?l:d,m=J?o:n;if(!x||!m)return;U.preventDefault();const T=J?U.clientY:U.clientX,A=J?_.scrollTop:_.scrollLeft,F=J?x.clientHeight:x.clientWidth,ce=J?m.offsetHeight:m.offsetWidth,ke=J?_.scrollHeight:_.scrollWidth,Me=J?_.clientHeight:_.clientWidth,Ne=F-ce,qe=ke-Me;if(Ne<=0||qe<=0)return;const st=U.pointerId,Qe=Le=>{y=Le.pointerType!=="touch"&&[r,l,d].some(_e=>{if(!_e||_e.hidden)return!1;const Ue=_e.getBoundingClientRect();return Le.clientX>=Ue.left&&Le.clientX<Ue.right&&Le.clientY>=Ue.top&&Le.clientY<Ue.bottom})},Je=Le=>{if(Le.pointerId!==st)return;Qe(Le);const _e=(J?Le.clientY:Le.clientX)-T,Ue=A+_e/Ne*qe;J?_.scrollTop=Ue:_.scrollLeft=Ue},Be=Le=>{Le.pointerId===st&&(Qe(Le),Le.type!=="pointerup"&&(y=!1),D==null||D(),e.requestUpdate())};D=()=>{var Le;D=null,G.removeEventListener("pointermove",Je),G.removeEventListener("pointerup",Be),G.removeEventListener("pointercancel",Be),m.removeEventListener("lostpointercapture",Be);try{(Le=m.releasePointerCapture)==null||Le.call(m,st)}catch{}},G.addEventListener("pointermove",Je),G.addEventListener("pointerup",Be),G.addEventListener("pointercancel",Be),m.addEventListener("lostpointercapture",Be);try{(He=m.setPointerCapture)==null||He.call(m,st)}catch{}e.requestUpdate()};e.onCleanup(B);const X=(M,U)=>{const _=M==="vertical",G=x=>{_?l=x??null:d=x??null},J=x=>{_?o=x??null:n=x??null,x&&Y()};return s.html`<div
|
|
1816
1816
|
class=${V("moz-scroll-area-scrollbar",e.props.scrollbarClass)}
|
|
1817
|
-
data-orientation=${
|
|
1817
|
+
data-orientation=${M}
|
|
1818
1818
|
?hidden=${!U}
|
|
1819
1819
|
${K.ref(G)}
|
|
1820
1820
|
>
|
|
1821
1821
|
<div
|
|
1822
1822
|
class=${V("moz-scroll-area-thumb",e.props.thumbClass)}
|
|
1823
|
-
@pointerdown=${
|
|
1823
|
+
@pointerdown=${x=>N(M,x)}
|
|
1824
1824
|
${K.ref(J)}
|
|
1825
1825
|
></div>
|
|
1826
|
-
</div>`};return{render(){se(),j();const
|
|
1827
|
-
class=${V("moz-scroll-area-bars",
|
|
1828
|
-
data-orientation=${
|
|
1829
|
-
data-state=${
|
|
1830
|
-
style=${ee.styleMap(be(
|
|
1826
|
+
</div>`};return{render(){se(),j();const M=e.props,U=ye(M,hr),_=$("vertical")&&$("horizontal");return s.html`<div
|
|
1827
|
+
class=${V("moz-scroll-area-bars",M.class)}
|
|
1828
|
+
data-orientation=${M.orientation??"vertical"}
|
|
1829
|
+
data-state=${M.scrollbarVisibility!=="hover"||y||L||D?"visible":"hidden"}
|
|
1830
|
+
style=${ee.styleMap(be(M.style))}
|
|
1831
1831
|
@pointerenter=${k}
|
|
1832
1832
|
@pointerleave=${Z}
|
|
1833
1833
|
@focusin=${W}
|
|
@@ -2040,5 +2040,5 @@
|
|
|
2040
2040
|
${c}
|
|
2041
2041
|
</button>`:s.html`<div class=${f} data-unread=${l?"true":"false"} style=${i} ${he(n)}>
|
|
2042
2042
|
${c}
|
|
2043
|
-
</div>`}}}}),
|
|
2043
|
+
</div>`}}}}),Mr=3,gt=[];let xr=0;const zr=e=>{var t;typeof e.remove<"u"?e.remove():(t=e.parentNode)==null||t.removeChild(e)},Ft=e=>e.closing||e.instance.api.isClosing(),St=e=>{Ft(e)||(e.closing=!0,e.instance.api.dismiss())},Tr=(e={})=>({open:(l={},d={})=>{const a={...e,...l},{id:f,max:i,onDismiss:c,...r}=a;if(f){const C=gt.find(k=>k.id===f&&!Ft(k));if(C)return{id:C.id,close:()=>St(C)}}const u=f||`moz-notification-${++xr}`,p=co(r.position),y=typeof i=="number"&&i>0?Math.floor(i):Mr,L=gt.filter(C=>C.position===p&&!Ft(C));for(let C=0;C<=L.length-y;C++)St(L[C]);const D=document.createElement("div");D.style.display="contents",document.body.appendChild(D);let P;const E={...r,position:p,inline:!1,onDismiss:()=>{const C=P?gt.indexOf(P):-1;C!==-1&>.splice(C,1),c==null||c(),queueMicrotask(()=>{var k;P==null||P.instance.destroy(),zr(D),(k=d.onRemoved)==null||k.call(d)})}},g=Lo(D,E,(()=>{}),{slots:d.slots,locale:d.locale});P={id:u,position:p,instance:g,closing:!1},gt.push(P);const h=P;return{id:u,close:()=>St(h)}},close:l=>{const d=gt.find(a=>a.id===l&&!Ft(a));d&&St(d)},closeAll:()=>{for(const l of gt.slice())St(l)}}),Ar={name:"MozNotificationCard",core:Lo,booleanProps:["dismissible","inline","pauseOnHover"],props:["tone","title","body","time","datetime","dismissible","closeLabel","duration","pauseOnHover","exitDuration","position","inline","onSelect","onDismiss"],emits:[],slots:["avatar","heading","description","actions"],expose:!1,syncUpdate:!0},Dr={name:"MozNotificationItem",core:hn,booleanProps:["unread"],props:["title","body","time","datetime","unread","onSelect"],emits:[],slots:["heading","description","meta"],expose:!1,syncUpdate:!0};exports.AVATAR_SPEC=pr;exports.BADGE_APPEARANCES=js;exports.BADGE_SIZES=Xs;exports.BADGE_SPEC=vr;exports.BADGE_TONES=Ys;exports.BREADCRUMB_SPEC=Xn;exports.BUTTON_SIZES=Go;exports.BUTTON_SPEC=Wn;exports.CALENDAR_SPEC=Il;exports.CALLOUT_SPEC=Sr;exports.CALLOUT_TONES=dn;exports.CHECKBOX_SPEC=rl;exports.CHIP_APPEARANCES=en;exports.CHIP_SIZES=tn;exports.CHIP_SPEC=br;exports.CHIP_TONES=Js;exports.COLLAPSIBLE_HEIGHT_VAR=Ws;exports.COLLAPSIBLE_SPEC=cr;exports.CONTEXTMENU_SPEC=yi;exports.CONTROLLER_SPEC=Ui;exports.ChromeComponent=Uo;exports.DATEINPUT_SPEC=Fl;exports.DEFAULT_TREE_PROPS=ro;exports.EMPTYSTATE_SPEC=ll;exports.INPUT_SPEC=pl;exports.LABEL_SPEC=Gn;exports.MOZ_BOOLEAN_PROPS=Dn;exports.MULTISELECT_SPEC=ai;exports.NOTIFICATION_CARD_SPEC=Ar;exports.NOTIFICATION_ITEM_SPEC=Dr;exports.NOTIFICATION_POSITIONS=pn;exports.NOTIFICATION_TONES=un;exports.NUMBERINPUT_SPEC=yl;exports.Observable=En;exports.Overlay=Kt;exports.PASSWORDINPUT_SPEC=hl;exports.POPOVER_SPEC=ar;exports.POPUP_SPEC=jl;exports.PortalHost=Nt;exports.RADIO_SPEC=dl;exports.SCROLLAREA_SPEC=fr;exports.SEGMENT_TONES=ls;exports.SELECT_SPEC=oi;exports.SLIDER_SPEC=Pl;exports.SPLITPANE_SPEC=Vi;exports.SlotHost=Wo;exports.TABLESELECT_SPEC=Si;exports.TAB_SPEC=kl;exports.TAGINPUT_SPEC=vi;exports.TEXTAREA_SPEC=fl;exports.TIMEPICKER_SPEC=hi;exports.TOAST_SPEC=tr;exports.TOGGLE_SPEC=Yn;exports.TOOLTIP_SPEC=lr;exports.TREESELECT_SPEC=Di;exports.Timer=Eo;exports.breadcrumbTemplate=bo;exports.buttonTemplate=kt;exports.checkboxTemplate=qt;exports.circleLoader=fo;exports.cn=V;exports.computeTooltipPlacement=Hs;exports.createAvatar=Gs;exports.createBadge=Qs;exports.createBreadCrumb=es;exports.createButton=jo;exports.createCalendar=So;exports.createCallout=cn;exports.createCheckBox=ns;exports.createChip=on;exports.createCollapsible=Ks;exports.createContextMenu=As;exports.createController=Fs;exports.createDateInput=Cs;exports.createEmptyState=ss;exports.createInput=ps;exports.createLabel=Xo;exports.createMultiSelect=Ms;exports.createNotificationCard=Lo;exports.createNotificationItem=hn;exports.createNumberInput=fs;exports.createPasswordInput=hs;exports.createPopover=Us;exports.createPopup=$s;exports.createRadio=is;exports.createScrollArea=Zs;exports.createSelect=Ls;exports.createSlider=ws;exports.createSplitPane=Bs;exports.createTab=vs;exports.createTableSelect=Ds;exports.createTagInput=Ts;exports.createTextArea=ms;exports.createTimePicker=zs;exports.createToast=Po;exports.createToggle=Qo;exports.createTooltip=_s;exports.createTreeSelect=qs;exports.createValidator=Rn;exports.dayjs=Pe;exports.defaultEmptyStateMessages=ts;exports.defineHeadless=$e;exports.dismissLayerCount=Hn;exports.enUS=xn;exports.generateUUID=Mt;exports.iconArrowRight=jn;exports.iconCheckBox=Co;exports.iconCheckBoxChecked=yo;exports.iconCheckboxIndeterminate=$o;exports.iconClose=gs;exports.iconFavorite=vo;exports.iconFavoriteFilled=wo;exports.iconInfo=rs;exports.iconPasswordHidden=as;exports.iconPasswordVisible=ds;exports.jaJP=Tn;exports.koKR=no;exports.labelClass=go;exports.labelTemplate=Xe;exports.normalizeStyle=be;exports.pickRest=ye;exports.pxToRem=Ae;exports.registerDismissLayer=mo;exports.registerForeignLayer=Nn;exports.registerSelfHandledLayer=Gt;exports.shallowEqual=wt;exports.spread=he;exports.toggleTemplate=_t;exports.uniqueId=ot;exports.useNotification=Tr;exports.useToast=er;exports.zhCN=zn;
|
|
2044
2044
|
//# sourceMappingURL=index.cjs.map
|