1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6506],{61862:function(e,t,i){"use strict";i.d(t,{Q:function(){return o},Z:function(){return x}});var l,o,n=i(85893),s=i(25675),c=i.n(s),r=i(6089),a=i(69784),d=i.n(a),S=i(55360),u=i(48758),p=i(68575),_=e=>{let t=(0,p.Z)(e=>e.theme);return(0,n.jsxs)("div",{className:"".concat(d().filterCheckboxOption," ").concat(t===p.X.DARK?d().dark:""," "),onClick:()=>e.onClickOutside(),children:[(0,n.jsx)("p",{className:"b12 ".concat("SELECT ALL"===e.label?d().selectingAll:""),children:e.label}),(0,n.jsx)(n.Fragment,{children:e.isSelected?(0,n.jsx)(n.Fragment,{children:t===p.X.DARK?(0,n.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("rect",{x:"1",y:"1",width:"22",height:"22",rx:"3",fill:"#222931",stroke:"#6C7987",strokeWidth:"2"}),(0,n.jsx)("path",{d:"M6 12L10 16L18 8",stroke:"white",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]}):(0,n.jsx)(r.E,{src:S.Z.src,w:"2.4rem",h:"2.4rem"})}):(0,n.jsx)(n.Fragment,{children:t===p.X.DARK?(0,n.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("rect",{x:"1",y:"1",width:"22",height:"22",rx:"3",fill:"#222931",stroke:"#6C7987",strokeWidth:"2"})}):(0,n.jsx)(r.E,{src:u.Z.src,w:"2.4rem",h:"2.4rem"})})})]})},L=i(49144),v=i.n(L),h=i(45137),E=i.n(h),k=e=>{let t=(0,p.Z)(e=>e.theme);return(0,n.jsxs)("div",{className:"\n ".concat(E().filterButtonLikeOption," \n ").concat(1===e.rowNumber?E().oneARow:"","\n ").concat(2===e.rowNumber?E().twoARow:"","\n ").concat(3===e.rowNumber?E().threeARow:"","\n ").concat(e.isSelected?E().selected:"","\n ").concat(t===p.X.DARK||e.isDarkMode?E().dark:"","\n "),onClick:()=>e.onClickOutside(),children:[e.icon&&(0,n.jsx)("div",{className:E().icon,children:(0,n.jsx)(r.E,{src:e.icon,w:"2rem",h:"2rem",flexShrink:0})}),(0,n.jsx)("div",{className:"b12",children:e.label})]})};(l=o||(o={}))[l.CHECKBOX=0]="CHECKBOX",l[l.BUTTON_LIKE=1]="BUTTON_LIKE";var x=e=>{let t=(0,p.Z)(e=>e.theme);return(0,n.jsxs)("div",{className:"".concat(v().filterList," ").concat(t===p.X.DARK?v().dark:""),children:[(0,n.jsxs)("div",{className:v().titleBlock,onClick:()=>{e.sectionToShow===e.title?e.setSectionToShow(null):e.setSectionToShow(e.title)},children:[(0,n.jsx)("p",{className:"b12 ".concat(v().title),children:e.title}),(0,n.jsx)("div",{className:"".concat(v().arrowBlock," ").concat(e.sectionToShow===e.title?v().reverseArrowBlock:""),children:(0,n.jsx)(c(),{src:"/_next/static/media/filter_list_arrow.1001a3e9.svg",alt:"icon",fill:!0})})]}),e.supportSelectAll&&e.sectionToShow===e.title?(0,n.jsx)(_,{label:"SELECT ALL",isSelected:0===e.options[e.title].filter(e=>!e.isSelected).length,value:"SELECT ALL",onClickOutside:()=>{let t=e.options[e.title].filter(e=>e.isSelected).length,i=!0;t===e.options[e.title].length&&(i=!1);let l=e.options[e.title].map(e=>(e.isSelected=i,e));e.setOptions({...e.options,[e.title]:l})}}):null,0===e.type&&(0,n.jsx)(n.Fragment,{children:e.sectionToShow===e.title&&(0,n.jsx)(n.Fragment,{children:e.options[e.title].map((t,i)=>(0,n.jsx)(_,{label:t.label,isSelected:t.isSelected,value:t.value,onClickOutside:()=>{let l=e.options[e.title],o={...t,isSelected:!t.isSelected};e.supportSingleSelect&&(l=e.options[e.title].map(e=>({...e,isSelected:!1}))),l.splice(i,1,o),e.setOptions({...e.options,[e.title]:l})}},i))})}),1===e.type&&(0,n.jsx)(n.Fragment,{children:e.sectionToShow===e.title&&(0,n.jsx)("div",{className:"".concat(v().buttonLikeOptionBlock),children:e.isGroupBy?Object.entries(e.options[e.title].reduce((e,t)=>(t.group&&(e[t.group]||(e[t.group]=[]),e[t.group].push(t)),e),{})).map(t=>{let[i,l]=t;return(0,n.jsxs)("div",{className:v().buttonGroup,children:[(0,n.jsx)("div",{className:"b24 ".concat(v().groupTitle," ").concat(e.isRawGroupTitle?v().rawTitle:""),children:i}),(0,n.jsx)("div",{className:v().divider}),(0,n.jsx)("div",{className:v().options,children:l.map((t,i)=>{var l;return(0,n.jsx)(k,{isDarkMode:e.isDarkMode,onClickOutside:()=>{let i={...t,isSelected:!t.isSelected},l=e.options[e.title],o=l.findIndex(e=>e.value===t.value&&e.group===t.group);l.splice(o,1,i),e.setOptions({...e.options,[e.title]:l})},label:t.label,isSelected:t.isSelected,value:t.value,icon:t.icon,rowNumber:null!==(l=e.rowNumber)&&void 0!==l?l:2},i)})})]},i)}):e.options[e.title].map((t,i)=>{var l;return(0,n.jsx)(k,{isDarkMode:e.isDarkMode,onClickOutside:()=>{let l={...t,isSelected:!t.isSelected};e.options[e.title].splice(i,1,l),e.setOptions({...e.options,[e.title]:e.options[e.title]})},label:t.label,isSelected:t.isSelected,value:t.value,icon:t.icon,rowNumber:null!==(l=e.rowNumber)&&void 0!==l?l:2},i)})})}),e.showBottomLine&&(0,n.jsx)("div",{className:v().line})]})}},32754:function(e,t,i){"use strict";i.d(t,{Z:function(){return L}});var l=i(85893),o=i(55165),n=i.n(o),s=i(68575),c=i(11163),r=i(56892),a=i(44304),d=i(30381),S=i.n(d),u=i(773),p=i(75777),_=i(22005),L=e=>{let t=(0,c.useRouter)(),{isConnected:i,currentWallet:o,currentAccount:d}=(0,r.ZP)(),L=(0,s.Z)(e=>e.theme);return(0,l.jsxs)("div",{className:"".concat(n().filterModal," ").concat(L===s.X.DARK?n().dark:""," ").concat(e.withAnimationShow?n().animationShow:""),children:[(0,l.jsx)("div",{className:n().childrenBlock,children:e.children}),(0,l.jsx)("div",{className:n().saveBlock,children:(0,l.jsx)("button",{className:"btn4 ".concat(n().btn),onClick:l=>{var n,s,c,r,L,v,h,E,k,x;e.context.setSavedOptions(e.context.options),(0,a.B)(p.ff.SAVE_FILTER,{timestamp:S()().format(_.i),is_connected:i,wallet_provider:null==o?void 0:o.name,address:"sui:".concat(null==d?void 0:d.address),page_path:t.asPath,component:"filter",strategy:(null===(n=e.context.options[u.d.STRATEGY])||void 0===n?void 0:n.filter(e=>e.isSelected).length)===(null===(s=e.context.options[u.d.STRATEGY])||void 0===s?void 0:s.length)?"SELECT ALL":e.context.options[u.d.STRATEGY].filter(e=>e.isSelected).map(e=>e.label),duration:(null===(c=e.context.options[u.d.DURATION])||void 0===c?void 0:c.filter(e=>e.isSelected).length)===(null===(r=e.context.options[u.d.DURATION])||void 0===r?void 0:r.length)?"SELECT ALL":e.context.options[u.d.DURATION].filter(e=>e.isSelected).map(e=>e.label),underlying_asset:(null===(L=e.context.options[u.d.UNDERLYING_ASSET])||void 0===L?void 0:L.filter(e=>e.isSelected).length)===(null===(v=e.context.options[u.d.UNDERLYING_ASSET])||void 0===v?void 0:v.length)?"SELECT ALL":e.context.options[u.d.UNDERLYING_ASSET].filter(e=>e.isSelected).map(e=>e.label),deposit_token:(null===(h=e.context.options[u.d.DEPOSIT_ASSET])||void 0===h?void 0:h.filter(e=>e.isSelected).length)===(null===(E=e.context.options[u.d.DEPOSIT_ASSET])||void 0===E?void 0:E.length)?"SELECT ALL":e.context.options[u.d.DEPOSIT_ASSET].filter(e=>e.isSelected).map(e=>
1e.label),risk_level:(null===(k=e.context.options[u.d.RISK_LEVEL])||void 0===k?void 0:k.filter(e=>e.isSelected).length)===(null===(x=e.context.options[u.d.RISK_LEVEL])||void 0===x?void 0:x.length)?"SELECT ALL":e.context.options[u.d.RISK_LEVEL].filter(e=>e.isSelected).map(e=>e.label)}),e.context.setShowFilterModal(!1),l.stopPropagation()},children:"SAVE"})})]})}},773:function(e,t,i){"use strict";i.d(t,{d:function(){return n}});var l,o,n,s,c=i(37798),r=i(67294),a=i(62934);(l=n||(n={})).STRATEGY="STRATEGY",l.DURATION="DURATION",l.UNDERLYING_ASSET="UNDERLYING ASSET",l.DEPOSIT_ASSET="DEPOSIT ASSET",l.RISK_LEVEL="RISK LEVEL",(o=s||(s={})).TEN_MIN="10MIN",o.HOURLY="HOURLY",o.DAILY="DAILY",o.WEEKLY="WEEKLY",o.MONTHLY="MONTHLY";let d={STRATEGY:[{label:"COVERED CALL",value:"COVERED CALL",isSelected:!0},{label:"PUT SELLING",value:"PUT SELLING",isSelected:!0}],DURATION:[{label:"10MIN",value:"10MIN",isSelected:!0},{label:"HOURLY",value:"HOURLY",isSelected:!0},{label:"DAILY",value:"DAILY",isSelected:!0},{label:"WEEKLY",value:"WEEKLY",isSelected:!0},{label:"MONTHLY",value:"MONTHLY",isSelected:!0}],"UNDERLYING ASSET":[{label:"SUI",value:"SUI",isSelected:!0,icon:"/safu/sui_logo.svg"},{label:"HASUI",value:"HASUI",isSelected:!0,icon:"/coin/hasui.svg"},{label:"SCA",value:"SCA",isSelected:!0,icon:"/coin/sca.svg"}],"DEPOSIT ASSET":[{label:"SUI",value:"SUI",isSelected:!0,icon:"/safu/sui_logo.svg"},{label:"HASUI",value:"HASUI",isSelected:!0,icon:"/coin/hasui.svg"},{label:"SCA",value:"SCA",isSelected:!0,icon:"/coin/sca.svg"},{label:"USDC",value:"USDC",isSelected:!0,icon:"/coin/usdc.svg"}],"RISK LEVEL":[{label:"CONSERVATIVE",value:"CONSERVATIVE",isSelected:!0},{label:"MODERATE",value:"MODERATE",isSelected:!0},{label:"AGGRESSIVE",value:"AGGRESSIVE",isSelected:!0}]};t.Z=()=>{let{network:e,provider:t}=(0,a.Z)(e=>({network:e.network,provider:e.provider})),{data:i}=(0,c.L)(t,e),[l,o]=(0,r.useState)(!1),[n,s]=(0,r.useState)("STRATEGY"),[S,u]=(0,r.useState)({}),[p,_]=(0,r.useState)({}),L=()=>{let e=JSON.parse(JSON.stringify(d));u(e),_(e)};return(0,r.useEffect)(()=>{L()},[]),{options:S,setOptions:u,sectionToShow:n,setSectionToShow:s,showFilterModal:l,setShowFilterModal:o,setSavedOptions:_,savedOptions:p,reset:L}}},65126:function(e,t,i){"use strict";let l=(0,i(73445).Ue)(e=>({isPerpDiscount:!1,setIsPerpDiscount:t=>e({isPerpDiscount:t}),xBtcProjectApr:"0",setXbtcProjectApr:t=>e({xBtcProjectApr:t})}));t.Z=l},45137:function(e){e.exports={oneARow:"FilterButtonLikeOption_oneARow__q963R",twoARow:"FilterButtonLikeOption_twoARow__ESjb3",threeARow:"FilterButtonLikeOption_threeARow__LnslL",filterButtonLikeOption:"FilterButtonLikeOption_filterButtonLikeOption__JJqWf",selected:"FilterButtonLikeOption_selected__j560T",dark:"FilterButtonLikeOption_dark__aI3gJ",icon:"FilterButtonLikeOption_icon__CHTW4"}},69784:function(e){e.exports={filterCheckboxOption:"FilterCheckboxOption_filterCheckboxOption__hxQvf",dark:"FilterCheckboxOption_dark__ZygUk",selectingAll:"FilterCheckboxOption_selectingAll__bumUN"}},49144:function(e){e.exports={filterList:"FilterList_filterList__4tscl",dark:"FilterList_dark__cVbUw",line:"FilterList_line__xsJdl",titleBlock:"FilterList_titleBlock__SpQVl",title:"FilterList_title__bCIKO",arrowBlock:"FilterList_arrowBlock__MP_s9",reverseArrowBlock:"FilterList_reverseArrowBlock__smn2l",buttonLikeOptionBlock:"FilterList_buttonLikeOptionBlock__kxpRv",buttonGroup:"FilterList_buttonGroup__p_pGk",groupTitle:"FilterList_groupTitle__flqTF",rawTitle:"FilterList_rawTitle__748F0",divider:"FilterList_divider__JBbdl",options:"FilterList_options__pEquK"}},55165:function(e){e.exports={filterModal:"FilterModal_filterModal__dB6a5",dark:"FilterModal_dark__AJ00O",saveBlock:"FilterModal_saveBlock__GANB0",btn:"FilterModal_btn__jC_Od",childrenBlock:"FilterModal_childrenBlock__i1k9M",animationShow:"FilterModal_animationShow__oXSxH","desktop-modal-animation":"FilterModal_desktop-modal-animation__IZ9cz"}}}]);
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.