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.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22511d72c9065fbb776ed546dd2522554cdface044c11d6418b81807a32793f5
4
- data.tar.gz: 4bd69e6ec75df792913f43dcd2e39d892cf5299e596647e78545cc7bf49fac03
3
+ metadata.gz: 2e54bc1e7a03908a2868d5d9033ee9f8bd9b928113cff389fbbb3bea423f43fa
4
+ data.tar.gz: 873b114da5fb663ffb558d5583917c10a6e6733a777925b93d0bde96d532ed40
5
5
  SHA512:
6
- metadata.gz: 1d16808f6a6a533e1fd4b942fb303a8c5af1286a245bd532e1a71bcf2f9302f548c49bc9e50821e4cfc1b1cb92388e3d92f0dc7dba3cfb38c2b957aab3e0f984
7
- data.tar.gz: c063076faed31f2d712a7c44e76db798ac99e7f37ae18fb4132217ac7980d6da8b79ecaae2b4ea5d526e1cccd0b4688694c4010375c549ad6850bcc039d3088b
6
+ metadata.gz: 5712e7794346582747ad3dfe4e1bf7a380e542f3ed27c643432006f78034a0d71d3d296107dfe44b9675604a10840396df578263dc48fa0a0b0d52f9da9f2168
7
+ data.tar.gz: 62c2e65a1d1a762f223aa9f944fe7847f25c6d370000621aa0de807c38c027849248601f0d08b802134728cdba20a9a10e8c875591f3d35efd7978484c72fc14
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (2.5.2.pre.4)
4
+ avo (2.5.2.pre.5)
5
5
  active_link_to
6
6
  addressable
7
7
  breadcrumbs_on_rails
@@ -248,6 +248,8 @@ GEM
248
248
  nokogiri (1.13.4)
249
249
  mini_portile2 (~> 2.8.0)
250
250
  racc (~> 1.4)
251
+ nokogiri (1.13.4-x86_64-linux)
252
+ racc (~> 1.4)
251
253
  orm_adapter (0.5.0)
252
254
  pagy (5.10.1)
253
255
  activesupport
@@ -6343,6 +6343,11 @@ progress[value]::-moz-progress-bar{
6343
6343
  margin-bottom:2px
6344
6344
  }
6345
6345
 
6346
+ .mx-2{
6347
+ margin-left:0.5rem;
6348
+ margin-right:0.5rem
6349
+ }
6350
+
6346
6351
  .mt-2{
6347
6352
  margin-top:0.5rem
6348
6353
  }
@@ -6719,6 +6724,10 @@ progress[value]::-moz-progress-bar{
6719
6724
  flex-grow:0
6720
6725
  }
6721
6726
 
6727
+ .basis-1\/3{
6728
+ flex-basis:33.333333%
6729
+ }
6730
+
6722
6731
  .-translate-x-1\/2{
6723
6732
  --tw-translate-x:-50%;
6724
6733
  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))
@@ -6739,6 +6748,11 @@ progress[value]::-moz-progress-bar{
6739
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))
6740
6749
  }
6741
6750
 
6751
+ .rotate-180{
6752
+ --tw-rotate:180deg;
6753
+ 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))
6754
+ }
6755
+
6742
6756
  .transform{
6743
6757
  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
6758
  }
@@ -7449,6 +7463,11 @@ progress[value]::-moz-progress-bar{
7449
7463
  padding-bottom:2rem
7450
7464
  }
7451
7465
 
7466
+ .px-8{
7467
+ padding-left:2rem;
7468
+ padding-right:2rem
7469
+ }
7470
+
7452
7471
  .pl-4{
7453
7472
  padding-left:1rem
7454
7473
  }
@@ -7497,6 +7516,26 @@ progress[value]::-moz-progress-bar{
7497
7516
  padding-top:0.5rem
7498
7517
  }
7499
7518
 
7519
+ .pl-8{
7520
+ padding-left:2rem
7521
+ }
7522
+
7523
+ .pr-6{
7524
+ padding-right:1.5rem
7525
+ }
7526
+
7527
+ .pr-4{
7528
+ padding-right:1rem
7529
+ }
7530
+
7531
+ .pr-2{
7532
+ padding-right:0.5rem
7533
+ }
7534
+
7535
+ .pl-2{
7536
+ padding-left:0.5rem
7537
+ }
7538
+
7500
7539
  .text-left{
7501
7540
  text-align:left
7502
7541
  }
@@ -8137,6 +8176,11 @@ trix-editor {
8137
8176
  background-color:rgb(230 243 252 / var(--tw-bg-opacity))
8138
8177
  }
8139
8178
 
8179
+ .hover\:bg-gray-50:hover{
8180
+ --tw-bg-opacity:1;
8181
+ background-color:rgb(241 242 243 / var(--tw-bg-opacity))
8182
+ }
8183
+
8140
8184
  .hover\:text-gray-500:hover{
8141
8185
  --tw-text-opacity:1;
8142
8186
  color:rgb(117 125 138 / var(--tw-text-opacity))
@@ -8685,6 +8729,10 @@ trix-editor {
8685
8729
  grid-column:span 6 / span 6
8686
8730
  }
8687
8731
 
8732
+ .sm\:block{
8733
+ display:block
8734
+ }
8735
+
8688
8736
  .sm\:flex{
8689
8737
  display:flex
8690
8738
  }
@@ -8791,6 +8839,10 @@ trix-editor {
8791
8839
  width:66.666667%
8792
8840
  }
8793
8841
 
8842
+ .md\:basis-1\/3{
8843
+ flex-basis:33.333333%
8844
+ }
8845
+
8794
8846
  .md\:grid-cols-3{
8795
8847
  grid-template-columns:repeat(3, minmax(0, 1fr))
8796
8848
  }
@@ -8823,6 +8875,10 @@ trix-editor {
8823
8875
  }
8824
8876
 
8825
8877
  @media (min-width: 1024px){
8878
+ .lg\:block{
8879
+ display:block
8880
+ }
8881
+
8826
8882
  .lg\:flex{
8827
8883
  display:flex
8828
8884
  }
@@ -8857,6 +8913,10 @@ trix-editor {
8857
8913
  background-color:transparent
8858
8914
  }
8859
8915
 
8916
+ .lg\:p-4{
8917
+ padding:1rem
8918
+ }
8919
+
8860
8920
  .lg\:px-8{
8861
8921
  padding-left:2rem;
8862
8922
  padding-right:2rem
@@ -8872,9 +8932,22 @@ trix-editor {
8872
8932
  padding-bottom:2rem
8873
8933
  }
8874
8934
 
8935
+ .lg\:px-2{
8936
+ padding-left:0.5rem;
8937
+ padding-right:0.5rem
8938
+ }
8939
+
8875
8940
  .lg\:pl-64{
8876
8941
  padding-left:16rem
8877
8942
  }
8943
+
8944
+ .lg\:pl-2{
8945
+ padding-left:0.5rem
8946
+ }
8947
+
8948
+ .lg\:pl-4{
8949
+ padding-left:1rem
8950
+ }
8878
8951
  }
8879
8952
 
8880
8953
  @media (min-width: 1280px){
@@ -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.