PageSourceSearch

https://www.bumbi.id/_next/static/chunks/pages/en/auth/forget-5a4ceca37f4e7bc9.js

js bumbi.id collected 2026-10-04 11:29:37 UTC 7,338 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1657],{9246:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/en/auth/forget",function(){return n(6783)}])},7552:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(5893),i=n(1355),s=n(5362),a=n(7294);function o(e){return(0,r.jsx)("div",{"aria-live":"assertive",className:"pointer-events-none fixed inset-0 mt-10 flex items-start px-4 py-6 sm:items-start",children:(0,r.jsx)("div",{className:"flex w-full flex-col items-center space-y-4 bg-light-50 sm:items-start",children:(0,r.jsx)(i.u,{show:!0,as:a.Fragment,enter:"transform ease-out duration-300 transition",enterFrom:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterTo:"translate-y-0 opacity-100 sm:translate-x-0",leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,r.jsx)("div",{className:"pointer-events-auto w-full overflow-hidden rounded-lg bg-light-50 shadow-lg ring-1 ring-black ring-opacity-5",children:(0,r.jsx)("div",{className:"p-4",children:(0,r.jsxs)("div",{className:"flex items-start",children:[(0,r.jsx)("div",{className:"flex-shrink-0",children:(0,r.jsx)(s.Z,{className:"h-6 w-6 text-danger-500","aria-hidden":"true"})}),(0,r.jsxs)("div",{className:"ml-3 flex w-0 flex-1 items-center justify-start gap-2",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-dark-900",children:(null==e?void 0:e.title)?null==e?void 0:e.title:""}),(0,r.jsx)("p",{className:"text-sm text-dark-500",children:null==e?void 0:e.message})]})]})})})})})})}},2717:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(5893);function i(e){let{name:t,id:n,onClick:i}=e;return(0,r.jsx)("div",{className:"inline-block items-center my-auto text-center w-full",children:(0,r.jsx)("button",{onClick:()=>i(),id:n,name:n,className:"w-full bg-primary-dark py-1.5 px-2 text-center text-lg font-semibold rounded-lg hover:bg-primary-600 transition-colors duration-500 text-primary-light",children:t})})}},2263:function(e,t,n){"use strict";n.d(t,{BO:function(){return u},Ez:function(){return x},GP:function(){return c},T8:function(){return o},XN:function(){return f},Y8:function(){return d},ZQ:function(){return a},xG:function(){return l},yy:function(){return m}});var r=n(2077),i=n.n(r),s=n(7294);function a(e){(0,s.useEffect)(()=>{let t=document.title;return document.title=e,()=>{document.title=t}})}function o(e,t){var n={};return n=t?{year:"numeric",month:"short",day:"numeric",weekday:"long"}:{year:"numeric",month:"short",day:"numeric"},new Date(e).toLocaleDateString("en-US",n)}function l(e){return e&&e>0?i()(parseInt(e)).format("0,0"):"0"}function c(e,t){let n=0;return n=null==e?void 0:e.reduce((e,t)=>{let n=t.Product,r=t.size_variant_id,i=n.min_price;if(n.ProductColorSizes&&n.ProductColorSizes.length>0){let e=n.ProductColorSizes.find(e=>e.size_variant_id==r);e&&(i=e.discount)}return Number(e+i*t.qty)},0),t&&t>0&&(n=Number(n)+Number(t)),n}function u(e,t){console.log("products: ",e);let n=0;return e&&e.length>0&&(n=e.reduce((e,t)=>{var n;return Number(e)+Number(t.qty)*Number((null==t?void 0:null===(n=t.Product)||void 0===n?void 0:n.weight)?t.Product.weight:"200")},0)),console.log("total weight: ",n),n}function d(e){return e||""}function m(e){var t;let n=(null==e?void 0:null===(t=e.Product)||void 0===t?void 0:t.ProductColorSizes).filter(t=>t.product_id==e.product_id&&t.color_variant_id==e.color_variant_id&&t.size_variant_id==e.size_variant_id);if(n.length>0)return e.is_po?Number(n[0].stock)<Number(e.qty)?"(Pre Order)":"":Number(n[0].stock)<Number(e.qty)?"(Out of Stock)":""}function f(e,t,n){var r=0;if(e.ProductColorSizes.length>0){let t=e.ProductColorSizes.find(e=>e.size_variant_id==n);t&&(r=t.discount)}else if(e.min_price&&e.max_price){if(e.min_price!=e.max_price)return"".concat(l(e.min_price)," - ").concat(l(e.max_price));r=e.min_price}else r=e.min_price;return l(r)}function x(e,t,n){var r=0;if(r=e.min_price,e.ProductColorSizes.length>0){let t=e.ProductColorSizes.find(e=>e.size_variant_id==n);t&&(r=t.discount)}return r}},4070:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});let r=" | Bumbi"},6783:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var r=n(5893),i=n(7294),s=n(1163),a=n(1355),o=n(9669),l=n.n(o),c=n(405),u=n(9473),d=n(7552),m=n(3031),f=n(2263),x=n(4070),h=n(8526),p=n(2717),v=n(4280);function g(){let e=(0,s.useRouter)(),t=(0,h.useLanguage)();(0,h.usePreviousPage)(),(0,u.I0)();let[n,o]=(0,i.useState)({email:""}),[g,_]=(0,i.useState)(!1),{from:y}=e.query,[b,N]=(0,i.useState)(!1),[w,j]=(0,i.useState)("");(0,f.ZQ)("Reset Password"+x.t);let k=async()=>{try{console.log("run forgetPass");let{data:r}=await l()({method:"POST",url:"".concat(m.h,"/api/v1/auth/forget"),data:n});r&&"success"==r.status&&(console.log("response: ",r),o({email:""}),e("/"+t.selectedLanguage+"/auth"))}catch(e){var r,i;j(null==e?void 0:null===(i=e.response)||void 0===i?void 0:null===(r=i.data)||void 0===r?void 0:r.message),N(!0),setTimeout(()=>{N(!1)},3e3)}};return(0,i.useEffect)(()=>{localStorage.getItem("token")&&e.push("/"+t.selectedLanguage)},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(c.ql,{children:[(0,r.jsx)("meta",{name:"description",content:"Bumbi is at the forefront of environmental sustainability and s
1ocial impact, established to confront the critical issue of plastic pollution in Indonesia's rivers."}),(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"})]}),(0,r.jsx)(a.u,{show:b,children:(0,r.jsx)(d.Z,{error:!0,message:w})}),(0,r.jsxs)("div",{className:"bg-primary-light flex min-h-[calc(100dvh-289px)] flex-col justify-center px-8 py-12 sm:px-6 lg:px-8 pb-24",children:[(0,r.jsxs)("div",{className:"sm:mx-auto sm:w-full sm:max-w-md",children:[(0,r.jsx)("h2",{className:"mt-6 text-left text-base font-normal text-dark-900",children:v.en.OP}),(0,r.jsx)("h3",{className:"mt-2 text-left text-sm font-light text-dark-900",children:v.en.z8})]}),(0,r.jsx)("div",{className:"mt-8 sm:mx-auto sm:w-full sm:max-w-md",children:(0,r.jsx)("div",{className:"",children:(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"email",className:"block text-xs font-light uppercase text-dark-700",children:v.en.wN}),(0,r.jsx)("div",{className:"mt-1",children:(0,r.jsx)("input",{id:"email",name:"email",type:"email",autoComplete:"email",required:!0,className:"block w-full appearance-none border border-dark-900 px-3 py-2 placeholder-dark-400 shadow-sm focus:border-primary-500 focus:outline-none focus:ring-primary-500 sm:text-sm",onChange:e=>{o({...n,email:e.target.value})}})})]}),(0,r.jsx)("div",{children:(0,r.jsx)(p.Z,{onClick:()=>k(),name:v.en.QU,id:"btnSubmitForgetPassword"})})]})})})]})]})}},5362:function(e,t,n){"use strict";var r=n(7294);let i=r.forwardRef(function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});t.Z=i}},function(e){e.O(0,[2077,2888,9774,179],function(){return e(e.s=9246)}),_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.