mealz-components 1.3.12 → 2.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/dist/accordion/accordion.css +1 -0
  2. package/dist/accordion.css +56 -0
  3. package/dist/add-to-cart-cta/add-to-cart-cta.css +1 -0
  4. package/dist/add-to-cart-cta/add-to-cart-cta.min.js +7 -0
  5. package/dist/all-recipes-banner/all-recipes-banner.css +1 -0
  6. package/dist/assets/OperatorSubscriber-C_ZC-4p2.js +1 -0
  7. package/dist/assets/async-Cf5pIG6K.js +1 -0
  8. package/dist/assets/capitalize-DUAqYmp4.js +1 -0
  9. package/dist/assets/combineLatest-ZcJd71-W.js +1 -0
  10. package/dist/assets/debounceTime-Dqha8z_N.js +1 -0
  11. package/dist/assets/delay-DY9ohHpd.js +1 -0
  12. package/dist/assets/distinctUntilChanged-C5xhZT8-.js +1 -0
  13. package/dist/assets/empty-DzB-G1O3.js +1 -0
  14. package/dist/assets/executeSchedule-BoZ8McHf.js +1 -0
  15. package/dist/assets/filter-CCrCJ0Ez.js +1 -0
  16. package/dist/assets/from-BJlgdPzK.js +1 -0
  17. package/dist/assets/http-_HLok9_q.js +1 -0
  18. package/dist/assets/innerFrom-cJ8wLVnp.js +1 -0
  19. package/dist/assets/map-CtoF0MFx.js +1 -0
  20. package/dist/assets/mapOneOrManyArgs-BgYvpJCA.js +1 -0
  21. package/dist/assets/merge-CfUUBPqp.js +1 -0
  22. package/dist/assets/mergeMap-DkeMJrVP.js +1 -0
  23. package/dist/assets/no-shadow-element-Dckeu5Ol.js +21 -0
  24. package/dist/assets/of-CGDeMeoh.js +1 -0
  25. package/dist/assets/price-3QEU2vDV.js +1 -0
  26. package/dist/assets/price-utils-BRFZa-3D.js +1 -0
  27. package/dist/assets/product-card-_1qE9t-X.js +189 -0
  28. package/dist/assets/promotion-badge-DCM0C5Lw.js +12 -0
  29. package/dist/assets/property-B_Up5EGr.js +5 -0
  30. package/dist/assets/recipe-BwGs-blm.js +1 -0
  31. package/dist/assets/session-handler-BjExGUaE.js +1 -0
  32. package/dist/assets/skipWhile-BpCW6MT3.js +1 -0
  33. package/dist/assets/state-Dg5rn9XH.js +5 -0
  34. package/dist/{store-locator/store-locator.min.js → assets/store-locator-DdG34z7_.js} +34 -42
  35. package/dist/assets/switchMap-_eqjHrlq.js +1 -0
  36. package/dist/assets/take-C-_8_Rq7.js +1 -0
  37. package/dist/assets/tap-C7Bbgrv8.js +1 -0
  38. package/dist/assets/timer-FQ7WMtFD.js +1 -0
  39. package/dist/assets/unsafe-html-ZfqpUwaC.js +9 -0
  40. package/dist/assets/viewport-listener-VXtYxJHH.js +1 -0
  41. package/dist/basket-preview-product.css +107 -0
  42. package/dist/basket-preview.css +193 -0
  43. package/dist/basket-transfer-modal/basket-transfer-modal.css +1 -0
  44. package/dist/basket-transfer-modal/basket-transfer-modal.min.js +41 -0
  45. package/dist/basket-transfer-modal.css +13 -0
  46. package/dist/breadcrumb/breadcrumb.css +1 -0
  47. package/dist/catalog/basket-preview/basket-preview-product/basket-preview-product.css +1 -0
  48. package/dist/catalog/basket-preview/basket-preview.css +1 -0
  49. package/dist/catalog/basket-preview/basket-preview.min.js +228 -0
  50. package/dist/catalog/catalog-category/catalog-category.min.js +1 -1
  51. package/dist/catalog/catalog-favorites/catalog-favorites.min.js +1 -1
  52. package/dist/catalog/catalog-history/catalog-history.css +1 -1
  53. package/dist/catalog/catalog-history/catalog-history.min.js +1 -1
  54. package/dist/catalog/catalog-home/catalog-home.css +1 -1
  55. package/dist/catalog/catalog-home/catalog-home.min.js +1 -1
  56. package/dist/catalog/catalog-list/catalog-list.css +0 -0
  57. package/dist/catalog/catalog-list/catalog-list.min.js +1 -1
  58. package/dist/catalog/catalog-load-more.min.js +1 -1
  59. package/dist/catalog/catalog-tabs/catalog-tabs.css +1 -1
  60. package/dist/catalog/catalog-tabs/catalog-tabs.min.js +1 -1
  61. package/dist/catalog/catalog-toolbar/catalog-toolbar.css +1 -1
  62. package/dist/catalog/catalog-toolbar/catalog-toolbar.min.js +1 -1
  63. package/dist/catalog/catalog.css +1 -1
  64. package/dist/catalog/my-meals-button/my-meals-button.css +1 -1
  65. package/dist/catalog/my-meals-button/my-meals-button.min.js +1 -1
  66. package/dist/catalog-history.css +39 -0
  67. package/dist/counter/counter.css +1 -0
  68. package/dist/counter/counter.min.js +47 -0
  69. package/dist/counter.css +55 -0
  70. package/dist/details-footer.css +117 -0
  71. package/dist/details-infos.css +55 -0
  72. package/dist/details-ingredients.css +66 -0
  73. package/dist/details-steps.css +65 -0
  74. package/dist/drawer/drawer.css +1 -1
  75. package/dist/drawer/drawer.min.js +14 -7
  76. package/dist/drawer-view-swapper/drawer-view-swapper.css +1 -0
  77. package/dist/drawer-view-swapper/drawer-view-swapper.min.js +92 -0
  78. package/dist/drawer-view-swapper.css +45 -0
  79. package/dist/history-drawer/history-drawer.min.js +1 -0
  80. package/dist/history-order/history-order.css +1 -1
  81. package/dist/history-order/history-order.min.js +1 -1
  82. package/dist/history-order-expanded/history-order-expanded.min.js +1 -1
  83. package/dist/last-order-badge/last-order-badge.css +1 -0
  84. package/dist/last-order-badge/last-order-badge.min.js +13 -0
  85. package/dist/last-order-badge.css +15 -0
  86. package/dist/last-order-modal/last-order-modal.css +1 -0
  87. package/dist/last-order-modal/last-order-modal.min.js +17 -0
  88. package/dist/last-order-modal.css +23 -0
  89. package/dist/legal-notice/legal-notice.css +1 -0
  90. package/dist/legal-notice.css +33 -0
  91. package/dist/like-button/like-button.css +1 -1
  92. package/dist/like-button/like-button.min.js +1 -1
  93. package/dist/modal/modal.css +1 -0
  94. package/dist/modal/modal.min.js +18 -0
  95. package/dist/modal.css +56 -0
  96. package/dist/no-pos-selected.css +24 -0
  97. package/dist/no-supplier-onboarding/no-supplier-onboarding.css +1 -0
  98. package/dist/no-supplier-onboarding.css +150 -0
  99. package/dist/order-again/order-again.css +1 -0
  100. package/dist/order-again/order-again.min.js +20 -0
  101. package/dist/order-again.css +39 -0
  102. package/dist/out-of-stock-overlay/out-of-stock-overlay.css +1 -0
  103. package/dist/out-of-stock-overlay.css +24 -0
  104. package/dist/planner/planner-abandon-modal/planner-abandon-modal.css +1 -0
  105. package/dist/planner/planner-abandon-modal/planner-abandon-modal.min.js +14 -0
  106. package/dist/planner/planner-budget-gauge/planner-budget-gauge.css +1 -0
  107. package/dist/planner/planner-budget-gauge/planner-budget-gauge.min.js +1 -0
  108. package/dist/planner/planner-catalog/planner-catalog.css +1 -0
  109. package/dist/planner/planner-catalog/planner-catalog.min.js +3 -0
  110. package/dist/planner/planner-current-menu/planner-current-menu.css +1 -0
  111. package/dist/planner/planner-current-menu/planner-current-menu.min.js +1 -0
  112. package/dist/planner/planner-current-menu-modal/planner-current-menu-modal.css +1 -0
  113. package/dist/planner/planner-current-menu-modal/planner-current-menu-modal.min.js +17 -0
  114. package/dist/planner/planner-dashboard/planner-dashboard.css +1 -0
  115. package/dist/planner/planner-dashboard/planner-dashboard.min.js +1 -0
  116. package/dist/planner/planner-form/planner-form.css +1 -0
  117. package/dist/planner/planner-form/planner-form.min.js +62 -0
  118. package/dist/planner/planner-menu-option/planner-menu-option.css +1 -0
  119. package/dist/planner/planner-menu-option/planner-menu-option.min.js +1 -0
  120. package/dist/planner/planner-open-catalog-modal/planner-open-catalog-modal.css +1 -0
  121. package/dist/planner/planner-open-catalog-modal/planner-open-catalog-modal.min.js +18 -0
  122. package/dist/planner/planner-recipe-card/planner-recipe-card.css +1 -0
  123. package/dist/planner/planner-recipe-card/planner-recipe-card.min.js +1 -0
  124. package/dist/planner/planner-recipe-list/planner-recipe-list.css +1 -0
  125. package/dist/planner/planner-recipe-list/planner-recipe-list.min.js +1 -0
  126. package/dist/planner/planner-recipe-suggestion/planner-recipe-suggestion.css +1 -0
  127. package/dist/planner/planner-recipe-suggestion/planner-recipe-suggestion.min.js +1 -0
  128. package/dist/planner/to-basket-loader/to-basket-loader.css +1 -0
  129. package/dist/planner/to-basket-loader/to-basket-loader.min.js +20 -0
  130. package/dist/planner-abandon-modal.css +31 -0
  131. package/dist/planner-banner/planner-banner.css +1 -0
  132. package/dist/planner-card-link/planner-card-link.css +1 -0
  133. package/dist/planner-current-menu-modal.css +49 -0
  134. package/dist/planner-form.css +178 -0
  135. package/dist/planner-open-catalog-modal.css +51 -0
  136. package/dist/preferences/preferences-search/preferences-search.css +1 -0
  137. package/dist/preferences/preferences.css +1 -0
  138. package/dist/preferences/preferences.min.js +177 -0
  139. package/dist/preferences-search.css +69 -0
  140. package/dist/price/price.css +1 -0
  141. package/dist/price/price.min.js +12 -0
  142. package/dist/price.css +10 -0
  143. package/dist/product-addition/product-addition.css +1 -0
  144. package/dist/product-addition.css +16 -0
  145. package/dist/product-badges/product-badges.css +1 -0
  146. package/dist/product-badges.css +12 -0
  147. package/dist/product-card/product-card-planner.css +1 -0
  148. package/dist/product-card/product-card-skeleton/product-card-skeleton.css +1 -0
  149. package/dist/product-card/product-card.css +1 -0
  150. package/dist/product-card-planner.css +217 -0
  151. package/dist/product-card-skeleton.css +44 -0
  152. package/dist/product-card.css +208 -0
  153. package/dist/products-picker/products-picker.css +1 -0
  154. package/dist/products-picker.css +104 -0
  155. package/dist/promotion-badge/promotion-badge.css +1 -0
  156. package/dist/promotion-badge.css +18 -0
  157. package/dist/promotions-banner/promotions-banner.css +1 -1
  158. package/dist/recipe-addon.css +33 -0
  159. package/dist/recipe-card/recipe-card.css +1 -1
  160. package/dist/recipe-card/recipe-card.min.js +1 -1
  161. package/dist/recipe-card-cta/recipe-card-cta.css +1 -1
  162. package/dist/recipe-card-cta/recipe-card-cta.min.js +1 -1
  163. package/dist/recipe-details/details-footer/details-footer.css +1 -0
  164. package/dist/recipe-details/details-infos/details-infos.css +1 -0
  165. package/dist/recipe-details/details-ingredients/details-ingredients.css +1 -0
  166. package/dist/recipe-details/details-steps/details-steps.css +1 -0
  167. package/dist/recipe-details/no-pos-selected/no-pos-selected.css +1 -0
  168. package/dist/recipe-details/recipe-addon/recipe-addon.css +1 -0
  169. package/dist/recipe-details/recipe-details.css +1 -0
  170. package/dist/recipe-details/recipe-details.min.js +698 -0
  171. package/dist/recipe-details/sponsor-block/sponsor-block.css +1 -0
  172. package/dist/recipe-details.css +346 -0
  173. package/dist/recipe-pricing/recipe-pricing.css +1 -1
  174. package/dist/recipe-pricing/recipe-pricing.min.js +1 -1
  175. package/dist/recipe-promotion-badge/recipe-promotion-badge.css +1 -1
  176. package/dist/replace-item/replace-item-card/replace-item-card.css +1 -0
  177. package/dist/replace-item/replace-item-card/replace-item-card.min.js +60 -0
  178. package/dist/replace-item/replace-item.css +1 -0
  179. package/dist/replace-item/replace-item.min.js +96 -0
  180. package/dist/replace-item-card-planner.css +80 -0
  181. package/dist/replace-item-card.css +75 -0
  182. package/dist/replace-item-planner/replace-item-card-planner/replace-item-card-planner.css +1 -0
  183. package/dist/replace-item-planner/replace-item-card-planner/replace-item-card-planner.min.js +56 -0
  184. package/dist/replace-item-planner/replace-item-planner.css +1 -0
  185. package/dist/replace-item-planner/replace-item-planner.min.js +87 -0
  186. package/dist/replace-item-planner.css +150 -0
  187. package/dist/replace-item.css +150 -0
  188. package/dist/slider-tabs/slider-tabs.css +1 -0
  189. package/dist/slider-tabs/slider-tabs.min.js +14 -0
  190. package/dist/slider-tabs.css +58 -0
  191. package/dist/sponsor-block.css +226 -0
  192. package/dist/store-indicator/store-indicator.css +1 -0
  193. package/dist/store-indicator/store-indicator.min.js +14 -0
  194. package/dist/store-indicator.css +41 -0
  195. package/dist/store-locator-drawer/store-locator-drawer.min.js +43 -0
  196. package/dist/styles/history-drawer.css +1 -0
  197. package/dist/styles/skeleton.css +1 -0
  198. package/dist/to-basket-loader.css +157 -0
  199. package/dist/unavailable-badge/unavailable-badge.css +1 -0
  200. package/dist/unavailable-badge.css +25 -0
  201. package/package.json +10 -5
  202. package/dist/assets/OperatorSubscriber-CcnWrfoX.js +0 -3
  203. package/dist/assets/Subject-rBVVIydv.js +0 -1
  204. package/dist/assets/async-CcgIcE7w.js +0 -1
  205. package/dist/assets/lit-element-4gw3YGga.js +0 -19
  206. package/dist/assets/no-shadow-element-CaVIVF-o.js +0 -1
  207. package/dist/assets/session-handler-BPS5vj92.js +0 -1
  208. package/dist/assets/viewport-listener-DAXSJTi3.js +0 -1
  209. package/dist/catalog/catalog-breadcrumb/catalog-breadcrumb.css +0 -1
  210. package/dist/catalog/catalog-breadcrumb/catalog-breadcrumb.min.js +0 -1
  211. package/dist/catalog/catalog-list/catalog-list.css.min.js +0 -1
