PageSourceSearch

https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/chunks/5795-6357779f4ecd4c51.js

js paymonade.tech collected 2026-10-04 05:41:20 UTC 11,006 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5795],{12262:(e,t,l)=>{l.d(t,{A:()=>a});let a={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/ICInfoGray.b43abab4.svg",height:16,width:16,blurWidth:0,blurHeight:0}},21407:(e,t,l)=>{l.d(t,{A:()=>a});let a={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/right-black.c477523d.svg",height:20,width:20,blurWidth:0,blurHeight:0}},25863:(e,t,l)=>{l.d(t,{H:()=>h});var a=l(37876),n=l(54935),r=l(54587),s=l.n(r),i=l(14232),d=l(34846),o=l(21407),c=l(11700),u=l(92471);let h=e=>{let[t,l]=(0,i.useState)(!1),{t:r}=(0,d.Bd)(),[h,x]=(0,i.useState)(e.value||[]);(0,i.useEffect)(()=>{e.value&&x(e.value)},[e.value]),(0,i.useEffect)(()=>{let e=()=>{l(!1)};return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}},[]),(0,i.useEffect)(()=>{t||p(e.options)},[t,e.options]);let m=t=>{x(l=>{let a=[];return e.single?a=l.indexOf(t)>-1?[]:[t]:a=l.indexOf(t)>-1?l.filter(e=>e!==t):[...l,t],e.onChange&&e.onChange(a),a})},[v,p]=(0,i.useState)(e.options);return(0,i.useEffect)(()=>{p(e.options)},[e.options]),(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("div",{className:"text-sm text-primary-text ".concat(e.className),children:e.label}),(0,a.jsxs)("div",{onClick:e=>{l(e=>!e),e.stopPropagation()},className:"px-3 py-2 relative mt-1 flex cursor-pointer justify-between\n  outline-none w-full min-h-[44px] border px-3\n  bg-bg2 disabled:bg-line rounded-xl font-medium\n  text-Text-PrimaryText disabled:text-disabled hover:border-[#91E500] border-bg2 ".concat(e.className,"\n  "),children:[(0,a.jsx)("div",{className:"flex flex-1 flex-wrap gap-[2px]",children:h.map(t=>{var l;return(0,a.jsxs)("div",{className:"mr-2 bg-line p-1 flex rounded-[4px] text-small-body-sub text-Text-PrimaryText font-medium",children:[(0,a.jsx)("span",{children:null===(l=e.options.find(e=>e.value===t))||void 0===l?void 0:l.label}),(0,a.jsx)(s(),{onClick:e=>{e.stopPropagation(),m(t)},className:"ml-[10px]",src:u.A,alt:"removeSvg"})]},t)})}),(0,a.jsx)(s(),{src:n.A,alt:"ICDown"}),t?(0,a.jsxs)("div",{className:"rounded-xl absolute z-20 top-12 left-3 bg-bg1 text-Text-PrimaryText border border-line shadow-dropdown w-full mx-[-12px] max-h-64 overflow-auto py-3 ",children:[(0,a.jsx)("div",{className:"text-third text-xs px-4",children:e.tips}),(0,a.jsx)(c.A,{onChange:t=>{let l=t.target.value;p(e.options.filter(e=>e.label.toLowerCase().includes(l.toLowerCase())))},onClick:e=>e.stopPropagation(),placeholder:r("Search"),className:"mx-4 mb-1"}),v.length?v.map(t=>(0,a.jsxs)("div",{onClick:a=>{m(t.value),e.single&&l(!1),a.stopPropagation()},className:"px-4 py-2 cursor-pointer hover:text-link justify-between flex items-center",children:[(0,a.jsx)("div",{className:"".concat(h.indexOf(t.value)>-1?"text-primary font-semibold":""),children:t.label}),h.indexOf(t.value)>-1?(0,a.jsx)(s(),{src:o.A,alt:"rightBlack"}):(0,a.jsx)(a.Fragment,{})]},t.value)):(0,a.jsx)("div",{className:"px-4 py-2 cursor-not-allowed",children:r("noResult")})]}):(0,a.jsx)(a.Fragment,{})]})]})}},31780:(e,t,l)=>{l.d(t,{A:()=>n});var a=l(37876);l(14232);let n=e=>{let{className:t="",...l}=e;return(0,a.jsx)("div",{className:"".concat(t),children:(0,a.jsx)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full fill-current origin-center",...l,children:(0,a.jsx)("path",{d:"M11.06 11.6374C10.5704 12.4207 9.42956 12.4207 8.93998 11.6374L7.02862 8.57918C6.50827 7.74662 7.10682 6.66668 8.08862 6.66668L11.9113 6.66668C12.8931 6.66668 13.4917 7.74662 12.9713 8.57918L11.06 11.6374Z"})})})}},40486:(e,t,l)=>{l.d(t,{A:()=>a});let a={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/ICDownGray.af8efaa0.svg",height:16,width:16,blurWidth:0,blurHeight:0}},42146:(e,t,l)=>{l.d(t,{A:()=>a});let a={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/nodata.3c7849e6.svg",height:64,width:64,blurWidth:0,blurHeight:0}},54935:(e,t,l)=>{l.d(t,{A:()=>a});let a={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/ICDown.cfb1d9e8.svg",height:20,width:20,blurWidth:0,blurHeight:0}},63434:(e,t,l)=>{l.d(t,{A:()=>v});var a=l(37876),n=l(14232),r=l(91408),s=l(91959),i=l(54587),d=l.n(i),o=l(34846),c=l(56820),u=l(83081);let h=e=>{let{defaultCheck:t,onChange:l,className:r}
1=e,s=(0,n.useRef)(null),[i,o]=(0,n.useState)(t||!1);return(0,a.jsxs)("div",{onClick:e=>{var t,a,n,r;o(n=!(null===(t=s.current)||void 0===t?void 0:t.checked)),l(r=!(null===(a=s.current)||void 0===a?void 0:a.checked))},className:"cursor-pointer w-[14px] h-[14px] rounded-sm flex items-center justify-center ".concat(i?"bg-[#91E500] border border-[#91E500]":"border-[#EAECEF] border "," ").concat(r),children:[i?(0,a.jsx)(d(),{src:u.A,alt:"right"}):null,(0,a.jsx)("input",{readOnly:!0,checked:i,ref:s,hidden:!0,type:"checkbox"})]})};var x=l(42146),m=l(31780);function v(e){var t,l,i;let{className:u,required:v,containerClassName:p,dropdownCLassName:b,IconClassName:f,label:g,rules:w,options:j,value:y,onChange:N,onClick:k,onChildrenChange:C,disabled:A,displayType:E,placeholder:_,noBg:S,...L}=e,[I,T]=(0,n.useState)(),[P,H]=(0,n.useState)(!0),[F,W]=(0,n.useState)(!1),[D,O]=(0,n.useState)((null===(t=j.find(e=>e.value===y))||void 0===t?void 0:t.label)||""),R=(0,n.useRef)(!1),B=(0,n.useRef)(null),M=(0,n.useMemo)(()=>(0,r.Ik)().shape({value:w}),[w]),{t:z}=(0,o.Bd)(),G=(0,n.useRef)(null);(0,n.useEffect)(()=>{P||R.current||F||M.validate({value:D}).then(()=>T(void 0)).catch(e=>T(e.errors[0]))},[M,P,D,F]);let Q=e=>{H(!1);let t=j.find(t=>t.value===e.target.value).label;O(t),R.current=!1,B.current.value=t,W(!1),null==N||N(e)};(0,n.useEffect)(()=>{var e;let t=(null===(e=j.find(e=>e.value===y))||void 0===e?void 0:e.label)||"";F?(B.current&&(B.current.value="",B.current.placeholder=z("Search")),O("")):(B.current&&(B.current.value=t),O(t))},[j,F,y,z]);let V=j.filter(e=>-1!==e.label.toLowerCase().indexOf(D.toLowerCase()));(0,n.useEffect)(()=>{setTimeout(()=>{if(G.current&&F){var e,t;null===(t=G.current)||void 0===t||null===(e=t.scrollIntoView)||void 0===e||e.call(t,{block:"center",inline:"center"})}},150)},[y,F]);let Y=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=e=>{W(!1)};return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}},[]),(0,a.jsx)("div",{className:u,children:(0,a.jsxs)(a.Fragment,{children:["hidden"!==E?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"text-sm text-primary-text  flex items-end",children:[g," ",(0,a.jsx)("span",{className:"text-sell  ml-1",children:v?"*":""})]}),(0,a.jsx)("div",{className:"relative inline-block w-full",children:(0,a.jsxs)("div",{className:"\n                    outline-none relative rounded-xl transition-all duration-150\n                    border min-h-11 mt-1 ".concat(S?"":"bg-bg2","  disabled:bg-line\n                    text-[#1E2329] disabled:text-disabled  ").concat(I?"border-sell ":"border-line ","\n                    ").concat(I||A?"":"hover:border-primary ","\n                    ").concat(p,"\n                  "),style:{fontSize:"14px",width:"100%"},children:[(0,a.jsxs)("div",{onClick:e=>{A||(W(!0),null==k||k(),e.stopPropagation())},className:"w-full flex items-center relative justify-between",children:[(0,a.jsx)("div",{onClick:()=>{setTimeout(()=>{var e;null===(e=Y.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},150)},className:"".concat(F?"none":"shrink-0 absolute top-0 left-0 z-10 w-full")}),(0,a.jsx)("input",{className:"\n                        shrink-0 outline-none rounded-xl w-full py-3 px-3 text-small-body-sub\n                      ".concat(S?"":"bg-bg2","  text-primary-text\n                      disabled:bg-line  disabled:text-disabled\n                      ").concat(F?"rounded-b-none border-b-line":"","\n                    "),disabled:A,value:D,ref:B,placeholder:_,onInput:e=>{O(e.target.value),R.current=!0}}),(0,a.jsx)(m.A,{className:"transition-all duration-150 shrink-0 w-5 h-5 text-primary-text absolute top-[calc(50%)] right-3 transform  -translate-y-1/2 ".concat(F?"rotate-180":""," ").concat(f),alt:"caretDownF"})]}),(0,a.jsx)("div",{onClick:e=>e.stopPropagation(),ref:Y,className:"\n                      transition-[height] duration-75 ease-in-out\n                      ".concat(F?"h-64 py-3 border-t border-t-line  hover:border-primary  hover:border-t-line  rounded-b-xl ".concat(S?"":"bg-bg2"," relative top-0 left-3 w-full -mx-3 overflow-auto ").concat(b):"h-0 overflow-hidden","\n                    "),children:V.length?V.map(e=>(0,a.jsxs)("div",{ref:y===e.value?G:null,onMouseDown:()=>{e.disabled||Q({target:{value:e.value}})},className:"px-2 mx-2 rounded-lg py-2 ".concat(S?"":"bg-bg2"," cursor-pointer text-primary-text  hover:text-link  justify-between flex items-center hover:bg-bg3  transition-all duration-150 ").concat(e.disabled?"text-disabled  hover:text-disabled  cursor-not-allowed":""),children:[(0,a.jsx)("span",{className:"".concat(y===e.value?"text-link ":""),children:e.labelComponent||e.label}),y===e.value?(0,a.jsx)(d(),{src:s.A,alt:"rightGreen"}):(0,a.jsx)(a.Fragment,{})]},e.value)):(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center px-4 py-2 text-regular-body text-third cursor-not-allowed",children:[(0,a.jsx)(d(),{className:"mt-16",src:x.A,alt:"nodata"}),(0,a.jsx)("div",{children:z("NoData")})]})})]})}),I&&(0,a.jsx)("div",{className:"text-sm text-sell  mt-1",children:I})]}):(0,a.jsx)(a.Fragment,{}),null===(i=j.find(e=>e.value===y))||void 0===i?void 0:null===(l=i.children)||void 0===l?void 0:l.map(e=>(0,a.jsx)("div",{className:"mt-6",children:"Input"===e.type&&"hidden"
1!==e.displayType?(0,a.jsx)(c.A,{disabled:e._front_disabled,value:e.myAnswer,onChange:t=>null==C?void 0:C({...e,value:t.target.value}),placeholder:e.inputPlaceholder,label:(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:e.subQuestion||""}})}):"SingleCheckBox"===e.type&&"hidden"!==e.displayType?(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(h,{defaultCheck:"Y"===e.myAnswer,onChange:t=>{null==C||C({...e,value:t?"Y":"N"})}}),(0,a.jsx)("div",{className:"ml-2 text-secondary",children:e.subQuestion})]}):""},e.subQuestion))]})})}},91959:(e,t,l)=>{l.d(t,{A:()=>a});let a={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/right-green.fe58f836.svg",height:16,width:16,blurWidth:0,blurHeight:0}},92471:(e,t,l)=>{l.d(t,{A:()=>a});let a={src:"https://static2.paymonade.tech/static/prod/paymonade-channel-ui/_next/static/media/remove.230bbff8.svg",height:16,width:16,blurWidth:0,blurHeight:0}},94196:(e,t,l)=>{l.d(t,{A:()=>r});var a=l(37876),n=l(88050);let r=e=>{let{className:t,containerClassName:l}=e;return(0,a.jsx)("div",{id:"loadingComponent",className:"flex justify-center items-center h-full w-full p-10 ".concat(l),children:(0,a.jsx)(n.A,{size:8,color:"#A7EA33",speedMultiplier:.7})})}}}]);

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.