@paperless/core 2.16.0 → 2.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/build/{p-7c0fb43f.js → p-0bd599ca.js} +1 -1
  3. package/dist/build/{p-61633f23.entry.js → p-6dc60fc9.entry.js} +2 -2
  4. package/dist/{paperless/p-61633f23.entry.js.map → build/p-6dc60fc9.entry.js.map} +1 -1
  5. package/dist/build/p-calendar.entry.esm.js.map +1 -1
  6. package/dist/build/{p-481a8ecd.entry.js → p-e5ffe266.entry.js} +2 -2
  7. package/dist/{paperless/p-481a8ecd.entry.js.map → build/p-e5ffe266.entry.js.map} +1 -1
  8. package/dist/build/p-empty-state.p-floating-menu-container.p-table-cell.p-table-container.p-table-footer.p-table-header.p-table-row.p-table-row-actions-container.entry.esm.js.map +1 -1
  9. package/dist/build/paperless.esm.js +1 -1
  10. package/dist/cjs/p-calendar.cjs.entry.js +1 -1
  11. package/dist/cjs/p-calendar.cjs.entry.js.map +1 -1
  12. package/dist/cjs/p-calendar.entry.cjs.js.map +1 -1
  13. package/dist/cjs/p-empty-state.p-floating-menu-container.p-table-cell.p-table-container.p-table-footer.p-table-header.p-table-row.p-table-row-actions-container.entry.cjs.js.map +1 -1
  14. package/dist/cjs/p-empty-state_8.cjs.entry.js +9 -10
  15. package/dist/cjs/p-empty-state_8.cjs.entry.js.map +1 -1
  16. package/dist/collection/components/molecules/calendar/calendar.component.js +1 -1
  17. package/dist/collection/components/molecules/calendar/calendar.component.js.map +1 -1
  18. package/dist/collection/components/molecules/table/row/table-row.component.js +9 -10
  19. package/dist/collection/components/molecules/table/row/table-row.component.js.map +1 -1
  20. package/dist/components/p-calendar.js +1 -1
  21. package/dist/components/{p-CLnjjZGE.js → p-d8sK-YMg.js} +3 -3
  22. package/dist/components/p-d8sK-YMg.js.map +1 -0
  23. package/dist/components/p-datepicker.js +1 -1
  24. package/dist/components/{p-DuBiYXDO.js → p-h9R5XZgN.js} +11 -12
  25. package/dist/components/p-h9R5XZgN.js.map +1 -0
  26. package/dist/components/p-table-row.js +1 -1
  27. package/dist/components/p-table.js +1 -1
  28. package/dist/esm/p-calendar.entry.js +1 -1
  29. package/dist/esm/p-calendar.entry.js.map +1 -1
  30. package/dist/esm/p-empty-state.p-floating-menu-container.p-table-cell.p-table-container.p-table-footer.p-table-header.p-table-row.p-table-row-actions-container.entry.js.map +1 -1
  31. package/dist/esm/p-empty-state_8.entry.js +9 -10
  32. package/dist/esm/p-empty-state_8.entry.js.map +1 -1
  33. package/dist/index.html +1 -1
  34. package/dist/paperless/{p-61633f23.entry.js → p-6dc60fc9.entry.js} +2 -2
  35. package/dist/{build/p-61633f23.entry.js.map → paperless/p-6dc60fc9.entry.js.map} +1 -1
  36. package/dist/paperless/p-calendar.entry.esm.js.map +1 -1
  37. package/dist/paperless/{p-481a8ecd.entry.js → p-e5ffe266.entry.js} +2 -2
  38. package/dist/{build/p-481a8ecd.entry.js.map → paperless/p-e5ffe266.entry.js.map} +1 -1
  39. package/dist/paperless/p-empty-state.p-floating-menu-container.p-table-cell.p-table-container.p-table-footer.p-table-header.p-table-row.p-table-row-actions-container.entry.esm.js.map +1 -1
  40. package/dist/paperless/paperless.esm.js +1 -1
  41. package/dist/sw.js +1 -1
  42. package/dist/sw.js.map +1 -1
  43. package/package.json +1 -1
  44. package/dist/components/p-CLnjjZGE.js.map +0 -1
  45. package/dist/components/p-DuBiYXDO.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{p as e,b as a}from"./p-Dpmiv2da.js";export{s as setNonce}from"./p-Dpmiv2da.js";import{g as t}from"./p-DQuL1Twl.js";var o=()=>{const a=import.meta.url;const t={};if(a!==""){t.resourcesUrl=new URL(".",a).href}return e(t)};o().then((async e=>{await t();return a(JSON.parse('[["p-e59817a8",[[1,"p-button",{"label":[1],"as":[1],"variant":[1],"active":[4],"error":[4],"href":[1],"target":[1],"size":[1],"type":[1],"loading":[4],"chevron":[8],"chevronPosition":[1,"chevron-position"],"disabled":[4],"icon":[1],"iconOnly":[4,"icon-only"],"iconClass":[1,"icon-class"],"iconPosition":[1,"icon-position"],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"],"inheritText":[4,"inherit-text"],"buttonGroupPosition":[1,"button-group-position"],"class":[1]},[[2,"click","handleClick"]]],[1,"p-loader",{"show":[4],"variant":[1],"color":[1],"modalTitle":[1,"modal-title"],"modalDescription":[1,"modal-description"]}],[1,"p-icon",{"variant":[1],"size":[1],"rotate":[2],"flip":[1]}]]],["p-b94bc701",[[4,"p-table",{"items":[1],"loading":[4],"headerLoading":[4,"header-loading"],"footerLoading":[4,"footer-loading"],"amountOfLoadingRows":[2,"amount-of-loading-rows"],"enableRowSelection":[4,"enable-row-selection"],"rowSelectionLimit":[2,"row-selection-limit"],"enableRowClick":[4,"enable-row-click"],"selectedRows":[16,"selected-rows"],"enableFloatingMenu":[4,"enable-floating-menu"],"floatingMenuAmountSelectedTemplate":[16,"floating-menu-amount-selected-template"],"selectionKey":[1,"selection-key"],"canSelectKey":[1,"can-select-key"],"enableHeader":[4,"enable-header"],"quickFilters":[1,"quick-filters"],"activeQuickFilterIdentifier":[1,"active-quick-filter-identifier"],"enableSearch":[4,"enable-search"],"query":[1025],"enableFilter":[4,"enable-filter"],"enableFilterDesktop":[4,"enable-filter-desktop"],"selectedFiltersAmount":[2,"selected-filters-amount"],"filterButtonTemplate":[16,"filter-button-template"],"enableAction":[4,"enable-action"],"actionButtonLoading":[4,"action-button-loading"],"actionButtonEnabled":[4,"action-button-enabled"],"actionButtonIcon":[1,"action-button-icon"],"actionButtonText":[1,"action-button-text"],"actionButtonTemplate":[16,"action-button-template"],"enableFooter":[4,"enable-footer"],"enablePaginationSize":[4,"enable-pagination-size"],"enablePaginationPages":[4,"enable-pagination-pages"],"enableExport":[4,"enable-export"],"page":[1538],"total":[2],"pageSize":[2,"page-size"],"pageSizeOptions":[16,"page-size-options"],"hideOnSinglePage":[4,"hide-on-single-page"],"emptyStateHeader":[16,"empty-state-header"],"emptyStateContent":[16,"empty-state-content"],"emptyStateAction":[16,"empty-state-action"],"enableEmptyStateAction":[4,"enable-empty-state-action"],"emptyStateFilteredHeader":[16,"empty-state-filtered-header"],"emptyStateFilteredContent":[16,"empty-state-filtered-content"],"shadow":[4],"_locales":[32],"_extraHeaders":[32],"_columns":[32],"_items":[32],"_enableRowSelection":[32],"_rowSelectionLimit":[32],"_rowActionsFloating":[32],"_rowActionsRow":[32],"_footerHidden":[32]},[[16,"localeChanged","_setLocales"],[16,"tableDefinitionChanged","onTableDefinitionUpdated"],[4,"keydown","keyDown"],[4,"keyup","keyUp"],[4,"visibilitychange","visibilityChange"],[9,"resize","_setRowSelectionData"]],{"items":["_parseItems"],"enableRowSelection":["_setRowSelectionData"],"rowSelectionLimit":["_setRowSelectionData"],"selectedRows":["_setRowSelectionData"]}]]],["p-11df525e",[[64,"p-select",{"items":[1],"multi":[516],"strategy":[1],"icon":[1],"query":[1],"placeholder":[1],"autocompletePlaceholder":[1,"autocomplete-placeholder"],"value":[8],"displayKey":[1,"display-key"],"dropdownDisplayKey":[1,"dropdown-display-key"],"selectionDisplayKey":[1,"selection-display-key"],"valueKey":[1,"value-key"],"avatarKey":[1,"avatar-key"],"iconKey":[1,"icon-key"],"iconClassKey":[1,"icon-class-key"],"showIconOnSelectedItem":[1,"show-icon-on-selected-item"],"classKey":[1,"class-key"],"applyClassOnSelectedItem":[4,"apply-class-on-selected-item"],"applyClassOnSelectedItemInMenu":[4,"apply-class-on-selected-item-in-menu"],"avatarLettersKey":[1,"avatar-letters-key"],"identifierKey":[1,"identifier-key"],"queryKey":[1,"query-key"],"autoSelectFirst":[4,"auto-select-first"],"showChevron":[4,"show-chevron"],"maxDisplayedItems":[2,"max-displayed-items"],"enableAutocomplete":[4,"enable-autocomplete"],"enableTextWrap":[4,"enable-text-wrap"],"asyncFilter":[4,"async-filter"],"loading":[4],"enableSelectAll":[4,"enable-select-all"],"selectAllText":[1,"select-all-text"],"selectAllIcon":[1,"select-all-icon"],"size":[1],"prefix":[1],"label":[1],"helper":[1],"required":[516],"showOptional":[516,"show-optional"],"error":[513],"disabled":[516],"showAddItem":[4,"show-add-item"],"addItemText":[1,"add-item-text"],"emptyStateText":[1,"empty-state-text"],"_showDropdown":[32],"_selectedItem":[32],"_allSelected":[32],"_amountHidden":[32]},[[6,"click","documentClickHandler"]],{"value":["_valueChange"],"items":["itemChanges"],"_showDropdown":["_showDropdownChanges"],"multi":["multiChanges"]}]]],["p-6aa5fec2",[[64,"p-datepicker",{"placeholder":[1],"value":[1],"preselectToday":[4,"preselect-today"],"enableNativePicker":[4,"enable-native-picker"],"disabledDates":[1,"disabled-dates"],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"disableWeekends":[4,"disable-weekends"],"enableToday":[4,"enable-today"],"todayText":[1,"today-text"],"mode":[1],"format":[1],"hideIconWhenFilled":[4,"hide-icon-when-filled"],"size":[1],"prefix":[1],"label":[1],"loading":[4],"helper":[1],"required":[516],"showOptional":[516,"show-optional"],"error":[513],"disabled":[516],"strategy":[1],"placement":[513],"_showDropdown":[32],"_value":[32],"_minDate":[32],"_maxDate":[32],"_disabledDates":[32],"_isMobileBrowser":[32]},[[6,"click","documentClickHandler"]],{"value":["parseValue"],"minDate":["parseMinDate"],"maxDate":["parseMaxDate"],"disabledDates":["parseDisabledDates"]}]]],["p-ae9cc890",[[1,"p-modal",{"size":[1],"header":[1],"show":[4],"applyBlur":[4,"apply-blur"],"showClose":[4,"show-close"],"showMobileFooter":[4,"show-mobile-footer"],"backdropClickClose":[4,"backdrop-click-close"],"scrollLock":[4,"scroll-lock"],"_closing":[32]},[[8,"closeModal","handleCloseModal"]]]]],["p-50c0574b",[[1,"p-drawer",{"header":[1],"show":[4],"applyBlur":[4,"apply-blur"],"showClose":[4,"show-close"],"backdropClickClose":[4,"backdrop-click-close"],"canClose":[4,"can-close"],"scrollLock":[4,"scroll-lock"],"_closing":[32]},[[8,"closeDrawer","handleCloseDrawer"],[8,"forceCloseDrawer","handleForceCloseDrawer"]]]]],["p-3663d19b",[[1,"p-attachment",{"enableCameraOnMobile":[4,"enable-camera-on-mobile"],"value":[1],"fileId":[1,"file-id"],"accept":[1],"label":[1],"helper":[1],"required":[516],"mode":[1],"placeholder":[1],"cameraTooltip":[1,"camera-tooltip"],"downloadTooltip":[1,"download-tooltip"],"uploadTooltip":[1,"upload-tooltip"],"deleteTooltip":[1,"delete-tooltip"],"loading":[4],"error":[1]}]]],["p-6b1995b5",[[1,"p-profile",{"dropdownLocation":[1,"dropdown-location"],"_dropdownOpen":[32],"_hasDropdownSlot":[32]},[[0,"slotchange","slotchange"]]]]],["p-2d456ab7",[[1,"p-navbar",{"_show":[32]},[[8,"closeNavbar","handleCloseNavbar"],[8,"openNavbar","handleOpenNavbar"]]]]],["p-7c520287",[[1,"p-card-header",{"variant":[1],"header":[1],"icon":[1],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"],"divider":[4]}]]],["p-a80d65ac",[[6,"p-navigation-item",{"icon":[1],"active":[4],"loading":[4],"as":[1],"counter":[8],"href":[1],"target":[1],"class":[1],"applyFullWidth":[4,"apply-full-width"]}]]],["p-c09353c8",[[1,"p-accordion",{"variant":[1],"header":[1],"open":[4],"closeable":[4],"openable":[4]}]]],["p-fc878df7",[[1,"p-cropper",{"value":[1],"returnType":[1,"return-type"],"_loaded":[32],"_currentScale":[32]},[[9,"resize","onResize"]]]]],["p-d64d2bcd",[[1,"p-stepper",{"steps":[1],"activeStep":[2,"active-step"],"enableAutoStatus":[4,"enable-auto-status"],"direction":[1],"align":[1],"contentPosition":[1,"content-position"],"_generatedOnce":[32],"_loaded":[32]},null,{"align":["_onAlignChange"],"direction":["_onDirectionChange"],"activeStep":["_onActiveStepChange"]}]]],["p-aee63a63",[[1,"p-info-panel",{"variant":[1],"header":[1],"content":[1],"closeable":[4]}]]],["p-580d30d8",[[1,"p-label",{"variant":[513],"iconOnly":[516,"icon-only"],"icon":[513],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"],"keepMobileContent":[516,"keep-mobile-content"]}]]],["p-7dc22659",[[1,"p-listing",{"_generatedOnce":[32]}]]],["p-8b2cfd75",[[1,"p-listing-item",{"icon":[1]}]]],["p-8e320264",[[4,"p-navigation-section",{"header":[1]}]]],["p-d3ce97c5",[[1,"p-tab-container"]]],["p-133e281e",[[1,"p-toast",{"variant":[1],"header":[1],"content":[1],"enableAction":[4,"enable-action"],"actionIcon":[1,"action-icon"],"actionIconFlip":[1,"action-icon-flip"],"actionIconRotate":[2,"action-icon-rotate"]}]]],["p-fec1b7e7",[[4,"p-avatar-group",{"extra":[2]}]]],["p-a21acfcb",[[1,"p-button-group",{"size":[1]},[[0,"slotchange","slotchange"]]]]],["p-e809c3a7",[[1,"p-card-body"]]],["p-e8ff6530",[[1,"p-card-container",{"variant":[1],"bgClass":[1,"bg-class"],"active":[4],"hoverable":[4],"shadow":[4],"border":[4]}]]],["p-565caa59",[[1,"p-content-slider",{"hideMobileIndicator":[4,"hide-mobile-indicator"],"disableDrag":[4,"disable-drag"],"disableAutoCenter":[4,"disable-auto-center"],"disableIndicatorClick":[4,"disable-indicator-click"],"_visibleIndex":[32],"_outerHeight":[32],"_totalWidth":[32],"_dragging":[32]},[[9,"mouseup","mouseUpHandler"],[9,"touchend","mouseUpHandler"],[9,"resize","resizeHandler"]]]]],["p-297f5612",[[1,"p-iban-icon",{"iban":[513],"variant":[513]}]]],["p-176d15ad",[[0,"p-illustration-deprecated",{"variant":[1]}]]],["p-956d7b6b",[[1,"p-layout",{"variant":[1]}]]],["p-59e53f22",[[70,"p-radio",{"value":[1],"disabled":[516],"required":[516],"id":[513],"name":[513],"checked":[516],"_nonce":[32]}]]],["p-6479a788",[[1,"p-tab-item",{"active":[4]}]]],["p-ab66da44",[[0,"p-table-column",{"path":[1537],"variant":[1537],"name":[1537],"flex":[1540],"useSlot":[1540,"use-slot"],"hasCheckbox":[1540,"has-checkbox"],"align":[1537],"sticky":[1540],"parsedSizes":[1040,"parsed-sizes"],"sizes":[1032]}]]],["p-c59b1d50",[[0,"p-table-extra-header",{"name":[1537],"sticky":[1540],"useSlot":[1540,"use-slot"],"align":[1537],"parsedSizes":[1040,"parsed-sizes"],"sizes":[1032]}]]],["p-d39f7288",[[0,"p-table-row-action",{"type":[1537],"icon":[1],"iconOnly":[4,"icon-only"],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"],"label":[1],"action":[16],"disabled":[4],"loading":[4],"showFunction":[16,"show-function"]}]]],["p-6908a33a",[[1,"p-toast-container",{"placement":[1]}]]],["p-e6b65d3f",[[70,"p-toggle",{"checked":[4],"disabled":[516],"required":[516],"id":[513],"name":[513],"_nonce":[32]}]]],["p-481a8ecd",[[1,"p-calendar",{"variant":[1],"value":[1],"preselectToday":[4,"preselect-today"],"disabledDates":[1,"disabled-dates"],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"disableWeekends":[4,"disable-weekends"],"enableToday":[4,"enable-today"],"todayText":[1,"today-text"],"mode":[1],"_view":[32],"_viewDate":[32],"_value":[32],"_minDate":[32],"_maxDate":[32],"_disabledDates":[32],"_enableToday":[32]},null,{"value":["_parseValue"],"minDate":["_parseMinDate"],"maxDate":["_parseMaxDate"],"disabledDates":["_parseDisabledDates"],"mode":["_modeChange"]}]]],["p-e8d09f71",[[1,"p-range",{"min":[2],"max":[2],"step":[2],"value":[2]}]]],["p-91130bb0",[[0,"p-avatar",{"variant":[1],"size":[513],"defaultImage":[1,"default-image"],"src":[1],"letters":[1],"_src":[32],"_failed":[32]},null,{"src":["onSrchChange"]}]]],["p-1b7643fe",[[1,"p-listing-line"]]],["p-641c408d",[[1,"p-navigation-title"]]],["p-ada3cb79",[[4,"p-floating-menu-item",{"hover":[4],"disabled":[4],"loading":[4],"icon":[1],"iconPosition":[1,"icon-position"],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"]}]]],["p-403f3774",[[1,"p-stepper-item",{"number":[2],"direction":[1],"align":[1],"contentPosition":[1,"content-position"],"finished":[4],"active":[4]}],[1,"p-stepper-line",{"active":[516],"direction":[513]}]]],["p-a5a4a0e2",[[0,"p-illustration",{"variant":[1]}]]],["p-42af84da",[[1,"p-drawer-header",{"showClose":[4,"show-close"]}],[1,"p-drawer-body"],[1,"p-drawer-container",{"closing":[4]}]]],["p-9018fd19",[[1,"p-backdrop",{"variant":[1],"applyBlur":[4,"apply-blur"],"closing":[4],"scrollLock":[4,"scroll-lock"],"class":[1]},[[2,"click","handleClick"]]]]],["p-46c3a583",[[0,"p-smile",{"variant":[1]}]]],["p-ad38422c",[[1,"p-modal-header",{"showClose":[4,"show-close"]}],[1,"p-modal-footer"],[1,"p-modal-body",{"roundedBottom":[4,"rounded-bottom"],"roundedTop":[4,"rounded-top"]}],[1,"p-modal-container",{"size":[1],"closing":[4]}]]],["p-e30c1063",[[1,"p-segment-item",{"variant":[1],"active":[4],"iconOnly":[4,"icon-only"],"icon":[1],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"]}],[1,"p-segment-container"],[1,"p-badge"]]],["p-0b2be68c",[[70,"p-checkbox",{"checked":[4],"indeterminate":[4],"disabled":[516],"required":[516],"id":[513],"name":[513],"_nonce":[32]}],[1,"p-dropdown",{"variant":[1],"placement":[513],"offset":[2],"strategy":[1],"show":[4],"applyMaxWidth":[4,"apply-max-width"],"applyFullWidth":[4,"apply-full-width"],"allowOverflow":[4,"allow-overflow"],"scrollable":[8],"insideClick":[4,"inside-click"],"disableTriggerClick":[4,"disable-trigger-click"],"manual":[4],"applyChevron":[4,"apply-chevron"],"chevronPosition":[1,"chevron-position"],"chevronDirection":[1,"chevron-direction"],"containerClass":[1,"container-class"],"isDatepicker":[4,"is-datepicker"]},[[6,"click","documentClickHandler"]],{"show":["onShowChange"]}],[1,"p-dropdown-menu-container",{"variant":[1],"maxWidth":[4,"max-width"],"class":[1],"fullWidth":[4,"full-width"],"allowOverflow":[4,"allow-overflow"],"scrollable":[8]}]]],["p-f7a0d7c6",[[1,"p-pagination-pages-item",{"variant":[1],"active":[4],"hover":[4],"disabled":[4]}],[1,"p-dropdown-menu-item",{"active":[4],"checkbox":[4],"variant":[1],"enableHover":[4,"enable-hover"],"enableTextWrap":[4,"enable-text-wrap"],"disabled":[4],"icon":[1],"iconWave":[4,"icon-wave"],"useContainer":[4,"use-container"],"autoHeight":[4,"auto-height"]}]]],["p-92cd2a4f",[[1,"p-divider",{"variant":[513],"alignContent":[513,"align-content"]}]]],["p-2379c577",[[1,"p-tooltip",{"variant":[1],"content":[1],"placement":[1],"offset":[2],"strategy":[1],"enableUserInput":[4,"enable-user-input"],"show":[4],"canManuallyClose":[4,"can-manually-close"]},[[2,"click","clickHandler"],[6,"click","documentClickHandler"],[1,"mouseenter","mouseEnterHandler"],[0,"focus","mouseEnterHandler"],[1,"mouseleave","mouseLeaveHandler"],[0,"blur","mouseLeaveHandler"]],{"show":["onShowChange"],"content":["onContentChange"]}]]],["p-2a25a0ba",[[65,"p-field",{"align":[1],"variant":[1],"id":[1],"size":[1],"type":[1],"properties":[8],"prefix":[1],"suffix":[1],"icon":[1],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"],"iconPosition":[1,"icon-position"],"value":[8],"label":[1],"loading":[4],"placeholder":[1],"helper":[1],"required":[516],"showOptional":[516,"show-optional"],"showAddOnEmpty":[516,"show-add-on-empty"],"addText":[513,"add-text"],"autofocus":[516],"error":[513],"autoShowError":[516,"auto-show-error"],"errorPlacement":[1,"error-placement"],"disabled":[516],"focused":[516],"forceShowTooltip":[516,"force-show-tooltip"],"selectAllOnFocus":[516,"select-all-on-focus"],"focusMethod":[1,"focus-method"],"optionalTemplate":[16,"optional-template"],"_focused":[32],"_nonce":[32]},[[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[2,"keyup","handleKeyup"],[2,"keydown","handleKeydown"]],{"value":["watchvalue"]}],[1,"p-field-container",{"id":[1],"align":[1],"label":[1],"loading":[4],"loadingSize":[1,"loading-size"],"variant":[1],"helper":[1],"required":[516],"showOptional":[516,"show-optional"],"error":[513],"errorPlacement":[1,"error-placement"],"forceShowTooltip":[516,"force-show-tooltip"],"optionalTemplate":[16,"optional-template"],"_locales":[32]},[[16,"localeChanged","_setLocales"]]],[1,"p-helper",{"strategy":[1],"placement":[1]}]]],["p-28724747",[[1,"p-pagination",{"hideOnSinglePage":[4,"hide-on-single-page"],"enablePaginationSize":[4,"enable-pagination-size"],"enablePaginationPages":[4,"enable-pagination-pages"],"page":[1538],"total":[2],"pageSize":[2,"page-size"],"pageSizeOptions":[16,"page-size-options"],"_hasPaginationPages":[32]}],[1,"p-pagination-pages",{"page":[1538],"dropdownPageTemplate":[16,"dropdown-page-template"],"pageSize":[2,"page-size"],"hideOnSinglePage":[4,"hide-on-single-page"],"total":[2],"_showDropdown":[32],"_dropdowns":[32],"_locales":[32]},[[16,"localeChanged","_setLocales"],[6,"click","documentClickHandler"]],{"page":["pageChangeHandler"],"pageSize":["pageChangeHandler"],"total":["pageChangeHandler"]}],[1,"p-pagination-size",{"size":[1538],"sizeOptions":[16,"size-options"],"itemTemplate":[16,"item-template"],"hidden":[4],"dropdownIsOpen":[32],"_locales":[32]},[[16,"localeChanged","_setLocales"]]]]],["p-61633f23",[[1,"p-table-footer",{"enablePaginationSize":[4,"enable-pagination-size"],"enablePaginationPages":[4,"enable-pagination-pages"],"loading":[4],"page":[1538],"total":[2],"pageSize":[2,"page-size"],"pageSizeOptions":[16,"page-size-options"],"tableHeaderHasAction":[4,"table-header-has-action"],"hideOnSinglePage":[4,"hide-on-single-page"],"_isPinned":[32],"_hasPaginationPages":[32]},[[9,"scroll","onScroll"]]],[1,"p-table-header",{"quickFilters":[1,"quick-filters"],"activeQuickFilterIdentifier":[1,"active-quick-filter-identifier"],"loading":[4],"enableSearch":[4,"enable-search"],"itemsSelectedAmount":[2,"items-selected-amount"],"query":[1025],"enableFilter":[4,"enable-filter"],"enableExport":[4,"enable-export"],"enableFilterDesktop":[4,"enable-filter-desktop"],"selectedFiltersAmount":[2,"selected-filters-amount"],"filterButtonTemplate":[16,"filter-button-template"],"enableAction":[4,"enable-action"],"actionLoading":[4,"action-loading"],"actionIcon":[1,"action-icon"],"actionText":[1,"action-text"],"canUseAction":[1028,"can-use-action"],"actionButtonTemplate":[16,"action-button-template"],"_locales":[32]},[[16,"localeChanged","_setLocales"]]],[1,"p-empty-state",{"illustration":[8],"header":[1],"content":[1],"enableAction":[4,"enable-action"],"actionText":[1,"action-text"],"actionVariant":[1,"action-variant"],"actionIcon":[1,"action-icon"],"actionIconPosition":[1,"action-icon-position"],"actionLoading":[4,"action-loading"]}],[1,"p-floating-menu-container",{"usedInTable":[4,"used-in-table"],"enableAmountSelected":[4,"enable-amount-selected"],"amount":[2],"enableClose":[4,"enable-close"],"amountSelectedTemplate":[16,"amount-selected-template"],"_locales":[32]},[[16,"localeChanged","_setLocales"]]],[4,"p-table-cell",{"variant":[1],"index":[2],"rowIndex":[2,"row-index"],"definition":[8],"item":[8],"value":[8],"checkbox":[8],"checkboxOffset":[4,"checkbox-offset"],"template":[16]}],[1,"p-table-row",{"variant":[1],"enableHover":[4,"enable-hover"],"checked":[4],"isLast":[4,"is-last"]}],[4,"p-table-container"],[1,"p-table-row-actions-container",{"checked":[4]}]]]]'),e)}));
