mealz-components 2.5.1 → 2.6.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 (125) hide show
  1. package/dist/assets/{OperatorSubscriber-BaYaQC1O.js → OperatorSubscriber-DfCnFunn.js} +1 -1
  2. package/dist/assets/{accordion-DJLqKUJq.js → accordion-sjJSL32r.js} +1 -1
  3. package/dist/assets/{args-BozZ6oU-.js → args-DAL2bHut.js} +1 -1
  4. package/dist/assets/{async-CFBGA-Dz.js → async-C5Kj_SqM.js} +1 -1
  5. package/dist/assets/{combineLatest-BmqPE0OB.js → combineLatest-Capvy1jI.js} +1 -1
  6. package/dist/assets/{debounceTime-B4DpnstH.js → debounceTime-Cf_7YmIn.js} +1 -1
  7. package/dist/assets/delay-DHNms76g.js +1 -0
  8. package/dist/assets/{distinctUntilChanged-91AVuO2B.js → distinctUntilChanged-kXqVrZ5h.js} +1 -1
  9. package/dist/assets/empty-qrpgDBbc.js +1 -0
  10. package/dist/assets/{filter-BZ75lS5D.js → filter-q99GWcpD.js} +1 -1
  11. package/dist/assets/firstValueFrom-Bcbk1SUg.js +1 -0
  12. package/dist/assets/{from-CAidt5N1.js → from-D8c5akO7.js} +1 -1
  13. package/dist/assets/guestObserver-C5qvv1Ll.js +1 -0
  14. package/dist/assets/{innerFrom-BgPDnAsH.js → innerFrom-DePszgj9.js} +1 -1
  15. package/dist/assets/isDate-BwHtzZM4.js +1 -0
  16. package/dist/assets/isScheduler-CqHuyMwD.js +1 -0
  17. package/dist/assets/{map-BVOhpQm0.js → map-DT-7dkaR.js} +1 -1
  18. package/dist/assets/mapOneOrManyArgs-CHGhEDCk.js +1 -0
  19. package/dist/assets/merge-DzIA6T0M.js +1 -0
  20. package/dist/assets/mergeAll-DpEYIxY3.js +1 -0
  21. package/dist/assets/{mergeMap-Dw_YYHwH.js → mergeMap-D2yctTHQ.js} +1 -1
  22. package/dist/assets/no-shadow-element-D62BBu0I.js +21 -0
  23. package/dist/assets/of-DtJFltSl.js +1 -0
  24. package/dist/assets/price-D6RVRYHJ.js +1 -0
  25. package/dist/assets/product-card-TLfT6URx.js +189 -0
  26. package/dist/assets/{promotion-badge-8Arhhb-p.js → promotion-badge-B-er7bV2.js} +1 -1
  27. package/dist/assets/{property-_7ObQ3dl.js → property-CoRN-Ln2.js} +1 -1
  28. package/dist/assets/singleton-COF3iBbF.js +1 -0
  29. package/dist/assets/skip-Bup0JB81.js +1 -0
  30. package/dist/assets/{skipWhile-BZVFq1Cg.js → skipWhile-Beza3ws3.js} +1 -1
  31. package/dist/assets/{state-W5mtSPAs.js → state-DDIoBQp5.js} +1 -1
  32. package/dist/assets/{switchMap-Dk_0Nhlo.js → switchMap-BAdE9Uzw.js} +1 -1
  33. package/dist/assets/{take-CozE9iSG.js → take-CpvJwza7.js} +1 -1
  34. package/dist/assets/{tap-C8CJ3R2H.js → tap-BN_fPb40.js} +1 -1
  35. package/dist/assets/timer-3Kpx74mt.js +1 -0
  36. package/dist/assets/{unsafe-html-CY0Np4--.js → unsafe-html-DWUMaK1p.js} +1 -1
  37. package/dist/assets/{viewport-listener-CDsKFDz1.js → viewport-listener-DsRHfwo4.js} +1 -1
  38. package/dist/basket-transfer-modal/basket-transfer-modal.min.js +1 -1
  39. package/dist/catalog/basket-preview/basket-preview.min.js +3 -3
  40. package/dist/catalog/catalog-category/catalog-category.min.js +1 -1
  41. package/dist/catalog/catalog-favorites/catalog-favorites.min.js +1 -1
  42. package/dist/catalog/catalog-history/catalog-history.min.js +1 -1
  43. package/dist/catalog/catalog-home/catalog-home.min.js +1 -1
  44. package/dist/catalog/catalog-home-header/catalog-home-header.min.js +1 -0
  45. package/dist/catalog/catalog-list/catalog-list.min.js +1 -1
  46. package/dist/catalog/catalog-load-more.min.js +1 -1
  47. package/dist/catalog/catalog-tabs/catalog-tabs.min.js +1 -1
  48. package/dist/catalog/catalog-toolbar/catalog-toolbar.min.js +1 -1
  49. package/dist/catalog/my-meals-button/my-meals-button.min.js +1 -1
  50. package/dist/counter/counter.min.js +3 -3
  51. package/dist/drawer/drawer.css +1 -1
  52. package/dist/drawer/drawer.min.js +4 -4
  53. package/dist/drawer-view-swapper/drawer-view-swapper.min.js +7 -7
  54. package/dist/history-drawer/history-drawer.min.js +1 -1
  55. package/dist/history-order/history-order.min.js +1 -1
  56. package/dist/history-order-expanded/history-order-expanded.min.js +1 -1
  57. package/dist/last-order-badge/last-order-badge.min.js +2 -2
  58. package/dist/last-order-modal/last-order-modal.min.js +1 -1
  59. package/dist/like-button/like-button.min.js +1 -1
  60. package/dist/modal/modal.min.js +1 -1
  61. package/dist/no-supplier-add-to-cart-cta/no-supplier-add-to-cart-cta.min.js +1 -1
  62. package/dist/onboarding/onboarding.min.js +1 -1
  63. package/dist/order-again/order-again.min.js +2 -2
  64. package/dist/planner/helpers/get-planner-onboarding-modal-config.min.js +1 -0
  65. package/dist/planner/helpers/init-planner-onboarding-modal.min.js +1 -0
  66. package/dist/planner/helpers/open-onboarding-modal.min.js +1 -1
  67. package/dist/planner/planner-abandon-modal/planner-abandon-modal.min.js +1 -1
  68. package/dist/planner/planner-budget-edit-modal/planner-budget-edit-modal.min.js +1 -1
  69. package/dist/planner/planner-budget-gauge/planner-budget-gauge.min.js +1 -1
  70. package/dist/planner/planner-catalog/planner-catalog.min.js +1 -1
  71. package/dist/planner/planner-current-menu/planner-current-menu.css +1 -1
  72. package/dist/planner/planner-current-menu/planner-current-menu.min.js +1 -1
  73. package/dist/planner/planner-current-menu-modal/planner-current-menu-modal.min.js +1 -1
  74. package/dist/planner/planner-dashboard/planner-dashboard.min.js +1 -1
  75. package/dist/planner/planner-form/planner-form.min.js +1 -1
  76. package/dist/planner/planner-menu-option/planner-menu-option.min.js +1 -1
  77. package/dist/planner/planner-onboarding/planner-onboarding.min.js +1 -1
  78. package/dist/planner/planner-onboarding-modal/planner-onboarding-modal.min.js +2 -2
  79. package/dist/planner/planner-open-catalog-modal/planner-open-catalog-modal.min.js +1 -1
  80. package/dist/planner/planner-quick-menu/planner-quick-menu.min.js +1 -1
  81. package/dist/planner/planner-recipe-card/planner-recipe-card.min.js +1 -1
  82. package/dist/planner/planner-recipe-list/planner-recipe-list.css +1 -1
  83. package/dist/planner/planner-recipe-list/planner-recipe-list.min.js +1 -1
  84. package/dist/planner/planner-recipe-suggestion/planner-recipe-suggestion.css +1 -1
  85. package/dist/planner/planner-recipe-suggestion/planner-recipe-suggestion.min.js +1 -1
  86. package/dist/planner/planner-welcome-modal/planner-welcome-modal.min.js +1 -1
  87. package/dist/planner/to-basket-loader/to-basket-loader.min.js +1 -1
  88. package/dist/planner-entry/planner-entry.css +1 -1
  89. package/dist/planner-entry/planner-entry.min.js +1 -1
  90. package/dist/preferences/preferences.min.js +1 -1
  91. package/dist/price/price.min.js +3 -3
  92. package/dist/product-badges/product-badges.css +1 -1
  93. package/dist/product-card/product-card.css +1 -1
  94. package/dist/products-to-basket-cta/products-to-basket-cta.css +1 -0
  95. package/dist/products-to-basket-cta/products-to-basket-cta.min.js +1 -0
  96. package/dist/recipe-card/recipe-card.min.js +1 -1
  97. package/dist/recipe-card-cta/recipe-card-cta.min.js +1 -1
  98. package/dist/recipe-details/recipe-details.css +1 -1
  99. package/dist/recipe-details/recipe-details.min.js +41 -43
  100. package/dist/recipe-pricing/recipe-pricing.min.js +1 -1
  101. package/dist/recipe-to-basket/recipe-to-basket.css +1 -0
  102. package/dist/recipe-to-basket/recipe-to-basket.min.js +1 -0
  103. package/dist/replace-item/replace-item-card/replace-item-card.min.js +1 -1
  104. package/dist/replace-item/replace-item.min.js +18 -18
  105. package/dist/replace-item-planner/replace-item-card-planner/replace-item-card-planner.min.js +1 -1
  106. package/dist/replace-item-planner/replace-item-planner.min.js +1 -1
  107. package/dist/select/select.min.js +1 -1
  108. package/dist/slider-tabs/slider-tabs.min.js +1 -1
  109. package/dist/store-indicator/store-indicator.min.js +1 -1
  110. package/dist/store-locator/store-locator.min.js +1 -1
  111. package/dist/store-locator-drawer/store-locator-drawer.min.js +1 -1
  112. package/dist/supplier-selector/supplier-selector.min.js +1 -1
  113. package/package.json +1 -1
  114. package/dist/assets/delay-BNnJ-6LE.js +0 -1
  115. package/dist/assets/empty-0eVnsLmk.js +0 -1
  116. package/dist/assets/isScheduler-C5PGPVU1.js +0 -1
  117. package/dist/assets/mapOneOrManyArgs-COA1aRZM.js +0 -1
  118. package/dist/assets/merge-Cm-mm3_Q.js +0 -1
  119. package/dist/assets/mergeAll-BdUAXyrs.js +0 -1
  120. package/dist/assets/no-shadow-element-YPHUv5PR.js +0 -21
  121. package/dist/assets/of-DiALp3BZ.js +0 -1
  122. package/dist/assets/price-DAxY_7sk.js +0 -1
  123. package/dist/assets/product-card-HetVhdJ3.js +0 -189
  124. package/dist/assets/skip-zbH-ayby.js +0 -1
  125. package/dist/assets/timer-D82-ik89.js +0 -1
