avo 2.5.2.pre.4 → 2.5.2.pre.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of avo might be problematic. Click here for more details.

@@ -1,4 +1,4 @@
1
- <td class="min-h-[3rem] px-3 leading-tight whitespace-nowrap h-full text-slate-800 text-sm <%= classes %>" data-field-id="<%= @field.id %>" data-field-type="<%= @field.type %>">
1
+ <td class="min-h-[3rem] px-3 leading-tight whitespace-nowrap h-full text-slate-800 text-base <%= classes %>" data-field-id="<%= @field.id %>" data-field-type="<%= @field.type %>">
2
2
  <% if @field.value.blank? && @dash_if_blank %>
3
3
 
4
4
  <% else %>
@@ -1,5 +1,5 @@
1
1
  <tr
2
- class="bg-white hover:bg-blue-50 hover:shadow-row hover:z-[21] relative z-20 border-b"
2
+ class="bg-white hover:bg-gray-50 hover:shadow-row hover:z-[21] relative z-20 border-b"
3
3
  <%== item_selector_init @resource %>
4
4
  >
5
5
  <% if @resource.record_selector %>
@@ -7,12 +7,14 @@
7
7
  <% end %>
8
8
  >
9
9
  <% if item.name.present? %>
10
- <div class="flex justify-between px-10 pt-2 pb-0 text-gray-600 ">
10
+ <div
11
+ class="flex justify-between px-10 pt-2 pb-0 text-gray-400"
12
+ >
11
13
  <div class="flex items-center text-xs uppercase font-semibold leading-none">
12
14
  <%= item.name %>
13
15
  </div>
14
16
  <% if collapsable %>
15
- <div class="cursor-pointer <%= 'rotate-90' if collapsed %>"
17
+ <div class="cursor-pointer <%= 'rotate-180' if collapsed %>"
16
18
  data-action="click->menu#triggerCollapse"
17
19
  data-menu-target="svg"
18
20
  data-menu-key-param="<%= key %>"
@@ -3,7 +3,7 @@
3
3
  <span class="min-w-[20px]"><%= icon %></span> <span><%= label %></span>
4
4
  </div>
5
5
  <% if collapsable %>
6
- <div class="cursor-pointer <%= 'rotate-90' if collapsed %>"
6
+ <div class="cursor-pointer <%= 'rotate-180' if collapsed %>"
7
7
  data-action="click->menu#triggerCollapse"
8
8
  data-menu-key-param="<%= key %>"
9
9
  data-menu-target="svg"
@@ -1,5 +1,5 @@
1
1
  <div
2
- class="fixed z-[60] t-0 application-sidebar hidden lg:flex flex-1 border-r lg:border-none bg-none min-w-[16rem] h-[calc(100vh-4rem)] bg-gray-50 lg:bg-transparent <%= 'print:hidden' if Avo.configuration.hide_layout_when_printing %>"
2
+ class="fixed z-[60] t-0 application-sidebar hidden lg:flex flex-1 border-r lg:border-none bg-none min-w-[16rem] h-[calc(100vh-4rem)] bg-gray-25 lg:bg-transparent <%= 'print:hidden' if Avo.configuration.hide_layout_when_printing %>"
3
3
  data-mobile-target="sidebar"
4
4
  >
5
5
  <div class="flex flex-col w-full h-full">
@@ -54,12 +54,12 @@ export default class extends Controller {
54
54
  }
55
55
 
56
56
  markCollapsed() {
57
- this.svgTarget.classList.add('rotate-90')
57
+ this.svgTarget.classList.add('rotate-180')
58
58
  this.itemsTarget.classList.add('hidden')
59
59
  }
60
60
 
61
61
  markExpanded() {
62
- this.svgTarget.classList.remove('rotate-90')
62
+ this.svgTarget.classList.remove('rotate-180')
63
63
  this.itemsTarget.classList.remove('hidden')
64
64
  }
65
65
  }
