1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[82251],{847200:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/creators/dashboard",function(){return r(468111)}])},891857:function(e,t,r){"use strict";r.d(t,{l:function(){return g}});var n,o,i=r(456552),a=r(671718),u=r(447178),c=r(43011),l=r(140224),s=r(699219),f=r(598239);function d(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){r(e);return}u.done?t(c):Promise.resolve(c).then(n,o)}function b(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 p(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 y=(n=function(e,t){var r,n,o,i,u,c,l,s,f=arguments;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,function(d){switch(d.label){case 0:return n=void 0!==(r=e.usePublicAuth)&&r,i=void 0!==(o=e.includeRecipes)&&o,u=e.systemCountry,c=e.locale,l=e.parentSpan,[4,(f.length>2&&void 0!==f[2]?f[2]:a.Z)("/cookbook/v1/recipe-developers/me",t,{query:b({country:u,locale:c},i?{include_recipes:!0}:{}),parentSpan:l,fetchSpanAttributes:{"request.backend_service":"cookbook-api","request.backend_action":"get-recipe-developer-me"}},{usePublicAuth:n})];case 1:if(404===(s=d.sent()).status)return[2,void 0];if(!s.ok)throw Error("Failed to fetch recipe-developer me from Cookbook API (status ".concat(s.status,")"));return[4,s.json()];case 2:return[2,d.sent()]}})},o=function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function a(e){d(i,r,o,a,u,"next",e)}function u(e){d(i,r,o,a,u,"throw",e)}a(void 0)})},function(e,t){return o.apply(this,arguments)}),g=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,u.Z)().fetch,o=(0,c.Z)(),a=(0,f.O)(),d=b(p(b({},e),{usePublicAuth:!o}),(0,l.O)()),g=[s.Z["recipeDevelopers.me"],d],h=null===(t=r.enabled)||void 0===t||t;return(0,i.useQuery)(g,function(){return y(d,g,n)},p(b({},r),{enabled:a&&h}))}},598239:function(e,t,r){"use strict";r.d(t,{O:function(){return i}});var n=r(827378);function o(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 i=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=(0,n.useState)(!1))||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,u=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){u=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(u)throw n}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return o(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);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(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],i=t[1];return(0,n.useLayoutEffect)(function(){i(!0)},[]),r}},42208:function(e,t,r){"use strict";r.d(t,{kL:function(){return l},wM:function(){return u},wk:function(){return c}});var n=r(892940),o=n.z.object({id:n.z.string(),name:n.z.string(),handle:n.z.string(),legacy_handles:n.z.array(n.z.string()),legacy_ids:n.z.array(n.z.string()),country:n.z.string(),specs:n.z.object({meals:n.z.union([n.z.number(),n.z.string()]),size:n.z.union([n.z.number(),n.z.string()]),recurrency:n.z.number().int()}).passthrough(),meal_swap:n.z.boolean(),meal_swap_default_choice:n.z.string(),swappable_meals:n.z.string(),public:n.z.boolean(),active:n.z.boolean(),is_subscribable:n.z.boolean(),is_available_for_extra_meals:n.z.boolean(),is_preset_enabled:n.z.boolean(),sort:n.z.number().int(),family:n.z.string(),created_at:n.z.string(),updated_at:n.z.string()}).passthrough(),i=n.z.object({total:n.z.number().int(),take:n.z.number().int(),skip:n.z.number().int(),count:n.z.number().int(),items:n.z.array(o)}).passthrough(),a=n.z.object({id:n.z.string(),country:n.z.string(),handle:n.z.string(),name:n.z.string(),headline:n.z.string(),contents:n.z.object({benefits:n.z.string(),price:n.z.string(),price_unit:n.z.string(),price_label:n.z.string(),price_sidenote:n.z.string(),small_print:n.z.string(),image:n.z.string(),fb_url:n.z.string(),description:n.z.string()}).passthrough(),template:n.z.object({meals:n.z.array(n.z.any()),size:n.z.array(n.z.any()),recurrency:n.z.array(n.z.any())}).passthrough(),tags:n.z.array(n.z.string()),prefix:n.z.string(),promotes:n.z.array(n.z.any()),icons:n.z.object({"1x":n.z.string(),"2x":n.z.string(),"3x":n.z.string()}).passthrough(),active:n.z.boolean(),compatible:n.z.array(n.z.string()),converts:n.z.string(),auto_convert:n.z.string(),recipe_family:n.z.string(),show_mobile:n.z.boolean(),sort:n.z.number().int(),created_at:n.z.string(),updated_at:n.z.string()}).passthrough(),u=n.z.object({total:n.z.number().int(),take:n.z.number().int(),skip:n.z.number().int(),count:n.z.number().int(),items:n.z.array(a)}).passthrough(),c=i,l=o},377380:function(e,t,r){"use strict";r.d(t,{yY:function(){return l}});var n=r(687800),o=r(827378),i=r(456552),a=r(497249),u=r(344884),c=(0,o.createContext)({segment:[],label:[]}),l=function(){return(0,o.useContext)(c)};t.ZP=function(e){var t=e.queryKey,r=e.children,l=(0,i.useQueryClient)(),s=(0,a.T)(),f=(0,o.useMemo)(function(){var e,r,n=l.getQueryData(t);return{segment:null!==(e=null==n?void 0:n.segment)&&void 0!==e?e:[],label:null!==(r=null==n?void 0:n.label)&&void 0!==r?r:[]}},[l,t]);return(0,o.useEffect)(function(){if(!f.segment.length||!f.label.length){var e=s.startSpan("contentful-header-provider.missing-data");e.setAttributes({segmentCount:f.segment.length,labelCount:f.label.length}),e.setStatus({code:u.Z.ERROR}).end()}},[f,s]),(0,n.tZ)(c.Provider,{value:f,children:r})}},10362:function(e,t,r){"use strict";r.d(t,{n:function(){return o}});var n=r(687800),o=(0,r(827378).createContext)("");t.Z=function(e){var t=e.IPCountry,r=e.children;return(0,n.tZ)(o.Provider,{value:t,children:r})}},203666:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(687800),o=r(827378),i=r(169821),a=r(570084),u=r(953137),c=r(117608),l=function(e,t){var r=(0,c.Z)(),n=(0,u.u)({},{suspense:!1}).data,i=(0,o.useRef)(!1);(0,o.useEffect)(function(){if(!i.current&&(!r||t&&("prospect"===t&&(null==n?void 0:n.count)!==0||"active"===t&&(null==n?void 0:n.count)===0))){e(),i.current=!0;return}},[r,n,t,e])},s=function(e){var t=e.children,r=e.redirectPath,i=void 0===r?"/login":r,u=e.customerType;return l((0,o.useCallback)(function(){return(0,a.r)(i)},[i]),u),(0,n.tZ)(o.Fragment,{children:t})},f=function(e){return(0,n.tZ)(i.Z,{fallback:e.fallback,children:(0,n.tZ)(s,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}({},e))})}},468111:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return Z}});var n=r(687800);r(827378);var o=r(165218),i=r.n(o),a=r(768587),u=r(602307),c=r(631540),l=r(164528),s=r(650603),f=r(31748),d=r(10362),b=r(184883),p=r(203666),y=r(891857),g=r(723505),h=r(121705),v=r(888200),m=r(61612),O={name:"inspire",githubTeam:"hellofresh/inspire",tribe:"customer-engagement",alliance:"consumer",jiraPrefix:"INSPIRE",slackChannel:"#squad-inspire",slackAlertsChannel:"#engagement-inspire-squad-alerts",skipLabelsOnPR:!1,teamIdentifier:"inspire"},z=function(){var e=(0,l.ZP)("creator-onboarding").translateRaw;return(0,n.BX)(a.xu,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"md-1",py:"xl-1",children:[(0,n.tZ)(a.$j,{variant:"primary",size:"lg"}),(0,n.tZ)(a.xv,{type:"body-md-regular",color:"neutral.700",children:e("creator-onboarding.dashboard.loading",{defaultValue:"Loading your creator dashboardâ¦"})})]})},w=i()(function(){return Promise.all([r.e(63473),r.e(94156)]).then(r.bind(r,924700)).then(function(e){return e.DashboardFeature})},{loadableGenerated:{webpack:()=>[924700]},ssr:!1,loading:function(){return(0,n.tZ)(z,{})}}),j=i()(function(){return r.e(41336).then(r.bind(r,929543)).then(function(e){return e.ProfileEditorFeature})},{loadableGenerated:{webpack:()=>[929543]},ssr:!1}),P=i()(function(){return r.e(19659).then(r.bind(r,58908)).then(function(e){return e.RecipeEditorFeature})},{loadableGenerated:{webpack:()=>[58908]},ssr:!1}),_=function(e){var t=e.ssrPayload,r=(0,v.v)(h.Kc,"/creators"),o=r.isEnabled,i=r.isReady,l=(0,m.O)("dashboard"),s=(0,y.l)({},{suspense:!1}).data;return i&&o?"ready"===l.status&&s?(0,n.tZ)(u.Z,{claim:O,type:"page",children:(0,n.tZ)(b.Z,{scope:g.a.ROOT,children:(0,n.tZ)(c.Z,{values:{screen:"CreatorDashboard",gaEventCategory:"creator-dashboard"},children:(0,n.BX)(d.Z,{IPCountry:null==t?void 0:t.IPCountry,children:[(0,n.tZ)(f.Z,{}),(0,n.tZ)(p.Z,{redirectPath:"/login",children:(0,n.tZ)(w,{developer:s,renderProfileEditor:function(e){var t=e.value,r=e.onChange,o=e.disabled,i=e.fieldErrors;return(0,n.tZ)(j,{mode:"embedded",value:t,onChange:r,disabled:o,fieldErrors:i})},renderRecipeEditor:function(e){var t=e.value,r=e.onChange;return(0,n.tZ)(P,{value:t,onChange:r,mode:"embedded"})}})})]})})})}):(0,n.tZ)(a.xu,{display:"flex",justifyContent:"center",py:"xl-1",children:(0,n.tZ)(a.$j,{variant:"primary",size:"lg"})}):null};_.customLayout=s.ZP,_.provideCustomLayoutProps=function(e){var t=e.ssrPayload.mobileWebView.active;return{disableHeader:t,disableFooter:t}};var Z=!0;t.default=_},121705:function(e,t,r){"use strict";r.d(t,{Kc:function(){return o},jm:function(){return n},tt:function(){return i}});var n="creator_self_onboarding",o="creator_profile_dashboard",i="creator_onboarding_improve_with_ai"},61612:function(e,t,r){"use strict";r.d(t,{O:function(){return s}});var n=r(827378),o=r(581340),i=r(891857),a=function(){return{kind:"proceed"}},u=function(e,t){return{kind:"redirect",destination:e,reason:t}},c=function(e){return"/creators/".concat(e)},l=function(e){var t=e.route,r=e.developer;if("onboarding"===t){if(null===r)return a();if(!0===r.isActive){var n=r.slug;return"string"==typeof n&&n.length>0?u(c(n),"developer-active"):a()}return u("/creators/dashboard","developer-pending")}if(null===r)return u("/creators/onboarding","no-developer");if(!0===r.isActive){var o=r.slug;if("string"==typeof o&&o.length>0)return u(c(o),"developer-active")}return a()},s=function(e){var t=(0,o.t)(),r=(0,i.l)({},{suspense:!1}),a=r.data,u=r.isLoading,c=r.isIdle,s=!u&&!c,f=l({route:e,developer:null!=a?a:null}),d="redirect"===f.kind?f.destination:null;return((0,n.useEffect)(function(){s&&null!==d&&t.replace(d)},[s,d,t]),s)?"redirect"===f.kind?{status:"redirecting"}:{status:"ready"}:{status:"loading"}}},888200:function(e,t,r){"use strict";r.d(t,{v:function(){return a}});var n=r(827378),o=r(463171),i=r(581340),a=function(e,t){var r=(0,o.Z)(e),a=r.isEnabled,u=r.isReady,c=(0,i.t)().replace;
1return(0,n.useEffect)(function(){u&&!a&&c(t)},[u,a,c,t]),{isReady:u,isEnabled:a}}},723505:function(e,t,r){"use strict";r.d(t,{a:function(){return n}});var n={ROOT:"creator-dashboard",RECIPE_EDITOR:"creator-dashboard.recipe-editor",PUBLISH_CONFIRMATION:"creator-dashboard.publish-confirmation"}},125846:function(e,t,r){"use strict";r.r(t);var n=r(687800);function o(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 i(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,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["title","titleId"]);return(0,n.BX)("svg",i(o(i(o({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:"M19 6h-3a4 4 0 0 0-8 0H5L4 22h16L19 6ZM8 8v2h2V8h4v2h2V8h1.121l.75 12H6.13l.75-12H8Zm6-2h-4a2 2 0 1 1 4 0Z",fill:"currentColor"})]}))}},299446:function(e,t,r){"use strict";r.r(t);var n=r(687800);function o(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 i(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,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["title","titleId"]);return(0,n.BX)("svg",i(o(i(o({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:"M7.4 6 8 3h8l.6 3H21v13h-2a2 2 0 1 1-4 0H9a2 2 0 1 1-4 0H3V6h4.4Zm2.04 0 .2-1h4.72l.2 1H9.44ZM19 17V8H5v9h14Z",fill:"currentColor"})]}))}}},function(e){e.O(0,[47057,38579,12737,8139,14206,44355,274,3094,37290,57252,36060,74050,64944,56360,95851,7563,36152,72822,95325,45692,58351,89073,94414,168,92888,49774,40179],function(){return e(e.s=847200)}),_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.