mealz-components 2.1.2 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/dist/add-to-cart-cta/add-to-cart-cta.min.js +1 -1
  2. package/dist/assets/{OperatorSubscriber-DTLDfxTG.js → OperatorSubscriber-B37s2U6v.js} +1 -1
  3. package/dist/assets/{async-CmPLa8Kr.js → async-guWcMFmJ.js} +1 -1
  4. package/dist/assets/{combineLatest-BHklsKG3.js → combineLatest-qLpwa5de.js} +1 -1
  5. package/dist/assets/{debounceTime-D-8QwBTO.js → debounceTime-cu8WlLF0.js} +1 -1
  6. package/dist/assets/delay-DX2Gy1PY.js +1 -0
  7. package/dist/assets/{distinctUntilChanged-BpEwGP-B.js → distinctUntilChanged-DmoT2we5.js} +1 -1
  8. package/dist/assets/empty-DhPhHznc.js +1 -0
  9. package/dist/assets/{executeSchedule-Bcv6kCZW.js → executeSchedule-Dqc6shOu.js} +1 -1
  10. package/dist/assets/{filter-5Dmf5Y50.js → filter-BjN-BbQD.js} +1 -1
  11. package/dist/assets/{from-DdsjDX8p.js → from-CEPL7XsE.js} +1 -1
  12. package/dist/assets/http-Bepz6wA4.js +1 -0
  13. package/dist/assets/{innerFrom-D6KOflHk.js → innerFrom-D8hyVDmo.js} +1 -1
  14. package/dist/assets/{map-hUep_Pe9.js → map-D6X2syNu.js} +1 -1
  15. package/dist/assets/mapOneOrManyArgs-UKKoFfIU.js +1 -0
  16. package/dist/assets/merge-Cw-bwf6Z.js +1 -0
  17. package/dist/assets/mergeAll-9jcORGP2.js +1 -0
  18. package/dist/assets/{mergeMap-DK1Hk0t3.js → mergeMap-CX64J-ac.js} +1 -1
  19. package/dist/assets/{no-shadow-element-QlLhHglK.js → no-shadow-element-D4NOg0uW.js} +5 -5
  20. package/dist/assets/{of-CkMhMgHZ.js → of-CzgrATec.js} +1 -1
  21. package/dist/assets/{price-C5yP2Ah6.js → price-DdIbni0N.js} +1 -1
  22. package/dist/assets/{product-card-DajtMyct.js → product-card-CcuyZyd6.js} +1 -1
  23. package/dist/assets/{promotion-badge-3XLbShnW.js → promotion-badge-TYkTBrOQ.js} +1 -1
  24. package/dist/assets/{property-ewXDvYQv.js → property-BXNy7Yd-.js} +1 -1
  25. package/dist/assets/{skipWhile-i7Cmb462.js → skipWhile-B_4e7jSH.js} +1 -1
  26. package/dist/assets/{state-CB7P_Crl.js → state-b8IyfZUU.js} +1 -1
  27. package/dist/assets/{store-locator-CpKpyxUa.js → store-locator-CQ_XQBby.js} +1 -1
  28. package/dist/assets/{switchMap-Dt8kq-AX.js → switchMap-BYsewftM.js} +1 -1
  29. package/dist/assets/{take-DpcsPTvZ.js → take-ujVMxFwY.js} +1 -1
  30. package/dist/assets/{tap-BHwic9L0.js → tap-DwBV-qFl.js} +1 -1
  31. package/dist/assets/{timer-C5HGcf9-.js → timer-D3X0vtFO.js} +1 -1
  32. package/dist/assets/{unsafe-html-BxKVegsR.js → unsafe-html-C8GMyVYZ.js} +1 -1
  33. package/dist/assets/{viewport-listener-CWzfnuTn.js → viewport-listener-BRwa66-G.js} +1 -1
  34. package/dist/basket-transfer-modal/basket-transfer-modal.min.js +1 -1
  35. package/dist/catalog/basket-preview/basket-preview.min.js +1 -1
  36. package/dist/catalog/catalog-category/catalog-category.min.js +1 -1
  37. package/dist/catalog/catalog-favorites/catalog-favorites.min.js +1 -1
  38. package/dist/catalog/catalog-history/catalog-history.min.js +1 -1
  39. package/dist/catalog/catalog-home/catalog-home.css +1 -1
  40. package/dist/catalog/catalog-home/catalog-home.min.js +1 -1
  41. package/dist/catalog/catalog-home-header/catalog-home-header.css +1 -0
  42. package/dist/catalog/catalog-list/catalog-list.min.js +1 -1
  43. package/dist/catalog/catalog-load-more.min.js +1 -1
  44. package/dist/catalog/catalog-tabs/catalog-tabs.min.js +1 -1
  45. package/dist/catalog/catalog-toolbar/catalog-toolbar.min.js +1 -1
  46. package/dist/catalog/my-meals-button/my-meals-button.min.js +1 -1
  47. package/dist/counter/counter.min.js +1 -1
  48. package/dist/drawer/drawer.min.js +1 -1
  49. package/dist/drawer-view-swapper/drawer-view-swapper.min.js +1 -1
  50. package/dist/history-drawer/history-drawer.min.js +1 -1
  51. package/dist/history-order/history-order.min.js +1 -1
  52. package/dist/history-order-expanded/history-order-expanded.min.js +1 -1
  53. package/dist/last-order-badge/last-order-badge.min.js +1 -1
  54. package/dist/last-order-modal/last-order-modal.min.js +1 -1
  55. package/dist/like-button/like-button.min.js +1 -1
  56. package/dist/modal/modal.min.js +1 -1
  57. package/dist/onboarding/onboarding.min.js +1 -1
  58. package/dist/order-again/order-again.min.js +1 -1
  59. package/dist/planner/helpers/open-onboarding-modal.min.js +1 -1
  60. package/dist/planner/planner-abandon-modal/planner-abandon-modal.min.js +1 -1
  61. package/dist/planner/planner-budget-edit-modal/planner-budget-edit-modal.css +1 -0
  62. package/dist/planner/planner-budget-edit-modal/planner-budget-edit-modal.min.js +26 -0
  63. package/dist/planner/planner-budget-gauge/planner-budget-gauge.css +1 -1
  64. package/dist/planner/planner-budget-gauge/planner-budget-gauge.min.js +1 -1
  65. package/dist/planner/planner-catalog/planner-catalog.min.js +1 -1
  66. package/dist/planner/planner-current-menu/planner-current-menu.css +1 -1
  67. package/dist/planner/planner-current-menu/planner-current-menu.min.js +1 -1
  68. package/dist/planner/planner-current-menu-modal/planner-current-menu-modal.min.js +1 -1
  69. package/dist/planner/planner-dashboard/planner-dashboard.min.js +1 -1
  70. package/dist/planner/planner-form/planner-form.min.js +1 -1
  71. package/dist/planner/planner-menu-option/planner-menu-option.css +1 -1
  72. package/dist/planner/planner-menu-option/planner-menu-option.min.js +1 -1
  73. package/dist/planner/planner-onboarding/planner-onboarding.min.js +1 -1
  74. package/dist/planner/planner-onboarding-modal/planner-onboarding-modal.min.js +3 -3
  75. package/dist/planner/planner-open-catalog-modal/planner-open-catalog-modal.min.js +1 -1
  76. package/dist/planner/planner-recipe-card/planner-recipe-card.min.js +1 -1
  77. package/dist/planner/planner-recipe-list/planner-recipe-list.min.js +1 -1
  78. package/dist/planner/planner-recipe-suggestion/planner-recipe-suggestion.min.js +1 -1
  79. package/dist/planner/planner-welcome-modal/planner-welcome-modal.min.js +1 -1
  80. package/dist/planner/to-basket-loader/to-basket-loader.css +1 -1
  81. package/dist/planner/to-basket-loader/to-basket-loader.min.js +2 -2
  82. package/dist/planner-entry/planner-entry.css +1 -0
  83. package/dist/planner-entry/planner-entry.min.js +1 -0
  84. package/dist/preferences/preferences.min.js +1 -1
  85. package/dist/price/price.min.js +1 -1
  86. package/dist/recipe-card/recipe-card.min.js +1 -1
  87. package/dist/recipe-card-cta/recipe-card-cta.min.js +1 -1
  88. package/dist/recipe-details/recipe-details.min.js +1 -1
  89. package/dist/recipe-pricing/recipe-pricing.min.js +1 -1
  90. package/dist/replace-item/replace-item-card/replace-item-card.min.js +1 -1
  91. package/dist/replace-item/replace-item.min.js +1 -1
  92. package/dist/replace-item-planner/replace-item-card-planner/replace-item-card-planner.min.js +1 -1
  93. package/dist/replace-item-planner/replace-item-planner.min.js +1 -1
  94. package/dist/select/select.min.js +1 -1
  95. package/dist/slider-tabs/slider-tabs.min.js +1 -1
  96. package/dist/store-indicator/store-indicator.min.js +1 -1
  97. package/dist/store-locator-drawer/store-locator-drawer.min.js +1 -1
  98. package/package.json +1 -1
  99. package/dist/assets/delay-D39fpUTn.js +0 -1
  100. package/dist/assets/empty-kpxVz-0O.js +0 -1
  101. package/dist/assets/http-CtqmFT_i.js +0 -1
  102. package/dist/assets/mapOneOrManyArgs-grjqJfJT.js +0 -1
  103. package/dist/assets/merge-DbnsJEG8.js +0 -1
  104. package/dist/assets/mergeAll-B07hn2cK.js +0 -1
