@poadio/app-vue 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/app-vue.css +95 -21
- package/dist/browser.d.ts +3 -1
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +18 -1
- package/dist/browser.js.map +1 -1
- package/dist/draft-toolbar.d.ts +65 -0
- package/dist/draft-toolbar.d.ts.map +1 -0
- package/dist/draft-toolbar.js +62 -0
- package/dist/draft-toolbar.js.map +1 -0
- package/dist/front-view.d.ts +5 -1
- package/dist/front-view.d.ts.map +1 -1
- package/dist/front-view.js +103 -44
- package/dist/front-view.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/items.d.ts +33 -0
- package/dist/items.d.ts.map +1 -0
- package/dist/items.js +369 -0
- package/dist/items.js.map +1 -0
- package/dist/lazy.d.ts +16 -0
- package/dist/lazy.d.ts.map +1 -1
- package/dist/lazy.js +34 -1
- package/dist/lazy.js.map +1 -1
- package/dist/messages.d.ts +20 -2
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +40 -4
- package/dist/messages.js.map +1 -1
- package/dist/sections/grid.d.ts +25 -1
- package/dist/sections/grid.d.ts.map +1 -1
- package/dist/sections/grid.js +29 -2
- package/dist/sections/grid.js.map +1 -1
- package/package.json +4 -3
- package/runtime-dist/app.css +95 -21
- package/runtime-dist/app.js +2 -2
- package/runtime-dist/c-0rxdxcn3.js +2 -0
- package/runtime-dist/c-0vbs937h.js +18 -0
- package/runtime-dist/c-0zqjsnm5.js +2 -0
- package/runtime-dist/c-13nx24wa.js +1 -0
- package/runtime-dist/c-16cdkp27.js +1 -0
- package/runtime-dist/c-16cm3n82.js +1 -0
- package/runtime-dist/c-1h49vkah.js +2 -0
- package/runtime-dist/c-1xpa1fqz.js +1 -0
- package/runtime-dist/c-29v2e09p.js +1 -0
- package/runtime-dist/c-2ag31260.js +2 -0
- package/runtime-dist/c-2s6r37jb.js +1 -0
- package/runtime-dist/c-2v244yc0.js +1 -0
- package/runtime-dist/c-3be398px.js +1 -0
- package/runtime-dist/c-3jm96b1p.js +2 -0
- package/runtime-dist/c-3pe5hprv.js +2 -0
- package/runtime-dist/c-3zbf5g3p.js +1 -0
- package/runtime-dist/c-4h51m4qq.js +1 -0
- package/runtime-dist/c-523qwqen.js +2 -0
- package/runtime-dist/c-572jz6y4.js +1 -0
- package/runtime-dist/c-64j9mv7a.js +1 -0
- package/runtime-dist/c-6f446pxt.js +1 -0
- package/runtime-dist/c-6pd33f4a.js +1 -0
- package/runtime-dist/c-6qa26wds.js +1 -0
- package/runtime-dist/c-6w0f1kqm.js +1 -0
- package/runtime-dist/c-72hj12cs.js +2 -0
- package/runtime-dist/{c-fg782zf4.js → c-7cjj18ea.js} +1 -1
- package/runtime-dist/c-823yyjat.js +1 -0
- package/runtime-dist/c-8gpbevx2.js +1 -0
- package/runtime-dist/c-98tbntdq.js +2 -0
- package/runtime-dist/c-9sm6aybf.js +2 -0
- package/runtime-dist/c-a63rkaa9.js +1 -0
- package/runtime-dist/{c-pgxy0etb.js → c-ahcj5yr5.js} +1 -1
- package/runtime-dist/c-azvw5879.js +2 -0
- package/runtime-dist/c-b6g9ey7e.js +2 -0
- package/runtime-dist/c-bssc8kwn.js +1 -0
- package/runtime-dist/c-bvp9zbmr.js +1 -0
- package/runtime-dist/c-cc3m3rs1.js +2 -0
- package/runtime-dist/c-cp1ehb23.js +1 -0
- package/runtime-dist/c-cvsx6n6e.js +2 -0
- package/runtime-dist/c-d5y90g8f.js +1 -0
- package/runtime-dist/c-d8hfdner.js +2 -0
- package/runtime-dist/c-dqtdk937.js +1 -0
- package/runtime-dist/c-dzx0rg0g.js +2 -0
- package/runtime-dist/c-eczfywaq.js +1 -0
- package/runtime-dist/c-epemgj1a.js +2 -0
- package/runtime-dist/c-et83hbhc.js +1 -0
- package/runtime-dist/c-ffkh15py.js +1 -0
- package/runtime-dist/c-fn3059s1.js +2 -0
- package/runtime-dist/c-fnzeden9.js +1 -0
- package/runtime-dist/c-gen0a4bn.js +1 -0
- package/runtime-dist/c-gesjk5ph.js +1 -0
- package/runtime-dist/c-gkyekesy.js +15 -0
- package/runtime-dist/c-gs1k0twe.js +2 -0
- package/runtime-dist/c-gznx0sj4.js +2 -0
- package/runtime-dist/c-h5m94fwp.js +1 -0
- package/runtime-dist/c-hdstjg33.js +2 -0
- package/runtime-dist/c-hsy77frc.js +3 -0
- package/runtime-dist/c-j02ymtyd.js +2 -0
- package/runtime-dist/c-j63hz554.js +2 -0
- package/runtime-dist/c-jvrr9zb8.js +1 -0
- package/runtime-dist/c-jymrpj5m.js +1 -0
- package/runtime-dist/c-k624qrhh.js +2 -0
- package/runtime-dist/c-kbg0cafy.js +2 -0
- package/runtime-dist/c-kmx0mv0c.js +2 -0
- package/runtime-dist/c-krt6rpg1.js +1 -0
- package/runtime-dist/c-kyajr8zz.js +2 -0
- package/runtime-dist/c-m30q0jrb.js +1 -0
- package/runtime-dist/c-m49q9r7s.js +1 -0
- package/runtime-dist/c-m6yf7zaj.js +2 -0
- package/runtime-dist/c-m70tbfc5.js +2 -0
- package/runtime-dist/c-mdj990nz.js +2 -0
- package/runtime-dist/c-mvdn43tv.js +2 -0
- package/runtime-dist/c-mw3zx9yk.js +1 -0
- package/runtime-dist/c-n8mqnvjg.js +1 -0
- package/runtime-dist/c-nkrm4n9a.js +1 -0
- package/runtime-dist/c-nn49946s.js +1 -0
- package/runtime-dist/c-ny0mdx7k.js +2 -0
- package/runtime-dist/c-p8wyhrwm.js +2 -0
- package/runtime-dist/c-pbn2syef.js +1 -0
- package/runtime-dist/c-prt5qv2x.js +1 -0
- package/runtime-dist/c-qe1kevqk.js +1 -0
- package/runtime-dist/{c-ns42txax.js → c-rasvf2z2.js} +2 -2
- package/runtime-dist/c-rf1xevya.js +1 -0
- package/runtime-dist/c-rktc0ksd.js +2 -0
- package/runtime-dist/c-sd570jk7.js +2 -0
- package/runtime-dist/c-sdf15np5.js +1 -0
- package/runtime-dist/c-sjajadt4.js +2 -0
- package/runtime-dist/c-sv15z0aa.js +1 -0
- package/runtime-dist/c-tv3ksk7j.js +2 -0
- package/runtime-dist/c-vrmw0gka.js +1 -0
- package/runtime-dist/c-wjadf68q.js +1 -0
- package/runtime-dist/c-wnynh7zm.js +1 -0
- package/runtime-dist/c-xeqwqt9z.js +2 -0
- package/runtime-dist/c-xk9fqzsc.js +1 -0
- package/runtime-dist/c-xqf3j4w7.js +1 -0
- package/runtime-dist/c-xx4986kx.js +1 -0
- package/runtime-dist/c-y9120d6h.js +1 -0
- package/runtime-dist/c-ywzh0r63.js +1 -0
- package/runtime-dist/c-zyfkspym.js +2 -0
- package/runtime-dist/ui-accordion.css +29 -0
- package/runtime-dist/ui-app-shell.css +36 -0
- package/runtime-dist/ui-avatar.css +28 -0
- package/runtime-dist/ui-badge.css +14 -0
- package/runtime-dist/ui-block-editor.css +85 -0
- package/runtime-dist/ui-block-view.css +50 -0
- package/runtime-dist/ui-block.css +20 -0
- package/runtime-dist/ui-bottom-nav.css +54 -0
- package/runtime-dist/ui-breadcrumb.css +25 -0
- package/runtime-dist/ui-button-group.css +39 -0
- package/runtime-dist/ui-calendar.css +168 -0
- package/runtime-dist/ui-card.css +26 -0
- package/runtime-dist/ui-carousel.css +35 -0
- package/runtime-dist/ui-chart.css +26 -0
- package/runtime-dist/ui-checkbox.css +25 -0
- package/runtime-dist/ui-chip.css +30 -0
- package/runtime-dist/ui-code-editor.css +25 -0
- package/runtime-dist/ui-colorpicker.css +46 -0
- package/runtime-dist/ui-combo.css +43 -0
- package/runtime-dist/ui-dataview.css +50 -0
- package/runtime-dist/ui-datepicker.css +80 -0
- package/runtime-dist/ui-dialog.css +119 -0
- package/runtime-dist/ui-divider.css +18 -0
- package/runtime-dist/ui-fieldset.css +25 -0
- package/runtime-dist/ui-filter-chip.css +24 -0
- package/runtime-dist/ui-floating.css +9 -0
- package/runtime-dist/ui-gantt.css +105 -0
- package/runtime-dist/ui-image.css +34 -0
- package/runtime-dist/ui-inplace.css +19 -0
- package/runtime-dist/ui-json-editor.css +40 -0
- package/runtime-dist/ui-layout.css +39 -0
- package/runtime-dist/ui-listbox.css +52 -0
- package/runtime-dist/ui-map.css +469 -0
- package/runtime-dist/ui-menu.css +38 -0
- package/runtime-dist/ui-menubar.css +55 -0
- package/runtime-dist/ui-meter.css +26 -0
- package/runtime-dist/ui-multiselect.css +62 -0
- package/runtime-dist/ui-nav-drawer.css +118 -0
- package/runtime-dist/ui-number.css +26 -0
- package/runtime-dist/ui-option-list.css +28 -0
- package/runtime-dist/ui-orderlist.css +54 -0
- package/runtime-dist/ui-orgchart.css +71 -0
- package/runtime-dist/ui-paginator.css +25 -0
- package/runtime-dist/ui-panel.css +28 -0
- package/runtime-dist/ui-password.css +26 -0
- package/runtime-dist/ui-picklist.css +58 -0
- package/runtime-dist/ui-popover.css +20 -0
- package/runtime-dist/ui-progress.css +31 -0
- package/runtime-dist/ui-radio.css +29 -0
- package/runtime-dist/ui-rating.css +19 -0
- package/runtime-dist/ui-richtext.css +48 -0
- package/runtime-dist/ui-scheduler.css +132 -0
- package/runtime-dist/ui-scroll-top.css +17 -0
- package/runtime-dist/ui-segmented.css +25 -0
- package/runtime-dist/ui-select.css +47 -0
- package/runtime-dist/ui-sheet.css +56 -0
- package/runtime-dist/ui-skeleton.css +18 -0
- package/runtime-dist/ui-slider.css +59 -0
- package/runtime-dist/ui-speed-dial.css +26 -0
- package/runtime-dist/ui-splitter.css +23 -0
- package/runtime-dist/ui-stepper.css +47 -0
- package/runtime-dist/ui-switch.css +31 -0
- package/runtime-dist/ui-table-panel.css +114 -0
- package/runtime-dist/ui-table.css +430 -0
- package/runtime-dist/ui-tabs.css +45 -0
- package/runtime-dist/ui-taskboard.css +104 -0
- package/runtime-dist/ui-timeline.css +44 -0
- package/runtime-dist/ui-toast.css +43 -0
- package/runtime-dist/ui-toggle-button.css +6 -0
- package/runtime-dist/ui-tooltip.css +21 -0
- package/runtime-dist/ui-tree.css +44 -0
- package/runtime-dist/ui-upload.css +46 -0
- package/runtime-dist/version.json +1 -1
- package/src/browser.ts +21 -2
- package/src/draft-toolbar.ts +67 -0
- package/src/front-view.ts +105 -51
- package/src/index.ts +2 -1
- package/src/items.ts +436 -0
- package/src/lazy.ts +38 -1
- package/src/messages.ts +40 -4
- package/src/sections/grid.ts +38 -3
- package/runtime-dist/c-7dddcgt2.js +0 -2
- package/runtime-dist/c-9a0nzf53.js +0 -2
- package/runtime-dist/c-c1e1x3y1.js +0 -1
- package/runtime-dist/c-fnkq09db.js +0 -1
- package/runtime-dist/c-j29w8z15.js +0 -1
- package/runtime-dist/c-mmxqs2mz.js +0 -1
- package/runtime-dist/c-xsq12y6b.js +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{A}from"./c-kyajr8zz.js";var Ct={common:{clear:"Clear",remove:"Remove",cancel:"Cancel",save:"Save",add:"Add",edit:"Edit",reset:"Reset",ok:"OK",yes:"Yes",no:"No",all:"All",expand:"Expand",collapse:"Collapse",close:"Close",confirm:"Confirm",delete:"Delete",loading:"Loading…",retry:"Retry",previous:"Previous",next:"Next",search:"Search",copy:"Copy",paste:"Paste",download:"Download",zoomIn:"Zoom in",zoomOut:"Zoom out",fullscreen:"Full screen",exitFullscreen:"Exit full screen",noResults:"No results",filterPlaceholder:"Filter…",moveUp:"Move up",moveDown:"Move down",moveTop:"Move to top",moveBottom:"Move to bottom",editorLoading:"Loading the editor…",editorLoadFailed:"The editor could not be loaded.",today:"Today",apply:"Apply"},select:{empty:"No options",emptyFilter:"No results",noSuggestions:"No suggestions",filterPlaceholder:"Filter…",clearAll:"Clear all",selectAll:"Select all",selectedCount:"{n} selected",removeItem:"Remove {label}",showSuggestions:"Show suggestions",level:"Level {level}"},paginator:{label:"Pagination",rowsPerPage:"Rows per page",firstPage:"First page",previousPage:"Previous page",nextPage:"Next page",lastPage:"Last page",page:"Page {page}",report:"{first}–{last} of {totalRecords}"},filter:{remove:"Remove filter {label}",column:"Filter {column}",columnMin:"Filter {column} (min)",columnMax:"Filter {column} (max)",operatorMenu:"Filter operator",valuesMenu:"Filter values",operator:"Operator: {label}",clear:"Clear filter",clearAll:"Clear all",any:"All",selectedCount:"{n} selected",min:"min",max:"max",value:"value",from:"from",to:"to",date:"date",active:"active",globalSearch:"Search everywhere…",globalSearchLabel:"Search everywhere",noOptions:"No options ({input}).",noFilterableColumn:"No filterable column ({input}).",opContains:"Contains",opNotContains:"Does not contain",opStartsWith:"Starts with",opEndsWith:"Ends with",opEquals:"Equals",opNotEquals:"Not equal to",opLessThan:"Less than",opLessOrEqual:"Less than or equal",opGreaterThan:"Greater than",opGreaterOrEqual:"Greater than or equal",opBetween:"Between",opIsEmpty:"Empty",opIsNotEmpty:"Not empty",opDateIs:"Is on",opDateIsNot:"Is not on",opDateBefore:"Before",opDateAfter:"After",opIn:"Any of",opNotIn:"None of"},dnd:{grabbed:"Grabbed: {item}, position {position} of {total}",moved:"{item}, position {position} of {total}",dropped:"Dropped: {item}, position {position} of {total}",cancelled:"Move cancelled: {item} back at position {position} of {total}",hint:"Space to grab, arrow keys to move, Space to drop, Escape to cancel"},table:{empty:"No data",searchPlaceholder:"Search…",clearSearch:"Clear search",columns:"Columns",filters:"Filters",groups:"Groups",values:"Values",selectAll:"Select all",clearSelection:"Clear selection",selectedCount:"{n} selected",rowCount:"{n} row | {n} rows",filteredCount:"{n} filtered",selectedRows:"{n} selected",moveUp:"Move up",moveDown:"Move down",density:"Density",groupZone:"Drag a header here to group",ungroupBy:"Stop grouping by {label}",groupBy:"Group by {label}",ungroup:"Ungroup",move:"Move",detail:"Details",actions:"Actions",moveColumn:"Move column",moveRow:"Move row",moveRowN:"Move row {index}",moveRowLabel:"Move {label}",rowN:"Row {index}",rowDragHint:"Space to grab the row, arrow keys to move it, Space to drop it, Escape to cancel",rowGrabbed:"{item} grabbed, position {position} of {total}",rowMoved:"{item}, position {position} of {total}",rowDropped:"{item} dropped, position {position} of {total}",rowDragCancelled:"Move cancelled: {item} back at position {position} of {total}",moveColumnOf:"Move column {column}",columnDragHint:"Space to grab the column, left and right arrow keys to move it, Space to drop it, Escape to cancel",columnGrabbed:"Column {item} grabbed, position {position} of {total}",columnMoved:"Column {item}, position {position} of {total}",columnDropped:"Column {item} dropped, position {position} of {total}",columnDragCancelled:"Move cancelled: column {item} back at position {position} of {total}",groupedByLive:"Grouped by {label}",ungroupedLive:"No longer grouped by {label}",groupChip:"Group {label}",groupZoneHint:"Space to grab the group, left and right arrow keys to move it, Space to drop it, Delete to remove it",groupGrabbed:"Group {item} grabbed, position {position} of {total}",groupMoved:"Group {item}, position {position} of {total}",groupDropped:"Group {item} dropped, position {position} of {total}",groupDragCancelled:"Move cancelled: group {item} back at position {position} of {total}",columnListDragHint:"Space to grab the column, up and down arrow keys to move it, Space to drop it, Escape to cancel",sortBy:"Sort by {column}",columnMenu:"Column menu",selectGroup:"Select group {label}",selectRow:"Select row {index}",grandTotal:"Total",total:"Total {label}",emptyGroup:"(empty)",noGroup:"No grouping",editRow:"Edit row",saveRow:"Save row",cancelEdit:"Cancel editing",rowEditHeader:"Edit",editCellHint:"Enter or F2 to edit",editRequired:"Required",editNumber:"A number is expected",editMin:"At least {min}",editMax:"At most {max}",editMinLength:"At least {min} characters",editMaxLength:"At most {max} characters",sortAsc:"Sort ascending",sortDesc:"Sort descending",clearSort:"Clear sort",pin:"Pin",pinLeft:"Left",pinRight:"Right",unpin:"Unpin",autosizeColumn:"Autosize this column",autosizeAll:"Autosize all columns",chooseColumns:"Choose columns…",filterColumn:"Filter…",resetColumns:"Reset columns",exportCsv:"Export CSV",resizeColumn:"Resize column {column}",resizeHint:"Arrow keys to resize, Home or End for the limits, Enter to fit the content",pinStart:"At the start",pinEnd:"At the end",hideColumn:"Hide column",columnMenuOf:"Column menu, {column}",searchColumn:"Search a column…",searchColumnLabel:"Search a column",allColumns:"All columns",reorder:"Reorder",pinnedColumn:"Pinned column",noColumn:"No columns.",rowGroups:"Row groups",removeGroup:"Remove group {label}",dropToGroup:"Drag a column here to group",aggregates:"Σ Values (aggregates)",aggregateColumn:"Column",notWritable:"Note: {input} is not a model on this table — listen to {output}.",aggSum:"Sum",aggAvg:"Average",aggMin:"Minimum",aggMax:"Maximum",aggCount:"Count",aggCustom:"Custom"},tree:{empty:"No items",emptyFilter:"No results",filterPlaceholder:"Filter…",select:"Select {label}"},data:{network:"The server cannot be reached. Check your connection and try again.",unauthorized:"Your session has expired. Sign in again.",forbidden:"You are not allowed to see these data.",not_found:"These data cannot be found.",invalid_query:"The request for these data is not valid.",conflict:"These data were changed meanwhile.",constraint:"The database refused this value.",validation:"This value is not valid.",read_only:"These data cannot be changed here.",server:"The server failed to answer. Try again in a moment.",invalid_description:"The description of these data is not valid.",invalid_binding:"The data binding is not valid.",invalid_transport:"The application is not connected to its data correctly.",unknown_store:'The data source "{name}" does not exist.',duplicate_store:'Another data source is already named "{name}".',not_serializable:"A data store cannot be serialised.",unknown_operator:'Unknown filter operator "{operator}".',missing_param:'The parameter "{name}" of this query has no value.',unsupported:"This poad server is too old for this feature ({feature}): update poad.",unknown:"An unexpected error occurred while loading the data.",retry:"Retry",loading:"Loading data…",required:"This field is required.",min:"The minimum is {min}.",max:"The maximum is {max}.",minLength:"At least {min} characters.",maxLength:"At most {max} characters.",pattern:"The format is not valid.",enum:"Choose one of the proposed values.",type:"This value is not of the expected type.",save_forbidden:"You are not allowed to change these data.",save_not_found:"These data no longer exist or are no longer visible to you.",save:"Save",revert:"Cancel changes",saving:"Saving…",modified:"Modified",conflict_field:"Changed meanwhile by someone else: {theirs}",conflict_row:"This row was changed meanwhile by someone else.",keep_mine:"Keep mine",take_theirs:"Take theirs",dismiss:"Close"},dataview:{empty:"No items",layout:"Layout",list:"List",grid:"Grid"},chart:{dataTable:"Chart data",showData:"Show data table",showChart:"Show chart",loading:"Loading chart"},engine:{missing:"The “{pkg}” package is required: npm i {pkg}"},overlay:{maximize:"Maximize",restore:"Restore",confirmHeader:"Confirmation",typeToConfirm:"Type “{text}” to confirm"},code:{label:"Code editor",format:"Format document",plainText:"Plain text",cursor:"Ln {line}, Col {column}",tabHint:"Tab inserts an indent. Ctrl+M makes Tab move the focus instead (Ctrl+Shift+M on Mac); press it again to indent.",tabMovesFocusOn:"Tab now moves the focus.",tabMovesFocusOff:"Tab now inserts an indent.",loadLoaderMissing:"{url}/loader.js was not found. Check providePoadMonaco(…) and that the monaco-editor files are copied to the assets.",loadNoAmd:"{url}/loader.js does not provide the Monaco AMD loader.",loadMainFailed:"could not load {url}/editor/editor.main. {detail}",loadNotFound:"{url}/editor/editor.main was loaded, but Monaco is still missing.",loadTimeout:"Monaco did not load within {ms} ms from {url}."},nav:{mainNavigation:"Main navigation",mainMenu:"Main menu",menu:"Menu",breadcrumb:"Breadcrumb",showHidden:"Show hidden items",quickActions:"Quick actions",moreActions:"More actions",optional:"(optional)",scrollLeft:"Scroll left",scrollRight:"Scroll right",closeTab:"Close {label}"},atelier:{groupContainers:"Containers",groupAction:"Actions",groupInput:"Inputs",groupData:"Data",groupMap:"Maps",groupDisplay:"Display",groupLayout:"Layout",groupNav:"Navigation",groupOverlay:"Overlays",groupFeedback:"Feedback",groupList:"Lists",groupPlanning:"Planning",groupIcon:"Icons",groupCore:"Core",defaultTitle:"Layout",generatedBy:"Generated by the PoadGrid workshop. Paste this file into your project.",toProvide:"To provide: {names}"},file:{choose:"Choose a file",upload:"Upload",removeAll:"Remove all",remove:"Remove {name}",rejected:"{name}: {message}",drop:"Drag and drop your files here",browse:"or click to browse",summary:"{n} file · {size} | {n} files · {size}",tooLarge:"File too large (max {max})",invalidType:"File type not allowed",limitReached:"Maximum number of files reached ({max})",uploadFailed:"Upload failed",noHttpClient:"HttpClient is missing: add provideHttpClient() or use customUpload",sizeBytes:"{size} B",sizeKilobytes:"{size} kB",sizeMegabytes:"{size} MB",sizeGigabytes:"{size} GB"},display:{carousel:"carousel",slide:"slide",page:"Page {page}",removeChip:"Remove {label}",enlarge:"Enlarge",preview:"Preview",rotate:"Rotate",remaining:"Free",meterSegment:"{label}: {value} ({percent})",loading:"Loading",scrollTop:"Back to top",stopRotation:"Stop automatic slide show",startRotation:"Start automatic slide show",resizePanels:"Resize panels"},field:{color:"Color",colorPlaceholder:"Choose a color",colorPicker:"Color picker",saturationBrightness:"Saturation and brightness",saturationBrightnessValue:"Saturation {saturation}, brightness {brightness}",eyedropper:"Eyedropper",hue:"Hue",opacity:"Opacity",presets:"Preset colors",increment:"Increase",decrement:"Decrease",showPassword:"Show password",hidePassword:"Hide password",strengthWeak:"Weak",strengthFair:"Fair",strengthGood:"Good",strengthExcellent:"Excellent",rating:"Rating",optional:"(optional)"},date:{openCalendar:"Open calendar",chooseDate:"Choose a date",chooseTime:"Choose a time",previousMonth:"Previous month",nextMonth:"Next month",previousYear:"Previous year",nextYear:"Next year",previousDecade:"Previous decade",nextDecade:"Next decade",weekShort:"W",time:"Time",hours:"Hours",minutes:"Minutes",seconds:"Seconds",increaseHours:"Increase hours",decreaseHours:"Decrease hours",increaseMinutes:"Increase minutes",decreaseMinutes:"Decrease minutes",increaseSeconds:"Increase seconds",decreaseSeconds:"Decrease seconds",toggleAmPm:"Toggle AM/PM",selectedCount:"{n} selected"},list:{empty:"No items",reorder:"Reorder",available:"Available",selected:"Selected",sourceEmpty:"No items available",targetEmpty:"Drag or add items here",reorderSource:"Reorder available items",reorderTarget:"Reorder selected items",transfer:"Transfer",addSelection:"Add selection",addAll:"Add all",removeSelection:"Remove selection",removeAll:"Remove all",zoom:"Zoom",fit:"Fit to view",moved:"{item} moved, position {position} of {total}",movedMany:"{n} items moved, from position {position} of {total}",reorderHint:"Alt + arrow keys move the selected items, Alt + Home or End to the top or bottom",transferred:"{item} moved to {list}",transferredMany:"{n} items moved to {list}",transferHint:"Enter or Alt + arrow key moves the selected items to the other list, Alt + Up or Down reorders them"},richtext:{label:"Rich text",toolbar:"Formatting",bold:"Bold (Ctrl+B)",italic:"Italic (Ctrl+I)",underline:"Underline (Ctrl+U)",strike:"Strikethrough",code:"Inline code",bullet:"Bulleted list",ordered:"Numbered list",quote:"Quote",link:"Link (Ctrl+K)",clear:"Clear formatting",undo:"Undo (Ctrl+Z)",redo:"Redo (Ctrl+Shift+Z)",paragraph:"Paragraph",heading:"Heading",subheading:"Subheading",linkDialog:"Link",linkAddress:"Link address",linkInvalid:"Address refused: use https://…, mailto:…, /path or #anchor.",blockStyle:"Block style",charCount:"{n} character | {n} characters",charCountMax:"{n} / {max} character | {n} / {max} characters"},blocks:{label:"Block editor",keyboardHint:"In an empty block, type “/” to open the block menu (arrows, Enter). Ctrl+/ (⌘/ on Mac) opens the current block’s options: move, delete. Tab and Shift+Tab go from block to block, then leave the editor.",placeholder:"Start writing, or type “/” to insert a block…",headingPlaceholder:"Heading…",alertPlaceholder:"Type the callout content…",tune:"Click to tune",dragToMove:"or drag to move",convertTo:"Convert to",filter:"Filter",clickToDelete:"Click to delete",paragraph:"Text",heading:"Heading",headingLevel:"Heading {level}",image:"Image",code:"Code",delimiter:"Divider",alert:"Callout",listUnordered:"Bulleted list",listOrdered:"Numbered list",checklist:"Checklist",listStartWith:"Start with",listCounterType:"Counter type",listNumeric:"Numbers",link:"Link",addLink:"Add a link",insertLink:"Insert a link",bold:"Bold",italic:"Italic",underline:"Underline",youtube:"YouTube video",youtubeUrl:"Paste the YouTube video URL…",video:"Video",caption:"Caption (optional)…",alignLeft:"Align left",alignCenter:"Center",alignRight:"Align right",alignJustify:"Justify",width:"Width {percent}",originalSize:"Original size",chooseImage:"Choose an image…",crop:"Crop (non-destructive)",changeImage:"Change image",resize:"Resize"},planning:{weekLabel:"W{week}",quarterLabel:"Q{quarter}",recurring:"recurring",locked:"Locked",seriesLocked:"Recurring series: cannot be edited here yet",allDay:"all day",allDayShort:"all day",allDayBand:"all-day",more:"+{n} more",eventCount:"{n} event | {n} events",calendarHint:"Enter opens the event. Ctrl + arrow keys move it, Shift + arrow keys move its end.",schedulerHint:"Enter opens the event. Ctrl + left or right arrow moves it, Shift + left or right arrow moves its end, Ctrl + up or down arrow assigns it to the next resource.",ganttHint:"Enter opens the task. Ctrl + left or right arrow moves it by one day, Shift + left or right arrow moves its end.",calendarEmpty:"No events in this period",columnTask:"Task",columnStart:"Start",columnEnd:"End",columnDuration:"Duration",unplanned:"Unplanned",noDates:"no dates",noResource:"no resource",noDatesNoResource:"no dates or resource",ganttEmpty:"No scheduled tasks",milestone:"milestone",days:"{days} d",summary:"(summary)",lag:"lag {days}",resources:"Resources",fte:"{value} FTE",calendarException:"Calendar exception for this resource",multiResource:"multi-resource",multiResourceHint:"Multi-resource task: one bar per row",nothingInPeriod:"nothing in this period",dragToSchedule:"Drag onto a row to schedule “{label}”, or press Enter to place it on the first resource",schedulerEmpty:"No resources to display",announceAssigned:"“{label}” assigned to {resource}",announceScheduled:"“{label}” scheduled for {resource}, {date}",announceMoved:"“{label}” moved to {date}",announceResized:"“{label}” extended to {date}",wipLimit:"Work-in-progress limit",due:"Due date",boardEmpty:"Nothing here",orphanHint:"No known column — placed in the default one, never hidden",tasks:"Tasks",unassigned:"Unassigned",announceBoardAssigned:"{label} — assigned to {target}, position {position} of {total}.",announceBoardMoved:"{label} — moved to {target}, position {position} of {total}.",boardHint:"Enter opens the task. Ctrl + arrow keys move it: left and right to another column, up and down to another position.",issueEmptyCalendar:"No working time declared: durations cannot be converted.",issueDuplicateTask:"Duplicate identifier: the first occurrence is kept.",issueBadStart:"Unreadable start date.",issueBadEnd:"Unreadable end date.",issueBadDuration:"Unreadable duration: {value}",issueEndBeforeStart:"The end is before the start: the end is moved back to the start.",issueUnknownResource:"Unknown resource: {id}",issueUnknownBucket:"Unknown column: {id}",issueSelfParent:"A task cannot be its own parent.",issueUnknownParent:"Unknown parent: {id} — the task becomes a root.",issueParentCycle:"Parent cycle broken at this task.",issueSelfLink:"A task cannot depend on itself.",issueUnknownLinkEnd:"Link ignored: {from} -> {to} points to a missing task.",issueBadLag:"Unreadable lag: {value}",issueLinkCycle:"This task is part of a dependency cycle."},map:{title:"Map",loading:"Loading the map…",error:"Map error",showAttributions:"Toggle attribution",reportError:"Map feedback",myLocation:"My location",locationUnavailable:"Location unavailable",resetBearing:"Reset bearing to north",gestureCtrl:"Use Ctrl + scroll to zoom the map",gestureCmd:"Use ⌘ + scroll to zoom the map",gestureTouch:"Use two fingers to move the map",basemap:"Basemap",basemapLight:"Light",basemapDark:"Dark",basemapCadastre:"Cadastral parcels",basemapIgnVector:"Plan IGN (vector)",transparency:"Transparency",opacity:"Opacity",apiKeyRequired:"API key required",layers:"Layers",layerMissing:"Layer “{layer}” not found",zoomToLayer:"Zoom to layer",noLayers:"No layers.",noVisibleLayers:"No visible layers",legend:"Legend",legendOther:"Other",templateMissing:"template “{name}” not found",tabBasemap:"Basemap",tabTools:"Tools",tabExport:"Export",chromeTooltip:"Map: basemap, layers, tools, export",resetView:"Reset view",shareLink:"Share link",symbology:"Symbology · {layer}",colorBy:"Color by",solidColor:"solid color",color:"Color",labelField:"Label",none:"none",restoreSymbology:"Restore the declared symbology",importGeoJson:"Import a GeoJSON file",distance:"Distance",area:"Area",query:"Identify",compare:"Compare",northFlat:"North / flat",toolsLabel:"Map tools",vertexCount:"{n} point placed | {n} points placed",keyboardDrawHint:"Keyboard: arrows move the map, Space places a point at the centre, Backspace removes the last one, Enter finishes, Esc cancels.",compareSplit:"Comparison divider",compareLeft:"Left: {name}",compareRight:"Right: {name}",measureHint:"Click on the map, double-click (or Enter) to finish, Esc to cancel.",drawing:"Drawing",drawPoint:"Point",drawLine:"Line",drawPolygon:"Polygon",drawRect:"Rect.",drawSelect:"Select",selectMove:"Select / move",deleteSelection:"Delete selection",clearAll:"Clear all",downloadDrawing:"Download the drawing (GeoJSON)",drawHint:"Point: click · Line/Polygon: clicks then double-click · Rectangle: 2 clicks · Select: click a shape, move its vertices, Del to delete. Geometries are emitted through {output}.",comparison:"Comparison",rightBasemap:"Right-hand basemap",pngImage:"PNG image",link:"Link",print:"Print",pngOptions:"PNG options",includeLegend:"Include the legend",highResolution:"High resolution (×2)",screenshotHint:"Enable {input} on the map to export an image.",layerImported:"Layer imported",importFailed:"Import failed",invalidJsonFile:"The file is not valid JSON.",youAreHere:"You are here",exportImage:"Image export",addScreenshotable:"Add `{input}` to the map.",exportFailed:"Export failed",noGeoJsonLayer:"No GeoJSON layer",linkCopied:"Link copied",drawingFile:"drawing",mapFile:"map",layersCount:"Layers ({visible} / {total})",queryHint:"Click an object on the map, or press Enter on the map for the one at the centre.",nothingHere:"Nothing here",linkShown:"Link: {url}",geojson:"GeoJSON",objectCount:"{n} object | {n} objects",objectCountShort:"{n} obj.",bbox:"bbox {bbox}",cardEmpty:"No geometry — draw or edit the GeoJSON",editGeoJson:"Edit the GeoJSON",viewGeoJson:"View the GeoJSON",backToMap:"Back to the map",validate:"Apply",searchPlaceholder:"Search for an address or a town…",searchResults:"{n} result | {n} results",rail:"Map panels",noProperties:"no properties",jsonEditor:"JSON editor",jsonFormat:"Format (2 spaces)",jsonCompact:"Minify",importFile:"Import a file",jsonStatus:"{lines} ln · {chars} ch",jsonInvalid:"Invalid JSON: {message}",jsonInvalidAt:"Invalid JSON (line {line}, col. {column}): {message}",jsonErrors:"{n} error — {first} | {n} errors — {first}",jsonUnexpectedEnd:"the text ends too early",jsonUnexpectedToken:"unexpected character “{token}”",jsonUnterminatedString:"unterminated string",jsonBadEscape:"invalid escape in a string",jsonBadNumber:"invalid number",jsonControlChar:"control character in a string",jsonTrailing:"extra text after the value",geoObjectExpected:"{path}: object expected",geoPositionExpected:"{path}: numeric [lon, lat] position expected",geoOutOfBounds:"{path}: out of bounds (lon ±180, lat ±90 — projected coordinates? Lambert 93 is not supported)",geoRingTooShort:"{path}: ring of ≥ 4 positions expected",geoRingOpen:"{path}: ring not closed (first ≠ last point)",geoLineTooShort:"{path}: ≥ 2 positions expected",geoLinesExpected:"{path}: array of lines expected",geoLineExpected:"{path}: line expected",geoRingsExpected:"{path}: rings expected",geoPolygonsExpected:"{path}: array of polygons expected",geoPolygonExpected:"{path}: polygon expected",geoGeometriesExpected:"{path}: geometries expected",geoUnknownGeometry:"{path}: unknown geometry type “{type}”",geoArrayExpected:"{path}: array expected",geoGeometryExpected:"{path}: geometry expected",geoTypeExpected:"{path}: GeoJSON type expected (FeatureCollection, Feature or geometry), got “{type}”"}};var x=" | ",f=new Map,V=(e)=>{let a=f.get(e);if(!a){try{a=new Intl.PluralRules(e)}catch{a=new Intl.PluralRules("en")}f.set(e,a)}return a},L=(e,a,t)=>{if(typeof t!=="number"||!a.includes(x))return a;let o=a.split(x);return V(e).select(t)==="one"?o[0]:o[o.length-1]},z=(e,a)=>a?e.replace(/\{([A-Za-z_][A-Za-z0-9_]*)\}/g,(t,o)=>a[o]===null||a[o]===void 0?t:String(a[o])):e;var b=(e,a,t)=>z(L(e,a,t?.n),t),hn=(e)=>{try{let a=new Intl.Locale(e),t=a.getWeekInfo?.()??a.weekInfo;return t?t.firstDay%7:1}catch{return 1}},Ns=(e)=>{try{return/^h1[12]$/.test(new Intl.DateTimeFormat(e,{hour:"numeric"}).resolvedOptions().hourCycle??"")}catch{return!1}};function w(e,a){if(typeof a==="function")return a(e);let t=e;for(let o of a.split("."))t=t?.[o];return typeof t==="string"?t:void 0}var Tt=(e,a,t,o)=>b(e,w(a,t)??w(Ct,t)??String(t),o),k=(e,a,t,o,n)=>t===null||t===void 0?Tt(e,a,o,n):b(e,t,n);var M={"chevron-down":'<path d="m6 9 6 6 6-6"/>',"chevron-up":'<path d="m18 15-6-6-6 6"/>',"chevron-right":'<path d="m9 18 6-6-6-6"/>',"chevron-left":'<path d="m15 18-6-6 6-6"/>',"chevrons-left":'<path d="m11 17-5-5 5-5M18 17l-5-5 5-5"/>',"chevrons-right":'<path d="m6 17 5-5-5-5M13 17l5-5-5-5"/>',"chevrons-up-down":'<path d="m7 15 5 5 5-5M7 9l5-5 5 5"/>',"arrow-up":'<path d="m5 12 7-7 7 7M12 19V5"/>',"arrow-down":'<path d="M12 5v14M19 12l-7 7-7-7"/>',"arrow-left":'<path d="m12 19-7-7 7-7M19 12H5"/>',"arrow-right":'<path d="M5 12h14M12 5l7 7-7 7"/>',check:'<path d="M20 6 9 17l-5-5"/>',"check-circle":'<circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/>',x:'<path d="M18 6 6 18M6 6l12 12"/>',"x-circle":'<circle cx="12" cy="12" r="10"/><path d="m15 9-6 6M9 9l6 6"/>',plus:'<path d="M5 12h14M12 5v14"/>',minus:'<path d="M5 12h14"/>',search:'<circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/>',filter:'<path d="M22 3H2l8 9.46V19l4 2v-8.54L22 3z"/>',info:'<circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/>',"alert-triangle":'<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3zM12 9v4M12 17h.01"/>',"alert-circle":'<circle cx="12" cy="12" r="10"/><path d="M12 8v4M12 16h.01"/>',"help-circle":'<circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3M12 17h.01"/>',eye:'<path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z"/><circle cx="12" cy="12" r="3"/>',"eye-off":'<path d="M9.88 9.88a3 3 0 1 0 4.24 4.24M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61M2 2l20 20"/>',calendar:'<rect width="18" height="18" x="3" y="4" rx="2"/><path d="M16 2v4M8 2v4M3 10h18"/>',clock:'<circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/>',copy:'<rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',trash:'<path d="M3 6h18M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/>',edit:'<path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"/>',save:'<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"/><path d="M17 21v-8H7v8M7 3v5h8"/>',download:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3"/>',upload:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12"/>',refresh:'<path d="M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16"/><path d="M16 16h5v5"/>',play:'<path d="m6 3 14 9-14 9V3z"/>',pause:'<rect width="4" height="16" x="6" y="4"/><rect width="4" height="16" x="14" y="4"/>',square:'<rect width="18" height="18" x="3" y="3" rx="2"/>',rocket:'<path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z"/><path d="m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z"/><path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"/>',database:'<ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M3 5v14a9 3 0 0 0 18 0V5M3 12a9 3 0 0 0 18 0"/>',server:'<rect width="20" height="8" x="2" y="2" rx="2"/><rect width="20" height="8" x="2" y="14" rx="2"/><path d="M6 6h.01M6 18h.01"/>',"git-branch":'<path d="M6 3v12M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/><path d="M15 6a9 9 0 0 0-9 9"/>',folder:'<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2z"/>',file:'<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/>',settings:'<path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/>',user:'<path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/>',users:'<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75"/>',home:'<path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><path d="M9 22V12h6v10"/>',menu:'<path d="M4 12h16M4 6h16M4 18h16"/>',"more-horizontal":'<circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/>',"more-vertical":'<circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/>',"external-link":'<path d="M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>',link:'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/>',lock:'<rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>',unlock:'<rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 9.9-1"/>',key:'<path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0 3 3L22 7l-3-3m-3.5 3.5L19 4"/>',mail:'<rect width="20" height="16" x="2" y="4" rx="2"/><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"/>',bell:'<path d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9M10.3 21a1.94 1.94 0 0 0 3.4 0"/>',star:'<path d="m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.24L7 14.14 2 9.27l6.91-1.01L12 2z"/>',heart:'<path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7z"/>',sun:'<circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"/>',moon:'<path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9z"/>',code:'<path d="m16 18 6-6-6-6M8 6l-6 6 6 6"/>',terminal:'<path d="m4 17 6-6-6-6M12 19h8"/>',layers:'<path d="m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"/><path d="m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65M22 12.65l-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65"/>',grid:'<rect width="7" height="7" x="3" y="3" rx="1"/><rect width="7" height="7" x="14" y="3" rx="1"/><rect width="7" height="7" x="14" y="14" rx="1"/><rect width="7" height="7" x="3" y="14" rx="1"/>',list:'<path d="M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01"/>',table:'<path d="M12 3v18M3 9h18M3 15h18"/><rect width="18" height="18" x="3" y="3" rx="2"/>',columns:'<rect width="18" height="18" x="3" y="3" rx="2"/><path d="M12 3v18"/>',maximize:'<path d="M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3"/>',minimize:'<path d="M8 3v3a2 2 0 0 1-2 2H3M21 8h-3a2 2 0 0 1-2-2V3M3 16h3a2 2 0 0 1 2 2v3M16 21v-3a2 2 0 0 1 2-2h3"/>',loader:'<path d="M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83"/>',"log-out":'<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9"/>',zap:'<path d="M13 2 3 14h9l-1 8 10-12h-9l1-8z"/>',globe:'<circle cx="12" cy="12" r="10"/><path d="M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>',cloud:'<path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9z"/>',shield:'<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>',inbox:'<path d="M22 12h-6l-2 3h-4l-2-3H2"/><path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"/>',package:'<path d="m7.5 4.27 9 5.15M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"/><path d="m3.3 7 8.7 5 8.7-5M12 22V12"/>',sliders:'<path d="M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3M2 14h4M10 8h4M18 16h4"/>',map:'<path d="m3 6 6-3 6 3 6-3v15l-6 3-6-3-6 3z"/><path d="M9 3v15M15 6v15"/>',"map-pin":'<path d="M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z"/><circle cx="12" cy="10" r="3"/>',ruler:'<path d="m3 17 14-14 4 4L7 21z"/><path d="m8 12 2 2M11 9l2 2M14 6l2 2"/>',compass:'<circle cx="12" cy="12" r="10"/><path d="m16.24 7.76-2.12 6.36-6.36 2.12 2.12-6.36z"/>',crosshair:'<circle cx="12" cy="12" r="10"/><path d="M22 12h-4M6 12H2M12 6V2M12 22v-4"/>',drag:'<circle cx="9" cy="6" r="1"/><circle cx="15" cy="6" r="1"/><circle cx="9" cy="12" r="1"/><circle cx="15" cy="12" r="1"/><circle cx="9" cy="18" r="1"/><circle cx="15" cy="18" r="1"/>'};var p={"file-text":'<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z"/><path d="M14 2v4a2 2 0 0 0 2 2h4M10 9H8M16 13H8M16 17H8"/>',"file-json":'<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/>',"file-code":'<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z"/><path d="M14 2v4a2 2 0 0 0 2 2h4M10 12.5 8 15l2 2.5M14 12.5l2 2.5-2 2.5"/>',"file-spreadsheet":'<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z"/><path d="M14 2v4a2 2 0 0 0 2 2h4M8 13h2M14 13h2M8 17h2M14 17h2"/>',"file-image":'<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><circle cx="10" cy="12" r="2"/><path d="m20 17-1.3-1.3a2 2 0 0 0-2.8 0L11 20"/>',"file-archive":'<path d="M10 12v-1M10 18v-2M10 7V6"/><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><circle cx="10" cy="20" r="2"/>',"file-plus":'<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z"/><path d="M14 2v4a2 2 0 0 0 2 2h4M9 15h6M12 18v-6"/>',"file-check":'<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z"/><path d="M14 2v4a2 2 0 0 0 2 2h4M9 15l2 2 4-4"/>',"file-x":'<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z"/><path d="M14 2v4a2 2 0 0 0 2 2h4M9.5 12.5l5 5M14.5 12.5l-5 5"/>',"file-search":'<path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M4.27 20A2 2 0 0 0 6 22h12a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3"/><circle cx="6.5" cy="13.5" r="3.5"/><path d="m2 22 2-2"/>',files:'<path d="M20 7h-3a2 2 0 0 1-2-2V2"/><path d="M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l5 5v9a2 2 0 0 1-2 2z"/><path d="M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8"/>',"folder-open":'<path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"/>',"folder-plus":'<path d="M12 10v6M9 13h6"/><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2z"/>',"folder-tree":'<path d="M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1z"/><path d="M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1z"/><path d="M3 5a2 2 0 0 0 2 2h3M3 3v13a2 2 0 0 0 2 2h3"/>',archive:'<rect width="20" height="5" x="2" y="3" rx="1"/><path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8M10 12h4"/>',clipboard:'<rect width="8" height="4" x="8" y="2" rx="1" ry="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/>',"clipboard-check":'<rect width="8" height="4" x="8" y="2" rx="1" ry="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2M9 14l2 2 4-4"/>',"clipboard-list":'<rect width="8" height="4" x="8" y="2" rx="1" ry="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2M12 11h4M12 16h4M8 11h.01M8 16h.01"/>',"clipboard-copy":'<rect width="8" height="4" x="8" y="2" rx="1" ry="1"/><path d="M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M16 4h2a2 2 0 0 1 2 2v4M21 14H11M15 10l-4 4 4 4"/>',notebook:'<path d="M2 6h4M2 10h4M2 14h4M2 18h4"/><rect width="16" height="20" x="4" y="2" rx="2"/><path d="M16 2v20"/>',"book-open":'<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"/><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"/>',"download-cloud":'<path d="M12 13v8l-4-4M12 21l4-4"/><path d="M4.39 18.4A7 7 0 1 1 15.7 8H17a5 5 0 0 1 3.5 8.6"/>',"upload-cloud":'<path d="M12 13v8M12 13l-4 4M12 13l4 4"/><path d="M4.39 18.4A7 7 0 1 1 15.7 8H17a5 5 0 0 1 3.5 8.6"/>',"cloud-off":'<path d="m2 2 20 20M5.78 5.78A7 7 0 0 0 9 22h9M22 16a5 5 0 0 0-2.35-4.24A7 7 0 0 0 9.5 5.5"/>',"database-zap":'<ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M3 5v14a9 3 0 0 0 12 2.84M21 5v3M21 12 18 17h6l-3 5M3 12a9 3 0 0 0 11.59 2.87"/>',"hard-drive":'<path d="M22 12H2M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11zM6 16h.01M10 16h.01"/>',cpu:'<rect width="16" height="16" x="4" y="4" rx="2"/><rect width="6" height="6" x="9" y="9" rx="1"/><path d="M15 2v2M15 20v2M2 15h2M2 9h2M20 15h2M20 9h2M9 2v2M9 20v2"/>',"memory-stick":'<path d="M6 19v-3M10 19v-3M14 19v-3M18 19v-3M8 11V9M16 11V9M12 11V9M2 15h20M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.8V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-2.1a2 2 0 0 0 0-3.8z"/>',"git-commit":'<circle cx="12" cy="12" r="3"/><path d="M3 12h6M15 12h6"/>',"git-merge":'<circle cx="18" cy="18" r="3"/><circle cx="6" cy="6" r="3"/><path d="M6 21V9a9 9 0 0 0 9 9"/>',"git-pull-request":'<circle cx="18" cy="18" r="3"/><circle cx="6" cy="6" r="3"/><path d="M13 6h3a2 2 0 0 1 2 2v7M6 9v12"/>',"git-fork":'<circle cx="12" cy="18" r="3"/><circle cx="6" cy="6" r="3"/><circle cx="18" cy="6" r="3"/><path d="M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9M12 12v3"/>',"git-compare":'<circle cx="18" cy="18" r="3"/><circle cx="6" cy="6" r="3"/><path d="M13 6h3a2 2 0 0 1 2 2v7M11 18H8a2 2 0 0 1-2-2V9"/>',bug:'<path d="m8 2 1.88 1.88M14.12 3.88 16 2M9 7.13v-1a3.003 3.003 0 1 1 6 0v1"/><path d="M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6M12 20v-9M6.53 9C4.6 8.8 3 7.1 3 5M6 13H2M3 21c0-2.1 1.7-3.9 3.8-4M20.97 5c0 2.1-1.6 3.8-3.5 4M22 13h-4M17.2 17c2.1.1 3.8 1.9 3.8 4"/>',box:'<path d="M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"/><path d="m3.3 7 8.7 5 8.7-5M12 22V12"/>',boxes:'<path d="M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42z"/><path d="m7 16.5-4.74-2.85M7 16.5l5-3M7 16.5v5.17M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3z"/><path d="m17 16.5-5-3M17 16.5l4.74-2.85M17 16.5v5.17M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0z"/><path d="M12 8 7.26 5.15M12 8l4.74-2.85M12 13.5V8"/>',binary:'<rect x="14" y="14" width="4" height="6" rx="2"/><rect x="6" y="4" width="4" height="6" rx="2"/><path d="M6 20h4M14 10h4M6 14h2v6M14 4h2v6"/>',braces:'<path d="M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1"/>',brackets:'<path d="M16 3h3v18h-3M8 21H5V3h3"/>',"function-square":'<rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><path d="M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3M9 11.2h5.7"/>',"table-properties":'<path d="M15 3v18M21 9H3M21 15H3"/><rect width="18" height="18" x="3" y="3" rx="2"/>',scan:'<path d="M3 7V5a2 2 0 0 1 2-2h2M17 3h2a2 2 0 0 1 2 2v2M21 17v2a2 2 0 0 1-2 2h-2M7 21H5a2 2 0 0 1-2-2v-2"/>',"qr-code":'<rect width="5" height="5" x="3" y="3" rx="1"/><rect width="5" height="5" x="16" y="3" rx="1"/><rect width="5" height="5" x="3" y="16" rx="1"/><path d="M21 16h-3a2 2 0 0 0-2 2v3M21 21v.01M12 7v3a2 2 0 0 1-2 2H7M3 12h.01M12 3h.01M12 16v.01M16 12h1M21 12v.01M12 21v-1"/>',barcode:'<path d="M3 5v14M8 5v14M12 5v14M17 5v14M21 5v14"/>',paperclip:'<path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"/>',printer:'<path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"/><path d="M6 9V3h12v6"/><rect x="6" y="14" width="12" height="8" rx="1"/>',share:'<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8M16 6l-4-4-4 4M12 2v13"/>',"share-2":'<circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><path d="m8.59 13.51 6.83 3.98M15.41 6.51l-6.82 3.98"/>',unlink:'<path d="m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71M5.17 11.75l-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71M8 2v3M2 8h3M16 19v3M19 16h3"/>',bookmark:'<path d="m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"/>',tag:'<path d="M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"/><circle cx="7.5" cy="7.5" r=".5"/>',tags:'<path d="m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19"/><path d="M9.586 5.586A2 2 0 0 0 8.172 5H3a1 1 0 0 0-1 1v5.172a2 2 0 0 0 .586 1.414L8.29 18.29a2.426 2.426 0 0 0 3.42 0l3.58-3.58a2.426 2.426 0 0 0 0-3.42z"/><circle cx="6.5" cy="9.5" r=".5"/>',flag:'<path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1zM4 22v-7"/>',"mail-open":'<path d="M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0z"/><path d="m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10"/>',"message-square":'<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/>',"message-circle":'<path d="M7.9 20A9 9 0 1 0 4 16.1L2 22z"/>',phone:'<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z"/>'};var v={"panel-left":'<rect width="18" height="18" x="3" y="3" rx="2"/><path d="M9 3v18"/>',"panel-right":'<rect width="18" height="18" x="3" y="3" rx="2"/><path d="M15 3v18"/>',"panel-top":'<rect width="18" height="18" x="3" y="3" rx="2"/><path d="M3 9h18"/>',"panel-bottom":'<rect width="18" height="18" x="3" y="3" rx="2"/><path d="M3 15h18"/>',smartphone:'<rect width="14" height="20" x="5" y="2" rx="2.5"/><path d="M11 18.5h2"/>',tablet:'<rect width="16" height="20" x="4" y="2" rx="2"/><path d="M10.5 18.5h3"/>',"sidebar-open":'<rect width="18" height="18" x="3" y="3" rx="2"/><path d="M9 3v18M14 9l3 3-3 3"/>',"sidebar-close":'<rect width="18" height="18" x="3" y="3" rx="2"/><path d="M9 3v18M16 15l-3-3 3-3"/>',rows:'<rect width="18" height="18" x="3" y="3" rx="2"/><path d="M3 12h18"/>',"columns-3":'<rect width="18" height="18" x="3" y="3" rx="2"/><path d="M9 3v18M15 3v18"/>',"grid-2x2":'<rect width="18" height="18" x="3" y="3" rx="2"/><path d="M3 12h18M12 3v18"/>',"layout-dashboard":'<rect width="7" height="9" x="3" y="3" rx="1"/><rect width="7" height="5" x="14" y="3" rx="1"/><rect width="7" height="9" x="14" y="12" rx="1"/><rect width="7" height="5" x="3" y="16" rx="1"/>',"layout-list":'<rect width="7" height="7" x="3" y="3" rx="1"/><rect width="7" height="7" x="3" y="14" rx="1"/><path d="M14 4h7M14 9h7M14 15h7M14 20h7"/>',"layout-template":'<rect width="18" height="7" x="3" y="3" rx="1"/><rect width="9" height="7" x="3" y="14" rx="1"/><rect width="5" height="7" x="16" y="14" rx="1"/>',kanban:'<path d="M6 5v11M12 5v6M18 5v14"/>',"list-ordered":'<path d="M10 12h11M10 18h11M10 6h11M4 10h2M4 6h1v4M6 18H4c0-1 2-2 2-3s-1-1.5-2-1"/>',"list-checks":'<path d="m3 17 2 2 4-4M3 7l2 2 4-4M13 6h8M13 12h8M13 18h8"/>',"list-filter":'<path d="M3 6h18M7 12h10M10 18h4"/>',"split-square-horizontal":'<path d="M8 19H5c-1 0-2-1-2-2V7c0-1 1-2 2-2h3M16 5h3c1 0 2 1 2 2v10c0 1-1 2-2 2h-3M12 4v16"/>',move:'<path d="M12 2v20M17 5l-5-3-5 3M17 19l-5 3-5-3M2 12h20M5 7l-3 5 3 5M19 7l3 5-3 5"/>',"move-horizontal":'<path d="m18 8 4 4-4 4M2 12h20M6 8l-4 4 4 4"/>',"move-vertical":'<path d="M12 2v20M8 18l4 4 4-4M8 6l4-4 4 4"/>',expand:'<path d="m21 21-6-6m6 6v-4.8m0 4.8h-4.8M3 16.2V21m0 0h4.8M3 21l6-6M21 7.8V3m0 0h-4.8M21 3l-6 6M3 7.8V3m0 0h4.8M3 3l6 6"/>',shrink:'<path d="m15 15 6 6m-6-6v4.8m0-4.8h4.8M9 19.8V15m0 0H4.2M9 15l-6 6M15 4.2V9m0 0h4.8M15 9l6-6M9 4.2V9m0 0H4.2M9 9 3 3"/>',fullscreen:'<path d="M3 7V5a2 2 0 0 1 2-2h2M17 3h2a2 2 0 0 1 2 2v2M21 17v2a2 2 0 0 1-2 2h-2M7 21H5a2 2 0 0 1-2-2v-2"/><rect width="10" height="8" x="7" y="8" rx="1"/>',pin:'<path d="M12 17v5M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"/>',"pin-off":'<path d="M12 17v5M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89M2 2l20 20M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11"/>',"sort-asc":'<path d="m3 8 4-4 4 4M7 4v16M11 12h4M11 16h7M11 20h10"/>',"sort-desc":'<path d="m3 16 4 4 4-4M7 20V4M11 4h10M11 8h7M11 12h4"/>',"arrow-up-down":'<path d="m21 16-4 4-4-4M17 20V4M3 8l4-4 4 4M7 4v16"/>',"zoom-in":'<circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3M11 8v6M8 11h6"/>',"zoom-out":'<circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3M8 11h6"/>',"rotate-cw":'<path d="M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/>',"rotate-ccw":'<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/>',undo:'<path d="M3 7v6h6"/><path d="M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13"/>',redo:'<path d="M21 7v6h-6"/><path d="M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7"/>',"clipboard-paste":'<path d="M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z"/><path d="M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10M17 10l4 4-4 4"/>',scissors:'<circle cx="6" cy="6" r="3"/><path d="M8.12 8.12 12 12M20 4 8.12 15.88"/><circle cx="6" cy="18" r="3"/><path d="M14.8 14.8 20 20"/>',"trash-2":'<path d="M3 6h18M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2M10 11v6M14 11v6"/>',pencil:'<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"/><path d="m15 5 4 4"/>',"pen-line":'<path d="M12 20h9M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"/>',eraser:'<path d="m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21M22 21H7M5 11l9 9"/>',"bell-off":'<path d="M8.7 3A6 6 0 0 1 18 8a21.3 21.3 0 0 0 .6 5M17 17H3s3-2 3-9a4.67 4.67 0 0 1 .3-1.7M10.3 21a1.94 1.94 0 0 0 3.4 0M2 2l20 20"/>',"bell-ring":'<path d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9M10.3 21a1.94 1.94 0 0 0 3.4 0M4 2C2.8 3.7 2 5.7 2 8M22 8c0-2.3-.8-4.3-2-6"/>',"calendar-days":'<path d="M8 2v4M16 2v4"/><rect width="18" height="18" x="3" y="4" rx="2"/><path d="M3 10h18M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01M16 18h.01"/>',"calendar-plus":'<path d="M8 2v4M16 2v4M21 13V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8M3 10h18M16 19h6M19 16v6"/>',"calendar-check":'<path d="M8 2v4M16 2v4"/><rect width="18" height="18" x="3" y="4" rx="2"/><path d="M3 10h18M9 16l2 2 4-4"/>',"calendar-x":'<path d="M8 2v4M16 2v4"/><rect width="18" height="18" x="3" y="4" rx="2"/><path d="M3 10h18M10 14l4 4M14 14l-4 4"/>',"calendar-range":'<rect width="18" height="18" x="3" y="4" rx="2"/><path d="M16 2v4M3 10h18M8 2v4M17 14h-6M13 18H7M7 14h.01M17 18h.01"/>',timer:'<path d="M10 2h4M12 14l3-3M12 22a8 8 0 1 0 0-16 8 8 0 0 0 0 16z"/>',history:'<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5M12 7v5l4 2"/>',"alarm-clock":'<circle cx="12" cy="13" r="8"/><path d="M12 9v4l2 2M5 3 2 6M22 6l-3-3M6.38 18.7 4 21M17.64 18.67 20 21"/>',hourglass:'<path d="M5 22h14M5 2h14M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2"/>',"chevrons-down":'<path d="m7 6 5 5 5-5M7 13l5 5 5-5"/>',"chevrons-up":'<path d="m17 11-5-5-5 5M17 18l-5-5-5 5"/>',"chevron-first":'<path d="m17 18-6-6 6-6M7 6v12"/>',"chevron-last":'<path d="m7 18 6-6-6-6M17 6v12"/>',"arrow-up-right":'<path d="M7 7h10v10M7 17 17 7"/>',"arrow-down-right":'<path d="m7 7 10 10M17 7v10H7"/>',"arrow-down-left":'<path d="M17 7 7 17M17 17H7V7"/>',"arrow-up-left":'<path d="M7 17V7h10M17 17 7 7"/>',"arrow-left-right":'<path d="M8 3 4 7l4 4M4 7h16M16 21l4-4-4-4M20 17H4"/>',"arrow-right-left":'<path d="m16 3 4 4-4 4M20 7H4M8 21l-4-4 4-4M4 17h16"/>',"corner-down-left":'<path d="m9 10-5 5 5 5"/><path d="M20 4v7a4 4 0 0 1-4 4H4"/>',"corner-down-right":'<path d="m15 10 5 5-5 5"/><path d="M4 4v7a4 4 0 0 0 4 4h12"/>',"corner-up-left":'<path d="M9 14 4 9l5-5"/><path d="M20 20v-7a4 4 0 0 0-4-4H4"/>',"corner-up-right":'<path d="m15 14 5-5-5-5"/><path d="M4 20v-7a4 4 0 0 1 4-4h12"/>',"plus-circle":'<circle cx="12" cy="12" r="10"/><path d="M8 12h8M12 8v8"/>',"minus-circle":'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/>',"plus-square":'<rect width="18" height="18" x="3" y="3" rx="2"/><path d="M8 12h8M12 8v8"/>',"minus-square":'<rect width="18" height="18" x="3" y="3" rx="2"/><path d="M8 12h8"/>',"x-square":'<rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><path d="m15 9-6 6M9 9l6 6"/>',"check-square":'<path d="m9 11 3 3L22 4"/><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"/>',"check-check":'<path d="M18 6 7 17l-5-5M22 10l-7.5 7.5L13 16"/>',ellipsis:'<circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/>',"grip-horizontal":'<circle cx="12" cy="9" r="1"/><circle cx="19" cy="9" r="1"/><circle cx="5" cy="9" r="1"/><circle cx="12" cy="15" r="1"/><circle cx="19" cy="15" r="1"/><circle cx="5" cy="15" r="1"/>',"toggle-left":'<rect width="20" height="12" x="2" y="6" rx="6" ry="6"/><circle cx="8" cy="12" r="2"/>',"toggle-right":'<rect width="20" height="12" x="2" y="6" rx="6" ry="6"/><circle cx="16" cy="12" r="2"/>',"sliders-horizontal":'<path d="M21 4h-7M10 4H3M21 12h-9M8 12H3M21 20h-5M12 20H3M14 2v4M8 10v4M16 18v4"/>',"settings-2":'<path d="M20 7h-9M14 17H5"/><circle cx="17" cy="17" r="3"/><circle cx="7" cy="7" r="3"/>',wrench:'<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/>',hammer:'<path d="m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9M18 15l4-4M21.5 11.5l-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5"/>',"log-in":'<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4M10 17l5-5-5-5M15 12H3"/>',"door-open":'<path d="M13 4h3a2 2 0 0 1 2 2v14M2 20h3M13 20h9M10 12v.01M13 4.562v16.157a1 1 0 0 1-1.242.97L5 20V5.562a2 2 0 0 1 1.515-1.94l4-1A2 2 0 0 1 13 4.561Z"/>',power:'<path d="M12 2v10M18.4 6.6a9 9 0 1 1-12.77.04"/>',plug:'<path d="M12 22v-5M9 8V2M15 8V2M18 8v5a6 6 0 0 1-12 0V8z"/>',battery:'<rect width="16" height="10" x="2" y="7" rx="2" ry="2"/><path d="M22 11v2"/>',"battery-charging":'<path d="M15 7h1a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-2M6 7H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h1M11 7l-3 5h4l-3 5M22 11v2"/>',"battery-full":'<rect width="16" height="10" x="2" y="7" rx="2" ry="2"/><path d="M22 11v2M6 11v2M10 11v2M14 11v2"/>',"battery-low":'<rect width="16" height="10" x="2" y="7" rx="2" ry="2"/><path d="M22 11v2M6 11v2"/>',palette:'<circle cx="13.5" cy="6.5" r=".5"/><circle cx="17.5" cy="10.5" r=".5"/><circle cx="8.5" cy="7.5" r=".5"/><circle cx="6.5" cy="12.5" r=".5"/><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z"/>',paintbrush:'<path d="M18.37 2.63 14 7l-1.59-1.59a2 2 0 0 0-2.82 0L8 7l9 9 1.59-1.59a2 2 0 0 0 0-2.82L17 10l4.37-4.37a2.12 2.12 0 1 0-3-3zM9 8c-2 3-4 3.5-7 4l8 10c2-1 6-5 6-7M14.5 17.5 4.5 15"/>',image:'<rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/>',images:'<path d="M18 22H4a2 2 0 0 1-2-2V6"/><path d="m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18"/><circle cx="12" cy="8" r="2"/><rect width="16" height="16" x="6" y="2" rx="2"/>',camera:'<path d="M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z"/><circle cx="12" cy="13" r="3"/>',video:'<path d="m22 8-6 4 6 4V8Z"/><rect width="14" height="12" x="2" y="6" rx="2" ry="2"/>',film:'<rect width="18" height="18" x="3" y="3" rx="2"/><path d="M7 3v18M3 7.5h4M3 12h18M3 16.5h4M17 3v18M17 7.5h4M17 16.5h4"/>',music:'<path d="M9 18V5l12-2v13"/><circle cx="6" cy="18" r="3"/><circle cx="18" cy="16" r="3"/>',mic:'<path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2M12 19v3"/>',"volume-2":'<path d="M11 5 6 9H2v6h4l5 4V5zM15.54 8.46a5 5 0 0 1 0 7.07M19.07 4.93a10 10 0 0 1 0 14.14"/>',"volume-x":'<path d="M11 5 6 9H2v6h4l5 4V5zM22 9l-6 6M16 9l6 6"/>',stop:'<rect width="14" height="14" x="5" y="5" rx="2"/>',"skip-back":'<path d="m19 20-10-8 10-8v16zM5 19V5"/>',"skip-forward":'<path d="m5 4 10 8-10 8V4zM19 5v14"/>',shuffle:'<path d="M2 18h1.4c1.3 0 2.5-.6 3.3-1.7l6.1-8.6c.7-1.1 2-1.7 3.3-1.7H22M18 2l4 4-4 4M2 6h1.9c1.5 0 2.9.9 3.6 2.2M22 18h-5.9c-1.3 0-2.6-.7-3.3-1.8l-.5-.8M18 14l4 4-4 4"/>',repeat:'<path d="m17 2 4 4-4 4M3 11v-1a4 4 0 0 1 4-4h14M7 22l-4-4 4-4M21 13v1a4 4 0 0 1-4 4H3"/>',bold:'<path d="M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8"/>',italic:'<path d="M19 4h-9M14 20H5M15 4 9 20"/>',underline:'<path d="M6 4v6a6 6 0 0 0 12 0V4M4 20h16"/>',strikethrough:'<path d="M16 4H9a3 3 0 0 0-2.83 4M14 12a4 4 0 0 1 0 8H6M4 12h16"/>',heading:'<path d="M6 12h12M6 20V4M18 20V4"/>',quote:'<path d="M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2zM5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z"/>',"link-chain":'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/>'};var u={"map-pinned":'<path d="M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0"/><circle cx="12" cy="8" r="2"/><path d="M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712"/>',"map-pin-off":'<path d="M12.75 7.09a3 3 0 0 1 2.16 2.16M17.072 17.072c-1.634 2.17-3.527 3.912-4.471 4.727a1 1 0 0 1-1.202 0C9.539 20.193 4 15.993 4 10a8 8 0 0 1 1.432-4.568M2 2l20 20M8.475 2.818A8 8 0 0 1 20 10c0 1.183-.31 2.377-.81 3.533M9.13 9.13a3 3 0 0 0 3.74 3.74"/>',navigation:'<path d="m3 11 19-9-9 19-2-8-8-2z"/>',"navigation-2":'<path d="m12 2 7 19-7-4-7 4 7-19z"/>',route:'<circle cx="6" cy="19" r="3"/><path d="M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15"/><circle cx="18" cy="5" r="3"/>',locate:'<path d="M2 12h3M19 12h3M12 2v3M12 19v3"/><circle cx="12" cy="12" r="7"/>',"locate-fixed":'<path d="M2 12h3M19 12h3M12 2v3M12 19v3"/><circle cx="12" cy="12" r="7"/><circle cx="12" cy="12" r="3"/>',target:'<circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="6"/><circle cx="12" cy="12" r="2"/>',mountain:'<path d="m8 3 4 8 5-5 5 15H2L8 3z"/>',"mountain-snow":'<path d="m8 3 4 8 5-5 5 15H2L8 3z"/><path d="M4.14 15.08c2.62-1.57 5.24-1.43 7.86.42 2.74 1.94 5.49 2 8.23.19"/>',"tree-pine":'<path d="m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17ZM12 22v-3"/>',trees:'<path d="M10 10v.2A3 3 0 0 1 8.9 16v0H5v0h0a3 3 0 0 1-1-5.8V10a3 3 0 0 1 6 0Z"/><path d="M7 16v6M13 19v3M12 19h8.3a1 1 0 0 0 .7-1.7L18 14h.3a1 1 0 0 0 .7-1.7L16 9h.2a1 1 0 0 0 .8-1.7L13 3l-1.4 1.5"/>',waves:'<path d="M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"/>',"cloud-rain":'<path d="M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242M16 14v6M8 14v6M12 16v6"/>',"cloud-sun":'<path d="M12 2v2M4.93 4.93l1.41 1.41M20 12h2M19.07 4.93l-1.41 1.41M15.947 12.65a4 4 0 0 0-5.925-4.128M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z"/>',wind:'<path d="M17.7 7.7a2.5 2.5 0 1 1 1.8 4.3H2M9.6 4.6A2 2 0 1 1 11 8H2M12.6 19.4A2 2 0 1 0 14 16H2"/>',thermometer:'<path d="M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z"/>',snowflake:'<path d="M2 12h20M12 2v20m8-16-16 8m0-8 16 8M8.7 5.3 12 6.6l3.3-1.3M8.7 18.7 12 17.4l3.3 1.3M5.3 8.7 6.6 12l-1.3 3.3M18.7 8.7 17.4 12l1.3 3.3"/>',car:'<path d="M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2"/><circle cx="7" cy="17" r="2"/><path d="M9 17h6"/><circle cx="17" cy="17" r="2"/>',truck:'<path d="M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2M15 18H9M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14"/><circle cx="17" cy="18" r="2"/><circle cx="7" cy="18" r="2"/>',bus:'<path d="M8 6v6M15 6v6M2 12h19.6M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3"/><circle cx="7" cy="18" r="2"/><path d="M9 18h5"/><circle cx="16" cy="18" r="2"/>',train:'<rect width="16" height="16" x="4" y="3" rx="2"/><path d="M4 11h16M12 3v8M8 19l-2 3M18 22l-2-3M8 15h.01M16 15h.01"/>',"tram-front":'<rect width="16" height="16" x="4" y="3" rx="2"/><path d="M4 11h16M12 3v8M8 19l-2 3M18 22l-2-3M8 15h.01M16 15h.01"/>',bike:'<circle cx="18.5" cy="17.5" r="3.5"/><circle cx="5.5" cy="17.5" r="3.5"/><circle cx="15" cy="5" r="1"/><path d="M12 17.5V14l-3-3 4-3 2 3h2"/>',ship:'<path d="M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1 .6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1M19.38 20A11.6 11.6 0 0 0 21 14l-9-4-9 4c0 2.9.94 5.34 2.81 7.76M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6M12 10v4M12 2v3"/>',plane:'<path d="M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z"/>',building:'<rect width="16" height="20" x="4" y="2" rx="2" ry="2"/><path d="M9 22v-4h6v4M8 6h.01M16 6h.01M12 6h.01M12 10h.01M12 14h.01M16 10h.01M16 14h.01M8 10h.01M8 14h.01"/>',"building-2":'<path d="M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18ZM6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2M10 6h4M10 10h4M10 14h4M10 18h4"/>',factory:'<path d="M2 20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8l-7 5V8l-7 5V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2ZM17 18h1M12 18h1M7 18h1"/>',landmark:'<path d="M3 22h18M6 18v-7M10 18v-7M14 18v-7M18 18v-7M12 2 3 7h18z"/>',warehouse:'<path d="M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35A2 2 0 0 1 3.26 6.5l8-3.2a2 2 0 0 1 1.48 0l8 3.2A2 2 0 0 1 22 8.35ZM6 18h12M6 14h12"/><rect width="12" height="12" x="6" y="10"/>',school:'<path d="M14 22v-4a2 2 0 1 0-4 0v4M18 10 12 4 6 10M6 5v17M18 5v17M4 6h16"/><path d="m18 10 4 2v10H2V12l4-2"/>',hospital:'<path d="M12 6v4M14 14h-4M14 18h-4M14 8h-4M18 12h2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h2M18 22V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v18"/>',construction:'<rect x="2" y="6" width="20" height="8" rx="1"/><path d="M17 14v7M7 14v7M17 3v3M7 3v3M10 14 2.3 6.3M14 6l-7.7 7.7M8 6l8 8"/>',"hard-hat":'<path d="M2 18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v2zM10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5M4 15v-3a6 6 0 0 1 6-6M14 6a6 6 0 0 1 6 6v3"/>',"traffic-cone":'<path d="M9.3 6.2a4.55 4.55 0 0 0 5.4 0M7.9 10.7c.9.8 2.4 1.3 4.1 1.3s3.2-.5 4.1-1.3M13.9 3.5a1.93 1.93 0 0 0-3.8-.1l-3 10c-.1.2-.1.4-.1.6 0 1.7 2.2 3 5 3s5-1.3 5-3c0-.2 0-.4-.1-.5zM7.5 12.2l-4.7 2.7c-.5.3-.8.7-.8 1.1s.3.8.8 1.1l7.6 4.5c.9.5 2.1.5 3 0l7.6-4.5c.7-.3 1-.7 1-1.1s-.3-.8-.8-1.1l-4.7-2.8"/>',signpost:'<path d="M12 13v8M12 3v3M18 6a2 2 0 0 1 1.387.56l2.307 2.22a1 1 0 0 1 0 1.44l-2.307 2.22A2 2 0 0 1 18 13H6a2 2 0 0 1-1.387-.56l-2.306-2.22a1 1 0 0 1 0-1.44l2.306-2.22A2 2 0 0 1 6 6z"/>',milestone:'<path d="M12 13v8M12 3v3M4 6a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h13a2 2 0 0 0 1.152-.365l3.424-2.317a1 1 0 0 0 0-1.635l-3.424-2.318A2 2 0 0 0 17 6z"/>',fuel:'<path d="M3 22h12M4 9h10M14 22V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v18M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 2 2a2 2 0 0 0 2-2V9.83a2 2 0 0 0-.59-1.42L18 5"/>',"parking-square":'<rect width="18" height="18" x="3" y="3" rx="2"/><path d="M9 17V7h4a3 3 0 0 1 0 6H9"/>',footprints:'<path d="M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0ZM20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0ZM16 17h4M4 13h4"/>',accessibility:'<circle cx="16" cy="4" r="1"/><path d="m18 19 1-7-6 1M5 8l3-3 5.5 3-2.36 3.5M4.24 14.5a5 5 0 0 0 6.88 6M13.76 17.5a5 5 0 0 0-6.88-6"/>',anchor:'<path d="M12 22V8M5 12H2a10 10 0 0 0 20 0h-3"/><circle cx="12" cy="5" r="3"/>',satellite:'<path d="M13 7 9 3 5 7l4 4M17 11l4 4-4 4-4-4M8 12l4 4 6-6-4-4ZM16 8l3-3M9 21a6 6 0 0 0-6-6"/>',"satellite-dish":'<path d="M4 10a7.31 7.31 0 0 0 10 10ZM9 15l3-3M17 13a6 6 0 0 0-6-6M21 13A10 10 0 0 0 11 3"/>',radar:'<path d="M19.07 4.93A10 10 0 0 0 6.99 3.34M4 6h.01M2.29 9.62A10 10 0 1 0 21.31 8.35M16.24 7.76A6 6 0 1 0 8.23 16.67M12 18h.01M17.99 11.66A6 6 0 0 1 15.77 16.67"/><circle cx="12" cy="12" r="2"/><path d="m13.41 10.59 5.66-5.66"/>',"sun-medium":'<circle cx="12" cy="12" r="4"/><path d="M12 3v1M12 20v1M3 12h1M20 12h1M18.364 5.636l-.707.707M6.343 17.657l-.707.707M5.636 5.636l.707.707M17.657 17.657l.707.707"/>',sunrise:'<path d="M12 2v8M4.93 10.93l1.41 1.41M2 18h2M20 18h2M19.07 10.93l-1.41 1.41M22 22H2M8 6l4-4 4 4M16 18a4 4 0 0 0-8 0"/>',umbrella:'<path d="M22 12a10.06 10.06 1 0 0-20 0ZM12 12v8a2 2 0 0 0 4 0M12 2v1"/>'};var m={"chart-bar":'<path d="M3 3v16a2 2 0 0 0 2 2h16M7 16h8M7 11h12M7 6h3"/>',"chart-column":'<path d="M3 3v16a2 2 0 0 0 2 2h16M18 17V9M13 17V5M8 17v-3"/>',"chart-line":'<path d="M3 3v16a2 2 0 0 0 2 2h16"/><path d="m19 9-5 5-4-4-3 3"/>',"chart-pie":'<path d="M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z"/><path d="M21.21 15.89A10 10 0 1 1 8 2.83"/>',"chart-area":'<path d="M3 3v16a2 2 0 0 0 2 2h16"/><path d="M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z"/>',"chart-scatter":'<circle cx="7.5" cy="7.5" r=".5"/><circle cx="18.5" cy="5.5" r=".5"/><circle cx="11.5" cy="11.5" r=".5"/><circle cx="7.5" cy="16.5" r=".5"/><circle cx="17.5" cy="14.5" r=".5"/><path d="M3 3v16a2 2 0 0 0 2 2h16"/>',"chart-no-axes-gantt":'<path d="M8 6h10M6 12h9M11 18h7"/>',"trending-up":'<path d="m22 7-8.5 8.5-5-5L2 17M16 7h6v6"/>',"trending-down":'<path d="m22 17-8.5-8.5-5 5L2 7M16 17h6v-6"/>',activity:'<path d="M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"/>',gauge:'<path d="m12 14 4-4M3.34 19a10 10 0 1 1 17.32 0"/>',percent:'<path d="M19 5 5 19"/><circle cx="6.5" cy="6.5" r="2.5"/><circle cx="17.5" cy="17.5" r="2.5"/>',hash:'<path d="M4 9h16M4 15h16M10 3 8 21M16 3l-2 18"/>',sigma:'<path d="M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2"/>',calculator:'<rect width="16" height="20" x="4" y="2" rx="2"/><path d="M8 6h8M16 14v4M16 10h.01M12 10h.01M8 10h.01M12 14h.01M8 14h.01M12 18h.01M8 18h.01"/>',wifi:'<path d="M12 20h.01M2 8.82a15 15 0 0 1 20 0M5 12.859a10 10 0 0 1 14 0M8.5 16.429a5 5 0 0 1 7 0"/>',"wifi-off":'<path d="M12 20h.01M8.5 16.429a5 5 0 0 1 7 0M5 12.859a10 10 0 0 1 5.17-2.69M19 12.859a10 10 0 0 0-2.007-1.523M2 8.82a15 15 0 0 1 4.177-2.643M22 8.82a15 15 0 0 0-11.288-3.764M2 2l20 20"/>',"radio-tower":'<path d="M4.9 16.1C1 12.2 1 5.8 4.9 1.9M7.8 4.7a6.14 6.14 0 0 0-.8 7.5"/><circle cx="12" cy="9" r="2"/><path d="M16.2 4.8c2 2 2.26 5.11.8 7.47M19.1 1.9a9.96 9.96 0 0 1 0 14.1M9.5 18h5M14.5 12.7l1.5 9.3M9.5 12.7 8 22"/>',"shield-check":'<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="m9 12 2 2 4-4"/>',"shield-alert":'<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="M12 8v4M12 16h.01"/>',"shield-off":'<path d="m2 2 20 20M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264"/>',"key-round":'<path d="M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"/><circle cx="16.5" cy="7.5" r=".5"/>',fingerprint:'<path d="M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4M14 13.12c0 2.38 0 6.38-1 8.88M17.29 21.02c.12-.6.43-2.3.5-3.02M2 12a10 10 0 0 1 18-6M2 16h.01M21.8 16c.2-2 .131-5.354 0-6M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2M8.65 22c.21-.66.45-1.32.57-2M9 6.8a6 6 0 0 1 9 5.2v2"/>',"user-plus":'<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M19 8v6M22 11h-6"/>',"user-check":'<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="m16 11 2 2 4-4"/>',"user-x":'<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="m17 8 5 5M22 8l-5 5"/>',"user-cog":'<circle cx="18" cy="15" r="3"/><circle cx="9" cy="7" r="4"/><path d="M10 15H6a4 4 0 0 0-4 4v2M21.7 16.4l-.9-.3M15.2 13.9l-.9-.3M16.6 18.7l.3-.9M19.1 12.2l.3-.9M19.6 18.7l-.4-1M16.8 12.3l-.4-1M14.3 16.6l1-.4M20.7 13.8l1-.4"/>',"user-round":'<circle cx="12" cy="8" r="5"/><path d="M20 21a8 8 0 0 0-16 0"/>',contact:'<path d="M16 2v2M7 22v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2M8 2v2"/><circle cx="12" cy="11" r="3"/><rect x="3" y="4" width="18" height="18" rx="2"/>',"badge-check":'<path d="M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z"/><path d="m9 12 2 2 4-4"/>',award:'<path d="m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526"/><circle cx="12" cy="8" r="6"/>',trophy:'<path d="M6 9H4.5a2.5 2.5 0 0 1 0-5H6M18 9h1.5a2.5 2.5 0 0 0 0-5H18M4 22h16M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22M18 2H6v7a6 6 0 0 0 12 0V2Z"/>',"star-half":'<path d="M12 17.8 5.8 21 7 14.1 2 9.3l7-1L12 2"/>',"star-off":'<path d="M8.34 8.34 2 9.27l5 4.87L5.82 21 12 17.77 18.18 21l-.59-3.43M18.42 12.76 22 9.27l-6.91-1L12 2l-1.44 2.91M2 2l20 20"/>',"thumbs-up":'<path d="M7 10v12M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"/>',"thumbs-down":'<path d="M17 14V2M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z"/>',smile:'<circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01"/>',frown:'<circle cx="12" cy="12" r="10"/><path d="M16 16s-1.5-2-4-2-4 2-4 2M9 9h.01M15 9h.01"/>',meh:'<circle cx="12" cy="12" r="10"/><path d="M8 15h8M9 9h.01M15 9h.01"/>',"alert-octagon":'<path d="M7.86 2h8.28L22 7.86v8.28L16.14 22H7.86L2 16.14V7.86L7.86 2z"/><path d="M12 8v4M12 16h.01"/>',"check-circle-2":'<circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/>',"circle-dot":'<circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="1"/>',"circle-dashed":'<path d="M10.1 2.18a9.93 9.93 0 0 1 3.8 0M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7M21.82 10.1a9.93 9.93 0 0 1 0 3.8M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69M13.9 21.82a9.94 9.94 0 0 1-3.8 0M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7M2.18 13.9a9.93 9.93 0 0 1 0-3.8M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69"/>',circle:'<circle cx="12" cy="12" r="10"/>',"circle-slash":'<circle cx="12" cy="12" r="10"/><path d="m4.9 4.9 14.2 14.2"/>',ban:'<circle cx="12" cy="12" r="10"/><path d="m4.9 4.9 14.2 14.2"/>',"loader-2":'<path d="M21 12a9 9 0 1 1-6.219-8.56"/>',sparkles:'<path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0zM20 3v4M22 5h-4M4 17v2M5 18H3"/>',wand:'<path d="M15 4V2M15 16v-2M8 9h2M20 9h2M17.8 11.8 19 13M15 9h.01M17.8 6.2 19 5M3 21l9-9M12.2 6.2 11 5"/>',lightbulb:'<path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5M9 18h6M10 22h4"/>',flame:'<path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"/>',leaf:'<path d="M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z"/><path d="M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12"/>',recycle:'<path d="M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5M11 19h8.203a1.83 1.83 0 0 0 1.556-.89 1.784 1.784 0 0 0 0-1.775l-1.226-2.12M14 16l-3 3 3 3M8.293 13.596 7.196 9.5 3.1 10.598M9.344 5.811l1.093-1.892A1.83 1.83 0 0 1 11.985 3a1.784 1.784 0 0 1 1.546.888l3.943 6.843M13.378 9.633l4.096 1.098 1.097-4.096"/>',droplets:'<path d="M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05zM12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97"/>',droplet:'<path d="M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z"/>',wallet:'<path d="M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4"/>',"credit-card":'<rect width="20" height="14" x="2" y="5" rx="2"/><path d="M2 10h20"/>',coins:'<circle cx="8" cy="8" r="6"/><path d="M18.09 10.37A6 6 0 1 1 10.34 18M7 6h1v4M16.71 13.88l.7.71-2.82 2.82"/>',euro:'<path d="M4 10h12M4 14h9M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2"/>',receipt:'<path d="M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1ZM16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8M12 17.5v-11"/>',"shopping-cart":'<circle cx="8" cy="21" r="1"/><circle cx="19" cy="21" r="1"/><path d="M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12"/>',gift:'<rect x="3" y="8" width="18" height="4" rx="1"/><path d="M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5"/>',ticket:'<path d="M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2ZM13 5v2M13 17v2M13 11v2"/>',briefcase:'<path d="M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"/><rect width="20" height="14" x="2" y="6" rx="2"/>',"graduation-cap":'<path d="M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0zM22 10v6M6 12.5V16a6 3 0 0 0 12 0v-3.5"/>',"book-marked":'<path d="M10 2v8l3-3 3 3V2"/><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20"/>',library:'<path d="m16 6 4 14M12 6v14M8 8v12M4 4v16"/>',scale:'<path d="m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1ZM2 16l3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1ZM7 21h10M12 3v18M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2"/>',"clock-4":'<circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/>',ratio:'<rect width="12" height="20" x="6" y="2" rx="2"/><rect width="20" height="12" x="2" y="6" rx="2"/>',"text-cursor-input":'<path d="M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7M9 7v10"/>',type:'<path d="M4 7V4h16v3M9 20h6M12 4v16"/>',languages:'<path d="m5 8 6 6M4 14l6-6 2-3M2 5h12M7 2h1M22 22l-5-10-5 10M14 18h6"/>',"at-sign":'<circle cx="12" cy="12" r="4"/><path d="M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8"/>',hexagon:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"/>',triangle:'<path d="M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/>',diamond:'<path d="M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z"/>',"square-dashed":'<path d="M5 3a2 2 0 0 0-2 2M19 3a2 2 0 0 1 2 2M21 19a2 2 0 0 1-2 2M5 21a2 2 0 0 1-2-2M9 3h1M9 21h1M14 3h1M14 21h1M3 9v1M21 9v1M3 14v1M21 14v1"/>'};var g={bridge:'<path d="M2 10h20M2 10v8M22 10v8M6 10v8M18 10v8M12 10v8M2 18h20"/><path d="M6 10a6 6 0 0 1 12 0"/>',road:'<path d="M4 20 9 4h6l5 16"/><path d="M12 6v3M12 12v3M12 18v2"/>',tunnel:'<path d="M4 20V11a8 8 0 0 1 16 0v9"/><path d="M4 20h16M9 20v-5h6v5"/>',dam:'<path d="M4 20V4c8 0 12 4 12 16"/><path d="M4 20h16M2 10c1.5-.8 3-.8 4.5 0"/><path d="M18 8c1 .5 2 .5 3 0M18 12c1 .5 2 .5 3 0"/>',"wind-turbine":'<path d="M12 22v-9"/><circle cx="12" cy="11" r="2"/><path d="M12 9V2M13.7 12l6.1 3.5M10.3 12 4.2 15.5"/><path d="M8 22h8"/>',"solar-panel":'<path d="M4 4h16l2 10H2z"/><path d="M12 4v10M7 4l-1 10M17 4l1 10M3 9h18M12 14v6M8 20h8"/>',"charging-station":'<path d="M5 22V5a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v17M5 22h10M8 8h4"/><path d="M15 9h2a2 2 0 0 1 2 2v3a2 2 0 0 0 4 0V9M12 12l-2 4h3l-2 4"/>',tram:'<rect x="4" y="6" width="16" height="12" rx="2"/><path d="M4 12h16M12 2l-3 4M12 2l3 4M8 15h.01M16 15h.01M7 22l1.5-4M17 22l-1.5-4"/>',"bicycle-lane":'<circle cx="6" cy="17" r="3"/><circle cx="18" cy="17" r="3"/><path d="M6 17 9 9h4l5 8M9 9h6"/><path d="M2 3h20"/>',pedestrian:'<circle cx="12" cy="4" r="2"/><path d="M12 7v6M8 12l4-2 4 2M12 13l-3 8M12 13l3 8"/>',wheelchair:'<circle cx="15" cy="4" r="2"/><path d="M14 8v6h5l2 6M14 8l3-1"/><circle cx="9" cy="17" r="4"/><path d="M11 9 9 13"/>',noise:'<path d="M4 9v6h3l4 4V5L7 9z"/><path d="M15 9a4 4 0 0 1 0 6M18 6a8 8 0 0 1 0 12"/><path d="M15 3l1 2M20 3l-1 2"/>',flood:'<path d="m5 11 7-6 7 6"/><path d="M7 10v4M17 10v4"/><path d="M2 17c1.5 1 3 1 4.5 0s3-1 4.5 0 3 1 4.5 0 3-1 4.5 0M2 21c1.5 1 3 1 4.5 0s3-1 4.5 0 3 1 4.5 0 3-1 4.5 0"/>',landslide:'<path d="M2 20 12 4l4 7"/><path d="M12 12c1 3 3 5 6 6M9 20h13"/><path d="M15 15h.01M18 13h.01M20 17h.01"/>',earthquake:'<path d="M2 12h4l2-6 3 12 3-10 2 7 2-3h4"/><path d="M4 20h16"/>',sensor:'<circle cx="12" cy="13" r="3"/><path d="M12 16v6M7.05 8.05a7 7 0 0 1 9.9 0M4.22 5.22a11 11 0 0 1 15.56 0"/>',drone:'<circle cx="12" cy="12" r="2"/><path d="M10 10 6 6M14 10l4-4M10 14l-4 4M14 14l4 4"/><path d="M3 6h6M15 6h6M3 18h6M15 18h6"/>',lidar:'<path d="M12 4v4M12 8 4 20M12 8l8 12M12 8l-4 12M12 8l4 12M12 8v12"/><path d="M4 20h16"/>',survey:'<path d="M4 22V8M2 8h4M2 12h4M2 16h4M2 20h4"/><circle cx="16" cy="9" r="3"/><path d="M16 12v10M13 22l3-4 3 4M9 6l4-2"/>',cone:'<path d="M8 20 11 4h2l3 16"/><path d="M4 20h16M9 12h6M9.5 8h5"/>',"civil-work":'<path d="M3 8h18M5 8v12M19 8v12M12 8v12"/><path d="M3 20h18M8 8V5h8v3"/>',"flow-gauge":'<path d="M6 2v20M4 6h4M4 10h4M4 14h4M4 18h4"/><path d="M12 12c1.5 1 3 1 4.5 0s3-1 4.5 0M12 16c1.5 1 3 1 4.5 0s3-1 4.5 0"/>',traffic:'<circle cx="5" cy="17" r="2"/><circle cx="12" cy="17" r="2"/><circle cx="19" cy="17" r="2"/><path d="M3 13h18M5 13V9h5v4M14 13V9h5v4"/>'};var S={...M,...p,...v,...u,...m,...g},H={core:Object.keys(M),files:Object.keys(p),ui:Object.keys(v),geo:Object.keys(u),data:Object.keys(m),cerema:Object.keys(g)},E={pencil:"edit","trash-2":"trash",more:"more-horizontal",dots:"more-horizontal","chevron-double-left":"chevrons-left","chevron-double-right":"chevrons-right",spinner:"loader",warning:"alert-triangle",error:"x-circle",success:"check-circle","check-circle-2":"check-circle",close:"x",delete:"trash",remove:"x",gear:"settings",cog:"settings",config:"settings","log-off":"log-out",signout:"log-out","sign-out":"log-out","sign-in":"log-in",location:"map-pin",pin:"pin",marker:"map-pin",geoloc:"locate",gps:"locate-fixed","zoom-fit":"expand","grip-vertical":"drag",handle:"drag","file-json-2":"file-json",sheet:"file-spreadsheet","folder-closed":"folder","cloud-download":"download-cloud","cloud-upload":"upload-cloud",chart:"chart-bar","bar-chart":"chart-bar","line-chart":"chart-line","pie-chart":"chart-pie","area-chart":"chart-area","scatter-chart":"chart-scatter","user-circle":"user-round",people:"users",team:"users","shield-ok":"shield-check","key-2":"key-round","sun-moon":"sun",lightning:"zap",bolt:"zap",fire:"flame","euro-sign":"euro",money:"coins",cart:"shopping-cart",ouvrage:"civil-work",pont:"bridge",chaussee:"road",tramway:"tram",velo:"bike",pieton:"pedestrian",pmr:"wheelchair",crue:"flood",seisme:"earthquake",bruit:"noise",eolienne:"wind-turbine",solaire:"solar-panel"};function C(e={}){let a=new Map,t=new Map(Object.entries(E)),o=new Map,n=e.subset?new Set(e.subset.flatMap((r)=>H[r]??[r])):null;for(let[r,h]of Object.entries(H)){let l=h.filter((c)=>!n||n.has(c));o.set(r,l);for(let c of l)a.set(c,S[c])}let s=(r)=>{let h=r;for(let l=0;t.has(h)&&!a.has(h)&&l<5;l++)h=t.get(h);return h},d={register(r,h,l="custom"){a.set(r,h);let c=o.get(l)??[];if(!c.includes(r))o.set(l,[...c,r])},registerAll(r,h="custom"){for(let[l,c]of Object.entries(r))d.register(l,c,h)},alias(r,h){t.set(r,h)},resolve:s,get:(r)=>a.get(s(r)),has:(r)=>a.has(s(r)),names:()=>[...a.keys()],categories:()=>Object.fromEntries([...o.entries()].filter(([,r])=>r.length)),categoryOf(r){let h=s(r);for(let[l,c]of o)if(c.includes(h))return l;return},search(r){let h=r.trim().toLowerCase();if(!h)return d.names();let l=new Set;for(let c of a.keys())if(c.includes(h))l.add(c);for(let[c,y]of t)if(c.includes(h)&&a.has(y))l.add(y);return[...l]},get size(){return a.size}};if(e.icons)d.registerAll(e.icons);if(e.aliases)for(let[r,h]of Object.entries(e.aliases))d.alias(r,h);return d}function Rs(e){return{role:"img","aria-label":e.label||null,"aria-hidden":e.label?null:"true",title:e.title||null}}function Is(e){return{viewBox:"0 0 24 24",fill:e.filled?"currentColor":"none",stroke:"currentColor","stroke-width":e.filled?0:e.strokeWidth??2,"stroke-linecap":"round","stroke-linejoin":"round"}}function Ls(e){return{"is-spin":!!e.spin,"is-filled":!!e.filled}}function Fs(e){let a=[];if(e.rotate)a.push(`rotate(${e.rotate}deg)`);if(e.flip==="h"||e.flip==="both")a.push("scaleX(-1)");if(e.flip==="v"||e.flip==="both")a.push("scaleY(-1)");return a.length?a.join(" "):null}var T=Symbol("poad-ui-i18n"),N=Symbol("poad-ui-icons");function O(e,a){return{locale:e,messages:a,t:(t,o)=>Tt(e,a,t,o),text:(t,o,n)=>k(e,a,t,o,n)}}var R=O("en",Ct);function i(){let e=A(T,null);if(!e)return R;return{get locale(){return e.value.locale},get messages(){return e.value.messages},t:(a,t)=>e.value.t(a,t),text:(a,t,o)=>e.value.text(a,t,o)}}var D=null,P=()=>D??=C();function zs(){let e=A(N,null);return()=>e?.value??P()}
|
|
2
|
+
export{Ct,hn,Ns,Tt,Rs,Is,Ls,Fs,i,zs};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{nr,sn,R,bs,kt}from"./c-0rxdxcn3.js";import{q}from"./c-tv3ksk7j.js";import{t,c,r,f,u,I,e}from"./c-kyajr8zz.js";var A={open:!1,pending:null},j=300,W=8,C=6,N=8,H=280,l=(n,i=[])=>({state:n,effects:i});function T(n,i,o=i.delay??j){if(i.disabled||!i.hasContent)return l(n);return l({...n,pending:"show"},[{type:"schedule",delay:o}])}var m=(n,i,o=i.hideDelay??0)=>l({...n,pending:"hide"},[{type:"schedule",delay:o}]);function E(n,i,o){let s=o.event??"both";switch(i.type){case"enter":return s==="focus"?l(n):T(n,o);case"focus":return s==="hover"||!i.visible?l(n):T(n,o);case"leave":return m(n,o);case"escape":return m(n,o,0);case"show":return T(n,o,i.delay);case"hide":return m(n,o,i.delay);case"toggle":return n.open?m(n,o,0):T(n,o,0);case"sync":return o.disabled||!o.hasContent?n.open||n.pending==="show"?m(n,o,0):l(n):l(n);case"timer":{if(n.pending==="show"){if(o.disabled||!o.hasContent)return l({...n,pending:null});return l({open:!0,pending:null},n.open?[]:[{type:"shown"}])}if(n.pending==="hide")return l({open:!1,pending:null},n.open?[{type:"hidden"}]:[]);return l(n)}}}var F=(n="top")=>nr(n,"center"),D=(n,i)=>({"aria-describedby":n.open?i:null}),S=(n)=>({id:n.id,role:"tooltip","data-placement":n.side,classes:{"is-visible":n.visible},maxWidth:n.maxWidth??H});var zt=r({name:"PoadTooltip",props:{content:String,placement:{type:String,default:"top"},delay:Number,hideDelay:Number,disabled:Boolean,maxWidth:Number,event:String},setup(n,{slots:i}){let o=`poad-tooltip-${f()}`,s=t(!1),v=A,p=null,w=t(null),P=t(null),L=()=>!!n.content||!!i.content,b=()=>{if(p)clearTimeout(p),p=null},B=(a)=>{if(a.type==="schedule")b(),p=setTimeout(()=>{p=null,d({type:"timer"})},a.delay);else if(a.type==="cancel")b();else s.value=a.type==="shown"},d=(a)=>{let g=E(v,a,{disabled:n.disabled,hasContent:L(),event:n.event,delay:n.delay,hideDelay:n.hideDelay});v=g.state,g.effects.forEach(B)};c(()=>[n.disabled,L()],()=>d({type:"sync"})),u(b);let O=kt(()=>s.value,130),{style:M,placement:_}=R({open:O.mounted,anchor:w,floating:P,candidates:()=>F(n.placement),offset:W,margin:C,arrow:()=>N,deps:()=>n.content});return()=>{let a=q(i.default?.())[0];if(!a)return null;let x=[a.props?.["aria-describedby"],D({open:s.value,pending:null},o)["aria-describedby"]].filter(Boolean).join(" ")||void 0,k=I(a,{ref:(y)=>{w.value=sn(y)},"aria-describedby":x,onMouseenter:()=>d({type:"enter"}),onMouseleave:()=>d({type:"leave"}),onFocus:(y)=>d({type:"focus",visible:y.currentTarget.matches(":focus-visible, :focus-within")}),onBlur:()=>d({type:"leave"}),onKeydown:(y)=>{if(y.key==="Escape")d({type:"hide",delay:0})},onTouchstart:()=>d({type:"enter"}),onTouchend:()=>d({type:"leave"})},!0),G=_.value?.side??n.placement,h=S({id:o,side:G,visible:O.shown(),maxWidth:n.maxWidth});return[k,O.mounted()&&e("div",{ref:P,class:"poad-floating poad-tooltip-pane",style:M()},[e("div",{id:h.id,role:h.role,"data-placement":h["data-placement"],class:["poad-tooltip",h.classes],style:{maxWidth:`${h.maxWidth}px`}},[i.content?i.content():n.content,e("span",{class:"poad-tooltip__arrow","aria-hidden":"true",style:bs(_.value)})])])]}}});
|
|
2
|
+
export{zt};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n}from"./c-m6yf7zaj.js";import{H}from"./c-zyfkspym.js";import{Me}from"./c-mvdn43tv.js";import{C}from"./c-dzx0rg0g.js";import{i}from"./c-azvw5879.js";import{t,c,r,e}from"./c-kyajr8zz.js";var d=5,y=(a,l=d)=>(a??[]).slice(0,Math.max(1,Number.isFinite(l)?l:d)),w=(a,l="md",b=!1)=>b||Me(a,l),h=(a,l)=>(a??"always")==="always"||a==="selected"&&l,k=(a,l)=>l&&a.activeIcon||a.icon||"";function x(a){if(a===void 0||a===null||a===!1)return{show:!1,dot:!1,text:""};if(a===!0)return{show:!0,dot:!0,text:""};return{show:!0,dot:!1,text:typeof a==="number"&&a>99?"99+":String(a)}}function S(a,l){return{"aria-current":l?"page":null,"aria-label":a.ariaLabel||null,"aria-disabled":a.disabled?"true":null,classes:{"is-active":l,"is-disabled":!!a.disabled}}}function I(a,l){if(l.disabled)return"none";return a===l.value?"click":"change"}var D=r({name:"PoadBottomNav",props:{items:{type:Array,default:()=>[]},modelValue:{type:String,default:null},labels:{type:String,default:"always"},maxItems:{type:Number,default:d},breakpoint:{type:String,default:"md"},alwaysShow:{type:Boolean,default:!1},ariaLabel:{type:String,default:""},linkAs:{type:[Object,Function,String],default:null}},emits:{"update:modelValue":(a)=>!0,itemClick:(a)=>!0},setup(a,{emit:l}){let b=i(),V=H(),m=t(a.modelValue);c(()=>a.modelValue,(o)=>{m.value=o});let g=(o)=>(s)=>{let u=I(m.value,o);if(u==="none"){s.preventDefault();return}if(l("itemClick",{item:o,originalEvent:s}),u==="click")return;m.value=o.value,l("update:modelValue",o.value)};return()=>{if(!w(V.current.value,a.breakpoint,a.alwaysShow))return null;return e("nav",{class:"poad-bottom-nav","aria-label":a.ariaLabel||b.t("nav.mainNavigation")},e("ul",{class:"poad-bottom-nav__list",role:"list"},y(a.items,a.maxItems).map((o)=>{let s=m.value===o.value,u=S(o,s),v=x(o.badge),f=()=>[e("span",{class:"poad-bottom-nav__icon"},[e("span",{class:"poad-bottom-nav__pill","aria-hidden":"true"}),e(n,{name:k(o,s),size:22}),v.show?e("span",{class:C("poad-bottom-nav__badge",{"is-dot":v.dot})},v.text):null]),h(a.labels,s)?e("span",{class:"poad-bottom-nav__label"},o.label):null],p={"aria-current":u["aria-current"]??void 0,"aria-label":u["aria-label"]??void 0,onClick:g(o)},N;if(o.url&&!o.disabled){let _=C("poad-bottom-nav__item",{"is-active":s});N=a.linkAs?e(a.linkAs,{to:o.url,class:_,...p},{default:f}):e("a",{href:o.url,class:_,...p},f())}else N=e("button",{type:"button",class:C("poad-bottom-nav__item",u.classes),disabled:o.disabled,...p},f());return e("li",{key:o.value},[N])})))}}});export{D as PoadBottomNav};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n}from"./c-m6yf7zaj.js";import{t,r,a,e}from"./c-kyajr8zz.js";function y(l,d,i={}){return i.multiple?Array.isArray(l)&&l.includes(d):l===d}function E(l,d,i={}){if(i.multiple){let s=Array.isArray(l)?[...l]:[],o=s.indexOf(d);if(o>=0)s.splice(o,1);else s.push(d);return s}if(l===d)return i.allowEmpty?null:l;return d}function P(l,d,i,s={}){if(s.disabled)return-1;let o=(f)=>!!d[f]&&!d[f].disabled,c=d.findIndex((f,b)=>o(b)&&y(l,f.value,s));return(c>=0?c:d.findIndex((f,b)=>o(b)))===i?0:-1}var v=["ArrowRight","ArrowDown"],z=["ArrowLeft","ArrowUp"];function w(l,d,i,s={}){if(s.disabled)return null;let o=l.map((f,b)=>f.disabled?-1:b).filter((f)=>f>=0);if(!o.length)return null;if(i==="Home")return o[0];if(i==="End")return o[o.length-1];let c=v.includes(i)?1:z.includes(i)?-1:0;if(!c)return null;if(s.rtl&&(i==="ArrowLeft"||i==="ArrowRight"))c=-c;let m=o.indexOf(d);if(m<0)return c>0?o[0]:o[o.length-1];return o[(m+c+o.length)%o.length]}function S(l){return{"is-disabled":!!l.disabled,"size-sm":l.size==="sm","size-lg":l.size==="lg","is-block":!!l.block,"is-pill":l.shape==="pill"}}function A(l,d,i,s={}){let o=d[i];return{"aria-pressed":o&&y(l,o.value,s)?"true":"false",tabindex:P(l,d,i,s),disabled:!!s.disabled||!!o?.disabled}}var h=(l,d)=>d.split(".").reduce((i,s)=>i==null?i:i[s],l),I=r({name:"PoadSegmented",props:{modelValue:{type:null},options:{type:Array,default:()=>[]},optionLabel:{type:String,default:"label"},optionValue:{type:String,default:"value"},multiple:Boolean,allowEmpty:Boolean,block:Boolean,size:{type:String,default:"md"},shape:{type:String,default:"rounded"},disabled:Boolean,ariaLabel:String},emits:{"update:modelValue":(l)=>!0},setup(l,{slots:d}){let i=a(l,"modelValue"),s=t(null);return()=>{let o={multiple:l.multiple,allowEmpty:l.allowEmpty,disabled:l.disabled},c=l.options.map((u)=>({value:h(u,l.optionValue),disabled:!!u.disabled})),m=i.value??null,f=(u)=>{let p=E(m,c[u].value,o);if(p!==m)i.value=p},b=(u)=>{let p=[...s.value?.querySelectorAll(":scope > button")??[]],g=p.indexOf(u.target);if(g<0)return;let x=w(c,g,u.key,{...o,rtl:getComputedStyle(s.value).direction==="rtl"});if(x===null)return;u.preventDefault(),p[x]?.focus()};return e("div",{ref:s,class:["poad-segmented",S(l)],role:"group","aria-label":l.ariaLabel||void 0,onKeydown:b},l.options.map((u,p)=>{let g=A(m,c,p,o),x=String(h(u,l.optionLabel)??"");return e("button",{type:"button",class:g["aria-pressed"]==="true"?"is-on":void 0,disabled:g.disabled,"aria-pressed":g["aria-pressed"],tabindex:g.tabindex,title:u.title||void 0,onClick:()=>f(p)},d.option?d.option({option:u}):[u.icon&&e(n,{name:u.icon,size:14}),x&&e("span",x)])}))}}});export{I as PoadSegmented};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{be}from"./c-rktc0ksd.js";import{T}from"./c-523qwqen.js";import{hn}from"./c-azvw5879.js";var P={SU:0,MO:1,TU:2,WE:3,TH:4,FR:5,SA:6},R=new Set(["FREQ","INTERVAL","BYDAY","BYMONTHDAY","COUNT","UNTIL","WKST"]);function _(t){if(!t)return null;let e=t.replace(/^RRULE:/i,"").trim();if(!e)return null;let n=new Map,r=[];for(let m of e.split(";")){let d=m.indexOf("=");if(d<0)continue;let u=m.slice(0,d).trim().toUpperCase(),h=m.slice(d+1).trim();if(!R.has(u)){r.push(u);continue}n.set(u,h)}let o=(n.get("FREQ")||"").toUpperCase();if(o!=="DAILY"&&o!=="WEEKLY"&&o!=="MONTHLY"&&o!=="YEARLY")return null;let i=Math.max(1,Number(n.get("INTERVAL")||1)||1),a=null,s=n.get("BYDAY");if(s){let m=[];for(let d of s.split(",")){let u=d.trim().toUpperCase();if(/^[+-]?\d/.test(u)){r.push("BYDAY:"+u);continue}let h=P[u];if(h!==void 0)m.push(h)}a=m.length?m.sort((d,u)=>d-u):null}let c=null,l=n.get("BYMONTHDAY");if(l){let m=l.split(",").map((d)=>Number(d.trim())).filter((d)=>Number.isInteger(d)&&d>=1&&d<=31);c=m.length?m:null}let p=n.has("COUNT")?Math.max(0,Number(n.get("COUNT"))||0):null,f=n.has("UNTIL")?b(n.get("UNTIL")):null;return{freq:o,interval:i,byday:a,bymonthday:c,count:p,until:f,ignore:r}}function b(t){let e=/^(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?$/.exec(t.trim());if(e){let r=new Date(+e[1],+e[2]-1,+e[3],+(e[4]??23),+(e[5]??59),+(e[6]??59));return Number.isNaN(r.getTime())?null:r}let n=T(t.trim())??new Date(t);if(/^\d{4}-\d{2}-\d{2}$/.test(t.trim())&&!Number.isNaN(n.getTime()))n.setHours(23,59,59);return Number.isNaN(n.getTime())?null:n}var F=750;function y(t){return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`}function j(t,e){return e?y(t):`${y(t)}T${String(t.getHours()).padStart(2,"0")}:${String(t.getMinutes()).padStart(2,"0")}`}function O(t,e){let n=new Date(t);return n.setDate(n.getDate()+e),n}function mn(t,e,n){let r=[],o=[],i=new Map;for(let a of t)if(a.masterId&&a.recurrenceId)i.set(`${a.masterId}@${y(a.recurrenceId)}`,a);for(let a of t){if(a.masterId&&a.recurrenceId)continue;if(!a.start){if(a.rrule)o.push({taskId:a.id,code:"sans-date"});continue}let s=a.end?Math.max(0,a.end.getTime()-a.start.getTime()):0;if(!a.rrule){if(Y(a.start,a.end??a.start,e,n))r.push(C(a,a.start,s,!1,!1));continue}let c=_(a.rrule);if(!c){if(o.push({taskId:a.id,code:"rrule-illisible",detail:a.rrule}),Y(a.start,a.end??a.start,e,n))r.push(C(a,a.start,s,!1,!1));continue}if(c.ignore.length)o.push({taskId:a.id,code:"rrule-partielle",detail:c.ignore.join(", ")});let l=new Set(a.exdates.map((d)=>T(d)).filter((d)=>d!==null).map(y)),p=0,f=0,m=new Date(a.start);while(f++<F){if(c.count!==null&&p>=c.count)break;if(m.getTime()>n.getTime())break;if(c.until&&m.getTime()>c.until.getTime())break;for(let d of U(m,c,a.start)){if(c.count!==null&&p>=c.count)break;if(d.getTime()<a.start.getTime())continue;if(c.until&&d.getTime()>c.until.getTime())break;if(p++,l.has(y(d)))continue;if(d.getTime()>n.getTime())continue;let u=i.get(`${a.id}@${y(d)}`);if(u){if(u.start&&Y(u.start,u.end??u.start,e,n)){let H=u.end?u.end.getTime()-u.start.getTime():s;r.push(C(u,u.start,H,!0,!0))}continue}let h=new Date(d.getTime()+s);if(Y(d,h,e,n))r.push(C(a,d,s,!0,!1))}m=B(m,c)}if(f>=F)o.push({taskId:a.id,code:"plafond-atteint",detail:String(F)})}return r.sort((a,s)=>a.start.getTime()-s.start.getTime()||a.id.localeCompare(s.id)),{occurrences:r,issues:o}}function Y(t,e,n,r){return e.getTime()>=n.getTime()&&t.getTime()<=r.getTime()}function C(t,e,n,r,o){let i=new Date(e),a=new Date(e.getTime()+n);return{id:`${t.masterId??t.id}@${j(i,t.allDay)}`,taskId:t.id,start:i,end:a,allDay:t.allDay,recurring:r,overridden:o,task:t}}function U(t,e,n){let r=n.getHours(),o=n.getMinutes(),i=(a)=>{let s=new Date(a);return s.setHours(r,o,0,0),s};if(e.freq==="WEEKLY"&&e.byday){let a=q(t);return e.byday.map((s)=>i(O(a,(s+6)%7)))}if(e.freq==="MONTHLY"&&e.bymonthday)return e.bymonthday.map((a)=>{let s=new Date(t.getFullYear(),t.getMonth(),a);return s.getMonth()===t.getMonth()?i(s):null}).filter((a)=>a!==null).sort((a,s)=>a.getTime()-s.getTime());return[i(t)]}function B(t,e){let n=new Date(t);if(e.freq==="DAILY")n.setDate(n.getDate()+e.interval);else if(e.freq==="WEEKLY")n.setDate(n.getDate()+7*e.interval);else if(e.freq==="MONTHLY"){let r=e.bymonthday?1:n.getDate();if(n.setDate(1),n.setMonth(n.getMonth()+e.interval),!e.bymonthday)n.setDate(Math.min(r,J(n.getFullYear(),n.getMonth())))}else n.setFullYear(n.getFullYear()+e.interval);return n}function J(t,e){return new Date(t,e+1,0).getDate()}function q(t){let e=new Date(t);return e.setHours(0,0,0,0),e.setDate(e.getDate()-(e.getDay()+6)%7),e}function g(t){return Math.round(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())/86400000)}function ke(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())}function x(t,e=1){let n=ke(t),r=(n.getDay()-e+7)%7;return n.setDate(n.getDate()-r),n}function E(t,e=1){let n=t.getFullYear(),r=t.getMonth(),o=new Date(n,r,1),i=x(o,e),a=new Date(n,r+1,0),s=x(a,e),c=Math.round((g(s)-g(i))/7)+1,l=[];for(let p=0;p<c;p++){let f=[];for(let m=0;m<7;m++){let d=new Date(i);d.setDate(d.getDate()+p*7+m),f.push(d)}l.push(f)}return{debut:i,semaines:l,mois:r,annee:n}}function N(t){return t.allDay||g(t.start)!==g(t.end)}function I(t,e){if(!e.length)return{bandes:[],voies:0};let n=g(e[0]),r=g(e[e.length-1]),o=t.filter(N).map((s)=>{let c=g(s.start),l=g(s.end);return{o:s,d:c,f:l}}).filter(({d:s,f:c})=>c>=n&&s<=r).sort((s,c)=>c.f-c.d-(s.f-s.d)||s.d-c.d||s.o.id.localeCompare(c.o.id)),i=[];return{bandes:o.map(({o:s,d:c,f:l})=>{let p=Math.max(0,c-n),f=Math.min(e.length-1,l-n),m=0;while(i[m]?.some(([d,u])=>!(u<p||d>f)))m++;return(i[m]??=[]).push([p,f]),{occurrence:s,colDebut:p,colFin:f,voie:m,continueAvant:c<n,continueApres:l>r}}),voies:i.length}}function A(t,e=420,n=1200){let r=Math.max(1,n-e),o=t.filter((l)=>!N(l)).map((l)=>{let p=l.start.getHours()*60+l.start.getMinutes(),f=Math.max(p+15,l.end.getHours()*60+l.end.getMinutes());return{o:l,d:p,f}}).sort((l,p)=>l.d-p.d||p.f-l.f),i=[],a=o.map((l)=>{let p=i.findIndex((f)=>f<=l.d);if(p===-1)p=i.length,i.push(l.f);else i[p]=l.f;return{...l,voie:p}}),s=[],c=0;while(c<a.length){let l=c+1,p=a[c].f;while(l<a.length&&a[l].d<p)p=Math.max(p,a[l].f),l++;let f=a.slice(c,l),m=Math.max(...f.map((d)=>d.voie))+1;for(let d of f){let u=(Math.max(d.d,e)-e)/r,h=(Math.min(d.f,n)-e)/r;s.push({occurrence:d.o,haut:Math.max(0,Math.min(1,u)),hauteur:Math.max(0.01,Math.min(1,h)-Math.max(0,u)),voie:d.voie,voies:m})}c=l}return s}function M(t,e){return Math.round(t/Math.max(1,e))*Math.max(1,e)}function w(t){return t.getHours()*60+t.getMinutes()}function k(t,e){let n=new Date(t.getFullYear(),t.getMonth(),t.getDate());return n.setMinutes(e),n}function D(t,e){let n=new Date(t);return n.setDate(n.getDate()+e),n}function ut(t,e,n,r,o){let i=o.largeurJour>0?Math.round(n/o.largeurJour):0,a=o.hauteurHeure>0?r/o.hauteurHeure*60:0,s=M(a,o.pas);if(e.allDay){if(t==="move")return{start:D(e.start,i),end:D(e.end,i)};if(t==="resize-start"){let m=D(e.start,i);return{start:m>e.end?e.end:m,end:e.end}}if(t==="resize-end"){let m=D(e.end,i);return{start:e.start,end:m<e.start?e.start:m}}return{start:e.start,end:e.end}}let c=Math.max(o.pas,Math.round((e.end.getTime()-e.start.getTime())/60000));if(t==="move"||t==="create"){let m=M(w(e.start)+s,o.pas),d=Math.max(o.plageDebut,Math.min(m,o.plageFin-o.pas)),u=D(e.start,i),h=k(u,d);return{start:h,end:new Date(h.getTime()+c*60000)}}if(t==="resize-start"){let m=w(e.end),d=M(w(e.start)+s,o.pas),u=Math.max(o.plageDebut,Math.min(d,m-o.pas));return{start:k(e.start,u),end:e.end}}let l=w(e.start),p=M(w(e.end)+s,o.pas),f=Math.min(o.plageFin,Math.max(p,l+o.pas));return{start:e.start,end:k(e.end,f)}}function L(t,e,n,r){let o=(l)=>r.plageDebut+l/Math.max(1,r.hauteurHeure)*60,i=M(o(Math.min(e,n)),r.pas),a=M(o(Math.max(e,n)),r.pas);if(a-i<r.pas)a=i+r.pas;let s=Math.max(r.plageDebut,Math.min(i,r.plageFin-r.pas)),c=Math.min(r.plageFin,Math.max(a,s+r.pas));return{start:k(t,s),end:k(t,c)}}function dt(t,e,n,r,o){let i=o.largeurJour>0?Math.round(n/o.largeurJour):0,a=o.hauteurRangee>0?Math.round(r/o.hauteurRangee):0,s=i+7*a;if(t==="resize-start"){let c=D(e.start,s);return{start:c>e.end?e.end:c,end:e.end}}if(t==="resize-end"){let c=D(e.end,s);return{start:e.start,end:c<e.start?e.start:c}}return{start:D(e.start,s),end:D(e.end,s)}}var gr={src:void 0,map:new Map},v=(t)=>{try{return Intl.getCanonicalLocales(t)[0]??"en"}catch{return"en"}},br=(t,e)=>!t||t==="auto"?e?"agenda":"month":t,yr=(t,e)=>t??(hn(e)===0?0:1);function vr(t,e,n){if(t==="day"){let i=ke(e);return{start:i,end:new Date(i.getFullYear(),i.getMonth(),i.getDate(),23,59,59)}}if(t==="week"){let i=x(e,n);return{start:i,end:new Date(i.getFullYear(),i.getMonth(),i.getDate()+6,23,59,59)}}if(t==="year")return{start:new Date(e.getFullYear(),0,1),end:new Date(e.getFullYear(),11,31,23,59,59)};let r=E(e,n),o=r.semaines[r.semaines.length-1][6];return{start:r.debut,end:new Date(o.getFullYear(),o.getMonth(),o.getDate(),23,59,59)}}function xr(t,e,n={}){let r=mn(t.tasks,e.start,e.end),o=n.hidden,i=o?.size?r.occurrences.filter((s)=>!o.has(s.task.bucket??"")):r.occurrences,a=n.patch;if(!a||a.src!==n.src||!a.map.size)return{occurrences:i,issues:r.issues};return{occurrences:i.map((s)=>{let c=a.map.get(s.id);return c?{...s,start:c.start,end:c.end}:s}),issues:r.issues}}function wr(t){let e=new Map;for(let n of t){let r=g(n.start),o=g(n.end);for(let i=r;i<=o;i++)(e.get(i)??e.set(i,[]).get(i)).push(n)}return e}function Rt(t){let e=new Intl.DateTimeFormat(v(t),{weekday:"short"});return Array.from({length:7},(n,r)=>e.format(new Date(2024,0,7+r)).replace(/\.$/,""))}var _r=(t,e)=>Array.from({length:7},(n,r)=>t[(e+r)%7]),kr=(t,e)=>new Intl.DateTimeFormat(v(t),{hour:"numeric"}).format(new Date(2024,0,1,e)),ie=(t,e)=>new Intl.DateTimeFormat(v(t),{hour:"2-digit",minute:"2-digit"}).format(e),Se=(t,e,n)=>new Intl.DateTimeFormat(v(t),n?{weekday:"long",day:"numeric",month:"long"}:{weekday:"long",day:"numeric",month:"long",hour:"2-digit",minute:"2-digit"}).format(e);function Sr(t,e){let n=t.task.bucket??"";return t.task.color||e.find((r)=>r.id===n)?.color||"var(--poad-accent)"}var Dn=(t,e)=>{let n=t.task.bucket??"";return e.find((r)=>r.id===n)?.label??n},Nn=(t,e)=>e&&!t.recurring&&!t.task.locked;function W(t,e,n){if(!e)return"";if(t.task.locked)return n("planning.locked");if(t.recurring)return n("planning.seriesLocked");return""}function Mr(t,e){let n=t.allDay?e.t("planning.allDay"):`${ie(e.locale,t.start)} – ${ie(e.locale,t.end)}`,r=Dn(t,e.sources),o=W(t,e.editable,e.t);return`${t.task.label} · ${n}${r?" · "+r:""}${t.recurring?" · "+e.t("planning.recurring"):""}${o?" · "+o:""}`}var Er=(t,e,n,r="")=>`${t}${r}${Nn(e,n)?" is-editable":n?" is-verrouille":""}`;function Cr(t,e,n){let r=E(n.date,n.firstDay),o=g(ke(n.today));return r.semaines.map((i)=>{let{bandes:a,voies:s}=I(t,i);return{lanes:s,bands:a,days:i.map((c)=>{let l=g(c),p=(e.get(l)??[]).filter((f)=>!N(f));return{date:c,key:l,n:c.getDate(),outside:c.getMonth()!==r.mois,today:l===o,closed:n.workCalendar?!n.workCalendar.isWorkday(c):!1,chips:p.slice(0,n.maxPerDay),more:Math.max(0,p.length-n.maxPerDay)}})}})}function Tr(t,e,n){let r=t==="day"?ke(n.date):x(n.date,n.firstDay),o=g(ke(n.today));return Array.from({length:t==="day"?1:7},(i,a)=>{let s=new Date(r.getFullYear(),r.getMonth(),r.getDate()+a),c=g(s);return{date:s,key:c,n:s.getDate(),weekday:n.names[s.getDay()],today:c===o,closed:n.workCalendar?!n.workCalendar.isWorkday(s):!1,slots:A(e.get(c)??[],n.dayStart*60,n.dayEnd*60)}})}var Or=(t,e)=>I(t,e.map((n)=>n.date)),Ar=(t)=>`54px repeat(${t}, minmax(0, 1fr))`,Pr=(t,e)=>Array.from({length:Math.max(0,e-t+1)},(n,r)=>t+r);function Dr(t,e,n,r){let o=t.getHours()*60+t.getMinutes();return o<e*60||o>n*60?null:(o-e*60)/60*r}function Nr(t,e){let n=g(ke(e.today));return[...t.entries()].sort((r,o)=>r[0]-o[0]).map(([r,o])=>{let i=o[0].start,a=new Date(i.getFullYear(),i.getMonth(),i.getDate()),s=new Date(a.getFullYear(),a.getMonth(),a.getDate()+(r-g(a)));return{key:r,n:s.getDate(),weekday:e.names[s.getDay()],today:r===n,date:s,events:[...o].sort((c,l)=>Number(l.allDay)-Number(c.allDay)||c.start.getTime()-l.start.getTime())}})}function Rr(t,e){let n=e.date.getFullYear(),r=g(ke(e.today)),o=new Intl.DateTimeFormat(v(e.locale),{month:"long"});return Array.from({length:12},(i,a)=>({month:a,title:o.format(new Date(n,a,1)),days:E(new Date(n,a,1),e.firstDay).semaines.flat().map((s)=>{let c=g(s);return{date:s,key:c,n:s.getDate(),outside:s.getMonth()!==a,today:c===r,load:(t.get(c)??[]).length}})}))}var Ir=(t,e)=>({hauteurHeure:t.hourHeight,largeurJour:e,pas:Math.max(1,t.snap),plageDebut:t.dayStart*60,plageFin:t.dayEnd*60});function Rn(t,e,n,r){let o=new Map(t.src===e?t.map:[]);return o.set(n,r),{src:e,map:o}}function Lr(t,e){let r={ArrowLeft:[e.rtl?1:-1,0],ArrowRight:[e.rtl?-1:1,0],ArrowUp:[0,-1],ArrowDown:[0,1]}[t];if(!r||!e.ctrl&&!e.shift)return null;let o=e.ctrl?"move":"resize-end",i={start:e.occurrence.start,end:e.occurrence.end,allDay:e.occurrence.allDay},a=e.month?dt(o,i,r[0],r[1],{largeurJour:1,hauteurRangee:1}):ut(o,i,r[0],r[1]*Math.max(1,e.geometry.pas)/60*e.geometry.hauteurHeure,{...e.geometry,largeurJour:1});if(a.start.getTime()===i.start.getTime()&&a.end.getTime()===i.end.getTime())return null;return{kind:o==="move"?"move":"resize",start:a.start,end:a.end}}var Fr=(t,e,n,r)=>t==="move"?{key:"planning.announceMoved",params:{label:e.task.label,date:Se(r,n.start,e.allDay)}}:{key:"planning.announceResized",params:{label:e.task.label,date:Se(r,n.end,e.allDay)}},zr=(t)=>`poad-calendar is-${t.view}${t.editable?" is-editable":""}${t.dragging?" is-dragging":""}`;var z=(t,e)=>!!t&&t.start.getTime()===e.start.getTime()&&t.end.getTime()===e.end.getTime();function He(t=()=>Date.now()){let e=-1/0;return{mark(){e=t()},blocked(){return t()-e<300}}}function gn(t){let e=t.event.clientX,n=t.event.clientY,r=t.event.pointerId,o=!!t.immediate,i=!1,a=null,s=(u)=>r===void 0||u.pointerId===void 0||u.pointerId===r,c=(u)=>{if(i||!s(u))return;if(!o){if(!be(u.clientX-e,u.clientY-n,{pointerType:t.event.pointerType}))return;o=!0}u.preventDefault?.(),a=t.project(u.clientX-e,u.clientY-n),t.onPreview(a)},l=(u)=>{if(i||!s(u))return;let h=o?t.project(u.clientX-e,u.clientY-n):null;if(d(),!h)return;if(z(t.base,h))t.onCancel?.();else t.onCommit(h)},p=()=>{if(i)return;let u=o;if(d(),u)t.onCancel?.()},f=(u)=>{if(s(u))p()},m=(u)=>{if(u.key!=="Escape"&&u.key!=="Esc")return;if(o)u.preventDefault(),u.stopPropagation();p()},d=()=>{i=!0,t.doc.removeEventListener("pointermove",c),t.doc.removeEventListener("pointerup",l),t.doc.removeEventListener("pointercancel",f),t.doc.removeEventListener("keydown",m,!0)};if(t.doc.addEventListener("pointermove",c),t.doc.addEventListener("pointerup",l),t.doc.addEventListener("pointercancel",f),t.doc.addEventListener("keydown",m,!0),o)a=t.project(0,0),t.onPreview(a);return p}var S=(t,e)=>({hauteurHeure:t.hourHeight,largeurJour:e,pas:Math.max(1,t.snap),plageDebut:t.dayStart*60,plageFin:t.dayEnd*60});function $r(t){let e={start:t.occurrence.start,end:t.occurrence.end,allDay:t.occurrence.allDay},r=(t.root.querySelector(t.month?".mois__jour":".heures__col")??t.root.querySelector(".mois__jour"))?.getBoundingClientRect().width??0,o;if(t.month){let a=t.event.target?.closest?.(".mois__sem")??t.root.querySelector(".mois__sem"),s={largeurJour:r,hauteurRangee:a?.getBoundingClientRect().height??0};o=(c,l)=>dt(t.kind,e,c,l,s)}else{let i=S(t.settings,r);o=(a,s)=>ut(t.kind,e,a,s,i)}return gn({event:t.event,doc:t.doc,base:e,project:o,onPreview:t.onPreview,onCommit:t.onCommit,onCancel:t.onCancel})}function Br(t){let e=t.column.getBoundingClientRect(),n=S(t.settings,e.width),r=t.event.clientY-e.top,o=g(t.day),i=(s)=>(s.getHours()*60+s.getMinutes()-n.plageDebut)/60*n.hauteurHeure,a=(s,c)=>L(t.day,r,r+c,n);return gn({event:t.event,doc:t.doc,base:null,immediate:!0,project:a,onPreview:(s)=>t.onPreview({day:o,top:i(s.start),height:Math.max(12,i(s.end)-i(s.start)),start:s.start,end:s.end}),onCommit:t.onCommit,onCancel:t.onCancel})}function Vr(t,e){if(!t)return null;return Array.from(t.querySelectorAll("[data-task]")).find((r)=>r.getAttribute("data-task")===e)??null}
|
|
2
|
+
export{mn,ke,ut,dt,gr,br,yr,vr,xr,wr,Rt,_r,kr,ie,Se,Sr,Dn,Nn,Mr,Er,Cr,Tr,Or,Ar,Pr,Dr,Nr,Rr,Ir,Rn,Lr,Fr,zr,He,gn,$r,Br,Vr};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ct,Nt,Ve}from"./c-cvsx6n6e.js";import{mn,ut,dt,Rt,ie,Se,He}from"./c-cc3m3rs1.js";import{ae,Lt,Ft,le}from"./c-0zqjsnm5.js";import{H}from"./c-zyfkspym.js";import{Pe,ft,ge,K,ee}from"./c-72hj12cs.js";import{be}from"./c-rktc0ksd.js";import{L,x,T}from"./c-523qwqen.js";import{v}from"./c-p8wyhrwm.js";import{i}from"./c-azvw5879.js";import{h,t,l,m,c,r,f,u,o,e}from"./c-kyajr8zz.js";function Ye(n){let s=n.map((p,g)=>({it:p,i:g})).sort((p,g)=>p.it.start.getTime()-g.it.start.getTime()||p.it.end.getTime()-g.it.end.getTime()),a=Array(n.length).fill(0),d=[];for(let{it:p,i:g}of s){let M=p.start.getTime(),b=d.findIndex((S)=>S<=M);if(b<0)b=d.length,d.push(0);d[b]=p.end.getTime(),a[g]=b}return{lanes:a,count:Math.max(1,d.length)}}function Ke(n){let s=[],a=[];for(let d of n){if(d.rolled)continue;if(d.scheduled&&d.assignments.length)s.push(d);else a.push(d)}return{posables:s,nonPlanifiees:a}}function Ue(n,s,a,d){if(s.getTime()<=a.getTime()||n.getTime()>=d.getTime())return null;return{start:n.getTime()<a.getTime()?a:n,end:s.getTime()>d.getTime()?d:s,continueAvant:n.getTime()<a.getTime(),continueApres:s.getTime()>d.getTime()}}var Xe=(n,s)=>!n||n==="auto"?s?"list":"timeline":n,We=(n,s)=>s||(n==="day"?64:n==="week"?76:27);function qe(n,s,a,d,p){if(n==="day")return{start:new Date(s.getFullYear(),s.getMonth(),s.getDate(),d),end:new Date(s.getFullYear(),s.getMonth(),s.getDate(),p)};let g=n==="week"?ct(s,"week",a):ct(L(s),"week",a);return{start:g,end:x(g,n==="week"?14:42)}}function Ge(n,s,a){return Nt(s.start,new Date(s.end.getTime()-1),n==="day"?"hour":"day",{locale:a.locale,i18n:a.i18n,firstDay:a.firstDay,calendar:a.calendar??null,today:a.today??new Date})}function Je(n,s,a,d,p){let g=Rt(d);return{lower:n.lower.map((M)=>({label:a==="month"&&M.start.getDay()!==p?"":M.label,sub:a==="week"?g[M.start.getDay()]:"",off:M.off,today:M.today})),upper:n.upper.map((M)=>{let b=Math.max(0,s.xOf(M.start)),S=Math.min(s.width,s.xOf(M.end));return{label:M.label,w:Math.max(0,S-b)}}).filter((M)=>M.w>0)}}function Qe(n){let s=new Set(n.map((a)=>a.parent).filter(Boolean));return n.map((a)=>({type:s.has(a.id)?"group":"row",resource:a}))}var Z=(n)=>n.filter((s)=>s.type==="row").map((s)=>s.resource.id),Ze=(n,s)=>n.resources.find((a)=>a.id===s)?.label||s,et={src:void 0,bounds:new Map,assigns:new Map,schedules:new Map},we=(n,s)=>n.src===s?{bounds:new Map(n.bounds),assigns:new Map(n.assigns),schedules:new Map(n.schedules)}:{bounds:new Map,assigns:new Map,schedules:new Map};function xe(n,s,a,d){let p=we(n,s);if(d)p.bounds.set(a,d);else p.bounds.delete(a);return{src:s,...p}}var J=(n,s)=>`${n}#${s}`;function tt(n,s,a,d,p){let g=we(n,s);return g.assigns.set(J(a,d),p),{src:s,...g}}function nt(n,s,a,d){let p=we(n,s);return p.schedules.set(a,d),{src:s,...p}}var rt=26,st=(n)=>Math.max(1,n)*rt+10;function at(n,s){let a=Ke(n.tasks),d=s.patch&&s.patch.src===s.src?s.patch:null,p=mn(a.posables,s.win.start,s.win.end),g=p.occurrences;if(d?.bounds.size)g=g.map((C)=>{let R=d.bounds.get(C.id);return R?{...C,start:R.start,end:R.end}:C});if(d?.schedules.size)for(let C of a.nonPlanifiees){let R=d.schedules.get(C.id);if(!R)continue;let E=d.bounds.get(C.id);g=[...g,{id:C.id,taskId:C.id,start:E?.start??R.start,end:E?.end??R.end,allDay:!1,recurring:!1,overridden:!1,task:{...C,assignments:[{resource:R.resource,units:1}],scheduled:!0}}]}let M=d?.schedules.size?a.nonPlanifiees.filter((C)=>!d.schedules.has(C.id)):a.nonPlanifiees,b=new Map;for(let C of Z(s.rows))b.set(C,{bars:[],lanes:1});let S=new Map;for(let C of g)C.task.assignments.forEach((R,E)=>{let I=d?.assigns.get(J(C.id,E))??R.resource;if(!b.has(I))return;let k=Ue(C.start,C.end,s.win.start,s.win.end);if(!k)return;(S.get(I)??S.set(I,[]).get(I)).push({occurrence:C,assignment:E,clip:k})});let B=new Map(n.resources.map((C)=>[C.id,C.color]));for(let[C,R]of S){let{lanes:E,count:I}=Ye(R.map((k)=>({start:k.clip.start,end:k.clip.end})));b.set(C,{lanes:I,bars:R.map((k,F)=>{let N=s.axis.spanOf(k.clip.start,k.clip.end);return{occurrence:k.occurrence,assignment:k.assignment,resource:C,key:J(k.occurrence.id,k.assignment),ref:J(k.occurrence.taskId,k.assignment),color:Ht(k.occurrence,B.get(C)),lane:E[F],x:N.x,w:Math.max(26,N.width-2),top:5+E[F]*rt,before:k.clip.continueAvant,after:k.clip.continueApres}})})}return{occurrences:g,unplanned:M,issues:p.issues,rows:b}}var lt=(n)=>[...n].sort((s,a)=>s.occurrence.start.getTime()-a.occurrence.start.getTime());function ot(n,s,a,d){let p=new Map;for(let g of Z(s))p.set(g,n.lower.map((M)=>{let b=d==="day"?!a.isWorkingTime(M.start,g):!a.isWorkday(M.start,g);return{off:M.off,ex:!M.off&&b}}));return p}function it(n,s,a){let d=[];for(let p of n??[]){let g=T(p.date);if(!g||g<s.start||g>=s.end)continue;d.push({x:a.xOf(g),label:p.label??""})}return d}var ht=(n,s,a)=>n<s.start||n>=s.end?null:a.xOf(n),pt=(n)=>{try{return Intl.getCanonicalLocales(n)[0]??"en"}catch{return"en"}},U=(n,s)=>new Intl.DateTimeFormat(pt(n),{day:"numeric",month:"short"}).format(s),Ht=(n,s)=>n.task.color||s||"var(--poad-accent)",_e=(n,s)=>s&&!n.recurring&&!n.task.locked;function Ot(n,s,a){if(!s)return"";if(n.task.locked)return a("planning.locked");if(n.recurring)return a("planning.seriesLocked");return""}function ke(n,s){let a=n.allDay?`${U(s.locale,n.start)}, ${s.t("planning.allDay")}`:`${U(s.locale,n.start)} ${ie(s.locale,n.start)} → ${U(s.locale,n.end)} ${ie(s.locale,n.end)}`,d=n.task.assignments.length>1?" · "+s.t("planning.multiResource"):"";return`${n.task.label} · ${a}${d}${n.recurring?" · "+s.t("planning.recurring"):""}`}function mt(n,s){let a=Ot(n,s.editable,s.t);return ke(n,s)+(a?" · "+a:"")}function gt(n,s,a){if(n.allDay)return`${U(s,n.start)} · ${a("planning.allDayShort")}`;return n.start.getFullYear()===n.end.getFullYear()&&n.start.getMonth()===n.end.getMonth()&&n.start.getDate()===n.end.getDate()?`${U(s,n.start)} ${ie(s,n.start)}–${ie(s,n.end)}`:`${U(s,n.start)} → ${U(s,n.end)}`}function vt(n,s){if(!n.scheduled&&!n.assignments.length)return s("planning.noDatesNoResource");if(!n.scheduled)return s("planning.noDates");return s("planning.noResource")}var Ce=(n,s,a)=>n.capacity!=null&&n.capacity!==1?a("planning.fte",{value:new Intl.NumberFormat(pt(s)).format(n.capacity)}):"";function yt(n,s,a=!1){let d=n.occurrence;return`sch__evt${n.before?" is-avant":""}${n.after?" is-apres":""}${_e(d,s)?" is-editable":s?" is-verrouille":""}${a&&d.task.assignments.length>1?" is-pair":""}`}var wt=(n)=>`poad-scheduler is-${n.mode} is-${n.scale}${n.editable?" is-editable":""}${n.dragging?" is-dragging":""}`;function pe(n,s,a,d){if(d.scale==="day")return ut(n,s,0,a,{hauteurHeure:d.unit,largeurJour:0,pas:Math.max(1,d.snap),plageDebut:d.dayStart*60,plageFin:d.dayEnd*60});return dt(n,s,a,0,{largeurJour:d.unit,hauteurRangee:0})}var Yt=(n)=>n.scale==="day"?n.unit*Math.max(1,n.snap)/60:n.unit;function xt(n,s){if(s.ctrl&&(n==="ArrowUp"||n==="ArrowDown")){let g=s.rows.indexOf(s.origin)+(n==="ArrowDown"?1:-1);return g<0||g>=s.rows.length||s.rows.indexOf(s.origin)<0?null:{kind:"assign",to:s.rows[g]}}if(n!=="ArrowLeft"&&n!=="ArrowRight"||!s.ctrl&&!s.shift)return null;let a=s.shift&&!s.ctrl?"resize-end":"move",d={start:s.occurrence.start,end:s.occurrence.end,allDay:s.occurrence.allDay},p=pe(a,d,(n===(s.rtl?"ArrowLeft":"ArrowRight")?1:-1)*Yt(s.settings),s.settings);if(p.start.getTime()===d.start.getTime()&&p.end.getTime()===d.end.getTime())return null;return{kind:a==="move"?"move":"resize",start:p.start,end:p.end}}function _t(n,s,a){if(n.kind==="assign")return{key:"planning.announceAssigned",params:{label:s.task.label,resource:a.resourceName(n.to)}};let d=a.scale!=="day"||s.allDay;return n.kind==="move"?{key:"planning.announceMoved",params:{label:s.task.label,date:Se(a.locale,n.start,d)}}:{key:"planning.announceResized",params:{label:s.task.label,date:Se(a.locale,n.end,d)}}}var kt=(n,s,a,d,p)=>({key:"planning.announceScheduled",params:{label:n.label,resource:s,date:Se(d,a,p!=="day")}});function Me(n,s,a,d,p){let g=p.scale==="day"?pe("move",{start:s,end:s,allDay:!1},0,p).start:ct(s,"day"),M=d.intervals(g,a).reduce((C,[R,E])=>C+(E-R),0)||(p.dayEnd-p.dayStart)*60,b=Lt(n.source.duration??null),S=b?Ft(b,M,5):M,B=d.addMinutes(g,S,a)??new Date(g.getTime()+S*60000);return{start:g,end:B}}function Ct(n,s){if(n!=="Enter"&&n!==" ")return null;let a=s.rows[0];if(a===void 0)return null;return{resource:a,...Me(s.task,s.at,a,s.calendar,s.settings)}}function Mt(n,s,a,d,p){let g=Math.min(n,s),M=Math.max(n,s);if(p.scale==="day"){let C={hauteurHeure:p.unit,largeurJour:0,pas:Math.max(1,p.snap),plageDebut:p.dayStart*60,plageFin:p.dayEnd*60},R=(F)=>Math.round((C.plageDebut+F/Math.max(1,p.unit)*60)/C.pas)*C.pas,E=R(g),I=R(M);if(I-E<C.pas)I=E+C.pas;E=Math.max(C.plageDebut,Math.min(E,C.plageFin-C.pas)),I=Math.min(C.plageFin,Math.max(I,E+C.pas));let k=d.start;return{start:new Date(k.getFullYear(),k.getMonth(),k.getDate(),0,E),end:new Date(k.getFullYear(),k.getMonth(),k.getDate(),0,I)}}let b=a.lower.length,S=Math.max(0,Math.min(b-1,Math.floor(g/p.unit))),B=Math.max(0,Math.min(b-1,Math.floor(M/p.unit)));return{start:a.lower[S].start,end:a.lower[B].end}}var Dt=(n,s,a)=>s==="day"?`${ie(a,n.start)} – ${ie(a,n.end)}`:`${U(a,n.start)} → ${U(a,new Date(n.end.getTime()-1))}`;function De(n,s){if(!n)return null;return Array.from(n.querySelectorAll("[data-bar]")).find((d)=>d.getAttribute("data-bar")===s)??null}var Te=(n)=>!!n&&typeof n.closest==="function"&&v(n);function Tt(n){return Array.from(n.querySelectorAll(".sch__ligne")).map((s)=>{let a=s.getBoundingClientRect();return{id:s.getAttribute("data-res")??"",top:a.top,bottom:a.top+a.height}}).filter((s)=>s.bottom>s.top)}function $e(n){let s=n.event.clientX,a=n.event.clientY,d=n.event.pointerId,p=n.rtl?-1:1,g=!!n.immediate,M=!1,b=(k)=>d===void 0||k.pointerId===void 0||k.pointerId===d,S=(k)=>{if(M||!b(k))return;if(!g){if(!be(k.clientX-s,k.clientY-a,{pointerType:n.event.pointerType}))return;g=!0}k.preventDefault?.(),n.onPreview(n.project(p*(k.clientX-s),k.clientY-a))},B=(k)=>{if(M||!b(k))return;let F=g,N=g?n.project(p*(k.clientX-s),k.clientY-a):null;if(I(),!F)return;if(N===null||n.unchanged(N))n.onCancel?.();else n.onCommit(N)},C=()=>{if(M)return;let k=g;if(I(),k)n.onCancel?.()},R=(k)=>{if(b(k))C()},E=(k)=>{if(k.key!=="Escape"&&k.key!=="Esc")return;if(g)k.preventDefault(),k.stopPropagation();C()},I=()=>{M=!0,n.doc.removeEventListener("pointermove",S),n.doc.removeEventListener("pointerup",B),n.doc.removeEventListener("pointercancel",R),n.doc.removeEventListener("keydown",E,!0)};if(n.doc.addEventListener("pointermove",S),n.doc.addEventListener("pointerup",B),n.doc.addEventListener("pointercancel",R),n.doc.addEventListener("keydown",E,!0),g)n.onPreview(n.project(0,0));return C}function Pt(n){let s={start:n.occurrence.start,end:n.occurrence.end,allDay:n.occurrence.allDay},a=n.kind==="move"?Tt(n.root):[],d=n.event.clientY;return $e({event:n.event,doc:n.doc,rtl:Te(n.root),project:(p,g)=>{let M=a.find((S)=>d+g>=S.top&&d+g<S.bottom);if(M&&M.id!==n.origin)return{kind:"assign",to:M.id};let b=pe(n.kind,s,p,n.settings);return{kind:n.kind==="move"?"move":"resize",start:b.start,end:b.end}},unchanged:(p)=>p.kind!=="assign"&&p.start.getTime()===s.start.getTime()&&p.end.getTime()===s.end.getTime(),onPreview:n.onPreview,onCommit:n.onCommit,onCancel:n.onCancel})}function St(n){let s=n.zone.getBoundingClientRect(),a=Te(n.zone),d=a?s.left+(s.width??0)-n.event.clientX:n.event.clientX-s.left,p=(g)=>Mt(d,d+g,n.header,n.win,n.settings);return $e({event:n.event,doc:n.doc,immediate:!0,rtl:a,project:(g)=>p(g),unchanged:()=>!1,onPreview:(g)=>{let M=n.axis.spanOf(g.start,g.end);n.onPreview({resource:n.resource,x:M.x,w:Math.max(26,M.width-2),start:g.start,end:g.end})},onCommit:n.onCommit,onCancel:n.onCancel})}function $t(n){let s=Tt(n.root),d=n.root.querySelector(".sch__zone")?.getBoundingClientRect(),p=Te(n.root),g=n.event.clientY,M=p?(d?d.left+(d.width??0):0)-n.event.clientX:n.event.clientX-(d?.left??0),b=(S,B)=>{let C=s.find((E)=>g+B>=E.top&&g+B<E.bottom),R=C?n.axis.dateAt(Math.max(0,M+S)):null;if(!C||!R)return null;return{resource:C.id,...Me(n.task,R,C.id,n.calendar,n.settings)}};return $e({event:n.event,doc:n.doc,rtl:p,project:b,unchanged:(S)=>S===null,onPreview:(S)=>{if(!S){n.onPreview(null);return}let B=n.axis.spanOf(S.start,S.end);n.onPreview({resource:S.resource,x:B.x,w:Math.max(26,B.width-2),start:S.start,end:S.end})},onCommit:(S)=>{if(S)n.onCommit(S)},onCancel:n.onCancel})}var un=r({name:"PoadScheduler",inheritAttrs:!1,props:{data:{type:Object,default:null},store:{type:[Object,String],default:null},fields:{type:Array,default:null},plan:{type:Object,default:null},mode:{type:String,default:"auto"},scale:{type:String,default:"week"},date:{type:Date,default:null},firstDay:{type:Number,default:1},dayStart:{type:Number,default:7},dayEnd:{type:Number,default:19},tickWidth:{type:Number,default:null},snap:{type:Number,default:30},workCalendar:{type:Object,default:null},today:{type:Date,default:null},locale:String,emptyText:String,showNow:{type:Boolean,default:!0},showUnplanned:{type:Boolean,default:!0},editable:Boolean},emits:{eventClick:(n)=>!0,eventMove:(n)=>!0,eventResize:(n)=>!0,eventAssign:(n)=>!0,eventCreate:(n)=>!0,eventSchedule:(n)=>!0,rangeChange:(n)=>!0},setup(n,{emit:s,attrs:a}){let d=i(),p=K(n,!0),g=o(()=>p.state.value?ge(p.state.value,{locale:d.locale}):null),M=(y,_)=>{s(y,_);let P=p.binding.value;if(!P)return;if(y==="rangeChange"){let A=_;queueMicrotask(()=>p.binding.value?.setRange(A.start,A.end))}else if(y==="eventMove"||y==="eventResize"){let A=_;Pe(P,A.occurrence.taskId,A.start,A.end)}else if(y==="eventAssign"){let A=_;ft(P,A.occurrence.taskId,A.to)}else if(y==="eventSchedule"){let A=_;if(Pe(P,A.task.id,A.start,A.end),A.resource)ft(P,A.task.id,A.resource)}},b=()=>g.value&&!p.given("editable")?g.value.editable:n.editable,S=(y,_)=>d.t(y,_),B=`poad-scheduler-${f()}-hint`,C=H(),R=new Date,E=l(et),I=l(null),k=t(null),F=t(null),N=t(!1),fe=t(""),j=t(null),Ee=He(),X=null,te=null,q=()=>g.value?g.value.plan:n.plan?h(n.plan):null,ne=()=>n.locale??d.locale,bt=()=>n.date??R,re=o(()=>Xe(n.mode,C.isMobile.value)),se=o(()=>le(q(),{i18n:ae(d.locale,d.messages)})),ce=o(()=>n.workCalendar??se.value.calendar),oe=o(()=>We(n.scale,n.tickWidth)),Q=()=>({scale:n.scale,unit:oe.value,snap:n.snap,dayStart:n.dayStart,dayEnd:n.dayEnd}),Y=o(()=>qe(n.scale,bt(),n.firstDay,n.dayStart,n.dayEnd)),ue=o(()=>Ge(n.scale,Y.value,{locale:ne(),i18n:ae(d.locale,d.messages),firstDay:n.firstDay,calendar:ce.value,today:n.today??new Date})),de=o(()=>new Ve(ue.value.lower,oe.value)),W=o(()=>Qe(se.value.resources)),Et=o(()=>at(se.value,{win:Y.value,axis:de.value,rows:W.value,patch:E.value,src:q()})),At=o(()=>ot(ue.value,W.value,ce.value,n.scale));c(()=>`${Y.value.start.getTime()}-${Y.value.end.getTime()}`,()=>M("rangeChange",{start:Y.value.start,end:Y.value.end}),{immediate:!0}),u(()=>X?.());let he=(y)=>_e(y,b()),Ae=(y)=>Ze(se.value,y),G=()=>{X=null,te=null,N.value=!1,k.value=null,I.value=null,Ee.mark()},Re=(y,_,P=E.value)=>{if(y.kind==="assign")E.value=tt(P,q(),_.occurrence.id,_.assignment,y.to),M("eventAssign",{occurrence:_.occurrence,assignmentIndex:_.assignment,from:_.resource,to:y.to});else if(E.value=xe(P,q(),_.occurrence.id,y),y.kind==="move")M("eventMove",{occurrence:_.occurrence,start:y.start,end:y.end});else M("eventResize",{occurrence:_.occurrence,start:y.start,end:y.end});let A=_t(y,_.occurrence,{locale:ne(),scale:n.scale,resourceName:Ae});fe.value=d.t(A.key,A.params)},me=(y,_,P)=>{if(!he(_.occurrence)||P.button!==0||!j.value)return;P.preventDefault(),P.stopPropagation(),X?.();let A=E.value;X=Pt({kind:y,event:P,root:j.value,doc:j.value.ownerDocument,occurrence:_.occurrence,origin:_.resource,settings:Q(),onPreview:(O)=>{N.value=!0,k.value=O.kind==="assign"?O.to:null,E.value=xe(A,q(),_.occurrence.id,O.kind==="assign"?null:O)},onCommit:(O)=>{G(),Re(O,_,A)},onCancel:()=>{G(),E.value=A}})},It=(y,_)=>{if(!b()||_.button!==0||_.target.closest(".sch__evt")||!j.value)return;_.preventDefault(),X?.(),X=St({event:_,zone:_.currentTarget,doc:j.value.ownerDocument,resource:y,header:ue.value,axis:de.value,win:Y.value,settings:Q(),onPreview:(P)=>{N.value=!0,I.value=P},onCommit:(P)=>{G(),M("eventCreate",{resource:y,start:P.start,end:P.end})},onCancel:G})},Bt=(y,_)=>{if(!b()||_.button!==0||re.value!=="timeline"||!j.value)return;_.preventDefault(),X?.(),te=y,X=$t({event:_,root:j.value,doc:j.value.ownerDocument,task:y,axis:de.value,calendar:ce.value,settings:Q(),onPreview:(P)=>{N.value=!0,k.value=P?.resource??null,I.value=P},onCommit:(P)=>{G(),Ie(y,P)},onCancel:G})},Ie=(y,_)=>{E.value=nt(E.value,q(),y.id,_),M("eventSchedule",{task:y,resource:_.resource,start:_.start,end:_.end});let P=kt(y,Ae(_.resource),_.start,ne(),n.scale);fe.value=d.t(P.key,P.params)},zt=(y,_)=>{if(!b())return;let P=Ct(_.key,{task:y,rows:Z(W.value),at:Y.value.start,calendar:ce.value,settings:Q()});if(!P)return;if(_.preventDefault(),Ie(y,P),re.value==="timeline")m(()=>De(j.value,J(y.id,0))?.focus())},jt=(y,_)=>{if(!he(y.occurrence))return;let P=xt(_.key,{occurrence:y.occurrence,ctrl:_.ctrlKey||_.metaKey,shift:_.shiftKey,settings:Q(),rows:Z(W.value),origin:y.resource,rtl:v(_.currentTarget)});if(!P)return;_.preventDefault(),Re(P,y),m(()=>De(j.value,y.ref)?.focus())},Le=(y,_)=>{if(!Ee.blocked())M("eventClick",{occurrence:y,originalEvent:_})};return()=>{let{t:y,text:_}=d,P=ne(),A=Et.value,O=de.value,Be=Je(ue.value,O,n.scale,P,n.firstDay),ze=it(q()?.markers,Y.value,O),Ne=n.showNow?ht(n.today??new Date,Y.value,O):null,ve=(w)=>A.rows.get(w)?.bars??[],je=(w)=>`${st(A.rows.get(w)?.lanes??1)}px`,Oe=(w)=>w.recurring?e("span",{"aria-hidden":"true"}," ↻"):null,Fe=()=>e("div",{class:"sch__vide"},_(n.emptyText,"planning.schedulerEmpty")),V=I.value,ye;if(re.value==="timeline")ye=e("div",{class:"sch__scroll"},[e("div",{class:"sch",style:{"--sch-axe":`${O.width}px`}},[e("div",{class:"sch__hd"},[e("div",{class:"sch__coin"},y("planning.resources")),e("div",{class:"sch__ax"},[e("div",{class:"sch__bandes"},Be.upper.map((w,D)=>e("div",{key:D,class:"sch__bande",style:{width:`${w.w}px`}},w.label))),e("div",{class:"sch__ticks"},Be.lower.map((w,D)=>e("div",{key:D,class:["sch__tick",{"is-off":w.off,"is-auj":w.today}],style:{width:`${oe.value}px`}},[w.sub?e("small",w.sub):null,w.label]))),...ze.map((w,D)=>e("span",{key:`m${D}`,class:"sch__drapeau",style:{insetInlineStart:`${w.x+4}px`}},w.label))])]),...W.value.map((w)=>w.type==="group"?e("div",{key:w.resource.id,class:"sch__grp"},[e("span",w.resource.label||w.resource.id)]):e("div",{key:w.resource.id,class:["sch__ligne",{"is-cible":k.value===w.resource.id}],"data-res":w.resource.id},[e("div",{class:"sch__res",style:{"--_c":w.resource.color||void 0,minHeight:je(w.resource.id)}},[e("span",{class:"sch__pt"}),e("span",{class:"sch__nom"},w.resource.label||w.resource.id),Ce(w.resource,P,S)?e("span",{class:"sch__cap"},Ce(w.resource,P,S)):null]),e("div",{class:"sch__zone",style:{height:je(w.resource.id)},onPointerdown:(D)=>It(w.resource.id,D)},[e("div",{class:"sch__cellules","aria-hidden":"true"},(At.value.get(w.resource.id)??[]).map((D,z)=>e("div",{key:z,class:{"is-off":D.off,"is-ex":D.ex},style:{width:`${oe.value}px`},title:D.ex?y("planning.calendarException"):""}))),...ze.map((D,z)=>e("div",{key:`m${z}`,class:"sch__marqueur",style:{insetInlineStart:`${D.x}px`}})),Ne!==null?e("div",{class:"sch__now",style:{insetInlineStart:`${Ne}px`}}):null,...ve(w.resource.id).map((D)=>e("button",{key:D.key,type:"button",class:yt(D,b(),F.value===D.occurrence.id),style:{"--_c":D.color,insetInlineStart:`${D.x}px`,width:`${D.w}px`,top:`${D.top}px`},"data-task":D.occurrence.taskId,"data-bar":D.ref,"aria-label":ke(D.occurrence,{locale:P,t:S}),"aria-describedby":he(D.occurrence)?B:void 0,title:mt(D.occurrence,{locale:P,t:S,editable:b()}),onPointerdown:(z)=>me("move",D,z),onPointerenter:()=>{F.value=D.occurrence.id},onPointerleave:()=>{F.value=null},onKeydown:(z)=>jt(D,z),onClick:(z)=>Le(D.occurrence,z)},[D.occurrence.task.assignments.length>1?e("span",{class:"sch__multi",title:y("planning.multiResourceHint")},"⧉"):null,D.occurrence.task.label,Oe(D.occurrence),...he(D.occurrence)?[e("span",{class:"poignee is-debut",onPointerdown:(z)=>me("resize-start",D,z)}),e("span",{class:"poignee is-fin",onPointerdown:(z)=>me("resize-end",D,z)})]:[]])),V&&V.resource===w.resource.id?e("div",{class:"sch__fantome",style:{insetInlineStart:`${V.x}px`,width:`${V.w}px`}},te?te.label:Dt(V,n.scale,P)):null])])),W.value.length?null:Fe()])]);else ye=e("div",{class:"sch__liste"},[...W.value.flatMap((w)=>w.type==="group"?[e("div",{key:w.resource.id,class:"sch__lgrp"},w.resource.label||w.resource.id)]:[e("div",{key:w.resource.id,class:"sch__lres",style:{"--_c":w.resource.color||void 0}},[e("span",{class:"sch__pt"}),e("span",{class:"sch__nom"},w.resource.label||w.resource.id)]),...lt(ve(w.resource.id)).map((D)=>e("button",{key:D.key,type:"button",class:"sch__lev",style:{"--_c":D.color},"data-task":D.occurrence.taskId,onClick:(z)=>Le(D.occurrence,z)},[e("span",{class:"sch__lp"}),e("span",{class:"sch__lh"},gt(D.occurrence,P,S)),e("span",{class:"sch__lt"},[D.occurrence.task.label,Oe(D.occurrence)])])),ve(w.resource.id).length?null:e("div",{key:`${w.resource.id}-vide`,class:"sch__lvide"},y("planning.nothingInPeriod"))]),W.value.length?null:Fe()]);return ee(p,e("div",{ref:j,role:"region",class:wt({mode:re.value,scale:n.scale,editable:b(),dragging:N.value})},[e("p",{class:"sch__live",role:"status","aria-live":"polite"},fe.value),e("span",{class:"sch__hint",id:B},y("planning.schedulerHint")),ye,n.showUnplanned&&A.unplanned.length?e("div",{class:"sch__tray"},[e("span",{class:"sch__trayt"},y("planning.unplanned")),e("span",{class:"sch__trayn"},String(A.unplanned.length)),...A.unplanned.map((w)=>e("button",{key:w.id,type:"button",class:"sch__chip","data-task":w.id,title:b()?y("planning.dragToSchedule",{label:w.label}):"",onPointerdown:(D)=>Bt(w,D),onKeydown:(D)=>zt(w,D)},[w.label,e("i",vt(w,S))]))]):null]),a)}}});export{un as PoadScheduler};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{It,Hr}from"./c-0zqjsnm5.js";import{N,U,L,x,Re,qe,rn}from"./c-523qwqen.js";var w={hour:"day",day:"month",week:"month",month:"year",quarter:"year",year:null},D=20000,M=(t,n)=>{let r=U(t),e=(r.getDay()-n+7)%7;return x(r,-e)},p=(t)=>new Date(t.getFullYear(),Math.floor(t.getMonth()/3)*3,1),b=(t)=>new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours());function ct(t,n,r=1){switch(n){case"hour":return b(t);case"day":return U(t);case"week":return M(t,r);case"month":return L(t);case"quarter":return p(t);case"year":return new Date(t.getFullYear(),0,1)}}function W(t,n,r=1){let e=ct(t,n,r);switch(n){case"hour":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours()+1);case"day":return x(e,1);case"week":return x(e,7);case"month":return Re(e,1);case"quarter":return Re(e,3);case"year":return qe(e,1)}}var l=(t,n)=>new Intl.DateTimeFormat(t,n);function T(t,n,r,e){switch(n){case"hour":return l(r,{hour:"2-digit",minute:"2-digit"}).format(t);case"day":return String(t.getDate());case"week":return It(e,"planning.weekLabel",{week:rn(t)});case"month":return l(r,{month:"short"}).format(t);case"quarter":return It(e,"planning.quarterLabel",{quarter:Math.floor(t.getMonth()/3)+1});case"year":return String(t.getFullYear())}}function O(t,n,r,e){switch(n){case"day":return l(r,{weekday:"short",day:"numeric",month:"long"}).format(t);case"month":return l(r,{month:"long",year:"numeric"}).format(t);case"year":return String(t.getFullYear());default:return T(t,n,r,e)}}function F(t,n,r){switch(n){case"hour":return t.getHours()===0;case"day":return t.getDate()===1;case"week":return t.getDate()<=7;case"month":return t.getMonth()===0;case"quarter":return t.getMonth()===0;case"year":return!0}}function d(t,n,r,e={}){if(!N(t)||!N(n)||n.getTime()<t.getTime())return[];let a=e.locale??Hr(e.i18n),i=e.firstDay??1,s=e.label??T,u=e.calendar??null,c=e.today===null?null:e.today??new Date,k=Math.max(1,e.max??D),y=n.getTime(),g=c?c.getTime():NaN,m=[],o=ct(t,r,i);for(let f=0;f<k;f++){let h=W(o,r,i);if(m.push({start:o,end:h,label:s(o,r,a,e.i18n),major:F(o,r,i),off:u?r==="hour"?!u.isWorkingTime(o):r==="day"?!u.isWorkday(o):!1:!1,today:c?g>=o.getTime()&&g<h.getTime():!1}),h.getTime()>y)break;o=h}return m}function Nt(t,n,r,e={}){let a=d(t,n,r,e),i=w[r];if(!i||!a.length)return{upper:[],lower:a};return{upper:d(a[0].start,a[a.length-1].end,i,{...e,calendar:null,label:e.label??O}),lower:a}}class Ve{ticks;unitWidth;constructor(t,n){this.ticks=t,this.unitWidth=n}get width(){return this.ticks.length*this.unitWidth}get start(){return this.ticks.length?this.ticks[0].start:null}get end(){return this.ticks.length?this.ticks[this.ticks.length-1].end:null}indexOf(t){let n=0,r=this.ticks.length-1;while(n<r){let e=n+r+1>>1;if(this.ticks[e].start.getTime()<=t)n=e;else r=e-1}return n}xOf(t){let n=this.ticks.length;if(!n||!N(t))return 0;let r=t.getTime(),e=this.ticks[0],a=this.ticks[n-1];if(r<e.start.getTime()){let c=e.end.getTime()-e.start.getTime();return c?(r-e.start.getTime())/c*this.unitWidth:0}if(r>=a.end.getTime()){let c=a.end.getTime()-a.start.getTime();return this.width+(c?(r-a.end.getTime())/c*this.unitWidth:0)}let i=this.indexOf(r),s=this.ticks[i],u=s.end.getTime()-s.start.getTime();return(i+(u?(r-s.start.getTime())/u:0))*this.unitWidth}dateAt(t){let n=this.ticks.length;if(!n||!Number.isFinite(t)||this.unitWidth<=0)return null;let r=t/this.unitWidth,e=Math.floor(r);if(e<0){let s=this.ticks[0],u=s.end.getTime()-s.start.getTime();return new Date(s.start.getTime()+r*u)}if(e>=n){let s=this.ticks[n-1],u=s.end.getTime()-s.start.getTime();return new Date(s.end.getTime()+(r-n)*u)}let a=this.ticks[e],i=a.end.getTime()-a.start.getTime();return new Date(a.start.getTime()+(r-e)*i)}spanOf(t,n){let r=this.xOf(t);return{x:r,width:Math.max(0,this.xOf(n)-r)}}}
|
|
2
|
+
export{ct,Nt,Ve};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n}from"./c-m6yf7zaj.js";import{X,Ke,nn}from"./c-kmx0mv0c.js";import{We,Ge}from"./c-k624qrhh.js";import{et}from"./c-j02ymtyd.js";import{w}from"./c-j63hz554.js";import{i}from"./c-azvw5879.js";import{t,r,f,a,o,e}from"./c-kyajr8zz.js";var N=(l)=>(s,u)=>l?l(s,u):s===u||s!=null&&u!=null&&typeof s==="object"&&typeof u==="object"&&JSON.stringify(s)===JSON.stringify(u);function P(l,s){if(s)return Array.isArray(l)?l:l==null?[]:[l];return l==null?[]:[l]}var L=(l,s,u)=>l.some((b)=>u(b,s));function R(l,s,u){let b=P(l,u.multiple);if(u.multiple){if(u.mode==="replace")return{value:[s],changed:!0};return{value:L(b,s,u.eq)?b.filter((m)=>!u.eq(m,s)):[...b,s],changed:!0}}let v=b[0],p=u.eq(v,s)?null:s;return{value:p,changed:p!==v}}function F(l,s,u,b,v){let[p,m]=u<b?[u,b]:[b,u],y=s.filter((x)=>x.index>=p&&x.index<=m&&!x.disabled).map((x)=>x.value);return[...P(l,!0).filter((x)=>!y.some((A)=>v(A,x))),...y]}function V(l,s,u){let b=P(s,!0),v=l.filter((m)=>!m.disabled);if(v.length>0&&v.every((m)=>L(b,m.value,u)))return"all";return l.some((m)=>L(b,m.value,u))?"mixed":"none"}function U(l,s,u){let b=P(l,!0),v=s.filter((m)=>!m.disabled).map((m)=>m.value),p=b.filter((m)=>!v.some((y)=>u(y,m)));return V(s,l,u)==="all"?p:[...p,...v]}var E=8;function W(l,s){let u=s.rows;if(!u.length)return null;let b=u.findIndex((p)=>p.index===s.active),v=(p)=>({kind:"move",to:u[Math.max(0,Math.min(u.length-1,p))].index});switch(l){case"ArrowDown":return v(b+1);case"ArrowUp":return v(b-1);case"Home":return v(0);case"End":return v(u.length-1);case"PageDown":return v(b+E);case"PageUp":return v(b-E);case" ":return s.inInput?null:{kind:"pick"};case"Enter":return{kind:"pick"};case"a":if(s.ctrl&&s.multiple)return{kind:"all"}}if(l.length===1&&!s.ctrl&&!s.inInput)return{kind:"type"};return null}function J(l,s,u,b){let v=P(s,u);return(l.find((p)=>L(v,p.value,b))??l.find((p)=>!p.disabled))?.index??-1}function Q(l,s,u=""){let b=Ke(s).trim();if(!b)return l;let v=u.split(",").map((x)=>x.trim()).filter(Boolean),p=(x)=>v.length?v.some((A)=>Ke(X(x.option,A)).includes(b)):Ke(x.label).includes(b)||Ke(x.hint).includes(b),m=[],y=null;for(let x of l){if(x.kind==="group"){y=x;continue}if(p(x)){if(y)m.push(y),y=null;m.push(x)}}return m}function Y(l){return["poad-listbox",l.disabled&&"is-disabled",l.invalid&&"is-invalid",l.readonly&&"is-readonly",l.size==="sm"&&"size-sm",l.size==="lg"&&"size-lg"].filter(Boolean).join(" ")}var Z=(l,s,u)=>["poad-listbox__opt",l&&"is-active",s&&"is-selected",u&&"is-disabled"].filter(Boolean).join(" "),ee=(l,s)=>({role:"listbox",id:l,"aria-multiselectable":s.multiple?"true":null,"aria-activedescendant":s.activeId,"aria-disabled":s.disabled?"true":null,tabindex:s.disabled?-1:0});var le=(l)=>l==="all"?"true":l==="mixed"?"mixed":"false";var be=r({name:"PoadListbox",props:{data:{type:Object,default:null},store:{type:[Object,String],default:null},field:{type:String,default:null},options:{type:Array,default:()=>[]},modelValue:{type:null,default:null},optionLabel:String,optionValue:{type:null,default:void 0},optionDisabled:String,optionIcon:String,optionHint:String,optionGroupLabel:String,optionGroupChildren:String,multiple:Boolean,checkbox:{type:Boolean,default:!0},filter:Boolean,filterPlaceholder:String,filterBy:{type:String,default:""},emptyMessage:String,emptyFilterMessage:String,listHeight:{type:String,default:"auto"},size:{type:String,default:"md"},invalid:Boolean,readonly:Boolean,disabled:Boolean,selectAll:Boolean,selectAllLabel:String,metaKeySelection:Boolean,compareWith:Function,ariaLabel:String},emits:{"update:modelValue":(l)=>!0,filter:(l)=>!0},setup(l,{emit:s,slots:u}){let b=i(),v=`poad-listbox-${f()}`,p=et(()=>w(l.data,l.store,l.field),"listbox",()=>l.multiple),m=p.model(a(l,"modelValue")),y=t(""),x=t(-1),A=t(null),B=-1,K={q:"",at:0},_=o(()=>N(l.compareWith)),te=o(()=>nn(p.options(l.options),{...p.paths({optionLabel:l.optionLabel,optionValue:l.optionValue}),optionDisabled:l.optionDisabled,optionIcon:l.optionIcon,optionHint:l.optionHint,optionGroupLabel:l.optionGroupLabel,optionGroupChildren:l.optionGroupChildren},v)),q=o(()=>Q(te.value,y.value,l.filterBy)),I=o(()=>q.value.filter((c)=>c.kind==="option")),C=(c)=>L(P(m.value,l.multiple),c.value,_.value),z=(c)=>{m.value=c},H=(c,g)=>{let S=R(m.value,c.value,{multiple:l.multiple,mode:g,eq:_.value});if(S.changed)z(S.value)},D=()=>{if(!l.disabled&&!l.readonly&&l.multiple)z(U(m.value,I.value,_.value))},O=(c)=>{let g=I.value.find((S)=>S.index===c);(g?A.value?.querySelector(`[id="${g.id}"]`):null)?.scrollIntoView?.({block:"nearest"})},ie=(c,g)=>{if(l.disabled||l.readonly||c.disabled)return;if(A.value?.focus({preventScroll:!0}),l.multiple&&g.shiftKey&&B>=0){z(F(m.value,I.value,B,c.index,_.value)),x.value=c.index;return}B=c.index,x.value=c.index,H(c,l.multiple&&l.metaKeySelection&&!(g.ctrlKey||g.metaKey)?"replace":"toggle")},G=(c)=>{y.value=c,p.filter(c),s("filter",c),x.value=-1},M=(c)=>{if(l.disabled)return;let g=I.value.filter((h)=>!h.disabled),S=c.target.tagName==="INPUT",k=W(c.key,{rows:g,active:x.value,multiple:l.multiple,ctrl:c.ctrlKey||c.metaKey,inInput:S});if(!k)return;if(k.kind==="type"){let h=Date.now();K={q:We(K.q,K.at,c.key,h),at:h};let d=Ge(g,x.value,K.q);if(d)x.value=d.index,O(d.index);return}if(c.preventDefault(),k.kind==="move"){if(x.value=k.to,O(k.to),l.multiple&&c.shiftKey&&B>=0)z(F(m.value,I.value,B,k.to,_.value))}else if(k.kind==="all"){if(V(I.value,m.value,_.value)!=="all")D()}else{let h=g.find((d)=>d.index===x.value);if(h&&!l.readonly)B=h.index,H(h,"toggle")}},j=()=>e(n,{name:"check",size:10,strokeWidth:3.2});return()=>{let c=I.value,g=V(c,m.value,_.value),S=ee(v,{multiple:l.multiple,activeId:c.find((d)=>d.index===x.value)?.id??null,disabled:l.disabled}),k=b.text(l.filterPlaceholder,"common.filterPlaceholder"),h=l.listHeight==="auto"?void 0:l.listHeight;return e("div",{class:[Y({disabled:l.disabled,invalid:p.invalid(l.invalid),readonly:l.readonly,size:l.size}),p.bound.view.value?.classes]},[u.header?e("div",{class:"poad-listbox__hd"},u.header()):null,l.filter?e("div",{class:"poad-listbox__filter"},[e(n,{name:"search",size:13}),e("input",{type:"text",class:"poad-listbox__query",placeholder:k,"aria-label":k,value:y.value,disabled:l.disabled,"aria-controls":v,onInput:(d)=>G(d.target.value),onKeydown:M}),y.value?e("button",{type:"button",class:"poad-listbox__clear","aria-label":b.t("common.clear"),onClick:()=>G("")},[e(n,{name:"x",size:12})]):null]):null,l.multiple&&l.selectAll&&c.length?e("label",{class:"poad-listbox__all",onClick:D},[e("span",{class:["poad-listbox__cb",g==="all"&&"is-on",g==="mixed"&&"is-ind"],role:"checkbox","aria-checked":le(g),tabindex:0,onKeydown:(d)=>{if(d.key===" ")d.preventDefault(),D()}},[j()]),e("span",b.text(l.selectAllLabel,"select.selectAll")),e("small",`${c.filter(C).length} / ${c.length}`)]):null,e("div",{ref:A,class:"poad-listbox__list",...S,"aria-label":l.ariaLabel,style:h?{height:h,maxHeight:h}:void 0,onKeydown:M,onFocus:(d)=>{if(d.target===d.currentTarget&&x.value<0)x.value=J(c,m.value,l.multiple,_.value)}},[...q.value.map((d)=>d.kind==="group"?e("div",{key:d.id,class:"poad-listbox__group",role:"presentation"},d.label):e("div",{key:d.id,id:d.id,class:Z(x.value===d.index,C(d),d.disabled),role:"option","aria-selected":C(d)?"true":"false","aria-disabled":d.disabled?"true":void 0,onClick:(T)=>ie(d,T),onPointerdown:(T)=>T.preventDefault()},u.option?u.option({option:d.option,selected:C(d),index:d.index}):[l.multiple&&l.checkbox?e("span",{class:["poad-listbox__cb",C(d)&&"is-on"]},[j()]):null,d.icon?e(n,{class:"poad-listbox__icon",name:d.icon,size:14}):null,e("span",{class:"poad-listbox__label"},d.label),d.hint?e("span",{class:"poad-listbox__hint"},d.hint):null,!l.multiple&&C(d)?e(n,{class:"poad-listbox__tick",name:"check",size:12,strokeWidth:2.6}):null])),!q.value.length?e("div",{class:"poad-listbox__empty"},y.value?b.text(l.emptyFilterMessage,"common.noResults"):b.text(l.emptyMessage,"select.empty")):null]),u.footer?e("div",{class:"poad-listbox__ft"},u.footer()):null])}}});export{be as PoadListbox};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var ye="(max-width: 767.98px)",vs=200;var Je=(t,e)=>t==="sheet"||t==="auto"&&e,xs=(t,e)=>Math.max(0,e-t);function ws(t){let e=t.dy/Math.max(1,t.dt);if(t.dy>80||e>0.5)return"close";let a=t.expandable??(t.height==="half"||t.height==="auto");return t.dy<-40&&a&&t.height!=="full"?"expand":"stay"}var _s=(t)=>t==="half"?"h-half":t==="full"?"h-full":t==="auto"?"h-auto":"h-css",ks=(t)=>t==="auto"||t==="half"||t==="full"?null:t,Ss=(t,e)=>t&&e>0?`translateY(${e}px)`:null,Ms=(t)=>({role:"dialog","aria-modal":"true",tabindex:"-1","aria-labelledby":t}),Es=(t)=>!t;
|
|
2
|
+
export{ye,vs,Je,xs,ws,_s,ks,Ss,Ms,Es};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ln}from"./c-hdstjg33.js";import"./c-m6yf7zaj.js";export{ln as PoadCheckbox};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n}from"./c-m6yf7zaj.js";import{zt}from"./c-b6g9ey7e.js";import"./c-0rxdxcn3.js";import{i}from"./c-azvw5879.js";import{t,m,c,r,u,a,e}from"./c-kyajr8zz.js";var k=(o,p,l)=>`poad-speed-dial dir-${o} type-${p}${l?" is-open":""}`;function U(o,p,l={}){let d=l.type??"linear",f=l.direction??"up";if(d==="linear"){let D=(o+1)*(l.spacing??48),[I,s]=f==="up"?[0,-D]:f==="down"?[0,D]:f==="left"?[-D,0]:[D,0];return`translate(${I}px, ${s}px)`}let g=d==="circle"?360:180,y=d==="circle"?-90:f==="up"?180:f==="down"?0:f==="left"?90:-90,_=d==="circle"?g/p:p>1?g/(p-1):0,w=(y+o*_)*Math.PI/180,x=l.radius??80;return`translate(${Math.round(Math.cos(w)*x)}px, ${Math.round(Math.sin(w)*x)}px)`}function P(o,p,l,d={}){return{transitionDelay:`${l?o*30:(p-o)*20}ms`,transform:l?U(o,p,d):"scale(.4)",opacity:l?"1":"0"}}var E=(o)=>o==="up"||o==="down"?"left":"top";function A(o,p,l){if(l<=0)return null;if(o==="Home")return 0;if(o==="End")return l-1;let d=o==="ArrowDown"||o==="ArrowRight";if(!d&&!(o==="ArrowUp"||o==="ArrowLeft"))return null;return((p+(d?1:-1))%l+l)%l}var C=(o)=>({role:"menu","aria-hidden":o?null:"true"}),L=(o)=>({type:"button",role:"menuitem",tabindex:o?0:-1}),T=(o)=>({type:"button","aria-haspopup":"menu","aria-expanded":o?"true":"false"});var j=r({name:"PoadSpeedDial",props:{items:{type:Array,default:()=>[]},direction:{type:String,default:"up"},type:{type:String,default:"linear"},radius:{type:Number,default:80},spacing:{type:Number,default:48},open:Boolean,mask:Boolean,disabled:Boolean,showIcon:{type:String,default:"plus"},hideIcon:{type:String,default:"x"},ariaLabel:String},emits:{"update:open":(o)=>!0,itemClick:(o)=>!0},setup(o,{emit:p}){let l=i(),d=a(o,"open"),f=t(null),g=()=>Array.from(f.value?.querySelectorAll(".poad-speed-dial__item")??[]),y=(s,b=!1)=>{if(s===!!d.value||s&&o.disabled)return;if(d.value=s,s)m(()=>g().find((v)=>!v.disabled)?.focus());if(b)f.value?.querySelector(".poad-speed-dial__fab")?.focus()},_=(s)=>{if(!f.value?.contains(s.target))y(!1)},w=(s)=>{if(s.key==="Escape")y(!1,!0)},x=(s)=>{if(typeof document>"u")return;if(document.removeEventListener("pointerdown",_,!0),document.removeEventListener("keydown",w),s)document.addEventListener("pointerdown",_,!0),document.addEventListener("keydown",w)};c(()=>!!d.value,x,{immediate:!0}),u(()=>x(!1));let D=(s)=>{let b=g(),v=A(s.key,b.indexOf(document.activeElement),b.length);if(v===null)return;s.preventDefault(),b[v]?.focus()},I=(s,b)=>{if(s.disabled)return;s.command?.({item:s,originalEvent:b}),p("itemClick",{item:s,originalEvent:b}),y(!1,!0)};return()=>{let s=!!d.value,b=o.items.filter((h)=>h.visible!==!1),v=C(s),M=L(s),B=T(s),K={type:o.type,direction:o.direction,radius:o.radius,spacing:o.spacing};return e("div",{ref:f,class:k(o.direction,o.type,s)},[o.mask&&s?e("div",{class:"poad-speed-dial__mask",onClick:()=>y(!1)}):null,e("div",{class:"poad-speed-dial__items",role:v.role,"aria-hidden":v["aria-hidden"]??void 0,onKeydown:D},b.map((h,S)=>e(zt,{key:S,content:h.label??"",placement:E(o.direction)},()=>e("button",{class:"poad-speed-dial__item",...M,disabled:h.disabled,"aria-label":h.label,style:P(S,b.length,s,K),onClick:(q)=>I(h,q)},[e(n,{name:h.icon??"circle",size:16})])))),e("button",{class:"poad-speed-dial__fab",...B,"aria-label":l.text(o.ariaLabel,"nav.quickActions"),disabled:o.disabled,onClick:()=>y(!s,s)},[e(n,{name:s?o.hideIcon:o.showIcon,size:20})])])}}});export{j as PoadSpeedDial};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{k}from"./c-rasvf2z2.js";import{sr,ue}from"./c-j02ymtyd.js";import{w}from"./c-j63hz554.js";import{C}from"./c-dzx0rg0g.js";import{i}from"./c-azvw5879.js";import{nt,A,r,f,pn,o,e}from"./c-kyajr8zz.js";var x=(l)=>`${l}-msg`,y=(l)=>!!l.error;function p(l){if(l.error)return{id:x(l.id),text:l.error,error:!0,role:"alert",className:"poad-field__msg is-error"};if(l.hint)return{id:x(l.id),text:l.hint,error:!1,role:null,className:"poad-field__msg"};return null}function _(l){return{"aria-describedby":p(l)?.id??null,"aria-invalid":y(l)?"true":null}}function h(l){return{"is-invalid":y(l),"is-disabled":!!l.disabled,"is-inline":!!l.inline,"size-sm":l.size==="sm","size-lg":l.size==="lg","is-plain":!!l.plain}}function z(l){return{"size-sm":l.size==="sm","size-lg":l.size==="lg","is-invalid":!!l.invalid,"is-mono":!!l.mono}}function I(l,t){return{"aria-invalid":l.invalid||t?.["aria-invalid"]==="true"?"true":null,"aria-describedby":t?.["aria-describedby"]??null}}var B=(l)=>`${l+2}px`;var S=Symbol("poad-field-binding"),P=Symbol("poad-field"),rr=r({name:"PoadField",props:{label:String,hint:String,error:String,required:Boolean,disabled:Boolean,inline:Boolean,size:{type:String,default:"md"},plain:Boolean,optionalText:String,optional:Boolean,id:String,data:{type:Object,default:null},store:{type:[Object,String],default:null},field:{type:String,default:null}},setup(l,{slots:t}){let{text:s,t:v}=i(),u=f(),n=ue(()=>w(l.data,l.store,l.field),!1);nt(sr,()=>w(l.data,l.store,l.field)),nt(S,n);let d=o(()=>{let a=n.view.value;return{...l,id:u,error:a?.message??l.error,required:l.required||!!a?.required}});return nt(P,o(()=>({controlId:l.id??u,control:_(d.value)}))),()=>{let a=p(d.value),b=l.optionalText??(l.optional?s(null,"field.optional"):""),c=n.state.value,m=!!c?.conflict;return e("div",{class:C("poad-field",{...h(d.value),"is-dirty":!!c?.dirty,"is-saving":!!c?.saving,"is-conflict":m})},[l.label&&e("label",{class:"poad-field__label",for:l.id??u},[l.label,d.value.required&&e("span",{class:"poad-field__req","aria-hidden":"true"},"*"),b&&e("span",{class:"poad-field__opt"},b),c?.dirty&&e("span",{class:"poad-field__mod"},v("data.modified"))]),e("div",{class:"poad-field__box"},t.default?.()),a&&e("div",{class:a.className+(m?" is-conflict":""),id:a.id,role:a.role??void 0},a.text),m&&e("div",{class:"poad-field__actions"},[e(k,{size:"sm",variant:"outline",severity:"secondary",type:"button","data-choice":"mine",onClick:()=>n.binding.value?.resolve("mine")},()=>v("data.keep_mine")),e(k,{size:"sm",variant:"outline",severity:"secondary",type:"button","data-choice":"theirs",onClick:()=>n.binding.value?.resolve("theirs")},()=>v("data.take_theirs"))])])}}}),N=(l)=>r({name:l==="input"?"PoadInput":"PoadTextarea",inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:void 0},size:String,invalid:Boolean,mono:Boolean,autosize:Boolean},emits:{"update:modelValue":(t)=>!0},setup(t,{attrs:s,emit:v}){let u=A(P,null),n=A(S,null);return()=>{let d=!!n?.binding.value,a=d?n.value():void 0,b=I({invalid:t.invalid},u?.value.control),c=[s["aria-describedby"],b["aria-describedby"]].filter(Boolean).join(" ")||void 0;return e(l,pn(s,{id:s.id??u?.value.controlId,class:["poad-input",z(t)],"aria-invalid":b["aria-invalid"]??s["aria-invalid"],"aria-describedby":c,...d?{value:a==null?"":String(a)}:t.modelValue!==void 0?{value:t.modelValue}:{},onInput:(m)=>{if(d)n.input(m.target.value);let g=m.target;if(t.autosize&&l==="textarea")g.style.height="auto",g.style.height=B(g.scrollHeight);v("update:modelValue",g.value)}}))}}}),St=N("input"),or=N("textarea");
|
|
2
|
+
export{rr,St,or};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ot}from"./c-gs1k0twe.js";export{ot as PoadSkeleton};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k}from"./c-rasvf2z2.js";import{n}from"./c-m6yf7zaj.js";import{r,a,e}from"./c-kyajr8zz.js";function s(o,l){switch(l.type){case"toggle":return o.disabled||o.readonly?o:{...o,on:!o.on};case"setOn":return o.on===l.on?o:{...o,on:l.on};case"setDisabled":return o.disabled===l.disabled?o:{...o,disabled:l.disabled};case"setReadonly":return o.readonly===l.readonly?o:{...o,readonly:l.readonly}}}function b(o,l){let i=o.on;return{label:(i?l.onLabel||l.offLabel:l.offLabel||l.onLabel)??"",icon:(i?l.onIcon:l.offIcon)||null,iconSize:l.size==="sm"?12:14,button:{severity:i?l.severity??"primary":"secondary",variant:i?"solid":"outline",size:l.size??"md",disabled:o.disabled},"aria-pressed":i?"true":"false","aria-label":l.ariaLabel||null}}var L=r({name:"PoadToggleButton",props:{modelValue:{type:Boolean,default:void 0},onLabel:String,offLabel:String,onIcon:String,offIcon:String,severity:String,size:String,disabled:Boolean,readonly:Boolean,ariaLabel:String},emits:{"update:modelValue":(o)=>!0},setup(o,{slots:l}){let i=a(o,"modelValue");return()=>{let t={on:!!i.value,disabled:o.disabled,readonly:o.readonly},d=b(t,o),c=()=>{let u=s(t,{type:"toggle"});if(u!==t)i.value=u.on};return e("span",{class:["poad-toggle-button",{"is-on":t.on}]},[e(k,{type:"button",...d.button,"aria-pressed":d["aria-pressed"],"aria-label":d["aria-label"]??void 0,onClick:c},()=>[d.icon&&e(n,{name:d.icon,size:d.iconSize}),d.label&&e("span",d.label),l.default?.()])])}}});export{L as PoadToggleButton};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{n}from"./c-m6yf7zaj.js";import{q}from"./c-tv3ksk7j.js";import{r,I,e}from"./c-kyajr8zz.js";function c(t){let a=(t??"").trim();if(!a)return"";let o=a.split(/[\s._-]+/).filter(Boolean);return(o.length>=2?o[0][0]+o[1][0]:a.slice(0,2)).toUpperCase()}function A(t){let a=0;for(let o of t??"")a=a*31+o.charCodeAt(0)>>>0;return a%360}function u(t){if(t.src)return{background:null,color:null};let a=t.text??"";return{background:t.color??(a?`hsl(${A(a)} 55% 45%)`:null),color:t.color||a?"#fff":null}}var d=(t)=>t.src?"image":t.text?"initials":"icon";function f(t){return{"size-sm":t.size==="sm","size-lg":t.size==="lg","is-square":t.shape==="square"}}var m=(t)=>t.label||t.text||"",v=(t="md")=>({sm:11,md:15,lg:20})[t];function p(t,a){return a!=null&&t>a?t-a:0}var g=(t,a)=>t>=(a??1/0);function x(t,a){return t.slice(a??1/0).filter(Boolean).join(", ")}var z=(t)=>`+${t}`,b="#94a3b8";var me=r({name:"PoadAvatar",props:{src:String,text:String,size:{type:String,default:"md"},shape:String,color:String,label:String,icon:{type:String,default:"user"}},setup(t){return()=>{let a=u(t),o=m(t),i=d(t);return e("span",{class:["poad-avatar",f(t)],role:"img","aria-label":o||void 0,style:{background:a.background??void 0,color:a.color??void 0}},[i==="image"?e("img",{src:t.src,alt:o}):i==="initials"?e("span",c(t.text)):e(n,{name:t.icon,size:v(t.size)})])}}}),P=r({name:"PoadAvatarGroup",props:{max:{type:Number,default:null},size:{type:String,default:"md"},moreColor:{type:String,default:b}},setup(t,{slots:a}){return()=>{let o=q(a.default?.()).filter((l)=>l.type===me),i=p(o.length,t.max),s=x(o.map((l)=>l.props?.label||l.props?.text||""),t.max),C=o.map((l,G)=>g(G,t.max)?I(l,{class:"is-overflow"}):l);return e("span",{class:["poad-avatar-group",{"size-sm":t.size==="sm","size-lg":t.size==="lg"}],role:"group"},[...C,i>0&&e(me,{class:"more",text:z(i),size:t.size,color:t.moreColor,title:s,label:s})])}}});
|
|
2
|
+
export{me};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,e}from"./c-kyajr8zz.js";function i(a,t=99){if(a==null)return"";return typeof a==="number"&&a>t?`${t}+`:String(a)}var n=(a)=>a.dot?"":i(a.value,a.max??99);function d(a){return["poad-badge",`sev-${a.severity??"danger"}`,a.dot&&"is-dot",a.size==="sm"&&"size-sm"].filter(Boolean).join(" ")}var l=(a)=>({"aria-label":a.ariaLabel||null});var g=r({name:"PoadBadge",props:{value:[Number,String],max:Number,severity:String,dot:Boolean,size:String,ariaLabel:String},setup(a){return()=>e("span",{class:d(a),"aria-label":l(a)["aria-label"]??void 0},n(a))}});export{g as PoadBadge};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n}from"./c-m6yf7zaj.js";import{me}from"./c-fn3059s1.js";import{ae,bn,le}from"./c-0zqjsnm5.js";import{H}from"./c-zyfkspym.js";import{ft,jr,ge,K,ee}from"./c-72hj12cs.js";import{$t}from"./c-2ag31260.js";import{be,Bt,rt}from"./c-rktc0ksd.js";import{Ye}from"./c-523qwqen.js";import{v}from"./c-p8wyhrwm.js";import{i}from"./c-azvw5879.js";import{h,t,l,m,r,f,u,a,o,e}from"./c-kyajr8zz.js";var vt={src:void 0,map:new Map},kt=" none",_t=(s,d)=>!s||s==="auto"?d?"list":"board":s,wt=(s,d)=>s==="list"&&d;function ht(s,d,p){if(d.src!==p||!d.map.size)return[...s];return s.map((k)=>{let g=d.map.get(k.id);if(!g)return k;let b={...k,rank:g.rank};if(g.bucket!==void 0)b.bucket=g.bucket;if(g.resource!==void 0)b.assignments=g.resource?[{resource:g.resource,units:k.assignments[0]?.units??1}]:[];return b})}function st(s,d){return s.buckets.length?[...s.buckets]:[{id:"",label:d("planning.tasks")}]}var lt=(s,d)=>!d.some((p)=>p.id===s.bucket),Yt=(s,d)=>d.some((p)=>p.id===s.bucket)?s.bucket:d[0]?.id??"",at=(s,d)=>s.rank<d.rank?-1:s.rank>d.rank?1:0;function xt(s,d){return(s.resources.find((k)=>k.id===d)?.label??d).slice(0,24)}var yt=(s,d)=>s.resources.find((p)=>p.id===d)?.color??null;function At(s){let d=s.split(/[\s.'-]+/).filter(Boolean);return(d.length>1?d[0][0]+d[1][0]:(d[0]??s).slice(0,2)).toUpperCase()}function Dt(s){let{plan:d,tasks:p}=s;if(s.view==="list"&&s.groupBy==="resource"){let g=new Set(d.resources.map((x)=>x.id)),b=d.resources.map((x)=>({id:x.id,label:x.label??x.id,color:x.color??null,wipLimit:null,tasks:p.filter((L)=>L.assignments[0]?.resource===x.id).sort(at)}));return b.push({id:kt,label:s.t("planning.unassigned"),color:null,wipLimit:null,tasks:p.filter((x)=>!x.assignments.length||!g.has(x.assignments[0].resource)).sort(at)}),b}let k=st(d,s.t);return k.map((g,b)=>({id:g.id,label:g.label??g.id,color:g.color??null,wipLimit:g.wipLimit??null,tasks:p.filter((x)=>lt(x,k)?b===0:x.bucket===g.id).sort(at)}))}var Ct=(s)=>s.wipLimit==null?String(s.tasks.length):`${s.tasks.length}/${s.wipLimit}`;function Gt(s){if(s.wipLimit==null)return"none";return s.tasks.length>s.wipLimit?"over":s.tasks.length===s.wipLimit?"full":"none"}var It=(s)=>{let d=Gt(s);return`tb__count${d==="full"?" is-full":d==="over"?" is-over":""}`};function Lt(s,d,p){if(!s.end)return"";if(p)return Ye(s.end,p);let k="en";try{k=Intl.getCanonicalLocales(d)[0]??"en"}catch{}return new Intl.DateTimeFormat(k,{day:"2-digit",month:"2-digit"}).format(s.end)}var Tt=(s,d)=>!!s.end&&s.progress<1&&s.end.getTime()<d.getTime(),Et=(s)=>Math.round(s.progress*100),it=(s,d)=>!d&&!s.locked;function St(s,d){if(s==="Enter"||s===" "||s==="Spacebar")return d.ctrl?null:{kind:"open"};if(!d.ctrl||!d.canDrag)return null;let p=d.columns.findIndex((b)=>b.id===d.column);if(p<0)return null;let k=d.columns[p],g=k.tasks.findIndex((b)=>b.id===d.id);if(g<0)return null;if(s==="ArrowUp"||s==="ArrowDown"){let b=g+(s==="ArrowUp"?-1:1);if(b<0||b>=k.tasks.length)return null;return{kind:"move",to:k.id,index:b,fromIndex:g}}if(s==="ArrowLeft"||s==="ArrowRight"){let b=d.rtl?"ArrowRight":"ArrowLeft",x=d.columns[p+(s===b?-1:1)];if(!x)return null;return{kind:"move",to:x.id,index:Math.min(g,x.tasks.length),fromIndex:-1}}return null}function Mt(s){let d=s.tasks.find((D)=>D.id===s.id),p=s.columns.find((D)=>D.id===s.target);if(!d||!p)return null;let k=p.tasks.filter((D)=>D.id!==s.id),g=Math.max(0,Math.min(s.index,k.length));if(s.fromIndex===g&&p.tasks.some((D)=>D.id===s.id))return null;let b=bn(k[g-1]?.rank??null,k[g]?.rank??null),x=new Map(s.patch.src===s.plan?s.patch.map:[]),L=k.length+1,S={label:d.label,target:p.label,position:g+1,total:L};if(s.kind==="resource"){let D=s.target===kt?null:s.target;return x.set(s.id,{...x.get(s.id),resource:D,rank:b}),{patch:{src:s.plan,map:x},assign:{id:s.id,task:d,from:d.assignments[0]?.resource??null,to:D,rank:b},announce:{key:"planning.announceBoardAssigned",params:S}}}x.set(s.id,{...x.get(s.id),bucket:s.target,rank:b});let B=p.wipLimit!=null&&L>p.wipLimit?{bucket:s.target,limit:p.wipLimit,count:L}:void 0;return{patch:{src:s.plan,map:x},move:{id:s.id,task:d,from:Yt(d,s.declared),to:s.target,rank:b,previousRank:d.rank,index:g},announce:{key:"planning.announceBoardMoved",params:S},...B?{wip:B}:{}}}var Rt=(s)=>`poad-taskboard${s.compact?" is-compact":""}${s.disabled?" is-static":""}${s.dragging?" is-dragging":""}`;function Pt(s,d,p){let k=p.drag;return`${s}${p.orphan?" is-orphan":""}${d.locked?" is-locked":""}${k?.id===d.id?" is-dragging":""}${k?.before===d.id?" is-drop-before":""}${k?.after===d.id?" is-drop-after":""}`}var dt=(s,d,p)=>`${s}${p&&p.column===d?" is-drop-target":""}`;var Nt=(s,d,p)=>{let k=d<s.left?s.left-d:d>s.right?d-s.right:0,g=p<s.top?s.top-p:p>s.bottom?p-s.bottom:0;return k*k+g*g};function Xt(s,d,p,k){let g=null,b=1/0;for(let D of s){let V=Nt(D.rect,p,k);if(V<b)b=V,g=D}if(!g)return null;let x=g.items.filter((D)=>D.id!==d),L=Bt(x.map((D)=>D.slot),k),S=x[L]?.id??null,B=S===null?x[x.length-1]?.id??null:null;return{id:d,column:g.id,at:L,before:S,after:B}}function Ot(s){let d=null,p=!1;return{get active(){return p},destroy(){d?.(),d=null,p=!1},pointerDown(k,g){if((k.button??0)!==0||d)return;let b=s.doc();if(!b)return;let x=s.clock?.()??null,L=k.pointerType==="touch"&&!!x;if(!L)k.preventDefault();let{clientX:S,clientY:B,pointerId:D}=k,V=!L,Y=[],G=-1,W="",P=null,T=null,q=S,U=B,M=null,O=null,z=s.scroller?.()??null,X=(_)=>D===void 0||_.pointerId===void 0||_.pointerId===D,N=()=>{if(Y=s.measure(),G<0)for(let _ of Y){let C=_.items.findIndex((j)=>j.id===g);if(C>=0)G=C,W=_.id}},Z=()=>{let _=Xt(Y,g,q,U);if(_&&(!P||_.column!==P.column||_.at!==P.at||_.before!==P.before||_.after!==P.after))P=_,s.onView(_)},J=()=>{if(M=null,!p||!z)return;let _=z.el.getBoundingClientRect(),C=z.axis==="x"?rt(q,_.left,_.right):rt(U,_.top,_.bottom);if(!C)return;if(z.axis==="x")z.el.scrollLeft+=C;else z.el.scrollTop+=C;M=s.frames?.()?.requestAnimationFrame(J)??null},Q=()=>{p=!0,N();let _=s.ghost?.(g);if(_)T=$t(_);Z()},et=(_)=>{if(!X(_))return;if(q=_.clientX,U=_.clientY,!p){if(!be(q-S,U-B,{pointerType:k.pointerType}))return;if(!V){F();return}Q()}if(_.preventDefault?.(),T?.move(q-S,U-B),Z(),M===null&&z&&s.frames?.())M=s.frames().requestAnimationFrame(J)},nt=(_)=>{if(!X(_))return;let C=p,j=P;if(F(),C&&j)s.onView(null),s.onDrop(g,j.column,j.at,j.column===W?G:-1)},ot=()=>{let _=p;if(F(),_)s.onView(null),s.onCancel?.()},w=(_)=>{if(X(_))ot()},y=(_)=>{if(_.key!=="Escape"&&_.key!=="Esc")return;if(p)_.preventDefault(),_.stopPropagation();ot()},E=()=>{if(p)N(),Z()},A=(_)=>{if(p||V)_.preventDefault()},F=()=>{if(O!==null)x?.clearTimeout(O);if(M!==null)s.frames?.()?.cancelAnimationFrame(M);O=null,M=null,b.removeEventListener("pointermove",et),b.removeEventListener("pointerup",nt),b.removeEventListener("pointercancel",w),b.removeEventListener("keydown",y,!0),b.removeEventListener("scroll",E,!0),b.removeEventListener("touchmove",A),T?.destroy(),T=null,p=!1,d=null};if(d=()=>{let _=p;if(F(),_)s.onView(null)},b.addEventListener("pointermove",et),b.addEventListener("pointerup",nt),b.addEventListener("pointercancel",w),b.addEventListener("keydown",y,!0),b.addEventListener("scroll",E,!0),L)b.addEventListener("touchmove",A,{passive:!1}),O=x.setTimeout(()=>{O=null,V=!0,Q()},s.longPress??350)}}}var Kt=".tb__card[data-id], .tb__row[data-id]";function zt(s){if(!s)return[];return Array.from(s.querySelectorAll("[data-tb-zone]")).map((p)=>{let k=p.getBoundingClientRect(),g=Array.from(p.querySelectorAll(Kt)).map((b)=>{let x=b.getBoundingClientRect();return{id:b.getAttribute("data-id")??"",slot:{start:x.top,size:x.height}}});return{id:p.getAttribute("data-tb-zone")??"",rect:{left:k.left,top:k.top,right:k.right,bottom:k.bottom},items:g}})}function ut(s,d){if(!s)return null;return Array.from(s.querySelectorAll(Kt)).find((k)=>k.getAttribute("data-id")===d)??null}function Vt(s){let d=s?.querySelector(".tb__board");if(d)return{el:d,axis:"x"};let p=s?.querySelector(".tb__rows");return p?{el:p,axis:"y"}:null}function qt(s,d){let p=ut(s,d);return p?{source:p,context:"poad-taskboard"}:null}var Ut=(s,d)=>{let p=s?.closest?.('a, button, input, textarea, select, [contenteditable], [role="button"]:not(.tb__card):not(.tb__row)');return!!p&&p!==d};var fe=r({name:"PoadTaskboard",inheritAttrs:!1,props:{data:{type:Object,default:null},store:{type:[Object,String],default:null},fields:{type:Array,default:null},plan:{type:Object,default:null},mode:{type:String,default:"auto"},groupBy:{type:String,default:"bucket"},dragDisabled:Boolean,collapsedKeys:{type:Object,default:()=>new Set},emptyText:String,dateFormat:String,today:{type:Date,default:null}},emits:{taskMove:(s)=>!0,taskAssign:(s)=>!0,taskOpen:(s)=>!0,wipExceeded:(s)=>!0,"update:collapsedKeys":(s)=>!0},setup(s,{emit:d,slots:p,attrs:k}){let g=i(),b=K(s),x=o(()=>b.state.value?ge(b.state.value,{locale:g.locale}):null),L=(w,y)=>{d(w,y);let E=b.binding.value;if(!E)return;if(w==="taskMove"){let A=y;jr(E,A.id,A.to,A.rank)}else if(w==="taskAssign"){let A=y;ft(E,A.id,A.to)}},S=()=>b.state.value&&!b.given("dragDisabled")?!b.state.value.writable:s.dragDisabled,B=(w,y)=>g.t(w,y),D=`poad-taskboard-${f()}-hint`,V=H(),Y=a(s,"collapsedKeys"),G=l(vt),W=l(null),P=t(""),T=t(null),q=!1,U=()=>x.value?x.value.plan:s.plan?h(s.plan):null,M=o(()=>le(U(),{i18n:ae(g.locale,g.messages)})),O=o(()=>_t(s.mode,V.isMobile.value)),z=o(()=>ht(M.value.tasks,G.value,U())),X=o(()=>st(M.value,B)),N=o(()=>Dt({plan:M.value,tasks:z.value,view:O.value,groupBy:s.groupBy,t:B})),Z=(w,y,E,A,F)=>{let _=O.value==="list"?s.groupBy:"bucket",C=Mt({id:w,target:y,index:E,fromIndex:A,kind:_,tasks:z.value,columns:N.value,declared:X.value,plan:U(),patch:G.value});if(!C)return;if(G.value=C.patch,C.assign)L("taskAssign",C.assign);if(C.move)L("taskMove",C.move);if(P.value=g.t(C.announce.key,C.announce.params),C.wip)L("wipExceeded",C.wip);if(F)m(()=>ut(T.value,w)?.focus())},J=Ot({doc:()=>T.value?.ownerDocument??null,frames:()=>T.value?.ownerDocument.defaultView??null,clock:()=>T.value?.ownerDocument.defaultView??null,scroller:()=>Vt(T.value),measure:()=>zt(T.value),ghost:(w)=>qt(T.value,w),onView:(w)=>{if(!w)q=!0,setTimeout(()=>{q=!1});W.value=w},onDrop:(w,y,E,A)=>Z(w,y,E,A,!1)});u(()=>J.destroy());let Q=(w,y)=>{if(!q)L("taskOpen",{id:w.id,task:w,event:y})},et=(w,y)=>{if(!it(y,S())||Ut(w.target,w.currentTarget))return;J.pointerDown(w,y.id)},nt=(w,y,E)=>{if(w.target!==w.currentTarget&&(w.key==="Enter"||w.key===" "))return;let A=St(w.key,{id:y.id,column:E,columns:N.value,ctrl:w.ctrlKey||w.metaKey,canDrag:it(y,S()),rtl:v(T.value)});if(!A)return;if(w.preventDefault(),A.kind==="open")Q(y,w);else Z(y.id,A.to,A.index,A.fromIndex,!0)},ot=(w)=>{let y=new Set(Y.value);if(y.has(w))y.delete(w);else y.add(w);Y.value=y};return()=>{let{t:w,text:y,locale:E}=g,A=W.value,F=(c)=>lt(c,X.value),_=(c)=>Lt(c,E,s.dateFormat),C=(c,I)=>Tt(c,s.today??new Date)?`${I} is-late`:I,j=(c)=>{let I=xt(M.value,c);return e(me,{key:c,size:"sm",text:At(I),label:I,color:yt(M.value,c),title:I})},ct=()=>e("p",{class:"tb__empty"},y(s.emptyText,"planning.boardEmpty")),pt=(c,I,R)=>({key:c.id,class:Pt(R,c,{orphan:F(c),drag:A}),tabindex:0,role:"button","data-id":c.id,"aria-describedby":D,title:F(c)?w("planning.orphanHint"):void 0,onClick:(tt)=>Q(c,tt),onKeydown:(tt)=>nt(tt,c,I),onPointerdown:(tt)=>et(tt,c)}),mt=(c,I)=>e("span",{class:It(c),title:I&&c.wipLimit!=null?w("planning.wipLimit"):void 0},Ct(c)),bt=(c)=>e("span",{class:"tb__dot",style:c.color?{"--_c":c.color}:void 0}),gt=(c)=>e("div",{class:c.progress>=1?"tb__prog is-done":"tb__prog"},[e("i",{style:{width:`${c.progress*100}%`}})]),Ft=(c,I)=>e("article",pt(c,I.id,"tb__card"),p.card?p.card({task:c,bucket:I.id}):[e("p",{class:"tb__title"},c.label),c.progress>0?gt(c):null,e("div",{class:"tb__meta"},[...c.tags.map((R)=>e("span",{key:R,class:"tb__tag"},R)),e("span",{class:"tb__sp"}),c.end?e("span",{class:C(c,"tb__due"),title:w("planning.due")},_(c)):null,...c.assignments.map((R)=>j(R.resource))])]),jt=(c,I)=>e("div",pt(c,I.id,"tb__row"),p.row?p.row({task:c,group:I.id}):[e("div",{class:"tb__main"},[e("span",{class:"tb__title"},c.label),e("div",{class:"tb__meta"},[...c.tags.map((R)=>e("span",{key:R,class:"tb__tag"},R)),c.end?e("span",{class:C(c,"tb__mob tb__due")},_(c)):null])]),e("span",{class:C(c,"tb__due tb__cell-due")},c.end?_(c):"—"),e("div",{class:"tb__pct"},[gt(c),e("span",`${Et(c)}%`)]),c.assignments.length?j(c.assignments[0].resource):e("span",{class:"tb__due"},"—")]),Ht=O.value==="board"?e("div",{class:"tb__board"},N.value.map((c)=>e("section",{key:c.id,class:dt("tb__col",c.id,A),"data-tb-zone":c.id},[e("header",{class:"tb__head"},[bt(c),e("span",{class:"tb__name"},c.label),mt(c,!0)]),e("div",{class:"tb__list",role:"group","aria-label":c.label},c.tasks.length?c.tasks.map((I)=>Ft(I,c)):[ct()])]))):e("div",{class:"tb__rows"},N.value.flatMap((c)=>{let I=Y.value.has(c.id);return[e("button",{key:`g:${c.id}`,type:"button",class:I?"tb__grp is-collapsed":"tb__grp","aria-expanded":I?"false":"true",onClick:()=>ot(c.id)},[e(n,{name:"chevron-down",size:14}),bt(c),e("b",c.label),e("span",{class:"tb__sp"}),mt(c,!1)]),I?null:e("div",{key:`l:${c.id}`,class:dt("tb__group-list",c.id,A),role:"group","data-tb-zone":c.id,"aria-label":c.label},c.tasks.length?c.tasks.map((R)=>jt(R,c)):[ct()])]}));return ee(b,e("div",{ref:T,class:Rt({compact:wt(O.value,V.isMobile.value),disabled:S(),dragging:!!A})},[e("p",{class:"tb__live",role:"status","aria-live":"polite"},P.value),e("span",{class:"tb__hint",id:D},w("planning.boardHint")),Ht]),k)}}});export{fe as PoadTaskboard};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,e,lr,cr,Us}from"./c-kyajr8zz.js";var m=6,l=12,v=r({name:"PoadFrontGrid",props:{section:{type:Object,required:!0},t:{type:Function,required:!0},canvas:Boolean,log:{type:Object,default:null},nav:{type:Object,default:null}},setup(o){let c=(t,n)=>o.log?.error(`composant ${t} : chargement impossible (${n?.message??String(n)})`,{event:"app_component_load_error",attrs:{component:t,section:o.section.id}}),d=(t,n)=>{let a=Us(t.type,c),s={t:o.t,canvas:o.canvas,nav:o.nav};return e("div",{key:t.id,class:["poad-front__item",`is-${t.type}`],"data-item":t.id,style:{gridColumn:`${t.x+1} / span ${t.w}`,gridRow:`${t.y+1} / span ${t.h}`,"--poad-item-order":n,"--poad-item-h":t.h}},[a?e(a,{p:lr(t.type,t.props),ctx:s}):e("div",{class:"poad-front__placeholder"},o.t("item.unknown"))])};return()=>{let t=o.section,n=cr(t.items),a=n.reduce((p,i)=>Math.max(p,i.y+i.h),0),s=o.canvas?Math.max(l,a+m):a;return e("section",{class:["poad-front__grid",o.canvas&&"is-canvas",n.length>0&&"has-items"],"data-section":t.id,style:{"--poad-front-row":`${t.rowHeight}px`}},[e("div",{class:"poad-front__cells","data-grid":t.id,"data-rows":s,style:{"--poad-front-rows":s}},n.map(d)),t.items.length===0?e("p",{class:"poad-front__grid-empty"},o.t(o.canvas?"grid.empty":"grid.empty.live")):null])}}});export{v as GridSection};
|