import{C as lt,r as c,u as Ee,P as _e,w as pt,a as ct,x as ut,E as dt,y as bt,k as je,q as E,O as Ce,b as ft,m as we,n as ht,Z as Q,c as Y,T as yt,p as H,o as vt,s as Nt,d as gt,j as e,B as R,L as xt}from"./index-BsAdyuxG.js";import{T as Dt}from"./TopNav-DcZjsLL6.js";import{C as O}from"./checkbox.esm-P3P6Kblj.js";import{D as I}from"./divider.esm-BmSKYNlG.js";import{I as N}from"./inputtext.esm-i7_YoY9X.js";import{I as T}from"./inputtextarea.esm-BPAMQmHf.js";import{F as f}from"./floatlabel.esm-CstXtEwt.js";import{u as Pt}from"./useQuery-BvnSz2O8.js";import"./keyfilter.esm-Bp4LdhxN.js";function A(r){"@babel/helpers - typeof";return A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},A(r)}function jt(r,i){if(A(r)!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var t=a.call(r,i||"default");if(A(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}function Ct(r){var i=jt(r,"string");return A(i)=="symbol"?i:i+""}function wt(r,i,a){return(i=Ct(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r}function _(){return _=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var t in a)({}).hasOwnProperty.call(a,t)&&(r[t]=a[t])}return r},_.apply(null,arguments)}function St(r){if(Array.isArray(r))return r}function kt(r,i){var a=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(a!=null){var t,o,y,v,m=[],b=!0,p=!1;try{if(y=(a=a.call(r)).next,i!==0)for(;!(b=(t=y.call(a)).done)&&(m.push(t.value),m.length!==i);b=!0);}catch(u){p=!0,o=u}finally{try{if(!b&&a.return!=null&&(v=a.return(),Object(v)!==v))return}finally{if(p)throw o}}return m}}function Se(r,i){(i==null||i>r.length)&&(i=r.length);for(var a=0,t=Array(i);a<i;a++)t[a]=r[a];return t}function Et(r,i){if(r){if(typeof r=="string")return Se(r,i);var a={}.toString.call(r).slice(8,-1);return a==="Object"&&r.constructor&&(a=r.constructor.name),a==="Map"||a==="Set"?Array.from(r):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Se(r,i):void 0}}function _t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W(r,i){return St(r)||kt(r,i)||Et(r,i)||_t()}var Vt={root:function(i){var a=i.props;return Y("p-colorpicker p-component",{"p-colorpicker-overlay":!a.inline})},input:function(i){var a=i.props;return Y("p-colorpicker-preview p-inputtext",a.inputClassName,{"p-disabled":a.disabled})},panel:function(i){var a=i.panelProps,t=i.context;return Y("p-colorpicker-panel",a.panelClassName,{"p-colorpicker-overlay-panel":!a.inline,"p-disabled":a.disabled,"p-input-filled":t&&t.inputStyle==="filled"||H.inputStyle==="filled","p-ripple-disabled":t&&t.ripple===!1||H.ripple===!1})},content:"p-colorpicker-content",hueHandle:"p-colorpicker-hue-handle",hue:"p-colorpicker-hue",colorHandle:"p-colorpicker-color-handle",color:"p-colorpicker-color",selector:"p-colorpicker-color-selector",transition:"p-connected-overlay"},Ut=`
@layer primereact {
    .p-colorpicker {
        display: inline-block;
    }
    
    .p-colorpicker-dragging {
        cursor: pointer;
    }
    
    .p-colorpicker-overlay {
        position: relative;
    }
    
    .p-colorpicker-panel {
        position: relative;
        width: 193px;
        height: 166px;
    }
    
    .p-colorpicker-overlay-panel {
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .p-colorpicker-preview {
        cursor: pointer;
    }
    
    .p-colorpicker-panel .p-colorpicker-content {
        position: relative;
    }
    
    .p-colorpicker-panel .p-colorpicker-color-selector {
        width: 150px;
        height: 150px;
        top: 8px;
        left: 8px;
        position: absolute;
    }
    
    .p-colorpicker-panel .p-colorpicker-color {
        width: 150px;
        height: 150px;
    }
    
    .p-colorpicker-panel .p-colorpicker-color-handle {
        position: absolute;
        top: 0px;
        left: 150px;
        border-radius: 100%;
        width: 10px;
        height: 10px;
        border-width: 1px;
        border-style: solid;
        margin: -5px 0 0 -5px;
        cursor: pointer;
        opacity: 0.85;
    }
    
    .p-colorpicker-panel .p-colorpicker-hue {
        width: 17px;
        height: 150px;
        top: 8px;
        left: 167px;
        position: absolute;
        opacity: 0.85;
    }
    
    .p-colorpicker-panel .p-colorpicker-hue-handle {
        position: absolute;
        top: 150px;
        left: 0px;
        width: 21px;
        margin-left: -2px;
        margin-top: -5px;
        height: 10px;
        border-width: 2px;
        border-style: solid;
        opacity: 0.85;
        cursor: pointer;
    }
    
    .p-colorpicker-panel .p-colorpicker-color {
        background: linear-gradient(to top, #000 0%, rgb(0 0 0 / 0) 100%), linear-gradient(to right, #fff 0%, rgb(255 255 255 / 0) 100%)
    }
    .p-colorpicker-panel .p-colorpicker-hue {
        background: linear-gradient(0deg, red 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red)
    }
}
`,B=lt.extend({defaultProps:{__TYPE:"ColorPicker",appendTo:null,autoFocus:!1,children:void 0,className:null,defaultColor:"ff0000",disabled:!1,format:"hex",id:null,inline:!1,inputClassName:null,inputId:null,inputRef:null,inputStyle:null,onChange:null,onHide:null,onShow:null,panelClassName:null,panelStyle:null,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,transitionOptions:null,value:null},css:{classes:Vt,styles:Ut}}),Ve=c.forwardRef(function(r,i){var a=Ee(),t=c.useContext(_e),o=r.ptm,y=r.cx,v=function(){var p=a({className:y("panel",{panelProps:r,context:t}),style:r.panelStyle,onClick:r.onClick},o("panel",{hostName:r.hostName})),u=a({classNames:y("transition"),in:r.in,timeout:{enter:120,exit:100},options:r.transitionOptions,unmountOnExit:!0,onEnter:r.onEnter,onEntered:r.onEntered,onExit:r.onExit,onExited:r.onExited},o("transition",{hostName:r.hostName}));return c.createElement(gt,_({nodeRef:i},u),c.createElement("div",_({ref:i},p),r.children))},m=v();return r.inline?m:c.createElement(vt,{element:m,appendTo:r.appendTo})});Ve.displayName="ColorPickerPanel";function ke(r,i){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),a.push.apply(a,t)}return a}function Ft(r){for(var i=1;i<arguments.length;i++){var a=arguments[i]!=null?arguments[i]:{};i%2?ke(Object(a),!0).forEach(function(t){wt(r,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):ke(Object(a)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(a,t))})}return r}var Ue=c.memo(c.forwardRef(function(r,i){var a=Ee(),t=c.useContext(_e),o=B.getProps(r,t),y=c.useState(!1),v=W(y,2),m=v[0],b=v[1],p=B.setMetaData({props:o,state:{overlayVisible:m}}),u=p.ptm,x=p.cx,S=p.isUnstyled,Fe=m&&o.closeOnEscape,J=pt("overlay-panel",Fe);ct(B.css.styles,S,{name:"colorpicker"}),ut({callback:function(){M()},when:m&&J,priority:[dt.OVERLAY_PANEL,J]});var w=c.useRef(null),k=c.useRef(null),j=c.useRef(o.inputRef),q=c.useRef(null),L=c.useRef(null),G=c.useRef(null),ee=c.useRef(null),V=c.useRef(!1),D=c.useRef(null),U=c.useRef(!1),Me=bt({target:w,overlay:k,listener:function(s,n){var d=n.valid;d&&M()},when:m}),te=W(Me,2),Oe=te[0],Ie=te[1],Te=je({type:"mousemove",listener:function(s){U.current&&K(s),V.current&&X(s)}}),re=W(Te,2),Be=re[0],se=re[1],He=je({type:"mouseup",listener:function(){U.current=V.current=!1,E.removeClass(w.current,"p-colorpicker-dragging"),se(),ie()}}),ne=W(He,2),Re=ne[0],ie=ne[1],Ae=function(s){o.inline||Nt.emit("overlay-click",{originalEvent:s,target:w.current})},qe=function(s){o.disabled||(pe(),ae(s))},ae=function(s){o.disabled||(V.current=!0,X(s),!S&&E.addClass(w.current,"p-colorpicker-dragging"))},Le=function(s){return s.pageY!==void 0?s.pageY:s.changedTouches!==void 0?s.changedTouches[0].pageY:0},X=function(s){var n=ee.current.getBoundingClientRect().top+(window.scrollY||document.documentElement.scrollTop||document.body.scrollTop||0),d=Le(s),h=Math.floor(360*(150-Math.max(0,Math.min(150,d-n)))/150);D.current=$({h,s:D.current.s,b:D.current.b}),de(),fe(),ce()},We=function(s){o.disabled||(pe(),oe(s))},oe=function(s){o.disabled||(U.current=!0,K(s),!S&&E.addClass(w.current,"p-colorpicker-dragging"),s.preventDefault())},me=function(s){U.current&&(K(s),s.preventDefault()),V.current&&(X(s),s.preventDefault())},le=function(){U.current=!1,V.current=!1,!S&&E.removeClass(w.current,"p-colorpicker-dragging"),Ye()},pe=function(){Be(),Re()},Ye=function(){se(),ie()},K=function(s){var n=q.current.getBoundingClientRect(),d=n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),h=n.left+document.body.scrollLeft,g=Math.floor(100*Math.max(0,Math.min(150,(s.pageX||s.changedTouches[0].pageX)-h))/150),P=Math.floor(100*(150-Math.max(0,Math.min(150,(s.pageY||s.changedTouches[0].pageY)-d)))/150);D.current=$({h:D.current.h,s:g,b:P}),be(),he(),ce()},ce=function(){switch(o.format){case"hex":Z(z(D.current));break;case"rgb":Z(xe(D.current));break;case"hsb":Z(D.current);break}},Ge=function(s){var n;if(s)switch(o.format){case"hex":n=Ne(s);break;case"rgb":n=ge(s);break;case"hsb":n=s;break}else n=Ne(o.defaultColor);return n},ue=function(s){D.current=Ge(s)},Z=function(s){o.onChange&&o.onChange({value:s,stopPropagation:function(){},preventDefault:function(){},target:{name:o.name,id:o.id,value:s}})},de=function(){if(q.current){var s=$({h:D.current.h,s:100,b:100});q.current.style.backgroundColor="#"+z(s)}},be=function(){L.current&&(L.current.style.left=Math.floor(150*D.current.s/100)+"px",L.current.style.top=Math.floor(150*(100-D.current.b)/100)+"px")},fe=function(){G.current&&(G.current.style.top=Math.floor(150-150*D.current.h/360)+"px")},he=function(){j.current&&(j.current.style.backgroundColor="#"+z(D.current))},ye=function(){b(!0)},M=function(){b(!1)},Xe=function(){var s=o.inline?void 0:{position:"absolute",top:"0",left:"0"};Q.set("overlay",k.current,t&&t.autoZIndex||H.autoZIndex,t&&t.zIndex.overlay||H.zIndex.overlay),E.addStyles(k.current,s),Pe()},Ke=function(){Oe(),o.onShow&&o.onShow()},Ze=function(){Ie()},$e=function(){Q.clear(k.current),o.onHide&&o.onHide()},ze=function(){ve()},ve=function(){m?M():ye()},Qe=function(s){switch(s.which){case 32:ve(),s.preventDefault();break;case 27:case 9:M();break}},$=function(s){return{h:Math.min(360,Math.max(0,s.h)),s:Math.min(100,Math.max(0,s.s)),b:Math.min(100,Math.max(0,s.b))}},Je=function(s){var n=parseInt(s.indexOf("#")>-1?s.substring(1):s,16);return{r:n>>16,g:(n&65280)>>8,b:n&255}},Ne=function(s){return ge(Je(s))},ge=function(s){var n={h:0,s:0,b:0},d=Math.min(s.r,s.g,s.b),h=Math.max(s.r,s.g,s.b),g=h-d;return n.b=h,n.s=h!==0?255*g/h:0,n.s!==0?s.r===h?n.h=(s.g-s.b)/g:s.g===h?n.h=2+(s.b-s.r)/g:n.h=4+(s.r-s.g)/g:n.h=-1,n.h=n.h*60,n.h<0&&(n.h=n.h+360),n.s=n.s*(100/255),n.b=n.b*(100/255),n},xe=function(s){var n={r:null,g:null,b:null},d=Math.round(s.h),h=Math.round(s.s*255/100),g=Math.round(s.b*255/100);if(h===0)n={r:g,g,b:g};else{var P=g,C=(255-h)*g/255,F=(P-C)*(d%60)/60;d===360&&(d=0),d<60?(n.r=P,n.b=C,n.g=C+F):d<120?(n.g=P,n.b=C,n.r=P-F):d<180?(n.g=P,n.r=C,n.b=C+F):d<240?(n.b=P,n.r=C,n.g=P-F):d<300?(n.b=P,n.g=C,n.r=C+F):d<360?(n.r=P,n.g=C,n.b=P-F):(n.r=0,n.g=0,n.b=0)}return{r:Math.round(n.r),g:Math.round(n.g),b:Math.round(n.b)}},et=function(s){var n=[s.r.toString(16),s.g.toString(16),s.b.toString(16)];for(var d in n)n[d].length===1&&(n[d]="0"+n[d]);return n.join("")},z=function(s){return et(xe(s))},De=function(){fe(),be(),he(),de()},Pe=function(){j.current&&E.alignOverlay(k.current,j.current.parentElement,o.appendTo||t&&t.appendTo||H.appendTo)};c.useImperativeHandle(i,function(){return{props:o,show:ye,hide:M,focus:function(){return E.focus(j.current)},getElement:function(){return w.current},getOverlay:function(){return k.current},getInput:function(){return j.current}}}),c.useEffect(function(){Ce.combinedRefs(j,o.inputRef)},[j,o.inputRef]),ft(function(){ue(o.value),De(),o.autoFocus&&E.focus(j.current,o.autoFocus),Pe()}),we(function(){!U.current&&!V.current&&ue(o.value)},[o.value]),we(function(){De()}),ht(function(){Q.clear(k.current)});var tt=function(){var s=a({ref:q,className:x("selector"),onMouseDown:function(g){return We(g)},onTouchStart:function(g){return oe(g)},onTouchMove:function(g){return me(g)},onTouchEnd:le},u("selector")),n=a({className:x("color")},u("color")),d=a({ref:L,className:x("colorHandle")},u("colorHandle"));return c.createElement("div",s,c.createElement("div",n,c.createElement("div",d)))},rt=function(){var s=a({className:x("hue"),onMouseDown:function(h){return qe(h)},onTouchStart:function(h){return ae(h)},onTouchMove:function(h){return me(h)},onTouchEnd:le},u("hue")),n=a({className:x("hueHandle")},u("hueHandle"));return c.createElement("div",_({ref:ee},s),c.createElement("div",_({ref:G},n)))},st=function(){var s=tt(),n=rt(),d=a({className:x("content")},u("content"));return c.createElement("div",d,s,n)},nt=function(){if(!o.inline){var s=B.getOtherProps(o),n=a(Ft({ref:j,type:"text",readOnly:!0,className:x("input"),style:o.inputStyle,id:o.inputId,tabIndex:o.tabIndex,disabled:o.disabled,onClick:ze,onKeyDown:Qe},s),u("input"));return c.createElement("input",n)}return null},it=Ce.isNotEmpty(o.tooltip),at=st(),ot=nt(),mt=a({id:o.id,ref:w,style:o.style,className:Y(o.className,x("root"))},B.getOtherProps(o),u("root"));return c.createElement(c.Fragment,null,c.createElement("div",mt,ot,c.createElement(Ve,{hostName:"ColorPicker",ref:k,appendTo:o.appendTo,inline:o.inline,disabled:o.disabled,panelStyle:o.panelStyle,panelClassName:o.panelClassName,onClick:Ae,in:o.inline||m,onEnter:Xe,onEntered:Ke,onExit:Ze,onExited:$e,transitionOptions:o.transitionOptions,ptm:u,cx:x},at)),it&&c.createElement(yt,_({target:w,content:o.tooltip,pt:u("tooltip")},o.tooltipOptions)))}));Ue.displayName="ColorPicker";function Mt({data:r,isLoading:i,handleSubmit:a}){const[t,o]=c.useState(r||{paytm:!1,paytm_merchant_id:"",paytm_upi_id:"",paytm_min_payment:0,paytm_instructions:"",cambodia:!1,cambodia_profile_id:"",cambodia_profile_key:"",cambodia_convertion_rate:0,cambodia_min_payment:0,cambodia_instructions:"",bharatpe:!1,bharatpe_merchant_id:"",bharatpe_merchant_token:"",bharatpe_qr_url:"",bharatpe_upi_id:"",bharatpe_min_payment:0,bharatpe_instructions:"",crypto:!1,crypto_api:"",crypto_min_payment:0,crypto_instructions:"",allow_money_transfer:!0,min_money_transfer:0,money_transfer_instructions:"",instructionColor:"#000000"}),y=m=>{o(b=>({...b,[m.target.name]:m.target.value}))},v=m=>{m.preventDefault();const b=new FormData(m.target),p=Object.fromEntries(b.entries());["paytm","cambodia","bharatpe","crypto","allow_money_transfer"].forEach(u=>{p[u]&&(p[u]=!0)}),a(p)};return e.jsxDEV("div",{className:"card mt-5 pt-2 pb-5 bg-white border-round-xl w-20rem md:w-22rem lg:w-24rem mx-auto shadow-2",children:[e.jsxDEV("h4",{className:"font-semibold m-1 p-1 ml-4 text-700",children:"Edit Payment Settings:"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:60,columnNumber:4},this),e.jsxDEV("form",{onSubmit:v,className:"py-3 px-4 mr-2 text-800 font-medium gap-4",children:[e.jsxDEV("div",{className:"flex justify-content-between align-items-center mb-3",children:[e.jsxDEV("label",{htmlFor:"paytm",children:"Accept Paytm Payments"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:68,columnNumber:6},this),e.jsxDEV(O,{inputId:"paytm",name:"paytm",value:t.paytm,onChange:m=>y({target:{value:m.checked,name:"paytm"}}),checked:t.paytm},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:69,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:67,columnNumber:5},this),e.jsxDEV(f,{className:"mt-5",children:[e.jsxDEV("label",{htmlFor:"paytm_merchant_id",children:"Paytm Merchant Id"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:85,columnNumber:6},this),e.jsxDEV(N,{type:"text",id:"paytm_merchant_id",name:"paytm_merchant_id",defaultValue:t.paytm_merchant_id,required:t.paytm,disabled:!t.paytm},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:86,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:84,columnNumber:5},this),e.jsxDEV(f,{className:"mt-5",children:[e.jsxDEV("label",{htmlFor:"paytm_upi_id",children:"Paytm Merchant UPI Id"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:96,columnNumber:6},this),e.jsxDEV(N,{type:"text",id:"paytm_upi_id",name:"paytm_upi_id",defaultValue:t.paytm_upi_id,required:t.paytm,disabled:!t.paytm},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:97,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:95,columnNumber:5},this),e.jsxDEV(f,{className:"mt-5",children:[e.jsxDEV("label",{htmlFor:"paytm_min_payment",children:"Minimum Payment Amount"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:107,columnNumber:6},this),e.jsxDEV(N,{type:"number",step:"0.01",id:"paytm_min_payment",name:"paytm_min_payment",defaultValue:t.paytm_min_payment,required:t.paytm,disabled:!t.paytm},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:108,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:106,columnNumber:5},this),e.jsxDEV(f,{className:"mt-5",children:[e.jsxDEV("label",{htmlFor:"paytm_instructions",children:"Paytm Payment Instructions"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:120,columnNumber:6},this),e.jsxDEV(T,{id:"paytm_instructions",placeholder:"Minimum Payment: 10 rs, Maximum Payment: 1000 rs, Duration: 30-40 Minutes",name:"paytm_instructions",style:{width:"17.25rem"},defaultValue:t.paytm_instructions,required:t.paytm,disabled:!t.paytm,rows:3,"aria-describedby":"paytm-instructions-help"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:121,columnNumber:6},this),e.jsxDEV("small",{id:"paytm-instructions-help",className:"text-xs text-600",children:"Paytm Instructions Separated By Commas(,) Will Be As Bullet Points In Payment Page When User Selects Paytm Payments Option"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:132,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:119,columnNumber:5},this),e.jsxDEV(I,{},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:138,columnNumber:5},this),e.jsxDEV("div",{className:"flex justify-content-between align-items-center mb-3",children:[e.jsxDEV("label",{htmlFor:"cambodia",children:"Accept Cambodia Payments"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:142,columnNumber:6},this),e.jsxDEV(O,{inputId:"cambodia",name:"cambodia",value:t.cambodia,onChange:m=>y({target:{value:m.checked,name:"cambodia"}}),checked:t.cambodia},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:143,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:141,columnNumber:5},this),e.jsxDEV(f,{className:"mt-5",children:[e.jsxDEV("label",{htmlFor:"cambodia_profile_id",children:"Cambodia Profile ID"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:159,columnNumber:6},this),e.jsxDEV(N,{type:"text",id:"cambodia_profile_id",name:"cambodia_profile_id",defaultValue:t.cambodia_profile_id,required:t.cambodia,disabled:!t.cambodia},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:160,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:158,columnNumber:5},this),e.jsxDEV(f,{className:"mt-5",children:[e.jsxDEV("label",{htmlFor:"cambodia_profile_key",children:"Cambodia Profile Key"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:170,columnNumber:6},this),e.jsxDEV(N,{type:"text",id:"cambodia_profile_key",name:"cambodia_profile_key",defaultValue:t.cambodia_profile_key,required:t.cambodia,disabled:!t.cambodia},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:171,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:169,columnNumber:5},this),e.jsxDEV(f,{className:"mt-5",children:[e.jsxDEV("label",{htmlFor:"cambodia_convertion_rate",children:"Cambodia Dollar To Rupee Convertion Rate"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:182,columnNumber:6},this),e.jsxDEV(N,{type:"number",step:"0.01",id:"cambodia_convertion_rate",name:"cambodia_convertion_rate",placeholder:"80",defaultValue:t.cambodia_convertion_rate,required:t.cambodia,disabled:!t.cambodia},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:185,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:181,columnNumber:5},this),e.jsxDEV(f,{className:"mt-5",children:[e.jsxDEV("label",{htmlFor:"cambodia_min_payment",children:"Minimum Payment Amount"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:198,columnNumber:6},this),e.jsxDEV(N,{type:"number",step:"0.01",id:"cambodia_min_payment",name:"cambodia_min_payment",defaultValue:t.cambodia_min_payment,required:t.cambodia,disabled:!t.cambodia},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:199,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:197,columnNumber:5},this),e.jsxDEV(f,{className:"mt-5",children:[e.jsxDEV("label",{htmlFor:"cambodia_instructions",children:"Cambodia Payment Instructions"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:211,columnNumber:6},this),e.jsxDEV(T,{id:"cambodia_instructions",placeholder:"Minimum Payment: 10 dollar, Maximum Payment: 1000 dollar, Duration: 30-40 Minutes",name:"cambodia_instructions",style:{width:"17.25rem"},defaultValue:t.cambodia_instructions,required:t.cambodia,disabled:!t.cambodia,rows:3,"aria-describedby":"cambodia-instructions-help"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:214,columnNumber:6},this),e.jsxDEV("small",{id:"cambodia-instructions-help",className:"text-xs text-600",children:"Cambodia Instructions Separated By Commas(,) Will Be As Bullet Points In Payment Page When User Selects Cambodia Payments Option"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:225,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:210,columnNumber:5},this),e.jsxDEV(I,{},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:231,columnNumber:5},this),e.jsxDEV("div",{className:"flex justify-content-between align-items-center mb-3",children:[e.jsxDEV("label",{htmlFor:"bharatpe",children:"Accept Bharatpe UPI Payments"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:233,columnNumber:6},this),e.jsxDEV(O,{inputId:"bharatpe",name:"bharatpe",value:t.bharatpe,onChange:m=>y({target:{value:m.checked,name:"bharatpe"}}),checked:t.bharatpe},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:234,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:232,columnNumber:5},this),e.jsxDEV(f,{className:"mt-5",children:[e.jsxDEV("label",{htmlFor:"bharatpe_merchant_id",children:"Bharatpe Merchant Id"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:250,columnNumber:6},this),e.jsxDEV(N,{type:"text",id:"bharatpe_merchant_id",name:"bharatpe_merchant_id",defaultValue:t.bharatpe_merchant_id,required:t.bharatpe,disabled:!t.bharatpe},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:251,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:249,columnNumber:5},this),e.jsxDEV(f,{className:"mt-5",children:[e.jsxDEV("label",{htmlFor:"bharatpe_merchant_token",children:"Bharatpe Merchant Token"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:261,columnNumber:6},this),e.jsxDEV(N,{type:"text",id:"bharatpe_merchant_token",name:"bharatpe_merchant_token",defaultValue:t.bharatpe_merchant_token,required:t.bharatpe,disabled:!t.bharatpe},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:264,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:260,columnNumber:5},this),e.jsxDEV(f,{className:"mt-5",children:[e.jsxDEV("label",{htmlFor:"bharatpe_qr_url",children:"Bharatpe QRCode URL"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:274,columnNumber:6},this),e.jsxDEV(N,{type:"text",id:"bharatpe_qr_url",name:"bharatpe_qr_url",defaultValue:t.bharatpe_qr_url,required:t.bharatpe,disabled:!t.bharatpe},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:275,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:273,columnNumber:5},this),e.jsxDEV(f,{className:"mt-5",children:[e.jsxDEV("label",{htmlFor:"bharatpe_upi_id",children:"Bharatpe UPI Id"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:285,columnNumber:6},this),e.jsxDEV(N,{type:"text",id:"bharatpe_upi_id",name:"bharatpe_upi_id",defaultValue:t.bharatpe_upi_id,required:t.bharatpe,disabled:!t.bharatpe},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:286,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:284,columnNumber:5},this),e.jsxDEV(f,{className:"mt-5",children:[e.jsxDEV("label",{htmlFor:"bharatpe_min_payment",children:"Minimum Payment Amount"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:296,columnNumber:6},this),e.jsxDEV(N,{type:"number",step:"0.01",id:"bharatpe_min_payment",name:"bharatpe_min_payment",defaultValue:t.bharatpe_min_payment,required:t.bharatpe,disabled:!t.bharatpe},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:297,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:295,columnNumber:5},this),e.jsxDEV(f,{className:"mt-5",children:[e.jsxDEV("label",{htmlFor:"bharatpe_upi_id",children:"Bharatpe Payment Instructions"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:309,columnNumber:6},this),e.jsxDEV(T,{id:"bharatpe_instructions",placeholder:"Minimum Payment: 10 rs, Maximum Payment: 1000 rs, Duration: Instant",name:"bharatpe_instructions",style:{width:"17.25rem"},defaultValue:t.bharatpe_instructions,required:t.bharatpe,disabled:!t.bharatpe,rows:3,"aria-describedby":"bharatpe-instructions-help"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:310,columnNumber:6},this),e.jsxDEV("small",{id:"bharatpe-instructions-help",className:"text-xs text-600",children:"Bharatpe Instructions Separated By Commas(,) Will Be As Bullet Points In Payment Page When User Selects Bharatpe Payment Option"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:321,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:308,columnNumber:5},this),e.jsxDEV(I,{},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:327,columnNumber:5},this),e.jsxDEV("div",{className:"flex justify-content-between align-items-center mb-3",children:[e.jsxDEV("label",{htmlFor:"crypto",children:"Accept Crypto Payments"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:329,columnNumber:6},this),e.jsxDEV(O,{inputId:"crypto",name:"crypto",value:t.crypto,onChange:m=>y({target:{value:m.checked,name:"crypto"}}),checked:t.crypto},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:330,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:328,columnNumber:5},this),e.jsxDEV(f,{className:"mt-5",children:[e.jsxDEV("label",{htmlFor:"crypto_api",children:"Crypto API Key"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:346,columnNumber:6},this),e.jsxDEV(N,{type:"text",id:"crypto_api",name:"crypto_api",defaultValue:t.crypto_api,required:t.crypto,disabled:!t.crypto},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:347,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:345,columnNumber:5},this),e.jsxDEV(f,{className:"mt-5",children:[e.jsxDEV("label",{htmlFor:"crypto_min_payment",children:"Minimum Payment Amount"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:357,columnNumber:6},this),e.jsxDEV(N,{type:"number",step:"0.01",id:"crypto_min_payment",name:"crypto_min_payment",defaultValue:t.crypto_min_payment,required:t.crypto,disabled:!t.crypto},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:358,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:356,columnNumber:5},this),e.jsxDEV(f,{className:"mt-5",children:[e.jsxDEV("label",{htmlFor:"crypto_instructions",children:"Crypto Payment Instructions"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:369,columnNumber:6},this),e.jsxDEV(T,{id:"crypto_instructions",placeholder:"Minimum Payment: 10 rs, Maximum Payment: 1000 rs, Duration: 30-40 Minutes",name:"crypto_instructions",style:{width:"17.25rem"},defaultValue:t.crypto_instructions,required:t.crypto,disabled:!t.crypto,rows:3,"aria-describedby":"crypto-instructions-help"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:372,columnNumber:6},this),e.jsxDEV("small",{id:"crypto-instructions-help",className:"text-xs text-600",children:"Crypto Instructions Separated By Commas(,) Will Be As Bullet Points In Payment Page When User Selects Crypto Payments Option"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:383,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:368,columnNumber:5},this),e.jsxDEV(I,{},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:389,columnNumber:5},this),e.jsxDEV("div",{className:"flex justify-content-between align-items-center mb-3",children:[e.jsxDEV("label",{htmlFor:"allow_money_transfer",children:"Allow P2P Money Transfer"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:392,columnNumber:6},this),e.jsxDEV(O,{inputId:"allow_money_transfer",name:"allow_money_transfer",value:t.allow_money_transfer,onChange:m=>y({target:{value:m.checked,name:"allow_money_transfer"}}),checked:t.allow_money_transfer},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:393,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:391,columnNumber:5},this),e.jsxDEV(f,{className:"mt-5",children:[e.jsxDEV("label",{htmlFor:"min_money_transfer,",children:"Minimum P2P Transfer Amount"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:409,columnNumber:6},this),e.jsxDEV(N,{type:"number",step:"0.01",id:"min_money_transfer",name:"min_money_transfer",defaultValue:t.min_money_transfer,required:t.allow_money_transfer,disabled:!t.allow_money_transfer},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:412,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:408,columnNumber:5},this),e.jsxDEV(f,{className:"mt-5",children:[e.jsxDEV("label",{htmlFor:"money_transfer_instructions",children:"Transfer Funds Instructions"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:423,columnNumber:6},this),e.jsxDEV(T,{id:"money_transfer_instructions",placeholder:"Minimum Payment: 10 rs, Maximum Payment: 1000 rs, Duration: Instant",name:"money_transfer_instructions",style:{width:"17.25rem"},defaultValue:t.money_transfer_instructions,required:t.allow_money_transfer,disabled:!t.allow_money_transfer,rows:3,"aria-describedby":"transfer-funds-instructions-help"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:426,columnNumber:6},this),e.jsxDEV("small",{id:"transfer-funds-instructions-help",className:"text-xs text-600",children:"Transfer Funds Instructions Separated By Commas(,) Will Be As Bullet Points In Payment Page When User Selects Transfer Funds Option"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:437,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:422,columnNumber:5},this),e.jsxDEV(I,{},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:446,columnNumber:5},this),e.jsxDEV("div",{className:"flex flex-column align-items-center justify-content-start mb-3",children:[e.jsxDEV("label",{className:"mb-3",htmlFor:"instructionColor",children:"Customize The Text Color For Instructions For Users"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:448,columnNumber:6},this),e.jsxDEV("input",{name:"instructionColor",value:"#"+t.instructionColor,readOnly:!0,className:"hidden"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:451,columnNumber:6},this),e.jsxDEV(Ue,{name:"instructionColor",value:t.instructionColor,onChange:y,inline:!0,format:"hex"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:457,columnNumber:6},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:447,columnNumber:5},this),e.jsxDEV(R,{label:i?"Saving...":"Save",icon:i?"pi pi-spin pi-spinner":"pi pi-save",disabled:i,className:"flex mt-5 mx-auto w-6"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:466,columnNumber:5},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:63,columnNumber:4},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Form.jsx",lineNumber:59,columnNumber:3},this)}function Ot({data:r,isLoading:i,handleSubmit:a}){const[t,o]=c.useState(r!=null&&r.coupons?r.coupons:[{id:1,amount:"",credit:""}]),y=(m,b=!1)=>{if(b){const p=Math.random().toString().substring(2).slice(0,8);o(u=>[...u,{id:p,amount:"",credit:""}])}else o(p=>p.filter(u=>u.id!==m.id))},v=m=>{m.preventDefault();const b=new FormData(m.target),p=[];b.forEach((u,x)=>{if(x=="id")p.push({id:u});else{const S=p[p.length-1];S[x]=u}}),a({coupons:p})};return e.jsxDEV("div",{className:"card mt-5 pt-2 pb-5 bg-white border-round-xl w-20rem md:w-22rem lg:w-24rem mx-auto shadow-2",children:[e.jsxDEV("h4",{className:"font-semibold m-1 p-1 ml-4 text-700",children:"Edit Payment Coupons:"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Coupons.jsx",lineNumber:46,columnNumber:4},this),e.jsxDEV("p",{className:"p-2 pr-4 ml-3 text-xs text-600",children:"These Payment Coupons Will Be Automatically Applied To Paytm, UPI And Crypto Payments Done By User"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Coupons.jsx",lineNumber:49,columnNumber:4},this),e.jsxDEV("form",{onSubmit:v,className:"py-3 px-4 mr-2 text-800 font-medium gap-4",children:[e.jsxDEV("div",{className:"flex flex-column align-items-start justify-items-center gap-4",children:t.map((m,b)=>{const p={width:"6.5rem"};return e.jsxDEV("div",{className:"flex align-items-center gap-2 mt-3",children:[e.jsxDEV("input",{type:"text",name:"id",defaultValue:m.id,className:"hidden",required:!0},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Coupons.jsx",lineNumber:65,columnNumber:9},this),e.jsxDEV(f,{className:"",children:[e.jsxDEV("label",{htmlFor:"amount",children:"Amount"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Coupons.jsx",lineNumber:74,columnNumber:10},this),e.jsxDEV(N,{type:"number",step:"0.01",name:"amount",defaultValue:m.amount,style:p,required:!0},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Coupons.jsx",lineNumber:75,columnNumber:10},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Coupons.jsx",lineNumber:73,columnNumber:9},this),e.jsxDEV(f,{className:"",children:[e.jsxDEV("label",{htmlFor:"credit",children:"Extra %"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Coupons.jsx",lineNumber:86,columnNumber:10},this),e.jsxDEV(N,{type:"number",step:"0.01",name:"credit",defaultValue:m.credit,style:p,required:!0},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Coupons.jsx",lineNumber:87,columnNumber:10},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Coupons.jsx",lineNumber:85,columnNumber:9},this),e.jsxDEV(R,{type:"button",severity:b==0?"secondary":"danger",icon:b==0?"pi pi-plus":"pi pi-trash",className:"mx-auto",onClick:()=>y(m,b==0)},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Coupons.jsx",lineNumber:97,columnNumber:9},this)]},m.id,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Coupons.jsx",lineNumber:64,columnNumber:8},this)})},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Coupons.jsx",lineNumber:57,columnNumber:5},this),e.jsxDEV(R,{label:i?"Saving...":"Save",icon:i?"pi pi-spin pi-spinner":"pi pi-save",disabled:i,className:"flex mt-5 mx-auto w-6"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Coupons.jsx",lineNumber:109,columnNumber:5},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Coupons.jsx",lineNumber:53,columnNumber:4},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Coupons.jsx",lineNumber:45,columnNumber:3},this)}function It({data:r,isLoading:i,handleSubmit:a}){const[t,o]=c.useState(r!=null&&r.promocodes?r.promocodes:[{id:1,amount:"",stock:"",promocode:""}]),y=(m,b=!1)=>{if(b){const p=Math.random().toString().substring(2).slice(0,8);o(u=>[...u,{id:p,amount:"",stock:"",promocode:""}])}else o(p=>p.filter(u=>u.id!==m.id))},v=m=>{m.preventDefault();const b=new FormData(m.target),p=[];b.forEach((u,x)=>{if(x=="id")p.push({id:u});else{const S=p[p.length-1];S[x]=x=="promocode"?u.toUpperCase():u}}),a({promocodes:p})};return e.jsxDEV("div",{className:"card mt-5 pt-2 pb-5 bg-white border-round-xl w-20rem md:w-22rem lg:w-24rem mx-auto shadow-2",children:[e.jsxDEV("h4",{className:"font-semibold m-1 p-1 ml-4 text-700",children:"Add/Edit Promocodes:"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Promocodes.jsx",lineNumber:49,columnNumber:4},this),e.jsxDEV("p",{className:"p-2 pr-4 ml-3 text-xs text-600",children:"These Promocodes Can Be Used By Users To Redeem And Add Balance To Their Wallet (Your Provided Promocodes Will Be Automatically Turned Into Uppercase)"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Promocodes.jsx",lineNumber:52,columnNumber:4},this),e.jsxDEV("form",{onSubmit:v,className:"py-3 px-4 mr-2 text-800 font-medium gap-4",children:[e.jsxDEV("div",{className:"flex flex-column align-items-start justify-items-center gap-4",children:t.map((m,b)=>{const p={width:"8rem"};return e.jsxDEV("div",{className:"flex flex-wrap align-items-center gap-2 row-gap-4 mt-3",children:[e.jsxDEV("input",{type:"text",name:"id",defaultValue:m.id,className:"hidden",required:!0},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Promocodes.jsx",lineNumber:72,columnNumber:9},this),e.jsxDEV(f,{className:"",children:[e.jsxDEV("label",{htmlFor:"amount",children:"Amount"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Promocodes.jsx",lineNumber:81,columnNumber:10},this),e.jsxDEV(N,{type:"number",step:"0.01",name:"amount",defaultValue:m.amount,style:p,required:!0},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Promocodes.jsx",lineNumber:82,columnNumber:10},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Promocodes.jsx",lineNumber:80,columnNumber:9},this),e.jsxDEV(f,{className:"",children:[e.jsxDEV("label",{htmlFor:"stock",children:"Stock"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Promocodes.jsx",lineNumber:93,columnNumber:10},this),e.jsxDEV(N,{type:"number",name:"stock",defaultValue:m.stock,style:p,required:!0},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Promocodes.jsx",lineNumber:94,columnNumber:10},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Promocodes.jsx",lineNumber:92,columnNumber:9},this),e.jsxDEV(f,{className:"",children:[e.jsxDEV("label",{htmlFor:"promocode",children:"Promocode"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Promocodes.jsx",lineNumber:104,columnNumber:10},this),e.jsxDEV(N,{type:"text",name:"promocode",defaultValue:m.promocode,style:{width:"13rem"},required:!0},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Promocodes.jsx",lineNumber:105,columnNumber:10},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Promocodes.jsx",lineNumber:103,columnNumber:9},this),e.jsxDEV(R,{type:"button",severity:b==0?"secondary":"danger",icon:b==0?"pi pi-plus":"pi pi-trash",className:"mx-auto",onClick:()=>y(m,b==0)},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Promocodes.jsx",lineNumber:114,columnNumber:9},this)]},m.id,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Promocodes.jsx",lineNumber:68,columnNumber:8},this)})},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Promocodes.jsx",lineNumber:61,columnNumber:5},this),e.jsxDEV(R,{label:i?"Saving...":"Save",icon:i?"pi pi-spin pi-spinner":"pi pi-save",disabled:i,className:"flex mt-5 mx-auto w-6"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Promocodes.jsx",lineNumber:126,columnNumber:5},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Promocodes.jsx",lineNumber:57,columnNumber:4},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/Promocodes.jsx",lineNumber:48,columnNumber:3},this)}function Gt(){const{data:r,isLoading:i,refetch:a}=Pt({url:"/api/admin/payment-settings?all=true"}),t=v=>{a({url:"/api/admin/payment-settings?type=settings",type:"post",data:v,onSuccess:m=>{window.toast({type:m.status==1?"success":"error",message:m.message})},onError:m=>{window.toast({type:"error",message:"An Error Occurred While Updating Website Payment Settings. Please Try Again Later"})}})},o=v=>{a({url:"/api/admin/payment-settings?type=coupons",type:"post",data:v,onSuccess:m=>{window.toast({type:m.status==1?"success":"error",message:m.message})},onError:m=>{window.toast({type:"error",message:"An Error Occurred While Updating Payment Coupons. Please Try Again Later"})}})},y=v=>{a({url:"/api/admin/payment-settings?type=promocodes",type:"post",data:v,onSuccess:m=>{window.toast({type:m.status==1?"success":"error",message:m.message})},onError:m=>{window.toast({type:"error",message:"An Error Occurred While Updating Promocodes. Please Try Again Later"})}})};return e.jsxDEV(e.Fragment,{children:[e.jsxDEV(Dt,{href:"/admin/menu",title:"Payment Settings"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/index.jsx",lineNumber:82,columnNumber:4},this),e.jsxDEV("main",{children:!r&&i?e.jsxDEV(xt,{},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/index.jsx",lineNumber:85,columnNumber:6},this):e.jsxDEV(e.Fragment,{children:[e.jsxDEV(Mt,{data:r==null?void 0:r.data,isLoading:i,handleSubmit:t},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/index.jsx",lineNumber:88,columnNumber:7},this),e.jsxDEV(Ot,{data:r==null?void 0:r.data,isLoading:i,handleSubmit:o},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/index.jsx",lineNumber:93,columnNumber:7},this),e.jsxDEV(It,{data:r==null?void 0:r.data,isLoading:i,handleSubmit:y},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/index.jsx",lineNumber:98,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/index.jsx",lineNumber:87,columnNumber:6},this)},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/index.jsx",lineNumber:83,columnNumber:4},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/admin/pages/Payment-Settings/index.jsx",lineNumber:81,columnNumber:3},this)}export{Gt as default};