@@ -1,4 +1,4 @@
1
- import{t as o}from"../assets/custom-element-BhZVzxrc.js";import{N as d}from"../assets/no-shadow-element-QlLhHglK.js";import"../assets/mealz-sdk-E_fNZM-c.js";var h=Object.getOwnPropertyDescriptor,l=(t,s,a,e)=>{for(var i=e>1?void 0:e?h(s,a):s,n=t.length-1,c;n>=0;n--)(c=t[n])&&(i=c(i)||i);return i};let r=class extends d{constructor(){super(...arguments),this.inBasket=!1,this.showFixedButton=!1,this.recipeId="",this.inBasketContent=`
1
+ import{t as o}from"../assets/custom-element-BhZVzxrc.js";import{N as d}from"../assets/no-shadow-element-D4NOg0uW.js";import"../assets/mealz-sdk-E_fNZM-c.js";var h=Object.getOwnPropertyDescriptor,l=(t,s,a,e)=>{for(var i=e>1?void 0:e?h(s,a):s,n=t.length-1,c;n>=0;n--)(c=t[n])&&(i=c(i)||i);return i};let r=class extends d{constructor(){super(...arguments),this.inBasket=!1,this.showFixedButton=!1,this.recipeId="",this.inBasketContent=`
2
2
  <img alt="see ingredients in icon" src="https://storage.googleapis.com/assets.miam.tech/generic/icons/InCart_primary.svg"/>
3
3
  <span>Voir les ingrédients</span>
4
4
  `,this.addToBasketContent=`
@@ -1 +1 @@
1
- import{i as b,_ as h,m as f}from"./no-shadow-element-QlLhHglK.js";function p(r){return b(r==null?void 0:r.lift)}function d(r){return function(i){if(p(i))return i.lift(function(t){try{return r(t,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function _(r,i,t,n,c){return new y(r,i,t,n,c)}var y=function(r){h(i,r);function i(t,n,c,u,a,l){var e=r.call(this,t)||this;return e.onFinalize=a,e.shouldUnsubscribe=l,e._next=n?function(o){try{n(o)}catch(s){t.error(s)}}:r.prototype._next,e._error=u?function(o){try{u(o)}catch(s){t.error(s)}finally{this.unsubscribe()}}:r.prototype._error,e._complete=c?function(){try{c()}catch(o){t.error(o)}finally{this.unsubscribe()}}:r.prototype._complete,e}return i.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;r.prototype.unsubscribe.call(this),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},i}(f);export{_ as c,d as o};
1
+ import{i as b,_ as h,m as f}from"./no-shadow-element-D4NOg0uW.js";function p(r){return b(r==null?void 0:r.lift)}function d(r){return function(i){if(p(i))return i.lift(function(t){try{return r(t,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function _(r,i,t,n,c){return new y(r,i,t,n,c)}var y=function(r){h(i,r);function i(t,n,c,u,a,l){var e=r.call(this,t)||this;return e.onFinalize=a,e.shouldUnsubscribe=l,e._next=n?function(o){try{n(o)}catch(s){t.error(s)}}:r.prototype._next,e._error=u?function(o){try{u(o)}catch(s){t.error(s)}finally{this.unsubscribe()}}:r.prototype._error,e._complete=c?function(){try{c()}catch(o){t.error(o)}finally{this.unsubscribe()}}:r.prototype._complete,e}return i.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;r.prototype.unsubscribe.call(this),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},i}(f);export{_ as c,d as o};
@@ -1 +1 @@
1
- import{_ as u,S as l,a as d,b as f,c as v}from"./no-shadow-element-QlLhHglK.js";var a={now:function(){return(a.delegate||Date).now()},delegate:void 0},p=function(n){u(i,n);function i(e,t){return n.call(this)||this}return i.prototype.schedule=function(e,t){return this},i}(l),h={setInterval:function(n,i){for(var e=[],t=2;t<arguments.length;t++)e[t-2]=arguments[t];return setInterval.apply(void 0,d([n,i],f(e)))},clearInterval:function(n){return clearInterval(n)},delegate:void 0},y=function(n){u(i,n);function i(e,t){var r=n.call(this,e,t)||this;return r.scheduler=e,r.work=t,r.pending=!1,r}return i.prototype.schedule=function(e,t){var r;if(t===void 0&&(t=0),this.closed)return this;this.state=e;var s=this.id,c=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(c,s,t)),this.pending=!0,this.delay=t,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(c,this.id,t),this},i.prototype.requestAsyncId=function(e,t,r){return r===void 0&&(r=0),h.setInterval(e.flush.bind(e,this),r)},i.prototype.recycleAsyncId=function(e,t,r){if(r===void 0&&(r=0),r!=null&&this.delay===r&&this.pending===!1)return t;t!=null&&h.clearInterval(t)},i.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},i.prototype._execute=function(e,t){var r=!1,s;try{this.work(e)}catch(c){r=!0,s=c||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),s},i.prototype.unsubscribe=function(){if(!this.closed){var e=this,t=e.id,r=e.scheduler,s=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,v(s,this),t!=null&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,n.prototype.unsubscribe.call(this)}},i}(p),o=function(){function n(i,e){e===void 0&&(e=n.now),this.schedulerActionCtor=i,this.now=e}return n.prototype.schedule=function(i,e,t){return e===void 0&&(e=0),new this.schedulerActionCtor(this,i).schedule(t,e)},n.now=a.now,n}(),A=function(n){u(i,n);function i(e,t){t===void 0&&(t=o.now);var r=n.call(this,e,t)||this;return r.actions=[],r._active=!1,r}return i.prototype.flush=function(e){var t=this.actions;if(this._active){t.push(e);return}var r;this._active=!0;do if(r=e.execute(e.state,e.delay))break;while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}},i}(o),g=new A(y),b=g;export{g as a,b,a as d};
1
+ import{_ as u,S as l,a as d,b as f,c as v}from"./no-shadow-element-D4NOg0uW.js";var a={now:function(){return(a.delegate||Date).now()},delegate:void 0},p=function(n){u(i,n);function i(e,t){return n.call(this)||this}return i.prototype.schedule=function(e,t){return this},i}(l),h={setInterval:function(n,i){for(var e=[],t=2;t<arguments.length;t++)e[t-2]=arguments[t];return setInterval.apply(void 0,d([n,i],f(e)))},clearInterval:function(n){return clearInterval(n)},delegate:void 0},y=function(n){u(i,n);function i(e,t){var r=n.call(this,e,t)||this;return r.scheduler=e,r.work=t,r.pending=!1,r}return i.prototype.schedule=function(e,t){var r;if(t===void 0&&(t=0),this.closed)return this;this.state=e;var s=this.id,c=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(c,s,t)),this.pending=!0,this.delay=t,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(c,this.id,t),this},i.prototype.requestAsyncId=function(e,t,r){return r===void 0&&(r=0),h.setInterval(e.flush.bind(e,this),r)},i.prototype.recycleAsyncId=function(e,t,r){if(r===void 0&&(r=0),r!=null&&this.delay===r&&this.pending===!1)return t;t!=null&&h.clearInterval(t)},i.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},i.prototype._execute=function(e,t){var r=!1,s;try{this.work(e)}catch(c){r=!0,s=c||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),s},i.prototype.unsubscribe=function(){if(!this.closed){var e=this,t=e.id,r=e.scheduler,s=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,v(s,this),t!=null&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,n.prototype.unsubscribe.call(this)}},i}(p),o=function(){function n(i,e){e===void 0&&(e=n.now),this.schedulerActionCtor=i,this.now=e}return n.prototype.schedule=function(i,e,t){return e===void 0&&(e=0),new this.schedulerActionCtor(this,i).schedule(t,e)},n.now=a.now,n}(),A=function(n){u(i,n);function i(e,t){t===void 0&&(t=o.now);var r=n.call(this,e,t)||this;return r.actions=[],r._active=!1,r}return i.prototype.flush=function(e){var t=this.actions;if(this._active){t.push(e);return}var r;this._active=!0;do if(r=e.execute(e.state,e.delay))break;while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}},i}(o),g=new A(y),b=g;export{g as a,b,a as d};
@@ -1 +1 @@
1
- import{O,t as v}from"./no-shadow-element-QlLhHglK.js";import{p as b,b as h,f as m}from"./from-DdsjDX8p.js";import{m as A}from"./mapOneOrManyArgs-grjqJfJT.js";import{c as S}from"./OperatorSubscriber-DTLDfxTG.js";import{e as j}from"./executeSchedule-Bcv6kCZW.js";var k=Array.isArray,d=Object.getPrototypeOf,P=Object.prototype,w=Object.keys;function x(r){if(r.length===1){var e=r[0];if(k(e))return{args:e,keys:null};if(F(e)){var t=w(e);return{args:t.map(function(n){return e[n]}),keys:t}}}return{args:r,keys:null}}function F(r){return r&&typeof r=="object"&&d(r)===P}function L(r,e){return r.reduce(function(t,n,a){return t[n]=e[a],t},{})}function q(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=b(r),n=h(r),a=x(r),o=a.args,c=a.keys;if(o.length===0)return m([],t);var u=new O(V(o,t,c?function(i){return L(c,i)}:v));return n?u.pipe(A(n)):u}function V(r,e,t){return t===void 0&&(t=v),function(n){l(e,function(){for(var a=r.length,o=new Array(a),c=a,u=a,i=function(s){l(e,function(){var y=m(r[s],e),p=!1;y.subscribe(S(n,function(g){o[s]=g,p||(p=!0,u--),u||n.next(t(o.slice()))},function(){--c||n.complete()}))},n)},f=0;f<a;f++)i(f)},n)}}function l(r,e,t){r?j(t,r,e):e()}export{q as c};
1
+ import{O,t as v}from"./no-shadow-element-D4NOg0uW.js";import{p as b,b as h,f as m}from"./from-CEPL7XsE.js";import{m as A}from"./mapOneOrManyArgs-UKKoFfIU.js";import{c as S}from"./OperatorSubscriber-B37s2U6v.js";import{e as j}from"./executeSchedule-Dqc6shOu.js";var k=Array.isArray,d=Object.getPrototypeOf,P=Object.prototype,w=Object.keys;function x(r){if(r.length===1){var e=r[0];if(k(e))return{args:e,keys:null};if(F(e)){var t=w(e);return{args:t.map(function(n){return e[n]}),keys:t}}}return{args:r,keys:null}}function F(r){return r&&typeof r=="object"&&d(r)===P}function L(r,e){return r.reduce(function(t,n,a){return t[n]=e[a],t},{})}function q(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=b(r),n=h(r),a=x(r),o=a.args,c=a.keys;if(o.length===0)return m([],t);var u=new O(V(o,t,c?function(i){return L(c,i)}:v));return n?u.pipe(A(n)):u}function V(r,e,t){return t===void 0&&(t=v),function(n){l(e,function(){for(var a=r.length,o=new Array(a),c=a,u=a,i=function(s){l(e,function(){var y=m(r[s],e),p=!1;y.subscribe(S(n,function(g){o[s]=g,p||(p=!0,u--),u||n.next(t(o.slice()))},function(){--c||n.complete()}))},n)},f=0;f<a;f++)i(f)},n)}}function l(r,e,t){r?j(t,r,e):e()}export{q as c};
@@ -1 +1 @@
1
- import{a as d}from"./async-CmPLa8Kr.js";import{o as m,c as v}from"./OperatorSubscriber-DTLDfxTG.js";function w(o,a){return a===void 0&&(a=d),m(function(r,e){var n=null,i=null,u=null,l=function(){if(n){n.unsubscribe(),n=null;var t=i;i=null,e.next(t)}};function c(){var t=u+o,f=a.now();if(f<t){n=this.schedule(void 0,t-f),e.add(n);return}l()}r.subscribe(v(e,function(t){i=t,u=a.now(),n||(n=a.schedule(c,o),e.add(n))},function(){l(),e.complete()},void 0,function(){i=n=null}))})}export{w as d};
1
+ import{a as d}from"./async-guWcMFmJ.js";import{o as m,c as v}from"./OperatorSubscriber-B37s2U6v.js";function w(o,a){return a===void 0&&(a=d),m(function(r,e){var n=null,i=null,u=null,l=function(){if(n){n.unsubscribe(),n=null;var t=i;i=null,e.next(t)}};function c(){var t=u+o,f=a.now();if(f<t){n=this.schedule(void 0,t-f),e.add(n);return}l()}r.subscribe(v(e,function(t){i=t,u=a.now(),n||(n=a.schedule(c,o),e.add(n))},function(){l(),e.complete()},void 0,function(){i=n=null}))})}export{w as d};
@@ -0,0 +1 @@
1
+ import{a as i}from"./async-guWcMFmJ.js";import{t as m}from"./take-ujVMxFwY.js";import{m as a}from"./map-D6X2syNu.js";import{m as e}from"./mergeMap-CX64J-ac.js";import{i as f}from"./innerFrom-D8hyVDmo.js";import{t as p}from"./timer-D3X0vtFO.js";function u(r){return a(function(){return r})}function s(r,t){return e(function(n,o){return f(r(n,o)).pipe(m(1),u(n))})}function l(r,t){t===void 0&&(t=i);var n=p(r,t);return s(function(){return n})}export{l as d};
@@ -1 +1 @@
1
- import{t as d}from"./no-shadow-element-QlLhHglK.js";import{o,c as a}from"./OperatorSubscriber-DTLDfxTG.js";function b(i,n){return n===void 0&&(n=d),i=i??v,o(function(s,t){var e,r=!0;s.subscribe(a(t,function(f){var u=n(f);(r||!i(e,u))&&(r=!1,e=u,t.next(f))}))})}function v(i,n){return i===n}export{b as d};
1
+ import{t as d}from"./no-shadow-element-D4NOg0uW.js";import{o,c as a}from"./OperatorSubscriber-B37s2U6v.js";function b(i,n){return n===void 0&&(n=d),i=i??v,o(function(s,t){var e,r=!0;s.subscribe(a(t,function(f){var u=n(f);(r||!i(e,u))&&(r=!1,e=u,t.next(f))}))})}function v(i,n){return i===n}export{b as d};
@@ -0,0 +1 @@
1
+ import{O as r}from"./no-shadow-element-D4NOg0uW.js";var t=new r(function(e){return e.complete()});export{t as E};
@@ -1 +1 @@
1
- import{i as d}from"./no-shadow-element-QlLhHglK.js";function o(i){return i&&d(i.schedule)}function h(i,e,n,s,u){s===void 0&&(s=0),u===void 0&&(u=!1);var c=e.schedule(function(){n(),u?i.add(this.schedule(null,s)):this.unsubscribe()},s);if(i.add(c),!u)return c}export{h as e,o as i};
1
+ import{i as d}from"./no-shadow-element-D4NOg0uW.js";function o(i){return i&&d(i.schedule)}function h(i,e,n,s,u){s===void 0&&(s=0),u===void 0&&(u=!1);var c=e.schedule(function(){n(),u?i.add(this.schedule(null,s)):this.unsubscribe()},s);if(i.add(c),!u)return c}export{h as e,o as i};
@@ -1 +1 @@
1
- import{o as c,c as i}from"./OperatorSubscriber-DTLDfxTG.js";function u(e,n){return c(function(o,r){var a=0;o.subscribe(i(r,function(t){return e.call(n,t,a++)&&r.next(t)}))})}export{u as f};
1
+ import{o as c,c as i}from"./OperatorSubscriber-B37s2U6v.js";function u(e,n){return c(function(o,r){var a=0;o.subscribe(i(r,function(t){return e.call(n,t,a++)&&r.next(t)}))})}export{u as f};
@@ -1 +1 @@
1
- import{i as m,O as f}from"./no-shadow-element-QlLhHglK.js";import{i as S,e as a}from"./executeSchedule-Bcv6kCZW.js";import{i,b as x,r as I,c as O,a as w,d as A,e as k,f as y,g as L,h as R}from"./innerFrom-D6KOflHk.js";import{o as v,c as E}from"./OperatorSubscriber-DTLDfxTG.js";function u(e){return e[e.length-1]}function z(e){return m(u(e))?e.pop():void 0}function B(e){return S(u(e))?e.pop():void 0}function C(e,n){return typeof u(e)=="number"?e.pop():n}function d(e,n){return n===void 0&&(n=0),v(function(r,t){r.subscribe(E(t,function(o){return a(t,e,function(){return t.next(o)},n)},function(){return a(t,e,function(){return t.complete()},n)},function(o){return a(t,e,function(){return t.error(o)},n)}))})}function p(e,n){return n===void 0&&(n=0),v(function(r,t){t.add(e.schedule(function(){return r.subscribe(t)},n))})}function F(e,n){return i(e).pipe(p(n),d(n))}function P(e,n){return i(e).pipe(p(n),d(n))}function T(e,n){return new f(function(r){var t=0;return n.schedule(function(){t===e.length?r.complete():(r.next(e[t++]),r.closed||this.schedule())})})}function G(e,n){return new f(function(r){var t;return a(r,n,function(){t=e[x](),a(r,n,function(){var o,c,l;try{o=t.next(),c=o.value,l=o.done}catch(h){r.error(h);return}l?r.complete():r.next(c)},0,!0)}),function(){return m(t==null?void 0:t.return)&&t.return()}})}function s(e,n){if(!e)throw new Error("Iterable cannot be null");return new f(function(r){a(r,n,function(){var t=e[Symbol.asyncIterator]();a(r,n,function(){t.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function N(e,n){return s(I(e),n)}function _(e,n){if(e!=null){if(O(e))return F(e,n);if(w(e))return T(e,n);if(A(e))return P(e,n);if(k(e))return s(e,n);if(y(e))return G(e,n);if(L(e))return N(e,n)}throw R(e)}function D(e,n){return n?_(e,n):i(e)}export{C as a,z as b,D as f,B as p};
1
+ import{i as m,O as f}from"./no-shadow-element-D4NOg0uW.js";import{i as S,e as a}from"./executeSchedule-Dqc6shOu.js";import{i,b as x,r as I,c as O,a as w,d as A,e as k,f as y,g as L,h as R}from"./innerFrom-D8hyVDmo.js";import{o as v,c as E}from"./OperatorSubscriber-B37s2U6v.js";function u(e){return e[e.length-1]}function z(e){return m(u(e))?e.pop():void 0}function B(e){return S(u(e))?e.pop():void 0}function C(e,n){return typeof u(e)=="number"?e.pop():n}function d(e,n){return n===void 0&&(n=0),v(function(r,t){r.subscribe(E(t,function(o){return a(t,e,function(){return t.next(o)},n)},function(){return a(t,e,function(){return t.complete()},n)},function(o){return a(t,e,function(){return t.error(o)},n)}))})}function p(e,n){return n===void 0&&(n=0),v(function(r,t){t.add(e.schedule(function(){return r.subscribe(t)},n))})}function F(e,n){return i(e).pipe(p(n),d(n))}function P(e,n){return i(e).pipe(p(n),d(n))}function T(e,n){return new f(function(r){var t=0;return n.schedule(function(){t===e.length?r.complete():(r.next(e[t++]),r.closed||this.schedule())})})}function G(e,n){return new f(function(r){var t;return a(r,n,function(){t=e[x](),a(r,n,function(){var o,c,l;try{o=t.next(),c=o.value,l=o.done}catch(h){r.error(h);return}l?r.complete():r.next(c)},0,!0)}),function(){return m(t==null?void 0:t.return)&&t.return()}})}function s(e,n){if(!e)throw new Error("Iterable cannot be null");return new f(function(r){a(r,n,function(){var t=e[Symbol.asyncIterator]();a(r,n,function(){t.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function N(e,n){return s(I(e),n)}function _(e,n){if(e!=null){if(O(e))return F(e,n);if(w(e))return T(e,n);if(A(e))return P(e,n);if(k(e))return s(e,n);if(y(e))return G(e,n);if(L(e))return N(e,n)}throw R(e)}function D(e,n){return n?_(e,n):i(e)}export{C as a,z as b,D as f,B as p};
@@ -0,0 +1 @@
1
+ import{m as s}from"./mealz-sdk-E_fNZM-c.js";function i(t){const e={"language-id":s.user.getLanguage()||"fr","supplier-token":s.supplier.getToken()||"","session-id":t},a=localStorage.getItem("_miam/userId");return a?e.authorization=`user_id ${a}`:e["authless-id"]=localStorage.getItem("_miam/authlessId"),e}export{i as b};
@@ -1 +1 @@
1
- import{i as l,o as d,d as m,e as v,g as f,O as u,r as h,h as w,j as I,l as S}from"./no-shadow-element-QlLhHglK.js";var g=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function A(e){return l(e==null?void 0:e.then)}function k(e){return l(e[d])}function x(e){return Symbol.asyncIterator&&l(e==null?void 0:e[Symbol.asyncIterator])}function L(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function O(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var b=O();function p(e){return l(e==null?void 0:e[b])}function R(e){return m(this,arguments,function(){var r,a,o,s;return v(this,function(t){switch(t.label){case 0:r=e.getReader(),t.label=1;case 1:t.trys.push([1,,9,10]),t.label=2;case 2:return[4,f(r.read())];case 3:return a=t.sent(),o=a.value,s=a.done,s?[4,f(void 0)]:[3,5];case 4:return[2,t.sent()];case 5:return[4,f(o)];case 6:return[4,t.sent()];case 7:return t.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function T(e){return l(e==null?void 0:e.getReader)}function j(e){if(e instanceof u)return e;if(e!=null){if(k(e))return E(e);if(g(e))return P(e);if(A(e))return G(e);if(x(e))return y(e);if(p(e))return F(e);if(T(e))return Y(e)}throw L(e)}function E(e){return new u(function(n){var r=e[d]();if(l(r.subscribe))return r.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function P(e){return new u(function(n){for(var r=0;r<e.length&&!n.closed;r++)n.next(e[r]);n.complete()})}function G(e){return new u(function(n){e.then(function(r){n.closed||(n.next(r),n.complete())},function(r){return n.error(r)}).then(null,h)})}function F(e){return new u(function(n){var r,a;try{for(var o=w(e),s=o.next();!s.done;s=o.next()){var t=s.value;if(n.next(t),n.closed)return}}catch(i){r={error:i}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(r)throw r.error}}n.complete()})}function y(e){return new u(function(n){U(e,n).catch(function(r){return n.error(r)})})}function Y(e){return y(R(e))}function U(e,n){var r,a,o,s;return I(this,void 0,void 0,function(){var t,i;return v(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=S(e),c.label=1;case 1:return[4,r.next()];case 2:if(a=c.sent(),!!a.done)return[3,4];if(t=a.value,n.next(t),n.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i=c.sent(),o={error:i},[3,11];case 6:return c.trys.push([6,,9,10]),a&&!a.done&&(s=r.return)?[4,s.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return n.complete(),[2]}})})}export{g as a,b,k as c,A as d,x as e,p as f,T as g,L as h,j as i,R as r};
1
+ import{i as l,o as d,d as m,e as v,g as f,O as u,r as h,h as w,j as I,l as S}from"./no-shadow-element-D4NOg0uW.js";var g=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function A(e){return l(e==null?void 0:e.then)}function k(e){return l(e[d])}function x(e){return Symbol.asyncIterator&&l(e==null?void 0:e[Symbol.asyncIterator])}function L(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function O(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var b=O();function p(e){return l(e==null?void 0:e[b])}function R(e){return m(this,arguments,function(){var r,a,o,s;return v(this,function(t){switch(t.label){case 0:r=e.getReader(),t.label=1;case 1:t.trys.push([1,,9,10]),t.label=2;case 2:return[4,f(r.read())];case 3:return a=t.sent(),o=a.value,s=a.done,s?[4,f(void 0)]:[3,5];case 4:return[2,t.sent()];case 5:return[4,f(o)];case 6:return[4,t.sent()];case 7:return t.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function T(e){return l(e==null?void 0:e.getReader)}function j(e){if(e instanceof u)return e;if(e!=null){if(k(e))return E(e);if(g(e))return P(e);if(A(e))return G(e);if(x(e))return y(e);if(p(e))return F(e);if(T(e))return Y(e)}throw L(e)}function E(e){return new u(function(n){var r=e[d]();if(l(r.subscribe))return r.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function P(e){return new u(function(n){for(var r=0;r<e.length&&!n.closed;r++)n.next(e[r]);n.complete()})}function G(e){return new u(function(n){e.then(function(r){n.closed||(n.next(r),n.complete())},function(r){return n.error(r)}).then(null,h)})}function F(e){return new u(function(n){var r,a;try{for(var o=w(e),s=o.next();!s.done;s=o.next()){var t=s.value;if(n.next(t),n.closed)return}}catch(i){r={error:i}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(r)throw r.error}}n.complete()})}function y(e){return new u(function(n){U(e,n).catch(function(r){return n.error(r)})})}function Y(e){return y(R(e))}function U(e,n){var r,a,o,s;return I(this,void 0,void 0,function(){var t,i;return v(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=S(e),c.label=1;case 1:return[4,r.next()];case 2:if(a=c.sent(),!!a.done)return[3,4];if(t=a.value,n.next(t),n.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i=c.sent(),o={error:i},[3,11];case 6:return c.trys.push([6,,9,10]),a&&!a.done&&(s=r.return)?[4,s.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return n.complete(),[2]}})})}export{g as a,b,k as c,A as d,x as e,p as f,T as g,L as h,j as i,R as r};
@@ -1 +1 @@
1
- import{o as c,c as i}from"./OperatorSubscriber-DTLDfxTG.js";function u(e,t){return c(function(a,r){var n=0;a.subscribe(i(r,function(o){r.next(e.call(t,o,n++))}))})}export{u as m};
1
+ import{o as c,c as i}from"./OperatorSubscriber-B37s2U6v.js";function u(e,t){return c(function(a,r){var n=0;a.subscribe(i(r,function(o){r.next(e.call(t,o,n++))}))})}export{u as m};
@@ -0,0 +1 @@
1
+ import{a as n,b as p}from"./no-shadow-element-D4NOg0uW.js";import{m as o}from"./map-D6X2syNu.js";var t=Array.isArray;function i(a,r){return t(r)?a.apply(void 0,n([],p(r))):a(r)}function y(a){return o(function(r){return i(a,r)})}export{y as m};
@@ -0,0 +1 @@
1
+ import{m as n}from"./mergeAll-9jcORGP2.js";import{i as t}from"./innerFrom-D8hyVDmo.js";import{E as s}from"./empty-DhPhHznc.js";import{p,a as f,f as u}from"./from-CEPL7XsE.js";function h(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var o=p(r),a=f(r,1/0),m=r;return m.length?m.length===1?t(m[0]):n(a)(u(m,o)):s}export{h as m};
@@ -0,0 +1 @@
1
+ import{m}from"./mergeMap-CX64J-ac.js";import{t}from"./no-shadow-element-D4NOg0uW.js";function o(i){return i===void 0&&(i=1/0),m(t,i)}export{o as m};
@@ -1 +1 @@
1
- import{m as C}from"./map-hUep_Pe9.js";import{i as x}from"./innerFrom-D6KOflHk.js";import{c as h,o as F}from"./OperatorSubscriber-DTLDfxTG.js";import"./executeSchedule-Bcv6kCZW.js";import{i as I}from"./no-shadow-element-QlLhHglK.js";function b(f,e,n,i,t,v,u,k){var o=[],r=0,g=0,c=!1,d=function(){c&&!o.length&&!r&&e.complete()},y=function(a){return r<i?s(a):o.push(a)},s=function(a){r++;var l=!1;x(n(a,g++)).subscribe(h(e,function(m){e.next(m)},function(){l=!0},void 0,function(){if(l)try{r--;for(var m=function(){var p=o.shift();u||s(p)};o.length&&r<i;)m();d()}catch(p){e.error(p)}}))};return f.subscribe(h(e,y,function(){c=!0,d()})),function(){}}function N(f,e,n){return n===void 0&&(n=1/0),I(e)?N(function(i,t){return C(function(v,u){return e(i,v,t,u)})(x(f(i,t)))},n):(typeof e=="number"&&(n=e),F(function(i,t){return b(i,t,f,n)}))}export{N as m};
1
+ import{m as C}from"./map-D6X2syNu.js";import{i as x}from"./innerFrom-D8hyVDmo.js";import{c as h,o as F}from"./OperatorSubscriber-B37s2U6v.js";import"./executeSchedule-Dqc6shOu.js";import{i as I}from"./no-shadow-element-D4NOg0uW.js";function b(f,e,n,i,t,v,u,k){var o=[],r=0,g=0,c=!1,d=function(){c&&!o.length&&!r&&e.complete()},y=function(a){return r<i?s(a):o.push(a)},s=function(a){r++;var l=!1;x(n(a,g++)).subscribe(h(e,function(m){e.next(m)},function(){l=!0},void 0,function(){if(l)try{r--;for(var m=function(){var p=o.shift();u||s(p)};o.length&&r<i;)m();d()}catch(p){e.error(p)}}))};return f.subscribe(h(e,y,function(){c=!0,d()})),function(){}}function N(f,e,n){return n===void 0&&(n=1/0),I(e)?N(function(i,t){return C(function(v,u){return e(i,v,t,u)})(x(f(i,t)))},n):(typeof e=="number"&&(n=e),F(function(i,t){return b(i,t,f,n)}))}export{N as m};
@@ -2,20 +2,20 @@ import{m as rt}from"./mealz-sdk-E_fNZM-c.js";/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const H=globalThis,tt=H.ShadowRoot&&(H.ShadyCSS===void 0||H.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mt=Symbol(),it=new WeakMap;let Rt=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==mt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(tt&&t===void 0){const r=e!==void 0&&e.length===1;r&&(t=it.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&it.set(e,t))}return t}toString(){return this.cssText}};const It=i=>new Rt(typeof i=="string"?i:i+"",void 0,mt),jt=(i,t)=>{if(tt)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const r=document.createElement("style"),n=H.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=e.cssText,i.appendChild(r)}},nt=tt?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return It(e)})(i):i;/**
5
+ */const H=globalThis,tt=H.ShadowRoot&&(H.ShadyCSS===void 0||H.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mt=Symbol(),it=new WeakMap;let Rt=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==mt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(tt&&t===void 0){const r=e!==void 0&&e.length===1;r&&(t=it.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&it.set(e,t))}return t}toString(){return this.cssText}};const It=i=>new Rt(typeof i=="string"?i:i+"",void 0,mt),Mt=(i,t)=>{if(tt)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const r=document.createElement("style"),n=H.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=e.cssText,i.appendChild(r)}},nt=tt?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return It(e)})(i):i;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:Mt,defineProperty:kt,getOwnPropertyDescriptor:Ht,getOwnPropertyNames:Lt,getOwnPropertySymbols:Nt,getPrototypeOf:zt}=Object,m=globalThis,st=m.trustedTypes,Bt=st?st.emptyScript:"",q=m.reactiveElementPolyfillSupport,O=(i,t)=>i,Y={toAttribute(i,t){switch(t){case Boolean:i=i?Bt:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},$t=(i,t)=>!Mt(i,t),ot={attribute:!0,type:String,converter:Y,reflect:!1,hasChanged:$t};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),m.litPropertyMetadata??(m.litPropertyMetadata=new WeakMap);class S extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ot){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(t,r,e);n!==void 0&&kt(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){const{get:n,set:s}=Ht(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return n==null?void 0:n.call(this)},set(o){const c=n==null?void 0:n.call(this);s.call(this,o),this.requestUpdate(t,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ot}static _$Ei(){if(this.hasOwnProperty(O("elementProperties")))return;const t=zt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(O("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(O("properties"))){const e=this.properties,r=[...Lt(e),...Nt(e)];for(const n of r)this.createProperty(n,e[n])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[r,n]of e)this.elementProperties.set(r,n)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const n=this._$Eu(e,r);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const n of r)e.unshift(nt(n))}else t!==void 0&&e.push(nt(t));return e}static _$Eu(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return jt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostConnected)==null?void 0:r.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){var s;const r=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,r);if(n!==void 0&&r.reflect===!0){const o=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:Y).toAttribute(e,r.type);this._$Em=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,e){var s;const r=this.constructor,n=r._$Eh.get(t);if(n!==void 0&&this._$Em!==n){const o=r.getPropertyOptions(n),c=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)==null?void 0:s.fromAttribute)!==void 0?o.converter:Y;this._$Em=n,this[n]=c.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,r){if(t!==void 0){if(r??(r=this.constructor.getPropertyOptions(t)),!(r.hasChanged??$t)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[s,o]of n)o.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(r=this._$EO)==null||r.forEach(n=>{var s;return(s=n.hostUpdate)==null?void 0:s.call(n)}),this.update(e)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var n;return(n=r.hostUpdated)==null?void 0:n.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[O("elementProperties")]=new Map,S[O("finalized")]=new Map,q==null||q({ReactiveElement:S}),(m.reactiveElementVersions??(m.reactiveElementVersions=[])).push("2.0.4");var G=function(i,t){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])},G(i,t)};function M(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");G(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function pe(i,t,e,r){function n(s){return s instanceof e?s:new e(function(o){o(s)})}return new(e||(e=Promise))(function(s,o){function c(f){try{l(r.next(f))}catch(u){o(u)}}function a(f){try{l(r.throw(f))}catch(u){o(u)}}function l(f){f.done?s(f.value):n(f.value).then(c,a)}l((r=r.apply(i,t||[])).next())})}function de(i,t){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,n,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=c(0),o.throw=c(1),o.return=c(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(l){return function(f){return a([l,f])}}function a(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(e=0)),e;)try{if(r=1,n&&(s=l[0]&2?n.return:l[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,l[1])).done)return s;switch(n=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,n=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(s=e.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){e.label=l[1];break}if(l[0]===6&&e.label<s[1]){e.label=s[1],s=l;break}if(s&&e.label<s[2]){e.label=s[2],e.ops.push(l);break}s[2]&&e.ops.pop(),e.trys.pop();continue}l=t.call(i,e)}catch(f){l=[6,f],n=0}finally{r=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function T(i){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&i[t],r=0;if(e)return e.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function K(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var r=e.call(i),n,s=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(c){o={error:c}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(o)throw o.error}}return s}function Z(i,t,e){if(e||arguments.length===2)for(var r=0,n=t.length,s;r<n;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return i.concat(s||Array.prototype.slice.call(t))}function J(i){return this instanceof J?(this.v=i,this):new J(i)}function ye(i,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e.apply(i,t||[]),n,s=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",o),n[Symbol.asyncIterator]=function(){return this},n;function o(h){return function(v){return Promise.resolve(v).then(h,u)}}function c(h,v){r[h]&&(n[h]=function(y){return new Promise(function(Ct,Tt){s.push([h,y,Ct,Tt])>1||a(h,y)})},v&&(n[h]=v(n[h])))}function a(h,v){try{l(r[h](v))}catch(y){d(s[0][3],y)}}function l(h){h.value instanceof J?Promise.resolve(h.value.v).then(f,u):d(s[0][2],h)}function f(h){a("next",h)}function u(h){a("throw",h)}function d(h,v){h(v),s.shift(),s.length&&a(s[0][0],s[0][1])}}function ve(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=i[Symbol.asyncIterator],e;return t?t.call(i):(i=typeof T=="function"?T(i):i[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(s){e[s]=i[s]&&function(o){return new Promise(function(c,a){o=i[s](o),n(c,a,o.done,o.value)})}}function n(s,o,c,a){Promise.resolve(a).then(function(l){s({value:l,done:c})},o)}}function b(i){return typeof i=="function"}function gt(i){var t=function(r){Error.call(r),r.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var V=gt(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
9
+ */const{is:jt,defineProperty:kt,getOwnPropertyDescriptor:Ht,getOwnPropertyNames:Lt,getOwnPropertySymbols:Nt,getPrototypeOf:zt}=Object,m=globalThis,st=m.trustedTypes,Bt=st?st.emptyScript:"",q=m.reactiveElementPolyfillSupport,O=(i,t)=>i,Y={toAttribute(i,t){switch(t){case Boolean:i=i?Bt:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},$t=(i,t)=>!jt(i,t),ot={attribute:!0,type:String,converter:Y,reflect:!1,hasChanged:$t};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),m.litPropertyMetadata??(m.litPropertyMetadata=new WeakMap);class S extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ot){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(t,r,e);n!==void 0&&kt(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){const{get:n,set:s}=Ht(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return n==null?void 0:n.call(this)},set(o){const c=n==null?void 0:n.call(this);s.call(this,o),this.requestUpdate(t,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ot}static _$Ei(){if(this.hasOwnProperty(O("elementProperties")))return;const t=zt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(O("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(O("properties"))){const e=this.properties,r=[...Lt(e),...Nt(e)];for(const n of r)this.createProperty(n,e[n])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[r,n]of e)this.elementProperties.set(r,n)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const n=this._$Eu(e,r);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const n of r)e.unshift(nt(n))}else t!==void 0&&e.push(nt(t));return e}static _$Eu(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Mt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostConnected)==null?void 0:r.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){var s;const r=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,r);if(n!==void 0&&r.reflect===!0){const o=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:Y).toAttribute(e,r.type);this._$Em=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,e){var s;const r=this.constructor,n=r._$Eh.get(t);if(n!==void 0&&this._$Em!==n){const o=r.getPropertyOptions(n),c=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)==null?void 0:s.fromAttribute)!==void 0?o.converter:Y;this._$Em=n,this[n]=c.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,r){if(t!==void 0){if(r??(r=this.constructor.getPropertyOptions(t)),!(r.hasChanged??$t)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[s,o]of n)o.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(r=this._$EO)==null||r.forEach(n=>{var s;return(s=n.hostUpdate)==null?void 0:s.call(n)}),this.update(e)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var n;return(n=r.hostUpdated)==null?void 0:n.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[O("elementProperties")]=new Map,S[O("finalized")]=new Map,q==null||q({ReactiveElement:S}),(m.reactiveElementVersions??(m.reactiveElementVersions=[])).push("2.0.4");var G=function(i,t){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])},G(i,t)};function j(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");G(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function pe(i,t,e,r){function n(s){return s instanceof e?s:new e(function(o){o(s)})}return new(e||(e=Promise))(function(s,o){function c(f){try{l(r.next(f))}catch(u){o(u)}}function a(f){try{l(r.throw(f))}catch(u){o(u)}}function l(f){f.done?s(f.value):n(f.value).then(c,a)}l((r=r.apply(i,t||[])).next())})}function de(i,t){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,n,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=c(0),o.throw=c(1),o.return=c(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(l){return function(f){return a([l,f])}}function a(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(e=0)),e;)try{if(r=1,n&&(s=l[0]&2?n.return:l[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,l[1])).done)return s;switch(n=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,n=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(s=e.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){e.label=l[1];break}if(l[0]===6&&e.label<s[1]){e.label=s[1],s=l;break}if(s&&e.label<s[2]){e.label=s[2],e.ops.push(l);break}s[2]&&e.ops.pop(),e.trys.pop();continue}l=t.call(i,e)}catch(f){l=[6,f],n=0}finally{r=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function T(i){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&i[t],r=0;if(e)return e.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function K(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var r=e.call(i),n,s=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(c){o={error:c}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(o)throw o.error}}return s}function Z(i,t,e){if(e||arguments.length===2)for(var r=0,n=t.length,s;r<n;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return i.concat(s||Array.prototype.slice.call(t))}function J(i){return this instanceof J?(this.v=i,this):new J(i)}function ye(i,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e.apply(i,t||[]),n,s=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",o),n[Symbol.asyncIterator]=function(){return this},n;function o(h){return function(v){return Promise.resolve(v).then(h,u)}}function c(h,v){r[h]&&(n[h]=function(y){return new Promise(function(Ct,Tt){s.push([h,y,Ct,Tt])>1||a(h,y)})},v&&(n[h]=v(n[h])))}function a(h,v){try{l(r[h](v))}catch(y){d(s[0][3],y)}}function l(h){h.value instanceof J?Promise.resolve(h.value.v).then(f,u):d(s[0][2],h)}function f(h){a("next",h)}function u(h){a("throw",h)}function d(h,v){h(v),s.shift(),s.length&&a(s[0][0],s[0][1])}}function ve(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=i[Symbol.asyncIterator],e;return t?t.call(i):(i=typeof T=="function"?T(i):i[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(s){e[s]=i[s]&&function(o){return new Promise(function(c,a){o=i[s](o),n(c,a,o.done,o.value)})}}function n(s,o,c,a){Promise.resolve(a).then(function(l){s({value:l,done:c})},o)}}function b(i){return typeof i=="function"}function gt(i){var t=function(r){Error.call(r),r.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var V=gt(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
10
10
  `+e.map(function(r,n){return n+1+") "+r.toString()}).join(`
11
- `):"",this.name="UnsubscriptionError",this.errors=e}});function Q(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var z=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,r,n,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var c=T(o),a=c.next();!a.done;a=c.next()){var l=a.value;l.remove(this)}}catch(y){t={error:y}}finally{try{a&&!a.done&&(e=c.return)&&e.call(c)}finally{if(t)throw t.error}}else o.remove(this);var f=this.initialTeardown;if(b(f))try{f()}catch(y){s=y instanceof V?y.errors:[y]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var d=T(u),h=d.next();!h.done;h=d.next()){var v=h.value;try{at(v)}catch(y){s=s??[],y instanceof V?s=Z(Z([],K(s)),K(y.errors)):s.push(y)}}}catch(y){r={error:y}}finally{try{h&&!h.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}}if(s)throw new V(s)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)at(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Q(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&Q(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),At=z.EMPTY;function St(i){return i instanceof z||i&&"closed"in i&&b(i.remove)&&b(i.add)&&b(i.unsubscribe)}function at(i){b(i)?i():i.unsubscribe()}var qt={Promise:void 0},Vt={setTimeout:function(i,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,Z([i,t],K(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function Dt(i){Vt.setTimeout(function(){throw i})}function lt(){}function L(i){i()}var Et=function(i){M(t,i);function t(e){var r=i.call(this)||this;return r.isStopped=!1,e?(r.destination=e,St(e)&&e.add(r)):r.destination=Yt,r}return t.create=function(e,r,n){return new X(e,r,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(z),Wt=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(r){k(r)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){k(r)}else k(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){k(e)}},i}(),X=function(i){M(t,i);function t(e,r,n){var s=i.call(this)||this,o;return b(e)||!e?o={next:e??void 0,error:r??void 0,complete:n??void 0}:o=e,s.destination=new Wt(o),s}return t}(Et);function k(i){Dt(i)}function Ft(i){throw i}var Yt={closed:!0,next:lt,error:Ft,complete:lt},Gt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Kt(i){return i}function Zt(i){return i.length===0?Kt:i.length===1?i[0]:function(e){return i.reduce(function(r,n){return n(r)},e)}}var ct=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,r){var n=this,s=Qt(t)?t:new X(t,e,r);return L(function(){var o=n,c=o.operator,a=o.source;s.add(c?c.call(s,a):a?n._subscribe(s):n._trySubscribe(s))}),s},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var r=this;return e=ht(e),new e(function(n,s){var o=new X({next:function(c){try{t(c)}catch(a){s(a),o.unsubscribe()}},error:s,complete:n});r.subscribe(o)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[Gt]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Zt(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=ht(t),new t(function(r,n){var s;e.subscribe(function(o){return s=o},function(o){return n(o)},function(){return r(s)})})},i.create=function(t){return new i(t)},i}();function ht(i){var t;return(t=i??qt.Promise)!==null&&t!==void 0?t:Promise}function Jt(i){return i&&b(i.next)&&b(i.error)&&b(i.complete)}function Qt(i){return i&&i instanceof Et||Jt(i)&&St(i)}var Xt=gt(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),wt=function(i){M(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var r=new ut(this,this);return r.operator=e,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Xt},t.prototype.next=function(e){var r=this;L(function(){var n,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=T(r.currentObservers),c=o.next();!c.done;c=o.next()){var a=c.value;a.next(e)}}catch(l){n={error:l}}finally{try{c&&!c.done&&(s=o.return)&&s.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var r=this;L(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var n=r.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;L(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var r=this,n=this,s=n.hasError,o=n.isStopped,c=n.observers;return s||o?At:(this.currentObservers=null,c.push(e),new z(function(){r.currentObservers=null,Q(c,e)}))},t.prototype._checkFinalizedStatuses=function(e){var r=this,n=r.hasError,s=r.thrownError,o=r.isStopped;n?e.error(s):o&&e.complete()},t.prototype.asObservable=function(){var e=new ct;return e.source=this,e},t.create=function(e,r){return new ut(e,r)},t}(ct),ut=function(i){M(t,i);function t(e,r){var n=i.call(this)||this;return n.destination=e,n.source=r,n}return t.prototype.next=function(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)},t.prototype.error=function(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)},t.prototype.complete=function(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)},t.prototype._subscribe=function(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:At},t}(wt),te=function(i){M(t,i);function t(e){var r=i.call(this)||this;return r._value=e,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var r=i.prototype._subscribe.call(this,e);return!r.closed&&e.next(this._value),r},t.prototype.getValue=function(){var e=this,r=e.hasError,n=e.thrownError,s=e._value;if(r)throw n;return this._throwIfClosed(),s},t.prototype.next=function(e){i.prototype.next.call(this,this._value=e)},t}(wt);/**
11
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function Q(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var z=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,r,n,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var c=T(o),a=c.next();!a.done;a=c.next()){var l=a.value;l.remove(this)}}catch(y){t={error:y}}finally{try{a&&!a.done&&(e=c.return)&&e.call(c)}finally{if(t)throw t.error}}else o.remove(this);var f=this.initialTeardown;if(b(f))try{f()}catch(y){s=y instanceof V?y.errors:[y]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var d=T(u),h=d.next();!h.done;h=d.next()){var v=h.value;try{at(v)}catch(y){s=s??[],y instanceof V?s=Z(Z([],K(s)),K(y.errors)):s.push(y)}}}catch(y){r={error:y}}finally{try{h&&!h.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}}if(s)throw new V(s)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)at(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Q(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&Q(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),At=z.EMPTY;function St(i){return i instanceof z||i&&"closed"in i&&b(i.remove)&&b(i.add)&&b(i.unsubscribe)}function at(i){b(i)?i():i.unsubscribe()}var qt={Promise:void 0},Vt={setTimeout:function(i,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,Z([i,t],K(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function Dt(i){Vt.setTimeout(function(){throw i})}function lt(){}function L(i){i()}var Et=function(i){j(t,i);function t(e){var r=i.call(this)||this;return r.isStopped=!1,e?(r.destination=e,St(e)&&e.add(r)):r.destination=Yt,r}return t.create=function(e,r,n){return new X(e,r,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(z),Wt=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(r){k(r)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){k(r)}else k(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){k(e)}},i}(),X=function(i){j(t,i);function t(e,r,n){var s=i.call(this)||this,o;return b(e)||!e?o={next:e??void 0,error:r??void 0,complete:n??void 0}:o=e,s.destination=new Wt(o),s}return t}(Et);function k(i){Dt(i)}function Ft(i){throw i}var Yt={closed:!0,next:lt,error:Ft,complete:lt},Gt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Kt(i){return i}function Zt(i){return i.length===0?Kt:i.length===1?i[0]:function(e){return i.reduce(function(r,n){return n(r)},e)}}var ct=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,r){var n=this,s=Qt(t)?t:new X(t,e,r);return L(function(){var o=n,c=o.operator,a=o.source;s.add(c?c.call(s,a):a?n._subscribe(s):n._trySubscribe(s))}),s},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var r=this;return e=ht(e),new e(function(n,s){var o=new X({next:function(c){try{t(c)}catch(a){s(a),o.unsubscribe()}},error:s,complete:n});r.subscribe(o)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[Gt]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Zt(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=ht(t),new t(function(r,n){var s;e.subscribe(function(o){return s=o},function(o){return n(o)},function(){return r(s)})})},i.create=function(t){return new i(t)},i}();function ht(i){var t;return(t=i??qt.Promise)!==null&&t!==void 0?t:Promise}function Jt(i){return i&&b(i.next)&&b(i.error)&&b(i.complete)}function Qt(i){return i&&i instanceof Et||Jt(i)&&St(i)}var Xt=gt(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),wt=function(i){j(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var r=new ut(this,this);return r.operator=e,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Xt},t.prototype.next=function(e){var r=this;L(function(){var n,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=T(r.currentObservers),c=o.next();!c.done;c=o.next()){var a=c.value;a.next(e)}}catch(l){n={error:l}}finally{try{c&&!c.done&&(s=o.return)&&s.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var r=this;L(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var n=r.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;L(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var r=this,n=this,s=n.hasError,o=n.isStopped,c=n.observers;return s||o?At:(this.currentObservers=null,c.push(e),new z(function(){r.currentObservers=null,Q(c,e)}))},t.prototype._checkFinalizedStatuses=function(e){var r=this,n=r.hasError,s=r.thrownError,o=r.isStopped;n?e.error(s):o&&e.complete()},t.prototype.asObservable=function(){var e=new ct;return e.source=this,e},t.create=function(e,r){return new ut(e,r)},t}(ct),ut=function(i){j(t,i);function t(e,r){var n=i.call(this)||this;return n.destination=e,n.source=r,n}return t.prototype.next=function(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)},t.prototype.error=function(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)},t.prototype.complete=function(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)},t.prototype._subscribe=function(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:At},t}(wt),te=function(i){j(t,i);function t(e){var r=i.call(this)||this;return r._value=e,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var r=i.prototype._subscribe.call(this,e);return!r.closed&&e.next(this._value),r},t.prototype.getValue=function(){var e=this,r=e.hasError,n=e.thrownError,s=e._value;if(r)throw n;return this._throwIfClosed(),s},t.prototype.next=function(e){i.prototype.next.call(this,this._value=e)},t}(wt);/**
12
12
  * @license
13
13
  * Copyright 2017 Google LLC
14
14
  * SPDX-License-Identifier: BSD-3-Clause
15
15
  */const U=globalThis,N=U.trustedTypes,ft=N?N.createPolicy("lit-html",{createHTML:i=>i}):void 0,xt="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,Pt="?"+_,ee=`<${Pt}>`,A=document,R=()=>A.createComment(""),I=i=>i===null||typeof i!="object"&&typeof i!="function",et=Array.isArray,re=i=>et(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",D=`[
16
16
  \f\r]`,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pt=/-->/g,dt=/>/g,$=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^
17
- \f\r"'\`<>=]|("|')|))|$)`,"g"),yt=/'/g,vt=/"/g,Ot=/^(?:script|style|textarea|title)$/i,ie=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),be=ie(1),E=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),bt=new WeakMap,g=A.createTreeWalker(A,129);function Ut(i,t){if(!et(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return ft!==void 0?ft.createHTML(t):t}const ne=(i,t)=>{const e=i.length-1,r=[];let n,s=t===2?"<svg>":t===3?"<math>":"",o=P;for(let c=0;c<e;c++){const a=i[c];let l,f,u=-1,d=0;for(;d<a.length&&(o.lastIndex=d,f=o.exec(a),f!==null);)d=o.lastIndex,o===P?f[1]==="!--"?o=pt:f[1]!==void 0?o=dt:f[2]!==void 0?(Ot.test(f[2])&&(n=RegExp("</"+f[2],"g")),o=$):f[3]!==void 0&&(o=$):o===$?f[0]===">"?(o=n??P,u=-1):f[1]===void 0?u=-2:(u=o.lastIndex-f[2].length,l=f[1],o=f[3]===void 0?$:f[3]==='"'?vt:yt):o===vt||o===yt?o=$:o===pt||o===dt?o=P:(o=$,n=void 0);const h=o===$&&i[c+1].startsWith("/>")?" ":"";s+=o===P?a+ee:u>=0?(r.push(l),a.slice(0,u)+xt+a.slice(u)+_+h):a+_+(u===-2?c:h)}return[Ut(i,s+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};class j{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let s=0,o=0;const c=t.length-1,a=this.parts,[l,f]=ne(t,e);if(this.el=j.createElement(l,r),g.currentNode=this.el.content,e===2||e===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=g.nextNode())!==null&&a.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(const u of n.getAttributeNames())if(u.endsWith(xt)){const d=f[o++],h=n.getAttribute(u).split(_),v=/([.?@])?(.*)/.exec(d);a.push({type:1,index:s,name:v[2],strings:h,ctor:v[1]==="."?oe:v[1]==="?"?ae:v[1]==="@"?le:B}),n.removeAttribute(u)}else u.startsWith(_)&&(a.push({type:6,index:s}),n.removeAttribute(u));if(Ot.test(n.tagName)){const u=n.textContent.split(_),d=u.length-1;if(d>0){n.textContent=N?N.emptyScript:"";for(let h=0;h<d;h++)n.append(u[h],R()),g.nextNode(),a.push({type:2,index:++s});n.append(u[d],R())}}}else if(n.nodeType===8)if(n.data===Pt)a.push({type:2,index:s});else{let u=-1;for(;(u=n.data.indexOf(_,u+1))!==-1;)a.push({type:7,index:s}),u+=_.length-1}s++}}static createElement(t,e){const r=A.createElement("template");return r.innerHTML=t,r}}function w(i,t,e=i,r){var o,c;if(t===E)return t;let n=r!==void 0?(o=e.o)==null?void 0:o[r]:e.l;const s=I(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==s&&((c=n==null?void 0:n._$AO)==null||c.call(n,!1),s===void 0?n=void 0:(n=new s(i),n._$AT(i,e,r)),r!==void 0?(e.o??(e.o=[]))[r]=n:e.l=n),n!==void 0&&(t=w(i,n._$AS(i,t.values),n,r)),t}class se{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,n=((t==null?void 0:t.creationScope)??A).importNode(e,!0);g.currentNode=n;let s=g.nextNode(),o=0,c=0,a=r[0];for(;a!==void 0;){if(o===a.index){let l;a.type===2?l=new x(s,s.nextSibling,this,t):a.type===1?l=new a.ctor(s,a.name,a.strings,this,t):a.type===6&&(l=new ce(s,this,t)),this._$AV.push(l),a=r[++c]}o!==(a==null?void 0:a.index)&&(s=g.nextNode(),o++)}return g.currentNode=A,n}p(t){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class x{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this.v}constructor(t,e,r,n){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=n,this.v=(n==null?void 0:n.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=w(this,t,e),I(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==E&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):re(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==p&&I(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){var s;const{values:e,_$litType$:r}=t,n=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=j.createElement(Ut(r.h,r.h[0]),this.options)),r);if(((s=this._$AH)==null?void 0:s._$AD)===n)this._$AH.p(e);else{const o=new se(n,this),c=o.u(this.options);o.p(e),this.T(c),this._$AH=o}}_$AC(t){let e=bt.get(t.strings);return e===void 0&&bt.set(t.strings,e=new j(t)),e}k(t){et(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,n=0;for(const s of t)n===e.length?e.push(r=new x(this.O(R()),this.O(R()),this,this.options)):r=e[n],r._$AI(s),n++;n<e.length&&(this._$AR(r&&r._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}}class B{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,n,s){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=p}_$AI(t,e=this,r,n){const s=this.strings;let o=!1;if(s===void 0)t=w(this,t,e,0),o=!I(t)||t!==this._$AH&&t!==E,o&&(this._$AH=t);else{const c=t;let a,l;for(t=s[0],a=0;a<s.length-1;a++)l=w(this,c[r+a],e,a),l===E&&(l=this._$AH[a]),o||(o=!I(l)||l!==this._$AH[a]),l===p?t=p:t!==p&&(t+=(l??"")+s[a+1]),this._$AH[a]=l}o&&!n&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class oe extends B{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}class ae extends B{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class le extends B{constructor(t,e,r,n,s){super(t,e,r,n,s),this.type=5}_$AI(t,e=this){if((t=w(this,t,e,0)??p)===E)return;const r=this._$AH,n=t===p&&r!==p||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==p&&(r===p||n);n&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class ce{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){w(this,t)}}const _e={I:x},W=U.litHtmlPolyfillSupport;W==null||W(j,x),(U.litHtmlVersions??(U.litHtmlVersions=[])).push("3.2.0");const he=(i,t,e)=>{const r=(e==null?void 0:e.renderBefore)??t;let n=r._$litPart$;if(n===void 0){const s=(e==null?void 0:e.renderBefore)??null;r._$litPart$=n=new x(t.insertBefore(R(),s),s,void 0,e??{})}return n._$AI(i),n};/**
17
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),yt=/'/g,vt=/"/g,Ot=/^(?:script|style|textarea|title)$/i,ie=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),be=ie(1),E=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),bt=new WeakMap,g=A.createTreeWalker(A,129);function Ut(i,t){if(!et(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return ft!==void 0?ft.createHTML(t):t}const ne=(i,t)=>{const e=i.length-1,r=[];let n,s=t===2?"<svg>":t===3?"<math>":"",o=P;for(let c=0;c<e;c++){const a=i[c];let l,f,u=-1,d=0;for(;d<a.length&&(o.lastIndex=d,f=o.exec(a),f!==null);)d=o.lastIndex,o===P?f[1]==="!--"?o=pt:f[1]!==void 0?o=dt:f[2]!==void 0?(Ot.test(f[2])&&(n=RegExp("</"+f[2],"g")),o=$):f[3]!==void 0&&(o=$):o===$?f[0]===">"?(o=n??P,u=-1):f[1]===void 0?u=-2:(u=o.lastIndex-f[2].length,l=f[1],o=f[3]===void 0?$:f[3]==='"'?vt:yt):o===vt||o===yt?o=$:o===pt||o===dt?o=P:(o=$,n=void 0);const h=o===$&&i[c+1].startsWith("/>")?" ":"";s+=o===P?a+ee:u>=0?(r.push(l),a.slice(0,u)+xt+a.slice(u)+_+h):a+_+(u===-2?c:h)}return[Ut(i,s+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};class M{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let s=0,o=0;const c=t.length-1,a=this.parts,[l,f]=ne(t,e);if(this.el=M.createElement(l,r),g.currentNode=this.el.content,e===2||e===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=g.nextNode())!==null&&a.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(const u of n.getAttributeNames())if(u.endsWith(xt)){const d=f[o++],h=n.getAttribute(u).split(_),v=/([.?@])?(.*)/.exec(d);a.push({type:1,index:s,name:v[2],strings:h,ctor:v[1]==="."?oe:v[1]==="?"?ae:v[1]==="@"?le:B}),n.removeAttribute(u)}else u.startsWith(_)&&(a.push({type:6,index:s}),n.removeAttribute(u));if(Ot.test(n.tagName)){const u=n.textContent.split(_),d=u.length-1;if(d>0){n.textContent=N?N.emptyScript:"";for(let h=0;h<d;h++)n.append(u[h],R()),g.nextNode(),a.push({type:2,index:++s});n.append(u[d],R())}}}else if(n.nodeType===8)if(n.data===Pt)a.push({type:2,index:s});else{let u=-1;for(;(u=n.data.indexOf(_,u+1))!==-1;)a.push({type:7,index:s}),u+=_.length-1}s++}}static createElement(t,e){const r=A.createElement("template");return r.innerHTML=t,r}}function w(i,t,e=i,r){var o,c;if(t===E)return t;let n=r!==void 0?(o=e.o)==null?void 0:o[r]:e.l;const s=I(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==s&&((c=n==null?void 0:n._$AO)==null||c.call(n,!1),s===void 0?n=void 0:(n=new s(i),n._$AT(i,e,r)),r!==void 0?(e.o??(e.o=[]))[r]=n:e.l=n),n!==void 0&&(t=w(i,n._$AS(i,t.values),n,r)),t}class se{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,n=((t==null?void 0:t.creationScope)??A).importNode(e,!0);g.currentNode=n;let s=g.nextNode(),o=0,c=0,a=r[0];for(;a!==void 0;){if(o===a.index){let l;a.type===2?l=new x(s,s.nextSibling,this,t):a.type===1?l=new a.ctor(s,a.name,a.strings,this,t):a.type===6&&(l=new ce(s,this,t)),this._$AV.push(l),a=r[++c]}o!==(a==null?void 0:a.index)&&(s=g.nextNode(),o++)}return g.currentNode=A,n}p(t){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class x{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this.v}constructor(t,e,r,n){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=n,this.v=(n==null?void 0:n.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=w(this,t,e),I(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==E&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):re(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==p&&I(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){var s;const{values:e,_$litType$:r}=t,n=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=M.createElement(Ut(r.h,r.h[0]),this.options)),r);if(((s=this._$AH)==null?void 0:s._$AD)===n)this._$AH.p(e);else{const o=new se(n,this),c=o.u(this.options);o.p(e),this.T(c),this._$AH=o}}_$AC(t){let e=bt.get(t.strings);return e===void 0&&bt.set(t.strings,e=new M(t)),e}k(t){et(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,n=0;for(const s of t)n===e.length?e.push(r=new x(this.O(R()),this.O(R()),this,this.options)):r=e[n],r._$AI(s),n++;n<e.length&&(this._$AR(r&&r._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}}class B{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,n,s){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=p}_$AI(t,e=this,r,n){const s=this.strings;let o=!1;if(s===void 0)t=w(this,t,e,0),o=!I(t)||t!==this._$AH&&t!==E,o&&(this._$AH=t);else{const c=t;let a,l;for(t=s[0],a=0;a<s.length-1;a++)l=w(this,c[r+a],e,a),l===E&&(l=this._$AH[a]),o||(o=!I(l)||l!==this._$AH[a]),l===p?t=p:t!==p&&(t+=(l??"")+s[a+1]),this._$AH[a]=l}o&&!n&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class oe extends B{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}class ae extends B{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class le extends B{constructor(t,e,r,n,s){super(t,e,r,n,s),this.type=5}_$AI(t,e=this){if((t=w(this,t,e,0)??p)===E)return;const r=this._$AH,n=t===p&&r!==p||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==p&&(r===p||n);n&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class ce{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){w(this,t)}}const _e={I:x},W=U.litHtmlPolyfillSupport;W==null||W(M,x),(U.litHtmlVersions??(U.litHtmlVersions=[])).push("3.2.0");const he=(i,t,e)=>{const r=(e==null?void 0:e.renderBefore)??t;let n=r._$litPart$;if(n===void 0){const s=(e==null?void 0:e.renderBefore)??null;r._$litPart$=n=new x(t.insertBefore(R(),s),s,void 0,e??{})}return n._$AI(i),n};/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */class C extends S{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=he(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return E}}var _t;C._$litElement$=!0,C.finalized=!0,(_t=globalThis.litElementHydrateSupport)==null||_t.call(globalThis,{LitElement:C});const F=globalThis.litElementPolyfillSupport;F==null||F({LitElement:C});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.0");class me extends C{constructor(){super(...arguments),this.isMealzInternalReady$=new te(!1),this.elements={}}get selectors(){return{}}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.checkMealzInternalStatus(),this.styleURL&&(this.styleURLs=Array.isArray(this.styleURL)?this.styleURL:[this.styleURL]),this.addStyles()}disconnectedCallback(){super.disconnectedCallback(),this.removeStyles()}addStyles(){!this.styleURLs||this.styleURLs.length===0||this.styleURLs.forEach((t,e)=>{const r=`${this.tagName.toLowerCase()}-style-${e}`;if(!document.head.querySelector(`#${r}`)){const s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("href",t.toString()),s.setAttribute("id",r),document.head.appendChild(s)}})}removeStyles(){!this.styleURLs||this.styleURLs.length===0||setTimeout(()=>{this.styleURLs.forEach((t,e)=>{const r=`${this.tagName.toLowerCase()}-style-${e}`,n=document.head.querySelector(`#${r}`);n&&document.getElementsByTagName(this.tagName).length===0&&document.head.removeChild(n)})},100)}initSelectors(...t){t.length>0?t.forEach(e=>{this.selectors[e]&&(this.elements[e]=Array.isArray(this.selectors[e])?this.querySelectorAll(this.selectors[e][0]):this.querySelector(this.selectors[e]))}):Object.entries(this.selectors).forEach(([e,r])=>{this.elements[e]=Array.isArray(r)?this.querySelectorAll(r[0]):this.querySelector(r)})}addClickListener(t,e){const r=this.elements[t];r&&r.addEventListener("click",()=>{r.classList.contains("disabled")||r.hasAttribute("disabled")||e()})}checkMealzInternalStatus(t=0){var e,r,n,s;if((r=(e=rt)==null?void 0:e.supplier)!=null&&r.getToken()&&((s=(n=rt)==null?void 0:n.user)!=null&&s.getLanguage())){this.isMealzInternalReady$.next(!0);return}else t>50&&console.warn("Unable to find the supplier token or user language. Please verify the configuration."),setTimeout(()=>this.checkMealzInternalStatus(t+1),100)}getBaseURL(){return new URL("..",import.meta.url).toString()}}export{te as B,p as D,me as N,ct as O,he as Q,E as R,z as S,M as _,Z as a,K as b,Q as c,ye as d,de as e,$t as f,J as g,T as h,b as i,pe as j,be as k,ve as l,Et as m,wt as n,Gt as o,X as p,lt as q,Dt as r,_e as s,Kt as t,Y as u};
21
+ */class C extends S{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=he(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return E}}var _t;C._$litElement$=!0,C.finalized=!0,(_t=globalThis.litElementHydrateSupport)==null||_t.call(globalThis,{LitElement:C});const F=globalThis.litElementPolyfillSupport;F==null||F({LitElement:C});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.0");class me extends C{constructor(){super(...arguments),this.isMealzInternalReady$=new te(!1),this.elements={}}get selectors(){return{}}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.checkMealzInternalStatus(),this.styleURL&&(this.styleURLs=Array.isArray(this.styleURL)?this.styleURL:[this.styleURL]),this.addStyles()}disconnectedCallback(){super.disconnectedCallback(),this.removeStyles()}addStyles(){!this.styleURLs||this.styleURLs.length===0||this.styleURLs.forEach((t,e)=>{const r=`${this.tagName.toLowerCase()}-style-${e}`;if(!document.head.querySelector(`#${r}`)){const s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("href",t.toString()),s.setAttribute("id",r),document.head.appendChild(s)}})}removeStyles(){!this.styleURLs||this.styleURLs.length===0||setTimeout(()=>{this.styleURLs.forEach((t,e)=>{const r=`${this.tagName.toLowerCase()}-style-${e}`,n=document.head.querySelector(`#${r}`);n&&document.getElementsByTagName(this.tagName).length===0&&document.head.removeChild(n)})},100)}initSelectors(...t){t.length>0?t.forEach(e=>{this.selectors[e]&&(this.elements[e]=Array.isArray(this.selectors[e])?this.querySelectorAll(this.selectors[e][0]):this.querySelector(this.selectors[e]))}):Object.entries(this.selectors).forEach(([e,r])=>{this.elements[e]=Array.isArray(r)?this.querySelectorAll(r[0]):this.querySelector(r)})}addClickListener(t,e){const r=this.elements[t];r&&r.addEventListener("click",()=>{r.classList.contains("disabled")||r.hasAttribute("disabled")||e()})}checkMealzInternalStatus(t=0){var e,r,n,s;if((r=(e=rt)==null?void 0:e.supplier)!=null&&r.getToken()&&((s=(n=rt)==null?void 0:n.user)!=null&&s.getLanguage())){this.isMealzInternalReady$.next(!0);return}else{if(t>50){console.warn("[MealzInternal] Unable to find the supplier token or user language. Please verify the configuration.");return}setTimeout(()=>this.checkMealzInternalStatus(t+1),100)}}getBaseURL(){return new URL("..",import.meta.url).toString()}}export{te as B,p as D,me as N,ct as O,he as Q,E as R,z as S,j as _,Z as a,K as b,Q as c,ye as d,de as e,$t as f,J as g,T as h,b as i,pe as j,be as k,ve as l,Et as m,wt as n,Gt as o,X as p,lt as q,Dt as r,_e as s,Kt as t,Y as u};
@@ -1 +1 @@
1
- import{p as o,f as s}from"./from-DdsjDX8p.js";function f(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];var e=o(a);return s(a,e)}export{f as o};
1
+ import{p as o,f as s}from"./from-CEPL7XsE.js";function f(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];var e=o(a);return s(a,e)}export{f as o};
@@ -1 +1 @@
1
- import{k as s}from"./no-shadow-element-QlLhHglK.js";import{m as i}from"./mealz-sdk-E_fNZM-c.js";const e=class e{static getInstance(){return e.instances.has(this)||e.instances.set(this,new this),e.instances.get(this)}};e.instances=new Map;let c=e;const u={en:"USD","en-US":"USD","en-GB":"GBP",fr:"EUR","fr-FR":"EUR","fr-CA":"CAD"};class h extends c{initFormatter(){const t=i.user.getLanguage()||"fr",r=u[t]||"EUR";this.formatter=new Intl.NumberFormat(t,{style:"currency",currency:r})}currencySymbol(){const t=i.user.getLanguage()||"fr",r=u[t]||"EUR";return new Intl.NumberFormat(t,{style:"currency",currency:r}).format(0).replace(/[\d.,\s]/g,"")}formatPrice(t){return this.formatter||this.initFormatter(),this.formatter.format(t)}priceTemplate(t,r="price"){let n="",a=s``,o=0;return this.formatter.formatToParts(t).forEach(({type:f,value:m},l)=>{f==="currency"?(o=l,a=s`<span class="mealz-${r}__currency">${m}</span>`):n+=m}),o>0?s`<span class="mealz-${r}__amount">${n}</span>${a}`:s`${a}<span class="mealz-${r}__amount">${n}</span>`}}export{h as P,c as S};
1
+ import{k as s}from"./no-shadow-element-D4NOg0uW.js";import{m as i}from"./mealz-sdk-E_fNZM-c.js";const e=class e{static getInstance(){return e.instances.has(this)||e.instances.set(this,new this),e.instances.get(this)}};e.instances=new Map;let c=e;const u={en:"USD","en-US":"USD","en-GB":"GBP",fr:"EUR","fr-FR":"EUR","fr-CA":"CAD"};class h extends c{initFormatter(){const t=i.user.getLanguage()||"fr",r=u[t]||"EUR";this.formatter=new Intl.NumberFormat(t,{style:"currency",currency:r})}currencySymbol(){const t=i.user.getLanguage()||"fr",r=u[t]||"EUR";return new Intl.NumberFormat(t,{style:"currency",currency:r}).format(0).replace(/[\d.,\s]/g,"")}formatPrice(t){return this.formatter||this.initFormatter(),this.formatter.format(t)}priceTemplate(t,r="price"){let n="",a=s``,o=0;return this.formatter.formatToParts(t).forEach(({type:f,value:m},l)=>{f==="currency"?(o=l,a=s`<span class="mealz-${r}__currency">${m}</span>`):n+=m}),o>0?s`<span class="mealz-${r}__amount">${n}</span>${a}`:s`${a}<span class="mealz-${r}__amount">${n}</span>`}}export{h as P,c as S};
@@ -1,4 +1,4 @@
1
- import"../price/price.min.js";import"../counter/counter.min.js";import"./promotion-badge-3XLbShnW.js";import{N as h,k as a,n as E,D as z}from"./no-shadow-element-QlLhHglK.js";import{t as m}from"./custom-element-BhZVzxrc.js";import{n as l}from"./property-ewXDvYQv.js";import{P as k,S as P}from"./price-C5yP2Ah6.js";import{c as x}from"./capitalize-DUAqYmp4.js";import{m as c}from"./mealz-sdk-E_fNZM-c.js";import{d as I}from"./delay-D39fpUTn.js";var O=Object.defineProperty,C=Object.getOwnPropertyDescriptor,b=(t,s,r,i)=>{for(var e=i>1?void 0:i?C(s,r):s,n=t.length-1,d;n>=0;n--)(d=t[n])&&(e=(i?d(s,r,e):d(e))||e);return i&&e&&O(s,r,e),e};let u=class extends h{constructor(){super(),this.isSponsored=!1,this.priceService=k.getInstance(),this.styleURL=new URL("./product-badges/product-badges.css",this.getBaseURL())}formatNumber(t){const s=c.user.getLanguage()||"fr";return new Intl.NumberFormat(s,{minimumFractionDigits:1,maximumFractionDigits:2}).format(t)}render(){return a`
1
+ import"../price/price.min.js";import"../counter/counter.min.js";import"./promotion-badge-TYkTBrOQ.js";import{N as h,k as a,n as E,D as z}from"./no-shadow-element-D4NOg0uW.js";import{t as m}from"./custom-element-BhZVzxrc.js";import{n as l}from"./property-BXNy7Yd-.js";import{P as k,S as P}from"./price-DdIbni0N.js";import{c as x}from"./capitalize-DUAqYmp4.js";import{m as c}from"./mealz-sdk-E_fNZM-c.js";import{d as I}from"./delay-DX2Gy1PY.js";var O=Object.defineProperty,C=Object.getOwnPropertyDescriptor,b=(t,s,r,i)=>{for(var e=i>1?void 0:i?C(s,r):s,n=t.length-1,d;n>=0;n--)(d=t[n])&&(e=(i?d(s,r,e):d(e))||e);return i&&e&&O(s,r,e),e};let u=class extends h{constructor(){super(),this.isSponsored=!1,this.priceService=k.getInstance(),this.styleURL=new URL("./product-badges/product-badges.css",this.getBaseURL())}formatNumber(t){const s=c.user.getLanguage()||"fr";return new Intl.NumberFormat(s,{minimumFractionDigits:1,maximumFractionDigits:2}).format(t)}render(){return a`
2
2
  <div class="mealz-product-badges">
3
3
  <!-- SPONSORED BADGE -->
4
4
  ${this.isSponsored?a`
@@ -1,4 +1,4 @@
1
- import{N as c,k as m}from"./no-shadow-element-QlLhHglK.js";import{t as d}from"./custom-element-BhZVzxrc.js";import{n as l}from"./property-ewXDvYQv.js";import{P as u}from"./price-C5yP2Ah6.js";var g=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p=(e,o,i,r)=>{for(var t=r>1?void 0:r?f(o,i):o,s=e.length-1,a;s>=0;s--)(a=e[s])&&(t=(r?a(o,i,t):a(t))||t);return r&&t&&g(o,i,t),t};let n=class extends c{constructor(){super(),this.priceService=u.getInstance(),this.styleURL=new URL("./promotion-badge/promotion-badge.css",this.getBaseURL())}getPriceAmountSuffix(){var e;return(e=this.priceData.discountType)!=null&&e.endsWith("_perc")?"%":this.priceService.currencySymbol()}render(){var e;return m`
1
+ import{N as c,k as m}from"./no-shadow-element-D4NOg0uW.js";import{t as d}from"./custom-element-BhZVzxrc.js";import{n as l}from"./property-BXNy7Yd-.js";import{P as u}from"./price-DdIbni0N.js";var g=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p=(e,o,i,r)=>{for(var t=r>1?void 0:r?f(o,i):o,s=e.length-1,a;s>=0;s--)(a=e[s])&&(t=(r?a(o,i,t):a(t))||t);return r&&t&&g(o,i,t),t};let n=class extends c{constructor(){super(),this.priceService=u.getInstance(),this.styleURL=new URL("./promotion-badge/promotion-badge.css",this.getBaseURL())}getPriceAmountSuffix(){var e;return(e=this.priceData.discountType)!=null&&e.endsWith("_perc")?"%":this.priceService.currencySymbol()}render(){var e;return m`
2
2
  <div class="mealz-promotion-badge">
3
3
  ${((e=this.priceData)==null?void 0:e.discountAmount)>0?m`
4
4
  <div class="mealz-ds-badge mealz-promotion-badge__promotion">
@@ -1,4 +1,4 @@
1
- import{f as p,u as l}from"./no-shadow-element-QlLhHglK.js";/**
1
+ import{f as p,u as l}from"./no-shadow-element-D4NOg0uW.js";/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1 +1 @@
1
- import{o,c as s}from"./OperatorSubscriber-DTLDfxTG.js";function f(n){return o(function(a,r){var e=!1,i=0;a.subscribe(s(r,function(t){return(e||(e=!n(t,i++)))&&r.next(t)}))})}export{f as s};
1
+ import{o,c as s}from"./OperatorSubscriber-B37s2U6v.js";function f(n){return o(function(a,r){var e=!1,i=0;a.subscribe(s(r,function(t){return(e||(e=!n(t,i++)))&&r.next(t)}))})}export{f as s};
@@ -1,4 +1,4 @@
1
- import{n as r}from"./property-ewXDvYQv.js";/**
1
+ import{n as r}from"./property-BXNy7Yd-.js";/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1,4 +1,4 @@
1
- import{N as h,k as a}from"./no-shadow-element-QlLhHglK.js";import"../select/select.min.js";import{t as c}from"./custom-element-BhZVzxrc.js";import{n as p}from"./property-ewXDvYQv.js";import{r as u}from"./state-CB7P_Crl.js";import{e as m}from"./query-BApjzB0v.js";import{a as b}from"./mealz-sdk-E_fNZM-c.js";class g{get extId(){return this.attributes["ext-id"]}}var _=Object.defineProperty,f=Object.getOwnPropertyDescriptor,r=(e,t,s,o)=>{for(var i=o>1?void 0:o?f(t,s):t,n=e.length-1,d;n>=0;n--)(d=e[n])&&(i=(o?d(t,s,i):d(i))||i);return o&&i&&_(t,s,i),i};let l=class extends h{constructor(){super(),this.show=!1,this.selectedRadius=50,this._mealzSdk=b,this.getByAddress=this._mealzSdk.pos.getByAddress,this.getByCoordinates=this._mealzSdk.pos.getByCoordinates,this.getAffiliateSuppliers=this._mealzSdk.supplier.getAffiliateSuppliers,this._posList=[],this._markers=[],this._searchingPos=!1,this._searchSubmitted=!1,this._prevAddress="",this._previousSearchMethod=()=>{},this._suppliers=[],this._selectedSuppliers=[],this._showPosList=!1,this._posSelected=!1,this.subscriptions=[],this.setGeolocation=()=>{this._prevAddress="",this._previousSearchMethod=()=>this.setGeolocation(),this.getPosByCoordinates()},this.styleURL=new URL("./store-locator/store-locator.css",this.getBaseURL())}set geolocationCoordinates(e){var t,s;this._geolocationCoordinates=e,(t=e==null?void 0:e.coords)!=null&&t.latitude&&((s=e==null?void 0:e.coords)!=null&&s.longitude)&&this.setGeolocation()}get geolocationCoordinates(){return this._geolocationCoordinates}get L(){return window.L}_nameOfStore(e){return`${e.supplier.attributes.name} - ${e.attributes.name}`}connectedCallback(){super.connectedCallback(),this.initLeaflet(),this.fetchSuppliers()}disconnectedCallback(){this.subscriptions.forEach(e=>e.unsubscribe()),super.disconnectedCallback(),this._leafletCss.remove(),this._miamDs.remove(),this._leafletJs.remove()}render(){if(this.show)return this.classList.add("mealz-store-locator"),this.posSelectionTemplate()}firstUpdated(){this._posSelected=!1,this.loadMap(),this.geolocationTimeout(),this.listenFormSubmit()}posSelectionTemplate(){return a`
1
+ import{N as h,k as a}from"./no-shadow-element-D4NOg0uW.js";import"../select/select.min.js";import{t as c}from"./custom-element-BhZVzxrc.js";import{n as p}from"./property-BXNy7Yd-.js";import{r as u}from"./state-b8IyfZUU.js";import{e as m}from"./query-BApjzB0v.js";import{a as b}from"./mealz-sdk-E_fNZM-c.js";class g{get extId(){return this.attributes["ext-id"]}}var _=Object.defineProperty,f=Object.getOwnPropertyDescriptor,r=(e,t,s,o)=>{for(var i=o>1?void 0:o?f(t,s):t,n=e.length-1,d;n>=0;n--)(d=e[n])&&(i=(o?d(t,s,i):d(i))||i);return o&&i&&_(t,s,i),i};let l=class extends h{constructor(){super(),this.show=!1,this.selectedRadius=50,this._mealzSdk=b,this.getByAddress=this._mealzSdk.pos.getByAddress,this.getByCoordinates=this._mealzSdk.pos.getByCoordinates,this.getAffiliateSuppliers=this._mealzSdk.supplier.getAffiliateSuppliers,this._posList=[],this._markers=[],this._searchingPos=!1,this._searchSubmitted=!1,this._prevAddress="",this._previousSearchMethod=()=>{},this._suppliers=[],this._selectedSuppliers=[],this._showPosList=!1,this._posSelected=!1,this.subscriptions=[],this.setGeolocation=()=>{this._prevAddress="",this._previousSearchMethod=()=>this.setGeolocation(),this.getPosByCoordinates()},this.styleURL=new URL("./store-locator/store-locator.css",this.getBaseURL())}set geolocationCoordinates(e){var t,s;this._geolocationCoordinates=e,(t=e==null?void 0:e.coords)!=null&&t.latitude&&((s=e==null?void 0:e.coords)!=null&&s.longitude)&&this.setGeolocation()}get geolocationCoordinates(){return this._geolocationCoordinates}get L(){return window.L}_nameOfStore(e){return`${e.supplier.attributes.name} - ${e.attributes.name}`}connectedCallback(){super.connectedCallback(),this.initLeaflet(),this.fetchSuppliers()}disconnectedCallback(){this.subscriptions.forEach(e=>e.unsubscribe()),super.disconnectedCallback(),this._leafletCss.remove(),this._miamDs.remove(),this._leafletJs.remove()}render(){if(this.show)return this.classList.add("mealz-store-locator"),this.posSelectionTemplate()}firstUpdated(){this._posSelected=!1,this.loadMap(),this.geolocationTimeout(),this.listenFormSubmit()}posSelectionTemplate(){return a`
2
2
  <div class="mealz-wrapper mealz-ds-body">
3
3
  <div class="mealz-pos-selection">
4
4
  <div class="mealz-title">
@@ -1 +1 @@
1
- import{i as v}from"./innerFrom-D6KOflHk.js";import{o as l,c as a}from"./OperatorSubscriber-DTLDfxTG.js";function b(f,e){return l(function(p,r){var n=null,s=0,o=!1,t=function(){return o&&!n&&r.complete()};p.subscribe(a(r,function(i){n==null||n.unsubscribe();var m=0,u=s++;v(f(i,u)).subscribe(n=a(r,function(c){return r.next(e?e(i,c,u,m++):c)},function(){n=null,t()}))},function(){o=!0,t()}))})}export{b as s};
1
+ import{i as v}from"./innerFrom-D8hyVDmo.js";import{o as l,c as a}from"./OperatorSubscriber-B37s2U6v.js";function b(f,e){return l(function(p,r){var n=null,s=0,o=!1,t=function(){return o&&!n&&r.complete()};p.subscribe(a(r,function(i){n==null||n.unsubscribe();var m=0,u=s++;v(f(i,u)).subscribe(n=a(r,function(c){return r.next(e?e(i,c,u,m++):c)},function(){n=null,t()}))},function(){o=!0,t()}))})}export{b as s};
@@ -1 +1 @@
1
- import{E as a}from"./empty-kpxVz-0O.js";import{o as f,c as i}from"./OperatorSubscriber-DTLDfxTG.js";function m(e){return e<=0?function(){return a}:f(function(o,t){var r=0;o.subscribe(i(t,function(n){++r<=e&&(t.next(n),e<=r&&t.complete())}))})}export{m as t};
1
+ import{E as a}from"./empty-DhPhHznc.js";import{o as f,c as i}from"./OperatorSubscriber-B37s2U6v.js";function m(e){return e<=0?function(){return a}:f(function(o,t){var r=0;o.subscribe(i(t,function(n){++r<=e&&(t.next(n),e<=r&&t.complete())}))})}export{m as t};
@@ -1 +1 @@
1
- import{t as e,i as d}from"./no-shadow-element-QlLhHglK.js";import{o as f,c as s}from"./OperatorSubscriber-DTLDfxTG.js";function _(n,r,u){var a=d(n)||r||u?{next:n,error:r,complete:u}:n;return a?f(function(v,l){var t;(t=a.subscribe)===null||t===void 0||t.call(a);var c=!0;v.subscribe(s(l,function(i){var o;(o=a.next)===null||o===void 0||o.call(a,i),l.next(i)},function(){var i;c=!1,(i=a.complete)===null||i===void 0||i.call(a),l.complete()},function(i){var o;c=!1,(o=a.error)===null||o===void 0||o.call(a,i),l.error(i)},function(){var i,o;c&&((i=a.unsubscribe)===null||i===void 0||i.call(a)),(o=a.finalize)===null||o===void 0||o.call(a)}))}):e}export{_ as t};
1
+ import{t as e,i as d}from"./no-shadow-element-D4NOg0uW.js";import{o as f,c as s}from"./OperatorSubscriber-B37s2U6v.js";function _(n,r,u){var a=d(n)||r||u?{next:n,error:r,complete:u}:n;return a?f(function(v,l){var t;(t=a.subscribe)===null||t===void 0||t.call(a);var c=!0;v.subscribe(s(l,function(i){var o;(o=a.next)===null||o===void 0||o.call(a,i),l.next(i)},function(){var i;c=!1,(i=a.complete)===null||i===void 0||i.call(a),l.complete()},function(i){var o;c=!1,(o=a.error)===null||o===void 0||o.call(a,i),l.error(i)},function(){var i,o;c&&((i=a.unsubscribe)===null||i===void 0||i.call(a)),(o=a.finalize)===null||o===void 0||o.call(a)}))}):e}export{_ as t};
@@ -1 +1 @@
1
- import{O as p}from"./no-shadow-element-QlLhHglK.js";import{b as m}from"./async-CmPLa8Kr.js";import{i as r}from"./executeSchedule-Bcv6kCZW.js";function v(n){return n instanceof Date&&!isNaN(n)}function x(n,o,i){n===void 0&&(n=0),i===void 0&&(i=m);var t=-1;return o!=null&&(r(o)?i=o:t=o),new p(function(f){var a=v(n)?+n-i.now():n;a<0&&(a=0);var s=0;return i.schedule(function(){f.closed||(f.next(s++),0<=t?this.schedule(void 0,t):f.complete())},a)})}export{x as t};
1
+ import{O as p}from"./no-shadow-element-D4NOg0uW.js";import{b as m}from"./async-guWcMFmJ.js";import{i as r}from"./executeSchedule-Dqc6shOu.js";function v(n){return n instanceof Date&&!isNaN(n)}function x(n,o,i){n===void 0&&(n=0),i===void 0&&(i=m);var t=-1;return o!=null&&(r(o)?i=o:t=o),new p(function(f){var a=v(n)?+n-i.now():n;a<0&&(a=0);var s=0;return i.schedule(function(){f.closed||(f.next(s++),0<=t?this.schedule(void 0,t):f.complete())},a)})}export{x as t};
@@ -1,4 +1,4 @@
1
- import{D as s,R as o}from"./no-shadow-element-QlLhHglK.js";/**
1
+ import{D as s,R as o}from"./no-shadow-element-D4NOg0uW.js";/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1 +1 @@
1
- import{n as c}from"./no-shadow-element-QlLhHglK.js";import{d as h}from"./debounceTime-D-8QwBTO.js";class a{constructor(){this.condition=!0,this.threshold=0,this.debounce=0}}class p{constructor(t,i,s={}){this.element=t,this.callback=i,this.params=s,this.intersectionSubject=new c,this.subscriptions=[],this.params={...new a,...s};const n={root:null,rootMargin:"0px",threshold:this.params.threshold};this.observer=new IntersectionObserver(r=>{r.forEach(o=>this.intersectionSubject.next(o))},n),this.connect()}connect(){this.subscriptions.push(this.intersectionSubject.pipe(h(this.params.debounce)).subscribe(t=>this.handleIntersection(t))),this.observer.observe(this.element)}disconnect(){this.observer&&this.observer.disconnect(),this.intersectionSubject.complete(),this.subscriptions.forEach(t=>t.unsubscribe())}handleIntersection(t){this.params.condition&&t.isIntersecting&&this.callback()}}export{p as V};
1
+ import{n as c}from"./no-shadow-element-D4NOg0uW.js";import{d as h}from"./debounceTime-cu8WlLF0.js";class a{constructor(){this.condition=!0,this.threshold=0,this.debounce=0}}class p{constructor(t,i,s={}){this.element=t,this.callback=i,this.params=s,this.intersectionSubject=new c,this.subscriptions=[],this.params={...new a,...s};const n={root:null,rootMargin:"0px",threshold:this.params.threshold};this.observer=new IntersectionObserver(r=>{r.forEach(o=>this.intersectionSubject.next(o))},n),this.connect()}connect(){this.subscriptions.push(this.intersectionSubject.pipe(h(this.params.debounce)).subscribe(t=>this.handleIntersection(t))),this.observer.observe(this.element)}disconnect(){this.observer&&this.observer.disconnect(),this.intersectionSubject.complete(),this.subscriptions.forEach(t=>t.unsubscribe())}handleIntersection(t){this.params.condition&&t.isIntersecting&&this.callback()}}export{p as V};
@@ -1,4 +1,4 @@
1
- import{N as m,k as a}from"../assets/no-shadow-element-QlLhHglK.js";import{t as u}from"../assets/custom-element-BhZVzxrc.js";import{m as o}from"../assets/mealz-sdk-E_fNZM-c.js";var c=Object.getOwnPropertyDescriptor,p=(s,n,d,l)=>{for(var e=l>1?void 0:l?c(n,d):n,t=s.length-1,i;t>=0;t--)(i=s[t])&&(e=i(e)||e);return e};let r=class extends m{constructor(){super(),this.supplierName=null,this.showTransferConfirmModal=!1,this.subscriptions=[],this.styleURL=new URL("./basket-transfer-modal/basket-transfer-modal.css",this.getBaseURL())}connectedCallback(){super.connectedCallback(),this.subscriptions.push(o.pos.currentPos().subscribe(s=>{this.supplierName=(s==null?void 0:s.relationships.supplier.data.attributes.name)??null}))}disconnectedCallback(){super.disconnectedCallback(),this.subscriptions.forEach(s=>s.unsubscribe())}render(){return a`
1
+ import{N as m,k as a}from"../assets/no-shadow-element-D4NOg0uW.js";import{t as u}from"../assets/custom-element-BhZVzxrc.js";import{m as o}from"../assets/mealz-sdk-E_fNZM-c.js";var c=Object.getOwnPropertyDescriptor,p=(s,n,d,l)=>{for(var e=l>1?void 0:l?c(n,d):n,t=s.length-1,i;t>=0;t--)(i=s[t])&&(e=i(e)||e);return e};let r=class extends m{constructor(){super(),this.supplierName=null,this.showTransferConfirmModal=!1,this.subscriptions=[],this.styleURL=new URL("./basket-transfer-modal/basket-transfer-modal.css",this.getBaseURL())}connectedCallback(){super.connectedCallback(),this.subscriptions.push(o.pos.currentPos().subscribe(s=>{this.supplierName=(s==null?void 0:s.relationships.supplier.data.attributes.name)??null}))}disconnectedCallback(){super.disconnectedCallback(),this.subscriptions.forEach(s=>s.unsubscribe())}render(){return a`
2
2
  <mealz-modal @modalClosed=${this.hide}>
3
3
  <span slot="title">Transfert du panier</span>
4
4
  <span slot="content">
@@ -1,4 +1,4 @@
1
- import"../../store-indicator/store-indicator.min.js";import"../../slider-tabs/slider-tabs.min.js";import"../../assets/store-locator-CpKpyxUa.js";import{N as R,k as c,D as k,s as O,R as D}from"../../assets/no-shadow-element-QlLhHglK.js";import{t as x}from"../../assets/custom-element-BhZVzxrc.js";import{n as E}from"../../assets/property-ewXDvYQv.js";import{m as l,a as U}from"../../assets/mealz-sdk-E_fNZM-c.js";import"../../counter/counter.min.js";import"../../price/price.min.js";import"../../modal/modal.min.js";import{P as B}from"../../assets/price-C5yP2Ah6.js";import{c as M}from"../../assets/capitalize-DUAqYmp4.js";import{e as q,i as L,t as V}from"../../assets/unsafe-html-BxKVegsR.js";import{d as F}from"../../assets/delay-D39fpUTn.js";import"../../select/select.min.js";import"../../assets/state-CB7P_Crl.js";import"../../assets/query-BApjzB0v.js";import"../../assets/debounceTime-D-8QwBTO.js";import"../../assets/async-CmPLa8Kr.js";import"../../assets/OperatorSubscriber-DTLDfxTG.js";import"../../onboarding/events.min.js";import"../../assets/take-DpcsPTvZ.js";import"../../assets/empty-kpxVz-0O.js";import"../../assets/map-hUep_Pe9.js";import"../../assets/mergeMap-DK1Hk0t3.js";import"../../assets/innerFrom-D6KOflHk.js";import"../../assets/executeSchedule-Bcv6kCZW.js";import"../../assets/timer-C5HGcf9-.js";var j=Object.defineProperty,H=Object.getOwnPropertyDescriptor,N=(e,t,i,a)=>{for(var s=a>1?void 0:a?H(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(s=(a?r(t,i,s):r(s))||s);return a&&s&&j(t,i,s),s};let g=class extends R{constructor(){super(),this.analyticsPath="",this.styleURL=new URL("./product-addition/product-addition.css",this.getBaseURL())}render(){return c`
1
+ import"../../store-indicator/store-indicator.min.js";import"../../slider-tabs/slider-tabs.min.js";import"../../assets/store-locator-CQ_XQBby.js";import{N as R,k as c,D as k,s as O,R as D}from"../../assets/no-shadow-element-D4NOg0uW.js";import{t as x}from"../../assets/custom-element-BhZVzxrc.js";import{n as E}from"../../assets/property-BXNy7Yd-.js";import{m as l,a as U}from"../../assets/mealz-sdk-E_fNZM-c.js";import"../../counter/counter.min.js";import"../../price/price.min.js";import"../../modal/modal.min.js";import{P as B}from"../../assets/price-DdIbni0N.js";import{c as M}from"../../assets/capitalize-DUAqYmp4.js";import{e as q,i as L,t as V}from"../../assets/unsafe-html-C8GMyVYZ.js";import{d as F}from"../../assets/delay-DX2Gy1PY.js";import"../../select/select.min.js";import"../../assets/state-b8IyfZUU.js";import"../../assets/query-BApjzB0v.js";import"../../assets/debounceTime-cu8WlLF0.js";import"../../assets/async-guWcMFmJ.js";import"../../assets/OperatorSubscriber-B37s2U6v.js";import"../../onboarding/events.min.js";import"../../assets/take-ujVMxFwY.js";import"../../assets/empty-DhPhHznc.js";import"../../assets/map-D6X2syNu.js";import"../../assets/mergeMap-CX64J-ac.js";import"../../assets/innerFrom-D8hyVDmo.js";import"../../assets/executeSchedule-Dqc6shOu.js";import"../../assets/timer-D3X0vtFO.js";var j=Object.defineProperty,H=Object.getOwnPropertyDescriptor,N=(e,t,i,a)=>{for(var s=a>1?void 0:a?H(t,i):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(s=(a?r(t,i,s):r(s))||s);return a&&s&&j(t,i,s),s};let g=class extends R{constructor(){super(),this.analyticsPath="",this.styleURL=new URL("./product-addition/product-addition.css",this.getBaseURL())}render(){return c`
2
2
  <div class="mealz-product-addition">
3
3
  <span class="mealz-product-addition__title mealz-ds-text">Besoin de quelque chose en particulier ?</span>
4
4
  <button @click=${()=>this.openProductAdditionModal()}
@@ -1 +1 @@
1
- import{t as h}from"../../assets/custom-element-BhZVzxrc.js";import"../../assets/no-shadow-element-QlLhHglK.js";import{C as m}from"../catalog-load-more.min.js";import{h as g}from"../../assets/session-handler-BZFnRy_K.js";import{w as u,m as o}from"../../assets/mealz-sdk-E_fNZM-c.js";import"../../assets/http-CtqmFT_i.js";import"../../assets/innerFrom-D6KOflHk.js";import"../../assets/mergeMap-DK1Hk0t3.js";import"../../assets/map-hUep_Pe9.js";import"../../assets/OperatorSubscriber-DTLDfxTG.js";import"../../assets/executeSchedule-Bcv6kCZW.js";import"../../assets/mapOneOrManyArgs-grjqJfJT.js";import"../../assets/async-CmPLa8Kr.js";import"../../assets/timer-C5HGcf9-.js";var C=Object.getOwnPropertyDescriptor,f=(e,t,n,i)=>{for(var r=i>1?void 0:i?C(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(r=s(r)||r);return r};let p=class extends m{constructor(){super(...arguments),this.retryCount=0,this.maxRetries=30}connectedCallback(){super.connectedCallback(),u().then(()=>{var e,t;(t=(e=o)==null?void 0:e.preferences)!=null&&t.preferencesChanged$&&this.subscriptions.push(o.preferences.preferencesChanged$().subscribe(()=>this.reloadPage()))}).catch(e=>{console.warn("Failed to initialize preferences subscription:",e)})}disconnectedCallback(){super.disconnectedCallback()}render(){var l;const e=(l=this.attributes["starting-data"])==null?void 0:l.value;if(!e||(this.recipeCardListHTML=this.querySelector(".mealz-catalog__list"),!this.recipeCardListHTML))return;const{batchSize:t,packageId:n,posId:i,loadMoreURL:r,displayRecipeVariant:a,search:s,sessionId:c,path:d}=JSON.parse(e);g(c),this.analyticsPath=d,this.sendPageViewEvent(),this.loadMoreRecipesOnScroll({displayRecipeVariant:a,loadMoreURL:r,sessionId:c,pageSize:t,storeId:i,packageId:n,search:s,listHTML:this.recipeCardListHTML}),this.removeAttribute("starting-data")}reloadPage(){location.reload()}sendPageViewEvent(){o?(o.analytics.sendEvent("pageview",this.analyticsPath,{}),this.retryCount=0):this.retryCount<this.maxRetries&&(this.retryCount++,setTimeout(()=>this.sendPageViewEvent(),10))}};p=f([h("mealz-catalog-category")],p);
1
+ import{t as h}from"../../assets/custom-element-BhZVzxrc.js";import"../../assets/no-shadow-element-D4NOg0uW.js";import{C as m}from"../catalog-load-more.min.js";import{h as g}from"../../assets/session-handler-BZFnRy_K.js";import{w as u,m as o}from"../../assets/mealz-sdk-E_fNZM-c.js";import"../../assets/http-Bepz6wA4.js";import"../../assets/innerFrom-D8hyVDmo.js";import"../../assets/mergeMap-CX64J-ac.js";import"../../assets/map-D6X2syNu.js";import"../../assets/OperatorSubscriber-B37s2U6v.js";import"../../assets/executeSchedule-Dqc6shOu.js";import"../../assets/mapOneOrManyArgs-UKKoFfIU.js";import"../../assets/async-guWcMFmJ.js";import"../../assets/timer-D3X0vtFO.js";var C=Object.getOwnPropertyDescriptor,f=(e,t,n,i)=>{for(var r=i>1?void 0:i?C(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(r=s(r)||r);return r};let p=class extends m{constructor(){super(...arguments),this.retryCount=0,this.maxRetries=30}connectedCallback(){super.connectedCallback(),u().then(()=>{var e,t;(t=(e=o)==null?void 0:e.preferences)!=null&&t.preferencesChanged$&&this.subscriptions.push(o.preferences.preferencesChanged$().subscribe(()=>this.reloadPage()))}).catch(e=>{console.warn("Failed to initialize preferences subscription:",e)})}disconnectedCallback(){super.disconnectedCallback()}render(){var l;const e=(l=this.attributes["starting-data"])==null?void 0:l.value;if(!e||(this.recipeCardListHTML=this.querySelector(".mealz-catalog__list"),!this.recipeCardListHTML))return;const{batchSize:t,packageId:n,posId:i,loadMoreURL:r,displayRecipeVariant:a,search:s,sessionId:c,path:d}=JSON.parse(e);g(c),this.analyticsPath=d,this.sendPageViewEvent(),this.loadMoreRecipesOnScroll({displayRecipeVariant:a,loadMoreURL:r,sessionId:c,pageSize:t,storeId:i,packageId:n,search:s,listHTML:this.recipeCardListHTML}),this.removeAttribute("starting-data")}reloadPage(){location.reload()}sendPageViewEvent(){o?(o.analytics.sendEvent("pageview",this.analyticsPath,{}),this.retryCount=0):this.retryCount<this.maxRetries&&(this.retryCount++,setTimeout(()=>this.sendPageViewEvent(),10))}};p=f([h("mealz-catalog-category")],p);
@@ -1 +1 @@
1
- import{t as g}from"../../assets/custom-element-BhZVzxrc.js";import"../../assets/no-shadow-element-QlLhHglK.js";import{C as h}from"../catalog-load-more.min.js";import{h as u}from"../../assets/session-handler-BZFnRy_K.js";import{m as n}from"../../assets/mealz-sdk-E_fNZM-c.js";import{f as m}from"../../assets/filter-5Dmf5Y50.js";import"../../assets/http-CtqmFT_i.js";import"../../assets/innerFrom-D6KOflHk.js";import"../../assets/mergeMap-DK1Hk0t3.js";import"../../assets/map-hUep_Pe9.js";import"../../assets/OperatorSubscriber-DTLDfxTG.js";import"../../assets/executeSchedule-Bcv6kCZW.js";import"../../assets/mapOneOrManyArgs-grjqJfJT.js";import"../../assets/async-CmPLa8Kr.js";import"../../assets/timer-C5HGcf9-.js";function f(e){return m(function(t,i){return e<=i})}var v=Object.getOwnPropertyDescriptor,_=(e,t,i,o)=>{for(var s=o>1?void 0:o?v(t,i):t,r=e.length-1,a;r>=0;r--)(a=e[r])&&(s=a(s)||s);return s};let d=class extends h{constructor(){super(...arguments),this.retryCount=0,this.maxRetries=30}connectedCallback(){super.connectedCallback(),this.subscriptions.push(n.user.isAuthenticated().pipe(f(1)).subscribe(e=>{this.isLogged=e,this.updateDOM()}),this.handleLikedRecipe())}disconnectedCallback(){super.disconnectedCallback()}render(){var c;const e=(c=this.attributes["starting-data"])==null?void 0:c.value;if(!e)return;const{pageSize:t,storeId:i,loadMoreURL:o,displayRecipeVariant:s,search:r,sessionId:a,path:p}=JSON.parse(e);if(this.analyticsPath=p,this.sendPageViewEvent(),this.favorites=this.querySelector(".mealz-catalog-favorites__list"),!this.favorites)return;const l=this.querySelector(".mealz-catalog__list");l&&(u(a),this.loadMoreRecipesOnScroll({displayRecipeVariant:s,loadMoreURL:o,sessionId:a,pageSize:t,storeId:i,packageId:null,search:r,listHTML:l}),this.removeAttribute("starting-data"))}updateDOM(){const e=this.querySelector(".mealz-catalog-favorites__list__not-logged"),t=this.querySelector(".mealz-catalog-favorites__list__logged");!e||!t||(e.classList.toggle("hidden",this.isLogged),t.classList.toggle("hidden",!this.isLogged))}sendPageViewEvent(){var e;n?((e=n.analytics)==null||e.sendEvent("pageview",this.analyticsPath,{}),this.retryCount=0):this.retryCount<this.maxRetries&&(this.retryCount++,setTimeout(()=>this.sendPageViewEvent(),10))}handleLikedRecipe(){return n.recipes.recipeLikeUpdated().subscribe(({id:e,isPast:t})=>{const i=document.getElementById("mealz-recipe-card-"+e);i&&i.classList.toggle("hidden",t),this.requestUpdate()})}};d=_([g("mealz-catalog-favorites")],d);
1
+ import{t as g}from"../../assets/custom-element-BhZVzxrc.js";import"../../assets/no-shadow-element-D4NOg0uW.js";import{C as h}from"../catalog-load-more.min.js";import{h as u}from"../../assets/session-handler-BZFnRy_K.js";import{m as n}from"../../assets/mealz-sdk-E_fNZM-c.js";import{f as m}from"../../assets/filter-BjN-BbQD.js";import"../../assets/http-Bepz6wA4.js";import"../../assets/innerFrom-D8hyVDmo.js";import"../../assets/mergeMap-CX64J-ac.js";import"../../assets/map-D6X2syNu.js";import"../../assets/OperatorSubscriber-B37s2U6v.js";import"../../assets/executeSchedule-Dqc6shOu.js";import"../../assets/mapOneOrManyArgs-UKKoFfIU.js";import"../../assets/async-guWcMFmJ.js";import"../../assets/timer-D3X0vtFO.js";function f(e){return m(function(t,i){return e<=i})}var v=Object.getOwnPropertyDescriptor,_=(e,t,i,o)=>{for(var s=o>1?void 0:o?v(t,i):t,r=e.length-1,a;r>=0;r--)(a=e[r])&&(s=a(s)||s);return s};let d=class extends h{constructor(){super(...arguments),this.retryCount=0,this.maxRetries=30}connectedCallback(){super.connectedCallback(),this.subscriptions.push(n.user.isAuthenticated().pipe(f(1)).subscribe(e=>{this.isLogged=e,this.updateDOM()}),this.handleLikedRecipe())}disconnectedCallback(){super.disconnectedCallback()}render(){var c;const e=(c=this.attributes["starting-data"])==null?void 0:c.value;if(!e)return;const{pageSize:t,storeId:i,loadMoreURL:o,displayRecipeVariant:s,search:r,sessionId:a,path:p}=JSON.parse(e);if(this.analyticsPath=p,this.sendPageViewEvent(),this.favorites=this.querySelector(".mealz-catalog-favorites__list"),!this.favorites)return;const l=this.querySelector(".mealz-catalog__list");l&&(u(a),this.loadMoreRecipesOnScroll({displayRecipeVariant:s,loadMoreURL:o,sessionId:a,pageSize:t,storeId:i,packageId:null,search:r,listHTML:l}),this.removeAttribute("starting-data"))}updateDOM(){const e=this.querySelector(".mealz-catalog-favorites__list__not-logged"),t=this.querySelector(".mealz-catalog-favorites__list__logged");!e||!t||(e.classList.toggle("hidden",this.isLogged),t.classList.toggle("hidden",!this.isLogged))}sendPageViewEvent(){var e;n?((e=n.analytics)==null||e.sendEvent("pageview",this.analyticsPath,{}),this.retryCount=0):this.retryCount<this.maxRetries&&(this.retryCount++,setTimeout(()=>this.sendPageViewEvent(),10))}handleLikedRecipe(){return n.recipes.recipeLikeUpdated().subscribe(({id:e,isPast:t})=>{const i=document.getElementById("mealz-recipe-card-"+e);i&&i.classList.toggle("hidden",t),this.requestUpdate()})}};d=_([g("mealz-catalog-favorites")],d);
@@ -1 +1 @@
1
- import{C as y}from"../catalog-load-more.min.js";import{t as c}from"../../assets/custom-element-BhZVzxrc.js";import"../../assets/no-shadow-element-QlLhHglK.js";import{h as p}from"../../assets/session-handler-BZFnRy_K.js";import{m as h}from"../../assets/mealz-sdk-E_fNZM-c.js";import"../../assets/http-CtqmFT_i.js";import"../../assets/innerFrom-D6KOflHk.js";import"../../assets/mergeMap-DK1Hk0t3.js";import"../../assets/map-hUep_Pe9.js";import"../../assets/OperatorSubscriber-DTLDfxTG.js";import"../../assets/executeSchedule-Bcv6kCZW.js";import"../../assets/mapOneOrManyArgs-grjqJfJT.js";import"../../assets/async-CmPLa8Kr.js";import"../../assets/timer-C5HGcf9-.js";var m=Object.getOwnPropertyDescriptor,g=(t,e,r,i)=>{for(var s=i>1?void 0:i?m(e,r):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(s=o(s)||s);return s};let n=class extends y{constructor(){super(),this.retryCount=0,this.maxRetries=30,this.isHandlingHistory=!1,this.styleURL=new URL("./catalog/catalog-history/catalog-history.css",this.getBaseURL()),this.handleHistoryDrawer=this.handleHistoryDrawer.bind(this)}connectedCallback(){super.connectedCallback();const t=this.getAttribute("starting-data");if(!t)return;const{loadMoreURL:e,drawerDataURL:r,sessionId:i,pageSize:s,storeId:a,orders:o,path:l,historyStyle:d}=JSON.parse(t);this.historyDrawerData=JSON.stringify({storeId:a,sessionId:i,drawerDataURL:r}),this.loadMoreURL=e,this.sessionId=i,this.pageSize=s,this.storeId=a,this.orders=o,this.analyticsPath=l,this.historyStyle=d,p(this.sessionId),this.removeAttribute("starting-data"),this.sendPageViewEvent(),this.initURLListener(),this.handleHistoryDrawer()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("popstate",this.handleHistoryDrawer)}render(){const t=this.querySelector(".mealz-catalog__list");t&&(this.historyOrderListHTML=t,this.loadMoreRecipesOnScroll({displayRecipeVariant:"",loadMoreURL:this.loadMoreURL,sessionId:this.sessionId,pageSize:+this.pageSize,storeId:this.storeId,packageId:void 0,search:"",listHTML:this.historyOrderListHTML,historyStyle:this.historyStyle}))}handleHistoryDrawer(){if(!this.isHandlingHistory){this.isHandlingHistory=!0;try{const t=new URL(window.location.href),e=t.searchParams.get("order"),r=t.searchParams.get("displayRecipe");if(!e||!this.orders||r)return;const i=document.querySelector("mealz-drawer-view-swapper"),s=this.orders.find(o=>o.id===e),a=(s==null?void 0:s.updatedAt)||"";i&&i.displayHistoryDrawer$.next({historyDrawerData:this.historyDrawerData,orderId:e,orderDate:a})}finally{setTimeout(()=>{this.isHandlingHistory=!1},0)}}}initURLListener(){window.addEventListener("popstate",this.handleHistoryDrawer);const t=history.pushState,e=history.replaceState;history.pushState=(...r)=>{t.apply(history,r),this.handleHistoryDrawer()},history.replaceState=(...r)=>{e.apply(history,r),this.handleHistoryDrawer()}}sendPageViewEvent(){h?(h.analytics.sendEvent("pageview",this.analyticsPath,{}),this.retryCount=0):this.retryCount<this.maxRetries&&(this.retryCount++,setTimeout(()=>this.sendPageViewEvent(),10))}};n=g([c("mealz-catalog-history")],n);customElements.get("mealz-catalog-history")||customElements.define("mealz-catalog-history",n);
1
+ import{C as y}from"../catalog-load-more.min.js";import{t as c}from"../../assets/custom-element-BhZVzxrc.js";import"../../assets/no-shadow-element-D4NOg0uW.js";import{h as p}from"../../assets/session-handler-BZFnRy_K.js";import{m as h}from"../../assets/mealz-sdk-E_fNZM-c.js";import"../../assets/http-Bepz6wA4.js";import"../../assets/innerFrom-D8hyVDmo.js";import"../../assets/mergeMap-CX64J-ac.js";import"../../assets/map-D6X2syNu.js";import"../../assets/OperatorSubscriber-B37s2U6v.js";import"../../assets/executeSchedule-Dqc6shOu.js";import"../../assets/mapOneOrManyArgs-UKKoFfIU.js";import"../../assets/async-guWcMFmJ.js";import"../../assets/timer-D3X0vtFO.js";var m=Object.getOwnPropertyDescriptor,g=(t,e,r,i)=>{for(var s=i>1?void 0:i?m(e,r):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(s=o(s)||s);return s};let n=class extends y{constructor(){super(),this.retryCount=0,this.maxRetries=30,this.isHandlingHistory=!1,this.styleURL=new URL("./catalog/catalog-history/catalog-history.css",this.getBaseURL()),this.handleHistoryDrawer=this.handleHistoryDrawer.bind(this)}connectedCallback(){super.connectedCallback();const t=this.getAttribute("starting-data");if(!t)return;const{loadMoreURL:e,drawerDataURL:r,sessionId:i,pageSize:s,storeId:a,orders:o,path:l,historyStyle:d}=JSON.parse(t);this.historyDrawerData=JSON.stringify({storeId:a,sessionId:i,drawerDataURL:r}),this.loadMoreURL=e,this.sessionId=i,this.pageSize=s,this.storeId=a,this.orders=o,this.analyticsPath=l,this.historyStyle=d,p(this.sessionId),this.removeAttribute("starting-data"),this.sendPageViewEvent(),this.initURLListener(),this.handleHistoryDrawer()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("popstate",this.handleHistoryDrawer)}render(){const t=this.querySelector(".mealz-catalog__list");t&&(this.historyOrderListHTML=t,this.loadMoreRecipesOnScroll({displayRecipeVariant:"",loadMoreURL:this.loadMoreURL,sessionId:this.sessionId,pageSize:+this.pageSize,storeId:this.storeId,packageId:void 0,search:"",listHTML:this.historyOrderListHTML,historyStyle:this.historyStyle}))}handleHistoryDrawer(){if(!this.isHandlingHistory){this.isHandlingHistory=!0;try{const t=new URL(window.location.href),e=t.searchParams.get("order"),r=t.searchParams.get("displayRecipe");if(!e||!this.orders||r)return;const i=document.querySelector("mealz-drawer-view-swapper"),s=this.orders.find(o=>o.id===e),a=(s==null?void 0:s.updatedAt)||"";i&&i.displayHistoryDrawer$.next({historyDrawerData:this.historyDrawerData,orderId:e,orderDate:a})}finally{setTimeout(()=>{this.isHandlingHistory=!1},0)}}}initURLListener(){window.addEventListener("popstate",this.handleHistoryDrawer);const t=history.pushState,e=history.replaceState;history.pushState=(...r)=>{t.apply(history,r),this.handleHistoryDrawer()},history.replaceState=(...r)=>{e.apply(history,r),this.handleHistoryDrawer()}}sendPageViewEvent(){h?(h.analytics.sendEvent("pageview",this.analyticsPath,{}),this.retryCount=0):this.retryCount<this.maxRetries&&(this.retryCount++,setTimeout(()=>this.sendPageViewEvent(),10))}};n=g([c("mealz-catalog-history")],n);customElements.get("mealz-catalog-history")||customElements.define("mealz-catalog-history",n);
@@ -1 +1 @@
1
- .mealz-catalog-home{width:100%;position:relative;background-color:var(--mealz-ds-color-neutral-white, #fff)}.mealz-catalog-home .mealz-catalog-home__header{display:flex;height:250px;border-bottom:1px solid var(--mealz-ds-color-neutral-200, #EFF1F3)}@media (max-width: 607px){.mealz-catalog-home .mealz-catalog-home__header{flex-direction:column;height:auto}.mealz-catalog-home .mealz-catalog-home__header .mealz-catalog-home__header-right{padding:0}}.mealz-catalog-home .mealz-catalog-home__promotions-banner{display:none;justify-content:center;margin-bottom:24px}.mealz-catalog-home .mealz-catalog-home__header-left{display:flex;justify-content:center;align-items:center;flex:1;max-width:548px}.mealz-catalog-home .mealz-catalog-home__header-left .mealz-catalog__title{font-size:40px;line-height:120%}@media (max-width: 607px){.mealz-catalog-home .mealz-catalog-home__header-left{justify-content:left;padding:16px}.mealz-catalog-home .mealz-catalog-home__header-left .mealz-catalog__title{font-size:24px}}.mealz-catalog-home .mealz-catalog-home__header-right{flex:1;background-repeat:no-repeat;background-size:cover;background-image:url(https://storage.googleapis.com/assets.miam.tech/pictures/catalog_settings/coursesu/2-banner/2-banner_1200x215.jpg)}.mealz-catalog-home .mealz-catalog-home__planner-button{width:fit-content;text-decoration:none;margin-bottom:24px}.mealz-catalog-home .mealz-catalog-home__categories .mealz-catalog-home__category .mealz-catalog-home__category__header-bottom{display:flex;justify-content:space-between;gap:16px}.mealz-catalog-home .mealz-catalog-home__categories .mealz-catalog-home__category .mealz-catalog-home__category__header-bottom .mealz-catalog-home__category__link{display:flex;align-items:center;color:var(--mealz-ds-color-primary, #24748F);white-space:nowrap;gap:8px}.mealz-catalog-home .mealz-catalog-home__categories .mealz-catalog-home__category .mealz-catalog-home__category__header-bottom .mealz-catalog-home__category__link img{width:16px;height:16px}.mealz-catalog-home .mealz-catalog-home__categories .mealz-catalog-home__category .mealz-catalog-home__category__content{position:relative;overflow:hidden;padding:16px 0;width:100%;height:var(--mealz-recipe-card-height, 360px);box-sizing:content-box;display:flex;flex-direction:row;flex-wrap:wrap;transition-duration:.5s;gap:16px}@media (max-width: 1023px){.mealz-catalog-home .mealz-catalog-home__categories .mealz-catalog-home__category .mealz-catalog-home__category__content{height:320px;overflow-x:scroll;flex-wrap:nowrap;scrollbar-width:none;-ms-overflow-style:none}.mealz-catalog-home .mealz-catalog-home__categories .mealz-catalog-home__category .mealz-catalog-home__category__content::-webkit-scrollbar{display:none}.mealz-catalog-home .mealz-catalog-home__categories .mealz-catalog-home__category .mealz-recipe-card{width:240px;height:320px}}@media (max-width: 1023px){.mealz-catalog-home .mealz-catalog__content{padding:0 0 0 24px}.mealz-catalog-home .mealz-catalog__category-title-container{padding-right:24px}}@media (max-width: 700px){.mealz-catalog-home .mealz-catalog__content{padding:0 0 0 16px}.mealz-catalog-home .mealz-catalog__category-title-container{padding-right:16px}}
1
+ .mealz-catalog-home{width:100%;position:relative;background-color:var(--mealz-ds-color-neutral-white, #fff)}.mealz-catalog-home .mealz-catalog-home__header{display:flex;height:250px;border-bottom:1px solid var(--mealz-ds-color-neutral-200, #EFF1F3)}.mealz-catalog-home .mealz-catalog-home__planner-entry{margin-bottom:24px}@media (max-width: 607px){.mealz-catalog-home .mealz-catalog-home__header{flex-direction:column;height:auto}.mealz-catalog-home .mealz-catalog-home__header .mealz-catalog-home__header-right{padding:0}}.mealz-catalog-home .mealz-catalog-home__promotions-banner{display:none;justify-content:center;margin-bottom:24px}.mealz-catalog-home .mealz-catalog-home__planner-button{width:fit-content;text-decoration:none;margin-bottom:24px}.mealz-catalog-home .mealz-catalog-home__categories .mealz-catalog-home__category .mealz-catalog-home__category__header-bottom{display:flex;justify-content:space-between;gap:16px}.mealz-catalog-home .mealz-catalog-home__categories .mealz-catalog-home__category .mealz-catalog-home__category__header-bottom .mealz-catalog-home__category__link{display:flex;align-items:center;color:var(--mealz-ds-color-primary, #24748F);white-space:nowrap;gap:8px}.mealz-catalog-home .mealz-catalog-home__categories .mealz-catalog-home__category .mealz-catalog-home__category__header-bottom .mealz-catalog-home__category__link img{width:16px;height:16px}.mealz-catalog-home .mealz-catalog-home__categories .mealz-catalog-home__category .mealz-catalog-home__category__content{position:relative;overflow:hidden;padding:16px 0;width:100%;height:var(--mealz-recipe-card-height, 360px);box-sizing:content-box;display:flex;flex-direction:row;flex-wrap:wrap;transition-duration:.5s;gap:16px}@media (max-width: 1023px){.mealz-catalog-home .mealz-catalog-home__categories .mealz-catalog-home__category .mealz-catalog-home__category__content{height:320px;overflow-x:scroll;flex-wrap:nowrap;scrollbar-width:none;-ms-overflow-style:none}.mealz-catalog-home .mealz-catalog-home__categories .mealz-catalog-home__category .mealz-catalog-home__category__content::-webkit-scrollbar{display:none}.mealz-catalog-home .mealz-catalog-home__categories .mealz-catalog-home__category .mealz-recipe-card{width:240px;height:320px}}@media (max-width: 1023px){.mealz-catalog-home .mealz-catalog__content{padding:0 0 0 24px}.mealz-catalog-home .mealz-catalog__category-title-container{padding-right:24px}}@media (max-width: 700px){.mealz-catalog-home .mealz-catalog__content{padding:0 0 0 16px}.mealz-catalog-home .mealz-catalog__category-title-container{padding-right:16px}}
@@ -1 +1 @@
1
- import{t as h}from"../../assets/custom-element-BhZVzxrc.js";import{N as l}from"../../assets/no-shadow-element-QlLhHglK.js";import{h as d}from"../../assets/session-handler-BZFnRy_K.js";import{V as g}from"../../assets/viewport-listener-CWzfnuTn.js";import{w as p,m as r}from"../../assets/mealz-sdk-E_fNZM-c.js";import"../../assets/debounceTime-D-8QwBTO.js";import"../../assets/async-CmPLa8Kr.js";import"../../assets/OperatorSubscriber-DTLDfxTG.js";var m=Object.getOwnPropertyDescriptor,y=(e,t,s,i)=>{for(var a=i>1?void 0:i?m(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(a=o(a)||a);return a};let c=class extends l{constructor(){super(...arguments),this.categories=[],this.viewportListeners=[],this.subscriptions=[],this.retryCount=0,this.maxRetries=30}connectedCallback(){super.connectedCallback(),p().then(()=>{var e,t;(t=(e=r)==null?void 0:e.preferences)!=null&&t.preferencesChanged$&&this.subscriptions.push(r.preferences.preferencesChanged$().subscribe(()=>this.reloadPage()))}).catch(e=>{console.warn("Failed to initialize preferences subscription:",e)})}disconnectedCallback(){super.disconnectedCallback(),this.subscriptions.forEach(e=>e.unsubscribe()),this.viewportListeners.forEach(e=>e.disconnect()),this.viewportListeners=[]}render(){var a;const e=(a=this.attributes["starting-data"])==null?void 0:a.value;if(!e)return;const{categories:t,path:s,sessionId:i}=JSON.parse(e);d(i),this.analyticsPath=s,this.categories=t,this.sendPageViewEvent(),this.addEventListeners(),this.listenCategoriesInView(),this.removeAttribute("starting-data")}addEventListeners(){Array.from(this.getElementsByClassName("mealz-catalog__link")).forEach((t,s)=>{t==null||t.addEventListener("click",()=>this.sendCategoryDisplay(s))})}listenCategoriesInView(){Array.from(this.getElementsByClassName("mealz-catalog-home__category")).forEach((t,s)=>{const i=new g(t,()=>this.sendCategoryShow(s),{threshold:.8,debounce:1e3});this.viewportListeners.push(i)})}reloadPage(){location.reload()}sendPageViewEvent(){r?(r.analytics.sendEvent("pageview",this.analyticsPath,{}),this.retryCount=0):this.retryCount<this.maxRetries&&(this.retryCount++,setTimeout(()=>this.sendPageViewEvent(),10))}sendCategoryDisplay(e){var t;r.analytics.sendEvent("category.display",this.analyticsPath,{category_id:(t=this.categories[Math.floor(e/2)])==null?void 0:t.id})}sendCategoryShow(e){var t;r.analytics.sendEvent("category.show",this.analyticsPath,{category_id:(t=this.categories[e])==null?void 0:t.id})}};c=y([h("mealz-catalog-home")],c);
1
+ import{t as h}from"../../assets/custom-element-BhZVzxrc.js";import{N as l}from"../../assets/no-shadow-element-D4NOg0uW.js";import{h as d}from"../../assets/session-handler-BZFnRy_K.js";import{V as g}from"../../assets/viewport-listener-BRwa66-G.js";import{w as p,m as r}from"../../assets/mealz-sdk-E_fNZM-c.js";import"../../assets/debounceTime-cu8WlLF0.js";import"../../assets/async-guWcMFmJ.js";import"../../assets/OperatorSubscriber-B37s2U6v.js";var m=Object.getOwnPropertyDescriptor,y=(e,t,s,i)=>{for(var a=i>1?void 0:i?m(t,s):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(a=o(a)||a);return a};let c=class extends l{constructor(){super(...arguments),this.categories=[],this.viewportListeners=[],this.subscriptions=[],this.retryCount=0,this.maxRetries=30}connectedCallback(){super.connectedCallback(),p().then(()=>{var e,t;(t=(e=r)==null?void 0:e.preferences)!=null&&t.preferencesChanged$&&this.subscriptions.push(r.preferences.preferencesChanged$().subscribe(()=>this.reloadPage()))}).catch(e=>{console.warn("Failed to initialize preferences subscription:",e)})}disconnectedCallback(){super.disconnectedCallback(),this.subscriptions.forEach(e=>e.unsubscribe()),this.viewportListeners.forEach(e=>e.disconnect()),this.viewportListeners=[]}render(){var a;const e=(a=this.attributes["starting-data"])==null?void 0:a.value;if(!e)return;const{categories:t,path:s,sessionId:i}=JSON.parse(e);d(i),this.analyticsPath=s,this.categories=t,this.sendPageViewEvent(),this.addEventListeners(),this.listenCategoriesInView(),this.removeAttribute("starting-data")}addEventListeners(){Array.from(this.getElementsByClassName("mealz-catalog__link")).forEach((t,s)=>{t==null||t.addEventListener("click",()=>this.sendCategoryDisplay(s))})}listenCategoriesInView(){Array.from(this.getElementsByClassName("mealz-catalog-home__category")).forEach((t,s)=>{const i=new g(t,()=>this.sendCategoryShow(s),{threshold:.8,debounce:1e3});this.viewportListeners.push(i)})}reloadPage(){location.reload()}sendPageViewEvent(){r?(r.analytics.sendEvent("pageview",this.analyticsPath,{}),this.retryCount=0):this.retryCount<this.maxRetries&&(this.retryCount++,setTimeout(()=>this.sendPageViewEvent(),10))}sendCategoryDisplay(e){var t;r.analytics.sendEvent("category.display",this.analyticsPath,{category_id:(t=this.categories[Math.floor(e/2)])==null?void 0:t.id})}sendCategoryShow(e){var t;r.analytics.sendEvent("category.show",this.analyticsPath,{category_id:(t=this.categories[e])==null?void 0:t.id})}};c=y([h("mealz-catalog-home")],c);
@@ -0,0 +1 @@
1
+ .mealz-catalog-home-header{position:relative;height:124px;overflow:hidden}.mealz-catalog-home-header__image{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;object-fit:cover}.mealz-catalog-home-header__image:after{content:"";position:absolute;left:0;top:0;width:100%;height:100%;background:linear-gradient(90deg,#0009,#0000 60%);z-index:2;pointer-events:none}.mealz-catalog-home-header__image img{width:100%;height:100%;object-fit:cover;object-position:center}.mealz-catalog-home-header__image-desktop{display:block}.mealz-catalog-home-header__image-mobile{display:none}.mealz-catalog-home-header__content{position:relative;z-index:3;display:flex;justify-content:space-between;align-items:center;height:100%;padding:0 80px}.mealz-catalog-home-header__title{display:flex;justify-content:center;align-items:center;max-width:548px}.mealz-catalog-home-header__title-text{color:#fff;text-shadow:0px 2px 6px rgba(0,0,0,.4)}.mealz-catalog-home-header__banner{display:flex;justify-content:center;height:fit-content;align-items:center;padding:12px;background-color:#fff6;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:12px;max-width:224px;text-align:center;border:1px solid rgba(255,255,255,.4);box-sizing:border-box}.mealz-catalog-home-header__banner-content{display:flex;flex-direction:column}.mealz-catalog-home-header__banner-content .mealz-catalog-home-header__banner-subtitle{text-align:left;margin-bottom:8px;overflow:hidden;display:-webkit-box;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal}.mealz-catalog-home-header__banner-content .mealz-catalog-home-header__banner-button{padding:8px 16px;text-decoration:none}@media (max-width: 1023px){.mealz-catalog-home-header__content{padding:0 24px}}@media (max-width: 767px){.mealz-catalog-home-header{height:168px}.mealz-catalog-home-header__image-desktop{display:none}.mealz-catalog-home-header__image-mobile{display:block}.mealz-catalog-home-header__image:after{content:"";position:absolute;left:0;top:0;width:100%;height:100%;background:linear-gradient(to top,#0009,#0000);z-index:2;pointer-events:none}.mealz-catalog-home-header__content{display:flex;flex-direction:column;justify-content:end;height:100%;box-sizing:border-box;padding:8px}.mealz-catalog-home-header__title{width:100%;max-width:100%;justify-content:left;margin-bottom:8px}.mealz-catalog-home-header__title .mealz-catalog-home-header__title-text{font-size:28px;line-height:32px}.mealz-catalog-home-header__title.center{align-items:center;height:100%}.mealz-catalog-home-header__banner{max-width:100%;width:100%;padding:8px}.mealz-catalog-home-header__banner-content{flex-direction:row;justify-content:space-between;align-items:center;width:100%}.mealz-catalog-home-header__banner-content .mealz-catalog-home-header__banner-subtitle{margin-bottom:0;margin-right:8px}.mealz-catalog-home-header__banner-button{min-width:fit-content}}
@@ -1 +1 @@
1
- import{t as h}from"../../assets/custom-element-BhZVzxrc.js";import"../../assets/no-shadow-element-QlLhHglK.js";import{C as g}from"../catalog-load-more.min.js";import{h as u}from"../../assets/session-handler-BZFnRy_K.js";import{w as f,m as c}from"../../assets/mealz-sdk-E_fNZM-c.js";import"../../assets/http-CtqmFT_i.js";import"../../assets/innerFrom-D6KOflHk.js";import"../../assets/mergeMap-DK1Hk0t3.js";import"../../assets/map-hUep_Pe9.js";import"../../assets/OperatorSubscriber-DTLDfxTG.js";import"../../assets/executeSchedule-Bcv6kCZW.js";import"../../assets/mapOneOrManyArgs-grjqJfJT.js";import"../../assets/async-CmPLa8Kr.js";import"../../assets/timer-C5HGcf9-.js";var C=Object.getOwnPropertyDescriptor,b=(e,r,o,i)=>{for(var t=i>1?void 0:i?C(r,o):r,a=e.length-1,s;a>=0;a--)(s=e[a])&&(t=s(t)||t);return t};let p=class extends g{connectedCallback(){super.connectedCallback(),f().then(()=>{var e,r;(r=(e=c)==null?void 0:e.preferences)!=null&&r.preferencesChanged$&&this.subscriptions.push(c.preferences.preferencesChanged$().subscribe(()=>this.reloadPage()))}).catch(e=>{console.warn("Failed to initialize preferences subscription:",e)})}disconnectedCallback(){super.disconnectedCallback()}render(){var l;const e=(l=this.attributes["starting-data"])==null?void 0:l.value;if(!e||(this.recipeCardListHTML=this.querySelector(".mealz-catalog__list"),!this.recipeCardListHTML))return;const{pageSize:r,storeId:o,loadMoreURL:i,displayRecipeVariant:t,search:a,promotions:s,planner:d,sessionId:n,recipeTypeId:m}=JSON.parse(e);u(n),this.loadMoreRecipesOnScroll({displayRecipeVariant:t,loadMoreURL:i,sessionId:n,pageSize:r,storeId:o,packageId:null,search:a,listHTML:this.recipeCardListHTML,promotions:s,planner:d,recipeTypeId:m}),this.removeAttribute("starting-data")}reloadPage(){location.reload()}};p=b([h("mealz-catalog-list")],p);
1
+ import{t as h}from"../../assets/custom-element-BhZVzxrc.js";import"../../assets/no-shadow-element-D4NOg0uW.js";import{C as g}from"../catalog-load-more.min.js";import{h as u}from"../../assets/session-handler-BZFnRy_K.js";import{w as f,m as c}from"../../assets/mealz-sdk-E_fNZM-c.js";import"../../assets/http-Bepz6wA4.js";import"../../assets/innerFrom-D8hyVDmo.js";import"../../assets/mergeMap-CX64J-ac.js";import"../../assets/map-D6X2syNu.js";import"../../assets/OperatorSubscriber-B37s2U6v.js";import"../../assets/executeSchedule-Dqc6shOu.js";import"../../assets/mapOneOrManyArgs-UKKoFfIU.js";import"../../assets/async-guWcMFmJ.js";import"../../assets/timer-D3X0vtFO.js";var C=Object.getOwnPropertyDescriptor,b=(e,r,o,i)=>{for(var t=i>1?void 0:i?C(r,o):r,a=e.length-1,s;a>=0;a--)(s=e[a])&&(t=s(t)||t);return t};let p=class extends g{connectedCallback(){super.connectedCallback(),f().then(()=>{var e,r;(r=(e=c)==null?void 0:e.preferences)!=null&&r.preferencesChanged$&&this.subscriptions.push(c.preferences.preferencesChanged$().subscribe(()=>this.reloadPage()))}).catch(e=>{console.warn("Failed to initialize preferences subscription:",e)})}disconnectedCallback(){super.disconnectedCallback()}render(){var l;const e=(l=this.attributes["starting-data"])==null?void 0:l.value;if(!e||(this.recipeCardListHTML=this.querySelector(".mealz-catalog__list"),!this.recipeCardListHTML))return;const{pageSize:r,storeId:o,loadMoreURL:i,displayRecipeVariant:t,search:a,promotions:s,planner:d,sessionId:n,recipeTypeId:m}=JSON.parse(e);u(n),this.loadMoreRecipesOnScroll({displayRecipeVariant:t,loadMoreURL:i,sessionId:n,pageSize:r,storeId:o,packageId:null,search:a,listHTML:this.recipeCardListHTML,promotions:s,planner:d,recipeTypeId:m}),this.removeAttribute("starting-data")}reloadPage(){location.reload()}};p=b([h("mealz-catalog-list")],p);