1
+ import{p as e,b as a}from"./p-Dpmiv2da.js";export{s as setNonce}from"./p-Dpmiv2da.js";import{g as t}from"./p-DQuL1Twl.js";var o=()=>{const a=import.meta.url;const t={};if(a!==""){t.resourcesUrl=new URL(".",a).href}return e(t)};o().then((async e=>{await t();return a(JSON.parse('[["p-e59817a8",[[1,"p-button",{"label":[1],"as":[1],"variant":[1],"active":[4],"error":[4],"href":[1],"target":[1],"size":[1],"type":[1],"loading":[4],"chevron":[8],"chevronPosition":[1,"chevron-position"],"disabled":[4],"icon":[1],"iconOnly":[4,"icon-only"],"iconClass":[1,"icon-class"],"iconPosition":[1,"icon-position"],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"],"inheritText":[4,"inherit-text"],"buttonGroupPosition":[1,"button-group-position"],"class":[1]},[[2,"click","handleClick"]]],[1,"p-loader",{"show":[4],"variant":[1],"color":[1],"modalTitle":[1,"modal-title"],"modalDescription":[1,"modal-description"]}],[1,"p-icon",{"variant":[1],"size":[1],"rotate":[2],"flip":[1]}]]],["p-b94bc701",[[4,"p-table",{"items":[1],"loading":[4],"headerLoading":[4,"header-loading"],"footerLoading":[4,"footer-loading"],"amountOfLoadingRows":[2,"amount-of-loading-rows"],"enableRowSelection":[4,"enable-row-selection"],"rowSelectionLimit":[2,"row-selection-limit"],"enableRowClick":[4,"enable-row-click"],"selectedRows":[16,"selected-rows"],"enableFloatingMenu":[4,"enable-floating-menu"],"floatingMenuAmountSelectedTemplate":[16,"floating-menu-amount-selected-template"],"selectionKey":[1,"selection-key"],"canSelectKey":[1,"can-select-key"],"enableHeader":[4,"enable-header"],"quickFilters":[1,"quick-filters"],"activeQuickFilterIdentifier":[1,"active-quick-filter-identifier"],"enableSearch":[4,"enable-search"],"query":[1025],"enableFilter":[4,"enable-filter"],"enableFilterDesktop":[4,"enable-filter-desktop"],"selectedFiltersAmount":[2,"selected-filters-amount"],"filterButtonTemplate":[16,"filter-button-template"],"enableAction":[4,"enable-action"],"actionButtonLoading":[4,"action-button-loading"],"actionButtonEnabled":[4,"action-button-enabled"],"actionButtonIcon":[1,"action-button-icon"],"actionButtonText":[1,"action-button-text"],"actionButtonTemplate":[16,"action-button-template"],"enableFooter":[4,"enable-footer"],"enablePaginationSize":[4,"enable-pagination-size"],"enablePaginationPages":[4,"enable-pagination-pages"],"enableExport":[4,"enable-export"],"page":[1538],"total":[2],"pageSize":[2,"page-size"],"pageSizeOptions":[16,"page-size-options"],"hideOnSinglePage":[4,"hide-on-single-page"],"emptyStateHeader":[16,"empty-state-header"],"emptyStateContent":[16,"empty-state-content"],"emptyStateAction":[16,"empty-state-action"],"enableEmptyStateAction":[4,"enable-empty-state-action"],"emptyStateFilteredHeader":[16,"empty-state-filtered-header"],"emptyStateFilteredContent":[16,"empty-state-filtered-content"],"shadow":[4],"_locales":[32],"_extraHeaders":[32],"_columns":[32],"_items":[32],"_enableRowSelection":[32],"_rowSelectionLimit":[32],"_rowActionsFloating":[32],"_rowActionsRow":[32],"_footerHidden":[32]},[[16,"localeChanged","_setLocales"],[16,"tableDefinitionChanged","onTableDefinitionUpdated"],[4,"keydown","keyDown"],[4,"keyup","keyUp"],[4,"visibilitychange","visibilityChange"],[9,"resize","_setRowSelectionData"]],{"items":["_parseItems"],"enableRowSelection":["_setRowSelectionData"],"rowSelectionLimit":["_setRowSelectionData"],"selectedRows":["_setRowSelectionData"]}]]],["p-11df525e",[[64,"p-select",{"items":[1],"multi":[516],"strategy":[1],"icon":[1],"query":[1],"placeholder":[1],"autocompletePlaceholder":[1,"autocomplete-placeholder"],"value":[8],"displayKey":[1,"display-key"],"dropdownDisplayKey":[1,"dropdown-display-key"],"selectionDisplayKey":[1,"selection-display-key"],"valueKey":[1,"value-key"],"avatarKey":[1,"avatar-key"],"iconKey":[1,"icon-key"],"iconClassKey":[1,"icon-class-key"],"showIconOnSelectedItem":[1,"show-icon-on-selected-item"],"classKey":[1,"class-key"],"applyClassOnSelectedItem":[4,"apply-class-on-selected-item"],"applyClassOnSelectedItemInMenu":[4,"apply-class-on-selected-item-in-menu"],"avatarLettersKey":[1,"avatar-letters-key"],"identifierKey":[1,"identifier-key"],"queryKey":[1,"query-key"],"autoSelectFirst":[4,"auto-select-first"],"showChevron":[4,"show-chevron"],"maxDisplayedItems":[2,"max-displayed-items"],"enableAutocomplete":[4,"enable-autocomplete"],"enableTextWrap":[4,"enable-text-wrap"],"asyncFilter":[4,"async-filter"],"loading":[4],"enableSelectAll":[4,"enable-select-all"],"selectAllText":[1,"select-all-text"],"selectAllIcon":[1,"select-all-icon"],"size":[1],"prefix":[1],"label":[1],"helper":[1],"required":[516],"showOptional":[516,"show-optional"],"error":[513],"disabled":[516],"showAddItem":[4,"show-add-item"],"addItemText":[1,"add-item-text"],"emptyStateText":[1,"empty-state-text"],"_showDropdown":[32],"_selectedItem":[32],"_allSelected":[32],"_amountHidden":[32]},[[6,"click","documentClickHandler"]],{"value":["_valueChange"],"items":["itemChanges"],"_showDropdown":["_showDropdownChanges"],"multi":["multiChanges"]}]]],["p-6aa5fec2",[[64,"p-datepicker",{"placeholder":[1],"value":[1],"preselectToday":[4,"preselect-today"],"enableNativePicker":[4,"enable-native-picker"],"disabledDates":[1,"disabled-dates"],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"disableWeekends":[4,"disable-weekends"],"enableToday":[4,"enable-today"],"todayText":[1,"today-text"],"mode":[1],"format":[1],"hideIconWhenFilled":[4,"hide-icon-when-filled"],"size":[1],"prefix":[1],"label":[1],"loading":[4],"helper":[1],"required":[516],"showOptional":[516,"show-optional"],"error":[513],"disabled":[516],"strategy":[1],"placement":[513],"_showDropdown":[32],"_value":[32],"_minDate":[32],"_maxDate":[32],"_disabledDates":[32],"_isMobileBrowser":[32]},[[6,"click","documentClickHandler"]],{"value":["parseValue"],"minDate":["parseMinDate"],"maxDate":["parseMaxDate"],"disabledDates":["parseDisabledDates"]}]]],["p-ae9cc890",[[1,"p-modal",{"size":[1],"header":[1],"show":[4],"applyBlur":[4,"apply-blur"],"showClose":[4,"show-close"],"showMobileFooter":[4,"show-mobile-footer"],"backdropClickClose":[4,"backdrop-click-close"],"scrollLock":[4,"scroll-lock"],"_closing":[32]},[[8,"closeModal","handleCloseModal"]]]]],["p-50c0574b",[[1,"p-drawer",{"header":[1],"show":[4],"applyBlur":[4,"apply-blur"],"showClose":[4,"show-close"],"backdropClickClose":[4,"backdrop-click-close"],"canClose":[4,"can-close"],"scrollLock":[4,"scroll-lock"],"_closing":[32]},[[8,"closeDrawer","handleCloseDrawer"],[8,"forceCloseDrawer","handleForceCloseDrawer"]]]]],["p-3663d19b",[[1,"p-attachment",{"enableCameraOnMobile":[4,"enable-camera-on-mobile"],"value":[1],"fileId":[1,"file-id"],"accept":[1],"label":[1],"helper":[1],"required":[516],"mode":[1],"placeholder":[1],"cameraTooltip":[1,"camera-tooltip"],"downloadTooltip":[1,"download-tooltip"],"uploadTooltip":[1,"upload-tooltip"],"deleteTooltip":[1,"delete-tooltip"],"loading":[4],"error":[1]}]]],["p-6b1995b5",[[1,"p-profile",{"dropdownLocation":[1,"dropdown-location"],"_dropdownOpen":[32],"_hasDropdownSlot":[32]},[[0,"slotchange","slotchange"]]]]],["p-2d456ab7",[[1,"p-navbar",{"_show":[32]},[[8,"closeNavbar","handleCloseNavbar"],[8,"openNavbar","handleOpenNavbar"]]]]],["p-7c520287",[[1,"p-card-header",{"variant":[1],"header":[1],"icon":[1],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"],"divider":[4]}]]],["p-a80d65ac",[[6,"p-navigation-item",{"icon":[1],"active":[4],"loading":[4],"as":[1],"counter":[8],"href":[1],"target":[1],"class":[1],"applyFullWidth":[4,"apply-full-width"]}]]],["p-c09353c8",[[1,"p-accordion",{"variant":[1],"header":[1],"open":[4],"closeable":[4],"openable":[4]}]]],["p-fc878df7",[[1,"p-cropper",{"value":[1],"returnType":[1,"return-type"],"_loaded":[32],"_currentScale":[32]},[[9,"resize","onResize"]]]]],["p-d64d2bcd",[[1,"p-stepper",{"steps":[1],"activeStep":[2,"active-step"],"enableAutoStatus":[4,"enable-auto-status"],"direction":[1],"align":[1],"contentPosition":[1,"content-position"],"_generatedOnce":[32],"_loaded":[32]},null,{"align":["_onAlignChange"],"direction":["_onDirectionChange"],"activeStep":["_onActiveStepChange"]}]]],["p-aee63a63",[[1,"p-info-panel",{"variant":[1],"header":[1],"content":[1],"closeable":[4]}]]],["p-580d30d8",[[1,"p-label",{"variant":[513],"iconOnly":[516,"icon-only"],"icon":[513],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"],"keepMobileContent":[516,"keep-mobile-content"]}]]],["p-7dc22659",[[1,"p-listing",{"_generatedOnce":[32]}]]],["p-8b2cfd75",[[1,"p-listing-item",{"icon":[1]}]]],["p-8e320264",[[4,"p-navigation-section",{"header":[1]}]]],["p-d3ce97c5",[[1,"p-tab-container"]]],["p-133e281e",[[1,"p-toast",{"variant":[1],"header":[1],"content":[1],"enableAction":[4,"enable-action"],"actionIcon":[1,"action-icon"],"actionIconFlip":[1,"action-icon-flip"],"actionIconRotate":[2,"action-icon-rotate"]}]]],["p-fec1b7e7",[[4,"p-avatar-group",{"extra":[2]}]]],["p-a21acfcb",[[1,"p-button-group",{"size":[1]},[[0,"slotchange","slotchange"]]]]],["p-e809c3a7",[[1,"p-card-body"]]],["p-e8ff6530",[[1,"p-card-container",{"variant":[1],"bgClass":[1,"bg-class"],"active":[4],"hoverable":[4],"shadow":[4],"border":[4]}]]],["p-565caa59",[[1,"p-content-slider",{"hideMobileIndicator":[4,"hide-mobile-indicator"],"disableDrag":[4,"disable-drag"],"disableAutoCenter":[4,"disable-auto-center"],"disableIndicatorClick":[4,"disable-indicator-click"],"_visibleIndex":[32],"_outerHeight":[32],"_totalWidth":[32],"_dragging":[32]},[[9,"mouseup","mouseUpHandler"],[9,"touchend","mouseUpHandler"],[9,"resize","resizeHandler"]]]]],["p-297f5612",[[1,"p-iban-icon",{"iban":[513],"variant":[513]}]]],["p-176d15ad",[[0,"p-illustration-deprecated",{"variant":[1]}]]],["p-956d7b6b",[[1,"p-layout",{"variant":[1]}]]],["p-59e53f22",[[70,"p-radio",{"value":[1],"disabled":[516],"required":[516],"id":[513],"name":[513],"checked":[516],"_nonce":[32]}]]],["p-6479a788",[[1,"p-tab-item",{"active":[4]}]]],["p-ab66da44",[[0,"p-table-column",{"path":[1537],"variant":[1537],"name":[1537],"flex":[1540],"useSlot":[1540,"use-slot"],"hasCheckbox":[1540,"has-checkbox"],"align":[1537],"sticky":[1540],"parsedSizes":[1040,"parsed-sizes"],"sizes":[1032]}]]],["p-c59b1d50",[[0,"p-table-extra-header",{"name":[1537],"sticky":[1540],"useSlot":[1540,"use-slot"],"align":[1537],"parsedSizes":[1040,"parsed-sizes"],"sizes":[1032]}]]],["p-d39f7288",[[0,"p-table-row-action",{"type":[1537],"icon":[1],"iconOnly":[4,"icon-only"],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"],"label":[1],"action":[16],"disabled":[4],"loading":[4],"showFunction":[16,"show-function"]}]]],["p-6908a33a",[[1,"p-toast-container",{"placement":[1]}]]],["p-e6b65d3f",[[70,"p-toggle",{"checked":[4],"disabled":[516],"required":[516],"id":[513],"name":[513],"_nonce":[32]}]]],["p-e5ffe266",[[1,"p-calendar",{"variant":[1],"value":[1],"preselectToday":[4,"preselect-today"],"disabledDates":[1,"disabled-dates"],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"disableWeekends":[4,"disable-weekends"],"enableToday":[4,"enable-today"],"todayText":[1,"today-text"],"mode":[1],"_view":[32],"_viewDate":[32],"_value":[32],"_minDate":[32],"_maxDate":[32],"_disabledDates":[32],"_enableToday":[32]},null,{"value":["_parseValue"],"minDate":["_parseMinDate"],"maxDate":["_parseMaxDate"],"disabledDates":["_parseDisabledDates"],"mode":["_modeChange"]}]]],["p-e8d09f71",[[1,"p-range",{"min":[2],"max":[2],"step":[2],"value":[2]}]]],["p-91130bb0",[[0,"p-avatar",{"variant":[1],"size":[513],"defaultImage":[1,"default-image"],"src":[1],"letters":[1],"_src":[32],"_failed":[32]},null,{"src":["onSrchChange"]}]]],["p-1b7643fe",[[1,"p-listing-line"]]],["p-641c408d",[[1,"p-navigation-title"]]],["p-ada3cb79",[[4,"p-floating-menu-item",{"hover":[4],"disabled":[4],"loading":[4],"icon":[1],"iconPosition":[1,"icon-position"],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"]}]]],["p-403f3774",[[1,"p-stepper-item",{"number":[2],"direction":[1],"align":[1],"contentPosition":[1,"content-position"],"finished":[4],"active":[4]}],[1,"p-stepper-line",{"active":[516],"direction":[513]}]]],["p-a5a4a0e2",[[0,"p-illustration",{"variant":[1]}]]],["p-42af84da",[[1,"p-drawer-header",{"showClose":[4,"show-close"]}],[1,"p-drawer-body"],[1,"p-drawer-container",{"closing":[4]}]]],["p-9018fd19",[[1,"p-backdrop",{"variant":[1],"applyBlur":[4,"apply-blur"],"closing":[4],"scrollLock":[4,"scroll-lock"],"class":[1]},[[2,"click","handleClick"]]]]],["p-46c3a583",[[0,"p-smile",{"variant":[1]}]]],["p-ad38422c",[[1,"p-modal-header",{"showClose":[4,"show-close"]}],[1,"p-modal-footer"],[1,"p-modal-body",{"roundedBottom":[4,"rounded-bottom"],"roundedTop":[4,"rounded-top"]}],[1,"p-modal-container",{"size":[1],"closing":[4]}]]],["p-e30c1063",[[1,"p-segment-item",{"variant":[1],"active":[4],"iconOnly":[4,"icon-only"],"icon":[1],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"]}],[1,"p-segment-container"],[1,"p-badge"]]],["p-0b2be68c",[[70,"p-checkbox",{"checked":[4],"indeterminate":[4],"disabled":[516],"required":[516],"id":[513],"name":[513],"_nonce":[32]}],[1,"p-dropdown",{"variant":[1],"placement":[513],"offset":[2],"strategy":[1],"show":[4],"applyMaxWidth":[4,"apply-max-width"],"applyFullWidth":[4,"apply-full-width"],"allowOverflow":[4,"allow-overflow"],"scrollable":[8],"insideClick":[4,"inside-click"],"disableTriggerClick":[4,"disable-trigger-click"],"manual":[4],"applyChevron":[4,"apply-chevron"],"chevronPosition":[1,"chevron-position"],"chevronDirection":[1,"chevron-direction"],"containerClass":[1,"container-class"],"isDatepicker":[4,"is-datepicker"]},[[6,"click","documentClickHandler"]],{"show":["onShowChange"]}],[1,"p-dropdown-menu-container",{"variant":[1],"maxWidth":[4,"max-width"],"class":[1],"fullWidth":[4,"full-width"],"allowOverflow":[4,"allow-overflow"],"scrollable":[8]}]]],["p-f7a0d7c6",[[1,"p-pagination-pages-item",{"variant":[1],"active":[4],"hover":[4],"disabled":[4]}],[1,"p-dropdown-menu-item",{"active":[4],"checkbox":[4],"variant":[1],"enableHover":[4,"enable-hover"],"enableTextWrap":[4,"enable-text-wrap"],"disabled":[4],"icon":[1],"iconWave":[4,"icon-wave"],"useContainer":[4,"use-container"],"autoHeight":[4,"auto-height"]}]]],["p-92cd2a4f",[[1,"p-divider",{"variant":[513],"alignContent":[513,"align-content"]}]]],["p-2379c577",[[1,"p-tooltip",{"variant":[1],"content":[1],"placement":[1],"offset":[2],"strategy":[1],"enableUserInput":[4,"enable-user-input"],"show":[4],"canManuallyClose":[4,"can-manually-close"]},[[2,"click","clickHandler"],[6,"click","documentClickHandler"],[1,"mouseenter","mouseEnterHandler"],[0,"focus","mouseEnterHandler"],[1,"mouseleave","mouseLeaveHandler"],[0,"blur","mouseLeaveHandler"]],{"show":["onShowChange"],"content":["onContentChange"]}]]],["p-2a25a0ba",[[65,"p-field",{"align":[1],"variant":[1],"id":[1],"size":[1],"type":[1],"properties":[8],"prefix":[1],"suffix":[1],"icon":[1],"iconFlip":[1,"icon-flip"],"iconRotate":[2,"icon-rotate"],"iconPosition":[1,"icon-position"],"value":[8],"label":[1],"loading":[4],"placeholder":[1],"helper":[1],"required":[516],"showOptional":[516,"show-optional"],"showAddOnEmpty":[516,"show-add-on-empty"],"addText":[513,"add-text"],"autofocus":[516],"error":[513],"autoShowError":[516,"auto-show-error"],"errorPlacement":[1,"error-placement"],"disabled":[516],"focused":[516],"forceShowTooltip":[516,"force-show-tooltip"],"selectAllOnFocus":[516,"select-all-on-focus"],"focusMethod":[1,"focus-method"],"optionalTemplate":[16,"optional-template"],"_focused":[32],"_nonce":[32]},[[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[2,"keyup","handleKeyup"],[2,"keydown","handleKeydown"]],{"value":["watchvalue"]}],[1,"p-field-container",{"id":[1],"align":[1],"label":[1],"loading":[4],"loadingSize":[1,"loading-size"],"variant":[1],"helper":[1],"required":[516],"showOptional":[516,"show-optional"],"error":[513],"errorPlacement":[1,"error-placement"],"forceShowTooltip":[516,"force-show-tooltip"],"optionalTemplate":[16,"optional-template"],"_locales":[32]},[[16,"localeChanged","_setLocales"]]],[1,"p-helper",{"strategy":[1],"placement":[1]}]]],["p-28724747",[[1,"p-pagination",{"hideOnSinglePage":[4,"hide-on-single-page"],"enablePaginationSize":[4,"enable-pagination-size"],"enablePaginationPages":[4,"enable-pagination-pages"],"page":[1538],"total":[2],"pageSize":[2,"page-size"],"pageSizeOptions":[16,"page-size-options"],"_hasPaginationPages":[32]}],[1,"p-pagination-pages",{"page":[1538],"dropdownPageTemplate":[16,"dropdown-page-template"],"pageSize":[2,"page-size"],"hideOnSinglePage":[4,"hide-on-single-page"],"total":[2],"_showDropdown":[32],"_dropdowns":[32],"_locales":[32]},[[16,"localeChanged","_setLocales"],[6,"click","documentClickHandler"]],{"page":["pageChangeHandler"],"pageSize":["pageChangeHandler"],"total":["pageChangeHandler"]}],[1,"p-pagination-size",{"size":[1538],"sizeOptions":[16,"size-options"],"itemTemplate":[16,"item-template"],"hidden":[4],"dropdownIsOpen":[32],"_locales":[32]},[[16,"localeChanged","_setLocales"]]]]],["p-6dc60fc9",[[1,"p-table-footer",{"enablePaginationSize":[4,"enable-pagination-size"],"enablePaginationPages":[4,"enable-pagination-pages"],"loading":[4],"page":[1538],"total":[2],"pageSize":[2,"page-size"],"pageSizeOptions":[16,"page-size-options"],"tableHeaderHasAction":[4,"table-header-has-action"],"hideOnSinglePage":[4,"hide-on-single-page"],"_isPinned":[32],"_hasPaginationPages":[32]},[[9,"scroll","onScroll"]]],[1,"p-table-header",{"quickFilters":[1,"quick-filters"],"activeQuickFilterIdentifier":[1,"active-quick-filter-identifier"],"loading":[4],"enableSearch":[4,"enable-search"],"itemsSelectedAmount":[2,"items-selected-amount"],"query":[1025],"enableFilter":[4,"enable-filter"],"enableExport":[4,"enable-export"],"enableFilterDesktop":[4,"enable-filter-desktop"],"selectedFiltersAmount":[2,"selected-filters-amount"],"filterButtonTemplate":[16,"filter-button-template"],"enableAction":[4,"enable-action"],"actionLoading":[4,"action-loading"],"actionIcon":[1,"action-icon"],"actionText":[1,"action-text"],"canUseAction":[1028,"can-use-action"],"actionButtonTemplate":[16,"action-button-template"],"_locales":[32]},[[16,"localeChanged","_setLocales"]]],[1,"p-empty-state",{"illustration":[8],"header":[1],"content":[1],"enableAction":[4,"enable-action"],"actionText":[1,"action-text"],"actionVariant":[1,"action-variant"],"actionIcon":[1,"action-icon"],"actionIconPosition":[1,"action-icon-position"],"actionLoading":[4,"action-loading"]}],[1,"p-floating-menu-container",{"usedInTable":[4,"used-in-table"],"enableAmountSelected":[4,"enable-amount-selected"],"amount":[2],"enableClose":[4,"enable-close"],"amountSelectedTemplate":[16,"amount-selected-template"],"_locales":[32]},[[16,"localeChanged","_setLocales"]]],[4,"p-table-cell",{"variant":[1],"index":[2],"rowIndex":[2,"row-index"],"definition":[8],"item":[8],"value":[8],"checkbox":[8],"checkboxOffset":[4,"checkbox-offset"],"template":[16]}],[1,"p-table-row",{"variant":[1],"enableHover":[4,"enable-hover"],"checked":[4],"isLast":[4,"is-last"]}],[4,"p-table-container"],[1,"p-table-row-actions-container",{"checked":[4]}]]]]'),e)}));
2
2
  //# sourceMappingURL=paperless.esm.js.map