@@ -4,12 +4,9 @@
4
4
  >
5
5
  <div class="flex items-center space-x-2 lg:space-x-0 w-64">
6
6
  <%= a_button class: 'lg:hidden', icon: 'menu', size: :xs, compact: true, style: :text, data: { action: 'click->mobile#toggleSidebar' } %>
7
-
8
7
  <%= render partial: "avo/partials/logo" %>
9
8
  </div>
10
-
11
-
12
- <div class="flex-1 flex items-center justify-between lg:justify-start space-x-8 pl-4">
9
+ <div class="flex-1 flex items-center justify-between lg:justify-start space-x-8 lg:pl-4">
13
10
  <div class="flex">
14
11
  <%= render partial: "avo/partials/global_search" if ::Avo::App.license.has_with_trial(:global_search) && ::Avo.configuration.feature_enabled?(:global_search) %>
15
12
  </div>
@@ -29,8 +29,9 @@
29
29
  sort_by = field.id
30
30
  sort_direction = 'desc'
31
31
  end
32
- classes = "text-gray-500 tracking-tight leading-tight text-sm font-semibold" %>
33
- <th class="text-left uppercase px-3 py-4 whitespace-nowrap rounded-l">
32
+ classes = "text-gray-500 tracking-tight leading-tight text-xs font-semibold"
33
+ %>
34
+ <th class="text-left uppercase px-3 py-2 whitespace-nowrap rounded-l">
34
35
  <% if field.sortable %>
35
36
  <%= link_to params.permit!.merge(sort_by: sort_by, sort_direction: sort_direction), class: "flex items-center #{classes} #{'cursor-pointer' if field.sortable}", 'data-turbo-frame': params[:turbo_frame] do %>
36
37
  <%= field.name %>
@@ -25,7 +25,7 @@
25
25
  <div class="flex-1 flex pt-16 relative">
26
26
  <%= render Avo::SidebarComponent.new %>
27
27
  <div class="lg:pl-64 flex-1 flex flex-col min-h-full max-w-full">
28
- <div class="content py-4 lg:py-8 px-4 lg:px-8 flex-1 flex flex-col justify-between items-stretch <%= @container_classes %>">
28
+ <div class="content py-4 lg:p-4 px-4 flex-1 flex flex-col justify-between items-stretch <%= @container_classes %>">
29
29
  <%= render partial: "avo/partials/custom_tools_alert" if @custom_tools_alert_visible %>
30
30
  <div class="flex flex-1 flex-col justify-between items-stretch space-y-8">
31
31
  <%= yield %>
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "2.5.2.pre.4" unless const_defined?(:VERSION)
2
+ VERSION = "2.5.2.pre.5" unless const_defined?(:VERSION)
3
3
  end
@@ -6739,6 +6739,11 @@ progress[value]::-moz-progress-bar{
6739
6739
  transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
6740
6740
  }
6741
6741
 
6742
+ .rotate-180{
6743
+ --tw-rotate:180deg;
6744
+ transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
6745
+ }
6746
+
6742
6747
  .transform{
6743
6748
  transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
6744
6749
  }
@@ -7278,14 +7283,14 @@ progress[value]::-moz-progress-bar{
7278
7283
  background-color:rgb(47 50 55 / var(--tw-bg-opacity))
7279
7284
  }
7280
7285
 
