1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4474],{21375:function(e,t,a){"use strict";a.d(t,{BC:function(){return o},DF:function(){return s},f8:function(){return i},q7:function(){return l}});var n=a(63781);const r="https://strapicms.optikmelawai.com/api",l=async e=>(await(0,n.RE)({method:n.Is.GET,overrideBaseUrl:r,subUrl:"/brand-page?populate=deep&locale=".concat(e),useStrapi:!0})).data,i=async e=>(await(0,n.RE)({method:n.Is.GET,overrideBaseUrl:r,subUrl:"/brands?populate=deep&locale=".concat(e.locale).concat(""!=e.brSlug?"&filters[$and][0][brSlug][$eq]=".concat(e.brSlug.toLowerCase()).concat("id-ID"==e.locale?"-id":""):""),useStrapi:!0})).data,o=async e=>(await(0,n.RE)({method:n.Is.GET,overrideBaseUrl:r,subUrl:"/brands?filters[$and][0][brName][$containsi]=".concat(e.brandName||"","&pagination[page]=").concat(e.page,"&pagination[pageSize]=").concat(e.pageSize,"&locale=").concat(e.lang||"id-ID").concat(e.hasDeep?"&populate=deep":""),useStrapi:!0})).data,s=async e=>(await(0,n.RE)({method:n.Is.GET,overrideBaseUrl:r,subUrl:"/customer-services/".concat(e.csSlug).concat("id-ID"==e.locale?"-id":"","?populate=deep&locale=").concat(e.locale),useStrapi:!0})).data},20147:function(e,t,a){"use strict";a.d(t,{AE:function(){return o},Ep:function(){return s},MH:function(){return c},HV:function(){return i}});var n=a(98029),r=a(63781);const l="https://api.optikmelawai.com",i=()=>(0,n.D)({mutationFn:e=>(async e=>(await(0,r.RE)({method:r.Is.POST,overrideBaseUrl:l,subUrl:"/api/v2/otp",useStrapi:!1,data:e})).data)(e)}),o=()=>(0,n.D)({mutationFn:e=>(async e=>(await(0,r.RE)({method:r.Is.POST,overrideBaseUrl:l,subUrl:"/api/v2/otp/check",useStrapi:!1,data:e})).data)(e)}),s=()=>(0,n.D)({mutationFn:e=>(async e=>(await(0,r.RE)({method:r.Is.POST,overrideBaseUrl:l,subUrl:"/api/v2/auth/point/redeem",useStrapi:!1,data:e})).data)(e)}),c=()=>(0,n.D)({mutationFn:e=>(async e=>(await(0,r.RE)({method:r.Is.POST,overrideBaseUrl:l,subUrl:"/api/v2/auth/stamps/redeem",useStrapi:!1,data:e})).data)(e)})},42005:function(e,t,a){"use strict";a.d(t,{xP:function(){return s},JX:function(){return o},Ah:function(){return c}});var n=a(78551),r=a(63781);const l="https://api.optikmelawai.com";var i=a(21375);const o=()=>(0,n.a)({queryKey:["getPointRewards"],queryFn:()=>(async()=>(await(0,r.RE)({method:r.Is.GET,overrideBaseUrl:l,subUrl:"/api/v2/auth/point/check",useStrapi:!1})).data)(),enabled:!1}),s=()=>(0,n.a)({queryKey:["getPointHistory"],queryFn:()=>(async()=>(await(0,r.RE)({method:r.Is.GET,overrideBaseUrl:l,subUrl:"/api/v2/auth/point/history",useStrapi:!1})).data)(),enabled:!1}),c=(e,t)=>(0,n.a)({queryKey:["getHowRedeemPoint",e],queryFn:()=>(0,i.DF)(e),enabled:t})},40950:function(e,t,a){"use strict";var n=a(85893),r=a(67294),l=a(25935);const i={left:"text-left",right:"text-right",center:"text-center",justify:"text-justify"},o={h1:"text-4xl text-black font-epilogue",h2:"text-3xl text-black font-epilogue",h3:"text-2xl text-black font-epilogue",h4:"text-xl text-black font-epilogue",h5:"text-lg text-black font-epilogue",h6:"text-base font-bold text-black font-epilogue"};t.Z=e=>{let{htmlString:t,position:a}=e;const s={replace:e=>{if("type"in e&&"name"in e&&"tag"===e.type){const t=e.attribs&&e.attribs.style?(e.attribs.style.match(/text-align:\s*(\w+)/)||[])[1]:"",c=i[t]||"";if("ul"===e.name){let t="list-disc";e.attribs&&e.attribs.style&&(e.attribs.style.includes("list-style-type:circle;")?t="list-circle":e.attribs.style.includes("list-style-type:square;")?t="list-square":e.attribs.style.includes("list-style-type:none;")&&(t="list-none"));const r="".concat(t,"center"===a?" pl-4 mt-5 flex flex-col items-center":" pl-4 mt-5");return(0,n.jsx)("ul",{className:r,children:(0,l.du)(e.children,{...s})})}if("ol"===e.name){let t=e.parent;for(;t&&"tag"!==t.type;)t=t.parent;let r="list-decimal";e.attribs&&e.attribs.style&&(e.attribs.style.includes("list-style-type:lower-roman;")?r="list-lower-roman":e.attribs.style.includes("list-style-type:upper-roman;")?r="list-upper-roman":e.attribs.style.includes("list-style-type:lower-latin;")?r="list-lower-latin":e.attribs.style.includes("list-style-type:upper-latin;")?r="list-upper-latin":e.attribs.style.includes("list-style-type:lower-alpha;")?r="list-lower-alpha":e.attribs.style.includes("list-style-type:upper-alpha;")?r="list-upper-alpha":e.attribs.style.includes("list-style-type:decimal-leading-zero;")?r="list-decimal-leading-zero":e.attribs.style.includes("list-style-type:georgian;")?r="list-georgian":e.attribs.style.includes("list-style-type:hebrew;")&&(r="list-hebrew"));const i="center"===a?"pl-4 mt-5 flex flex-col items-center ".concat(r):"pl-4 mt-5 ".concat(r);return t&&"li"===t.name?(0,n.jsx)("ol",{className:"ml-5 text-base text-black font-epilogue my-3 ".concat(r),children:(0,l.du)(e.children,{...s})}):(0,n.jsx)("ol",{className:i,children:(0,l.du)(e.children,{...s})})}if("li"===e.name)return(0,n.jsx)("li",{children:(0,l.du)(e.children,{...s})});if("a"===e.name&&e.attribs)return(0,n.jsx)("a",{href:e.attribs.href,target:e.attribs.target,rel:e.attribs.rel,className:"text-blue-500",children:(0,l.du)(e.children,{...s})});if("span"===e.name&&e.attribs){const t=(e.attribs.style||"").split(";").reduce((e,t)=>
1{const[a,n]=t.split(":");return a&&n&&(e[a.trim()]=n.trim()),e},{});return(0,n.jsx)("span",{className:"font-epilogue",style:t,children:(0,l.du)(e.children,{...s})})}if("blockquote"===e.name)return(0,n.jsx)("blockquote",{className:"p-4 my-4 border-s-4 border-gray-300 bg-gray-50 dark:border-gray-500 dark:bg-gray-800",children:(0,n.jsx)("p",{className:"mb-3 italic",children:(0,l.du)(e.children,{...s})})});if("p"===e.name&&e.attribs){const t=e.attribs.style||"",a="mb-3 ".concat(c);return(0,n.jsx)("p",{className:a,style:t.split(";").reduce((e,t)=>{const[a,n]=t.split(":");if(a&&n){const t=a.trim(),r=n.trim();t in e&&(e[t]=r)}return e},{}),children:(0,l.du)(e.children,{...s})})}if(e.name in o){const t="".concat(o[e.name]," ").concat(c);return r.createElement(e.name,{className:t},(0,l.du)(e.children,{...s}))}}return e}},c=(0,l.ZP)(t,{...s});return(0,n.jsx)(n.Fragment,{children:c})}},51520:function(e,t,a){"use strict";a.d(t,{h:function(){return n}});const n={id:{HeadingLoyal:"Point Loyalty",HeadingTransfer:"Point Transfer",lblcodMem:"Kode Member",lblnameMem:"Nama Member",lblphoneMem:"Nomor Hp",slcType:"Pilih Tipe Member",lblType:"Member Keluarga",lblType2:"Member Lainnya",lblType3:"Nomor Hp",lblType4:"PERIKSA KEMBALI INFORMASI ANDA DAN COBA LAGI. HUBUNGI KAMI JIKA ANDA MEMBUTUHKAN BANTUAN. TERIMA KASIH!",slcTrf:"Pilih Tujuan Transfer",slcDst:"Tujuan Member",slcMmbr:"Pilih Member",ErrMmbr:"Member Tidak Ditemukan",plcBtn:"Cari Value",plcBtn1:"Masukkan Value Pencarian",plcPage:"Halaman",plcBtnNext:"Selanjutnya",plcBtnPrev:"Sebelumnya",btnSrc:"Cari",labelTotPoints:"Total Point Aktif",labelpoint:"Point",labelremark:"Remark",labelIssue:"Tanggal Penerbitan",labelExpDate:"Tanggal Kadaluwarsa",btnRedeem:"Tukarkan Point",btnBack:"Kembali",btnNext:"Selanjutnya",lblExp:"Segera Berakhir",lblPlaceHol:"Masukkan point yang ingin Anda gunakan",lblReq:"Permintaan OTP",err0:"Point harus lebih dari 0",err1:"Point Transfer Minimum harus 10000!",err2:"Input Tidak Valid",errlastPoint:"Point tidak boleh melebihi total point",lblPointHistory:"Riwayat Point",lblhowredeempoint:"PELAJARI CARA MENGHASILKAN DAN MENUKARKAN",optionLbl:"Silakan pilih brand",loyalHeading:" Stamp Loyalty",lblTotal:"Total Stamp",lblHistory:"Riwayat stamp",lblBrand:"Brand",btnRedeemloyal:"Tukarkan stamp",labelstamp:"Stamp",lblPlaceHolStamp:"Masukkan stamp yang ingin Anda gunakan",err0stamp:"stamp harus lebih dari 0",err1stamp:"stamp harus kelipatan",err2stamp:"Harus di isi dengan angka",lbldisc:"Apakah Anda yakin ingin menukarkan stamp Anda",btndisc:"Ya",btndisc2:"Tidak",lblredeem:"Tukarkan Stamp",lblOTP:"Kami telah mengirimkan OTP ke",lblOTP2:"silakan periksa",lblOTP3:"lalu masukkan kode OTP yang Anda terima",lblOTP4:"Kode Verifikasi",lblOTP5:"tidak menerima kode verifikasi?",lblOTP6:"Kirim Ulang",btnSubmit:"Kirim Kode",lblTblRedeem:"Tukar",lblNoPoint:"TIDAK ADA POIN YANG TERKAIT DENGAN AKUN ANDA",lblNoPointDesc:"Saldo poin Anda akan ditampilkan di halaman ini setelah diperoleh atau dialokasikan",ctaRead:"Baca"},en:{HeadingLoyal:"Loyalty Point",HeadingTransfer:"Transfer Point",labelTotPoints:"Total Active Points",lblcodMem:"Member Code",lblnameMem:"Member Name",lblphoneMem:"Mobile Number",slcType:"Select a Type Member",lblType:"Family Member",lblType2:"Other Member",lblType3:"Mobile Number",lblType4:"PLEASE DOUBLE-CHECK YOUR INFORMATION AND TRY AGAIN. REACH OUT TO US IF YOU NEED ASSISTANCE. THANK YOU!",slcTrf:"Select Transfer Destination",slcDst:"Member Destination",slcMmbr:"Select a Member Destination",ErrMmbr:"Member Not Found",plcBtn:" Search Value",plcBtn1:"Input search value",plcPage:"Page",plcBtnNext:"Next",plcBtnPrev:"Previous",btnSrc:"Search",labelpoint:"Point",labelremark:"Remark",labelIssue:"Issue Date",labelExpDate:"Expired Date",btnRedeem:"redeem point",btnBack:"Back",btnNext:"Next",lblExp:"Expiring Soon",lblPlaceHol:"Input the points you want to use",lblReq:"Request OTP",err0:"Point must be more than 0",err1:"Minimum Transfer Point should be 10.000!",err2:"Invalid input",errlastPoint:"Points cannot exceed total points",lblPointHistory:"point history",lblhowredeempoint:"LEARN HOW TO EARN AND REDEEM",optionLbl:"please select brand",loyalHeading:" Loyalty Stamp",lblTotal:"Remained Stamp",lblHistory:"History Stamp",lblBrand:"Brand",btnRedeemloyal:"redeem stamp",labelstamp:"Stamp",lblPlaceHolStamp:"Input the stamp you want to use",err0stamp:"Stamp must be more than 0",err1stamp:"stamp must be in multiples of",err2stamp:"Must be filled with numbers",lbldisc:"Are you sure you want to redeem your stamp?",btndisc:"Yes",btndisc2:"No",lblredeem:"Redeem Stamp",lblOTP:"We have sent an OTP to",lblOTP2:"Please check your",lblOTP3:"then enter the OTP code you received",lblOTP4:"Verification code",lblOTP5:"dont receive verification code?",lblOTP6:"Resend",btnSubmit:"Submit Code",lblTblRedeem:"Redeem",lblNoPoint:"THERE ARE NO POINTS ASSOCIATED WITH YOUR ACCOUNT",lblNoPointDesc:"Your points balance will be displayed on this page once earned or allocated",ctaRead:"Read"}}},40572:function(e,t,a){var n,r=(n=a(67294))&&"object"==typeof n&&"default"in n?n.default:n;e.exports=function(e,t){void 0===e&&(e=6e4),void 0===t&&(t=1e3);var a=r.useState(0),n=a[0],l=a[1],i=r.useRef({}),o=function e(a){i.current.started||(i.current.started=a,i.current.lastInterval=a);var n=Math.min(t,i.current.timeLeft||1/0);a-i.current.lastInterval>=n&&(i.current.lastInterval+=n,l(function(e){return i.current.timeLeft=e-n,i.current.timeLeft})),a-i.current.started<i.current.timeToCount?i.current.requestId=window.requestAnimationFrame(e):(i.current={},l(0))},s=r.useCallback(function(t){window.cancelAnimationFrame(i.current.requestId);var a=void 0!==t?t:e;i.current.started=null,i.current.lastInterval=null,i.current.timeToCount=a,i.current.requestId=window.requestAnimationFrame(o),l(a)},[]),c=r.useCallback(function(){window.cancelAnimationFrame(i.current.requestId),i.current.started=null,i.current.lastInterval=null,i.current.timeToCount=i.current.timeLeft},[]),u=r.useCallback(function(){!i.current.started&&i.current.timeLeft>0&&(window.cancelAnimationFrame(i.current.requestId),i.current.requestId=window.requestAnimationFrame(o))},[]),d=r.useCallback(function(){i.current.timeLeft&&(window.cancelAnimationFrame(i.current.requestId),i.current={},l(0))},[]),p=r.useMemo(function(){return{start:s,pause:c,resume:u,reset:d}},[]);return r.useEffect(function(){return function(){return window.cancelAnimationFrame(i.current.requestId)}},[]),[n,p]}},58386:function(e,t,a){"use strict";a.d(t,{Z:function(){return l}});var n=a(67294),r=function(e){return"object"==typeof e&&null!==e},l=function(e){var t=e.value,a=void 0===t?"":t,l=e.numInputs,i=void 0===l?4:l,o=e.onChange,s=e.onPaste,c=e.renderInput,u=e.shouldAutoFocus,d=void 0!==u&&u,p=e.inputType,m=void 0===p?"text":p,b=e.renderSeparator,f=e.placeholder,y=e.containerStyle,h=e.inputStyle,g=e.skipDefaultStyles,v=void 0!==g&&g,T=n.useState(0),
1k=T[0],P=T[1],A=n.useRef([]),N=function(){return a?a.toString().split(""):[]},S="number"===m||"tel"===m;n.useEffect(function(){A.current=A.current.slice(0,i)},[i]),n.useEffect(function(){var e;d&&(null===(e=A.current[0])||void 0===e||e.focus())},[d]);var w=function(){if("string"==typeof f){if(f.length===i)return f;f.length}},E=function(e){return(S?!isNaN(Number(e)):"string"==typeof e)&&1===e.trim().length},I=function(e){var t=e.target.value;E(t)&&(O(t),D(k+1))},x=function(e){var t=e.nativeEvent,a=e.target.value;if(!E(a)){if(a.length===i)a.split("").some(function(e){return!E(e)})||(B(a.split("")),D(i-1));null===t.data&&"deleteContentBackward"===t.inputType&&(e.preventDefault(),O(""),D(k-1)),e.target.value=""}},R=function(){P(k-1)},M=function(e){var t=N();[e.code,e.key].includes("Backspace")?(e.preventDefault(),O(""),D(k-1)):"Delete"===e.code?(e.preventDefault(),O("")):"ArrowLeft"===e.code?(e.preventDefault(),D(k-1)):"ArrowRight"===e.code||e.key===t[k]?(e.preventDefault(),D(k+1)):"Spacebar"!==e.code&&"Space"!==e.code&&"ArrowUp"!==e.code&&"ArrowDown"!==e.code||e.preventDefault()},D=function(e){var t,a,n=Math.max(Math.min(i-1,e),0);A.current[n]&&(null===(t=A.current[n])||void 0===t||t.focus(),null===(a=A.current[n])||void 0===a||a.select(),P(n))},O=function(e){var t=N();t[k]=e[0],B(t)},B=function(e){var t=e.join("");o(t)},U=function(e){var t;e.preventDefault();var a=N(),n=k,r=e.clipboardData.getData("text/plain").slice(0,i-k).split("");if(!S||!r.some(function(e){return isNaN(Number(e))})){for(var l=0;l<i;++l)l>=k&&r.length>0&&(a[l]=null!==(t=r.shift())&&void 0!==t?t:"",n++);D(n),B(a)}};return n.createElement("div",{style:Object.assign({display:"flex",alignItems:"center"},r(y)&&y),className:"string"==typeof y?y:void 0,onPaste:s},Array.from({length:i},function(e,t){return t}).map(function(e){var t,a,l;return n.createElement(n.Fragment,{key:e},c({value:null!==(t=N()[e])&&void 0!==t?t:"",placeholder:null!==(l=null===(a=w())||void 0===a?void 0:a[e])&&void 0!==l?l:void 0,ref:function(t){return A.current[e]=t},onChange:I,onFocus:function(t){return function(e){return function(t){P(t),e.target.select()}}(t)(e)},onBlur:R,onKeyDown:M,onPaste:U,autoComplete:"off","aria-label":"Please enter OTP character ".concat(e+1),style:Object.assign(v?{}:{width:"1em",textAlign:"center"},r(h)?h:{}),className:"string"==typeof h?h:void 0,type:m,inputMode:S?"numeric":"text",onInput:x},e),e<i-1&&("function"==typeof b?b(e):b))}))}},75466:function(e,t,a){"use strict";var n=a(67294);function r({title:e,titleId:t,...a},r){return n.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:r,"aria-labelledby":t},a),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"}))}const l=n.forwardRef(r);t.Z=l}}]);
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.