@xy-planning-network/trees 0.12.2 → 0.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/trees.css CHANGED
@@ -1 +1 @@
1
- .flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08);box-shadow:1px 0 #e6e6e6,-1px 0 #e6e6e6,0 1px #e6e6e6,0 -1px #e6e6e6,0 3px 13px #00000014}.flatpickr-calendar.open,.flatpickr-calendar.inline{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1);animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none!important;box-shadow:none!important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-2px 0 #e6e6e6,5px 0 #e6e6e6}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:before,.flatpickr-calendar:after{position:absolute;display:block;pointer-events:none;border:solid transparent;content:"";height:0;width:0;left:22px}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.arrowRight:after{left:auto;right:22px}.flatpickr-calendar.arrowCenter:before,.flatpickr-calendar.arrowCenter:after{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:before,.flatpickr-calendar.arrowBottom:after{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:transparent;color:#000000e6;fill:#000000e6;height:34px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{text-decoration:none;cursor:pointer;position:absolute;top:0;height:34px;padding:10px;z-index:3;color:#000000e6;fill:#000000e6}.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,.flatpickr-months .flatpickr-next-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-prev-month i,.flatpickr-months .flatpickr-next-month i{position:relative}.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,.flatpickr-months .flatpickr-next-month.flatpickr-prev-month{left:0}.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,.flatpickr-months .flatpickr-next-month.flatpickr-next-month{right:0}.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:#959ea9}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-outer-spin-button,.numInputWrapper input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,.15);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:#0000001a}.numInputWrapper span:active{background:#0003}.numInputWrapper span:after{display:block;content:"";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:#00000080}.numInputWrapper:hover{background:#0000000d}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:#0000000d}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch�;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:#000000e6}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:#000000e6}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:#00000080;background:transparent;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0;outline:none;padding:0 0 0 .5ch;position:relative;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:focus,.flatpickr-current-month .flatpickr-monthDropdown-months:active{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:#0000000d}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:#0000008a;line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}.dayContainer+.dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:hover,.flatpickr-day.today:focus{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected.inRange,.flatpickr-day.startRange.inRange,.flatpickr-day.endRange.inRange,.flatpickr-day.selected:focus,.flatpickr-day.startRange:focus,.flatpickr-day.endRange:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.endRange.nextMonthDay{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 #569ff7}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 #e6e6e6,5px 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:#3939394d;background:transparent;border-color:transparent;cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:#3939391a}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 #569ff7,5px 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:#3939394d;background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-time input.flatpickr-hour{font-weight:700}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:700;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time input:hover,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time .flatpickr-am-pm:focus{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.list-move,.list-enter-active,.list-leave-active{transition:all .5s ease}.list-enter-from,.list-leave-to{opacity:0;transform:translate(30px)}.list-leave-active{position:absolute}
1
+ .flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08);box-shadow:1px 0 #e6e6e6,-1px 0 #e6e6e6,0 1px #e6e6e6,0 -1px #e6e6e6,0 3px 13px #00000014}.flatpickr-calendar.open,.flatpickr-calendar.inline{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1);animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none!important;box-shadow:none!important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-2px 0 #e6e6e6,5px 0 #e6e6e6}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:before,.flatpickr-calendar:after{position:absolute;display:block;pointer-events:none;border:solid transparent;content:"";height:0;width:0;left:22px}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.arrowRight:after{left:auto;right:22px}.flatpickr-calendar.arrowCenter:before,.flatpickr-calendar.arrowCenter:after{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:before,.flatpickr-calendar.arrowBottom:after{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:transparent;color:#000000e6;fill:#000000e6;height:34px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{text-decoration:none;cursor:pointer;position:absolute;top:0;height:34px;padding:10px;z-index:3;color:#000000e6;fill:#000000e6}.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,.flatpickr-months .flatpickr-next-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-prev-month i,.flatpickr-months .flatpickr-next-month i{position:relative}.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,.flatpickr-months .flatpickr-next-month.flatpickr-prev-month{left:0}.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,.flatpickr-months .flatpickr-next-month.flatpickr-next-month{right:0}.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:#959ea9}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-outer-spin-button,.numInputWrapper input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,.15);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:#0000001a}.numInputWrapper span:active{background:#0003}.numInputWrapper span:after{display:block;content:"";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:#00000080}.numInputWrapper:hover{background:#0000000d}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:#0000000d}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch�;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:#000000e6}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:#000000e6}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:#00000080;background:transparent;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0;outline:none;padding:0 0 0 .5ch;position:relative;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:focus,.flatpickr-current-month .flatpickr-monthDropdown-months:active{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:#0000000d}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:#0000008a;line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}.dayContainer+.dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:hover,.flatpickr-day.today:focus{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected.inRange,.flatpickr-day.startRange.inRange,.flatpickr-day.endRange.inRange,.flatpickr-day.selected:focus,.flatpickr-day.startRange:focus,.flatpickr-day.endRange:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.endRange.nextMonthDay{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 #569ff7}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 #e6e6e6,5px 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:#3939394d;background:transparent;border-color:transparent;cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:#3939391a}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 #569ff7,5px 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:#3939394d;background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-time input.flatpickr-hour{font-weight:700}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:700;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time input:hover,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time .flatpickr-am-pm:focus{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.flatpickr-wrapper{display:block}.list-move,.list-enter-active,.list-leave-active{transition:all .5s ease}.list-enter-from,.list-leave-to{opacity:0;transform:translate(30px)}.list-leave-active{position:absolute}
package/dist/trees.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Vi = Object.defineProperty;
2
2
  var Hi = (t, n, e) => n in t ? Vi(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
3
3
  var Or = (t, n, e) => Hi(t, typeof n != "symbol" ? n + "" : n, e);
4
- import { ref as A, useAttrs as ir, useId as Ui, computed as P, cloneVNode as qi, h as _t, provide as Se, watchEffect as De, inject as Ee, defineComponent as R, onUnmounted as yt, Teleport as Wi, reactive as Yi, onUpdated as Fa, onMounted as je, unref as m, nextTick as kt, toRaw as Ot, watch as tt, createBlock as V, openBlock as x, createVNode as k, shallowRef as Ba, getCurrentScope as zi, onScopeDispose as Ki, shallowReadonly as jt, toRef as It, useTemplateRef as Nt, withCtx as N, createElementVNode as v, Transition as lr, normalizeStyle as ja, createElementBlock as _, Fragment as te, renderList as ae, normalizeClass as L, createCommentVNode as B, createTextVNode as ce, resolveDynamicComponent as rt, toDisplayString as U, mergeModels as ve, useModel as xe, renderSlot as ge, mergeProps as Fe, mergeDefaults as ut, withDirectives as Xe, vModelSelect as Gi, withModifiers as et, TransitionGroup as Ji, createStaticVNode as Xi, vShow as Vo, isRef as Zi, isVNode as Qi, resolveComponent as Va, vModelCheckbox as uo, withKeys as Ho, vModelDynamic as el, vModelText as co, vModelRadio as Wr } from "vue";
4
+ import { ref as A, useAttrs as ir, useId as Ui, computed as P, cloneVNode as qi, h as _t, provide as Se, watchEffect as De, inject as Ee, defineComponent as R, onUnmounted as yt, Teleport as Wi, reactive as Yi, onUpdated as Fa, onMounted as je, unref as m, nextTick as kt, toRaw as Rt, watch as tt, createBlock as V, openBlock as x, createVNode as k, shallowRef as Ba, getCurrentScope as zi, onScopeDispose as Ki, shallowReadonly as jt, toRef as Lt, useTemplateRef as Tt, withCtx as N, createElementVNode as v, Transition as lr, normalizeStyle as ja, createElementBlock as _, Fragment as te, renderList as ae, normalizeClass as L, createCommentVNode as B, createTextVNode as ce, resolveDynamicComponent as rt, toDisplayString as U, mergeModels as ve, useModel as xe, renderSlot as ge, mergeProps as Fe, mergeDefaults as ut, withDirectives as Xe, vModelSelect as Gi, withModifiers as et, TransitionGroup as Ji, createStaticVNode as Xi, vShow as Vo, isRef as Zi, isVNode as Qi, resolveComponent as Va, vModelCheckbox as uo, withKeys as Ho, vModelDynamic as el, vModelText as co, vModelRadio as Wr } from "vue";
5
5
  function Ha(t, n) {
6
6
  return function() {
7
7
  return t.apply(n, arguments);
@@ -52,7 +52,7 @@ function Wa(t, n) {
52
52
  return o;
53
53
  return null;
54
54
  }
55
- const Rt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ya = (t) => !vn(t) && t !== Rt;
55
+ const It = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ya = (t) => !vn(t) && t !== It;
56
56
  function Yr() {
57
57
  const { caseless: t } = Ya(this) && this || {}, n = {}, e = (r, o) => {
58
58
  const a = t && Wa(n, o) || o;
@@ -159,14 +159,14 @@ const Il = (t) => {
159
159
  return r;
160
160
  };
161
161
  return e(t, 0);
162
- }, Ll = ct("AsyncFunction"), Nl = (t) => t && (dr(t) || Je(t)) && Je(t.then) && Je(t.catch), Ka = ((t, n) => t ? setImmediate : n ? ((e, r) => (Rt.addEventListener("message", ({ source: o, data: a }) => {
163
- o === Rt && a === e && r.length && r.shift()();
162
+ }, Ll = ct("AsyncFunction"), Nl = (t) => t && (dr(t) || Je(t)) && Je(t.then) && Je(t.catch), Ka = ((t, n) => t ? setImmediate : n ? ((e, r) => (It.addEventListener("message", ({ source: o, data: a }) => {
163
+ o === It && a === e && r.length && r.shift()();
164
164
  }, !1), (o) => {
165
- r.push(o), Rt.postMessage(e, "*");
165
+ r.push(o), It.postMessage(e, "*");
166
166
  }))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(
167
167
  typeof setImmediate == "function",
168
- Je(Rt.postMessage)
169
- ), Fl = typeof queueMicrotask < "u" ? queueMicrotask.bind(Rt) : typeof process < "u" && process.nextTick || Ka, E = {
168
+ Je(It.postMessage)
169
+ ), Fl = typeof queueMicrotask < "u" ? queueMicrotask.bind(It) : typeof process < "u" && process.nextTick || Ka, E = {
170
170
  isArray: Zt,
171
171
  isArrayBuffer: Ua,
172
172
  isBuffer: nl,
@@ -215,7 +215,7 @@ const Il = (t) => {
215
215
  noop: Al,
216
216
  toFiniteNumber: Ol,
217
217
  findKey: Wa,
218
- global: Rt,
218
+ global: It,
219
219
  isContextDefined: Ya,
220
220
  isSpecCompliantForm: Rl,
221
221
  toJSONObject: Il,
@@ -1375,7 +1375,7 @@ const Yn = {
1375
1375
  assertOptions: ku,
1376
1376
  validators: mr
1377
1377
  }, gt = Yn.validators;
1378
- let Lt = class {
1378
+ let Nt = class {
1379
1379
  constructor(n) {
1380
1380
  this.defaults = n, this.interceptors = {
1381
1381
  request: new Yo(),
@@ -1476,7 +1476,7 @@ let Lt = class {
1476
1476
  }
1477
1477
  };
1478
1478
  E.forEach(["delete", "get", "head", "options"], function(n) {
1479
- Lt.prototype[n] = function(e, r) {
1479
+ Nt.prototype[n] = function(e, r) {
1480
1480
  return this.request(Ft(r || {}, {
1481
1481
  method: n,
1482
1482
  url: e,
@@ -1497,7 +1497,7 @@ E.forEach(["post", "put", "patch"], function(n) {
1497
1497
  }));
1498
1498
  };
1499
1499
  }
1500
- Lt.prototype[n] = e(), Lt.prototype[n + "Form"] = e(!0);
1500
+ Nt.prototype[n] = e(), Nt.prototype[n + "Form"] = e(!0);
1501
1501
  });
1502
1502
  let Su = class cs {
1503
1503
  constructor(n) {
@@ -1649,13 +1649,13 @@ Object.entries(Xr).forEach(([t, n]) => {
1649
1649
  Xr[n] = t;
1650
1650
  });
1651
1651
  function ds(t) {
1652
- const n = new Lt(t), e = Ha(Lt.prototype.request, n);
1653
- return E.extend(e, Lt.prototype, n, { allOwnKeys: !0 }), E.extend(e, n, null, { allOwnKeys: !0 }), e.create = function(o) {
1652
+ const n = new Nt(t), e = Ha(Nt.prototype.request, n);
1653
+ return E.extend(e, Nt.prototype, n, { allOwnKeys: !0 }), E.extend(e, n, null, { allOwnKeys: !0 }), e.create = function(o) {
1654
1654
  return ds(Ft(t, o));
1655
1655
  }, e;
1656
1656
  }
1657
1657
  const me = ds(En);
1658
- me.Axios = Lt;
1658
+ me.Axios = Nt;
1659
1659
  me.CanceledError = Qt;
1660
1660
  me.CancelToken = Su;
1661
1661
  me.isCancel = ns;
@@ -3734,14 +3734,14 @@ var ic = /* @__PURE__ */ R({
3734
3734
  }),
3735
3735
  containsCheckedOption: P(function() {
3736
3736
  return a.value.some(function(f) {
3737
- return Ot(f.propsRef.value) === Ot(n.modelValue);
3737
+ return Rt(f.propsRef.value) === Rt(n.modelValue);
3738
3738
  });
3739
3739
  }),
3740
3740
  change: function(g) {
3741
3741
  var h;
3742
3742
  if (n.disabled || l.value === g) return !1;
3743
3743
  var y = (h = a.value.find(function(w) {
3744
- return Ot(w.propsRef.value) === Ot(g);
3744
+ return Rt(w.propsRef.value) === Rt(g);
3745
3745
  })) == null ? void 0 : h.propsRef;
3746
3746
  return y != null && y.disabled ? !1 : (r("update:modelValue", g), !0);
3747
3747
  },
@@ -3827,10 +3827,10 @@ var ic = /* @__PURE__ */ R({
3827
3827
  handleKeyDown: c
3828
3828
  };
3829
3829
  }
3830
- }), At;
3830
+ }), Ot;
3831
3831
  (function(t) {
3832
3832
  t[t.Empty = 1] = "Empty", t[t.Active = 2] = "Active";
3833
- })(At || (At = {}));
3833
+ })(Ot || (Ot = {}));
3834
3834
  var lc = /* @__PURE__ */ R({
3835
3835
  name: "RadioGroupOption",
3836
3836
  props: {
@@ -3850,7 +3850,7 @@ var lc = /* @__PURE__ */ R({
3850
3850
  var n = this.$props, e = pt(n, ["value", "disabled"]), r = {
3851
3851
  checked: this.checked,
3852
3852
  disabled: this.disabled,
3853
- active: !!(this.state & At.Active)
3853
+ active: !!(this.state & Ot.Active)
3854
3854
  }, o = {
3855
3855
  id: this.id,
3856
3856
  ref: "el",
@@ -3882,7 +3882,7 @@ var lc = /* @__PURE__ */ R({
3882
3882
  value: n.value,
3883
3883
  disabled: n.disabled
3884
3884
  };
3885
- }), l = A(At.Empty);
3885
+ }), l = A(Ot.Empty);
3886
3886
  je(function() {
3887
3887
  return e.registerOption({
3888
3888
  id: r,
@@ -3898,7 +3898,7 @@ var lc = /* @__PURE__ */ R({
3898
3898
  }), c = P(function() {
3899
3899
  return e.disabled.value || n.disabled;
3900
3900
  }), d = P(function() {
3901
- return Ot(e.value.value) === Ot(n.value);
3901
+ return Rt(e.value.value) === Rt(n.value);
3902
3902
  });
3903
3903
  return {
3904
3904
  id: r,
@@ -3913,13 +3913,13 @@ var lc = /* @__PURE__ */ R({
3913
3913
  }),
3914
3914
  handleClick: function() {
3915
3915
  var g;
3916
- e.change(n.value) && (l.value |= At.Active, (g = s.value) == null || g.focus());
3916
+ e.change(n.value) && (l.value |= Ot.Active, (g = s.value) == null || g.focus());
3917
3917
  },
3918
3918
  handleFocus: function() {
3919
- l.value |= At.Active;
3919
+ l.value |= Ot.Active;
3920
3920
  },
3921
3921
  handleBlur: function() {
3922
- l.value &= ~At.Active;
3922
+ l.value &= ~Ot.Active;
3923
3923
  }
3924
3924
  };
3925
3925
  }
@@ -4129,7 +4129,7 @@ function pa(t, n, e, r, o, a) {
4129
4129
  return i(St.Cancelled);
4130
4130
  }), s.dispose;
4131
4131
  }
4132
- function Pt(t) {
4132
+ function At(t) {
4133
4133
  return t === void 0 && (t = ""), t.split(" ").filter(function(n) {
4134
4134
  return n.trim().length > 1;
4135
4135
  });
@@ -4321,7 +4321,7 @@ var Vs = He.RenderStrategy, wt = /* @__PURE__ */ R({
4321
4321
  }, J));
4322
4322
  }
4323
4323
  });
4324
- var D = Pt(n.enter), T = Pt(n.enterFrom), M = Pt(n.enterTo), K = Pt(n.entered), q = Pt(n.leave), Z = Pt(n.leaveFrom), H = Pt(n.leaveTo);
4324
+ var D = At(n.enter), T = At(n.enterFrom), M = At(n.enterTo), K = At(n.entered), q = At(n.leave), Z = At(n.leaveFrom), H = At(n.leaveTo);
4325
4325
  je(function() {
4326
4326
  De(function() {
4327
4327
  if (a.value === ue.Visible) {
@@ -4744,7 +4744,7 @@ function it(t) {
4744
4744
  function zs(t) {
4745
4745
  return t instanceof nt(t).Node;
4746
4746
  }
4747
- function Tt(t) {
4747
+ function Mt(t) {
4748
4748
  return zs(t) ? (t.nodeName || "").toLowerCase() : "";
4749
4749
  }
4750
4750
  function lt(t) {
@@ -4761,7 +4761,7 @@ function xn(t) {
4761
4761
  return /auto|scroll|overlay|hidden|clip/.test(n + r + e) && !["inline", "contents"].includes(o);
4762
4762
  }
4763
4763
  function Nc(t) {
4764
- return ["table", "td", "th"].includes(Tt(t));
4764
+ return ["table", "td", "th"].includes(Mt(t));
4765
4765
  }
4766
4766
  function to(t) {
4767
4767
  const n = Eo(), e = it(t);
@@ -4771,7 +4771,7 @@ function Eo() {
4771
4771
  return !(typeof CSS > "u" || !CSS.supports) && CSS.supports("-webkit-backdrop-filter", "none");
4772
4772
  }
4773
4773
  function Dr(t) {
4774
- return ["html", "body", "#document"].includes(Tt(t));
4774
+ return ["html", "body", "#document"].includes(Mt(t));
4775
4775
  }
4776
4776
  const ya = Math.min, fn = Math.max, tr = Math.round;
4777
4777
  function Ks(t) {
@@ -4825,7 +4825,7 @@ function Zs(t) {
4825
4825
  return Bt($t(t)).left + Er(t).scrollLeft;
4826
4826
  }
4827
4827
  function Xt(t) {
4828
- if (Tt(t) === "html") return t;
4828
+ if (Mt(t) === "html") return t;
4829
4829
  const n = t.assignedSlot || t.parentNode || ba(t) && t.host || $t(t);
4830
4830
  return ba(n) ? n.host : n;
4831
4831
  }
@@ -4879,7 +4879,7 @@ function Da(t, n) {
4879
4879
  if (!lt(t)) return e;
4880
4880
  let r = Ca(t, n);
4881
4881
  for (; r && Nc(r) && it(r).position === "static"; ) r = Ca(r, n);
4882
- return r && (Tt(r) === "html" || Tt(r) === "body" && it(r).position === "static" && !to(r)) ? e : r || function(o) {
4882
+ return r && (Mt(r) === "html" || Mt(r) === "body" && it(r).position === "static" && !to(r)) ? e : r || function(o) {
4883
4883
  let a = Xt(o);
4884
4884
  for (; lt(a) && !Dr(a); ) {
4885
4885
  if (to(a)) return a;
@@ -4892,7 +4892,7 @@ function Fc(t, n, e) {
4892
4892
  const r = lt(n), o = $t(n), a = e === "fixed", s = Bt(t, !0, a, n);
4893
4893
  let i = { scrollLeft: 0, scrollTop: 0 };
4894
4894
  const l = { x: 0, y: 0 };
4895
- if (r || !r && !a) if ((Tt(n) !== "body" || xn(o)) && (i = Er(n)), lt(n)) {
4895
+ if (r || !r && !a) if ((Mt(n) !== "body" || xn(o)) && (i = Er(n)), lt(n)) {
4896
4896
  const u = Bt(n, !0, a, n);
4897
4897
  l.x = u.x + n.clientLeft, l.y = u.y + n.clientTop;
4898
4898
  } else o && (l.x = Zs(o));
@@ -4903,7 +4903,7 @@ const Bc = { getClippingRect: function(t) {
4903
4903
  const a = e === "clippingAncestors" ? function(u, c) {
4904
4904
  const d = c.get(u);
4905
4905
  if (d) return d;
4906
- let f = pn(u).filter((w) => Ge(w) && Tt(w) !== "body"), g = null;
4906
+ let f = pn(u).filter((w) => Ge(w) && Mt(w) !== "body"), g = null;
4907
4907
  const h = it(u).position === "fixed";
4908
4908
  let y = h ? Xt(u) : u;
4909
4909
  for (; Ge(y) && !Dr(y); ) {
@@ -4922,7 +4922,7 @@ const Bc = { getClippingRect: function(t) {
4922
4922
  if (e === a) return n;
4923
4923
  let s = { scrollLeft: 0, scrollTop: 0 }, i = { x: 1, y: 1 };
4924
4924
  const l = { x: 0, y: 0 };
4925
- if ((o || !o && r !== "fixed") && ((Tt(e) !== "body" || xn(a)) && (s = Er(e)), lt(e))) {
4925
+ if ((o || !o && r !== "fixed") && ((Mt(e) !== "body" || xn(a)) && (s = Er(e)), lt(e))) {
4926
4926
  const u = Bt(e);
4927
4927
  i = Wt(e), l.x = u.x + e.clientLeft, l.y = u.y + e.clientTop;
4928
4928
  }
@@ -5056,7 +5056,7 @@ const Vc = { class: "py-1" }, Hc = ["disabled", "onClick"], Uc = { class: "relat
5056
5056
  placement: { default: "bottom-end" }
5057
5057
  },
5058
5058
  setup(t) {
5059
- const n = t, { actions: e, hasActions: r } = qs(It(n, "actions")), o = Nt("trigger"), a = Nt("wrapper"), { floatingStyles: s } = ri(o, a, {
5059
+ const n = t, { actions: e, hasActions: r } = qs(Lt(n, "actions")), o = Tt("trigger"), a = Tt("wrapper"), { floatingStyles: s } = ri(o, a, {
5060
5060
  placement: n.placement,
5061
5061
  strategy: "fixed",
5062
5062
  whileElementsMounted: ti
@@ -5687,7 +5687,7 @@ function sd(t, n) {
5687
5687
  config: Object.assign(Object.assign({}, Yt), ye.defaultConfig),
5688
5688
  l10n: Cn
5689
5689
  };
5690
- e.parseDate = ro({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = h, e._setHoursFromDate = d, e._positionCalendar = Rn, e.changeMonth = ie, e.changeYear = An, e.clear = rn, e.close = on, e._createElement = ee, e.destroy = Pn, e.isEnabled = Mt, e.jumpToDate = D, e.open = Di, e.redraw = Lo, e.set = Si, e.setDate = $i, e.toggle = Ai;
5690
+ e.parseDate = ro({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = h, e._setHoursFromDate = d, e._positionCalendar = Rn, e.changeMonth = ie, e.changeYear = An, e.clear = rn, e.close = on, e._createElement = ee, e.destroy = Pn, e.isEnabled = Pt, e.jumpToDate = D, e.open = Di, e.redraw = Lo, e.set = Si, e.setDate = $i, e.toggle = Ai;
5691
5691
  function r() {
5692
5692
  e.utils = {
5693
5693
  getDaysInMonth(p = e.currentMonth, b = e.currentYear) {
@@ -5825,7 +5825,7 @@ function sd(t, n) {
5825
5825
  !e.config.static && !e.config.inline && (e.config.appendTo !== void 0 ? e.config.appendTo : window.document.body).appendChild(e.calendarContainer);
5826
5826
  }
5827
5827
  function q(p, b, C, S) {
5828
- const O = Mt(b, !0), $ = ee("span", "flatpickr-day " + p, b.getDate().toString());
5828
+ const O = Pt(b, !0), $ = ee("span", "flatpickr-day " + p, b.getDate().toString());
5829
5829
  return $.dateObj = b, $.$i = S, $.setAttribute("aria-label", e.formatDate(b, e.config.ariaDateFormat)), p.indexOf("hidden") === -1 && Ye(b, e.now) === 0 && (e.todayDateElem = $, $.classList.add("today"), $.setAttribute("aria-current", "date")), O ? ($.tabIndex = -1, Pr(b) && ($.classList.add("selected"), e.selectedDateElem = $, e.config.mode === "range" && (Ie($, "startRange", e.selectedDates[0] && Ye(b, e.selectedDates[0], !0) === 0), Ie($, "endRange", e.selectedDates[1] && Ye(b, e.selectedDates[1], !0) === 0), p === "nextMonthDay" && $.classList.add("inRange")))) : $.classList.add("flatpickr-disabled"), e.config.mode === "range" && Oi(b) && !Pr(b) && $.classList.add("inRange"), e.weekNumbers && e.config.showMonths === 1 && p !== "prevMonthDay" && C % 7 === 1 && e.weekNumbers.insertAdjacentHTML("beforeend", "<span class='flatpickr-day'>" + e.config.getWeek(b) + "</span>"), pe("onDayCreate", $), $;
5830
5830
  }
5831
5831
  function Z(p) {
@@ -5837,7 +5837,7 @@ function sd(t, n) {
5837
5837
  const O = e.daysContainer.children[S], $ = p > 0 ? 0 : O.children.length - 1, j = p > 0 ? O.children.length : -1;
5838
5838
  for (let F = $; F != j; F += p) {
5839
5839
  const G = O.children[F];
5840
- if (G.className.indexOf("hidden") === -1 && Mt(G.dateObj))
5840
+ if (G.className.indexOf("hidden") === -1 && Pt(G.dateObj))
5841
5841
  return G;
5842
5842
  }
5843
5843
  }
@@ -5848,7 +5848,7 @@ function sd(t, n) {
5848
5848
  const j = e.daysContainer.children[$], F = C - e.currentMonth === $ ? p.$i + b : b < 0 ? j.children.length - 1 : 0, G = j.children.length;
5849
5849
  for (let Q = F; Q >= 0 && Q < G && Q != (b > 0 ? G : -1); Q += O) {
5850
5850
  const le = j.children[Q];
5851
- if (le.className.indexOf("hidden") === -1 && Mt(le.dateObj) && Math.abs(p.$i - Q) >= Math.abs(b))
5851
+ if (le.className.indexOf("hidden") === -1 && Pt(le.dateObj) && Math.abs(p.$i - Q) >= Math.abs(b))
5852
5852
  return Z(le);
5853
5853
  }
5854
5854
  }
@@ -6066,7 +6066,7 @@ function sd(t, n) {
6066
6066
  const b = p, C = e.currentYear !== b;
6067
6067
  e.currentYear = b || e.currentYear, e.config.maxDate && e.currentYear === e.config.maxDate.getFullYear() ? e.currentMonth = Math.min(e.config.maxDate.getMonth(), e.currentMonth) : e.config.minDate && e.currentYear === e.config.minDate.getFullYear() && (e.currentMonth = Math.max(e.config.minDate.getMonth(), e.currentMonth)), C && (e.redraw(), pe("onYearChange"), be());
6068
6068
  }
6069
- function Mt(p, b = !0) {
6069
+ function Pt(p, b = !0) {
6070
6070
  var C;
6071
6071
  const S = e.parseDate(p, void 0, b);
6072
6072
  if (e.config.minDate && S && Ye(S, e.config.minDate, b !== void 0 ? b : !e.minDateHasTime) < 0 || e.config.maxDate && S && Ye(S, e.config.maxDate, b !== void 0 ? b : !e.maxDateHasTime) > 0)
@@ -6164,7 +6164,7 @@ function sd(t, n) {
6164
6164
  const b = p ? p.dateObj.getTime() : e.days.firstElementChild.dateObj.getTime(), C = e.parseDate(e.selectedDates[0], void 0, !0).getTime(), S = Math.min(b, e.selectedDates[0].getTime()), O = Math.max(b, e.selectedDates[0].getTime());
6165
6165
  let $ = !1, j = 0, F = 0;
6166
6166
  for (let G = S; G < O; G += od.DAY)
6167
- Mt(new Date(G), !0) || ($ = $ || G > S && G < O, G < C && (!j || G > j) ? j = G : G > C && (!F || G < F) && (F = G));
6167
+ Pt(new Date(G), !0) || ($ = $ || G > S && G < O, G < C && (!j || G > j) ? j = G : G > C && (!F || G < F) && (F = G));
6168
6168
  for (let G = 0; G < e.config.showMonths; G++) {
6169
6169
  const Q = e.daysContainer.children[G];
6170
6170
  for (let le = 0, Ze = Q.children.length; le < Ze; le++) {
@@ -6202,7 +6202,7 @@ function sd(t, n) {
6202
6202
  function Oo(p) {
6203
6203
  return (b) => {
6204
6204
  const C = e.config[`_${p}Date`] = e.parseDate(b, e.config.dateFormat), S = e.config[`_${p === "min" ? "max" : "min"}Date`];
6205
- C !== void 0 && (e[p === "min" ? "minDateHasTime" : "maxDateHasTime"] = C.getHours() > 0 || C.getMinutes() > 0 || C.getSeconds() > 0), e.selectedDates && (e.selectedDates = e.selectedDates.filter((O) => Mt(O)), !e.selectedDates.length && p === "min" && d(C), Ct()), e.daysContainer && (Lo(), C !== void 0 ? e.currentYearElement[p] = C.getFullYear().toString() : e.currentYearElement.removeAttribute(p), e.currentYearElement.disabled = !!S && C !== void 0 && S.getFullYear() === C.getFullYear());
6205
+ C !== void 0 && (e[p === "min" ? "minDateHasTime" : "maxDateHasTime"] = C.getHours() > 0 || C.getMinutes() > 0 || C.getSeconds() > 0), e.selectedDates && (e.selectedDates = e.selectedDates.filter((O) => Pt(O)), !e.selectedDates.length && p === "min" && d(C), Ct()), e.daysContainer && (Lo(), C !== void 0 ? e.currentYearElement[p] = C.getFullYear().toString() : e.currentYearElement.removeAttribute(p), e.currentYearElement.disabled = !!S && C !== void 0 && S.getFullYear() === C.getFullYear());
6206
6206
  };
6207
6207
  }
6208
6208
  function Ei() {
@@ -6389,7 +6389,7 @@ function sd(t, n) {
6389
6389
  }
6390
6390
  else
6391
6391
  e.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(p)}`));
6392
- e.selectedDates = e.config.allowInvalidPreload ? C : C.filter((S) => S instanceof Date && Mt(S, !1)), e.config.mode === "range" && e.selectedDates.sort((S, O) => S.getTime() - O.getTime());
6392
+ e.selectedDates = e.config.allowInvalidPreload ? C : C.filter((S) => S instanceof Date && Pt(S, !1)), e.config.mode === "range" && e.selectedDates.sort((S, O) => S.getTime() - O.getTime());
6393
6393
  }
6394
6394
  function $i(p, b = !1, C = e.config.dateFormat) {
6395
6395
  if (p !== 0 && !p || p instanceof Array && p.length === 0)
@@ -6553,46 +6553,51 @@ const id = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
6553
6553
  const n = t, e = xe(t, "modelValue", {
6554
6554
  ...de,
6555
6555
  default: { maxDate: 0, minDate: 0 }
6556
- }), { aria: r, errorState: o, inputID: a, isRequired: s, onInvalid: i, validate: l } = ft(n), u = (c) => {
6557
- e.value = c;
6558
- };
6556
+ }), { aria: r, errorState: o, inputID: a, isRequired: s, onInvalid: i, validate: l } = ft(n), u = (d) => {
6557
+ e.value = d;
6558
+ }, c = Tt("wrapper");
6559
6559
  return je(() => {
6560
- const c = {
6560
+ const d = {
6561
6561
  allowInput: !0,
6562
+ appendTo: c.value || void 0,
6562
6563
  dateFormat: "m-d-Y",
6563
6564
  mode: "range",
6564
6565
  maxDate: n.maxDate,
6565
6566
  minDate: n.startDate,
6566
- onClose: (d) => {
6567
- d.length === 2 ? u({
6568
- minDate: d[0].setUTCHours(0, 0, 0, 0) / 1e3,
6567
+ onClose: (f) => {
6568
+ f.length === 2 ? u({
6569
+ minDate: f[0].setUTCHours(0, 0, 0, 0) / 1e3,
6569
6570
  maxDate: Math.floor(
6570
- d[1].setUTCHours(23, 59, 59, 999) / 1e3
6571
+ f[1].setUTCHours(23, 59, 59, 999) / 1e3
6571
6572
  )
6572
- }) : d.length === 0 && u({
6573
+ }) : f.length === 0 && u({
6573
6574
  minDate: 0,
6574
6575
  maxDate: 0
6575
6576
  });
6576
- }
6577
+ },
6578
+ static: !0
6577
6579
  };
6578
6580
  e.value && // NOTE(spk): even with a "default" value this may be a literal null
6579
- e.value.minDate != 0 && e.value.maxDate != 0 && (c.defaultDate = [
6581
+ e.value.minDate != 0 && e.value.maxDate != 0 && (d.defaultDate = [
6580
6582
  e.value.minDate * 1e3,
6581
6583
  e.value.maxDate * 1e3
6582
- ]), n.maxRange && (c.onChange = (d, f, g) => {
6583
- if (d.length === 1) {
6584
- var h = new Date(d[0].getTime()), y = new Date(d[0].getTime());
6585
- h.setDate(h.getDate() + n.maxRange), y.setDate(y.getDate() - n.maxRange);
6586
- const w = /* @__PURE__ */ new Date();
6587
- h > w && (h = w), g.set("minDate", y), g.set("maxDate", h);
6584
+ ]), n.maxRange && (d.onChange = (f, g, h) => {
6585
+ if (f.length === 1) {
6586
+ var y = new Date(f[0].getTime()), w = new Date(f[0].getTime());
6587
+ y.setDate(y.getDate() + n.maxRange), w.setDate(w.getDate() - n.maxRange);
6588
+ const D = /* @__PURE__ */ new Date();
6589
+ y > D && (y = D), h.set("minDate", w), h.set("maxDate", y);
6588
6590
  }
6589
- }), ye(`#${a.value}`, c);
6590
- }), (c, d) => (x(), _("div", null, [
6591
+ }), ye(`#${a.value}`, d);
6592
+ }), (d, f) => (x(), _("div", {
6593
+ ref_key: "wrapper",
6594
+ ref: c
6595
+ }, [
6591
6596
  k(qe, {
6592
6597
  id: m(r).labelledby,
6593
6598
  class: "mb-2",
6594
6599
  for: m(a),
6595
- label: c.label,
6600
+ label: d.label,
6596
6601
  required: m(s)
6597
6602
  }, null, 8, ["id", "for", "label", "required"]),
6598
6603
  v("input", Fe({
@@ -6605,25 +6610,25 @@ const id = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
6605
6610
  "disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200",
6606
6611
  m(o) ? "text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700" : "text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"
6607
6612
  ],
6608
- placeholder: c.placeholder
6609
- }, c.$attrs, {
6613
+ placeholder: d.placeholder
6614
+ }, d.$attrs, {
6610
6615
  type: "text",
6611
- onInput: d[0] || (d[0] = //@ts-ignore
6612
- (...f) => m(l) && m(l)(...f)),
6613
- onInvalid: d[1] || (d[1] = //@ts-ignore
6614
- (...f) => m(i) && m(i)(...f))
6616
+ onInput: f[0] || (f[0] = //@ts-ignore
6617
+ (...g) => m(l) && m(l)(...g)),
6618
+ onInvalid: f[1] || (f[1] = //@ts-ignore
6619
+ (...g) => m(i) && m(i)(...g))
6615
6620
  }), null, 16, id),
6616
6621
  k(Re, {
6617
6622
  id: m(r).describedby,
6618
6623
  class: "mt-1",
6619
- text: c.help
6624
+ text: d.help
6620
6625
  }, null, 8, ["id", "text"]),
6621
6626
  k(ot, {
6622
6627
  id: m(r).errormessage,
6623
6628
  class: "mt-0.5",
6624
6629
  text: m(o)
6625
6630
  }, null, 8, ["id", "text"])
6626
- ]));
6631
+ ], 512));
6627
6632
  }
6628
6633
  }), ld = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage"], ud = ["textContent"], cd = ["value", "disabled", "textContent"], So = /* @__PURE__ */ R({
6629
6634
  inheritAttrs: !1,
@@ -6917,7 +6922,7 @@ const ii = {
6917
6922
  }
6918
6923
  const o = r.toString() !== "" ? `?${r.toString()}` : "";
6919
6924
  window.history.replaceState(
6920
- Ot(e),
6925
+ Rt(e),
6921
6926
  document.title,
6922
6927
  `${window.location.pathname}${o}`
6923
6928
  );
@@ -7856,7 +7861,7 @@ const Id = { class: "flex" }, Ld = { class: "flex-shrink-0" }, Nd = { class: "ml
7856
7861
  position: { default: "auto" }
7857
7862
  },
7858
7863
  setup(t) {
7859
- const n = t, e = Nt("trigger"), r = Nt("wrapper"), o = P(() => {
7864
+ const n = t, e = Tt("trigger"), r = Tt("wrapper"), o = P(() => {
7860
7865
  const i = [Rc(5), Lc()];
7861
7866
  return n.position === "auto" && i.push(Oc()), i;
7862
7867
  }), a = P(() => {
@@ -8280,7 +8285,7 @@ const Wf = /* @__PURE__ */ Vf(Hf, [["render", qf]]), Yf = { class: "absolute ins
8280
8285
  actions: { default: () => [] }
8281
8286
  },
8282
8287
  setup(t) {
8283
- const n = t, { actions: e, hasActions: r } = qs(It(n, "actions"));
8288
+ const n = t, { actions: e, hasActions: r } = qs(Lt(n, "actions"));
8284
8289
  return (o, a) => m(r) ? (x(), _("div", Op, [
8285
8290
  v("span", Rp, [
8286
8291
  (x(!0), _(te, null, ae(m(e), (s, i) => (x(), _("button", {
@@ -8321,9 +8326,9 @@ const Wf = /* @__PURE__ */ Vf(Hf, [["render", qf]]), Yf = { class: "absolute ins
8321
8326
  },
8322
8327
  setup(t) {
8323
8328
  const n = t, { columns: e, hasActions: r, isEmptyCellValue: o, rows: a } = ci(
8324
- It(n, "tableData"),
8325
- It(n, "tableColumns"),
8326
- It(n, "tableActions")
8329
+ Lt(n, "tableData"),
8330
+ Lt(n, "tableColumns"),
8331
+ Lt(n, "tableActions")
8327
8332
  );
8328
8333
  return (s, i) => (x(), _("div", Np, [
8329
8334
  v("div", Fp, [
@@ -8589,8 +8594,8 @@ const Wf = /* @__PURE__ */ Vf(Hf, [["render", qf]]), Yf = { class: "absolute ins
8589
8594
  reset: o
8590
8595
  }, { columns: he, hasActions: be, isEmptyCellValue: $e, rows: nn } = ci(
8591
8596
  s,
8592
- It(e, "tableColumns"),
8593
- It(e, "tableActions"),
8597
+ Lt(e, "tableColumns"),
8598
+ Lt(e, "tableActions"),
8594
8599
  ne
8595
8600
  );
8596
8601
  return tt(
@@ -9209,7 +9214,7 @@ const Wf = /* @__PURE__ */ Vf(Hf, [["render", qf]]), Yf = { class: "absolute ins
9209
9214
  //
9210
9215
  // https://github.com/vuejs/core/commit/de174e1aa756508c7542605a448e55a373afb1ed#diff-f1e0971afb7e61e75d37d0fc7d7f993c9681dddb7c689cb455d217a246b3d6f0
9211
9216
  set: (d) => e.type === "number" ? ra(d) : d
9212
- }), o = Nt("input"), { errorState: a, inputID: s, isRequired: i, onInvalid: l, inputValidation: u } = ft(e);
9217
+ }), o = Tt("input"), { errorState: a, inputID: s, isRequired: i, onInvalid: l, inputValidation: u } = ft(e);
9213
9218
  n({ input: o });
9214
9219
  const c = P(() => {
9215
9220
  switch (e.type) {
@@ -9478,7 +9483,7 @@ const Wf = /* @__PURE__ */ Vf(Hf, [["render", qf]]), Yf = { class: "absolute ins
9478
9483
  var h;
9479
9484
  const g = ((h = e.value) == null ? void 0 : h.length) || 0;
9480
9485
  return l.value !== null && g < l.value ? `Please select at least ${l.value} of these options.` : u.value !== null && g > u.value ? `Please limit your selection to ${u.value} of these options.` : l.value !== null && u.value !== null && (g < l.value || g > u.value) ? `Please select between ${l.value} and ${u.value} of these options.` : "";
9481
- }), d = Nt("errorInput"), f = () => {
9486
+ }), d = Tt("errorInput"), f = () => {
9482
9487
  var g;
9483
9488
  s.value || (s.value = c.value, (g = d.value) == null || g.setCustomValidity(c.value));
9484
9489
  };
@@ -10576,7 +10581,7 @@ const Ag = ["id", "aria-labelledby", "aria-describedby", "aria-errormessage", "p
10576
10581
  }
10577
10582
  o.value = y;
10578
10583
  }
10579
- }), s = Nt("input"), {
10584
+ }), s = Tt("input"), {
10580
10585
  errorState: i,
10581
10586
  inputID: l,
10582
10587
  isRequired: u,
package/dist/trees.umd.js CHANGED
@@ -11,7 +11,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
11
11
  <span class='flatpickr-weekday'>
12
12
  ${b.join("</span><span class='flatpickr-weekday'>")}
13
13
  </span>
14
- `}function qn(){e.calendarContainer.classList.add("hasWeeks");const m=U("div","flatpickr-weekwrapper");m.appendChild(U("span","flatpickr-weekday",e.l10n.weekAbbreviation));const b=U("div","flatpickr-weeks");return m.appendChild(b),{weekWrapper:m,weekNumbers:b}}function K(m,b=!0){const x=b?m:m-e.currentMonth;x<0&&e._hidePrevMonthArrow===!0||x>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=x,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,ee("onYearChange"),oe()),te(),ee("onMonthChange"),Xn())}function qt(m=!0,b=!0){if(e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,b===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){const{hours:x,minutes:k,seconds:v}=Rr(e.config);p(x,k,v)}e.redraw(),m&&ee("onChange")}function Wt(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),ee("onClose")}function Wn(){e.config!==void 0&&ee("onDestroy");for(let m=e._handlers.length;m--;)e._handlers[m].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){const m=e.calendarContainer.parentNode;if(m.lastChild&&m.removeChild(m.lastChild),m.parentNode){for(;m.firstChild;)m.parentNode.insertBefore(m.firstChild,m);m.parentNode.removeChild(m)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(m=>{try{delete e[m]}catch{}})}function pe(m){return e.config.appendTo&&e.config.appendTo.contains(m)?!0:e.calendarContainer.contains(m)}function Yt(m){if(e.isOpen&&!e.config.inline){const b=ve(m),x=pe(b),k=b===e.input||b===e.altInput||e.element.contains(b)||m.path&&m.path.indexOf&&(~m.path.indexOf(e.input)||~m.path.indexOf(e.altInput)),v=m.type==="blur"?k&&m.relatedTarget&&!pe(m.relatedTarget):!k&&!x&&!pe(m.relatedTarget),D=!e.config.ignoredFocusElements.some(T=>T.contains(b));v&&D&&(e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0&&e.input.value!==""&&e.input.value!==void 0&&l(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&(e.clear(!1),e.redraw()))}}function Yn(m){if(!m||e.config.minDate&&m<e.config.minDate.getFullYear()||e.config.maxDate&&m>e.config.maxDate.getFullYear())return;const b=m,x=e.currentYear!==b;e.currentYear=b||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),x&&(e.redraw(),ee("onYearChange"),oe())}function lt(m,b=!0){var x;const k=e.parseDate(m,void 0,b);if(e.config.minDate&&k&&Ve(k,e.config.minDate,b!==void 0?b:!e.minDateHasTime)<0||e.config.maxDate&&k&&Ve(k,e.config.maxDate,b!==void 0?b:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(k===void 0)return!1;const v=!!e.config.enable,D=(x=e.config.enable)!==null&&x!==void 0?x:e.config.disable;for(let T=0,$;T<D.length;T++){if($=D[T],typeof $=="function"&&$(k))return v;if($ instanceof Date&&k!==void 0&&$.getTime()===k.getTime())return v;if(typeof $=="string"){const I=e.parseDate($,void 0,!0);return I&&I.getTime()===k.getTime()?v:!v}else if(typeof $=="object"&&k!==void 0&&$.from&&$.to&&k.getTime()>=$.from.getTime()&&k.getTime()<=$.to.getTime())return v}return!v}function Kn(m){return e.daysContainer!==void 0?m.className.indexOf("hidden")===-1&&m.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(m):!1}function Oh(m){m.target===e._input&&(e.selectedDates.length>0||e._input.value.length>0)&&!(m.relatedTarget&&pe(m.relatedTarget))&&e.setDate(e._input.value,!0,m.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function Ih(m){const b=ve(m),x=e.config.wrap?n.contains(b):b===e._input,k=e.config.allowInput,v=e.isOpen&&(!k||!x),D=e.config.inline&&x&&!k;if(m.keyCode===13&&x){if(k)return e.setDate(e._input.value,!0,b===e.altInput?e.config.altFormat:e.config.dateFormat),b.blur();e.open()}else if(pe(b)||v||D){const T=!!e.timeContainer&&e.timeContainer.contains(b);switch(m.keyCode){case 13:T?(m.preventDefault(),l(),Zr()):ri(m);break;case 27:m.preventDefault(),Zr();break;case 8:case 46:x&&!e.config.allowInput&&(m.preventDefault(),e.clear());break;case 37:case 39:if(!T&&!x){if(m.preventDefault(),e.daysContainer!==void 0&&(k===!1||document.activeElement&&Kn(document.activeElement))){const I=m.keyCode===39?1:-1;m.ctrlKey?(m.stopPropagation(),K(I),L(M(1),0)):L(void 0,I)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:m.preventDefault();const $=m.keyCode===40?1:-1;e.daysContainer&&b.$i!==void 0||b===e.input||b===e.altInput?m.ctrlKey?(m.stopPropagation(),Yn(e.currentYear-$),L(M(1),0)):T||L(void 0,$*7):b===e.currentYearElement?Yn(e.currentYear-$):e.config.enableTime&&(!T&&e.hourElement&&e.hourElement.focus(),l(m),e._debouncedChange());break;case 9:if(T){const I=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(G=>G),H=I.indexOf(b);if(H!==-1){const G=I[H+(m.shiftKey?-1:1)];m.preventDefault(),(G||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(b)&&m.shiftKey&&(m.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&b===e.amPM)switch(m.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],u(),Qe();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],u(),Qe();break}(x||pe(b))&&ee("onKeyDown",m)}function Xr(m){if(e.selectedDates.length!==1||m&&(!m.classList.contains("flatpickr-day")||m.classList.contains("flatpickr-disabled")))return;const b=m?m.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),x=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),k=Math.min(b,e.selectedDates[0].getTime()),v=Math.max(b,e.selectedDates[0].getTime());let D=!1,T=0,$=0;for(let I=k;I<v;I+=nd.DAY)lt(new Date(I),!0)||(D=D||I>k&&I<v,I<x&&(!T||I>T)?T=I:I>x&&(!$||I<$)&&($=I));for(let I=0;I<e.config.showMonths;I++){const H=e.daysContainer.children[I];for(let G=0,Be=H.children.length;G<Be;G++){const me=H.children[G],qe=me.dateObj.getTime(),Kt=T>0&&qe<T||$>0&&qe>$;if(Kt){me.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(Gt=>{me.classList.remove(Gt)});continue}else if(D&&!Kt)continue;["startRange","inRange","endRange","notAllowed"].forEach(Gt=>{me.classList.remove(Gt)}),m!==void 0&&(m.classList.add(b<=e.selectedDates[0].getTime()?"startRange":"endRange"),x<b&&qe===x?me.classList.add("startRange"):x>b&&qe===x&&me.classList.add("endRange"),qe>=T&&($===0||qe<=$)&&td(qe,x,b)&&me.classList.add("inRange"))}}}function Lh(){e.isOpen&&!e.config.static&&!e.config.inline&&Gn()}function Fh(m,b=e._positionElement){if(e.isMobile===!0){if(m){m.preventDefault();const k=ve(m);k&&k.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),ee("onOpen");return}else if(e._input.disabled||e.config.inline)return;const x=e.isOpen;e.isOpen=!0,x||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),ee("onOpen"),Gn(b)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(m===void 0||!e.timeContainer.contains(m.relatedTarget))&&setTimeout(()=>e.hourElement.select(),50)}function Qs(m){return b=>{const x=e.config[`_${m}Date`]=e.parseDate(b,e.config.dateFormat),k=e.config[`_${m==="min"?"max":"min"}Date`];x!==void 0&&(e[m==="min"?"minDateHasTime":"maxDateHasTime"]=x.getHours()>0||x.getMinutes()>0||x.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(v=>lt(v)),!e.selectedDates.length&&m==="min"&&f(x),Qe()),e.daysContainer&&(ni(),x!==void 0?e.currentYearElement[m]=x.getFullYear().toString():e.currentYearElement.removeAttribute(m),e.currentYearElement.disabled=!!k&&x!==void 0&&k.getFullYear()===x.getFullYear())}}function jh(){const m=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],b=Object.assign(Object.assign({},JSON.parse(JSON.stringify(n.dataset||{}))),r),x={};e.config.parseDate=b.parseDate,e.config.formatDate=b.formatDate,Object.defineProperty(e.config,"enable",{get:()=>e.config._enable,set:D=>{e.config._enable=ai(D)}}),Object.defineProperty(e.config,"disable",{get:()=>e.config._disable,set:D=>{e.config._disable=ai(D)}});const k=b.mode==="time";if(!b.dateFormat&&(b.enableTime||k)){const D=re.defaultConfig.dateFormat||xt.dateFormat;x.dateFormat=b.noCalendar||k?"H:i"+(b.enableSeconds?":S":""):D+" H:i"+(b.enableSeconds?":S":"")}if(b.altInput&&(b.enableTime||k)&&!b.altFormat){const D=re.defaultConfig.altFormat||xt.altFormat;x.altFormat=b.noCalendar||k?"h:i"+(b.enableSeconds?":S K":" K"):D+` h:i${b.enableSeconds?":S":""} K`}Object.defineProperty(e.config,"minDate",{get:()=>e.config._minDate,set:Qs("min")}),Object.defineProperty(e.config,"maxDate",{get:()=>e.config._maxDate,set:Qs("max")});const v=D=>T=>{e.config[D==="min"?"_minTime":"_maxTime"]=e.parseDate(T,"H:i:S")};Object.defineProperty(e.config,"minTime",{get:()=>e.config._minTime,set:v("min")}),Object.defineProperty(e.config,"maxTime",{get:()=>e.config._maxTime,set:v("max")}),b.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,x,b);for(let D=0;D<m.length;D++)e.config[m[D]]=e.config[m[D]]===!0||e.config[m[D]]==="true";Tr.filter(D=>e.config[D]!==void 0).forEach(D=>{e.config[D]=Mr(e.config[D]||[]).map(s)}),e.isMobile=!e.config.disableMobile&&!e.config.inline&&e.config.mode==="single"&&!e.config.disable.length&&!e.config.enable&&!e.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(let D=0;D<e.config.plugins.length;D++){const T=e.config.plugins[D](e)||{};for(const $ in T)Tr.indexOf($)>-1?e.config[$]=Mr(T[$]).map(s).concat(e.config[$]):typeof b[$]>"u"&&(e.config[$]=T[$])}b.altInputClass||(e.config.altInputClass=ei().className+" "+e.config.altInputClass),ee("onParseConfig")}function ei(){return e.config.wrap?n.querySelector("[data-input]"):n}function ti(){typeof e.config.locale!="object"&&typeof re.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error(`flatpickr: invalid locale ${e.config.locale}`)),e.l10n=Object.assign(Object.assign({},re.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?re.l10ns[e.config.locale]:void 0),Pr.K=`(${e.l10n.amPM[0]}|${e.l10n.amPM[1]}|${e.l10n.amPM[0].toLowerCase()}|${e.l10n.amPM[1].toLowerCase()})`,Object.assign(Object.assign({},r),JSON.parse(JSON.stringify(n.dataset||{}))).time_24hr===void 0&&re.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=ls(e),e.parseDate=Ar({config:e.config,l10n:e.l10n})}function Gn(m){if(typeof e.config.position=="function")return void e.config.position(e,m);if(e.calendarContainer===void 0)return;ee("onPreCalendarPosition");const b=m||e._positionElement,x=Array.prototype.reduce.call(e.calendarContainer.children,(Jt,to)=>Jt+to.offsetHeight,0),k=e.calendarContainer.offsetWidth,v=e.config.position.split(" "),D=v[0],T=v.length>1?v[1]:null,$=b.getBoundingClientRect(),I=window.innerHeight-$.bottom,H=D==="above"||D!=="below"&&I<x&&$.top>x,G=window.pageYOffset+$.top+(H?-x-2:b.offsetHeight+2);if(be(e.calendarContainer,"arrowTop",!H),be(e.calendarContainer,"arrowBottom",H),e.config.inline)return;let Be=window.pageXOffset+$.left,me=!1,Zn=!1;T==="center"?(Be-=(k-$.width)/2,me=!0):T==="right"&&(Be-=k-$.width,Zn=!0),be(e.calendarContainer,"arrowLeft",!me&&!Zn),be(e.calendarContainer,"arrowCenter",me),be(e.calendarContainer,"arrowRight",Zn);const qe=window.document.body.offsetWidth-(window.pageXOffset+$.right),Kt=Be+k>window.document.body.offsetWidth,Gt=qe+k>window.document.body.offsetWidth;if(be(e.calendarContainer,"rightMost",Kt),!e.config.static)if(e.calendarContainer.style.top=`${G}px`,!Kt)e.calendarContainer.style.left=`${Be}px`,e.calendarContainer.style.right="auto";else if(!Gt)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=`${qe}px`;else{const Jt=Hh();if(Jt===void 0)return;const to=window.document.body.offsetWidth,Qh=Math.max(0,to/2-k/2),eg=".flatpickr-calendar.centerMost:before",tg=".flatpickr-calendar.centerMost:after",ng=Jt.cssRules.length,rg=`{left:${$.left}px;right:auto;}`;be(e.calendarContainer,"rightMost",!1),be(e.calendarContainer,"centerMost",!0),Jt.insertRule(`${eg},${tg}${rg}`,ng),e.calendarContainer.style.left=`${Qh}px`,e.calendarContainer.style.right="auto"}}function Hh(){let m=null;for(let b=0;b<document.styleSheets.length;b++){const x=document.styleSheets[b];try{x.cssRules}catch{continue}m=x;break}return m??Uh()}function Uh(){const m=document.createElement("style");return document.head.appendChild(m),m.sheet}function ni(){e.config.noCalendar||e.isMobile||(oe(),Xn(),te())}function Zr(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function ri(m){m.preventDefault(),m.stopPropagation();const b=T=>T.classList&&T.classList.contains("flatpickr-day")&&!T.classList.contains("flatpickr-disabled")&&!T.classList.contains("notAllowed"),x=is(ve(m),b);if(x===void 0)return;const k=x,v=e.latestSelectedDateObj=new Date(k.dateObj.getTime()),D=(v.getMonth()<e.currentMonth||v.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=k,e.config.mode==="single")e.selectedDates=[v];else if(e.config.mode==="multiple"){const T=eo(v);T?e.selectedDates.splice(parseInt(T),1):e.selectedDates.push(v)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=v,e.selectedDates.push(v),Ve(v,e.selectedDates[0],!0)!==0&&e.selectedDates.sort((T,$)=>T.getTime()-$.getTime()));if(u(),D){const T=e.currentYear!==v.getFullYear();e.currentYear=v.getFullYear(),e.currentMonth=v.getMonth(),T&&(ee("onYearChange"),oe()),ee("onMonthChange")}if(Xn(),te(),Qe(),!D&&e.config.mode!=="range"&&e.config.showMonths===1?j(k):e.selectedDateElem!==void 0&&e.hourElement===void 0&&e.selectedDateElem&&e.selectedDateElem.focus(),e.hourElement!==void 0&&e.hourElement!==void 0&&e.hourElement.focus(),e.config.closeOnSelect){const T=e.config.mode==="single"&&!e.config.enableTime,$=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(T||$)&&Zr()}y()}const Jn={locale:[ti,Ze],showMonths:[zt,i,R],minDate:[C],maxDate:[C],clickOpens:[()=>{e.config.clickOpens===!0?(h(e._input,"focus",e.open),h(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function zh(m,b){if(m!==null&&typeof m=="object"){Object.assign(e.config,m);for(const x in m)Jn[x]!==void 0&&Jn[x].forEach(k=>k())}else e.config[m]=b,Jn[m]!==void 0?Jn[m].forEach(x=>x()):Tr.indexOf(m)>-1&&(e.config[m]=Mr(b));e.redraw(),Qe(!0)}function oi(m,b){let x=[];if(m instanceof Array)x=m.map(k=>e.parseDate(k,b));else if(m instanceof Date||typeof m=="number")x=[e.parseDate(m,b)];else if(typeof m=="string")switch(e.config.mode){case"single":case"time":x=[e.parseDate(m,b)];break;case"multiple":x=m.split(e.config.conjunction).map(k=>e.parseDate(k,b));break;case"range":x=m.split(e.l10n.rangeSeparator).map(k=>e.parseDate(k,b));break}else e.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(m)}`));e.selectedDates=e.config.allowInvalidPreload?x:x.filter(k=>k instanceof Date&&lt(k,!1)),e.config.mode==="range"&&e.selectedDates.sort((k,v)=>k.getTime()-v.getTime())}function qh(m,b=!1,x=e.config.dateFormat){if(m!==0&&!m||m instanceof Array&&m.length===0)return e.clear(b);oi(m,x),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),C(void 0,b),f(),e.selectedDates.length===0&&e.clear(!1),Qe(b),b&&ee("onChange")}function ai(m){return m.slice().map(b=>typeof b=="string"||typeof b=="number"||b instanceof Date?e.parseDate(b,void 0,!0):b&&typeof b=="object"&&b.from&&b.to?{from:e.parseDate(b.from,void 0),to:e.parseDate(b.to,void 0)}:b).filter(b=>b)}function Wh(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;const m=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);m&&oi(m,e.config.dateFormat),e._initialDate=e.selectedDates.length>0?e.selectedDates[0]:e.config.minDate&&e.config.minDate.getTime()>e.now.getTime()?e.config.minDate:e.config.maxDate&&e.config.maxDate.getTime()<e.now.getTime()?e.config.maxDate:e.now,e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth(),e.selectedDates.length>0&&(e.latestSelectedDateObj=e.selectedDates[0]),e.config.minTime!==void 0&&(e.config.minTime=e.parseDate(e.config.minTime,"H:i")),e.config.maxTime!==void 0&&(e.config.maxTime=e.parseDate(e.config.maxTime,"H:i")),e.minDateHasTime=!!e.config.minDate&&(e.config.minDate.getHours()>0||e.config.minDate.getMinutes()>0||e.config.minDate.getSeconds()>0),e.maxDateHasTime=!!e.config.maxDate&&(e.config.maxDate.getHours()>0||e.config.maxDate.getMinutes()>0||e.config.maxDate.getSeconds()>0)}function Yh(){if(e.input=ei(),!e.input){e.config.errorHandler(new Error("Invalid input element specified"));return}e.input._type=e.input.type,e.input.type="text",e.input.classList.add("flatpickr-input"),e._input=e.input,e.config.altInput&&(e.altInput=U(e.input.nodeName,e.config.altInputClass),e._input=e.altInput,e.altInput.placeholder=e.input.placeholder,e.altInput.disabled=e.input.disabled,e.altInput.required=e.input.required,e.altInput.tabIndex=e.input.tabIndex,e.altInput.type="text",e.input.setAttribute("type","hidden"),!e.config.static&&e.input.parentNode&&e.input.parentNode.insertBefore(e.altInput,e.input.nextSibling)),e.config.allowInput||e._input.setAttribute("readonly","readonly"),e._positionElement=e.config.positionElement||e._input}function Kh(){const m=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=U("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=m,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=m==="datetime-local"?"Y-m-d\\TH:i:S":m==="date"?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",e.altInput!==void 0&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch{}h(e.mobileInput,"change",b=>{e.setDate(ve(b).value,!1,e.mobileFormatStr),ee("onChange"),ee("onClose")})}function Gh(m){if(e.isOpen===!0)return e.close();e.open(m)}function ee(m,b){if(e.config===void 0)return;const x=e.config[m];if(x!==void 0&&x.length>0)for(let k=0;x[k]&&k<x.length;k++)x[k](e.selectedDates,e.input.value,e,b);m==="onChange"&&(e.input.dispatchEvent(Qr("change")),e.input.dispatchEvent(Qr("input")))}function Qr(m){const b=document.createEvent("Event");return b.initEvent(m,!0,!0),b}function eo(m){for(let b=0;b<e.selectedDates.length;b++)if(Ve(e.selectedDates[b],m)===0)return""+b;return!1}function Jh(m){return e.config.mode!=="range"||e.selectedDates.length<2?!1:Ve(m,e.selectedDates[0])>=0&&Ve(m,e.selectedDates[1])<=0}function Xn(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach((m,b)=>{const x=new Date(e.currentYear,e.currentMonth,1);x.setMonth(e.currentMonth+b),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[b].textContent=Tn(x.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=x.getMonth().toString(),m.value=x.getFullYear().toString()}),e._hidePrevMonthArrow=e.config.minDate!==void 0&&(e.currentYear===e.config.minDate.getFullYear()?e.currentMonth<=e.config.minDate.getMonth():e.currentYear<e.config.minDate.getFullYear()),e._hideNextMonthArrow=e.config.maxDate!==void 0&&(e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth+1>e.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}function si(m){return e.selectedDates.map(b=>e.formatDate(b,m)).filter((b,x,k)=>e.config.mode!=="range"||e.config.enableTime||k.indexOf(b)===x).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function Qe(m=!0){e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=si(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=si(e.config.altFormat)),m!==!1&&ee("onValueUpdate")}function Xh(m){const b=ve(m),x=e.prevMonthNav.contains(b),k=e.nextMonthNav.contains(b);x||k?K(x?-1:1):e.yearElements.indexOf(b)>=0?b.select():b.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):b.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function Zh(m){m.preventDefault();const b=m.type==="keydown",x=ve(m),k=x;e.amPM!==void 0&&x===e.amPM&&(e.amPM.textContent=e.l10n.amPM[Me(e.amPM.textContent===e.l10n.amPM[0])]);const v=parseFloat(k.getAttribute("min")),D=parseFloat(k.getAttribute("max")),T=parseFloat(k.getAttribute("step")),$=parseInt(k.value,10),I=m.delta||(b?m.which===38?1:-1:0);let H=$+T*I;if(typeof k.value<"u"&&k.value.length===2){const G=k===e.hourElement,Be=k===e.minuteElement;H<v?(H=D+H+Me(!G)+(Me(G)&&Me(!e.amPM)),Be&&S(void 0,-1,e.hourElement)):H>D&&(H=k===e.hourElement?H-D-Me(!e.amPM):v,Be&&S(void 0,1,e.hourElement)),e.amPM&&G&&(T===1?H+$===23:Math.abs(H-$)>T)&&(e.amPM.textContent=e.l10n.amPM[Me(e.amPM.textContent===e.l10n.amPM[0])]),k.value=Ee(H)}}return a(),e}function Ct(n,r){const e=Array.prototype.slice.call(n).filter(a=>a instanceof HTMLElement),o=[];for(let a=0;a<e.length;a++){const s=e[a];try{if(s.getAttribute("data-fp-omit")!==null)continue;s._flatpickr!==void 0&&(s._flatpickr.destroy(),s._flatpickr=void 0),s._flatpickr=od(s,r||{}),o.push(s._flatpickr)}catch(i){console.error(i)}}return o.length===1?o[0]:o}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(n){return Ct(this,n)},HTMLElement.prototype.flatpickr=function(n){return Ct([this],n)});var re=function(n,r){return typeof n=="string"?Ct(window.document.querySelectorAll(n),r):n instanceof Node?Ct([n],r):Ct(n,r)};re.defaultConfig={},re.l10ns={en:Object.assign({},It),default:Object.assign({},It)},re.localize=n=>{re.l10ns.default=Object.assign(Object.assign({},re.l10ns.default),n)},re.setDefaults=n=>{re.defaultConfig=Object.assign(Object.assign({},re.defaultConfig),n)},re.parseDate=Ar({}),re.formatDate=ls({}),re.compareDates=Ve,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return Ct(this,n)}),Date.prototype.fp_incr=function(n){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof n=="string"?parseInt(n,10):n))},typeof window<"u"&&(window.flatpickr=re);const ad=["id","aria-labelledby","aria-describedby","aria-errormessage","placeholder"],Mn=t.defineComponent({inheritAttrs:!1,__name:"DateRangePicker",props:t.mergeModels(t.mergeDefaults({modelValue:{},maxDate:{},maxRange:{},startDate:{},label:{},help:{},placeholder:{}},{...Ae,maxDate:()=>new Date,maxRange:0,placeholder:"mm-dd-yyyy range",startDate:0}),{modelValue:{...J,default:{maxDate:0,minDate:0}},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",{...J,default:{maxDate:0,minDate:0}}),{aria:o,errorState:a,inputID:s,isRequired:i,onInvalid:l,validate:c}=$e(r),d=u=>{e.value=u};return t.onMounted(()=>{const u={allowInput:!0,dateFormat:"m-d-Y",mode:"range",maxDate:r.maxDate,minDate:r.startDate,onClose:f=>{f.length===2?d({minDate:f[0].setUTCHours(0,0,0,0)/1e3,maxDate:Math.floor(f[1].setUTCHours(23,59,59,999)/1e3)}):f.length===0&&d({minDate:0,maxDate:0})}};e.value&&e.value.minDate!=0&&e.value.maxDate!=0&&(u.defaultDate=[e.value.minDate*1e3,e.value.maxDate*1e3]),r.maxRange&&(u.onChange=(f,p,g)=>{if(f.length===1){var h=new Date(f[0].getTime()),y=new Date(f[0].getTime());h.setDate(h.getDate()+r.maxRange),y.setDate(y.getDate()-r.maxRange);const w=new Date;h>w&&(h=w),g.set("minDate",y),g.set("maxDate",h)}}),re(`#${s.value}`,u)}),(u,f)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(ge,{id:t.unref(o).labelledby,class:"mb-2",for:t.unref(s),label:u.label,required:t.unref(i)},null,8,["id","for","label","required"]),t.createElementVNode("input",t.mergeProps({id:t.unref(s),"aria-labelledby":t.unref(o).labelledby,"aria-describedby":t.unref(o).describedby,"aria-errormessage":t.unref(o).errormessage,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200",t.unref(a)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],placeholder:u.placeholder},u.$attrs,{type:"text",onInput:f[0]||(f[0]=(...p)=>t.unref(c)&&t.unref(c)(...p)),onInvalid:f[1]||(f[1]=(...p)=>t.unref(l)&&t.unref(l)(...p))}),null,16,ad),t.createVNode(ie,{id:t.unref(o).describedby,class:"mt-1",text:u.help},null,8,["id","text"]),t.createVNode(_e,{id:t.unref(o).errormessage,class:"mt-0.5",text:t.unref(a)},null,8,["id","text"])]))}}),sd=["id","aria-labelledby","aria-describedby","aria-errormessage"],id=["textContent"],ld=["value","disabled","textContent"],Bn=t.defineComponent({inheritAttrs:!1,__name:"Select",props:t.mergeModels(t.mergeDefaults({modelValue:{},options:{},label:{},help:{},placeholder:{}},{...Ae,placeholder:"Select an option"}),{modelValue:J,modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",J),{aria:o,inputID:a,isRequired:s,validate:i,errorState:l,onInvalid:c}=$e(r);return(d,u)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(ge,{id:t.unref(o).labelledby,class:"mb-2",for:t.unref(a),label:d.label,required:t.unref(s)},null,8,["id","for","label","required"]),t.withDirectives(t.createElementVNode("select",t.mergeProps({id:t.unref(a),"onUpdate:modelValue":u[0]||(u[0]=f=>e.value=f),"aria-labelledby":t.unref(o).labelledby,"aria-describedby":t.unref(o).describedby,"aria-errormessage":t.unref(o).errormessage,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6 pl-3 pr-10","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200 disabled:opacity-100",t.unref(l)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"]},d.$attrs,{onChange:u[1]||(u[1]=(...f)=>t.unref(i)&&t.unref(i)(...f)),onInvalid:u[2]||(u[2]=(...f)=>t.unref(c)&&t.unref(c)(...f))}),[t.createElementVNode("option",{value:"",disabled:"",selected:"",textContent:t.toDisplayString(d.placeholder)},null,8,id),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.options,f=>(t.openBlock(),t.createElementBlock("option",{key:f.value,value:f.value,disabled:f.disabled,textContent:t.toDisplayString(f.label)},null,8,ld))),128))],16,sd),[[t.vModelSelect,e.value]]),t.createVNode(ie,{id:t.unref(o).describedby,class:"mt-1",text:d.help},null,8,["id","text"]),t.createVNode(_e,{id:t.unref(o).errormessage,class:"mt-0.5",text:t.unref(l)},null,8,["id","text"])]))}}),Or=t.defineComponent({__name:"DateFilter",props:{dateRange:{},sortDir:{}},emits:["sort-dir-changed","date-range-changed"],setup(n,{emit:r}){const e=n,o=t.ref(e.dateRange),a=t.ref(e.sortDir),s=[{label:"Newest-Oldest",value:"desc"},{label:"Oldest-Newest",value:"asc"}],i=r,l=d=>{(d==="asc"||d==="desc")&&i("sort-dir-changed",d)},c=d=>{d&&i("date-range-changed",d)};return(d,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(Bn,{modelValue:a.value,"onUpdate:modelValue":[u[0]||(u[0]=f=>a.value=f),l],options:s},null,8,["modelValue"]),t.createVNode(Mn,{modelValue:o.value,"onUpdate:modelValue":[u[1]||(u[1]=f=>o.value=f),c],class:"ml-3"},null,8,["modelValue"])],64))}});function Et(n,r="GET",e={}){const o=t.ref(),a=t.shallowRef(),s=t.ref(!1),i=t.ref(!1),l=t.ref(!1),c=t.ref(!1);let d=0,u;const f=()=>{u!==void 0&&u.abort()},p=(g={},h={})=>{d++;const y=d;u=new AbortController,c.value=!1,i.value=!1,l.value=!0;const w={data:["PATCH","patch","POST","post","PUT","put"].includes(r)?g:{},method:r,params:["GET","get"].includes(r)?g:{},signal:u.signal,url:n};return ut(w,{...e,...h}).then(C=>(o.value=C,a.value=void 0,c.value=!1,C),C=>{throw a.value=C,zo(C)&&(c.value=!0),C}).finally(()=>{y==d&&(i.value=!0,l.value=!1),s.value=!0})};return e!=null&&e.immediate&&e.immediate===!0&&p(),{result:o,error:a,isFinished:i,isLoading:l,isAborted:c,hasFetched:s,abort:f,execute:p}}function cd(n,r={}){return Et(n,"GET",r)}function dd(n,r={}){return Et(n,"DELETE",r)}function ud(n,r={}){return Et(n,"PATCH",r)}function fd(n,r={}){return Et(n,"POST",r)}function pd(n,r={}){return Et(n,"PUT",r)}const cs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",md={CreateIdAttribute:(n=8)=>{let r="";for(let e=0;e<n;e++)r+=cs.charAt(Math.floor(Math.random()*cs.length));return r}};function ds(n={}){const r=t.ref(new Map);let e={removeDelay:1e4,email:""};const o=p=>{e={...e,...p}},a=p=>{r.value.delete(p)},s=p=>{const g=md.CreateIdAttribute();return r.value.set(g,p),(p.persistent===void 0||!p.persistent)&&setTimeout(()=>a(g),e.removeDelay),g},i=p=>s(p),l=(p,g=!1)=>s({message:p,persistent:g,type:"error"}),c=(p,g=!1)=>s({message:p,persistent:g,type:"info"}),d=(p,g=!1)=>s({message:p,persistent:g,type:"success"}),u=(p,g=!1)=>s({message:p,persistent:g,type:"warning"}),f=(p="",g=!1)=>{const h=p||e.email,y=h?`Whoops! Something went wrong, please reach out to
14
+ `}function qn(){e.calendarContainer.classList.add("hasWeeks");const m=U("div","flatpickr-weekwrapper");m.appendChild(U("span","flatpickr-weekday",e.l10n.weekAbbreviation));const b=U("div","flatpickr-weeks");return m.appendChild(b),{weekWrapper:m,weekNumbers:b}}function K(m,b=!0){const x=b?m:m-e.currentMonth;x<0&&e._hidePrevMonthArrow===!0||x>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=x,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,ee("onYearChange"),oe()),te(),ee("onMonthChange"),Xn())}function qt(m=!0,b=!0){if(e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,b===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){const{hours:x,minutes:k,seconds:v}=Rr(e.config);p(x,k,v)}e.redraw(),m&&ee("onChange")}function Wt(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),ee("onClose")}function Wn(){e.config!==void 0&&ee("onDestroy");for(let m=e._handlers.length;m--;)e._handlers[m].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){const m=e.calendarContainer.parentNode;if(m.lastChild&&m.removeChild(m.lastChild),m.parentNode){for(;m.firstChild;)m.parentNode.insertBefore(m.firstChild,m);m.parentNode.removeChild(m)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(m=>{try{delete e[m]}catch{}})}function pe(m){return e.config.appendTo&&e.config.appendTo.contains(m)?!0:e.calendarContainer.contains(m)}function Yt(m){if(e.isOpen&&!e.config.inline){const b=ve(m),x=pe(b),k=b===e.input||b===e.altInput||e.element.contains(b)||m.path&&m.path.indexOf&&(~m.path.indexOf(e.input)||~m.path.indexOf(e.altInput)),v=m.type==="blur"?k&&m.relatedTarget&&!pe(m.relatedTarget):!k&&!x&&!pe(m.relatedTarget),D=!e.config.ignoredFocusElements.some(T=>T.contains(b));v&&D&&(e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0&&e.input.value!==""&&e.input.value!==void 0&&l(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&(e.clear(!1),e.redraw()))}}function Yn(m){if(!m||e.config.minDate&&m<e.config.minDate.getFullYear()||e.config.maxDate&&m>e.config.maxDate.getFullYear())return;const b=m,x=e.currentYear!==b;e.currentYear=b||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),x&&(e.redraw(),ee("onYearChange"),oe())}function lt(m,b=!0){var x;const k=e.parseDate(m,void 0,b);if(e.config.minDate&&k&&Ve(k,e.config.minDate,b!==void 0?b:!e.minDateHasTime)<0||e.config.maxDate&&k&&Ve(k,e.config.maxDate,b!==void 0?b:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(k===void 0)return!1;const v=!!e.config.enable,D=(x=e.config.enable)!==null&&x!==void 0?x:e.config.disable;for(let T=0,$;T<D.length;T++){if($=D[T],typeof $=="function"&&$(k))return v;if($ instanceof Date&&k!==void 0&&$.getTime()===k.getTime())return v;if(typeof $=="string"){const I=e.parseDate($,void 0,!0);return I&&I.getTime()===k.getTime()?v:!v}else if(typeof $=="object"&&k!==void 0&&$.from&&$.to&&k.getTime()>=$.from.getTime()&&k.getTime()<=$.to.getTime())return v}return!v}function Kn(m){return e.daysContainer!==void 0?m.className.indexOf("hidden")===-1&&m.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(m):!1}function Oh(m){m.target===e._input&&(e.selectedDates.length>0||e._input.value.length>0)&&!(m.relatedTarget&&pe(m.relatedTarget))&&e.setDate(e._input.value,!0,m.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function Ih(m){const b=ve(m),x=e.config.wrap?n.contains(b):b===e._input,k=e.config.allowInput,v=e.isOpen&&(!k||!x),D=e.config.inline&&x&&!k;if(m.keyCode===13&&x){if(k)return e.setDate(e._input.value,!0,b===e.altInput?e.config.altFormat:e.config.dateFormat),b.blur();e.open()}else if(pe(b)||v||D){const T=!!e.timeContainer&&e.timeContainer.contains(b);switch(m.keyCode){case 13:T?(m.preventDefault(),l(),Zr()):ri(m);break;case 27:m.preventDefault(),Zr();break;case 8:case 46:x&&!e.config.allowInput&&(m.preventDefault(),e.clear());break;case 37:case 39:if(!T&&!x){if(m.preventDefault(),e.daysContainer!==void 0&&(k===!1||document.activeElement&&Kn(document.activeElement))){const I=m.keyCode===39?1:-1;m.ctrlKey?(m.stopPropagation(),K(I),L(M(1),0)):L(void 0,I)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:m.preventDefault();const $=m.keyCode===40?1:-1;e.daysContainer&&b.$i!==void 0||b===e.input||b===e.altInput?m.ctrlKey?(m.stopPropagation(),Yn(e.currentYear-$),L(M(1),0)):T||L(void 0,$*7):b===e.currentYearElement?Yn(e.currentYear-$):e.config.enableTime&&(!T&&e.hourElement&&e.hourElement.focus(),l(m),e._debouncedChange());break;case 9:if(T){const I=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(G=>G),H=I.indexOf(b);if(H!==-1){const G=I[H+(m.shiftKey?-1:1)];m.preventDefault(),(G||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(b)&&m.shiftKey&&(m.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&b===e.amPM)switch(m.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],u(),Qe();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],u(),Qe();break}(x||pe(b))&&ee("onKeyDown",m)}function Xr(m){if(e.selectedDates.length!==1||m&&(!m.classList.contains("flatpickr-day")||m.classList.contains("flatpickr-disabled")))return;const b=m?m.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),x=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),k=Math.min(b,e.selectedDates[0].getTime()),v=Math.max(b,e.selectedDates[0].getTime());let D=!1,T=0,$=0;for(let I=k;I<v;I+=nd.DAY)lt(new Date(I),!0)||(D=D||I>k&&I<v,I<x&&(!T||I>T)?T=I:I>x&&(!$||I<$)&&($=I));for(let I=0;I<e.config.showMonths;I++){const H=e.daysContainer.children[I];for(let G=0,Be=H.children.length;G<Be;G++){const me=H.children[G],qe=me.dateObj.getTime(),Kt=T>0&&qe<T||$>0&&qe>$;if(Kt){me.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(Gt=>{me.classList.remove(Gt)});continue}else if(D&&!Kt)continue;["startRange","inRange","endRange","notAllowed"].forEach(Gt=>{me.classList.remove(Gt)}),m!==void 0&&(m.classList.add(b<=e.selectedDates[0].getTime()?"startRange":"endRange"),x<b&&qe===x?me.classList.add("startRange"):x>b&&qe===x&&me.classList.add("endRange"),qe>=T&&($===0||qe<=$)&&td(qe,x,b)&&me.classList.add("inRange"))}}}function Lh(){e.isOpen&&!e.config.static&&!e.config.inline&&Gn()}function Fh(m,b=e._positionElement){if(e.isMobile===!0){if(m){m.preventDefault();const k=ve(m);k&&k.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),ee("onOpen");return}else if(e._input.disabled||e.config.inline)return;const x=e.isOpen;e.isOpen=!0,x||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),ee("onOpen"),Gn(b)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(m===void 0||!e.timeContainer.contains(m.relatedTarget))&&setTimeout(()=>e.hourElement.select(),50)}function Qs(m){return b=>{const x=e.config[`_${m}Date`]=e.parseDate(b,e.config.dateFormat),k=e.config[`_${m==="min"?"max":"min"}Date`];x!==void 0&&(e[m==="min"?"minDateHasTime":"maxDateHasTime"]=x.getHours()>0||x.getMinutes()>0||x.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(v=>lt(v)),!e.selectedDates.length&&m==="min"&&f(x),Qe()),e.daysContainer&&(ni(),x!==void 0?e.currentYearElement[m]=x.getFullYear().toString():e.currentYearElement.removeAttribute(m),e.currentYearElement.disabled=!!k&&x!==void 0&&k.getFullYear()===x.getFullYear())}}function jh(){const m=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],b=Object.assign(Object.assign({},JSON.parse(JSON.stringify(n.dataset||{}))),r),x={};e.config.parseDate=b.parseDate,e.config.formatDate=b.formatDate,Object.defineProperty(e.config,"enable",{get:()=>e.config._enable,set:D=>{e.config._enable=ai(D)}}),Object.defineProperty(e.config,"disable",{get:()=>e.config._disable,set:D=>{e.config._disable=ai(D)}});const k=b.mode==="time";if(!b.dateFormat&&(b.enableTime||k)){const D=re.defaultConfig.dateFormat||xt.dateFormat;x.dateFormat=b.noCalendar||k?"H:i"+(b.enableSeconds?":S":""):D+" H:i"+(b.enableSeconds?":S":"")}if(b.altInput&&(b.enableTime||k)&&!b.altFormat){const D=re.defaultConfig.altFormat||xt.altFormat;x.altFormat=b.noCalendar||k?"h:i"+(b.enableSeconds?":S K":" K"):D+` h:i${b.enableSeconds?":S":""} K`}Object.defineProperty(e.config,"minDate",{get:()=>e.config._minDate,set:Qs("min")}),Object.defineProperty(e.config,"maxDate",{get:()=>e.config._maxDate,set:Qs("max")});const v=D=>T=>{e.config[D==="min"?"_minTime":"_maxTime"]=e.parseDate(T,"H:i:S")};Object.defineProperty(e.config,"minTime",{get:()=>e.config._minTime,set:v("min")}),Object.defineProperty(e.config,"maxTime",{get:()=>e.config._maxTime,set:v("max")}),b.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,x,b);for(let D=0;D<m.length;D++)e.config[m[D]]=e.config[m[D]]===!0||e.config[m[D]]==="true";Tr.filter(D=>e.config[D]!==void 0).forEach(D=>{e.config[D]=Mr(e.config[D]||[]).map(s)}),e.isMobile=!e.config.disableMobile&&!e.config.inline&&e.config.mode==="single"&&!e.config.disable.length&&!e.config.enable&&!e.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(let D=0;D<e.config.plugins.length;D++){const T=e.config.plugins[D](e)||{};for(const $ in T)Tr.indexOf($)>-1?e.config[$]=Mr(T[$]).map(s).concat(e.config[$]):typeof b[$]>"u"&&(e.config[$]=T[$])}b.altInputClass||(e.config.altInputClass=ei().className+" "+e.config.altInputClass),ee("onParseConfig")}function ei(){return e.config.wrap?n.querySelector("[data-input]"):n}function ti(){typeof e.config.locale!="object"&&typeof re.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error(`flatpickr: invalid locale ${e.config.locale}`)),e.l10n=Object.assign(Object.assign({},re.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?re.l10ns[e.config.locale]:void 0),Pr.K=`(${e.l10n.amPM[0]}|${e.l10n.amPM[1]}|${e.l10n.amPM[0].toLowerCase()}|${e.l10n.amPM[1].toLowerCase()})`,Object.assign(Object.assign({},r),JSON.parse(JSON.stringify(n.dataset||{}))).time_24hr===void 0&&re.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=ls(e),e.parseDate=Ar({config:e.config,l10n:e.l10n})}function Gn(m){if(typeof e.config.position=="function")return void e.config.position(e,m);if(e.calendarContainer===void 0)return;ee("onPreCalendarPosition");const b=m||e._positionElement,x=Array.prototype.reduce.call(e.calendarContainer.children,(Jt,to)=>Jt+to.offsetHeight,0),k=e.calendarContainer.offsetWidth,v=e.config.position.split(" "),D=v[0],T=v.length>1?v[1]:null,$=b.getBoundingClientRect(),I=window.innerHeight-$.bottom,H=D==="above"||D!=="below"&&I<x&&$.top>x,G=window.pageYOffset+$.top+(H?-x-2:b.offsetHeight+2);if(be(e.calendarContainer,"arrowTop",!H),be(e.calendarContainer,"arrowBottom",H),e.config.inline)return;let Be=window.pageXOffset+$.left,me=!1,Zn=!1;T==="center"?(Be-=(k-$.width)/2,me=!0):T==="right"&&(Be-=k-$.width,Zn=!0),be(e.calendarContainer,"arrowLeft",!me&&!Zn),be(e.calendarContainer,"arrowCenter",me),be(e.calendarContainer,"arrowRight",Zn);const qe=window.document.body.offsetWidth-(window.pageXOffset+$.right),Kt=Be+k>window.document.body.offsetWidth,Gt=qe+k>window.document.body.offsetWidth;if(be(e.calendarContainer,"rightMost",Kt),!e.config.static)if(e.calendarContainer.style.top=`${G}px`,!Kt)e.calendarContainer.style.left=`${Be}px`,e.calendarContainer.style.right="auto";else if(!Gt)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=`${qe}px`;else{const Jt=Hh();if(Jt===void 0)return;const to=window.document.body.offsetWidth,Qh=Math.max(0,to/2-k/2),eg=".flatpickr-calendar.centerMost:before",tg=".flatpickr-calendar.centerMost:after",ng=Jt.cssRules.length,rg=`{left:${$.left}px;right:auto;}`;be(e.calendarContainer,"rightMost",!1),be(e.calendarContainer,"centerMost",!0),Jt.insertRule(`${eg},${tg}${rg}`,ng),e.calendarContainer.style.left=`${Qh}px`,e.calendarContainer.style.right="auto"}}function Hh(){let m=null;for(let b=0;b<document.styleSheets.length;b++){const x=document.styleSheets[b];try{x.cssRules}catch{continue}m=x;break}return m??Uh()}function Uh(){const m=document.createElement("style");return document.head.appendChild(m),m.sheet}function ni(){e.config.noCalendar||e.isMobile||(oe(),Xn(),te())}function Zr(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function ri(m){m.preventDefault(),m.stopPropagation();const b=T=>T.classList&&T.classList.contains("flatpickr-day")&&!T.classList.contains("flatpickr-disabled")&&!T.classList.contains("notAllowed"),x=is(ve(m),b);if(x===void 0)return;const k=x,v=e.latestSelectedDateObj=new Date(k.dateObj.getTime()),D=(v.getMonth()<e.currentMonth||v.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=k,e.config.mode==="single")e.selectedDates=[v];else if(e.config.mode==="multiple"){const T=eo(v);T?e.selectedDates.splice(parseInt(T),1):e.selectedDates.push(v)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=v,e.selectedDates.push(v),Ve(v,e.selectedDates[0],!0)!==0&&e.selectedDates.sort((T,$)=>T.getTime()-$.getTime()));if(u(),D){const T=e.currentYear!==v.getFullYear();e.currentYear=v.getFullYear(),e.currentMonth=v.getMonth(),T&&(ee("onYearChange"),oe()),ee("onMonthChange")}if(Xn(),te(),Qe(),!D&&e.config.mode!=="range"&&e.config.showMonths===1?j(k):e.selectedDateElem!==void 0&&e.hourElement===void 0&&e.selectedDateElem&&e.selectedDateElem.focus(),e.hourElement!==void 0&&e.hourElement!==void 0&&e.hourElement.focus(),e.config.closeOnSelect){const T=e.config.mode==="single"&&!e.config.enableTime,$=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(T||$)&&Zr()}y()}const Jn={locale:[ti,Ze],showMonths:[zt,i,R],minDate:[C],maxDate:[C],clickOpens:[()=>{e.config.clickOpens===!0?(h(e._input,"focus",e.open),h(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function zh(m,b){if(m!==null&&typeof m=="object"){Object.assign(e.config,m);for(const x in m)Jn[x]!==void 0&&Jn[x].forEach(k=>k())}else e.config[m]=b,Jn[m]!==void 0?Jn[m].forEach(x=>x()):Tr.indexOf(m)>-1&&(e.config[m]=Mr(b));e.redraw(),Qe(!0)}function oi(m,b){let x=[];if(m instanceof Array)x=m.map(k=>e.parseDate(k,b));else if(m instanceof Date||typeof m=="number")x=[e.parseDate(m,b)];else if(typeof m=="string")switch(e.config.mode){case"single":case"time":x=[e.parseDate(m,b)];break;case"multiple":x=m.split(e.config.conjunction).map(k=>e.parseDate(k,b));break;case"range":x=m.split(e.l10n.rangeSeparator).map(k=>e.parseDate(k,b));break}else e.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(m)}`));e.selectedDates=e.config.allowInvalidPreload?x:x.filter(k=>k instanceof Date&&lt(k,!1)),e.config.mode==="range"&&e.selectedDates.sort((k,v)=>k.getTime()-v.getTime())}function qh(m,b=!1,x=e.config.dateFormat){if(m!==0&&!m||m instanceof Array&&m.length===0)return e.clear(b);oi(m,x),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),C(void 0,b),f(),e.selectedDates.length===0&&e.clear(!1),Qe(b),b&&ee("onChange")}function ai(m){return m.slice().map(b=>typeof b=="string"||typeof b=="number"||b instanceof Date?e.parseDate(b,void 0,!0):b&&typeof b=="object"&&b.from&&b.to?{from:e.parseDate(b.from,void 0),to:e.parseDate(b.to,void 0)}:b).filter(b=>b)}function Wh(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;const m=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);m&&oi(m,e.config.dateFormat),e._initialDate=e.selectedDates.length>0?e.selectedDates[0]:e.config.minDate&&e.config.minDate.getTime()>e.now.getTime()?e.config.minDate:e.config.maxDate&&e.config.maxDate.getTime()<e.now.getTime()?e.config.maxDate:e.now,e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth(),e.selectedDates.length>0&&(e.latestSelectedDateObj=e.selectedDates[0]),e.config.minTime!==void 0&&(e.config.minTime=e.parseDate(e.config.minTime,"H:i")),e.config.maxTime!==void 0&&(e.config.maxTime=e.parseDate(e.config.maxTime,"H:i")),e.minDateHasTime=!!e.config.minDate&&(e.config.minDate.getHours()>0||e.config.minDate.getMinutes()>0||e.config.minDate.getSeconds()>0),e.maxDateHasTime=!!e.config.maxDate&&(e.config.maxDate.getHours()>0||e.config.maxDate.getMinutes()>0||e.config.maxDate.getSeconds()>0)}function Yh(){if(e.input=ei(),!e.input){e.config.errorHandler(new Error("Invalid input element specified"));return}e.input._type=e.input.type,e.input.type="text",e.input.classList.add("flatpickr-input"),e._input=e.input,e.config.altInput&&(e.altInput=U(e.input.nodeName,e.config.altInputClass),e._input=e.altInput,e.altInput.placeholder=e.input.placeholder,e.altInput.disabled=e.input.disabled,e.altInput.required=e.input.required,e.altInput.tabIndex=e.input.tabIndex,e.altInput.type="text",e.input.setAttribute("type","hidden"),!e.config.static&&e.input.parentNode&&e.input.parentNode.insertBefore(e.altInput,e.input.nextSibling)),e.config.allowInput||e._input.setAttribute("readonly","readonly"),e._positionElement=e.config.positionElement||e._input}function Kh(){const m=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=U("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=m,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=m==="datetime-local"?"Y-m-d\\TH:i:S":m==="date"?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",e.altInput!==void 0&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch{}h(e.mobileInput,"change",b=>{e.setDate(ve(b).value,!1,e.mobileFormatStr),ee("onChange"),ee("onClose")})}function Gh(m){if(e.isOpen===!0)return e.close();e.open(m)}function ee(m,b){if(e.config===void 0)return;const x=e.config[m];if(x!==void 0&&x.length>0)for(let k=0;x[k]&&k<x.length;k++)x[k](e.selectedDates,e.input.value,e,b);m==="onChange"&&(e.input.dispatchEvent(Qr("change")),e.input.dispatchEvent(Qr("input")))}function Qr(m){const b=document.createEvent("Event");return b.initEvent(m,!0,!0),b}function eo(m){for(let b=0;b<e.selectedDates.length;b++)if(Ve(e.selectedDates[b],m)===0)return""+b;return!1}function Jh(m){return e.config.mode!=="range"||e.selectedDates.length<2?!1:Ve(m,e.selectedDates[0])>=0&&Ve(m,e.selectedDates[1])<=0}function Xn(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach((m,b)=>{const x=new Date(e.currentYear,e.currentMonth,1);x.setMonth(e.currentMonth+b),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[b].textContent=Tn(x.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=x.getMonth().toString(),m.value=x.getFullYear().toString()}),e._hidePrevMonthArrow=e.config.minDate!==void 0&&(e.currentYear===e.config.minDate.getFullYear()?e.currentMonth<=e.config.minDate.getMonth():e.currentYear<e.config.minDate.getFullYear()),e._hideNextMonthArrow=e.config.maxDate!==void 0&&(e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth+1>e.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}function si(m){return e.selectedDates.map(b=>e.formatDate(b,m)).filter((b,x,k)=>e.config.mode!=="range"||e.config.enableTime||k.indexOf(b)===x).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function Qe(m=!0){e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=si(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=si(e.config.altFormat)),m!==!1&&ee("onValueUpdate")}function Xh(m){const b=ve(m),x=e.prevMonthNav.contains(b),k=e.nextMonthNav.contains(b);x||k?K(x?-1:1):e.yearElements.indexOf(b)>=0?b.select():b.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):b.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function Zh(m){m.preventDefault();const b=m.type==="keydown",x=ve(m),k=x;e.amPM!==void 0&&x===e.amPM&&(e.amPM.textContent=e.l10n.amPM[Me(e.amPM.textContent===e.l10n.amPM[0])]);const v=parseFloat(k.getAttribute("min")),D=parseFloat(k.getAttribute("max")),T=parseFloat(k.getAttribute("step")),$=parseInt(k.value,10),I=m.delta||(b?m.which===38?1:-1:0);let H=$+T*I;if(typeof k.value<"u"&&k.value.length===2){const G=k===e.hourElement,Be=k===e.minuteElement;H<v?(H=D+H+Me(!G)+(Me(G)&&Me(!e.amPM)),Be&&S(void 0,-1,e.hourElement)):H>D&&(H=k===e.hourElement?H-D-Me(!e.amPM):v,Be&&S(void 0,1,e.hourElement)),e.amPM&&G&&(T===1?H+$===23:Math.abs(H-$)>T)&&(e.amPM.textContent=e.l10n.amPM[Me(e.amPM.textContent===e.l10n.amPM[0])]),k.value=Ee(H)}}return a(),e}function Ct(n,r){const e=Array.prototype.slice.call(n).filter(a=>a instanceof HTMLElement),o=[];for(let a=0;a<e.length;a++){const s=e[a];try{if(s.getAttribute("data-fp-omit")!==null)continue;s._flatpickr!==void 0&&(s._flatpickr.destroy(),s._flatpickr=void 0),s._flatpickr=od(s,r||{}),o.push(s._flatpickr)}catch(i){console.error(i)}}return o.length===1?o[0]:o}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(n){return Ct(this,n)},HTMLElement.prototype.flatpickr=function(n){return Ct([this],n)});var re=function(n,r){return typeof n=="string"?Ct(window.document.querySelectorAll(n),r):n instanceof Node?Ct([n],r):Ct(n,r)};re.defaultConfig={},re.l10ns={en:Object.assign({},It),default:Object.assign({},It)},re.localize=n=>{re.l10ns.default=Object.assign(Object.assign({},re.l10ns.default),n)},re.setDefaults=n=>{re.defaultConfig=Object.assign(Object.assign({},re.defaultConfig),n)},re.parseDate=Ar({}),re.formatDate=ls({}),re.compareDates=Ve,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return Ct(this,n)}),Date.prototype.fp_incr=function(n){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof n=="string"?parseInt(n,10):n))},typeof window<"u"&&(window.flatpickr=re);const ad=["id","aria-labelledby","aria-describedby","aria-errormessage","placeholder"],Mn=t.defineComponent({inheritAttrs:!1,__name:"DateRangePicker",props:t.mergeModels(t.mergeDefaults({modelValue:{},maxDate:{},maxRange:{},startDate:{},label:{},help:{},placeholder:{}},{...Ae,maxDate:()=>new Date,maxRange:0,placeholder:"mm-dd-yyyy range",startDate:0}),{modelValue:{...J,default:{maxDate:0,minDate:0}},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",{...J,default:{maxDate:0,minDate:0}}),{aria:o,errorState:a,inputID:s,isRequired:i,onInvalid:l,validate:c}=$e(r),d=f=>{e.value=f},u=t.useTemplateRef("wrapper");return t.onMounted(()=>{const f={allowInput:!0,appendTo:u.value||void 0,dateFormat:"m-d-Y",mode:"range",maxDate:r.maxDate,minDate:r.startDate,onClose:p=>{p.length===2?d({minDate:p[0].setUTCHours(0,0,0,0)/1e3,maxDate:Math.floor(p[1].setUTCHours(23,59,59,999)/1e3)}):p.length===0&&d({minDate:0,maxDate:0})},static:!0};e.value&&e.value.minDate!=0&&e.value.maxDate!=0&&(f.defaultDate=[e.value.minDate*1e3,e.value.maxDate*1e3]),r.maxRange&&(f.onChange=(p,g,h)=>{if(p.length===1){var y=new Date(p[0].getTime()),w=new Date(p[0].getTime());y.setDate(y.getDate()+r.maxRange),w.setDate(w.getDate()-r.maxRange);const C=new Date;y>C&&(y=C),h.set("minDate",w),h.set("maxDate",y)}}),re(`#${s.value}`,f)}),(f,p)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"wrapper",ref:u},[t.createVNode(ge,{id:t.unref(o).labelledby,class:"mb-2",for:t.unref(s),label:f.label,required:t.unref(i)},null,8,["id","for","label","required"]),t.createElementVNode("input",t.mergeProps({id:t.unref(s),"aria-labelledby":t.unref(o).labelledby,"aria-describedby":t.unref(o).describedby,"aria-errormessage":t.unref(o).errormessage,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200",t.unref(a)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],placeholder:f.placeholder},f.$attrs,{type:"text",onInput:p[0]||(p[0]=(...g)=>t.unref(c)&&t.unref(c)(...g)),onInvalid:p[1]||(p[1]=(...g)=>t.unref(l)&&t.unref(l)(...g))}),null,16,ad),t.createVNode(ie,{id:t.unref(o).describedby,class:"mt-1",text:f.help},null,8,["id","text"]),t.createVNode(_e,{id:t.unref(o).errormessage,class:"mt-0.5",text:t.unref(a)},null,8,["id","text"])],512))}}),sd=["id","aria-labelledby","aria-describedby","aria-errormessage"],id=["textContent"],ld=["value","disabled","textContent"],Bn=t.defineComponent({inheritAttrs:!1,__name:"Select",props:t.mergeModels(t.mergeDefaults({modelValue:{},options:{},label:{},help:{},placeholder:{}},{...Ae,placeholder:"Select an option"}),{modelValue:J,modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",J),{aria:o,inputID:a,isRequired:s,validate:i,errorState:l,onInvalid:c}=$e(r);return(d,u)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(ge,{id:t.unref(o).labelledby,class:"mb-2",for:t.unref(a),label:d.label,required:t.unref(s)},null,8,["id","for","label","required"]),t.withDirectives(t.createElementVNode("select",t.mergeProps({id:t.unref(a),"onUpdate:modelValue":u[0]||(u[0]=f=>e.value=f),"aria-labelledby":t.unref(o).labelledby,"aria-describedby":t.unref(o).describedby,"aria-errormessage":t.unref(o).errormessage,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6 pl-3 pr-10","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200 disabled:opacity-100",t.unref(l)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"]},d.$attrs,{onChange:u[1]||(u[1]=(...f)=>t.unref(i)&&t.unref(i)(...f)),onInvalid:u[2]||(u[2]=(...f)=>t.unref(c)&&t.unref(c)(...f))}),[t.createElementVNode("option",{value:"",disabled:"",selected:"",textContent:t.toDisplayString(d.placeholder)},null,8,id),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.options,f=>(t.openBlock(),t.createElementBlock("option",{key:f.value,value:f.value,disabled:f.disabled,textContent:t.toDisplayString(f.label)},null,8,ld))),128))],16,sd),[[t.vModelSelect,e.value]]),t.createVNode(ie,{id:t.unref(o).describedby,class:"mt-1",text:d.help},null,8,["id","text"]),t.createVNode(_e,{id:t.unref(o).errormessage,class:"mt-0.5",text:t.unref(l)},null,8,["id","text"])]))}}),Or=t.defineComponent({__name:"DateFilter",props:{dateRange:{},sortDir:{}},emits:["sort-dir-changed","date-range-changed"],setup(n,{emit:r}){const e=n,o=t.ref(e.dateRange),a=t.ref(e.sortDir),s=[{label:"Newest-Oldest",value:"desc"},{label:"Oldest-Newest",value:"asc"}],i=r,l=d=>{(d==="asc"||d==="desc")&&i("sort-dir-changed",d)},c=d=>{d&&i("date-range-changed",d)};return(d,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(Bn,{modelValue:a.value,"onUpdate:modelValue":[u[0]||(u[0]=f=>a.value=f),l],options:s},null,8,["modelValue"]),t.createVNode(Mn,{modelValue:o.value,"onUpdate:modelValue":[u[1]||(u[1]=f=>o.value=f),c],class:"ml-3"},null,8,["modelValue"])],64))}});function Et(n,r="GET",e={}){const o=t.ref(),a=t.shallowRef(),s=t.ref(!1),i=t.ref(!1),l=t.ref(!1),c=t.ref(!1);let d=0,u;const f=()=>{u!==void 0&&u.abort()},p=(g={},h={})=>{d++;const y=d;u=new AbortController,c.value=!1,i.value=!1,l.value=!0;const w={data:["PATCH","patch","POST","post","PUT","put"].includes(r)?g:{},method:r,params:["GET","get"].includes(r)?g:{},signal:u.signal,url:n};return ut(w,{...e,...h}).then(C=>(o.value=C,a.value=void 0,c.value=!1,C),C=>{throw a.value=C,zo(C)&&(c.value=!0),C}).finally(()=>{y==d&&(i.value=!0,l.value=!1),s.value=!0})};return e!=null&&e.immediate&&e.immediate===!0&&p(),{result:o,error:a,isFinished:i,isLoading:l,isAborted:c,hasFetched:s,abort:f,execute:p}}function cd(n,r={}){return Et(n,"GET",r)}function dd(n,r={}){return Et(n,"DELETE",r)}function ud(n,r={}){return Et(n,"PATCH",r)}function fd(n,r={}){return Et(n,"POST",r)}function pd(n,r={}){return Et(n,"PUT",r)}const cs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",md={CreateIdAttribute:(n=8)=>{let r="";for(let e=0;e<n;e++)r+=cs.charAt(Math.floor(Math.random()*cs.length));return r}};function ds(n={}){const r=t.ref(new Map);let e={removeDelay:1e4,email:""};const o=p=>{e={...e,...p}},a=p=>{r.value.delete(p)},s=p=>{const g=md.CreateIdAttribute();return r.value.set(g,p),(p.persistent===void 0||!p.persistent)&&setTimeout(()=>a(g),e.removeDelay),g},i=p=>s(p),l=(p,g=!1)=>s({message:p,persistent:g,type:"error"}),c=(p,g=!1)=>s({message:p,persistent:g,type:"info"}),d=(p,g=!1)=>s({message:p,persistent:g,type:"success"}),u=(p,g=!1)=>s({message:p,persistent:g,type:"warning"}),f=(p="",g=!1)=>{const h=p||e.email,y=h?`Whoops! Something went wrong, please reach out to
15
15
  <a class="underline text-xy-blue" href="mailto:${h}">${h}</a>
16
16
  if the issue persists.`:"Whoops! Something went wrong.";return s({message:y,persistent:g,type:"error"})};return o(n||{}),{flasher:{add:s,remove:a,flash:i,error:l,warning:u,info:c,success:d,genericError:f},flashes:r,configure:o}}const hd=n=>{if(window.Flashes)for(const r of window.Flashes){if(typeof r.type>"u"){const e=r.message.split(": ");n.add({type:e[0],message:e[1]});continue}n.add(r)}};let Ir;function it(){return Ir===void 0&&(Ir=ds()),Ir}const Lr={error(n,r){it().flasher.error(n,r)},info(n,r){it().flasher.info(n,r)},success(n,r){it().flasher.success(n,r)},warning(n,r){it().flasher.warning(n,r)},genericError(n,r){it().flasher.genericError(n,r)}},gd=(n,r)=>{var d;const e=t.ref(n),o={initial:((d=e==null?void 0:e.value[0])==null?void 0:d.value)||"",paramName:(r==null?void 0:r.paramName)||"tab"},a=t.ref(o.initial),s=u=>!!e.value.find(f=>f.value===u),i=u=>a.value===u,c=new URLSearchParams(window.location.search).get(o.paramName);return c&&s(c)&&(a.value=c),t.watch(a,u=>{const f=new URLSearchParams(window.location.search);f.set(o.paramName,u.toString());const p=f.toString()!==""?`?${f.toString()}`:"";window.history.replaceState({tab:u},document.title,`${window.location.pathname}${p}`)}),{activeTab:a,isActiveTab:i,tabs:e}},bd=n=>{const r=t.ref(n);return t.watch(r,e=>{const o=new URLSearchParams(window.location.search);for(const s in e){const i=e[s];if(i==null||i==null){o.delete(s);continue}if(Array.isArray(i)){o.delete(s),i.forEach(l=>{o.append(s,l.toString())});continue}!o.has(s)&&!i||o.set(s,i.toString())}const a=o.toString()!==""?`?${o.toString()}`:"";window.history.replaceState(t.toRaw(e),document.title,`${window.location.pathname}${a}`)},{deep:!0}),r},yd={class:"px-4 flex items-center justify-between sm:px-0"},wd={class:"w-0 flex-1 flex"},xd={class:"hidden md:flex"},Cd=["onClick","textContent"],Ed={class:"w-0 flex-1 flex justify-end"},Fr=t.defineComponent({__name:"Paginator",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(n){const r=t.useModel(n,"modelValue"),e=a=>{r.value={...r.value,page:a}},o=t.computed(()=>{const a=[];if(r.value.totalPages<=4){for(let i=0;i<r.value.totalPages;i++)a.push(i+1);return a}if(r.value.totalPages-r.value.page>=3){for(let i=0;i<4;i++)a.push(r.value.page+i);return a}for(let i=0;i<4;i++)a.unshift(r.value.totalPages-i);return a});return(a,s)=>(t.openBlock(),t.createElementBlock("div",yd,[t.createElementVNode("div",wd,[t.createElementVNode("a",{href:"#",class:t.normalizeClass(["-mt-px border-t-2 border-transparent pt-4 pr-1 inline-flex items-center text-sm leading-5 font-medium focus:outline-none focus:text-gray-700 focus:border-gray-400",r.value.page==1?"text-gray-500 cursor-not-allowed pointer-events-none":"text-gray-700 hover:text-gray-900 hover:border-gray-300"]),onClick:s[0]||(s[0]=t.withModifiers(i=>e(r.value.page-1),["prevent"]))},s[2]||(s[2]=[t.createElementVNode("svg",{class:"mr-3 h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z","clip-rule":"evenodd"})],-1),t.createTextVNode(" Previous ")]),2)]),t.createElementVNode("div",xd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value,i=>(t.openBlock(),t.createElementBlock("a",{key:i,href:"#",class:t.normalizeClass(["-mt-px border-t-2 pt-4 px-4 inline-flex items-center text-sm leading-5 font-medium",r.value.page===i?"border-blue-500 text-blue-600 focus:outline-none focus:text-blue-800 focus:border-blue-700":"border-transparent text-gray-700 hover:text-gray-900 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-400"]),onClick:t.withModifiers(l=>e(i),["prevent"]),textContent:t.toDisplayString(i)},null,10,Cd))),128))]),t.createElementVNode("div",Ed,[t.createElementVNode("a",{href:"#",class:t.normalizeClass(["-mt-px border-t-2 border-transparent pt-4 pl-1 inline-flex items-center text-sm leading-5 font-medium focus:outline-none focus:text-gray-700 focus:border-gray-400",r.value.page>=r.value.totalPages?"text-gray-500 cursor-not-allowed pointer-events-none":"text-gray-700 hover:text-gray-900 hover:border-gray-300"]),onClick:s[1]||(s[1]=t.withModifiers(i=>e(r.value.page+1),["prevent"]))},s[3]||(s[3]=[t.createTextVNode(" Next "),t.createElementVNode("svg",{class:"ml-3 h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),2)])]))}}),kd={key:0,class:"flex"},us=t.defineComponent({__name:"DetailList",props:{borderless:{type:Boolean,default:!1},defaultSort:{default:"created_at"},defaultSortDir:{default:"desc"},disableDate:{type:Boolean,default:!1},disableNavigation:{type:Boolean,default:!1},perPage:{default:10},url:{}},setup(n,{expose:r}){const e=n,o=t.ref({minDate:0,maxDate:0}),a=t.ref([]),s=t.ref({page:1,perPage:e.perPage,totalItems:0,totalPages:0}),i=t.ref(e.defaultSort),l=t.ref(e.defaultSortDir),c=()=>{const h={maxDate:o.value.maxDate,minDate:o.value.minDate,page:s.value.page,perPage:s.value.perPage,q:"",sort:i.value,sortDir:l.value};pr.get(e.url,{},h).then(y=>{s.value={page:y.data.page,perPage:y.data.perPage,totalItems:y.data.totalItems,totalPages:y.data.totalPages},a.value=y.data.items},()=>{Lr.genericError()})},d=t.computed(()=>!!a.value.length),u=t.computed(()=>!e.disableDate),f=t.computed(()=>!e.disableNavigation&&d),g={refresh:c,reset:()=>{s.value.page=1,c()}};return t.watch([l,o],()=>{c()}),r(g),c(),(h,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"mt-4 space-y-2":u.value})},[h.disableDate?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",kd,[t.createVNode(Or,{"date-range":o.value,"sort-dir":l.value,onSortDirChanged:y[0]||(y[0]=w=>l.value=w),onDateRangeChanged:y[1]||(y[1]=w=>o.value=w)},null,8,["date-range","sort-dir"])])),d.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["overflow-hidden",{"shadow sm:rounded-md border":!h.borderless}])},[t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,(w,C)=>(t.openBlock(),t.createElementBlock("li",{key:C,class:t.normalizeClass({"border-t border-gray-200":C>0})},[t.renderSlot(h.$slots,"default",{item:w})],2))),128))])],2)):t.renderSlot(h.$slots,"empty",{key:2},()=>[y[4]||(y[4]=t.createTextVNode(" No items were found! "))]),f.value?(t.openBlock(),t.createBlock(Fr,{key:3,modelValue:s.value,"onUpdate:modelValue":[y[2]||(y[2]=w=>s.value=w),y[3]||(y[3]=w=>c())]},null,8,["modelValue"])):t.createCommentVNode("",!0)],2))}}),Dd=["href"],fs=t.defineComponent({__name:"DownloadCell",props:{propsData:{},attribute:{}},setup(n){return(r,e)=>(t.openBlock(),t.createElementBlock("a",{href:r.propsData[r.attribute]},[t.createVNode(t.unref(xc),{class:"h-6 w-6 group-hover:text-gray-500 transition"})],8,Dd))}}),Nd={class:"fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-[45]"},Sd={class:"rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden"},_d={class:"p-4"},vd={class:"flex items-center"},Vd={class:"w-0 flex-1 flex justify-between"},$d=["innerHTML"],Td={class:"ml-4 shrink-0 flex"},Md=["onClick"],Pn=t.defineComponent({__name:"Flash",setup(n){const{flasher:r,flashes:e}=it(),o=a=>{switch(a){case"warning":return"border-orange-500";case"error":return"border-red-500";case"info":return"border-blue-500";case"success":return"border-green-500"}};return t.onMounted(()=>{hd(r)}),(a,s)=>(t.openBlock(),t.createBlock(t.unref(gr),null,{default:t.withCtx(()=>[t.createElementVNode("div",Nd,[t.createVNode(t.TransitionGroup,{tag:"div",class:"max-w-sm space-y-2 w-full","enter-active-class":"ease-out duration-300","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","enter-to-class":"translate-y-0 opacity-100 sm:translate-x-0","leave-active-class":"ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),([i,l])=>(t.openBlock(),t.createElementBlock("div",{key:l.message,class:t.normalizeClass(["bg-white shadow-lg rounded-lg pointer-events-auto border-t-4 transform z-10",[o(l.type)]])},[t.createElementVNode("div",Sd,[t.createElementVNode("div",_d,[t.createElementVNode("div",vd,[t.createElementVNode("div",Vd,[t.createElementVNode("p",{class:"w-0 flex-1 text-sm leading-5 font-medium text-gray-900",innerHTML:l.message},null,8,$d)]),t.createElementVNode("div",Td,[t.createElementVNode("button",{class:"inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150",onClick:c=>t.unref(r).remove(i)},s[0]||(s[0]=[t.createElementVNode("svg",{class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),8,Md)])])])])],2))),128))]),_:1})])]),_:1}))}});function Bd(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function Pd(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h7"})])}function Ad(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"})])}function ps(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z"})])}function Ft(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})])}const Rd={class:"flex"},Od={class:"flex-shrink-0"},Id={class:"ml-2.5"},Ld={key:0,role:"list",class:"list-disc space-y-1 pl-5"},Fd={key:1},jd={key:1,class:"mt-4"},Hd={class:"flex flex-col gap-y-1.5 -mx-2 sm:flex-row sm:gap-x-3 sm:items-center"},Ud={key:0},zd=["href","role"],qd={key:1},Wd=["href","role"],Yd={key:0,class:"ml-auto pl-3"},Kd={class:"-mx-1.5 -my-1.5"},ms=t.defineComponent({__name:"InlineAlert",props:{btnLink:{default:""},btnText:{default:""},content:{},dismissable:{type:Boolean,default:!1},secondaryBtnLink:{default:""},secondaryBtnText:{default:""},title:{default:""},kind:{}},emits:["close","click","click:secondary"],setup(n,{emit:r}){const e=n,o=r,a=t.ref(!0),s=()=>{a.value=!1,o("close",!0)},i=t.computed(()=>{const c={bgColor:"",btnAction:"",btnClose:"",contentColor:"",iconColor:""};switch(e.kind){case"alert":c.bgColor="bg-red-50",c.btnAction="bg-red-50 text-red-900 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50",c.btnClose="bg-red-50 text-red-600 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50",c.contentColor="text-red-800",c.iconColor="text-red-400";break;case"info":c.bgColor="bg-blue-50",c.btnAction="bg-blue-50 text-blue-900 hover:bg-blue-100 focus:ring-blue-600 focus:ring-offset-blue-50",c.btnClose="bg-blue-50 text-blue-600 hover:bg-blue-100 focus:ring-blue-600 focus:ring-offset-blue-50",c.contentColor="text-blue-800",c.iconColor="text-blue-400";break;case"success":c.bgColor="bg-emerald-50",c.btnAction="bg-emerald-50 text-emerald-900 hover:bg-emerald-100 focus:ring-emerald-600 focus:ring-offset-emerald-50",c.btnClose="bg-emerald-50 text-emerald-600 hover:bg-emerald-100 focus:ring-emerald-600 focus:ring-offset-emerald-50",c.contentColor="text-emerald-800",c.iconColor="text-emerald-400";break;case"warn":c.bgColor="bg-amber-50",c.btnAction="bg-amber-50 text-amber-900 hover:bg-amber-100 focus:ring-amber-600 focus:ring-offset-amber-50",c.btnClose="bg-amber-50 text-amber-600 hover:bg-amber-100 focus:ring-amber-600 focus:ring-offset-amber-50",c.contentColor="text-amber-800",c.iconColor="text-amber-400";break}return c}),l=t.computed(()=>{let c=null;switch(e.kind){case"alert":c=kc;break;case"info":c=Ec;break;case"success":c=$a;break;case"warn":c=Cc;break}return c});return(c,d)=>a.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["rounded-xy p-4",i.value.bgColor])},[t.createElementVNode("div",Rd,[t.createElementVNode("div",Od,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value),{class:t.normalizeClass(["h-5 w-5",i.value.iconColor]),"aria-hidden":"true"},null,8,["class"]))]),t.createElementVNode("div",Id,[c.title?(t.openBlock(),t.createElementBlock("h3",{key:0,class:t.normalizeClass(["text-sm leading-snug font-semibold mb-1.5",i.value.contentColor])},t.toDisplayString(c.title),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["text-sm",i.value.contentColor])},[Array.isArray(c.content)?(t.openBlock(),t.createElementBlock("ul",Ld,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.content,(u,f)=>(t.openBlock(),t.createElementBlock("li",{key:f},t.toDisplayString(u),1))),128))])):(t.openBlock(),t.createElementBlock("p",Fd,t.toDisplayString(c.content),1))],2),c.btnText||c.secondaryBtnText?(t.openBlock(),t.createElementBlock("div",jd,[t.createElementVNode("div",Hd,[c.btnText?(t.openBlock(),t.createElementBlock("div",Ud,[t.createElementVNode("a",{class:t.normalizeClass(["inline-flex rounded-3xl px-2.5 py-1.5 text-sm font-medium focus:outline-none focus:ring-2 focus:ring-offset-2",i.value.btnAction]),href:c.btnLink,role:c.btnLink?"link":"button",onClick:d[0]||(d[0]=u=>c.$emit("click",u))},t.toDisplayString(c.btnText),11,zd)])):t.createCommentVNode("",!0),c.secondaryBtnText?(t.openBlock(),t.createElementBlock("div",qd,[t.createElementVNode("a",{class:t.normalizeClass(["inline-flex rounded-3xl px-2.5 py-1.5 text-sm font-medium focus:outline-none focus:ring-2 focus:ring-offset-2",i.value.btnAction]),href:c.secondaryBtnLink,role:c.secondaryBtnLink?"link":"button",onClick:d[1]||(d[1]=u=>c.$emit("click:secondary",u))},t.toDisplayString(c.secondaryBtnText),11,Wd)])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)]),c.dismissable?(t.openBlock(),t.createElementBlock("div",Yd,[t.createElementVNode("div",Kd,[t.createElementVNode("button",{class:t.normalizeClass(["inline-flex rounded-md p-1.5 focus:outline-none focus:ring-2 focus:ring-offset-2",i.value.btnClose]),type:"button",onClick:s},[d[2]||(d[2]=t.createElementVNode("span",{class:"sr-only"},"close",-1)),t.createVNode(t.unref(Ft),{class:"h-4 w-4"})],2)])])):t.createCommentVNode("",!0)])],2)):t.createCommentVNode("",!0)}}),Gd={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Jd={class:"block absolute top-0 right-0 pt-4 pr-4 sm:pt-6 sm:pr-8"},Xd={class:"bg-white px-4 pt-5 pb-4 sm:p-8 sm:pb-6"},Zd={class:"mt-3 sm:mt-0 sm:text-left"},Qd={class:"mt-2"},eu={key:0,class:"bg-gray-50 px-4 py-3 sm:py-4 sm:px-8 sm:flex sm:flex-row-reverse"},tu=["disabled","textContent"],hs=t.defineComponent({__name:"Modal",props:t.mergeModels({destructive:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},wide:{type:Boolean,default:!1},submitText:{default:""},title:{default:""}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:t.mergeModels(["close","submit"],["update:modelValue"]),setup(n,{emit:r}){const e=t.useModel(n,"modelValue"),o=r,a=()=>{o("submit")};return t.watch(e,s=>{s||o("close")}),(s,i)=>(t.openBlock(),t.createBlock(t.unref(Pt),{as:"template",show:e.value},{default:t.withCtx(()=>[t.createVNode(t.unref(bn),{as:"div",static:"",class:"fixed z-30 inset-0 overflow-y-auto",open:e.value,onClose:i[3]||(i[3]=l=>e.value=!1)},{default:t.withCtx(()=>[t.createElementVNode("div",Gd,[t.createVNode(t.unref(We),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(yn),{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),i[5]||(i[5]=t.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"​",-1)),t.createVNode(t.unref(We),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["inline-block align-bottom bg-white rounded-xy text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:rounded-xy-lg w-full",s.wide?"sm:max-w-6xl":"sm:max-w-2xl"])},[t.createElementVNode("div",Jd,[t.createElementVNode("button",{type:"button",class:"bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",onClick:i[0]||(i[0]=l=>e.value=!1)},[i[4]||(i[4]=t.createElementVNode("span",{class:"sr-only"},"Close",-1)),t.createVNode(t.unref(Ft),{class:"h-6 w-6","aria-hidden":"true"})])]),t.createElementVNode("div",Xd,[t.createElementVNode("div",Zd,[t.createVNode(t.unref(wr),{as:"h3",class:"text-center text-lg leading-6 font-medium text-gray-900"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(s.title),1)]),_:1}),t.createElementVNode("div",Qd,[t.renderSlot(s.$slots,"default")])])]),s.submitText?(t.openBlock(),t.createElementBlock("div",eu,[t.createElementVNode("button",{type:"button",class:t.normalizeClass(["xy-btn w-full sm:ml-3 sm:w-auto sm:text-sm",[s.destructive?"xy-btn-red":"xy-btn"]]),disabled:s.disabled,onClick:i[1]||(i[1]=l=>a()),textContent:t.toDisplayString(s.submitText)},null,10,tu),t.createElementVNode("button",{type:"button",class:"xy-btn-neutral mt-3 w-full sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",onClick:i[2]||(i[2]=l=>e.value=!1)}," Cancel ")])):t.createCommentVNode("",!0),t.renderSlot(s.$slots,"buttons")],2)]),_:3})])]),_:3},8,["open"])]),_:3},8,["show"]))}}),nu={class:"aspect-square overflow-hidden"},ru={class:"flex justify-center relative"},ou={class:"sr-only"},jr=t.defineComponent({__name:"XYSpinner",setup(n){const r=t.useAttrs();return(e,o)=>{var a,s;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass((a=t.unref(r))!=null&&a.class?(s=t.unref(r))==null?void 0:s.class:"h-20 w-20"),role:"status"},[t.createElementVNode("div",nu,[t.createElementVNode("div",ru,[t.createElementVNode("p",ou,[t.renderSlot(e.$slots,"default",{},()=>[o[0]||(o[0]=t.createTextVNode("loading"))])]),o[1]||(o[1]=t.createStaticVNode('<div class="animate-spin-gear drop-shadow-sm"><svg class="h-full w-full text-xy-green-300" viewBox="0 0 129 129" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><polygon id="path-1" points="0.000248076923 0.48676924 128.472837 0.48676924 128.472837 128.800648 0.000248076923 128.800648"></polygon></defs><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group-6-Copy-3"><g id="Group-3"><mask id="mask-2" fill="white"><use xlink:href="#path-1"></use></mask><g id="Clip-2"></g><path id="Fill-1" d="M86.3955173,100.279324 C86.3955173,100.279324 79.4778923,106.213874 64.2360462,106.755809 C48.9954404,106.213874 42.0778154,100.279324 42.0778154,100.279324 C11.8756904,81.4963011 25.2309115,49.088357 25.2309115,49.088357 C36.5680269,24.1350542 59.1839596,22.5554236 63.8105942,22.4983139 L63.8105942,22.5043894 C63.8105942,22.5043894 63.9681231,22.4983139 64.2360462,22.4958837 C64.5052096,22.4983139 64.6627385,22.5043894 64.6627385,22.5043894 L64.6627385,22.4983139 C69.2881327,22.5554236 91.9053058,24.1350542 103.241181,49.088357 C103.241181,49.088357 116.596402,81.4963011 86.3955173,100.279324 L86.3955173,100.279324 Z M128.473085,68.8191581 L128.473085,60.4677727 L117.036738,58.80187 L115.10794,49.3726905 L124.970238,43.4186983 L121.675777,35.7307578 L110.49619,38.6214817 L106.161046,32.1486416 L113.220075,23.080347 L107.361738,17.0716753 L97.9645846,23.7437918 L89.14545,17.842049 L91.8693346,6.72144964 L84.04995,3.59378109 L78.2114596,13.4628269 L69.5907865,11.8127205 L67.908825,0.48676924 L64.6627385,0.48676924 L63.8105942,0.48676924 L60.5645077,0.48676924 L58.8813058,11.8127205 L50.2618731,13.4628269 L44.4233827,3.59378109 L36.6039981,6.72144964 L39.3278827,17.842049 L30.5087481,23.7437918 L21.1103538,17.0716753 L15.2520173,23.080347 L22.3122865,32.1486416 L17.9771423,38.6214817 L6.79755577,35.7307578 L3.50185385,43.4186983 L13.3641519,49.3726905 L11.4365942,58.80187 L0.000248076923,60.4677727 L0.000248076923,68.8191581 L11.4365942,70.4850608 L13.1036712,79.0223566 L3.13718077,84.8050196 L6.29644038,92.5488548 L17.5244019,89.8513318 L23.4832096,98.5854738 L16.7466808,107.893143 L22.8134019,113.695248 L31.9699212,106.70356 L38.5067481,110.99651 L35.5881231,122.068505 L43.35045,125.332265 L49.3625942,115.565287 L58.8813058,117.47421 L60.5645077,128.801377 L63.6927577,128.801377 L64.780575,128.801377 L67.908825,128.801377 L69.5907865,117.47421 L79.1107385,115.565287 L85.1228827,125.332265 L92.8852096,122.068505 L89.9665846,110.99651 L96.5034115,106.70356 L105.659931,113.695248 L111.725412,107.893143 L104.988883,98.5854738 L110.94769,89.8513318 L122.175652,92.5488548 L125.334912,84.8050196 L115.369662,79.0223566 L117.035498,70.4850608 L128.473085,68.8191581 Z" fill="currentColor" mask="url(#mask-2)"></path></g></g></g></svg></div><div class="absolute top-0 left-0 right-0 bottom-0 flex justify-center items-center transform scale-50"><svg viewBox="0 0 280 280" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path class="fill-xy-green" d="m17.57,94.37c-3.36,13.54-5.07,28.73-5.07,45.63,0,32.02,6.04,58,18.1,77.95,3.81,4.98,7.46,9.94,10.95,14.66,21.21,23.24,54.01,34.89,98.45,34.89.71,0,1.39-.03,2.09-.03-3.62-46.93-22.27-88.31-54.36-124.11-19.79-22.07-42.96-38.86-70.16-48.99Z"></path><path class="fill-xy-blue" d="m267.5,140c0-85-42.5-127.5-127.5-127.5-55.06,0-92.27,17.86-111.66,53.53,28.32,8.48,56.67,16.85,84.98,25.37,27.05,8.14,54.01,16.55,81.06,24.67,5.45,1.64,7.5,4.76,6.63,10.27-.69,4.35-1.04,8.75-1.57,13.13-4.95,40.77-8.32,81.74-12.43,122.61,53.64-13.88,80.49-54.56,80.49-122.08Z"></path></svg></div>',2))])])],2)}}}),au={key:0,class:"fixed top-0 left-0 flex flex-col items-center justify-center w-full h-full cursor-not-allowed z-40 bg-gray-50 bg-opacity-60"},su={class:"mt-2"},An=t.defineComponent({__name:"Spinner",setup(n){const{idx:r,loading:e,maxIdx:o,messages:a,msg:s,showMsg:i}=Ho(),l=()=>{r.value++,r.value>o.value&&(r.value=0),a.value&&(s.value=a.value[r.value]),i.value=!0},c=()=>{window.setTimeout(()=>{i.value=!1},2500)};return(d,u)=>(t.openBlock(),t.createBlock(t.unref(gr),null,{default:t.withCtx(()=>[t.unref(e)?(t.openBlock(),t.createElementBlock("div",au,[t.createVNode(jr,{class:"w-32 h-32"}),t.withDirectives(t.createElementVNode("div",su,[t.createVNode(t.Transition,{appear:"","enter-active-class":"ease-out duration-1000","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"ease-in duration-500","leave-from-class":"opacity-100","leave-to-class":"opacity-0",onAfterEnter:c,onAfterLeave:l},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{class:"container font-medium text-lg leading-snug text-center transition-opacity"},t.toDisplayString(t.unref(s)),513),[[t.vShow,t.unref(i)]])]),_:1})],512),[[t.vShow,t.unref(a)]])])):t.createCommentVNode("",!0)]),_:1}))}}),iu={class:"h-screen flex overflow-hidden bg-gray-50"},lu={class:"relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white"},cu={class:"absolute top-0 right-0 -mr-12 pt-2"},du={class:"shrink-0 flex justify-center px-4"},uu=["src"],fu={class:"mt-5 flex flex-col flex-1 h-0 overflow-y-auto"},pu={class:"flex-1 px-2"},mu={class:"space-y-1"},hu=["href","target"],gu={key:0,class:"mt-auto"},bu={class:"mt-6 px-2"},yu={class:"hidden lg:flex lg:shrink-0"},wu={class:"flex flex-col w-64"},xu={class:"flex flex-col grow border-r border-gray-200 pt-5 pb-4 bg-white overflow-y-auto"},Cu={class:"flex justify-center shrink-0 px-4"},Eu=["src"],ku={class:"mt-5 grow flex flex-col"},Du={class:"flex-1 px-2 bg-white"},Nu={class:"space-y-1"},Su=["href","target"],_u={key:0,class:"mt-atuo"},vu={class:"mt-6 px-2"},Vu={class:"flex flex-col w-0 flex-1 overflow-hidden"},$u={class:"relative z-10 shrink-0 flex h-16 bg-xy-blue shadow"},Tu={class:"flex-1 px-4 flex justify-between"},Mu={class:"flex-1 flex"},Bu={class:"flex items-center text-base leading-snug sm:text-2xl text-white"},Pu={class:"ml-4 flex items-center lg:ml-6"},Au=["href"],Ru={class:"flex-1 relative overflow-y-auto focus:outline-none"},Ou={class:"mx-auto"},gs=t.defineComponent({__name:"SidebarLayout",props:{activeUrl:{default:""},iconUrl:{},navigation:{},userNavigation:{}},setup(n){const r=n,e=t.ref(!1),o=a=>r.activeUrl===a;return(a,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",iu,[t.createVNode(t.unref(Pt),{as:"template",show:e.value},{default:t.withCtx(()=>[t.createVNode(t.unref(bn),{as:"div",static:"",class:"fixed inset-0 flex z-10 lg:hidden",open:e.value,onClose:s[1]||(s[1]=i=>e.value=!1)},{default:t.withCtx(()=>[t.createVNode(t.unref(We),{as:"template",enter:"transition-opacity ease-linear duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"transition-opacity ease-linear duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(yn),{class:"fixed inset-0 bg-gray-600 bg-opacity-75"})]),_:1}),t.createVNode(t.unref(We),{as:"template",enter:"transition ease-in-out duration-300 transform","enter-from":"-translate-x-full","enter-to":"translate-x-0",leave:"transition ease-in-out duration-300 transform","leave-from":"translate-x-0","leave-to":"-translate-x-full"},{default:t.withCtx(()=>[t.createElementVNode("div",lu,[t.createVNode(t.unref(We),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in-out duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t.withCtx(()=>[t.createElementVNode("div",cu,[t.createElementVNode("button",{class:"ml-1 flex items-center justify-center h-10 w-10 rounded-full focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white",onClick:s[0]||(s[0]=i=>e.value=!1)},[s[3]||(s[3]=t.createElementVNode("span",{class:"sr-only"},"Close sidebar",-1)),t.createVNode(t.unref(Ft),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),t.createElementVNode("div",du,[t.createElementVNode("img",{class:"w-auto h-12",src:a.iconUrl,alt:"Logo"},null,8,uu)]),t.createElementVNode("div",fu,[t.createElementVNode("div",pu,[t.renderSlot(a.$slots,"sidebar-nav",{},()=>[t.createElementVNode("nav",mu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.navigation,i=>(t.openBlock(),t.createElementBlock("a",{key:i.name,href:i.url,class:t.normalizeClass([o(i.url)?"bg-gray-100 text-gray-900":"text-gray-700 hover:bg-gray-50 hover:text-gray-900","group flex items-center px-2 py-2 text-base font-semibold rounded-md"]),target:i.openInTab?"_blank":"_self"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.icon),{class:t.normalizeClass([o(i.url)?"text-gray-600":"text-gray-500 group-hover:text-gray-600","mr-4 h-6 w-6"]),"aria-hidden":"true"},null,8,["class"])),t.createTextVNode(" "+t.toDisplayString(i.name),1)],10,hu))),128))])])]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",gu,[t.createElementVNode("div",bu,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])]),_:3}),s[4]||(s[4]=t.createElementVNode("div",{class:"shrink-0 w-14","aria-hidden":"true"},null,-1))]),_:3},8,["open"])]),_:3},8,["show"]),t.createElementVNode("div",yu,[t.createElementVNode("div",wu,[t.createElementVNode("div",xu,[t.createElementVNode("div",Cu,[t.createElementVNode("img",{class:"w-auto h-12",src:a.iconUrl,alt:"Logo"},null,8,Eu)]),t.createElementVNode("div",ku,[t.createElementVNode("div",Du,[t.renderSlot(a.$slots,"sidebar-nav",{},()=>[t.createElementVNode("nav",Nu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.navigation,i=>(t.openBlock(),t.createElementBlock("a",{key:i.name,href:i.url,class:t.normalizeClass([o(i.url)?"bg-gray-100 text-gray-900":"text-gray-800 hover:bg-gray-100 hover:text-gray-900","group flex items-center px-2 py-2 text-sm font-semibold rounded-md"]),target:i.openInTab?"_blank":"_self"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.icon),{class:t.normalizeClass([o(i.url)?"text-gray-600":"text-gray-400 group-hover:text-gray-600","mr-3 h-6 w-6"]),"aria-hidden":"true"},null,8,["class"])),t.createTextVNode(" "+t.toDisplayString(i.name),1)],10,Su))),128))])])]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",_u,[t.createElementVNode("div",vu,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])])]),t.createElementVNode("div",Vu,[t.createElementVNode("div",$u,[t.createElementVNode("button",{class:"px-4 border-r border-gray-200 text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500 lg:hidden",onClick:s[2]||(s[2]=i=>e.value=!0)},[s[5]||(s[5]=t.createElementVNode("span",{class:"sr-only"},"Open sidebar",-1)),t.createVNode(t.unref(Pd),{class:"h-6 w-6","aria-hidden":"true"})]),t.createElementVNode("div",Tu,[t.createElementVNode("div",Mu,[t.createElementVNode("h1",Bu,[t.renderSlot(a.$slots,"header")])]),t.createElementVNode("div",Pu,[t.createVNode(t.unref(xr),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Cr),{class:"max-w-xs flex items-center text-sm text-white rounded-full hover:bg-blue-900 hover:text-gray-50 focus:outline-none focus:ring focus:text-white"},{default:t.withCtx(()=>[s[6]||(s[6]=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1)),t.createVNode(t.unref(yc),{class:"h-8 w-8",fill:"currentColor"})]),_:1})]),t.createVNode(t.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:t.withCtx(()=>[t.createVNode(t.unref(Er),{class:"origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.userNavigation,i=>(t.openBlock(),t.createBlock(t.unref(kr),{key:i.name},{default:t.withCtx(({active:l})=>[t.createElementVNode("a",{href:i.url,class:t.normalizeClass([l?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700 font-semibold"])},t.toDisplayString(i.name),11,Au)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])]),t.createElementVNode("main",Ru,[t.createElementVNode("div",Ou,[t.renderSlot(a.$slots,"default")])])])]),t.createVNode(Pn),t.createVNode(An)],64))}}),jt=t.defineComponent({__name:"Popover",props:{as:{default:"div"},position:{default:"auto"}},setup(n){const r=n,e=t.useTemplateRef("trigger"),o=t.useTemplateRef("wrapper"),a=t.computed(()=>{const l=[Pc(5),Rc()];return r.position==="auto"&&l.push(Bc()),l}),s=t.computed(()=>{if(r.position!=="auto")return r.position}),{floatingStyles:i}=rs(e,o,{middleware:a,placement:s,strategy:"fixed",whileElementsMounted:Qa});return(l,c)=>(t.openBlock(),t.createBlock(t.unref(ya),{as:l.as,class:"relative"},{default:t.withCtx(({open:d,close:u})=>[t.createVNode(t.unref(ac),{ref:"trigger"},{default:t.withCtx(()=>[t.renderSlot(l.$slots,"button",{open:d,close:u})]),_:2},1536),t.createElementVNode("div",{ref:"wrapper",class:"z-[5]",style:t.normalizeStyle(t.unref(i))},[t.createVNode(t.unref(sc),null,{default:t.withCtx(()=>[t.renderSlot(l.$slots,"default",{open:d,close:u})]),_:2},1024)],4)]),_:3},8,["as"]))}}),Iu=(n,r)=>{const e=n.__vccOpts||n;for(const[o,a]of r)e[o]=a;return e},Lu={},Fu={class:"w-full max-w-xs bg-white rounded-xy p-2 border border-gray-100 shadow-md"};function ju(n,r){return t.openBlock(),t.createElementBlock("div",Fu,[t.renderSlot(n.$slots,"default")])}const bs=Iu(Lu,[["render",ju]]),Hu={class:"absolute inset-0 overflow-hidden"},Uu={class:"fixed inset-y-0 right-0 pl-10 max-w-full flex"},zu={class:"w-screen max-w-md"},qu={class:"h-full flex flex-col bg-white shadow-xl overflow-y-scroll"},Wu={class:"py-6 px-4 bg-xy-blue-700 sm:px-6"},Yu={class:"flex items-center justify-between"},Ku={class:"ml-3 h-7 flex items-center"},Gu={class:"mt-1"},Ju=["textContent"],Xu={class:"relative flex-1 py-6 px-4 sm:px-6"},ys=t.defineComponent({__name:"Slideover",props:t.mergeModels({header:{},description:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:t.mergeModels(["close"],["update:modelValue"]),setup(n,{emit:r}){const e=t.useModel(n,"modelValue"),o=r;return t.watch(e,a=>{a||o("close")}),(a,s)=>(t.openBlock(),t.createBlock(t.unref(Pt),{as:"template",show:e.value},{default:t.withCtx(()=>[t.createVNode(t.unref(bn),{as:"div",static:"",class:"fixed inset-0 z-20 overflow-hidden bg-black bg-opacity-50",open:e.value,onClose:s[1]||(s[1]=i=>e.value=!1)},{default:t.withCtx(()=>[t.createElementVNode("div",Hu,[t.createVNode(t.unref(yn),{class:"absolute inset-0"}),t.createElementVNode("div",Uu,[t.createVNode(t.unref(We),{as:"template",enter:"transform transition ease-in-out duration-500 sm:duration-700","enter-from":"translate-x-full","enter-to":"translate-x-0",leave:"transform transition ease-in-out duration-500 sm:duration-700","leave-from":"translate-x-0","leave-to":"translate-x-full"},{default:t.withCtx(()=>[t.createElementVNode("div",zu,[t.createElementVNode("div",qu,[t.createElementVNode("div",Wu,[t.createElementVNode("div",Yu,[t.createVNode(t.unref(wr),{as:"h3",class:"text-white"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.header),1)]),_:1}),t.createElementVNode("div",Ku,[t.createElementVNode("button",{class:"bg-xy-blue-600 rounded-md text-gray-50 hover:text-white focus:outline-none focus:ring-2 focus:ring-white",onClick:s[0]||(s[0]=i=>e.value=!1)},[s[2]||(s[2]=t.createElementVNode("span",{class:"sr-only"},"Close panel",-1)),t.createVNode(t.unref(Ft),{class:"h-6 w-6","aria-hidden":"true"})])])]),t.createElementVNode("div",Gu,[t.createElementVNode("p",{class:"text-gray-50 text-base font-medium",textContent:t.toDisplayString(a.description)},null,8,Ju)])]),t.createElementVNode("div",Xu,[t.renderSlot(a.$slots,"default")]),t.renderSlot(a.$slots,"footer")])])]),_:3})])])]),_:3},8,["open"])]),_:3},8,["show"]))}}),Zu=["onMouseover","onMouseleave"],Qu=["onMouseleave"],ef={class:"max-w-xs"},ws=t.defineComponent({__name:"Tooltip",props:{as:{default:"span"},position:{default:"auto"}},setup(n){var r=!1,e=null;const o=s=>{r=!1,e&&clearTimeout(e),e=setTimeout(()=>{r||s()},100)},a=(s,i)=>{r=!0,!i&&s.target&&s.target.click()};return(s,i)=>(t.openBlock(),t.createBlock(jt,{position:s.position,as:s.as},{button:t.withCtx(({open:l,close:c})=>[t.createElementVNode("div",{class:"leading-none relative w-4 h-4",onMouseover:d=>a(d,l),onMouseleave:d=>o(c)},[t.createVNode(t.unref(Bd)),i[1]||(i[1]=t.createElementVNode("div",{class:"p-5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"},null,-1))],40,Zu)]),default:t.withCtx(({close:l})=>[t.createElementVNode("div",{class:"sm:min-w-max bg-white rounded-xy px-3.5 py-2.5 border border-gray-100 drop-shadow-md text-xs text-gray-900 leading-snug font-medium",onMouseover:i[0]||(i[0]=t.withModifiers(c=>t.isRef(r)?r.value=!0:r=!0,["prevent"])),onMouseleave:t.withModifiers(c=>o(l),["prevent"])},[t.createElementVNode("div",ef,[t.renderSlot(s.$slots,"default")])],40,Qu)]),_:3},8,["position","as"]))}}),tf={class:"min-h-screen bg-gray-50"},nf={class:"mx-auto px-4 sm:px-6 lg:px-8"},rf={class:"flex justify-between h-16"},of={class:"flex"},af={class:"shrink-0 flex items-center"},sf=["src"],lf={class:"hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8"},cf=["href","aria-current"],df={class:"hidden sm:ml-6 sm:flex sm:items-center"},uf=["href"],ff={class:"-mr-2 flex items-center sm:hidden"},pf={class:"pt-2 pb-3 space-y-1"},mf=["href","aria-current"],hf={class:"pt-4 pb-3 border-t border-gray-200"},gf={class:"flex items-center px-4"},bf={class:"shrink-0"},yf={class:"ml-3"},wf=["textContent"],xf=["textContent"],Cf={class:"mt-3 space-y-1"},Ef=["href"],kf={class:"mx-auto sm:px-6 lg:px-8"},Df={class:"px-4 py-8 sm:px-0"},xs=t.defineComponent({__name:"StackedLayout",props:{activeUrl:{default:""},currentUser:{},iconUrl:{},navigation:{},userNavigation:{}},setup(n){const r=n,e=o=>r.activeUrl===o;return(o,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",tf,[t.createVNode(t.unref(Xl),{as:"nav",class:"bg-white shadow-sm"},{default:t.withCtx(({open:s})=>[t.createElementVNode("div",nf,[t.createElementVNode("div",rf,[t.createElementVNode("div",of,[t.createElementVNode("div",af,[t.createElementVNode("img",{class:"block h-8 w-auto",src:o.iconUrl,alt:"XY Trees"},null,8,sf)]),t.createElementVNode("div",lf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.navigation,i=>(t.openBlock(),t.createElementBlock("a",{key:i.name,href:i.url,class:t.normalizeClass([e(i.url)?"border-blue-500 text-gray-900":"border-transparent text-gray-700 hover:text-gray-900 hover:border-blue-500","inline-flex items-center px-1 pt-1 border-b-2 text-sm font-semibold"]),"aria-current":e(i.url)?"page":void 0},t.toDisplayString(i.name),11,cf))),128))])]),t.createElementVNode("div",df,[t.createVNode(t.unref(xr),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Cr),{class:"bg-white flex text-sm rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},{default:t.withCtx(()=>[a[0]||(a[0]=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1)),t.createVNode(t.unref(ps),{class:"text-gray-500 h-8 w-8 rounded-full"})]),_:1})]),t.createVNode(t.Transition,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:t.withCtx(()=>[t.createVNode(t.unref(Er),{class:"origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.userNavigation,i=>(t.openBlock(),t.createBlock(t.unref(kr),{key:i.name},{default:t.withCtx(({active:l})=>[t.createElementVNode("a",{href:i.url,class:t.normalizeClass([l?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700 font-semibold"])},t.toDisplayString(i.name),11,uf)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),t.createElementVNode("div",ff,[t.createVNode(t.unref(Zl),{class:"bg-white inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},{default:t.withCtx(()=>[a[1]||(a[1]=t.createElementVNode("span",{class:"sr-only"},"Open main menu",-1)),s?(t.openBlock(),t.createBlock(t.unref(Ft),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(t.openBlock(),t.createBlock(t.unref(Ad),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)])])]),t.createVNode(t.unref(Ql),{class:"sm:hidden"},{default:t.withCtx(()=>[t.createElementVNode("div",pf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.navigation,i=>(t.openBlock(),t.createElementBlock("a",{key:i.name,href:i.url,class:t.normalizeClass([e(i.url)?"bg-blue-50 border-blue-500 text-blue-700":"border-transparent text-gray-700 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-900","block pl-3 pr-4 py-2 border-l-4 text-base font-semibold"]),"aria-current":e(i.url)?"page":void 0},t.toDisplayString(i.name),11,mf))),128))]),t.createElementVNode("div",hf,[t.createElementVNode("div",gf,[t.createElementVNode("div",bf,[t.createVNode(t.unref(ps),{class:"text-gray-500 h-10 w-10 rounded-full"})]),t.createElementVNode("div",yf,[o.currentUser.name?(t.openBlock(),t.createElementBlock("div",{key:0,class:"text-base font-medium text-gray-800",textContent:t.toDisplayString(o.currentUser.name)},null,8,wf)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"text-sm font-medium text-gray-500",textContent:t.toDisplayString(o.currentUser.email)},null,8,xf)])]),t.createElementVNode("div",Cf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.userNavigation,i=>(t.openBlock(),t.createElementBlock("a",{key:i.name,href:i.url,class:"block px-4 py-2 text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-100"},t.toDisplayString(i.name),9,Ef))),128))])])]),_:1})]),_:1}),t.renderSlot(o.$slots,"header"),t.createElementVNode("main",null,[t.createElementVNode("div",kf,[t.createElementVNode("div",Df,[t.renderSlot(o.$slots,"default")])])])]),t.createVNode(Pn),t.createVNode(An)],64))}}),Nf=n=>n==null,Sf={clearSelection(){console.warn("clearSelection() was called on a static table, did you mean to use DynamicTable?")},refresh(){console.warn("refresh() was called on a static table, did you mean to use DynamicTable?")},reset(){console.warn("reset() was called on a static table, did you mean to use DynamicTable?")},selectedData:t.computed(()=>[])},Cs=(n,r,e,o=Sf)=>{const a=t.ref(r),s=t.ref(n),i=t.ref(e),l=t.computed(()=>i.value.actions.length>0),c=t.computed(()=>a.value.filter(u=>u.show??!0).map(u=>{let f="";switch((u==null?void 0:u.alignment)||"left"){case"left":f="text-left";break;case"right":f="text-right";break;case"center":f="text-center";break}return{...u,alignment:f}})),d=t.computed(()=>s.value.map((u,f)=>({actions:i.value.actions.map(p=>({...p,disabled:typeof p.disabled=="function"?p.disabled.apply(void 0,[u,f]):p.disabled,onClick:()=>p.onClick(u,f,o),show:typeof p.show=="function"?p.show.apply(void 0,[u,f]):p.show})),rowData:u,cells:c.value.map(p=>{const g=typeof p.render=="function"?p.render.apply(void 0,[u,f]):u[p.render],h=(p==null?void 0:p.classNames)||"";return{...p,isComponent:t.isVNode(g),classNames:typeof h=="function"?h.apply(void 0,[u,f]):h,val:g}})})));return{columns:c,hasActions:l,isEmptyCellValue:Nf,rows:d}},_f={key:0,class:"flex items-center space-x-2 justify-end"},vf={class:"isolate inline-flex rounded-md shadow-sm"},Vf=["disabled","onClick"],$f={class:"relative inline-flex items-center gap-x-1.5"},Hr=t.defineComponent({__name:"TableActionButtons",props:{actions:{default:()=>[]}},setup(n){const r=n,{actions:e,hasActions:o}=Ma(t.toRef(r,"actions"));return(a,s)=>t.unref(o)?(t.openBlock(),t.createElementBlock("div",_f,[t.createElementVNode("span",vf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(i,l)=>(t.openBlock(),t.createElementBlock("button",{key:l,type:"button",class:t.normalizeClass(["group relative inline-flex items-center bg-white px-3 py-2 text-sm font-semibold text-gray-700 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus:z-10 disabled:text-gray-400 disabled:cursor-not-allowed",{"rounded-l-md":l===0,"-ml-px":l>0,"rounded-r-md":l===t.unref(e).length-1}]),disabled:i.disabled,onClick:t.withModifiers(i.onClick,["stop"])},[t.createElementVNode("span",$f,[i.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.icon),{key:0,class:t.normalizeClass(["-ml-0.5 h-4 w-4 group-disabled:text-gray-300",i.label?"text-gray-400":"text-gray-600"]),"aria-hidden":"true"},null,8,["class"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(i.label),1)])],10,Vf))),128))])])):t.createCommentVNode("",!0)}}),Tf={class:"flex flex-col"},Mf={class:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},Bf={class:"inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"},Pf={class:"overflow-hidden border-b border-gray-200 shadow sm:rounded-lg"},Af={class:"min-w-full divide-y divide-gray-200"},Rf={class:"bg-gray-100"},Of={key:0,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase leading-4"},If={class:"bg-white"},Lf={key:0,class:"px-6 py-2 text-sm text-gray-700 whitespace-nowrap leading-5"},Ff={key:0},jf=["colspan"],Es=t.defineComponent({__name:"DataTable",props:{tableActions:{default:()=>({type:"dropdown",actions:[]})},tableColumns:{},tableData:{}},setup(n){const r=n,{columns:e,hasActions:o,isEmptyCellValue:a,rows:s}=Cs(t.toRef(r,"tableData"),t.toRef(r,"tableColumns"),t.toRef(r,"tableActions"));return(i,l)=>(t.openBlock(),t.createElementBlock("div",Tf,[t.createElementVNode("div",Mf,[t.createElementVNode("div",Bf,[t.createElementVNode("div",Pf,[t.createElementVNode("table",Af,[t.createElementVNode("thead",Rf,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(c,d)=>(t.openBlock(),t.createElementBlock("th",{key:d,class:t.normalizeClass(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase leading-4",c.alignment])},t.toDisplayString(c.title),3))),128)),t.unref(o)?(t.openBlock(),t.createElementBlock("th",Of)):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",If,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(s),(c,d)=>(t.openBlock(),t.createElementBlock("tr",{key:d,class:"even:bg-gray-50"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.cells,(u,f)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("td"),{key:f,class:t.normalizeClass(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5",u.alignment])},{default:t.withCtx(()=>[u.isComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(u.val),{key:0})):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(u.classNames)},t.toDisplayString(t.unref(a)(u.val)?"-":String(u.val)),3))]),_:2},1032,["class"]))),128)),t.unref(o)?(t.openBlock(),t.createElementBlock("td",Lf,[i.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(vn),{key:0,actions:c.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(Hr,{key:1,actions:c.actions},null,8,["actions"]))])):t.createCommentVNode("",!0)]))),128)),t.unref(s).length===0?(t.openBlock(),t.createElementBlock("tr",Ff,[t.createElementVNode("td",{colspan:t.unref(e).length+(t.unref(o)?1:0),class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,jf)])):t.createCommentVNode("",!0)])])])])])]))}}),Hf={class:"flex items-center justify-center space-x-8"},Uf={class:"font-medium"},zf={class:"flex items-center space-x-5"},qf={key:0,class:"block w-2.5 h-2.5 bg-xy-green rounded-full hover:bg-green-900 focus:bg-green-900"},Wf={key:1,class:"relative flex items-center justify-center"},Yf={key:2,href:"#",class:"block w-2.5 h-2.5 bg-gray-200 rounded-full hover:bg-gray-400 focus:bg-gray-400"},Kf={key:0,class:"flex shrink-0"},Gf={key:0,class:"inline-flex rounded-md shadow-sm"},Jf=["textContent"],Xf={class:"ml-3 inline-flex rounded-md shadow-sm"},Zf=["textContent"],ks=t.defineComponent({__name:"Steps",props:{hideActions:{type:Boolean,default:!1},hidePrevious:{type:Boolean,default:!1},nextText:{default:"Next"},previousText:{default:"Back"},step:{},total:{}},emits:["next","previous"],setup(n,{emit:r}){const e=r,o=()=>{e("next")},a=()=>{e("previous")};return(s,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("nav",Hf,[t.createElementVNode("p",Uf,"Step "+t.toDisplayString(s.step)+" of "+t.toDisplayString(s.total),1),t.createElementVNode("ul",zf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.total,l=>(t.openBlock(),t.createElementBlock("li",{key:l},[s.step>l?(t.openBlock(),t.createElementBlock("span",qf)):s.step===l?(t.openBlock(),t.createElementBlock("div",Wf,i[0]||(i[0]=[t.createElementVNode("span",{class:"absolute w-5 h-5 p-px flex"},[t.createElementVNode("span",{class:"w-full h-full rounded-full bg-green-100"})],-1),t.createElementVNode("span",{class:"relative block w-2.5 h-2.5 bg-xy-green rounded-full"},null,-1)]))):(t.openBlock(),t.createElementBlock("span",Yf))]))),128))])]),s.hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Kf,[s.hidePrevious?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Gf,[t.createElementVNode("button",{type:"button",class:"xy-btn-secondary",onClick:a,textContent:t.toDisplayString(s.previousText)},null,8,Jf)])),t.createElementVNode("span",Xf,[t.createElementVNode("button",{type:"button",class:"xy-btn",onClick:o,textContent:t.toDisplayString(s.nextText)},null,8,Zf)])]))]))}}),Qf={class:"flex flex-col mb-4 space-y-4 lg:space-y-0 lg:flex-row lg:justify-between"},ep={key:0,class:"w-full max-w-lg lg:max-w-xs"},tp={class:"flex items-center gap-x-2"},np={class:"flex-1"},rp={key:1,class:"w-full max-w-lg lg:max-w-xs"},op={class:"flex items-center gap-x-2"},ap={class:"flex-1"},sp={class:"relative z-0 min-w-full align-middle border-b border-gray-200 shadow sm:rounded-lg overflow-x-auto"},ip={class:"min-w-full divide-y divide-gray-200"},lp={class:"bg-gray-100"},cp={key:0,scope:"col",class:"pl-6 w-4 leading-none"},dp=["checked","indeterminate"],up=["onClick"],fp={key:0},pp={key:1},mp={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:"h-5 inline"},hp={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},gp={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},bp={key:1,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase leading-4"},yp={key:0},wp={colspan:"100%",class:"px-6 py-2.5 border-t bg-neutral-50"},xp={class:"flex items-center gap-x-3"},Cp={class:"text-sm shrink-0"},Ep={class:"font-medium"},kp={class:"font-medium"},Dp={class:"bg-white"},Np=["onClick"],Sp={key:0,class:"pl-6 w-4 leading-none"},_p=["disabled","value"],vp={key:1,class:"px-6 py-2 text-sm text-gray-700 whitespace-nowrap leading-5"},Vp={key:0},$p=["colspan"],Tp={key:0,class:"mt-4"},Ds=t.defineComponent({__name:"DynamicTable",props:t.mergeModels({tableActions:{default:()=>({type:"dropdown",actions:[]})},tableBulkActions:{default:()=>({actions:[]})},tableColumns:{},tableOptions:{}},{selected:{required:!1,default:[]},selectedModifiers:{}}),emits:t.mergeModels(["click:row"],["update:selected"]),setup(n,{expose:r}){var zn;const e=n,o=()=>{const F={minDate:d.value.minDate,maxDate:d.value.maxDate,page:u.value.page,perPage:u.value.perPage,sort:l.value,sortDir:c.value,q:f.value};w(),pr.get(e.tableOptions.url,{skipLoader:!1},F).then(R=>{u.value={page:R.data.page,perPage:R.data.perPage,totalItems:R.data.totalItems,totalPages:R.data.totalPages},i.value=R.data.items},()=>{Lr.genericError()})},a=()=>{u.value.page=1,o()},s=()=>{if(h.value.maxRange){const F=new Date,R=F.setDate(F.getDate()-h.value.maxRange),Ze=new Date;d.value={minDate:Math.floor(R/1e3),maxDate:Math.floor(Ze.getTime()/1e3)}}},i=t.ref([]),l=t.ref(e.tableOptions.defaultSort?e.tableOptions.defaultSort:""),c=t.ref(e.tableOptions.defaultSortDirection?e.tableOptions.defaultSortDirection:"desc"),d=t.ref({minDate:0,maxDate:0}),u=t.ref({page:1,perPage:((zn=e.tableOptions)==null?void 0:zn.perPage)||10,totalItems:0,totalPages:0}),f=t.ref(""),p=F=>{F&&(u.value.page=1,d.value=F,o())},g=F=>{l.value==F?c.value=c.value==="desc"?"asc":"desc":(l.value=F,c.value="desc"),o()},h=t.computed(()=>typeof e.tableOptions.dateSearch=="object"?e.tableOptions.dateSearch:{}),y=t.computed(()=>!!zt.value.length),w=()=>{C.value=[]},C=t.useModel(n,"selected"),N=t.computed(()=>i.value.filter(F=>C.value.includes(F==null?void 0:F.id))),S=t.computed(()=>C.value.filter(F=>j.value.includes(F))),O=t.computed(()=>e.tableBulkActions.actions.filter(F=>F.show??!0).map(F=>({...F,disabled:C.value.length===0||F.disabled,onClick:()=>F.onClick.apply(void 0,[C.value,N.value,z])}))),B=t.computed(()=>O.value.length>0),j=t.computed(()=>i.value.filter(F=>F.id===void 0?!1:!!(e.tableBulkActions.isSelectable===void 0||e.tableBulkActions.isSelectable(F))).map(F=>F.id)),M=t.computed(()=>S.value.length>0&&S.value.length===j.value.length),le=t.computed(()=>S.value.length>0&&S.value.length<j.value.length),L=F=>{if(F.target.checked){C.value=j.value.map(Ze=>Ze);return}w()},z={clearSelection:w,selectedData:N,refresh:o,reset:a},{columns:te,hasActions:oe,isEmptyCellValue:fe,rows:zt}=Cs(i,t.toRef(e,"tableColumns"),t.toRef(e,"tableActions"),z);return t.watch(()=>e.tableOptions.refreshTrigger,()=>{o()}),t.watch(()=>e.tableOptions.reloadTrigger,()=>{a()}),r(z),s(),o(),(F,R)=>{var qn;const Ze=t.resolveComponent("BaseInput");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Qf,[F.tableOptions.search?(t.openBlock(),t.createElementBlock("div",ep,[R[7]||(R[7]=t.createElementVNode("label",{for:"table-search",class:"sr-only"},"Search",-1)),t.createElementVNode("div",tp,[R[6]||(R[6]=t.createElementVNode("div",{"aria-hidden":"true",class:"shrink-0 aspect-square rounded-full bg-gray-50 text-gray-400 h-10 w-10 flex items-center justify-center pointer-events-none"},[t.createElementVNode("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z","clip-rule":"evenodd"})])],-1)),t.createElementVNode("div",np,[t.createVNode(Ze,{id:"table-search",modelValue:f.value,"onUpdate:modelValue":R[0]||(R[0]=K=>f.value=K),modelModifiers:{trim:!0},type:"search",placeholder:"Search",onChange:R[1]||(R[1]=K=>a())},null,8,["modelValue"])])])])):t.createCommentVNode("",!0),F.tableOptions.dateSearch?(t.openBlock(),t.createElementBlock("div",rp,[R[9]||(R[9]=t.createElementVNode("label",{for:"table-date-range",class:"sr-only"},"Date Range",-1)),t.createElementVNode("div",op,[R[8]||(R[8]=t.createElementVNode("div",{"aria-hidden":"true",class:"shrink-0 aspect-square rounded-full bg-gray-50 text-gray-400 h-10 w-10 flex items-center justify-center pointer-events-none"},[t.createElementVNode("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})])],-1)),t.createElementVNode("div",ap,[t.createVNode(Mn,t.mergeProps({id:"table-date-range",modelValue:d.value,"onUpdate:modelValue":R[2]||(R[2]=K=>d.value=K)},{...h.value},{"onUpdate:modelValue":p}),null,16,["modelValue"])])])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",sp,[t.createElementVNode("table",ip,[t.createElementVNode("thead",lp,[t.createElementVNode("tr",null,[B.value?(t.openBlock(),t.createElementBlock("th",cp,[t.createElementVNode("input",{class:t.normalizeClass(["h-4 w-4 rounded cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50","border-gray-300 focus:ring-xy-blue-500"]),checked:M.value,indeterminate:le.value,type:"checkbox",onChange:L},null,40,dp)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(te),(K,qt)=>(t.openBlock(),t.createElementBlock("th",{key:qt,class:t.normalizeClass(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase leading-4",K.alignment])},[t.createElementVNode("div",{class:t.normalizeClass(["inline-flex items-center gap-2",{"cursor-pointer":K.sort}]),onClick:t.withModifiers(Wt=>K.sort?g(K.sort):void 0,["prevent"])},[K.title?(t.openBlock(),t.createElementBlock("span",fp,t.toDisplayString(K.title),1)):t.createCommentVNode("",!0),K.sort?(t.openBlock(),t.createElementBlock("span",pp,[l.value!==K.sort?(t.openBlock(),t.createElementBlock("svg",mp,R[10]||(R[10]=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},null,-1)]))):c.value=="desc"?(t.openBlock(),t.createElementBlock("svg",hp,R[11]||(R[11]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"},null,-1)]))):(t.openBlock(),t.createElementBlock("svg",gp,R[12]||(R[12]=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"},null,-1)])))])):t.createCommentVNode("",!0)],10,up)],2))),128)),t.unref(oe)?(t.openBlock(),t.createElementBlock("th",bp)):t.createCommentVNode("",!0)]),B.value&&C.value.length>0?(t.openBlock(),t.createElementBlock("tr",yp,[t.createElementVNode("td",wp,[t.createElementVNode("div",xp,[t.createElementVNode("div",Cp,[R[13]||(R[13]=t.createTextVNode(" Selected ")),t.createElementVNode("span",Ep,t.toDisplayString(S.value.length),1),R[14]||(R[14]=t.createTextVNode(" of ")),t.createElementVNode("span",kp,t.toDisplayString(j.value.length),1)]),t.createVNode(Hr,{actions:O.value},null,8,["actions"])])])])):t.createCommentVNode("",!0)]),t.createElementVNode("tbody",Dp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(zt),(K,qt)=>{var Wt,Wn;return t.openBlock(),t.createElementBlock("tr",{key:qt,class:"even:bg-gray-50",onClick:pe=>F.$emit("click:row",K.rowData)},[B.value?(t.openBlock(),t.createElementBlock("td",Sp,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":R[3]||(R[3]=pe=>C.value=pe),class:t.normalizeClass(["h-4 w-4 rounded cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50","border-gray-300 focus:ring-xy-blue-500"]),disabled:!j.value.includes((Wt=K.rowData)==null?void 0:Wt.id),type:"checkbox",value:(Wn=K.rowData)==null?void 0:Wn.id},null,8,_p),[[t.vModelCheckbox,C.value]])])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.cells,(pe,Yt)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("td"),{key:Yt,class:t.normalizeClass(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5",pe.alignment])},{default:t.withCtx(()=>[pe.isComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(pe.val),{key:0})):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(pe.classNames)},t.toDisplayString(t.unref(fe)(pe.val)?"-":String(pe.val)),3))]),_:2},1032,["class"]))),128)),t.unref(oe)?(t.openBlock(),t.createElementBlock("td",vp,[F.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(vn),{key:0,actions:K.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(Hr,{key:1,actions:K.actions},null,8,["actions"]))])):t.createCommentVNode("",!0)],8,Np)}),128)),y.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",Vp,[t.createElementVNode("td",{colspan:t.unref(te).length+(t.unref(oe)?1:0),class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,$p)]))])])]),y.value?(t.openBlock(),t.createElementBlock("div",Tp,[t.createVNode(t.unref(Ur),{modelValue:u.value,"onUpdate:modelValue":[R[4]||(R[4]=K=>u.value=K),R[5]||(R[5]=K=>o())],"page-options":(qn=F.tableOptions)==null?void 0:qn.pageOptions},null,8,["modelValue","page-options"])])):t.createCommentVNode("",!0)])}}}),Mp={class:"flex flex-col items-center space-y-3.5 sm:flex-row sm:space-y-0 sm:gap-x-3 sm:justify-center"},Bp={class:"text-center text-sm text-neutral-700 sm:text-left sm:mr-auto sm:w-1/3"},Pp={class:"font-medium"},Ap={class:"font-medium"},Rp={class:"font-medium"},Op={class:"flex flex-col items-center space-y-3.5 sm:flex-row sm:space-y-0 sm:gap-x-3 sm:flex-1"},Ip={class:"flex gap-3 items-center justify-center shrink-0 md:w-1/2"},Lp=["disabled"],Fp={class:"max-w-[50px]"},jp={class:"text-sm"},Hp={class:"font-medium"},Up=["disabled"],zp={class:"max-w-[150px] sm:ml-auto"},Ur=t.defineComponent({__name:"TablePaginator",props:t.mergeModels({pageOptions:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue"),o=t.computed({get:()=>e.value.page,set:u=>{e.value={...e.value,page:u}}}),a=t.computed({get:()=>e.value.perPage,set:u=>{e.value={...e.value,page:1,perPage:u}}}),s=t.computed(()=>r.pageOptions?r.pageOptions:[{label:"5 per page",value:5},{label:"10 per page",value:10},{label:"20 per page",value:20},{label:"50 per page",value:50}]),i=Vt(u=>{u!==null&&u!==o.value&&(o.value=u)},350),l=Vt(()=>{o.value<=1||(o.value=o.value-1)},250),c=Vt(()=>{o.value>=e.value.totalPages||(o.value=o.value+1)},250),d=t.computed(()=>{const{page:u,perPage:f,totalItems:p}=e.value;return{start:p>0?(u-1)*f+1:0,end:Math.min(u*f,p)}});return(u,f)=>(t.openBlock(),t.createElementBlock("div",Mp,[t.createElementVNode("p",Bp,[f[3]||(f[3]=t.createTextVNode(" Showing ")),t.createElementVNode("span",Pp,t.toDisplayString(d.value.start),1),f[4]||(f[4]=t.createTextVNode(" to ")),t.createElementVNode("span",Ap,t.toDisplayString(d.value.end),1),f[5]||(f[5]=t.createTextVNode(" of ")),t.createElementVNode("span",Rp,t.toDisplayString(e.value.totalItems),1),f[6]||(f[6]=t.createTextVNode(" results "))]),t.createElementVNode("div",Op,[t.createElementVNode("div",Ip,[t.createElementVNode("button",{class:"xy-btn-neutral",disabled:o.value<=1,type:"button",onClick:f[0]||(f[0]=t.withModifiers(p=>o.value--,["prevent"]))},f[7]||(f[7]=[t.createTextVNode(" ← "),t.createElementVNode("span",{class:"sr-only"},"Previous",-1)]),8,Lp),t.createElementVNode("div",Fp,[t.createVNode(t.unref(Jr),{"model-value":o.value,min:1,max:e.value.totalPages,type:"number","onUpdate:modelValue":t.unref(i),onKeydown:[t.withKeys(t.withModifiers(t.unref(l),["prevent"]),["down"]),t.withKeys(t.withModifiers(t.unref(c),["prevent"]),["up"])]},null,8,["model-value","max","onUpdate:modelValue","onKeydown"])]),t.createElementVNode("div",jp,[f[8]||(f[8]=t.createTextVNode(" of ")),t.createElementVNode("span",Hp,t.toDisplayString(e.value.totalPages),1)]),t.createElementVNode("button",{class:"xy-btn-neutral",disabled:o.value>=e.value.totalPages,type:"button",onClick:f[1]||(f[1]=t.withModifiers(p=>o.value++,["prevent"]))},f[9]||(f[9]=[t.createElementVNode("span",{class:"sr-only"},"Next",-1),t.createTextVNode(" → ")]),8,Up)]),t.createElementVNode("div",zp,[t.createVNode(t.unref(Bn),{modelValue:a.value,"onUpdate:modelValue":f[2]||(f[2]=p=>a.value=p),options:s.value},null,8,["modelValue","options"])])])]))}}),qp={class:"hidden sm:block"},Wp=["onClick","textContent"],Ns=t.defineComponent({__name:"Tabs",props:t.mergeModels({pillDesign:{type:Boolean,default:!1},tabs:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue"),o=(s,i)=>{let l="";return r.pillDesign?(l="px-12 py-2 font-semibold text-md leading-5 rounded-t-md focus:outline-none ",e.value===s?l=l+"focus:bg-white text-gray-700 bg-white border-b-2 border-blue-500":l=l+"text-gray-700 hover:text-gray-900 focus:text-gray-900 focus:bg-gray-100 border border-gray-200",l):(l="px-1 py-4 text-sm font-semibold border-b-2 whitespace-nowrap leading-5 focus:outline-none ",e.value===s?l=l+"border-blue-500 text-xy-blue focus:text-blue-800 focus:border-blue-700":l=l+"border-transparent text-gray-700 hover:text-gray-900 hover:border-gray-300 focus:text-gray-900 focus:border-gray-300",i&&(l=l+" ml-8"),l)},a=t.computed(()=>!r.pillDesign);return(s,i)=>{const l=t.resolveComponent("Select");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:t.normalizeClass(["sm:hidden",{"mb-4":s.pillDesign}])},[i[1]||(i[1]=t.createElementVNode("label",{for:"tabs",class:"sr-only"},"Select a tab",-1)),t.createVNode(l,{modelValue:e.value,"onUpdate:modelValue":i[0]||(i[0]=c=>e.value=c),name:"tabs",options:s.tabs},null,8,["modelValue","options"])],2),t.createElementVNode("div",qp,[t.createElementVNode("div",{class:t.normalizeClass({"border-b border-gray-200":a.value})},[t.createElementVNode("nav",{class:t.normalizeClass(["flex",[s.pillDesign?"ml-8":"-mb-px"]])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.tabs,(c,d)=>(t.openBlock(),t.createElementBlock("a",{key:d,href:"#",class:t.normalizeClass(o(c.value,d>0)),onClick:t.withModifiers(u=>e.value=c.value,["prevent"]),textContent:t.toDisplayString(c.label)},null,10,Wp))),128))],2)],2)])])}}}),Yp={key:0,class:"sr-only"},Kp={class:"ml-3 mt-0.5"},Ss=t.defineComponent({inheritAttrs:!1,__name:"Toggle",props:t.mergeModels({label:{default:""},help:{default:""}},{modelValue:{type:Boolean,...J},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=t.useModel(n,"modelValue",J),e=t.useAttrs(),o=t.computed(()=>mr(e,"disabled"));return(a,s)=>(t.openBlock(),t.createBlock(t.unref(cc),{as:"div",class:"flex items-start"},{default:t.withCtx(()=>[t.createVNode(t.unref(dc),{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=i=>r.value=i),class:t.normalizeClass([r.value?"bg-xy-blue":"bg-gray-200",o.value?"opacity-75 cursor-not-allowed":"cursor-pointer","relative inline-flex shrink-0 h-6 w-11 border-2 border-transparent rounded-full transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-xy-blue-500"]),disabled:o.value},{default:t.withCtx(()=>[a.label?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Yp,"Use")),t.createElementVNode("span",{"aria-hidden":"true",class:t.normalizeClass([r.value?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200"])},null,2)]),_:1},8,["modelValue","class","disabled"]),t.createElementVNode("div",Kp,[a.label?(t.openBlock(),t.createBlock(t.unref(uc),{key:0},{default:t.withCtx(()=>[t.createVNode(ge,{label:a.label,class:t.normalizeClass(o.value?"cursor-not-allowed":"cursor-pointer")},null,8,["label","class"])]),_:1})):t.createCommentVNode("",!0),a.help?(t.openBlock(),t.createBlock(t.unref(fc),{key:1},{default:t.withCtx(()=>[t.createVNode(ie,{text:a.help},null,8,["text"])]),_:1})):t.createCommentVNode("",!0)])]),_:1}))}}),Gp={"aria-label":"Progress"},Jp={role:"list",class:"flex items-center"},Xp={class:"absolute inset-0 flex items-center","aria-hidden":"true"},Zp=["aria-current"],Qp={key:1,class:"h-3 w-3 rounded-full bg-xy-blue","aria-hidden":"true"},em={class:"sr-only"},tm={key:2,class:"sr-only"},_s=t.defineComponent({__name:"ProgressCircles",props:{current:{},steps:{}},setup(n){const r=n,e=t.computed(()=>r.steps.map((o,a)=>{let s;return r.current>a?s="complete":r.current===a?s="current":s="incomplete",{name:o.name,description:(o==null?void 0:o.description)||"",status:s}}));return(o,a)=>(t.openBlock(),t.createElementBlock("nav",Gp,[t.createElementVNode("ol",Jp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.value,(s,i)=>(t.openBlock(),t.createElementBlock("li",{key:s.name,class:t.normalizeClass([i!==e.value.length-1?"pr-8":"","relative"])},[t.createElementVNode("div",Xp,[t.createElementVNode("div",{class:t.normalizeClass(["h-0.5 w-full",s.status==="complete"?"bg-xy-blue":"bg-gray-300"])},null,2)]),t.createElementVNode("div",{class:t.normalizeClass({"relative flex h-5 w-5 items-center justify-center rounded-full":!0,"bg-xy-blue":s.status==="complete","border-2 border-indigo-600 bg-white":s.status==="current","border-2 border-gray-300 bg-white":s.status==="incomplete"}),"aria-current":s.status==="current"?!0:void 0},[s.status==="complete"?(t.openBlock(),t.createBlock(t.unref(Ta),{key:0,class:"h-3 w-3 text-white","aria-hidden":"true"})):s.status==="current"?(t.openBlock(),t.createElementBlock("span",Qp)):t.createCommentVNode("",!0),t.createElementVNode("span",em,t.toDisplayString(s.name),1),s.description?(t.openBlock(),t.createElementBlock("span",tm,t.toDisplayString(s.description),1)):t.createCommentVNode("",!0)],10,Zp)],2))),128))])]))}}),nm={"aria-label":"Progress"},rm={role:"list",class:"overflow-hidden"},om=["aria-current"],am={class:"flex h-9 items-center"},sm={key:1,class:"h-2.5 w-2.5 rounded-full bg-xy-blue"},im={class:"ml-4 flex min-w-0 flex-col"},lm={key:0,class:"text-sm text-gray-600"},vs=t.defineComponent({__name:"ProgressCirclesLabeled",props:{current:{},steps:{}},setup(n){const r=n,e=t.computed(()=>r.steps.map((o,a)=>{let s;return r.current>a?s="complete":r.current===a?s="current":s="incomplete",{name:o.name,description:(o==null?void 0:o.description)||"",status:s}}));return(o,a)=>(t.openBlock(),t.createElementBlock("div",nm,[t.createElementVNode("ol",rm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.value,(s,i)=>(t.openBlock(),t.createElementBlock("li",{key:i,class:t.normalizeClass([i!==e.value.length-1?"pb-6":"","relative"])},[i!==e.value.length-1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["absolute left-3 top-3 -ml-px mt-0.5 h-full w-0.5",s.status==="complete"?"bg-xy-blue":"bg-gray-300"]),"aria-hidden":"true"},null,2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"group relative flex items-start","aria-current":s.status==="current"?!0:void 0},[t.createElementVNode("span",am,[t.createElementVNode("span",{class:t.normalizeClass({"relative z-10 flex h-6 w-6 items-center justify-center rounded-full":!0,"bg-xy-blue ":s.status==="complete","border-2 border-xy-blue bg-white":s.status==="current","border-2 border-gray-300 bg-white":s.status==="incomplete"})},[s.status==="complete"?(t.openBlock(),t.createBlock(t.unref(Ta),{key:0,class:"h-4 w-4 text-white","aria-hidden":"true"})):s.status==="current"?(t.openBlock(),t.createElementBlock("span",sm)):t.createCommentVNode("",!0)],2)]),t.createElementVNode("span",im,[t.createElementVNode("span",{class:t.normalizeClass({"text-sm font-bold":!0,"text-gray-800":s.status==="complete","text-xy-blue":s.status==="current","text-gray-600":s.status==="incomplete","mt-2":!s.description})},t.toDisplayString(s.name),3),s.description?(t.openBlock(),t.createElementBlock("span",lm,t.toDisplayString(s.description),1)):t.createCommentVNode("",!0)])],8,om)],2))),128))])]))}}),cm=["id","aria-labelledby","aria-describedby","aria-errormessage","placeholder","type"],Vs=t.defineComponent({inheritAttrs:!1,__name:"BaseInput",props:t.mergeModels(t.mergeDefaults({modelValue:{},type:{},label:{},help:{},placeholder:{}},Ae),{modelValue:{...J,set:n=>props.type==="number"?hr(n):n},modelModifiers:{}}),emits:["update:modelValue"],setup(n,{expose:r}){const e=n,o=t.useModel(n,"modelValue",{...J,set:f=>e.type==="number"?hr(f):f}),a=t.useTemplateRef("input"),{errorState:s,inputID:i,isRequired:l,onInvalid:c,inputValidation:d}=$e(e);r({input:a});const u=t.computed(()=>{switch(e.type){case"number":return{max:Number.MAX_SAFE_INTEGER,min:Number.MIN_SAFE_INTEGER};case"email":return{pattern:qo};case"tel":return{pattern:Wo};case"url":return{pattern:Yo};default:return{}}});return(f,p)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(ge,{id:`${t.unref(i)}-label`,class:"mb-2",for:t.unref(i),label:f.label,required:t.unref(l)},null,8,["id","for","label","required"]),t.withDirectives(t.createElementVNode("input",t.mergeProps({id:t.unref(i),ref:"input","onUpdate:modelValue":p[0]||(p[0]=g=>o.value=g),"aria-labelledby":f.label?`${t.unref(i)}-label`:void 0,"aria-describedby":f.help?`${t.unref(i)}-help`:void 0,"aria-errormessage":t.unref(s)?`${t.unref(i)}-error`:void 0,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200",t.unref(s)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],placeholder:f.placeholder,type:f.type},{...u.value,...f.$attrs},{onInput:p[1]||(p[1]=(...g)=>t.unref(d)&&t.unref(d)(...g)),onInvalid:p[2]||(p[2]=(...g)=>t.unref(c)&&t.unref(c)(...g))}),null,16,cm),[[t.vModelDynamic,o.value,void 0,{trim:!0}]]),t.createVNode(ie,{id:`${t.unref(i)}-help`,class:"mt-1",text:f.help},null,8,["id","text"]),t.createVNode(_e,{id:`${t.unref(i)}-error`,class:"mt-0.5",text:t.unref(s)},null,8,["id","text"])]))}}),dm={class:"relative flex items-start"},um={class:"flex items-center h-5"},fm=["id","aria-labelledby","aria-describedby","aria-errormessage","checked"],pm={class:"ml-3"},$s=t.defineComponent({inheritAttrs:!1,__name:"Checkbox",props:t.mergeModels(t.mergeDefaults({modelValue:{type:[Boolean,null]},label:{},help:{},placeholder:{}},Ae),{modelValue:{type:[Boolean,null],...J},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",J),{aria:o,inputID:a,isDisabled:s,isRequired:i,errorState:l,validate:c,onInvalid:d}=$e(r);return(u,f)=>(t.openBlock(),t.createElementBlock("div",dm,[t.createElementVNode("div",um,[t.withDirectives(t.createElementVNode("input",t.mergeProps({id:t.unref(a),"onUpdate:modelValue":f[0]||(f[0]=p=>e.value=p),"aria-labelledby":t.unref(o).labelledby,"aria-describedby":t.unref(o).describedby,"aria-errormessage":t.unref(o).errormessage,checked:e.value||void 0,class:["h-4 w-4 rounded text-xy-blue cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(l)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],type:"checkbox"},u.$attrs,{onChange:f[1]||(f[1]=(...p)=>t.unref(c)&&t.unref(c)(...p)),onInvalid:f[2]||(f[2]=(...p)=>t.unref(d)&&t.unref(d)(...p))}),null,16,fm),[[t.vModelCheckbox,e.value]])]),t.createElementVNode("div",pm,[t.createVNode(ge,{id:t.unref(o).labelledby,for:t.unref(a),label:u.label,class:t.normalizeClass(t.unref(s)?"cursor-not-allowed":"cursor-pointer"),required:t.unref(i)},null,8,["id","for","label","class","required"]),t.createVNode(ie,{id:t.unref(o).describedby,text:u.help},null,8,["id","text"]),t.createVNode(_e,{id:t.unref(o).errormessage,class:"mt-0.5",text:t.unref(l)},null,8,["id","text"])])]))}}),mm=["id","aria-labelledby","aria-describedby","aria-errormessage","placeholder"],Ts=t.defineComponent({inheritAttrs:!1,__name:"DateTimeInput",props:t.mergeModels(t.mergeDefaults({modelValue:{},label:{},help:{},placeholder:{}},Ae),{modelValue:{...J,get:n=>n&&Ko(n),set:n=>n&&new Date(n).toISOString()},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",{...J,get:c=>c&&Ko(c),set:c=>c&&new Date(c).toISOString()}),{errorState:o,inputID:a,isRequired:s,onInvalid:i,inputValidation:l}=$e(r);return(c,d)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(ge,{id:`${t.unref(a)}-label`,class:"mb-2",for:t.unref(a),label:c.label,required:t.unref(s)},null,8,["id","for","label","required"]),t.withDirectives(t.createElementVNode("input",t.mergeProps({id:t.unref(a),"onUpdate:modelValue":d[0]||(d[0]=u=>e.value=u),"aria-labelledby":c.label?`${t.unref(a)}-label`:void 0,"aria-describedby":c.help?`${t.unref(a)}-help`:void 0,"aria-errormessage":t.unref(o)?`${t.unref(a)}-error`:void 0,class:["block w-full rounded-md border-0 py-2 shadow-sm ring-1 ring-inset focus:ring-2 sm:text-sm sm:leading-6","disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-700 disabled:ring-gray-200",t.unref(o)?"text-red-900 ring-red-700 placeholder:text-red-300 focus:ring-red-700":"text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-xy-blue-500"],placeholder:c.placeholder,type:"datetime-local"},c.$attrs,{onInput:d[1]||(d[1]=(...u)=>t.unref(l)&&t.unref(l)(...u)),onInvalid:d[2]||(d[2]=(...u)=>t.unref(i)&&t.unref(i)(...u))}),null,16,mm),[[t.vModelText,e.value]]),t.createVNode(ie,{id:`${t.unref(a)}-help`,class:"mt-1",text:c.help},null,8,["id","text"]),t.createVNode(_e,{id:`${t.unref(a)}-error`,class:"mt-0.5",text:t.unref(o)},null,8,["id","text"])]))}}),hm={key:0,class:"text-red-700/80"},kt=t.defineComponent({__name:"FieldsetLegend",props:{label:{default:""},required:{type:Boolean,default:!1},tag:{default:"legend"}},setup(n){const r=n,e=t.computed(()=>r.required&&/\*$/gm.exec(r.label)!==null?r.label.substring(0,r.label.length-1):r.label);return(o,a)=>o.label?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.tag),t.mergeProps({key:0,class:"block text-sm leading-6 font-semibold text-gray-800"},o.$attrs),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.value),1),r.required?(t.openBlock(),t.createElementBlock("span",hm,"*")):t.createCommentVNode("",!0)]),_:1},16)):t.createCommentVNode("",!0)}}),gm=["aria-labelledby","aria-describedby","aria-errormessage"],bm={key:0},ym={class:"flex"},wm={class:"flex items-center h-5"},xm=["id","aria-labelledby","aria-describedby","disabled","value"],Cm={class:"ml-3"},Ms=t.defineComponent({inheritAttrs:!1,__name:"MultiCheckboxes",props:t.mergeModels(t.mergeDefaults({max:{},min:{},modelValue:{},options:{},label:{},help:{},placeholder:{},columns:{}},Ae),{modelValue:{...J,get:n=>Array.isArray(n)?n:[]},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,e=t.useModel(n,"modelValue",{...J,get:g=>Array.isArray(g)?g:[]}),{aria:o,inputID:a,isDisabled:s,errorState:i,validate:l}=$e(r),c=t.computed(()=>r.min||null),d=t.computed(()=>r.max||null),u=t.computed(()=>{var h;const g=((h=e.value)==null?void 0:h.length)||0;return c.value!==null&&g<c.value?`Please select at least ${c.value} of these options.`:d.value!==null&&g>d.value?`Please limit your selection to ${d.value} of these options.`:c.value!==null&&d.value!==null&&(g<c.value||g>d.value)?`Please select between ${c.value} and ${d.value} of these options.`:""}),f=t.useTemplateRef("errorInput"),p=()=>{var g;i.value||(i.value=u.value,(g=f.value)==null||g.setCustomValidity(u.value))};return(g,h)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"relative space-y-6","aria-labelledby":t.unref(o).labelledby,"aria-describedby":t.unref(o).describedby,"aria-errormessage":t.unref(o).errormessage},[g.label?(t.openBlock(),t.createElementBlock("div",bm,[t.createVNode(kt,{id:t.unref(o).labelledby,label:g.label,required:!!c.value},null,8,["id","label","required"]),g.help?(t.openBlock(),t.createBlock(ie,{key:0,id:t.unref(o).describedby,class:"mt-1",tag:"p",text:g.help},null,8,["id","text"])):t.createCommentVNode("",!0),t.createVNode(_e,{id:t.unref(o).errormessage,class:"mt-1",text:t.unref(i)},null,8,["id","text"])])):t.createCommentVNode("",!0),t.createElementVNode("div",ym,[t.createElementVNode("div",{class:t.normalizeClass(["grid gap-y-5",{"sm:grid sm:gap-x-10":g.columns!==void 0,"sm:grid-cols-2":g.columns===2,"sm:grid-cols-3":g.columns===3}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.options,(y,w)=>(t.openBlock(),t.createElementBlock("div",{key:y.value,class:"flex items-start"},[t.createElementVNode("div",wm,[t.withDirectives(t.createElementVNode("input",t.mergeProps({id:`${t.unref(a)}-${w}`,"onUpdate:modelValue":h[0]||(h[0]=C=>e.value=C),"aria-labelledby":`${t.unref(a)}-${w}-label`,"aria-describedby":y.help?`${t.unref(a)}-${w}-help`:void 0,disabled:y.disabled,class:["h-4 w-4 rounded cursor-pointer","disabled:bg-gray-100 disabled:border-gray-200 disabled:cursor-not-allowed disabled:opacity-100","checked:disabled:bg-xy-blue checked:disabled:border-xy-blue checked:disabled:opacity-50",t.unref(i)?"border-red-700 focus:ring-red-700":"border-gray-300 focus:ring-xy-blue-500"],type:"checkbox",value:y.value,ref_for:!0},g.$attrs,{onChange:h[1]||(h[1]=(...C)=>t.unref(l)&&t.unref(l)(...C))}),null,16,xm),[[t.vModelCheckbox,e.value]])]),t.createElementVNode("div",Cm,[t.createVNode(ge,{id:`${t.unref(a)}-${w}-label`,for:`${t.unref(a)}-${w}`,label:y.label,class:t.normalizeClass(t.unref(s)||y.disabled?"cursor-not-allowed":"cursor-pointer")},null,8,["id","for","label","class"]),t.createVNode(ie,{id:`${t.unref(a)}-${w}-help`,text:y.help},null,8,["id","text"])])]))),128))],2)]),u.value?(t.openBlock(),t.createElementBlock("input",{key:1,ref:"errorInput",required:"",class:"sr-only top-1 left-1","aria-hidden":"",type:"checkbox",onInvalid:p},null,544)):t.createCommentVNode("",!0)],8,gm))}});function Bs(n){const{anchorOffset:r=0,focusOffset:e=0}=n.ownerDocument.getSelection()||{},o=Math.min(r,e),a=Math.max(r,e);return[o,a]}function Em(n,[r,e]){var o,a,s,i;const l=n.ownerDocument,c=l.createRange();c.setStart(n.firstChild||n,Math.min(r,(a=(o=n.textContent)===null||o===void 0?void 0:o.length)!==null&&a!==void 0?a:0)),c.setEnd(n.lastChild||n,Math.min(e,(i=(s=n.textContent)===null||s===void 0?void 0:s.length)!==null&&i!==void 0?i:0));const d=l.getSelection();d&&(d.removeAllRanges(),d.addRange(c))}class km{constructor(r){this.element=r,this.maxLength=1/0}get value(){return this.element.innerText.replace(/\n\n$/,`
17
17
  `)}set value(r){this.element.innerHTML=r.replace(/\n$/,`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xy-planning-network/trees",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "repository": "github:xy-planning-network/trees",
@@ -4,7 +4,7 @@ import InputHelp from "./InputHelp.vue"
4
4
  import InputError from "./InputError.vue"
5
5
  import flatpickr from "flatpickr"
6
6
  import "flatpickr/dist/flatpickr.min.css"
7
- import { onMounted } from "vue"
7
+ import { onMounted, useTemplateRef } from "vue"
8
8
  import {
9
9
  defaultInputProps,
10
10
  defaultModelOpts,
@@ -17,7 +17,7 @@ defineOptions({
17
17
  })
18
18
 
19
19
  // maxDate/startDate should be used or maxRange.
20
- // The props combination of maxDate/startDate and maxRange
20
+ // The props combination of maxDate/startDate and maxRange
21
21
  // will have unexpected results.
22
22
  const props = withDefaults(defineProps<DateRangeInput>(), {
23
23
  ...defaultInputProps,
@@ -38,9 +38,12 @@ const updateModelState = (value: { minDate: number; maxDate: number }) => {
38
38
  modelState.value = value
39
39
  }
40
40
 
41
+ const wrapper = useTemplateRef("wrapper")
42
+
41
43
  onMounted(() => {
42
44
  const opts: flatpickr.Options.Options = {
43
45
  allowInput: true,
46
+ appendTo: wrapper.value || undefined,
44
47
  dateFormat: "m-d-Y",
45
48
  mode: "range",
46
49
  maxDate: props.maxDate,
@@ -60,6 +63,7 @@ onMounted(() => {
60
63
  })
61
64
  }
62
65
  },
66
+ static: true,
63
67
  }
64
68
 
65
69
  // Handle initial values if set
@@ -100,7 +104,7 @@ onMounted(() => {
100
104
  </script>
101
105
 
102
106
  <template>
103
- <div>
107
+ <div ref="wrapper">
104
108
  <InputLabel
105
109
  :id="aria.labelledby"
106
110
  class="mb-2"
@@ -130,3 +134,9 @@ onMounted(() => {
130
134
  <InputError :id="aria.errormessage" class="mt-0.5" :text="errorState" />
131
135
  </div>
132
136
  </template>
137
+
138
+ <style lang="postcss">
139
+ .flatpickr-wrapper {
140
+ display: block;
141
+ }
142
+ </style>
@@ -25,5 +25,7 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
25
25
  startDate: string | number | Date;
26
26
  help: string;
27
27
  placeholder: string;
28
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
29
+ wrapper: HTMLDivElement;
30
+ }, any>;
29
31
  export default _default;