mealz-components 2.2.0 → 2.3.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.
- package/dist/accordion/accordion.css +1 -1
- package/dist/assets/{OperatorSubscriber-B37s2U6v.js → OperatorSubscriber-DF1TYu__.js} +1 -1
- package/dist/assets/accordion-la5mVBfL.js +19 -0
- package/dist/assets/{async-guWcMFmJ.js → async-D5WN8Wfc.js} +1 -1
- package/dist/assets/{combineLatest-qLpwa5de.js → combineLatest-BN0_WcEG.js} +1 -1
- package/dist/assets/{debounceTime-cu8WlLF0.js → debounceTime-D7R6Z3Am.js} +1 -1
- package/dist/assets/delay-wUm-cx7a.js +1 -0
- package/dist/assets/{distinctUntilChanged-DmoT2we5.js → distinctUntilChanged-VvZTmHoN.js} +1 -1
- package/dist/assets/empty-Bs9kqCuA.js +1 -0
- package/dist/assets/{executeSchedule-Dqc6shOu.js → executeSchedule-C0acKsif.js} +1 -1
- package/dist/assets/{filter-BjN-BbQD.js → filter-DQ4vwAGj.js} +1 -1
- package/dist/assets/{from-CEPL7XsE.js → from-BTlWkhKh.js} +1 -1
- package/dist/assets/{innerFrom-D8hyVDmo.js → innerFrom-FMZwm2mb.js} +1 -1
- package/dist/assets/{map-D6X2syNu.js → map-DHslluWD.js} +1 -1
- package/dist/assets/mapOneOrManyArgs-Bdu6mo6S.js +1 -0
- package/dist/assets/merge-tdU3EgEI.js +1 -0
- package/dist/assets/mergeAll-DTkL1sF8.js +1 -0
- package/dist/assets/{mergeMap-CX64J-ac.js → mergeMap-g-JGW99j.js} +1 -1
- package/dist/assets/{no-shadow-element-D4NOg0uW.js → no-shadow-element-Dz9jgDtr.js} +7 -7
- package/dist/assets/{of-CzgrATec.js → of-hd4MpK5g.js} +1 -1
- package/dist/assets/{price-DdIbni0N.js → price-CHipCs2z.js} +1 -1
- package/dist/assets/{product-card-CcuyZyd6.js → product-card-c_0I2Lp_.js} +14 -14
- package/dist/assets/{promotion-badge-TYkTBrOQ.js → promotion-badge-CzwsPJJq.js} +3 -3
- package/dist/assets/{property-BXNy7Yd-.js → property-Bx8Yvr4_.js} +1 -1
- package/dist/assets/skip-BuAl4dWz.js +1 -0
- package/dist/assets/{skipWhile-B_4e7jSH.js → skipWhile-BzDgmir5.js} +1 -1
- package/dist/assets/{state-b8IyfZUU.js → state-C5zM4-Pq.js} +1 -1
- package/dist/assets/{switchMap-BYsewftM.js → switchMap-6Z80ObHE.js} +1 -1
- package/dist/assets/{take-ujVMxFwY.js → take-ByPtGQky.js} +1 -1
- package/dist/assets/{tap-DwBV-qFl.js → tap-K_D6lo97.js} +1 -1
- package/dist/assets/{timer-D3X0vtFO.js → timer-C3uKg-qK.js} +1 -1
- package/dist/assets/{unsafe-html-C8GMyVYZ.js → unsafe-html-Bv_ydUHb.js} +1 -1
- package/dist/assets/{viewport-listener-BRwa66-G.js → viewport-listener-DrFhSZNW.js} +1 -1
- package/dist/basket-transfer-modal/basket-transfer-modal.min.js +12 -13
- package/dist/catalog/basket-preview/basket-preview-product/basket-preview-product.css +1 -1
- package/dist/catalog/basket-preview/basket-preview.css +1 -1
- package/dist/catalog/basket-preview/basket-preview.min.js +48 -43
- package/dist/catalog/catalog-category/catalog-category.min.js +1 -1
- package/dist/catalog/catalog-favorites/catalog-favorites.min.js +1 -1
- package/dist/catalog/catalog-history/catalog-history.min.js +1 -1
- package/dist/catalog/catalog-home/catalog-home.min.js +1 -1
- package/dist/catalog/catalog-list/catalog-list.min.js +1 -1
- package/dist/catalog/catalog-load-more.min.js +1 -1
- package/dist/catalog/catalog-tabs/catalog-tabs.min.js +1 -1
- package/dist/catalog/catalog-toolbar/catalog-toolbar.min.js +1 -1
- package/dist/catalog/my-meals-button/my-meals-button.min.js +1 -1
- package/dist/counter/counter.min.js +1 -1
- package/dist/drawer/drawer.min.js +1 -1
- package/dist/drawer-view-swapper/drawer-view-swapper.css +1 -1
- package/dist/drawer-view-swapper/drawer-view-swapper.min.js +24 -20
- package/dist/history-drawer/history-drawer.min.js +1 -1
- package/dist/history-order/history-order.min.js +1 -1
- package/dist/history-order-expanded/history-order-expanded.min.js +1 -1
- package/dist/last-order-badge/last-order-badge.min.js +2 -2
- package/dist/last-order-modal/last-order-modal.min.js +1 -1
- package/dist/like-button/like-button.min.js +1 -1
- package/dist/modal/modal.min.js +1 -1
- package/dist/no-supplier-add-to-cart-cta/no-supplier-add-to-cart-cta.css +1 -0
- package/dist/no-supplier-add-to-cart-cta/no-supplier-add-to-cart-cta.min.js +7 -0
- package/dist/onboarding/onboarding.min.js +2 -2
- package/dist/order-again/order-again.min.js +1 -1
- package/dist/planner/helpers/open-onboarding-modal.min.js +1 -1
- package/dist/planner/planner-abandon-modal/planner-abandon-modal.min.js +1 -1
- package/dist/planner/planner-budget-edit-modal/planner-budget-edit-modal.css +1 -1
- package/dist/planner/planner-budget-edit-modal/planner-budget-edit-modal.min.js +6 -6
- package/dist/planner/planner-budget-gauge/planner-budget-gauge.css +1 -1
- package/dist/planner/planner-budget-gauge/planner-budget-gauge.min.js +1 -1
- package/dist/planner/planner-catalog/planner-catalog.min.js +2 -2
- package/dist/planner/planner-current-menu/planner-current-menu.min.js +1 -1
- package/dist/planner/planner-current-menu-modal/planner-current-menu-modal.min.js +1 -1
- package/dist/planner/planner-dashboard/planner-dashboard.min.js +1 -1
- package/dist/planner/planner-form/planner-form.min.js +1 -1
- package/dist/planner/planner-menu-option/planner-menu-option.min.js +1 -1
- package/dist/planner/planner-onboarding/planner-onboarding.min.js +1 -1
- package/dist/planner/planner-onboarding-modal/planner-onboarding-modal.min.js +6 -6
- package/dist/planner/planner-open-catalog-modal/planner-open-catalog-modal.min.js +1 -1
- package/dist/planner/planner-recipe-card/planner-recipe-card.min.js +1 -1
- package/dist/planner/planner-recipe-list/planner-recipe-list.min.js +1 -1
- package/dist/planner/planner-recipe-suggestion/planner-recipe-suggestion.min.js +1 -1
- package/dist/planner/planner-welcome-modal/planner-welcome-modal.min.js +2 -2
- package/dist/planner/to-basket-loader/to-basket-loader.min.js +2 -2
- package/dist/planner-entry/planner-entry.min.js +1 -1
- package/dist/preferences/preferences.min.js +21 -39
- package/dist/price/price.min.js +1 -1
- package/dist/product-addition/product-addition.css +1 -1
- package/dist/recipe-card/recipe-card.min.js +1 -1
- package/dist/recipe-card-cta/recipe-card-cta.min.js +1 -1
- package/dist/recipe-details/recipe-details.min.js +49 -41
- package/dist/recipe-pricing/recipe-pricing.min.js +1 -1
- package/dist/replace-item/replace-item-card/replace-item-card.min.js +5 -5
- package/dist/replace-item/replace-item.min.js +2 -2
- package/dist/replace-item-planner/replace-item-card-planner/replace-item-card-planner.min.js +1 -1
- package/dist/replace-item-planner/replace-item-planner.min.js +1 -1
- package/dist/select/select.min.js +1 -1
- package/dist/slider-tabs/slider-tabs.min.js +2 -2
- package/dist/store-indicator/store-indicator.min.js +1 -1
- package/dist/store-locator/store-locator.css +1 -1
- package/dist/store-locator/store-locator.min.js +97 -0
- package/dist/store-locator-drawer/store-locator-drawer.min.js +4 -37
- package/dist/store-locator.css +290 -0
- package/dist/supplier-selector/supplier-selector.css +1 -0
- package/dist/supplier-selector/supplier-selector.min.js +53 -0
- package/dist/supplier-selector.css +99 -0
- package/package.json +1 -1
- package/dist/add-to-cart-cta/add-to-cart-cta.css +0 -1
- package/dist/add-to-cart-cta/add-to-cart-cta.min.js +0 -7
- package/dist/assets/delay-DX2Gy1PY.js +0 -1
- package/dist/assets/empty-DhPhHznc.js +0 -1
- package/dist/assets/mapOneOrManyArgs-UKKoFfIU.js +0 -1
- package/dist/assets/merge-Cw-bwf6Z.js +0 -1
- package/dist/assets/mergeAll-9jcORGP2.js +0 -1
- package/dist/assets/store-locator-CQ_XQBby.js +0 -95
- package/dist/no-supplier-onboarding/no-supplier-onboarding.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.mealz-accordion__header{height:48px;width:calc(100% - 32px);display:flex;align-items:center;justify-content:space-between;margin:0 16px 12px;padding:12px 8px;border-radius:8px;background:var(--mealz-ds-color-primary-50, #F0F3F4);color:var(--mealz-ds-color-neutral-black, #0F191F);-webkit-user-select:none;user-select:none;border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.mealz-accordion__header:hover{cursor:pointer}.mealz-accordion__icon{height:12px;width:12px;margin:6px;transition:all .3s ease;transform:rotate(0)}.mealz-accordion__collapsable-container{margin:0 16px;padding:0 8px;display:grid;grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows .3s ease-out}.mealz-accordion__collapsable-content{min-height:0;opacity:0;transition:opacity .3s ease-out}.opened .mealz-accordion__icon{transform:rotate(180deg)}.opened .mealz-accordion__collapsable-container{grid-template-rows:1fr}.opened .mealz-accordion__collapsable-container .mealz-accordion__collapsable-content{opacity:1}
|
|
1
|
+
.mealz-accordion__header{height:48px;width:calc(100% - 32px);display:flex;align-items:center;justify-content:space-between;margin:0 16px 12px;padding:12px 8px;border-radius:8px;background:var(--mealz-ds-color-primary-50, #F0F3F4);color:var(--mealz-ds-color-neutral-black, #0F191F);-webkit-user-select:none;user-select:none;border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.mealz-accordion__header:hover{cursor:pointer}.mealz-accordion__header-no-styling{width:100%;display:flex;align-items:center;justify-content:space-between;-webkit-user-select:none;user-select:none;border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:inherit}.mealz-accordion__icon{height:12px;width:12px;margin:6px;transition:all .3s ease;transform:rotate(0)}.mealz-accordion__collapsable-container{margin:0 16px;padding:0 8px;display:grid;grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows .3s ease-out}.mealz-accordion__collapsable-container-no-styling{display:grid;grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows .3s ease-out}.mealz-accordion__collapsable-content{min-height:0;opacity:0;transition:opacity .3s ease-out}.opened .mealz-accordion__icon{transform:rotate(180deg)}.opened .mealz-accordion__collapsable-container,.opened .mealz-accordion__collapsable-container-no-styling{grid-template-rows:1fr}.opened .mealz-accordion__collapsable-container .mealz-accordion__collapsable-content,.opened .mealz-accordion__collapsable-container-no-styling .mealz-accordion__collapsable-content{opacity:1}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as b,_ as h,
|
|
1
|
+
import{i as b,_ as h,S as f}from"./no-shadow-element-Dz9jgDtr.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};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import{N as d,k as h}from"./no-shadow-element-Dz9jgDtr.js";import{t as m}from"./custom-element-BhZVzxrc.js";import{n as l}from"./property-Bx8Yvr4_.js";import{a as p}from"./unsafe-html-Bv_ydUHb.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
|
+
<button
|
|
3
|
+
class="mealz-accordion__header${this.noStyling?"-no-styling":""}"
|
|
4
|
+
@click=${()=>this.toggleAccordion()}
|
|
5
|
+
aria-expanded=${!this.isCollapsed}
|
|
6
|
+
>
|
|
7
|
+
${typeof this.titleSlot=="string"?p(this.titleSlot):this.titleSlot}
|
|
8
|
+
<img
|
|
9
|
+
class="mealz-accordion__icon"
|
|
10
|
+
src=${this.iconUrl??"https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down.svg"}
|
|
11
|
+
alt="open and close icon"
|
|
12
|
+
/>
|
|
13
|
+
</button>
|
|
14
|
+
<div class="mealz-accordion__collapsable-container${this.noStyling?"-no-styling":""}">
|
|
15
|
+
<div class="mealz-accordion__collapsable-content">
|
|
16
|
+
${typeof this.contentSlot=="string"?p(this.contentSlot):this.contentSlot}
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
`}};i([l({type:String})],e.prototype,"titleSlot",2);i([l({type:String})],e.prototype,"contentSlot",2);i([l({type:String})],e.prototype,"iconUrl",2);i([l({type:Boolean})],e.prototype,"noStyling",2);i([l({type:Boolean})],e.prototype,"isCollapsed",2);e=i([m("mealz-accordion")],e);customElements.get("mealz-accordion")||customElements.define("mealz-accordion",e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as u,
|
|
1
|
+
import{_ as u,a as l,b as d,c as f,d as v}from"./no-shadow-element-Dz9jgDtr.js";var a={now:function(){return(a.delegate||Date).now()},delegate:void 0},p=function(n){u(i,n);function i(e,t){return n.call(this)||this}return i.prototype.schedule=function(e,t){return this},i}(l),h={setInterval:function(n,i){for(var e=[],t=2;t<arguments.length;t++)e[t-2]=arguments[t];return setInterval.apply(void 0,d([n,i],f(e)))},clearInterval:function(n){return clearInterval(n)},delegate:void 0},y=function(n){u(i,n);function i(e,t){var r=n.call(this,e,t)||this;return r.scheduler=e,r.work=t,r.pending=!1,r}return i.prototype.schedule=function(e,t){var r;if(t===void 0&&(t=0),this.closed)return this;this.state=e;var s=this.id,c=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(c,s,t)),this.pending=!0,this.delay=t,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(c,this.id,t),this},i.prototype.requestAsyncId=function(e,t,r){return r===void 0&&(r=0),h.setInterval(e.flush.bind(e,this),r)},i.prototype.recycleAsyncId=function(e,t,r){if(r===void 0&&(r=0),r!=null&&this.delay===r&&this.pending===!1)return t;t!=null&&h.clearInterval(t)},i.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},i.prototype._execute=function(e,t){var r=!1,s;try{this.work(e)}catch(c){r=!0,s=c||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),s},i.prototype.unsubscribe=function(){if(!this.closed){var e=this,t=e.id,r=e.scheduler,s=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,v(s,this),t!=null&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,n.prototype.unsubscribe.call(this)}},i}(p),o=function(){function n(i,e){e===void 0&&(e=n.now),this.schedulerActionCtor=i,this.now=e}return n.prototype.schedule=function(i,e,t){return e===void 0&&(e=0),new this.schedulerActionCtor(this,i).schedule(t,e)},n.now=a.now,n}(),A=function(n){u(i,n);function i(e,t){t===void 0&&(t=o.now);var r=n.call(this,e,t)||this;return r.actions=[],r._active=!1,r}return i.prototype.flush=function(e){var t=this.actions;if(this._active){t.push(e);return}var r;this._active=!0;do if(r=e.execute(e.state,e.delay))break;while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}},i}(o),g=new A(y),b=g;export{g as a,b,a as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{O,t as v}from"./no-shadow-element-
|
|
1
|
+
import{O,t as v}from"./no-shadow-element-Dz9jgDtr.js";import{p as b,b as h,f as m}from"./from-BTlWkhKh.js";import{m as A}from"./mapOneOrManyArgs-Bdu6mo6S.js";import{c as S}from"./OperatorSubscriber-DF1TYu__.js";import{e as j}from"./executeSchedule-C0acKsif.js";var k=Array.isArray,d=Object.getPrototypeOf,P=Object.prototype,w=Object.keys;function x(r){if(r.length===1){var e=r[0];if(k(e))return{args:e,keys:null};if(F(e)){var t=w(e);return{args:t.map(function(n){return e[n]}),keys:t}}}return{args:r,keys:null}}function F(r){return r&&typeof r=="object"&&d(r)===P}function L(r,e){return r.reduce(function(t,n,a){return t[n]=e[a],t},{})}function q(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=b(r),n=h(r),a=x(r),o=a.args,c=a.keys;if(o.length===0)return m([],t);var u=new O(V(o,t,c?function(i){return L(c,i)}:v));return n?u.pipe(A(n)):u}function V(r,e,t){return t===void 0&&(t=v),function(n){l(e,function(){for(var a=r.length,o=new Array(a),c=a,u=a,i=function(s){l(e,function(){var y=m(r[s],e),p=!1;y.subscribe(S(n,function(g){o[s]=g,p||(p=!0,u--),u||n.next(t(o.slice()))},function(){--c||n.complete()}))},n)},f=0;f<a;f++)i(f)},n)}}function l(r,e,t){r?j(t,r,e):e()}export{q as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as d}from"./async-
|
|
1
|
+
import{a as d}from"./async-D5WN8Wfc.js";import{o as m,c as v}from"./OperatorSubscriber-DF1TYu__.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-D5WN8Wfc.js";import{t as m}from"./take-ByPtGQky.js";import{m as a}from"./map-DHslluWD.js";import{m as e}from"./mergeMap-g-JGW99j.js";import{i as f}from"./innerFrom-FMZwm2mb.js";import{t as p}from"./timer-C3uKg-qK.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-
|
|
1
|
+
import{t as d}from"./no-shadow-element-Dz9jgDtr.js";import{o,c as a}from"./OperatorSubscriber-DF1TYu__.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-Dz9jgDtr.js";var t=new r(function(e){return e.complete()});export{t as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as d}from"./no-shadow-element-
|
|
1
|
+
import{i as d}from"./no-shadow-element-Dz9jgDtr.js";function o(i){return i&&d(i.schedule)}function h(i,e,n,s,u){s===void 0&&(s=0),u===void 0&&(u=!1);var c=e.schedule(function(){n(),u?i.add(this.schedule(null,s)):this.unsubscribe()},s);if(i.add(c),!u)return c}export{h as e,o as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as c,c as i}from"./OperatorSubscriber-
|
|
1
|
+
import{o as c,c as i}from"./OperatorSubscriber-DF1TYu__.js";function u(e,n){return c(function(o,r){var a=0;o.subscribe(i(r,function(t){return e.call(n,t,a++)&&r.next(t)}))})}export{u as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as m,O as f}from"./no-shadow-element-
|
|
1
|
+
import{i as m,O as f}from"./no-shadow-element-Dz9jgDtr.js";import{i as S,e as a}from"./executeSchedule-C0acKsif.js";import{i,b as x,r as I,c as O,a as w,d as A,e as k,f as y,g as L,h as R}from"./innerFrom-FMZwm2mb.js";import{o as v,c as E}from"./OperatorSubscriber-DF1TYu__.js";function u(e){return e[e.length-1]}function z(e){return m(u(e))?e.pop():void 0}function B(e){return S(u(e))?e.pop():void 0}function C(e,n){return typeof u(e)=="number"?e.pop():n}function d(e,n){return n===void 0&&(n=0),v(function(r,t){r.subscribe(E(t,function(o){return a(t,e,function(){return t.next(o)},n)},function(){return a(t,e,function(){return t.complete()},n)},function(o){return a(t,e,function(){return t.error(o)},n)}))})}function p(e,n){return n===void 0&&(n=0),v(function(r,t){t.add(e.schedule(function(){return r.subscribe(t)},n))})}function F(e,n){return i(e).pipe(p(n),d(n))}function P(e,n){return i(e).pipe(p(n),d(n))}function T(e,n){return new f(function(r){var t=0;return n.schedule(function(){t===e.length?r.complete():(r.next(e[t++]),r.closed||this.schedule())})})}function G(e,n){return new f(function(r){var t;return a(r,n,function(){t=e[x](),a(r,n,function(){var o,c,l;try{o=t.next(),c=o.value,l=o.done}catch(h){r.error(h);return}l?r.complete():r.next(c)},0,!0)}),function(){return m(t==null?void 0:t.return)&&t.return()}})}function s(e,n){if(!e)throw new Error("Iterable cannot be null");return new f(function(r){a(r,n,function(){var t=e[Symbol.asyncIterator]();a(r,n,function(){t.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function N(e,n){return s(I(e),n)}function _(e,n){if(e!=null){if(O(e))return F(e,n);if(w(e))return T(e,n);if(A(e))return P(e,n);if(k(e))return s(e,n);if(y(e))return G(e,n);if(L(e))return N(e,n)}throw R(e)}function D(e,n){return n?_(e,n):i(e)}export{C as a,z as b,D as f,B as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as l,o as d,
|
|
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-Dz9jgDtr.js";var g=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function A(e){return l(e==null?void 0:e.then)}function k(e){return l(e[d])}function x(e){return Symbol.asyncIterator&&l(e==null?void 0:e[Symbol.asyncIterator])}function L(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function O(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var b=O();function p(e){return l(e==null?void 0:e[b])}function R(e){return m(this,arguments,function(){var r,a,o,s;return v(this,function(t){switch(t.label){case 0:r=e.getReader(),t.label=1;case 1:t.trys.push([1,,9,10]),t.label=2;case 2:return[4,f(r.read())];case 3:return a=t.sent(),o=a.value,s=a.done,s?[4,f(void 0)]:[3,5];case 4:return[2,t.sent()];case 5:return[4,f(o)];case 6:return[4,t.sent()];case 7:return t.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function T(e){return l(e==null?void 0:e.getReader)}function j(e){if(e instanceof u)return e;if(e!=null){if(k(e))return E(e);if(g(e))return P(e);if(A(e))return G(e);if(x(e))return y(e);if(p(e))return F(e);if(T(e))return Y(e)}throw L(e)}function E(e){return new u(function(n){var r=e[d]();if(l(r.subscribe))return r.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function P(e){return new u(function(n){for(var r=0;r<e.length&&!n.closed;r++)n.next(e[r]);n.complete()})}function G(e){return new u(function(n){e.then(function(r){n.closed||(n.next(r),n.complete())},function(r){return n.error(r)}).then(null,h)})}function F(e){return new u(function(n){var r,a;try{for(var o=w(e),s=o.next();!s.done;s=o.next()){var t=s.value;if(n.next(t),n.closed)return}}catch(i){r={error:i}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(r)throw r.error}}n.complete()})}function y(e){return new u(function(n){U(e,n).catch(function(r){return n.error(r)})})}function Y(e){return y(R(e))}function U(e,n){var r,a,o,s;return I(this,void 0,void 0,function(){var t,i;return v(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=S(e),c.label=1;case 1:return[4,r.next()];case 2:if(a=c.sent(),!!a.done)return[3,4];if(t=a.value,n.next(t),n.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i=c.sent(),o={error:i},[3,11];case 6:return c.trys.push([6,,9,10]),a&&!a.done&&(s=r.return)?[4,s.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return n.complete(),[2]}})})}export{g as a,b,k as c,A as d,x as e,p as f,T as g,L as h,j as i,R as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as c,c as i}from"./OperatorSubscriber-
|
|
1
|
+
import{o as c,c as i}from"./OperatorSubscriber-DF1TYu__.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-Dz9jgDtr.js";import{m as o}from"./map-DHslluWD.js";var t=Array.isArray;function i(a,r){return t(r)?a.apply(void 0,n([],p(r))):a(r)}function y(a){return o(function(r){return i(a,r)})}export{y as m};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as n}from"./mergeAll-DTkL1sF8.js";import{i as t}from"./innerFrom-FMZwm2mb.js";import{E as s}from"./empty-Bs9kqCuA.js";import{p,a as f,f as u}from"./from-BTlWkhKh.js";function h(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var o=p(r),a=f(r,1/0),m=r;return m.length?m.length===1?t(m[0]):n(a)(u(m,o)):s}export{h as m};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m}from"./mergeMap-g-JGW99j.js";import{t}from"./no-shadow-element-Dz9jgDtr.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-
|
|
1
|
+
import{m as C}from"./map-DHslluWD.js";import{i as x}from"./innerFrom-FMZwm2mb.js";import{c as h,o as F}from"./OperatorSubscriber-DF1TYu__.js";import"./executeSchedule-C0acKsif.js";import{i as I}from"./no-shadow-element-Dz9jgDtr.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};
|
|
@@ -6,16 +6,16 @@ import{m as rt}from"./mealz-sdk-E_fNZM-c.js";/**
|
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:jt,defineProperty:kt,getOwnPropertyDescriptor:Ht,getOwnPropertyNames:Lt,getOwnPropertySymbols:Nt,getPrototypeOf:zt}=Object,m=globalThis,st=m.trustedTypes,Bt=st?st.emptyScript:"",q=m.reactiveElementPolyfillSupport,O=(i,t)=>i,Y={toAttribute(i,t){switch(t){case Boolean:i=i?Bt:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},$t=(i,t)=>!jt(i,t),ot={attribute:!0,type:String,converter:Y,reflect:!1,hasChanged:$t};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),m.litPropertyMetadata??(m.litPropertyMetadata=new WeakMap);class S extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ot){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(t,r,e);n!==void 0&&kt(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){const{get:n,set:s}=Ht(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return n==null?void 0:n.call(this)},set(o){const c=n==null?void 0:n.call(this);s.call(this,o),this.requestUpdate(t,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ot}static _$Ei(){if(this.hasOwnProperty(O("elementProperties")))return;const t=zt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(O("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(O("properties"))){const e=this.properties,r=[...Lt(e),...Nt(e)];for(const n of r)this.createProperty(n,e[n])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[r,n]of e)this.elementProperties.set(r,n)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const n=this._$Eu(e,r);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const n of r)e.unshift(nt(n))}else t!==void 0&&e.push(nt(t));return e}static _$Eu(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Mt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostConnected)==null?void 0:r.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){var s;const r=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,r);if(n!==void 0&&r.reflect===!0){const o=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:Y).toAttribute(e,r.type);this._$Em=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,e){var s;const r=this.constructor,n=r._$Eh.get(t);if(n!==void 0&&this._$Em!==n){const o=r.getPropertyOptions(n),c=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)==null?void 0:s.fromAttribute)!==void 0?o.converter:Y;this._$Em=n,this[n]=c.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,r){if(t!==void 0){if(r??(r=this.constructor.getPropertyOptions(t)),!(r.hasChanged??$t)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[s,o]of n)o.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(r=this._$EO)==null||r.forEach(n=>{var s;return(s=n.hostUpdate)==null?void 0:s.call(n)}),this.update(e)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var n;return(n=r.hostUpdated)==null?void 0:n.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[O("elementProperties")]=new Map,S[O("finalized")]=new Map,q==null||q({ReactiveElement:S}),(m.reactiveElementVersions??(m.reactiveElementVersions=[])).push("2.0.4");var G=function(i,t){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])},G(i,t)};function j(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");G(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function pe(i,t,e,r){function n(s){return s instanceof e?s:new e(function(o){o(s)})}return new(e||(e=Promise))(function(s,o){function c(f){try{l(r.next(f))}catch(u){o(u)}}function a(f){try{l(r.throw(f))}catch(u){o(u)}}function l(f){f.done?s(f.value):n(f.value).then(c,a)}l((r=r.apply(i,t||[])).next())})}function de(i,t){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,n,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=c(0),o.throw=c(1),o.return=c(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(l){return function(f){return a([l,f])}}function a(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(e=0)),e;)try{if(r=1,n&&(s=l[0]&2?n.return:l[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,l[1])).done)return s;switch(n=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,n=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(s=e.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){e.label=l[1];break}if(l[0]===6&&e.label<s[1]){e.label=s[1],s=l;break}if(s&&e.label<s[2]){e.label=s[2],e.ops.push(l);break}s[2]&&e.ops.pop(),e.trys.pop();continue}l=t.call(i,e)}catch(f){l=[6,f],n=0}finally{r=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function T(i){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&i[t],r=0;if(e)return e.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function K(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var r=e.call(i),n,s=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(c){o={error:c}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(o)throw o.error}}return s}function Z(i,t,e){if(e||arguments.length===2)for(var r=0,n=t.length,s;r<n;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return i.concat(s||Array.prototype.slice.call(t))}function J(i){return this instanceof J?(this.v=i,this):new J(i)}function ye(i,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e.apply(i,t||[]),n,s=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",o),n[Symbol.asyncIterator]=function(){return this},n;function o(h){return function(v){return Promise.resolve(v).then(h,u)}}function c(h,v){r[h]&&(n[h]=function(y){return new Promise(function(Ct,Tt){s.push([h,y,Ct,Tt])>1||a(h,y)})},v&&(n[h]=v(n[h])))}function a(h,v){try{l(r[h](v))}catch(y){d(s[0][3],y)}}function l(h){h.value instanceof J?Promise.resolve(h.value.v).then(f,u):d(s[0][2],h)}function f(h){a("next",h)}function u(h){a("throw",h)}function d(h,v){h(v),s.shift(),s.length&&a(s[0][0],s[0][1])}}function ve(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=i[Symbol.asyncIterator],e;return t?t.call(i):(i=typeof T=="function"?T(i):i[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(s){e[s]=i[s]&&function(o){return new Promise(function(c,a){o=i[s](o),n(c,a,o.done,o.value)})}}function n(s,o,c,a){Promise.resolve(a).then(function(l){s({value:l,done:c})},o)}}function b(i){return typeof i=="function"}function gt(i){var t=function(r){Error.call(r),r.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var V=gt(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
10
|
-
`+e.map(function(r,n){return n+1+") "+r.toString()}).join(`
|
|
11
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function Q(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var z=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,r,n,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var c=T(o),a=c.next();!a.done;a=c.next()){var l=a.value;l.remove(this)}}catch(y){t={error:y}}finally{try{a&&!a.done&&(e=c.return)&&e.call(c)}finally{if(t)throw t.error}}else o.remove(this);var f=this.initialTeardown;if(b(f))try{f()}catch(y){s=y instanceof V?y.errors:[y]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var d=T(u),h=d.next();!h.done;h=d.next()){var v=h.value;try{at(v)}catch(y){s=s??[],y instanceof V?s=Z(Z([],K(s)),K(y.errors)):s.push(y)}}}catch(y){r={error:y}}finally{try{h&&!h.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}}if(s)throw new V(s)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)at(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Q(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&Q(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),At=z.EMPTY;function St(i){return i instanceof z||i&&"closed"in i&&b(i.remove)&&b(i.add)&&b(i.unsubscribe)}function at(i){b(i)?i():i.unsubscribe()}var qt={Promise:void 0},Vt={setTimeout:function(i,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,Z([i,t],K(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function Dt(i){Vt.setTimeout(function(){throw i})}function lt(){}function L(i){i()}var Et=function(i){j(t,i);function t(e){var r=i.call(this)||this;return r.isStopped=!1,e?(r.destination=e,St(e)&&e.add(r)):r.destination=Yt,r}return t.create=function(e,r,n){return new X(e,r,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(z),Wt=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(r){k(r)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){k(r)}else k(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){k(e)}},i}(),X=function(i){j(t,i);function t(e,r,n){var s=i.call(this)||this,o;return b(e)||!e?o={next:e??void 0,error:r??void 0,complete:n??void 0}:o=e,s.destination=new Wt(o),s}return t}(Et);function k(i){Dt(i)}function Ft(i){throw i}var Yt={closed:!0,next:lt,error:Ft,complete:lt},Gt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Kt(i){return i}function Zt(i){return i.length===0?Kt:i.length===1?i[0]:function(e){return i.reduce(function(r,n){return n(r)},e)}}var ct=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,r){var n=this,s=Qt(t)?t:new X(t,e,r);return L(function(){var o=n,c=o.operator,a=o.source;s.add(c?c.call(s,a):a?n._subscribe(s):n._trySubscribe(s))}),s},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var r=this;return e=ht(e),new e(function(n,s){var o=new X({next:function(c){try{t(c)}catch(a){s(a),o.unsubscribe()}},error:s,complete:n});r.subscribe(o)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[Gt]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Zt(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=ht(t),new t(function(r,n){var s;e.subscribe(function(o){return s=o},function(o){return n(o)},function(){return r(s)})})},i.create=function(t){return new i(t)},i}();function ht(i){var t;return(t=i??qt.Promise)!==null&&t!==void 0?t:Promise}function Jt(i){return i&&b(i.next)&&b(i.error)&&b(i.complete)}function Qt(i){return i&&i instanceof Et||Jt(i)&&St(i)}var Xt=gt(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),wt=function(i){j(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var r=new ut(this,this);return r.operator=e,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Xt},t.prototype.next=function(e){var r=this;L(function(){var n,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=T(r.currentObservers),c=o.next();!c.done;c=o.next()){var a=c.value;a.next(e)}}catch(l){n={error:l}}finally{try{c&&!c.done&&(s=o.return)&&s.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var r=this;L(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var n=r.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;L(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var r=this,n=this,s=n.hasError,o=n.isStopped,c=n.observers;return s||o?At:(this.currentObservers=null,c.push(e),new z(function(){r.currentObservers=null,Q(c,e)}))},t.prototype._checkFinalizedStatuses=function(e){var r=this,n=r.hasError,s=r.thrownError,o=r.isStopped;n?e.error(s):o&&e.complete()},t.prototype.asObservable=function(){var e=new ct;return e.source=this,e},t.create=function(e,r){return new ut(e,r)},t}(ct),ut=function(i){j(t,i);function t(e,r){var n=i.call(this)||this;return n.destination=e,n.source=r,n}return t.prototype.next=function(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)},t.prototype.error=function(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)},t.prototype.complete=function(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)},t.prototype._subscribe=function(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:At},t}(wt),te=function(i){j(t,i);function t(e){var r=i.call(this)||this;return r._value=e,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var r=i.prototype._subscribe.call(this,e);return!r.closed&&e.next(this._value),r},t.prototype.getValue=function(){var e=this,r=e.hasError,n=e.thrownError,s=e._value;if(r)throw n;return this._throwIfClosed(),s},t.prototype.next=function(e){i.prototype.next.call(this,this._value=e)},t}(wt);/**
|
|
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=(i,t)=>i,Y={toAttribute(i,t){switch(t){case Boolean:i=i?Bt:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},$t=(i,t)=>!kt(i,t),ot={attribute:!0,type:String,converter:Y,reflect:!1,hasChanged:$t};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),m.litPropertyMetadata??(m.litPropertyMetadata=new WeakMap);class 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(),n=this.getPropertyDescriptor(t,r,e);n!==void 0&&jt(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){const{get:n,set:s}=Ht(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return n==null?void 0:n.call(this)},set(o){const c=n==null?void 0:n.call(this);s.call(this,o),this.requestUpdate(t,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ot}static _$Ei(){if(this.hasOwnProperty(O("elementProperties")))return;const t=zt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(O("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(O("properties"))){const e=this.properties,r=[...Lt(e),...Nt(e)];for(const n of r)this.createProperty(n,e[n])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[r,n]of e)this.elementProperties.set(r,n)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const n=this._$Eu(e,r);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const n of r)e.unshift(nt(n))}else t!==void 0&&e.push(nt(t));return e}static _$Eu(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Mt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostConnected)==null?void 0:r.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){var s;const r=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,r);if(n!==void 0&&r.reflect===!0){const o=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:Y).toAttribute(e,r.type);this._$Em=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,e){var s;const r=this.constructor,n=r._$Eh.get(t);if(n!==void 0&&this._$Em!==n){const o=r.getPropertyOptions(n),c=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)==null?void 0:s.fromAttribute)!==void 0?o.converter:Y;this._$Em=n,this[n]=c.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,r){if(t!==void 0){if(r??(r=this.constructor.getPropertyOptions(t)),!(r.hasChanged??$t)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[s,o]of n)o.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(r=this._$EO)==null||r.forEach(n=>{var s;return(s=n.hostUpdate)==null?void 0:s.call(n)}),this.update(e)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var n;return(n=r.hostUpdated)==null?void 0:n.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}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");/**
|
|
12
10
|
* @license
|
|
13
11
|
* Copyright 2017 Google LLC
|
|
14
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15
|
-
*/const U=globalThis,N=U.trustedTypes,
|
|
16
|
-
\f\r]`,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
17
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
13
|
+
*/const U=globalThis,N=U.trustedTypes,at=N?N.createPolicy("lit-html",{createHTML:i=>i}):void 0,gt="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,St="?"+_,qt=`<${St}>`,S=document,T=()=>S.createComment(""),R=i=>i===null||typeof i!="object"&&typeof i!="function",et=Array.isArray,Vt=i=>et(i)||typeof(i==null?void 0:i[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=i=>(t,...e)=>({_$litType$:i,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(i,t){if(!et(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return at!==void 0?at.createHTML(t):t}const Wt=(i,t)=>{const e=i.length-1,r=[];let n,s=t===2?"<svg>":t===3?"<math>":"",o=P;for(let c=0;c<e;c++){const a=i[c];let l,f,u=-1,d=0;for(;d<a.length&&(o.lastIndex=d,f=o.exec(a),f!==null);)d=o.lastIndex,o===P?f[1]==="!--"?o=lt:f[1]!==void 0?o=ct:f[2]!==void 0?(At.test(f[2])&&(n=RegExp("</"+f[2],"g")),o=$):f[3]!==void 0&&(o=$):o===$?f[0]===">"?(o=n??P,u=-1):f[1]===void 0?u=-2:(u=o.lastIndex-f[2].length,l=f[1],o=f[3]===void 0?$:f[3]==='"'?ut:ht):o===ut||o===ht?o=$:o===lt||o===ct?o=P:(o=$,n=void 0);const h=o===$&&i[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(i,s+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};class I{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let s=0,o=0;const c=t.length-1,a=this.parts,[l,f]=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(;(n=g.nextNode())!==null&&a.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(const u of n.getAttributeNames())if(u.endsWith(gt)){const d=f[o++],h=n.getAttribute(u).split(_),v=/([.?@])?(.*)/.exec(d);a.push({type:1,index:s,name:v[2],strings:h,ctor:v[1]==="."?Yt:v[1]==="?"?Gt:v[1]==="@"?Kt:z}),n.removeAttribute(u)}else u.startsWith(_)&&(a.push({type:6,index:s}),n.removeAttribute(u));if(At.test(n.tagName)){const u=n.textContent.split(_),d=u.length-1;if(d>0){n.textContent=N?N.emptyScript:"";for(let h=0;h<d;h++)n.append(u[h],T()),g.nextNode(),a.push({type:2,index:++s});n.append(u[d],T())}}}else if(n.nodeType===8)if(n.data===St)a.push({type:2,index:s});else{let u=-1;for(;(u=n.data.indexOf(_,u+1))!==-1;)a.push({type:7,index:s}),u+=_.length-1}s++}}static createElement(t,e){const r=S.createElement("template");return r.innerHTML=t,r}}function w(i,t,e=i,r){var o,c;if(t===E)return t;let n=r!==void 0?(o=e.o)==null?void 0:o[r]:e.l;const s=R(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==s&&((c=n==null?void 0:n._$AO)==null||c.call(n,!1),s===void 0?n=void 0:(n=new s(i),n._$AT(i,e,r)),r!==void 0?(e.o??(e.o=[]))[r]=n:e.l=n),n!==void 0&&(t=w(i,n._$AS(i,t.values),n,r)),t}class 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,n=((t==null?void 0:t.creationScope)??S).importNode(e,!0);g.currentNode=n;let s=g.nextNode(),o=0,c=0,a=r[0];for(;a!==void 0;){if(o===a.index){let l;a.type===2?l=new x(s,s.nextSibling,this,t):a.type===1?l=new a.ctor(s,a.name,a.strings,this,t):a.type===6&&(l=new 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,n}p(t){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class x{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this.v}constructor(t,e,r,n){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=n,this.v=(n==null?void 0:n.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=w(this,t,e),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,n=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)===n)this._$AH.p(e);else{const o=new Ft(n,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,n=0;for(const s of t)n===e.length?e.push(r=new x(this.O(T()),this.O(T()),this,this.options)):r=e[n],r._$AI(s),n++;n<e.length&&(this._$AR(r&&r._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}}class z{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,n,s){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=p}_$AI(t,e=this,r,n){const s=this.strings;let o=!1;if(s===void 0)t=w(this,t,e,0),o=!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&&!n&&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,n,s){super(t,e,r,n,s),this.type=5}_$AI(t,e=this){if((t=w(this,t,e,0)??p)===E)return;const r=this._$AH,n=t===p&&r!==p||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==p&&(r===p||n);n&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class 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=U.litHtmlPolyfillSupport;D==null||D(I,x),(U.litHtmlVersions??(U.litHtmlVersions=[])).push("3.2.0");const Jt=(i,t,e)=>{const r=(e==null?void 0:e.renderBefore)??t;let n=r._$litPart$;if(n===void 0){const s=(e==null?void 0:e.renderBefore)??null;r._$litPart$=n=new x(t.insertBefore(T(),s),s,void 0,e??{})}return n._$AI(i),n};/**
|
|
18
16
|
* @license
|
|
19
17
|
* Copyright 2017 Google LLC
|
|
20
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/class C extends
|
|
19
|
+
*/class C 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;C._$litElement$=!0,C.finalized=!0,(_t=globalThis.litElementHydrateSupport)==null||_t.call(globalThis,{LitElement:C});const W=globalThis.litElementPolyfillSupport;W==null||W({LitElement:C});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.0");var G=function(i,t){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])},G(i,t)};function k(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");G(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ye(i,t,e,r){function n(s){return s instanceof e?s:new e(function(o){o(s)})}return new(e||(e=Promise))(function(s,o){function c(f){try{l(r.next(f))}catch(u){o(u)}}function a(f){try{l(r.throw(f))}catch(u){o(u)}}function l(f){f.done?s(f.value):n(f.value).then(c,a)}l((r=r.apply(i,t||[])).next())})}function ve(i,t){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,n,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=c(0),o.throw=c(1),o.return=c(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(l){return function(f){return a([l,f])}}function a(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(e=0)),e;)try{if(r=1,n&&(s=l[0]&2?n.return:l[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,l[1])).done)return s;switch(n=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,n=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(s=e.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){e.label=l[1];break}if(l[0]===6&&e.label<s[1]){e.label=s[1],s=l;break}if(s&&e.label<s[2]){e.label=s[2],e.ops.push(l);break}s[2]&&e.ops.pop(),e.trys.pop();continue}l=t.call(i,e)}catch(f){l=[6,f],n=0}finally{r=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function M(i){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&i[t],r=0;if(e)return e.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function K(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var r=e.call(i),n,s=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(c){o={error:c}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(o)throw o.error}}return s}function Z(i,t,e){if(e||arguments.length===2)for(var r=0,n=t.length,s;r<n;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return i.concat(s||Array.prototype.slice.call(t))}function J(i){return this instanceof J?(this.v=i,this):new J(i)}function be(i,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e.apply(i,t||[]),n,s=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",o),n[Symbol.asyncIterator]=function(){return this},n;function o(h){return function(v){return Promise.resolve(v).then(h,u)}}function c(h,v){r[h]&&(n[h]=function(y){return new Promise(function(Ct,Tt){s.push([h,y,Ct,Tt])>1||a(h,y)})},v&&(n[h]=v(n[h])))}function a(h,v){try{l(r[h](v))}catch(y){d(s[0][3],y)}}function l(h){h.value instanceof J?Promise.resolve(h.value.v).then(f,u):d(s[0][2],h)}function f(h){a("next",h)}function u(h){a("throw",h)}function d(h,v){h(v),s.shift(),s.length&&a(s[0][0],s[0][1])}}function _e(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=i[Symbol.asyncIterator],e;return t?t.call(i):(i=typeof M=="function"?M(i):i[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(s){e[s]=i[s]&&function(o){return new Promise(function(c,a){o=i[s](o),n(c,a,o.done,o.value)})}}function n(s,o,c,a){Promise.resolve(a).then(function(l){s({value:l,done:c})},o)}}function b(i){return typeof i=="function"}function wt(i){var t=function(r){Error.call(r),r.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var F=wt(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
20
|
+
`+e.map(function(r,n){return n+1+") "+r.toString()}).join(`
|
|
21
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function Q(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var B=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,r,n,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var c=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&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}}if(s)throw new F(s)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)pt(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Q(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&Q(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),xt=B.EMPTY;function Pt(i){return i instanceof B||i&&"closed"in i&&b(i.remove)&&b(i.add)&&b(i.unsubscribe)}function pt(i){b(i)?i():i.unsubscribe()}var Qt={Promise:void 0},Xt={setTimeout:function(i,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,Z([i,t],K(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function te(i){Xt.setTimeout(function(){throw i})}function dt(){}function L(i){i()}var Ot=function(i){k(t,i);function t(e){var r=i.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Pt(e)&&e.add(r)):r.destination=ie,r}return t.create=function(e,r,n){return new X(e,r,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(B),ee=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(r){j(r)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){j(r)}else j(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){j(e)}},i}(),X=function(i){k(t,i);function t(e,r,n){var s=i.call(this)||this,o;return b(e)||!e?o={next:e??void 0,error:r??void 0,complete:n??void 0}:o=e,s.destination=new ee(o),s}return t}(Ot);function j(i){te(i)}function re(i){throw i}var ie={closed:!0,next:dt,error:re,complete:dt},ne=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function se(i){return i}function oe(i){return i.length===0?se:i.length===1?i[0]:function(e){return i.reduce(function(r,n){return n(r)},e)}}var yt=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,r){var n=this,s=le(t)?t:new X(t,e,r);return L(function(){var o=n,c=o.operator,a=o.source;s.add(c?c.call(s,a):a?n._subscribe(s):n._trySubscribe(s))}),s},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var r=this;return e=vt(e),new e(function(n,s){var o=new X({next:function(c){try{t(c)}catch(a){s(a),o.unsubscribe()}},error:s,complete:n});r.subscribe(o)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[ne]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return oe(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=vt(t),new t(function(r,n){var s;e.subscribe(function(o){return s=o},function(o){return n(o)},function(){return r(s)})})},i.create=function(t){return new i(t)},i}();function vt(i){var t;return(t=i??Qt.Promise)!==null&&t!==void 0?t:Promise}function ae(i){return i&&b(i.next)&&b(i.error)&&b(i.complete)}function le(i){return i&&i instanceof Ot||ae(i)&&Pt(i)}var ce=wt(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ut=function(i){k(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var r=new 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 n,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){n={error:l}}finally{try{c&&!c.done&&(s=o.return)&&s.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var r=this;L(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var n=r.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;L(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var r=this,n=this,s=n.hasError,o=n.isStopped,c=n.observers;return s||o?xt:(this.currentObservers=null,c.push(e),new B(function(){r.currentObservers=null,Q(c,e)}))},t.prototype._checkFinalizedStatuses=function(e){var r=this,n=r.hasError,s=r.thrownError,o=r.isStopped;n?e.error(s):o&&e.complete()},t.prototype.asObservable=function(){var e=new yt;return e.source=this,e},t.create=function(e,r){return new bt(e,r)},t}(yt),bt=function(i){k(t,i);function t(e,r){var n=i.call(this)||this;return n.destination=e,n.source=r,n}return t.prototype.next=function(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)},t.prototype.error=function(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)},t.prototype.complete=function(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)},t.prototype._subscribe=function(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:xt},t}(Ut),he=function(i){k(t,i);function t(e){var r=i.call(this)||this;return r._value=e,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var r=i.prototype._subscribe.call(this,e);return!r.closed&&e.next(this._value),r},t.prototype.getValue=function(){var e=this,r=e.hasError,n=e.thrownError,s=e._value;if(r)throw n;return this._throwIfClosed(),s},t.prototype.next=function(e){i.prototype.next.call(this,this._value=e)},t}(Ut);class me extends C{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.addStyles()}disconnectedCallback(){super.disconnectedCallback(),this.removeStyles()}addStyles(){!this.styleURLs||this.styleURLs.length===0||this.styleURLs.forEach((t,e)=>{const r=`${this.tagName.toLowerCase()}-style-${e}`;if(!document.head.querySelector(`#${r}`)){const s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("href",t.toString()),s.setAttribute("id",r),document.head.appendChild(s)}})}removeStyles(){!this.styleURLs||this.styleURLs.length===0||setTimeout(()=>{this.styleURLs.forEach((t,e)=>{const r=`${this.tagName.toLowerCase()}-style-${e}`,n=document.head.querySelector(`#${r}`);n&&document.getElementsByTagName(this.tagName).length===0&&document.head.removeChild(n)})},100)}initSelectors(...t){t.length>0?t.forEach(e=>{this.selectors[e]&&(this.elements[e]=Array.isArray(this.selectors[e])?this.querySelectorAll(this.selectors[e][0]):this.querySelector(this.selectors[e]))}):Object.entries(this.selectors).forEach(([e,r])=>{this.elements[e]=Array.isArray(r)?this.querySelectorAll(r[0]):this.querySelector(r)})}addClickListener(t,e){const r=this.elements[t];r&&r.addEventListener("click",()=>{r.classList.contains("disabled")||r.hasAttribute("disabled")||e()})}checkMealzInternalStatus(t=0){var e,r,n,s;if((r=(e=rt)==null?void 0:e.supplier)!=null&&r.getToken()&&((s=(n=rt)==null?void 0:n.user)!=null&&s.getLanguage())){this.isMealzInternalReady$.next(!0);return}else{if(t>50){console.warn("[MealzInternal] Unable to find the supplier token or user language. Please verify the configuration.");return}setTimeout(()=>this.checkMealzInternalStatus(t+1),100)}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,Ut as n,ne as o,X as p,dt as q,te as r,de as s,se as t,Y as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as o,f as s}from"./from-
|
|
1
|
+
import{p as o,f as s}from"./from-BTlWkhKh.js";function f(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];var e=o(a);return s(a,e)}export{f as o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as s}from"./no-shadow-element-
|
|
1
|
+
import{k as s}from"./no-shadow-element-Dz9jgDtr.js";import{m as i}from"./mealz-sdk-E_fNZM-c.js";const e=class e{static getInstance(){return e.instances.has(this)||e.instances.set(this,new this),e.instances.get(this)}};e.instances=new Map;let c=e;const u={en:"USD","en-US":"USD","en-GB":"GBP",fr:"EUR","fr-FR":"EUR","fr-CA":"CAD"};class h extends c{initFormatter(){const t=i.user.getLanguage()||"fr",r=u[t]||"EUR";this.formatter=new Intl.NumberFormat(t,{style:"currency",currency:r})}currencySymbol(){const t=i.user.getLanguage()||"fr",r=u[t]||"EUR";return new Intl.NumberFormat(t,{style:"currency",currency:r}).format(0).replace(/[\d.,\s]/g,"")}formatPrice(t){return this.formatter||this.initFormatter(),this.formatter.format(t)}priceTemplate(t,r="price"){let n="",a=s``,o=0;return this.formatter.formatToParts(t).forEach(({type:f,value:m},l)=>{f==="currency"?(o=l,a=s`<span class="mealz-${r}__currency">${m}</span>`):n+=m}),o>0?s`<span class="mealz-${r}__amount">${n}</span>${a}`:s`${a}<span class="mealz-${r}__amount">${n}</span>`}}export{h as P,c as S};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../price/price.min.js";import"../counter/counter.min.js";import"./promotion-badge-
|
|
1
|
+
import"../price/price.min.js";import"../counter/counter.min.js";import"./promotion-badge-CzwsPJJq.js";import{N as b,k as a,n as E,D as z}from"./no-shadow-element-Dz9jgDtr.js";import{t as v}from"./custom-element-BhZVzxrc.js";import{n as l}from"./property-Bx8Yvr4_.js";import{P as k,S as P}from"./price-CHipCs2z.js";import{c as x}from"./capitalize-DUAqYmp4.js";import{m as c}from"./mealz-sdk-E_fNZM-c.js";import{d as I}from"./delay-wUm-cx7a.js";var O=Object.defineProperty,C=Object.getOwnPropertyDescriptor,g=(e,s,r,i)=>{for(var t=i>1?void 0:i?C(s,r):s,n=e.length-1,d;n>=0;n--)(d=e[n])&&(t=(i?d(s,r,t):d(t))||t);return i&&t&&O(s,r,t),t};let u=class extends b{constructor(){super(),this.isSponsored=!1,this.priceService=k.getInstance(),this.styleURL=new URL("./product-badges/product-badges.css",this.getBaseURL())}formatNumber(e){const s=c.user.getLanguage()||"fr";return new Intl.NumberFormat(s,{minimumFractionDigits:1,maximumFractionDigits:2}).format(e)}render(){return a`
|
|
2
2
|
<div class="mealz-product-badges">
|
|
3
3
|
<!-- SPONSORED BADGE -->
|
|
4
4
|
${this.isSponsored?a`
|
|
@@ -17,7 +17,7 @@ import"../price/price.min.js";import"../counter/counter.min.js";import"./promoti
|
|
|
17
17
|
/${this.price.unitOfMeasurement}
|
|
18
18
|
</span>
|
|
19
19
|
</div>
|
|
20
|
-
`}};
|
|
20
|
+
`}};g([l({type:Boolean})],u.prototype,"isSponsored",2);g([l({type:Object})],u.prototype,"item",2);g([l({type:Object})],u.prototype,"price",2);u=g([v("mealz-product-badges")],u);customElements.get("mealz-product-badges")||customElements.define("mealz-product-badges",u);var U=Object.defineProperty,R=Object.getOwnPropertyDescriptor,$=(e,s,r,i)=>{for(var t=i>1?void 0:i?R(s,r):s,n=e.length-1,d;n>=0;n--)(d=e[n])&&(t=(i?d(s,r,t):d(t))||t);return i&&t&&U(s,r,t),t};let m=class extends b{constructor(){super(),this.styleURL=new URL("./unavailable-badge/unavailable-badge.css",this.getBaseURL())}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}clicked(){const e=new CustomEvent("clicked",{bubbles:!0,composed:!0});this.dispatchEvent(e)}render(){return a`
|
|
21
21
|
<button
|
|
22
22
|
class="mealz-ds-badge mealz-unavailable-badge ${this.numberUnavailable?"pointer":""}"
|
|
23
23
|
?disabled="${!this.numberUnavailable}"
|
|
@@ -28,7 +28,7 @@ import"../price/price.min.js";import"../counter/counter.min.js";import"./promoti
|
|
|
28
28
|
${this.numberUnavailable&&this.numberUnavailable<=1?a`<span>produit indisponible</span>`:""}
|
|
29
29
|
${this.numberUnavailable&&this.numberUnavailable>1?a`<span>produits indisponible</span>`:""}
|
|
30
30
|
</button>
|
|
31
|
-
`}};$([l({type:Number})],
|
|
31
|
+
`}};$([l({type:Number})],m.prototype,"numberUnavailable",2);m=$([v("mealz-unavailable-badge")],m);customElements.get("mealz-unavailable-badge")||customElements.define("mealz-unavailable-badge",m);var S=Object.defineProperty,w=Object.getOwnPropertyDescriptor,f=(e,s,r,i)=>{for(var t=i>1?void 0:i?w(s,r):s,n=e.length-1,d;n>=0;n--)(d=e[n])&&(t=(i?d(s,r,t):d(t))||t);return i&&t&&S(s,r,t),t};let h=class extends b{constructor(){super(),this.styleURL=new URL("./out-of-stock-overlay/out-of-stock-overlay.css",this.getBaseURL())}replacedClicked(){const e=new CustomEvent("replacedClicked",{bubbles:!0,composed:!0});this.dispatchEvent(e)}render(){return a`
|
|
32
32
|
<div class="mealz-out-of-stock-overlay">
|
|
33
33
|
<div class="mealz-out-of-stock-overlay__container"></div>
|
|
34
34
|
<div class="mealz-out-of-stock-overlay__footer">
|
|
@@ -37,13 +37,13 @@ import"../price/price.min.js";import"../counter/counter.min.js";import"./promoti
|
|
|
37
37
|
class="mealz-ds-button mealz-ds-text weight-l small primary reverse">Remplacer</button>
|
|
38
38
|
</div>
|
|
39
39
|
</div>
|
|
40
|
-
`}};f([l()],
|
|
41
|
-
${(
|
|
40
|
+
`}};f([l()],h.prototype,"priceData",2);h=f([v("mealz-out-of-stock-overlay")],h);customElements.get("mealz-out-of-stock-overlay")||customElements.define("mealz-out-of-stock-overlay",h);class B extends P{constructor(){super(...arguments),this.guests$=new E}updateGuests(s){this.guests$.next(s)}}var A=Object.defineProperty,D=Object.getOwnPropertyDescriptor,p=(e,s,r,i)=>{for(var t=i>1?void 0:i?D(s,r):s,n=e.length-1,d;n>=0;n--)(d=e[n])&&(t=(i?d(s,r,t):d(t))||t);return i&&t&&A(s,r,t),t};const _=["ignored","deleted","often_deleted","unavailable"],y=["ignored","deleted","often_deleted"],T=["initial","active","out_of_stock"],L=["initial","out_of_stock"];let o=class extends b{constructor(){super(),this.inBasket=!1,this.isSponsored=!1,this.subscriptions=[],this.loadingAddToBasket=!1,this.ingredientIsRemoved=!1,this.guestObserverService=B.getInstance(),this.modifiedIngQty=0,this.styleURL=new URL("./product-card/product-card.css",this.getBaseURL())}get status(){var e,s;return(s=(e=this.product)==null?void 0:e.basketEntry)==null?void 0:s.status}set status(e){this.product.basketEntry.status=e}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(){return{entry_name:this.product.basketEntry.attributes.name,item_id:this.product.basketEntry.relationships["selected-item"].data.id,ext_item_id:this.product.basketEntry.relationships["selected-item"].data.attributes["ext-id"],item_ean:this.product.basketEntry.relationships["selected-item"].data.attributes.ean,product_quantity:this.product.basketEntry.attributes.quantity.toString()}}updated(){var e,s;this.product&&(this.status==="deleted"&&(this.ingredientIsRemoved=!1),this.isSponsored=((s=(e=this.product.basketEntry.selectedItem)==null?void 0:e.attributes)==null?void 0:s.sponsored)===!0)}connectedCallback(){super.connectedCallback(),this.listenGuestsChange(),this.productIsBeingAdded(),this.isRecipeInBasket(),this.calculateQty(),this.analyticsPath=`/recipes/${this.recipeId}/shopping`}disconnectedCallback(){super.disconnectedCallback(),this.subscriptions.forEach(e=>e.unsubscribe())}listenGuestsChange(){this.subscriptions.push(this.guestObserverService.guests$.subscribe(e=>{this.currentGuests=e,this.calculateQty()}))}calculateQty(){const e=this.product.ingredient.quantity/this.initialGuests;this.modifiedIngQty=Number((e*this.currentGuests).toFixed(2)),this.requestUpdate()}replaceProduct(e){this.sendEntryReplaceEvent(),c.recipes.replaceBasketEntry(this.product.basketEntry,e),this.scrollBackWhenReplaced()}scrollBackWhenReplaced(){this.subscriptions.push(c.productAddition.productAdded$.pipe(I(200)).subscribe(()=>{this.scrollIntoView({behavior:"smooth",block:"center"}),this.requestUpdate()}))}isInXRecipes(){return this.product.basketEntry.status!=="active"?1:this.product.basketEntry.recipesIds.length}isRecipeInBasket(){this.subscriptions.push(c.recipes.recipePrice$.subscribe(e=>{this.inBasket=e.inBasket>0}))}ignoreProduct(){this.sendEntryIgnoreEvent(),c.recipes.ignoreProduct(this.product),this.requestUpdate()}updateQuantity(e){this.product.basketEntry.quantity!==e.detail.value&&(e.detail.value<1?(this.ingredientIsRemoved=!0,c.recipes.ingredientRemoved(this.product.ingredient,{originPath:this.analyticsPath,props:{}}),this.sendEntryDeleteEvent()):c.recipes.updateProductQuantity(this.product.basketEntry,e.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(e=>{this.loadingAddToBasket=e,this.requestUpdate()}))}render(){var e;return a`
|
|
41
|
+
${(e=this.product)!=null&&e.basketEntry?this.renderProductCard():z}
|
|
42
42
|
`}renderProductCard(){return a`
|
|
43
43
|
<div
|
|
44
44
|
class="mealz-product-card
|
|
45
45
|
${this.status==="active"?"added":""}
|
|
46
|
-
${
|
|
46
|
+
${_.includes(this.status)?"disabled":""}
|
|
47
47
|
${this.status==="out_of_stock"?"out_of_stock":""} ${this.status==="unavailable"?"unavailable":""}"
|
|
48
48
|
>
|
|
49
49
|
${this.renderOutOfStockOverlay()}
|
|
@@ -51,7 +51,7 @@ import"../price/price.min.js";import"../counter/counter.min.js";import"./promoti
|
|
|
51
51
|
<div
|
|
52
52
|
class="
|
|
53
53
|
mealz-product-card__content
|
|
54
|
-
${
|
|
54
|
+
${y.includes(this.status)?"disabled":""}
|
|
55
55
|
${this.status==="unavailable"?"unavailable":""}">
|
|
56
56
|
${T.includes(this.status)?this.renderEnabledProductCard():this.renderDisabledOrUnavailableProduct()}
|
|
57
57
|
</div>
|
|
@@ -64,7 +64,7 @@ import"../price/price.min.js";import"../counter/counter.min.js";import"./promoti
|
|
|
64
64
|
<img class="mealz-product-card__picture" alt="product"
|
|
65
65
|
src="${this.productImage}"
|
|
66
66
|
>
|
|
67
|
-
<!-- @error="${
|
|
67
|
+
<!-- @error="${e=>e.target.src=this.contextService.defaultIngredientPicture}
|
|
68
68
|
" -->
|
|
69
69
|
</div>
|
|
70
70
|
<div class="mealz-product-card__info-column">
|
|
@@ -98,13 +98,13 @@ import"../price/price.min.js";import"../counter/counter.min.js";import"./promoti
|
|
|
98
98
|
<div
|
|
99
99
|
class="mealz-product-card__header
|
|
100
100
|
${this.status==="active"?"added":""}
|
|
101
|
-
${
|
|
101
|
+
${y.includes(this.status)?"disabled":""}
|
|
102
102
|
${this.status==="unavailable"?"unavailable":""}">
|
|
103
103
|
<span
|
|
104
104
|
class="
|
|
105
105
|
mealz-product-card__header-name
|
|
106
106
|
mealz-ds-text weight-xl
|
|
107
|
-
${
|
|
107
|
+
${_.includes(this.status)?"mealz-product-card__disabled-text":""}"
|
|
108
108
|
>
|
|
109
109
|
${x(this.product.basketEntry.name)}
|
|
110
110
|
</span>
|
|
@@ -112,7 +112,7 @@ import"../price/price.min.js";import"../counter/counter.min.js";import"./promoti
|
|
|
112
112
|
class="
|
|
113
113
|
mealz-product-card__header-quantity
|
|
114
114
|
mealz-ds-text size-s weight-l
|
|
115
|
-
${
|
|
115
|
+
${_.includes(this.status)?"mealz-product-card__disabled-text":""}"
|
|
116
116
|
>
|
|
117
117
|
<span>${this.modifiedIngQty?this.modifiedIngQty:this.product.ingredient.quantity}</span>
|
|
118
118
|
<span>${this.product.ingredient.attributes.unit}</span>
|
|
@@ -164,10 +164,10 @@ import"../price/price.min.js";import"../counter/counter.min.js";import"./promoti
|
|
|
164
164
|
.biColor="${!0}"
|
|
165
165
|
.debounce="${300}"
|
|
166
166
|
.minusLoading="${this.ingredientIsRemoved}"
|
|
167
|
-
@valueChange="${
|
|
167
|
+
@valueChange="${e=>this.updateQuantity(e)}"
|
|
168
168
|
></mealz-counter>
|
|
169
169
|
`}renderDisabledOrUnavailableProduct(){return a`
|
|
170
|
-
${
|
|
170
|
+
${y.includes(this.status)?a`
|
|
171
171
|
<span class="mealz-ds-text mealz-product-card__disabled-text">
|
|
172
172
|
Cet ingrédient ne sera pas ajouté à votre panier
|
|
173
173
|
</span>
|
|
@@ -186,4 +186,4 @@ import"../price/price.min.js";import"../counter/counter.min.js";import"./promoti
|
|
|
186
186
|
<span>Remplacer</span>
|
|
187
187
|
</button>
|
|
188
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)}};p([l({type:Object})],o.prototype,"product",2);p([l({type:String})],o.prototype,"recipeId",2);p([l({type:Number})],o.prototype,"initialGuests",2);p([l({type:Number})],o.prototype,"currentGuests",2);o=p([
|
|
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)}};p([l({type:Object})],o.prototype,"product",2);p([l({type:String})],o.prototype,"recipeId",2);p([l({type:Number})],o.prototype,"initialGuests",2);p([l({type:Number})],o.prototype,"currentGuests",2);o=p([v("mealz-product-card")],o);customElements.get("mealz-product-card")||customElements.define("mealz-product-card",o);export{B as G};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{N as c,k as
|
|
1
|
+
import{N as c,k as n}from"./no-shadow-element-Dz9jgDtr.js";import{t as l}from"./custom-element-BhZVzxrc.js";import{n as d}from"./property-Bx8Yvr4_.js";import{P as u}from"./price-CHipCs2z.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
|
-
${((e=this.priceData)==null?void 0:e.discountAmount)>0?
|
|
3
|
+
${((e=this.priceData)==null?void 0:e.discountAmount)>0?n`
|
|
4
4
|
<div class="mealz-ds-badge mealz-promotion-badge__promotion">
|
|
5
5
|
<span class="mealz-promotion-badge__promotion-value mealz-ds-text size-s weight-l">
|
|
6
6
|
${this.priceData.discountAmount}${this.getPriceAmountSuffix()}
|
|
@@ -9,4 +9,4 @@ import{N as c,k as m}from"./no-shadow-element-D4NOg0uW.js";import{t as d}from"./
|
|
|
9
9
|
</div>
|
|
10
10
|
`:""}
|
|
11
11
|
</div>
|
|
12
|
-
`}};p([
|
|
12
|
+
`}};p([d()],i.prototype,"priceData",2);i=p([l("mealz-promotion-badge")],i);customElements.get("mealz-promotion-badge")||customElements.define("mealz-promotion-badge",i);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as n}from"./filter-DQ4vwAGj.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-
|
|
1
|
+
import{o,c as s}from"./OperatorSubscriber-DF1TYu__.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 +1 @@
|
|
|
1
|
-
import{i as v}from"./innerFrom-
|
|
1
|
+
import{i as v}from"./innerFrom-FMZwm2mb.js";import{o as l,c as a}from"./OperatorSubscriber-DF1TYu__.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-
|
|
1
|
+
import{E as a}from"./empty-Bs9kqCuA.js";import{o as f,c as i}from"./OperatorSubscriber-DF1TYu__.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-
|
|
1
|
+
import{t as e,i as d}from"./no-shadow-element-Dz9jgDtr.js";import{o as f,c as s}from"./OperatorSubscriber-DF1TYu__.js";function _(n,r,u){var a=d(n)||r||u?{next:n,error:r,complete:u}:n;return a?f(function(v,l){var t;(t=a.subscribe)===null||t===void 0||t.call(a);var c=!0;v.subscribe(s(l,function(i){var o;(o=a.next)===null||o===void 0||o.call(a,i),l.next(i)},function(){var i;c=!1,(i=a.complete)===null||i===void 0||i.call(a),l.complete()},function(i){var o;c=!1,(o=a.error)===null||o===void 0||o.call(a,i),l.error(i)},function(){var i,o;c&&((i=a.unsubscribe)===null||i===void 0||i.call(a)),(o=a.finalize)===null||o===void 0||o.call(a)}))}):e}export{_ as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{O as p}from"./no-shadow-element-
|
|
1
|
+
import{O as p}from"./no-shadow-element-Dz9jgDtr.js";import{b as m}from"./async-D5WN8Wfc.js";import{i as r}from"./executeSchedule-C0acKsif.js";function v(n){return n instanceof Date&&!isNaN(n)}function x(n,o,i){n===void 0&&(n=0),i===void 0&&(i=m);var t=-1;return o!=null&&(r(o)?i=o:t=o),new p(function(f){var a=v(n)?+n-i.now():n;a<0&&(a=0);var s=0;return i.schedule(function(){f.closed||(f.next(s++),0<=t?this.schedule(void 0,t):f.complete())},a)})}export{x as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as c}from"./no-shadow-element-
|
|
1
|
+
import{n as c}from"./no-shadow-element-Dz9jgDtr.js";import{d as h}from"./debounceTime-D7R6Z3Am.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};
|