@@ -0,0 +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}
@@ -0,0 +1,56 @@
1
+ .mealz-accordion__header {
2
+ height: 48px;
3
+ width: calc(100% - 32px);
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: space-between;
7
+ margin: 0 16px 12px 16px;
8
+ padding: 12px 8px;
9
+ border-radius: 8px;
10
+ background: var(--mealz-ds-color-primary-50, #F0F3F4);
11
+ color: var(--mealz-ds-color-neutral-black, #0F191F);
12
+ user-select: none;
13
+ border: none;
14
+ appearance: none;
15
+
16
+ &:hover {
17
+ cursor: pointer;
18
+ }
19
+ }
20
+
21
+ .mealz-accordion__icon {
22
+ height: 12px;
23
+ width: 12px;
24
+ margin: 6px;
25
+ transition: all 0.3s ease;
26
+ transform: rotate(0deg);
27
+ }
28
+
29
+ .mealz-accordion__collapsable-container {
30
+ margin: 0 16px;
31
+ padding: 0 8px;
32
+ display: grid;
33
+ grid-template-rows: 0fr;
34
+ overflow: hidden;
35
+ transition: grid-template-rows 0.3s ease-out;
36
+ }
37
+
38
+ .mealz-accordion__collapsable-content {
39
+ min-height: 0;
40
+ opacity: 0;
41
+ transition: opacity 0.3s ease-out;
42
+ }
43
+
44
+ .opened {
45
+ .mealz-accordion__icon {
46
+ transform: rotate(180deg);
47
+ }
48
+
49
+ .mealz-accordion__collapsable-container {
50
+ grid-template-rows: 1fr;
51
+
52
+ .mealz-accordion__collapsable-content {
53
+ opacity: 1;
54
+ }
55
+ }
56
+ }
@@ -0,0 +1 @@
1
+ @keyframes slideUp{0%{transform:translate(-50%) translateY(100%);opacity:0}to{transform:translate(-50%) translateY(0);opacity:1}}.mealz-add-to-cart-cta{border-radius:999px;padding:16px}.mealz-add-to-cart-cta.secondary{background:var(--mealz-ds-color-neutral-white, #fff)}.mealz-add-to-cart-cta img{margin-right:4px}.mealz-add-to-cart-cta--fixed{display:none;width:400px;position:fixed;left:50%;bottom:24px;transform:translate(-50%) translateY(0);z-index:1000;box-shadow:0 6px 24px #0000002e;pointer-events:auto}@media (max-width: 600px){.mealz-add-to-cart-cta--fixed{width:calc(100% - 32px)}}
@@ -0,0 +1,7 @@
1
+ import{t as o}from"../assets/custom-element-BhZVzxrc.js";import{N as d}from"../assets/no-shadow-element-Dckeu5Ol.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
+ <img alt="see ingredients in icon" src="https://storage.googleapis.com/assets.miam.tech/generic/icons/InCart_primary.svg"/>
3
+ <span>Voir les ingrédients</span>
4
+ `,this.addToBasketContent=`
5
+ <img alt="add ingredients to basket icon" src="https://storage.googleapis.com/assets.miam.tech/generic/icons/Basket.svg"/>
6
+ <span>Acheter les ingrédients</span>
7
+ `}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.observer&&this.ctaBtn&&(this.observer.unobserve(this.ctaBtn),this.observer.disconnect())}render(){this.ctaBtn=this.querySelector(".mealz-add-to-cart-cta.mealz-add-to-cart-cta--static"),this.fixedCtaBtn=this.querySelector(".mealz-add-to-cart-cta.mealz-add-to-cart-cta--fixed"),!(!this.ctaBtn||!this.fixedCtaBtn)&&(this.getInitialStatus(),this.setupEventListeners(),this.setupIntersectionObserver())}getInitialStatus(){var e;const t=(e=this.attributes["starting-data"])==null?void 0:e.value;if(!t)return;const{recipeId:s,inBasket:a}=JSON.parse(t);this.recipeId=s,this.inBasket=a!==void 0?a:!1,this.removeAttribute("starting-data")}setupEventListeners(){this.ctaBtn.addEventListener("click",t=>{t.stopPropagation(),this.toggleBasketState()}),this.fixedCtaBtn.addEventListener("click",t=>{t.stopPropagation(),this.toggleBasketState()})}setupIntersectionObserver(){this.observer=new IntersectionObserver(([t])=>{this.showFixedButton=!t.isIntersecting,this.fixedCtaBtn.style.display=this.showFixedButton?"flex":"none",this.showFixedButton&&(this.fixedCtaBtn.style.animation="slideUp 300ms cubic-bezier(.25,.8,.25,1)")},{threshold:0}),this.observer.observe(this.ctaBtn)}toggleBasketState(){this.inBasket=!this.inBasket,this.updateDOM(),this.handleCtaClick()}updateDOM(){this.updateButtonState(this.ctaBtn),this.updateButtonState(this.fixedCtaBtn)}updateButtonState(t){t&&(this.inBasket?(t.className=t.className.replace("primary","secondary"),t.innerHTML=this.inBasketContent):(t.className=t.className.replace("secondary","primary"),t.innerHTML=this.addToBasketContent))}handleCtaClick(){const t=new CustomEvent("addToCartCtaClicked",{detail:{inBasket:this.inBasket,recipeId:this.recipeId}});document.dispatchEvent(t)}};r=l([o("mealz-add-to-cart-cta")],r);customElements.get("mealz-add-to-cart-cta")||customElements.define("mealz-add-to-cart-cta",r);
@@ -0,0 +1 @@
1
+ .mealz-all-recipes-banner__button{display:flex;padding:24px 0;margin-bottom:16px;justify-content:center;align-items:center;align-self:stretch;border-radius:8px;background:var(--mealz-ds-color-neutral-100, #EFF1F3);text-decoration:none;cursor:pointer}@media (max-width: 1023px){.mealz-all-recipes-banner__button{margin-right:24px}}@media (max-width: 700px){.mealz-all-recipes-banner__button{margin-right:16px}}.mealz-all-recipes-banner__text{color:var(--mealz-ds-color-neutral-black, #0F191F);margin-right:8px}.mealz-all-recipes-banner__icon{transform:rotate(-180deg);height:24px}
@@ -0,0 +1 @@
1
+ import{e as b,_ as h,t as f}from"./no-shadow-element-Dckeu5Ol.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};
@@ -0,0 +1 @@
1
+ import{_ as u,S as l,b as a,c as d,d as f}from"./no-shadow-element-Dckeu5Ol.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};
@@ -0,0 +1 @@
1
+ function a(e){return e.charAt(0).toUpperCase()+e.slice(1)}export{a as c};
@@ -0,0 +1 @@
1
+ import{O,x as v}from"./no-shadow-element-Dckeu5Ol.js";import{p as b,b as h,f as m}from"./from-BJlgdPzK.js";import{m as A}from"./mapOneOrManyArgs-BgYvpJCA.js";import{c as S}from"./OperatorSubscriber-C_ZC-4p2.js";import{e as j}from"./executeSchedule-BoZ8McHf.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};
@@ -0,0 +1 @@
1
+ import{a as d}from"./async-Cf5pIG6K.js";import{o as m,c as v}from"./OperatorSubscriber-C_ZC-4p2.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-Cf5pIG6K.js";import{t as m}from"./take-C-_8_Rq7.js";import{m as a}from"./map-CtoF0MFx.js";import{m as e}from"./mergeMap-DkeMJrVP.js";import{i as f}from"./innerFrom-cJ8wLVnp.js";import{t as p}from"./timer-FQ7WMtFD.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};
@@ -0,0 +1 @@
1
+ import{x as d}from"./no-shadow-element-Dckeu5Ol.js";import{o,c as a}from"./OperatorSubscriber-C_ZC-4p2.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-Dckeu5Ol.js";var t=new r(function(e){return e.complete()});export{t as E};
@@ -0,0 +1 @@
1
+ import{e as d}from"./no-shadow-element-Dckeu5Ol.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};
@@ -0,0 +1 @@
1
+ import{o as c,c as i}from"./OperatorSubscriber-C_ZC-4p2.js";function u(e,n){return c(function(o,r){var a=0;o.subscribe(i(r,function(t){return e.call(n,t,a++)&&r.next(t)}))})}export{u as f};
@@ -0,0 +1 @@
1
+ import{e as m,O as f}from"./no-shadow-element-Dckeu5Ol.js";import{i as S,e as a}from"./executeSchedule-BoZ8McHf.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-cJ8wLVnp.js";import{o as v,c as E}from"./OperatorSubscriber-C_ZC-4p2.js";function u(e){return e[e.length-1]}function z(e){return m(u(e))?e.pop():void 0}function B(e){return S(u(e))?e.pop():void 0}function C(e,n){return typeof u(e)=="number"?e.pop():n}function d(e,n){return n===void 0&&(n=0),v(function(r,t){r.subscribe(E(t,function(o){return a(t,e,function(){return t.next(o)},n)},function(){return a(t,e,function(){return t.complete()},n)},function(o){return a(t,e,function(){return t.error(o)},n)}))})}function p(e,n){return n===void 0&&(n=0),v(function(r,t){t.add(e.schedule(function(){return r.subscribe(t)},n))})}function F(e,n){return i(e).pipe(p(n),d(n))}function P(e,n){return i(e).pipe(p(n),d(n))}function T(e,n){return new f(function(r){var t=0;return n.schedule(function(){t===e.length?r.complete():(r.next(e[t++]),r.closed||this.schedule())})})}function G(e,n){return new f(function(r){var t;return a(r,n,function(){t=e[x](),a(r,n,function(){var o,c,l;try{o=t.next(),c=o.value,l=o.done}catch(h){r.error(h);return}l?r.complete():r.next(c)},0,!0)}),function(){return m(t==null?void 0:t.return)&&t.return()}})}function s(e,n){if(!e)throw new Error("Iterable cannot be null");return new f(function(r){a(r,n,function(){var t=e[Symbol.asyncIterator]();a(r,n,function(){t.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function N(e,n){return s(I(e),n)}function _(e,n){if(e!=null){if(O(e))return F(e,n);if(w(e))return T(e,n);if(A(e))return P(e,n);if(k(e))return s(e,n);if(y(e))return G(e,n);if(L(e))return N(e,n)}throw R(e)}function D(e,n){return n?_(e,n):i(e)}export{C as a,z as b,D as f,B as p};
@@ -0,0 +1 @@
1
+ import{m as s}from"./no-shadow-element-Dckeu5Ol.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};
@@ -0,0 +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-Dckeu5Ol.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};
@@ -0,0 +1 @@
1
+ import{o as c,c as i}from"./OperatorSubscriber-C_ZC-4p2.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-Dckeu5Ol.js";import{m as o}from"./map-CtoF0MFx.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-DkeMJrVP.js";import{x as n}from"./no-shadow-element-Dckeu5Ol.js";import{i}from"./innerFrom-cJ8wLVnp.js";import{E as s}from"./empty-DzB-G1O3.js";import{p as f,a as p,f as g}from"./from-BJlgdPzK.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};
@@ -0,0 +1 @@
1
+ import{m as C}from"./map-CtoF0MFx.js";import{i as x}from"./innerFrom-cJ8wLVnp.js";import{c as h,o as F}from"./OperatorSubscriber-C_ZC-4p2.js";import"./executeSchedule-BoZ8McHf.js";import{e as I}from"./no-shadow-element-Dckeu5Ol.js";function b(f,e,n,i,t,v,u,k){var o=[],r=0,g=0,c=!1,d=function(){c&&!o.length&&!r&&e.complete()},y=function(a){return r<i?s(a):o.push(a)},s=function(a){r++;var l=!1;x(n(a,g++)).subscribe(h(e,function(m){e.next(m)},function(){l=!0},void 0,function(){if(l)try{r--;for(var m=function(){var p=o.shift();u||s(p)};o.length&&r<i;)m();d()}catch(p){e.error(p)}}))};return f.subscribe(h(e,y,function(){c=!0,d()})),function(){}}function N(f,e,n){return n===void 0&&(n=1/0),I(e)?N(function(i,t){return C(function(v,u){return e(i,v,t,u)})(x(f(i,t)))},n):(typeof e=="number"&&(n=e),F(function(i,t){return b(i,t,f,n)}))}export{N as m};
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */const L=globalThis,rt=L.ShadowRoot&&(L.ShadyCSS===void 0||L.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nt=Symbol(),it=new WeakMap;let St=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==nt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(rt&&t===void 0){const r=e!==void 0&&e.length===1;r&&(t=it.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&it.set(e,t))}return t}toString(){return this.cssText}};const Mt=n=>new St(typeof n=="string"?n:n+"",void 0,nt),ye=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((r,s,i)=>r+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[i+1],n[0]);return new St(e,n,nt)},jt=(n,t)=>{if(rt)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const r=document.createElement("style"),s=L.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=e.cssText,n.appendChild(r)}},ot=rt?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return Mt(e)})(n):n;/**
6
+ * @license
7
+ * Copyright 2017 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ */const{is:Ht,defineProperty:Lt,getOwnPropertyDescriptor:Nt,getOwnPropertyNames:zt,getOwnPropertySymbols:Bt,getPrototypeOf:Vt}=Object,_=globalThis,at=_.trustedTypes,qt=at?at.emptyScript:"",q=_.reactiveElementPolyfillSupport,U=(n,t)=>n,Y={toAttribute(n,t){switch(t){case Boolean:n=n?qt:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},At=(n,t)=>!Ht(n,t),lt={attribute:!0,type:String,converter:Y,reflect:!1,hasChanged:At};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),_.litPropertyMetadata??(_.litPropertyMetadata=new WeakMap);class w 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=lt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),s=this.getPropertyDescriptor(t,r,e);s!==void 0&&Lt(this.prototype,t,s)}}static getPropertyDescriptor(t,e,r){const{get:s,set:i}=Nt(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return s==null?void 0:s.call(this)},set(o){const c=s==null?void 0:s.call(this);i.call(this,o),this.requestUpdate(t,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??lt}static _$Ei(){if(this.hasOwnProperty(U("elementProperties")))return;const t=Vt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(U("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(U("properties"))){const e=this.properties,r=[...zt(e),...Bt(e)];for(const s of r)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[r,s]of e)this.elementProperties.set(r,s)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const s=this._$Eu(e,r);s!==void 0&&this._$Eh.set(s,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 s of r)e.unshift(ot(s))}else t!==void 0&&e.push(ot(t));return e}static _$Eu(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return jt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostConnected)==null?void 0:r.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){var i;const r=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,r);if(s!==void 0&&r.reflect===!0){const o=(((i=r.converter)==null?void 0:i.toAttribute)!==void 0?r.converter:Y).toAttribute(e,r.type);this._$Em=t,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(t,e){var i;const r=this.constructor,s=r._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const o=r.getPropertyOptions(s),c=typeof o.converter=="function"?{fromAttribute:o.converter}:((i=o.converter)==null?void 0:i.fromAttribute)!==void 0?o.converter:Y;this._$Em=s,this[s]=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??At)(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[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[i,o]of s)o.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(r=this._$EO)==null||r.forEach(s=>{var i;return(i=s.hostUpdate)==null?void 0:i.call(s)}),this.update(e)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var s;return(s=r.hostUpdated)==null?void 0:s.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){}}w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[U("elementProperties")]=new Map,w[U("finalized")]=new Map,q==null||q({ReactiveElement:w}),(_.reactiveElementVersions??(_.reactiveElementVersions=[])).push("2.0.4");var G=function(n,t){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])},G(n,t)};function j(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");G(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ve(n,t,e,r){function s(i){return i instanceof e?i:new e(function(o){o(i)})}return new(e||(e=Promise))(function(i,o){function c(f){try{l(r.next(f))}catch(h){o(h)}}function a(f){try{l(r.throw(f))}catch(h){o(h)}}function l(f){f.done?i(f.value):s(f.value).then(c,a)}l((r=r.apply(n,t||[])).next())})}function be(n,t){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,s,i,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,s&&(i=l[0]&2?s.return:l[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,l[1])).done)return i;switch(s=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,s=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){e.label=l[1];break}if(l[0]===6&&e.label<i[1]){e.label=i[1],i=l;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(l);break}i[2]&&e.ops.pop(),e.trys.pop();continue}l=t.call(n,e)}catch(f){l=[6,f],s=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function R(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Z(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),s,i=[],o;try{for(;(t===void 0||t-- >0)&&!(s=r.next()).done;)i.push(s.value)}catch(c){o={error:c}}finally{try{s&&!s.done&&(e=r.return)&&e.call(r)}finally{if(o)throw o.error}}return i}function J(n,t,e){if(e||arguments.length===2)for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return n.concat(i||Array.prototype.slice.call(t))}function Q(n){return this instanceof Q?(this.v=n,this):new Q(n)}function me(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e.apply(n,t||[]),s,i=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",o),s[Symbol.asyncIterator]=function(){return this},s;function o(u){return function(v){return Promise.resolve(v).then(u,h)}}function c(u,v){r[u]&&(s[u]=function(y){return new Promise(function(It,kt){i.push([u,y,It,kt])>1||a(u,y)})},v&&(s[u]=v(s[u])))}function a(u,v){try{l(r[u](v))}catch(y){d(i[0][3],y)}}function l(u){u.value instanceof Q?Promise.resolve(u.value.v).then(f,h):d(i[0][2],u)}function f(u){a("next",u)}function h(u){a("throw",u)}function d(u,v){u(v),i.shift(),i.length&&a(i[0][0],i[0][1])}}function _e(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=n[Symbol.asyncIterator],e;return t?t.call(n):(n=typeof R=="function"?R(n):n[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(i){e[i]=n[i]&&function(o){return new Promise(function(c,a){o=n[i](o),s(c,a,o.done,o.value)})}}function s(i,o,c,a){Promise.resolve(a).then(function(l){i({value:l,done:c})},o)}}function b(n){return typeof n=="function"}function wt(n){var t=function(r){Error.call(r),r.stack=new Error().stack},e=n(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var D=wt(function(n){return function(e){n(this),this.message=e?e.length+` errors occurred during unsubscription:
10
+ `+e.map(function(r,s){return s+1+") "+r.toString()}).join(`
11
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function X(n,t){if(n){var e=n.indexOf(t);0<=e&&n.splice(e,1)}}var B=function(){function n(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var t,e,r,s,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var c=R(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){i=y instanceof D?y.errors:[y]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=R(h),u=d.next();!u.done;u=d.next()){var v=u.value;try{ct(v)}catch(y){i=i??[],y instanceof D?i=J(J([],Z(i)),Z(y.errors)):i.push(y)}}}catch(y){r={error:y}}finally{try{u&&!u.done&&(s=d.return)&&s.call(d)}finally{if(r)throw r.error}}}if(i)throw new D(i)}},n.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)ct(t);else{if(t instanceof n){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},n.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},n.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},n.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&X(e,t)},n.prototype.remove=function(t){var e=this._finalizers;e&&X(e,t),t instanceof n&&t._removeParent(this)},n.EMPTY=function(){var t=new n;return t.closed=!0,t}(),n}(),Et=B.EMPTY;function xt(n){return n instanceof B||n&&"closed"in n&&b(n.remove)&&b(n.add)&&b(n.unsubscribe)}function ct(n){b(n)?n():n.unsubscribe()}var Dt={Promise:void 0},Ft={setTimeout:function(n,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,J([n,t],Z(e)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function Wt(n){Ft.setTimeout(function(){throw n})}function ut(){}function N(n){n()}var Pt=function(n){j(t,n);function t(e){var r=n.call(this)||this;return r.isStopped=!1,e?(r.destination=e,xt(e)&&e.add(r)):r.destination=Gt,r}return t.create=function(e,r,s){return new tt(e,r,s)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(B),Kt=function(){function n(t){this.partialObserver=t}return n.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(r){H(r)}},n.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){H(r)}else H(t)},n.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){H(e)}},n}(),tt=function(n){j(t,n);function t(e,r,s){var i=n.call(this)||this,o;return b(e)||!e?o={next:e??void 0,error:r??void 0,complete:s??void 0}:o=e,i.destination=new Kt(o),i}return t}(Pt);function H(n){Wt(n)}function Yt(n){throw n}var Gt={closed:!0,next:ut,error:Yt,complete:ut},Zt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Jt(n){return n}function Qt(n){return n.length===0?Jt:n.length===1?n[0]:function(e){return n.reduce(function(r,s){return s(r)},e)}}var ht=function(){function n(t){t&&(this._subscribe=t)}return n.prototype.lift=function(t){var e=new n;return e.source=this,e.operator=t,e},n.prototype.subscribe=function(t,e,r){var s=this,i=te(t)?t:new tt(t,e,r);return N(function(){var o=s,c=o.operator,a=o.source;i.add(c?c.call(i,a):a?s._subscribe(i):s._trySubscribe(i))}),i},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},n.prototype.forEach=function(t,e){var r=this;return e=ft(e),new e(function(s,i){var o=new tt({next:function(c){try{t(c)}catch(a){i(a),o.unsubscribe()}},error:i,complete:s});r.subscribe(o)})},n.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},n.prototype[Zt]=function(){return this},n.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Qt(t)(this)},n.prototype.toPromise=function(t){var e=this;return t=ft(t),new t(function(r,s){var i;e.subscribe(function(o){return i=o},function(o){return s(o)},function(){return r(i)})})},n.create=function(t){return new n(t)},n}();function ft(n){var t;return(t=n??Dt.Promise)!==null&&t!==void 0?t:Promise}function Xt(n){return n&&b(n.next)&&b(n.error)&&b(n.complete)}function te(n){return n&&n instanceof Pt||Xt(n)&&xt(n)}var ee=wt(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ot=function(n){j(t,n);function t(){var e=n.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var r=new pt(this,this);return r.operator=e,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new ee},t.prototype.next=function(e){var r=this;N(function(){var s,i;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=R(r.currentObservers),c=o.next();!c.done;c=o.next()){var a=c.value;a.next(e)}}catch(l){s={error:l}}finally{try{c&&!c.done&&(i=o.return)&&i.call(o)}finally{if(s)throw s.error}}}})},t.prototype.error=function(e){var r=this;N(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var s=r.observers;s.length;)s.shift().error(e)}})},t.prototype.complete=function(){var e=this;N(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var r=this,s=this,i=s.hasError,o=s.isStopped,c=s.observers;return i||o?Et:(this.currentObservers=null,c.push(e),new B(function(){r.currentObservers=null,X(c,e)}))},t.prototype._checkFinalizedStatuses=function(e){var r=this,s=r.hasError,i=r.thrownError,o=r.isStopped;s?e.error(i):o&&e.complete()},t.prototype.asObservable=function(){var e=new ht;return e.source=this,e},t.create=function(e,r){return new pt(e,r)},t}(ht),pt=function(n){j(t,n);function t(e,r){var s=n.call(this)||this;return s.destination=e,s.source=r,s}return t.prototype.next=function(e){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.next)===null||s===void 0||s.call(r,e)},t.prototype.error=function(e){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.error)===null||s===void 0||s.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,s;return(s=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&s!==void 0?s:Et},t}(Ot),re=function(n){j(t,n);function t(e){var r=n.call(this)||this;return r._value=e,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var r=n.prototype._subscribe.call(this,e);return!r.closed&&e.next(this._value),r},t.prototype.getValue=function(){var e=this,r=e.hasError,s=e.thrownError,i=e._value;if(r)throw s;return this._throwIfClosed(),i},t.prototype.next=function(e){n.prototype.next.call(this,this._value=e)},t}(Ot);/**
12
+ * @license
13
+ * Copyright 2017 Google LLC
14
+ * SPDX-License-Identifier: BSD-3-Clause
15
+ */const C=globalThis,z=C.trustedTypes,dt=z?z.createPolicy("lit-html",{createHTML:n=>n}):void 0,Ut="$lit$",m=`lit$${Math.random().toFixed(9).slice(2)}$`,Ct="?"+m,ne=`<${Ct}>`,S=document,I=()=>S.createComment(""),k=n=>n===null||typeof n!="object"&&typeof n!="function",st=Array.isArray,se=n=>st(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",F=`[
16
+ \f\r]`,O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yt=/-->/g,vt=/>/g,$=RegExp(`>|${F}(?:([^\\s"'>=/]+)(${F}*=${F}*(?:[^
17
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),bt=/'/g,mt=/"/g,Tt=/^(?:script|style|textarea|title)$/i,ie=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),$e=ie(1),E=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),_t=new WeakMap,g=S.createTreeWalker(S,129);function Rt(n,t){if(!st(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return dt!==void 0?dt.createHTML(t):t}const oe=(n,t)=>{const e=n.length-1,r=[];let s,i=t===2?"<svg>":t===3?"<math>":"",o=O;for(let c=0;c<e;c++){const a=n[c];let l,f,h=-1,d=0;for(;d<a.length&&(o.lastIndex=d,f=o.exec(a),f!==null);)d=o.lastIndex,o===O?f[1]==="!--"?o=yt:f[1]!==void 0?o=vt:f[2]!==void 0?(Tt.test(f[2])&&(s=RegExp("</"+f[2],"g")),o=$):f[3]!==void 0&&(o=$):o===$?f[0]===">"?(o=s??O,h=-1):f[1]===void 0?h=-2:(h=o.lastIndex-f[2].length,l=f[1],o=f[3]===void 0?$:f[3]==='"'?mt:bt):o===mt||o===bt?o=$:o===yt||o===vt?o=O:(o=$,s=void 0);const u=o===$&&n[c+1].startsWith("/>")?" ":"";i+=o===O?a+ne:h>=0?(r.push(l),a.slice(0,h)+Ut+a.slice(h)+m+u):a+m+(h===-2?c:u)}return[Rt(n,i+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};class M{constructor({strings:t,_$litType$:e},r){let s;this.parts=[];let i=0,o=0;const c=t.length-1,a=this.parts,[l,f]=oe(t,e);if(this.el=M.createElement(l,r),g.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=g.nextNode())!==null&&a.length<c;){if(s.nodeType===1){if(s.hasAttributes())for(const h of s.getAttributeNames())if(h.endsWith(Ut)){const d=f[o++],u=s.getAttribute(h).split(m),v=/([.?@])?(.*)/.exec(d);a.push({type:1,index:i,name:v[2],strings:u,ctor:v[1]==="."?le:v[1]==="?"?ce:v[1]==="@"?ue:V}),s.removeAttribute(h)}else h.startsWith(m)&&(a.push({type:6,index:i}),s.removeAttribute(h));if(Tt.test(s.tagName)){const h=s.textContent.split(m),d=h.length-1;if(d>0){s.textContent=z?z.emptyScript:"";for(let u=0;u<d;u++)s.append(h[u],I()),g.nextNode(),a.push({type:2,index:++i});s.append(h[d],I())}}}else if(s.nodeType===8)if(s.data===Ct)a.push({type:2,index:i});else{let h=-1;for(;(h=s.data.indexOf(m,h+1))!==-1;)a.push({type:7,index:i}),h+=m.length-1}i++}}static createElement(t,e){const r=S.createElement("template");return r.innerHTML=t,r}}function x(n,t,e=n,r){var o,c;if(t===E)return t;let s=r!==void 0?(o=e.o)==null?void 0:o[r]:e.l;const i=k(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==i&&((c=s==null?void 0:s._$AO)==null||c.call(s,!1),i===void 0?s=void 0:(s=new i(n),s._$AT(n,e,r)),r!==void 0?(e.o??(e.o=[]))[r]=s:e.l=s),s!==void 0&&(t=x(n,s._$AS(n,t.values),s,r)),t}class ae{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,s=((t==null?void 0:t.creationScope)??S).importNode(e,!0);g.currentNode=s;let i=g.nextNode(),o=0,c=0,a=r[0];for(;a!==void 0;){if(o===a.index){let l;a.type===2?l=new P(i,i.nextSibling,this,t):a.type===1?l=new a.ctor(i,a.name,a.strings,this,t):a.type===6&&(l=new he(i,this,t)),this._$AV.push(l),a=r[++c]}o!==(a==null?void 0:a.index)&&(i=g.nextNode(),o++)}return g.currentNode=S,s}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 P{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this.v}constructor(t,e,r,s){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=s,this.v=(s==null?void 0:s.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=x(this,t,e),k(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):se(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&&k(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:r}=t,s=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=M.createElement(Rt(r.h,r.h[0]),this.options)),r);if(((i=this._$AH)==null?void 0:i._$AD)===s)this._$AH.p(e);else{const o=new ae(s,this),c=o.u(this.options);o.p(e),this.T(c),this._$AH=o}}_$AC(t){let e=_t.get(t.strings);return e===void 0&&_t.set(t.strings,e=new M(t)),e}k(t){st(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,s=0;for(const i of t)s===e.length?e.push(r=new P(this.O(I()),this.O(I()),this,this.options)):r=e[s],r._$AI(i),s++;s<e.length&&(this._$AR(r&&r._$AB.nextSibling,s),e.length=s)}_$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 s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}}class V{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,s,i){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=i,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,s){const i=this.strings;let o=!1;if(i===void 0)t=x(this,t,e,0),o=!k(t)||t!==this._$AH&&t!==E,o&&(this._$AH=t);else{const c=t;let a,l;for(t=i[0],a=0;a<i.length-1;a++)l=x(this,c[r+a],e,a),l===E&&(l=this._$AH[a]),o||(o=!k(l)||l!==this._$AH[a]),l===p?t=p:t!==p&&(t+=(l??"")+i[a+1]),this._$AH[a]=l}o&&!s&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class le extends V{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}class ce extends V{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class ue extends V{constructor(t,e,r,s,i){super(t,e,r,s,i),this.type=5}_$AI(t,e=this){if((t=x(this,t,e,0)??p)===E)return;const r=this._$AH,s=t===p&&r!==p||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==p&&(r===p||s);s&&this.element.removeEventListener(this.name,this,r),i&&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 he{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){x(this,t)}}const ge={I:P},W=C.litHtmlPolyfillSupport;W==null||W(M,P),(C.litHtmlVersions??(C.litHtmlVersions=[])).push("3.2.0");const fe=(n,t,e)=>{const r=(e==null?void 0:e.renderBefore)??t;let s=r._$litPart$;if(s===void 0){const i=(e==null?void 0:e.renderBefore)??null;r._$litPart$=s=new P(t.insertBefore(I(),i),i,void 0,e??{})}return s._$AI(n),s};/**
18
+ * @license
19
+ * Copyright 2017 Google LLC
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};
@@ -0,0 +1 @@
1
+ import{p as o,f as s}from"./from-BJlgdPzK.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};
@@ -0,0 +1 @@
1
+ import{m,k as s}from"./no-shadow-element-Dckeu5Ol.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};
@@ -0,0 +1 @@
1
+ function u(t){return t.discountType==="strikethrough_price_perc"||t.discountType==="strikethrough_price"?t.discountedPrice:t.unit}function n(t){if(!(t.discountType==="undiscounted"||t.discountType==="unsupported"))return t.unit}export{u as a,n as g};
@@ -0,0 +1,189 @@
1
+ import"../price/price.min.js";import"../counter/counter.min.js";import"./promotion-badge-DCM0C5Lw.js";import{N as h,m as c,k as a,v as E,D as z}from"./no-shadow-element-Dckeu5Ol.js";import{t as m}from"./custom-element-BhZVzxrc.js";import{n as l}from"./property-B_Up5EGr.js";import{P as k,S as P}from"./price-3QEU2vDV.js";import{c as x}from"./capitalize-DUAqYmp4.js";import{d as I}from"./delay-DY9ohHpd.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.css",import.meta.url)}formatNumber(t){const s=c.user.getLanguage()||"fr";return new Intl.NumberFormat(s,{minimumFractionDigits:1,maximumFractionDigits:2}).format(t)}render(){return a`
2
+ <div class="mealz-product-badges">
3
+ <!-- SPONSORED BADGE -->
4
+ ${this.isSponsored?a`
5
+ <div class="mealz-ds-badge mealz-ds-text size-xs weight-l">
6
+ <span>Sponsorisé</span>
7
+ </div>
8
+ `:a``}
9
+ <!-- PRODUCT CAPACITY -->
10
+ <div class="mealz-ds-badge mealz-ds-text size-xs weight-l outline">
11
+ ${this.formatNumber(this.item.capacityVolume||this.item.attributes["capacity-volume"])}
12
+ ${this.item.capacityUnit||this.item.attributes["capacity-unit"]}
13
+ </div>
14
+ <!-- PRODUCT PRICE PER UNIT -->
15
+ <span class="mealz-ds-text size-xs mealz-product-badges__details product-price-per-unit">
16
+ ${this.priceService.priceTemplate(this.price.pricePerUnit)}
17
+ /${this.price.unitOfMeasurement}
18
+ </span>
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 S=Object.defineProperty,U=Object.getOwnPropertyDescriptor,$=(t,s,r,i)=>{for(var e=i>1?void 0:i?U(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 _=class extends h{constructor(){super(),this.styleURL=new URL("/unavailable-badge.css",import.meta.url)}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}clicked(){const t=new CustomEvent("clicked",{bubbles:!0,composed:!0});this.dispatchEvent(t)}render(){return a`
21
+ <button
22
+ class="mealz-ds-badge mealz-unavailable-badge ${this.numberUnavailable?"pointer":""}"
23
+ ?disabled="${!this.numberUnavailable}"
24
+ @click="${()=>this.clicked()}">
25
+ <div class="mealz-unavailable-badge__icon">!</div>
26
+ ${this.numberUnavailable?"":a`<span>Indisponible</span>`}
27
+ ${this.numberUnavailable?a`<span>${this.numberUnavailable}</span>`:""}
28
+ ${this.numberUnavailable&&this.numberUnavailable<=1?a`<span>produit indisponible</span>`:""}
29
+ ${this.numberUnavailable&&this.numberUnavailable>1?a`<span>produits indisponible</span>`:""}
30
+ </button>
31
+ `}};$([l({type:Number})],_.prototype,"numberUnavailable",2);_=$([m("mealz-unavailable-badge")],_);var R=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&&R(s,r,e),e};let y=class extends h{constructor(){super(),this.styleURL=new URL("/out-of-stock-overlay.css",import.meta.url)}replacedClicked(){const t=new CustomEvent("replacedClicked",{bubbles:!0,composed:!0});this.dispatchEvent(t)}render(){return a`
32
+ <div class="mealz-out-of-stock-overlay">
33
+ <div class="mealz-out-of-stock-overlay__container"></div>
34
+ <div class="mealz-out-of-stock-overlay__footer">
35
+ <mealz-unavailable-badge></mealz-unavailable-badge>
36
+ <button @click="${()=>this.replacedClicked()}"
37
+ class="mealz-ds-button mealz-ds-text weight-l small primary reverse">Remplacer</button>
38
+ </div>
39
+ </div>
40
+ `}};f([l()],y.prototype,"priceData",2);y=f([m("mealz-out-of-stock-overlay")],y);class A extends P{constructor(){super(...arguments),this.guests$=new E}updateGuests(s){this.guests$.next(s)}}var B=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&&B(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=A.getInstance(),this.modifiedIngQty=0,this.styleURL=new URL("/product-card.css",import.meta.url)}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
+ ${(t=this.product)!=null&&t.basketEntry?this.renderProductCard():z}
42
+ `}renderProductCard(){return a`
43
+ <div
44
+ class="mealz-product-card
45
+ ${this.status==="active"?"added":""}
46
+ ${v.includes(this.status)?"disabled":""}
47
+ ${this.status==="out_of_stock"?"out_of_stock":""} ${this.status==="unavailable"?"unavailable":""}"
48
+ >
49
+ ${this.renderOutOfStockOverlay()}
50
+ ${this.renderHeader()}
51
+ <div
52
+ class="
53
+ mealz-product-card__content
54
+ ${g.includes(this.status)?"disabled":""}
55
+ ${this.status==="unavailable"?"unavailable":""}">
56
+ ${T.includes(this.status)?this.renderEnabledProductCard():this.renderDisabledOrUnavailableProduct()}
57
+ </div>
58
+ ${this.renderCalculatedForXRecipes()}
59
+ </div>
60
+ `}renderEnabledProductCard(){return a`
61
+ <mealz-promotion-badge .priceData="${this.product.price}"></mealz-promotion-badge>
62
+ <div class="mealz-product-card__selected-product">
63
+ <div class="mealz-product-card__picture-column">
64
+ <img class="mealz-product-card__picture" alt="product"
65
+ src="${this.productImage}"
66
+ >
67
+ <!-- @error="${t=>t.target.src=this.contextService.defaultIngredientPicture}
68
+ " -->
69
+ </div>
70
+ <div class="mealz-product-card__info-column">
71
+ <span class="mealz-ds-text size-xs weight-xl mealz-product-card__details product-brand">
72
+ ${this.product.basketEntry.selectedItem.attributes.brand}
73
+ </span>
74
+ <span class="mealz-ds-text size-xs mealz-product-card__details product-fullname">
75
+ ${this.product.basketEntry.selectedItem.attributes.name}
76
+ </span>
77
+ <mealz-product-badges
78
+ .isSponsored="${this.isSponsored}"
79
+ .item="${this.product.basketEntry.selectedItem}"
80
+ .price="${this.product.price}"
81
+ ></mealz-product-badges>
82
+ </div>
83
+ </div>
84
+ <div class="mealz-product-card__lower-action">
85
+ <mealz-price
86
+ class="mealz-product-card__price mealz-ds-text size-l weight-xxl"
87
+ .price="${this.product.price.unit}">
88
+ </mealz-price>
89
+ <div class="mealz-product-card__cta">
90
+ ${this.renderCTA()}
91
+ </div>
92
+ </div>
93
+ ${this.renderFooterActions()}
94
+ `}renderOutOfStockOverlay(){return this.status==="out_of_stock"?a`
95
+ <mealz-out-of-stock-overlay
96
+ @replacedClicked="${()=>this.replaceProduct(!0)}"></mealz-out-of-stock-overlay>
97
+ `:z}renderHeader(){return a`
98
+ <div
99
+ class="mealz-product-card__header
100
+ ${this.status==="active"?"added":""}
101
+ ${g.includes(this.status)?"disabled":""}
102
+ ${this.status==="unavailable"?"unavailable":""}">
103
+ <span
104
+ class="
105
+ mealz-product-card__header-name
106
+ mealz-ds-text weight-xl
107
+ ${v.includes(this.status)?"mealz-product-card__disabled-text":""}"
108
+ >
109
+ ${x(this.product.basketEntry.name)}
110
+ </span>
111
+ <span
112
+ class="
113
+ mealz-product-card__header-quantity
114
+ mealz-ds-text size-s weight-l
115
+ ${v.includes(this.status)?"mealz-product-card__disabled-text":""}"
116
+ >
117
+ <span>${this.modifiedIngQty?this.modifiedIngQty:this.product.ingredient.quantity}</span>
118
+ <span>${this.product.ingredient.attributes.unit}</span>
119
+ </span>
120
+ </div>
121
+ `}renderCalculatedForXRecipes(){return a`
122
+ ${this.isInXRecipes()>1&&this.status==="active"?a`
123
+ <div class="mealz-product-card__footer">
124
+ <div class="mealz-ds-text size-xs weight-xl light-text">
125
+ <span>Calculé pour </span>
126
+ <span>${this.isInXRecipes()}</span>
127
+ <span> repas</span>
128
+ </div>
129
+ </div>
130
+ `:""}
131
+ `}renderFooterActions(){return a`
132
+ <div class="mealz-product-card__footer__actions">
133
+ ${this.status==="initial"?a`
134
+ <button
135
+ class="mealz-ds-button mealz-ds-text weight-l mealz-product-card__ignore-product ghost small"
136
+ @click="${()=>this.ignoreProduct()}">
137
+ <span class="mealz-product-card__disabled-text">Ignorer produit</span>
138
+ </button>
139
+ `:""}
140
+ <button
141
+ @click="${()=>this.replaceProduct(this.status==="initial")}"
142
+ class="mealz-product-card__replace-product mealz-ds-button ghost mealz-ds-text size-s weight-xl"
143
+ >
144
+ <span>Remplacer</span>
145
+ </button>
146
+ </div>
147
+ `}renderCTA(){if(L.includes(this.status))return a`
148
+ ${this.loadingAddToBasket?a`
149
+ <button class="mealz-ds-button mealz-product-card__loading-button square primary">
150
+ <div class="mealz-ds-loader"></div>
151
+ </button>
152
+ `:a`
153
+ <!-- TODO: add disabled state -->
154
+ <button class="mealz-ds-button mealz-product-card__add-product square primary"
155
+ @click="${()=>this.addToBasket()}">
156
+ <img alt="basket icon"
157
+ src="https://storage.googleapis.com/assets.miam.tech/generic/icons/Basket.svg"/>
158
+ </button>
159
+ `}
160
+ `;if(this.status==="active")return a`
161
+ <mealz-counter
162
+ .value="${this.product.basketEntry.quantity}"
163
+ .min="${0}"
164
+ .biColor="${!0}"
165
+ .debounce="${300}"
166
+ .minusLoading="${this.ingredientIsRemoved}"
167
+ @valueChange="${t=>this.updateQuantity(t)}"
168
+ ></mealz-counter>
169
+ `}renderDisabledOrUnavailableProduct(){return a`
170
+ ${g.includes(this.status)?a`
171
+ <span class="mealz-ds-text mealz-product-card__disabled-text">
172
+ Cet ingrédient ne sera pas ajouté à votre panier
173
+ </span>
174
+ <button
175
+ class="mealz-product-card__select-product mealz-ds-button mealz-ds-text size-s weight-xl primary reverse small"
176
+ @click="${()=>this.replaceProduct(!0)}">
177
+ <span>Ajouter un produit</span>
178
+ </button>
179
+ `:""}
180
+ ${this.status==="unavailable"?a`
181
+ <img class="mealz-ds-avatar" src="${this.ingredientPicture}" alt="ingredient picture">
182
+ <mealz-unavailable-badge></mealz-unavailable-badge>
183
+ <button
184
+ class="mealz-product-card__select-product mealz-ds-button mealz-ds-text size-s weight-xl primary reverse small"
185
+ @click="${()=>this.replaceProduct(!0)}">
186
+ <span>Remplacer</span>
187
+ </button>
188
+ `:""}
189
+ `}sendEntryAddEvent(){c.analytics.sendEvent("entry.add",this.analyticsPath,this.props)}sendEntryReplaceEvent(){c.analytics.sendEvent("entry.replace",this.analyticsPath,this.props)}sendEntryIgnoreEvent(){c.analytics.sendEvent("entry.ignore",this.analyticsPath,this.props)}sendEntryDeleteEvent(){c.analytics.sendEvent("entry.delete",this.analyticsPath,this.props)}};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{A as G};
@@ -0,0 +1,12 @@
1
+ import{N as c,k as n}from"./no-shadow-element-Dckeu5Ol.js";import{t as l}from"./custom-element-BhZVzxrc.js";import{n as d}from"./property-B_Up5EGr.js";import{P as u}from"./price-3QEU2vDV.js";var f=Object.defineProperty,v=Object.getOwnPropertyDescriptor,p=(e,r,i,o)=>{for(var t=o>1?void 0:o?v(r,i):r,s=e.length-1,a;s>=0;s--)(a=e[s])&&(t=(o?a(r,i,t):a(t))||t);return o&&t&&f(r,i,t),t};let m=class extends c{constructor(){super(),this.priceService=u.getInstance(),this.styleURL=new URL("/promotion-badge.css",import.meta.url)}getPriceAmountSuffix(){var e;return(e=this.priceData.discountType)!=null&&e.endsWith("_perc")?"%":this.priceService.currencySymbol()}render(){var e;return n`
2
+ <div class="mealz-promotion-badge">
3
+ ${((e=this.priceData)==null?void 0:e.discountAmount)>0?n`
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([d()],m.prototype,"priceData",2);m=p([l("mealz-promotion-badge")],m);
@@ -0,0 +1,5 @@
1
+ import{f as p,u as l}from"./no-shadow-element-Dckeu5Ol.js";/**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */const u={attribute:!0,type:String,converter:l,reflect:!1,hasChanged:p},d=(r=u,n,t)=>{const{kind:s,metadata:a}=t;let o=globalThis.litPropertyMetadata.get(a);if(o===void 0&&globalThis.litPropertyMetadata.set(a,o=new Map),o.set(t.name,r),s==="accessor"){const{name:e}=t;return{set(i){const c=n.get.call(this);n.set.call(this,i),this.requestUpdate(e,c,r)},init(i){return i!==void 0&&this.P(e,void 0,r),i}}}if(s==="setter"){const{name:e}=t;return function(i){const c=this[e];n.call(this,i),this.requestUpdate(e,c,r)}}throw Error("Unsupported decorator location: "+s)};function f(r){return(n,t)=>typeof t=="object"?d(r,n,t):((s,a,o)=>{const e=a.hasOwnProperty(o);return a.constructor.createProperty(o,e?{...s,wrapped:!0}:s),e?Object.getOwnPropertyDescriptor(a,o):void 0})(r,n,t)}export{f as n};
@@ -0,0 +1 @@
1
+ class r{constructor(){this.attributes={title:"","ext-id":"","ext-link":"",description:"","number-of-guests":"","preparation-time":"","preheating-time":"","cooking-time":"","resting-time":"","media-url":"",source:"","informational-page-html":"","filigrane-logo-url":"","informational-sentence":"","order-history":"",difficulty:1,cost:1,suggested:!1,popularity:0,"video-id":"",promoted:!1,editable:!1,position:-1},this.ttl=3600,this.finalTimer=this.attributes["preparation-time"]+this.attributes["preheating-time"]+this.attributes["cooking-time"]+this.attributes["resting-time"]}get title(){return this.attributes.title}get promoted(){return this.attributes.promoted}get guests(){return this.attributes["number-of-guests"]}set guests(t){this.attributes["number-of-guests"]=t}get filigraneLogoUrl(){return this.attributes["filigrane-logo-url"]?this.attributes["filigrane-logo-url"]:null}get sponsorName(){return this.relationships.sponsors.length>0?this.relationships.sponsors[0].attributes.name:null}get sponsorLogoUrl(){var t;return this.relationships.sponsors.data.length>0&&((t=this.included)!=null&&t.length)?this.included.find(e=>e.id===this.relationships.sponsors.data[0].id&&e.type==="sponsors").attributes["logo-url"]:null}get informationalSentence(){return this.attributes["informational-sentence"]}get costLabel(){switch(this.attributes.cost){case 1:return"faible";case 2:return"moyen";case 3:return"élevé";default:return"moyen"}}get orderHistory(){return this.attributes["order-history"]}get preparationTime(){}get cookingTime(){}get restingTime(){}get difficulty(){return this.attributes.difficulty}set difficulty(t){this.attributes.difficulty=t}}export{r as R};
@@ -0,0 +1 @@
1
+ import{m as n}from"./no-shadow-element-Dckeu5Ol.js";function t(e){e&&n.user.setSessionId(e)}export{t as h};
@@ -0,0 +1 @@
1
+ import{o,c as s}from"./OperatorSubscriber-C_ZC-4p2.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};
@@ -0,0 +1,5 @@
1
+ import{n as r}from"./property-B_Up5EGr.js";/**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */function n(t){return r({...t,state:!0,attribute:!1})}export{n as r};