PageSourceSearch

https://www.se-ed.com/_next/static/chunks/310.a4902521548ae193.js

js se-ed.com collected 2026-09-24 09:30:51 UTC 9,867 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="3c1a4108-2cbc-4a2d-8d67-326e9e6a1ff3",e._sentryDebugIdIdentifier="sentry-dbid-3c1a4108-2cbc-4a2d-8d67-326e9e6a1ff3")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[310],{35092:function(e,r,t){t.d(r,{GV:function(){return useCancelReturnPhysicalOrder},Gn:function(){return useGetOrderReceipt},JU:function(){return useAcceptPhysicalOrder},NF:function(){return useBuyAgainProducts},Q:function(){return useGetOrderHistoryCount},WK:function(){return useGetDelivery},fM:function(){return useGetOrderHistory},fl:function(){return useCreateReturnPhysicalOrder},hn:function(){return useFindOrderHistory},oY:function(){return useGetPayment},oj:function(){return useGetShippingStatus},rw:function(){return useCancelCheckout}});var n,a=t(89745),u=t(84320),o=t(30179),c=t(76880),i=t.n(c),s=t(97770),d=t(67546),l=t(68075),f=t(47886),p=t(92018),h=t(37403),y=t(1597),v=t(44194),_=t(11461),g=t(50155);function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var useGetOrderHistory=function(e,r){var t,n=(0,d.Ek)(),a=(0,g.u)(e?["/order-history/{id}",e]:null,(t=(0,o.Z)(i().mark(function _callee(e){var r;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=(0,u.Z)(e,2)[1],t.abrupt("return",n.webBffAPI("/order-history/{id}").method("get").create()({id:r}));case 2:case"end":return t.stop()}},_callee)})),function(e){return t.apply(this,arguments)}),{revalidateOnFocus:!r}),c=a.data,s=a.error;return{data:c,loading:!!e&&!c&&!s,error:s,isValidating:a.isValidating,mutate:a.mutate}},useGetPayment=function(e){var r,t=(0,d.Ek)(),n=(0,g.u)(e?["/payment/order",e]:null,(r=(0,o.Z)(i().mark(function _callee2(e){var r;return i().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=(0,u.Z)(e,2)[1],n.abrupt("return",t.paymentAPI("/payment/order/{orderId}").method("get").create()({orderId:r}));case 2:case"end":return n.stop()}},_callee2)})),function(e){return r.apply(this,arguments)}));return{data:n.data,error:n.error,mutate:n.mutate}},useGetDelivery=function(e){var r,t=(0,d.Ek)(),n=(0,g.u)(e?["/get-delivery",e]:null,(r=(0,o.Z)(i().mark(function _callee3(e){var r;return i().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=(0,u.Z)(e,2)[1],n.abrupt("return",t.deliveryAPI("/get-many-delivery").method("get").create()({orderIds:[r]}).then(function(e){var r;return null===(r=e.data.deliveries)||void 0===r?void 0:r[0]}));case 2:case"end":return n.stop()}},_callee3)})),function(e){return r.apply(this,arguments)}));return{data:n.data,error:n.error,mutate:n.mutate}},useCancelCheckout=function(){var e,r=(0,d.Ek)();return(0,p.D1)((e=(0,o.Z)(i().mark(function _callee4(e){return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.orderAPI("/cancel-checkout").method("post").create()({id:e}));case 1:case"end":return t.stop()}},_callee4)})),function(r){return e.apply(this,arguments)}))},useGetShippingStatus=function(e){var r,t=(0,d.Ek)(),n=e.filter(function(e){return!!e}),a=(0,g.u)(n.length>0?["/get-shipping-status",n]:null,(r=(0,o.Z)(i().mark(function _callee5(e){var r;return i().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=(0,u.Z)(e,2)[1],n.abrupt("return",t.deliveryAPI("/get-shipping-status").method("get").create()({orderIds:r}));case 2:case"end":return n.stop()}},_callee5)})),function(e){return r.apply(this,arguments)})),c=a.data,s=a.error;return{data:c,error:s,isValidating:a.isValidating,mutate:a.mutate,loading:n.length>0&&!c&&!s}},useFindOrderHistory=function(){var e,r=(0,v.useState)(!1),t=r[0],n=r[1],a=(0,v.useState)(""),u=a[0],c=a[1],s=(0,d.Ek)();return{fetch:(e=(0,o.Z)(i().mark(function _callee6(e,r,t,a){var u,o;return i().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n(!0),u={"filter.status":e,"filter.hasReturnRequest":t,limit:a||10},r&&(u["filter.cursor"]=r),i.prev=3,i.next=6,s.webBffAPI("/order-history").method("get").create()(u);case 6:return o=i.sent,i.abrupt("return",o);case 10:i.prev=10,i.t0=i.catch(3),c(i.t0.message);case 13:return i.prev=13,n(!1),i.finish(13);case 16:case"end":return i.stop()}},_callee6,null,[[3,10,13,16]])})),function(r,t,n,a){return e.apply(this,arguments)}),loading:t,error:u,DEFAULT_PAGE_SIZE:10}},useGetOrderHistoryCount=function(){var e=(0,d.Ek)().orderAPI;return(0,g.u)("/order-history-count",(0,o.Z)(i().mark(function _callee7(){var r;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e("/order-history-count").method("get").create()({});case 2:return r=t.sent,t.abrupt("return",r.data);case 4:case"end":return t.stop()}},_callee7)})))},useGetBuyAgainProducts=function(){var e,r=(0,d.Ek)().orderAPI("/buy-again-products").method("get").create();return{getBuyAgainProducts:(e=(0,o.Z)(i().mark(function _callee8(e){var t;return i().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r({orderId:e});case 2:return t=n.sent,n.abrupt("return",t.data.products);case 4:case"end":return n.stop()}},_callee8)})),function(r){return e.apply(this,arguments)})}},m=(n=(0,o.Z)(i().mark(function _callee9(e,r,t){var n,a,u,o,c,s,d;return i().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:n=[],a=function(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray(e,r)}}(e))){t&&(e=t);var n=0,F=function(){};return{s:F,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return u=e.done,e},e:function(e){o=!0,a=e},f:function(){try{u||null==t.return||t.return()}finally{if(o)throw a}}}}(null!=e?e:[]),i.prev=2,a.s();case 4:if((u=a.n()).done){i.next=23;break}if(c=parseInt((o=u.value).amount,10),"PRODUCT_TYPE_PHYSICAL"!==o.productType){i.next=15;break}return i.next=10,r(o.productId,o.variant,c);case 10:s=i.sent.id,n.push(s),i.next=21;break;case 15:if(!(o.productType&&"PRODUCT_TYPE_UNSPECIFIED"!==o.productType)){i.next=21;break}return i.next=18,t(o.productType,o.productId,o.variant,!1,o.isGift,c);case 18:d=i.sent.id,n.push(d);case 21:i.next=4;break;case 23:i.next=28;break;case 25:i.prev=25,i.t0=i.catch(2),a.e(i.t0);case 28:return i.prev=28,a.f(),i.finish(28);case 31:return i.abrupt("return",n);case 32:case"end":return i.stop()}},_callee9,null,[[2,25,28,31]])})),function(e,r,t){return n.apply(this,arguments)}),useBuyAgainProducts=function(){var e,r=(0,y.useRouter)(),t=(0,_.$G)().t,n=(0,s.VY)(),u=(0,f.V)(),c=(0,l.jD)().mutate,d=(0,l.wM)().setSelectedProductIds,v=useGetBuyAgainProducts().getBuyAgainProducts,g=(0,l.Bq)(),A=g.addPhysicalProduct,b=g.addDigitalContentProduct;return(0,p.D1)((e=(0,o.Z)(i().mark(function _callee10(e){var o,s,l,f,p,y,_,g,I;return i().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,v(e);case 3:if(s=null==(o=i.sent)?void 0:o.filter(function(e){return"ADD_TO_CART_STATUS_PRODUCT_AVAILABLE"===e.addToCartStatus}),l=null==o?void 0:o.filter(function(e){return"ADD_TO_CART_STATUS_PRODUCT_INVENTORY_NOT_ENOUGH"===e.addToCartStatus}),f=null==o?void 0:o.filter(function(e){return"ADD_TO_CART_STATUS_PRODUCT_AVAILABLE"!==e.addToCartStatus&&"ADD_TO_CART_STATUS_PRODUCT_INVENTORY_NOT_ENOUGH"!==e.addToCartStatus}),p=(null==s?void 0:s.length)!=0&&(null==l?void 0:l.length)==0&&(null==f?void 0:f.length)==0,y=(null==s?void 0:s.length)==0&&(null==l?void 0:l.length)==0&&(null==f?void 0:f.length)!=0,!p){i.next=19;break}return i.next=12,m(s,A,b);case 12:return _=i.sent,i.next=15,c();case 15:d((0,a.Z)(_)),r.push((0,h.PH)()),i.next=34;break;case 19:if(!y){i.next=23;break}n({severity:"error",message:t("order-history.repurchase-products-error.all-products-unavailable")}),i.next=34;break;case 23:return i.next=25,m(s,A,b);case 25:return g=i.sent,i.next=28,m(l,A,b);case 28:return I=i.sent,n({severity:"error",message:t("order-history.repurchase-products-error.has-unavailable-products")}),i.next=32,c();case 32:d([].concat((0,a.Z)(g),(0,a.Z)(I))),r.push((0,h.PH)());case 34:i.next=40;break;case 36:throw i.prev=36,i.t0=i.catch(0),u(i.t0),i.t0;case 40:case"end":return i.stop()}},_callee10,null,[[0,36]])})),function(r){return e.apply(this,arguments)}))},useGetOrderReceipt=function(e){var r,t=(0,d.Ek)(),n=(0,g.u)(e?["/order-receipt/{orderId}",e]:null,(r=(0,o.Z)(i().mark(function _callee11(e){var r;return i().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=(0,u.Z)(e,2)[1],n.abrupt("return",t.orderAPI("/order-receipt/{orderId}").method("get").create()({orderId:r}));case 2:case"end":return n.stop()}},_callee11)})),function(e){return r.apply(this,arguments)})),a=n.data,c=n.error;return{data:a,error:c,mutate:n.mutate,loading:!a&&!c}},useAcceptPhysicalOrder=function(){var e=(0,d.Ek)();return(0,p.D1)(function(r){return e.orderAPI("/physical-order/{orderId}/accept").method("post").create()({orderId:r})})},useCreateReturnPhysicalOrder=function(){var e=(0,d.Ek)();return(0,p.D1)(function(r){return e.orderAPI("/return-request/{orderId}/create").method("post").create()({orderId:r})})},useCancelReturnPhysicalOrder=function(){var e=(0,d.Ek)();return(0,p.D1)(function(r){return e.orderAPI("/return-request/{orderId}/cancel").method("post").create()({orderId:r})})}}}]);

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.