PageSourceSearch

https://www.vcgamers.com/_next/static/chunks/3266-5ae03c41fb27743a.js

js vcgamers.com collected 2026-09-24 11:20:58 UTC 108,370 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3266,5761],{117:(e,l,t)=>{"use strict";t.d(l,{C:()=>r,j:()=>o});var n=t(39746);let a=new Map,s=new Set,i=e=>Array.isArray(e)?e.map(e=>i(e)):e&&"object"==typeof e?Object.entries(e).sort((e,l)=>{let[t]=e,[n]=l;return t.localeCompare(n)}).reduce((e,l)=>{let[t,n]=l;return e[t]=i(n),e},{}):e,r=(e,l,t)=>{var r;let o=null!=(r=null==t?void 0:t.dedupeWindowMs)?r:1500,c=((e,l)=>{let t=i(l);return"".concat(e,":").concat(JSON.stringify(t))})(e,l);!((null==t?void 0:t.onceKey)&&(e=>!!s.has(e)||(s.add(e),!1))(t.onceKey))&&(((e,l)=>{let t=Date.now(),n=a.get(e);return a.set(e,t),!!n&&t-n<=l})(c,o)||(0,n.sendGTMEvent)({event:e,...l}))},o=()=>{let e=new URL(window.location.href);if(e.searchParams.get("login_success")){e.searchParams.delete("login_success");let l=e.origin+e.pathname+(e.search?"?"+e.searchParams.toString():"");window.history.replaceState(window.history.state,"",l)}}},120:(e,l,t)=>{"use strict";t.d(l,{QZ:()=>r,_i:()=>s,nl:()=>n,qK:()=>i,xz:()=>a});let n=function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return e?e.length<=l?e:e.slice(0,l-3)+"...":""},a=e=>{var l,t;let n=null!=(l=e.category_name)?l:"",a=null!=(t=e.brand_name)?t:"";return"".concat(n," ").concat(a," termurah")},s=e=>e.toLowerCase().includes("qris"),i=e=>{let{paymentLabel:l,adminFeeLabel:t,paymentFeeLabel:n}=e;return s(l)||l.toLowerCase().includes("blu")?t:"".concat(n," ").concat(l)},r=e=>{let l={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#34;":'"',"&apos;":"'","&#39;":"'","&nbsp;":" ","&copy;":"\xa9","&reg;":"\xae","&trade;":"™","&euro;":"€","&pound;":"\xa3","&yen;":"\xa5","&cent;":"\xa2","&sect;":"\xa7","&deg;":"\xb0","&plusmn;":"\xb1","&times;":"\xd7","&divide;":"\xf7","&hellip;":"…","&mdash;":"—","&ndash;":"–","&laquo;":"\xab","&raquo;":"\xbb"},t=e.replace(/<[^>]*>?/gm,"");return Object.keys(l).forEach(e=>{t=t.replace(RegExp(e,"g"),l[e])}),t=(t=t.replace(/&#(\d+);/g,(e,l)=>String.fromCharCode(l))).replace(/&#x([0-9A-Fa-f]+);/g,(e,l)=>String.fromCharCode(parseInt(l,16)))}},3083:(e,l,t)=>{"use strict";t.d(l,{A:()=>u});var n=t(75038),a=t(68979),s=t(75861),i=t(80503),r=t(40088),o=t(31837),c=t(25395),d=t(42681);let u=()=>{var e,l,t;let{t:u}=(0,a.Bd)("common"),m=(0,s.md)(r._k),p=(0,i.AY)(r._k),h=(0,s.Xr)(r.pi),x=()=>{p()};return(0,n.jsx)(d._,{title:null!=(t=null==m||null==(e=m.data)?void 0:e.title)?t:"",opened:!!m&&m.show&&"modalDisablePromo"===m.name,onCancelText:u("back"),onConfirmText:u("change_payment"),onClose:x,onCancel:x,onConfirm:()=>{p(),h({name:"aModalPaymentList",show:!0})},withPrompt:!0,children:(0,n.jsxs)("div",{className:"px-4 text-center",children:[(0,n.jsx)(o._,{className:"mx-auto mb-5 cursor-pointer",src:"/img/vici-disable-promo.png",alt:"close",width:150,height:115}),(0,n.jsx)(c.A,{size:"medium",color:"shade700",height:"large",className:"text-center",children:(0,n.jsx)(a.x6,{t:u,i18nKey:null==m||null==(l=m.data)?void 0:l.desc})})]})})}},4257:(e,l,t)=>{"use strict";t.d(l,{BR:()=>s,Po:()=>r,kk:()=>i});var n=t(22978),a=t(17720);let s=async()=>{try{return(await n.A.get(a.y.GET_DEEPLINK_REDIRECT_SETTING)).data}catch(e){throw e.message}},i=async e=>n.A.post(a.y.POST_GAME_CHECK_ID,e),r=async()=>n.A.get(a.y.GET_GUEST_STATE)},7209:(e,l,t)=>{"use strict";t.d(l,{FY:()=>n,Mo:()=>r,ZI:()=>i});let n=e=>(e=e.replace(/\D/g,""),/^(?:\+62|0|62)(\d{8,15})$/.test(e)),a=Object.entries({Telkomsel:["0811","0812","0813","0821","0822","0823","0851","0852","0853"],Indosat:["0814","0815","0816","0855","0856","0857","0858"],XL:["0817","0818","0819","0859","0877","0878"],Axis:["0831","0832","0833","0838"],Three:["0895","0896","0897","0898","0899"],Smartfren:["0881","0882","0883","0884","0885","0886","0887","0888","0889"]}).reduce((e,l)=>{let[t,n]=l;return n.forEach(l=>{e[l]=t}),e},{}),s={telkomsel:"Telkomsel",simpati:"Telkomsel","kartu as":"Telkomsel","kartu halo":"Telkomsel","by.u":"Telkomsel",indosat:"Indosat","indosat ooredoo":"Indosat",im3:"Indosat","im3 ooredoo":"Indosat",mentari:"Indosat",xl:"XL","xl axiata":"XL",axis:"Axis",three:"Three",tri:"Three",3:"Three",smartfren:"Smartfren"},i=(e,l)=>{let t=(e=>{let l=e.replace(/\D/g,"");return l.startsWith("0")?l:l.startsWith("62")?"0".concat(l.slice(2)):null})(e);if(!t)return{isValid:!1,normalizedPhone:"",reason:"invalid-format"};if(t.length<10||t.length>13)return{isValid:!1,normalizedPhone:t,reason:"invalid-length"};let n=a[t.slice(0,4)];if(!n)return{isValid:!1,normalizedPhone:t,reason:"invalid-prefix"};if(l){let e=s[l.toLowerCase().trim()];if(e&&e!==n)return{isValid:!1,normalizedPhone:t,reason:"provider-mismatch",provider:n}}return{isValid:!0,normalizedPhone:t,provider:n}},r=e=>{var l,t,n;if("number"!==e.type&&"phone"!==e.type)return!1;let a="".concat(null!=(l=e.key)?l:""," ").concat(null!=(t=e.label)?t:""," ").concat(null!=(n=e.placeholder)?n:"").toLowerCase();return["nomor hp","nomor ponsel","no hp","phone","ponsel","telepon","msisdn"].some(e=>a.includes(e))}},7217:(e,l,t)=>{"use strict";t.d(l,{A:()=>K});var n=t(75038),a=t(76430),s=t(30684),i=t(68979),r=t(75861),o=t(37756),c=t(47915),d=t(83966),u=t(40088),m=t(48181),p=t(29028),h=t(70467),x=t(42814),_=t(25395),g=t(73423),v=t(12865),f=t(1031),b=t(45640),j=t(45636),w=t(18503),y=t(55861),k=t(66741),N=t(1321),A=t(7292),C=t(62367),S=t(79193),I=t(57619),E=t(60587),P=t(19870),T=t(42485);function L(e){var l;let{appliedPromo:t,promoRecommendation:a,promoIsValid:s,onApplyPromo:o,onResetAppliedPromo:c}=e,{t:d}=(0,i.Bd)(["common","promo"]),u=(0,r.Xr)(p.V1),m=(0,r.Xr)(p.BP),h=()=>{t&&t.id?(u(t.id),m(!0)):(null==a?void 0:a.id)&&(u(a.id),m(!0))},x=s?d("using_promo",{ns:"promo"}):d("ineligible_promo",{ns:"promo"}),g=t?s?"shade700":"red":"white",v=t?s?"darkGreen":"red":"yellow",f
1=(0,A.cn)("icon-close-circle before:!text-[#9AA4BF]",{"animate-pulse before:!text-[#FF3333]":!s,"animate-pulse before:!text-[#00870E]":s});return(0,n.jsx)("div",{className:"flex items-center gap-2.5",children:(0,n.jsxs)("div",{className:"flex w-full flex-col",children:[(0,n.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)(_.A,{size:"small",weight:"semibold",color:g,children:[t?x:d("best_promo",{ns:"promo"}),":"]}),(0,n.jsx)(_.A,{weight:"bold",color:v,children:t?t.name:null!=(l=null==a?void 0:a.name)?l:""}),(0,n.jsx)(_.A,{weight:"semibold",color:v,children:"".concat((()=>{let e=null!=t?t:a;return(null==e?void 0:e.is_cashback)?d("cashback",{ns:"common"}):d("discount",{ns:"common"})})()," ").concat((()=>{let e=(e,l)=>"".concat(l?"":"Rp").concat((0,C.zQ)(e||0)),l=(e,l,t)=>"".concat(e,"% s.d ").concat(t?"":"Rp").concat((0,C.zQ)(l||0));if(t){let{price:n,is_cashback:a}=t;return"percentage"===n.type.toLowerCase()?l(n.percentage,n.max,a):e(n.discount,a)}if(a){var n;let{discount:t,is_cashback:s}=a;return"percentage"!==t.type.toLowerCase()?e(t.amount,s):l(t.amount,null!=(n=t.max)?n:0,s)}return""})()).concat((null==t?void 0:t.is_cashback)||!t&&(null==a?void 0:a.is_cashback)?" ".concat(d("point",{ns:"common"})):"")})]}),(0,n.jsx)("div",{children:t?(0,n.jsx)("button",{className:"absolute right-4 top-4",onClick:c,children:(0,n.jsx)("i",{className:f})}):(0,n.jsx)("button",{onClick:h,children:(0,n.jsx)("i",{className:"icon-info-round cursor-pointer"})})})]}),t?(0,n.jsx)(T.R,{background:"transparent",border:"purple",color:"purple",fontWeight:"semibold",className:"mb-2 mt-3 w-full",onClick:h,children:d("check_termsconditions",{ns:"promo"})}):(0,n.jsx)(T.R,{background:"green",fontWeight:"semibold",className:"mb-2 mt-3 w-full",onClick:()=>{a&&o({type:"select",promo:a})},children:d("use")})]})})}function R(e){let{promo_name:l,promo_content:t}=e,{t:a}=(0,i.Bd)(["common","promo"]),{isInApp:o}=(0,f.s)(),c=(0,s.useRouter)(),u=(0,s.usePathname)(),m=(0,r.Xr)(h.t5),p=(0,r.Xr)(d.vo);return(0,n.jsx)("div",{className:"flex items-center gap-2.5",children:(0,n.jsxs)("div",{className:"flex w-full flex-col",children:[(0,n.jsxs)("div",{className:"cursor-pointer",children:[(0,n.jsxs)(_.A,{size:"small",weight:"semibold",color:"white",children:[a("best_promo",{ns:"promo"}),":"]}),(0,n.jsx)(_.A,{weight:"bold",color:"yellow",children:"".concat(l)}),(0,n.jsx)(_.A,{weight:"semibold",color:"yellow",children:t})]}),(0,n.jsx)(T.R,{background:"green",fontWeight:"semibold",className:"mb-2 mt-3 w-full",onClick:()=>{if(o){let e=new URLSearchParams;e.set("utm_source","inapp"),e.set("utm_medium","promobutton"),c.replace("".concat(u,"?").concat(e.toString())),p({opened:!0,variant:"promo",targetUrl:window.location.href})}else m()},children:a("use")})]})})}let O=e=>{let{page:l,onClick:t}=e,{t:a}=(0,i.Bd)(["common","buynow","gercep","promo"]),s=(0,r.md)(p.Z);return(0,n.jsx)("button",{className:"relative my-[2px] flex w-full items-center gap-1 rounded-xl bg-[url('/img/promo-background.png')] bg-cover p-4",onClick:t,children:(0,n.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(E.A,{applied:!1}),(0,n.jsx)(_.A,{className:"ml-2.5",size:"small",weight:"bold",color:"white",children:a("save_with_promo",{ns:"buynow"})}),(0,n.jsx)("i",{className:"icon-chevron-right ml-1 text-xs"})]}),"cart"===l?(0,n.jsxs)(_.A,{size:"small",weight:"bold",color:"yellow",children:[s," ",a("can_be_use",{ns:"common"})]}):null]})})},D=e=>{var l;let{promoInput:t,handleApplyPromo:a,handleOnchange:s,isLoggedin:r}=e,{t:o}=(0,i.Bd)(["common","buynow","gercep","promo"]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("form",{className:"my-1 flex w-full items-center",method:"post",onSubmit:e=>{e.preventDefault(),a()},children:(0,n.jsx)(x.A,{className:"w-full",value:t.code,placeholder:r?o("add_promo",{ns:"gercep"}):o("login_promo",{ns:"promo"}),leftSection:(0,n.jsx)(E.A,{}),onChange:e=>s(e.target.value),isError:null==(l=t.error)?void 0:l.status,withOldBehave:!0})}),(0,n.jsx)(P.H,{promoInput:t})]})},B=e=>{var l,t,a,s,i,o,c;let{appliedPromo:d,promoRecommendation:u,promoIsValid:m,promoInput:h,onApplyPromo:x,onResetAppliedPromo:_,handleApplyPromo:v,handleOnchange:f,toggleGercepPromoDrawer:b,isAutoApplying:j}=e,{isLoggedin:w}=(0,g.A)(),[{data:y}]=(0,r.fp)(p.CZ),k=null!=(s=null==y||null==(t=y.data)||null==(l=t.data)?void 0:l.is_active)&&s;return(0,n.jsx)(I.A,{applied:!!d,isValid:d?m:!!u||!(null==(a=h.error)?void 0:a.status),onSelectOtherPromo:b,withStyle:!0,children:u?(0,n.jsx)(L,{appliedPromo:d,promoRecommendation:u,promoIsValid:m,onApplyPromo:x,onResetAppliedPromo:_}):(0,n.jsx)(n.Fragment,{children:d?(0,n.jsx)(L,{appliedPromo:d,promoIsValid:m,onApplyPromo:x,onResetAppliedPromo:_}):j?(0,n.jsx)("div",{className:"flex w-full items-center justify-center py-2",children:(0,n.jsx)(S.A,{size:"small"})}
1):!w&&k?(0,n.jsx)(R,{promo_name:null!=(i=null==y?void 0:y.data.data.title)?i:"",promo_code:null!=(o=null==y?void 0:y.data.data.promo_code)?o:"",promo_content:null!=(c=null==y?void 0:y.data.data.content)?c:""}):(0,n.jsx)(D,{promoInput:h,handleApplyPromo:v,handleOnchange:f,isLoggedin:w})})})},z=e=>{let{appliedPromo:l,promoRecommendation:t,promoIsValid:a,onApplyPromo:s,onResetAppliedPromo:i,togglePromoDrawer:r,page:o}=e;return t?(0,n.jsx)(I.A,{applied:!!l,isValid:!l||a,onSelectOtherPromo:r,withStyle:!0,children:(0,n.jsx)(L,{appliedPromo:l,promoRecommendation:t,promoIsValid:a,onApplyPromo:s,onResetAppliedPromo:i})}):l?(0,n.jsx)(I.A,{applied:!0,isValid:a,onSelectOtherPromo:r,withStyle:!0,children:(0,n.jsx)(L,{appliedPromo:l,promoIsValid:a,onApplyPromo:s,onResetAppliedPromo:i})}):(0,n.jsx)(O,{page:o,onClick:r})},F=e=>{let{appliedPromo:l,onResetAppliedPromo:t,togglePromoDrawer:a,page:s}=e,{t:r}=(0,i.Bd)(["common","buynow","gercep","promo"]);return(0,n.jsx)(n.Fragment,{children:l?(0,n.jsxs)("div",{className:"relative flex items-center gap-1 rounded-xl border-[1px] border-[#CEECD1] bg-[url('/img/promo-background-applied.png')] bg-cover p-4",children:[(0,n.jsxs)("div",{className:(0,A.cn)("flex items-center gap-2.5",{"cursor-pointer":"cart"!==s}),children:["cart"===s?(0,n.jsx)(E.A,{applied:!0}):null,(0,n.jsxs)("div",{className:"flex flex-col",children:["cart"!==s?(0,n.jsxs)(_.A,{size:"small",weight:"semibold",children:[r("using_promo",{ns:"promo"}),":"]}):null,(0,n.jsxs)(_.A,{weight:"bold",color:"darkGreen",children:[l.code,l&&l.name?" - ".concat(l.name):""]}),"cart"!==s?(0,n.jsx)(_.A,{weight:"semibold",color:"darkGreen",children:"".concat(r("discount",{ns:"common"})," ").concat("percentage"===l.price.type.toLowerCase()?"".concat(l.price.percentage,"% s.d Rp").concat((0,C.zQ)(l.price.max||0)):"Rp".concat((0,C.zQ)(l.price.discount||0)))}):null]})]}),(0,n.jsx)("button",{className:"absolute right-4 leading-none",onClick:t,children:(0,n.jsx)("i",{className:"icon-close-circle before:!text-shade-100"})})]}):(0,n.jsx)(O,{page:s,onClick:a})})},K=e=>{var l;let{page:t}=e,{isLoggedin:x}=(0,g.A)(),{isInApp:_}=(0,f.s)(),A=(0,s.useRouter)(),C=(0,s.usePathname)(),{t:I}=(0,i.Bd)(["common","buynow","gercep","promo"]),E=(0,r.md)(c.ey),P=(0,r.md)(m.iw),T=(0,r.md)(m.wL),L=(0,r.md)(m.AQ),R=(0,r.md)(p.f5),[{data:O}]=(0,r.fp)(o.Uo),D=(0,r.Xr)(p.uN),K=(0,r.Xr)(u._k),U=(0,r.Xr)(h.t5),M=(0,r.Xr)(d.vo);(()=>{let{pathname:e}=(0,w.useRouter)(),l=(0,y.jE)(),t=(0,r.md)(c.ey),n=(0,r.md)(m.iw),s=(0,r.md)(m.hZ),i=(0,r.md)(k.TU),o=(0,r.md)(k.lv),d=(0,r.md)(k._4),u=(0,r.md)(k.ZN),h=(0,r.md)(k.Jk),x=(0,r.Xr)(p.f5),_=(0,v.Y)(e=>{x(e)},500),g=(0,a.useCallback)(()=>{_(null),l.invalidateQueries({queryKey:["promo-list"]})},[_,l]);(0,a.useEffect)(()=>{var l;let a={products:[],payment_channel_id:null!=(l=null==n?void 0:n.id)?l:""},s=e=>{var l;return null!=(l=e.is_checked)&&l},r=e=>({variation_id:e.id||"",qty:e.qty||0}),c=e=>{var l;return{variation_id:null!=(l=e.product_variation_id)?l:"",qty:e.qty||0}},d=e=>(null==e||!e.length)&&(g(),!0);e.includes("/cart")?(()=>{let e=o.flatMap(e=>{let{products:l}=e;return l?l.filter(s).map(c):[]});d(e)||_({...a,products:e})})():e.includes("/gercep")?(()=>{if(!(null==t?void 0:t.id))return g();let e=[{variation_id:t.id,qty:N.T}];_({...a,products:e})})():e.includes("/buynow")?(()=>{var e,l,t;let n=null==h||null==(t=h.shops)||null==(l=t[0])||null==(e=l.products)?void 0:e[0];if(!n)return g();let s=[{variation_id:n.id,qty:n.qty}];_({...a,products:s})})():i?(()=>{var e;let l=(null!=(e=null==i?void 0:i.shops)?e:[]).flatMap(e=>{var l,t;return null!=(t=null==(l=e.products)?void 0:l.map(r))?t:[]});d(l)||_({...a,products:l})})():g()},[i,o,d,u,t,e,n,h,s,_,g])})();let{appliedPromo:q,promoRecommendation:G,isLoadingPromoRecommendation:X,promoInput:Y,promoIsValid:H,isRealSplit:V,setPromoInput:Q,onApplyPromo:J,onResetAppliedPromo:W,toggleError:Z}=(0,b.Z)(),$=null!=P?P:T,ee=(0,j.d)(()=>{J({type:"input"})},3e3),el=(0,v.Y)(()=>{J({type:"input"})},500),et=e=>{Q({code:e}),el()},en=()=>
1{if(V)return K({name:"modalDisablePromo",show:!0,data:{title:I("use_promo"),desc:I("desc_promo_disable")}});if(_){let e=new URLSearchParams;e.set("utm_source","inapp"),e.set("utm_medium","promobutton"),A.replace("".concat(C,"?").concat(e.toString())),M({opened:!0,variant:"promo",targetUrl:window.location.href})}else x?D(!0):U()},[ea,es]=(0,r.fp)(p.qE),[ei,er]=(0,a.useState)(!1),eo=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{var e;ei&&(q||(null==(e=Y.error)?void 0:e.message))&&er(!1)},[ei,q,null==(l=Y.error)?void 0:l.message]),(0,a.useEffect)(()=>{if(!X&&!L){if(V){q&&W({skipReadinessRecalc:!0});return}if((null==O?void 0:O.data)&&$&&!eo.current){eo.current=!0,er(!0),et(O.data);return}if(G&&$&&!ea&&!q){var e;if((null==R?void 0:R.payment_channel_id)!==(null!=(e=null==P?void 0:P.id)?e:""))return;(G.is_all_payment||G.payment_channels.some(e=>e.id===$.id))&&(er(!0),et(G.code),es(!0));return}q||!$||(null==O?void 0:O.data)||G||W()}},[null==O?void 0:O.data,P,T,null==G?void 0:G.code,null==q?void 0:q.code,ea,X,L,null==R?void 0:R.payment_channel_id]),x&&(X||L))return(0,n.jsxs)("div",{className:"flex flex-col justify-center gap-4 py-6 text-center",children:[(0,n.jsx)(S.A,{size:"medium"}),(0,n.jsx)("p",{className:"text-base font-semibold text-shade-500",children:I("promo:loading_text_promo")})]});switch(t){case"gercep":return(0,n.jsx)(B,{appliedPromo:q,promoRecommendation:G,promoInput:Y,promoIsValid:H,onApplyPromo:J,onResetAppliedPromo:W,handleApplyPromo:ee,handleOnchange:et,toggleGercepPromoDrawer:()=>{if(V)return K({name:"modalDisablePromo",show:!0,data:{title:I("use_promo"),desc:I("desc_promo_disable")}});if(_){let e=new URLSearchParams;e.set("utm_source","inapp"),e.set("utm_medium","promobutton"),A.replace("".concat(C,"?").concat(e.toString())),M({opened:!0,variant:"promo",targetUrl:window.location.href})}else E?x?D(!0):U():Z("select",I("choose_product_first",{ns:"gercep"}))},isAutoApplying:ei});case"buynow":return(0,n.jsx)(z,{appliedPromo:q,promoRecommendation:G,promoIsValid:H,onApplyPromo:J,onResetAppliedPromo:W,togglePromoDrawer:en,page:t});default:return(0,n.jsx)(F,{appliedPromo:q,onResetAppliedPromo:W,page:t,togglePromoDrawer:en})}}},7271:(e,l,t)=>{"use strict";t.d(l,{g:()=>s});var n=t(74522);let a=(e,l)=>(0,n.g)(e,l);function s(e,l){var t,n,s,i;let r=a(e,l.context)[0],o={check_provider:null!=(t=null==r?void 0:r.check_provider)?t:"",provider_code:null!=(n=null==r?void 0:r.provider_code)?n:"",category_id:null!=(s=null==r?void 0:r.category_id)?s:"",brand_id:null!=(i=null==r?void 0:r.brand_id)?i:"",values:((e,l)=>{let t=a(e,l.context);return l.includeAllFields?t:"gercep"===l.mode&&l.gamepass_price?t.filter(e=>!e.key.toLowerCase().includes("additional")):"note"===l.mode?t.filter(e=>e.is_mandatory||e.value&&""!==e.value).filter(e=>!0===e.need_check):t.filter(e=>!0===e.need_check)})(e,l).map(e=>{var l;return{key:e.key,value:null!=(l=e.value)?l:""}})};return l.gamepass_price?o.compared_value=l.gamepass_price:l.compared_value&&(o.compared_value=l.compared_value),o}},12586:e=>{e.exports={promoCard:"promo_promoCard__LgKX7"}},14495:(e,l,t)=>{"use strict";t.d(l,{E0:()=>i,P2:()=>a,j3:()=>s});let n="__gercepBrandScoped__";function a(e){var l,t,n;return!e.forms||0===e.forms.length||!!e.brandId&&!!e.categoryId&&(l=e.forms,t=e.brandId,n=e.categoryId,!l||0===l.length||!!t&&!!n&&l.every(e=>(null==e?void 0:e.brand_id)===t&&(null==e?void 0:e.category_id)===n))}function s(e,l,t){if(!t.brandId||!t.categoryId)return void window.localStorage.removeItem(e);let a={__marker:n,brandId:t.brandId,categoryId:t.categoryId,value:l};try{window.localStorage.setItem(e,JSON.stringify(a))}catch(e){}}function i(e,l){if(!l.brandId||!l.categoryId)return null;let t=window.localStorage.getItem(e);if(!t)return null;try{var a;let e=JSON.parse(t);if((null==e?void 0:e.__marker)!==n||e.brandId!==l.brandId||e.categoryId!==l.categoryId)return null;return null!=(a=e.value)?a:null}catch(e){return null}}},15339:(e,l,t)=>{"use strict";t.d(l,{I:()=>h});var n=t(75038),a=t(68979),s=t(75861),i=t(80503),r=t(47915),o=t(40088),c=t(31837),d=t(25395),u=t(42681),m=t(14495),p=t(28671);let h=e=>{let{isGercep:l}=e,{t}=(0,a.Bd)("gercep"),[h,x]=(0,s.fp)(o.jV),_=(0,s.Xr)(r.l1),g=(0,i.AY)(r.wF),v=(0,i.AY)(r.NI),f=(0,i.AY)(r.ey),b=(0,i.AY)(r._u),j=(0,s.md)(r.UH),w=(0,s.Xr)(r.UH),y=(0,s.md)(r.Pg),k=()=>{x({show:!1,userRegion:"",productRegion:""})};return(0,n.jsx)(u._,{title:t("region_mismatch.title"),opened:h.show,onClose:k,withPrompt:!0,singlePrompt:!0,onConfirm:l?()=>{_(h.userRegion),(()=>{var e,l,t,n;let a=[],s=[];null==j||j.map(e=>
1{e.list.forEach(e=>{a.push({...e,selected:!1})}),s.push({...e,list:a}),a=[]}),w(s),(0,m.j3)("gercepNominalList",s,{brandId:null!=(t=null==y||null==(e=y.brand)?void 0:e.id)?t:"",categoryId:null!=(n=null==y||null==(l=y.category)?void 0:l.id)?n:""}),localStorage.removeItem("gercepNominalSelected"),localStorage.removeItem("gercepRecommendationList"),localStorage.removeItem("gercepRecommendationSelected")})(),g(),v(),f(),b(),k(),setTimeout(()=>{let e=document.getElementById("section-nominal-gercep");if(e){let l=e.getBoundingClientRect().top+window.pageYOffset-100;window.scrollTo({top:l,behavior:"smooth"})}},300)}:k,onConfirmText:t(l?"region_mismatch.action_button":"region_mismatch.understood"),children:(0,n.jsxs)("div",{className:"flex flex-col items-center gap-4 px-4",children:[(0,n.jsx)(c._,{className:"mx-auto",src:"/image/img-warning.png",alt:"warning-image",width:150,height:150}),(0,n.jsxs)("div",{className:"flex flex-col gap-1 text-center",children:[(0,n.jsxs)(d.A,{size:"small",weight:"bold",color:"shade700",children:[t("region_mismatch.user_region")," ",(0,n.jsx)(d.A,{as:"span",size:"small",weight:"bold",color:"darkGreen",children:(0,p.J7)(h.userRegion)})]}),(0,n.jsxs)(d.A,{size:"small",weight:"bold",color:"shade700",children:[t("region_mismatch.product_region")," ",(0,n.jsx)(d.A,{as:"span",size:"small",weight:"bold",color:"red",children:(0,p.J7)(h.productRegion)})]})]}),(0,n.jsx)(d.A,{size:"small",weight:"normal",color:"shade700",className:"text-center",children:t("region_mismatch.description")})]})})}},19870:(e,l,t)=>{"use strict";t.d(l,{H:()=>o});var n=t(75038),a=t(68979),s=t(75861),i=t(29028),r=t(25395);let o=e=>{var l,t,o;let{promoInput:c}=e,{t:d}=(0,a.Bd)(["promo"]),u=(0,s.md)(i.V1),m=(0,s.Xr)(i.BP),p=[d("error_msg_apply_promo.not_avail_for_product"),d("error_msg_apply_promo.not_avail_for_brand"),d("error_msg_apply_promo.limit_using_promo"),d("error_msg_apply_promo.not_avail_for_payment")].includes(null!=(o=null==c||null==(l=c.error)?void 0:l.message)?o:"");return""!==c.code&&(null==(t=c.error)?void 0:t.message)?(0,n.jsxs)("div",{className:"my-2.5",children:[(0,n.jsx)(r.A,{className:"-mb-1 mt-2",color:"red",size:"small",weight:"semibold",children:c.error.message.includes("<0>")?(0,n.jsx)(a.x6,{t:d,i18nKey:"promo:cant_use_promo_with_link",components:[(0,n.jsx)("a",{className:"font-bold text-primary",href:"https://www.vcgamers.com/about/pusat-bantuan/kode-promo-tidak-muncul-atau-tidak-bisa-digunakan",rel:"noopener noreferrer",target:"_blank",onClick:e=>{e.preventDefault(),window.open("https://www.vcgamers.com/about/pusat-bantuan/kode-promo-tidak-muncul-atau-tidak-bisa-digunakan","_blank","noopener")},children:c.error.message},1)]}):c.error.message}),u&&p?(0,n.jsx)("button",{onClick:()=>m(!0),className:"text-start",children:(0,n.jsx)(r.A,{color:"purple",size:"small",weight:"bold",children:d("check_termsconditions_here")})}):null]}):null}},21780:(e,l,t)=>{"use strict";t.d(l,{i:()=>s});var n=t(75038),a=t(68979);let s=e=>{let{className:l="mb-3 mt-2 rounded-default bg-soft-yellow px-4 py-2.5",gamepass_price:t,gamepass_value:s}=e,{t:i}=(0,a.Bd)("common");return s||t?(0,n.jsx)("div",{className:l,children:(0,n.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,n.jsx)("i",{className:"icon-info-circle text-[15px] before:!text-[#d17e00]"}),(0,n.jsxs)("div",{className:"flex flex-col items-start",children:[(0,n.jsx)("p",{className:"text-xs font-medium text-darker-orange",children:(0,n.jsx)(a.x6,{t:i,i18nKey:"info_gamepass_roblox.price",values:{value:t}})}),(0,n.jsx)("p",{className:"text-xs font-medium text-darker-orange",children:(0,n.jsx)(a.x6,{t:i,i18nKey:"info_gamepass_roblox.nominal",values:{value:s}})}),(0,n.jsx)("a",{href:"https://www.vcgamers.com/news/cara-top-up-robux-roblox-5-hari/",className:"mt-0.5 text-xs font-medium text-medium-purple",target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)(a.x6,{t:i,i18nKey:"info_gamepass_roblox.step_setting"})})]})]})}):null}},21958:(e,l,t)=>{"use strict";t.d(l,{SY:()=>s,is:()=>a,uj:()=>i});var n=t(63073);let a=e=>{var l,t,n;let{splitPortion:a,saldo:s}=e;return a?{promotedMainPayment:{...a,payment_split:0,selected:!0},saldoChannels:null!=(n=null==s||null==(l=s.channels)?void 0:l.map(e=>({...e,selected:e.id===a.id}
1)))?n:null,shouldClear:!0}:{promotedMainPayment:null,saldoChannels:null!=(t=null==s?void 0:s.channels)?t:null,shouldClear:!1}},s=e=>{var l;return null!=(l=e.flatMap(e=>{var l;return null!=(l=e.channels)?l:[]}).find(e=>!!e.is_default&&!e.is_maintenance&&e.code!==n.E.SALDO&&e.code!==n.E.POINT))?l:null},i=(e,l)=>!!l&&!!e&&e.code!==n.E.SALDO&&e.code!==n.E.POINT},24374:()=>{},25741:(e,l,t)=>{"use strict";t.d(l,{I:()=>w});var n=t(68979),a=t(75861),s=t(39379),i=t(76935),r=t(40088),o=t(76920),c=t(62367),d=t(16715),u=t(87572);function m(e){var l,t;let n=e.trim();if(!n)return;let a=n.toUpperCase();return d.isValid(a)?null!=(l=d.alpha3ToAlpha2(a))?l:a:null!=(t=d.getAlpha2Code(n,"en"))?t:void 0}d.registerLocale(u);let p={USER_PLACE_NOT_FOUND:"visibility",GAMEPASS_NOT_FOUND:"gamepass",GAMEPASS_PRICE_NOT_MATCH:"price",GAMEPASS_DETAIL_NOT_FOUND:"detail-error"},h={visibility:"pass",gamepass:"pass",price:"pass",regional:"pass"},x={visibility:{visibility:"fail",gamepass:"skipped",price:"skipped",regional:"skipped"},gamepass:{visibility:"pass",gamepass:"fail",price:"skipped",regional:"skipped"},price:{visibility:"pass",gamepass:"pass",price:"fail",regional:"skipped"},"detail-error":{visibility:"pass",gamepass:"pass",price:"pass",regional:"skipped"}},_=["pass","fail","skipped"];function g(e){return _.includes(e)?e:"skipped"}function v(e,l){var t,n,a,s,i,r;return{label:l.label,username:l.value,display_name:null!=(t=e.result)?t:"",region:l.is_roblox?"":null!=(n=e.region)?n:"",avatar:null!=(a=e.avatar)?a:"",game_pass_url:null!=(s=e.game_pass_url)?s:"",gamepass_id:null!=(i=e.game_pass_id)?i:"",roblox_id:null!=(r=e.account_id)?r:"",pln_data:function(e){let l={customer_id:e.pln_id,customer_name:e.pln_name?(0,c.ai)(e.pln_name):void 0,meter_number:e.pln_meter_number,tariff_power:e.pln_tariff_power};return Object.values(l).some(Boolean)?l:void 0}(e)}}function f(e,l,t,n,a){var s,i;return{kind:"roblox-account-check",failed_step:e,checks:l,identity:t,gamepass_price:null!=(s=n.gamepass_price)?s:"",gamepass_value:null!=(i=n.gamepass_value)?i:"",success:a}}function b(e){var l,t,n,a;let{ok:s,message:i,data:r,context:o}=e,{is_roblox:c,product_region:d="",label:u,value:_}=o;if(c)return function(e){var l,t,n,a;let{ok:s,message:i,data:r,context:o}=e,c={username:(null==r?void 0:r.username)||o.value||"",display_name:null!=(t=null==r?void 0:r.result)?t:"",avatar:null!=(n=null==r?void 0:r.avatar)?n:""};if(s&&(null==r?void 0:r.status)===!0)return f(null,h,c,o,v(r,o));if(null==r?void 0:r.account_check){let e={visibility:g((a=r.account_check).visibility),gamepass:g(a.gamepass),price:g(a.price),regional:g(a.regional)},l="fail"===e.visibility?"visibility":"fail"===e.gamepass?"gamepass":"fail"===e.price?"price":"skipped"===e.regional&&"pass"===e.visibility&&"pass"===e.gamepass&&"pass"===e.price?"detail-error":null;return null===l?f(null,e,c,o,v(r,o)):f(l,e,c,o)}if("GAMEPASS_REGIONAL_PRICE_EXIST"===i&&r)return f(null,h,c,o,v(r,o));let d=i?p[i]:void 0;return d?f(d,x[d],c,o):s&&r?(null!=(l=r.counter)?l:0)>=(o.check_bypass_threshold||3)||!r.result?{kind:"not-found",label:o.label}:f("gamepass",x.gamepass,c,o):{kind:"system-error",message:null!=i?i:""}}(e);if(!s||!r)return{kind:"system-error",message:null!=i?i:""};if(!0===r.status){let e=null!=(l=r.region)?l:"",a=null!=(t=m(e))?t:e,s=null!=(n=m(d))?n:d;if(a&&s&&a!==s)return{kind:"region-mismatch",user_region:e,product_region:d};let i=v(r,o);return i.pln_data?{kind:"pln-success",...i}:{kind:"generic-success",...i}}return!1===r.eligible?{kind:"ff-not-eligible",label:u,entry_point:o.entry_point}:o.allow_check_bypass&&(null!=(a=r.counter)?a:0)>=(o.check_bypass_threshold||3)?{kind:"max-attempts",value:_}:{kind:"not-found",label:u}}var j=t(63390);let w=()=>{let{t:e}=(0,n.Bd)("common"),[l,t]=(0,a.fp)(s.WI),[{mutateAsync:c,isPending:d}]=(0,a.fp)(i.J),u=(0,a.Xr)(s.BA),m=(0,a.Xr)(r.jV),p=(0,a.Xr)(r.yt),{showToast:h}=(0,o.A)(),x=l=>{switch(l.kind){case"region-mismatch":m({show:!0,userRegion:l.user_region,productRegion:l.product_region});return;case"max-attempts":p({show:!0,name:"aModalMaxCheckId",data:l.value});return;case"system-error":h(e("err_system"),{type:"error"});return;default:u({show:!0,result:l})}},_=async(e,l)=>{let t;try{var n,a,s,i;let r=await c(e);t=b({ok:(null==r||null==(n=r.data)?void 0:n.code)===200,message:null==r||null==(a=r.data)?void 0:a.message,data:null!=(i=null==r||null==(s=r.data)?void 0:s.data)?i:null,context:l})}catch(e){t=b({ok:!1,message:null==e?void 0:e.message,data:null,context:l})}return x(t),t};return{runCheck:async(e,n)=>{let a=await _(e,n);return"roblox-account-check"===a.kind&&t(l&&null!=l.cooldownUntil&&Date.now()<l.cooldownUntil?{payload:e,context:n,attempts:l.attempts,cooldownUntil:l.cooldownUntil,isRechecking:!1}:{payload:e,context:n,attempts:0,isRechecking:!1}),a},recheck:async()=>
1{if(!l)return;let e=(0,j.Uk)(l.attempts,l.cooldownUntil,Date.now());if(e.locked)return;let n=e.expired?0:l.attempts,{payload:a,context:s}=l;t({...l,attempts:n,cooldownUntil:void 0,isRechecking:!0}),await _(a,s),t(e=>{if(!e)return e;let l=(0,j.uU)(n,Date.now());return{...e,attempts:l.attempts,cooldownUntil:l.cooldownUntil,isRechecking:!1}})},show:e=>{x(e)},showInfo:e=>{u({show:!0,result:{kind:"info",label:e}})},showPhoneInvalid:e=>{u({show:!0,result:{kind:"phone-invalid",label:e}})},isPending:d}}},28487:()=>{},28671:(e,l,t)=>{"use strict";t.d(l,{Ip:()=>s,J7:()=>a,Wu:()=>i,gb:()=>r});var n=t(87435);function a(e){var l,t;if(!e)return"";let a=e.trim();return a?null!=(t=null==(l=n.b.find(e=>e.value===a))?void 0:l.label)?t:a:""}function s(e){return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,item:{"@id":"".concat("https://www.vcgamers.com"),name:"Home"}},{"@type":"ListItem",position:2,item:{"@id":"".concat("https://www.vcgamers.com","/gercep"),name:"Daftar Brand Gercep"}},{"@type":"ListItem",position:3,item:{"@id":"".concat("https://www.vcgamers.com","/gercep/").concat(e.brand_slug,"/").concat(e.category_slug),name:e.brand_name}}]}}function i(e){var l,t,n,a,s,i,r,o,c;let d=0,u=0,m=0;switch(e.mode){case 1:if(Array.isArray(e.variations)){let l=e.variations.flatMap(e=>Array.isArray(e.list)?e.list:[]),t=l.map(e=>{var l;return null!=(l=e.price.current)?l:0}).filter(e=>e>0);m=l.length,d=t.length>0?Math.min(...t):0,u=t.length>0?Math.max(...t):0}break;case 2:{let l=(null!=(r=null==(s=e.productList)?void 0:s.data)?r:[]).map(e=>e.price.current||0).filter(e=>e>0);m=null!=(o=null==(i=e.productList)?void 0:i.manifest.total)?o:0,d=l.length>0?Math.min(...l):0,u=l.length>0?Math.max(...l):0}}let p={"@context":"https://schema.org","@type":"Product",name:e.metaTitle,description:e.metaDesc,image:null==(l=e.seo)?void 0:l.brand_image,url:"".concat(e.url),brand:{"@type":"Brand",name:null!=(c=null==(t=e.seo)?void 0:t.brand_name)?c:""},offers:{"@type":"AggregateOffer",availability:"https://schema.org/InStock",priceCurrency:"IDR",offerCount:m,lowPrice:d,highPrice:u}};return(null==(n=e.reviewSEOData)?void 0:n.rating)&&(null==(a=e.reviewSEOData)?void 0:a.count)&&(p.aggregateRating={"@type":"AggregateRating",ratingValue:parseFloat(e.reviewSEOData.rating.toFixed(1)),reviewCount:e.reviewSEOData.count,bestRating:5,worstRating:1}),p}function r(){localStorage.removeItem("gercepNominalList"),localStorage.removeItem("gercepNominalSelected"),localStorage.removeItem("gercepTotal"),localStorage.removeItem("gercepRecommendationSelected"),localStorage.removeItem("gercepRecommendationList"),localStorage.removeItem("gercepTotalProductPrice"),localStorage.removeItem("gercepPaymentList"),localStorage.removeItem("gercepSaldo"),localStorage.removeItem("gercepForm"),localStorage.removeItem("paySelectedSplit"),localStorage.removeItem("isForce")}t(67414)},30072:(e,l,t)=>{"use strict";t.d(l,{D8:()=>v,E7:()=>f,Gg:()=>d,KO:()=>i,Pt:()=>h,TG:()=>m,fn:()=>r,hU:()=>x,i6:()=>p,nU:()=>c,oi:()=>o,pT:()=>g,yf:()=>_,zh:()=>u});var n=t(77395),a=t(68764),s=t(69264);let i=(0,n.tx)(!1),r=(0,n.tx)(!1),o=(0,n.tx)(!1),c=(0,n.tx)(!1),d=(0,n.tx)([]),u=(0,n.tx)([]),m=(0,n.tx)({show:!1,price:0}),p=(0,n.tx)({brand:""}),h=(0,n.tx)({brand:"",category:"",filterCounter:0}),x=(0,n.tx)({page:1,limit:10}),_=(0,n.tx)({slug:"",params:{page:1,limit:10}}),g=(0,a.vy)(()=>({mutationKey:["set-flashsale-reminder"],mutationFn:e=>(0,s.Si)(e.variation_slug,e.flash_sale_id)})),v=(0,a.vy)(()=>({mutationKey:["remove-flashsale-reminder"],mutationFn:e=>(0,s.AN)(e.variation_slug,e.flash_sale_id)})),f=(0,a.Qt)(e=>({queryKey:["flashsale-detail-infinite-query",e(_)],queryFn:e=>{let{pageParam:l,queryKey:[,t]}=e;return(0,s.pC)(t.slug,{...t.params,page:l})},initialPageParam:1,maxPages:3,getNextPageParam:(e,l,t)=>Math.ceil(e.data.paginate.total/e.data.paginate.limit)>t?t+1:null,enabled:!!e(_).slug}))},30290:(e,l,t)=>{"use strict";function n(e){return e}function a(e){return e}t.d(l,{a:()=>a,p:()=>n})},33033:(e,l,t)=>{"use strict";t.d(l,{t:()=>d});var n=t(75038),a=t(76430),s=t(75861),i=t(80503),r=t(40088),o=t(42681),c=t(7292);let d=e=>{var l,t;let{onChange:d,modalKey:u}=e,[m,p]=(0,a.useState)(),h=(0,s.md)(r.at),x=(0,i.AY)(r.at),_=h.show&&(h.key===u||!h.key&&!u);return(0,n.jsx)(o._,{title:null!=(t=h.title)?t:"Pilih Opsi",opened:_,onClose:x,children:(0,n.jsx)("div",{className:"px-4",children:null==(l=h.list_opt)?void 0:l.map((e,l)=>
1(0,n.jsx)("button",{className:(0,c.cn)("flex w-full py-2",{"border-b-[1px] border-b-shade-50":h.list_opt.length!==l+1}),onClick:()=>(e=>{p(e),d({...e,key:h.key}),x()})(e),children:(0,n.jsx)("span",{className:(0,c.cn)("text-sm font-medium text-shade-200 ",{"font-semibold text-primary":(null==m?void 0:m.value)===e.value||h.selected_opt===e.value}),children:e.label})},e.value))})})}},35761:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>u});var n=t(75038),a=t(68979),s=t(75861),i=t(80503),r=t(40088),o=t(31837),c=t(25395),d=t(42681);let u=()=>{var e,l,t,u,m,p;let{t:h}=(0,a.Bd)("common"),x=(0,s.md)(r._k),_=(0,i.AY)(r._k),g=()=>{_()};return(0,n.jsx)(d._,{title:null!=(p=null==x||null==(e=x.data)?void 0:e.title)?p:"",opened:!!x&&x.show&&"modalBuyOne"===x.name,onClose:g,onConfirm:g,onConfirmText:h("back"),singlePrompt:!0,withPrompt:!0,children:(0,n.jsxs)("div",{className:"px-4",children:[(0,n.jsx)(o._,{src:"/img/vici-helmet.png",alt:"close",width:150,height:115,className:"mx-auto mb-4"}),(0,n.jsx)(c.A,{size:"small",className:"text-center",color:"shade700",children:null==x||null==(l=x.data)?void 0:l.desc}),(null==x||null==(t=x.data)?void 0:t.type)==="once"?(0,n.jsx)("div",{className:"flex flex-col gap-2 py-2",children:null==(u=x.data.forms)?void 0:u.map(e=>(0,n.jsx)("div",{className:"flex flex-col gap-1 rounded-10 border border-red p-2.5 text-sm font-semibold text-shade-200",children:e.forms.map(l=>(0,n.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,n.jsxs)("p",{children:[l.label," :"]}),(0,n.jsx)("p",{className:"font-bold text-shade-700",children:l.value})]},"".concat(e.forms,"-").concat(l.label)))},e.productId))}):null,(0,n.jsx)(c.A,{weight:"bold",size:"small",className:"text-center",color:"red",children:h((null==x||null==(m=x.data)?void 0:m.type)==="once"?"buyone_desc_once_red":"buyone_desc_red")})]})})}},36150:(e,l,t)=>{"use strict";t.d(l,{A:()=>c});var n=t(75038),a=t(76430),s=t(31837),i=t(13582);t(75995);let r={src:"/_next/static/media/offline.d3112394.svg",height:19,width:18,blurWidth:0,blurHeight:0},o={src:"/_next/static/media/online.2f64463d.svg",height:19,width:18,blurWidth:0,blurHeight:0};function c(e){let{image:l,statusStoreType:t,className:c="",isSmall:d,onClick:u,alt:m,fallbackImg:p}=e,[h,x]=(0,a.useState)("/image/vici-question.png");return(0,a.useEffect)(()=>{l&&x(l)},[l]),(0,n.jsxs)("div",{className:"hexagon-container ".concat(c," ").concat(d?"is-small":""),...(0,i.A)(e=>null==u?void 0:u(e)),children:[(0,n.jsx)("div",{className:"hexagon-wrapper",children:(0,n.jsxs)("div",{className:"hexagon-group",children:[(0,n.jsx)("div",{className:"hexagon-img",children:(0,n.jsx)(s._,{src:h,width:200,height:200,alt:null!=m?m:"image",fallbackImg:p})}),(0,n.jsx)("svg",{viewBox:"0 0 120 120",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("polygon",{strokeWidth:"6",strokeLinecap:"round",points:"50 4 95 25 95 75 50 99 5 75 5 25"})})]})}),t&&(0,n.jsx)(s._,{width:18,height:19,className:"icon-gercep",src:"online"===t?o:r,alt:"icon-gercep"})]})}},36452:(e,l,t)=>{"use strict";t.d(l,{t:()=>o});var n=t(76430),a=t(75861),s=t(80503),i=t(91941),r=t(73423);let o=()=>{let{user:e}=(0,r.A)(),[l,t]=(0,a.fp)(i.Ri),o=(0,a.Xr)(i.Dr),c=(0,s.AY)(i.Ri),d=(0,s.AY)(i.kb),u=(0,s.AY)(i.aD),m=(0,s.AY)(i.d1),p=(0,s.AY)(i.po),h=(0,s.AY)(i.$n),x=(0,s.AY)(i.q7),_=(0,n.useCallback)(()=>{d(),u(),m(),p(),h(),x()},[d,u,m,p,h,x]),g=(0,n.useCallback)(()=>{c(),_(),o(null)},[c,_,o]);return{start:(0,n.useCallback)(l=>{let n=!!(null==e?void 0:e.phone),a=!!(null==e?void 0:e.is_activation_pin);if(o(()=>{var e;return null!=(e=null==l?void 0:l.onSuccess)?e:null}),a&&!(null==l?void 0:l.forceFullFlow)){var s;null==l||null==(s=l.onSuccess)||s.call(l),o(()=>null);return}_(),t(n?"pin-create":"phone")},[null==e?void 0:e.phone,null==e?void 0:e.is_activation_pin,o,_,t]),close:g,step:l,isOpen:"idle"!==l}}},39379:(e,l,t)=>{"use strict";t.d(l,{BA:()=>s,FQ:()=>o,MO:()=>r,WI:()=>i,b9:()=>c});var n=t(9441),a=t(77395);let s=(0,a.tx)({show:!1,result:null}),i=(0,a.tx)(null),r=(0,a.tx)(null),o=(0,n.eU)(0),c=(0,n.eU)(0)},42289:(e,l,t)=>{"use strict";t.d(l,{r:()=>r});var n=t(75038),a=t(68979),s=t(31837),i=t(25395);let r=e=>{let{icons:l,onClick:t}=e,{t:r}=(0,a.Bd)("payment");return(0,n.jsxs)("button",{type:"button",onClick:t,className:"mt-2.5 flex h-10 w-full transform items-center justify-center gap-2.5 rounded-10 bg-medium-purple px-4 py-[5px] transition-transform active:scale-[0.98]",children:[l.length>0?(0,n.jsx)("div",{className:"flex items-center gap-1",children:l.map((e,l)=>(0,n.jsx)("span",{className:"grid h-6 w-6 place-items-center overflow-hidden rounded-md bg-white",children:(0,n.jsx)(s._,{src:e,alt:"payment",width:20,height:20})},"".concat(e,"-").concat(l)))}):null,(0,n.jsx)(i.A,{size:"small",weight:"bold",color:"white",children:r("check_other_payment")}),(0,n.jsx)("i",{className:"icon-chevron-right text-sm before:!text-white"})]})}},42814:(e,l,t)=>{"use strict";t.d(l,{A:()=>g});var n=t(75038),a=t(76430),s=t(68979),i=t(75861),r=t(55409),o=t(83966),c=t(7292),d=t(31837),u=t(25395);t(24374);let m=e=>{let{title:l,isi18n:t,i18nFrom:a}=e,{t:i}=(0,s.Bd)([a,"common"]);if(!l)return null;let r=t?i(l):l;return(0,n.jsx)("label",{className:"vcg-wrap",htmlFor:r,children:r})}
1,p=e=>{let{withIcon:l,title:t}=e;return void 0===l?null:(0,n.jsx)(d._,{src:l,alt:null!=t?t:"",width:16,height:16,className:"with-icon"})},h=e=>{let{typeInput:l,setTypeInput:t}=e;return(0,n.jsx)(n.Fragment,{children:"password"===l?(0,n.jsx)("button",{className:"leading-none",onClick:()=>t("text"),children:(0,n.jsx)("i",{className:"icon-eye-open"})}):(0,n.jsx)("button",{className:"leading-none",onClick:()=>t("password"),children:(0,n.jsx)("i",{className:"icon-eye-close"})})})},x=e=>{let{isGercepSearch:l,withOldBehave:t,onChange:a,onClear:s,setValInput:i,clearGercepSearch:r}=e;return(0,n.jsx)(d._,{src:"/svg/clear-input-icon.svg",alt:"Clear input",width:14,height:14,className:"clear-input-icon absolute right-2.5 top-6 cursor-pointer",onClick:e=>{l?r():t&&a?a(e):(i(""),s&&s())}})},_=e=>{var l;let{isInputError:t,className:a=""}=e;return(null==t?void 0:t.status)&&a.includes(null!=(l=null==t?void 0:t.name)?l:"")?(0,n.jsx)(u.A,{size:"small",weight:"semibold",color:"red",className:"mt-1",children:t.desc}):null},g=e=>{var l;let{title:t="",placeholder:d="Placeholder",className:u="",isi18n:g=!1,i18nFrom:v="common",maxLength:f=500,isDisabled:b=!1,type:j="text",withIcon:w,isIconPassword:y,value:k="",withOldBehave:N,withClearInput:A,isGercepSearch:C,leftSection:S=null,inputMode:I,isError:E=!1,errorMessage:P,onChange:T,onkeydown:L,onPaste:R,onClear:O,onBlur:D,sanitizeValue:B}=e,{t:z}=(0,s.Bd)([v,"common"]),F=(0,i.md)(o.IE),[K,U]=(0,a.useState)(""),[M,q]=(0,a.useState)(j),G=(0,i.Xr)(r.Kj);return(0,a.useEffect)(()=>{U(k)},[k]),(0,n.jsxs)("div",{className:(0,c.cn)("vcg-input",u,{"blank-input":u.includes(null!=(l=null==F?void 0:F.name)?l:"")&&F.status,"has-icon":null!=w?w:S}),children:[(0,n.jsx)(m,{title:t,isi18n:g,i18nFrom:v}),(0,n.jsx)(p,{withIcon:w,title:t}),S?(0,n.jsx)("div",{className:"leftSection",children:S}):null,(0,n.jsx)("input",{inputMode:I,className:(0,c.cn)({"cursor-not-allowed !text-[rgb(var(--text-grey))]":b,"!border-red":E}),type:M,id:g?z(t):t,placeholder:g?z(d):d,onChange:e=>{N?T&&T(e):(e=>{let l="tel"===j?e.replace(/\D/g,""):e,t=B?B(l):l;U(t),T&&T(t.trimStart())})(e.target.value.trimStart())},maxLength:f,disabled:b,onKeyDown:L,value:N?k:K,autoComplete:"off",onPaste:R,onBlur:D}),A?(0,n.jsx)(x,{isGercepSearch:C,withOldBehave:N,onChange:T,onClear:O,setValInput:U,clearGercepSearch:()=>{U(""),G("")}}):null,y?(0,n.jsx)(h,{typeInput:M,setTypeInput:q}):null,(0,n.jsx)(_,{isInputError:F,className:u}),E&&P?(0,n.jsx)("p",{className:"mt-2 text-xs font-semibold text-[#FF3333]",children:P}):null]})}},45343:(e,l,t)=>{"use strict";t.d(l,{$:()=>s,XP:()=>a,fC:()=>i,xd:()=>n});let n=(e,l)=>e?"Instant":l?"Kilat":"Reguler",a=(e,l)=>{var t,n,a,s;return{User_ID:null!=(t=null==e?void 0:e.id)?t:null,Email:null!=(n=null==e?void 0:e.email)?n:null,No_HP:null!=(a=null==e?void 0:e.phone)?a:null,Nama_Pengguna:null!=(s=null==e?void 0:e.name)?s:null,Login_Status:null!=l?l:(null==e?void 0:e.id)?"Yes":"No",User_Punya_Toko:(null==e?void 0:e.has_store)?"Yes":"No",Pernah_Sukses_Belanja:e&&!e.is_new?"Yes":"No"}},s=(e,l)=>{var t,n,a,s,i,r,o;return{Nama_Brand:null!=(a=null==e||null==(t=e.brand)?void 0:t.name)?a:null,Nama_Variasi:null!=(s=null==e?void 0:e.name)?s:null,Harga_Produk:null!=(i=null==e||null==(n=e.price)?void 0:n.current)?i:null,Nama_Toko:null!=(r=null==l?void 0:l.seller_name)?r:null,Nama_Kategori:null!=(o=null==e?void 0:e.category_name)?o:null}},i=(e,l)=>{var t,n,a,s;return{Jumlah_Token:null!=(a=null==e||null==(n=e.data)||null==(t=n.token)?void 0:t.value)?a:0,Quest_Dapat_Diklaim:null!=(s=null==l?void 0:l.data)?s:0}}},46069:(e,l,t)=>{"use strict";t.d(l,{A:()=>u});var n=t(75038),a=t(68979),s=t(75861),i=t(48181),r=t(89810),o=t(63073),c=t(7292),d=t(67441);let u=e=>{var l;let{saldo:t,isDisableSplitPayment:u=!1,featureInfo:m}=e,{t:p}=(0,a.Bd)(["payment"]),h=(0,s.md)(i.iw),x=(0,s.md)(i.wL),_=null==t||null==(l=t.channels)?void 0:l.filter(e=>"INSTANT_BALANCE"===e.code||"INSTANT_POINT"===e.code);if(!_||0===Object.keys(_).length)return null;let g=!x&&((null==h?void 0:h.code)===o.E.SALDO||(null==h?void 0:h.code)===o.E.POINT),v=!!m&&m.fee>0&&(m.is_instant||m.is_kilat);
1return(0,n.jsxs)("div",{className:(0,c.cn)("saldo-section relative py-4",{"pb-2":x&&!h}),children:[(0,n.jsx)("span",{className:"absolute -top-0.5 right-0 rounded-t-default bg-soft-green px-1.5 pt-0.5 text-xs font-bold text-bold-green",children:p("payment:free_admin_fee")}),(0,n.jsx)("div",{className:"rounded-b-10 rounded-tl-10 border border-shade-75 bg-thin-purple pt-1",children:(0,n.jsx)(r.A,{category_name:"",channels:_,isDisableSplitPayment:u,isHideFreeAdmin:!0,isHideErrorMessage:!0})}),g&&v&&m?(0,n.jsx)("div",{className:"my-[10px] -mb-[6px] flex justify-center gap-2",children:(0,n.jsx)(d.q,{fee:m.fee,is_instant:m.is_instant,is_kilat:m.is_kilat,hideAdminInfo:!0})}):null]})}},46573:(e,l,t)=>{"use strict";t.d(l,{o:()=>Y});var n=t(75038),a=t(75861),s=t(80503),i=t(39379),r=t(68979),o=t(25395),c=t(42681),d=t(31837);let u={success:"/svg/icon-check.svg",error:"/svg/icon-cross.svg",warning:"/image/img-warning.png"},m=e=>{let{src:l,alt:t="icon"}=e;return(0,n.jsx)(d._,{className:"mx-auto mb-5",src:l,width:73,height:73,alt:t})},p=e=>{let{opened:l,onClose:t}=e,{t:a}=(0,r.Bd)("common");return(0,n.jsx)(c._,{title:a("check_id_result.ff_not_eligible.title"),onConfirmText:a("check_id_result.ff_not_eligible.cta_understand"),opened:l,onClose:t,onConfirm:t,singlePrompt:!0,withPrompt:!0,children:(0,n.jsxs)("div",{className:"px-4",children:[(0,n.jsx)(m,{src:u.error}),(0,n.jsx)("div",{className:"m-auto mt-2 max-w-[80%]",children:(0,n.jsx)(o.A,{as:"p",className:"text-center",size:"small",weight:"semibold",color:"shade700",height:"normal",children:(0,n.jsx)(r.x6,{t:a,i18nKey:"check_id_result.ff_not_eligible.desc",components:[(0,n.jsx)(o.A,{as:"span",size:"small",weight:"bold",color:"red"},1),(0,n.jsx)(o.A,{as:"span",size:"small",weight:"bold",color:"shade700"},2)]})})})]})})};var h=t(28671);let x=e=>{let{result:l,opened:t,onClose:a}=e,{t:s}=(0,r.Bd)("common");return(0,n.jsx)(c._,{title:s("check_id_result.generic_success.title"),onConfirmText:s("check_id_result.generic_success.cta_understand"),opened:t,onClose:a,onConfirm:a,singlePrompt:!0,withPrompt:!0,children:(0,n.jsxs)("div",{className:"px-4",children:[(0,n.jsx)(m,{src:u.success}),(0,n.jsxs)("div",{className:"flex items-center justify-center",children:[(0,n.jsxs)(o.A,{className:"capitalize",color:"shade700",size:"medium",weight:"bold",children:[l.label,":"]}),(0,n.jsx)(o.A,{className:"ml-1 !text-[#00870E]",as:"span",size:"medium",weight:"bold",children:l.username})]}),l.display_name?(0,n.jsxs)("div",{className:"flex justify-center",children:[(0,n.jsxs)(o.A,{color:"shade700",size:"medium",weight:"bold",children:[s("display_name"),":"]}),(0,n.jsx)(o.A,{className:"ml-1 !text-[#00870E]",as:"span",size:"medium",weight:"bold",children:l.display_name})]}):null,l.region?(0,n.jsxs)("div",{className:"flex justify-center",children:[(0,n.jsxs)(o.A,{color:"shade700",size:"medium",weight:"bold",children:[s("check_id_result.generic_success.info_region"),":"]}),(0,n.jsx)(o.A,{className:"ml-1 !text-[#00870E]",as:"span",size:"medium",weight:"bold",children:(0,h.J7)(l.region)})]}):null,(0,n.jsx)("div",{className:"m-auto mt-2 max-w-[69%]",children:(0,n.jsx)(o.A,{className:"text-center",size:"small",children:(0,n.jsx)(r.x6,{t:s,i18nKey:"check_id_result.generic_success.desc",values:{text_bold:l.label}})})})]})})},_=e=>{let{result:l,opened:t,onClose:a}=e,{t:s}=(0,r.Bd)("common");return(0,n.jsx)(c._,{title:s("check_id_result.info.title"),onConfirmText:s("check_id_result.info.cta_understand"),opened:t,onClose:a,onConfirm:a,singlePrompt:!0,withPrompt:!0,children:(0,n.jsxs)("div",{className:"px-4",children:[(0,n.jsx)(m,{src:u.warning}),(0,n.jsx)("div",{className:"m-auto mt-2 max-w-[69%]",children:(0,n.jsx)(o.A,{className:"text-center",size:"small",children:(0,n.jsx)(r.x6,{t:s,i18nKey:"check_id_result.info.desc",values:{text_bold:l.label}})})})]})})},g=e=>{let{result:l,opened:t,onClose:a}=e,{t:s}=(0,r.Bd)("common");return(0,n.jsx)(c._,{title:s("check_id_result.not_found.title"),onConfirmText:s("check_id_result.not_found.cta_understand"),opened:t,onClose:a,onConfirm:a,singlePrompt:!0,withPrompt:!0,children:(0,n.jsxs)("div",{className:"px-4",children:[(0,n.jsx)(m,{src:u.error}),(0,n.jsx)("div",{className:"m-auto mt-2 max-w-[69%]",children:(0,n.jsx)(o.A,{className:"text-center",size:"small",children:(0,n.jsx)(r.x6,{t:s,i18nKey:"check_id_result.not_found.desc",values:{text_bold:l.label}})})})]})})},v=e=>{let{result:l,opened:t,onClose:a}=e,{t:s}=(0,r.Bd)("common");return(0,n.jsx)(c._,{title:s("check_id_result.phone_invalid.title"),onConfirmText:s("check_id_result.phone_invalid.cta_understand"),opened:t,onClose:a,onConfirm:a,singlePrompt:!0,withPrompt:!0,children:(0,n.jsxs)("div",{className:"px-4",children:[(0,n.jsx)(m,{src:u.error}),(0,n.jsx)("div",{className:"m-auto mt-2 max-w-[69%]",children:(0,n.jsx)(o.A,{className:"text-center",size:"small",children:(0,n.jsx)(r.x6,{t:s,i18nKey:"check_id_result.phone_invalid.desc",values:{text_bold:l.label}})})})]})})},f=e=>{let{label:l,value:t}=e,a=(null==t?void 0:t.trim())?t:"-";return(0,n.jsxs)("div",{className:"flex items-start justify-between gap-3 py-1",children:[(0,n.jsx)(o.A,{className:"text-left",color:"darkGrey",children:l}),(0,n.jsx)(o.A,{className:"text-right",color:"shade700",weight:"bold",children:a})]})},b=e=>{let{plnData:l}=e,{t}=(0,r.Bd)("common");return(0,n.jsxs)("div",{className:"px-4 pb-1",children:[(0,n.jsx)(o.A,{className:"mb-2 text-center capitalize",color:"shade700",size:"medium",weight:"bold",children:t("check_id_result.pln_success.detail_title")}),(0,n.jsxs)("div",{className:"rounded-10 border border-shade-75 p-3",children:[(0,n.jsx)(f,{label:t("check_id_result.pln_success.customer_id"),value:null==l?void 0:l.customer_id}),(0,n.jsx)(f,{label:t("check_id_result.pln_success.customer_name"),value:null==l?void 0:l.customer_name}),(0,n.jsx)(f,{label:t("check_id_result.pln_success.meter_number"),value:null==l?void 0:l.meter_number}),(0,n.jsx)(f,{label:t("check_id_result.pln_success.tariff_power"),value:null==l?void 0:l.tariff_power})]}),(0,n.jsx)(o.A,{className:"mt-3 text-center",size:"small",color:"shade700",weight:"normal",children:t("check_id_result.pln_success.close_hint")})]})},j=e=>{let{result:l,opened:t,onClose:a}=e,{t:s}=(0,r.Bd)("common");return(0,n.jsx)(c._,{title:s("check_id_result.pln_success.title"),onConfirmText:s("check_id_result.pln_success.cta_close"),opened:t,onClose:a,onConfirm:a,singlePrompt:!0,withPrompt:!0,children:(0,n.jsxs)("div",{className:"px-4",children:[(0,n.jsx)(m,{src:u.success}),(0,n.jsx)(b,{plnData:l.pln_data})]})})};var w=t(76430),y=t(25741),k=t(63390);let N=e=>{let{status:l}=e;return"neutral"===l?(0,n.jsx)("span",{"data-testid":"account-check-neutral-icon",className:"mt-0.5 inline-block h-4 w-4 flex-shrink-0 rounded-full border border-shade-75"}):(0,n.jsx)(d._,{className:"mt-0.5 flex-shrink-0",src:"pass"===l?u.success:u.error,width:16,height:16,alt:"pass"===l?"pass":"fail"})},A=e=>{let{status:l,label:t,children:a,body:s}=e;return(0,n.jsxs)("div",{className:"py-1.5","data-testid":"account-check-row-".concat(l),children:[(0,n.jsxs)("div",{className:"flex items-start gap-2",children:[(0,n.jsx)(N,{status:l}),(0,n.jsx)(o.A,{as:"div",weight:"semibold",color:"shade700",children:t})]}),"fail"===l&&(a||s)?(0,n.jsxs)("div",{className:"mt-2 space-y-2 rounded-10 bg-thin-red p-3",children:[a,s?(0,n.jsx)("div",{className:"rounded-10 border border-soft-red bg-white p-3",children:s}):null]}):null]})},C={pass:"pass",fail:"fail",skipped:"fail"},S=e=>{let{size:l=16}=e;return(0,n.jsx)(d._,{className:"inline-block align-text-bottom",src:"/image/roblox-tutorial/icon-robux.png",width:l,height:l,alt:"robux"})},I=e=>{let{title:l,onTutorial:t}=e,{t:a}=(0,r.Bd)("common");return(0,n.jsxs)(o.A,{className:"text-center",weight:"semibold",color:"red",children:[l," ",(0,n.jsxs)("button",{type:"button","data-testid":"account-check-tutorial-link",className:"inline-flex items-center font-bold text-medium-purple",onClick:t,children:[a("check_id_result.roblox_account.see_tutorial"),(0,n.jsx)("i",{className:"icon-chevron-right before:!text-medium-purple"})]})]})},E=e=>{var l,t;let{result:s,opened:u,onClose:m}=e,{t:p}=(0,r.Bd)("common"),{recheck:h}=(0,y.I)(),x=(0,a.md)(i.WI),_=(0,a.Xr)(i.MO),g=(0,a.Xr)(i.FQ),[,v]=(0,w.useReducer)(e=>e+1,0),f=s.failed_step,b=s.checks,j=s.identity,N=null===f,E="pass"===b.visibility&&"pass"===b.gamepass&&"pass"===b.price,P=j.username||(null==x?void 0:x.context.value)||"",T=null!=(l=null==x?void 0:x.attempts)?l:0,L=null!=(t=null==x?void 0:x.isRechecking)&&t,R=null==x?void 0:x.cooldownUntil,O=(0,k.Uk)(T,R,Date.now()).locked;return(0,w.useEffect)(()=>
1{if(null==R)return;let e=R-Date.now();if(e<=0)return;let l=setTimeout(v,e+50);return()=>clearTimeout(l)},[R]),(0,n.jsxs)(c._,{title:p("check_id_result.roblox_account.title"),onConfirmText:p(N?"check_id_result.roblox_account.proceed_cta":"check_id_result.roblox_account.recheck_cta"),onConfirm:N?()=>{g(e=>e+1),m()}:h,onConfirmDisabled:L||!N&&O,opened:u,onClose:m,singlePrompt:!0,withPrompt:!0,children:[L?(0,n.jsxs)("div",{className:"flex flex-col items-center px-4 py-12","data-testid":"account-check-loading",children:[(0,n.jsx)("div",{className:"h-16 w-16 animate-spin rounded-full border-[6px] border-shade-75 border-t-medium-purple"}),(0,n.jsx)(o.A,{className:"mt-4 text-center",color:"shade700",children:p("check_id_result.roblox_account.checking")})]}):(0,n.jsxs)("div",{className:"px-4 pb-2",children:[(0,n.jsx)(A,{status:"pass",label:(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsxs)(o.A,{weight:"bold",color:"shade700",children:[p("check_id_result.roblox_account.username_label"),":"," "]}),(0,n.jsx)("span",{className:"font-bold text-bold-green",children:P})," ",(0,n.jsx)(d._,{className:"ml-1 inline-block h-6 w-6 align-middle",src:j.avatar||"/image/default-avatar.png",width:24,height:24,alt:"roblox avatar"})]})}),(0,n.jsx)(A,{status:C[b.visibility],label:(0,n.jsx)(r.x6,{t:p,i18nKey:"check_id_result.roblox_account.visibility_check"}),body:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.A,{className:"text-center",color:"shade700",children:p("check_id_result.roblox_account.visibility_blocker_desc")}),(0,n.jsx)(d._,{className:"mx-auto mt-2 w-full",src:"/image/roblox-tutorial/blocker-visibility.png",width:264,height:83,alt:"status creation public"})]}),children:(0,n.jsx)(I,{title:p("check_id_result.roblox_account.visibility_blocker_title"),onTutorial:()=>_("visibility")})}),(0,n.jsx)(A,{status:(e=>"fail"===e.gamepass?"fail":C[e.price])(b),label:(0,n.jsxs)(n.Fragment,{children:[p("check_id_result.roblox_account.price_check")," ",(0,n.jsx)(S,{})," ",(0,n.jsx)("strong",{children:s.gamepass_price})]}),body:(0,n.jsxs)("div",{className:"space-y-1",children:[(0,n.jsx)(o.A,{className:"text-center",color:"shade700",children:p("check_id_result.roblox_account.price_blocker_desc")}),(0,n.jsxs)("div",{className:"flex items-center justify-center gap-1",children:[(0,n.jsx)(S,{size:24}),(0,n.jsx)(o.A,{size:"large",weight:"bold",color:"shade700",children:s.gamepass_price})]}),(0,n.jsx)(o.A,{className:"text-center",color:"shade700",children:(0,n.jsx)(r.x6,{t:p,i18nKey:"check_id_result.roblox_account.price_blocker_hint",values:{robux:s.gamepass_value}})})]}),children:(0,n.jsx)(I,{title:p("check_id_result.roblox_account.price_blocker_title"),onTutorial:()=>_("gamepass")})}),(0,n.jsx)("div",{className:"py-1.5","data-testid":"regional-advisory",children:(0,n.jsxs)("div",{className:"flex items-start gap-2",children:[(0,n.jsx)(d._,{className:"mt-0.5 flex-shrink-0",src:"/svg/icon-warning.svg",width:16,height:16,alt:"warning"}),(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsxs)(o.A,{as:"div",weight:"semibold",color:"shade700",children:[(0,n.jsx)(r.x6,{t:p,i18nKey:"check_id_result.roblox_account.regional_advisory",components:{em:(0,n.jsx)(o.A,{as:"span",weight:"bold",color:"red"})}})," ",(0,n.jsxs)("button",{type:"button","data-testid":"regional-advisory-tutorial-link",className:"inline-flex items-center font-bold text-medium-purple",onClick:()=>_("regional"),children:[p("check_id_result.roblox_account.see_tutorial"),(0,n.jsx)("i",{className:"icon-chevron-right before:!text-medium-purple"})]})]}),E?(0,n.jsx)(d._,{className:"mt-2 h-auto w-full",src:"/image/roblox-tutorial/blocker-regional.png",width:296,height:84,alt:p("check_id_result.roblox_account.regional_advisory_alt")}):null]})]})}),"detail-error"===f?(0,n.jsx)(o.A,{className:"mt-2 text-center",color:"red",children:p("check_id_result.roblox_account.detail_error")}):null,N?(0,n.jsx)("div",{className:"mt-2 w-full rounded-md bg-thin-blue px-4 py-2.5",id:"account-check-success-alert",role:"alert","aria-label":"account check success alert",children:(0,n.jsx)("p",{className:"text-sm font-semibold text-[#3B52A2]",children:(0,n.jsx)(r.x6,{t:p,i18nKey:"check_id_result.roblox_account.alert"})})}):null]}),!N&&O?(0,n.jsx)("div",{className:"sticky bottom-0 flex items-center gap-1 bg-white px-4 pt-2",children:(0,n.jsx)(o.A,{color:"red",children:p("check_id_result.roblox_account.rate_limited")})}):null]})},P="https://create.roblox.com/dashboard",T=Array.from({length:4},(e,l)=>l+1),L=(e,l)=>"check_id_result.tutorial_experience_visibility.steps.".concat(e,".").concat(l),R=e=>"/image/roblox-tutorial/experience-visibility/step-".concat(e,".png"),O=e=>{let{step:l,t}=e,a=t(L(l,"items"),{returnObjects:!0});return Array.isArray(a)?(0,n.jsx)("ol",{className:"mb-3 ml-5 list-decimal space-y-1 text-xs font-medium leading-[1.5] text-shade-700",children:a.map((e,a)=>(0,n.jsx)("li",{children:(0,n.jsx)(r.x6,{t:t,i18nKey:"".concat(L(l,"items"),".").concat(a),components:[(0,n.jsx)("a",{"aria-label":t("create_roblox_account_link"),
1className:"font-bold text-medium-purple underline",href:P,target:"_blank",rel:"noopener noreferrer"},0)]})},"".concat(l,"-item-").concat(a)))}):(0,n.jsx)("p",{className:"mb-3 text-xs font-medium leading-[1.5] text-shade-700",children:(0,n.jsx)(r.x6,{t:t,i18nKey:L(l,"paragraph")})})},D=e=>{let{opened:l,onClose:t}=e,{t:a}=(0,r.Bd)("common"),[s,i]=(0,w.useState)(1),u=4===s;return(0,w.useEffect)(()=>{l&&i(1)},[l]),(0,w.useEffect)(()=>{l&&T.forEach(e=>{new window.Image().src=R(e)})},[l]),(0,n.jsx)(c._,{title:a("check_id_result.tutorial_experience_visibility.title"),opened:l,onClose:t,onCancel:()=>{if(1===s)return void t();i(e=>e-1)},onCancelText:a("check_id_result.tutorial_experience_visibility.back"),onCancelColor:"purple-outline",onConfirm:()=>{if(u)return void t();i(e=>e+1)},onConfirmText:a(u?"check_id_result.tutorial_experience_visibility.understand_cta":"check_id_result.tutorial_experience_visibility.next"),onConfirmColor:"purple",withPrompt:!0,children:(0,n.jsxs)("div",{className:"flex flex-col px-4 pb-2",children:[(0,n.jsxs)("div",{className:"relative mb-4 w-full",children:[(0,n.jsx)(d._,{src:R(s),alt:a(L(s,"alt")),width:328,height:184,className:"w-full rounded-default object-contain",fallbackImg:"/image/vici-question.png"}),(0,n.jsx)("div",{className:"absolute inset-x-0 bottom-3 flex items-center justify-center gap-1.5",role:"progressbar","aria-valuemin":1,"aria-valuemax":4,"aria-valuenow":s,"aria-label":a("check_id_result.tutorial_experience_visibility.title"),children:T.map(e=>(0,n.jsx)("span",{"data-testid":"tutorial-step-dot-".concat(e),"data-active":e===s,className:"ring-shade-900/10 h-2 w-2 rounded-full bg-white/70 ring-1 transition-colors data-[active=true]:bg-medium-purple data-[active=true]:ring-medium-purple/40","aria-hidden":!0},e))})]}),(0,n.jsx)(o.A,{as:"h3",size:"small",weight:"bold",color:"shade700",className:"mb-2",children:a(L(s,"title"))}),(0,n.jsx)(O,{step:s,t:a})]})})},B=(e,l,t)=>({src:"/image/roblox-tutorial/gamepass/".concat(e,".png"),width:l,height:t}),z=[{key:"step_1",images:[B("step-1",286,84)]},{key:"step_2",images:[B("step-2",285,90)]},{key:"step_3",images:[B("step-3",286,68)]},{key:"step_4",images:[B("step-4",286,144)]},{key:"step_5",images:[B("step-5",286,99)]},{key:"step_6",images:[B("step-6a",286,75),B("step-6b",286,53)]},{key:"step_7",images:[B("step-7",286,99)]},{key:"step_8",images:[B("step-8",286,136)]},{key:"step_9",images:[B("step-9",286,143)]},{key:"step_10",images:[B("step-10",286,106)]},{key:"step_11",images:[B("step-11",286,95)]},{key:"step_12",images:[B("step-12",264,63)]},{key:"step_13",images:[B("step-13",276,81)]}],F=e=>{let{opened:l,onClose:t}=e,{t:a}=(0,r.Bd)("common");return(0,n.jsxs)(c._,{title:a("check_id_result.tutorial_gamepass.title"),onConfirmText:a("check_id_result.tutorial_gamepass.cta_understand"),onConfirm:t,opened:l,onClose:t,size:"large",singlePrompt:!0,withPrompt:!0,children:[(0,n.jsxs)("div",{className:"px-4 pb-4",children:[(0,n.jsx)(o.A,{weight:"bold",color:"shade700",children:a("check_id_result.tutorial_gamepass.watch_video")}),(0,n.jsx)("a",{className:"mx-auto mt-2 block w-full max-w-[254px]",href:"https://www.youtube.com/shorts/3GBhZp71_vc",target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)(d._,{className:"w-full rounded-10",src:"/image/roblox-tutorial/gamepass/video.png",width:254,height:125,alt:"gamepass tutorial video"})}),(0,n.jsx)(o.A,{className:"mt-4",weight:"bold",color:"shade700",children:a("check_id_result.tutorial_gamepass.or_follow")}),(0,n.jsx)("ol",{className:"mt-2 list-decimal space-y-4 pl-5 text-sm font-medium text-shade-700",children:z.map(e=>(0,n.jsxs)("li",{children:[(0,n.jsx)(o.A,{color:"shade700",children:(0,n.jsx)(r.x6,{t:a,i18nKey:"check_id_result.tutorial_gamepass.".concat(e.key)})}),(0,n.jsx)("div",{className:"mt-1.5 flex flex-col items-center",children:e.images.map(e=>(0,n.jsx)(d._,{className:"w-full",src:e.src,width:e.width,height:e.height,alt:"gamepass tutorial step"},e.src))})]},e.key))})]}),(0,n.jsxs)("div",{className:"sticky bottom-0 flex items-center gap-1 bg-white px-4 pt-2",children:[(0,n.jsx)(o.A,{color:"shade700",children:a("check_id_result.tutorial_gamepass.already_have")}
1),(0,n.jsxs)("a",{className:"inline-flex items-center text-sm font-bold text-medium-purple",href:P,target:"_blank",rel:"noopener noreferrer",children:[a("check_id_result.tutorial_gamepass.change_here"),(0,n.jsx)("i",{className:"icon-chevron-right -mt-0.5 before:!text-medium-purple"})]})]})]})},K=Array.from({length:3},(e,l)=>l+1),U=(e,l)=>"check_id_result.tutorial_regional_pricing.steps.".concat(e,".").concat(l),M=e=>"/image/roblox-tutorial/regional-pricing/step-".concat(e,".png"),q=e=>{let{step:l,t}=e,a=t(U(l,"items"),{returnObjects:!0});return Array.isArray(a)?(0,n.jsx)("ol",{className:"mb-3 ml-5 list-decimal space-y-1 text-xs font-medium leading-[1.5] text-shade-700",children:a.map((e,a)=>(0,n.jsx)("li",{children:(0,n.jsx)(r.x6,{t:t,i18nKey:"".concat(U(l,"items"),".").concat(a),components:[(0,n.jsx)("a",{"aria-label":t("create_roblox_account_link"),className:"font-bold text-medium-purple underline",href:P,target:"_blank",rel:"noopener noreferrer"},0)]})},"".concat(l,"-item-").concat(a)))}):(0,n.jsx)("p",{className:"mb-3 text-xs font-medium leading-[1.5] text-shade-700",children:(0,n.jsx)(r.x6,{t:t,i18nKey:U(l,"paragraph")})})},G=e=>{let{opened:l,onClose:t}=e,{t:a}=(0,r.Bd)("common"),[s,i]=(0,w.useState)(1),u=3===s;return(0,w.useEffect)(()=>{l&&i(1)},[l]),(0,w.useEffect)(()=>{l&&K.forEach(e=>{new window.Image().src=M(e)})},[l]),(0,n.jsx)(c._,{title:a("check_id_result.tutorial_regional_pricing.title"),opened:l,onClose:t,onCancel:()=>{if(1===s)return void t();i(e=>e-1)},onCancelText:a("check_id_result.tutorial_regional_pricing.back"),onCancelColor:"purple-outline",onConfirm:()=>{if(u)return void t();i(e=>e+1)},onConfirmText:a(u?"check_id_result.tutorial_regional_pricing.understand_cta":"check_id_result.tutorial_regional_pricing.next"),onConfirmColor:"purple",withPrompt:!0,children:(0,n.jsxs)("div",{className:"flex flex-col px-4 pb-2",children:[(0,n.jsxs)("div",{className:"relative mb-4 w-full",children:[(0,n.jsx)(d._,{src:M(s),alt:a(U(s,"alt")),width:328,height:184,className:"w-full rounded-default object-contain",fallbackImg:"/image/vici-question.png"}),(0,n.jsx)("div",{className:"absolute inset-x-0 bottom-3 flex items-center justify-center gap-1.5",role:"progressbar","aria-valuemin":1,"aria-valuemax":3,"aria-valuenow":s,"aria-label":a("check_id_result.tutorial_regional_pricing.title"),children:K.map(e=>(0,n.jsx)("span",{"data-testid":"tutorial-step-dot-".concat(e),"data-active":e===s,className:"ring-shade-900/10 h-2 w-2 rounded-full bg-white/70 ring-1 transition-colors data-[active=true]:bg-medium-purple data-[active=true]:ring-medium-purple/40","aria-hidden":!0},e))})]}),(0,n.jsx)(o.A,{as:"h3",size:"small",weight:"bold",color:"shade700",className:"mb-2",children:a(U(s,"title"))}),(0,n.jsx)(q,{step:s,t:a})]})})},X=()=>{let[e,l]=(0,a.fp)(i.MO),t=()=>l(null);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(F,{opened:"gamepass"===e,onClose:t}),(0,n.jsx)(G,{opened:"regional"===e,onClose:t}),(0,n.jsx)(D,{opened:"visibility"===e,onClose:t})]})},Y=()=>{let[{show:e,result:l},t]=(0,a.fp)(i.BA),r=(0,s.AY)(i.BA),o=(0,a.Xr)(i.b9);return(0,n.jsxs)(n.Fragment,{children:[l?((e,l,t)=>{switch(e.kind){case"roblox-account-check":return(0,n.jsx)(E,{result:e,opened:l,onClose:t});case"pln-success":return(0,n.jsx)(j,{result:e,opened:l,onClose:t});case"generic-success":return(0,n.jsx)(x,{result:e,opened:l,onClose:t});case"not-found":return(0,n.jsx)(g,{result:e,opened:l,onClose:t});case"ff-not-eligible":return(0,n.jsx)(p,{opened:l,onClose:t});case"phone-invalid":return(0,n.jsx)(v,{result:e,opened:l,onClose:t});case"info":return(0,n.jsx)(_,{result:e,opened:l,onClose:t});default:return null}})(l,e,()=>{t(e=>({...e,show:!1})),(null==l?void 0:l.kind)==="ff-not-eligible"&&"gercep"===l.entry_point&&o(e=>e+1),setTimeout(r,200)}):null,(0,n.jsx)(X,{})]})}},48954:(e,l,t)=>{"use strict";t.d(l,{q3:()=>m,X9:()=>b,fy:()=>j});var n=t(75038),a=t(30684),s=t(68979),i=t(75861),r=t(48181),o=t(31837),c=t(25395),d=t(42681),u=t(45636);let m=()=>{let e=(0,a.useRouter)(),{t:l}=(0,s.Bd)("common"),[t,m]=(0,i.fp)(r.Vl),[{mutate:p}]=(0,i.fp)(r.BJ),h=()=>{m(!1)},x=(0,u.d)(()=>{sessionStorage.setItem("dana-integration-last-page",window.location.href),p(void 0,{onSuccess:l=>{var t;(null==l||null==(t=l.data)?void 0:t.data)&&""!==l.data.data&&e.push(l.data.data),setTimeout(h,100)}})},3e3);return(0,n.jsxs)(d._,{title:l("connect_to_dana"),opened:t,onClose:h,onConfirm:x,onCancelText:l("back"),onConfirmText:l("connect"),onConfirmColor:"blue",size:"large",withPrompt:!0,children:[(0,n.jsx)(o._,{className:"aspect-auto w-full",src:"/image/dana-integration.png",alt:"dana-integration-illustration",width:360,height:152}),(0,n.jsx)("div",{className:"mb-1 mt-5 flex items-center justify-center text-center",children:(0,n.jsx)(c.A,{color:"darkGrey",weight:"semibold",children:l("dana_integration_connect_drawer_content")})}),(0,n.jsxs)("div",{className:"scroll-bar-main h-40 overflow-y-auto p-4 pl-7 text-xs font-medium text-shade-200",children:[(0,n.jsx)("p",{className:"mb-1 text-center font-bold",children:l("dana_integration_terms_and_conditions.title")}),(0,n.jsxs)("ol",{className:"mx-5 mb-1 list-decimal",children:[(0,n.jsx)("li",{children:l("dana_integration_terms_and_conditions.1")}),(0,n.jsx)("li",{children:l("dana_integration_terms_and_conditions.2")}),(0,n.jsx)("li",{children:l("dana_integration_terms_and_conditions.3")}),(0,n.jsx)("li",{children:l("dana_integration_terms_and_conditions.4")}),(0,n.jsx)("li",{children:l("dana_integration_terms_and_conditions.5")}),(0,n.jsx)("li",{children:l("dana_integration_terms_and_conditions.6")}),(0,n.jsx)("li",{children:l("dana_integration_terms_and_conditions.7")})]}),(0,n.jsx)("p",{children:l("dana_integration_terms_and_conditions.closing")})]})]})};var p=t(95876),h=t(42485),x=t(59479),_=t(55861),g=t(80503),v=t(76920);let f=()=>{let e=(0,_.jE)(),{t:l}=(0,s.Bd)("common"),[t,a]=(0,i.fp)(r.hn),[{mutate:o}]=(0,i.fp)(r.SO),m=(0,g.AY)(r.uY),{showToast:p}=(0,v.A)(),h=()=>{a(!1)},x=(0,u.d)(()=>{o(void 0,{onSuccess:()=>
1{e.invalidateQueries({queryKey:["get-binding-state-query"]}),setTimeout(()=>{e.invalidateQueries({queryKey:["get-dana-integration-inquiry-query"]})},200),p(l("dana_integration_disconnected_drawer_content"),{type:"success"}),m()},onError:()=>p(l("err_system"),{type:"error"}),onSettled:h})},3e3);return(0,n.jsx)(d._,{className:"px-4",title:"Putuskan Sambungan DANA",opened:t,onClose:h,onConfirm:x,onCancelText:"Kembali",onConfirmText:"Nonaktifkan",onConfirmColor:"red",withPrompt:!0,children:(0,n.jsx)(c.A,{color:"darkGrey",weight:"semibold",children:l("dana_integration_disconnect_drawer_content")})})},b=()=>{var e,l;let t=(0,a.useRouter)(),{t:c}=(0,s.Bd)("profile-dashboard"),[m,_]=(0,i.fp)(r.uY),[{data:g}]=(0,i.fp)(r.LD),[{mutate:v}]=(0,i.fp)(r.pP),b=(0,i.Xr)(r.hn),j=()=>{_(!1)},w=(0,u.d)(()=>{v(void 0,{onSuccess:e=>{let l=e.data.data.token;l&&t.push("".concat("https://m.dana.id/m/ipg?sourcePlatform=IPG&ott=").concat(l))}})},3e3);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d._,{className:"!p-0",title:"Dana",opened:m,onBack:j,onClose:j,onConfirm:w,onConfirmText:"Top Up Dana",onConfirmColor:"blue",fullscreen:!0,withPrompt:!0,singlePrompt:!0,children:(0,n.jsxs)("div",{className:"relative flex flex-col items-center",children:[(0,n.jsxs)("div",{className:"flex w-full items-center justify-between bg-[#108EE9] px-5 py-6",id:"profile-card",children:[(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,n.jsx)("p",{className:"text-base font-bold text-white",children:c("wallet.dana.balance")}),(0,n.jsx)(o._,{className:"-mt-0.5 aspect-auto",width:59,height:17,src:"/image/dana-logo.png",alt:"dana-logo"})]}),(0,n.jsx)("p",{className:"text-xs font-semibold text-white",children:null==g?void 0:g.username})]}),(0,n.jsxs)("p",{className:"text-base font-bold text-white",children:["Rp",(0,x.A)(null!=(l=null==g?void 0:g.amount)?l:0)]})]}),(0,n.jsx)("div",{className:"grid w-full grid-cols-1 divide-y-1.5 divide-shade-50 bg-white px-4",children:null==(e=Object.entries(c("wallet.dana.faq",{returnObjects:!0})))?void 0:e.map((e,l)=>{let[t,a]=e;return(0,n.jsx)("a",{className:"py-5 text-xs font-medium text-shade-200",href:a.url,target:"_blank",rel:"noopener noreferrer",children:a.value},"".concat(l,"-").concat(t))})}),(0,n.jsx)("div",{className:"mt-4 h-[48px] w-full px-4",children:(0,n.jsxs)("div",{className:"flex h-full w-full justify-center gap-2 rounded-md bg-blue-200 px-4 py-2",children:[(0,n.jsx)("i",{className:"icon-info-round before:!text-[#3B52A2]"}),(0,n.jsx)("p",{className:"text-xs font-medium text-[#3B52A2]",children:(0,n.jsx)(s.x6,{t:c,i18nKey:"profile-dashboard:wallet.dana.info",components:[(0,n.jsx)(p.O,{className:"font-bold text-medium-purple"},1)]})})]})}),(0,n.jsx)(h.R,{className:"w-fit focus:outline-none",background:"transparent",onClick:()=>b(!0),children:(0,n.jsx)("p",{className:"font-semibold text-red",children:c("wallet.dana.unbind")})})]})}),(0,n.jsx)(f,{})]})},j=()=>{let{t:e}=(0,s.Bd)("common"),[l,t]=(0,i.fp)(r.KT),a=()=>{t({success:!1,error:null})};return(0,n.jsxs)(d._,{title:"Sambungan Berhasil",opened:l.success,onClose:a,onConfirm:a,onConfirmText:"Tutup",withPrompt:!0,singlePrompt:!0,children:[(0,n.jsx)(o._,{className:"aspect-auto w-full",src:"/image/dana-connected.png",alt:"dana-connected-illustration",width:360,height:152}),(0,n.jsx)("div",{className:"mb-1 mt-5 flex items-center justify-center text-center",children:(0,n.jsx)(c.A,{color:"darkGrey",weight:"semibold",children:e("dana_integration_connect_success_drawer_content")})})]})}},49871:(e,l,t)=>{"use strict";t.d(l,{r:()=>r,u:()=>o});var n=t(76430),a=t(73423),s=t(36452);let i="/profile/buyer-balance";function r(e){return e?"".concat(i,"?from=").concat(e):i}function o(){let{user:e}=(0,a.A)(),{start:l}=(0,s.t)();return(0,n.useCallback)(t=>{let n=r(null==t?void 0:t.from);if(!(null==e?void 0:e.is_activation_pin))return void l({onSuccess:()=>window.location.assign(n)});window.location.assign(n)},[null==e?void 0:e.is_activation_pin,l])}},52811:(e,l,t)=>{"use strict";t.d(l,{s:()=>n});let n={view_homepage:"view_homepage",view_search_results:"view_search_results",click_chat_box:"click_chat_box",beli_langsung:"beli_langsung",share_product:"share_product",add_to_wishlist:"add_to_wishlist",view_gercep_brand:"view_gercep_brand",checkout_gercep:"checkout_gercep",view_gercep_page:"view_gercep_page",view_cuanpage:"view_cuanpage",checkout_beli_langsung:"checkout_beli_langsung",checkout_add_to_cart:"checkout_add_to_cart",buy_add_to_cart:"buy_add_to_cart",view_add_to_cart:"view_add_to_cart",add_to_cart:"add_to_cart",beli_lagi_transaction_page:"beli_lagi_transaction_page",check_transaction_page:"check_transaction_page",view_product:"view_product",purchase_success:"purchase_success",login_sso:"login_sso",view_detail_transaction:"view_detail_transaction",gercep_brand_mismatch_blocked:"gercep_brand_mismatch_blocked",reorder_impression:"reorder_impression",reorder_click:"reorder_click",reorder_redirect_beli_langsung:"reorder_redirect_beli_langsung",reorder_redirect_pdp_actionsheet:"reorder_redirect_pdp_actionsheet",qontak_webchat_load_failed:"qontak_webchat_load_failed"}},53685:(e,l,t)=>{"use strict";t.d(l,{u:()=>c});var n=t(76430),a=t(63073),s=t(90134);let i={EWALLET:"E-Wallet & QRIS",VIRTUAL_ACCOUNT:"Virtual Account"},r=e=>!1!==e.is_allowed&&!e.is_maintenance,o=(e,l)=>{var t,n;return null!=(n=null==(t=e.find(e=>e.category_name===l))?void 0:t.channels)?n:[]};function c(e,l){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,c=(0,n.useMemo)(()=>{let l=(0,s.Tx)();return{lastUsedCode:l,base:function(e,l){var t,n;let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=e.flatMap(e=>{var l;return null!=(l=e.channels)?l:[]}),c=null!=(t=s.find(e=>e.is_default&&r(e)))?t:null,d=null!=l&&null!=(n=s.find(e=>e.code===l&&r(e)))?n:null,u=null!==d,m=new Set,p=[],h=e=>{!e||m.has(e.id)||(m.add(e.id),p.push(e))};return h(c),h(d),o(e,i.EWALLET).filter(e=>r(e)&&"QRISQR"!==e.code&&!m.has(e.id)).slice(0,u?2:3).forEach(h),o(e,i.VIRTUAL_ACCOUNT).filter(e=>
1r(e)&&!m.has(e.id)).slice(0,1).forEach(h),h(a),{chips:p,isReturning:u,defaultChip:c,lastChip:d}}(e,l)}},[e]),d=(0,n.useMemo)(()=>{if(t){let l=e.flatMap(e=>{var l;return null!=(l=e.channels)?l:[]}).find(e=>{var l;return(null==(l=e.code)?void 0:l.toLowerCase())===t.toLowerCase()});if(l)return[l]}let n=c.base.chips;return l&&!n.some(e=>e.id===l.id)&&l.code!==a.E.SALDO&&l.code!==a.E.POINT?[...n,l]:n},[e,c,l,t]),u=(0,n.useMemo)(()=>{let l=new Set(d.map(e=>e.id));return e.flatMap(e=>{var l;return null!=(l=e.channels)?l:[]}).filter(e=>!1!==e.is_allowed&&!e.is_maintenance&&!l.has(e.id)&&!!e.icon).slice(0,3).map(e=>e.icon)},[e,d]);return{shortcutChips:d,otherPaymentIcons:u,lastUsedCode:c.lastUsedCode}}},54069:(e,l,t)=>{"use strict";t.d(l,{N:()=>r});var n=t(75038),a=t(68979),s=t(31837),i=t(7292);let r=e=>{let{className:l}=e,{t}=(0,a.Bd)("common");return(0,n.jsx)("div",{className:(0,i.cn)("flex items-center justify-center p-2","bg-[radial-gradient(50%_50%_at_50%_50%,#FFFFFF_0%,#DDF6E0_78.79%,#CEECD1_100%)]",l),children:(0,n.jsx)("p",{className:"text-xs font-semibold text-shade-700",children:(0,n.jsx)(a.x6,{t:t,i18nKey:"common:info_antiscam",components:[(0,n.jsx)(s._,{alt:"antiscam badge",src:"/image/logo-antiscam.webp",className:"inline-block",width:84,height:26,aboveTheFold:!0},1)]})})})}},55409:(e,l,t)=>{"use strict";t.d(l,{KN:()=>u,Kj:()=>r,Ml:()=>d,S:()=>c,Zt:()=>m,xz:()=>i,yS:()=>o});var n=t(77395),a=t(68764),s=t(36883);(0,n.tx)({search:"",category:null}),(0,n.tx)([]),(0,n.tx)([]);let i=(0,n.tx)(null),r=(0,n.tx)(null),o=(0,n.tx)(!0);(0,n.tx)(!0);let c=(0,n.tx)({category_id:"",name:""}),d=(0,a.qA)(e=>({queryKey:["gercep-brands-list",e(c)],queryFn:e=>{let{queryKey:[,l]}=e;return(0,s.NN)(l)},enabled:!!e(c).category_id})),u=(0,a.qA)(()=>({queryKey:["gercep-categories-list"],queryFn:()=>(0,s.n5)()})),m=(0,a.vy)(()=>({mutationKey:["product-unavailable"],mutationFn:e=>(0,s.Gm)(e)}))},57575:(e,l,t)=>{"use strict";t.d(l,{A:()=>I});var n=t(75038),a=t(76430),s=t(68979),i=t(55861),r=t(75861),o=t(29028),c=t(31837),d=t(65851),u=t(33923),m=t(25395),p=t(42681),h=t(7292),x=t(62367),_=t(97893);t(65972);let g=e=>{let{description:l}=e;return l?(0,n.jsx)("div",{className:"border-bottom-dashed mb-3 pb-2",children:(0,n.jsx)("div",{className:"ql-editor text-html",dangerouslySetInnerHTML:{__html:l}})}):null},v=e=>{let{terms:l}=e,{t}=(0,s.Bd)("common");return l?(0,n.jsx)(d.O,{clamp:6,text:l,isHtml:!0,action_position:"center",className:"content-seo promo-terms mb-3 text-sm font-medium !text-shade-700",spanClassName:"text-medium-purple text-xs font-bold flex items-center gap-1",textShowMore:t("see_more"),textShowLess:t("see_less"),withChevron:!0}):null},f=e=>{let{category:l}=e,{t}=(0,s.Bd)("common");return(null==l?void 0:l.length)?(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"mt-2 py-3 text-sm font-semibold text-shade-700",children:t("promo_brand_eligible")}),l.map((e,l)=>(0,n.jsxs)("div",{className:"border-top-dashed py-3",children:[(0,n.jsx)("p",{className:"mb-2 text-xs font-semibold text-shade-700",children:e.name}),(0,n.jsx)("div",{className:"flex flex-wrap gap-2",children:e.brands.map(l=>(0,n.jsx)("div",{className:"rounded-default bg-thin-blue px-1.5 py-1 text-darker-blue",children:(0,n.jsx)("p",{className:"text-xxs font-bold",children:l.name})},"".concat(e.name,"-").concat(l.brand_id)))})]},"".concat(e.name,"-").concat(l)))]}):null},b=e=>{let{shop:l}=e,{t}=(0,s.Bd)(["promo","common"]);return l&&""!==l.name?(0,n.jsxs)("div",{className:"ml-0.5 flex items-center gap-1",children:[(0,n.jsx)("p",{className:"text-[13px]",style:{lineHeight:"16px"},children:(0,n.jsx)("i",{className:"icon-store icon-shade"})}),(0,n.jsx)(m.A,{weight:"semibold",size:"medium",color:"shade700",children:"".concat(t("specialShoppingAt")," ").concat(l.name)})]}):null},j=e=>{let{promo:l}=e,{t}=(0,s.Bd)(["promo","common"]);return(null==l?void 0:l.is_lifetime)?(0,n.jsx)(m.A,{as:"p",weight:"semibold",color:"purple",children:t("availableAnytime")}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.A,{as:"p",weight:"semibold",color:"darkGrey",children:t("availableUntil")}),(0,n.jsx)(m.A,{as:"p",weight:"semibold",color:"shade700",children:"".concat((0,_.p6)(null==l?void 0:l.expired_at).format("DD MMM YYYY"))})]})},w=e=>{var l;let{promo:t}=e,{t:a}=(0,s.Bd)(["promo","common"]),i=null!=(l=null==t?void 0:t.remaining_usage)?l:0;return(null==t?void 0:t.is_unlimited_usage)||i<=0?null:(0,n.jsxs)("div",{className:"border-left flex gap-1 pl-1",children:[(0,n.jsx)(m.A,{as:"p",weight:"semibold",color:"darkGrey",children:a("usage_remaining")}),(0,n.jsx)(m.A,{as:"p",weight:"semibold",color:"shade700",children:"".concat(i,"x")})]})},y=e=>{var l;let{promo:t}=e,{t:i}=(0,s.Bd)(["promo","common"]),r=(0,a.useRef)(null),[o,c]=(0,a.useState)(!1),[d,u]=(0,a.useState)(0),p=null!=(l=null==t?void 0:t.payment_channels)?l:[];return((0,a.useEffect)(()=>{let e=r.current;if(!e)return;let l=()=>{let l=Array.from(e.children);if(0===l.length)return void u(0);let t=l[0].offsetTop;u(l.filter(e=>e.offsetTop>t).length)};l();let t=new ResizeObserver(l);return t.observe(e),()=>t.disconnect()},[p.length]),null==t?void 0:t.is_all_payment)?(0,n.jsx)("div",{className:"mb-3 mt-3",children:(0,n.jsx)("div",{className:"badge-purple inline-block px-2 py-1",children:(0,n.jsx)(m.A,{as:"p",size:"small",weight:"bold",color:"purple",children:i("all_payments")})})}):(0,n.jsxs)("div",{className:"mb-3 mt-3",children:[(0,n.jsx)("div",{ref:r,className:(0,h.cn)("promo-payment-channels",{"promo-payment-channels-collapsed":!o}),children:p.map(e=>(0,n.jsx)("div",{className:"badge-purple px-2 py-1",children:(0,n.jsx)(m.A,{as:"p",size:"small",weight:"bold",color:"purple",children:e.name})},e.id))}),d>0?(0,n.jsxs)("button",{className:"mt-1.5 flex items-center gap-0.5",onClick:()=>c(e=>!e),children:[(0,n.jsx)(m.A,{as:"p",size:"small",weight:"semibold",color:"purple",children:o?i("show_less_payments"):i("show_all_payments",{hidden:d})}),(0,n.jsx)("i",{className:(0,h.cn)("text-xs leading-none before:!text-medium-purple",o?"icon-chevron-up":"icon-chevron-down")})]}):null]})},k=e=>{let{promo:l}=e;return l?(0,n.jsx)(c._,{className:"mb-3 w-full rounded-[10px]",src:l.image||"/img/banner_detail_promo.png",width:200,height:50,alt:"img-".concat(null==l?void 0:l.name),fallbackImg:"/img/banner_detail_promo.png"}):null},N=e=>{var l;let{promo:t}=e,{t:a}=(0,s.Bd)(["promo","common"]);
1return t?(0,n.jsxs)("div",{className:"border-bottom-dashed mb-3 pb-2",children:[(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsxs)("div",{className:"border-right flex gap-1 pr-1",children:[(0,n.jsx)(m.A,{as:"p",weight:"semibold",color:"darkGrey",children:a("minShoping")}),(0,n.jsx)(m.A,{as:"p",weight:"semibold",color:"shade700",children:"Rp".concat((0,x.zQ)(null!=(l=t.min_transaction)?l:0))})]}),(0,n.jsx)("div",{className:"flex gap-1 px-1",children:(0,n.jsx)(j,{promo:t})}),(0,n.jsx)(w,{promo:t})]}),(0,n.jsx)(C,{promo:t})]}):null},A=e=>{var l,t,a;let{promo:i}=e,{t:r}=(0,s.Bd)(["promo","common"]);if(!i)return null;let o=i.is_cashback?"":"Rp",c=null!=(a=null==(l=i.discount)?void 0:l.max)?a:0,d=[r(i.is_cashback?"cashback":"discount",{ns:"common"}),"percentage"===i.discount.type.toLowerCase()?"".concat(null==(t=i.discount)?void 0:t.amount,"%"):"".concat(o).concat((0,x.zQ)(i.discount.amount)),i.is_cashback?r("point",{ns:"common"}):"",c>0?"".concat(r("maximum",{ns:"common"}).toLowerCase()," Rp").concat((0,x.zQ)(c)):""].filter(Boolean);return(0,n.jsx)(m.A,{weight:"semibold",size:"medium",color:"shade700",children:d.join(" ")})},C=e=>{let{promo:l}=e,{t}=(0,s.Bd)(["promo","common"]),a=[];return((null==l?void 0:l.is_mobile_browser)&&a.push({icon:"/svg/icon-mobile-green.svg",alt:"icon-mobile-browser",label:t("mobile_browser_transaction_only")}),(null==l?void 0:l.is_mobile_app)&&a.push({icon:"/svg/icon-mobile-green.svg",alt:"icon-mobile-app",label:t("mobile_app_transaction_only")}),(null==l?void 0:l.is_desktop_browser)&&a.push({icon:"/svg/icon-desktop-green.svg",alt:"icon-desktop",label:t("desktop_transaction_only")}),0===a.length||3===a.length)?null:a.map(e=>(0,n.jsxs)("p",{className:"info-green mt-2 flex items-center text-xs font-semibold",children:[(0,n.jsx)(c._,{className:"mr-1",src:e.icon,alt:e.alt,width:16,height:16}),e.label]},e.alt))},S=e=>{let{promo:l}=e;return l?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g,{description:l.description}),(0,n.jsx)(v,{terms:l.terms}),(0,n.jsx)(f,{category:l.product.category})]}):null},I=()=>{let e=(0,i.jE)(),{t:l}=(0,s.Bd)(["promo","common"]),[t,a]=(0,r.fp)(o.BP),[{data:c,isLoading:d}]=(0,r.fp)(o.mN);return(0,n.jsx)(p._,{title:l("promoDetail"),opened:t,onClose:()=>{a(!1),setTimeout(()=>{e.invalidateQueries({queryKey:["detail-promo"],refetchType:"none"})},100)},size:"large",children:d?(0,n.jsx)(u.A,{}):(0,n.jsxs)("div",{className:"p-4 pt-0",children:[(0,n.jsx)(k,{promo:c}),(0,n.jsx)(m.A,{weight:"semibold",color:"shade700",className:"mb-1",children:null==c?void 0:c.name}),(null==c?void 0:c.is_new_member)?(0,n.jsx)(m.A,{as:"p",size:"small",weight:"semibold",color:"purple",className:"mb-1",children:l("for_new_user")}):null,(0,n.jsx)(y,{promo:c}),(0,n.jsx)(N,{promo:c}),(0,n.jsxs)("div",{className:"border-bottom-dashed mb-3 pb-2",children:[(0,n.jsxs)("div",{className:"mb-1 flex items-center gap-1",children:[(0,n.jsx)("p",{className:"text-base",style:{lineHeight:"16px"},children:(0,n.jsx)("i",{className:"icon-discount-outline icon-shade"})}),(0,n.jsx)(A,{promo:c})]}),(0,n.jsx)(b,{shop:null==c?void 0:c.shop})]}),(0,n.jsx)(S,{promo:c})]})})}},57619:(e,l,t)=>{"use strict";t.d(l,{A:()=>u});var n=t(75038),a=t(68979),s=t(73423),i=t(7292),r=t(25395),o=t(60587),c=t(12586),d=t.n(c);function u(e){let{children:l,className:t="",isValid:c=!0,applied:u,withStyle:m,onSelectOtherPromo:p}=e,{t:h}=(0,a.Bd)("promo"),{isLoggedin:x}=(0,s.A)();return(0,n.jsxs)("div",{className:(0,i.cn)("rounded-xl border-[#7750f8]",{"border-[#CEECD1]":u&&c,"border-[#FF3333]":!c,"border-[1px]":m}),children:[(0,n.jsx)("div",{className:(0,i.cn)(t,"relative bg-cover p-4 py-3",{"bg-[url('/img/promo-background-error.png')]":!c,"bg-[url('/img/promo-background.png')]":!u&&c,"bg-[url('/img/promo-background-applied.png')]":u&&c,["rounded-t-[11px] ".concat(d().promoCard)]:m}),children:l}),m?(0,n.jsxs)("div",{className:"flex items-start justify-center gap-1.5 py-3.5",children:[(0,n.jsx)(o.A,{}),(0,n.jsxs)(r.A,{className:"flex cursor-pointer items-center",color:"purple",size:"small",weight:"semibold",onClick:p,children:[h(x?"choose_other_promo":"choose_other_promo_before_login"),(0,n.jsx)("span",{className:"ml-0.5 inline-flex",children:(0,n.jsx)("i",{className:"icon-chevron-right before:!text-[#7750f8]"})})]})]}):null]})}},59479:(e,l,t)=>{"use strict";t.d(l,{A:()=>n});let n=e=>new Intl.NumberFormat(["ban","id"]).format(e)},62671:(e,l,t)=>{"use strict";t.d(l,{T:()=>
1o});var n=t(75038),a=t(68979),s=t(7292),i=t(62367),r=t(31837);let o=e=>{let{className:l,cashback:t}=e,{t:o}=(0,a.Bd)();return(0,n.jsxs)("div",{className:(0,s.cn)("mt-4 flex w-full max-w-screen-sm gap-2 rounded-md p-2.5 text-white",l),style:{background:"linear-gradient(91.72deg, #7750F8 -4.92%, #02A3DC 107.97%)"},children:[(0,n.jsx)("div",{children:(0,n.jsx)(r._,{src:"/image/point-rotate.gif",alt:"point rotate",width:24,height:24})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-xs font-bold",children:(0,n.jsx)(a.x6,{t:o,i18nKey:"payment:potential_cashback_point_title",values:{total:(0,i.zQ)(t)}})}),(0,n.jsx)("p",{className:"text-xs font-medium",children:(0,n.jsx)(a.x6,{t:o,i18nKey:"payment:potential_cashback_point_desc"})})]})]})}},63390:(e,l,t)=>{"use strict";function n(e,l,t){return e<3?{locked:!1,remainingMs:0,expired:!1}:null==l?{locked:!0,remainingMs:0,expired:!1}:t<l?{locked:!0,remainingMs:l-t,expired:!1}:{locked:!1,remainingMs:0,expired:!0}}function a(e,l){let t=e+1;return t>=3?{attempts:t,cooldownUntil:l+18e4}:{attempts:t,cooldownUntil:void 0}}t.d(l,{Uk:()=>n,uU:()=>a})},65851:(e,l,t)=>{"use strict";t.d(l,{O:()=>r});var n=t(75038),a=t(76430),s=t(68979),i=t(7292);let r=e=>{let{className:l="",spanClassName:t="!text-medium-purple",text:r="",clamp:o,isHtml:c,action_position:d="start",textShowMore:u,textShowLess:m,withChevron:p=!1}=e,h=(0,a.useRef)(null),[x,_]=(0,a.useState)(!1),[g,v]=(0,a.useState)(!0),[f,b]=(0,a.useState)(!0),{t:j}=(0,s.Bd)("common"),w={1:"line-clamp-1",2:"line-clamp-2",3:"line-clamp-3",4:"line-clamp-4",5:"line-clamp-5",6:"line-clamp-6",8:"line-clamp-8",10:"line-clamp-10",15:"line-clamp-15"};return((0,a.useEffect)(()=>{_(!0)},[]),(0,a.useEffect)(()=>{var e,l,t,n;(null==(e=h.current)?void 0:e.scrollHeight)&&(null==(l=h.current)?void 0:l.clientHeight)&&((null==(t=h.current)?void 0:t.scrollHeight)>(null==(n=h.current)?void 0:n.clientHeight)?(v(!0),b(!0)):v(!1))},[r]),r&&""!==r)?(0,n.jsxs)(n.Fragment,{children:[c?(0,n.jsx)("div",{ref:h,className:"".concat(l," ").concat(f?w[o]:""),dangerouslySetInnerHTML:{__html:r}}):(0,n.jsx)("p",{ref:h,className:"".concat(l," ").concat(f?w[o]:""),children:r}),x&&g?(0,n.jsx)("div",{className:"text-".concat(d),children:(0,n.jsx)("button",{className:"leading-none",onClick:()=>{b(!f)},children:(0,n.jsxs)("span",{className:"".concat(t),children:[f?null!=u?u:j("read_more"):null!=m?m:j("read_less"),p?(0,n.jsx)("i",{className:(0,i.cn)(["mt-0.5 before:!font-bold before:!text-medium-purple",{"icon-chevron-down":f,"icon-chevron-up":!f}])}):null]})})}):null]}):null}},65972:()=>{},67441:(e,l,t)=>{"use strict";t.d(l,{q:()=>r});var n=t(75038),a=t(68979),s=t(62367),i=t(25395);let r=e=>{let{fee:l,is_instant:t,is_kilat:r,hideAdminInfo:o=!1}=e,{t:c}=(0,a.Bd)("payment"),d="";t&&r?d=c(o?"feature_kilat_instant_no_admin":"feature_kilat_instant"):t?d=c("instant"):r&&(d=c("kilat_process"));let u=l>0&&""!==d;return o&&!u?null:(0,n.jsx)(i.A,{color:"shade700",weight:"semibold",size:"small",children:u?(0,n.jsx)(a.x6,{t:c,i18nKey:o?"payment_selected_info_no_admin":"payment_selected_info",ns:"payment",values:{fee:(0,s.zQ)(l),feature:d},components:[(0,n.jsx)(i.A,{as:"span",size:"small"},1)]}):c("payment_selected_admin_info")})}},67555:(e,l,t)=>{"use strict";t.d(l,{A4:()=>c,Em:()=>s,VB:()=>o,Xi:()=>u,f_:()=>p,iO:()=>m,me:()=>d,nU:()=>h,oX:()=>r,wJ:()=>i,x0:()=>x});var n=t(77395),a=t(68764);let s=(0,n.tx)({show:!1}),i=(0,n.tx)(null),r=(0,n.tx)({show:!1,qrcode:""});(0,n.tx)(null);let o=(0,n.tx)(!1),c=(0,n.tx)({status:!1,status_code:""}),d=(0,n.tx)(null),u=(0,n.tx)(!1),m=(0,n.tx)(!1),p=(0,n.tx)(!1),h=(0,n.tx)(!1),x=(0,a.vy)(()=>({mutationKey:["download-qrcode-mutation"],mutationFn:async e=>{let{url:l,filename:t}=e,n="/api/download-qrcode?url=".concat(encodeURIComponent(l)),a=await fetch(n,{method:"GET"});if(!a.ok)throw Error("Failed to download");let s=await a.arrayBuffer(),i=window.URL.createObjectURL(new Blob([s])),r=document.createElement("a");return r.href=i,r.setAttribute("download",t),document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(i),{success:!0}}}))},69264:(e,l,t)=>{"use strict";t.d(l,{AN:()=>r,Si:()=>i,pC:()=>s});var n=t(17720),a=t(22978);let s=async(e,l)=>a.A.get("".concat(n.y.GET_FLASHSALE_DETAIL).concat(e),{params:l}),i=async(e,l)=>{try{return(await a.A.post("".concat(n.y.POST_REMINDER_FLASHSALE),{variation_slug:e,flash_sale_id:l})).data}catch(e){return null}},r=async(e,l)=>{try{return(await a.A.post("".concat(n.y.POST_REMOVE_REMINDER_FLASHSALE),{variation_slug:e,flash_sale_id:l})).data}catch(e){return null}}},69720:(e,l,t)=>{"use strict";t.d(l,{A:()=>a});var n=t(75038);t(28487);let a=e=>{let{id:l="vcg-wrap",children:t,className:a="","data-testid":s="vcg-wrap"}=e;return(0,n.jsx)("div",{id:l,"data-testid":s,className:"vcg-wrap ".concat(a),children:t})}},74522:(e,l,t)=>{"use strict";t.d(l,{g:()=>a});let n=(e,l)=>!e||!l||e===l,a=(e,l)=>{if(!(null==e?void 0:e.length))return[];let t=((e,l)=>{var t,n,a,s;if((null==l?void 0:l.brandId)||(null==l?void 0:l.categoryId)){let t=l.brandId?null==(a=e.find(e=>e.brand_id===l.brandId&&void 0!==e.category_id))?void 0:a.category_id:void 0;return{brandId:l.brandId,categoryId:null!=(s=l.categoryId)?s:t}}return{brandId:null==(t=e.find(e=>e.brand_id))?void 0:t.brand_id,categoryId:null==(n=e.find(e=>e.category_id))?void 0:n.category_id}})(e,l);return e.filter(e=>n(e.brand_id,t.brandId)&&n(e.category_id,t.categoryId))}},75995:()=>{},76935:(e,l,t)=>{"use strict";t.d(l,{J:()=>c,JF:()=>i,QP:()=>d,RL:()=>r,_L:()=>o});var n=t(77395),a=t(68764),s=t(4257);let i=(0,n.tx)(!1),r=(0,n.tx)(!1),o=(0,a.qA)(()=>({queryKey:["deeplink-query"],queryFn:s.BR,select:e=>{if(null==e?void 0:e.data){let l=e.data[0].value;if("true"==l)return!0;
1if("false"==l)return!1}}})),c=(0,a.vy)(()=>({mutationKey:["post-check-game-id-mutation"],mutationFn:e=>(0,s.kk)(e)})),d=(0,a.qA)(()=>({queryKey:["guest-status-feature-query"],queryFn:s.Po,select:e=>{if((null==e?void 0:e.data.data)&&"true"===e.data.data[0].value)return!0;return!1}}))},80261:(e,l,t)=>{"use strict";t.d(l,{F:()=>i});var n=t(75038),a=t(76430),s=t(49007);let i=e=>{let{brand_id:l}=e,[t,i]=(0,a.useState)(""),[r,o]=(0,a.useState)(!1),[c,d]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{l&&!c&&(d(!0),(0,s.h5)(l).then(e=>{var l;if(null==e||null==(l=e.data)?void 0:l.data){let l=e.data.data.information||"";i(l),o(!!l)}else i(""),o(!1)}).catch(()=>{i(""),o(!1)}).finally(()=>{d(!1)}))},[l]),r)?(0,n.jsxs)("div",{className:"mb-3 mt-2 flex h-full items-start gap-2.5 rounded-default bg-[#CEEAFF] px-4 py-2.5",children:[(0,n.jsx)("i",{className:"icon-info-circle text-[15px] before:!text-darker-blue"}),(0,n.jsx)("p",{className:"text-xs font-medium text-darker-blue",children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:t}})})]}):null}},80467:(e,l,t)=>{"use strict";t.d(l,{B:()=>h});var n=t(75038),a=t(76430),s=t(68979),i=t(75861),r=t(83966),o=t(92803),c=t(40088),d=t(48181),u=t(42814),m=t(25395),p=t(42681);let h=()=>{var e,l,t,h;let{t:x}=(0,s.Bd)(["payment","common"]),[_,g]=(0,a.useState)(""),v=(0,i.md)(o.N),f=(0,i.md)(d.iw),[b,j]=(0,i.fp)(c.Mh),w=(0,i.Xr)(d.BU),y=(0,i.Xr)(r.IE),k=async()=>{if(_.length){var e;let l=null==f||null==(e=f.form)?void 0:e.key;null==b||b.data(l,_)}};return(0,n.jsx)(p._,{title:null!=(h=null==f||null==(e=f.form)?void 0:e.label)?h:"",opened:b.show&&"modalPaymentText"===b.name,onConfirmText:x("next",{ns:"common"}),onCancelText:x("back",{ns:"common"}),onClose:()=>{w(!1),y({name:"",status:!1,desc:""}),j({name:"",show:!1,data:null})},onConfirm:k,onConfirmLoading:v,onConfirmDisabled:!_.length||v,onCancelDisabled:v,withPrompt:!0,children:(0,n.jsxs)("div",{className:"px-4",children:[(0,n.jsx)(m.A,{size:"small",weight:"semibold",color:"darkGrey",children:null==f||null==(l=f.form)?void 0:l.label}),(0,n.jsx)(u.A,{type:"text",className:"vcg-account-input",onChange:e=>g(e),placeholder:null==f||null==(t=f.form)?void 0:t.placeholder,value:_}),(0,n.jsx)(m.A,{size:"small",className:"flex",color:"shadeGray",children:x("payment_text_agree")})]})})}},87435:(e,l,t)=>{"use strict";t.d(l,{b:()=>n});let n=[{code:"BR",name:"Brazil"},{code:"CA",name:"Canada"},{code:"DE",name:"Germany"},{code:"GB",name:"United Kingdom"},{code:"ID",name:"Indonesia"},{code:"IN",name:"India"},{code:"KH",name:"Cambodia"},{code:"MX",name:"Mexico"},{code:"MY",name:"Malaysia"},{code:"PH",name:"Philippines"},{code:"RU",name:"Russia"},{code:"SA",name:"Saudi Arabia"},{code:"SG",name:"Singapore"},{code:"TH",name:"Thailand"},{code:"TR",name:"Turkey"},{code:"US",name:"United States"},{code:"VN",name:"Vietnam"},{code:"EU",name:"Europe"},{code:"TW",name:"Taiwan"},{code:"KR",name:"South Korea"},{code:"HK",name:"Hong Kong"},{code:"LA",name:"Laos"},{code:"MM",name:"Myanmar"},{code:"CN",name:"China"},{code:"JP",name:"Japan"},{code:"BD",name:"Bangladesh"},{code:"PK",name:"Pakistan"},{code:"LK",name:"Sri Lanka"},{code:"AE",name:"United Arab Emirates"},{code:"QA",name:"Qatar"},{code:"FR",name:"France"},{code:"ES",name:"Spain"},{code:"IT",name:"Italy"},{code:"NO",name:"Norway"},{code:"AR",name:"Argentina"},{code:"AU",name:"Australia"},{code:"NZ",name:"New Zealand"}].map(e=>({label:e.name,value:e.code}))},89810:(e,l,t)=>{"use strict";t.d(l,{A:()=>I});var n=t(75038),a=t(76430),s=t(30684),i=t(68979),r=t(75861),o=t(47915),c=t(40088),d=t(48181),u=t(17603),m=t(29028),p=t(70467),h=t(31837),x=t(67441),_=t(25395),g=t(73423),v=t(63073),f=t(36452),b=t(45640),j=t(97581),w=t(7292),y=t(4744),k=t(6932),N=t(21958),A=t(13312),C=t(50332),S=t(59479);t(96721);let I=e=>{var l,t;let{category_name:I,channels:E,isDisableSplitPayment:P=!1,isHideFreeAdmin:T=!1,isHideErrorMessage:L=!1,withGroupBorder:R=!1,isShortcut:O=!1,lastUsedCode:D=null,selectedFeeInfo:B}=e,z=(0,s.useRouter)(),{start:F}=(0,f.t)(),{t:K}=(0,i.Bd)("payment"),{isLoggedin:U}=(0,g.A)(),M=(0,r.md)(o.Q1),q=(0,r.md)(o.ey),[G,X]=(0,r.fp)(d.HK),[Y,H]=(0,r.fp)(d.wL),V=(0,r.md)(d.iw),[Q,J]=(0,r.fp)(d.MJ),[{data:W}]=(0,r.fp)(u.PL),[{data:Z}]=(0,r.fp)(u.UD),[{data:$}]=(0,r.fp)(d.LD),ee=(0,r.Xr)(d.iw),el=(0,r.Xr)(o.ZD),et=(0,r.Xr)(u.NY),en=(0,r.Xr)(o.S_),ea=(0,r.Xr)(c.Mh),es=(0,r.Xr)(c.pi),ei=(0,r.Xr)(p.eD),er=(0,r.Xr)(d.Vl),eo=(0,r.Xr)(m.qE),ec=(0,r.Xr)(m.gf),{appliedPromo:ed,promoDetail:eu,isRealSplit:em,onResetAppliedPromo:ep}=(0,b.Z)();(0,a.useEffect)(()=>{em&&ed&&(ep({skipReadinessRecalc:!0}),eo(!1),ec(null))},[ed,em,ep,eo,ec]);let eh=(null==V?void 0:V.code)===v.E.POINT?null!=(l=null==W?void 0:W.data.point.value)?l:0:null!=(t=null==W?void 0:W.data.coin.value)?t:0,ex=e=>{var l;return Y?Y.payment_split:null==(l=(0,k.vG)(V,e,eh))?void 0:l.payment_split},e_=e=>{var l,t,n,a,s,i;if(!V||!V.is_allowed||V.is_maintenance||(0,y.BR)(V)<(null!=(t=V.min_transaction)?t:0)||(0,y.DG)(V,null!=e?e:null==Y?void 0:Y.payment_split))return!1;let r=(0,k.JV)(V.code);
1if("number"==typeof e&&r||"number"==typeof e&&!r&&(0,y.BR)(V,e)<(null!=(n=V.min_transaction)?n:0))return!1;let o=(null!=(a=null==(l=V.fee)?void 0:l.value)?a:0)-(0,A.Qj)(ed);if(V.code===v.E.SALDO&&(null!=(s=null==W?void 0:W.data.coin.value)?s:0)<o||V.code===v.E.POINT&&(null!=(i=null==W?void 0:W.data.point.value)?i:0)<o)return!1;if(ed){let e=null==eu?void 0:eu.payment_channels.map(e=>e.id);if(!(null==e?void 0:e.includes(V.id||"")))return!1}return!0},eg=(0,a.useRef)(()=>void 0),ev=e=>{var l,t,n,a,s,i,r,o,c,d,u,m,p,h,x;if((0,y.DG)(e,ex(e))||!(null==e?void 0:e.is_allowed)||(0,y.BR)(e)<(null!=(a=e.min_transaction)?a:0))return;if((null==e?void 0:e.code)===v.E.SALDO&&!U||(null==e?void 0:e.code)===v.E.POINT&&!U)return void ei(!0);if(((null==e?void 0:e.code)===v.E.SALDO||(null==e?void 0:e.code)===v.E.POINT)&&!(null==W?void 0:W.data.coin.is_active))return void F({onSuccess:()=>eg.current(e)});if(Y&&(0,y.BR)(e,null!=(s=Y.payment_split)?s:0)<(null!=(i=e.min_transaction)?i:0))return;let _=(0,k.vG)(V,e,eh);ep({skipReadinessRecalc:!0}),eo(!1),ec(null),_&&(H(_),localStorage.setItem("paySelectedSplit",JSON.stringify(_))),ee(e);let g=ef(e);if(localStorage.setItem("gercepPayment",JSON.stringify(e)),sessionStorage.setItem("gercepPaymentList",JSON.stringify(null==g?void 0:g.newData)),(null==e||null==(l=e.type)?void 0:l.toLowerCase())===v.E.PAYLATER.toLowerCase()&&!(null==W?void 0:W.data.coin.paylater_status)){z.push("/paylater-registration"),ee(null);let l=ef(e,!0);X(null==l?void 0:l.newData),null!==Q&&(null==Q||null==(r=Q.channels)?void 0:r.length)>0&&J({...Q,channels:null==l?void 0:l.newListsSaldo});return}X(null==g?void 0:g.newData),null!==Q&&(null==Q||null==(t=Q.channels)?void 0:t.length)>0&&J({...Q,channels:null==g?void 0:g.newListsSaldo}),q||(null!==Q&&(null==Q||null==(o=Q.channels)?void 0:o.length)>0&&sessionStorage.setItem("gercepSaldo",JSON.stringify({...Q,channels:null==g?void 0:g.newListsSaldo})),(null==e||null==(c=e.type)?void 0:c.toLowerCase())===v.E.PAYLATER.toLowerCase()&&eb(e));let f=(null!=(d=null==(n=e.fee)?void 0:n.value)?d:0)-(0,A.Qj)(ed),b=null==eu?void 0:eu.payment_channels.map(e=>e.id),j=(null==b?void 0:b.includes((null==e?void 0:e.id)||""))||!1,w=0;e.code===v.E.SALDO?w=null!=(u=null==W?void 0:W.data.coin.value)?u:0:e.code===v.E.POINT&&(w=null!=(m=null==W?void 0:W.data.point.value)?m:0),Y&&(e.code===v.E.SALDO||e.code===v.E.POINT)&&w>=f&&(H(null),localStorage.removeItem("paySelectedSplit")),e.code===v.E.SALDO&&(null!=(p=null==W?void 0:W.data.coin.value)?p:0)<f||e.code===v.E.POINT&&(null!=(h=null==W?void 0:W.data.point.value)?h:0)<f||(null==e?void 0:e.name)==="DANA"&&e.need_binding&&(null==$?void 0:$.is_binded)&&(null!=(x=null==$?void 0:$.amount)?x:0)<f?(et(!0),en(!1)):(et(!1),en(!ed||j)),ej()};eg.current=ev;let ef=(e,l)=>{var t;let n=[],a=[],s=[];return null==G||G.map(t=>{var s;null==t||null==(s=t.channels)||s.map(t=>{var n;if((null==e||null==(n=e.type)?void 0:n.toLowerCase())===v.E.PAYLATER.toLowerCase()&&l)return void a.push({...t,selected:!1});t.id===e.id?a.push({...t,selected:!0}):a.push({...t,selected:!1})}),n.push({...t,channels:a}),a=[]}),null==Q||null==(t=Q.channels)||t.map(l=>{l.id===e.id?s.push({...l,selected:!0}):s.push({...l,selected:!1})}),{newData:n,newListsSaldo:s}},eb=async e=>{var l,t;let n={type:"w",mode:"desktop",payment:{method_id:e.id},products:[{id:null!=(l=null==q?void 0:q.id)?l:"",qty:1,forms:M}]},a=await (0,j.YB)(n);(null==a?void 0:a.code)===200&&el(null==(t=a.data)?void 0:t.token)},ej=()=>{ea({name:"",show:!1,data:null}),es(null)},ew=e=>{var l,t,n,a,s,i,r;ep({skipReadinessRecalc:!0}),eo(!1),ec(null);let o=null!=(n=null==(l=e.fee)?void 0:l.totalPrice)?n:0;if((e.code===v.E.SALDO?null!=(a=null==W?void 0:W.data.coin.value)?a:0:e.code===v.E.POINT&&null!=(s=null==W?void 0:W.data.point.value)?s:0)>=o){H(null),localStorage.removeItem("paySelectedSplit"),en(!0);return}let c=0;switch(e.code){case v.E.SALDO:c=null!=(i=null==W?void 0:W.data.coin.value)?i:0,H({...e,payment_split:c}),localStorage.setItem("paySelectedSplit",JSON.stringify({...e,payment_split:c}));break;case v.E.POINT:c=null!=(r=null==W?void 0:W.data.point.value)?r:0,H({...e,payment_split:c}),localStorage.setItem("paySelectedSplit",JSON.stringify({...e,payment_split:c}))}if(null!==Q&&(null==Q||null==(t=Q.channels)?void 0:t.length)>0){let l=ef(e);J({...Q,channels:null==l?void 0:l.newListsSaldo}),X(G)}let d=e_(c);d||(ee(null),localStorage.removeItem("gercepPayment")),et(!d),en(d)};return(0,n.jsxs)("div",{className:(0,w.cn)("gercep-item-payment",{"payment-shortcut":O}),children:[I&&""!==I?(0,n.jsx)("p",{className:"text-sm font-bold text-shade-200",children:"".concat(I.toLowerCase().includes("instant")?"Pembayaran":""," ").concat(I
1)}):null,(0,n.jsx)("div",{className:R?"rounded-2lg border border-shade-75":"",children:null==E?void 0:E.map((e,l)=>{var t,s,i,r,o,c,d,u,m,p,g,f,b,j,k,I,R,z,F,M;let q=null!=(c=null==(t=e.fee)?void 0:t.totalPrice)?c:0,X=(0,y.BR)(e,null==Y?void 0:Y.payment_split),el=(0,A.Qj)(ed),ea=V&&(V.id===e.id||V.code===e.code)?el:0,es=(0,y.DG)(e,ex(e)),ei=(null==e?void 0:e.code)===v.E.SALDO&&q-ea>(null!=(d=null==W?void 0:W.data.coin.value)?d:0)&&(null==W?void 0:W.data.coin.is_active),eo=(null==e?void 0:e.code)===v.E.POINT&&q-ea>(null!=(u=null==W?void 0:W.data.point.value)?u:0)&&(null==W?void 0:W.data.coin.is_active),ec=(null==e?void 0:e.code)===v.E.SALDO&&W&&!W.data.coin.is_active,eu=(null==e?void 0:e.code)===v.E.POINT&&W&&!W.data.coin.is_active,em=(null==e?void 0:e.code)===v.E.SALDO||(null==e?void 0:e.code)===v.E.POINT,ep=e.code.toLowerCase()===v.E.SALDO.toLowerCase()&&!(null==W?void 0:W.data.coin.value),eh=e.code.toLowerCase()===v.E.POINT.toLowerCase()&&!(null==W?void 0:W.data.point.value),eg=em&&e.is_split,ef=eg&&(ec||eu),eb=eg&&!ef,ej=Math.min((null==e?void 0:e.code)===v.E.SALDO?null!=(m=null==W?void 0:W.data.coin.value)?m:0:null!=(p=null==W?void 0:W.data.point.value)?p:0,Math.max(0,q+(null!=(g=null==(s=e.fee)?void 0:s.feature_fee)?g:0)-ea)),ey=e.selected||(null==Y?void 0:Y.id)===e.id,ek=!!V&&(V.id===e.id||V.code===e.code),eN=U&&"DANA"===e.name&&!!e.need_binding&&!(null==$?void 0:$.is_binded);return(0,n.jsxs)(a.Fragment,{children:[(0,n.jsxs)("button",{className:(0,w.cn)("payment-item flex w-full items-center justify-between",{withBorder:E.length-1!==l,active:ek,disable:ec||eu||Y&&!em&&!e.is_split||e.is_maintenance||es||ep||eh||X<(null!=(f=e.min_transaction)?f:0),"!cursor-default":eg}),onClick:()=>{if(!e.is_maintenance&&!es){if(!U)return ev(e);eg||Y&&em&&!e.is_split||(!Y||em||e.is_split)&&ev(e)}},children:[O&&(D===e.code||e.is_default)?(0,n.jsx)("span",{className:"shortcut-badge",children:D===e.code?K("last_used",{ns:"payment"}):K("recommendation",{ns:"payment"})}):null,(0,n.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,n.jsx)("div",{className:"img-wrap",children:(0,n.jsx)(h._,{src:null==e?void 0:e.icon,alt:e.name,width:30,height:30})}),(0,n.jsxs)("div",{className:"flex flex-col items-start text-start",children:[(null==e?void 0:e.code.toLowerCase())!==v.E.SALDO.toLowerCase()&&(null==e?void 0:e.code.toLowerCase())!==v.E.POINT.toLowerCase()?(0,n.jsx)(_.A,{size:"medium",weight:"bold",color:O&&ek?"purple":(null==e?void 0:e.is_allowed)&&X>=(null!=(b=e.min_transaction)?b:0)&&!es||!(null==e?void 0:e.is_allowed)&&X>=(null!=(j=e.min_transaction)?j:0)?"shade700":"lightGray",className:"".concat((X<(null!=(k=e.min_transaction)?k:0)||es)&&"lightGray"),children:e.name}):null,O&&eN?(0,n.jsx)(_.A,{size:"small",weight:"semibold",color:"darkGreen",children:K("wallet.dana.not_bound")}):null,(null==e?void 0:e.code.toLowerCase())===v.E.SALDO.toLowerCase()?(0,n.jsx)("div",{className:"flex flex-col gap-1",children:W?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(_.A,{size:"medium",weight:"semibold",color:"shade700",children:[K("use_payment_balance",{name:e.name})," ",(0,n.jsxs)(_.A,{as:"span",size:"medium",weight:"bold",color:ey?"red":"darkGreen",children:[ey?"-":"","Rp",(0,S.A)(ej)]})]}),(0,n.jsxs)(_.A,{size:"small",weight:"semibold",color:"shade200",children:[K("current_payment_balance",{name:e.name})," ",(0,n.jsxs)(_.A,{as:"span",size:"small",weight:"bold",color:"shade700",children:["Rp",(0,S.A)(W.data.coin.value)]})]})]}):(0,n.jsxs)(_.A,{size:"medium",weight:"semibold",color:"shade700",children:[e.name,(0,n.jsxs)(_.A,{as:"span",size:"small",weight:"bold",color:"purple",children:[": ",K("please_login")]})]})}):null,(null==e?void 0:e.code.toLowerCase())===v.E.POINT.toLowerCase()?(0,n.jsx)("div",{className:"flex flex-col gap-1",children:W?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(_.A,{size:"medium",weight:"semibold",color:"shade700",children:[K("use_payment_balance",{name:e.name})," ",(0,n.jsxs)(_.A,{as:"span",size:"medium",weight:"bold",color:ey?"red":"darkGreen",children:[ey?"-":"",(0,S.A)(ej)]})]}),(0,n.jsxs)(_.A,{size:"small",weight:"semibold",color:"shade200",children:[K("current_payment_balance",{name:e.name})," ",(0,n.jsx)(_.A,{as:"span",size:"small",weight:"bold",color:"shade700",children:(0,S.A)(W.data.point.value)})]})]}):(0,n.jsxs)(_.A,{size:"medium",weight:"semibold",color:"shade700",children:["Pakai ",e.name,(0,n.jsxs)(_.A,{as:"span",size:"small",weight:"bold",color:"purple",children:[": ",K("please_login")]})]})}):null,U&&(null==e?void 0:e.code.toLowerCase())===v.E.POINT.toLowerCase()&&"number"==typeof(null==Z||null==(i=Z.data)?void 0:i.daysUntilExpiry)&&Z.data.daysUntilExpiry<30&&(null==Z||null==(r=Z.data)?void 0:r.nextExpiryDate)?(0,n.jsx)(_.A,{size:"small",color:"red",children:K("point_will_expire",{date:new Date((null==Z?void 0:Z.data.nextE
1xpiryDate)||"").toLocaleDateString("id-ID",{year:"numeric",month:"short",day:"numeric"})})}):null,(null==e?void 0:e.is_allowed)?null:(0,n.jsx)(_.A,{size:"small",color:"red",children:K("payment_not_allow")}),X<(null!=(I=e.min_transaction)?I:0)?(0,n.jsx)(_.A,{size:"small",color:"red",children:"".concat(K("min_transaction")).concat((0,S.A)(null!=(R=e.min_transaction)?R:0))}):null,es?(0,n.jsx)(_.A,{size:"small",color:"red",children:K("max_transaction")}):null,Y&&!em&&!e.is_split||Y&&em&&!e.is_split?(0,n.jsx)(_.A,{size:"small",color:"red",children:K("payment_split_not_allow")}):null,(0,n.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(null==e?void 0:e.is_recommended)&&!T?(0,n.jsx)("p",{className:"rekomendasi my-0.5 w-max !text-xs",children:K("free_admin_fee")}):null,ei&&!e.is_split||eo&&!e.is_split?(0,n.jsx)(_.A,{size:"small",color:"red",children:K("not_enough_pay_title_modal")}):null,e.is_maintenance?(0,n.jsx)(_.A,{size:"small",color:"red",children:K("maintenance")}):null,(ec||eu)&&!L?(0,n.jsx)(_.A,{size:"small",color:"red",children:K("not_activated")}):null]})]}),U&&"DANA"===e.name&&e.need_binding&&(null==$?void 0:$.is_binded)?(0,n.jsxs)(_.A,{as:"span",size:"small",weight:"bold",color:"purple",children:["Rp",(0,S.A)(null!=(z=null==$?void 0:$.amount)?z:0)]}):null]}),(0,n.jsxs)("div",{className:"right-side wrap-flex ".concat(eb||ef?"!p-0":""),children:[!O&&eN?(0,n.jsx)("a",{href:"#",onClick:e=>{e.preventDefault(),er(!0)},children:(0,n.jsx)(_.A,{size:"small",color:"darkGreen",weight:"bold",children:K("bind")})}):null,eg?null:(0,n.jsx)(_.A,{size:"medium",weight:O&&ek?"bold":"semibold",color:O&&ek?"purple":"shade700",children:Y&&!em?"Rp".concat((0,S.A)((0,C.Tf)(e,null!=(F=Y.payment_split)?F:0))):"Rp".concat((0,S.A)(Math.max(0,(null!=(M=null==(o=e.fee)?void 0:o.value)?M:0)-ea)))}),ef?(0,n.jsxs)(_.A,{size:"small",weight:"semibold",color:"purple",className:"flex cursor-pointer items-center",onClick:()=>ev(e),children:["Aktivasi Sekarang",(0,n.jsx)(h._,{width:15,height:15,src:"/svg/arrow-right.svg",alt:"arrow-right"})]}):null,eb?(0,n.jsxs)("label",{className:"relative inline-flex cursor-pointer items-center",children:[(0,n.jsx)("input",{className:"peer sr-only",type:"checkbox","aria-label":"Toggle split payment","aria-labelledby":"label-".concat(e.id),checked:e.selected||(null==Y?void 0:Y.id)===e.id,disabled:es||eh||ep||e.is_maintenance||P&&(ei||eo),onChange:l=>{if(l.target.checked)ei||eo?ew(e):(localStorage.removeItem("paySelectedSplit"),H(null),ev(e));else if(Y&&Y.id!==e.id)ew(e);else{var t,n,a,s;if(!Q)return;let e=(null==V?void 0:V.code)===v.E.SALDO||(null==V?void 0:V.code)===v.E.POINT;if(J({...Q,channels:Q.channels.map(e=>({...e,selected:!1}))}),localStorage.removeItem("paySelectedSplit"),localStorage.removeItem("gercepPayment"),H(null),e){let e=(0,N.SY)(G);e?ev(e):(ee(null),et(!1),en(!1));return}let l=e_(),i=(null!=(n=null==V||null==(t=V.fee)?void 0:t.value)?n:0)-(0,A.Qj)(ed);et((null==V?void 0:V.code)===v.E.SALDO&&(null!=(a=null==W?void 0:W.data.coin.value)?a:0)<i||(null==V?void 0:V.code)===v.E.POINT&&(null!=(s=null==W?void 0:W.data.point.value)?s:0)<i),en(l)}}}),(0,n.jsx)("div",{className:"peer h-5 w-10 rounded-full bg-shade-75 after:absolute after:left-0.5 after:top-0.5 after:h-4 after:w-4 after:rounded-full after:border after:border-shade-0 after:bg-shade-0 after:transition-all after:content-[''] peer-checked:bg-medium-purple peer-checked:after:translate-x-5 peer-checked:after:border-white peer-disabled:cursor-not-allowed peer-disabled:bg-shade-100 peer-disabled:after:bg-shade-0"})]}):ef||O?null:(0,n.jsx)("div",{className:"dotted"})]})]}),O&&ek&&B?(0,n.jsx)("div",{className:"-mt-[4px] mb-[10px] flex justify-center gap-2",children:(0,n.jsx)(x.q,{fee:B.fee,is_instant:B.is_instant,is_kilat:B.is_kilat})}):null]},"".concat(e.id,"-").concat(e.code))})})]})}},91941:(e,l,t)=>{"use strict";t.d(l,{$n:()=>m,Dr:()=>c,Ri:()=>s,aD:()=>r,d1:()=>o,kb:()=>i,po:()=>d,q7:()=>u});var n=t(9441),a=t(77395);let s=(0,a.tx)("idle"),i=(0,a.tx)(""),r=(0,a.tx)("ID"),o=(0,a.tx)(""),c=(0,n.eU)(null),d=(0,a.tx)(""),u=(0,a.tx)(["","","","","",""]),m=(0,a.tx)(!1)},92803:(e,l,t)=>{"use strict";t.d(l,{N:()=>n});let n=(0,t(77395).tx)(!1)},95876:(e,l,t)=>{"use strict";t.d(l,{O:()=>r});var n=t(75038),a=t(386),s=t.n(a),i=t(49871);function r(e){let{from:l,children:t,onClick:a,...r}=e,o=(0,i.u)(),c=(0,i.r)(l);return(0,n.jsx)(s(),{href:c,prefetch:!1,onClick:e=>{null==a||a(e),e.defaultPrevented||0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||(e.preventDefault(),o({from:l}))},...r,children:t})}},96721:()=>{},97840:(e,l,t)=>{"use strict";t.d(l,{r:()=>s});var n=t(63073),a=t(4744);function s(e,l,t,s){var i;let r;return e&&!t(e,s)&&(void 0===s||((r=e).code===n.E.SALDO||r.code===n.E.POINT||!0===e.is_split)&&(0,a.BR)(e,s)>=(null!=(i=e.min_transaction)?i:0))?e:l}},98088:(e,l,t)=>{"use strict";t.d(l,{l:()=>o});var n=t(75038),a=t(31837);let s={src:"/_next/static/media/bade-verified-disable.1617b950.svg",height:55,width:48,blurWidth:0,blurHeight:0},i={src:"/_next/static/media/badge-unverified.958d238b.svg",height:55,width:49,blurWidth:0,blurHeight:0},r={src:"/_next/static/media/badge-verified.6c3d4ce1.svg",height:95,width:82,blurWidth:0,blurHeight:0},o=e=>{let{imgType:l,width:t=14,height:o=16,className:c}=e;return(0,n.jsx)(a._,{src:"verified"===l?r:"disable"===l?s:i,width:t,height:o,alt:"".concat(l," seller VCGamers"),className:c})}}}]);

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.