PageSourceSearch

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

js nameclub.com collected 2026-10-09 22:41:44 UTC 2,953 bytes, 1 lines download raw bytes

1import{L as D}from"./f0wPVi6-.js";import{k as d,u as M,a7 as R}from"./CYMs3uwY.js";const L=Symbol("domainFilterState"),I={Seconds:"SECONDS",Minutes:"MINUTES",Hours:"HOURS",Days:"DAYS"},x=()=>{const h={orderBy:void 0,top10:null,keyword:null,tlds:[],categoryIds:[],characterCountStart:null,characterCountEnd:null,priceStart:null,priceEnd:null,startWith:null,endWith:null,isPremium:null,ageStart:null,ageEnd:null,noNumber:null,noHyphens:null,noIdn:null,onlyIdn:null,onlyNumber:null,endTimeUnit:"MINUTES",endTimeValue:null,hasBid:null,inboundRanges:[]},l=d(h),v=d(),b=e=>{v.value=e,e&&e.categories&&e.categories.forEach(t=>{T(t.value,t.displayName)})};function c(e){l.value=e}const g=()=>{l.value={...h}},y=()=>{const e=A;return{handleInputItems:(a,u)=>{e(a,u)}}},r=d([]),m=d({});function T(e,t){m.value[e]=t}function E(e){m.value[e]=void 0}function A(e,t){c({...l.value,[e]:t});const a=e==="endTimeUnit"?"endTimeValue":e,u=l.value.endTimeUnit&&l.value.endTimeValue,o=r.value.findIndex(i=>i.key===a);if(a==="endTimeValue")if(u){const i=Object.keys(I).find(p=>I[p]===l.value.endTimeUnit)||l.value.endTimeUnit,s={key:a,value:l.value.endTimeValue+" "+i,label:f(e)};o!==-1?r.value[o]=s:r.value.push(s)}else o!==-1&&r.value.splice(o,1);else if(t!=null&&t!==""){let i;e==="categoryIds"?i={key:e,value:t,label:m.value[e]||e,displayNames:t.map(s=>m.value[s]||s)}:e==="inboundRanges"?i={key:e,value:t,label:f(e),displayNames:t.map(s=>s.max?`${s.min}-${s.max}`:`${s.min}+`)}:i={key:e,value:t,label:f(e)},o!==-1?r.value[o]=i:r.value.push(i)}else o!==-1&&r.value.splice(o,1)}function N(e,t){if(Array.isArray(l.value[e])){const a=l.value[e];c({...l.value,[e]:a==null?void 0:a.filter(u=>u!==t)})}else c({...l.value,[e]:null});r.value=r.value.filter(a=>{var u;if(a.key===e){if(Array.isArray(a.value)){const o=a.value.filter(s=>s!==t),i=(u=a.displayNames)==null?void 0:u.filter((s,p)=>a.value[p]!==t);return a.value=o,a.displayNames=i,a.value.length>0}return!1}return!0}),c({...l.value})}function C(){r.value=[],g()}const{t:n}=M();function f(e){return{orderBy:n("order-by"),top10:n("top-10"),keyword:n("key-word"),tlds:n("tlds"),categoryIds:n("category-ids"),characterCountStart:n("min-characters"),characterCountEnd:n("max-characters"),priceStart:n("price-start"),priceEnd:n("price-end"),startWith:n("start-with"),endWith:n("end-with"),isPremium:n("is-premium"),ageStart:n("age-start"),ageEnd:n("age-end"),noNumber:n("no-number"),noHyphens:n("no-hyphens"),noIdn:n("no-special-characters"),endTimeUnit:n("End Time"),endTimeValue:n("End Time"),inboundRanges:n("Inbound Links")}[e]||e}const U=()=>{localStorage.removeItem(D.RecentSearchId)},S=d([]);return{anchor:l,setAnchor:c,resetAnchor:g,processFilterItems:y,tags:r,removeTag:N,clearAllTags:C,updateCategoryInfo:T,removeCategoryInfo:E,clearRecentSearch:U,filters:v,setFilters:b,relatedCategories:S,setRelatedCategories:e=>{S.value=e||[]}}},W=R("marketplaceStore",()=>x(),{persist:!1});export{L as D,I as E,x as a,W as u};

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.