1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5871],{92081:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/merchant/admin-tools/merchant-management/edit/[id]",function(){return t(37965)}])},39734:function(e,a,t){"use strict";t.d(a,{OL:function(){return _},_T:function(){return p},aR:function(){return u},f$:function(){return h},fY:function(){return x},le:function(){return v},xo:function(){return N},yT:function(){return y}});var r=t(20567),n=t(14932),s=t(47702),l=t(85893),o=t(67294),i=t(89532),c=t(32320),d=t(48974);let u=i.fC;i.xz;let f=i.h_,m=o.forwardRef((e,a)=>{var{className:t}=e,o=(0,s._)(e,["className"]);return(0,l.jsx)(i.aV,(0,n._)((0,r._)({className:(0,c.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t)},o),{ref:a}))});m.displayName=i.aV.displayName;let p=o.forwardRef((e,a)=>{var{className:t}=e,n=(0,s._)(e,["className"]);return(0,l.jsxs)(f,{children:[(0,l.jsx)(m,{}),(0,l.jsx)(i.VY,(0,r._)({ref:a,className:(0,c.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-slate-200 bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg dark:border-slate-800 dark:bg-slate-950",t)},n))]})});p.displayName=i.VY.displayName;let x=e=>{var{className:a}=e,t=(0,s._)(e,["className"]);return(0,l.jsx)("div",(0,r._)({className:(0,c.cn)("flex flex-col space-y-2 text-center sm:text-left",a)},t))};x.displayName="AlertDialogHeader";let N=e=>{var{className:a}=e,t=(0,s._)(e,["className"]);return(0,l.jsx)("div",(0,r._)({className:(0,c.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a)},t))};N.displayName="AlertDialogFooter";let h=o.forwardRef((e,a)=>{var{className:t}=e,n=(0,s._)(e,["className"]);return(0,l.jsx)(i.Dx,(0,r._)({ref:a,className:(0,c.cn)("text-lg font-semibold",t)},n))});h.displayName=i.Dx.displayName;let y=o.forwardRef((e,a)=>{var{className:t}=e,n=(0,s._)(e,["className"]);return(0,l.jsx)(i.dk,(0,r._)({ref:a,className:(0,c.cn)("text-sm text-slate-500 dark:text-slate-400",t)},n))});y.displayName=i.dk.displayName;let _=o.forwardRef((e,a)=>{var{className:t}=e,n=(0,s._)(e,["className"]);return(0,l.jsx)(i.aU,(0,r._)({ref:a,className:(0,c.cn)((0,d.d)(),t)},n))});_.displayName=i.aU.displayName;let v=o.forwardRef((e,a)=>{var{className:t}=e,n=(0,s._)(e,["className"]);return(0,l.jsx)(i.$j,(0,r._)({ref:a,className:(0,c.cn)((0,d.d)({variant:"outline"}),"mt-2 sm:mt-0",t)},n))});v.displayName=i.$j.displayName},51609:function(e,a,t){"use strict";t.d(a,{Ol:function(){return c},Zb:function(){return i},aY:function(){return u},ll:function(){return d}});var r=t(20567),n=t(47702),s=t(85893),l=t(67294),o=t(32320);let i=l.forwardRef((e,a)=>{var{className:t}=e,l=(0,n._)(e,["className"]);return(0,s.jsx)("div",(0,r._)({ref:a,className:(0,o.cn)("rounded-xl border border-slate-200 bg-white text-slate-950 shadow dark:border-slate-800 dark:bg-slate-950 dark:text-slate-50",t)},l))});i.displayName="Card";let c=l.forwardRef((e,a)=>{var{className:t}=e,l=(0,n._)(e,["className"]);return(0,s.jsx)("div",(0,r._)({ref:a,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",t)},l))});c.displayName="CardHeader";let d=l.forwardRef((e,a)=>{var{className:t}=e,l=(0,n._)(e,["className"]);return(0,s.jsx)("h3",(0,r._)({ref:a,className:(0,o.cn)("font-semibold leading-none tracking-tight",t)},l))});d.displayName="CardTitle",l.forwardRef((e,a)=>{var{className:t}=e,l=(0,n._)(e,["className"]);return(0,s.jsx)("p",(0,r._)({ref:a,className:(0,o.cn)("text-sm text-slate-500 dark:text-slate-400",t)},l))}).displayName="CardDescription";let u=l.forwardRef((e,a)=>{var{className:t}=e,l=(0,n._)(e,["className"]);return(0,s.jsx)("div",(0,r._)({ref:a,className:(0,o.cn)("p-6 pt-0",t)},l))});
1u.displayName="CardContent",l.forwardRef((e,a)=>{var{className:t}=e,l=(0,n._)(e,["className"]);return(0,s.jsx)("div",(0,r._)({ref:a,className:(0,o.cn)("flex items-center p-6 pt-0",t)},l))}).displayName="CardFooter"},469:function(e,a,t){"use strict";var r=t(85893),n=t(39734),s=t(67294),l=t(24697);a.Z=e=>{let{open:a,title:t,message:o,internalComponent:i,cancelable:c,onConfirm:d,onCancel:u,onClose:f,cancelText:m="Batal",confirmText:p="OK"}=e,x=(0,s.useRef)(),N=(0,l.y1)(e=>{x.current&&(x.current.disabled=!0),e()},100),h=(0,s.useMemo)(()=>o,[o]);return(0,s.useEffect)(()=>{a&&x.current&&(x.current.disabled=!1)},[a,h]),(0,r.jsx)(n.aR,{open:a,children:(0,r.jsxs)(n._T,{children:[(0,r.jsxs)(n.fY,{children:[t&&(0,r.jsx)(n.f$,{children:t}),o&&(0,r.jsx)(n.yT,{children:o})]}),i||null,(0,r.jsxs)(n.xo,{children:[c&&(0,r.jsx)(n.le,{onClick:()=>{f(),u()},children:m}),d&&(0,r.jsx)(n.OL,{ref:x,onClick:()=>N(d),children:p})]})]})})}},37399:function(e,a,t){"use strict";t.d(a,{V:function(){return n}});var r=t(67294);let n=()=>{let[e,a]=(0,r.useState)({open:!1,title:"",message:"",internalComponent:null,cancelable:!1,onConfirm:()=>{},onCancel:()=>{},onClose:()=>{},cancelText:"Batal",confirmText:"OK"});return{alert:e,setAlert:a,open:e.open,title:e.title,message:e.message,internalComponent:e.internalComponent,onConfirm:e.onConfirm,onCancel:e.onCancel,onClose:e.onClose,cancelable:e.cancelable,cancelText:e.cancelText,confirmText:e.confirmText}};a.Z=n},44976:function(e,a,t){"use strict";t.d(a,{Z:function(){return r}});let r=(0,t(31134).Z)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},37965:function(e,a,t){"use strict";t.r(a),t.d(a,{__N_SSP:function(){return m},default:function(){return p}});var r=t(20567),n=t(14932),s=t(85893),l=t(51609),o=t(85239),i=t(28727),c=t(11163),d=t(47539),u=t(37399),f=t(469),m=!0;function p(){let e=(0,c.useRouter)(),{id:a}=e.query,{data:t}=(0,o.GJ)(a),{mutateAsync:i,status:m}=(0,o.SV)(),p=(0,u.Z)(),x=async e=>new Promise((t,s)=>{p.setAlert((0,n._)((0,r._)({},p),{open:!0,title:"Ubah Merchant",message:"Apakah Anda yakin ingin mengubah merchant?",cancelable:!0,onCancel:()=>{p.setAlert((0,n._)((0,r._)({},p),{open:!1,onCancel:()=>{},onConfirm:()=>{}}))},onConfirm:async()=>{p.setAlert((0,n._)((0,r._)({},p),{open:!1,onCancel:()=>{},onConfirm:()=>{}}));try{let r=await i({id:a,data:e});console.log("res",r),t(r)}catch(e){console.log("err",e),s(e)}}}))});return(0,s.jsxs)("div",{className:"px-8",children:[(0,s.jsx)(f.Z,(0,r._)({},p)),(0,s.jsxs)(l.Zb,{className:"p-6 rounded-md border flex flex-col gap-4",children:[(0,s.jsx)("h1",{className:"text-xl font-semibold",children:"Ubah Merchant"}),(0,s.jsx)(d.Z,{onSubmit:x,type:"update",status:m,merchant:t,onCancel:()=>e.back()})]})]})}p.layout=i.Z},89532:function(e,a,t){"use strict";t.d(a,{$j:function(){return Y},Dx:function(){return z},VY:function(){return E},aU:function(){return M},aV:function(){return $},dk:function(){return S},fC:function(){return O},h_:function(){return Z},xz:function(){return V}});var r=t(67294),n=t(25360),s=t(28771),l=t(12854),o=t(36206),i=t(88426),c=t(85893),d="AlertDialog",[u,f]=(0,n.b)(d,[l.p8]),m=(0,l.p8)(),p=e=>{let{__scopeAlertDialog:a,...t}=e,r=m(a);return(0,c.jsx)(l.fC,{...r,...t,modal:!0})};p.displayName=d;var x=r.forwardRef((e,a)=>{let{__scopeAlertDialog:t,...r}=e,n=m(t);return(0,c.jsx)(l.xz,{...n,...r,ref:a})});x.displayName="AlertDialogTrigger";var N=e=>{let{__scopeAlertDialog:a,...t}=e,r=m(a);return(0,c.jsx)(l.h_,{...r,...t})};N.displayName="AlertDialogPortal";var h=r.forwardRef((e,a)=>{let{__scopeAlertDialog:t,...r}=e,n=m(t);return(0,c.jsx)(l.aV,{...n,...r,ref:a})});h.displayName="AlertDialogOverlay";var y="AlertDialogContent",[_,v]=u(y),g=(0,i.sA)("AlertDialogContent"),j=r.forwardRef((e,a)=>{let{__scopeAlertDialog:t,children:n,...i}=e,d=m(t),u=r.useRef(null),f=(0,s.e)(a,u),p=r.useRef(null);return(0,c.jsx)(l.jm,{contentName:y,titleName:b,docsSlug:"alert-dialog",children:(0,c.jsx)(_,{scope:t,cancelRef:p,children:(0,c.jsxs)(l.VY,{role:"alertdialog",...d,...i,ref:f,onOpenAutoFocus:(0,o.Mj)(i.onOpenAutoFocus,e=>{e.preventDefault(),p.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,c.jsx)(g,{children:n}),(0,c.jsx)(T,{contentRef:u})]})})})});j.displayName=y;var b="AlertDialogTitle",w=r.forwardRef((e,a)=>{let{__scopeAlertDialog:t,...r}=e,n=m(t);return(0,c.jsx)(l.Dx,{...n,...r,ref:a})});w.displayName=b;var C="AlertDialogDescription",k=r.forwardRef((e,a)=>{let{__scopeAlertDialog:t,...r}=e,n=m(t);return(0,c.jsx)(l.dk,{...n,...r,ref:a})});k.displayName=C;var R=r.forwardRef((e,a)=>{let{__scopeAlertDialog:t,...r}=e,n=m(t);return(0,c.jsx)(l.x8,{...n,...r,ref:a})});R.displayName="AlertDialogAction";var A="AlertDialogCancel",D=r.forwardRef((e,a)=>{let{__scopeAlertDialog:t,...r}=e,{cancelRef:n}=v(A,t),o=m(t),i=(0,s.e)(a,n);return(0,c.jsx)(l.x8,{...o,...r,ref:i})});D.displayName=A;var T=({contentRef:e})=>{let a=`\`${y}\` requires a description for the component to be accessible for screen reader users. 2
3You can add a description to the \`${y}\` by passing a \`${C}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 4 5Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${y}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. 6 7For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return r.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(a)},[a,e]),null},O=p,V=x,Z=N,$=h,E=j,M=R,Y=D,z=w,S=k}},function(e){e.O(0,[4114,1664,9928,7066,1386,9332,4594,4226,185,3624,4526,8727,9844,2888,9774,179],function(){return e(e.s=92081)}),_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.