PageSourceSearch

https://gameflip.com/app/bb0ace0de3038d557d70.bundle.js

js gameflip.com collected 2026-10-02 03:46:41 UTC 42,219 bytes, 1 lines download raw bytes

1(self.webpackChunkgameflip_market=self.webpackChunkgameflip_market||[]).push([[3769],{53288(e,t,a){"use strict";a.d(t,{A:()=>s});var l=a(96540),n=a(25248),r=a(57470),o=a(50705),c=a(36700);function s(e){const[t,a]=(0,l.useState)(!(!e.bookmarkParams||!e.bookmarkParams.onUnbookmark)),s=l=>{l.preventDefault(),l.stopPropagation();let{listing:c,profile:s,bookmarkParams:i,collectionIndex:m}=e;if(!c&&!s)return;if(!o.A.isLoggedIn)return o.A.openSignin();let u={type:s?"profile":"listing",owner:i&&i.owner?i.owner:o.A.profile.owner,id:s?s.owner:c.id};t?n.A.deleteBookmark(u,e=>{a(!1),i&&i.onUnbookmark&&i.onUnbookmark(m)},e=>{r.A.showErrorDialog(e)}):(a(null),n.A.postBookmark(u,e=>{a(!0)},e=>{a(!1),r.A.showErrorDialog(e)}))};let{className:i,listing:m,profile:u,bookmarkParams:d}=e,p="fa-regular fa-heart";null===t&&(p="fa-solid fa-heart-pulse"),!0===t&&(p="fa-solid fa-heart"),i=i||(m?"bookmark-icon-listing":u?"bookmark-icon-profile":"");let f=l.createElement("span",{className:"d-none d-sm-inline"},(0,c._)("Favorite"));return u?l.createElement("button",{className:"btn btn-primary btn-sm "+(i||""),onClick:s},l.createElement("span",{className:p,"aria-hidden":"true"})," ",d?"":f):t||void 0!==m.qty_avail?l.createElement("div",{className:"bookmark-icon "+i+(t?" item-bookmarked":""),onClick:s},l.createElement("i",{className:p})):null}},17527(e,t,a){"use strict";a.d(t,{A:()=>c});var l=a(58168),n=a(96540),r=a(79788),o=a(48703);function c(e){const[t,a]=(0,n.useState)(!1);let{src:c,placeholder:s,dim:i,aspectRatio:m,loading:u,schema:d}=e,p="";c&&c.includes("https://ipfs")&&(c=r.A.config.server_url+"/api/util/image/"+encodeURIComponent(c));let f=[{type:"image/webp",ext:".webp",default:!0},{type:"image/jpeg",ext:".jpg",default:!1}],g=[];if(i&&c&&(c.includes("gameflipusercontent.fingershock.com")||c.includes("gameflip.fingershock.com")||c.includes("gameflipcollectiblecontent.fingershock.com"))?f.map((e,t)=>{let a=(0,o.A)(c,i,e.ext);g.push(n.createElement("source",{key:i+t,type:e.type,srcSet:a})),!p&&e.default&&(p=a)}):e.sources&&Array.isArray(e.sources)&&f.map((t,a)=>{e.sources.map((e,l)=>{e.endsWith(t.ext)&&(g.push(n.createElement("source",{key:a,type:t.type,srcSet:e})),!p&&t.default&&(p=e))})}),!c)return!1;p||(p=c),u&&"lazy"!=u&&"eager"!=u&&(u=void 0);let E=Object.assign({},e);delete E.aspectRatio,delete E.schema;let h=n.createElement("img",(0,l.A)({itemProp:d?"image":void 0,loading:u},E,{src:t?s:p,onError:l=>{!t&&s&&(e.onError&&e.onError(c),a(!0))},onLoad:t=>{e.onLoad&&e.onLoad(c)}})),b=t?h:n.createElement("picture",null," ",g," ",h," ");return m?n.createElement("div",{className:"overflow-hidden",style:{"--aspect-ratio":m}},b):b}},83113(e,t,a){"use strict";a.d(t,{A:()=>r});var l=a(96540),n=(a(92715),a(36700));function r(e){const t=!1!==e.html,a=e.id||(0,l.useRef)(`popover-${Math.floor(1e5*Math.random())}`).current;return(0,l.useEffect)(()=>{let l=e.type||"popover";if("popover"==l){let e=$(`#${a}`);e.popover({html:t}),e.on("shown.bs.popover",()=>{setTimeout(()=>{e.popover("hide")},15e3)})}else"tooltip"==l&&$(`#${a}`).tooltip({html:t,delay:{show:100,hide:100}});return()=>{$(`#${a}`).popover("dispose")}},[e.content,e.title,e.type]),(()=>{let{className:r,btnClass:o,type:c,label:s,title:i,content:m,icon:u,trigger:d,placement:p}=e;c||(c="popover"),d||(d="popover"==c?"focus":"hover"),p||(p="top"),s&&"string"==typeof s&&(s=l.createElement("span",{id:`${a}-label`},s," "));let f="";return f="object"==typeof u?u:l.createElement("span",{className:u||"fa fa-question-circle popover-icon","aria-hidden":"true"}),l.createElement("span",{className:r},s||"",l.createElement("span",{id:a,className:o||"pointer btn-link",tabIndex:"0","aria-label":i||(0,n._)("Information"),role:"button","data-bs-html":t,"data-bs-toggle":c,"data-bs-trigger":d,"data-bs-placement":p,"data-bs-container":"body","data-bs-title":i||(0,n._)("Information"),"data-bs-content":m},f))})()}},93223(e,t,a){"use strict";a.d(t,{A:()=>r});var l=a(96540),n=(a(92715),a(36700));function r(e){return(()=>{let{className:t,online_until:a,hideOffline:r,noText:o}=e;if(!a)return null;let c=new Date<new Date(a),s=c?(0,n._)("Online"):(0,n._)("Offline"),i=c?"online":"offline";return r&&!c?null:l.createElement("div",{className:t||""},l.createElement("span",{className:i},l.createElement("i",{className:"presence-dot fas fa-circle"})," ",o?"":s))})()}},96048(e,t,a){"use strict";a.d(t,{A:()=>c});var l=a(96540),n=a(1933),r=a(92715),o=a(99288);function c(e){const t=(0,l.useRef)(null),a=(0,l.useRef)(null),c=(0,n.A)();(0,l.useEffect)(()=>{"undefined"==typeof QRCode&&(r.Log.debug(o.QDz,"Loading QRCode"),r.ScriptLoader.load(s,o.QDz))}),(0,l.useEffect)(()=>{r.Log.debug("QRCode: make code for: "+e.uri),i(e.uri)},[e.uri]);const s={onScriptLoaded:t=>{r.Log.debug("QRCode: Script loaded: "+t),i(e.uri),c()},onScriptError:e=>{r.Log.warn("Script load error: "+e)}},i=l=>{let{size:n}=e;n||(n=220),"undefined"!=typeof QRCode&&l&&t.current?(r.Log.debug("QRCode script loaded, now executing"),a.current?a.current.clear():a.current=ne
1w QRCode(t.current,{width:n,height:n,colorDark:"#000000",colorLight:"#ffffff",correctLevel:QRCode.CorrectLevel.H}),a.current.makeCode(l)):"undefined"==typeof QRCode&&r.Log.warn(o.QDz,"Cannot load script")};return(()=>{let{uri:a,className:n}=e,r=l.createElement("div",{id:"qrcode",className:n,ref:t});return e.name?l.createElement("a",{className:"btn-lnk",href:a,title:a},e.name,r):r})()}},83557(e,t,a){"use strict";a.d(t,{A:()=>c});var l=a(96540),n=a(36700);const r=1e6,o=e=>{const t=n.A.systemLocale();t.lang&&(t.lang,t.country&&t.country);const a=new Intl.NumberFormat("en",{minimumFractionDigits:2,maximumFractionDigits:2,roundingIncrement:5});return e<1e3?e:e<r?a.format(parseFloat(1*e/1e3))+"K":a.format(parseFloat(1*e/r))+"M"};function c(e){let{type:t}=e;return t&&"five-star"===t?l.createElement(i,e):l.createElement(s,e)}function s(e){let{score:t,ratings:a,className:r,showEmpty:c,showPositive:s,size:i,title:m}=e;if(isNaN(t)){if(!c)return null;t=0}let u=(100*t).toFixed(1);u=u===parseInt(u)?parseInt(u):u;let d=Number.isInteger(a)?l.createElement("span",{className:"rating-count"},"(",o(a),")"):"",p=l.createElement("span",{className:"text-nowrap me-1"},u,"%",s?` ${(0,n._)("Positive")}`:""),f=m||(a>0?`${u}% ${(0,n._)("Positive")}`:void 0),g="rating-stars "+("med"==i||"medium"==i?"rating-stars-medium ":"");return l.createElement("div",{className:g+(r||""),"data-bs-toggle":"tooltip",title:f},l.createElement("span",{className:"text-nowrap me-1"},l.createElement("i",{className:"rating-star rating-star-1 fa-solid fa-star"})),a>0?l.createElement(l.Fragment,null,p,d):l.createElement("span",{className:"text-muted"},(0,n._)("Not Yet Rated")))}function i(e){let{score:t,ratings:a,className:r,showEmpty:c,size:s,numStars:i,title:m}=e;if(isNaN(t)){if(!c)return null;t=0}let u=[],d=i||5,p=100*t,f=100/d,g=f/2;for(let e=1;e<=d;e++){let t="fa-solid fa-star",a=e*f;p>a||p<a&&(t=p>a-g?"fa-solid fa-star-half-stroke":"fa-solid fa-star rating-star-empty"),u.push(l.createElement("i",{key:e,className:"rating-star rating-star-"+e+" "+t}))}let E=p.toFixed(2);E=E===parseInt(E)?parseInt(E):E;let h=Number.isInteger(a)?l.createElement("span",{className:"rating-count"},"(",o(a),")"):"",b=m||`${E}% ${(0,n._)("Seller Rating")}`;return l.createElement("div",{className:"rating-stars "+("med"==s||"medium"==s?"rating-stars-medium ":"")+(r||""),"data-bs-toggle":"tooltip",title:b},l.createElement("span",{className:"text-nowrap"},u),h)}},56694(e,t,a){"use strict";a.d(t,{A:()=>n});var l=a(96540);function n(e){const{label:t,on:a,look:n="toggle"}=e,[r,o]=(0,l.useState)(a);(0,l.useEffect)(()=>{o(a)},[e.on]);let c=()=>{e.onToggle&&e.onToggle(!r),o(!r)};switch(n){case"toggle":return l.createElement("div",{className:"form-check"},l.createElement("label",{className:"form-check-label form-check-toggle"},l.createElement("input",{className:"form-check-input",type:"checkbox",checked:r,onChange:c}),l.createElement("span",null,t)));case"globe":return l.createElement("button",{className:"btn btn-outline-secondary",onClick:c,title:t},l.createElement("span",{className:"fa-solid fa-globe "+(r?"text-success":"text-muted"),"aria-hidden":"true"}))}}},14134(e,t,a){"use strict";a.d(t,{A:()=>c});var l=a(96540),n=a(50705),r=a(36700),o=a(65518);function c(e){let{className:t,profile:a,compact:c}=e,s="object"==typeof a?a.owner:a;return n.A.isLoggedIn&&s?(e=>l.createElement(o.A,{className:"btn btn-sm btn-primary "+(t||""),"aria-labelledby":"contact",to:"/messaging/"+e},l.createElement("span",{className:"fa fa-comments","aria-hidden":"true"})," ",l.createElement("span",{id:"contact",className:c?"d-none d-sm-inline":void 0},(0,r._)("Contact"))))(s):l.createElement("button",{className:"btn btn-sm btn-primary "+(t||""),"aria-labelledby":"contact",onClick:()=>{n.A.openSignin()}},l.createElement("span",{className:"fa fa-comments","aria-hidden":"true"})," ",l.createElement("span",{id:"contact",className:c?"d-none d-sm-inline":void 0},(0,r._)("Contact")))}},29379(e,t,a){"use strict";a.d(t,{A:()=>g});var l=a(96540),n=a(25248),r=a(92715),o=a(53288),c=a(17527),s=a(61310),i=a(65518),m=a(93223),u=a(14134),d=a(88269),p=a(36700),f=a(50705);function g(e){const[t,a]=(0,l.useState)(""),[g,E]=(0,l.useState)(e.profile||{});let{role:h,listing:b,options:y}=e,v=e=>{f.A.isLoggedIn&&n.A.getPresence(e,e=>{e&&e.online_until&&a(e.online_until)})},N=()=>{let e="";if(g?.created){let t={year:"numeric",month:"short",day:"numeric"};e=new Date(g.created).toLocaleDateString(p.A.lang,t)}return e};(0,l.useEffect)(()=>{var t;e.profile&&e.profile.owner?(E(e.profile),g&&g.owner!=e.profile.owner&&v(e.profile.owner)):e.id&&g&&g.owner!=e.id&&
1(t=e.id,n.A.getProfile(t,e=>{E(e)},e=>{E({error:!0}),r.Log.error(e)}),v(e.id))},[e]);let _=g.owner||e.id,A=f.A.profile&&f.A.profile.owner==_,k=!A&&g.chat_enabled&&y?.allow_contact,w=r.Util.cut(g.display_name,48);return(()=>{"seller"!==h&&"buyer"!==h&&(h="");let e=f.A.getAvatarUrl(g),a=y?.show_languages&&g.languages&&g.languages.length?l.createElement("div",{className:"d-none d-sm-block text-nowrap text-muted"},l.createElement("span",{className:""},(0,p._)("Languages"),":")," ",l.createElement("span",{className:"text-small"},l.createElement(s.A,{profile:g,sentenceOnly:"true",max:2}))):"",n=y?.show_membership&&g?.created?l.createElement("div",{className:"d-flex"},l.createElement("span",{className:"text-uppercase gf-text-body gf-fontsize-n3"},(0,p._)("Member since {member_date}",{member_date:N()}))):"",E=y?.allow_report&&!A?l.createElement("button",{className:"btn btn-clear btn-sm profile-block-button me-2"},l.createElement(i.A,{to:`/profile/${_}/${r.Util.slug(g.display_name)}?_report=true`},l.createElement("span",{className:"fa fa-flag","aria-hidden":"true"})," ",l.createElement("span",{className:"d-none d-sm-inline"},(0,p._)("Report")))):"";return l.createElement("div",{className:"d-flex align-items-center"},l.createElement("div",{className:"avatar-area me-2",style:{minWidth:"15%"}},l.createElement(i.A,{to:`/profile/${_}/${r.Util.slug(g.display_name)}`,className:"gf-fontsize-2 gf-underline-gradient"},l.createElement(c.A,{src:e,alt:g.display_name,className:"profile-avatar center-block img-fluid rounded-circle img-thumbnail",dim:320,aspectRatio:1}))),l.createElement("div",{className:"profile-content"},l.createElement(i.A,{to:`/profile/${_}/${r.Util.slug(g.display_name)}`,className:"gf-fontsize-2 gf-underline-gradient"},w),"seller"==h?l.createElement(d.A,{listing:b,profile:b?void 0:g,role:h,showNotRated:!0,showEmpty:!0,showHelp:!0}):"",l.createElement(m.A,{className:"small",online_until:t,hideOffline:!1}),n,a,l.createElement("div",{className:"d-flex mt-2"},E,y?.bookmark?l.createElement(o.A,{className:"me-2",profile:g,bookmarkParams:y.bookmark}):null)),l.createElement("div",{className:"ms-auto"},k?l.createElement(u.A,{profile:g,className:"me-2"}):""))})()}},88269(e,t,a){"use strict";a.d(t,{A:()=>u});var l=a(58168),n=a(96540),r=a(79788),o=a(25248),c=a(83557),s=a(83113),i=a(36700),m=a(85024);function u(e){const[t,a]=(0,n.useState)(null),[c,s]=(0,n.useState)({});let{profile:i,listing:u}=e;return(0,n.useEffect)(()=>{let t=i?i.owner:"";if(!t)return;let l={owner:t,role:e.role||"seller"};m.A.setBlock(!1),o.A.searchRatingSummary(l,e=>{m.A.setBlock(!0),a(e)},e=>{m.A.setBlock(!0),a(null)})},[i]),(0,n.useEffect)(()=>{let e=r.A.isProduction?"180day":"lifetime";t&&t[e].num_ratings>=5&&s({score:parseFloat(1*t[e].good/(t[e].good+t[e].poor)).toFixed(4),as_percent:parseFloat(100*t[e].good/(t[e].good+t[e].poor)).toFixed(1),count:t[e].num_ratings})},[t]),(0,n.useEffect)(()=>{u&&void 0!==u.seller_score&&void 0!==u.seller_ratings&&s({score:u.seller_score,count:u.seller_ratings})},[u]),n.createElement(d,(0,l.A)({rating:c},e))}function d(e){let{showHelp:t,showNotRated:a}=e,r=e.rating.score||0,o=e.rating.count||0;return!(!r&&!a)&&n.createElement("div",{className:"d-flex align-items-center"},n.createElement(c.A,(0,l.A)({score:r,ratings:o},e)),t?n.createElement(s.A,{id:"user-profile",className:"ms-1",title:(0,i._)("How is Seller Rating calculated?"),content:(0,i._)("The Seller Rating is based on both the buyer's feedback and seller's overall sale and responsiveness performance. Seller Rating is shown as <i>Not Available</i> when there are too few feedback or sales.")}):null)}},65320(e,t,a){"use strict";a.r(t),a.d(t,{default:()=>P});var l=a(96540),n=a(55373),r=a.n(n),o=a(92715),c=a(79788),s=a(34500),i=a(73207),m=a(25248),u=a(65518),d=a(85024),p=a(55727),f=a(59534),g=a(70416),E=a(74235),h=a(96048),b=a(56694);function y(e){let{value:t}=e;return l.createElement("button",{className:"copy-btn btn btn-sm btn-clear mx-2",onClick:e=>{navigator.clipboard.writeText(t);const a=e.currentTarget;a.innerHTML="<i class='fa-solid fa-check'></i>",setTimeout(()=>{a.innerHTML="<i class='fa-solid fa-copy'></i>"},500)}},l.createElement("i",{className:"fa-solid fa-copy"}))}var v=a(29379),N=a(36700);function _(){const[e,t]=(0,l.useState)([]),[a,n]=(0,l.useState)(null);(0,l.useEffect)(()=>{r(!0)},[]);const r=l=>{let r={};if(!l&&a&&a.next_page)for(let e in a)"next_page"!=e&&void 0!==a[e]&&(r[e]=a[e]);m.A.gameflip.account.block.list(r).then(a=>{n(a.next||null),a.next&&delete a.next,t(l?a:e.concat(a))}).catch(e=>{o.Log.error(e)})};let c=e.map((a,n)=>l.createElement("div",{className:"mt-2 mb-2 p-3 gf-theme-border",key:n},l.createElement(v.A,{id:a.blocked,options:{show_membership:!0}}),l.createElement("div",{className:"row pt-2"},l.createElement("div",{className:"col"},l.createElement("button",{className:"btn btn-warning btn-sm profile-block-button",onClick:()=>{return l=a.blocked,void m.A.gameflip.account.block.unblockUser(l).then(()=>{t(e.filter(e=>e.blocked!==l))}).catch(e=>{o.Log.error(e)});var l}},l.createElement("span",{className:"fa-solid fa-ban","aria-hidden":"true"})," ",l.createElement("span",{className:"d-none d-sm-inline"},(0,N._)("Unblock"))))))),s=e.length,i=s>0?(0,N._)("Users you are currently blocking:"):(0,N._)("You have not blocked anyone. Anyone you block will be shown below."),u=s<=0?l.createElement("p",{className:"text-muted"},l.createElement("small",null,(0,N._)("Tip"),": ",(0,N._)("To block another user, visit that user profile and select Block."))):"",d=a&&a.next_page?l.createElement("div",{className:"d-flex"},l.createElement("button",{className:"btn btn-primary my-2",onClick:()=>{r(!1)}},"Load More")):"";return l.createElement("div",{className:"d-block"},l.createElement("div",{className:"row"},l.createElement("p",null,i)," ",u),c,d)}var A=a(57470),k=a(50705),w=a(58538),x=a(1933),C=a(99288),S=a(47126);const D=[{id:"dup_account",label:"This is a duplicate account"},{id:"privacy_concerns",label:"I have privacy or data concerns"},{id:"issues_after_receipt",label:"I had issues after receiving a purchased item"},{id:"issues_purchasing",label:"I had issues purchasing an item"},{id:"could_not_sell",label:"I could not sell my listing"},{id:"selling_fee_high",label:"Selling fee is too high"},{id:"other",label:"Other"}];function P(e){const[t,a]=(0,l.useState)(o.Storage.get(C.Yj9)),[n,s]=(0,l.useState)(e.params&&e.params.tab?e.params.tab:"account"),u=(0,x.A)();(0,l.useEffect)(()=>(d.A.setBlock(!1),i.A.setDocumentTitle((0,N._)("Settings")),k.A.onChange(f),k.A.checkLogin(),()=>{d.A.setBlock(!0),k.A.offChange(f)}),[]);let f=()=>{k.A.isLoggedIn&&u()},g=t=>{s(t),e.router.replacePath("/settings",{tab:t})},E=()=>{(0,S.DE)(),m.A.logoutIjji(!0,e=>{k.A.profile={}},e=>{}),A.A.showDialog({dismissable:!1,title:(0,N._)("Close Account"),message:(0,N._)("Your account was successfully deleted."),ok:{label:(0,N._)("OK"),callback:()=>{A.A.hideDialog(),e.router.transitionTo("/")}}})};return k.A.isLoggedIn?(()=>{const a=N.A.ipCountry()||N.A.systemLocale().country,o=a&&"US"==a.toUpperCase();let s=e.location?r().parse(e.location.search,{ignoreQueryPrefix:!0}):{},i="identity"==t,m=k.A.isVerified;return l.createElement("div",{id:"settings",className:"screen container"},l.createElement("h1",null,(0,N._)("Settings")),l.createElement("div",{className:"inner
1-content edit-item px-0"},l.createElement("ul",{className:"nav nav-tabs"},l.createElement("li",{className:"nav-item"},l.createElement("a",{className:"nav-link "+("account"==n?"active":""),onClick:()=>g("account")},(0,N._)("Account"))),m?l.createElement("li",{className:"nav-item"},l.createElement("a",{className:"nav-link "+("payment"==n?"active":""),onClick:()=>g("payment")},(0,N._)("Payment"))):"",l.createElement("li",{className:"nav-item"},l.createElement("a",{className:"nav-link "+("mfa"==n?"active":""),onClick:()=>g("mfa")},(0,N._)("Authentication"))),l.createElement("li",{className:"nav-item"},l.createElement("a",{className:"nav-link "+("notification"==n?"active":""),onClick:()=>g("notification")},(0,N._)("Notification"))),l.createElement("li",{className:"nav-item"},l.createElement("a",{className:"nav-link "+("block"==n?"active":""),onClick:()=>g("block")},(0,N._)("Block"))),m?l.createElement("li",{className:"nav-item"},l.createElement("a",{className:"nav-link "+("develop"==n?"active":""),onClick:()=>g("develop")},(0,N._)("Develop"))):""),l.createElement("div",{id:"accordion",className:"tab-content"},l.createElement("div",{className:"col-12 col-lg-10 tab-pane p-0 p-md-3"+("account"==n?" in active":""),"aria-labelledby":"account-tab"},l.createElement(p.A,{query:s}),i?l.createElement(U,null):"",l.createElement(I,null),l.createElement(R,null),c.A.isProduction&&o?null:l.createElement(M,{onAccountDeleted:E})),m?l.createElement("div",{className:"col-12 col-lg-10 tab-pane p-0 p-md-3"+("payment"==n?" in active":""),"aria-labelledby":"payment-tab"},l.createElement(L,null)):"","mfa"==n?l.createElement("div",{className:"col-12 col-lg-10 tab-pane p-0 p-md-3"+("mfa"==n?" in active":""),"aria-labelledby":"mfa-tab"},l.createElement(F,null)):null,l.createElement("div",{className:"col-12 col-lg-10 tab-pane p-0 p-md-3"+("notification"==n?" in active":""),"aria-labelledby":"notification-tab"},l.createElement(T,null)),l.createElement("div",{className:"col-12 col-lg-10 tab-pane p-0 p-md-3"+("block"==n?" in active":""),"aria-labelledby":"block-tab"},l.createElement(O,null)),m?l.createElement("div",{className:"col-12 col-lg-10 tab-pane p-0 p-md-3"+("develop"==n?" in active":""),"aria-labelledby":"develop-tab"},l.createElement(B,null)):"")))})():l.createElement("div",{id:"settings",className:"screen container"},l.createElement("h1",null,(0,N._)("Settings")),l.createElement("div",{className:"inner-content p-3"},(0,N._)("Please sign in to continue.")))}function L(e){const[t,a]=(0,l.useState)(i.A.defaultPaymentType()),[n,r]=(0,l.useState)(o.Storage.get(C.p5C)),[c,s]=(0,l.useState)(null);(0,l.useEffect)(()=>{u()},[]);let u=()=>{m.A.getPayment(e=>{let t=e.source||{};for(let e in t)if(e==n){s(t[e]);break}},e=>{})},d=(e,t)=>{t?(a(e),r(t.id),s(t)):(a(e),r(""),s(null))},p=e=>{a(e)};return(()=>{let e="";return t&&(e=o.Util.everyCap(t),t==C.ukF&&c&&(e+=`: ${c.name} (*** ${c.last4})`)),l.createElement("div",{className:"container-fluid mt-4 info-table"},l.createElement("h2",{className:"mb-4"},(0,N._)("Payment Methods")),l.createElement(E.A,{type:t,source_id:n,onSelect:d,onSwitch:p}),l.createElement("h2",{className:"mb-4"},(0,N._)("Addresses")),l.createElement(f.A,null))})()}function I(e){const[t,a]=(0,l.useState)(k.A.steam_id),[n,r]=(0,l.useState)(k.A.steam_trade_url),[o,c]=(0,l.useReducer)(e=>e+1,0);(0,l.useEffect)(()=>{let e=$(".trade-url-tooltip");return e.length>0&&e.tooltip(),k.A.onChange(s),()=>{k.A.offChange(s)}},[]);let s=()=>{k.A.isLoggedIn&&c()},u=()=>{i.A.connectSteam(()=>{},e=>{A.A.showErrorDialog(e)})},d=e=>{r(e.target.value)},p=e=>{e.preventDefault();let t=n?n.trim():"";if(t&&0===t.indexOf("https://steamcommunity.com/tradeoffer")){let e=[{op:"replace",path:"/steam_trade_url",value:t}];m.A.patchProfile(e,e=>{k.A.profile=e,A.A.showInfoDialog((0,N._)("Steam Trade URL is updated."))},e=>{A.A.showErrorDialog(e)})}else A.A.showErrorDialog((0,N._)("Steam Trade URL is not valid. Please correct it and retry."))};return(()=>{let e=t,a=n,r=(e?(0,N._)("Your Steam ID"):(0,N._)("Not connected"),"");return r=e?l.createElement("div",{className:"container-fluid section"},l.createElement("div",{className:"row"},l.createElement("div",{className:"col-12 form-group"},(0,N._)("Connect your Steam account with Gameflip is required for selling skins."))),l.createElement("div",{className:"row"},l.createElement("div",{className:"col-2 col-md-2 text-end"},l.createElement("p",null,(0,N._)("Trade URL"),":")),l.createElement("div",{className:"col-10 col-md-9 form-group"},l.createElement("input",{className:"form-control form-control-sm",value:a,onChange:d,placeholder:(0,N._)("Enter your Steam Trade URL")})),l.createElement("div",{className:"d-none d-md-inline-block col-md-1 form-group",style:{padding:"9px 0"}},l.createElement("a",{href:"http://steamcommunity.com/profiles/"+e+"/tradeoffers/privacy#trade_offer_access_url",target:"_blank",rel:"noreferrer",className:"trade-url-tooltip",title:(0,N._)("Find Trade URL in Steam")},l.createElement("span",{className:"fa fa-external-link-alt"})))),l.createElement("div",{className:"text-end"},l.createElement("button",{className:"btn btn-primary form-group"+(a?"":" disabled"),onClick:p},(0,N._)("Update Trade URL")))):l.createElement("div",{className:"container-fluid section"},l.createElement("div",{className:"row"},l.createElement("div",{className:"col-12 form-group"},(0,N._)("Connect your Steam account with Gameflip. You can only connect <b>one</b> Steam account with Gameflip, and you <b>cannot connect</b> another Steam account at any time later.",{__html:!0}))),l.createElement("div",null,l.createElement("img",{className:"signin-steam-btn img-fluid pointer form-group",onClick:u,src:"/img/app/signin_steam.png"}))),l.createElement("div",{className:"container-fluid mt-4"},l.createElement("h2",{className:"mb-4"},(0,N._)("Steam connect")),r)})()}function R(e){const[t,a]=(0,l.useState)([]);(0,l.useEffect)(()=>{n()},[]);let n=()=>{m.A.getAccountConnect("",e=>{let t=e.connects?e.connects.filter(e=>e.provider_properties&&e.provider_properties.verified):[];o.Log.debug(t,"Loaded wallets"),a(t)},e=>{a([]),o.Log.error(e)})};function r(e,t){o.Log.debug(e,"Wallet connect callback"),A.A.hideDialog(),e?A.A.showErrorDialog(e,(0,N._)("Unable to connect wallet")):t&&t.length>0&&a(t)}return l.createElement("div",{className:"container-fluid wrap-mobile-container mt-4"},l.createElement("h2",{className:"mb-4"},(0,N._)("Blockchain Wallets")),l.createElement(s.default,{className:"container-fluid section",wallets:t,blockchain:"ethereum",connectCallback:r,listType:"list"}),l.createElement(s.default,{className:"container-fluid section",wallets:t,blockchain:"polygon",connectCallback:r,listType:"list"}),l.createElement(s.default,{className:"container-fluid section",wallets:t,blockchain:"bsc",connectCallback:r,listType:"list"}))}function T(e){const[t,a]=(0,l.useState)(r()),n=(0,x.A)();function r(){return k.A.isLoggedIn?k.A.profile.notification_prefs:{}}function o(){a(r())}function c(){a(r()),n()}function s(e,a,l){let{following:n,community:r}=t||{}
1,o={following:n||["app"],community:r||["app"]};l.target.checked?o[e].indexOf(a)<0&&o[e].push(a):o[e]=o[e].filter(e=>e!=a),k.A.notification_prefs=o,m.A.putNotificationPrefs(o)}function i(){w.A.subscribePush()}return(0,l.useEffect)(()=>(k.A.onChange(o),w.A.onChange(c),()=>{k.A.offChange(o),w.A.offChange(c)}),[]),(()=>{let e=t.following?t.following:null,a=t.community?t.community:null;return l.createElement("div",{className:"container-fluid mt-4"},l.createElement("table",{className:"table table-bordered"},l.createElement("tbody",null,l.createElement("tr",null,l.createElement("td",null,l.createElement("h4",null,(0,N._)("Transactions"))),l.createElement("td",null,l.createElement("p",{className:"text-muted"},(0,N._)("We always notify you to advise which action to take to complete a sale transaction or a bank transfer.")))),l.createElement("tr",null,l.createElement("td",null,l.createElement("h4",null,(0,N._)("Account Activities"))),l.createElement("td",null,l.createElement("p",{className:"text-muted"},(0,N._)("We always notify you important activities with your account such as password reset or receipt of Credit.")))),l.createElement("tr",null,l.createElement("td",null,l.createElement("h4",null,(0,N._)("Followings"))),l.createElement("td",null,l.createElement("p",{className:"text-muted"},(0,N._)("Notify when you have updates from your followings.")),l.createElement("label",null,(0,N._)("Push"),": ",l.createElement("input",{type:"checkbox",onChange:e=>s("following","push",e),checked:Boolean(e&&e.indexOf("push")>=0)})),"    ",l.createElement("label",null,(0,N._)("Email"),": ",l.createElement("input",{type:"checkbox",onChange:e=>s("following","email",e),checked:Boolean(e&&e.indexOf("email")>=0)})))),l.createElement("tr",null,l.createElement("td",null,l.createElement("h4",null,(0,N._)("Community & Promotions"))),l.createElement("td",null,l.createElement("p",{className:"text-muted"},(0,N._)("Occasionally, we notify you about a community event or promotions.")),l.createElement("label",null,(0,N._)("Push"),": ",l.createElement("input",{type:"checkbox",onChange:e=>s("community","push",e),checked:Boolean(a&&a.indexOf("push")>=0)})),"    ",l.createElement("label",null,(0,N._)("Email"),": ",l.createElement("input",{type:"checkbox",onChange:e=>s("community","email",e),checked:Boolean(a&&a.indexOf("email")>=0)})))),w.A.isSubscribed()?"":l.createElement("tr",null,l.createElement("td",null,l.createElement("h4",null,(0,N._)("Subscribe to Web Notifications"))),l.createElement("td",null,l.createElement("p",{className:"text-muted"},(0,N._)("Get instant notifications of your order status.")),l.createElement("button",{className:"btn btn-primary",onClick:i},(0,N._)("Subscribe")))))))})()}function U(e){const[t,a]=(0,l.useState)(""),[n,r]=(0,l.useState)("");function c(){return t&&n==t}function s(e){a(e.target.value)}function i(e){r(e.target.value)}return(()=>{let e=t&&n&&n!=t;return l.createElement("div",{className:"container-fluid mt-4"},l.createElement("h2",{className:"mb-4"},(0,N._)("Change Password")),l.createElement("div",{className:"row"},l.createElement("div",{className:"col-12 col-md-6"},l.createElement("input",{className:"form-control",autoComplete:"new-password",type:"password",name:"new_password",onChange:s,placeholder:(0,N._)("New Password")}))),l.createElement("div",{className:"row"},l.createElement("div",{className:"col-12 col-md-6 mt-3"+(e?" has-error":"")},l.createElement("input",{className:"form-control",autoComplete:"new-password",type:"password",name:"confirm_password",onChange:i,placeholder:(0,N._)("New Password (Confirmation)")})),e?l.createElement("div",{className:"col-12 small text-danger"},(0,N._)("New password confimation mismatched")):""),l.createElement("div",{className:"row"},l.createElement("div",{className:"col-12 col-md-6 mt-3 mb-3"},l.createElement("button",{className:"btn btn-primary"+(c()?"":" disabled"),onClick:e=>function(e){if(e.preventDefault(),!c())return;let l=t,n="";!l||l.length<10||l.length>30?n=(0,N._)("Password must be 10-30 characters."):o.Validator.assert("hasAlphaLetter",l)?o.Validator.assert("hasUpperCase",l)?o.Validator.assert("hasLowerCase",l)?o.Validator.assert("hasNumber",l)||(n=(0,N._)("Password must contain at least 1 digit.")):n=(0,N._)("Password must contain at least 1 lowercase character."):n=(0,N._)("Password must contain at least 1 uppercase character."):n=(0,N._)("Password must contain at least 1 letter."),n?A.A.showErrorDialog(n):m.A.changePassword(l,e=>{a(""),r(""),$("#password-setting-collapse").collapse("hide"),A.A.showDialog({title:(0,N._)("Password changed"),message:(0,N._)("Your password has been changed successfully."),ok:{label:(0,N._)("OK"),callback:e=>{A.A.hideDialog()}}})},e=>{A.A.showErrorDialog(e)}
1)}(e)},(0,N._)("Change password")))))})()}function F(e){const[t,a]=(0,l.useState)(""),[n,r]=(0,l.useState)([]),[c,s]=(0,l.useState)(null),[i,d]=(0,l.useState)(""),[p,f]=(0,l.useState)("");function E(e){a(e.target.value)}function v(){m.A.getMFAs(e=>{Array.isArray(e)&&(e=o.Util.sortArrayBy(e,"factor",1),r(e))},e=>{A.A.showErrorDialog(e)})}function _(e){f(o.Util.safeString(e.target.value))}function w(e){let t="phone"===e;if(t&&!k.A.isVerified)return k.A.openSignin();if("totp"===e&&Array.isArray(n)&&n.filter(e=>e.name===p).length||"string"==typeof p&&p.toLowerCase().indexOf("gameflip")>=0)return A.A.showErrorDialog((0,N._)("An authentication method with this name already exists."));let a={name:t?"Phone SMS":p||"Authenticator App",factor:e};m.A.createMFA(a,t=>{t&&(s(t),d("totp"===e?"confirm":"")),v()},e=>{A.A.showErrorDialog(e)})}function x(e,t){var a;t?"phone"==e||i?w(e):d("add"):(a=e,A.A.showDialog({title:(0,N._)("Delete ")+`"${a.name}"`,message:(0,N._)("Do you want to delete this method?"),ok:{label:(0,N._)("Delete"),callback:e=>{m.A.deleteMFA(a.id,e=>{c&&c.id===a.id&&"totp"===c.factor&&d(""),s(null),v(),A.A.hideDialog()},e=>{A.A.hideDialog()})}},cancel:{label:(0,N._)("Cancel"),callback:e=>{A.A.hideDialog()}}}))}return(0,l.useEffect)(()=>{v()},[]),(()=>{let e=[],a={[C.r1H]:{icon:"fa-solid fa-mobile-screen-button",title:(0,N._)("Gameflip App"),description:(0,N._)("Open your Gameflip app's Settings to get the security code.")},totp:{icon:"fa-solid fa-qrcode",title:(0,N._)("Authenticator App"),description:(0,N._)("Open your authenticator to get the Gameflip security code.")},phone:{icon:"fa-solid fa-comment-sms",title:(0,N._)("Text Message"),description:(0,N._)("We'll text you the security code.")}},r=!1,f=!1,v=!1,k=0;(n||[]).map(t=>{let n=a[t.factor];t.name===C.r1H||"string"==typeof t.name&&t.name.toLowerCase().indexOf("gameflip")>=0?(n=a[C.r1H],v=!0):"phone"===t.factor?r=!0:"totp"===t.factor&&(f=!0),n&&(e.push(l.createElement("div",{key:"factor_"+k,className:"p-2 mb-2 border rounded "+(c&&c.id===t.id?"text-primary border-primary":"")},l.createElement("div",{className:"d-flex align-items-center"},l.createElement("div",{className:"gf-text-icon ms-2 me-3"},l.createElement("span",{className:n.icon})),l.createElement("div",null,n.title,": ","phone"==t.factor?t.phone_like||"":t.name||"",l.createElement("div",{className:"text-muted"},n.description)),l.createElement("div",{className:"ms-auto me-1"},l.createElement(b.A,{on:!0,onToggle:()=>x(t,!1)}))))),k++)});let S="";if(c&&c.totp_uri){o.Log.debug(c.totp_uri,"totp_uri");try{S=new URL(c.totp_uri).searchParams.get("secret")||""}catch(e){}}return l.createElement("div",{className:"container-fluid mt-4"},l.createElement("h2",{className:"mb-4"},(0,N._)("Two-factor Authentication")),l.createElement("p",null,(0,N._)("Provide additional security to your account by also requiring a code when logging in.")),l.createElement("p",null,n.length?(0,N._)("Current authentication methods")+":":(0,N._)("You currently have not enabled two-factor authentication.")),e,l.createElement("div",{className:"p-2 mb-2 border rounded"},l.createElement("div",{className:i?"mt-1":"d-flex align-items-center"},i?"":l.createElement("div",{className:"gf-text-icon ms-2 me-3"},l.createElement("span",{className:a.totp.icon})),l.createElement("div",{className:"mx-1"},a.totp.title,i||f?"":l.createElement("div",{className:"text-primary small"},(0,N._)("Recommended")),i?"":l.createElement("div",{className:"text-muted"},a.totp.description),i?n.length<5||i?l.createElement("div",{className:"mt-2"},l.createElement("div",null,l.createElement("ol",{className:"px-3 px-md-5 text-muted"},l.createElement("li",null,(0,N._)("Open an authenticator app on your phone and prepare to add a new account.")),l.createElement("li",null,(0,N._)("Type the name of the app into the box below to add it as a method.")),l.createElement("li",null,(0,N._)("Use your app to scan the QR code or manually enter the code."))),l.createElement("ul",{className:"text-muted"},l.createElement("li",null,(0,N._)("Do not refresh this page while adding MFA. If you previously failed to add MFA, please <a href='{support_url}' target='_blank'>contact support</a>.",{__html:!0,support_url:"https://support.gameflip.com/hc/en-us/requests/new"})))),"add"===i?l.createElement("div",{className:"ms-0 ms-md-4"},l.createElement("label",null,l.createElement("input",{className:"form-control",type:"text",maxLength:"32",value:p,onChange:_,placeholder:(0,N._)("App Name")})),l.createElement("br",null),p.length?l.createElement("button",{className:"btn btn-primary mb-4",onClick:()=>w("totp")},l.createElement("span",{className:"fa-solid fa-qrcode"}),"  Generate QR Code"):null):l.createElement("div",{className:"ms-0 ms-md-4"},c&&c.totp_uri?l.createElement("div",{className:"mx-3 mb-3"},l.createElement(h.A,{className:"d-flex justify-content-center",uri:c.totp_uri,size:200}),l.createElement("div",{className:"mt-2 d-flex justify-content-center align-items-center"},l.createElement(y,{value:S})," ",(0,N._)("Code"),":  ",S)):null,"confirm"===i?l.createElement("div",{className:"d-flex justify-content-center"},l.createElement("div",{className:"mt-3"},l.createElement("button",{className:"btn btn-primary mb-4 me-1",onClick:()=>{d("code")}},l.createElement("span",{className:"fa-solid fa-angle-right"}),"  ",(0,N._)("I've scanned the QR code.")))):l.createElement("div",{className:"text-center"},l.createElement("p",{className:"mt-3 text-primary"},(0,N._)("Enter the security code generated by your authenticator"),":"),l.createElement(g.A,{className:"d-flex justify-content-center",value:t,onChange:E,min:6,focused:!0}),l.createElement("div",{className:"mt-3 d-flex justify-content-center pt-3"},l.createElement("button",{className:"btn btn-primary mb-4 me-3",onClick:()=>function(e){let a={action:"respond",code:t?t.trim():""};m.A.postMFA(e.id,a,e=>{d(""),s(null),A.A.showInfoDialog("You have successfully verified the security code.")},e=>{o.Log.error(e,"onConfirmMFA"),A.A.showErrorDialog(e)}
1)}(c)},l.createElement("span",{className:"fa-solid fa-check"}),"  ",(0,N._)("Finish")),l.createElement("button",{className:"btn btn-secondary mb-4",onClick:()=>x(c,!1)},l.createElement("span",{className:"fa fa-trash"}),"  ",(0,N._)("Cancel")))))):l.createElement("p",{className:"text-muted"},(0,N._)("You have added the maximum number of authentication methods. Delete your existing methods to add new ones.")):""),i?"":l.createElement("div",{className:"ms-auto me-1"},l.createElement("button",{className:"btn btn-outline-primary",onClick:()=>{x("totp",!0)}},l.createElement("span",{className:"fa-solid fa-plus"}))))),v?"":l.createElement("div",{className:"p-2 mb-2 border rounded"},l.createElement("div",{className:"d-flex align-items-center"},l.createElement("div",{className:"gf-text-icon ms-2 me-3"},l.createElement("span",{className:a[C.r1H].icon})),l.createElement("div",null,a[C.r1H].title,l.createElement("div",{className:"text-muted"},a[C.r1H].description)),l.createElement("div",{className:"ms-auto me-1"},l.createElement("div",{className:"d-flex flex-column justify-content-end"},l.createElement(u.A,{className:"btn btn-outline-primary ms-2 my-1",href:C.VOf},(0,N._)("Apple")," ",l.createElement("span",{className:"fa-brands fa-app-store-ios"})),l.createElement(u.A,{className:"btn btn-outline-primary ms-2 my-1",href:C.sL8},(0,N._)("Google")," ",l.createElement("span",{className:"fa-brands fa-google-play"})))))))})()}function O(e){return l.createElement("div",{className:"container-fluid mt-4"},l.createElement(_,null))}function B(e){const[t,a]=(0,l.useState)([]);function n(){m.A.gameflip.account.develop.listApiKeys().then(e=>{a(e)}).catch(e=>{A.A.showErrorDialog(e)})}return(0,l.useEffect)(()=>{n()},[]),(0,l.useEffect)(()=>{let e=$(".tooltip-api-key-toggle, .tooltip-api-key-delete");e.length>0&&e.tooltip()},[t]),(()=>{let e=t.map(e=>l.createElement("tr",{key:e.apikey},l.createElement("td",null,l.createElement("b",null,e.apikey)),l.createElement("td",null,e.suspended?l.createElement("small",{className:"text-danger"},(0,N._)("Suspended")):null,e.suspended?null:l.createElement("small",{className:e.active?"text-success":"text-danger"},e.active?(0,N._)("Active"):(0,N._)("Inactive"))),l.createElement("td",null,l.createElement("small",null,l.createElement(o.TimeDisplay,{display:"time-date-locale",options:{year:"numeric",month:"numeric",day:"numeric"},date:e.created}))),l.createElement("td",null,l.createElement("div",{className:"btn btn-outline-secondary btn-sm me-2 tooltip-api-key-toggle",title:e.active?(0,N._)("Disable API Key"):(0,N._)("Enable API Key"),onClick:()=>function(e){let t=!e.active;m.A.gameflip.account.develop.putApiKey(e.apikey,t?"active":"inactive").then(a=>{e.active=t,n()}).catch(e=>{A.A.showErrorDialog(e)})}(e)},l.createElement("span",{className:e.active?"fa fa-toggle-off text-danger":"fa fa-toggle-on text-success"})),l.createElement("div",{className:"btn btn-outline-secondary btn-sm tooltip-api-key-delete",title:(0,N._)("Delete API Key"),onClick:()=>function(e){A.A.showDialog({title:(0,N._)("Delete API Key"),message:(0,N._)("Do you want to delete this API Key?"),ok:{label:(0,N._)("Delete"),callback:l=>{m.A.gameflip.account.develop.removeApiKey(e.apikey).then(l=>{A.A.hideDialog(),a(t.filter(t=>t.apikey!=e.apikey))}).catch(e=>{A.A.showErrorDialog(e)})}},cancel:{label:(0,N._)("Cancel"),callback:e=>{A.A.hideDialog()}}})}(e)}
1,l.createElement("span",{className:"fa fa-trash text-danger"}))))),r=(k.A.isLoggedIn&&k.A.profile.owner,k.A.isVerified);return l.createElement("div",{className:"container-fluid mt-4"},l.createElement("div",{className:"row"},l.createElement("p",{className:"col-12>"},(0,N._)("Gameflip has opened the platform to our developer community with our <a href='https://gameflip.github.io/gfapi/' target='_blank'>Rest API</a>. The current documentation mostly focus on the game items category, particularly with Steam Bot (escrow). However, the API can be used for any listing categories on Gameflip.",{__html:!0})),l.createElement("div",{className:"col-12>"},l.createElement("ul",null,l.createElement("li",null,l.createElement("a",{href:"https://gameflip.github.io/gfapi/",target:"_blank",rel:"noopener"},(0,N._)("API Document"))),l.createElement("li",null,l.createElement("a",{href:"https://github.com/gameflip/gfapi",target:"_blank",rel:"noopener"},(0,N._)("Sample Code")))))),t.length?l.createElement("div",{className:"row"},l.createElement("p",{className:"col-12"},(0,N._)("You are limited to the maximum of 2 API keys. API calls are rate limited to 5 requests per second."))):"",t.length?l.createElement("table",{className:"table table-bordered table-constrained"},l.createElement("thead",null,l.createElement("tr",null,l.createElement("th",
1null,(0,N._)("API Key")),l.createElement("th",null,(0,N._)("Status")),l.createElement("th",null,(0,N._)("Created at")),l.createElement("th",null,(0,N._)("Action")))),l.createElement("tbody",null,e)):"",t.length<2?l.createElement("div",null,l.createElement("button",{className:"btn btn-primary",onClick:()=>{r&&m.A.gameflip.account.develop.postApiKey().then(e=>{a([...t,e]);let n=e.totp?e.totp.secret:"";n&&A.A.showInfoDialog(l.createElement("div",null,l.createElement("p",null,(0,N._)("Please save your TOTP Secret Key below which is needed to generate TOTP Code when requesting Gameflip API. It cannot be retrieved later.")),l.createElement("div",{className:"alert alert-success"},l.createElement("b",null,n))))}).catch(e=>{A.A.showErrorDialog(e)})}},(0,N._)("Create API Key"))):"")})()}function M(e){const[t,a]=(0,l.useState)(null),[n,r]=(0,l.useState)("");return(()=>{let c=!(!t||!t.all_precheck_passed),s=[];t&&!c&&(t.precheck||[]).map((e,t)=>{e.passed||s.push(l.createElement("div",{key:t,className:"text-muted my-2"},e.reason))});let i=n&&(c||!t),u=c?(0,N._)("Confirm Closing Account"):(0,N._)("Proceed");return l.createElement("div",{className:"container-fluid mt-4"},l.createElement("h2",{className:"mb-4"},(0,N._)("Close Account")),l.createElement("p",null,(0,N._)("For your safety, please remove all your payment methods and active listings before closing your account. Closing account will permanently delete all your data and cannot be undone!")),l.createElement(o.Dropdown,{className:"mb-2",labelClass:"gf-font-label gf-font-body small text-capitalize fw-normal",onSelect:r,name:"feedback",label:(0,N._)("Feedback"),selections:D,selectedId:n}),l.createElement("p",{className:"small"},(0,N._)("Before closing your account, please let us know why you are leaving.")),l.createElement("div",{className:"row mt-4"},o.Util.isEmpty(s)?null:l.createElement("div",{className:"col-12 my-2 text-danger"},(0,N._)("There were issues preventing account closure and deletion.")),l.createElement("div",{className:"col-12"},o.Util.isEmpty(s)?l.createElement("button",{className:"btn btn-danger"+(i?"":" disabled"),onClick:i?l=>{t&&t.all_precheck_passed?m.A.postAccountDeletion("delete",n,t=>{a(t),e.onAccountDeleted&&e.onAccountDeleted()},e=>{A.A.showErrorDialog(e)}):m.A.postAccountDeletion("check","",e=>{a(e)},e=>{A.A.showErrorDialog(e)})}:null},u):l.createElement("button",{className:"btn btn-primary",onClick:()=>(e=>{A.A.showInfoDialog(l.createElement("div",null,l.createElement("p",null,(0,N._)("You need to resolve the following issues before closing your account:")),l.createElement("div",{className:"mx-2"},e),l.createElement("p",null,(0,N._)("If you cannot resolve these issues, please contact support."))))})(s)},(0,N._)("View Issues")))))})()}},47790(){},15340(){},79838(){}}]);

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.