mealz-components 2.0.0-beta.3 → 2.0.0-beta.4
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/add-to-cart-cta/add-to-cart-cta.min.js +1 -1
- package/dist/assets/{OperatorSubscriber-C_ZC-4p2.js → OperatorSubscriber-EGuECN6g.js} +1 -1
- package/dist/assets/{async-Cf5pIG6K.js → async-D3oCs_PQ.js} +1 -1
- package/dist/assets/{combineLatest-ZcJd71-W.js → combineLatest-P4GAEtOW.js} +1 -1
- package/dist/assets/{debounceTime-Dqha8z_N.js → debounceTime-Bo5F3ux-.js} +1 -1
- package/dist/assets/delay-ILvLVH1b.js +1 -0
- package/dist/assets/{distinctUntilChanged-C5xhZT8-.js → distinctUntilChanged-BkBiB4M3.js} +1 -1
- package/dist/assets/empty-Cv-4tfKR.js +1 -0
- package/dist/assets/{executeSchedule-BoZ8McHf.js → executeSchedule-DfyZaGAH.js} +1 -1
- package/dist/assets/{filter-CCrCJ0Ez.js → filter-CEeE8t7I.js} +1 -1
- package/dist/assets/{from-BJlgdPzK.js → from-jBe2xW5a.js} +1 -1
- package/dist/assets/{http-_HLok9_q.js → http-aOzufNsj.js} +1 -1
- package/dist/assets/{innerFrom-cJ8wLVnp.js → innerFrom-CfKCbnvr.js} +1 -1
- package/dist/assets/{map-CtoF0MFx.js → map-C4rf5Jbc.js} +1 -1
- package/dist/assets/mapOneOrManyArgs-DNd_tswl.js +1 -0
- package/dist/assets/merge-C-u9uFzU.js +1 -0
- package/dist/assets/{mergeMap-DkeMJrVP.js → mergeMap-buGewtOo.js} +1 -1
- package/dist/assets/{no-shadow-element-Dckeu5Ol.js → no-shadow-element-l9trQfcI.js} +1 -1
- package/dist/assets/{of-CGDeMeoh.js → of-BTA69Qgj.js} +1 -1
- package/dist/assets/{price-3QEU2vDV.js → price-BoM226Kw.js} +1 -1
- package/dist/assets/{product-card-l5_dRD-J.js → product-card-DqcKyf1c.js} +5 -5
- package/dist/assets/promotion-badge-BwN2GpDz.js +12 -0
- package/dist/assets/{property-B_Up5EGr.js → property-leIVgCvV.js} +1 -1
- package/dist/assets/session-handler-BnuvphmJ.js +1 -0
- package/dist/assets/{skipWhile-BpCW6MT3.js → skipWhile-DuMEda_n.js} +1 -1
- package/dist/assets/{state-Dg5rn9XH.js → state-CccUMzBZ.js} +1 -1
- package/dist/assets/{store-locator-DdG34z7_.js → store-locator-m8sx3XDc.js} +1 -1
- package/dist/assets/{switchMap-_eqjHrlq.js → switchMap-D8q0hRYH.js} +1 -1
- package/dist/assets/{take-C-_8_Rq7.js → take-DO4w5a1Y.js} +1 -1
- package/dist/assets/{tap-C7Bbgrv8.js → tap-BCGrRktL.js} +1 -1
- package/dist/assets/{timer-FQ7WMtFD.js → timer-BOl4bYNY.js} +1 -1
- package/dist/assets/{unsafe-html-ZfqpUwaC.js → unsafe-html-CmALAWuN.js} +1 -1
- package/dist/assets/{viewport-listener-VXtYxJHH.js → viewport-listener-RTCBatPv.js} +1 -1
- package/dist/basket-transfer-modal/basket-transfer-modal.min.js +1 -1
- package/dist/catalog/basket-preview/basket-preview.min.js +9 -9
- 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 +2 -2
- package/dist/drawer/drawer.min.js +1 -1
- package/dist/drawer-view-swapper/drawer-view-swapper.min.js +4 -4
- 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/order-again/order-again.min.js +1 -1
- package/dist/planner/planner-abandon-modal/planner-abandon-modal.min.js +2 -2
- package/dist/planner/planner-budget-gauge/planner-budget-gauge.min.js +1 -1
- package/dist/planner/planner-catalog/planner-catalog.min.js +1 -1
- 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-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/to-basket-loader/to-basket-loader.min.js +5 -5
- package/dist/preferences/preferences.min.js +4 -4
- package/dist/price/price.min.js +3 -3
- 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 +11 -11
- package/dist/recipe-pricing/recipe-pricing.min.js +1 -1
- package/dist/replace-item/replace-item-card/replace-item-card.min.js +1 -1
- package/dist/replace-item/replace-item.min.js +1 -1
- 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 +2 -2
- package/dist/slider-tabs/slider-tabs.min.js +1 -1
- package/dist/store-indicator/store-indicator.min.js +2 -2
- package/dist/store-locator-drawer/store-locator-drawer.min.js +4 -4
- package/package.json +1 -1
- package/dist/assets/delay-DY9ohHpd.js +0 -1
- package/dist/assets/empty-DzB-G1O3.js +0 -1
- package/dist/assets/mapOneOrManyArgs-BgYvpJCA.js +0 -1
- package/dist/assets/merge-CfUUBPqp.js +0 -1
- package/dist/assets/promotion-badge-CErkYPs5.js +0 -12
- package/dist/assets/session-handler-BjExGUaE.js +0 -1
- package/dist/product-card-skeleton.css +0 -44
- package/dist/product-card.css +0 -208
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as o}from"../assets/custom-element-BhZVzxrc.js";import{N as d}from"../assets/no-shadow-element-
|
|
1
|
+
import{t as o}from"../assets/custom-element-BhZVzxrc.js";import{N as d}from"../assets/no-shadow-element-l9trQfcI.js";var h=Object.getOwnPropertyDescriptor,l=(t,s,a,e)=>{for(var i=e>1?void 0:e?h(s,a):s,n=t.length-1,c;n>=0;n--)(c=t[n])&&(i=c(i)||i);return i};let r=class extends d{constructor(){super(...arguments),this.inBasket=!1,this.showFixedButton=!1,this.recipeId="",this.inBasketContent=`
|
|
2
2
|
<img alt="see ingredients in icon" src="https://storage.googleapis.com/assets.miam.tech/generic/icons/InCart_primary.svg"/>
|
|
3
3
|
<span>Voir les ingrédients</span>
|
|
4
4
|
`,this.addToBasketContent=`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as b,_ as h,t as f}from"./no-shadow-element-
|
|
1
|
+
import{e as b,_ as h,t as f}from"./no-shadow-element-l9trQfcI.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(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}function _(r,i,t,e,c){return new y(r,i,t,e,c)}var y=function(r){h(i,r);function i(t,e,c,u,a,l){var n=r.call(this,t)||this;return n.onFinalize=a,n.shouldUnsubscribe=l,n._next=e?function(o){try{e(o)}catch(s){t.error(s)}}:r.prototype._next,n._error=u?function(o){try{u(o)}catch(s){t.error(s)}finally{this.unsubscribe()}}:r.prototype._error,n._complete=c?function(){try{c()}catch(o){t.error(o)}finally{this.unsubscribe()}}:r.prototype._complete,n}return i.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var e=this.closed;r.prototype.unsubscribe.call(this),!e&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},i}(f);export{_ as c,d as o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as u,S as l,b as a,c as d,d as f}from"./no-shadow-element-
|
|
1
|
+
import{_ as u,S as l,b as a,c as d,d as f}from"./no-shadow-element-l9trQfcI.js";var v={now:function(){return Date.now()}},p=function(n){u(i,n);function i(t,e){return n.call(this)||this}return i.prototype.schedule=function(t,e){return this},i}(l),h={setInterval:function(n,i){for(var t=[],e=2;e<arguments.length;e++)t[e-2]=arguments[e];return setInterval.apply(void 0,a([n,i],d(t)))},clearInterval:function(n){return clearInterval(n)},delegate:void 0},y=function(n){u(i,n);function i(t,e){var r=n.call(this,t,e)||this;return r.scheduler=t,r.work=e,r.pending=!1,r}return i.prototype.schedule=function(t,e){var r;if(e===void 0&&(e=0),this.closed)return this;this.state=t;var s=this.id,c=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(c,s,e)),this.pending=!0,this.delay=e,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(c,this.id,e),this},i.prototype.requestAsyncId=function(t,e,r){return r===void 0&&(r=0),h.setInterval(t.flush.bind(t,this),r)},i.prototype.recycleAsyncId=function(t,e,r){if(r===void 0&&(r=0),r!=null&&this.delay===r&&this.pending===!1)return e;e!=null&&h.clearInterval(e)},i.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},i.prototype._execute=function(t,e){var r=!1,s;try{this.work(t)}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 t=this,e=t.id,r=t.scheduler,s=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,f(s,this),e!=null&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null,n.prototype.unsubscribe.call(this)}},i}(p),o=function(){function n(i,t){t===void 0&&(t=n.now),this.schedulerActionCtor=i,this.now=t}return n.prototype.schedule=function(i,t,e){return t===void 0&&(t=0),new this.schedulerActionCtor(this,i).schedule(e,t)},n.now=v.now,n}(),A=function(n){u(i,n);function i(t,e){e===void 0&&(e=o.now);var r=n.call(this,t,e)||this;return r.actions=[],r._active=!1,r}return i.prototype.flush=function(t){var e=this.actions;if(this._active){e.push(t);return}var r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=e.shift());if(this._active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}},i}(o),w=new A(y),g=w;export{w as a,g as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{O,x as v}from"./no-shadow-element-
|
|
1
|
+
import{O,x as v}from"./no-shadow-element-l9trQfcI.js";import{p as b,b as h,f as m}from"./from-jBe2xW5a.js";import{m as A}from"./mapOneOrManyArgs-DNd_tswl.js";import{c as S}from"./OperatorSubscriber-EGuECN6g.js";import{e as j}from"./executeSchedule-DfyZaGAH.js";var k=Array.isArray,d=Object.getPrototypeOf,P=Object.prototype,x=Object.keys;function w(r){if(r.length===1){var e=r[0];if(k(e))return{args:e,keys:null};if(F(e)){var t=x(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=w(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{w as a,L as b,q as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as d}from"./async-
|
|
1
|
+
import{a as d}from"./async-D3oCs_PQ.js";import{o as m,c as v}from"./OperatorSubscriber-EGuECN6g.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-D3oCs_PQ.js";import{t as m}from"./take-DO4w5a1Y.js";import{m as a}from"./map-C4rf5Jbc.js";import{m as e}from"./mergeMap-buGewtOo.js";import{i as f}from"./innerFrom-CfKCbnvr.js";import{t as p}from"./timer-BOl4bYNY.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{x as d}from"./no-shadow-element-
|
|
1
|
+
import{x as d}from"./no-shadow-element-l9trQfcI.js";import{o,c as a}from"./OperatorSubscriber-EGuECN6g.js";function x(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{x as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{O as r}from"./no-shadow-element-l9trQfcI.js";var t=new r(function(e){return e.complete()});export{t as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as d}from"./no-shadow-element-
|
|
1
|
+
import{e as d}from"./no-shadow-element-l9trQfcI.js";function o(i){return i&&d(i.schedule)}function h(i,c,n,s,u){s===void 0&&(s=0),u===void 0&&(u=!1);var e=c.schedule(function(){n(),u?i.add(this.schedule(null,s)):this.unsubscribe()},s);if(i.add(e),!u)return e}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-EGuECN6g.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{e as m,O as f}from"./no-shadow-element-
|
|
1
|
+
import{e as m,O as f}from"./no-shadow-element-l9trQfcI.js";import{i as S,e as a}from"./executeSchedule-DfyZaGAH.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-CfKCbnvr.js";import{o as v,c as E}from"./OperatorSubscriber-EGuECN6g.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{m as s}from"./no-shadow-element-
|
|
1
|
+
import{m as s}from"./no-shadow-element-l9trQfcI.js";function i(t){const e={"language-id":s.user.getLanguage(),"supplier-token":s.supplier.getToken(),"session-id":t},a=localStorage.getItem("_miam/userId");return a?e.authorization=`user_id ${a}`:e["authless-id"]=localStorage.getItem("_miam/authlessId"),e}export{i as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as l,o as d,g as m,j as v,l as i,O as u,r as h,n as w,p as I,q as S}from"./no-shadow-element-
|
|
1
|
+
import{e as l,o as d,g as m,j as v,l as i,O as u,r as h,n as w,p as I,q as S}from"./no-shadow-element-l9trQfcI.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 p(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var O=p();function b(e){return l(e==null?void 0:e[O])}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,i(r.read())];case 3:return a=t.sent(),o=a.value,s=a.done,s?[4,i(void 0)]:[3,5];case 4:return[2,t.sent()];case 5:return[4,i(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 V(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(b(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(f){r={error:f}}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){q(e,n).catch(function(r){return n.error(r)})})}function Y(e){return y(R(e))}function q(e,n){var r,a,o,s;return I(this,void 0,void 0,function(){var t,f;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 f=c.sent(),o={error:f},[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,O as b,k as c,A as d,x as e,b as f,T as g,L as h,V 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-EGuECN6g.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-l9trQfcI.js";import{m as o}from"./map-C4rf5Jbc.js";var t=Array.isArray;function i(a,r){return t(r)?a.apply(void 0,n([],p(r))):a(r)}function y(a){return o(function(r){return i(a,r)})}export{y as m};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as t}from"./mergeMap-buGewtOo.js";import{x as n}from"./no-shadow-element-l9trQfcI.js";import{i}from"./innerFrom-CfKCbnvr.js";import{E as s}from"./empty-Cv-4tfKR.js";import{p as f,a as p,f as g}from"./from-jBe2xW5a.js";function u(r){return r===void 0&&(r=1/0),t(n,r)}function y(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var o=f(r),a=p(r,1/0),m=r;return m.length?m.length===1?i(m[0]):u(a)(g(m,o)):s}export{y as m};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as C}from"./map-
|
|
1
|
+
import{m as C}from"./map-C4rf5Jbc.js";import{i as x}from"./innerFrom-CfKCbnvr.js";import{c as h,o as F}from"./OperatorSubscriber-EGuECN6g.js";import"./executeSchedule-DfyZaGAH.js";import{e as I}from"./no-shadow-element-l9trQfcI.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};
|
|
@@ -18,4 +18,4 @@
|
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright 2017 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/class T extends w{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=fe(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 gt;T._$litElement$=!0,T.finalized=!0,(gt=globalThis.litElementHydrateSupport)==null||gt.call(globalThis,{LitElement:T});const K=globalThis.litElementPolyfillSupport;K==null||K({LitElement:T});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.0");const $t=()=>typeof window<"u"?window.mealzV10?window.mealzV10:window.mealz?window.mealz:null:null,et=()=>typeof window<"u"?window.mealzInternalV10?window.mealzInternalV10:window.mealzInternal?window.mealzInternal:null:null,Se=new Proxy({},{get(n,t){const e=$t();return e?e[t]:void 0},set(n,t,e){const r=$t();return r?(r[t]=e,!0):!1}}),A=new Proxy({},{get(n,t){const e=et();return e?e[t]:void 0},set(n,t,e){const r=et();return r?(r[t]=e,!0):!1}}),pe=()=>{const n=et();return!!(n!=null&&n.pos&&n.supplier&&n.recipes&&n.replaceItem&&n.basket&&n.planner)},Ae=()=>new Promise((n,t)=>{let e=0;const r=200,s=50,i=()=>{e++,pe()?n():e>=r?t(new Error(`MealzInternal SDK not available after ${r} attempts (${r*s}ms)`)):setTimeout(i,s)};i()});class we extends T{constructor(){super(...arguments),this.isMealzInternalReady$=new re(!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 i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",t.toString()),i.setAttribute("id",r),document.head.appendChild(i)}})}removeStyles(){!this.styleURLs||this.styleURLs.length===0||setTimeout(()=>{this.styleURLs.forEach((t,e)=>{const r=`${this.tagName.toLowerCase()}-style-${e}`,s=document.head.querySelector(`#${r}`);s&&document.getElementsByTagName(this.tagName).length===0&&document.head.removeChild(s)})},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;if((e=A==null?void 0:A.supplier)!=null&&e.getToken()&&((r=A==null?void 0:A.user)!=null&&r.getLanguage())){this.isMealzInternalReady$.next(!0);return}else t>50&&console.warn("Unable to find the supplier token or user language. Please verify the configuration."),setTimeout(()=>this.checkMealzInternalStatus(t+1),100)}}export{re as B,p as D,we as N,ht as O,fe as Q,E as R,B as S,j as _,Se as a,J as b,Z as c,X as d,b as e,At as f,me as g,T as h,ye as i,be as j,$e as k,Q as l,A as m,R as n,Zt as o,ve as p,_e as q,Wt as r,ge as s,Pt as t,Y as u,Ot as v,Ae as w,Jt as x};
|
|
21
|
+
*/class T extends w{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=fe(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 gt;T._$litElement$=!0,T.finalized=!0,(gt=globalThis.litElementHydrateSupport)==null||gt.call(globalThis,{LitElement:T});const K=globalThis.litElementPolyfillSupport;K==null||K({LitElement:T});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.0");const $t=()=>typeof window<"u"?window.mealzV10?window.mealzV10:window.mealz?window.mealz:null:null,et=()=>typeof window<"u"?window.mealzInternalV10?window.mealzInternalV10:window.mealzInternal?window.mealzInternal:null:null,Se=new Proxy({},{get(n,t){const e=$t();return e?e[t]:void 0},set(n,t,e){const r=$t();return r?(r[t]=e,!0):!1}}),A=new Proxy({},{get(n,t){const e=et();return e?e[t]:void 0},set(n,t,e){const r=et();return r?(r[t]=e,!0):!1}}),pe=()=>{const n=et();return!!(n!=null&&n.pos&&n.supplier&&n.recipes&&n.replaceItem&&n.basket&&n.planner)},Ae=()=>new Promise((n,t)=>{let e=0;const r=200,s=50,i=()=>{e++,pe()?n():e>=r?t(new Error(`MealzInternal SDK not available after ${r} attempts (${r*s}ms)`)):setTimeout(i,s)};i()});class we extends T{constructor(){super(...arguments),this.isMealzInternalReady$=new re(!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 i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",t.toString()),i.setAttribute("id",r),document.head.appendChild(i)}})}removeStyles(){!this.styleURLs||this.styleURLs.length===0||setTimeout(()=>{this.styleURLs.forEach((t,e)=>{const r=`${this.tagName.toLowerCase()}-style-${e}`,s=document.head.querySelector(`#${r}`);s&&document.getElementsByTagName(this.tagName).length===0&&document.head.removeChild(s)})},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;if((e=A==null?void 0:A.supplier)!=null&&e.getToken()&&((r=A==null?void 0:A.user)!=null&&r.getLanguage())){this.isMealzInternalReady$.next(!0);return}else t>50&&console.warn("Unable to find the supplier token or user language. Please verify the configuration."),setTimeout(()=>this.checkMealzInternalStatus(t+1),100)}getBaseURL(){return new URL("..",import.meta.url).toString()}}export{re as B,p as D,we as N,ht as O,fe as Q,E as R,B as S,j as _,Se as a,J as b,Z as c,X as d,b as e,At as f,me as g,T as h,ye as i,be as j,$e as k,Q as l,A as m,R as n,Zt as o,ve as p,_e as q,Wt as r,ge as s,Pt as t,Y as u,Ot as v,Ae as w,Jt as x};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as o,f as s}from"./from-
|
|
1
|
+
import{p as o,f as s}from"./from-jBe2xW5a.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{m,k as s}from"./no-shadow-element-
|
|
1
|
+
import{m,k as s}from"./no-shadow-element-l9trQfcI.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 g extends c{initFormatter(){const t=m.user.getLanguage()||"fr",r=u[t]||"EUR";this.formatter=new Intl.NumberFormat(t,{style:"currency",currency:r})}currencySymbol(){const t=m.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:i},l)=>{f==="currency"?(o=l,a=s`<span class="mealz-${r}__currency">${i}</span>`):n+=i}),o>0?s`<span class="mealz-${r}__amount">${n}</span>${a}`:s`${a}<span class="mealz-${r}__amount">${n}</span>`}}export{g 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-BwN2GpDz.js";import{N as h,m as c,k as a,v as E,D as z}from"./no-shadow-element-l9trQfcI.js";import{t as m}from"./custom-element-BhZVzxrc.js";import{n as l}from"./property-leIVgCvV.js";import{P as k,S as P}from"./price-BoM226Kw.js";import{c as x}from"./capitalize-DUAqYmp4.js";import{d as I}from"./delay-ILvLVH1b.js";var O=Object.defineProperty,C=Object.getOwnPropertyDescriptor,b=(t,s,r,i)=>{for(var e=i>1?void 0:i?C(s,r):s,n=t.length-1,d;n>=0;n--)(d=t[n])&&(e=(i?d(s,r,e):d(e))||e);return i&&e&&O(s,r,e),e};let u=class extends h{constructor(){super(),this.isSponsored=!1,this.priceService=k.getInstance(),this.styleURL=new URL("./product-badges/product-badges.css",this.getBaseURL())}formatNumber(t){const s=c.user.getLanguage()||"fr";return new Intl.NumberFormat(s,{minimumFractionDigits:1,maximumFractionDigits:2}).format(t)}render(){return a`
|
|
2
2
|
<div class="mealz-product-badges">
|
|
3
3
|
<!-- SPONSORED BADGE -->
|
|
4
4
|
${this.isSponsored?a`
|
|
@@ -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
|
-
`}};b([l({type:Boolean})],u.prototype,"isSponsored",2);b([l({type:Object})],u.prototype,"item",2);b([l({type:Object})],u.prototype,"price",2);u=b([m("mealz-product-badges")],u);var
|
|
20
|
+
`}};b([l({type:Boolean})],u.prototype,"isSponsored",2);b([l({type:Object})],u.prototype,"item",2);b([l({type:Object})],u.prototype,"price",2);u=b([m("mealz-product-badges")],u);var U=Object.defineProperty,R=Object.getOwnPropertyDescriptor,$=(t,s,r,i)=>{for(var e=i>1?void 0:i?R(s,r):s,n=t.length-1,d;n>=0;n--)(d=t[n])&&(e=(i?d(s,r,e):d(e))||e);return i&&e&&U(s,r,e),e};let _=class extends h{constructor(){super(),this.styleURL=new URL("./unavailable-badge/unavailable-badge.css",this.getBaseURL())}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}clicked(){const t=new CustomEvent("clicked",{bubbles:!0,composed:!0});this.dispatchEvent(t)}render(){return 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})],_.prototype,"numberUnavailable",2);_=$([m("mealz-unavailable-badge")],_);var
|
|
31
|
+
`}};$([l({type:Number})],_.prototype,"numberUnavailable",2);_=$([m("mealz-unavailable-badge")],_);var S=Object.defineProperty,w=Object.getOwnPropertyDescriptor,f=(t,s,r,i)=>{for(var e=i>1?void 0:i?w(s,r):s,n=t.length-1,d;n>=0;n--)(d=t[n])&&(e=(i?d(s,r,e):d(e))||e);return i&&e&&S(s,r,e),e};let y=class extends h{constructor(){super(),this.styleURL=new URL("./out-of-stock-overlay/out-of-stock-overlay.css",this.getBaseURL())}replacedClicked(){const t=new CustomEvent("replacedClicked",{bubbles:!0,composed:!0});this.dispatchEvent(t)}render(){return 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,7 +37,7 @@ 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()],y.prototype,"priceData",2);y=f([m("mealz-out-of-stock-overlay")],y);class
|
|
40
|
+
`}};f([l()],y.prototype,"priceData",2);y=f([m("mealz-out-of-stock-overlay")],y);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=(t,s,r,i)=>{for(var e=i>1?void 0:i?D(s,r):s,n=t.length-1,d;n>=0;n--)(d=t[n])&&(e=(i?d(s,r,e):d(e))||e);return i&&e&&A(s,r,e),e};const v=["ignored","deleted","often_deleted","unavailable"],g=["ignored","deleted","often_deleted"],T=["initial","active","out_of_stock"],L=["initial","out_of_stock"];let o=class extends h{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 t,s;return(s=(t=this.product)==null?void 0:t.basketEntry)==null?void 0:s.status}set status(t){this.product.basketEntry.status=t}get productImage(){return this.product.basketEntry.selectedItem.attributes.image||"https://storage.googleapis.com/assets.miam.tech/generic/images/default-ingredient-picture.svg"}get ingredientPicture(){return this.product.ingredient.picture||"https://storage.googleapis.com/assets.miam.tech/generic/images/default-ingredient-picture.svg"}get props(){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 t,s;this.product&&(this.status==="deleted"&&(this.ingredientIsRemoved=!1),this.isSponsored=((s=(t=this.product.basketEntry.selectedItem)==null?void 0:t.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(t=>t.unsubscribe())}listenGuestsChange(){this.subscriptions.push(this.guestObserverService.guests$.subscribe(t=>{this.currentGuests=t,this.calculateQty()}))}calculateQty(){const t=this.product.ingredient.quantity/this.initialGuests;this.modifiedIngQty=Number((t*this.currentGuests).toFixed(2)),this.requestUpdate()}replaceProduct(t){this.sendEntryReplaceEvent(),c.recipes.replaceBasketEntry(this.product.basketEntry,t),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(t=>{this.inBasket=t.inBasket>0}))}ignoreProduct(){this.sendEntryIgnoreEvent(),c.recipes.ignoreProduct(this.product),this.requestUpdate()}updateQuantity(t){this.product.basketEntry.quantity!==t.detail.value&&(t.detail.value<1?(this.ingredientIsRemoved=!0,c.recipes.ingredientRemoved(this.product.ingredient,{originPath:this.analyticsPath,props:{}}),this.sendEntryDeleteEvent()):c.recipes.updateProductQuantity(this.product.basketEntry,t.detail.value,{originPath:this.analyticsPath,props:{}}),c.recipes.updateIngredientFromBasketLoading$.next(!0),this.requestUpdate())}addToBasket(){this.sendEntryAddEvent(),c.recipes.addToBasket(this.product,{props:{},originPath:this.analyticsPath}),this.requestUpdate()}productIsBeingAdded(){this.subscriptions.push(c.recipes.productIsBeingAdded(this.product.basketEntry).subscribe(t=>{this.loadingAddToBasket=t,this.requestUpdate()}))}render(){var t;return a`
|
|
41
41
|
${(t=this.product)!=null&&t.basketEntry?this.renderProductCard():z}
|
|
42
42
|
`}renderProductCard(){return a`
|
|
43
43
|
<div
|
|
@@ -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([m("mealz-product-card")],o);customElements.get("mealz-product-card")||customElements.define("mealz-product-card",o);export{
|
|
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([m("mealz-product-card")],o);customElements.get("mealz-product-card")||customElements.define("mealz-product-card",o);export{B as G};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{N as c,k as m}from"./no-shadow-element-l9trQfcI.js";import{t as d}from"./custom-element-BhZVzxrc.js";import{n as l}from"./property-leIVgCvV.js";import{P as u}from"./price-BoM226Kw.js";var g=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p=(e,o,i,r)=>{for(var t=r>1?void 0:r?f(o,i):o,s=e.length-1,a;s>=0;s--)(a=e[s])&&(t=(r?a(o,i,t):a(t))||t);return r&&t&&g(o,i,t),t};let n=class extends c{constructor(){super(),this.priceService=u.getInstance(),this.styleURL=new URL("./promotion-badge/promotion-badge.css",this.getBaseURL())}getPriceAmountSuffix(){var e;return(e=this.priceData.discountType)!=null&&e.endsWith("_perc")?"%":this.priceService.currencySymbol()}render(){var e;return m`
|
|
2
|
+
<div class="mealz-promotion-badge">
|
|
3
|
+
${((e=this.priceData)==null?void 0:e.discountAmount)>0?m`
|
|
4
|
+
<div class="mealz-ds-badge mealz-promotion-badge__promotion">
|
|
5
|
+
<span class="mealz-promotion-badge__promotion-value mealz-ds-text size-s weight-l">
|
|
6
|
+
${this.priceData.discountAmount}${this.getPriceAmountSuffix()}
|
|
7
|
+
</span>
|
|
8
|
+
<span class="mealz-promotion-badge__promotion-text mealz-ds-text size-s weight-l">de remise immédiate</span>
|
|
9
|
+
</div>
|
|
10
|
+
`:""}
|
|
11
|
+
</div>
|
|
12
|
+
`}};p([l()],n.prototype,"priceData",2);n=p([d("mealz-promotion-badge")],n);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as n}from"./no-shadow-element-l9trQfcI.js";function t(e){e&&n.user.setSessionId(e)}export{t as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o,c as s}from"./OperatorSubscriber-
|
|
1
|
+
import{o,c as s}from"./OperatorSubscriber-EGuECN6g.js";function f(n){return o(function(a,r){var e=!1,i=0;a.subscribe(s(r,function(t){return(e||(e=!n(t,i++)))&&r.next(t)}))})}export{f as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as u,h as m,a as c,k as a}from"./no-shadow-element-
|
|
1
|
+
import{i as u,h as m,a as c,k as a}from"./no-shadow-element-l9trQfcI.js";import{t as g}from"./custom-element-BhZVzxrc.js";import{n as p}from"./property-leIVgCvV.js";import{r as b}from"./state-CccUMzBZ.js";/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2017 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as v}from"./innerFrom-
|
|
1
|
+
import{i as v}from"./innerFrom-CfKCbnvr.js";import{o as l,c as a}from"./OperatorSubscriber-EGuECN6g.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-Cv-4tfKR.js";import{o as f,c as i}from"./OperatorSubscriber-EGuECN6g.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{x as v,e as d}from"./no-shadow-element-
|
|
1
|
+
import{x as v,e as d}from"./no-shadow-element-l9trQfcI.js";import{o as f,c as s}from"./OperatorSubscriber-EGuECN6g.js";function _(n,r,e){var a=d(n)||r||e?{next:n,error:r,complete:e}:n;return a?f(function(u,l){var t;(t=a.subscribe)===null||t===void 0||t.call(a);var c=!0;u.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)}))}):v}export{_ as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{O as p}from"./no-shadow-element-
|
|
1
|
+
import{O as p}from"./no-shadow-element-l9trQfcI.js";import{b as m}from"./async-D3oCs_PQ.js";import{i as r}from"./executeSchedule-DfyZaGAH.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{v as c}from"./no-shadow-element-
|
|
1
|
+
import{v as c}from"./no-shadow-element-l9trQfcI.js";import{d as h}from"./debounceTime-Bo5F3ux-.js";class a{constructor(){this.condition=!0,this.threshold=0,this.debounce=0}}class p{constructor(t,i,s={}){this.element=t,this.callback=i,this.params=s,this.intersectionSubject=new c,this.subscriptions=[],this.params={...new a,...s};const n={root:null,rootMargin:"0px",threshold:this.params.threshold};this.observer=new IntersectionObserver(r=>{r.forEach(o=>this.intersectionSubject.next(o))},n),this.connect()}connect(){this.subscriptions.push(this.intersectionSubject.pipe(h(this.params.debounce)).subscribe(t=>this.handleIntersection(t))),this.observer.observe(this.element)}disconnect(){this.observer&&this.observer.disconnect(),this.intersectionSubject.complete(),this.subscriptions.forEach(t=>t.unsubscribe())}handleIntersection(t){this.params.condition&&t.isIntersecting&&this.callback()}}export{p as V};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{N as m,m as o,k as a}from"../assets/no-shadow-element-
|
|
1
|
+
import{N as m,m as o,k as a}from"../assets/no-shadow-element-l9trQfcI.js";import{t as u}from"../assets/custom-element-BhZVzxrc.js";var c=Object.getOwnPropertyDescriptor,p=(s,n,d,l)=>{for(var e=l>1?void 0:l?c(n,d):n,t=s.length-1,i;t>=0;t--)(i=s[t])&&(e=i(e)||e);return e};let r=class extends m{constructor(){super(),this.supplierName=null,this.showTransferConfirmModal=!1,this.subscriptions=[],this.styleURL=new URL("./basket-transfer-modal/basket-transfer-modal.css",this.getBaseURL())}connectedCallback(){super.connectedCallback(),this.subscriptions.push(o.pos.currentPos().subscribe(s=>{this.supplierName=(s==null?void 0:s.relationships.supplier.data.attributes.name)??null}))}disconnectedCallback(){super.disconnectedCallback(),this.subscriptions.forEach(s=>s.unsubscribe())}render(){return a`
|
|
2
2
|
<mealz-modal @modalClosed=${this.hide}>
|
|
3
3
|
<span slot="title">Transfert du panier</span>
|
|
4
4
|
<span slot="content">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../store-indicator/store-indicator.min.js";import"../../slider-tabs/slider-tabs.min.js";import"../../assets/store-locator-
|
|
1
|
+
import"../../store-indicator/store-indicator.min.js";import"../../slider-tabs/slider-tabs.min.js";import"../../assets/store-locator-m8sx3XDc.js";import{N as R,k as l,m as d,D as k,a as U,s as O,R as D}from"../../assets/no-shadow-element-l9trQfcI.js";import{t as x}from"../../assets/custom-element-BhZVzxrc.js";import{n as E}from"../../assets/property-leIVgCvV.js";import"../../counter/counter.min.js";import"../../price/price.min.js";import"../../modal/modal.min.js";import{P as N}from"../../assets/price-BoM226Kw.js";import{c as M}from"../../assets/capitalize-DUAqYmp4.js";import{e as q,i as L,t as V}from"../../assets/unsafe-html-CmALAWuN.js";import{d as F}from"../../assets/delay-ILvLVH1b.js";import"../../assets/state-CccUMzBZ.js";import"../../assets/debounceTime-Bo5F3ux-.js";import"../../assets/async-D3oCs_PQ.js";import"../../assets/OperatorSubscriber-EGuECN6g.js";import"../../assets/take-DO4w5a1Y.js";import"../../assets/empty-Cv-4tfKR.js";import"../../assets/map-C4rf5Jbc.js";import"../../assets/mergeMap-buGewtOo.js";import"../../assets/innerFrom-CfKCbnvr.js";import"../../assets/executeSchedule-DfyZaGAH.js";import"../../assets/timer-BOl4bYNY.js";var j=Object.defineProperty,H=Object.getOwnPropertyDescriptor,B=(e,t,a,i)=>{for(var s=i>1?void 0:i?H(t,a):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(s=(i?r(t,a,s):r(s))||s);return i&&s&&j(t,a,s),s};let g=class extends R{constructor(){super(),this.analyticsPath="",this.styleURL=new URL("./product-addition/product-addition.css",this.getBaseURL())}render(){return l`
|
|
2
2
|
<div class="mealz-product-addition">
|
|
3
3
|
<span class="mealz-product-addition__title mealz-ds-text">Besoin de quelque chose en particulier ?</span>
|
|
4
4
|
<button @click=${()=>this.openProductAdditionModal()}
|
|
@@ -6,7 +6,7 @@ import"../../store-indicator/store-indicator.min.js";import"../../slider-tabs/sl
|
|
|
6
6
|
Ajouter un produit
|
|
7
7
|
</button>
|
|
8
8
|
</div>
|
|
9
|
-
`}openProductAdditionModal(){this.sendbasketEntryAddEvent(),d.productAddition.open()}sendbasketEntryAddEvent(){d.analytics.sendEvent("basket.entry.add",this.analyticsPath,{})}};B([E({type:String})],g.prototype,"analyticsPath",2);g=B([x("mealz-product-addition")],g);customElements.get("mealz-product-addition")||customElements.define("mealz-product-addition",g);var G=Object.defineProperty,K=Object.getOwnPropertyDescriptor,f=(e,t,i
|
|
9
|
+
`}openProductAdditionModal(){this.sendbasketEntryAddEvent(),d.productAddition.open()}sendbasketEntryAddEvent(){d.analytics.sendEvent("basket.entry.add",this.analyticsPath,{})}};B([E({type:String})],g.prototype,"analyticsPath",2);g=B([x("mealz-product-addition")],g);customElements.get("mealz-product-addition")||customElements.define("mealz-product-addition",g);var G=Object.defineProperty,K=Object.getOwnPropertyDescriptor,f=(e,t,a,i)=>{for(var s=i>1?void 0:i?K(t,a):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(s=(i?r(t,a,s):r(s))||s);return i&&s&&G(t,a,s),s};let z=class extends R{constructor(){super(),this.analyticsPath="",this.loading=!1,this.isRecipeModalDisplayed=!1,this.priceService=N.getInstance(),this.styleURL=new URL("./catalog/basket-preview/basket-preview-product/basket-preview-product.css",this.getBaseURL())}renderSponsorisedBadge(){return l`
|
|
10
10
|
<div class="mealz-basket-preview-product__sponsorised mealz-ds-badge mealz-ds-text size-s weight-l">
|
|
11
11
|
<span>Sponsorisé</span>
|
|
12
12
|
</div>
|
|
@@ -103,15 +103,15 @@ import"../../store-indicator/store-indicator.min.js";import"../../slider-tabs/sl
|
|
|
103
103
|
</div>
|
|
104
104
|
`)}
|
|
105
105
|
</div>
|
|
106
|
-
`,document.body.appendChild(e),e.addEventListener("modalClosed",()=>this.displayRecipesFromProduct())}removeProduct(){this.sendDeleteEvent(),d.products.removeProduct(this.basketEntry,this.analyticsPath),this.loading=!0,this.requestUpdate()}replaceProduct(){this.sendReplaceEvent(),d.productReplacement.open(this.basketEntry)}counterChanged(e){e.detail.value!==this.basketEntry.attributes.quantity&&(d.products.changeQuantity(this.basketEntry,e.detail.value,""),this.loading=!0,this.requestUpdate())}addDefaultProductImage(e){e.target.src=
|
|
106
|
+
`,document.body.appendChild(e),e.addEventListener("modalClosed",()=>this.displayRecipesFromProduct())}removeProduct(){this.sendDeleteEvent(),d.products.removeProduct(this.basketEntry,this.analyticsPath),this.loading=!0,this.requestUpdate()}replaceProduct(){this.sendReplaceEvent(),d.productReplacement.open(this.basketEntry)}counterChanged(e){e.detail.value!==this.basketEntry.attributes.quantity&&(d.products.changeQuantity(this.basketEntry,e.detail.value,""),this.loading=!0,this.requestUpdate())}addDefaultProductImage(e){e.target.src=U.defaultIngredientPicture,e.target.onerror=null}displayRecipesFromProduct(){this.isRecipeModalDisplayed=!this.isRecipeModalDisplayed,this.requestUpdate()}sendReplaceEvent(){d.analytics.sendEvent("entry.replace",this.analyticsPath,{entry_name:this.basketEntry.attributes.name,product_quantity:this.basketEntry.attributes.quantity,item_id:this.basketEntry.selectedItem.id,ext_item_id:this.basketEntry.selectedItem.attributes["ext-id"],item_ean:this.basketEntry.selectedItem.attributes.ean,recipe_id:this.basketEntry.recipesIds[0],status:this.basketEntry.attributes.status})}sendDeleteEvent(){d.analytics.sendEvent("entry.delete",this.analyticsPath,{entry_name:this.basketEntry.attributes.name,product_quantity:this.basketEntry.attributes.quantity,item_id:this.basketEntry.selectedItem.id,ext_item_id:this.basketEntry.selectedItem.attributes["ext-id"],item_ean:this.basketEntry.selectedItem.attributes.ean,recipe_id:this.basketEntry.recipesIds[0]})}};f([E({type:Object})],z.prototype,"basketEntry",2);f([E({type:Array})],z.prototype,"recipeNames",2);f([E({type:String})],z.prototype,"analyticsPath",2);z=f([x("mealz-basket-preview-product")],z);customElements.get("mealz-basket-preview-product")||customElements.define("mealz-basket-preview-product",z);/**
|
|
107
107
|
* @license
|
|
108
108
|
* Copyright 2020 Google LLC
|
|
109
109
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
110
|
-
*/const{I:Q}=O,S=()=>document.createComment(""),w=(e,t,
|
|
110
|
+
*/const{I:Q}=O,S=()=>document.createComment(""),w=(e,t,a)=>{var n;const i=e._$AA.parentNode,s=t===void 0?e._$AB:t._$AA;if(a===void 0){const r=i.insertBefore(S(),s),p=i.insertBefore(S(),s);a=new Q(r,p,e,e.options)}else{const r=a._$AB.nextSibling,p=a._$AM,m=p!==e;if(m){let b;(n=a._$AQ)==null||n.call(a,e),a._$AM=e,a._$AP!==void 0&&(b=e._$AU)!==p._$AU&&a._$AP(b)}if(r!==s||m){let b=a._$AA;for(;b!==r;){const y=b.nextSibling;i.insertBefore(b,s),b=y}}}return a},_=(e,t,a=e)=>(e._$AI(t,a),e),W={},J=(e,t=W)=>e._$AH=t,Y=e=>e._$AH,P=e=>{var i;(i=e._$AP)==null||i.call(e,!1,!0);let t=e._$AA;const a=e._$AB.nextSibling;for(;t!==a;){const s=t.nextSibling;t.remove(),t=s}};/**
|
|
111
111
|
* @license
|
|
112
112
|
* Copyright 2017 Google LLC
|
|
113
113
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
114
|
-
*/const T=(e,t,
|
|
114
|
+
*/const T=(e,t,a)=>{const i=new Map;for(let s=t;s<=a;s++)i.set(e[s],s);return i},Z=q(class extends L{constructor(e){if(super(e),e.type!==V.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,a){let i;a===void 0?a=t:t!==void 0&&(i=t);const s=[],n=[];let r=0;for(const p of e)s[r]=i?i(p,r):r,n[r]=a(p,r),r++;return{values:n,keys:s}}render(e,t,a){return this.dt(e,t,a).values}update(e,[t,a,i]){const s=Y(e),{values:n,keys:r}=this.dt(t,a,i);if(!Array.isArray(s))return this.ut=r,n;const p=this.ut??(this.ut=[]),m=[];let b,y,c=0,u=s.length-1,o=0,h=n.length-1;for(;c<=u&&o<=h;)if(s[c]===null)c++;else if(s[u]===null)u--;else if(p[c]===r[o])m[o]=_(s[c],n[o]),c++,o++;else if(p[u]===r[h])m[h]=_(s[u],n[h]),u--,h--;else if(p[c]===r[h])m[h]=_(s[c],n[h]),w(e,m[h+1],s[c]),c++,h--;else if(p[u]===r[o])m[o]=_(s[u],n[o]),w(e,s[c],s[u]),u--,o++;else if(b===void 0&&(b=T(r,o,h),y=T(p,c,u)),b.has(p[c]))if(b.has(p[u])){const v=y.get(r[o]),$=v!==void 0?s[v]:null;if($===null){const C=w(e,s[c]);_(C,n[o]),m[o]=C}else m[o]=_($,n[o]),w(e,s[c],$),s[v]=null;o++}else P(s[u]),u--;else P(s[c]),c++;for(;o<=h;){const v=w(e,m[h+1]);_(v,n[o]),m[o++]=v}for(;c<=u;){const v=s[c++];v!==null&&P(v)}return this.ut=r,J(e,m),D}}),A={isRecipeDetailsVisible:{paramName:"displayRecipe",getValue:()=>{var t;const e=d.recipes.displayedRecipe$.value;return((t=e==null?void 0:e.recipe)==null?void 0:t.id)||null},openDrawer:e=>{d.recipes.openDetails(e)}},isBasketPreviewVisible:{paramName:"myMeals",getValue:()=>{const{activeTabIndex:e}=d.basket.basketPreviewState$.getValue();return e===1?"products":"recipes"},openDrawer:e=>{d.basket.basketPreviewState$.next({isOpen:!0,activeTabIndex:e==="products"?1:0})}}};function X(){return Object.values(A).map(e=>e.paramName)}function Ie(){const e=new URL(window.location.href);for(const t of Object.values(A)){const a=e.searchParams.get(t.paramName);if(a&&t.openDrawer){t.openDrawer(a);return}}}function Re(e){e.subscribe(t=>{const a=new URL(window.location.href);X().forEach(s=>{a.searchParams.delete(s)});const i=A[t];if(i){const s=i.getValue();s&&a.searchParams.set(i.paramName,s)}window.history.replaceState({},"",a.toString())})}function ee(e){const t=new URL(window.location.href);t.searchParams.delete("myMeals"),e===0?t.searchParams.append("myMeals","recipes"):e===1&&t.searchParams.append("myMeals","products"),window.history.replaceState({},"",t.toString())}var te=Object.getOwnPropertyDescriptor,se=(e,t,a,i)=>{for(var s=i>1?void 0:i?te(t,a):t,n=e.length-1,r;n>=0;n--)(r=e[n])&&(s=r(s)||s);return s};let I=class extends R{constructor(){super(),this.priceService=N.getInstance(),this.subscriptions=[],this.recipePrices=[],this.recipePreviews=[],this.products=[],this.tabs=["Recettes","Produits"],this.selectedTabIndex=0,this.analyticsPath="/basket/recipes",this.drawerStoreIndicator=null,this.styleURL=new URL("./catalog/basket-preview/basket-preview.css",this.getBaseURL())}connectedCallback(){super.connectedCallback(),this.pageview(),this.listenToActiveTab(),this.listenToCloseEvent(),this.priceService.initFormatter(),this.noSupplier=d.supplier.isNoSupplier(),this.noSupplier&&this.appendStoreIndicatorToDrawerHeader(),this.updateRecipeView(),this.subscriptions.push(U.basket.recipeCount().subscribe(e=>{this.recipesCount=e,this.requestUpdate()}),d.basket.entries$().subscribe(e=>{this.products=e.filter(t=>t.attributes.status==="active"),this.requestUpdate()}),d.productAddition.productAdded$.pipe(F(200)).subscribe(e=>{this.selectedTabIndex=1,setTimeout(()=>this.scrollToAddedProduct(e),0),this.requestUpdate()}),d.basket.recipePricesInBasket$().subscribe(e=>{this.recipePrices=e,this.requestUpdate()}))}disconnectedCallback(){super.disconnectedCallback(),this.subscriptions.forEach(e=>e.unsubscribe())}updated(){this.drawerStoreIndicator&&this.drawerStoreIndicator.setAttribute("analyticsPath",this.analyticsPath)}render(){return l`
|
|
115
115
|
<div class="mealz-basket-preview">
|
|
116
116
|
${this.renderNbrMealsInBasket()}
|
|
117
117
|
${this.noSupplier||d.basket.displayProductsInBasket()?l`
|
|
@@ -137,10 +137,10 @@ import"../../store-indicator/store-indicator.min.js";import"../../slider-tabs/sl
|
|
|
137
137
|
<div class="mealz-basket-preview__products">
|
|
138
138
|
${Z(this.products,e=>e.id,(e,t)=>this.renderProductCard(e,t===this.products.length-1))}
|
|
139
139
|
</div>
|
|
140
|
-
`}renderProductCard(e,t=!1){if(e.selectedItem){const
|
|
140
|
+
`}renderProductCard(e,t=!1){if(e.selectedItem){const a=this.recipePreviews.reduce((i,s)=>(e.recipesIds.includes(+s.id)&&i.push(s.title),i),[]);return l`
|
|
141
141
|
<mealz-basket-preview-product
|
|
142
142
|
.basketEntry=${e}
|
|
143
|
-
.recipeNames=${
|
|
143
|
+
.recipeNames=${a}
|
|
144
144
|
.analyticsPath=${this.analyticsPath}
|
|
145
145
|
></mealz-basket-preview-product>
|
|
146
146
|
${t?k:l`
|
|
@@ -194,7 +194,7 @@ import"../../store-indicator/store-indicator.min.js";import"../../slider-tabs/sl
|
|
|
194
194
|
</div>
|
|
195
195
|
</div>
|
|
196
196
|
</div>
|
|
197
|
-
`}calculateTotalPrice(){var e;return(e=this.recipePrices)==null?void 0:e.reduce((t,
|
|
197
|
+
`}calculateTotalPrice(){var e;return(e=this.recipePrices)==null?void 0:e.reduce((t,a)=>t+ +a.price,0)}renderPlaceOrderFooter(){return l`
|
|
198
198
|
<div class="mealz-basket-preview__footer mealz-basket-preview__place-order-footer">
|
|
199
199
|
<div class="mealz-basket-preview__basket-price">
|
|
200
200
|
<span class="mealz-basket-preview__basket-price-label mealz-ds-text weight-xl size-l">
|
|
@@ -225,4 +225,4 @@ import"../../store-indicator/store-indicator.min.js";import"../../slider-tabs/sl
|
|
|
225
225
|
panier
|
|
226
226
|
</h2>
|
|
227
227
|
</div>
|
|
228
|
-
`}appendStoreIndicatorToDrawerHeader(){const e=document.querySelector("mealz-drawer"),t=document.querySelector("mealz-store-indicator");!e||t||(this.drawerStoreIndicator=document.createElement("mealz-store-indicator"),this.drawerStoreIndicator.setAttribute("analyticsPath",this.analyticsPath),e.appendToHeaderComponent(this.drawerStoreIndicator))}placeOrder(){d.basket.transfer()}recipeCardClick(e){d.recipes.openDetails(e.id,e.guests,this.analyticsPath)}removeRecipeClick(e){e.isGettingRemoved=!0,this.requestUpdate(),d.basket.removeRecipe(e.id,this.analyticsPath).subscribe(()=>{e.isGettingRemoved=!1,this.recipePreviews=this.recipePreviews.filter(t=>t.id!==e.id),this.requestUpdate()})}updateTabIndex(e){this.selectedTabIndex=e,ee(e),this.selectedTabIndex===0?(this.analyticsPath="/basket/recipes",this.updateRecipeView(),this.pageview()):(this.analyticsPath="/basket/products",this.pageview()),this.requestUpdate()}updateRecipeView(){this.subscriptions.push(d.basket.buildPreview().subscribe(e=>{e.map(t=>t.isGettingRemoved=!1),this.recipePreviews=e,this.requestUpdate()}))}scrollToAddedProduct(e){var
|
|
228
|
+
`}appendStoreIndicatorToDrawerHeader(){const e=document.querySelector("mealz-drawer"),t=document.querySelector("mealz-store-indicator");!e||t||(this.drawerStoreIndicator=document.createElement("mealz-store-indicator"),this.drawerStoreIndicator.setAttribute("analyticsPath",this.analyticsPath),e.appendToHeaderComponent(this.drawerStoreIndicator))}placeOrder(){d.basket.transfer()}recipeCardClick(e){d.recipes.openDetails(e.id,e.guests,this.analyticsPath)}removeRecipeClick(e){e.isGettingRemoved=!0,this.requestUpdate(),d.basket.removeRecipe(e.id,this.analyticsPath).subscribe(()=>{e.isGettingRemoved=!1,this.recipePreviews=this.recipePreviews.filter(t=>t.id!==e.id),this.requestUpdate()})}updateTabIndex(e){this.selectedTabIndex=e,ee(e),this.selectedTabIndex===0?(this.analyticsPath="/basket/recipes",this.updateRecipeView(),this.pageview()):(this.analyticsPath="/basket/products",this.pageview()),this.requestUpdate()}updateRecipeView(){this.subscriptions.push(d.basket.buildPreview().subscribe(e=>{e.map(t=>t.isGettingRemoved=!1),this.recipePreviews=e,this.requestUpdate()}))}scrollToAddedProduct(e){var a;const t=document.querySelector(`#mealz-basket-preview-product-${e}`);if(t)t.scrollIntoView({block:"center",behavior:"smooth"});else{const i=this.getElementsByTagName("MEALZ-BASKET-PREVIEW-PRODUCT");(a=i.item(i.length-1))==null||a.scrollIntoView({block:"center",behavior:"smooth"})}}listenToActiveTab(){this.subscriptions.push(d.basket.basketPreviewState$.subscribe(({activeTabIndex:e})=>{e!==void 0&&(this.selectedTabIndex=e)}))}listenToCloseEvent(){const e=document.querySelector("mealz-drawer");e&&e.addEventListener("drawerClosed",this.sendCloseEvent.bind(this))}isHidden(){return this.classList.contains("hidden")}pageview(){this.isHidden()||d.analytics.sendEvent("pageview",this.analyticsPath,{})}sendCloseEvent(){this.isHidden()||d.analytics.sendEvent("basket.close",this.analyticsPath,{})}};I=se([x("mealz-basket-preview")],I);customElements.get("mealz-basket-preview")||customElements.define("mealz-basket-preview",I);export{Re as l,Ie as o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as h}from"../../assets/custom-element-BhZVzxrc.js";import{m as n}from"../../assets/no-shadow-element-
|
|
1
|
+
import{t as h}from"../../assets/custom-element-BhZVzxrc.js";import{m as n}from"../../assets/no-shadow-element-l9trQfcI.js";import{C as m}from"../catalog-load-more.min.js";import{h as g}from"../../assets/session-handler-BnuvphmJ.js";import"../../assets/http-aOzufNsj.js";import"../../assets/innerFrom-CfKCbnvr.js";import"../../assets/mergeMap-buGewtOo.js";import"../../assets/map-C4rf5Jbc.js";import"../../assets/OperatorSubscriber-EGuECN6g.js";import"../../assets/executeSchedule-DfyZaGAH.js";import"../../assets/mapOneOrManyArgs-DNd_tswl.js";import"../../assets/async-D3oCs_PQ.js";import"../../assets/timer-BOl4bYNY.js";var u=Object.getOwnPropertyDescriptor,C=(t,a,o,s)=>{for(var e=s>1?void 0:s?u(a,o):a,r=t.length-1,i;r>=0;r--)(i=t[r])&&(e=i(e)||e);return e};let p=class extends m{constructor(){super(...arguments),this.retryCount=0,this.maxRetries=30}connectedCallback(){super.connectedCallback(),this.subscriptions.push(n.preferences.preferencesChanged$().subscribe(()=>this.reloadPage()))}disconnectedCallback(){super.disconnectedCallback()}render(){var l;const t=(l=this.attributes["starting-data"])==null?void 0:l.value;if(!t||(this.recipeCardListHTML=this.querySelector(".mealz-catalog__list"),!this.recipeCardListHTML))return;const{batchSize:a,packageId:o,posId:s,loadMoreURL:e,displayRecipeVariant:r,search:i,sessionId:c,path:d}=JSON.parse(t);g(c),this.analyticsPath=d,this.sendPageViewEvent(),this.loadMoreRecipesOnScroll({displayRecipeVariant:r,loadMoreURL:e,sessionId:c,pageSize:a,storeId:s,packageId:o,search:i,listHTML:this.recipeCardListHTML}),this.removeAttribute("starting-data")}reloadPage(){location.reload()}sendPageViewEvent(){n?(n.analytics.sendEvent("pageview",this.analyticsPath,{}),this.retryCount=0):this.retryCount<this.maxRetries&&(this.retryCount++,setTimeout(()=>this.sendPageViewEvent(),10))}};p=C([h("mealz-catalog-category")],p);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as g}from"../../assets/custom-element-BhZVzxrc.js";import{m as n}from"../../assets/no-shadow-element-
|
|
1
|
+
import{t as g}from"../../assets/custom-element-BhZVzxrc.js";import{m as n}from"../../assets/no-shadow-element-l9trQfcI.js";import{C as h}from"../catalog-load-more.min.js";import{h as u}from"../../assets/session-handler-BnuvphmJ.js";import{f as m}from"../../assets/filter-CEeE8t7I.js";import"../../assets/http-aOzufNsj.js";import"../../assets/innerFrom-CfKCbnvr.js";import"../../assets/mergeMap-buGewtOo.js";import"../../assets/map-C4rf5Jbc.js";import"../../assets/OperatorSubscriber-EGuECN6g.js";import"../../assets/executeSchedule-DfyZaGAH.js";import"../../assets/mapOneOrManyArgs-DNd_tswl.js";import"../../assets/async-D3oCs_PQ.js";import"../../assets/timer-BOl4bYNY.js";function f(e){return m(function(t,i){return e<=i})}var v=Object.getOwnPropertyDescriptor,_=(e,t,i,o)=>{for(var s=o>1?void 0:o?v(t,i):t,r=e.length-1,a;r>=0;r--)(a=e[r])&&(s=a(s)||s);return s};let d=class extends h{constructor(){super(...arguments),this.retryCount=0,this.maxRetries=30}connectedCallback(){super.connectedCallback(),this.subscriptions.push(n.user.isAuthenticated().pipe(f(1)).subscribe(e=>{this.isLogged=e,this.updateDOM()}),this.handleLikedRecipe())}disconnectedCallback(){super.disconnectedCallback()}render(){var c;const e=(c=this.attributes["starting-data"])==null?void 0:c.value;if(!e)return;const{pageSize:t,storeId:i,loadMoreURL:o,displayRecipeVariant:s,search:r,sessionId:a,path:p}=JSON.parse(e);if(this.analyticsPath=p,this.sendPageViewEvent(),this.favorites=this.querySelector(".mealz-catalog-favorites__list"),!this.favorites)return;const l=this.querySelector(".mealz-catalog__list");l&&(u(a),this.loadMoreRecipesOnScroll({displayRecipeVariant:s,loadMoreURL:o,sessionId:a,pageSize:t,storeId:i,packageId:null,search:r,listHTML:l}),this.removeAttribute("starting-data"))}updateDOM(){const e=this.querySelector(".mealz-catalog-favorites__list__not-logged"),t=this.querySelector(".mealz-catalog-favorites__list__logged");!e||!t||(e.classList.toggle("hidden",this.isLogged),t.classList.toggle("hidden",!this.isLogged))}sendPageViewEvent(){var e;n?((e=n.analytics)==null||e.sendEvent("pageview",this.analyticsPath,{}),this.retryCount=0):this.retryCount<this.maxRetries&&(this.retryCount++,setTimeout(()=>this.sendPageViewEvent(),10))}handleLikedRecipe(){return n.recipes.recipeLikeUpdated().subscribe(({id:e,isPast:t})=>{const i=document.getElementById("mealz-recipe-card-"+e);i&&i.classList.toggle("hidden",t),this.requestUpdate()})}};d=_([g("mealz-catalog-favorites")],d);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as p}from"../catalog-load-more.min.js";import{t as y}from"../../assets/custom-element-BhZVzxrc.js";import{m as l}from"../../assets/no-shadow-element-
|
|
1
|
+
import{C as p}from"../catalog-load-more.min.js";import{t as y}from"../../assets/custom-element-BhZVzxrc.js";import{m as l}from"../../assets/no-shadow-element-l9trQfcI.js";import{h as m}from"../../assets/session-handler-BnuvphmJ.js";import"../../assets/http-aOzufNsj.js";import"../../assets/innerFrom-CfKCbnvr.js";import"../../assets/mergeMap-buGewtOo.js";import"../../assets/map-C4rf5Jbc.js";import"../../assets/OperatorSubscriber-EGuECN6g.js";import"../../assets/executeSchedule-DfyZaGAH.js";import"../../assets/mapOneOrManyArgs-DNd_tswl.js";import"../../assets/async-D3oCs_PQ.js";import"../../assets/timer-BOl4bYNY.js";var w=Object.getOwnPropertyDescriptor,g=(t,e,r,i)=>{for(var s=i>1?void 0:i?w(e,r):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(s=o(s)||s);return s};let n=class extends p{constructor(){super(),this.retryCount=0,this.maxRetries=30,this.styleURL=new URL("./catalog/catalog-history/catalog-history.css",this.getBaseURL()),this.handleHistoryDrawer=this.handleHistoryDrawer.bind(this)}connectedCallback(){var h;super.connectedCallback();const t=(h=this.attributes["starting-data"])==null?void 0:h.value;if(!t)return;const{loadMoreURL:e,drawerDataURL:r,sessionId:i,pageSize:s,storeId:a,orders:o,path:d,historyStyle:c}=JSON.parse(t);this.historyDrawerData=JSON.stringify({storeId:a,sessionId:i,drawerDataURL:r}),this.loadMoreURL=e,this.sessionId=i,this.pageSize=s,this.storeId=a,this.orders=o,this.analyticsPath=d,this.historyStyle=c,m(this.sessionId),this.removeAttribute("starting-data"),this.sendPageViewEvent(),this.initURLListener(),this.handleHistoryDrawer()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("popstate",this.handleHistoryDrawer)}render(){this.historyOrderListHTML=this.querySelector(".mealz-catalog__list"),this.historyOrderListHTML&&this.loadMoreRecipesOnScroll({displayRecipeVariant:"",loadMoreURL:this.loadMoreURL,sessionId:this.sessionId,pageSize:+this.pageSize,storeId:this.storeId,packageId:null,search:"",listHTML:this.historyOrderListHTML,historyStyle:this.historyStyle})}handleHistoryDrawer(){const t=new URL(window.location.href),e=t.searchParams.get("order"),r=t.searchParams.get("displayRecipe");if(!e||!this.orders||r)return;const i=document.querySelector("mealz-drawer-view-swapper"),s=this.orders.find(o=>o.id===e),a=(s==null?void 0:s.updatedAt)||"";i&&i.displayHistoryDrawer$.next({historyDrawerData:this.historyDrawerData,orderId:e,orderDate:a})}initURLListener(){window.addEventListener("popstate",this.handleHistoryDrawer);const t=history.pushState,e=history.replaceState;history.pushState=(...r)=>{t.apply(history,r),this.handleHistoryDrawer()},history.replaceState=(...r)=>{e.apply(history,r),this.handleHistoryDrawer()}}sendPageViewEvent(){l?(l.analytics.sendEvent("pageview",this.analyticsPath,{}),this.retryCount=0):this.retryCount<this.maxRetries&&(this.retryCount++,setTimeout(()=>this.sendPageViewEvent(),10))}};n=g([y("mealz-catalog-history")],n);customElements.get("mealz-catalog-history")||customElements.define("mealz-catalog-history",n);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as h}from"../../assets/custom-element-BhZVzxrc.js";import{N as l,m as r}from"../../assets/no-shadow-element-
|
|
1
|
+
import{t as h}from"../../assets/custom-element-BhZVzxrc.js";import{N as l,m as r}from"../../assets/no-shadow-element-l9trQfcI.js";import{h as d}from"../../assets/session-handler-BnuvphmJ.js";import{V as g}from"../../assets/viewport-listener-RTCBatPv.js";import"../../assets/debounceTime-Bo5F3ux-.js";import"../../assets/async-D3oCs_PQ.js";import"../../assets/OperatorSubscriber-EGuECN6g.js";var m=Object.getOwnPropertyDescriptor,p=(t,e,s,i)=>{for(var a=i>1?void 0:i?m(e,s):e,n=t.length-1,o;n>=0;n--)(o=t[n])&&(a=o(a)||a);return a};let c=class extends l{constructor(){super(...arguments),this.categories=[],this.viewportListeners=[],this.subscriptions=[],this.retryCount=0,this.maxRetries=30}connectedCallback(){super.connectedCallback(),this.subscriptions.push(r.preferences.preferencesChanged$().subscribe(()=>this.reloadPage()))}disconnectedCallback(){super.disconnectedCallback(),this.subscriptions.forEach(t=>t.unsubscribe()),this.viewportListeners.forEach(t=>t.disconnect()),this.viewportListeners=[]}render(){var a;const t=(a=this.attributes["starting-data"])==null?void 0:a.value;if(!t)return;const{categories:e,path:s,sessionId:i}=JSON.parse(t);d(i),this.analyticsPath=s,this.categories=e,this.sendPageViewEvent(),this.addEventListeners(),this.listenCategoriesInView(),this.removeAttribute("starting-data")}addEventListeners(){Array.from(this.getElementsByClassName("mealz-catalog__link")).forEach((e,s)=>{e==null||e.addEventListener("click",()=>this.sendCategoryDisplay(s))})}listenCategoriesInView(){Array.from(this.getElementsByClassName("mealz-catalog-home__category")).forEach((e,s)=>{const i=new g(e,()=>this.sendCategoryShow(s),{threshold:.8,debounce:1e3});this.viewportListeners.push(i)})}reloadPage(){location.reload()}sendPageViewEvent(){r?(r.analytics.sendEvent("pageview",this.analyticsPath,{}),this.retryCount=0):this.retryCount<this.maxRetries&&(this.retryCount++,setTimeout(()=>this.sendPageViewEvent(),10))}sendCategoryDisplay(t){var e;r.analytics.sendEvent("category.display",this.analyticsPath,{category_id:(e=this.categories[Math.floor(t/2)])==null?void 0:e.id})}sendCategoryShow(t){var e;r.analytics.sendEvent("category.show",this.analyticsPath,{category_id:(e=this.categories[t])==null?void 0:e.id})}};c=p([h("mealz-catalog-home")],c);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as d}from"../../assets/custom-element-BhZVzxrc.js";import{m}from"../../assets/no-shadow-element-
|
|
1
|
+
import{t as d}from"../../assets/custom-element-BhZVzxrc.js";import{m}from"../../assets/no-shadow-element-l9trQfcI.js";import{C as h}from"../catalog-load-more.min.js";import{h as g}from"../../assets/session-handler-BnuvphmJ.js";import"../../assets/http-aOzufNsj.js";import"../../assets/innerFrom-CfKCbnvr.js";import"../../assets/mergeMap-buGewtOo.js";import"../../assets/map-C4rf5Jbc.js";import"../../assets/OperatorSubscriber-EGuECN6g.js";import"../../assets/executeSchedule-DfyZaGAH.js";import"../../assets/mapOneOrManyArgs-DNd_tswl.js";import"../../assets/async-D3oCs_PQ.js";import"../../assets/timer-BOl4bYNY.js";var u=Object.getOwnPropertyDescriptor,C=(t,a,o,s)=>{for(var e=s>1?void 0:s?u(a,o):a,r=t.length-1,i;r>=0;r--)(i=t[r])&&(e=i(e)||e);return e};let c=class extends h{connectedCallback(){super.connectedCallback(),this.subscriptions.push(m.preferences.preferencesChanged$().subscribe(()=>this.reloadPage()))}disconnectedCallback(){super.disconnectedCallback()}render(){var n;const t=(n=this.attributes["starting-data"])==null?void 0:n.value;if(!t||(this.recipeCardListHTML=this.querySelector(".mealz-catalog__list"),!this.recipeCardListHTML))return;const{pageSize:a,storeId:o,loadMoreURL:s,displayRecipeVariant:e,search:r,promotions:i,planner:p,sessionId:l}=JSON.parse(t);g(l),this.loadMoreRecipesOnScroll({displayRecipeVariant:e,loadMoreURL:s,sessionId:l,pageSize:a,storeId:o,packageId:null,search:r,listHTML:this.recipeCardListHTML,promotions:i,planner:p}),this.removeAttribute("starting-data")}reloadPage(){location.reload()}};c=C([d("mealz-catalog-list")],c);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as w,O as R,e as f,N as T}from"../assets/no-shadow-element-
|
|
1
|
+
import{c as w,O as R,e as f,N as T}from"../assets/no-shadow-element-l9trQfcI.js";import{b as S}from"../assets/http-aOzufNsj.js";import{a as C,i as b}from"../assets/innerFrom-CfKCbnvr.js";import{m as _}from"../assets/mergeMap-buGewtOo.js";import{m as H}from"../assets/mapOneOrManyArgs-DNd_tswl.js";import{a as k}from"../assets/async-D3oCs_PQ.js";import{o as O,c as y}from"../assets/OperatorSubscriber-EGuECN6g.js";import{t as z}from"../assets/timer-BOl4bYNY.js";import"../assets/map-C4rf5Jbc.js";import"../assets/executeSchedule-DfyZaGAH.js";var x=["addListener","removeListener"],I=["addEventListener","removeEventListener"],V=["on","off"];function E(n,e,t,r){if(f(t)&&(r=t,t=void 0),r)return E(n,e,t).pipe(H(r));var u=w(A(n)?I.map(function(s){return function(d){return n[s](e,d,t)}}):D(n)?x.map(M(n,e)):q(n)?V.map(M(n,e)):[],2),c=u[0],m=u[1];if(!c&&C(n))return _(function(s){return E(s,e,t)})(b(n));if(!c)throw new TypeError("Invalid event target");return new R(function(s){var d=function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return s.next(1<a.length?a:a[0])};return c(d),function(){return m(d)}})}function M(n,e){return function(t){return function(r){return n[t](e,r)}}}function D(n){return f(n.addListener)&&f(n.removeListener)}function q(n){return f(n.on)&&f(n.off)}function A(n){return f(n.addEventListener)&&f(n.removeEventListener)}function G(n,e){return O(function(t,r){var u=e??{},c=u.leading,m=c===void 0?!0:c,s=u.trailing,d=s===void 0?!1:s,a=!1,l=null,i=null,h=!1,o=function(){i==null||i.unsubscribe(),i=null,d&&(L(),h&&r.complete())},g=function(){i=null,h&&r.complete()},v=function(p){return i=b(n(p)).subscribe(y(r,o,g))},L=function(){if(a){a=!1;var p=l;l=null,r.next(p),!h&&v(p)}};t.subscribe(y(r,function(p){a=!0,l=p,!(i&&!i.closed)&&(m?L():v(p))},function(){h=!0,!(d&&a&&i&&!i.closed)&&r.complete()}))})}function $(n,e,t){e===void 0&&(e=k);var r=z(n,e);return G(function(){return r},t)}const j=300;class X extends T{constructor(){super(...arguments),this.noMoreData=!1,this.isLoading=!1,this.page=2,this.loaderElement=null,this.subscriptions=[]}connectedCallback(){super.connectedCallback(),this.createLoader()}disconnectedCallback(){super.disconnectedCallback(),this.subscriptions.forEach(e=>e.unsubscribe()),this.removeLoader()}loadMoreRecipesOnScroll(e){this.addScrollListener(window,()=>{this.isListVisible(e.listHTML)&&this.shouldGetMoreRecipes(window.scrollY,window.innerHeight,document.body.offsetHeight)&&this.getMoreRecipes(e)});const t=document.querySelector(".mealz-drawer__content-container");t&&this.addScrollListener(t,()=>{this.isListVisible(e.listHTML)&&this.shouldGetMoreRecipes(t.scrollTop,t.clientHeight,t.scrollHeight)&&this.getMoreRecipes(e)})}addScrollListener(e,t){const r=E(e,"scroll").pipe($(100));this.subscriptions.push(r.subscribe(t))}isListVisible(e){return!!(e.offsetParent||e.getClientRects().length)}shouldGetMoreRecipes(e,t,r){return!this.noMoreData&&!this.isLoading&&e+t+j>=r}async getMoreRecipes(e){const{displayRecipeVariant:t,loadMoreURL:r,sessionId:u,pageSize:c,storeId:m,packageId:s,search:d,listHTML:a,promotions:l,planner:i,historyStyle:h}=e;this.isLoading=!0,this.toggleLoader(!0);const o=new URLSearchParams;o.append("size",c.toString()),o.append("page",this.page.toString()),t&&o.append("display_recipe_variant",t),s&&o.append("category_id",s),m&&o.append("store_id",m),d&&o.append("search",d),l&&o.append("promotions",l.toString()),i&&o.append("planner","true"),h&&o.append("history_style",h);try{const g=r.includes("?")?"&":"?",v=await fetch(r+g+o.toString(),{method:"GET",headers:S(u)});if(!v.ok)throw new Error(`Load more request failed with status: ${v.status}`);const L=await v.text();this.appendRecipesToList(L,a,c)}catch(g){console.error(g),this.isLoading=!1}}appendRecipesToList(e,t,r){this.checkIfMoreRecipes(e,r),t.insertAdjacentHTML("beforeend",e),this.isLoading=!1,this.toggleLoader(!1),this.page++}checkIfMoreRecipes(e,t){const r=e.match(/<mealz-recipe-card(?=\s|>)/gi)||e.match(/<mealz-history-order(?=\s|>)/gi)||e.match(/<mealz-history-order-expanded(?=\s|>)/gi);(r?r.length:0)<t&&(this.noMoreData=!0)}createLoader(){const e=this.querySelector(".mealz-catalog__content");!this.loaderElement&&e&&(this.loaderElement=document.createElement("div"),this.loaderElement.className="mealz-ds-loader",this.loaderElement.style.display="none",e.appendChild(this.loaderElement))}removeLoader(){this.loaderElement&&this.loaderElement.parentElement&&(this.loaderElement.parentElement.removeChild(this.loaderElement),this.loaderElement=null)}toggleLoader(e){this.loaderElement&&(this.loaderElement.style.display=e?"block":"none")}}export{X as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as s}from"../../assets/custom-element-BhZVzxrc.js";import{N as d}from"../../assets/no-shadow-element-
|
|
1
|
+
import{t as s}from"../../assets/custom-element-BhZVzxrc.js";import{N as d}from"../../assets/no-shadow-element-l9trQfcI.js";var b=Object.getOwnPropertyDescriptor,p=(t,l,o,r)=>{for(var e=r>1?void 0:r?b(l,o):l,a=t.length-1,c;a>=0;a--)(c=t[a])&&(e=c(e)||e);return e};let n=class extends d{connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}render(){}};n=p([s("mealz-catalog-tabs")],n);
|