1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[96071,90412,75946,35957],{741714:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/good-chop/one-time-deliveries",function(){return r(220723)}])},839625:function(e,t,r){"use strict";r.d(t,{S:function(){return p}});var n,o,i=r(456552),a=r(447178),l=r(671718),c=r(140224),u=r(699219),s=r(900253);function d(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,o)}var p=function(e,t){var r=(0,a.Z)().fetch,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}({},e,(0,c.O)()),o=[u.Z["assets.animation"],n];return(0,i.useQuery)(o,function(){return f(n,o,r)},t)},f=(n=function(e,t){var r,n,o=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:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){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,l])}}}(this,function(i){switch(i.label){case 0:return r=e.brand,n=e.fileName,[4,(o.length>2&&void 0!==o[2]?o[2]:l.Z)((0,s.V)("/assets/".concat(r,"/animations/").concat(n)),t,{fetchSpanAttributes:{"request.backend_service":"s3","request.backend_action":"get-animation-asset"}},{skipGetAuth:!0},{baseURL:""})];case 1:return[2,i.sent().json()]}})},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,l,"next",e)}function l(e){d(i,r,o,a,l,"throw",e)}a(void 0)})},function(e,t){return o.apply(this,arguments)})},32074:function(e,t,r){"use strict";r.d(t,{CR:function(){return C},GL:function(){return S},Vo:function(){return P}});var n,o,i,a=r(456552),l=r(671718),c=r(447178),u=r(699219),s=r(543790),d=r(527157),p=r(449551),f=r(799969),b=r(860853),m=r(958042);function h(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,o)}function g(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){h(i,n,o,a,l,"next",e)}function l(e){h(i,n,o,a,l,"throw",e)}a(void 0)})}}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(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){y(e,t,r[t])})}return e}function x(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:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){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,l])}}}var O=(y(i={},s.Z.hellofresh,"hellofresh"),y(i,s.Z.greenchef,"greenchef"),y(i,s.Z.everyplate,"everyplate"),y(i,s.Z.youfoodz,"youfoodz"),y(i,s.Z.factor,"factor75"),y(i,s.Z.chefsplate,"chefsplate"),y(i,s.Z.goodchop,"goodchop"),y(i,s.Z.petstable,"thepetstable"),i),Z=function(){var e=(0,d.Z)(),t=(0,f.xY)(),r=(0,p.Z)(),n=(0,m.Z)();return{brand:t===b.M.factorform?b.M.factorform:O[e],country:r.toLowerCase(),locale:n}},w=(n=g(function(e,t){var r,n,o,i,a,c,u,s,d=arguments;return x(this,function(p){switch(p.label){case 0:return r=e.subscriptionId,n=e.locale,o=e.limit,i=e.offset,a=e.brand,c=e.country,u=e.product,[4,(d.length>2&&void 0!==d[2]?d[2]:l.Z)("/one-time-orders",t,{query:v({locale:n||"en-US",brand:a,country:c},r&&{subscriptionId:r},void 0!==o&&{limit:o},void 0!==i&&{offset:i},u&&{product:u}),fetchSpanAttributes:{"request.backend_service":"reactivation-bff","request.backend_action":"get-one-time-orders"}})];case 1:return[4,p.sent().json()];case 2:if(Array.isArray(s=p.sent()))return[2,{orders:s}];return[2,s]}})}),function(e,t){return n.apply(this,arguments)}),S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,c.Z)().fetch,n=v({},e,Z()),o=[u.Z["customer.one-time-orders"],n];return(0,a.useQuery)(o,function(){return w(n,o,r)},t)},C=function(e,t){var r=(0,c.Z)().fetch,n=v({},e,Z()),o=[u.Z["customer.one-time-orders"],n];return(0,a.useQuery)(o,g(function(){return x(this,function(e){switch(e.label){case 0:return[4,w(n,o,r)];case 1:return[2,e.sent().orders||[]]}})}),t)},j=(o=g(function(e,t){var r,n,o,i,a,c,u=arguments;return x(this,function(s){switch(s.label){case 0:return r=e.locale,n=e.orderId,o=e.subscriptionId,i=e.brand,a=e.country,c=e.product,[4,(u.length>2&&void 0!==u[2]?u[2]:l.Z)("/one-time-orders/".concat(n),t,{query:v({locale:r||"en-US",brand:i,country:a},o&&{subscriptionId:o},c&&{product:c}),fetchSpanAttributes:{"request.backend_service":"reactivation-bff","request.backend_action":"get-one-time-order"}})];case 1:return[4,s.sent().json()];case 2:return[2,s.sent()]}})}),function(e,t){return o.apply(this,arguments)}),P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,c.Z)().fetch,n=v({},e,Z()),o=[u.Z["customer.one-time-orders"],n];return(0,a.useQuery)(o,function(){return j(n,o,r)},t)}},900253:function(e,t,r){"use strict";r.d(t,{V:function(){return o}});var n=r(189452),o=function(e){var t=(0,n.Z)().NEXT_PUBLIC_ASSET_BASE_URL||"";return/^https?:\/\//.test(e)?e:"".concat(t).concat(e)}},956044:function(e,t){"use strict";var r,n;(n=r||(r={}
1)).DOLLAR="$",n.POUND="\xa3",n.EURO="â¬",n.CHF="CHF",n.KRONA="kr",n.YEN="\xa5",t.Z=r},305625:function(e,t,r){"use strict";r.d(t,{M:function(){return i}});var n=r(956044),o={decimalSeparator:".",numberSeparator:",",currencyCode:"GBP",formatNumberWithCurrency:function(e){return"".concat(n.Z.POUND).concat(e)}},i={US:{decimalSeparator:".",numberSeparator:",",currencyCode:"USD",formatNumberWithCurrency:function(e){return"".concat(n.Z.DOLLAR).concat(e)}},CA:{decimalSeparator:".",numberSeparator:",",currencyCode:"CAD",formatNumberWithCurrency:function(e){return"".concat(n.Z.DOLLAR).concat(e)}},"FR-CA":{decimalSeparator:",",numberSeparator:".",currencyCode:"CAD",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.DOLLAR)}},GB:o,UK:o,AU:{decimalSeparator:".",numberSeparator:",",currencyCode:"AUD",formatNumberWithCurrency:function(e){return"".concat(n.Z.DOLLAR).concat(e)}},NZ:{decimalSeparator:".",numberSeparator:",",currencyCode:"NZD",formatNumberWithCurrency:function(e){return"".concat(n.Z.DOLLAR).concat(e)}},DE:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.EURO)}},AT:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(n.Z.EURO," ").concat(e)}},"EN-BE":{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(n.Z.EURO," ").concat(e)}},"FR-BE":{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.EURO)}},BE:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.EURO)}},"NL-BE":{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(n.Z.EURO," ").concat(e)}},NL:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(n.Z.EURO," ").concat(e)}},FR:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.EURO)}},LU:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.EURO)}},CH:{decimalSeparator:".",numberSeparator:"'",currencyCode:"CHF",formatNumberWithCurrency:function(e){return"".concat(n.Z.CHF," ").concat(e)}},SE:{decimalSeparator:",",numberSeparator:" ",currencyCode:"SEK",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.KRONA)}},DK:{decimalSeparator:",",numberSeparator:" ",currencyCode:"DKK",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.KRONA,".")}},NO:{decimalSeparator:",",numberSeparator:" ",currencyCode:"NOK",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.KRONA)}},IT:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.EURO)}},JP:{decimalSeparator:".",numberSeparator:",",currencyCode:"JPY",formatNumberWithCurrency:function(e){return"".concat(n.Z.YEN).concat(e)}},IE:{decimalSeparator:".",numberSeparator:",",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(n.Z.EURO).concat(e)}},ES:{decimalSeparator:",",numberSeparator:".",currencyCode:"EUR",formatNumberWithCurrency:function(e){return"".concat(e," ").concat(n.Z.EURO)}}}},340332:function(e,t,r){"use strict";r.d(t,{E8:function(){return s},SX:function(){return d},il:function(){return a},nB:function(){return p},uf:function(){return l},xG:function(){return u}});var n=r(449551),o=r(958042),i=r(305625),a=function(e){return e/100},l=function(e,t){var r=t.decimals;r="number"==typeof r?r:parseInt(r,10);var n=(e/100).toFixed(r);return 0===Number(n)&&(n=Math.max(Number(n),0).toFixed(r)),n},c=function(e,t){var r=t.currencyInfo,n=t.decimals;if(!r)return e;var o=RegExp("\\d(?=(\\d{3})+".concat(n>0?"\\D":"$",")"),"g");return e.replace(".",r.decimalSeparator).replace(o,"$&".concat(r.numberSeparator))},u=function(e,t){var r=t.country,n=t.locale,o=t.decimals,a=void 0===o?2:o,u=i.M[(void 0===n?"":n).toUpperCase()]||i.M[r.toUpperCase()],s=c(l(e,{decimals:a}),{currencyInfo:u,decimals:a});return((u||{}).formatNumberWithCurrency||function(e){return e})(s)},s=function(e){return i.M[e.toUpperCase()].currencyCode},d=function(){var e=(0,n.Z)();return i.M[e.toUpperCase()].currencyCode||i.M.US.currencyCode},p=function(){var e={country:(0,n.Z)(),locale:(0,o.Z)(),decimals:2};return function(t,r){return u(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}({},e,r))}}},203666:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=r(687800),o=r(827378),i=r(169821),a=r(570084),l=r(953137),c=r(117608),u=function(e,t){var r=(0,c.Z)(),n=(0,l.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,l=e.customerType;return u((0,o.useCallback)(function(){return(0,a.r)(i)},[i]),l),(0,n.tZ)(o.Fragment,{children:t})},d=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}))),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))})}},220723:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return eg},default:function(){return ey}});var n,o,i,a,l=r(687800),c=r(827378),u=r(184883),s=r(333758),d=r(481989),p=r(31748),f=r(32074),b=r(768587),m=r(164528),h="one-time-orders",g="one-time-orders.page.order.details.button",y=r(581340),v=r(543790),x=r(839625),O=function(e){var t=e.variant,r=(0,x.S)({brand:v.Z.goodchop,fileName:t===i.subscription?"subscriptionBoxAnimation.json":"oneTimeBoxAnimation.json"},{enabled:!0,suspense:!1}).data;return(0,l.tZ)(b.xu,{width:["80px","104px","136px"],height:["80px","104px","136px"],flexShrink:0,display:"flex",alignItems:["flex-start","center","center"],justifyContent:"center","aria-label":t===i.subscription?"Subscription success animation":"Graduation celebration animation",role:"img",children:(0,l.tZ)(b.Fm,{animationName:"graduation-".concat(t),animationData:r,styles:{width:"100%",height:"100%"},loop:!1,autoplay:!0},t)})},Z=r(553911),w=r(428637),S=function(e){var t=e.benefits;return(0,l.tZ)(b.xu,{role:"list",display:"flex",flexDirection:"column",gap:"global.xxs",children:t.map(function(e,t){return(0,l.BX)(b.xu,{as:"li",display:"flex",alignItems:["flex-start","center","center"],gap:"global.xs",children:[(0,l.tZ)(w.Z,{color:"shared-alias.positive.foreground.default","aria-hidden":"true"}),(0,l.tZ)(b.xv,{type:["body-sm-regular","body-md-regular","body-md-regular"],color:"neutral.700",children:(0,l.tZ)(Z.Z,{copy:e})})]},t)})})},C=function(e){var t=(0,m.ZP)(h).translateRaw,r=t(e===i.subscription?"one-time-orders.graduation-component.subscription-headline":"one-time-orders.graduation-component.otp-headline"),n=t(e===i.subscription?"one-time-orders.graduation-component.subscription-description":"one-time-orders.graduation-component.otp-description"),o=t(e===i.subscription?"one-time-orders.graduation-component.subscription-review-cta":"one-time-orders.graduation-component.otp-review-cta"),a=e===i.subscription?void 0:t("one-time-orders.graduation-component.otp-benefit1"),l=e===i.subscription?void 0:t("one-time-orders.graduation-component.otp-benefit2");return(0,c.useMemo)(function(){return{headline:r,description:n,buttonLabel:o,benefits:e===i.subscription?void 0:[a||"",l||""]}},[r,n,o,e,a,l])},j=r(141323),P=r(887824),E=r(527157);function k(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 R(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}
1)(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var D=function(e){var t=e.discountAmount,r=(0,P.Z)().push,n=(0,E.Z)(),o=(0,j.j)({},{suspense:!1}).data,i={event:"gaEventTrigger",brand:n,tribe:"New Ventures",screen:"My Deliveries",customer_id:null==o?void 0:o.id,discount_amount:t};return{trackGraduationClick:function(){r(R(k({},i),{event_name:"Reorder_SeeOptionsClick",gaEventCategory:"reorder",gaEventAction:"SeeOptionsClick"}))},trackGraduationDisplay:function(){r(R(k({},i),{event_name:"Activation_ActivatePlanDisplay",gaEventCategory:"activate",gaEventAction:"buttonDisplay"}))}}},I=function(e){if(!e||0===e.length)return 0;var t=e[0].match(/\$(\d+)/);return t?parseInt(t[1],10):0},A={SUBSCRIPTION:"/my-deliveries",ONE_TIME_PURCHASE:"/plans?c=GCSOTG"};(n=i||(i={})).oneTimePurchase="oneTimePurchase",n.subscription="subscription";var B=function(e){var t=e.variant,r=(0,y.t)(),n=C(t),o=n.headline,i=n.description,a=n.buttonLabel,u=n.benefits,s=D({discountAmount:I(u)}),d=s.trackGraduationClick,p=s.trackGraduationDisplay,f="subscription"===t?A.SUBSCRIPTION:A.ONE_TIME_PURCHASE;return(0,c.useEffect)(function(){"oneTimePurchase"===t&&p()},[p,t]),(0,l.tZ)(b.xu,{my:"global.sm-2",mx:["global.sm-2","auto","auto"],"data-test-id":"graduation-component",as:"section","aria-labelledby":"graduation-headline",children:(0,l.tZ)(b.Zb.Static,{variant:"elevated",mx:"auto",p:["global.sm-2","global.md-1","global.md-1"],children:(0,l.BX)(b.xu,{"aria-labelledby":"graduation-heading",display:"flex",flexDirection:["column","row","row"],alignItems:["flex-start","center","center"],justifyContent:["flex-start","center","center"],gap:["global.sm-1","global.md-1","global.md-1"],children:[(0,l.BX)(b.xu,{display:"flex",flexDirection:"row",alignItems:["flex-start","center","center"],gap:["global.sm-1","global.sm-2","global.md-1"],maxWidth:["100%","100%","450px"],flex:1,children:[(0,l.tZ)(O,{variant:t}),(0,l.BX)(b.xu,{display:"flex",flexDirection:"column",gap:"global.xxs",flex:1,children:[(0,l.BX)(b.xu,{display:"flex",flexDirection:"column",gap:"global.xxs",children:[(0,l.tZ)(b.xv,{id:"graduation-headline",type:"body-md-bold",color:"neutral.800",textAlign:"left",children:o}),(0,l.tZ)(b.xv,{as:"p",type:"body-md-regular",color:"neutral.800",textAlign:"left",children:i})]}),u&&(0,l.tZ)(S,{benefits:u})]})]}),(0,l.tZ)(b.xu,{width:["100%","auto","auto"],flexShrink:0,children:(0,l.tZ)(b.zx.Primary,{size:"lg",width:["100%","250px","250px"],onClick:function(){"oneTimePurchase"===t&&d(),r.push(f)},children:a})})]})})})},N=r(268481),U=r(340332),L=function(){var e=(0,m.ZP)(h).translateRaw;return(0,c.useMemo)(function(){return{title:e("one-time-orders.details-popup.title"),subtitle:e("one-time-orders.details-popup.subtitle"),shippingLabel:e("one-time-orders.details-popup.shipping-label"),totalLabel:e("one-time-orders.details-popup.total-label"),returnCta:e("one-time-orders.details-popup.return-cta")}},[e])},_=function(e){switch(e){case 6:return"Medium";case 12:return"Large";case 18:return"Extra Large";default:return null}},X=function(e){var t=e.order,r=e.onClose,n=(0,U.nB)(),o=L(),i=t.totalCutsAmount,a=i?_(i):null,c=t.pricingInfo,u=100*c.productPrice,s=100*c.shippingAmount,d=100*c.grandTotal,p=a&&i?"".concat(a," box (").concat(i," cuts)"):"";return(0,l.BX)(b.xu,{display:"flex",flexDirection:"column",width:"100%",padding:"global.md-1",gap:"global.sm-2",children:[(0,l.BX)(b.xu,{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"global.xs",children:[(0,l.tZ)(b.xv,{as:"h2",type:"body-lg-bold",color:"neutral.800",id:"order-details-title",children:o.title}),(0,l.BX)(b.xv,{as:"p",type:"body-md-regular",color:"neutral.800",children:[o.subtitle," ",(0,l.tZ)(b.xv,{as:"span",strong:!0,children:t.deliveryDate}),"."]})]}),(0,l.BX)(b.xu,{backgroundColor:"neutral.200",padding:"global.sm-2",display:"flex",flexDirection:"column",gap:"global.xs",children:[(0,l.BX)(b.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",children:[(0,l.tZ)(b.xv,{as:"p",type:"body-md-regular",color:"neutral.800",children:p}),(0,l.tZ)(b.xv,{as:"p",type:"body-md-bold",color:"neutral.800",children:n(u)})]}),(0,l.tZ)(b.iz,{mx:"zero"}),(0,l.BX)(b.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",children:[(0,l.tZ)(b.xv,{as:"p",type:"body-md-regular",color:"neutral.800",children:o.shippingLabel}),(0,l.tZ)(b.xv,{as:"p",type:"body-md-regular",color:"neutral.800",children:n(s)})]}),(0,l.tZ)(b.iz,{mx:"zero"}),(0,l.BX)(b.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",children:[(0,l.tZ)(b.xv,{as:"p",type:"body-md-bold",color:"neutral.800",children:o.totalLabel}),(0,l.tZ)(b.xv,{as:"p",type:"body-md-bold",color:"primary.600",children:n(d)})]})]}),(0,l.tZ)(b.xu,{width:"100%",children:(0,l.tZ)(b.zx.Primary,{onClick:r,size:"sm",width:"100%",children:o.returnCta})})]})},T=function(e){var t=e.isOpen,r=e.onClose,n=e.order;return(0,l.tZ)(b.Vq,{isOpen:t,onDismiss:r,width:["95%","556px"],onClose:r,headless:!0,hasCloseButton:!0,padding:"zero","aria-labelledby":"order-details-title",children:(0,l.tZ)(X,{order:n,onClose:r})})},M=function(e){var t=e.isOpen,r=e.onClose,n=e.order,o=c.useRef(null);return(0,l.tZ)(b.dy.Container,{placement:"bottom",isOpen:t,onDismiss:r,onClose:r,isModal:!0,isTouchMoveEnabled:!0,width:"100%",returnFocusRef:o,positionAbsoluteCloseButton:!0,"aria-labelledby":"order-details-title",children:(0,l.tZ)(X,{order:n,onClose:r})})},W=function(e){var t=e.order,r=e.isOpen,n=e.onClose,o=(0,N.Sj)();return r?"mobile"===o?(0,l.tZ)(M,{order:t,isOpen:r,onClose:n}):(0,l.tZ)(T,{order:t,isOpen:r,onClose:n}):null},V=r(490412),z=r(735957),H=function(e){var t=e.trackingUrl,r=!!t,n=(0,(0,m.ZP)("one-time-orders").translate)("one-time-orders.page.order.tracking.button");return r?(0,l.tZ)(b.zx.Primary,{size:"sm",as:"a",leadingIcon:(0,l.tZ)(z.default,{}),href:t,target:"_blank",rel:"noopener noreferrer","aria-label":"".concat(n," (opens in new tab)"),"data-test-id":"tracking-info-button",children:n}):null},G=r(318066),q=r(277425),F=function(e){var t=e.selectedCut;
1return(0,l.BX)(b.xu,{display:"flex",alignItems:"flex-start",gap:"global.sm-2",children:[(0,l.BX)(b.xu,{flexShrink:0,width:80,height:80,position:"relative",children:[(0,l.tZ)(G.ZP,{src:(0,q.Z)(t.image),alt:t.quantity>1?"".concat(t.quantity," ").concat(t.title):"".concat(t.title),width:80,height:80,style:{objectFit:"cover"},sizes:"(max-width: 768px) 40vw, (max-width: 1200px) 25vw, 15vw"}),t.quantity>1&&(0,l.tZ)(b.xu,{position:"absolute",bottom:"global.none",left:"global.none",margin:"global.none",padding:"global.none",children:(0,l.tZ)(b.Vp.Static,{variant:"primary",content:"x".concat(t.quantity)})})]}),(0,l.BX)(b.xu,{display:"flex",flexDirection:"column",gap:"global.sm-1",children:[(0,l.tZ)(b.xv,{type:"body-md-bold",color:"shared-alias.neutral.foreground.darkest",children:t.title}),(0,l.tZ)(b.xv,{type:"body-sm-regular",color:"shared-alias.neutral.foreground.dark",children:t.description})]})]},t.index)},K=r(275946);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}var Q=function(e){var t,r,n,o,i,a,u=e.orderView,s=e.onViewOrder,d=e.defaultExpanded,p=e.isLastOrderinList,f=void 0!==p&&p,y=function(e){if(Array.isArray(e))return e}(t=(0,c.useState)(void 0!==d&&d))||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,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(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.")}(),v=y[0],x=y[1],O=(0,m.ZP)(h),Z=O.translateRaw,w=O.translate,S=(0,N.Sj)(),C="mobile"===S,j="tablet"===S;return(0,l.tZ)(l.HY,{children:(0,l.BX)(l.HY,{children:[(0,l.tZ)(b.UQ.Outline,{onClick:function(){return x(!v)},buttonPosition:"right",isOpen:v,buttonStyle:"plain",leadingTitleIcon:(0,l.tZ)(V.default,{}),children:(0,l.BX)(b.xu,{paddingBottom:f?"global.sm-1":"global.none",children:[(0,l.tZ)(b.UQ.Title,{headlineDescription:Z(v?"one-time-orders.page.accordion.hide.button":"one-time-orders.page.accordion.expand.button"),children:(0,l.BX)(b.xv,{type:"body-md-bold",children:[Z("one-time-orders.page.order.items.count.description")," ",null==u?void 0:u.deliveryDate]})}),(0,l.BX)(b.UQ.Description,{paddingX:"global.none",children:[(0,l.BX)(b.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"global.md-1",children:[(0,l.tZ)(b.xv,{type:"body-md-regular",children:w("one-time-orders.page.order.items.count",{count:null==u?void 0:u.totalCutsAmount})}),"desktop"===S&&(0,l.BX)(b.xu,{display:"flex",flexDirection:"row",gap:(null==u?void 0:null===(r=u.trackingInfo)||void 0===r?void 0:r.tracking_url)?"global.sm-2":"zero",alignContent:"flex-end",role:"group","aria-label":"Actions for order from ".concat(u.deliveryDate),children:[(0,l.tZ)(b.xu,{children:(0,l.tZ)(b.zx.Secondary,{size:"sm",leadingIcon:(0,l.tZ)(K.default,{"aria-hidden":"true"}),onClick:function(){return s(u)},children:Z(g)})}),(0,l.tZ)(b.xu,{children:(0,l.tZ)(H,{trackingUrl:null==u?void 0:null===(n=u.trackingInfo)||void 0===n?void 0:n.tracking_url})})]})]}),C?(0,l.tZ)(l.HY,{children:(0,l.tZ)(b.xu,{paddingTop:"global.md-2",position:"relative",children:(0,l.tZ)(b.lr,{id:"order-cuts-".concat(u.id),perPage:1.5,showBulletPagination:!0,paddingX:"zero",partialSlideView:!0,showArrowNavigation:!0,"aria-label":"Cuts for order ".concat(u.id),"aria-live":"polite",children:Array.from({length:Math.ceil((null==u?void 0:u.cutSelections.length)/2)}).map(function(e,t){return(0,l.tZ)(b.xu,{display:"flex",flexDirection:"column",gap:"global.sm-2",children:null==u?void 0:u.cutSelections.slice(2*t,2*t+2).map(function(e){return(0,l.tZ)(F,{selectedCut:e},e.index)})},t)})})})}):(0,l.tZ)(b.xu,{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"global.md-1",paddingTop:"global.md-2",children:null==u?void 0:u.cutSelections.map(function(e){return(0,l.tZ)(F,{selectedCut:e},e.index)})}),C||j?(0,l.BX)(b.xu,{paddingTop:"global.md-1",flexShrink:0,display:"flex",gap:j&&(null==u?void 0:null===(o=u.trackingInfo)||void 0===o?void 0:o.tracking_url)?"global.sm-2":"zero",flexDirection:j?"row":"column",children:[(0,l.tZ)(b.xu,{flex:j?1:void 0,children:(0,l.tZ)(b.zx.Secondary,{size:"sm",leadingIcon:(0,l.tZ)(K.default,{"aria-hidden":"true"}),onClick:function(){return s(u)},children:Z(g)})}),(0,l.tZ)(b.xu,{flex:j&&(null==u?void 0:null===(i=u.trackingInfo)||void 0===i?void 0:i.tracking_url)?1:void 0,children:(0,l.tZ)(H,{trackingUrl:null==u?void 0:null===(a=u.trackingInfo)||void 0===a?void 0:a.tracking_url})})]}):null]})]})}),!f&&(0,l.tZ)(b.iz,{variant:"horizontal"})]})})},$=r(953137),J=function(){var e,t=(0,$.u)({},{suspense:!1}),r=t.data,n=t.isLoading,o=null!==(e=null==r?void 0:r.items)&&void 0!==e?e:[];return{hasSubscriptions:o.length>0,hasActiveSubscriptions:o.some(function(e){return!e.canceledAt}),isLoading:n}};(o=a||(a={})).ARRIVING="ARRIVING",o.DELIVERED="DELIVERED",o.ERROR="ERROR";var ee=r(295332),et=r(384949),er=function(e){var t=[];return e.map(function(e){return e.customer_selections.map(function(e){var r,n,o;return t.push({index:e.index,title:(null===(r=e.menuItem)||void 0===r?void 0:r.recipe.name)||"",description:(null===(n=e.menuItem)||void 0===n?void 0:n.recipe.headline)||"",image:(null===(o=e.menuItem)||void 0===o?void 0:o.recipe.image)||"",quantity:e.quantity})})}),t},en=function(){var e=(0,f.CR)({product:"one-time-purchase-1"},{suspense:!1}),t=e.data,r=e.isLoading,n=(0,c.useMemo)(function(){return t&&0!==t.length?t.map(function(e){var t,r,n,o,i,l,c,u,
1s;return{id:e.id,deliveryDate:(c=e.delivery.delivery_date,u=e.state,c?u===a.DELIVERED?(0,ee.Z)(c,et.He)||"":(0,ee.Z)(c,et.OC)||"":""),status:(s=e.state)?s===a.DELIVERED?a.DELIVERED:a.ARRIVING:a.ERROR,totalCutsAmount:(null!==(o=e.items)&&void 0!==o?o:[]).flatMap(function(e){return e.customer_selections}).reduce(function(e,t){return e+t.quantity},0),pricingInfo:{grandTotal:e.price.grand_total,productPrice:null!==(i=null===(n=e.items)||void 0===n?void 0:null===(r=n[0])||void 0===r?void 0:null===(t=r.item_price)||void 0===t?void 0:t.base_unit_price)&&void 0!==i?i:0,shippingAmount:e.price.shipping_amount,shippingDiscountAmount:e.price.shipping_discount_amount,taxAmount:e.price.tax_amount},cutSelections:er(null!==(l=e.items)&&void 0!==l?l:[]),trackingInfo:e.tracking}}):[]},[t]),o=n.length>0;return{orders:n,isLoading:r,hasOrders:o}};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}function ei(e,t){return function(e){if(Array.isArray(e))return e}(e)||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,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eo(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 eo(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 ea=function(e){!function(e){if(null==e)throw TypeError("Cannot destructure "+e)}(e);var t=(0,m.ZP)(h).translateRaw,r=J().hasActiveSubscriptions,n=en().orders,o=ei((0,c.useState)(!1),2),a=o[0],s=o[1],d=ei((0,c.useState)(null),2),p=d[0],f=d[1],g=function(e){f(e),s(!0)};return(0,l.BX)(u.Z,{scope:"one-time-orders-content",children:[(0,l.BX)(b.xu,{p:["zero","global.lg-1"],maxWidth:"1200px",mx:"auto","data-test-id":"one-time-orders-page",children:[(0,l.tZ)(B,{variant:r?i.subscription:i.oneTimePurchase}),(0,l.BX)(b.xu,{backgroundColor:"global.white",paddingTop:"global.md-2",boxShadow:"global.sm",children:[(0,l.BX)(b.xu,{textAlign:"center",mb:["global.md-1","global.md-2","global.md-2"],px:"global.sm-2",children:[(0,l.tZ)(b.xv,{as:"h1",type:["display-sm","display-md","display-lg"],strong:!0,mb:"global.sm-1",textTransform:"uppercase",children:t("one-time-orders.page.title")}),(0,l.tZ)(b.xv,{as:"p",children:t("one-time-orders.page.subtitle")})]}),n.map(function(e,t){return(0,l.tZ)(b.xu,{marginX:[null,"global.md-2","global.xxl"],paddingX:["global.sm-2","zero"],children:(0,l.tZ)(Q,{orderView:e,isLastOrderinList:t===n.length-1,defaultExpanded:0===t,onViewOrder:function(){return g(e)}})},e.id)})]})]}),p&&(0,l.tZ)(W,{isOpen:a,onClose:function(){s(!1),f(null)},order:p})]})};function el(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,o)}var ec=(0,b.q)(b.xu),eu=function(e){var t,r,n=e.width,o=e.height,i=(0,b.q_)({from:{opacity:.33},to:(t=function(e){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:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){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,l])}}}(this,function(t){switch(t.label){case 0:return[4,e({opacity:.8})];case 1:return t.sent(),[4,e({opacity:.33})];case 2:return t.sent(),[2]}})},r=function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(e){el(i,n,o,a,l,"next",e)}function l(e){el(i,n,o,a,l,"throw",e)}a(void 0)})},function(e){return r.apply(this,arguments)}),config:{duration:1e3,easing:b.Gk.linear},loop:!0});return(0,l.tZ)(ec,{height:void 0===o?"20px":o,width:void 0===n?"100%":n,backgroundColor:"global.gray.300",borderRadius:"global.sm",style:i})},es=function(){return(0,l.BX)(l.HY,{children:[(0,l.tZ)(b.xu,{py:"global.md-1",px:["global.md-1",,],backgroundColor:"transparent",children:(0,l.BX)(b.xu,{backgroundColor:"global.white",borderRadius:"global.sm",p:"global.md-1",boxShadow:"shadow-sm",children:[(0,l.BX)(b.xu,{display:"flex",gap:"global.md-1",alignItems:"flex-start",children:[(0,l.tZ)(eu,{width:"100px",height:"100px"}),(0,l.BX)(b.xu,{display:"flex",flexDirection:"column",gap:"global.xs",flex:"1",children:[(0,l.tZ)(eu,{width:"100%",height:"35px"}),(0,l.tZ)(eu,{width:"100%",height:"20px"}),(0,l.tZ)(eu,{width:"25%",height:"20px"})]})]}),(0,l.tZ)(b.xu,{mt:"global.md-1",children:(0,l.tZ)(eu,{height:"48px"})})]})}),(0,l.BX)(b.xu,{backgroundColor:"global.white",borderRadius:"global.md",p:"global.md-1",boxShadow:"shadow-sm",mb:"global.md-2",children:[(0,l.tZ)(b.xu,{display:"flex",justifyContent:"center",mb:"global.lg-1",children:(0,l.tZ)(eu,{width:"300px",height:"40px"})}),(0,l.tZ)(b.xu,{mb:"global.sm-2",children:(0,l.tZ)(eu,{height:"20px"})}),(0,l.tZ)(b.xu,{mb:"global.sm-2",children:(0,l.tZ)(eu,{height:"32px"})}),(0,l.tZ)(b.xu,{mb:"global.lg-1",children:(0,l.tZ)(eu,{height:"20px"})}),[1,2].map(function(e){return(0,l.BX)(b.xu,{mb:"global.lg-1",display:"flex",gap:"global.sm-1",alignItems:"center","data-testid":"order-card-skeleton",children:[(0,l.tZ)(eu,{width:"90px",height:"90px"}),(0,l.BX)(b.xu,{display:"flex",flexDirection:"column",gap:"global.sm-1",flex:"1",children:[(0,l.tZ)(eu,{width:"100%",height:"20px"}),(0,l.tZ)(eu,{width:"100%",height:"16px"})]}),(0,l.tZ)(eu,{width:"90px",height:"90px"}),(0,l.BX)(b.xu,{display:"flex",flexDirection:"column",flex:"1",gap:"global.sm-1",children:[(0,l.tZ)(eu,{width:"100%",height:"20px"}),(0,l.tZ)(eu,{width:"50%",height:"16px"})]})]},e)}),(0,l.tZ)(b.xu,{mb:"global.sm-2",children:(0,l.tZ)(eu,{height:"60px"})}),(0,l.tZ)(b.xu,{children:(0,l.tZ)(eu,{height:"60px"})})]})]})},ed=r(497249),ep=r(344884),ef=function(e){var t=e.isLoading,r=e.isFetching,n=e.isError,o=(0,ed.T)(),i=(0,c.useRef)(null),a=(0,c.useRef)(0),l=(0,c.useRef)(!1);(0,c.useEffect)(function(){if(t||r){i.current||(a.current=Date.now(),i.current=o.startSpan("good-chop.otp-orders-load"),i.current.setAttribute("is-refetch",l.current));return}if(i.current){var e=Date.now()-a.current;i.current.setAttributes({"load-time-ms":e,"is-refetch":l.current}),n?i.current.setStatus({code:ep.Z.ERROR}):i.current.setStatus({code:ep.Z.OK}),i.current.end(),i.current=null,l.current=!0}},[t,r,n,o])}
1,eb=function(){var e=(0,m.ZP)(h).translateRaw,t=(0,f.CR)({},{suspense:!1,refetchOnMount:"always"}),r=t.data,n=t.isLoading,o=t.isFetching,i=t.isError;return(ef({isLoading:n,isFetching:o,isError:i}),n||o)?(0,l.tZ)(b.xu,{maxWidth:"1200px",mx:"auto",children:(0,l.tZ)(es,{})}):i?(0,l.tZ)(b.xu,{p:"lg-1",maxWidth:"1200px",mx:"auto",children:(0,l.tZ)(b.gb,{variant:"error","data-test-id":"one-time-orders-error",children:e("one-time-orders.error.text")})}):r&&0!==r.length?(0,l.tZ)(ea,{}):(0,l.BX)(b.xu,{p:"lg-1",maxWidth:"1200px",mx:"auto",textAlign:"center","data-test-id":"one-time-orders-empty",children:[(0,l.tZ)(b.xv,{as:"h2",styleAs:"h3",mb:"sm-1",children:e("one-time-orders.empty.title")}),(0,l.tZ)(b.xv,{children:e("one-time-orders.empty.text")})]})},em=r(203666),eh=function(){return(0,l.tZ)(u.Z,{scope:"one-time-deliveries",fallback:(0,l.tZ)(s.default,{}),children:(0,l.BX)(em.Z,{children:[(0,l.tZ)(p.Z,{}),(0,l.tZ)(eb,{})]})})};eh.customLayout=d.A5,eh.provideCustomLayoutProps=function(e){return{ssrPayload:e.ssrPayload,claim:{name:"good-chop-retention",githubTeam:"hellofresh/good-chop-retention",tribe:"new-ventures",alliance:"consumer",jiraPrefix:"GOC",slackChannel:"#squad-nv-good-chop",slackAlertsChannel:"#good-chop-alerts",skipLabelsOnPR:!1,teamIdentifier:"good-chop-retention"}}};var eg=!0,ey=eh},428637:function(e,t,r){"use strict";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.Z=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"]);
1return(0,n.BX)("svg",i(o(i(o({width:"1rem",height:"1rem",viewBox:"0 0 16 16",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:"M13.667 4.06 5.36 12.37 2 9.01l1.06-1.06 2.299 2.298L12.607 3l1.06 1.06Z",fill:"currentColor"})]}))}},490412: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:"M22 6.484 12 1 2 6.484v11.032L12 23l10-5.484V6.484Zm-16.94.58L7.4 5.782l6.941 3.806L12 10.871 5.06 7.065ZM16.4 8.459 9.46 4.652 12 3.258l6.94 3.807-2.54 1.393ZM4 8.742v7.613l7 3.838v-7.612L4 8.742Zm9 3.839v7.612l7-3.838V8.742l-7 3.839Z",fill:"currentColor"})]}))}},275946: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",{d:"M12 7h4v2h-4V7ZM16 11h-4v2h4v-2ZM12 15h4v2h-4v-2ZM10 7H8v2h2V7ZM8 11h2v2H8v-2ZM10 15H8v2h2v-2Z",fill:"currentColor"}),(0,n.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 2v20h16V2H4Zm14 2H6v16h12V4Z",fill:"currentColor"})]}))}},735957: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}
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 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:"M2 14V4h14v2h1l5 5.539V18h-2.268a2 2 0 1 1-3.465 0H9.733a2 2 0 1 1-3.465 0H4v-4H2Zm2-8h10v6H4V6Zm2 8v2h14v-3.692L16.111 8H16v6H6Z",fill:"currentColor"})]}))}}},function(e){e.O(0,[47057,38579,12737,8139,14206,44355,61403,40889,85698,50134,18629,17827,3243,83030,32857,69190,64901,57252,36060,74050,64291,24400,14005,81989,92888,49774,40179],function(){return e(e.s=741714)}),_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.