@@ -552,7 +552,7 @@ const Calendar = class {
552
552
  const days = Array.from(Array(getDaysInMonth(this._viewDate)).keys());
553
553
  return days.map(day => {
554
554
  day = day + 1;
555
- const date = setDate(this._viewDate, day);
555
+ const date = index.startOfDay(setDate(this._viewDate, day));
556
556
  const dayOfWeek = getDay(date);
557
557
  return {
558
558
  day,
@@ -1 +1 @@
1
- {"file":"p-calendar.entry.cjs.js","mappings":";;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,OAAO,CAAC,SAAS,EAAE,WAAW,EAAE;AACxD,EAAEA,kBAAY,CAAC,CAAC,EAAE,SAAS,CAAC;AAC5B,EAAE,IAAI,IAAI,GAAGC,YA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I,CAAC,SAAS,EAAE,MAAM,CAAC;AACjD,YAAA,MAAM,YAAY,GAAGI,kBAAY,CAAC,OAAO,CAAC;YAC1C,IACC,CAAClB,cAAQ,CAAC,YAAY,EAAEkB,kBAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBACnD,CAACf,eAAS,CAAC,YAAY,EAAE,IAAI,CAAC,QAAQ,CAAC;gBACxCF,aAAO,CAAC,YAAY,EAAE,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EAC/C;AACD,gBAAA,OAAO,KAAK;;;AAId,QAAA,IAAI,IAAI,KAAK,MAAM,EAAE;YACpB,IAAI,OAAO,GAAGc,cAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC;AAC9C,YAAA,MAAM,IAAI,GAAGH,aAAO,CAAC,OAAO,CAAC;AAC7B,YAAA,IAAI,IAAI,GAAGA,aAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,GAAGA,aAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;AACnE,gBAAA,OAAO,KAAK;;;AAId,QAAA,OAAO,IAAI;;IAGJ,gBAAgB,GAAA;QACvB,MAAM,IAAI,GAAGG,cAAQ,CAAC,IAAI,IAAI,EAAE,EAAE,EAAE,CAAC;AAErC,QAAA,IAAI,IAAI,GAAGH,aAAO,CAAC,IAAI,CAAC;QACxB,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,GAAG,EAAE;AAEhC,QAAA,OAAOC,aAAO,CAAC,IAAI,EAAE,IAAI,CAAC;;;;;;;;;;;;;;","names":["requiredArgs","toDate","toInteger","cva","isBefore","isAfter","isValid","isSameDay","h","ThemedHost","isWeekend","format","state","nl","enUS","cn","getYear","setYear","addMonths","addYears","startOfDay","index","startOfMonth"],"sources":["../../node_modules/date-fns/esm/addDays/index.js","../../node_modules/date-fns/esm/endOfMonth/index.js","../../node_modules/date-fns/esm/getDay/index.js","../../node_modules/date-fns/esm/getDaysInMonth/index.js","../../node_modules/date-fns/esm/isSameMonth/index.js","../../node_modules/date-fns/esm/isSameYear/index.js","../../node_modules/date-fns/esm/setMonth/index.js","../../node_modules/date-fns/esm/setDate/index.js","src/components/molecules/calendar/calendar.component.css?tag=p-calendar&encapsulation=shadow","src/components/molecules/calendar/calendar.component.tsx"],"sourcesContent":["import toInteger from \"../_lib/toInteger/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name addDays\n * @category Day Helpers\n * @summary Add the specified number of days to the given date.\n *\n * @description\n * Add the specified number of days to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} - the new date with the days added\n * @throws {TypeError} - 2 arguments required\n *\n * @example\n * // Add 10 days to 1 September 2014:\n * const result = addDays(new Date(2014, 8, 1), 10)\n * //=> Thu Sep 11 2014 00:00:00\n */\nexport default function addDays(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var amount = toInteger(dirtyAmount);\n if (isNaN(amount)) {\n return new Date(NaN);\n }\n if (!amount) {\n // If 0 days, no-op to avoid changing times in the hour before end of DST\n return date;\n }\n date.setDate(date.getDate() + amount);\n return date;\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name endOfMonth\n * @category Month Helpers\n * @summary Return the end of a month for the given date.\n *\n * @description\n * Return the end of a month for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of a month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The end of a month for 2 September 2014 11:55:00:\n * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 30 2014 23:59:59.999\n */\nexport default function endOfMonth(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var month = date.getMonth();\n date.setFullYear(date.getFullYear(), month + 1, 0);\n date.setHours(23, 59, 59, 999);\n return date;\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name getDay\n * @category Weekday Helpers\n * @summary Get the day of the week of the given date.\n *\n * @description\n * Get the day of the week of the given date.\n *\n * @param {Date|Number} date - the given date\n * @returns {0|1|2|3|4|5|6} the day of week, 0 represents Sunday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Which day of the week is 29 February 2012?\n * const result = getDay(new Date(2012, 1, 29))\n * //=> 3\n */\nexport default function getDay(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var day = date.getDay();\n return day;\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name getDaysInMonth\n * @category Month Helpers\n * @summary Get the number of days in a month of the given date.\n *\n * @description\n * Get the number of days in a month of the given date.\n *\n * @param {Date|Number} date - the given date\n * @returns {Number} the number of days in a month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // How many days are in February 2000?\n * const result = getDaysInMonth(new Date(2000, 1))\n * //=> 29\n */\nexport default function getDaysInMonth(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var year = date.getFullYear();\n var monthIndex = date.getMonth();\n var lastDayOfMonth = new Date(0);\n lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);\n lastDayOfMonth.setHours(0, 0, 0, 0);\n return lastDayOfMonth.getDate();\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isSameMonth\n * @category Month Helpers\n * @summary Are the given dates in the same month (and year)?\n *\n * @description\n * Are the given dates in the same month (and year)?\n *\n * @param {Date|Number} dateLeft - the first date to check\n * @param {Date|Number} dateRight - the second date to check\n * @returns {Boolean} the dates are in the same month (and year)\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Are 2 September 2014 and 25 September 2014 in the same month?\n * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))\n * //=> true\n *\n * @example\n * // Are 2 September 2014 and 25 September 2015 in the same month?\n * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))\n * //=> false\n */\nexport default function isSameMonth(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n return dateLeft.getFullYear() === dateRight.getFullYear() && dateLeft.getMonth() === dateRight.getMonth();\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isSameYear\n * @category Year Helpers\n * @summary Are the given dates in the same year?\n *\n * @description\n * Are the given dates in the same year?\n *\n * @param {Date|Number} dateLeft - the first date to check\n * @param {Date|Number} dateRight - the second date to check\n * @returns {Boolean} the dates are in the same year\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Are 2 September 2014 and 25 September 2014 in the same year?\n * const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25))\n * //=> true\n */\nexport default function isSameYear(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n return dateLeft.getFullYear() === dateRight.getFullYear();\n}","import toInteger from \"../_lib/toInteger/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport getDaysInMonth from \"../getDaysInMonth/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name setMonth\n * @category Month Helpers\n * @summary Set the month to the given date.\n *\n * @description\n * Set the month to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} month - the month of the new date\n * @returns {Date} the new date with the month set\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Set February to 1 September 2014:\n * const result = setMonth(new Date(2014, 8, 1), 1)\n * //=> Sat Feb 01 2014 00:00:00\n */\nexport default function setMonth(dirtyDate, dirtyMonth) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var month = toInteger(dirtyMonth);\n var year = date.getFullYear();\n var day = date.getDate();\n var dateWithDesiredMonth = new Date(0);\n dateWithDesiredMonth.setFullYear(year, month, 15);\n dateWithDesiredMonth.setHours(0, 0, 0, 0);\n var daysInMonth = getDaysInMonth(dateWithDesiredMonth);\n // Set the last day of the new month\n // if the original date was the last day of the longer month\n date.setMonth(month, Math.min(day, daysInMonth));\n return date;\n}","import toInteger from \"../_lib/toInteger/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name setDate\n * @category Day Helpers\n * @summary Set the day of the month to the given date.\n *\n * @description\n * Set the day of the month to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} dayOfMonth - the day of the month of the new date\n * @returns {Date} the new date with the day of the month set\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Set the 30th day of the month to 1 September 2014:\n * const result = setDate(new Date(2014, 8, 1), 30)\n * //=> Tue Sep 30 2014 00:00:00\n */\nexport default function setDate(dirtyDate, dirtyDayOfMonth) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var dayOfMonth = toInteger(dirtyDayOfMonth);\n date.setDate(dayOfMonth);\n return date;\n}","","import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\th,\n\tProp,\n\tState,\n\tWatch,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport {\n\taddDays,\n\taddMonths,\n\taddYears,\n\tendOfMonth,\n\tformat,\n\tgetDay,\n\tgetDaysInMonth,\n\tgetYear,\n\tisAfter,\n\tisBefore,\n\tisSameDay,\n\tisSameMonth,\n\tisSameYear,\n\tisValid,\n\tisWeekend,\n\tsetDate,\n\tsetMonth,\n\tsetYear,\n\tstartOfDay,\n\tstartOfMonth,\n} from 'date-fns';\nimport { nl, enUS } from 'date-fns/locale';\nimport { cn } from '../../../utils/cn';\nimport { state } from '../../../state';\nimport { ThemedHost } from '../../../internal/themed-host.component';\n\nconst calendar = cva(['w-[17.5rem] flex flex-col gap-4'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: ['p-2 rounded-lg drop-shadow-2', 'border border-storm-100'],\n\t\t\tembedded: 'p-1',\n\t\t},\n\t},\n});\n\nconst header = cva(\n\t[\n\t\t'flex items-center gap-2',\n\t\t'w-full p-2 rounded-lg',\n\t\t'bg-off-white-300 dark:bg-white/15',\n\t],\n\t{\n\t\tvariants: {\n\t\t\ttype: {\n\t\t\t\tday: 'justify-between',\n\t\t\t\tmonth: 'justify-between',\n\t\t\t\tyear: 'justify-center',\n\t\t\t},\n\t\t},\n\t}\n);\n\nconst view = cva(['flex flex-col gap-2', 'w-full'], {\n\tvariants: {\n\t\tview: {\n\t\t\tday: 'h-auto min-h-[12rem]',\n\t\t\tmonth: 'min-h-[15rem]',\n\t\t\tyear: 'max-h-[15rem]',\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-calendar',\n\tstyleUrl: 'calendar.component.css',\n\tshadow: true,\n})\nexport class Calendar {\n\t/**\n\t * The variant of the button\n\t */\n\t@Prop() variant: 'default' | 'embedded' = 'default';\n\n\t/**\n\t * The current value\n\t */\n\t@Prop() value?: Date | string;\n\n\t/**\n\t * Wether to automatically preselect today\n\t */\n\t@Prop() preselectToday: boolean = false;\n\n\t/**\n\t * Disabled dates\n\t */\n\t@Prop() disabledDates?: Array<Date | string> | string;\n\n\t/**\n\t * Min date\n\t */\n\t@Prop() minDate: Date | string | null = null;\n\n\t/**\n\t * Max date\n\t */\n\t@Prop() maxDate: Date | string | null = null;\n\n\t/**\n\t * Wether to disable the weekends\n\t */\n\t@Prop() disableWeekends: boolean = false;\n\n\t/**\n\t * Wether to enable the today button\n\t */\n\t@Prop() enableToday: boolean = true;\n\n\t/**\n\t * The text to display on the today tooltip\n\t */\n\t@Prop() todayText: string = 'today';\n\n\t/**\n\t * The mode of the datepicker\n\t */\n\t@Prop() mode: 'year' | 'month' | 'day' = 'day';\n\n\t/**\n\t * Event when the value changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tvalueChange: EventEmitter<any>;\n\n\tprivate _today = new Date();\n\t@State() private _view: 'year' | 'month' | 'day' = this.mode;\n\t@State() private _viewDate = this._today;\n\n\t@State() private _value: Date;\n\t@State() private _minDate: Date;\n\t@State() private _maxDate: Date;\n\t@State() private _disabledDates: Date[] = [];\n\n\t@State() private _enableToday = true;\n\n\tprivate _weekDays = Array.from(Array(7).keys());\n\tprivate _yearItemsRef: HTMLDivElement;\n\n\tcomponentWillLoad() {\n\t\tif (this.disabledDates) {\n\t\t\tthis._parseDisabledDates(this.disabledDates);\n\t\t}\n\n\t\tthis._parseMinDate(this.minDate);\n\t\tthis._parseMaxDate(this.maxDate);\n\n\t\tthis._parseValue(this.value);\n\n\t\tif (this._value) {\n\t\t\tthis._viewDate = this._value;\n\t\t}\n\n\t\tif (isBefore(this._viewDate, this._minDate)) {\n\t\t\tthis._viewDate = this._minDate;\n\t\t}\n\n\t\tif (isAfter(this._viewDate, this._maxDate)) {\n\t\t\tthis._viewDate = this._maxDate;\n\t\t}\n\n\t\tthis._modeChange(this.mode);\n\t}\n\n\tcomponentWillRender() {\n\t\tthis._enableToday = this.enableToday && this._checkTodayButton();\n\t}\n\n\tcomponentDidRender() {\n\t\tif (this._view === 'year') {\n\t\t\tthis._scrollYearIntoView();\n\t\t}\n\t}\n\n\t@Watch('value')\n\tprivate _parseValue(value: string | Date) {\n\t\tif (!value && this.preselectToday) {\n\t\t\tvalue = new Date();\n\t\t}\n\n\t\tif (typeof value === 'string') {\n\t\t\tvalue = new Date(value);\n\t\t}\n\n\t\tif (isValid(value) && !isSameDay(value, this._viewDate)) {\n\t\t\tthis._viewDate = value;\n\t\t}\n\n\t\tthis._setValue(value);\n\t}\n\n\t@Watch('minDate')\n\tprivate _parseMinDate(minDate: string | Date | null) {\n\t\tif (minDate === null || minDate === '') {\n\t\t\tthis.minDate = new Date(1970, 0, 1);\n\t\t\treturn;\n\t\t}\n\n\t\tif (typeof minDate === 'string') {\n\t\t\tminDate = new Date(minDate);\n\t\t}\n\n\t\tif (!isValid(minDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._minDate = minDate;\n\n\t\tif (isBefore(this._viewDate, this._minDate)) {\n\t\t\tthis._viewDate = this._minDate;\n\t\t}\n\t}\n\n\t@Watch('maxDate')\n\tprivate _parseMaxDate(maxDate: string | Date | null) {\n\t\tif (maxDate === null || maxDate === '') {\n\t\t\tthis.maxDate = this._getAutomaticMax();\n\t\t\treturn;\n\t\t}\n\n\t\tif (typeof maxDate === 'string') {\n\t\t\tmaxDate = new Date(maxDate);\n\t\t}\n\n\t\tif (!isValid(maxDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._maxDate = maxDate;\n\n\t\tif (isAfter(this._viewDate, this._maxDate)) {\n\t\t\tthis._viewDate = this._maxDate;\n\t\t}\n\t}\n\n\t@Watch('disabledDates')\n\tprivate _parseDisabledDates(disabledDates: Array<string | Date> | string) {\n\t\tif (typeof disabledDates === 'string') {\n\t\t\tdisabledDates = JSON.parse(disabledDates);\n\t\t}\n\n\t\tif (!disabledDates || !Array.isArray(disabledDates)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// normalize all to date\n\t\tthis._disabledDates = disabledDates\n\t\t\t.map(date => {\n\t\t\t\tif (typeof date === 'string') {\n\t\t\t\t\treturn new Date(date);\n\t\t\t\t}\n\n\t\t\t\treturn date;\n\t\t\t})\n\t\t\t.filter(date => isValid(date));\n\t}\n\n\t@Watch('mode')\n\t_modeChange(mode: 'year' | 'month' | 'day') {\n\t\tif (mode === 'year' && this._view !== 'year') {\n\t\t\tthis._view = 'year';\n\t\t}\n\n\t\tif (mode === 'month' && this._view === 'day') {\n\t\t\tthis._view = 'month';\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<ThemedHost>\n\t\t\t\t<div class={calendar({ variant: this.variant })}>{this._getView()}</div>\n\t\t\t</ThemedHost>\n\t\t);\n\t}\n\n\tprivate _checkTodayButton() {\n\t\tif (this._maxDate && isAfter(this._today, this._maxDate)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (this._minDate && isBefore(this._today, this._minDate)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (this.disableWeekends && isWeekend(this._today)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (this.mode !== 'day') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tprivate _getView() {\n\t\tif (this._view === 'year') {\n\t\t\treturn this._getYearView();\n\t\t}\n\n\t\tif (this._view === 'month') {\n\t\t\treturn this._getMonthView();\n\t\t}\n\n\t\treturn this._getDayView();\n\t}\n\n\t/* With this, we shall hack the system in ways no one would ever have thought.\n <div class=\"col-start-1 col-start-2 col-start-3 col-start-4 col-start-5 col-start-6 col-start-7\"></div>\n */\n\tprivate _getDayView() {\n\t\tconst daysInMonth = this._generateDaysInMonth();\n\t\treturn (\n\t\t\t<div class={view({ view: 'day' })}>\n\t\t\t\t{this._getHeader('day')}\n\n\t\t\t\t<div class='grid grid-cols-7 justify-between gap-1'>\n\t\t\t\t\t{this._weekDays.map(weekday => (\n\t\t\t\t\t\t<span class='w-8 text-center text-xs text-storm-200'>\n\t\t\t\t\t\t\t{format(\n\t\t\t\t\t\t\t\taddDays(new Date(2022, 7, 1), weekday),\n\t\t\t\t\t\t\t\tstate.locale === 'nl' ? 'EEEEEE' : 'eee',\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tlocale: state.locale === 'nl' ? nl : enUS,\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t))}\n\t\t\t\t\t{daysInMonth.map(day => {\n\t\t\t\t\t\treturn day.active ? (\n\t\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\t\tvariant='primary'\n\t\t\t\t\t\t\t\tclass={cn('w-8', `col-start-${day.offset}`)}\n\t\t\t\t\t\t\t\tonClick={() => this._setValue(day.date)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{day.day}\n\t\t\t\t\t\t\t</p-button>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<time\n\t\t\t\t\t\t\t\tclass={cn(\n\t\t\t\t\t\t\t\t\t'normal flex items-center justify-center rounded-lg',\n\t\t\t\t\t\t\t\t\t'h-8 w-8 text-sm font-semibold',\n\t\t\t\t\t\t\t\t\t'text-storm-300',\n\t\t\t\t\t\t\t\t\t'dark:bg-white/15',\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t'cursor-pointer hover:bg-white-600 hover:text-storm-500 dark:text-white dark:hover:bg-hurricane-300 dark:hover:text-white':\n\t\t\t\t\t\t\t\t\t\t\t!day.disabled,\n\t\t\t\t\t\t\t\t\t\t'dark:text-hurricane-200': day.disabled,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t`col-start-${day.offset}`,\n\t\t\t\t\t\t\t\t\t{ 'cursor-not-allowed opacity-60': day.disabled },\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t'border border-solid border-off-white-700 bg-off-white-300 text-storm-500 dark:border-none dark:bg-hurricane-200 dark:text-white':\n\t\t\t\t\t\t\t\t\t\t\t!day.disabled && isSameDay(day.date, new Date()),\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\tonClick={() => this._setValue(day.date)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{day.day}\n\t\t\t\t\t\t\t</time>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _getMonthView() {\n\t\tconst months = this._generateMonths();\n\t\treturn (\n\t\t\t<div class={view({ view: 'month' })}>\n\t\t\t\t{this._getHeader('month')}\n\n\t\t\t\t<div class='flex flex-wrap items-start gap-2'>\n\t\t\t\t\t{months.map(month => (\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\tvariant={month.active ? 'primary' : 'secondary'}\n\t\t\t\t\t\t\tdisabled={month.disabled}\n\t\t\t\t\t\t\tonClick={() => this._setMonth(month.month)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{format(setMonth(new Date(), month.month), 'MMMM', {\n\t\t\t\t\t\t\t\tlocale: state.locale === 'nl' ? nl : enUS,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t</p-button>\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _getYearView() {\n\t\tconst years = this._generateYears();\n\t\treturn (\n\t\t\t<div class={view({ view: 'year' })}>\n\t\t\t\t{this._getHeader('year')}\n\t\t\t\t<div\n\t\t\t\t\tclass='grid h-full grid-cols-4 gap-2 overflow-scroll'\n\t\t\t\t\tref={ref => (this._yearItemsRef = ref)}\n\t\t\t\t>\n\t\t\t\t\t{years.map(year => (\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\tclass='w-full'\n\t\t\t\t\t\t\tvariant={year.active ? 'primary' : 'secondary'}\n\t\t\t\t\t\t\tonClick={() => this._setYear(year.year)}\n\t\t\t\t\t\t\tdata-active={year.active}\n\t\t\t\t\t\t\tdata-current={year.current}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{year.year}\n\t\t\t\t\t\t</p-button>\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _getHeader(type: 'day' | 'month' | 'year' = 'day') {\n\t\tlet nextFn = num => this._changeMonth(num);\n\t\tlet nextType: 'month' | 'year' = 'month';\n\n\t\tif (type === 'month' || type === 'year') {\n\t\t\tnextFn = num => this._changeYear(num);\n\t\t\tnextType = 'year';\n\t\t}\n\n\t\treturn (\n\t\t\t<div class={header({ type: this.mode })}>\n\t\t\t\t{this.mode !== 'year' && (\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\ticonOnly\n\t\t\t\t\t\ticon='caret'\n\t\t\t\t\t\ticonRotate={90}\n\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\tonClick={() => nextFn(-1)}\n\t\t\t\t\t\tdisabled={\n\t\t\t\t\t\t\t!this._canSetAmount(nextType, -1) || this._view === 'year'\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\n\t\t\t\t<div\n\t\t\t\t\tclass={cn('flex gap-2', {\n\t\t\t\t\t\t'flex-1': this._enableToday,\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{this.mode !== 'year' && (\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\t\tonClick={() => this._changeView('month')}\n\t\t\t\t\t\t\tdisabled={!this._canChangeView('month')}\n\t\t\t\t\t\t\tactive={this._view === 'month' && this.mode !== 'month'}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{format(this._viewDate, 'MMMM', {\n\t\t\t\t\t\t\t\tlocale: state.locale === 'nl' ? nl : enUS,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t</p-button>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\tonClick={() => this._changeView('year')}\n\t\t\t\t\t\tdisabled={!this._canChangeView('year')}\n\t\t\t\t\t\tactive={this._view === 'year' && this.mode !== 'year'}\n\t\t\t\t\t>\n\t\t\t\t\t\t{getYear(this._viewDate)}\n\t\t\t\t\t</p-button>\n\n\t\t\t\t\t{this._enableToday && (\n\t\t\t\t\t\t<p-tooltip\n\t\t\t\t\t\t\tclass='ml-auto'\n\t\t\t\t\t\t\tcontent={this.todayText}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\t\t\ticon='calendar'\n\t\t\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\t\t\ticonOnly={true}\n\t\t\t\t\t\t\t\tonClick={() => this._setToday()}\n\t\t\t\t\t\t\t></p-button>\n\t\t\t\t\t\t</p-tooltip>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\n\t\t\t\t{this.mode !== 'year' && (\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\ticonOnly\n\t\t\t\t\t\ticon='caret'\n\t\t\t\t\t\ticonRotate={-90}\n\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\tonClick={() => nextFn(1)}\n\t\t\t\t\t\tdisabled={!this._canSetAmount(nextType, 1) || this._view == 'year'}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _setYear(year: number) {\n\t\tconst date = setYear(this._viewDate, year);\n\t\tif (this.mode !== 'year') {\n\t\t\tthis._viewDate = date;\n\t\t\tthis._view = 'month';\n\t\t\treturn;\n\t\t}\n\n\t\tthis._viewDate = date;\n\t\tthis._setValue(setMonth(setDate(date, 1), 0));\n\t}\n\n\tprivate _setMonth(month: number) {\n\t\tconst date = setMonth(this._viewDate, month);\n\t\tif (this.mode === 'day') {\n\t\t\tthis._viewDate = date;\n\t\t\tthis._view = 'day';\n\t\t\treturn;\n\t\t}\n\n\t\tthis._viewDate = date;\n\t\tthis._setValue(setDate(date, 1));\n\t}\n\n\tprivate _setToday() {\n\t\tthis._viewDate = this._today;\n\t\tthis._setValue(this._today);\n\t\tthis._view = 'day';\n\t}\n\n\tprivate _changeMonth(amount = 1) {\n\t\tconst allowed = this._canSetAmount('month', amount);\n\t\tif (!allowed) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst newDate = addMonths(this._viewDate, amount);\n\t\tthis._viewDate = newDate;\n\t}\n\n\tprivate _changeYear(amount = 1) {\n\t\tconst allowed = this._canSetAmount('year', amount);\n\t\tif (!allowed) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet newDate = addYears(this._viewDate, amount);\n\t\tthis._viewDate = newDate;\n\t}\n\n\tprivate _setValue(value: Date) {\n\t\tif (value === null) {\n\t\t\tthis._value = null;\n\t\t\tthis.valueChange.emit(null);\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isValid(value)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._isDisabledDay(value)) {\n\t\t\treturn;\n\t\t}\n\n\t\tvalue = startOfDay(value);\n\t\tconst isSameValue = isSameDay(value, this._value);\n\n\t\tif (isSameValue) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._value = value;\n\t\tthis.valueChange.emit(value);\n\t}\n\n\tprivate _generateDaysInMonth() {\n\t\tconst days = Array.from(Array(getDaysInMonth(this._viewDate)).keys());\n\n\t\treturn days.map(day => {\n\t\t\tday = day + 1;\n\t\t\tconst date = setDate(this._viewDate, day);\n\n\t\t\tconst dayOfWeek = getDay(date);\n\t\t\treturn {\n\t\t\t\tday,\n\t\t\t\tdate,\n\t\t\t\toffset: day === 1 ? (dayOfWeek === 0 ? 7 : dayOfWeek) : false,\n\t\t\t\tcurrent: isSameDay(date, this._today),\n\t\t\t\tactive: isSameDay(date, this._value),\n\t\t\t\tdisabled: this._isDisabledDay(date),\n\t\t\t};\n\t\t});\n\t}\n\n\tprivate _isDisabledDay(day: Date) {\n\t\treturn (\n\t\t\t(isBefore(day, this._minDate) && !isSameDay(day, this._maxDate)) ||\n\t\t\t(isAfter(day, this._maxDate) && !isSameDay(day, this._maxDate)) ||\n\t\t\t((getDay(day) === 0 || getDay(day) === 6) && this.disableWeekends) ||\n\t\t\tthis._disabledDates.findIndex(date => isSameDay(date, day)) >= 0\n\t\t);\n\t}\n\n\tprivate _generateMonths() {\n\t\tconst year = getYear(this._viewDate);\n\t\tconst months = Array.from(Array(12).keys());\n\n\t\treturn months.map(month => {\n\t\t\tconst date = new Date(year, month, 1);\n\t\t\treturn {\n\t\t\t\tmonth,\n\t\t\t\tcurrent: isSameMonth(this._today, date),\n\t\t\t\tactive: isSameMonth(this._value, date),\n\t\t\t\tdisabled:\n\t\t\t\t\tisAfter(date, this._maxDate) ||\n\t\t\t\t\tisBefore(endOfMonth(date), this._minDate),\n\t\t\t};\n\t\t});\n\t}\n\n\tprivate _generateYears() {\n\t\tconst maxYear = getYear(this._maxDate) + 1;\n\t\tconst minYear = getYear(this._minDate);\n\n\t\treturn Array.from(Array(maxYear - minYear).keys()).map(index => {\n\t\t\tconst year = minYear + index;\n\t\t\treturn {\n\t\t\t\tyear,\n\t\t\t\tcurrent: getYear(this._today) === year,\n\t\t\t\tactive: getYear(this._value) === year,\n\t\t\t};\n\t\t});\n\t}\n\n\tprivate _scrollYearIntoView() {\n\t\tconst items = this._yearItemsRef;\n\t\tif (!items) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst active = items.querySelector('p-button[data-active]') as HTMLElement;\n\t\tif (active) {\n\t\t\treturn items.scrollTo({\n\t\t\t\ttop: active.offsetTop - 100,\n\t\t\t});\n\t\t}\n\n\t\tconst current = items.querySelector(\n\t\t\t'p-button[data-current]'\n\t\t) as HTMLElement;\n\t\tif (current) {\n\t\t\treturn items.scrollTo({\n\t\t\t\ttop: current.offsetTop - 100,\n\t\t\t});\n\t\t}\n\t}\n\n\tprivate _changeView(view: 'year' | 'month') {\n\t\tif (!this._canChangeView(view)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._view = view;\n\t}\n\n\tprivate _canChangeView(view: 'year' | 'month') {\n\t\tif (view === 'year') {\n\t\t\tif (isSameYear(this._minDate, this._maxDate)) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\n\t\tif (isSameMonth(this._minDate, this._maxDate)) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tprivate _canSetAmount(type: 'month' | 'year', amount = 1) {\n\t\tif (type === 'month') {\n\t\t\tconst newDate = addMonths(this._viewDate, amount);\n\t\t\tconst startNewDate = startOfMonth(newDate);\n\t\t\tif (\n\t\t\t\t(isBefore(startNewDate, startOfMonth(this._minDate)) &&\n\t\t\t\t\t!isSameDay(startNewDate, this._minDate)) ||\n\t\t\t\tisAfter(startNewDate, endOfMonth(this._maxDate))\n\t\t\t) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tif (type === 'year') {\n\t\t\tlet newDate = addYears(this._viewDate, amount);\n\t\t\tconst year = getYear(newDate);\n\t\t\tif (year < getYear(this._minDate) || year > getYear(this._maxDate)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tprivate _getAutomaticMax() {\n\t\tconst date = addYears(new Date(), 50);\n\n\t\tlet year = getYear(date);\n\t\tyear = Math.ceil(year / 10) * 10;\n\n\t\treturn setYear(date, year);\n\t}\n}\n"],"version":3}
1
+ {"file":"p-calendar.entry.cjs.js","mappings":";;;;;;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,OAAO,CAAC,SAAS,EAAE,WAAW,EAAE;AACxD,EAAEA,kBAAY,CAAC,CAAC,EAAE,SAAS,CAAC;AAC5B,EAAE,IAAI,IAAI,GAAGC,YAAM,CAAC,SAAS,CAAC;AAC9B,EAAE,IAAI,MAAM,GAAGC,eAAS,CAAC,WAAW,CAAC;AACrC,EAAE,IAAI,KAAK,CAAC,MAAM,CAAC,EAAE;AACrB,IAAI,OAAO,IAAI,IAAI,CAAC,GAAG,CAAC;AACxB;AACA,EAAE,IAAI,CAAC,MAAM,EAAE;AACf;AACA,IAAI,OAAO,IAAI;AACf;AACA,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,MAAM,CAAC;AACvC,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,CAAC,CAAC,EAC/C;AACD,gBAAA,OAAO,KAAK;;;AAId,QAAA,IAAI,IAAI,KAAK,MAAM,EAAE;YACpB,IAAI,OAAO,GAAGc,cAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC;AAC9C,YAAA,MAAM,IAAI,GAAGH,aAAO,CAAC,OAAO,CAAC;AAC7B,YAAA,IAAI,IAAI,GAAGA,aAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,GAAGA,aAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;AACnE,gBAAA,OAAO,KAAK;;;AAId,QAAA,OAAO,IAAI;;IAGJ,gBAAgB,GAAA;QACvB,MAAM,IAAI,GAAGG,cAAQ,CAAC,IAAI,IAAI,EAAE,EAAE,EAAE,CAAC;AAErC,QAAA,IAAI,IAAI,GAAGH,aAAO,CAAC,IAAI,CAAC;QACxB,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,GAAG,EAAE;AAEhC,QAAA,OAAOC,aAAO,CAAC,IAAI,EAAE,IAAI,CAAC;;;;;;;;;;;;;;","names":["requiredArgs","toDate","toInteger","cva","isBefore","isAfter","isValid","isSameDay","h","ThemedHost","isWeekend","format","state","nl","enUS","cn","getYear","setYear","addMonths","addYears","startOfDay","index","startOfMonth"],"sources":["../../node_modules/date-fns/esm/addDays/index.js","../../node_modules/date-fns/esm/endOfMonth/index.js","../../node_modules/date-fns/esm/getDay/index.js","../../node_modules/date-fns/esm/getDaysInMonth/index.js","../../node_modules/date-fns/esm/isSameMonth/index.js","../../node_modules/date-fns/esm/isSameYear/index.js","../../node_modules/date-fns/esm/setMonth/index.js","../../node_modules/date-fns/esm/setDate/index.js","src/components/molecules/calendar/calendar.component.css?tag=p-calendar&encapsulation=shadow","src/components/molecules/calendar/calendar.component.tsx"],"sourcesContent":["import toInteger from \"../_lib/toInteger/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name addDays\n * @category Day Helpers\n * @summary Add the specified number of days to the given date.\n *\n * @description\n * Add the specified number of days to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} - the new date with the days added\n * @throws {TypeError} - 2 arguments required\n *\n * @example\n * // Add 10 days to 1 September 2014:\n * const result = addDays(new Date(2014, 8, 1), 10)\n * //=> Thu Sep 11 2014 00:00:00\n */\nexport default function addDays(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var amount = toInteger(dirtyAmount);\n if (isNaN(amount)) {\n return new Date(NaN);\n }\n if (!amount) {\n // If 0 days, no-op to avoid changing times in the hour before end of DST\n return date;\n }\n date.setDate(date.getDate() + amount);\n return date;\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name endOfMonth\n * @category Month Helpers\n * @summary Return the end of a month for the given date.\n *\n * @description\n * Return the end of a month for the given date.\n * The result will be in the local timezone.\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of a month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The end of a month for 2 September 2014 11:55:00:\n * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 30 2014 23:59:59.999\n */\nexport default function endOfMonth(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var month = date.getMonth();\n date.setFullYear(date.getFullYear(), month + 1, 0);\n date.setHours(23, 59, 59, 999);\n return date;\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name getDay\n * @category Weekday Helpers\n * @summary Get the day of the week of the given date.\n *\n * @description\n * Get the day of the week of the given date.\n *\n * @param {Date|Number} date - the given date\n * @returns {0|1|2|3|4|5|6} the day of week, 0 represents Sunday\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Which day of the week is 29 February 2012?\n * const result = getDay(new Date(2012, 1, 29))\n * //=> 3\n */\nexport default function getDay(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var day = date.getDay();\n return day;\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name getDaysInMonth\n * @category Month Helpers\n * @summary Get the number of days in a month of the given date.\n *\n * @description\n * Get the number of days in a month of the given date.\n *\n * @param {Date|Number} date - the given date\n * @returns {Number} the number of days in a month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // How many days are in February 2000?\n * const result = getDaysInMonth(new Date(2000, 1))\n * //=> 29\n */\nexport default function getDaysInMonth(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var year = date.getFullYear();\n var monthIndex = date.getMonth();\n var lastDayOfMonth = new Date(0);\n lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);\n lastDayOfMonth.setHours(0, 0, 0, 0);\n return lastDayOfMonth.getDate();\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isSameMonth\n * @category Month Helpers\n * @summary Are the given dates in the same month (and year)?\n *\n * @description\n * Are the given dates in the same month (and year)?\n *\n * @param {Date|Number} dateLeft - the first date to check\n * @param {Date|Number} dateRight - the second date to check\n * @returns {Boolean} the dates are in the same month (and year)\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Are 2 September 2014 and 25 September 2014 in the same month?\n * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))\n * //=> true\n *\n * @example\n * // Are 2 September 2014 and 25 September 2015 in the same month?\n * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))\n * //=> false\n */\nexport default function isSameMonth(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n return dateLeft.getFullYear() === dateRight.getFullYear() && dateLeft.getMonth() === dateRight.getMonth();\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isSameYear\n * @category Year Helpers\n * @summary Are the given dates in the same year?\n *\n * @description\n * Are the given dates in the same year?\n *\n * @param {Date|Number} dateLeft - the first date to check\n * @param {Date|Number} dateRight - the second date to check\n * @returns {Boolean} the dates are in the same year\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Are 2 September 2014 and 25 September 2014 in the same year?\n * const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25))\n * //=> true\n */\nexport default function isSameYear(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n return dateLeft.getFullYear() === dateRight.getFullYear();\n}","import toInteger from \"../_lib/toInteger/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport getDaysInMonth from \"../getDaysInMonth/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name setMonth\n * @category Month Helpers\n * @summary Set the month to the given date.\n *\n * @description\n * Set the month to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} month - the month of the new date\n * @returns {Date} the new date with the month set\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Set February to 1 September 2014:\n * const result = setMonth(new Date(2014, 8, 1), 1)\n * //=> Sat Feb 01 2014 00:00:00\n */\nexport default function setMonth(dirtyDate, dirtyMonth) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var month = toInteger(dirtyMonth);\n var year = date.getFullYear();\n var day = date.getDate();\n var dateWithDesiredMonth = new Date(0);\n dateWithDesiredMonth.setFullYear(year, month, 15);\n dateWithDesiredMonth.setHours(0, 0, 0, 0);\n var daysInMonth = getDaysInMonth(dateWithDesiredMonth);\n // Set the last day of the new month\n // if the original date was the last day of the longer month\n date.setMonth(month, Math.min(day, daysInMonth));\n return date;\n}","import toInteger from \"../_lib/toInteger/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name setDate\n * @category Day Helpers\n * @summary Set the day of the month to the given date.\n *\n * @description\n * Set the day of the month to the given date.\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} dayOfMonth - the day of the month of the new date\n * @returns {Date} the new date with the day of the month set\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Set the 30th day of the month to 1 September 2014:\n * const result = setDate(new Date(2014, 8, 1), 30)\n * //=> Tue Sep 30 2014 00:00:00\n */\nexport default function setDate(dirtyDate, dirtyDayOfMonth) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var dayOfMonth = toInteger(dirtyDayOfMonth);\n date.setDate(dayOfMonth);\n return date;\n}","","import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\th,\n\tProp,\n\tState,\n\tWatch,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport {\n\taddDays,\n\taddMonths,\n\taddYears,\n\tendOfMonth,\n\tformat,\n\tgetDay,\n\tgetDaysInMonth,\n\tgetYear,\n\tisAfter,\n\tisBefore,\n\tisSameDay,\n\tisSameMonth,\n\tisSameYear,\n\tisValid,\n\tisWeekend,\n\tsetDate,\n\tsetMonth,\n\tsetYear,\n\tstartOfDay,\n\tstartOfMonth,\n} from 'date-fns';\nimport { nl, enUS } from 'date-fns/locale';\nimport { cn } from '../../../utils/cn';\nimport { state } from '../../../state';\nimport { ThemedHost } from '../../../internal/themed-host.component';\n\nconst calendar = cva(['w-[17.5rem] flex flex-col gap-4'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: ['p-2 rounded-lg drop-shadow-2', 'border border-storm-100'],\n\t\t\tembedded: 'p-1',\n\t\t},\n\t},\n});\n\nconst header = cva(\n\t[\n\t\t'flex items-center gap-2',\n\t\t'w-full p-2 rounded-lg',\n\t\t'bg-off-white-300 dark:bg-white/15',\n\t],\n\t{\n\t\tvariants: {\n\t\t\ttype: {\n\t\t\t\tday: 'justify-between',\n\t\t\t\tmonth: 'justify-between',\n\t\t\t\tyear: 'justify-center',\n\t\t\t},\n\t\t},\n\t}\n);\n\nconst view = cva(['flex flex-col gap-2', 'w-full'], {\n\tvariants: {\n\t\tview: {\n\t\t\tday: 'h-auto min-h-[12rem]',\n\t\t\tmonth: 'min-h-[15rem]',\n\t\t\tyear: 'max-h-[15rem]',\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-calendar',\n\tstyleUrl: 'calendar.component.css',\n\tshadow: true,\n})\nexport class Calendar {\n\t/**\n\t * The variant of the button\n\t */\n\t@Prop() variant: 'default' | 'embedded' = 'default';\n\n\t/**\n\t * The current value\n\t */\n\t@Prop() value?: Date | string;\n\n\t/**\n\t * Wether to automatically preselect today\n\t */\n\t@Prop() preselectToday: boolean = false;\n\n\t/**\n\t * Disabled dates\n\t */\n\t@Prop() disabledDates?: Array<Date | string> | string;\n\n\t/**\n\t * Min date\n\t */\n\t@Prop() minDate: Date | string | null = null;\n\n\t/**\n\t * Max date\n\t */\n\t@Prop() maxDate: Date | string | null = null;\n\n\t/**\n\t * Wether to disable the weekends\n\t */\n\t@Prop() disableWeekends: boolean = false;\n\n\t/**\n\t * Wether to enable the today button\n\t */\n\t@Prop() enableToday: boolean = true;\n\n\t/**\n\t * The text to display on the today tooltip\n\t */\n\t@Prop() todayText: string = 'today';\n\n\t/**\n\t * The mode of the datepicker\n\t */\n\t@Prop() mode: 'year' | 'month' | 'day' = 'day';\n\n\t/**\n\t * Event when the value changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tvalueChange: EventEmitter<any>;\n\n\tprivate _today = new Date();\n\t@State() private _view: 'year' | 'month' | 'day' = this.mode;\n\t@State() private _viewDate = this._today;\n\n\t@State() private _value: Date;\n\t@State() private _minDate: Date;\n\t@State() private _maxDate: Date;\n\t@State() private _disabledDates: Date[] = [];\n\n\t@State() private _enableToday = true;\n\n\tprivate _weekDays = Array.from(Array(7).keys());\n\tprivate _yearItemsRef: HTMLDivElement;\n\n\tcomponentWillLoad() {\n\t\tif (this.disabledDates) {\n\t\t\tthis._parseDisabledDates(this.disabledDates);\n\t\t}\n\n\t\tthis._parseMinDate(this.minDate);\n\t\tthis._parseMaxDate(this.maxDate);\n\n\t\tthis._parseValue(this.value);\n\n\t\tif (this._value) {\n\t\t\tthis._viewDate = this._value;\n\t\t}\n\n\t\tif (isBefore(this._viewDate, this._minDate)) {\n\t\t\tthis._viewDate = this._minDate;\n\t\t}\n\n\t\tif (isAfter(this._viewDate, this._maxDate)) {\n\t\t\tthis._viewDate = this._maxDate;\n\t\t}\n\n\t\tthis._modeChange(this.mode);\n\t}\n\n\tcomponentWillRender() {\n\t\tthis._enableToday = this.enableToday && this._checkTodayButton();\n\t}\n\n\tcomponentDidRender() {\n\t\tif (this._view === 'year') {\n\t\t\tthis._scrollYearIntoView();\n\t\t}\n\t}\n\n\t@Watch('value')\n\tprivate _parseValue(value: string | Date) {\n\t\tif (!value && this.preselectToday) {\n\t\t\tvalue = new Date();\n\t\t}\n\n\t\tif (typeof value === 'string') {\n\t\t\tvalue = new Date(value);\n\t\t}\n\n\t\tif (isValid(value) && !isSameDay(value, this._viewDate)) {\n\t\t\tthis._viewDate = value;\n\t\t}\n\n\t\tthis._setValue(value);\n\t}\n\n\t@Watch('minDate')\n\tprivate _parseMinDate(minDate: string | Date | null) {\n\t\tif (minDate === null || minDate === '') {\n\t\t\tthis.minDate = new Date(1970, 0, 1);\n\t\t\treturn;\n\t\t}\n\n\t\tif (typeof minDate === 'string') {\n\t\t\tminDate = new Date(minDate);\n\t\t}\n\n\t\tif (!isValid(minDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._minDate = minDate;\n\n\t\tif (isBefore(this._viewDate, this._minDate)) {\n\t\t\tthis._viewDate = this._minDate;\n\t\t}\n\t}\n\n\t@Watch('maxDate')\n\tprivate _parseMaxDate(maxDate: string | Date | null) {\n\t\tif (maxDate === null || maxDate === '') {\n\t\t\tthis.maxDate = this._getAutomaticMax();\n\t\t\treturn;\n\t\t}\n\n\t\tif (typeof maxDate === 'string') {\n\t\t\tmaxDate = new Date(maxDate);\n\t\t}\n\n\t\tif (!isValid(maxDate)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._maxDate = maxDate;\n\n\t\tif (isAfter(this._viewDate, this._maxDate)) {\n\t\t\tthis._viewDate = this._maxDate;\n\t\t}\n\t}\n\n\t@Watch('disabledDates')\n\tprivate _parseDisabledDates(disabledDates: Array<string | Date> | string) {\n\t\tif (typeof disabledDates === 'string') {\n\t\t\tdisabledDates = JSON.parse(disabledDates);\n\t\t}\n\n\t\tif (!disabledDates || !Array.isArray(disabledDates)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// normalize all to date\n\t\tthis._disabledDates = disabledDates\n\t\t\t.map(date => {\n\t\t\t\tif (typeof date === 'string') {\n\t\t\t\t\treturn new Date(date);\n\t\t\t\t}\n\n\t\t\t\treturn date;\n\t\t\t})\n\t\t\t.filter(date => isValid(date));\n\t}\n\n\t@Watch('mode')\n\t_modeChange(mode: 'year' | 'month' | 'day') {\n\t\tif (mode === 'year' && this._view !== 'year') {\n\t\t\tthis._view = 'year';\n\t\t}\n\n\t\tif (mode === 'month' && this._view === 'day') {\n\t\t\tthis._view = 'month';\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<ThemedHost>\n\t\t\t\t<div class={calendar({ variant: this.variant })}>{this._getView()}</div>\n\t\t\t</ThemedHost>\n\t\t);\n\t}\n\n\tprivate _checkTodayButton() {\n\t\tif (this._maxDate && isAfter(this._today, this._maxDate)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (this._minDate && isBefore(this._today, this._minDate)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (this.disableWeekends && isWeekend(this._today)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (this.mode !== 'day') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tprivate _getView() {\n\t\tif (this._view === 'year') {\n\t\t\treturn this._getYearView();\n\t\t}\n\n\t\tif (this._view === 'month') {\n\t\t\treturn this._getMonthView();\n\t\t}\n\n\t\treturn this._getDayView();\n\t}\n\n\t/* With this, we shall hack the system in ways no one would ever have thought.\n <div class=\"col-start-1 col-start-2 col-start-3 col-start-4 col-start-5 col-start-6 col-start-7\"></div>\n */\n\tprivate _getDayView() {\n\t\tconst daysInMonth = this._generateDaysInMonth();\n\t\treturn (\n\t\t\t<div class={view({ view: 'day' })}>\n\t\t\t\t{this._getHeader('day')}\n\n\t\t\t\t<div class='grid grid-cols-7 justify-between gap-1'>\n\t\t\t\t\t{this._weekDays.map(weekday => (\n\t\t\t\t\t\t<span class='w-8 text-center text-xs text-storm-200'>\n\t\t\t\t\t\t\t{format(\n\t\t\t\t\t\t\t\taddDays(new Date(2022, 7, 1), weekday),\n\t\t\t\t\t\t\t\tstate.locale === 'nl' ? 'EEEEEE' : 'eee',\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tlocale: state.locale === 'nl' ? nl : enUS,\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t))}\n\t\t\t\t\t{daysInMonth.map(day => {\n\t\t\t\t\t\treturn day.active ? (\n\t\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\t\tvariant='primary'\n\t\t\t\t\t\t\t\tclass={cn('w-8', `col-start-${day.offset}`)}\n\t\t\t\t\t\t\t\tonClick={() => this._setValue(day.date)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{day.day}\n\t\t\t\t\t\t\t</p-button>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<time\n\t\t\t\t\t\t\t\tclass={cn(\n\t\t\t\t\t\t\t\t\t'normal flex items-center justify-center rounded-lg',\n\t\t\t\t\t\t\t\t\t'h-8 w-8 text-sm font-semibold',\n\t\t\t\t\t\t\t\t\t'text-storm-300',\n\t\t\t\t\t\t\t\t\t'dark:bg-white/15',\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t'cursor-pointer hover:bg-white-600 hover:text-storm-500 dark:text-white dark:hover:bg-hurricane-300 dark:hover:text-white':\n\t\t\t\t\t\t\t\t\t\t\t!day.disabled,\n\t\t\t\t\t\t\t\t\t\t'dark:text-hurricane-200': day.disabled,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t`col-start-${day.offset}`,\n\t\t\t\t\t\t\t\t\t{ 'cursor-not-allowed opacity-60': day.disabled },\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t'border border-solid border-off-white-700 bg-off-white-300 text-storm-500 dark:border-none dark:bg-hurricane-200 dark:text-white':\n\t\t\t\t\t\t\t\t\t\t\t!day.disabled && isSameDay(day.date, new Date()),\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\tonClick={() => this._setValue(day.date)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{day.day}\n\t\t\t\t\t\t\t</time>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _getMonthView() {\n\t\tconst months = this._generateMonths();\n\t\treturn (\n\t\t\t<div class={view({ view: 'month' })}>\n\t\t\t\t{this._getHeader('month')}\n\n\t\t\t\t<div class='flex flex-wrap items-start gap-2'>\n\t\t\t\t\t{months.map(month => (\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\tvariant={month.active ? 'primary' : 'secondary'}\n\t\t\t\t\t\t\tdisabled={month.disabled}\n\t\t\t\t\t\t\tonClick={() => this._setMonth(month.month)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{format(setMonth(new Date(), month.month), 'MMMM', {\n\t\t\t\t\t\t\t\tlocale: state.locale === 'nl' ? nl : enUS,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t</p-button>\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _getYearView() {\n\t\tconst years = this._generateYears();\n\t\treturn (\n\t\t\t<div class={view({ view: 'year' })}>\n\t\t\t\t{this._getHeader('year')}\n\t\t\t\t<div\n\t\t\t\t\tclass='grid h-full grid-cols-4 gap-2 overflow-scroll'\n\t\t\t\t\tref={ref => (this._yearItemsRef = ref)}\n\t\t\t\t>\n\t\t\t\t\t{years.map(year => (\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\tclass='w-full'\n\t\t\t\t\t\t\tvariant={year.active ? 'primary' : 'secondary'}\n\t\t\t\t\t\t\tonClick={() => this._setYear(year.year)}\n\t\t\t\t\t\t\tdata-active={year.active}\n\t\t\t\t\t\t\tdata-current={year.current}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{year.year}\n\t\t\t\t\t\t</p-button>\n\t\t\t\t\t))}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _getHeader(type: 'day' | 'month' | 'year' = 'day') {\n\t\tlet nextFn = num => this._changeMonth(num);\n\t\tlet nextType: 'month' | 'year' = 'month';\n\n\t\tif (type === 'month' || type === 'year') {\n\t\t\tnextFn = num => this._changeYear(num);\n\t\t\tnextType = 'year';\n\t\t}\n\n\t\treturn (\n\t\t\t<div class={header({ type: this.mode })}>\n\t\t\t\t{this.mode !== 'year' && (\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\ticonOnly\n\t\t\t\t\t\ticon='caret'\n\t\t\t\t\t\ticonRotate={90}\n\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\tonClick={() => nextFn(-1)}\n\t\t\t\t\t\tdisabled={\n\t\t\t\t\t\t\t!this._canSetAmount(nextType, -1) || this._view === 'year'\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\n\t\t\t\t<div\n\t\t\t\t\tclass={cn('flex gap-2', {\n\t\t\t\t\t\t'flex-1': this._enableToday,\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{this.mode !== 'year' && (\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\t\tonClick={() => this._changeView('month')}\n\t\t\t\t\t\t\tdisabled={!this._canChangeView('month')}\n\t\t\t\t\t\t\tactive={this._view === 'month' && this.mode !== 'month'}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{format(this._viewDate, 'MMMM', {\n\t\t\t\t\t\t\t\tlocale: state.locale === 'nl' ? nl : enUS,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t</p-button>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\tonClick={() => this._changeView('year')}\n\t\t\t\t\t\tdisabled={!this._canChangeView('year')}\n\t\t\t\t\t\tactive={this._view === 'year' && this.mode !== 'year'}\n\t\t\t\t\t>\n\t\t\t\t\t\t{getYear(this._viewDate)}\n\t\t\t\t\t</p-button>\n\n\t\t\t\t\t{this._enableToday && (\n\t\t\t\t\t\t<p-tooltip\n\t\t\t\t\t\t\tclass='ml-auto'\n\t\t\t\t\t\t\tcontent={this.todayText}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\t\t\ticon='calendar'\n\t\t\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\t\t\ticonOnly={true}\n\t\t\t\t\t\t\t\tonClick={() => this._setToday()}\n\t\t\t\t\t\t\t></p-button>\n\t\t\t\t\t\t</p-tooltip>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\n\t\t\t\t{this.mode !== 'year' && (\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\ticonOnly\n\t\t\t\t\t\ticon='caret'\n\t\t\t\t\t\ticonRotate={-90}\n\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\tonClick={() => nextFn(1)}\n\t\t\t\t\t\tdisabled={!this._canSetAmount(nextType, 1) || this._view == 'year'}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _setYear(year: number) {\n\t\tconst date = setYear(this._viewDate, year);\n\t\tif (this.mode !== 'year') {\n\t\t\tthis._viewDate = date;\n\t\t\tthis._view = 'month';\n\t\t\treturn;\n\t\t}\n\n\t\tthis._viewDate = date;\n\t\tthis._setValue(setMonth(setDate(date, 1), 0));\n\t}\n\n\tprivate _setMonth(month: number) {\n\t\tconst date = setMonth(this._viewDate, month);\n\t\tif (this.mode === 'day') {\n\t\t\tthis._viewDate = date;\n\t\t\tthis._view = 'day';\n\t\t\treturn;\n\t\t}\n\n\t\tthis._viewDate = date;\n\t\tthis._setValue(setDate(date, 1));\n\t}\n\n\tprivate _setToday() {\n\t\tthis._viewDate = this._today;\n\t\tthis._setValue(this._today);\n\t\tthis._view = 'day';\n\t}\n\n\tprivate _changeMonth(amount = 1) {\n\t\tconst allowed = this._canSetAmount('month', amount);\n\t\tif (!allowed) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst newDate = addMonths(this._viewDate, amount);\n\t\tthis._viewDate = newDate;\n\t}\n\n\tprivate _changeYear(amount = 1) {\n\t\tconst allowed = this._canSetAmount('year', amount);\n\t\tif (!allowed) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet newDate = addYears(this._viewDate, amount);\n\t\tthis._viewDate = newDate;\n\t}\n\n\tprivate _setValue(value: Date) {\n\t\tif (value === null) {\n\t\t\tthis._value = null;\n\t\t\tthis.valueChange.emit(null);\n\t\t\treturn;\n\t\t}\n\n\t\tif (!isValid(value)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._isDisabledDay(value)) {\n\t\t\treturn;\n\t\t}\n\n\t\tvalue = startOfDay(value);\n\t\tconst isSameValue = isSameDay(value, this._value);\n\n\t\tif (isSameValue) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._value = value;\n\t\tthis.valueChange.emit(value);\n\t}\n\n\tprivate _generateDaysInMonth() {\n\t\tconst days = Array.from(Array(getDaysInMonth(this._viewDate)).keys());\n\n\t\treturn days.map(day => {\n\t\t\tday = day + 1;\n\t\t\tconst date = startOfDay(setDate(this._viewDate, day));\n\n\t\t\tconst dayOfWeek = getDay(date);\n\t\t\treturn {\n\t\t\t\tday,\n\t\t\t\tdate,\n\t\t\t\toffset: day === 1 ? (dayOfWeek === 0 ? 7 : dayOfWeek) : false,\n\t\t\t\tcurrent: isSameDay(date, this._today),\n\t\t\t\tactive: isSameDay(date, this._value),\n\t\t\t\tdisabled: this._isDisabledDay(date),\n\t\t\t};\n\t\t});\n\t}\n\n\tprivate _isDisabledDay(day: Date) {\n\t\treturn (\n\t\t\t(isBefore(day, this._minDate) && !isSameDay(day, this._maxDate)) ||\n\t\t\t(isAfter(day, this._maxDate) && !isSameDay(day, this._maxDate)) ||\n\t\t\t((getDay(day) === 0 || getDay(day) === 6) && this.disableWeekends) ||\n\t\t\tthis._disabledDates.findIndex(date => isSameDay(date, day)) >= 0\n\t\t);\n\t}\n\n\tprivate _generateMonths() {\n\t\tconst year = getYear(this._viewDate);\n\t\tconst months = Array.from(Array(12).keys());\n\n\t\treturn months.map(month => {\n\t\t\tconst date = new Date(year, month, 1);\n\t\t\treturn {\n\t\t\t\tmonth,\n\t\t\t\tcurrent: isSameMonth(this._today, date),\n\t\t\t\tactive: isSameMonth(this._value, date),\n\t\t\t\tdisabled:\n\t\t\t\t\tisAfter(date, this._maxDate) ||\n\t\t\t\t\tisBefore(endOfMonth(date), this._minDate),\n\t\t\t};\n\t\t});\n\t}\n\n\tprivate _generateYears() {\n\t\tconst maxYear = getYear(this._maxDate) + 1;\n\t\tconst minYear = getYear(this._minDate);\n\n\t\treturn Array.from(Array(maxYear - minYear).keys()).map(index => {\n\t\t\tconst year = minYear + index;\n\t\t\treturn {\n\t\t\t\tyear,\n\t\t\t\tcurrent: getYear(this._today) === year,\n\t\t\t\tactive: getYear(this._value) === year,\n\t\t\t};\n\t\t});\n\t}\n\n\tprivate _scrollYearIntoView() {\n\t\tconst items = this._yearItemsRef;\n\t\tif (!items) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst active = items.querySelector('p-button[data-active]') as HTMLElement;\n\t\tif (active) {\n\t\t\treturn items.scrollTo({\n\t\t\t\ttop: active.offsetTop - 100,\n\t\t\t});\n\t\t}\n\n\t\tconst current = items.querySelector(\n\t\t\t'p-button[data-current]'\n\t\t) as HTMLElement;\n\t\tif (current) {\n\t\t\treturn items.scrollTo({\n\t\t\t\ttop: current.offsetTop - 100,\n\t\t\t});\n\t\t}\n\t}\n\n\tprivate _changeView(view: 'year' | 'month') {\n\t\tif (!this._canChangeView(view)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._view = view;\n\t}\n\n\tprivate _canChangeView(view: 'year' | 'month') {\n\t\tif (view === 'year') {\n\t\t\tif (isSameYear(this._minDate, this._maxDate)) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\n\t\tif (isSameMonth(this._minDate, this._maxDate)) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tprivate _canSetAmount(type: 'month' | 'year', amount = 1) {\n\t\tif (type === 'month') {\n\t\t\tconst newDate = addMonths(this._viewDate, amount);\n\t\t\tconst startNewDate = startOfMonth(newDate);\n\t\t\tif (\n\t\t\t\t(isBefore(startNewDate, startOfMonth(this._minDate)) &&\n\t\t\t\t\t!isSameDay(startNewDate, this._minDate)) ||\n\t\t\t\tisAfter(startNewDate, endOfMonth(this._maxDate))\n\t\t\t) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tif (type === 'year') {\n\t\t\tlet newDate = addYears(this._viewDate, amount);\n\t\t\tconst year = getYear(newDate);\n\t\t\tif (year < getYear(this._minDate) || year > getYear(this._maxDate)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tprivate _getAutomaticMax() {\n\t\tconst date = addYears(new Date(), 50);\n\n\t\tlet year = getYear(date);\n\t\tyear = Math.ceil(year / 10) * 10;\n\n\t\treturn setYear(date, year);\n\t}\n}\n"],"version":3}