PageSourceSearch

https://www.nike.com/static/experience/shop-components/public/getRemoveItemOptions.chunk.8c580e.js

js nike.com collected 2026-09-24 09:07:40 UTC 4,363 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_nike_shop_components=self.webpackChunk_nike_shop_components||[]).push([[1334],{1495(e,t,n){n.r(t),n.d(t,{default:()=>h});var r=n(5538),i=n(4275),u=n(8963),s=n(44),o=n.n(s),a=n(5066),c=n(6323),l=n(7021),p=n(6331),d=n(3755),f=n(1679);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){(0,i.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const h=function(e){var t,n,i,s,v=e.queryClient,h=e.wishlistItemId,y=e.delayDataUpdate,b=void 0===y?0:y;return{mutationFn:(s=(0,u.A)(o().mark(function e(){var t,n,r;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,f.nR)({queryClient:v});case 1:return n=e.sent,e.next=2,null===(t=window)||void 0===t||null===(t=t.webShellClient)||void 0===t||null===(t=t.identity)||void 0===t?void 0:t.getAccessToken();case 2:return r=e.sent,e.abrupt("return",(0,a.A)("".concat("https://api.nike.com","/buy/wishlists/v2/lists/").concat(n,"/items/").concat(h),{method:"DELETE",headers:(0,c.A)({token:r,appId:(0,l.p)()})},"Error deleting items from wishlist.",{pageActionName:"tread-wishlist-event"}));case 3:case"end":return e.stop()}},e)})),function(){return s.apply(this,arguments)}),onMutate:(i=(0,u.A)(o().mark(function e(){var t,n,r,i,s,a,c,l;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,f.nR)({queryClient:v});case 1:return t=e.sent,e.next=2,v.cancelQueries((0,d.A)({listId:t}));case 2:return n=(0,p.A)({id:t}),e.next=3,v.getQueryData(n);case 3:return r=e.sent,i=null,s=null,null==r||r.pages.forEach(function(e,t){e.objects.forEach(function(e,n){e.id===h&&(i=t,s=n)})}),a=r.pages[i].objects[s],c=function(){var e=(0,u.A)(o().mark(function e(){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return v.setQueryData(n,function(e){if(e){var t,n=null!==(t=null==e?void 0:e.pages.filter(function(e){return null!=e}).map(function(e){var t,n;return m(m({},e),{},{objects:null!==(t=null==e||null===(n=e.objects)||void 0===n?void 0:n.filter(function(e){return e.id!==h}))&&void 0!==t?t:[]})}))&&void 0!==t?t:[];return m(m({},e),{},{pages:n})}}),e.next=1,v.invalidateQueries(n);case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),l=setTimeout(c,b),e.abrupt("return",{itemIndex:s,itemPageIndex:i,removedItem:a,dataUpdateTimeoutId:l});case 4:case"end":return e.stop()}},e)})),function(){return i.apply(this,arguments)}),onError:(n=(0,u.A)(o().mark(function e(t,n,i){var u,s,a,c,l,m,h;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=i.itemIndex,a=i.itemPageIndex,c=i.removedItem,l=i.dataUpdateTimeoutId,e.next=1,(0,f.nR)({queryClient:v});case 1:return m=e.sent,e.next=2,v.fetchQuery((0,p.A)({id:m}));case 2:(null==(h=e.sent)||null===(u=h.pages)||void 0===u?void 0:u.some(function(e){var t;return null===(t=e.objects)||void 0===t?void 0:t.some(function(e){return e.id===c.id})}))?clearTimeout(l):v.setQueryData((0,p.A)({id:m}),function(e){var t,n,i=null==e?void 0:e.pages[a],u={objects:[].concat((0,r.A)((null==i||null===(t=i.objects)||void 0===t?void 0:t.slice(0,s))||[]),[c],(0,r.A)((null==i||null===(n=i.objects)||void 0===n?void 0:n.slice(s))||[])),pages:null==i?void 0:i.pages};return null!=e&&e.pages&&(e.pages[a]=u),e}),v.invalidateQueries((0,d.A)({listId:m}));case 3:case"end":return e.stop()}},e)})),function(e,t,r){return n.apply(this,arguments)}),onSuccess:(t=(0,u.A)(o().mark(function e(){var t;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,f.nR)({queryClient:v});case 1:t=e.sent,v.invalidateQueries((0,d.A)({listId:t}));case 2:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)})}}}
1,3755(e,t,n){n.d(t,{A:()=>u,K:()=>i});var r=n(8067),i="/buy/wishlists/v2/lists/";const u=function(e){var t=e.listId;return(0,r.A)(["".concat(i).concat(t,"/items/summary")])}}}]);
2//# sourceMappingURL=getRemoveItemOptions.chunk.8c580e.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.