PageSourceSearch

https://www.hellofresh.com/_next/static/chunks/7563-5b0093d81cdb0bca.js

js hellofresh.com collected 2026-09-24 09:13:39 UTC 20,964 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7563],{910195:function(e,t,n){var r,o,i,l,a,u,c;n.d(t,{_W:function(){return r},dL:function(){return i},ei:function(){return o},xA:function(){return l}}),(a=r||(r={})).completed="completed",a.reached="reached",a.upcoming="upcoming",(u=o||(o={})).normal="normal",u.oneOffReward="one_off_reward",(c=i||(i={})).locked="locked",c.activated="activated",c.expired="expired",c.conflicted="conflicted",c.cancelled="cancelled",(l||(l={})).v2="v2"},492106:function(e,t,n){n.d(t,{Ub:function(){return E},K2:function(){return P}});var r,o,i=n(456552),l=n(671718),a=n(447178),u=n(699219),c=n(140224),s=n(463171),f=n(184151);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function y(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function v(e){return function(e){if(Array.isArray(e))return d(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 d(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(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 b=function(){var e=(0,s.Z)("loyalty_v2_rate_recipe_mission").isEnabled,t=(0,s.Z)("loyalty_v2_refer_friend_mission").isEnabled,n=(0,s.Z)("loyalty_v2_box_ordering_streak_mission").isEnabled,r=(0,s.Z)("loyalty_v2_order_premium_meal_mission").isEnabled,o=(0,s.Z)("loyalty_v2_claim_first_reward_mission").isEnabled;return function(i){if(!i||i.program_type!==f.oj.pointBased||!i.missions)return i;var l=v(e?[f.Rm.RATE_RECIPE]:[]).concat(v(t?[f.Rm.REFER_A_FRIEND]:[]),v(n?[f.Rm.BOX_ORDERING_STREAK]:[]),v(r?[f.Rm.ORDER_PREMIUM_MEAL]:[]),v(o?[f.Rm.CLAIM_REWARD]:[])),a=i.missions.filter(function(e){return l.includes(e.archetype)});return y(p({},i),{missions:a})}},m=function(){var e=(0,s.Z)("loyalty_v2_onboarding_package").isEnabled;return function(t){if(!t||t.program_type!==f.oj.pointBased||!t.packages)return t;var n=v(e?[f.Un.ONBOARDING]:[]),r=t.packages.filter(function(e){return n.includes(e.archetype)});return y(p({},t),{packages:r})}};function h(e,t,n,r,o,i,l){try{var a=e[i](l),u=a.value}catch(e){n(e);return}a.done?t(u):Promise.resolve(u).then(r,o)}function g(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function l(e){h(i,r,o,l,a,"next",e)}function a(e){h(i,r,o,l,a,"throw",e)}l(void 0)})}}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function O(e,t){var n,r,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,r=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=t.call(e,l)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}var w=(r=g(function(e,t){var n,r,o,i,a=arguments;return O(this,function(u){switch(u.label){case 0:return n=e.systemCountry,r
1=e.locale,o=e.parentSpan,i=e.dummy,[4,(a.length>2&&void 0!==a[2]?a[2]:l.Z)("/loyalty/v3/programs/enrollment",t,{query:_({country:n,locale:r},i&&{dummy:i}),parentSpan:o})];case 1:return[2,u.sent().json()]}})}),function(e,t){return r.apply(this,arguments)}),E=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(0,a.Z)().fetch,l=b(),s=m(),f=_({},e,(0,c.O)()),d=[u.Z["loyalty.v3.enrollment"],f];return(0,i.useQuery)(d,function(){return w(f,d,o)},(t=_({},r),n=n={select:function(e){return s(l(e))}},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))},j=(o=g(function(e,t){var n,r,o,i,a,u=arguments;return O(this,function(c){switch(c.label){case 0:return n=e.parentSpan,r=e.customerPlanId,o=e.sku,i=e.locale,a=e.systemCountry,[4,(u.length>2&&void 0!==u[2]?u[2]:l.Z)("/loyalty/v3/programs/enrollment",t,{method:"POST",headers:{"Content-Type":"application/json"},query:{country:a,locale:i},data:{customer_plan_id:r,sku:o},parentSpan:n})];case 1:return[2,c.sent().json()]}})}),function(e,t){return o.apply(this,arguments)}),P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,a.Z)().fetch,n=(0,c.O)(),r=[u.Z["loyalty.v3.update.enrollment"],n];return(0,i.useMutation)(function(e){return j(_({},n,e),r,t)},_({},e))}},486598:function(e,t,n){n.d(t,{X:function(){return d}});var r,o,i=n(456552),l=n(671718),a=n(447178),u=n(699219),c=n(140224);function s(e,t,n,r,o,i,l){try{var a=e[i](l),u=a.value}catch(e){n(e);return}a.done?t(u):Promise.resolve(u).then(r,o)}var f=(r=function(e,t){var n,r,o,i,a=arguments;return function(e,t){var n,r,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,r=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=t.call(e,l)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,function(u){switch(u.label){case 0:return n=e.sku,r=e.systemCountry,o=e.locale,i=e.parentSpan,[4,(a.length>2&&void 0!==a[2]?a[2]:l.Z)("/loyalty/v3/programs/opt-in",t,{query:{country:r,locale:o,sku:n},parentSpan:i,fetchSpanAttributes:{"request.backend_service":"customer-achievements-service","request.backend_action":"get-program-opt-in"}})];case 1:return[2,u.sent().json()]}})},o=function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function l(e){s(i,n,o,l,a,"next",e)}function a(e){s(i,n,o,l,a,"throw",e)}l(void 0)})},function(e,t){return o.apply(this,arguments)}),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,a.Z)().fetch,r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e,(0,c.O)()),o=[u.Z["loyalty.v3.optin"],r];return(0,i.useQuery)(o,function(){return f(r,o,n)},t)}},184151:function(e,t,n){n.d(t,{Fl:function(){return a},Rm:function(){return c},Un:function(){return s},Z4:function(){return u},oj:function(){return l},t:function(){return i}}),(r=i||(i={})).notOptedIn="not_opted_in",r.optedIn="opted_in",r.optInClosed="opt_in_closed",r.notEligible="not_eligible",(o=l||(l={})).milestoneBased="milestone_based_v1",o.pointBased="point_based_v1";var r,o,i,l,a={REFER_A_FRIEND:"refer_a_friend",REVIEW_NEXT_ORDER:"review_next_order"},u={RATE_RECIPE:"rate_a_recipe",BOX_ORDERING_STREAK:"box_ordering_streak",ORDER_PREMIUM_MEAL:"order_premium_meal",CLAIM_REWARD:"claim_reward"},c=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},a,u),s={ONBOARDING:"onboarding"}},307563:function(e,t,n){n.d(t,{u:function(){return R}});var r,o,i,l=n(827378),a=n(285087),u=n(463171),c=n(184151),s=new Map([[c.Fl.REFER_A_FRIEND,{t
1ype:"referrals",action:"invite_share_click"}],[c.Fl.REVIEW_NEXT_ORDER,{type:"meal_selection",action:"next_order_reviewed"}]]),f=n(456552),d=n(671718),p=n(447178),y=n(699219),v=n(140224);function b(e,t,n,r,o,i,l){try{var a=e[i](l),u=a.value}catch(e){n(e);return}a.done?t(u):Promise.resolve(u).then(r,o)}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var h=(r=function(e,t){var n,r,o,i,l,a=arguments;return function(e,t){var n,r,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,r=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=t.call(e,l)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,function(u){switch(u.label){case 0:return n=e.parentSpan,r=e.systemCountry,o=e.locale,i=e.type,l=e.action,[4,(a.length>2&&void 0!==a[2]?a[2]:d.Z)("/loyalty/v3/programs/missions/event",t,{method:"POST",headers:{"Content-Type":"application/json"},query:{country:r,locale:o},data:{type:i,action:l},parentSpan:n,fetchSpanAttributes:{"request.backend_service":"customer-achievements-service","request.backend_action":"post-mission-event","request.mission_event_type":i,"request.mission_event_action":l}})];case 1:return[2,u.sent().json()]}})},o=function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function l(e){b(i,n,o,l,a,"next",e)}function a(e){b(i,n,o,l,a,"throw",e)}l(void 0)})},function(e,t){return o.apply(this,arguments)}),g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,p.Z)().fetch,n=(0,v.O)(),r=[y.Z["loyalty.v3.mission.event"],n];return(0,f.useMutation)(function(e){return h(m({},n,e),r,t)},m({},e))},_=n(760014);function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function w(e,t,n,r,o,i,l){try{var a=e[i](l),u=a.value}catch(e){n(e);return}a.done?t(u):Promise.resolve(u).then(r,o)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e){return function(e){if(Array.isArray(e))return O(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 O(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(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 P=(E(i={},c.Fl.REFER_A_FRIEND,"loyalty_v2_refer_friend_mission"),E(i,c.Fl.REVIEW_NEXT_ORDER,"loyalty_v2_onboarding_package"),i),S=["completed","expired"],R=function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.onSuccess,c=o.onError,f=(0,a.l)(),d=f.getItem,p=f.setItem,y=s.get(e),v="hf_loyalty_mission_".concat(e,"_tracked"),b=P[e],m=(0,u.Z)(b).isEnabled,h=null===(r=(0,_.Z)().payloadV2)||void 0===r?void 0:null===(n=r.enrollment)||void 0===n?void 0:n.data,O=null==h?void 0:h.missions,E=null==h?void 0:h.packages,R=(0,l.useMemo)(function(){var t=j(null!=O?O:[]).concat(j((null!=E?E:[]).flatMap(function(e){return e.missions})));return 0!==t.length&&t.some(function(t){return t.archetype===e&&!S.includes(t.current_progress.status)})},[O,E,e]),k=(0,l.useCallback)(function(){return"true"===d(v)},[d,v]),A=g({onSuccess:function(){null==i||i()},onError:function(e){null==c||c(e)}});return{reportMissionEvent:(0,l.useCallback)((t=function(){return function(e,t){var n,r,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,r=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=t.call(e,l)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,function(e){switch(e.label){case 0:if(!y||!m||!R||"true"===d(v)||A.isLoading)return[2];return p(v,"true"),[4,A.mutateAsync(y)];case 1:return e.sent(),[2]}})},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function l(e){w(i,r,o,l,a,"next",e)}function a(e){w(i,r,o,l,a,"throw",e)}l(void 0)})}),[y,m,R,A,p,v,d]),isReporting:A.isLoading,hasReportedThisSession:k,isFeatureEnabled:m,isMissionVisible:R}}},760014:function(e,t,n){n.d(t,{Z:function(){return y}});var r=n(953137),o=n(486598),i=n(184151),l=n(492106),a=n(910195),u=n(463171),c=function(){var e=(0,r.u)({},{suspense:!1}).data;return null==e?void 0:e.items.every(function(e){var t=e.isActive,n=e.canceledAt;return!t||n})},s=function(){var e=(0,u.Z)("loyalty_program"),t=e.isReady,n=e.isEnabled,r=c();if(t&&void 0!==r)return n&&!r},f=function(){var e=(0,u.Z)("loyalty_program_v2"),t=e.isReady,n=e.isEnabled,r=c();if(t&&void 0!==r)return n&&!r};function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function p(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}
1)(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var y=function(){var e,t,n,u,c,y,v,b,m,h,g,_,O,w,E,j,P,S,R,k=s(),A=f(),F=!!k||!!A,I=(0,r.u)({},{suspense:!1,enabled:F}).data,x=null==I?void 0:null===(e=I.items)||void 0===e?void 0:e.find(function(e){return e.isActive}),D=(null==x?void 0:x.product.sku)||"",C=!!(null==x?void 0:x.lastReactivationDate),Z=(0,o.X)({sku:D},{suspense:!1,enabled:F&&!!D}),L=(null==Z?void 0:Z.data)||null,T=null==L?void 0:L.program_type,M=(null==L?void 0:L.opt_in_status)===i.t.optedIn,N=(null==L?void 0:L.opt_in_status)===i.t.notOptedIn,B=(null==L?void 0:L.opt_in_status)===i.t.optInClosed,q=(0,l.Ub)({},{suspense:!1,enabled:F&&M}),V=(null==q?void 0:q.data)||null,G=T===i.oj.milestoneBased,U=T===i.oj.pointBased,X=(null==V?void 0:V.program_type)===i.oj.milestoneBased,W=(null==V?void 0:V.program_type)===i.oj.pointBased,K={data:L,extra:p(d({},G?{isColdStart:!!(null==L?void 0:L.was_offset),isAlternate:(null==L?void 0:null===(t=L.milestone)||void 0===t?void 0:t.type)===a.ei.oneOffReward}:{isColdStart:!1,isAlternate:!1}),{isClosed:B,canOptIn:N}),isLoading:null!==(u=null==Z?void 0:Z.isLoading)&&void 0!==u&&u,isFetched:null!==(c=null==Z?void 0:Z.isFetched)&&void 0!==c&&c,isError:null!==(y=null==Z?void 0:Z.isError)&&void 0!==y&&y,isFetching:null!==(v=null==Z?void 0:Z.isFetching)&&void 0!==v&&v},Q={data:V,extra:p(d({},(null==V?void 0:V.program_type)===i.oj.milestoneBased?{isColdStart:!!(null==V?void 0:V.was_offset),isAlternate:!!(null==V?void 0:null===(n=V.milestones)||void 0===n?void 0:n.some(function(e){var t;return(null===(t=e.data.rewards)||void 0===t?void 0:t.length)===0||null===e.data.rewards}))}:{isColdStart:!1,isAlternate:!1}),{isEnrolled:M}),isLoading:null!==(b=null==q?void 0:q.isLoading)&&void 0!==b&&b,isFetched:null!==(m=null==q?void 0:q.isFetched)&&void 0!==m&&m,isError:null!==(h=null==q?void 0:q.isError)&&void 0!==h&&h,isFetching:null!==(g=null==q?void 0:q.isFetching)&&void 0!==g&&g},$={data:null,extra:{isColdStart:!1,isEnrolled:!1,isAlternate:!1},isLoading:null!==(_=null==q?void 0:q.isLoading)&&void 0!==_&&_,isFetched:null!==(O=null==q?void 0:q.isFetched)&&void 0!==O&&O,isError:null!==(w=null==q?void 0:q.isError)&&void 0!==w&&w,isFetching:null!==(E=null==q?void 0:q.isFetching)&&void 0!==E&&E},z={data:null,extra:{isColdStart:!1,isClosed:B,isAlternate:!1,canOptIn:!1},isLoading:null!==(j=null==Z?void 0:Z.isLoading)&&void 0!==j&&j,isFetched:null!==(P=null==Z?void 0:Z.isFetched)&&void 0!==P&&P,isError:null!==(S=null==Z?void 0:Z.isError)&&void 0!==S&&S,isFetching:null!==(R=null==Z?void 0:Z.isFetching)&&void 0!==R&&R};return{isEnabled:k,isV2Enabled:A,isVisible:(N||M&&!q.isError)&&G,isV2Visible:(N||M&&!q.isError)&&U,payload:{enrollment:X?p(d({},Q),{data:V}):$,optIn:G?p(d({},K),{data:L}):z},payloadV2:{enrollment:W?p(d({},Q),{data:V}):$,optIn:p(d({},U?p(d({},K),{data:L}):z),{extra:p(d({},U?K.extra:z.extra),{isReactivatingCustomer:C})})},isLoading:Z.isLoading||q.isLoading,isFetched:Z.isFetched&&(!M||q.isFetched),isFetching:Z.isFetching||q.isFetching}}}}]);

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.