1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[53127,14664,61125],{937657:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/deliveries/past-deliveries",function(){return r(516242)}])},635755:function(e,t,r){"use strict";r.d(t,{$:function(){return v}});var n,i,o=r(456552),a=r(671718),l=r(447178),c=r(140224),u=r(699219);function s(e,t,r,n,i,o,a){try{var l=e[o](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,i)}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function f(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var p=(n=function(e,t){var r,n,i,o,l,c,u=arguments;return function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(s){switch(s.label){case 0:return r=e.from,n=e.subscription,i=e.systemCountry,o=e.locale,l=e.parentSpan,c=e.ratingScale,[4,(u.length>2&&void 0!==u[2]?u[2]:a.Z)("/my-deliveries/past-deliveries",t,{query:d({country:i,locale:o,from:r,subscription:n},c&&{"rating-scale":c}),parentSpan:l})];case 1:return[2,s.sent().json()]}})},i=function(){var e=this,t=arguments;return new Promise(function(r,i){var o=n.apply(e,t);function a(e){s(o,r,i,a,l,"next",e)}function l(e){s(o,r,i,a,l,"throw",e)}a(void 0)})},function(e,t){return i.apply(this,arguments)}),v=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,l.Z)().fetch,i=d({},e,(0,c.O)()),a=[u.Z["deliveries.past-deliveries"],i];return(0,o.useInfiniteQuery)(a,function(e){var r,o;return p(f(d({},i,t),{from:null!==(o=null===(r=e.pageParam)||void 0===r?void 0:r.from)&&void 0!==o?o:t.from}),a,n)},f(d({},r),{getNextPageParam:function(e){if(e.nextWeek)return{from:e.nextWeek}}}))}},990231:function(e,t,r){"use strict";var n,i,o,a,l;r.d(t,{H6:function(){return i},lj:function(){return n},rZ:function(){return o}}),(a=n||(n={})).SINGLE_DELIVERY_FORM="SINGLE_DELIVERY_FORM",a.SINGLE_PAYMENT_FORM="SINGLE_PAYMENT_FORM",a.SINGLE_UNPAUSE_PAYMENT_FORM="SINGLE_UNPAUSE_PAYMENT_FORM",a.ADD_PAYMENT_METHOD_FORM="ADD_PAYMENT_METHOD_FORM",(l=i||(i={})).SINGLE_DELIVERY_FORM_REJECTED="SINGLE_DELIVERY_FORM_REJECTED",l.SINGLE_PAYMENT_FORM_REJECTED="SINGLE_PAYMENT_FORM_REJECTED",l.SINGLE_UNPAUSE_PAYMENT_FORM_REJECTED="SINGLE_UNPAUSE_PAYMENT_FORM_REJECTED",l.ADD_PAYMENT_METHOD_FORM_REJECTED="ADD_PAYMENT_METHOD_FORM_REJECTED",(o||(o={})).SUCCESS_PAYMENT_FORM="SUCCESS_PAYMENT_FORM"},870199:function(e,t,r){"use strict";r.d(t,{f:function(){return b},Z:function(){return m}});
1var n,i=r(687800),o=r(827378),a=r(761403),l=r(189452),c=r(165218),u=r.n(c),s=r(169821),d=r(158256);function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p=(f(n={},d.nK.bounceModal,function(){return Promise.all([r.e(12737),r.e(78526),r.e(30816),r.e(20264),r.e(20828),r.e(52291)]).then(r.bind(r,594803))}),f(n,d.nK.genericModal,function(){return r.e(10783).then(r.bind(r,110783))}),f(n,d.nK.communityDiscountModal,function(){return Promise.all([r.e(47057),r.e(5441),r.e(61785)]).then(r.bind(r,561785))}),f(n,d.nK.communityPerksModal,function(){return Promise.all([r.e(47057),r.e(38579),r.e(12737),r.e(78526),r.e(30816),r.e(20264),r.e(20828),r.e(99184),r.e(5441),r.e(15263)]).then(r.bind(r,151949))}),f(n,d.nK.subscriptionSettingsModal,function(){return Promise.all([r.e(12737),r.e(78526),r.e(30816),r.e(20264),r.e(20828),r.e(28004),r.e(7965),r.e(33040)]).then(r.bind(r,508402))}),f(n,d.nK.paymentMethodModal,function(){return Promise.all([r.e(38579),r.e(12737),r.e(78526),r.e(30816),r.e(20264),r.e(20828),r.e(90730),r.e(56370)]).then(r.bind(r,169881))}),f(n,d.nK.deliveryAddressModal,function(){return Promise.all([r.e(47057),r.e(14206),r.e(9432),r.e(37384),r.e(63581),r.e(50182)]).then(r.bind(r,859149))}),f(n,d.nK.mealSelectionCompletionModal,function(){return Promise.all([r.e(47057),r.e(38579),r.e(17827),r.e(52463),r.e(34330),r.e(16709),r.e(15540),r.e(10681)]).then(r.bind(r,519003))}),f(n,d.nK.snapDialogPaidOrderModal,function(){return Promise.all([r.e(38579),r.e(87365)]).then(r.bind(r,687365))}),f(n,d.nK.xsellOrderSuccessModal,function(){return Promise.all([r.e(47057),r.e(35730)]).then(r.bind(r,435730))}),f(n,d.nK.standaloneHighRiskModal,function(){return r.e(49506).then(r.bind(r,649506))}),f(n,d.nK.loyaltyOptInModal,function(){return Promise.all([r.e(38579),r.e(2715),r.e(83394),r.e(87918),r.e(96715),r.e(47953),r.e(48248),r.e(81298)]).then(r.bind(r,185395))}),f(n,d.nK.loyaltyMissionIntroModal,function(){return Promise.all([r.e(47057),r.e(38579),r.e(73020),r.e(97077),r.e(59546)]).then(r.bind(r,59546))}),f(n,d.nK.loyaltyOnboardingModal,function(){return Promise.all([r.e(38579),r.e(26116),r.e(18451)]).then(r.bind(r,718451))}),f(n,d.nK.doubleProteinOnboardingModal,function(){return r.e(56828).then(r.bind(r,256828))}),f(n,d.nK.referralNudgeModal,function(){return Promise.all([r.e(38579),r.e(3657)]).then(r.bind(r,903657))}),n),v=function(e){var t=e.modalKey,r=e.isActive,n=u()(p[t]);return r?(0,i.tZ)(s.Z,{suspense:!0,children:(0,i.tZ)(n,{},t)}):null};function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}"test"!==(0,l.Z)().NODE_ENV&&(0,a.setAppElement)("#__next");var b=(0,o.createContext)({activeModal:null,setActiveModal:function(){},closeModal:function(){}}),m=function(e){var t,r=e.registerModals,n=e.initialModal,a=e.children,l=function(e){if(Array.isArray(e))return e}(t=(0,o.useState)(null!=n?n:null))||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return y(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=l[0],u=l[1];return(0,i.BX)(b.Provider,{value:{activeModal:c,setActiveModal:u,closeModal:function(e){u(function(t){return t===e?null:t})}},children:[a,r.map(function(e){return(0,i.tZ)(v,{modalKey:e,isActive:c===e},"".concat(e,"+").concat(Date.now()))})]})}},158256:function(e,t,r){"use strict";var n,i;r.d(t,{nK:function(){return n}}),(i=n||(n={})).bounceModal="bounce-modal",i.genericModal="generic-modal",i.communityDiscountModal="community-discount-modal",i.communityPerksModal="community-perks-modal",i.subscriptionSettingsModal="subscription-settings-modal",i.paymentMethodModal="payment-method-modal",i.deliveryAddressModal="delivery-address-modal",i.mealSelectionCompletionModal="meal-selection-completion-modal",i.snapDialogPaidOrderModal="snap-dialog-paid-order-modal",i.xsellOrderSuccessModal="xsell-order-success-modal",i.standaloneHighRiskModal="standalone-high-risk-modal",i.loyaltyOptInModal="loyalty-opt-in-modal",i.loyaltyMissionIntroModal="loyalty-mission-intro-modal",i.loyaltyOnboardingModal="loyalty-onboarding-modal",i.doubleProteinOnboardingModal="double-protein-onboarding-modal",i.referralNudgeModal="referral-nudge-modal"},871961:function(e,t,r){"use strict";r.d(t,{d:function(){return D}});
1var n,i=r(37017),o=function(e,t){var r=(0,i.cn)(e,function(e,n,i){var o=(null==t?void 0:t.reset)?{}:e(r);n(r,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},o,i))});return r},a=o({isEnabled:!1,redirectUrl:"",boxType:""}),l=o({customerStatus:"lead"}),c=o({customerStatus:"lead"}),u=o({initialForm:r(990231).lj.SINGLE_PAYMENT_FORM,screen:"",emitPaymentMethodCancelEvent:function(){},emitPaymentMethodCloseEvent:function(){},emitPaymentMethodSaveEvent:function(){},emitPaymentMethodChooseEvent:function(){}}),s=o({}),d=o({screen:"",subscriptionId:"",emitDeliveryAddressCancelEvent:function(){},emitDeliveryAddressSaveEvent:function(){}}),f=o({onClose:function(){},referrer:"",goToEditMode:function(){},savingsType:"other",savingsAmount:0,points:0,cartPricing:void 0}),p=o({onClose:function(){},onConfirm:function(){},onGoToNextWeek:function(){},cutoffDate:"",hasNextWeek:!1}),v=o({deliveryDate:"",updateDate:"",week:"",referrer:"",onClose:function(){}}),y=o({}),b=o({isOptedIn:!1,hasError:!1}),m=o({mission:{}}),h=o({}),g=o({onClose:function(){},onBrowse:function(){}}),w=o({}),O=r(158256),P=r(870199),S=r(827378),k=r(350344),x=r.n(k),j=o({title:"",subtitle:"",onClose:x(),onConfirm:x(),onDismiss:x(),cancelButtonText:"",confirmButtonText:""},{reset:!0});function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var A=(Z(n={},O.nK.bounceModal,a),Z(n,O.nK.genericModal,j),Z(n,O.nK.communityDiscountModal,l),Z(n,O.nK.communityPerksModal,c),Z(n,O.nK.subscriptionSettingsModal,u),Z(n,O.nK.paymentMethodModal,s),Z(n,O.nK.deliveryAddressModal,d),Z(n,O.nK.mealSelectionCompletionModal,f),Z(n,O.nK.snapDialogPaidOrderModal,p),Z(n,O.nK.xsellOrderSuccessModal,v),Z(n,O.nK.standaloneHighRiskModal,y),Z(n,O.nK.loyaltyOptInModal,b),Z(n,O.nK.loyaltyMissionIntroModal,m),Z(n,O.nK.loyaltyOnboardingModal,h),Z(n,O.nK.doubleProteinOnboardingModal,g),Z(n,O.nK.referralNudgeModal,w),n),D=function(e){var t,r=A[e],n=(0,S.useContext)(P.f),o=function(e){if(Array.isArray(e))return e}(t=(0,i.KO)(r))||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return E(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return E(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0],l=o[1];return{modalState:a,setModalState:l,openModal:function(t){void 0!==t&&l(t),n.setActiveModal(e)},closeModal:function(){return n.closeModal(e)}}}},598669:function(e,t,r){"use strict";r.d(t,{Z:function(){return k}});var n=r(687800);r(827378);var i=r(165218),o=r.n(i),a=r(953137),l=r(581340),c=r(527157),u=r(331227),s=r(543790),d=r(882493),f=r(951251),p=function(){var e=(0,f.gC)(),t=e.campaignEnabledRoutes,r=e.campaignParams,n=(0,l.t)().asPath;return(null==t?void 0:t.some(function(e){return n.includes(e)}))?r:{}},v=function(){var e=(0,l.t)(),t=["/reactivate","/my-account/deliveries/menu","/account-settings","/pages/reactivate","/pages/reaktivieren","/pages/genaktiver","/pages/reactivez","/pages/reaktiver","/pages/heractiveren","/about/2-tier"].every(function(t){return!e.asPath.includes(t)}),r=(0,a.u)({},{enabled:!!t,suspense:!1}).data,n=(0,c.Z)(),i=(0,u.Z)(),o=n===s.Z.goodchop,f=i===d.m.WhiteLabelMealKits||i===d.m.ReadyToEat,v=null==r?void 0:r.items.filter(function(e){var t,r,n,i,o;return e.canceledAt&&(null===(r=e.productType)||void 0===r?void 0:null===(t=r.specs)||void 0===t?void 0:t.recurrency)===0&&(null===(o=e.productType)||void 0===o?void 0:null===(i=o.family)||void 0===i?void 0:null===(n=i.tags)||void 0===n?void 0:n.includes("is_mealbox"))}),y=null==r?void 0:r.items.some(function(e){return e.isActive}),b=!!(t&&v&&v.length>0&&!y),m=p(),h=o?"/settings/plan/reactivate":"/reactivate",g=new URLSearchParams(m);(null==v?void 0:v.length)===1&&g.set("subscriptionId",v[0].id);var w=g.toString();return{showBanner:b,bannerLink:o||f||!w?h:"".concat(h,"?").concat(w)}},y=r(164528),b=r(768587),m=r(783045),h=r(579894),g=r.n(h),w=function(e){var t=e.bannerLink,r=(0,y.ZP)("reactivations").translate,i=(0,m.zv)(),o=r("reactivations.persistent-banner.redesign.title"),a=r("reactivations.persistent-banner.redesign.text"),l=r("reactivations.persistent-banner.redesign.v2.button");return(0,n.tZ)(b.xu,{"data-test-id":"proceed-to-reactivation-banner",role:"alert",backgroundColor:i?"alias.brand.background.default":"neutral.800",display:"flex",alignItems:"center",justifyContent:"center",py:"sm-2",px:["sm-2","md-1","xxl"],children:(0,n.BX)(b.xu,{display:"flex",flexDirection:["column","row","row"],justifyContent:"center",alignItems:"center",width:"100%",maxWidth:"1144px",children:[(0,n.BX)(b.xu,{display:["flex","flex","none"],flexDirection:"column",flex:"1",textAlign:["center","left"],children:[(0,n.BX)(b.xv,{color:"neutral.100",type:"body-md-regular",strong:!0,children:[o," \xa0"]}),(0,n.tZ)(b.xv,{color:"neutral.100",type:"body-md-regular",mr:"xs",children:a})]}),(0,n.tZ)(b.xu,{display:["none","none","flex"],flexDirection:"row",flex:"1",children:(0,n.BX)(b.xv,{color:"neutral.100",type:"body-md-regular",mr:"sm-1",children:[(0,n.tZ)("strong",{children:o})," ",a]})}),(0,n.tZ)(g(),{href:t,passHref:!0,legacyBehavior:!0,children:(0,n.tZ)(b.xu,{maxWidth:["100%","360px"],width:"100%",mt:["sm-2","zero"],as:"a","data-test-id":"proceed-to-reactivation-link",textDecorationLine:"none",children:(0,n.tZ)(b.zx.Primary,{size:"sm",children:l})})})]})})},O=r(999625),P=o()(function(){return r.e(85035).then(r.bind(r,685035)).then(function(e){return e.WinbackVoucherBanner})},{loadableGenerated:{webpack:()=>[685035]}}),S=function(){var e=v(),t=e.showBanner,r=e.bannerLink,i=(0,O.Z)();return t?i?(0,n.tZ)(P,{bannerLink:r}):(0,n.tZ)(w,{bannerLink:r}):null},k=function(){return(0,n.tZ)(f.Bq,{children:(0,n.tZ)(S,{})})}},999625:function(e,t,r){"use strict";var n=r(581340),i=r(200770);t.Z=function(){var e=(0,n.t)().asPath.includes("cancellation"),t=(0,i.Z)();return e&&"US"===t}},951251:function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var l=e[o](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,i)}r.d(t,{Bq:function(){return a},gC:function(){return l}});var i,o=(0,r(575085).Z)("hf.persistent-reactivation-banner",(i=function(){return function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
1function l(o){return function(l){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(e){switch(e.label){case 0:return[4,r.e(83156).then(r.bind(r,283156))];case 1:return[2,e.sent().config]}})},function(){var e=this,t=arguments;return new Promise(function(r,o){var a=i.apply(e,t);function l(e){n(a,r,o,l,c,"next",e)}function c(e){n(a,r,o,l,c,"throw",e)}l(void 0)})})),a=o.ProjectConfigProvider,l=(o.configMiddleware,o.useConfig)},516242:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return rg},default:function(){return rw}});var n,i,o,a,l,c,u=r(687800),s=r(827378),d=r(650603),f=r(31748),p=r(268481),v=r(203666),y=r(631540),b=r(184883),m=r(527157),h=r(598669),g=r(768587),w=r(164528),O=r(77641),P=r(293296),S=r(63023),k=r(547723),x=function(){var e=(0,w.ZP)("account-area.my-deliveries").translateRaw;return(0,u.BX)(P.W,{display:"flex",flexDirection:"column",as:"main","aria-label":e("account-area.my-deliveries.past-deliveries.loading-layout.aria-label"),children:[(0,u.BX)(g.xu,{my:"md-2",display:"flex",justifyContent:"space-between",flexDirection:["column","row","row"],alignItems:["flex-start","center","center"],"aria-hidden":"true",children:[(0,u.BX)(g.xu,{children:[(0,u.tZ)(S.O,{width:"314px",height:"40px",mb:"sm-1"}),(0,u.tZ)(S.O,{width:["350px","500px","500px"],height:"20px"})]}),(0,u.tZ)(g.xu,{mt:["xs","zero","zero"],children:(0,u.tZ)(S.O,{width:"150px",height:"48px"})})]}),Array.from({length:3}).map(function(e,t){return(0,u.BX)(g.xu,{borderTopColor:"neutral.300",borderTopWidth:"1px",borderTopStyle:"solid","aria-hidden":"true",children:[(0,u.tZ)(S.O,{width:"260px",height:"20px",my:"sm-2"}),(0,u.tZ)(g.xu,{marginX:["zero",k.ED,k.mq],children:(0,u.tZ)(g.xu,{display:"flex",flexWrap:"wrap",width:"100%",children:Array.from({length:3}).map(function(e,t){return(0,u.tZ)(g.xu,{width:{_:1,tablet:.5,desktop:1/3},paddingX:["zero","sm-1","sm-2"],marginBottom:"md-1",children:(0,u.tZ)(O.Z,{variant:"LOADING",type:"COMPOSITE",hasFooterComponent:!0,shouldAnimate:!0})},"card-skeleton-".concat(t))})})})]},"delivery-skeleton-row-".concat(t))})]})};function j(e,t,r,n,i,o,a){try{var l=e[o](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,i)}var E=(0,r(575085).Z)("past-deliveries-config",(n=function(){return function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(e){return[2,r.e(3510).then(r.bind(r,3510))]})},function(){var e=this,t=arguments;return new Promise(function(r,i){var o=n.apply(e,t);function a(e){j(o,r,i,a,l,"next",e)}function l(e){j(o,r,i,a,l,"throw",e)}a(void 0)})})),Z=E.ProjectConfigProvider,A=(E.configMiddleware,E.useConfig);E.getConfigFromSSRPayload;
1var D=r(870199),_=r(158256),M=r(94970),I=r(579894),C=r.n(I),T=r(581340),R=r(318066),L=r(958042),N=r(95719),F=r(3595),B=r(887824),K="account-area.my-deliveries",W=function(){var e=(0,B.Z)().push,t=function(e){var t=e.recipeId,r=e.rating,n=e.week,i=(null!=r?r:0)>2;return{gaEventLabel:"".concat(n,"|").concat(t,"|").concat(r,"|").concat(+i,"|").concat(+!i),hfWeek:n,recipe_id:t,rating_value:r,positive_section_shown:+i,negative_section_shown:+!i}};return{trackSubmitRecipeRating:function(t){var r=t.recipeId,n=t.week,i=t.rating,o=t.maxRating;e({event_name:"Review_RecipeRatingSubmit",gaEventCategory:"Recipe Rating",gaEventAction:"Rating Submitted",hf_week:n,recipe_id:r,gaEventLabel:"".concat(n,"|").concat(r),score:i,max_rating:o})},trackDisplayFeedbackModal:function(r){e(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({event_name:"Review_CommentPopupDisplay",gaEventCategory:"Recipe Rating",gaEventAction:"commentPopup|display"},t({recipeId:r.recipeId,rating:r.rating,week:r.week})))}}},U=r(295332);function X(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function H(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var z=function(){var e,t,r=(0,B.Z)().push,n=(0,F.P)().current,i={subscription_id:null==n?void 0:n.id,customer_id:null==n?void 0:n.customer.id,loyalty:(null==n?void 0:null===(t=n.customer)||void 0===t?void 0:null===(e=t.loyalty)||void 0===e?void 0:e.value)||0};return{trackOnScrollPastDeliveries:function(){r(H(X({},i),{event_name:"PastDeliveries_PastRecipesScroll",gaEventCategory:"MyPastDeliveriesNavigation",gaEventAction:"scrollPastRecipes",gaEventLabel:""}))},trackGoToFavoritesClick:function(){r(H(X({},i),{event_name:"PastDeliveries_FavoritesRecipesClick",gaEventCategory:"MyPastDeliveriesNavigation",gaEventAction:"favoritesClick",gaEventLabel:""}))},trackLoadMoreRecipes:function(e){r({event_name:"PastDeliveries_LoadMoreRecipes",gaEventCategory:"MyPastDeliveries",gaEventAction:"loadM
1oreRecipes",gaEventLabel:e.join("|"),hf_weeks_loaded:e.join("|")})},trackViewUpcomingMenu:function(){r({event_name:"PastDeliveries_ViewUpcomingMenu",gaEventCategory:"MyPastDeliveries",gaEventAction:"viewUpcomingMenu",gaEventLabel:""})},trackTrackingLinkClick:function(e){var t=e.deliveryDate,n=e.deliveryStatus,i=t?(0,U.Z)(t,"YYYY-MM-DD"):"deliveryDateNA";r({event_name:"DeliveryTracking_StatusClick",gaEventCategory:"deliveryTracking",gaEventAction:"click",delivery_status:n,delivery_date:i,gaEventLabel:[n,i].join("|")})},trackDisplayPastDeliveries:function(){r({event:"gaEventTrigger",event_name:"PastDeliveries_Display",gaEventCategory:"MyPastDeliveriesNavigation",gaEventAction:"PastDeliveries|display",gaEventLabel:""})}}},Y=function(){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},W(),z())},V=function(){var e,t,r=(0,T.t)().query,n=(0,L.Z)(),i=(0,w.ZP)("account-area.my-deliveries").translate,o=(0,F.P)().current,a=Y().trackViewUpcomingMenu,l=A(),c=l.menuPathname,d=l.emptyLayoutIllustration;return(0,s.useEffect)(function(){(0,N.B1)("".concat(k.Ki,".").concat(k.mw.empty))},[]),(0,u.tZ)(P.W,{children:(0,u.BX)(g.xu,{py:"xl-2",px:"xs",display:"flex",flexDirection:"column",alignItems:"center",children:[(0,u.tZ)(g.xu,{mb:"md-1",maxWidth:"185px",children:(0,u.tZ)(R.ZP,{src:d,width:185,height:140,fetchFormat:"svg",alt:"delivery-coming"})}),(0,u.tZ)(g.xv,{as:"h3",mb:"xs",textAlign:"center",strong:!0,children:i("account-area.my-deliveries.past-deliveries.past-recipes-layout.upcoming-delivery-title",{name:null==o?void 0:o.customer.firstName})}),(0,u.tZ)(g.xv,{mb:"md-2",as:"p",textAlign:"center",children:i("account-area.my-deliveries.past-deliveries.past-recipes-layout.upcoming-delivery-description")}),(0,u.tZ)(C(),{href:{pathname:c,query:(e=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},r),t=t={locale:n},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e)},shallow:!0,legacyBehavior:!0,children:(0,u.tZ)(g.zx.Primary,{as:"span",width:"unset",textAlign:"center",onClick:a,children:i("account-area.my-deliveries.past-deliveries.past-recipes-layout.upcoming-delivery-cta")})})]})})},q=r(51436),G=r(736011),$=r(537356),J=r(463171),Q=function(){var e=(0,w.ZP)("account-area.my-deliveries").translate,t=(0,u.tZ)("img",{src:"https://www.hellofresh.com/assets/hellofresh/icons/star-image.png",alt:"",width:24,height:24,"aria-hidden":"true"});return(0,u.tZ)(g.Yo,{"data-test-id":"personalised-favorites-banner",variant:"information",icon:t,alignLeadingIconPosition:"center",borderRadius:"global.xl",children:e("account-area.my-deliveries.past-deliveries.past-recipes-layout.description")})},ee=function(){var e=(0,L.Z)(),t=(0,F.P)().current,r=Y().trackGoToFavoritesClick,n=(0,J.Z)("top_recipes_in_meal_choice").isEnabled,i=A().favoritesEnabled,o=(0,w.ZP)("account-area.my-deliveries").translate;return(0,u.BX)(g.xu,{"data-test-id":"past-deliveries-header",my:"md-2",gap:["zero","sm-2"],display:"flex",flexDirection:["column","row","row"],alignItems:["flex-start","center","center"],justifyContent:"space-between",children:[(0,u.BX)(g.xu,{children:[(0,u.tZ)(g.xv,{as:"h1",styleAs:"h2",mb:"sm-1",children:o("account-area.my-deliveries.past-deliveries.past-recipes-layout.title")}),n?(0,u.tZ)(Q,{}):(0,u.tZ)(g.xv,{type:"body-md-regular",children:o("account-area.my-deliveries.past-deliveries.past-recipes-layout.description")})]}),i&&(0,u.tZ)(g.xu,{mt:["xs","zero","zero"],width:"max-content",flexShrink:"0",children:(0,u.tZ)(C(),{href:{pathname:"/my-account/deliveries/favorites",query:{locale:e,subscriptionId:null==t?void 0:t.id}},shallow:!0,legacyBehavior:!0,children:(0,u.tZ)(g.zx.Primary,{"data-test-id":"go-to-favorites-btn",onClick:r,children:o("account-area.my-deliveries.favorites.go-to")})})})]})},et=r(783244);function er(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function en(e,t){if(e){if("string"==typeof e)return er(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return er(e,t)}}var ei=function(e){var t,r=function(e){if(Array.isArray(e))return e}(t=(0,et.Z)("hf_delivery-satisfaction-weeks"))||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(t,2)||en(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=r[0],i=r[1],o=[JSON.parse(n||"[]"),function(e){return i(JSON.stringify(e))}],a=o[0],l=o[1],c=null==e?void 0:e.id,u=(0,s.useMemo)(function(){return c&&!!(null==a?void 0:a.some(function(e){return e===c}))},[a,c]);return{markWeekAsSeen:(0,s.useCallback)(function(){!u&&l([c].concat(function(e){if(Array.isArray(e))return er(e)}(a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||en(a)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).slice(0,5))},[l,u,c,a]),wasShownForWeek:u}},eo=r(37017);function ea(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var el=(0,eo.cn)(void 0),ec=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,eo.KO)(el))||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return ea(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ea(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return{currentDelivery:t[0],setCurrentDelivery:t[1]}};function eu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var es=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return((function(e){if(Array.isArray(e))return eu(e)})(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return eu(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eu(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).filter(Boolean).join("|")}
1,ed=function(){var e=(0,B.Z)().push,t=ec().currentDelivery,r=(null==t?void 0:t.id)||"";return{track:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.gaEventAction,i=t.gaEventLabel,o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,["gaEventAction","gaEventLabel"]);e(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({event:"gaEventTrigger",tribe:"Engagement",squad:"delivery-satisfaction",gaEventCategory:"reviewDelivery",gaEventLabel:es("pastDeliveries",r,(i||"").toString()),gaEventAction:n,menu_week:r,entry_point:"pastDeliveries"},o))}}},ef=function(){var e=ed().track;return{trackSlideOutShowAutomatic:function(){e({gaEventAction:"slideout|automatic",event_name:"ReviewDelivery_SlideoutAutomatic"})},trackClickExperimentCTA:function(){e({gaEventAction:"slideout|clicked",event_name:"ReviewDelivery_SlideoutClick"})},trackTooltipHover:function(){e({gaEventAction:"hover|tooltipShow",event_name:"ReviewDelivery_ButtonTooltipView"})},trackTooltipDismiss:function(){e({gaEventAction:"hover|tooltipGotIt",event_name:"ReviewDelivery_ButtonTooltipGotit"})},trackInitialPanelDismiss:function(){e({gaEventAction:"slideout|dismissed",event_name:"ReviewDelivery_SlideoutDismiss"})}}},ep=s.createContext({pastDeliveries:[],fetchedWeeks:[],fetchNextPage:function(){return Promise.resolve()},isFetching:!1,isLoading:!1,hasError:!1,deliveries:{},certDeliveries:[],separatedData:void 0,hasMultiBrandSubscription:!1}),ev=ep.Provider,ey=function(){return(0,s.useContext)(ep)},eb=r(384949),em=r(976555),eh=r(357248),eg=r.n(eh),ew=r(461125);function eO(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var eP=(0,eo.cn)(void 0),eS=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,eo.KO)(eP))||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return eO(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eO(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return{maybeLaterTooltipWeekId:t[0],setMaybeLaterTooltipWeekId:t[1]}};function ek(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var ex=function(e){var t,r=e.delivery,n=(0,w.ZP)("account-area.my-deliveries").translate,i=function(e){if(Array.isArray(e))return e}(t=(0,s.useState)(!1))||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return ek(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ek(e,2)}}
1(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],a=i[1],l=ef(),c=l.trackTooltipDismiss,d=l.trackTooltipHover,f=l.trackClickExperimentCTA;(0,s.useEffect)(function(){o&&d()},[o]);var p=ec().setCurrentDelivery,v=eS(),y=v.maybeLaterTooltipWeekId,b=v.setMaybeLaterTooltipWeekId,m=(0,u.BX)(g.xu,{color:"neutral.100","data-test-id":"initial-tooltip-content",children:[(0,u.tZ)(g.xu,{fontWeight:"body-bold",children:n("my-deliveries.delivery-check-in.tooltip.title")}),(0,u.tZ)(g.xu,{children:n("my-deliveries.delivery-check-in.tooltip.body")})]}),h=(0,u.BX)(g.xu,{display:"flex",flexDirection:"column",gap:"sm-2",py:"xxs","data-test-id":"maybe-later-tooltip-content",children:[(0,u.tZ)(g.xu,{children:n("my-deliveries.delivery-check-in.review.tooltip.body")}),(0,u.tZ)(g.xu,{width:"fit-content",alignSelf:"flex-end",children:(0,u.tZ)(g.zx.Tertiary,{appearance:"neutral","data-test-id":"maybe-later-tooltip-close-cta",onClick:function(){c(),b()},children:n("my-deliveries.delivery-check-in.review.tooltip.cta")})})]}),O=y===(null==r?void 0:r.id);return(0,u.tZ)(g.xu,{width:"fit-content",children:(0,u.tZ)(g.u,{asChild:!0,contentStyle:{zIndex:100},isVisible:O||void 0,onMouseEnter:function(){return a(!0)},onMouseLeave:function(){return a(!1)},variant:"dark",position:"bottom",placement:"end",content:O?h:m,trigger:(0,u.tZ)(g.zx.Secondary,{size:"sm","data-test-id":"delivery-check-in-cta",leadingIcon:(0,u.tZ)(ew.default,{}),onClick:function(){p(r),f()},children:n("my-deliveries.delivery-check-in.CTA")})})})},ej=r(602307),eE=function(e){var t=e.trackingLink,r=e.delivery,n=r.deliveryDate,i=r.status,o=(0,w.ZP)("account-area.my-deliveries").translate,a=Y().trackTrackingLinkClick;return(0,u.tZ)(g.xu,{pl:["zero","xs"],borderLeftWidth:[0,"1px"],borderLeftStyle:"solid",borderLeftColor:"neutral.300","data-test-id":"tracking-link-wrapper",onClick:function(){return a({deliveryDate:n,deliveryStatus:i})},children:(0,u.tZ)(g.rU,{target:"_blank",href:t,customColor:"neutral.700","data-test-id":"delivery-tracking-link",children:o("account-area.my-deliveries.past-deliveries.past-recipes-layout.status-bar.tracking-link")})})},eZ=function(e){return(0,u.tZ)(ej.Z,{claim:{name:"deliveries",githubTeam:"hellofresh/squad-deliveries",tribe:"order-and-subscription-experience",alliance:"no-alliance-consumer",jiraPrefix:"DLV",slackChannel:"#squad-deliveries-osx",slackAlertsChannel:"#squad-deliveries-osx",skipLabelsOnPR:!1,teamIdentifier:"deliveries"},children:(0,u.tZ)(eE,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e))})},eA=function(e){var t,r,n,i=e.delivery,o=e.week,a=e.shouldShowDeliveryCheckInCTA,l=e.isRTEDelivery,c=(0,L.Z)(),d=(0,w.ZP)("account-area.my-deliveries").translate,f=(null==i?void 0:i.isHolidayShiftVisible)?i.holidayDelivery:null==i?void 0:i.deliveryDate,p=(null===(t=o.addons)||void 0===t?void 0:t.length)||0,v=(null===(r=o.meals)||void 0===r?void 0:r.length)||0,y=(0,s.useMemo)(function(){return l?"account-area.my-deliveries.past-deliveries.past-recipes-layout.status-bar.delivered-recipes-rte":p>1?"account-area.my-deliveries.past-deliveries.past-recipes-layout.status-bar.delivered-recipes-addons":1===p?"account-area.my-deliveries.past-deliveries.past-recipes-layout.status-bar.delivered-recipes-addon":"account-area.my-deliveries.past-deliveries.past-recipes-layout.status-bar.delivered-recipes"},[p,l]),b=(0,s.useMemo)(function(){return f?(null==i?void 0:i.state)==="ON_THE_WAY"?d("account-area.my-deliveries.past-deliveries.past-recipes-layout.status-bar.on-the-way"):d("account-area.my-deliveries.past-deliveries.past-recipes-layout.status-bar.delivery-date",{date:(0,U.Z)(f,eb.n1,c)}):null},[f,null==i?void 0:i.state,c,d]),m=null==i?void 0:null===(n=i.tracking)||void 0===n?void 0:n.tracking_link,h=m&&2>=eg()((0,em.Z)(),null==i?void 0:i.id);return(0,u.BX)(g.xu,{display:"flex",justifyContent:"space-between",flexDirection:["column","row"],gap:["xs","zero"],children:[(0,u.BX)(g.xu,{display:"flex",alignItems:"center",flexWrap:"wrap",children:[(0,u.tZ)(g.xu,{borderRightWidth:"1px",borderRightStyle:"solid",borderRightColor:"neutral.300",pr:"xs",children:b?(0,u.tZ)(g.xv,{type:"body-md-bold","data-test-id":"past-deliveries-delivery-date",children:b}):(0,u.tZ)(S.O,{width:"176px",height:"20px","data-test-id":"past-delivery-date-skeleton"})}),(0,u.tZ)(g.xu,{px:"xs",children:(0,u.tZ)(g.xv,{type:"body-md-regular","data-test-id":"past-delivery-title",children:d(y,{amount:v,addOns:p})})}),h&&(0,u.tZ)(eZ,{trackingLink:m,delivery:i})]}),a&&!l&&(0,u.tZ)(ex,{delivery:i})]})}
1,eD=r(148159),e_=r.n(eD),eM=r(157914),eI=function(){return(0,T.t)().asPath.split("?")[0]},eC=r(629776),eT=r(458638),eR=r(615961);function eL(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var eN=(0,eo.cn)({}),eF=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,eo.KO)(eN))||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return eL(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eL(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=t[0],n=t[1];return{setFeedbackState:function(e){return n(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},r,e))},clearFeedbackState:function(){return n({})},state:r}},eB=function(){var e=(0,J.Z)("five_stars_rating"),t=e.isEnabled;return{isFiveStarEnabled:t,ratingScale:t?5:4,isReady:e.isReady}};function eK(e,t,r,n,i,o,a){try{var l=e[o](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,i)}var eW=function(e){var t,r,n=e.recipe,i=e.menuId,o=e.week,a=e.onModalClose,l=(0,F.P)().current,c=(0,eR.D)({retry:!1}),u=c.mutateAsync,d=c.isLoading,f=c.isError,p=eF(),v=p.state,y=p.setFeedbackState,b=Y(),m=b.trackSubmitRecipeRating,h=b.trackDisplayFeedbackModal,g=eB().ratingScale,w=(null==n?void 0:n.id)||"",O=function(e){y({menuId:i,week:o,recipe:n}),h({recipeId:w,rating:e,week:o})},P=(0,s.useRef)(v),S=(0,s.useRef)(null);return(0,s.useEffect)(function(){var e,t,r;if((null===(e=P.current)||void 0===e?void 0:e.recipe)&&!v.recipe&&(null===(r=P.current)||void 0===r?void 0:null===(t=r.recipe)||void 0===t?void 0:t.id)===(null==n?void 0:n.id)){var i,o,l=null!==(o=null==n?void 0:null===(i=n.feedback)||void 0===i?void 0:i.rating)&&void 0!==o?o:0;null==a||a({rating:l});var c=S.current;if(c&&l>0){var u=c.querySelector('[data-rating="'.concat(l,'"]'));null==u||u.focus()}}P.current=v},[v,n,a]),{onRate:(t=function(e){var t;return function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,u({rating:e,recipeId:w,menuId:i,hellofreshWeek:o||"",origin:"web_past_deliveries",subscription:null==l?void 0:l.id,comment:null==n?void 0:null===(t=n.feedback)||void 0===t?void 0:t.comment,ratingScale:g})];case 1:return r.sent(),m({recipeId:w,week:o||"",rating:e,maxRating:g}),O(e),[3,3];case 2:return r.sent(),[3,3];case 3:return[2]}})},r=function(){var e=this,r=arguments;
1return new Promise(function(n,i){var o=t.apply(e,r);function a(e){eK(o,n,i,a,l,"next",e)}function l(e){eK(o,n,i,a,l,"throw",e)}a(void 0)})},function(e){return r.apply(this,arguments)}),isLoading:d,isError:f,ratingContainerRef:S}},eU=r(755595);function eX(e,t,r,n,i,o,a){try{var l=e[o](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,i)}var eH=function(e){var t,r=e.recipeId,n=e.recipeName,i=e.weekId,o=e.subscription,a=(0,eU.z)({recipeId:r,recipeName:null!=n?n:"",weekId:i,subscription:o}),l=a.isFavorite,c=a.favorite,u=a.unfavorite;return{isFavorite:l,toggle:(t=function(){return function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(e){switch(e.label){case 0:if(!l)return[3,2];return[4,u()];case 1:case 3:return[2,e.sent()];case 2:return[4,c()]}})},function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(e){eX(o,n,i,a,l,"next",e)}function l(e){eX(o,n,i,a,l,"throw",e)}a(void 0)})})}},ez=r(699016),eY=r(15778),eV=r(314664),eq=r(548295);function eG(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var e$=function(e){var t,r=e.points,n=e.earned,i=(0,s.useRef)(n),o=function(e){if(Array.isArray(e))return e}(t=(0,s.useState)(!1))||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return eG(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eG(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0],l=o[1],c=!0===(0,ez.JZ)();return(0,s.useEffect)(function(){!i.current&&n&&l(!c)},[n,c,l]),(0,u.tZ)(eq.Z,{componentName:"loyalty-program.v2.mission-points",attributes:{"mission-name":"rate_a_recipe","mission-archetype":"rate_a_recipe","mission-points-earned":n},children:(0,u.BX)(g.xu,{"data-test-id":n?"loyalty-mission-points-pill-earned":"loyalty-mission-points-pill",display:"flex",gap:"global.xxs",children:[a?(0,u.tZ)(g.xu,{width:"1.5rem",height:"1.5rem",children:(0,u.tZ)(g.Fm,{path:"https://cdn.hellofresh.com/loyalty/images/hellofresh-v2/missions/points_animated.json",loop:!1,onComplete:function(){return l(!1)}})}):(0,u.tZ)(g.JO,{icon:n?(0,u.tZ)(eV.default,{}):(0,u.tZ)(eY.default,{}),color:"global.purple.600"}),(0,u.BX)(g.xv,{type:"body-md-bold",color:"global.purple.600",children:["+",r]})]})})};function eJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var eQ=function(e){var t,r=e.rating,n=e.onClick,i=e.ratingScale,o=void 0===i?4:i,a=(0,w.ZP)("features.recipe-feedback-nudge").translateRaw,l=function(e){if(Array.isArray(e))return e}
1(t=(0,s.useState)(""))||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(t,2)||function(e,t){if(e){if("string"==typeof e)return eJ(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eJ(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=l[0],d=l[1];return(0,u.BX)(u.HY,{children:[(0,u.tZ)(g.jI,{amount:o,score:null!=r?r:0,editable:!0,onClick:function(e){d(a("rating_drawer.v2.a11y.rating_changed",{rating:e,total:o})),n(e)},customAriaLabel:a("rating_drawer.v2.a11y.star_rating_label"),size:"lg"}),(0,u.tZ)(g.xu,{"aria-live":"polite","aria-atomic":"true",position:"absolute",width:"1px",height:"1px",padding:"global.none",overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",borderWidth:"0",children:c})]})},e0=r(432761),e1=function(e){var t=e.handleOnClick,r=e.zIndex;return(0,u.tZ)(g.xu,{width:"100%",height:"100%",position:"fixed",top:0,left:0,zIndex:r||100,"data-test-id":"page-overlay",backgroundColor:"shared-alias.neutral.screen-overlay",onClick:function(e){t(e)}})},e2=function(e){var t=e.shouldShowNudge,r=e.setShouldShowNudge,n=A().ratingNudgeIllustration,i=(0,w.ZP)(K),o=i.translate,a=i.translateRaw,l=function(e){e&&e.stopPropagation(),r(!1)};return((0,s.useEffect)(function(){setTimeout(function(){return l()},1e4)},[t]),t)?(0,u.BX)(u.HY,{children:[(0,u.tZ)(e1,{handleOnClick:l}),(0,u.BX)(g.xu,{height:"154px",maxWidth:"322px",position:"absolute",left:"xs",bottom:"xl-1",boxShadow:"shadow-md",backgroundColor:"alias.elevation.level-2",borderRadius:"border-radius-sm","data-test-id":"rating-nudge",cursor:"pointer",zIndex:100,pseudo:{":before":{content:"''",position:"absolute",bottom:"-6px",left:"20px",width:"12px",height:"12px",transform:"rotate(45deg)",backgroundColor:"alias.elevation.level-2",filter:"drop-shadow(rgba(0, 0, 0, 0.2) 2px 1px 1px)",zIndex:99}},onClick:function(e){return l(e)},children:[(0,u.tZ)(g.xu,{as:"button",right:"2px",top:"8px",position:"absolute",bg:"inherit",borderStyle:"none",verticalAlign:"bottom","data-test-id":"rating-nudge-dismiss","aria-label":a("".concat(K,".menu-cycle.rating-nudge.dismiss-button")),children:(0,u.tZ)(g.JO,{icon:(0,u.tZ)(e0.Z,{"aria-hidden":"true"})})}),(0,u.BX)(g.xu,{display:"flex",flexDirection:"row",alignItems:"center",px:"md-2",py:"md-1",position:"relative",zIndex:1,children:[(0,u.tZ)(R.ZP,{width:100,height:100,fetchFormat:"svg",alt:"rating nudge image","data-test-id":"rating-nudge-img",src:n}),(0,u.tZ)(g.xu,{backgroundColor:"alias.elevation.level-2",position:"relative",zIndex:1,children:(0,u.tZ)(g.xv,{type:"body-md-regular",ml:"xxs",children:o("".concat(K,".menu-cycle.rating-nudge.tooltip.title"))})})]})]})]}):null},e5=r(763646),e6=r.n(e5),e8=r(15764),e3=r.n(e8),e4=r(950889),e7=r(760014),e9=r(184151),te=function(){var e,t,r,n,i=(0,e7.Z)().payloadV2;if(null==i?void 0:null===(e=i.enrollment)||void 0===e?void 0:e.extra.isEnrolled)return null==i?void 0:null===(n=i.enrollment)||void 0===n?void 0:null===(r=n.data)||void 0===r?void 0:null===(t=r.missions)||void 0===t?void 0:t.find(function(e){return e.archetype===e9.Rm.RATE_RECIPE})},tt=function(){var e=(0,J.Z)("loyalty_v2_rate_recipe_mission").isEnabled,t=te();return!!e&&!!t},tr=function(e,t,r){var n=e6()((0,e4.Z)(e)),i=e6()(e3()(r,t)),o=e6()(r);return n>i&&n<=o},tn=function(e){var t,r=tt(),n=te();return!!r&&!!n&&!!e&&tr(e,(null===(t=n.requirements)||void 0===t?void 0:t.eligible_period_days)||0,new Date)},ti=function(){var e,t=(0,B.Z)().push,r=(0,e7.Z)().payloadV2,n=te(),i=null==r?void 0:null===(e=r.enrollment)||void 0===e?void 0:e.data;return{trackRateRecipeMission:(0,s.useCallback)(function(e){t(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({squad:"missions",tribe:"loyalty-and-virality",event:"gaEventTrigger",event_name:"Loyalty_RateRecipe_PastDel_Success",event_category:"loyaltyProgram",event_action:"display",event_label:"RateRecipePastDel",element:"loyaltyProgramRateRecipePastDel",recipe_id:e.recipeId,star_rating:e.rating},(null==i?void 0:i.program_type)===e9.oj.pointBased&&(null==i?void 0:i.id)!=null&&{enrollment_id:String(i.id),points_balance:i.store_points},null!=n&&{mission_id:n.id,mission_name:n.name,mission_points_earned:n.points_earned}))},[t,i,n])}},to=r(60074),ta=r(360811),tl=r(52130),tc=function(){var e=(0,tl.L3)().trackJanusEvent,t=(0,e7.Z)().payloadV2,r=te();return{trackPointEarn:(0,s.useCallback)(function(){if(r){var n,i,o,a,l=null==t?void 0:t.enrollment,c=null==t?void 0:t.optIn,u=null!==(i=null==l?void 0:null===(n=l.extra)||void 0===n?void 0:n.isEnrolled)&&void 0!==i&&i;try{e(ta.S4.janusEvent({event:ta.S4.event({systemMessage:null,systemStatus:ta.h3.Success}),loyaltyProgramIdentity:ta.S4.loyaltyProgramIdentity({enrollmentId:u?"".concat(null==l?void 0:null===(o=l.data)||void 0===o?void 0:o.id):null,enrollmentState:u?ta.T_.Enrolled:ta.T_.NotEnrolled,programId:(null==c?void 0:null===(a=c.data)||void 0===a?void 0:a.program_id)?"".concat(c.data.program_id):null}),loyaltyProgramMissionIdentity:ta.S4.loyaltyProgramMissionIdentity({id:r.id,isOptinRequired:!!r.requirements.requires_opt_in,name:r.name,pointsValue:r.points_earned})}))}catch(e){(0,to.Tb)(e,{tags:{event:"PastOrders_LoyaltyPointEarn_SystemAction",component:"usePastOrdersLoyaltyPointEarnSnowplowEvent"}})}}},[e,t,r])}};function tu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ts(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tu(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var td=function(e){var t,r,n,i,o=e.recipe,a=e.index,l=e.menuId,c=e.week,d=e.hasRecentUnratedProducts,f=e.showExtendedFavoriteLabel,p=e.isRTEDelivery,v=e.subscription,y=(0,T.t)(),b=y.query,m=y.push,h=!!(b.recipeId&&b.rating),w=ts((0,s.useState)(d&&0===a&&!h),2),O=w[0],P=w[1],S=tn(c||""),k=te(),x=(null==k?void 0:k.points_earned)||0,j=ti().trackRateRecipeMission,E=tc().trackPointEarn,Z=ts((0,s.useState)(!!(null===(n=o.feedback)||void 0===n?void 0:n.rating)),2),D=Z[0],_=Z[1],M=(0,eM.k)().open,I=eW({recipe:o,menuId:l,week:c,onModalClose:function(e){var t=e.rating;S&&(_(!0),j({recipeId:o.id,rating:t}),E())}}),C=I.onRate,R=I.ratingContainerRef,L=eB().ratingScale,N=eI();(0,s.useEffect)(function(){if(h&&o.id===b.recipeId){var e=Number(b.rating);!Number.isInteger(e)||e<1||e>L||(C(e),m({pathname:N,query:e_()(b,["recipeId","rating"])},void 0,{shallow:!0}))}},[]);var F=A(),B=F.favoritesEnabled,K=F.productCard.hideQuickDetails,W=eH({recipeId:o.id,recipeName:o.name,weekId:c,subscription:v}),U=W.isFavorite,X=W.toggle;return(0,u.tZ)(g.xu,{"data-test-id":"past-recipe-card",width:{_:1,tablet:.5,desktop:1/3},paddingX:["zero","sm-1","sm-2"],marginBottom:"md-1",children:(0,u.tZ)(eC.Z,{isRTEDelivery:p,recipe:(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},o),r=r={imageLink:o.image,tags:o.tags||[]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t),onClick:M,index:a,bottomSlot:p?null:(0,u.BX)(g.xu,{children:[(0,u.tZ)(e2,{shouldShowNudge:!!O,setShouldShowNudge:P}),(0,u.BX)(g.xu,{ref:R,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[(0,u.tZ)(eQ,{rating:null===(i=o.feedback)||void 0===i?void 0:i.rating,onClick:function(e){C(e),P(!1)},isNudgeVisible:O,ratingScale:L}),S&&(0,u.tZ)(e$,{points:x,earned:D})]})]}),favoriteComponent:B&&!p?(0,u.tZ)(eT._,{isOpen:!U,isTextVisible:void 0!==f&&f&&0===a&&!U,onClick:function(e){return e.stopPropagation(),X()}}):null,showQuickInfo:!K})})};function tf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function tp(e){return function(e){if(Array.isArray(e))return tf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return tf(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tf(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var tv=function(e){var t,r,n=e.week,i=e.delivery,o=e.isLastWeek,a=ei(i).wasShownForWeek,l=ec().setCurrentDelivery,c=ef().trackSli
1deOutShowAutomatic,d=ey().certDeliveries,f=(0,F.P)().current,p=(null==i?void 0:null===(r=i.product)||void 0===r?void 0:null===(t=r.family)||void 0===t?void 0:t.handle)==="rte",v=(0,s.useMemo)(function(){return d.some(function(e){var t=e.week,r=e.subscription_id;return t===n.week&&(!r||r===(null==f?void 0:f.id.toString()))})},[d,null==f?void 0:f.id,n.week]);(0,s.useEffect)(function(){v&&o&&!a&&(l(i),c())},[i,l,o,c,a,v]);var y=(0,s.useMemo)(function(){return tp(n.meals).concat(tp(n.addons||[]))},[n.addons,n.meals]),m=(0,s.useMemo)(function(){return o&&y.some(function(e){var t;return!(null===(t=e.feedback)||void 0===t?void 0:t.rating)})},[o,y]);return(0,u.BX)(g.xu,{id:"past-delivery-week-".concat(n.week),display:"flex",flexDirection:"column",gap:"sm-2",paddingTop:"sm-2",marginTop:"xxs",children:[(0,u.tZ)(eA,{week:n,delivery:i,shouldShowDeliveryCheckInCTA:v,isRTEDelivery:!!p}),(0,u.tZ)(g.xu,{marginX:["zero",k.ED,k.mq],children:(0,u.tZ)(g.xu,{display:"flex",flexWrap:"wrap",width:"100%",children:y.map(function(e,t){var r,i;return(0,u.tZ)(b.Z,{scope:"product-cards-page-level",claimOverride:k.UW,fallback:(0,u.tZ)(u.HY,{}),children:(0,u.tZ)(td,(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({recipe:e,index:t},n),i=i={hasRecentUnratedProducts:m,showExtendedFavoriteLabel:o,isRTEDelivery:!!p,subscription:f},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(i)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))}),r))},"past-recipe-".concat(e.id))})})})]})},ty=function(){var e=(0,w.ZP)("account-area.my-deliveries").translate,t=ey(),r=t.fetchNextPage,n=t.isFetching,i=A().helloFreshArchiveEnabled;return(0,u.BX)(g.xu,{display:"flex",flexDirection:["column","row"],alignItems:"center",gap:"md-1",justifyContent:"center",position:"relative",marginTop:"sm-1",children:[(0,u.tZ)(g.xu,{width:"fit-content",minWidth:"130px",children:(0,u.tZ)(g.zx.Secondary,{"data-test-id":"past-deliveries-show-more-button",loading:n,onClick:function(){r()},children:e("account-area.my-deliveries.past-deliveries.past-recipes-layout.show-more-cta")})}),i&&(0,u.tZ)(g.xu,{position:["relative","absolute"],left:"0",top:"0",bottom:"0",display:"flex",alignItems:"center",children:(0,u.tZ)(g.rU,{href:"/recipes","data-test-id":"past-deliveries-archive-button",children:e("account-area.my-deliveries.past-deliveries.past-recipes-layout.archive-cta")})})]})},tb=r(723897),tm=r(473048),th=r(623637),tg=r(8699),tw=function(e){var t=(0,w.ZP)("recipe-detail").translateRaw,r=eH(e),n=r.isFavorite,i=r.toggle;return(0,u.tZ)(g.zx.Secondary,{size:"sm",onClick:i,"aria-label":t(n?"recipe-detail.favorite-icon.remove.description":"recipe-detail.favorite-icon.add.description"),"data-test-id":"favorite-recipe-button",width:"fit-content",children:(0,u.tZ)(g.xu,{display:"flex",verticalAlign:"center",justifyContent:"center",p:"xxs",children:n?(0,u.tZ)(g.xu,{display:"flex",alignItems:"center",color:"error.600",children:(0,u.tZ)(th.default,{"data-test-id":"share-recipe-favorite-fill-icon","aria-hidden":"true"})}):(0,u.tZ)(g.xu,{display:"flex",alignItems:"center",children:(0,u.tZ)(tg.default,{"data-test-id":"share-recipe-favorite-unfilled-icon","aria-hidden":"true"})})})})};function tO(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function tP(e,t,r,n,i,o,a){try{var l=e[o](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,i)}function tS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function tk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tO(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var tx=function(){var e,t,r,n,i,o,a=(0,w.ZP)("recipe-detail").translateRaw,l=(0,eM.k)().productId,c=ey().pastDeliveries,d=(0,tm.m)().productDetailsTrackingParams,f=eB().ratingScale,p=A(),v=p.favoritesEnabled,b=p.productDetails,m=b.hideQuickDetails,h=b.hideCookingSteps,O=b.hideIngredients,P=b.hidePer100gInfo,S=tk((0,s.useState)(!1),2),x=S[0],j=S[1],E=(0,s.useMemo)(function(){var e=!0,t=!1,r=void 0;try{for(var n,i=c[Symbol.iterator]();!(e=(n=i.next()).done);e=!0){var o,a=n.value;j(!!a.isRTEDelivery);var u={menuId:a.menuId,week:a.week},s=a.meals.find(function(e){return e.id===l});if(s)return tS({recipe:s},u);var d=null===(o=a.addons)||void 0===o?void 0:o.find(function(e){return e.id===l});if(d)return tS({recipe:d},u)}}catch(e){t=!0,r=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw r}}},[c,l]),Z=tn((null==E?void 0:E.week)||""),D=te(),_=(null==D?void 0:D.points_earned)||0,M=tk((0,s.useState)(void 0),2),I=M[0],C=M[1];(0,s.useEffect)(function(){if(void 0===E)C(void 0);else if(void 0===I){var e;C(!!(null===(e=E.recipe.feedback)||void 0===e?void 0:e.rating))}},[I,E]);var T=eW((e=tS({},E||{}),t=t={onModalClose:function(){Z&&C(!0)}},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e)).onRate;if(!l)return null;var R=(r=function(e){var t,r,n,i;return function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(o){return"LOADED"===e.type&&(r=(t=(0,k.Tg)(l)).START,n=t.END,i=t.TRACE,(0,N.B1)(n),(0,N.L8)(i,r,n),window.performance.clearMarks(r)),[2]})},n=function(){var e=this,t=arguments;return new Promise(function(n,i){var o=r.apply(e,t);function a(e){tP(o,n,i,a,l,"next",e)}function l(e){tP(o,n,i,a,l,"throw",e)}a(void 0)})},function(e){return n.apply(this,arguments)}),L=(null==E?void 0:E.recipe.tags)||[],F=(null==E?void 0:E.recipe.label)&&(null==E?void 0:null===(i=E.recipe.label)||void 0===i?void 0:i.displayLabel)?E.recipe.label:void 0;return(0,u.tZ)(y.Z,{values:tS({},d),children:(0,u.tZ)(tb.f,{isModal:!0,productId:l,config:{shouldShowQuickDetail
1s:!m,shouldShowPerServingInfo:!0,shouldShowPer100gInfo:!P},subType:x?"RTE":"MEALKIT",variant:"COMPOSITE","aria-label":a("recipe-detail.product-details.aria-label",{name:null==E?void 0:E.recipe.name}),actionButtonSection:E&&!x?(0,u.BX)(g.xu,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:"global.sm-1",children:[(0,u.tZ)(eQ,{rating:null===(o=E.recipe.feedback)||void 0===o?void 0:o.rating,onClick:T,ratingScale:f}),Z&&void 0!==I&&(0,u.tZ)(e$,{points:_,earned:I})]}):void 0,featureFlags:{favoritesEnabled:{enabled:v&&!x},hideCookingSteps:{enabled:h},hideIngredients:{enabled:O}},bottomSection:(0,u.tZ)(tw,{recipeId:l,recipeName:null==E?void 0:E.recipe.name}),handleLifecycleEvent:R,menuContextTags:L,menuContextLabel:F})})},tj=r(456261),tE=function(){var e=eF(),t=e.state,r=e.clearFeedbackState;return t?(0,u.tZ)(tj.Z,{state:t,clearState:r}):null},tZ=r(556539),tA=function(){var e=ec(),t=e.currentDelivery,r=e.setCurrentDelivery,n=eS().setMaybeLaterTooltipWeekId,i=ef().trackInitialPanelDismiss,o=ei(t).markWeekAsSeen;return(0,u.tZ)(tZ.Z,{delivery:t,onClose:function(e){e&&n(null==t?void 0:t.id),r(),i(),o()}})},tD=function(){var e=(0,T.t)(),t=e.query,r=e.push,n=eI(),i=ey(),o=i.pastDeliveries,a=i.fetchedWeeks,l=void 0===a?[]:a,c=i.hasNextPage,u=i.hasError,d=i.isFetching,f=i.fetchNextPage,p=(t.week||"").toString(),v=(0,s.useRef)(!1);(0,s.useEffect)(function(){if(p&&!v.current&&(0,e4.Z)(p)){var e=l.includes(p),i=l.length>0&&l[l.length-1]<p;if(e||i){v.current=!0,e&&o.some(function(e){return e.week===p})&&requestAnimationFrame(function(){var e=document.getElementById("past-delivery-week-".concat(p));null==e||e.scrollIntoView({behavior:"smooth",block:"start"})}),r({pathname:n,query:e_()(t,["week"])},void 0,{shallow:!0});return}!c||d||u||f()}},[p,l,o,c,u,d])};function t_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function tM(e){return function(e){if(Array.isArray(e))return t_(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return t_(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t_(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(i=l||(l={}))[i.ALL=0]="ALL",i[i.HF=1]="HF",i[i.FACTOR=2]="FACTOR";var tI=function(e){switch(e){case l.ALL:return"ALL";case l.HF:return"HF";case l.FACTOR:return"RTE";default:return"ALL"}},tC=function(){var e=(0,F.P)().current,t=(0,B.Z)().push;return{trackFilterChange:function(r){var n,i=tI(r);t({event_name:"PastDeliveries_FilterClick",tribe:"New Ventures",gaEventCategory:"MyPastDeliveries",gaEventAction:r===l.ALL?"Reset":"Apply",gaEventLabel:i,plan_type:"mealkit",subscription_id:null==e?void 0:e.id,customer_id:null==e?void 0:null===(n=e.customer)||void 0===n?void 0:n.uuid,filter_tag:i,squad:"cross-selling"})}}},tT=function(){return(0,u.tZ)(R.ZP,{src:"/hellofresh_website/us/icons/lime-square.svg",alt:"HelloFresh",width:16,height:13})},tR=function(){return(0,u.tZ)(R.ZP,{src:"/hellofresh_website/fj/assets/factor-logo.svg",alt:"Factor",width:16,height:16})},tL=s.memo(function(e){var t=e.activeFilter,r=e.onFilterChange,n=(0,w.ZP)("account-area.my-deliveries").translateRaw,i=tC().trackFilterChange,o=function(e){r(e),i(e)};return(0,u.BX)(g.xu,{children:[(0,u.BX)(g.xu,{mb:"global.md-2",display:"flex",alignItems:"center",columnGap:"global.sm-1",children:[(0,u.tZ)(g.Vp.Interactive,{radius:"pill",variant:"primary",selected:t===l.ALL,content:n("account-area.my-deliveries.past-deliveries.multiple-subscription.navigation.all"),onClick:function(){return o(l.ALL)}}),(0,u.tZ)(g.Vp.Interactive,{radius:"pill",variant:"primary",selected:t===l.HF,content:"HelloFresh",onClick:function(){return o(l.HF)},icon:(0,u.tZ)(tT,{})}),(0,u.tZ)(g.Vp.Interactive,{radius:"pill",variant:"primary",selected:t===l.FACTOR,content:"Factor",onClick:function(){return o(l.FACTOR)},icon:(0,u.tZ)(tR,{})})]}),(0,u.tZ)(g.iz,{mx:"global.none"})]})});function tN(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function tF(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var tB=(tF(c={},l.ALL,function(e,t){return t}),tF(c,l.HF,function(e){return(null==e?void 0:e.mealkit)||[]}),tF(c,l.FACTOR,function(e){return(null==e?void 0:e.factor)||[]}),c),tK=function(){var e,t=ey(),r=t.pastDeliveries,n=t.separatedData,i=function(e){if(Array.isArray(e))return e}
1(e=(0,s.useState)(l.ALL))||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return tN(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tN(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],a=i[1],c=(0,s.useCallback)(function(e){a(e)},[]),u=(0,s.useMemo)(function(){return n?(tB[o]||tB[l.ALL])(n,r):r},[o,n,r]);return{activeFilter:o,setActiveFilter:c,filteredPastDeliveries:u}},tW=r(871961);function tU(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var tX=function(e){var t,r=e.mission,n=(function(e){if(Array.isArray(e))return e}(t=(0,et.Z)("hf_loyalty_mission_".concat(r.archetype,"_intro_seen")))||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),1!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(t,1)||function(e,t){if(e){if("string"==typeof e)return tU(e,1);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tU(e,1)}}(t,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],i=(0,tW.d)(_.nK.loyaltyMissionIntroModal).openModal;return(0,s.useEffect)(function(){"true"!==n&&i({mission:r})},[]),null},tH=function(){var e=tt(),t=te();return e&&t?(0,u.tZ)(ej.Z,{claim:{name:"loyalty",githubTeam:"hellofresh/squad-loyalty-web",tribe:"loyalty-and-virality",alliance:"consumer",jiraPrefix:"LOYA",slackChannel:"#squad-loyalty",slackAlertsChannel:"#squad-loyalty-web-alerts",skipLabelsOnPR:!1,teamIdentifier:"loyalty"},children:(0,u.tZ)(b.Z,{scope:"loyalty-program.v2.mission-intro.trigger",children:(0,u.tZ)(eq.Z,{componentName:"loyalty-program.v2.mission-intro.trigger",attributes:{"mission-name":t.name,"mission-archetype":t.archetype},children:(0,u.tZ)(tX,{mission:t})})})}):null},tz=function(){var e=ey(),t=e.deliveries,r=e.hasNextPage,n=e.hasMultiBrandSubscription,i=Y().trackOnScrollPastDeliveries,o=tK(),a=o.activeFilter,l=o.setActiveFilter,c=o.filteredPastDeliveries,d=(0,q.R)().isGlobalChatEnabledInDCI,f=(0,s.useCallback)(function(e){l(e)},[l]);return tD(),(0,$.H)(i),(0,s.useEffect)(function(){(0,N.B1)("".concat(k.Ki,".").concat(k.mw.list))},[]),(0,u.BX)(P.W,{marginBottom:"md-2",children:[(0,u.tZ)(ee,{}),n&&(0,u.tZ)(b.Z,{scope:"multi-brand-past-deliveries-filters",children:(0,u.tZ)(tL,{activeFilter:a,onFilterChange:f})}),c.map(function(e,r){return(0,u.tZ)(b.Z,{scope:"past-delivery-week",children:(0,u.tZ)(tv,{week:e,delivery:t["".concat(e.week,"_").concat(null==e?void 0:e.subscriptionId)],isLastWeek:0===r},"past-delivery-week-".concat(e.week,"-").concat(e.menuId))},"past-delivery-week-".concat(e.week,"-").concat(e.menuId))}),r&&(0,u.tZ)(ty,{}),(0,u.tZ)(b.Z,{scope:"product-details-page-level",claimOverride:k.UW,children:(0,u.tZ)(tx,{})}),(0,u.tZ)(tE,{}),(0,u.tZ)(tA,{}),(0,u.tZ)(tH,{}),d&&(0,u.tZ)(G.default,{startHidden:!0,scope:"dci"})]})},tY=function(){var e=eI(),t=(0,T.t)(),r=t.push,n=t.query,i=(0,F.P)(),o=i.list,a=i.current,l=(0,w.ZP)("account-area.my-deliveries").translateRaw,c=(0,s.useMemo)(function(){return o.filter(function(e){var t,r,n;return null===(n=e.productType)||void 0===n?void 0:null===(r=n.family)||void 0===r?void 0:null===(t=r.tags)||void 0===t?void 0:t.includes("is_mealbox")})}
1,[o]),d=(0,s.useMemo)(function(){return o.find(function(e){var t,r;return(null===(r=e.productType)||void 0===r?void 0:null===(t=r.family)||void 0===t?void 0:t.handle)==="rte"})},[o]);if(c.length<=1||d)return null;var f=c.map(function(e){return{listValue:{title:e.productType.productName,id:e.id}}}),p=a?{listValue:{title:a.productType.productName,id:a.id}}:null;return(0,u.tZ)(g.xu,{width:"100%",py:"xs",display:"flex",justifyContent:"center","data-test-id":"subscription-select",backgroundColor:"alias.page-background.alternative",children:(0,u.tZ)(g.Lt,{labelText:"",width:"340px",list:f,listValueToString:function(e){return(null==e?void 0:e.listValue.title)||""},selectedItem:p,handleSelectedItemChange:function(t){var i,o,a;return r({pathname:e,query:(o=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},n),a=a={subscriptionId:null===(i=t.selectedItem)||void 0===i?void 0:i.listValue.id},Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(a)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(a)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(a,e))}),o)},void 0,{shallow:!0})},customAriaLabel:l("account-area.my-deliveries.past-deliveries.subscriptions-select.button")})})},tV=r(583864),tq=r.n(tV),tG=r(156141),t$=r.n(tG),tJ=r(635755),tQ=r(456552),t0=r(671718),t1=r(447178),t2=r(140224),t5=r(699219);function t6(e,t,r,n,i,o,a){try{var l=e[o](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,i)}function t8(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}var t3=(o=function(e,t){var r,n,i,o,a,l,c=arguments;return function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,function(u){switch(u.label){case 0:if(r=e.systemCountry,n=e.locale,i=e.rangeStart,o=e.rangeEnd,a=e.parentSpan,l=c.length>2&&void 0!==c[2]?c[2]:t0.Z,!o&&!i)return[2,Promise.resolve()];return[4,l("/api/customers/me/deliveries",t,{method:"GET",query:{country:r,locale:n,rangeStart:i,rangeEnd:o},parentSpan:a})];case 1:return[2,u.sent().json()]}})},a=function(){var e=this,t=arguments;return new Promise(function(r,n){var i=o.apply(e,t);function a(e){t6(i,r,n,a,l,"next",e)}function l(e){t6(i,r,n,a,l,"throw",e)}a(void 0)})},function(e,t){return a.apply(this,arguments)}),t4=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,t1.Z)().fetch,i=(0,t2.O)(),o=[t5.Z["deliveries.infinite-deliveries"],t8({},i,t)];return(0,tQ.useInfiniteQuery)(o,function(e){var r;return t3(t8({},t,i,null!==(r=e.pageParam)&&void 0!==r?r:{}),o,n)},r)},t7=r(410690),t9=r.n(t7),re=r(921804),rt=r.n(re),rr=r(563522),rn=r.n(rr),ri=r(447054),ro=r(712501),ra=r(966622),rl=r(943701),rc=function(){var e=(0,F.P)().list,t=eB().ratingScale,r=(0,s.useMemo)(function(){return e.find(function(e){return"rte"===e.productType.family.handle})},[e]),n=null==r?void 0:r.id,i=(0,em.Z)();return(0,tJ.$)({subscription:n||"",ratingScale:t},{from:i},{suspense:!1,enabled:!!n}).data};function ru(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function rs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function rd(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var rf=function(){var e,t=(0,T.t)().query.subscriptionId,r=(0,F.P)(),n=r.current,i=r.list,o=r.error,a=rc(),l=Y().trackLoadMoreRecipes,c=eB().ratingScale,u=(0,s.useRef)(null),d=(0,em.Z)(),f=(t||"").toString(),p=(0,s.useMemo)(function(){return i.find(function(e){return"rte"===e.productType.family.handle})},[i]),v=function(e){if(Array.isArray(e))return e}(e=(0,s.useState)(!1))||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(r=i.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw n}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return ru(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ru(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),y=v[0],b=v[1],m=(0,ro.Z)().isReady,h=(0,ra.py)({runUsingStatsig:!0}).isReady,g=(0,rl.R)({runUsingStatsig:!0}).isReady,w=m&&h&&g,O=(0,tJ.$)({subscription:f||(null==n?void 0:n.id)||"",ratingScale:c},{from:d},{suspense:!1,enabled:(!!f||!!n)&&w,onSuccess:function(e){var t=e.pages.filter(function(e){var t;return null==e?void 0:null===(t=e.weeks)||void 0===t?void 0:t.length}),r=t.at(-1);if(r){var n,i,o={rangeEnd:(0,ri.Z)(t9()((null===(n=r.weeks.at(0))||void 0===n?void 0:n.week)||"",1)),rangeStart:null===(i=r.weeks.at(-1))||void 0===i?void 0:i.week};if(t$()(o,u.current))return;if(u.current||b(!0),u.current=o,_({pageParam:o}),t.length>1){var a=r.weeks.map(function(e){return e.week});l(null!=a?a:[])}}}}),P=O.data,S=O.isLoading,k=O.isFetching,x=O.hasNextPage,j=O.fetchNextPage,E=O.error,Z=t4({},{rangeStart:"",rangeEnd:""},{suspense:!1,onSettled:function(){return b(!1)}}),A=Z.data,D=Z.isFetching,_=Z.fetchNextPage,M=(0,s.useMemo)(function(){return((null==P?void 0:P.pages)||[]).flatMap(function(e){return e.weeks.map(function(e){return e.week})})},[null==P?void 0:P.pages]),I=(0,s.useMemo)(function(){var e=((null==P?void 0:P.pages)||[]).flatMap(function(e){return e.weeks}),t=tq()(((null==A?void 0:A.pages)||[]).filter(function(e){return e}).flatMap(function(e){return e.items}),function(e){var t=e.id,r=e.subscriptionId;return"".concat(t,"_").concat(r)}),r=e.filter(function(e){var r=e.week,i=t["".concat(r,"_").concat(null==n?void 0:n.id)],o=(null==i?void 0:i.isHolidayShiftVisible)?i.holidayDelivery:null==i?void 0:i.deliveryDate,a=(null==i?void 0:i.state)==="DELIVERED"||(null==i?void 0:i.state)==="UNKNOWN",l=rt()(o,Date.now()),c=rn()(Date.now(),o),u=(null==i?void 0:i.state)==="ON_THE_WAY"&&(l||c);return a||u}).map(function(e){return rd(rs({},e),{subscriptionId:null==n?void 0:n.id})}),i=((null==a?void 0:a.pages)||[]).flatMap(function(e){return e.weeks}).map(function(e){return rd(rs({},e),{isRTEDelivery:!0,subscriptionId:null==p?void 0:p.id})});return{mealkit:r,factor:i,deliveries:t,hasMultiBrandSubscription:!!(i.length&&r.length)}},[n,null==P?void 0:P.pages,null==A?void 0:A.pages,null==a?void 0:a.pages,null==p?void 0:p.id]),C=tM(I.mealkit).concat(tM(I.factor)).sort(function(e,t){return t.week.localeCompare(e.week)}),R=(0,s.useMemo)(function(){var e;return{deliveries:null==I?void 0:I.deliveries,pastDeliveries:(null==I?void 0:null===(e=I.factor)||void 0===e?void 0:e.length)>0?C:null==I?void 0:I.mealkit}},[I,C]),L=R.deliveries;return{pastDeliveries:R.pastDeliveries,fetchedWeeks:M,isLoading:!n||S||y||!w,isFetching:k||D,hasNextPage:x,fetchNextPage:j,deliveries:L,hasError:!!E||!!o,separatedData:I}},rp=r(357381),rv=function(){var e=A().deliveryCheckInEnabled,t=(0,rp.a)({},{suspense:!1,enabled:e}).data;return(null==t?void 0:t.data)||[]},ry=function(e){var t=e.children,r=rf(),n=r.pastDeliveries,i=r.fetchedWeeks,o=r.deliveries,a=r.hasError,l=r.hasNextPage,c=r.fetchNextPage,s=r.isFetching,d=r.isLoading,f
1=r.separatedData,p=rv();return(0,u.tZ)(ev,{value:{pastDeliveries:n,fetchedWeeks:i,deliveries:o,hasError:a,hasNextPage:l,fetchNextPage:c,isFetching:s,isLoading:d,certDeliveries:p,separatedData:f,hasMultiBrandSubscription:null==f?void 0:f.hasMultiBrandSubscription},children:t})},rb=function(){var e=ey(),t=e.pastDeliveries,r=e.isLoading,n=e.hasError,i=z().trackDisplayPastDeliveries;return((0,s.useEffect)(function(){i()},[]),0===t.length&&n)?(0,u.tZ)(M.Y,{}):r?(0,u.tZ)(x,{}):(0,u.BX)(g.xu,{as:"main",children:[(0,u.tZ)(tY,{}),0===t.length?(0,u.tZ)(V,{}):(0,u.tZ)(b.Z,{scope:"past-deliveries-list",children:(0,u.tZ)(tz,{})})]})},rm=function(){return(0,u.tZ)(b.Z,{scope:"past-deliveries-page",fallback:(0,u.tZ)(M.Y,{}),children:(0,u.tZ)(ry,{children:(0,u.tZ)(D.Z,{registerModals:[_.nK.loyaltyMissionIntroModal],children:(0,u.tZ)(rb,{})})})})},rh=function(){var e=(0,m.Z)();return(0,u.BX)(u.HY,{children:[(0,u.tZ)(f.Z,{}),(0,u.tZ)(v.Z,{fallback:(0,u.tZ)(x,{}),children:(0,u.tZ)(s.Suspense,{fallback:(0,u.tZ)(x,{}),children:(0,u.tZ)(b.Z,{scope:"past-deliveries",fallback:(0,u.tZ)(M.Y,{}),children:(0,u.tZ)(y.Z,{values:{event:"gaEventTrigger",screen:"Past Deliveries",origin:"web_past_deliveries",brand:e},children:(0,u.tZ)(p.jm,{children:(0,u.BX)(Z,{children:[(0,u.tZ)(h.Z,{}),(0,u.tZ)(rm,{})]})})})})})})]})};rh.customLayout=d.ZP,rh.provideCustomLayoutProps={enableSSRCustomerHeader:!0};var rg=!0,rw=rh},314664:function(e,t,r){"use strict";r.r(t);var n=r(687800);function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r(827378),t.default=function(e){var t=e.title,r=e.titleId,a=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["title","titleId"]);return(0,n.BX)("svg",o(i(o(i({width:"1.5rem",height:"1.5rem",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"graphics-symbol",color:"inherit","aria-hidden":!t},!t&&{focusable:!1}),{"aria-labelledby":r}),a),{children:[t?(0,n.tZ)("title",{id:r,children:t}):null,(0,n.tZ)("path",{d:"m16.586 7.728-6.318 6.317-2.828-2.828L6 12.657l4.242 4.242L18 9.143l-1.414-1.414Z",fill:"currentColor"}),(0,n.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-2 0a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z",fill:"currentColor"})]}))}},461125:function(e,t,r){"use strict";r.r(t);var n=r(687800);function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r(827378),t.default=function(e){var t=e.title,r=e.titleId,a=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["title","titleId"]);return(0,n.BX)("svg",o(i(o(i({width:"1.5rem",height:"1.5rem",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"graphics-symbol",color:"inherit","aria-hidden":!t},!t&&{focusable:!1}),{"aria-labelledby":r}),a),{children:[t?(0,n.tZ)("title",{id:r,children:t}):null,(0,n.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m2 14 .4-2H14V6H3.6L4 4h12v2h1l5 5.539V18h-2.268a2 2 0 1 1-3.465 0H9.733a2 2 0 1 1-3.465 0H4v-4H2Zm4 0v2h14v-3.692L16.111 8H16v6H6Z",fill:"currentColor"}),(0,n.tZ)("path",{d:"m6.5 10 .4-2H3.2l-.4 2h3.7Z",fill:"currentColor"})]}))}}},function(e){e.O(0,[47057,38579,12737,8139,14206,44355,61403,274,24613,47710,94924,30599,48440,92584,981,96575,49639,57252,36060,74050,64944,56360,95851,7563,36152,29037,95325,45692,58351,89073,94414,9833,77641,69585,80114,23897,18327,56539,36011,56261,56138,85228,92888,49774,40179],function(){return e(e.s=937657)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.