@@ -1 +1 @@
1
- import{i as b,_ as h,S as f}from"./no-shadow-element-YPHUv5PR.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,S as f}from"./no-shadow-element-D62BBu0I.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,4 +1,4 @@
1
- import{N as d,k as h}from"./no-shadow-element-YPHUv5PR.js";import{t as m}from"./custom-element-BhZVzxrc.js";import{n as l}from"./property-_7ObQ3dl.js";import{a as p}from"./unsafe-html-CY0Np4--.js";var g=Object.defineProperty,y=Object.getOwnPropertyDescriptor,i=(s,t,c,n)=>{for(var o=n>1?void 0:n?y(t,c):t,a=s.length-1,r;a>=0;a--)(r=s[a])&&(o=(n?r(t,c,o):r(o))||o);return n&&o&&g(t,c,o),o};let e=class extends d{constructor(){super(),this.noStyling=!1,this.isCollapsed=!0,this.isCollapsedChangeEvent=new CustomEvent("isCollapsedChange",{detail:{isCollapsed:this.isCollapsed},bubbles:!0,composed:!0}),this.styleURL=new URL("./accordion/accordion.css",this.getBaseURL())}connectedCallback(){super.connectedCallback();const s=this.querySelector('[slot="title"]');s&&(this.titleSlot=s.innerHTML,s.remove());const t=this.querySelector('[slot="content"]');t&&(this.contentSlot=t.innerHTML,t.remove()),this.innerHTML=""}disconnectedCallback(){super.disconnectedCallback()}toggleAccordion(){this.isCollapsed=!this.isCollapsed,this.dispatchEvent(this.isCollapsedChangeEvent),this.requestUpdate()}updated(){this.classList.toggle("opened",!this.isCollapsed)}render(){return h`
1
+ import{N as d,k as h}from"./no-shadow-element-D62BBu0I.js";import{t as m}from"./custom-element-BhZVzxrc.js";import{n as l}from"./property-CoRN-Ln2.js";import{a as p}from"./unsafe-html-DWUMaK1p.js";var g=Object.defineProperty,y=Object.getOwnPropertyDescriptor,i=(s,t,c,n)=>{for(var o=n>1?void 0:n?y(t,c):t,a=s.length-1,r;a>=0;a--)(r=s[a])&&(o=(n?r(t,c,o):r(o))||o);return n&&o&&g(t,c,o),o};let e=class extends d{constructor(){super(),this.noStyling=!1,this.isCollapsed=!0,this.isCollapsedChangeEvent=new CustomEvent("isCollapsedChange",{detail:{isCollapsed:this.isCollapsed},bubbles:!0,composed:!0}),this.styleURL=new URL("./accordion/accordion.css",this.getBaseURL())}connectedCallback(){super.connectedCallback();const s=this.querySelector('[slot="title"]');s&&(this.titleSlot=s.innerHTML,s.remove());const t=this.querySelector('[slot="content"]');t&&(this.contentSlot=t.innerHTML,t.remove()),this.innerHTML=""}disconnectedCallback(){super.disconnectedCallback()}toggleAccordion(){this.isCollapsed=!this.isCollapsed,this.dispatchEvent(this.isCollapsedChangeEvent),this.requestUpdate()}updated(){this.classList.toggle("opened",!this.isCollapsed)}render(){return h`
2
2
  <button
3
3
  class="mealz-accordion__header${this.noStyling?"-no-styling":""}"
4
4
  @click=${()=>this.toggleAccordion()}
@@ -1 +1 @@
1
- import{i as p}from"./no-shadow-element-YPHUv5PR.js";import{i as t}from"./isScheduler-C5PGPVU1.js";function n(e){return e[e.length-1]}function r(e){return p(n(e))?e.pop():void 0}function f(e){return t(n(e))?e.pop():void 0}function c(e,o){return typeof n(e)=="number"?e.pop():o}export{c as a,r as b,f as p};
1
+ import{i as p}from"./no-shadow-element-D62BBu0I.js";import{i as t}from"./isScheduler-CqHuyMwD.js";function n(e){return e[e.length-1]}function r(e){return p(n(e))?e.pop():void 0}function f(e){return t(n(e))?e.pop():void 0}function c(e,o){return typeof n(e)=="number"?e.pop():o}export{c as a,r as b,f as p};
@@ -1 +1 @@
1
- import{_ as u,a as l,b as d,c as f,d as v}from"./no-shadow-element-YPHUv5PR.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,a as l,b as d,c as f,d as v}from"./no-shadow-element-D62BBu0I.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 m}from"./no-shadow-element-YPHUv5PR.js";import{f as v}from"./from-CAidt5N1.js";import{m as b}from"./mapOneOrManyArgs-COA1aRZM.js";import{p as h,b as A}from"./args-BozZ6oU-.js";import{c as S}from"./OperatorSubscriber-BaYaQC1O.js";import{e as j}from"./executeSchedule-CEDvgTzM.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 z(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=h(r),n=A(r),a=x(r),o=a.args,c=a.keys;if(o.length===0)return v([],t);var u=new O(V(o,t,c?function(i){return L(c,i)}:m));return n?u.pipe(b(n)):u}function V(r,e,t){return t===void 0&&(t=m),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=v(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{z as c};
1
+ import{O,t as m}from"./no-shadow-element-D62BBu0I.js";import{f as v}from"./from-D8c5akO7.js";import{m as b}from"./mapOneOrManyArgs-CHGhEDCk.js";import{p as h,b as A}from"./args-DAL2bHut.js";import{c as S}from"./OperatorSubscriber-DfCnFunn.js";import{e as j}from"./executeSchedule-CEDvgTzM.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 z(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=h(r),n=A(r),a=x(r),o=a.args,c=a.keys;if(o.length===0)return v([],t);var u=new O(V(o,t,c?function(i){return L(c,i)}:m));return n?u.pipe(b(n)):u}function V(r,e,t){return t===void 0&&(t=m),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=v(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{z as c};
@@ -1 +1 @@
1
- import{a as d}from"./async-CFBGA-Dz.js";import{o as m,c as v}from"./OperatorSubscriber-BaYaQC1O.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-C5Kj_SqM.js";import{o as m,c as v}from"./OperatorSubscriber-DfCnFunn.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-C5Kj_SqM.js";import{t as m}from"./take-CpvJwza7.js";import{m as a}from"./map-DT-7dkaR.js";import{m as e}from"./mergeMap-D2yctTHQ.js";import{i as f}from"./innerFrom-DePszgj9.js";import{t as p}from"./timer-3Kpx74mt.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-YPHUv5PR.js";import{o,c as a}from"./OperatorSubscriber-BaYaQC1O.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-D62BBu0I.js";import{o,c as a}from"./OperatorSubscriber-DfCnFunn.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-D62BBu0I.js";var t=new r(function(e){return e.complete()});export{t as E};
@@ -1 +1 @@
1
- import{o as c,c as i}from"./OperatorSubscriber-BaYaQC1O.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-DfCnFunn.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};
@@ -0,0 +1 @@
1
+ import{v as i,p as u}from"./no-shadow-element-D62BBu0I.js";var c=i(function(r){return function(){r(this),this.name="EmptyError",this.message="no elements in sequence"}});function a(r,s){return new Promise(function(t,e){var n=new u({next:function(o){t(o),n.unsubscribe()},error:e,complete:function(){e(new c)}});r.subscribe(n)})}export{a as f};
@@ -1 +1 @@
1
- import{i as f,b as x,r as I,c as O,a as h,d as w,e as S,f as A,g as k,h as L}from"./innerFrom-BgPDnAsH.js";import{e as a}from"./executeSchedule-CEDvgTzM.js";import{o as l,c as y}from"./OperatorSubscriber-BaYaQC1O.js";import{O as i,i as g}from"./no-shadow-element-YPHUv5PR.js";function m(e,n){return n===void 0&&(n=0),l(function(t,r){t.subscribe(y(r,function(o){return a(r,e,function(){return r.next(o)},n)},function(){return a(r,e,function(){return r.complete()},n)},function(o){return a(r,e,function(){return r.error(o)},n)}))})}function v(e,n){return n===void 0&&(n=0),l(function(t,r){r.add(e.schedule(function(){return t.subscribe(r)},n))})}function E(e,n){return f(e).pipe(v(n),m(n))}function F(e,n){return f(e).pipe(v(n),m(n))}function P(e,n){return new i(function(t){var r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}function R(e,n){return new i(function(t){var r;return a(t,n,function(){r=e[x](),a(t,n,function(){var o,u,c;try{o=r.next(),u=o.value,c=o.done}catch(d){t.error(d);return}c?t.complete():t.next(u)},0,!0)}),function(){return g(r==null?void 0:r.return)&&r.return()}})}function s(e,n){if(!e)throw new Error("Iterable cannot be null");return new i(function(t){a(t,n,function(){var r=e[Symbol.asyncIterator]();a(t,n,function(){r.next().then(function(o){o.done?t.complete():t.next(o.value)})},0,!0)})})}function T(e,n){return s(I(e),n)}function p(e,n){if(e!=null){if(O(e))return E(e,n);if(h(e))return P(e,n);if(w(e))return F(e,n);if(S(e))return s(e,n);if(A(e))return R(e,n);if(k(e))return T(e,n)}throw L(e)}function q(e,n){return n?p(e,n):f(e)}export{q as f};
1
+ import{i as f,b as x,r as I,c as O,a as h,d as w,e as S,f as A,g as k,h as L}from"./innerFrom-DePszgj9.js";import{e as a}from"./executeSchedule-CEDvgTzM.js";import{o as l,c as y}from"./OperatorSubscriber-DfCnFunn.js";import{O as i,i as g}from"./no-shadow-element-D62BBu0I.js";function m(e,n){return n===void 0&&(n=0),l(function(t,r){t.subscribe(y(r,function(o){return a(r,e,function(){return r.next(o)},n)},function(){return a(r,e,function(){return r.complete()},n)},function(o){return a(r,e,function(){return r.error(o)},n)}))})}function v(e,n){return n===void 0&&(n=0),l(function(t,r){r.add(e.schedule(function(){return t.subscribe(r)},n))})}function E(e,n){return f(e).pipe(v(n),m(n))}function F(e,n){return f(e).pipe(v(n),m(n))}function P(e,n){return new i(function(t){var r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}function R(e,n){return new i(function(t){var r;return a(t,n,function(){r=e[x](),a(t,n,function(){var o,u,c;try{o=r.next(),u=o.value,c=o.done}catch(d){t.error(d);return}c?t.complete():t.next(u)},0,!0)}),function(){return g(r==null?void 0:r.return)&&r.return()}})}function s(e,n){if(!e)throw new Error("Iterable cannot be null");return new i(function(t){a(t,n,function(){var r=e[Symbol.asyncIterator]();a(t,n,function(){r.next().then(function(o){o.done?t.complete():t.next(o.value)})},0,!0)})})}function T(e,n){return s(I(e),n)}function p(e,n){if(e!=null){if(O(e))return E(e,n);if(h(e))return P(e,n);if(w(e))return F(e,n);if(S(e))return s(e,n);if(A(e))return R(e,n);if(k(e))return T(e,n)}throw L(e)}function q(e,n){return n?p(e,n):f(e)}export{q as f};
@@ -0,0 +1 @@
1
+ import{S as e}from"./singleton-COF3iBbF.js";import{n as t}from"./no-shadow-element-D62BBu0I.js";class o extends e{constructor(){super(...arguments),this.guests$=new t}updateGuests(s){this.guests$.next(s)}}export{o as G};
@@ -1 +1 @@
1
- import{i as l,o as d,e as m,g as v,h as f,O as u,r as h,j as w,l as I,m as S}from"./no-shadow-element-YPHUv5PR.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,e as m,g as v,h as f,O as u,r as h,j as w,l as I,m as S}from"./no-shadow-element-D62BBu0I.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};
@@ -0,0 +1 @@
1
+ function t(i){return i instanceof Date&&!isNaN(i)}export{t as i};
@@ -0,0 +1 @@
1
+ import{i as r}from"./no-shadow-element-D62BBu0I.js";function n(i){return i&&r(i.schedule)}export{n as i};
@@ -1 +1 @@
1
- import{o as c,c as i}from"./OperatorSubscriber-BaYaQC1O.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-DfCnFunn.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{b as n,c as p}from"./no-shadow-element-D62BBu0I.js";import{m as o}from"./map-DT-7dkaR.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 t}from"./mergeAll-DpEYIxY3.js";import{i as n}from"./innerFrom-DePszgj9.js";import{E as s}from"./empty-qrpgDBbc.js";import{p,a as f}from"./args-DAL2bHut.js";import{f as u}from"./from-D8c5akO7.js";function v(){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?n(m[0]):t(a)(u(m,o)):s}export{v as m};
@@ -0,0 +1 @@
1
+ import{m}from"./mergeMap-D2yctTHQ.js";import{t}from"./no-shadow-element-D62BBu0I.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-BVOhpQm0.js";import{i as x}from"./innerFrom-BgPDnAsH.js";import{c as h,o as F}from"./OperatorSubscriber-BaYaQC1O.js";import"./executeSchedule-CEDvgTzM.js";import{i as I}from"./no-shadow-element-YPHUv5PR.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-DT-7dkaR.js";import{i as x}from"./innerFrom-DePszgj9.js";import{c as h,o as F}from"./OperatorSubscriber-DfCnFunn.js";import"./executeSchedule-CEDvgTzM.js";import{i as I}from"./no-shadow-element-D62BBu0I.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};
@@ -0,0 +1,21 @@
1
+ import{m as rt}from"./mealz-sdk-E_fNZM-c.js";/**
2
+ * @license
3
+ * Copyright 2019 Google LLC
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(),nt=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=nt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&nt.set(e,t))}return t}toString(){return this.cssText}};const It=n=>new Rt(typeof n=="string"?n:n+"",void 0,mt),Mt=(n,t)=>{if(tt)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const r=document.createElement("style"),i=H.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,n.appendChild(r)}},it=tt?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return It(e)})(n):n;/**
6
+ * @license
7
+ * Copyright 2017 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ */const{is:kt,defineProperty:jt,getOwnPropertyDescriptor:Ht,getOwnPropertyNames:Lt,getOwnPropertySymbols:Nt,getPrototypeOf:zt}=Object,m=globalThis,st=m.trustedTypes,Bt=st?st.emptyScript:"",q=m.reactiveElementPolyfillSupport,O=(n,t)=>n,Y={toAttribute(n,t){switch(t){case Boolean:n=n?Bt:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},$t=(n,t)=>!kt(n,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 A 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(),i=this.getPropertyDescriptor(t,r,e);i!==void 0&&jt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){const{get:i,set:s}=Ht(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return i==null?void 0:i.call(this)},set(o){const c=i==null?void 0:i.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 i of r)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[r,i]of e)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const i=this._$Eu(e,r);i!==void 0&&this._$Eh.set(i,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 i of r)e.unshift(it(i))}else t!==void 0&&e.push(it(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),i=this.constructor._$Eu(t,r);if(i!==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(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){var s;const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const o=r.getPropertyOptions(i),c=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)==null?void 0:s.fromAttribute)!==void 0?o.converter:Y;this._$Em=i,this[i]=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 i=this.constructor.elementProperties;if(i.size>0)for(const[s,o]of i)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(i=>{var s;return(s=i.hostUpdate)==null?void 0:s.call(i)}),this.update(e)):this._$EU()}catch(i){throw t=!1,this._$EU(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.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){}}A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[O("elementProperties")]=new Map,A[O("finalized")]=new Map,q==null||q({ReactiveElement:A}),(m.reactiveElementVersions??(m.reactiveElementVersions=[])).push("2.0.4");/**
10
+ * @license
11
+ * Copyright 2017 Google LLC
12
+ * SPDX-License-Identifier: BSD-3-Clause
13
+ */const C=globalThis,N=C.trustedTypes,at=N?N.createPolicy("lit-html",{createHTML:n=>n}):void 0,gt="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,St="?"+_,qt=`<${St}>`,S=document,T=()=>S.createComment(""),R=n=>n===null||typeof n!="object"&&typeof n!="function",et=Array.isArray,Vt=n=>et(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",V=`[
14
+ \f\r]`,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lt=/-->/g,ct=/>/g,$=RegExp(`>|${V}(?:([^\\s"'>=/]+)(${V}*=${V}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ht=/'/g,ut=/"/g,At=/^(?:script|style|textarea|title)$/i,Dt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),pe=Dt(1),E=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),ft=new WeakMap,g=S.createTreeWalker(S,129);function Et(n,t){if(!et(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return at!==void 0?at.createHTML(t):t}const Wt=(n,t)=>{const e=n.length-1,r=[];let i,s=t===2?"<svg>":t===3?"<math>":"",o=P;for(let c=0;c<e;c++){const a=n[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=lt:f[1]!==void 0?o=ct:f[2]!==void 0?(At.test(f[2])&&(i=RegExp("</"+f[2],"g")),o=$):f[3]!==void 0&&(o=$):o===$?f[0]===">"?(o=i??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]==='"'?ut:ht):o===ut||o===ht?o=$:o===lt||o===ct?o=P:(o=$,i=void 0);const h=o===$&&n[c+1].startsWith("/>")?" ":"";s+=o===P?a+qt:u>=0?(r.push(l),a.slice(0,u)+gt+a.slice(u)+_+h):a+_+(u===-2?c:h)}return[Et(n,s+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};class I{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let s=0,o=0;const c=t.length-1,a=this.parts,[l,f]=Wt(t,e);if(this.el=I.createElement(l,r),g.currentNode=this.el.content,e===2||e===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(i=g.nextNode())!==null&&a.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const u of i.getAttributeNames())if(u.endsWith(gt)){const d=f[o++],h=i.getAttribute(u).split(_),v=/([.?@])?(.*)/.exec(d);a.push({type:1,index:s,name:v[2],strings:h,ctor:v[1]==="."?Yt:v[1]==="?"?Gt:v[1]==="@"?Kt:z}),i.removeAttribute(u)}else u.startsWith(_)&&(a.push({type:6,index:s}),i.removeAttribute(u));if(At.test(i.tagName)){const u=i.textContent.split(_),d=u.length-1;if(d>0){i.textContent=N?N.emptyScript:"";for(let h=0;h<d;h++)i.append(u[h],T()),g.nextNode(),a.push({type:2,index:++s});i.append(u[d],T())}}}else if(i.nodeType===8)if(i.data===St)a.push({type:2,index:s});else{let u=-1;for(;(u=i.data.indexOf(_,u+1))!==-1;)a.push({type:7,index:s}),u+=_.length-1}s++}}static createElement(t,e){const r=S.createElement("template");return r.innerHTML=t,r}}function w(n,t,e=n,r){var o,c;if(t===E)return t;let i=r!==void 0?(o=e.o)==null?void 0:o[r]:e.l;const s=R(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==s&&((c=i==null?void 0:i._$AO)==null||c.call(i,!1),s===void 0?i=void 0:(i=new s(n),i._$AT(n,e,r)),r!==void 0?(e.o??(e.o=[]))[r]=i:e.l=i),i!==void 0&&(t=w(n,i._$AS(n,t.values),i,r)),t}class Ft{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,i=((t==null?void 0:t.creationScope)??S).importNode(e,!0);g.currentNode=i;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 Zt(s,this,t)),this._$AV.push(l),a=r[++c]}o!==(a==null?void 0:a.index)&&(s=g.nextNode(),o++)}return g.currentNode=S,i}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,i){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this.v=(i==null?void 0:i.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),R(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):Vt(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&&R(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){var s;const{values:e,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=I.createElement(Et(r.h,r.h[0]),this.options)),r);if(((s=this._$AH)==null?void 0:s._$AD)===i)this._$AH.p(e);else{const o=new Ft(i,this),c=o.u(this.options);o.p(e),this.T(c),this._$AH=o}}_$AC(t){let e=ft.get(t.strings);return e===void 0&&ft.set(t.strings,e=new I(t)),e}k(t){et(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,i=0;for(const s of t)i===e.length?e.push(r=new x(this.O(T()),this.O(T()),this,this.options)):r=e[i],r._$AI(s),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$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 i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}}class z{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,s){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,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,i){const s=this.strings;let o=!1;if(s===void 0)t=w(this,t,e,0),o=!R(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=!R(l)||l!==this._$AH[a]),l===p?t=p:t!==p&&(t+=(l??"")+s[a+1]),this._$AH[a]=l}o&&!i&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Yt extends z{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}class Gt extends z{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class Kt extends z{constructor(t,e,r,i,s){super(t,e,r,i,s),this.type=5}_$AI(t,e=this){if((t=w(this,t,e,0)??p)===E)return;const r=this._$AH,i=t===p&&r!==p||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==p&&(r===p||i);i&&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 Zt{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 de={I:x},D=C.litHtmlPolyfillSupport;D==null||D(I,x),(C.litHtmlVersions??(C.litHtmlVersions=[])).push("3.2.0");const Jt=(n,t,e)=>{const r=(e==null?void 0:e.renderBefore)??t;let i=r._$litPart$;if(i===void 0){const s=(e==null?void 0:e.renderBefore)??null;r._$litPart$=i=new x(t.insertBefore(T(),s),s,void 0,e??{})}return i._$AI(n),i};/**
16
+ * @license
17
+ * Copyright 2017 Google LLC
18
+ * SPDX-License-Identifier: BSD-3-Clause
19
+ */class U extends A{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=Jt(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;U._$litElement$=!0,U.finalized=!0,(_t=globalThis.litElementHydrateSupport)==null||_t.call(globalThis,{LitElement:U});const W=globalThis.litElementPolyfillSupport;W==null||W({LitElement:U});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.0");var G=function(n,t){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])},G(n,t)};function k(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");G(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ye(n,t,e,r){function i(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):i(f.value).then(c,a)}l((r=r.apply(n,t||[])).next())})}function ve(n,t){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,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,i&&(s=l[0]&2?i.return:l[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,l[1])).done)return s;switch(i=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++,i=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(n,e)}catch(f){l=[6,f],i=0}finally{r=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function M(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function K(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(o)throw o.error}}return s}function Z(n,t,e){if(e||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return n.concat(s||Array.prototype.slice.call(t))}function J(n){return this instanceof J?(this.v=n,this):new J(n)}function be(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e.apply(n,t||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(h){return function(v){return Promise.resolve(v).then(h,u)}}function c(h,v){r[h]&&(i[h]=function(y){return new Promise(function(Ut,Tt){s.push([h,y,Ut,Tt])>1||a(h,y)})},v&&(i[h]=v(i[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 _e(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=n[Symbol.asyncIterator],e;return t?t.call(n):(n=typeof M=="function"?M(n):n[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(s){e[s]=n[s]&&function(o){return new Promise(function(c,a){o=n[s](o),i(c,a,o.done,o.value)})}}function i(s,o,c,a){Promise.resolve(a).then(function(l){s({value:l,done:c})},o)}}function b(n){return typeof n=="function"}function wt(n){var t=function(r){Error.call(r),r.stack=new Error().stack},e=n(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var F=wt(function(n){return function(e){n(this),this.message=e?e.length+` errors occurred during unsubscription:
20
+ `+e.map(function(r,i){return i+1+") "+r.toString()}).join(`
21
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function Q(n,t){if(n){var e=n.indexOf(t);0<=e&&n.splice(e,1)}}var B=function(){function n(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var t,e,r,i,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var c=M(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 F?y.errors:[y]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var d=M(u),h=d.next();!h.done;h=d.next()){var v=h.value;try{pt(v)}catch(y){s=s??[],y instanceof F?s=Z(Z([],K(s)),K(y.errors)):s.push(y)}}}catch(y){r={error:y}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}}if(s)throw new F(s)}},n.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)pt(t);else{if(t instanceof n){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},n.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},n.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},n.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Q(e,t)},n.prototype.remove=function(t){var e=this._finalizers;e&&Q(e,t),t instanceof n&&t._removeParent(this)},n.EMPTY=function(){var t=new n;return t.closed=!0,t}(),n}(),xt=B.EMPTY;function Pt(n){return n instanceof B||n&&"closed"in n&&b(n.remove)&&b(n.add)&&b(n.unsubscribe)}function pt(n){b(n)?n():n.unsubscribe()}var Qt={Promise:void 0},Xt={setTimeout:function(n,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,Z([n,t],K(e)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function te(n){Xt.setTimeout(function(){throw n})}function dt(){}function L(n){n()}var Ot=function(n){k(t,n);function t(e){var r=n.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Pt(e)&&e.add(r)):r.destination=ne,r}return t.create=function(e,r,i){return new X(e,r,i)},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,n.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}(B),ee=function(){function n(t){this.partialObserver=t}return n.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(r){j(r)}},n.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){j(r)}else j(t)},n.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){j(e)}},n}(),X=function(n){k(t,n);function t(e,r,i){var s=n.call(this)||this,o;return b(e)||!e?o={next:e??void 0,error:r??void 0,complete:i??void 0}:o=e,s.destination=new ee(o),s}return t}(Ot);function j(n){te(n)}function re(n){throw n}var ne={closed:!0,next:dt,error:re,complete:dt},ie=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function se(n){return n}function oe(n){return n.length===0?se:n.length===1?n[0]:function(e){return n.reduce(function(r,i){return i(r)},e)}}var yt=function(){function n(t){t&&(this._subscribe=t)}return n.prototype.lift=function(t){var e=new n;return e.source=this,e.operator=t,e},n.prototype.subscribe=function(t,e,r){var i=this,s=le(t)?t:new X(t,e,r);return L(function(){var o=i,c=o.operator,a=o.source;s.add(c?c.call(s,a):a?i._subscribe(s):i._trySubscribe(s))}),s},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},n.prototype.forEach=function(t,e){var r=this;return e=vt(e),new e(function(i,s){var o=new X({next:function(c){try{t(c)}catch(a){s(a),o.unsubscribe()}},error:s,complete:i});r.subscribe(o)})},n.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},n.prototype[ie]=function(){return this},n.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return oe(t)(this)},n.prototype.toPromise=function(t){var e=this;return t=vt(t),new t(function(r,i){var s;e.subscribe(function(o){return s=o},function(o){return i(o)},function(){return r(s)})})},n.create=function(t){return new n(t)},n}();function vt(n){var t;return(t=n??Qt.Promise)!==null&&t!==void 0?t:Promise}function ae(n){return n&&b(n.next)&&b(n.error)&&b(n.complete)}function le(n){return n&&n instanceof Ot||ae(n)&&Pt(n)}var ce=wt(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ct=function(n){k(t,n);function t(){var e=n.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 bt(this,this);return r.operator=e,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new ce},t.prototype.next=function(e){var r=this;L(function(){var i,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=M(r.currentObservers),c=o.next();!c.done;c=o.next()){var a=c.value;a.next(e)}}catch(l){i={error:l}}finally{try{c&&!c.done&&(s=o.return)&&s.call(o)}finally{if(i)throw i.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 i=r.observers;i.length;)i.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(),n.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,i=this,s=i.hasError,o=i.isStopped,c=i.observers;return s||o?xt:(this.currentObservers=null,c.push(e),new B(function(){r.currentObservers=null,Q(c,e)}))},t.prototype._checkFinalizedStatuses=function(e){var r=this,i=r.hasError,s=r.thrownError,o=r.isStopped;i?e.error(s):o&&e.complete()},t.prototype.asObservable=function(){var e=new yt;return e.source=this,e},t.create=function(e,r){return new bt(e,r)},t}(yt),bt=function(n){k(t,n);function t(e,r){var i=n.call(this)||this;return i.destination=e,i.source=r,i}return t.prototype.next=function(e){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,e)},t.prototype.error=function(e){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.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,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&i!==void 0?i:xt},t}(Ct),he=function(n){k(t,n);function t(e){var r=n.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=n.prototype._subscribe.call(this,e);return!r.closed&&e.next(this._value),r},t.prototype.getValue=function(){var e=this,r=e.hasError,i=e.thrownError,s=e._value;if(r)throw i;return this._throwIfClosed(),s},t.prototype.next=function(e){n.prototype.next.call(this,this._value=e)},t}(Ct);class me extends U{constructor(){super(...arguments),this.isMealzInternalReady$=new he(!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.styleContainer=this.getStyleContainer(),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}`,i=this.styleContainer??this.getStyleContainer();if(!i.querySelector(`#${r}`)){const o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("href",t.toString()),o.setAttribute("id",r),i.appendChild(o)}})}removeStyles(){!this.styleURLs||this.styleURLs.length===0||setTimeout(()=>{this.styleURLs.forEach((t,e)=>{const r=`${this.tagName.toLowerCase()}-style-${e}`,i=this.styleContainer??this.getStyleContainer(),s=i.querySelector(`#${r}`);if(!s)return;(i instanceof ShadowRoot?i.querySelectorAll(this.tagName.toLowerCase()).length>0:document.getElementsByTagName(this.tagName).length>0)||i.removeChild(s)})},100)}getStyleContainer(){const t=this.getRootNode();return t instanceof ShadowRoot?t:document.head}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,i,s;if((r=(e=rt)==null?void 0:e.supplier)!=null&&r.getToken()&&((s=(i=rt)==null?void 0:i.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)}if(t>=50){console.warn("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{he as B,p as D,me as N,yt as O,Jt as Q,E as R,Ot as S,k as _,B as a,Z as b,K as c,Q as d,be as e,$t as f,ve as g,J as h,b as i,M as j,pe as k,ye as l,_e as m,Ct as n,ie as o,X as p,dt as q,te as r,de as s,se as t,Y as u,wt as v};
@@ -0,0 +1 @@
1
+ import{p as e}from"./args-DAL2bHut.js";import{f as t}from"./from-D8c5akO7.js";function s(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var a=e(o);return t(o,a)}export{s as o};
@@ -0,0 +1 @@
1
+ import{k as a}from"./no-shadow-element-D62BBu0I.js";import{S as i}from"./singleton-COF3iBbF.js";import{m as s}from"./mealz-sdk-E_fNZM-c.js";const m={en:"USD","en-US":"USD","en-GB":"GBP",fr:"EUR","fr-FR":"EUR","fr-CA":"CAD"};class $ extends i{initFormatter(){const r=s.user.getLanguage()||"fr",t=m[r]||"EUR";this.formatter=new Intl.NumberFormat(r,{style:"currency",currency:t})}currencySymbol(){const r=s.user.getLanguage()||"fr",t=m[r]||"EUR";return new Intl.NumberFormat(r,{style:"currency",currency:t}).format(0).replace(/[\d.,\s]/g,"")}formatPrice(r){return this.formatter||this.initFormatter(),this.formatter.format(r)}priceTemplate(r,t="price"){let e="",n=a``,o=0;return this.formatter.formatToParts(r).forEach(({type:f,value:c},u)=>{f==="currency"?(o=u,n=a`<span class="mealz-${t}__currency">${c}</span>`):e+=c}),o>0?a`<span class="mealz-${t}__amount">${e}</span>${n}`:a`${n}<span class="mealz-${t}__amount">${e}</span>`}}export{$ as P};
@@ -0,0 +1,189 @@
1
+ import"../price/price.min.js";import"../counter/counter.min.js";import"./promotion-badge-B-er7bV2.js";import{N as v,k as r,D as f}from"./no-shadow-element-D62BBu0I.js";import{t as g}from"./custom-element-BhZVzxrc.js";import{n as o}from"./property-CoRN-Ln2.js";import{G as k}from"./guestObserver-C5qvv1Ll.js";import{c as P}from"./capitalize-DUAqYmp4.js";import{m as c}from"./mealz-sdk-E_fNZM-c.js";import{d as I}from"./delay-DHNms76g.js";import{P as O}from"./price-D6RVRYHJ.js";var C=Object.defineProperty,x=Object.getOwnPropertyDescriptor,y=(t,e,i,a)=>{for(var s=a>1?void 0:a?x(e,i):e,d=t.length-1,n;d>=0;d--)(n=t[d])&&(s=(a?n(e,i,s):n(s))||s);return a&&s&&C(e,i,s),s};let u=class extends v{constructor(){super(),this.isSponsored=!1,this.priceService=O.getInstance(),this.styleURL=new URL("./product-badges/product-badges.css",this.getBaseURL())}connectedCallback(){super.connectedCallback(),this.applyStartingDataFromAttribute()}formatNumber(t){const e=c.user.getLanguage()||"fr";return new Intl.NumberFormat(e,{minimumFractionDigits:1,maximumFractionDigits:2}).format(t)}render(){var t,e,i,a,s;return r`
2
+ <div class="mealz-product-badges">
3
+ <!-- SPONSORED BADGE -->
4
+ ${this.isSponsored?r`
5
+ <div class="mealz-ds-badge mealz-ds-text size-xs weight-l">
6
+ <span>Sponsorisé</span>
7
+ </div>
8
+ `:r``}
9
+ <!-- PRODUCT CAPACITY -->
10
+ ${(t=this.item)!=null&&t.capacityVolume||(i=(e=this.item)==null?void 0:e.attributes)!=null&&i["capacity-volume"]?r`
11
+ <div class="mealz-ds-badge mealz-ds-text size-xs weight-l outline">
12
+ ${this.formatNumber(this.item.capacityVolume||this.item.attributes["capacity-volume"])}
13
+ ${this.item.capacityUnit||this.item.attributes["capacity-unit"]}
14
+ </div>
15
+ `:r``}
16
+ <!-- PRODUCT PRICE PER UNIT -->
17
+ ${(a=this.price)!=null&&a.pricePerUnit&&((s=this.price)!=null&&s.unitOfMeasurement)?r`
18
+ <span class="mealz-ds-text size-xs mealz-product-badges__details product-price-per-unit">
19
+ ${this.priceService.priceTemplate(this.price.pricePerUnit)}
20
+ /${this.price.unitOfMeasurement}
21
+ </span>
22
+ `:r``}
23
+ </div>
24
+ `}applyStartingDataFromAttribute(){const t=this.getAttribute("starting-data");if(t){try{const e=JSON.parse(t);typeof e.isSponsored=="boolean"&&(this.isSponsored=e.isSponsored)}catch(e){console.warn("[product-badges] starting-data parse error",e)}this.removeAttribute("starting-data")}}};y([o({type:Boolean})],u.prototype,"isSponsored",2);y([o({type:Object})],u.prototype,"item",2);y([o({type:Object})],u.prototype,"price",2);u=y([g("mealz-product-badges")],u);customElements.get("mealz-product-badges")||customElements.define("mealz-product-badges",u);var R=Object.defineProperty,U=Object.getOwnPropertyDescriptor,$=(t,e,i,a)=>{for(var s=a>1?void 0:a?U(e,i):e,d=t.length-1,n;d>=0;d--)(n=t[d])&&(s=(a?n(e,i,s):n(s))||s);return a&&s&&R(e,i,s),s};let h=class extends v{constructor(){super(),this.styleURL=new URL("./unavailable-badge/unavailable-badge.css",this.getBaseURL())}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}clicked(){const t=new CustomEvent("clicked",{bubbles:!0,composed:!0});this.dispatchEvent(t)}render(){return r`
25
+ <button
26
+ class="mealz-ds-badge mealz-unavailable-badge ${this.numberUnavailable?"pointer":""}"
27
+ ?disabled="${!this.numberUnavailable}"
28
+ @click="${()=>this.clicked()}">
29
+ <div class="mealz-unavailable-badge__icon">!</div>
30
+ ${this.numberUnavailable?"":r`<span>Indisponible</span>`}
31
+ ${this.numberUnavailable?r`<span>${this.numberUnavailable}</span>`:""}
32
+ ${this.numberUnavailable&&this.numberUnavailable<=1?r`<span>produit indisponible</span>`:""}
33
+ ${this.numberUnavailable&&this.numberUnavailable>1?r`<span>produits indisponible</span>`:""}
34
+ </button>
35
+ `}};$([o({type:Number})],h.prototype,"numberUnavailable",2);h=$([g("mealz-unavailable-badge")],h);customElements.get("mealz-unavailable-badge")||customElements.define("mealz-unavailable-badge",h);var A=Object.defineProperty,S=Object.getOwnPropertyDescriptor,E=(t,e,i,a)=>{for(var s=a>1?void 0:a?S(e,i):e,d=t.length-1,n;d>=0;d--)(n=t[d])&&(s=(a?n(e,i,s):n(s))||s);return a&&s&&A(e,i,s),s};let b=class extends v{constructor(){super(),this.styleURL=new URL("./out-of-stock-overlay/out-of-stock-overlay.css",this.getBaseURL())}replacedClicked(){const t=new CustomEvent("replacedClicked",{bubbles:!0,composed:!0});this.dispatchEvent(t)}render(){return r`
36
+ <div class="mealz-out-of-stock-overlay">
37
+ <div class="mealz-out-of-stock-overlay__container"></div>
38
+ <div class="mealz-out-of-stock-overlay__footer">
39
+ <mealz-unavailable-badge></mealz-unavailable-badge>
40
+ <button @click="${()=>this.replacedClicked()}"
41
+ class="mealz-ds-button mealz-ds-text weight-l small primary reverse">Remplacer</button>
42
+ </div>
43
+ </div>
44
+ `}};E([o()],b.prototype,"priceData",2);b=E([g("mealz-out-of-stock-overlay")],b);customElements.get("mealz-out-of-stock-overlay")||customElements.define("mealz-out-of-stock-overlay",b);var B=Object.defineProperty,w=Object.getOwnPropertyDescriptor,m=(t,e,i,a)=>{for(var s=a>1?void 0:a?w(e,i):e,d=t.length-1,n;d>=0;d--)(n=t[d])&&(s=(a?n(e,i,s):n(s))||s);return a&&s&&B(e,i,s),s};const _=["ignored","deleted","often_deleted","unavailable"],z=["ignored","deleted","often_deleted"],D=["initial","active","out_of_stock"],T=["initial","out_of_stock"];let l=class extends v{constructor(){super(),this.recipeId="",this.initialGuests=0,this.currentGuests=0,this.inBasket=!1,this.isSponsored=!1,this.analyticsPath="",this.subscriptions=[],this.loadingAddToBasket=!1,this.ingredientIsRemoved=!1,this.guestObserverService=k.getInstance(),this.modifiedIngQty=0,this.styleURL=new URL("./product-card/product-card.css",this.getBaseURL())}get status(){var t,e;return(e=(t=this.product)==null?void 0:t.basketEntry)==null?void 0:e.status}set status(t){this.product.basketEntry.status=t}get productImage(){return this.product.basketEntry.selectedItem.attributes.image||"https://storage.googleapis.com/assets.miam.tech/generic/images/default-ingredient-picture.svg"}get ingredientPicture(){return this.product.ingredient.picture||"https://storage.googleapis.com/assets.miam.tech/generic/images/default-ingredient-picture.svg"}get props(){var s;const t=((s=this.product)==null?void 0:s.basketEntry)||{},e=t.attributes||{},i=t.selectedItem||t.relationships&&t.relationships["selected-item"]&&t.relationships["selected-item"].data||{},a=i&&i.attributes||{};return{entry_name:e.name??"",item_id:i.id??"",ext_item_id:a["ext-id"]??"",item_ean:a.ean??"",product_quantity:e.quantity!=null?String(e.quantity):""}}get selectors(){return{ignoreButton:".mealz-product-card__ignore-product",replaceButton:".mealz-product-card__replace-product",addProductButton:".mealz-product-card__add-product"}}updated(){var t,e;this.product&&(this.status==="deleted"&&(this.ingredientIsRemoved=!1),this.isSponsored=((e=(t=this.product.basketEntry.selectedItem)==null?void 0:t.attributes)==null?void 0:e.sponsored)===!0)}connectedCallback(){var t;super.connectedCallback(),this.listenGuestsChange(),this.productIsBeingAdded(),this.isRecipeInBasket(),(t=this.product)!=null&&t.ingredient&&this.calculateQty(),this.analyticsPath=`/recipes/${this.recipeId}/shopping`}disconnectedCallback(){super.disconnectedCallback(),this.subscriptions.forEach(t=>t.unsubscribe())}listenGuestsChange(){this.subscriptions.push(this.guestObserverService.guests$.subscribe(t=>{this.currentGuests=t,this.calculateQty()}))}calculateQty(){var s,d,n,p;if(!this.isConnected||!((s=this.product)!=null&&s.ingredient))return;const t=((d=this.product.ingredient)==null?void 0:d.quantity)??((p=(n=this.product.ingredient)==null?void 0:n.attributes)==null?void 0:p.quantity),e=Number(t),i=this.initialGuests||1;if(!Number.isFinite(e))return;const a=e/i;this.modifiedIngQty=Number((a*(this.currentGuests||i)).toFixed(2)),this.requestUpdate()}replaceProduct(t){var i,a,s,d;if(this.sendEntryReplaceEvent(),!!this.closest("mealz-recipe-details"))c.recipes.replaceBasketEntry(this.product.basketEntry,t);else{const n=(i=this.product)==null?void 0:i.basketEntry;n.name||(n.name=((d=(s=(a=this.product)==null?void 0:a.basketEntry)==null?void 0:s.attributes)==null?void 0:d.name)||""),c.replaceItem.basketEntryToReplace$.next({basketEntry:n,ignoreSelected:t,ingredient:this.product.ingredient,addProductMode:!1,initialGuests:this.initialGuests||4,currentGuests:this.currentGuests||this.initialGuests||4}),this.requestUpdate()}this.scrollBackWhenReplaced()}scrollBackWhenReplaced(){this.subscriptions.push(c.productAddition.productAdded$.pipe(I(200)).subscribe(()=>{this.isConnected&&(this.scrollIntoView({behavior:"smooth",block:"center"}),this.requestUpdate())}))}isInXRecipes(){var e;const t=(e=this.product)==null?void 0:e.basketEntry;return!t||t.status!=="active"?1:Array.isArray(t.recipesIds)?t.recipesIds.length:1}isRecipeInBasket(){this.subscriptions.push(c.recipes.recipePrice$.subscribe(t=>{this.inBasket=t.inBasket>0}))}ignoreProduct(){this.sendEntryIgnoreEvent(),c.recipes.ignoreProduct(this.product),this.requestUpdate()}updateQuantity(t){this.product.basketEntry.quantity!==t.detail.value&&(t.detail.value<1?(this.ingredientIsRemoved=!0,c.recipes.ingredientRemoved(this.product.ingredient,{originPath:this.analyticsPath,props:{}}),this.sendEntryDeleteEvent()):c.recipes.updateProductQuantity(this.product.basketEntry,t.detail.value,{originPath:this.analyticsPath,props:{}}),c.recipes.updateIngredientFromBasketLoading$.next(!0),this.requestUpdate())}addToBasket(){this.sendEntryAddEvent(),c.recipes.addToBasket(this.product,{props:{},originPath:this.analyticsPath}),this.requestUpdate()}productIsBeingAdded(){this.subscriptions.push(c.recipes.productIsBeingAdded(this.product.basketEntry).subscribe(t=>{this.loadingAddToBasket=t,this.requestUpdate()}))}render(){var t;return r`
45
+ ${(t=this.product)!=null&&t.basketEntry?this.renderProductCard():f}
46
+ `}renderProductCard(){return r`
47
+ <div
48
+ class="mealz-product-card
49
+ ${this.status==="active"?"added":""}
50
+ ${_.includes(this.status)?"disabled":""}
51
+ ${this.status==="out_of_stock"?"out_of_stock":""} ${this.status==="unavailable"?"unavailable":""}"
52
+ >
53
+ ${this.renderOutOfStockOverlay()}
54
+ ${this.renderHeader()}
55
+ <div
56
+ class="
57
+ mealz-product-card__content
58
+ ${z.includes(this.status)?"disabled":""}
59
+ ${this.status==="unavailable"?"unavailable":""}">
60
+ ${D.includes(this.status)?this.renderEnabledProductCard():this.renderDisabledOrUnavailableProduct()}
61
+ </div>
62
+ ${this.renderCalculatedForXRecipes()}
63
+ </div>
64
+ `}renderEnabledProductCard(){var t,e,i,a,s,d,n,p;return r`
65
+ <mealz-promotion-badge .priceData="${this.product.price}"></mealz-promotion-badge>
66
+ <div class="mealz-product-card__selected-product">
67
+ <div class="mealz-product-card__picture-column">
68
+ <img class="mealz-product-card__picture" alt="${((a=(i=(e=(t=this.product)==null?void 0:t.basketEntry)==null?void 0:e.selectedItem)==null?void 0:i.attributes)==null?void 0:a.brand)||""} ${((p=(n=(d=(s=this.product)==null?void 0:s.basketEntry)==null?void 0:d.selectedItem)==null?void 0:n.attributes)==null?void 0:p.name)||"product"}" src="${this.productImage}">
69
+ </div>
70
+ <div class="mealz-product-card__info-column">
71
+ <span class="mealz-ds-text size-xs weight-xl mealz-product-card__details product-brand">
72
+ ${this.product.basketEntry.selectedItem.attributes.brand}
73
+ </span>
74
+ <span class="mealz-ds-text size-xs mealz-product-card__details product-fullname">
75
+ ${this.product.basketEntry.selectedItem.attributes.name}
76
+ </span>
77
+ <mealz-product-badges
78
+ .isSponsored="${this.isSponsored}"
79
+ .item="${this.product.basketEntry.selectedItem}"
80
+ .price="${this.product.price}"
81
+ ></mealz-product-badges>
82
+ </div>
83
+ </div>
84
+ <div class="mealz-product-card__lower-action">
85
+ <mealz-price
86
+ class="mealz-product-card__price mealz-ds-text size-l weight-xxl"
87
+ .price="${this.product.price.unit}">
88
+ </mealz-price>
89
+ <div class="mealz-product-card__cta">
90
+ ${this.renderCTA()}
91
+ </div>
92
+ </div>
93
+ ${this.renderFooterActions()}
94
+ `}renderOutOfStockOverlay(){return this.status==="out_of_stock"?r`
95
+ <mealz-out-of-stock-overlay
96
+ @replacedClicked="${()=>this.replaceProduct(!0)}"></mealz-out-of-stock-overlay>
97
+ `:f}renderHeader(){return r`
98
+ <div
99
+ class="mealz-product-card__header
100
+ ${this.status==="active"?"added":""}
101
+ ${z.includes(this.status)?"disabled":""}
102
+ ${this.status==="unavailable"?"unavailable":""}">
103
+ <span
104
+ class="
105
+ mealz-product-card__header-name
106
+ mealz-ds-text weight-xl
107
+ ${_.includes(this.status)?"mealz-product-card__disabled-text":""}"
108
+ >
109
+ ${P(this.product.basketEntry.name)}
110
+ </span>
111
+ <span
112
+ class="
113
+ mealz-product-card__header-quantity
114
+ mealz-ds-text size-s weight-l
115
+ ${_.includes(this.status)?"mealz-product-card__disabled-text":""}"
116
+ >
117
+ <span>${this.modifiedIngQty?this.modifiedIngQty:this.product.ingredient.quantity}</span>
118
+ <span>${this.product.ingredient.attributes.unit}</span>
119
+ </span>
120
+ </div>
121
+ `}renderCalculatedForXRecipes(){var t;return r`
122
+ ${(t=this.product)!=null&&t.basketEntry&&this.isInXRecipes()>1&&this.status==="active"?r`
123
+ <div class="mealz-product-card__footer">
124
+ <div class="mealz-ds-text size-xs weight-xl light-text">
125
+ <span>Calculé pour </span>
126
+ <span>${this.isInXRecipes()}</span>
127
+ <span> repas</span>
128
+ </div>
129
+ </div>
130
+ `:""}
131
+ `}renderFooterActions(){return r`
132
+ <div class="mealz-product-card__footer__actions">
133
+ ${this.status==="initial"?r`
134
+ <button
135
+ class="mealz-ds-button mealz-ds-text weight-l mealz-product-card__ignore-product ghost small"
136
+ @click="${()=>this.ignoreProduct()}">
137
+ <span class="mealz-product-card__disabled-text">Ignorer produit</span>
138
+ </button>
139
+ `:""}
140
+ <button
141
+ @click="${()=>this.replaceProduct(this.status==="initial")}"
142
+ class="mealz-product-card__replace-product mealz-ds-button ghost mealz-ds-text size-s weight-xl"
143
+ >
144
+ <span>Remplacer</span>
145
+ </button>
146
+ </div>
147
+ `}renderCTA(){return T.includes(this.status)?r`
148
+ ${this.loadingAddToBasket?r`
149
+ <button class="mealz-ds-button mealz-product-card__loading-button square primary">
150
+ <div class="mealz-ds-loader"></div>
151
+ </button>
152
+ `:r`
153
+ <!-- TODO: add disabled state -->
154
+ <button class="mealz-ds-button mealz-product-card__add-product square primary"
155
+ @click="${()=>this.addToBasket()}">
156
+ <img alt="basket icon"
157
+ src="https://storage.googleapis.com/assets.miam.tech/generic/icons/Basket.svg"/>
158
+ </button>
159
+ `}
160
+ `:this.status==="active"?r`
161
+ <mealz-counter
162
+ .value="${this.product.basketEntry.quantity}"
163
+ .min="${0}"
164
+ .biColor="${!0}"
165
+ .debounce="${300}"
166
+ .minusLoading="${this.ingredientIsRemoved}"
167
+ @valueChange="${t=>this.updateQuantity(t)}"
168
+ ></mealz-counter>
169
+ `:r``}renderDisabledOrUnavailableProduct(){return r`
170
+ ${z.includes(this.status)?r`
171
+ <span class="mealz-ds-text mealz-product-card__disabled-text">
172
+ Cet ingrédient ne sera pas ajouté à votre panier
173
+ </span>
174
+ <button
175
+ class="mealz-product-card__replace-product-from-disabled mealz-ds-button mealz-ds-text size-s weight-xl primary reverse small"
176
+ @click="${()=>this.replaceProduct(!0)}">
177
+ <span>Ajouter un produit</span>
178
+ </button>
179
+ `:""}
180
+ ${this.status==="unavailable"?r`
181
+ <img class="mealz-ds-avatar" src="${this.ingredientPicture}" alt="ingredient picture">
182
+ <mealz-unavailable-badge></mealz-unavailable-badge>
183
+ <button
184
+ class="mealz-product-card__replace-product-from-unavailable mealz-ds-button mealz-ds-text size-s weight-xl primary reverse small"
185
+ @click="${()=>this.replaceProduct(!0)}">
186
+ <span>Remplacer</span>
187
+ </button>
188
+ `:""}
189
+ `}sendEntryAddEvent(){c.analytics.sendEvent("entry.add",this.analyticsPath,this.props)}sendEntryReplaceEvent(){c.analytics.sendEvent("entry.replace",this.analyticsPath,this.props)}sendEntryIgnoreEvent(){c.analytics.sendEvent("entry.ignore",this.analyticsPath,this.props)}sendEntryDeleteEvent(){c.analytics.sendEvent("entry.delete",this.analyticsPath,this.props)}};m([o({type:Object})],l.prototype,"product",2);m([o({type:String})],l.prototype,"recipeId",2);m([o({type:Number})],l.prototype,"initialGuests",2);m([o({type:Number})],l.prototype,"currentGuests",2);l=m([g("mealz-product-card")],l);customElements.get("mealz-product-card")||customElements.define("mealz-product-card",l);
@@ -1,4 +1,4 @@
1
- import{N as c,k as n}from"./no-shadow-element-YPHUv5PR.js";import{t as l}from"./custom-element-BhZVzxrc.js";import{n as d}from"./property-_7ObQ3dl.js";import{P as u}from"./price-DAxY_7sk.js";var g=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p=(e,o,s,r)=>{for(var t=r>1?void 0:r?f(o,s):o,a=e.length-1,m;a>=0;a--)(m=e[a])&&(t=(r?m(o,s,t):m(t))||t);return r&&t&&g(o,s,t),t};let i=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 n`
1
+ import{N as c,k as n}from"./no-shadow-element-D62BBu0I.js";import{t as l}from"./custom-element-BhZVzxrc.js";import{n as d}from"./property-CoRN-Ln2.js";import{P as u}from"./price-D6RVRYHJ.js";var g=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p=(e,o,s,r)=>{for(var t=r>1?void 0:r?f(o,s):o,a=e.length-1,m;a>=0;a--)(m=e[a])&&(t=(r?m(o,s,t):m(t))||t);return r&&t&&g(o,s,t),t};let i=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 n`
2
2
  <div class="mealz-promotion-badge">
3
3
  ${((e=this.priceData)==null?void 0:e.discountAmount)>0?n`
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-YPHUv5PR.js";/**
1
+ import{f as p,u as l}from"./no-shadow-element-D62BBu0I.js";/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -0,0 +1 @@
1
+ const s=class s{static getInstance(){return s.instances.has(this)||s.instances.set(this,new this),s.instances.get(this)}};s.instances=new Map;let t=s;export{t as S};
@@ -0,0 +1 @@
1
+ import{f as n}from"./filter-q99GWcpD.js";function o(r){return n(function(f,t){return r<=t})}export{o as s};
@@ -1 +1 @@
1
- import{o,c as s}from"./OperatorSubscriber-BaYaQC1O.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-DfCnFunn.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-_7ObQ3dl.js";/**
1
+ import{n as r}from"./property-CoRN-Ln2.js";/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1 +1 @@
1
- import{i as v}from"./innerFrom-BgPDnAsH.js";import{o as l,c as a}from"./OperatorSubscriber-BaYaQC1O.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-DePszgj9.js";import{o as l,c as a}from"./OperatorSubscriber-DfCnFunn.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-0eVnsLmk.js";import{o as f,c as i}from"./OperatorSubscriber-BaYaQC1O.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-qrpgDBbc.js";import{o as f,c as i}from"./OperatorSubscriber-DfCnFunn.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-YPHUv5PR.js";import{o as f,c as s}from"./OperatorSubscriber-BaYaQC1O.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-D62BBu0I.js";import{o as f,c as s}from"./OperatorSubscriber-DfCnFunn.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};
@@ -0,0 +1 @@
1
+ import{O as m}from"./no-shadow-element-D62BBu0I.js";import{b as p}from"./async-C5Kj_SqM.js";import{i as r}from"./isScheduler-CqHuyMwD.js";import{i as v}from"./isDate-BwHtzZM4.js";function y(o,f,i){o===void 0&&(o=0),i===void 0&&(i=p);var n=-1;return f!=null&&(r(f)?i=f:n=f),new m(function(t){var a=v(o)?+o-i.now():o;a<0&&(a=0);var s=0;return i.schedule(function(){t.closed||(t.next(s++),0<=n?this.schedule(void 0,n):t.complete())},a)})}export{y as t};
@@ -1,4 +1,4 @@
1
- import{D as s,R as o}from"./no-shadow-element-YPHUv5PR.js";/**
1
+ import{D as s,R as o}from"./no-shadow-element-D62BBu0I.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-YPHUv5PR.js";import{d as h}from"./debounceTime-B4DpnstH.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-D62BBu0I.js";import{d as h}from"./debounceTime-Cf_7YmIn.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{i as d,O as f,N as h,k as o}from"../assets/no-shadow-element-YPHUv5PR.js";import{t as m}from"../assets/custom-element-BhZVzxrc.js";import{m as i,w as b}from"../assets/mealz-sdk-E_fNZM-c.js";import{s as S}from"../assets/skip-zbH-ayby.js";import{t as T}from"../assets/take-CozE9iSG.js";import"../assets/filter-BZ75lS5D.js";import"../assets/OperatorSubscriber-BaYaQC1O.js";import"../assets/empty-0eVnsLmk.js";function u(s){return!!s&&(s instanceof f||d(s.lift)&&d(s.subscribe))}var k=Object.getOwnPropertyDescriptor,z=(s,e,t,a)=>{for(var r=a>1?void 0:a?k(e,t):e,n=s.length-1,l;n>=0;n--)(l=s[n])&&(r=l(r)||r);return r};let p=class extends h{constructor(){super(),this.supplierName=null,this.displayFirstStep=!1,this.displaySecondStep=!1,this.subscriptions=[],this.close=()=>{this.displayFirstStep=!1,this.displaySecondStep=!1,this.requestUpdate()},this.openFirstStep=()=>{this.displayFirstStep=!0,this.displaySecondStep=!1,this.requestUpdate()},this.goToSecondStep=()=>{var s,e;this.subscriptions.push((e=(s=i)==null?void 0:s.basket)==null?void 0:e.refreshCurrentBasket().pipe(S(1),T(1)).subscribe(t=>{var r;((r=t==null?void 0:t.attributes)==null?void 0:r.status)==="transferring"&&(this.displayFirstStep=!1,this.displaySecondStep=!0,this.requestUpdate())}))},this.cancelTransfer=()=>{var e;const s=(e=i)==null?void 0:e.basketTransfer.abortTransfer();if(u(s)){this.subscriptions.push(s.subscribe(()=>this.close()));return}this.close()},this.continueTransfer=()=>{var s,e,t,a;this.displayFirstStep=!0,this.displaySecondStep=!1,this.requestUpdate(),typeof((e=(s=i)==null?void 0:s.basket)==null?void 0:e.transfer)=="function"&&i.basketTransfer.transfer(),typeof((a=(t=i)==null?void 0:t.basketTransfer)==null?void 0:a.navigateToTransferUrl)=="function"&&i.basketTransfer.navigateToTransferUrl()},this.styleURL=new URL("./basket-transfer-modal/basket-transfer-modal.css",this.getBaseURL())}connectedCallback(){super.connectedCallback(),b().then(()=>{this.listenToPos(),this.listenToTransferState()}).catch(s=>console.error("[basket-transfer-modal] Mealz SDK unavailable",s))}disconnectedCallback(){super.disconnectedCallback(),this.subscriptions.forEach(s=>s.unsubscribe())}render(){return!this.displayFirstStep&&!this.displaySecondStep?o``:o`
1
+ import{i as d,O as f,N as h,k as o}from"../assets/no-shadow-element-D62BBu0I.js";import{t as m}from"../assets/custom-element-BhZVzxrc.js";import{m as i,w as b}from"../assets/mealz-sdk-E_fNZM-c.js";import{s as S}from"../assets/skip-Bup0JB81.js";import{t as T}from"../assets/take-CpvJwza7.js";import"../assets/filter-q99GWcpD.js";import"../assets/OperatorSubscriber-DfCnFunn.js";import"../assets/empty-qrpgDBbc.js";function u(s){return!!s&&(s instanceof f||d(s.lift)&&d(s.subscribe))}var k=Object.getOwnPropertyDescriptor,z=(s,e,t,a)=>{for(var r=a>1?void 0:a?k(e,t):e,n=s.length-1,l;n>=0;n--)(l=s[n])&&(r=l(r)||r);return r};let p=class extends h{constructor(){super(),this.supplierName=null,this.displayFirstStep=!1,this.displaySecondStep=!1,this.subscriptions=[],this.close=()=>{this.displayFirstStep=!1,this.displaySecondStep=!1,this.requestUpdate()},this.openFirstStep=()=>{this.displayFirstStep=!0,this.displaySecondStep=!1,this.requestUpdate()},this.goToSecondStep=()=>{var s,e;this.subscriptions.push((e=(s=i)==null?void 0:s.basket)==null?void 0:e.refreshCurrentBasket().pipe(S(1),T(1)).subscribe(t=>{var r;((r=t==null?void 0:t.attributes)==null?void 0:r.status)==="transferring"&&(this.displayFirstStep=!1,this.displaySecondStep=!0,this.requestUpdate())}))},this.cancelTransfer=()=>{var e;const s=(e=i)==null?void 0:e.basketTransfer.abortTransfer();if(u(s)){this.subscriptions.push(s.subscribe(()=>this.close()));return}this.close()},this.continueTransfer=()=>{var s,e,t,a;this.displayFirstStep=!0,this.displaySecondStep=!1,this.requestUpdate(),typeof((e=(s=i)==null?void 0:s.basket)==null?void 0:e.transfer)=="function"&&i.basketTransfer.transfer(),typeof((a=(t=i)==null?void 0:t.basketTransfer)==null?void 0:a.navigateToTransferUrl)=="function"&&i.basketTransfer.navigateToTransferUrl()},this.styleURL=new URL("./basket-transfer-modal/basket-transfer-modal.css",this.getBaseURL())}connectedCallback(){super.connectedCallback(),b().then(()=>{this.listenToPos(),this.listenToTransferState()}).catch(s=>console.error("[basket-transfer-modal] Mealz SDK unavailable",s))}disconnectedCallback(){super.disconnectedCallback(),this.subscriptions.forEach(s=>s.unsubscribe())}render(){return!this.displayFirstStep&&!this.displaySecondStep?o``:o`
2
2
  <mealz-modal
3
3
  .titleSlot=${o`<span class="mealz-ds-text weight-xxl">Transfert du panier</span>`}
4
4
  .contentSlot=${this.displaySecondStep?this.renderTransferModalConfirm():this.renderTransferModalInitial()}