PageSourceSearch

https://www.nameclub.com/web/assets/0u3Tc7F6.js

js nameclub.com collected 2026-10-09 22:43:32 UTC 5,269 bytes, 1 lines download raw bytes

1import{u as Q}from"./C5oLZy4O.js";import{f as P}from"./D58YUMHe.js";import{d as W,u as X,s as Z,v as p,k as R,B as ee,j as N,o as u,c as f,a as t,t as c,h as s,O as te,e as k,n as _,L as se,b as G,w as g,l as Y,F as ae,K as ne,i as oe}from"./CYMs3uwY.js";import"./CaUHonIL.js";const ce={class:"incoming-right-side-container"},re={class:"accept-price"},ie={class:"currency-panel"},le={class:"offer-status-text"},ue={key:0,class:"price-detail-info"},de={key:0,class:"price-detail-content"},me={key:0,class:"top"},pe={key:1,class:"overlay"},fe={class:"content"},_e={class:"price"},Ee={class:"operate"},Ce={key:1,class:"div-panel progress-check-content"},De={class:"process-top"},ye={class:"process-content"},Ie=W({__name:"index",props:{isLocked:{type:Boolean},lastNewPriceItem:{},infoData:{}},emits:["update:is-lock","refresh:info-data"],async setup(U,{emit:x}){let S,w;const{t:a}=X(),r=U,A=x,{fetchChatOfferSetListingPrice:F}=([S,w]=Z(()=>Q()),S=await S,w(),S),n={ACTIVE:"ACTIVE",LISTING_PRICE_SET:"LISTING_PRICE_SET",ACCEPTED:"ACCEPTED",CLOSED_BY_BUYER:"CLOSED_BY_BUYER",ORDER_CREATED:"ORDER_CREATED"},z=p(()=>[a("start-negotiation"),a("negotiation-in-progress"),a("payment"),a("transaction-complete")]),E=R(1),h=R(!1),j=R(!1);ee(()=>{var e,o;return(o=(e=r.infoData)==null?void 0:e.status)==null?void 0:o.name},e=>{switch(e){case n.LISTING_PRICE_SET:case n.ACCEPTED:E.value=2;break;case n.ACTIVE:E.value=1;break;case n.ORDER_CREATED:E.value=3;break;default:E.value=4}},{immediate:!0});const K=()=>{A("update:is-lock")},$=async()=>{h.value=!0;try{const{setListingPriceRes:e}=await F(r.infoData.offerId);e.value===!0&&(j.value=!0,A("refresh:info-data"))}catch(e){console.error("Submit error:",e)}finally{h.value=!1}},b=p(()=>{var e,o,i,l,m,d,C,D,y,I;if(((o=(e=r.infoData)==null?void 0:e.status)==null?void 0:o.name)===n.ACCEPTED||((l=(i=r.infoData)==null?void 0:i.status)==null?void 0:l.name)===n.LISTING_PRICE_SET)return{text:a("offer-has-been-accepted"),iconColor:"#229e94"};if((d=(m=r.infoData)==null?void 0:m.status)!=null&&d.closed){const T=((D=(C=r.infoData)==null?void 0:C.status)==null?void 0:D.name)===n.CLOSED_BY_BUYER?a("buyer"):a("yourself");return{text:a("closed-by",{who:T}),iconColor:"#eec200"}}else if(((I=(y=r.infoData)==null?void 0:y.status)==null?void 0:I.name)===n.ORDER_CREATED)return{text:a("transaction-processing"),iconColor:"#229e94"};return{text:a("negotiation-in-progress"),iconColor:"#eec200"}}),v=p(()=>{var e,o,i,l,m,d;return((o=(e=r.infoData)==null?void 0:e.status)==null?void 0:o.name)===n.ACCEPTED||((l=(i=r.infoData)==null?void 0:i.status)==null?void 0:l.name)===n.LISTING_PRICE_SET||((d=(m=r.infoData)==null?void 0:m.status)==null?void 0:d.name)===n.ORDER_CREATED}),L=p(()=>{var e,o,i,l;return((o=(e=r.infoData)==null?void 0:e.status)==null?void 0:o.name)===n.ACCEPTED||((l=(i=r.infoData)==null?void 0:i.status)==null?void 0:l.name)===n.ACTIVE}),B=p(()=>{const e=parseFloat(r.lastNewPriceItem.amount);return isNaN(e)?0:e}),q=p(()=>(B.value*.001).toFixed(2)),H=p(()=>B.value*.9);return(e,o)=>{var d,C,D,y,I,T,O,V;const i=N("DynaButton"),l=N("DynaStepsItem"),m=N("DynaSteps");return u(),f("div",ce,[t("div",{class:se(["div-panel info-content",{accepted:s(v)}])},[t("span",null,c(s(a)("accepted-price"))+":",1),t("span",re,c(s(v)?e.lastNewPriceItem.currencySymbol+s(P)(e.lastNewPriceItem.amount):`${e.lastNewPriceItem.currencySymbol} ——`),1),t("span",ie,c(e.lastNewPriceItem.currency),1),t("div",le,[t("span",null,[t("i",{class:"fa-solid fa-circle fa-2xs",style:te({color:s(b).iconColor})},null,4),k(" "+c(s(b).text),1)])]),((C=(d=e.infoData)==null?void 0:d.status)==null?void 0:C.name)===n.LISTING_PRICE_SET||((y=(D=e.infoData)==null?void 0:D.status)==null?void 0:y.name)===n.ACCEPTED?(u(),f("div",ue,[t("span",null,[t("label",null,"10% "+c(s(a)("commission")),1),t("span",null,c(" - "+e.lastNewPriceItem.currencySymbol+s(q)),1)]),t("span",null,[t("label",null,c(s(a)("total")),1),t("span",null,c(e.lastNewPriceItem.currencySymbol+s(P)(e.lastNewPriceItem.amount)),1)])])):_("",!0)],2),s(v)?(u(),f("div",de,[e.isLocked&&s(L)?(u(),f("div",me,[G(i,{class:"lock-btn",type:"dark",onClick:K},{default:g(()=>[k(c(s(a)("unlock-account")),1)]),_:1})])):_("",!0),e.isLocked&&s(L)?(u(),f("div",pe)):_("",!0),t("div",fe,[t("span",null,c(s(a)("you-will-get")),1),t("span",_e,c(e.lastNewPriceItem.currencySymbol+s(P)(s(H))),1),t("span",null,[k(c(s(a)("deposited-to-your-balance"))+" ",1),o[0]||(o[0]=t("i",{class:"fa-regular fa-circle-exclamation"},null,-1))])]),t("div",Ee,[((T=(I=e.infoData)==null?void 0:I.status)==null?void 0:T.name)===n.ACCEPTED?(u(),Y(i,{key:0,class:"confirm-btn",type:"primary",loading:s(h),onClick:$},{default:g(()=>[k(c(s(a)("confirm-sale")),1)]),_:1},8,["loading"])):_("",!0)])])):_("",!0),(V=(O=e.infoData)==null?void 0:O.status)!=null&&V.closed?_("",!0):(u(),f("div",Ce,[t("div",De,[o[1]||(o[1]=t("i",{class:"fa-regular fa-clipboard-list"},null,-1)),t("span",null,[t("label",null,c(s(a)("progress-check")),1
1),t("span",null,c(s(a)("keep-track-of-your-progress")),1)])]),t("div",ye,[G(m,{current:s(E),direction:"vertical"},{default:g(()=>[(u(!0),f(ae,null,ne(s(z),(J,M)=>(u(),Y(l,{key:M,title:J},null,8,["title"]))),128))]),_:1},8,["current"])])]))])}}}),ve=oe(Ie,[["__scopeId","data-v-5c798166"]]);export{ve as default};

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.