PageSourceSearch

https://www.nameclub.com/web/assets/SfxZc_aU.js

js nameclub.com collected 2026-10-09 22:42:22 UTC 10,562 bytes, 1 lines download raw bytes

1import{_ as Pe}from"./BvWtaWD2.js";import{_ as $e}from"./BknL7_eZ.js";import{_ as Ee,u as Z,a as Te}from"./DOSpfdo9.js";import{d as M,N as he,j as D,o as v,l as _,w as d,b as m,a as i,t as w,g as K,a0 as ee,e as Ce,P as Le,i as ne,O as j,a1 as Ae,U as oe,u as Ne,y as Ue,s as Fe,k as p,v as te,$ as Re,x as ze,B as L,V as Ie,c as Oe,h as t,r as je,n as A,m as ae}from"./CYMs3uwY.js";import{_ as Be}from"./BA_hDSs6.js";import{D as B}from"./CaUHonIL.js";import{u as Ke}from"./DGl7_Nuf.js";import{u as Me}from"./CZe-7otn.js";import{c as le}from"./BBJA_3oe.js";import"./CFprKcbD.js";const Ye={style:{width:"100%"}},qe={class:"input-currency-group"},Ge={style:{width:"100%"}},We=M({__name:"Filter",props:Le({options:{},applyFilter:{type:Function},dateOptions:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(N){const o=he(N,"modelValue");return(s,e)=>{const f=D("DynaInputCurrency"),b=D("dyna-radio"),c=D("dyna-radio-group"),$=D("DynaSelect"),U=Ee;return v(),_(U,{options:s.options,"apply-filter":s.applyFilter,"filter-data":o.value},{"component-totalPrice":d(()=>[m(c,{modelValue:o.value.totalPrice.isExactPrice,"onUpdate:modelValue":e[3]||(e[3]=n=>o.value.totalPrice.isExactPrice=n),class:"installments-radio"},{default:d(()=>[m(b,{value:!1},{default:d(()=>[i("div",Ye,w(s.$t("interval-search")),1),K(i("div",qe,[m(f,{modelValue:o.value.totalPrice.priceStart,"onUpdate:modelValue":e[0]||(e[0]=n=>o.value.totalPrice.priceStart=n)},null,8,["modelValue"]),e[5]||(e[5]=Ce(" - ")),m(f,{modelValue:o.value.totalPrice.priceEnd,"onUpdate:modelValue":e[1]||(e[1]=n=>o.value.totalPrice.priceEnd=n)},null,8,["modelValue"])],512),[[ee,!o.value.totalPrice.isExactPrice]])]),_:1}),m(b,{value:!0},{default:d(()=>[i("div",Ge,w(s.$t("exact-search")),1),K(m(f,{modelValue:o.value.totalPrice.priceExact,"onUpdate:modelValue":e[2]||(e[2]=n=>o.value.totalPrice.priceExact=n)},null,8,["modelValue"]),[[ee,o.value.totalPrice.isExactPrice]])]),_:1})]),_:1},8,["modelValue"])]),"component-dueDate":d(()=>[m($,{modelValue:o.value.dueDate,"onUpdate:modelValue":e[4]||(e[4]=n=>o.value.dueDate=n),options:s.dateOptions,placeholder:s.$t("select-option(s)")},null,8,["modelValue","options","placeholder"])]),_:1},8,["options","apply-filter","filter-data"])}}}),He=ne(We,[["__scopeId","data-v-1045e045"]]),Je=["onClick"],Qe=M({__name:"Table",props:{data:{},columns:{},installmentsType:{}},setup(N){const o=s=>oe(`/account/installments/income/${s.installmentPlanId}`);return(s,e)=>{const f=D("DynaTooltip"),b=D("DynaTable");return v(),_(b,Ae({data:s.data,columns:s.columns},s.$attrs),{"head-defaultDate":d(()=>[i("span",null,w(s.$t("default-date")),1),m(f,{effect:"dark",content:s.$t("The default date refers to the time of default. After default occurs, the domain name will be returned to {target}.",{target:s.installmentsType==="due"?s.$t("seller"):s.$t("you")})},{default:d(()=>e[0]||(e[0]=[i("i",{class:"fa-regular fa-circle-question defaulted mx-1"},null,-1)])),_:1},8,["content"])]),domain:d(({row:c})=>[i("span",{onClick:$=>o(c)},w(c.domain),9,Je)]),dueDate:d(({row:c})=>[i("span",{style:j({color:c.planStatus===2?"#f39201":""})},w(c.dueDate),5)]),planStatusDisplay:d(({row:c})=>[i("span",{style:j({color:c.planStatus===2?"#f39201":""})},w(c.planStatusDisplay),5)]),defaultDate:d(({row:c})=>[i("span",{style:j({color:c.planStatus===2?"#f39201":""})},w(c.defaultDate),5)]),_:1},16,["data","columns"])}}}),Xe={class:"installments-container"},Ze={class:"installments-top"},et={class:"title-action-row"},tt={class:"nav-switch-content"},at={class:"manage-domains-table-container"},lt={class:"top-content"},nt={class:"panel-input-content"},ot=["value","placeholder"],st=M({__name:"index",async setup(N){let o,s;const{t:e}=Ne(),{currency:f}=Ue(),{fetchInstallmentsList:b,downloadInstallments:c}=([o,s]=Fe(()=>Ke()),o=await o,s(),o),$=e("installments"),U=p([{id:0,name:e("view-completed / cancelled"),title:e("View Completed / Cancelled"),value:0},{id:1,name:e("Download List"),title:e("Download List"),value:1}]),n=p({currency:f,isDue:!0,isGoing:!0,dueDate:"ALL",current:1,size:10,countTotal:!0,keywords:""}),y=p({currency:f,isDue:!1,isGoing:!0,dueDate:"ALL",current:1,size:10,
1countTotal:!0,keywords:""}),F=p(!1),E=p(0),T=p(0),se=te(()=>[{key:"due",displayName:e("due"),count:E.value},{key:"income",displayName:e("income"),count:T.value}]),u=p(Re().query.active||"due"),R=p([]),z=p([]),h=async a=>{F.value=!0;const l=a?a==="due":u.value==="due";try{const r=await b(l?{...n.value}:{...y.value});l?(E.value=E.value||r.data.total,R.value=r.data.records||[]):(T.value=T.value||r.data.total,z.value=r.data.records||[])}finally{F.value=!1}};ze(()=>{h("due"),h("income")}),L(()=>n.value,()=>{h()},{deep:!0}),L(()=>y.value,()=>{h()},{deep:!0});const{values:ie,updateValue:I}=Me({fields:{keywords:{initialValue:"",transform:a=>String(a).trim(),validator:a=>a.length<=100}},delay:300,callback:a=>{u.value==="due"?n.value.keywords=a.keywords:y.value.keywords=a.keywords}}),re=[{key:"domain",title:e("domains"),clickable:!0},{key:"dueDate",title:e("due-date"),sortable:!0,sortKey:"nextDueDate"},{key:"monthlyReceivable",title:e("due")},{key:"totalSent",title:e("total-sent")},{key:"totalPrice",title:e("total-price")},{key:"outstanding",title:e("outstanding")},{key:"defaultDate",title:e("default-date"),sortable:!0,sortKey:"nextDefaultedDate"},{key:"planStatusDisplay",title:e("status")}],ue=[{key:"domain",title:e("domains"),clickable:!0},{key:"totalPrice",title:e("total-price")},{key:"totalReceived",title:e("total-received")},{key:"outstanding",title:e("outstanding")},{key:"monthlyReceivable",title:e("monthly-received")},{key:"dueDate",title:e("due-date"),sortable:!0,sortKey:"nextDueDate"},{key:"defaultDate",title:e("default-date"),sortable:!0,sortKey:"nextDefaultedDate"},{key:"planStatusDisplay",title:e("status")}],de=te(()=>u.value==="due"?e("no-active-due"):e("no-active-income")),ce=a=>{u.value!==a.key&&(u.value=a.key,u.value==="due"?(n.value.sorts="",I("keywords",n.value.keywords)):(y.value.sorts="",I("keywords",y.value.keywords)))},pe=async a=>{if(a.value===0)return oe(`/account/installments/${u.value}`);if(a.value===1)try{const l=await c({currency:f,statuses:"1,2",type:u.value}),r=`${u.value}-installments.xlsx`,S=window.URL.createObjectURL(l),g=document.createElement("a");g.href=S,g.setAttribute("download",r),document.body.appendChild(g),g.click(),document.body.removeChild(g),window.URL.revokeObjectURL(S)}catch(l){console.error(`${e("download-failed")}`,l)}},Y=(a,l)=>{const r=l.map(S=>`${S.column.sortKey}_${S.order}`);if(u.value==="due"){n.value.sorts=r.join(",");return}y.value.sorts=r.join(",")},O=[{id:0,name:"0-7 days",title:e("due-in-0-7-days"),value:"LAST_7_DAYS"},{id:1,name:"0-14 days",title:e("due-in-0-14-days"),value:"LAST_14_DAYS"},{id:2,name:"0-30 days",title:e("due-in-0-30-days"),value:"LAST_30_DAYS"}],C=[{key:"totalPrice",name:e("total-price"),canApply:a=>a.isExactPrice?!!a.priceExact:!!(a.priceStart||a.priceStart===0)&&(a.priceEnd||a.priceEnd===0),toTag:a=>a.isExactPrice?{label:`${e("total-price")}: $ ${a.priceExact} `}:{label:`${e("total-price")}: $ ${a.priceStart} - $${a.priceEnd}`}},{key:"dueDate",name:e("due-date"),canApply:a=>!!a,toTag:a=>{var l;return{label:`${e("due-date")}: ${(l=O.find(r=>r.value===a))==null?void 0:l.title}`}}}],me=p(C),ye=p(C),q={totalPrice:{priceStart:NaN,priceEnd:NaN,priceExact:NaN,isExactPrice:!1},dueDate:""},x=p(le(q)),P=p(le(q)),{tags:G,removeTag:ve,filterValue:fe,applyFilter:_e}=Z(me,x),{tags:W,removeTag:De,filterValue:ge,applyFilter:ke}=Z(ye,P),H=(a,l)=>{l.value.dueDate=a.dueDate||"ALL";const r=a.totalPrice;if(r.isExactPrice){l.value.isExactPrice=!0,l.value.priceExact=new B(r.priceExact).times(100).toNumber(),delete l.value.priceStart,delete l.value.priceEnd;return}delete l.value.isExactPrice,delete l.value.priceExact,l.value.priceStart=new B(r.priceStart).times(100).toNumber(),l.value.priceEnd=new B(r.priceEnd).times(100).toNumber()};return L(()=>fe,a=>{H(a.value,n)},{deep:!0}),L(()=>ge,a=>{H(a.value,y)},{deep:!0}),Ie(()=>{}),(a,l)=>{const r=Pe,S=$e,g=He,we=D("DynaSelect"),J=Te,Q=Qe,Se=D("DynaEmpty"),Ve=Be,be=D("DynaPanel"),xe=je("loading");return v(),Oe("div",Xe,[m(r,{title:t(e)("installments")},null,8,["title"]),i("div",Ze,[i("div",et,[i("span",null,w(t($)),1)]),i("div",tt,[m(S,{tabs:t(se),"initial-active-key":"due",onTabChange:ce},null,8,["tabs"])])]),i("div",at,[m(be,null,{"top-free":d(()=>[i("div",lt,[t(u)==="due"?(v(),_(g,{key:0,modelValue:t(x),"onUpdate:modelValue":l[0]||(l[0]=k=>ae(x)?x.value=k:null),"date-options":O,options:C,"apply-filter":t(_e),"filter-data":t(x)},null,8,["modelValue","apply-filter","filter-data"])):(v(),_(g,{key:1,modelValue:t(P),"onUpdate:modelValue":l[1]||(l[1]=k=>ae(P)?P.value=k:null),"date-options":O,options:C,"apply-filter":t(ke),"filter-data":t(P)},null,8,["modelValue","apply-filter","filter-data"])),i("div",nt,[l[7]||(l[7]=i("i",{class:"fa-light fa-magnifying-glass"},null,-1)),i("input",{value:t(ie).keywords.value,placeholder:t(e)("search-domain"),onInput:l[2]||(l[2]=k=>t(I)("keywords",k.target.value))},null,40,ot)]),m(we,{"model-value":void 0,options:t(U),"only-placeholder":!0,offset:[-210,-90],"close-others":"","popup-auto-width":"",class:"select-no-border",onChange:pe},{"custom-trigger":d(()=>l[8]||(l[8]=[i("i",{class:"fa-regular fa-ellipsis-vertical text-xl"},null,-1)])),_:1},8,["options"])])]),default:d(()=>[m(Ve,null,{default:d(()=>{var k,X;return[t(u)==="due"&&t(G).length?(v(),_(J,{key:0,tags:t(G),"onRemove:tag":t(ve)},null,8,["tags","onRemove:tag"])):A("",!0),t(u)==="income"&&t(W).length?(v(),_(J,{key:1,tags:t(W),"onRemove:tag":t(De)},null,8,["tags","onRemove:tag"])):A("",!0),K((v(),_(Se,{empty:t(u)==="due"&&!((k=t(R))!=null&&k.length)||t(u)==="income"&&!((X=t(z))!=null&&X.length),style:{"font-size":"20px"},text:t(de),"text-position":"top"},{default:d(()=>[t(u)==="due"?(v(),_(Q,{key:0,current:t(n).current,"onUpdate:current":l[3]||(l[3]=V=>t(n).current=V),size:t(n).size,"onUpdate:size":l[4]||(l[4]=V=>t(n).size=V),total:t(E),columns:re,data:t(R),"sorts-type":"multiple","
1installments-type":"due",onSort:Y},null,8,["current","size","total","data"])):A("",!0),t(u)==="income"?(v(),_(Q,{key:1,current:t(y).current,"onUpdate:current":l[5]||(l[5]=V=>t(y).current=V),size:t(y).size,"onUpdate:size":l[6]||(l[6]=V=>t(y).size=V),total:t(T),columns:ue,data:t(z),"sorts-type":"multiple","installments-type":"income",onSort:Y},null,8,["current","size","total","data"])):A("",!0)]),_:1},8,["empty","text"])),[[xe,t(F)]])]}),_:1})]),_:1})])])}}}),_t=ne(st,[["__scopeId","data-v-18410c68"]]);export{_t 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.