1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{86084:function(e,t,r){Promise.resolve().then(r.bind(r,87252)),Promise.resolve().then(r.bind(r,47639)),Promise.resolve().then(r.bind(r,82794)),Promise.resolve().then(r.bind(r,56339)),Promise.resolve().then(r.t.bind(r,88003,23)),Promise.resolve().then(r.bind(r,81523)),Promise.resolve().then(r.bind(r,70049))},47639:function(e,t,r){"use strict";r.d(t,{SearchParamsProvider:function(){return o},b:function(){return i}});var n=r(57437),a=r(2265);let s=(0,a.createContext)(),o=e=>{let{children:t}=e,[r,o]=(0,a.useState)("");return(0,a.useEffect)(()=>{let e=sessionStorage.getItem("fullQueryString");e&&o(e)},[]),(0,a.useEffect)(()=>{r&&sessionStorage.setItem("fullQueryString",r)},[r]),(0,n.jsx)(s.Provider,{value:{queryString:r,updateQueryString:e=>{o(t=>{let r=t?decodeURIComponent(t):"",n=decodeURIComponent(e),a=new URLSearchParams(r);for(let[e,t]of new URLSearchParams(n))a.set(e,t);return encodeURIComponent(a.toString())})},clearQueryString:()=>{o(""),sessionStorage.removeItem("fullQueryString")},getParamsAsObject:()=>{let e=r?decodeURIComponent(r):"";if(!e)return{};let t=new URLSearchParams(e),n={};for(let[e,r]of t.entries())n[e]=r;return n}},children:t})},i=()=>{let e=(0,a.useContext)(s);if(!e)throw Error("useSearchParamsContext must be used within a SearchParamsProvider");return e}},87252:function(e,t,r){"use strict";r.d(t,{N:function(){return i},QueryStringProvider:function(){return o}});var n=r(57437),a=r(2265);let s=(0,a.createContext)(),o=e=>{let{children:t}=e,[r,o]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e;let t=()=>o(window.innerWidth>=768);t();let r=()=>{clearTimeout(e),e=setTimeout(t,100)};return window.addEventListener("resize",r),()=>{clearTimeout(e),window.removeEventListener("resize",r)}},[]),(0,n.jsx)(s.Provider,{value:{isDesktop:r},children:t})},i=()=>{let e=(0,a.useContext)(s);if(!e)throw Error("useQueryString must be used within a QueryStringProvider");return e}},82794:function(e,t,r){"use strict";r.d(t,{default:function(){return d}});var n=r(57437),a=r(2265),s=r(94495),o=r(43903),i=r(99376),l=r(5515),u=r.n(l);function d(e){let{children:t}=e;return(0,a.useEffect)(()=>{},[]),(0,n.jsx)(n.Fragment,{children:t})}s.Ib.registerComponent(function(e){let t=(0,i.useSearchParams)();t.get("utm_source"),t.get("utm_medium"),t.get("utm_campaign");let[r,s]=(0,a.useState)({nama:e.nama||"",phone:e.phone||"",email:e.email||"",password:e.password||"",confirmPassword:e.confirmPassword||"",agree:e.agree||!1,namalaundry:e.namalaundry||""}),[l,d]=(0,a.useState)(!1),[c,m]=(0,a.useState)(!1),f=e=>{let{name:t,value:r,type:n,checked:a}=e.target;s(e=>({...e,[t]:"checkbox"===n?a:r}))},h=async e=>{e.preventDefault(),u().fire({title:"",text:"Loading...",showConfirmButton:!1,allowOutsideClick:!1,allowEscapeKey:!1});let n={};for(let[e,a]of t.entries())"ref"==e&&(r.referal=a),"sku"==e&&(r.affiliate=a),n[e]=a;if(r.source="landing",r.referrer=n,r.phone.startsWith("0")&&(r.phone="+62"+r.phone.substring(1)),r.phone.startsWith("+")||(r.phone="+"+r.phone),!r.agree){u().fire({text:"Harap centang persetujuan syarat & ketentuan!",icon:"error"});return}if(r.password!==r.confirmPassword){u().fire({text:"Password & Konfimasi Password harus sama!",icon:"error"});return}console.log("value",r);let a=btoa("".concat(r.email,":").concat(r.phone));await fetch("https://apiweb.bilas.id/web/user/auth/register/check-email",{method:"post",headers:{"x-access-token":"sjgyfne73592643gedudney3628465hgrdt",Authorization:"Basic ".concat(a)},skipAuth:!0}).then(e=>e.json()).then(async e=>{"0"==e.value?u().fire({text:e.message,icon:"error"}):await (0,o.Z)("outlet/pemilik/create","post",JSON.stringify(r)).then(e=>{"1"==e.value?u().fire({text:"Pendaftaran berhasil! login bilas outlet",icon:"success"}).then(e=>{e&&window.open("https://web.bilas.id/login?".concat(t.toString()),"_self")}):u().fire({text:add.message,icon:"error"}),console.log(e)})})};return(0,n.jsxs)("div",{id:"daftar",className:"max-w-md mx-auto p-6 bg-white rounded-lg",children:[(0,n.jsx)("h1",{className:"text-2xl font-bold text-center mb-6",children:"Daftar Sekarang"}),(0,n.jsxs)("form",{onSubmit:h,className:"space-y-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"nama",className:"block text-sm font-medium text-gray-700 mb-1",children:"Nama Lengkap"}),(0,n.jsx)("input",{type:"text",id:"nama",name:"nama",value:r.nama,onChange:f,placeholder:"Masukkan Nama Anda",className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",required:!0})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"phone",className:"block text-sm font-medium text-gray-700 mb-1",children:"Nomor Telepon"}),(0,n.jsx)("input",{type:"tel",id:"phone",name:"phone",value:r.phone,onChange:f,placeholder:"Misal: +628123456789",className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",required:!0})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 mb-1",children:"Email"}),(0,n.jsx)("input",{type:"email",id:"email",name:"email",value:r.email,onChange:f,placeholder:"Misal: [email protected]",className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",required:!0})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-700 mb-1",children:"Password"}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("input",{type:l?"text":"password",id:"password",name:"password",value:r.password,onChange:f,placeholder:"Password",className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",required:!0}),(0,n.jsx)("button",{type:"button",onClick:()=>d(!l),className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 hover:text-gray-700",children:l?(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]}):(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})})})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"confirmPassword",className:"block text-sm font-medium text-gray-700 mb-1",children:"Konfirmasi Password"}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("input",{type:c?"text":"password",id:"confirmPassword",name:"confirmPassword",value:r.confirmPassword,onChange:f,placeholder:"Password",className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",required:!0}),(0,n.jsx)("button",{type:"button",onClick:()=>m(!c),className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 hover:text-gray-700",children:c?(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]}):(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})})})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"nama",className:"block text-sm font-medium text-gray-700 mb-1",children:"Nama Laundry"}
1),(0,n.jsx)("input",{type:"text",id:"namalaundry",name:"namalaundry",value:r.namalaundry,onChange:f,placeholder:"Masukkan Nama Laundry Anda",className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",required:!0})]}),(0,n.jsxs)("div",{className:"flex items-start",children:[(0,n.jsx)("div",{className:"flex items-center h-5",children:(0,n.jsx)("input",{id:"agree",name:"agree",type:"checkbox",checked:r.agree,onChange:f,className:"w-4 h-4 text-blue-600 border-gray-300 rounded focus:ring-2 focus:ring-blue-500"})}),(0,n.jsx)("div",{className:"ml-2 text-sm",children:(0,n.jsx)("label",{htmlFor:"agree",className:"font-medium text-gray-700",children:"Dengan mendaftar, saya menyetujui syarat & ketentuan berlaku"})})]}),(0,n.jsx)("button",{type:"submit",className:"w-full bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-md transition duration-200 ease-in-out",children:"Daftar Sekarang"})]})]})},{name:"Pendaftaran",image:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F6bef27ee40d24f3b88239fd7e616f82a"}),console.log("â
component registered"),s.fl.init("57d9f325f96e4ae2bd7f7381bde7d263")},56339:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return o}});var n=r(47639),a=r(99376),s=r(2265);function o(){let e=(0,a.useSearchParams)(),{updateQueryString:t}=(0,n.b)();return(0,s.useEffect)(()=>{{let e=window.location.search.slice(1);e&&t(encodeURIComponent(e))}},[e,t]),null}},43903:function(e,t,r){"use strict";
1var n=r(5515),a=r.n(n);let s=async(e,t,r)=>{try{var n=[];return await fetch("https://backendapi.bilas.id/"+e,{method:t||"get",headers:{"Access-Control-Allow-Origin":"*","Content-Type":"application/json","x-access-token":"sjgyfne73592643gedudney3628465hgrdt"},body:r}).then(e=>e.json()).then(e=>{n=e}),n}catch(e){a().fire({title:"",text:"server sedang sibuk, coba lagi",icon:"error",dangerMode:!0,closeOnClickOutside:!1}).then(async e=>{})}};t.Z=s},99376:function(e,t,r){"use strict";var n=r(35475);r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},63515:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81523:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return a}});let n=r(18993);function a(e){let{reason:t,children:r}=e;if("undefined"==typeof window)throw new n.BailoutToCSRError(t);return r}},70049:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return s}});let n=r(57437),a=r(20544);function s(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let r=(0,a.getExpectedRequestStore)("next/dynamic css"),s=[];if(r.reactLoadableManifest&&t){let e=r.reactLoadableManifest;for(let r of t){if(!e[r])continue;let t=e[r].files.filter(e=>e.endsWith(".css"));s.push(...t)}}return 0===s.length?null:(0,n.jsx)(n.Fragment,{children:s.map(e=>(0,n.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:r.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}}},function(e){e.O(0,[9461,4495,8003,2971,2117,1744],function(){return e(e.s=86084)}),_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.