PageSourceSearch

https://localcoinswap.com/_next/static/immutable/chunks/3qwlen3mk5w4a.js

js localcoinswap.com collected 2026-09-25 14:16:39 UTC 7,359 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,462058,e=>{"use strict";var t=e.i(391398),n=e.i(41158),a=e.i(191788),o=e.i(408220),s=e.i(457112);let i=()=>(0,t.jsx)("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.87131 20.7581C3.87131 20.9648 4.11516 21.0763 4.27191 20.9404L10.548 15.4829H18.3858C18.92 15.4829 19.3542 15.0498 19.3542 14.5145V0.968409C19.3542 0.434275 18.92 0 18.3858 0H0.968409C0.434275 0 0 0.434275 0 0.968409V14.5145C0 15.0498 0.434275 15.4829 0.968409 15.4829H3.87131V20.7581ZM15.4829 4.83972H3.87131V6.77422H15.4829V4.83972ZM3.87131 8.70872H13.5484V10.6455H3.87131V8.70872Z",fill:"currentColor"})});e.s(["default",0,()=>{let e=a.default.useRef(void 0),{showDm:r,showDmDot:l,setShowDmDot:u}=(0,s.useWS)(),{authData:c}=(0,o.useAuth)();return r?(0,t.jsx)("div",{className:"relative",children:(0,t.jsxs)(n.default,{href:`/dm/${c.data?.user_uuid}`,prefetch:!1,onClick:()=>{u(!1)},className:"flex overflow-hidden text-bone-300 duration-300 transition ease-out focus:outline-none lg:mt-1.5 mr-6 mt-1",children:[(0,t.jsx)("div",{ref:e,className:"text-bone-600 duration-300 transition ease-out opacity-70 hover:opacity-100",children:(0,t.jsx)(i,{})}),l&&(0,t.jsx)("span",{className:"absolute -top-1 lg:-top-0 left-3 px-1 text-xs w-3 h-3 rounded-full bg-cherry font-600"})]})}):null}],462058)},128289,function(e){e.n(e.i(462058))},457112,983435,e=>{"use strict";let t;var n=e.i(391398),a=e.i(191788),o=e.i(399921);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}let i=function(t,n){void 0===n&&(n={});var o=n,i=o.volume,r=void 0===i?1:i,l=o.playbackRate,u=void 0===l?1:l,c=o.soundEnabled,d=void 0===c||c,f=o.interrupt,p=void 0!==f&&f,m=o.onload,v=function(e,t){if(null==e)return{};var n,a,o={},s=Object.keys(e);for(a=0;a<s.length;a++)t.indexOf(n=s[a])>=0||(o[n]=e[n]);return o}(o,["id","volume","playbackRate","soundEnabled","interrupt","onload"]),y=a.default.useRef(null),h=a.default.useRef(!1),g=a.default.useState(null),w=g[0],b=g[1],x=a.default.useState(null),k=x[0],j=x[1],S=function(){"function"==typeof m&&m.call(this),h.current&&b(1e3*this.duration()),j(this)};(0,a.useEffect)(function(){return e.A(246563).then(function(e){if(!h.current){var n;y.current=null!=(n=e.Howl)?n:e.default.Howl,h.current=!0,new y.current(s({src:Array.isArray(t)?t:[t],volume:r,rate:u,onload:S},v))}}),function(){h.current=!1}},[]),a.default.useEffect(function(){y.current&&k&&j(new y.current(s({src:Array.isArray(t)?t:[t],volume:r,onload:S},v)))},[JSON.stringify(t)]),a.default.useEffect(function(){k&&(k.volume(r),k.rate(u))},[r,u]);var R=a.default.useCallback(function(e){void 0===e&&(e={}),k&&(d||e.forceSoundEnabled)&&(p&&k.stop(),e.playbackRate&&k.rate(e.playbackRate),k.play(e.id))},[k,d,p]),A=a.default.useCallback(function(e){k&&k.stop(e)},[k]),C=a.default.useCallback(function(e){k&&k.pause(e)},[k]);return[R,{sound:k,stop:A,pause:C,duration:w}]};e.s(["default",0,i],983435);var r=e.i(101376),l=e.i(935262),u=e.i(646529),c=e.i(83444),d=e.i(408220),f=e.i(845211);let p=(0,a.createContext)({});e.s(["WebsocketProvider",0,({children:s})=>{let[m]=i("/sounds/trade-notif.mp3"),[v]=i("/sounds/message-notif.mp3"),y=(0,f.default)(),{authData:h,refreshUserData:g}=(0,d.useAuth)(),[w,b]=(0,a.useState)({data:void 0,status:"loading"}),[x,k]=(0,a.useState)(!1),[j,S]=(0,a.useState)(!1),[R,A]=(0,a.useState)(void 0),[C,_]=(0,a.useState)(void 0);a.default.useEffect(()=>{h.loggedIn&&(H(),N())},[h.loggedIn]);let T=async()=>{if(t)try{t.json({})}catch(e){console.log(e)}},E=async()=>{T(),setTimeout(E,12e4)},P=async()=>{if(t){let n=await e.A(691960);n.setOption("exclude",["audio","canvas","webgl","plugins"]);let a=await n.getFingerprint(),o=await n.getFingerprintData();try{t.json({fp:a,data:o})}catch(e){console.log(e)}}},O=a.default.useCallback(async()=>{if(t){let{generateEncAddress:n}=await e.A(522702),{decryptMnemonic:a}=await e.A(935326),o=h.data?.expected_wallets??[],s=await (0,l.getPolteageist)();if(!s)return;let{accountKey:i,encrypted_mnemonic:u,encrypted_mnemonic_iv:c,encrypted_account_key_rsa:d}=s;if(!i||!u)return;let f=a(i,u,c);if(!f)return;let p=d;p||(p=await (0,r.encryptAccountKeyWithSessionRsa)(i)??void 0);let m=p?btoa(p):void 0,v={};
1o.forEach(e=>{let t=n(i,f,void 0,e),a={currency:e,address:t.address,public_key:t.publicKey,encrypted_private_key:t.encryptedPrivateKey,encrypted_private_key_iv:t.encryptedPrivateKeyIv};v[e]=a}),m&&(v.eor=m);try{t.json({vw:!0,data:v})}catch(e){console.log(e)}}},[h.data?.expected_wallets]),H=async()=>{let{PUBLIC_WS_ENDPOINT:e}=(0,u.getRegionalConfig)(),n=`${e}/ws/common/`;t&&t.close(),t=new o.default(n,{timeout:5e3,maxAttempts:10,onopen:()=>{E(),setTimeout(()=>{P()},3e3),setTimeout(()=>{O()},5e3)},onmessage:async e=>{let{code:t,message:n}=JSON.parse(e.data);if(500===t&&("show_dm"==n.type&&k(!0),"hide_dm"==n.type&&k(!1),"new_dm"==n.type&&(y.open({type:"success",message:`${n.title}`}),S(!0))),400===t&&n&&n.title){if(y.open({type:"info",message:`${n.title}`}),h.data?.sound_notifications=="True"||h.data?.sound_notifications==!0)switch(n.type){case"email_verified":g();break;case"TRADE_MSG":try{v()}catch(e){console.log(e)}break;case"TRADE_STATUS":try{"CREATED"==n.status&&m()}catch(e){console.log(e)}}new Promise(e=>setTimeout(e,2e3)).then(()=>N())}}})},N=async(e=!1)=>{e&&b(e=>({...e,status:"loading"}));let t=new URLSearchParams({offset:"0",limit:"10"}),n=await (0,c.makeGetRequest)(`/api/v2/notifs/?${t}`);if(n.ok){let e=await n.json();b(t=>({...t,data:e,status:"success"}))}else b(e=>({...e,status:"error"}))},V=async()=>{let e={offset:w.data?.offset+w.data?.limit||"0"};b(e=>({...e,status:"loading"}));let t=new URLSearchParams({...e}),n=await (0,c.makeGetRequest)(`/api/v2/notifs/?${t}`);if(n.ok){let e=await n.json();e.results=[...w.data.results,...e.results],b(t=>({...t,data:e,status:"success"}))}else b(e=>({...e,status:"error"}))};return(0,n.jsx)(p.Provider,{value:{initCommonWebsocket:H,sendVerifyWallets:O,notifs:w,fetchUserNotifs:N,fetchMoreNotifs:V,wsTradeStatus:R,setWsTradeStatus:A,wsTradeChat:C,setWsTradeChat:_,showDm:x,showDmDot:j,setShowDmDot:S},children:s})},"useWS",0,()=>a.default.useContext(p)],457112)},691960,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2rkpk4z7-fgm3.js"].map(t=>e.l(t))).then(()=>t(30127)))},246563,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1zjqsxhj7hyjq.js"].map(t=>e.l(t))).then(()=>t(943469)))},399921,e=>{"use strict";function t(){}e.s(["default",0,function(e,n){var a,o=0,s=1,i={},r=(n=n||{}).maxAttempts||1/0;return i.open=function(){(a=new WebSocket(e,n.protocols||[])).onmessage=n.onmessage||t,a.onopen=function(e){(n.onopen||t)(e),o=0},a.onclose=function(e){1e3===e.code||1001===e.code||1005===e.code||i.reconnect(e),(n.onclose||t)(e)},a.onerror=function(e){e&&"ECONNREFUSED"===e.code?i.reconnect(e):(n.onerror||t)(e)}},i.reconnect=function(e){s&&o++<r?s=setTimeout(function(){(n.onreconnect||t)(e),i.open()},n.timeout||1e3):(n.onmaximum||t)(e)},i.json=function(e){a.send(JSON.stringify(e))},i.send=function(e){a.send(e)},i.close=function(e,t){s=clearTimeout(s),a.close(e||1e3,t)},i.open(),i}])}]);

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.