PageSourceSearch

https://disabilitas.com/_next/static/chunks/app/admin/gamification/inject/page-ee0a12292fee5796.js

js disabilitas.com collected 2026-10-10 02:10:27 UTC 5,088 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1462],{10021:(e,r,t)=>{"use strict";t.d(r,{InjectCoinForm:()=>d});var s=t(95155),n=t(12115),a=t(30926);let i=(0,a.createServerReference)("406ee5c4772b2a2cea33ac0fe12664fd9882de92ce",a.callServer,void 0,a.findSourceMapURL,"injectCoins");var o=t(35299),c=t(48055);function d(){let[e,r]=(0,n.useState)(!1),[t,a]=(0,n.useState)(null);async function d(e){r(!0),a(null);try{let r=await i(e);if(r.success){a({type:"success",text:"Berhasil! Koin telah ditambahkan. Saldo pengguna sekarang: ".concat(r.newCoins," Koin.")});let e=document.getElementById("inject-form");null==e||e.reset()}}catch(e){a({type:"error",text:e.message||"Terjadi kesalahan."})}finally{r(!1)}}return(0,s.jsxs)("form",{id:"inject-form",action:d,className:"bg-card border border-border rounded-xl p-6 shadow-sm space-y-6",children:[t&&(0,s.jsx)("div",{className:"p-4 rounded-md text-sm font-medium ".concat("error"===t.type?"bg-destructive/10 text-destructive border border-destructive/20":"bg-emerald-600/10 text-emerald-600 border border-emerald-500/20"),children:t.text}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{htmlFor:"phone",className:"block text-sm font-medium mb-1",children:["Nomor WhatsApp Pengguna ",(0,s.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,s.jsx)("input",{id:"phone",name:"phone",type:"text",required:!0,placeholder:"Misal: 08123456789",className:"w-full rounded-md border border-input bg-background px-3 py-2 text-sm focus:ring-2 focus:ring-primary focus:outline-none"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Pastikan nomor ini sudah terdaftar di bot Avika."})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{htmlFor:"amount",className:"block text-sm font-medium mb-1",children:["Jumlah Koin ",(0,s.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,s.jsx)("input",{id:"amount",name:"amount",type:"number",required:!0,placeholder:"100",className:"w-full rounded-md border border-input bg-background px-3 py-2 text-sm focus:ring-2 focus:ring-primary focus:outline-none"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Bisa angka negatif (misal: -50) untuk mengurangi saldo."})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{htmlFor:"source",className:"block text-sm font-medium mb-1",children:["Keterangan / Notes ",(0,s.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,s.jsx)("textarea",{id:"source",name:"source",required:!0,rows:3,placeholder:"Misal: Pemenang Kuis Instagram Disabilitas.com Periode Agustus",className:"w-full rounded-md border border-input bg-background px-3 py-2 text-sm focus:ring-2 focus:ring-primary focus:outline-none"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Pesan ini akan tercatat di histori koin dan dikirim ke pengguna via WhatsApp."})]})]}),(0,s.jsxs)("button",{type:"submit",disabled:e,className:"w-full sm:w-auto inline-flex items-center justify-center gap-2 rounded-md bg-primary px-6 py-2.5 text-sm font-semibold text-primary-foreground hover:bg-primary/90 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed",children:[e?(0,s.jsx)(o.A,{className:"size-4 animate-spin"}):(0,s.jsx)(c.A,{className:"size-4"}),e?"Menyuntikkan Koin...":"Suntikkan Koin"]})]})}},18190:(e,r,t)=>{Promise.resolve().then(t.bind(t,10021)),Promise.resolve().then(t.t.bind(t,52619,23))},30926:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}(r,{callServer:function(){return s.callServer},createServerReference:function(){return a.createServerReference},findSourceMapURL:function(){return n.findSourceMapURL}});let s=t(41209),n=t(85153),a=t(77197)},35299:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});let s=(0,t(51668).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},48055:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});let s=(0,t(51668).A)("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]])},51668:(e,r,t)=>{"use strict";t.d(r,{A:()=>a});var s=t(12115),n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(e,r)=>{let t=(0,s.forwardRef)((t,a)=>{let{color:i="currentColor",size:o=24,strokeWidth:c=2,absoluteStrokeWidth:d,className:l="",children:u,...m}=t;return(0,s.createElement)("svg",{ref:a,...n,width:o,height:o,stroke:i,strokeWidth:d?24*Number(c)/Number(o):c,className:["lucide","lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),l].join(" "),...m},[...r.map(e=>{let[r,t]=e;return(0,s.createElement)(r,t)}),...Array.isArray(u)?u:[u]])});return t.displayName="".concat(e),t}}},e=>{e.O(0,[2619,8441,4696,7358],()=>e(e.s=18190)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.