7281
- .bg-gray-50{
7286
+ .bg-application{
7282
7287
  --tw-bg-opacity:1;
7283
- background-color:rgb(241 242 243 / var(--tw-bg-opacity))
7288
+ background-color:rgb(229 235 240 / var(--tw-bg-opacity))
7284
7289
  }
7285
7290
 
7286
- .bg-application{
7291
+ .bg-gray-50{
7287
7292
  --tw-bg-opacity:1;
7288
- background-color:rgb(229 235 240 / var(--tw-bg-opacity))
7293
+ background-color:rgb(241 242 243 / var(--tw-bg-opacity))
7289
7294
  }
7290
7295
 
7291
7296
  .bg-blue-500{
@@ -7449,10 +7454,6 @@ progress[value]::-moz-progress-bar{
7449
7454
  padding-bottom:2rem
7450
7455
  }
7451
7456
 
7452
- .pl-4{
7453
- padding-left:1rem
7454
- }
7455
-
7456
7457
  .pb-1{
7457
7458
  padding-bottom:0.25rem
7458
7459
  }
@@ -7543,16 +7544,16 @@ progress[value]::-moz-progress-bar{
7543
7544
  line-height:1.75rem
7544
7545
  }
7545
7546
 
7546
- .text-2xl{
7547
- font-size:1.5rem;
7548
- line-height:2rem
7549
- }
7550
-
7551
7547
  .text-xs{
7552
7548
  font-size:0.75rem;
7553
7549
  line-height:1rem
7554
7550
  }
7555
7551
 
7552
+ .text-2xl{
7553
+ font-size:1.5rem;
7554
+ line-height:2rem
7555
+ }
7556
+
7556
7557
  .font-semibold{
7557
7558
  font-weight:600
7558
7559
  }
@@ -8132,9 +8133,9 @@ trix-editor {
8132
8133
  background-color:rgb(6 107 178 / var(--tw-bg-opacity))
8133
8134
  }
8134
8135
 
8135
- .hover\:bg-blue-50:hover{
8136
+ .hover\:bg-gray-50:hover{
8136
8137
  --tw-bg-opacity:1;
8137
- background-color:rgb(230 243 252 / var(--tw-bg-opacity))
8138
+ background-color:rgb(241 242 243 / var(--tw-bg-opacity))
8138
8139
  }
8139
8140
 
8140
8141
  .hover\:text-gray-500:hover{
@@ -8857,6 +8858,10 @@ trix-editor {
8857
8858
  background-color:transparent
8858
8859
  }
8859
8860
 
8861
+ .lg\:p-4{
8862
+ padding:1rem
8863
+ }
8864
+
8860
8865
  .lg\:px-8{
8861
8866
  padding-left:2rem;
8862
8867
  padding-right:2rem
@@ -8867,9 +8872,8 @@ trix-editor {
8867
8872
  padding-right:1rem
8868
8873
  }
8869
8874
 
8870
- .lg\:py-8{
8871
- padding-top:2rem;
8872
- padding-bottom:2rem
8875
+ .lg\:pl-4{
8876
+ padding-left:1rem
8873
8877
  }
8874
8878
 
8875
8879
  .lg\:pl-64{
@@ -91,7 +91,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
91
91
  />`}setOptions(){let r;try{r=JSON.parse(this.controllerTarget.dataset.options)}catch(e){r={}}this.options=Mc(Fs({},r),{inputClasses:this.controllerTarget.dataset.inputClasses,editable:Kn(this.controllerTarget.dataset.editable)})}};ft(yw,"targets",["input","controller","rows"])});var oI,_te=te(()=>{gr();oI=class extends ht{constructor(){super(...arguments);ft(this,"spinnerMarkup",`<div class="button-spinner">
92
92
  <div class="double-bounce1"></div>
93
93
  <div class="double-bounce2"></div>
94
- </div>`);ft(this,"confirmed",!1)}connect(){this.context.scope.element.addEventListener("click",r=>{this.confirmationMessage?this.confirmed||(r.preventDefault(),window.confirm(this.confirmationMessage)&&this.applyLoader()):this.applyLoader()})}get button(){return this.context.scope.element}get confirmationMessage(){return this.context.scope.element.getAttribute("data-avo-confirm")}applyLoader(){let{button:r}=this;r.style.width=`${r.getBoundingClientRect().width}px`,r.style.height=`${r.getBoundingClientRect().height}px`,r.innerHTML=this.spinnerMarkup,r.classList.add("justify-center"),setTimeout(()=>{this.markConfirmed(),r.click(),r.setAttribute("disabled","disabled")},1)}markConfirmed(){this.confirmed=!0}markUnconfirmed(){this.confirmed=!1}}});var bw,Ste=te(()=>{gr();bw=class extends ht{constructor(){super(...arguments);ft(this,"collapsed",!0)}get key(){return this.selfTarget.getAttribute("data-menu-key-param")}get defaultState(){return this.selfTarget.getAttribute("data-menu-default-collapsed-state")}get userState(){return window.localStorage.getItem(this.key)}set userState(r){window.localStorage.setItem(this.key,r)}get initiallyCollapsed(){return this.userState==="collapsed"||this.defaultState==="collapsed"?!0:(this.userState==="expanded"||this.defaultState==="expanded",!1)}connect(){this.initiallyCollapsed?(this.collapsed=!0,this.markCollapsed()):(this.collapsed=!1,this.markExpanded())}triggerCollapse(){this.collapsed=!this.collapsed,this.userState=this.collapsed?"collapsed":"expanded",this.updateDom()}updateDom(){this.collapsed?this.markCollapsed():this.markExpanded()}markCollapsed(){this.svgTarget.classList.add("rotate-90"),this.itemsTarget.classList.add("hidden")}markExpanded(){this.svgTarget.classList.remove("rotate-90"),this.itemsTarget.classList.remove("hidden")}};ft(bw,"targets",["svg","items","self"])});var xw,kte=te(()=>{gr();xw=class extends ht{toggleSidebar(){this.sidebarTarget.classList.toggle("hidden")}};ft(xw,"targets",["sidebar"])});var ww,Ete=te(()=>{gr();ww=class extends ht{close(){this.modalTarget.remove(),document.dispatchEvent(new Event("actions-modal:close"))}delayedClose(){let r=this;setTimeout(()=>{r.modalTarget.remove(),document.dispatchEvent(new Event("actions-modal:close"))},500)}};ft(ww,"targets",["modal"])});var _w,Cte=te(()=>{bd();_w=class extends Yi{getFilterValue(){let r=Array.from(this.selectorTarget.selectedOptions).map(({value:e})=>e);return r.length===0?null:r}getFilterClass(){let{filterClass:r}=this.selectorTarget.dataset;return r}};ft(_w,"targets",["selector"])});var Sw,Ate=te(()=>{gr();Sw=class extends ht{get turboFrame(){return this.selectorTarget.dataset.turboFrame}reload(){document.querySelector(`[data-per-page-option="${this.selectorTarget.value}"][data-turbo-frame="${this.turboFrame}"]`).click()}};ft(Sw,"targets",["selector"])});function wg(r){return{current:r}}var Tte=te(()=>{});function aI(r,e){var t=void 0;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];t&&clearTimeout(t),t=setTimeout(function(){return r.apply(void 0,i)},e)}}var Dte=te(()=>{});function kw(){return"autocomplete-".concat(oVe++)}var oVe,Ote=te(()=>{oVe=0});function Pd(r,e){return e.reduce(function(t,n){return t&&t[n]},r)}var Mte=te(()=>{});function Al(r){return r.collections.length===0?0:r.collections.reduce(function(e,t){return e+t.items.length},0)}var Ite=te(()=>{});var Pte=te(()=>{});var Lte=te(()=>{});var qte=te(()=>{});var Rte=te(()=>{});var Xu=te(()=>{Tte();Dte();Ote();Mte();Ite();Pte();Lte();qte();Rte()});function Fte(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function aVe(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Fte(Object(t),!0).forEach(function(n){sVe(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Fte(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function sVe(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Nte(r,e,t){var n=e.initialState;return{getState:function(){return n},dispatch:function(o,a){var s=aVe({},n);n=r(n,{type:o,props:e,payload:a}),t({state:n,prevState:s})}}}var Bte=te(()=>{});var jte=te(()=>{});function Ld(r){return r.reduce(function(e,t){return e.concat(t)},[])}var zte=te(()=>{});function sI(r,e,t,n){if(r<0&&(e===null||n!==null&&e===0))return t+r;var i=(e===null?-1:e)+r;return i<=-1||i>=t?n===null?null:0:i}var Hte=te(()=>{});var Wte,lI=te(()=>{Wte=function(){}});function Ute(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function lVe(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ute(Object(t),!0).forEach(function(n){uVe(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Ute(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function uVe(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Ew(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ew=function(t){return typeof t}:Ew=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ew(r)}function Vte(r,e){var t=[];return Promise.resolve(r(e)).then(function(n){return Array.isArray(n),"The `getSources` function must return an array of sources but returned type ".concat(JSON.stringify(Ew(n)),`:
94
+ </div>`);ft(this,"confirmed",!1)}connect(){this.context.scope.element.addEventListener("click",r=>{this.confirmationMessage?this.confirmed||(r.preventDefault(),window.confirm(this.confirmationMessage)&&this.applyLoader()):this.applyLoader()})}get button(){return this.context.scope.element}get confirmationMessage(){return this.context.scope.element.getAttribute("data-avo-confirm")}applyLoader(){let{button:r}=this;r.style.width=`${r.getBoundingClientRect().width}px`,r.style.height=`${r.getBoundingClientRect().height}px`,r.innerHTML=this.spinnerMarkup,r.classList.add("justify-center"),setTimeout(()=>{this.markConfirmed(),r.click(),r.setAttribute("disabled","disabled")},1)}markConfirmed(){this.confirmed=!0}markUnconfirmed(){this.confirmed=!1}}});var bw,Ste=te(()=>{gr();bw=class extends ht{constructor(){super(...arguments);ft(this,"collapsed",!0)}get key(){return this.selfTarget.getAttribute("data-menu-key-param")}get defaultState(){return this.selfTarget.getAttribute("data-menu-default-collapsed-state")}get userState(){return window.localStorage.getItem(this.key)}set userState(r){window.localStorage.setItem(this.key,r)}get initiallyCollapsed(){return this.userState==="collapsed"||this.defaultState==="collapsed"?!0:(this.userState==="expanded"||this.defaultState==="expanded",!1)}connect(){this.initiallyCollapsed?(this.collapsed=!0,this.markCollapsed()):(this.collapsed=!1,this.markExpanded())}triggerCollapse(){this.collapsed=!this.collapsed,this.userState=this.collapsed?"collapsed":"expanded",this.updateDom()}updateDom(){this.collapsed?this.markCollapsed():this.markExpanded()}markCollapsed(){this.svgTarget.classList.add("rotate-180"),this.itemsTarget.classList.add("hidden")}markExpanded(){this.svgTarget.classList.remove("rotate-180"),this.itemsTarget.classList.remove("hidden")}};ft(bw,"targets",["svg","items","self"])});var xw,kte=te(()=>{gr();xw=class extends ht{toggleSidebar(){this.sidebarTarget.classList.toggle("hidden")}};ft(xw,"targets",["sidebar"])});var ww,Ete=te(()=>{gr();ww=class extends ht{close(){this.modalTarget.remove(),document.dispatchEvent(new Event("actions-modal:close"))}delayedClose(){let r=this;setTimeout(()=>{r.modalTarget.remove(),document.dispatchEvent(new Event("actions-modal:close"))},500)}};ft(ww,"targets",["modal"])});var _w,Cte=te(()=>{bd();_w=class extends Yi{getFilterValue(){let r=Array.from(this.selectorTarget.selectedOptions).map(({value:e})=>e);return r.length===0?null:r}getFilterClass(){let{filterClass:r}=this.selectorTarget.dataset;return r}};ft(_w,"targets",["selector"])});var Sw,Ate=te(()=>{gr();Sw=class extends ht{get turboFrame(){return this.selectorTarget.dataset.turboFrame}reload(){document.querySelector(`[data-per-page-option="${this.selectorTarget.value}"][data-turbo-frame="${this.turboFrame}"]`).click()}};ft(Sw,"targets",["selector"])});function wg(r){return{current:r}}var Tte=te(()=>{});function aI(r,e){var t=void 0;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];t&&clearTimeout(t),t=setTimeout(function(){return r.apply(void 0,i)},e)}}var Dte=te(()=>{});function kw(){return"autocomplete-".concat(oVe++)}var oVe,Ote=te(()=>{oVe=0});function Pd(r,e){return e.reduce(function(t,n){return t&&t[n]},r)}var Mte=te(()=>{});function Al(r){return r.collections.length===0?0:r.collections.reduce(function(e,t){return e+t.items.length},0)}var Ite=te(()=>{});var Pte=te(()=>{});var Lte=te(()=>{});var qte=te(()=>{});var Rte=te(()=>{});var Xu=te(()=>{Tte();Dte();Ote();Mte();Ite();Pte();Lte();qte();Rte()});function Fte(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function aVe(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Fte(Object(t),!0).forEach(function(n){sVe(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Fte(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function sVe(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Nte(r,e,t){var n=e.initialState;return{getState:function(){return n},dispatch:function(o,a){var s=aVe({},n);n=r(n,{type:o,props:e,payload:a}),t({state:n,prevState:s})}}}var Bte=te(()=>{});var jte=te(()=>{});function Ld(r){return r.reduce(function(e,t){return e.concat(t)},[])}var zte=te(()=>{});function sI(r,e,t,n){if(r<0&&(e===null||n!==null&&e===0))return t+r;var i=(e===null?-1:e)+r;return i<=-1||i>=t?n===null?null:0:i}var Hte=te(()=>{});var Wte,lI=te(()=>{Wte=function(){}});function Ute(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function lVe(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ute(Object(t),!0).forEach(function(n){uVe(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Ute(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function uVe(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Ew(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ew=function(t){return typeof t}:Ew=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ew(r)}function Vte(r,e){var t=[];return Promise.resolve(r(e)).then(function(n){return Array.isArray(n),"The `getSources` function must return an array of sources but returned type ".concat(JSON.stringify(Ew(n)),`:
95
95
 
96
96
  `).concat(JSON.stringify(n,null,2)),Promise.all(n.filter(function(i){return Boolean(i)}).map(function(i){if(i.sourceId,t.includes(i.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(i.sourceId)," is not unique."));t.push(i.sourceId);var o=lVe({getItemInputValue:function(s){var u=s.state;return u.query},getItemUrl:function(){},onSelect:function(s){var u=s.setIsOpen;u(!1)},onActive:Wte},i);return Promise.resolve(o)}))})}var $te=te(()=>{lI()});function cVe(r){var e=r.collections.map(function(n){return n.items.length}).reduce(function(n,i,o){var a=n[o-1]||0,s=a+i;return n.push(s),n},[]),t=e.reduce(function(n,i){return i<=r.activeItemId?n+1:n},0);return r.collections[t]}function fVe(r){for(var e=r.state,t=r.collection,n=!1,i=0,o=0;n===!1;){var a=e.collections[i];if(a===t){n=!0;break}o+=a.items.length,i++}return e.activeItemId-o}function Oa(r){var e=cVe(r);if(!e)return null;var t=e.items[fVe({state:r,collection:e})],n=e.source,i=n.getItemInputValue({item:t,state:r}),o=n.getItemUrl({item:t,state:r});return{item:t,itemInputValue:i,itemUrl:o,source:n}}var Yte=te(()=>{});function uI(r,e){return r===e||r.contains(e)}var Kte=te(()=>{});function Gte(r){return{results:r,hits:r.map(function(e){return e.hits}).filter(Boolean),facetHits:r.map(function(e){var t;return(t=e.facetHits)===null||t===void 0?void 0:t.map(function(n){return{label:n.value,count:n.count,_highlightResult:{label:{value:n.highlighted}}}})}).filter(Boolean)}}var Xte=te(()=>{});var ws=te(()=>{jte();zte();Hte();$te();Yte();Kte();Xte();lI()});function Qte(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function Cw(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Qte(Object(t),!0).forEach(function(n){dVe(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Qte(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function dVe(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Zte(r){var e=r.store,t=function(f){e.dispatch("setActiveItemId",f)},n=function(f){e.dispatch("setQuery",f)},i=function(f){var c=0,h=f.map(function(p){return Cw(Cw({},p),{},{items:Ld(p.items).map(function(m){return Cw(Cw({},m),{},{__autocomplete_id:c++})})})});e.dispatch("setCollections",h)},o=function(f){e.dispatch("setIsOpen",f)},a=function(f){e.dispatch("setStatus",f)},s=function(f){e.dispatch("setContext",f)};return{setActiveItemId:t,setQuery:n,setCollections:i,setIsOpen:o,setStatus:a,setContext:s}}var Jte=te(()=>{ws()});function hVe(r){return vVe(r)||gVe(r)||mVe(r)||pVe()}function pVe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
97
97
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mVe(r,e){if(!!r){if(typeof r=="string")return cI(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return cI(r,e)}}function gVe(r){if(typeof Symbol<"u"&&Symbol.iterator in Object(r))return Array.from(r)}function vVe(r){if(Array.isArray(r))return cI(r)}function cI(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function ere(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function qd(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ere(Object(t),!0).forEach(function(n){yVe(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ere(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function yVe(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function tre(r,e){var t,n=typeof window<"u"?window:{},i=r.plugins||[];return qd(qd({debug:!1,openOnFocus:!1,placeholder:"",autoFocus:!1,defaultActiveItemId:null,stallThreshold:300,environment:n,shouldPanelOpen:function(a){var s=a.state;return Al(s)>0}},r),{},{id:(t=r.id)!==null&&t!==void 0?t:kw(),plugins:i,initialState:qd({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},r.initialState),onStateChange:function(a){var s;(s=r.onStateChange)===null||s===void 0||s.call(r,a),i.forEach(function(u){var f;return(f=u.onStateChange)===null||f===void 0?void 0:f.call(u,a)})},onSubmit:function(a){var s;(s=r.onSubmit)===null||s===void 0||s.call(r,a),i.forEach(function(u){var f;return(f=u.onSubmit)===null||f===void 0?void 0:f.call(u,a)})},onReset:function(a){var s;(s=r.onReset)===null||s===void 0||s.call(r,a),i.forEach(function(u){var f;return(f=u.onReset)===null||f===void 0?void 0:f.call(u,a)})},getSources:function(a){return Promise.all([].concat(hVe(i.map(function(s){return s.getSources})),[r.getSources]).filter(Boolean).map(function(s){return Vte(s,a)})).then(function(s){return Ld(s)}).then(function(s){return s.map(function(u){return qd(qd({},u),{},{onSelect:function(c){u.onSelect(c),e.forEach(function(h){var p;return(p=h.onSelect)===null||p===void 0?void 0:p.call(h,c)})},onActive:function(c){u.onActive(c),e.forEach(function(h){var p;return(p=h.onActive)===null||p===void 0?void 0:p.call(h,c)})}})})})},navigator:qd({navigate:function(a){var s=a.itemUrl;n.location.assign(s)},navigateNewTab:function(a){var s=a.itemUrl,u=n.open(s,"_blank","noopener");u?.focus()},navigateNewWindow:function(a){var s=a.itemUrl;n.open(s,"_blank","noopener")}},r.navigator)})}var fI=te(()=>{Xu();ws()});function Tw(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tw=function(t){return typeof t}:Tw=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tw(r)}function bVe(r){return SVe(r)||_Ve(r)||wVe(r)||xVe()}function xVe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.