1/*! For license information please see 80184-04d018dbf5e3e9765c99.js.LICENSE.txt */ 2"use strict";(self.webpackChunknetconv=self.webpackChunknetconv||[]).push([[80184],{80184:function(e,n,t){t.d(n,{B1:function(){return D},DN:function(){return _},Do:function(){return x},Tt:function(){return q},U6:function(){return b},WB:function(){return R},_Z:function(){return Z},kq:function(){return U},n5:function(){return N},sw:function(){return S},ww:function(){return m},yV:function(){return k},z9:function(){return F},zD:function(){return V},zo:function(){return W},zs:function(){return j}});var r=t(84166);function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function o(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach(function(n){c(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function c(e,n,t){return(n=function(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==typeof n?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function u(){var e,n,t="function"==typeof Symbol?Symbol:{},r=t.iterator||"@@iterator",i=t.toStringTag||"@@toStringTag";function o(t,r,i,o){var u=r&&r.prototype instanceof s?r:s,p=Object.create(u.prototype);return a(p,"_invoke",function(t,r,i){var o,u,a,s=0,p=i||[],l=!1,f={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(n,t){return o=n,u=0,a=e,f.n=t,c}};function v(t,r){for(u=t,a=r,n=0;!l&&s&&!i&&n<p.length;n++){var i,o=p[n],v=f.p,d=o[2];t>3?(i=d===r)&&(a=o[(u=o[4])?5:(u=3,3)],o[4]=o[5]=e):o[0]<=v&&((i=t<2&&v<o[1])?(u=0,f.v=r,f.n=o[1]):v<d&&(i=t<3||o[0]>r||r>d)&&(o[4]=t,o[5]=r,f.n=d,u=0))}if(i||t>1)return c;throw l=!0,r}return function(i,p,d){if(s>1)throw TypeError("Generator is already running");for(l&&1===p&&v(p,d),u=p,a=d;
2(n=u<2?e:a)||!l;){o||(u?u<3?(u>1&&(f.n=-1),v(u,a)):f.n=a:f.v=a);try{if(s=2,o){if(u||(i="next"),n=o[i]){if(!(n=n.call(o,a)))throw TypeError("iterator result is not an object");if(!n.done)return n;a=n.value,u<2&&(u=0)}else 1===u&&(n=o.return)&&n.call(o),u<2&&(a=TypeError("The iterator does not provide a '"+i+"' method"),u=1);o=e}else if((n=(l=f.n<0)?a:t.call(r,f))!==c)break}catch(n){o=e,u=1,a=n}finally{s=1}}return{value:n,done:l}}}(t,i,o),!0),p}var c={};function s(){}function p(){}function l(){}n=Object.getPrototypeOf;var f=[][r]?n(n([][r]())):(a(n={},r,function(){return this}),n),v=l.prototype=s.prototype=Object.create(f);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,a(e,i,"GeneratorFunction")),e.prototype=Object.create(v),e}return p.prototype=l,a(v,"constructor",l),a(l,"constructor",p),p.displayName="GeneratorFunction",a(l,i,"GeneratorFunction"),a(v),a(v,i,"Generator"),a(v,r,function(){return this}),a(v,"toString",function(){return"[object Generator]"}),(u=function(){return{w:o,m:d}})()}function a(e,n,t,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}a=function(e,n,t,r){function o(n,t){a(e,n,function(e){return this._invoke(n,t,e)})}n?i?i(e,n,{value:t,enumerable:!r,configurable:!r,writable:!r}):e[n]=t:(o("next",0),o("throw",1),o("return",2))},a(e,n,t,r)}function s(e,n,t,r,i,o,c){try{var u=e[o](c),a=u.value}catch(e){return void t(e)}u.done?n(a):Promise.resolve(a).then(r,i)}function p(e){return function(){var n=this,t=arguments;return new Promise(function(r,i){var o=e.apply(n,t);function c(e){s(o,r,i,c,u,"next",e)}function u(e){s(o,r,i,c,u,"throw",e)}c(void 0)})}}function l(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o,c,u=[],a=!0,s=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;a=!1}else for(;!(a=(r=o.call(t)).done)&&(u.push(r.value),u.length!==n);a=!0);}catch(e){s=!0,i=e}finally{try{if(!a&&null!=t.return&&(c=t.return(),Object(c)!==c))return}finally{if(s)throw i}}return u}}(e,n)||function(e,n){if(e){if("string"==typeof e)return f(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?f(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var v="/panel/v1",d=0,y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.entries(e).reduce(function(e,n){var t=l(n,2),r=t[0],i=t[1];return void 0!==i&&null!==i&&""!==String(i).trim()&&(e[r]=i),e},{})},h=function(e,n){return{headers:{"Idempotency-Key":e},signal:n}},g=function(e){return(null===e||void 0===e?void 0:e.data)||{}};function m(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"recipe-workspace",r=(null===(e=globalThis.crypto)||void 0===e||null===(n=e.randomUUID)||void 0===n?void 0:n.call(e))||"".concat(Date.now(),"-").concat(d+=1);return"".concat(t,":").concat(r)}function b(){return w.apply(this,arguments)}function w(){return w=p(u().m(function e(){var n,t,i,o,c,a,s,p,l,f,d=arguments;return u().w(function(e){for(;;)switch(e.n){case 0:return t=(n=d.length>0&&void 0!==d[0]?d[0]:{}).experience,i=n.q,o=n.editorialState,c=n.page,a=void 0===c?1:c,s=n.perPage,p=void 0===s?18:s,l=n.signal,e.n=1,r.A.get("".concat(v,"/recipe_workspace"),{params:y({experience:t,q:i,editorial_state:o,page:a,per_page:p}),signal:l});case 1:return f=e.v,e.a(2,g(f))}},e)})),w.apply(this,arguments)}function _(e){return O.apply(this,arguments)}function O(){return O=p(u().m(function e(n){var t,i,o,c,a,s=arguments;return u().w(function(e){for(;;)switch(e.n){case 0:return i=(t=s.length>1&&void 0!==s[1]?s[1]:{}).experience,o=t.signal,e.n=1,r.A.get("".concat(v,"/recipes/").concat(n),{params:y({experience:i}),signal:o});case 1:return c=e.v,a=g(c),e.a(2,a.recipe||a.item||a)}},e)})),O.apply(this,arguments)}function x(e){return A.apply(this,arguments)}
2function A(){return A=p(u().m(function e(n){var t,i,o,c,a,s=arguments;return u().w(function(e){for(;;)switch(e.n){case 0:return i=(t=s.length>1&&void 0!==s[1]?s[1]:{}).signal,o=t.page,c=void 0===o?1:o,e.n=1,r.A.get("".concat(v,"/products"),{params:y({q:n,page:c,per_page:20,sort_by:"name",direction:"asc"}),signal:i});case 1:return a=e.v,e.a(2,g(a).products||[])}},e)})),A.apply(this,arguments)}function j(e){return P.apply(this,arguments)}function P(){return P=p(u().m(function e(n){var t,i,o,c,a,s=arguments;return u().w(function(e){for(;;)switch(e.n){case 0:return i=(t=s.length>1&&void 0!==s[1]?s[1]:{}).experience,o=t.idempotencyKey,c=t.signal,e.n=1,r.A.post("".concat(v,"/recipes"),y({experience:i,recipe:n}),h(o,c));case 1:return a=e.v,e.a(2,g(a))}},e)})),P.apply(this,arguments)}function S(e,n){return E.apply(this,arguments)}function E(){return E=p(u().m(function e(n,t){var i,o,c,a,s,p,l=arguments;return u().w(function(e){for(;;)switch(e.n){case 0:return o=(i=l.length>2&&void 0!==l[2]?l[2]:{}).experience,c=i.expectedVersion,a=i.idempotencyKey,s=i.signal,e.n=1,r.A.patch("".concat(v,"/recipes/").concat(n),y({experience:o,recipe:t,expected_version:c}),h(a,s));case 1:return p=e.v,e.a(2,g(p))}},e)})),E.apply(this,arguments)}function k(e,n){return T.apply(this,arguments)}function T(){return T=p(u().m(function e(n,t){var i,c,a,s,p,l=arguments;return u().w(function(e){for(;;)switch(e.n){case 0:return c=(i=l.length>2&&void 0!==l[2]?l[2]:{}).expectedVersion,a=i.idempotencyKey,s=i.signal,e.n=1,r.A.post("".concat(v,"/recipes/").concat(n,"/resolve_ingredient"),o(o({},t),{},{expected_version:c}),h(a,s));case 1:return p=e.v,e.a(2,g(p))}},e)})),T.apply(this,arguments)}function D(e){return K.apply(this,arguments)}function K(){return K=p(u().m(function e(n){var t,i,o,c,a,s=arguments;return u().w(function(e){for(;;)switch(e.n){case 0:return i=(t=s.length>1&&void 0!==s[1]?s[1]:{}).expectedVersion,o=t.idempotencyKey,c=t.signal,e.n=1,r.A.post("".concat(v,"/recipes/").concat(n,"/reconcile_ingredients"),{expected_version:i},h(o,c));case 1:return a=e.v,e.a(2,g(a))}},e)})),K.apply(this,arguments)}function N(e,n){return I.apply(this,arguments)}function I(){return I=p(u().m(function e(n,t){var i,o,c,a,s,p,l,f=arguments;return u().w(function(e){for(;;)switch(e.n){case 0:if(o=(i=f.length>2&&void 0!==f[2]?f[2]:{}).experience,c=i.expectedVersion,a=i.idempotencyKey,s=i.signal,p={adopt:"adopt",submit_for_review:"review",review:"review",return_to_draft:"draft",publish:"publish",republish:"publish",pause:"pause",archive:"archive"}[t]){e.n=1;break}throw new Error("Unsupported recipe command: ".concat(t));case 1:return e.n=2,r.A.post("".concat(v,"/recipes/").concat(n,"/").concat(p),y({experience:o,action:t,command:t,transition:t,expected_version:c}),h(a,s));case 2:return l=e.v,e.a(2,g(l))}},e)})),I.apply(this,arguments)}function V(e){return C.apply(this,arguments)}function C(){return C=p(u().m(function e(n){var t,i,o,c,a,s=arguments;return u().w(function(e){for(;;)switch(e.n){case 0:return i=(t=s.length>1&&void 0!==s[1]?s[1]:{}).expectedVersion,o=t.portions,c=t.signal,e.n=1,r.A.post("".concat(v,"/recipes/").concat(n,"/production_plan_preview"),{experience:"menu_intelligence",expected_version:i,production_plan:{portions:Number(o)}},{signal:c});case 1:return a=e.v,e.a(2,g(a))}},e)})),C.apply(this,arguments)}function q(e){return G.apply(this,arguments)}function G(){return G=p(u().m(function e(n){var t,i,o,c,a,s,p,l=arguments;return u().w(function(e){for(;;)switch(e.n){case 0:return i=(t=l.length>1&&void 0!==l[1]?l[1]:{}).page,o=void 0===i?1:i,c=t.perPage,a=void 0===c?10:c,s=t.signal,e.n=1,r.A.get("".concat(v,"/recipes/").concat(n,"/consumption_events"),{params:{experience:"menu_intelligence",page:o,per_page:a},signal:s});case 1:return p=e.v,e.a(2,g(p))}},e)})),G.apply(this,arguments)}function U(e){return z.apply(this,arguments)}function z(){return z=p(u().m(function e(n){var t,i,o,c,a,s,p,l,f,d,m=arguments;return u().w(function(e){for(;;)switch(e.n){case 0:return i=(t=m.length>1&&void 0!==m[1]?m[1]:{}).eventType,o=t.expectedVersion,c=t.idempotencyKey,a=t.occurredAt,s=t.portions,p=t.signal,l=a?new Date(a):null,f=l&&!Number.isNaN(l.getTime())?l.toISOString():a,e.n=1,r.A.post("".concat(v,"/recipes/").concat(n,"/consumption_events"),{experience:"menu_intelligence",expected_ver
2sion:o,consumption_event:y({event_type:i,occurred_at:f,portions:Number(s)})},h(c,p));case 1:return d=e.v,e.a(2,g(d))}},e)})),z.apply(this,arguments)}function R(e,n){return B.apply(this,arguments)}function B(){return B=p(u().m(function e(n,t){var i,o,c,a,s,p,l=arguments;return u().w(function(e){for(;;)switch(e.n){case 0:return o=(i=l.length>2&&void 0!==l[2]?l[2]:{}).expectedVersion,c=i.idempotencyKey,a=i.reason,s=i.signal,e.n=1,r.A.post("".concat(v,"/recipes/").concat(n,"/consumption_events/").concat(t,"/reverse"),{experience:"menu_intelligence",expected_version:o,reversal:{reason:a}},h(c,s));case 1:return p=e.v,e.a(2,g(p))}},e)})),B.apply(this,arguments)}function F(){return L.apply(this,arguments)}function L(){return L=p(u().m(function e(){var n,t,i,o,c,a,s,p,l=arguments;return u().w(function(e){for(;;)switch(e.n){case 0:return t=(n=l.length>0&&void 0!==l[0]?l[0]:{}).actionKey,i=n.productId,o=n.quantity,c=n.briefing,a=n.idempotencyKey,s=n.signal,e.n=1,r.A.post("".concat(v,"/recipe_generations"),{recipe_generation:y({action_key:t,product_id:i,quantity:o,briefing:c})},h(a,s));case 1:return p=e.v,e.a(2,g(p))}},e)})),L.apply(this,arguments)}function W(e){return M.apply(this,arguments)}function M(){return M=p(u().m(function e(n){var t,i,o,c=arguments;return u().w(function(e){for(;;)switch(e.n){case 0:return t=(c.length>1&&void 0!==c[1]?c[1]:{}).signal,e.n=1,r.A.get("".concat(v,"/recipe_generations/").concat(n),{signal:t});case 1:return i=e.v,o=g(i),e.a(2,o.recipe_generation||o.generation||o)}},e)})),M.apply(this,arguments)}function Z(e){var n,t,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"N\xe3o foi poss\xedvel carregar as receitas.";if(null!==(n=r.A.isCancel)&&void 0!==n&&n.call(r.A,e)||"ERR_CANCELED"===(null===e||void 0===e?void 0:e.code))return null;var c=(null===e||void 0===e||null===(t=e.response)||void 0===t?void 0:t.data)||{},u=Array.isArray(c.errors)?c.errors[0]:null;return{status:(null===e||void 0===e||null===(i=e.response)||void 0===i?void 0:i.status)||null,code:c.error_code||(null===u||void 0===u?void 0:u.code)||"RECIPE_WORKSPACE_UNAVAILABLE",message:c.error||c.message||(null===u||void 0===u?void 0:u.message)||u||o,current:c.current||c.recipe||null}}}}]); 3//# sourceMappingURL=80184-04d018dbf5e3e9765c99.js.map
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.