mirror of
https://github.com/rekryt/iplist.git
synced 2025-10-13 00:49:36 +03:00
2 lines
29 KiB
JavaScript
2 lines
29 KiB
JavaScript
var Be=Object.defineProperty;var Se=(t,e,i)=>e in t?Be(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var L=(t,e,i)=>Se(t,typeof e!="symbol"?e+"":e,i);import{P as Te,k as F,Q as j,a as Re,R as G,S as Ue,T as Ee,U as Ne,H as Oe,V as ee,W as ke,r as I,s as se,X as je,Y as Fe,Z as Ge,O as o,$ as $e,a0 as ve,a1 as ze,a2 as Me,d as ie,N as oe,g as C,J as U,y as R,a3 as B,C as v,B as m,x as Le,D as H,A as k,a4 as Ze,a5 as Ae,K as Z,z as A,M as qe,_ as He}from"./c1Vu_d4w.js";const We={trailing:!0};function Je(t,e=25,i={}){if(i={...We,...i},!Number.isFinite(e))throw new TypeError("Expected `wait` to be a finite number");let a,l,s=[],n,p;const r=(b,f)=>(n=Qe(t,b,f),n.finally(()=>{if(n=null,i.trailing&&p&&!l){const P=r(b,p);return p=null,P}}),n);return function(...b){return n?(i.trailing&&(p=b),n):new Promise(f=>{const P=!l&&i.leading;clearTimeout(l),l=setTimeout(()=>{l=null;const d=i.leading?a:r(this,b);for(const w of s)w(d);s=[]},e),P?(a=r(this,b),f(a)):s.push(f)})}}async function Qe(t,e,i){return await t.apply(e,i)}const Xe=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],Ye=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Ke="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",q=[];class et{constructor(){L(this,"_data",new J);L(this,"_hash",new J([...Xe]));L(this,"_nDataBytes",0);L(this,"_minBufferSize",0)}finalize(e){e&&this._append(e);const i=this._nDataBytes*8,a=this._data.sigBytes*8;return this._data.words[a>>>5]|=128<<24-a%32,this._data.words[(a+64>>>9<<4)+14]=Math.floor(i/4294967296),this._data.words[(a+64>>>9<<4)+15]=i,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,i){const a=this._hash.words;let l=a[0],s=a[1],n=a[2],p=a[3],r=a[4],b=a[5],f=a[6],P=a[7];for(let d=0;d<64;d++){if(d<16)q[d]=e[i+d]|0;else{const _=q[d-15],y=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,N=q[d-2],x=(N<<15|N>>>17)^(N<<13|N>>>19)^N>>>10;q[d]=y+q[d-7]+x+q[d-16]}const w=r&b^~r&f,c=l&s^l&n^s&n,h=(l<<30|l>>>2)^(l<<19|l>>>13)^(l<<10|l>>>22),S=(r<<26|r>>>6)^(r<<21|r>>>11)^(r<<7|r>>>25),$=P+S+w+Ye[d]+q[d],E=h+c;P=f,f=b,b=r,r=p+$|0,p=n,n=s,s=l,l=$+E|0}a[0]=a[0]+l|0,a[1]=a[1]+s|0,a[2]=a[2]+n|0,a[3]=a[3]+p|0,a[4]=a[4]+r|0,a[5]=a[5]+b|0,a[6]=a[6]+f|0,a[7]=a[7]+P|0}_append(e){typeof e=="string"&&(e=J.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let i,a=this._data.sigBytes/64;e?a=Math.ceil(a):a=Math.max((a|0)-this._minBufferSize,0);const l=a*16,s=Math.min(l*4,this._data.sigBytes);if(l){for(let n=0;n<l;n+=16)this._doProcessBlock(this._data.words,n);i=this._data.words.splice(0,l),this._data.sigBytes-=s}return new J(i,s)}}class J{constructor(e,i){L(this,"words");L(this,"sigBytes");e=this.words=e||[],this.sigBytes=i===void 0?e.length*4:i}static fromUtf8(e){const i=unescape(encodeURIComponent(e)),a=i.length,l=[];for(let s=0;s<a;s++)l[s>>>2]|=(i.charCodeAt(s)&255)<<24-s%4*8;return new J(l,a)}toBase64(){const e=[];for(let i=0;i<this.sigBytes;i+=3){const a=this.words[i>>>2]>>>24-i%4*8&255,l=this.words[i+1>>>2]>>>24-(i+1)%4*8&255,s=this.words[i+2>>>2]>>>24-(i+2)%4*8&255,n=a<<16|l<<8|s;for(let p=0;p<4&&i*8+p*6<this.sigBytes*8;p++)e.push(Ke.charAt(n>>>6*(3-p)&63))}return e.join("")}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let i=0;i<e.sigBytes;i++){const a=e.words[i>>>2]>>>24-i%4*8&255;this.words[this.sigBytes+i>>>2]|=a<<24-(this.sigBytes+i)%4*8}else for(let i=0;i<e.sigBytes;i+=4)this.words[this.sigBytes+i>>>2]=e.words[i>>>2];this.sigBytes+=e.sigBytes}}function tt(t){return new et().finalize(t).toBase64()}function W(t){return tt(Te(t))}const at=Symbol.for("nuxt:client-only"),lt=t=>t==="defer"||t===!1;function st(...t){var w;const e=typeof t[t.length-1]=="string"?t.pop():void 0;it(t[0],t[1])&&t.unshift(e);let[i,a,l={}]=t;const s=F(()=>j(i));if(typeof s.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a string.");if(typeof a!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const n=Re();l.server??(l.server=!0),l.default??(l.default=nt),l.getCachedData??(l.getCachedData=_e),l.lazy??(l.lazy=!1),l.immediate??(l.immediate=!0),l.deep??(l.deep=G.deep),l.dedupe??(l.dedupe="cancel"),l._functionName,n._asyncData[s.value];const p={cause:"initial",dedupe:l.dedupe};(w=n._asyncData[s.value])!=null&&w._init||(p.cachedData=l.getCachedData(s.value,n,{cause:"initial"}),n._asyncData[s.value]=ce(n,s.value,a,l,p.cachedData));const r=n._asyncData[s.value];r._deps++;const b=()=>n._asyncData[s.value].execute(p),f=l.server!==!1&&n.payload.serverRendered;{let c=function(_){const y=n._asyncData[_];y!=null&&y._deps&&(y._deps--,y._deps===0&&(y==null||y._off()))};const h=Ue();if(h&&f&&l.immediate&&!h.sp&&(h.sp=[]),h&&!h._nuxtOnBeforeMountCbs){h._nuxtOnBeforeMountCbs=[];const _=h._nuxtOnBeforeMountCbs;Ee(()=>{_.forEach(y=>{y()}),_.splice(0,_.length)}),Ne(()=>_.splice(0,_.length))}const S=h&&(h._nuxtClientOnly||Oe(at,!1));f&&n.isHydrating&&(r.error.value||r.data.value!=null)?(r.pending.value=!1,r.status.value=r.error.value?"error":"success"):h&&(!S&&n.payload.serverRendered&&n.isHydrating||l.lazy)&&l.immediate?h._nuxtOnBeforeMountCbs.push(b):l.immediate&&b();const $=$e(),E=ee([s,...l.watch||[]],([_],[y])=>{var N,x;if((_||y)&&_!==y){const z=((N=n._asyncData[y])==null?void 0:N.data.value)!==G.value;y&&c(y);const O={cause:"initial",dedupe:l.dedupe};(x=n._asyncData[_])!=null&&x._init||(O.cachedData=l.getCachedData(_,n,{cause:"initial"}),n._asyncData[_]=ce(n,_,a,l,O.cachedData)),n._asyncData[_]._deps++,(l.immediate||z)&&n._asyncData[_].execute(O)}else r._execute({cause:"watch",dedupe:l.dedupe})},{flush:"sync"});$&&ke(()=>{E(),c(s.value)})}const P={data:K(()=>{var c;return(c=n._asyncData[s.value])==null?void 0:c.data}),pending:K(()=>{var c;return(c=n._asyncData[s.value])==null?void 0:c.pending}),status:K(()=>{var c;return(c=n._asyncData[s.value])==null?void 0:c.status}),error:K(()=>{var c;return(c=n._asyncData[s.value])==null?void 0:c.error}),refresh:(...c)=>n._asyncData[s.value].execute(...c),execute:(...c)=>n._asyncData[s.value].execute(...c),clear:()=>be(n,s.value)},d=Promise.resolve(n._asyncDataPromises[s.value]).then(()=>P);return Object.assign(d,P),d}function K(t){return F({get(){var e;return(e=t())==null?void 0:e.value},set(e){const i=t();i&&(i.value=e)}})}function it(t,e){return!(typeof t=="string"||typeof t=="object"&&t!==null||typeof t=="function"&&typeof e=="function")}function be(t,e){e in t.payload.data&&(t.payload.data[e]=void 0),e in t.payload._errors&&(t.payload._errors[e]=G.errorValue),t._asyncData[e]&&(t._asyncData[e].data.value=void 0,t._asyncData[e].error.value=G.errorValue,t._asyncData[e].pending.value=!1,t._asyncData[e].status.value="idle"),e in t._asyncDataPromises&&(t._asyncDataPromises[e]&&(t._asyncDataPromises[e].cancelled=!0),t._asyncDataPromises[e]=void 0)}function ot(t,e){const i={};for(const a of e)i[a]=t[a];return i}function ce(t,e,i,a,l){var P;(P=t.payload._errors)[e]??(P[e]=G.errorValue);const s=a.getCachedData!==_e,n=i,p=a.deep?I:se,r=l!=null,b=t.hook("app:data:refresh",async d=>{(!d||d.includes(e))&&await f.execute({cause:"refresh:hook"})}),f={data:p(r?l:a.default()),pending:se(!r),error:je(t.payload._errors,e),status:se("idle"),execute:(d={})=>{if(t._asyncDataPromises[e]){if(lt(d.dedupe??a.dedupe))return t._asyncDataPromises[e];t._asyncDataPromises[e].cancelled=!0}if(d.cause==="initial"||t.isHydrating){const c="cachedData"in d?d.cachedData:a.getCachedData(e,t,{cause:d.cause??"refresh:manual"});if(c!=null)return t.payload.data[e]=f.data.value=c,f.error.value=G.errorValue,f.status.value="success",Promise.resolve(c)}f.pending.value=!0,f.status.value="pending";const w=new Promise((c,h)=>{try{c(n(t))}catch(S){h(S)}}).then(async c=>{if(w.cancelled)return t._asyncDataPromises[e];let h=c;a.transform&&(h=await a.transform(c)),a.pick&&(h=ot(h,a.pick)),t.payload.data[e]=h,f.data.value=h,f.error.value=G.errorValue,f.status.value="success"}).catch(c=>{if(w.cancelled)return t._asyncDataPromises[e];f.error.value=Ge(c),f.data.value=o(a.default()),f.status.value="error"}).finally(()=>{w.cancelled||(f.pending.value=!1,delete t._asyncDataPromises[e])});return t._asyncDataPromises[e]=w,t._asyncDataPromises[e]},_execute:Je((...d)=>f.execute(...d),0,{leading:!0}),_default:a.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{var d;b(),(d=t._asyncData[e])!=null&&d._init&&(t._asyncData[e]._init=!1),s||Fe(()=>{var w;(w=t._asyncData[e])!=null&&w._init||(be(t,e),f.execute=()=>Promise.resolve(),f.data.value=G.value)})}};return f}const nt=()=>G.value,_e=(t,e,i)=>{if(e.isHydrating)return e.payload.data[t];if(i.cause!=="refresh:manual"&&i.cause!=="refresh:hook")return e.static.data[t]};function ut(t,e,i){const[a={},l]=typeof e=="string"?[{},e]:[e,i],s=F(()=>j(t)),n=F(()=>j(a.key)||"$f"+W([l,typeof s.value=="string"?s.value:"",...rt(a)]));if(!a.baseURL&&typeof s.value=="string"&&s.value[0]==="/"&&s.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:p,lazy:r,default:b,transform:f,pick:P,watch:d,immediate:w,getCachedData:c,deep:h,dedupe:S,...$}=a,E=ve({...ze,...$,cache:typeof a.cache=="boolean"?void 0:a.cache}),_={server:p,lazy:r,default:b,transform:f,pick:P,immediate:w,getCachedData:c,deep:h,dedupe:S,watch:d===!1?[]:[...d||[],E]};if(!w){let x=function(){_.immediate=!0};ee(n,x,{flush:"sync",once:!0}),ee([...d||[],E],x,{flush:"sync",once:!0})}let y;return st(d===!1?n.value:n,()=>{var Y;(Y=y==null?void 0:y.abort)==null||Y.call(y,new DOMException("Request aborted as another request to the same endpoint was initiated.","AbortError")),y=typeof AbortController<"u"?new AbortController:{};const x=j(a.timeout);let z;return x&&(z=setTimeout(()=>y.abort(new DOMException("Request aborted due to timeout.","AbortError")),x),y.signal.onabort=()=>clearTimeout(z)),(a.$fetch||globalThis.$fetch)(s.value,{signal:y.signal,...E}).finally(()=>{clearTimeout(z)})},_)}function rt(t){var i;const e=[((i=j(t.method))==null?void 0:i.toUpperCase())||"GET",j(t.baseURL)];for(const a of[t.params||t.query]){const l=j(a);if(!l)continue;const s={};for(const[n,p]of Object.entries(l))s[j(n)]=j(p);e.push(s)}if(t.body){const a=j(t.body);if(!a)e.push(W(a));else if(a instanceof ArrayBuffer)e.push(W(Object.fromEntries([...new Uint8Array(a).entries()].map(([l,s])=>[l,s.toString()]))));else if(a instanceof FormData){const l={};for(const s of a.entries()){const[n,p]=s;l[n]=p instanceof File?p.name:p}e.push(W(l))}else if(Me(a))e.push(W(ve(a)));else try{e.push(W(a))}catch{console.warn("[useFetch] Failed to hash body",a)}}return e}const he=ie({__name:"portals",props:{modelValue:{type:Array,required:!0},label:{type:String,default:""},items:{type:Array,default(){return[]}},persistentHint:{type:Boolean,default:!1},hint:{type:String,default:""},loading:{type:Boolean,default:!1},hideDetails:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const{t:i}=oe({useScope:"local"}),a=t,l=e,s=F({get(){return a.modelValue},set(r){l("update:modelValue",r)}}),n=r=>{s.value.includes(r)?s.value.splice(s.value.indexOf(r),1):s.value.push(r)},p=r=>{r.items.every(b=>s.value.includes(b))?r.items.forEach(b=>s.value.splice(s.value.indexOf(b),1)):r.items.forEach(b=>{s.value.includes(b)||s.value.push(b)})};return(r,b)=>{const f=C("v-list-item"),P=C("v-list-item-title"),d=C("v-list"),w=C("v-autocomplete");return R(),U(w,{modelValue:o(s),"onUpdate:modelValue":b[0]||(b[0]=c=>B(s)?s.value=c:null),items:t.items,label:t.label,"item-title":"label","item-value":"value","item-children":"items",variant:"outlined",placeholder:o(i)("allPortals"),"no-data-text":o(i)("noData"),hint:t.hint,"persistent-hint":t.persistentHint,loading:t.loading,"hide-details":t.hideDetails,multiple:"",chips:"",clearable:""},{item:v(({item:c})=>[m(d,{lines:"one","select-strategy":"classic"},{default:v(()=>[m(f,{class:"font-weight-bold",density:"compact",onClick:()=>p(c.raw)},{default:v(()=>[H(k(c.raw.label),1)]),_:2},1032,["onClick"]),(R(!0),Le(Ae,null,Ze(c.raw.items,(h,S)=>(R(),U(f,{key:S,tabindex:S,value:`nestedList${S}`,active:o(s).includes(h),density:"compact",onClick:()=>n(h)},{default:v(()=>[m(P,null,{default:v(()=>[H(k(h.label),1)]),_:2},1024)]),_:2},1032,["tabindex","value","active","onClick"]))),128))]),_:2},1024)]),_:1},8,["modelValue","items","label","placeholder","no-data-text","hint","persistent-hint","loading","hide-details"])}}});function me(t){const e=t;e.__i18n=e.__i18n||[],e.__i18n.push({locale:"",resource:{en:{allPortals:{t:0,b:{t:2,i:[{t:3}],s:"All portals"}},noData:{t:0,b:{t:2,i:[{t:3}],s:"Not found"}}},ru:{allPortals:{t:0,b:{t:2,i:[{t:3}],s:"Все порталы"}},noData:{t:0,b:{t:2,i:[{t:3}],s:"Не найдено"}}},cn:{allPortals:{t:0,b:{t:2,i:[{t:3}],s:"所有门户"}},noData:{t:0,b:{t:2,i:[{t:3}],s:"未找到"}}}}})}typeof me=="function"&&me(he);const ye=ie({__name:"groups",props:{modelValue:{type:Array,required:!0},label:{type:String,default:""},items:{type:Array,default(){return[]}},persistentHint:{type:Boolean,default:!1},hint:{type:String,default:""},loading:{type:Boolean,default:!1},hideDetails:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const{t:i}=oe({useScope:"local"}),a=t,l=e,s=F({get(){return a.modelValue},set(n){l("update:modelValue",n)}});return(n,p)=>{const r=C("v-autocomplete");return R(),U(r,{modelValue:o(s),"onUpdate:modelValue":p[0]||(p[0]=b=>B(s)?s.value=b:null),items:t.items,label:t.label,"item-title":"label","item-value":"label",variant:"outlined",placeholder:o(i)("allGroups"),"no-data-text":o(i)("noData"),hint:t.hint,"persistent-hint":t.persistentHint,loading:t.loading,"hide-details":t.hideDetails,multiple:"",chips:"",clearable:""},null,8,["modelValue","items","label","placeholder","no-data-text","hint","persistent-hint","loading","hide-details"])}}});function fe(t){const e=t;e.__i18n=e.__i18n||[],e.__i18n.push({locale:"",resource:{en:{allGroups:{t:0,b:{t:2,i:[{t:3}],s:"All groups"}},noData:{t:0,b:{t:2,i:[{t:3}],s:"Not found"}}},ru:{allGroups:{t:0,b:{t:2,i:[{t:3}],s:"Все группы"}},noData:{t:0,b:{t:2,i:[{t:3}],s:"Не найдено"}}},cn:{allGroups:{t:0,b:{t:2,i:[{t:3}],s:"所有分组"}},noData:{t:0,b:{t:2,i:[{t:3}],s:"未找到"}}}}})}typeof fe=="function"&&fe(ye);const dt={class:"pa-4"},ge=ie({__name:"Form",setup(t){const{t:e}=oe({useScope:"local"}),{data:i,pending:a}=ut("/?format=json&data=group",{lazy:!0,server:!1,default:()=>[]},"$JrzgWdhoHi"),l=I([]),s=I([]),n=I([]),p=I([]),r=I([]),b=I([]),f=I([]),P=I([]),d=I([]),w=I(!1),c=I(!1),h=F(()=>Object.entries(i.value).reduce((D,[u,T])=>{let V=D.find(M=>M.label===T);return V||(V={label:T,items:[]},D.push(V)),V.items.push({label:u,value:u}),D},[])),S=F(()=>s.value.length>0?h.value.filter(D=>s.value.includes(D.label)):h.value),$=F(()=>p.value.length>0?h.value.filter(D=>!p.value.includes(D.label)):h.value),E=I([{label:"JSON",value:"json"},{label:"Text",value:"text",dataTypes:["cidr4","ip4","domains","cidr6","ip6"]},{label:"Comma",value:"comma",dataTypes:["cidr4","ip4","domains","cidr6","ip6"]},{label:"MikroTik Script",value:"mikrotik",dataTypes:["cidr4","ip4","domains","cidr6","ip6"]},{label:"SwitchyOmega RuleList",value:"switchy",dataTypes:["domains"]},{label:"Dnsmasq nfset",value:"nfset",dataTypes:["cidr4","ip4","domains","cidr6","ip6"]},{label:"Dnsmasq ipset",value:"ipset",dataTypes:["cidr4","ip4","domains","cidr6","ip6"]},{label:"ClashX",value:"clashx",dataTypes:["cidr4","ip4","domains","cidr6","ip6"]},{label:"Keenetic KVAS",value:"kvas",dataTypes:["cidr4","ip4","domains","cidr6","ip6"]},{label:"Keenetic Routes (.bat)",value:"bat",dataTypes:["ip4","cidr4"]},{label:"Amnezia",value:"amnezia",dataTypes:["cidr4","ip4","domains","cidr6","ip6"]},{label:"Proxy auto configuration (PAC)",value:"pac",dataTypes:["domains","cidr4"]},{label:"Custom",value:"custom",dataTypes:["cidr4","ip4","domains","cidr6","ip6"]}]),_=I("json"),y=I(""),N=I([{label:e("allData"),value:""},{label:e("ipZones4"),value:"cidr4"},{label:e("ipAddresses4"),value:"ip4"},{label:e("domains"),value:"domains"},{label:e("ipZones6"),value:"cidr6"},{label:e("ipAddresses6"),value:"ip6"}]),x=I(""),z=F(()=>{const D=E.value.find(u=>u.value===_.value);return N.value.filter(u=>{var T;return!D.dataTypes||((T=D.dataTypes)==null?void 0:T.includes(u.value))})});ee(_,()=>{const D=E.value.find(u=>u.value===_.value);D.dataTypes&&(D.dataTypes.includes(x.value)||(x.value=z.value[0].value))});const O=I("portals"),Y=D=>{const u=[];for(const T in D){const V=D[T];if(V!=null)if(Array.isArray(V))for(const M of V)u.push(`${T}=${encodeURIComponent(M)}`);else if(typeof V=="object")for(const M in V){const Q=V[M];Q!=null&&u.push(`${T}[${encodeURIComponent(M)}]=${encodeURIComponent(Q)}`)}else u.push(`${encodeURIComponent(T)}=${encodeURIComponent(V)}`)}return u.join("&")},De=()=>{const D={format:_.value};x.value&&(D.data=x.value,x.value==="domains"&&w.value&&(D.wildcard="1")),l.value.length>0&&(D.site=l.value.map(u=>u.label)),s.value.length>0&&(D.group=s.value),_.value==="custom"&&(D.template=y.value),n.value.length>0&&(D["exclude[site]"]=n.value.map(u=>u.label)),p.value.length>0&&(D["exclude[group]"]=p.value),x.value==="ip4"&&b.value.length>0&&(D["exclude[ip4]"]=b.value),x.value==="ip6"&&P.value.length>0&&(D["exclude[ip6]"]=P.value),x.value==="cidr4"&&r.value.length>0&&(D["exclude[cidr4]"]=r.value),x.value==="cidr6"&&d.value.length>0&&(D["exclude[cidr6]"]=d.value),x.value==="domains"&&f.value.length>0&&(D["exclude[domain]"]=f.value),c.value&&(D.filesave="1"),window.location.href="/?"+Y(D)};return(D,u)=>{const T=C("v-select"),V=C("v-col"),M=C("v-text-field"),Q=C("v-icon"),xe=C("v-tooltip"),te=C("v-row"),ae=C("v-tab"),Ve=C("v-tabs"),ne=he,le=C("v-tabs-window-item"),ue=ye,X=C("v-combobox"),we=C("v-tabs-window"),Pe=C("v-card-text"),re=C("v-card"),de=C("v-checkbox"),Ce=C("v-btn"),Ie=C("v-form");return R(),U(Ie,{class:"baseForm mx-auto"},{default:v(()=>[m(re,{class:"px-4 py-8",elevation:"10"},{default:v(()=>[m(te,null,{default:v(()=>[m(V,{cols:"6"},{default:v(()=>[m(T,{modelValue:o(_),"onUpdate:modelValue":u[0]||(u[0]=g=>B(_)?_.value=g:null),items:o(E),"item-title":"label","item-value":"value",label:o(e)("format"),variant:"outlined",density:"compact","hide-details":""},null,8,["modelValue","items","label"])]),_:1}),m(V,{cols:"6"},{default:v(()=>[m(T,{modelValue:o(x),"onUpdate:modelValue":u[1]||(u[1]=g=>B(x)?x.value=g:null),items:o(z),"item-title":"label","item-value":"value",label:o(e)("dataType"),variant:"outlined",density:"compact","hide-details":""},null,8,["modelValue","items","label"])]),_:1}),o(_)==="custom"?(R(),U(V,{key:0,cols:"12"},{default:v(()=>[m(te,null,{default:v(()=>[m(V,null,{default:v(()=>[m(M,{modelValue:o(y),"onUpdate:modelValue":u[2]||(u[2]=g=>B(y)?y.value=g:null),label:o(e)("template"),variant:"outlined",density:"compact","hide-details":""},null,8,["modelValue","label"])]),_:1}),m(V,{cols:"auto",class:"d-flex flex-column justify-center pl-0"},{default:v(()=>[m(xe,{interactive:""},{activator:v(({props:g})=>[m(Q,qe(g,{color:"tertiary"}),{default:v(()=>u[16]||(u[16]=[H("mdi-help")])),_:2,__:[16]},1040)]),default:v(()=>[A("div",dt,[A("ul",null,[A("li",null,"{group} - "+k(o(e)("groupName")),1),A("li",null,"{site} - "+k(o(e)("siteName")),1),A("li",null,"{data} - "+k(o(e)("groupName")),1),A("li",null,"{shortmask} - "+k(o(e)("shortmask")),1),A("li",null,"{mask} - "+k(o(e)("mask")),1)])])]),_:1})]),_:1})]),_:1})]),_:1})):Z("",!0),m(V,{cols:"12"},{default:v(()=>[m(re,null,{default:v(()=>[m(Ve,{modelValue:o(O),"onUpdate:modelValue":u[3]||(u[3]=g=>B(O)?O.value=g:null),"bg-color":"primary"},{default:v(()=>[m(ae,{value:"portals"},{default:v(()=>[H(k(o(e)("portals")),1)]),_:1}),m(ae,{value:"groups"},{default:v(()=>[H(k(o(e)("groups")),1)]),_:1}),m(ae,{value:"exclude"},{default:v(()=>[H(k(o(e)("exclude")),1)]),_:1})]),_:1},8,["modelValue"]),m(Pe,null,{default:v(()=>[m(we,{modelValue:o(O),"onUpdate:modelValue":u[13]||(u[13]=g=>B(O)?O.value=g:null)},{default:v(()=>[m(le,{class:"pt-2",value:"portals"},{default:v(()=>[m(ne,{modelValue:o(l),"onUpdate:modelValue":u[4]||(u[4]=g=>B(l)?l.value=g:null),label:o(e)("portalSelection"),items:o(S),"selected-groups":o(s),hint:o(s).length===0?o(e)("doNotSelectIfNeedAll"):o(e)("filteredByGroups"),"persistent-hint":"",loading:o(a)},null,8,["modelValue","label","items","selected-groups","hint","loading"])]),_:1}),m(le,{class:"pt-2",value:"groups"},{default:v(()=>[m(ue,{modelValue:o(s),"onUpdate:modelValue":u[5]||(u[5]=g=>B(s)?s.value=g:null),label:o(e)("groupSelection"),items:o(h),hint:o(l).length===0?o(e)("doNotSelectIfNeedAll"):"","persistent-hint":o(l).length===0,loading:o(a)},null,8,["modelValue","label","items","hint","persistent-hint","loading"])]),_:1}),m(le,{class:"pt-2",value:"exclude"},{default:v(()=>[m(te,null,{default:v(()=>[m(V,{cols:"12"},{default:v(()=>[m(ue,{modelValue:o(p),"onUpdate:modelValue":u[6]||(u[6]=g=>B(p)?p.value=g:null),label:o(e)("excludeGroups"),items:o(h),loading:o(a),"hide-details":""},null,8,["modelValue","label","items","loading"])]),_:1}),m(V,{cols:"12"},{default:v(()=>[m(ne,{modelValue:o(n),"onUpdate:modelValue":u[7]||(u[7]=g=>B(n)?n.value=g:null),label:o(e)("excludePortals"),items:o($),loading:o(a),"hide-details":""},null,8,["modelValue","label","items","loading"])]),_:1}),o(x)==="cidr4"?(R(),U(V,{key:0,cols:"12"},{default:v(()=>[m(X,{modelValue:o(r),"onUpdate:modelValue":u[8]||(u[8]=g=>B(r)?r.value=g:null),label:o(e)("excludeIpZones")+" ipv4",variant:"outlined","hide-details":"",multiple:"",chips:"",clearable:""},null,8,["modelValue","label"])]),_:1})):Z("",!0),o(x)==="ip4"?(R(),U(V,{key:1,cols:"12"},{default:v(()=>[m(X,{modelValue:o(b),"onUpdate:modelValue":u[9]||(u[9]=g=>B(b)?b.value=g:null),label:o(e)("excludeIp")+" ipv4",variant:"outlined","hide-details":"",multiple:"",chips:"",clearable:""},null,8,["modelValue","label"])]),_:1})):Z("",!0),o(x)==="domains"?(R(),U(V,{key:2,cols:"12"},{default:v(()=>[m(X,{modelValue:o(f),"onUpdate:modelValue":u[10]||(u[10]=g=>B(f)?f.value=g:null),label:o(e)("excludeDomains"),variant:"outlined","hide-details":"",multiple:"",chips:"",clearable:""},null,8,["modelValue","label"])]),_:1})):Z("",!0),o(x)==="cidr6"?(R(),U(V,{key:3,cols:"12"},{default:v(()=>[m(X,{modelValue:o(d),"onUpdate:modelValue":u[11]||(u[11]=g=>B(d)?d.value=g:null),label:o(e)("excludeIpZones")+" ipv6",variant:"outlined","hide-details":"",multiple:"",chips:"",clearable:""},null,8,["modelValue","label"])]),_:1})):Z("",!0),o(x)==="ip6"?(R(),U(V,{key:4,cols:"12"},{default:v(()=>[m(X,{modelValue:o(P),"onUpdate:modelValue":u[12]||(u[12]=g=>B(P)?P.value=g:null),label:o(e)("excludeIp")+" ipv6",variant:"outlined","hide-details":"",multiple:"",chips:"",clearable:""},null,8,["modelValue","label"])]),_:1})):Z("",!0)]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),m(V,{class:"py-0",cols:"12"},{default:v(()=>[o(x)==="domains"?(R(),U(de,{key:0,modelValue:o(w),"onUpdate:modelValue":u[14]||(u[14]=g=>B(w)?w.value=g:null),label:o(e)("onlyWildcard"),value:!0,color:"primary",density:"compact","hide-details":""},null,8,["modelValue","label"])):Z("",!0),m(de,{modelValue:o(c),"onUpdate:modelValue":u[15]||(u[15]=g=>B(c)?c.value=g:null),label:o(e)("saveToFile"),value:!0,color:"primary",density:"compact","hide-details":""},null,8,["modelValue","label"])]),_:1}),m(V,{cols:"12"},{default:v(()=>[m(Ce,{color:"primary",block:"",size:"50",onClick:De},{default:v(()=>[H(k(o(e)("submit")),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}}});function pe(t){const e=t;e.__i18n=e.__i18n||[],e.__i18n.push({locale:"",resource:{en:{format:{t:0,b:{t:2,i:[{t:3}],s:"Format"}},dataType:{t:0,b:{t:2,i:[{t:3}],s:"Data type"}},template:{t:0,b:{t:2,i:[{t:3}],s:"Template"}},groupName:{t:0,b:{t:2,i:[{t:3}],s:"Group name"}},siteName:{t:0,b:{t:2,i:[{t:3}],s:"Portal name"}},data:{t:0,b:{t:2,i:[{t:3}],s:"Selected data"}},shortmask:{t:0,b:{t:2,i:[{t:3}],s:"Subnet mask (short) (for IP and CIDR)"}},mask:{t:0,b:{t:2,i:[{t:3}],s:"Subnet mask (full) (for IP and CIDR)"}},portals:{t:0,b:{t:2,i:[{t:3}],s:"Portals"}},groups:{t:0,b:{t:2,i:[{t:3}],s:"Groups"}},exclude:{t:0,b:{t:2,i:[{t:3}],s:"Exclusions"}},portalSelection:{t:0,b:{t:2,i:[{t:3}],s:"Portal selection"}},doNotSelectIfNeedAll:{t:0,b:{t:2,i:[{t:3}],s:"Do not select if you want to get all"}},filteredByGroups:{t:0,b:{t:2,i:[{t:3}],s:"The set of portals is filtered by the selected groups"}},groupSelection:{t:0,b:{t:2,i:[{t:3}],s:"Group selection"}},excludePortals:{t:0,b:{t:2,i:[{t:3}],s:"Exclude portals"}},excludeGroups:{t:0,b:{t:2,i:[{t:3}],s:"Exclude groups"}},excludeIpZones:{t:0,b:{t:2,i:[{t:3}],s:"Exclude IP zones"}},excludeIp:{t:0,b:{t:2,i:[{t:3}],s:"Exclude IP"}},excludeDomains:{t:0,b:{t:2,i:[{t:3}],s:"Exclude domains"}},onlyWildcard:{t:0,b:{t:2,i:[{t:3}],s:"Only wildcard domains"}},saveToFile:{t:0,b:{t:2,i:[{t:3}],s:"Save as file"}},submit:{t:0,b:{t:2,i:[{t:3}],s:"Submit"}},allData:{t:0,b:{t:2,i:[{t:3}],s:"All data"}},ipZones4:{t:0,b:{t:2,i:[{t:3}],s:"IPv4 zones (CIDR)"}},ipAddresses4:{t:0,b:{t:2,i:[{t:3}],s:"IPv4 addresses"}},domains:{t:0,b:{t:2,i:[{t:3}],s:"Domains"}},ipZones6:{t:0,b:{t:2,i:[{t:3}],s:"IPv6 zones (CIDR)"}},ipAddresses6:{t:0,b:{t:2,i:[{t:3}],s:"IPv6 addresses"}}},ru:{format:{t:0,b:{t:2,i:[{t:3}],s:"Формат"}},dataType:{t:0,b:{t:2,i:[{t:3}],s:"Тип данных"}},template:{t:0,b:{t:2,i:[{t:3}],s:"Шаблон"}},groupName:{t:0,b:{t:2,i:[{t:3}],s:"Имя группы"}},siteName:{t:0,b:{t:2,i:[{t:3}],s:"Имя портала"}},data:{t:0,b:{t:2,i:[{t:3}],s:"Выбранные данные"}},shortmask:{t:0,b:{t:2,i:[{t:3}],s:"Маска подсети (короткая) (для ip и cidr)"}},mask:{t:0,b:{t:2,i:[{t:3}],s:"Маска подсети (полная) (для ip и cidr)"}},portals:{t:0,b:{t:2,i:[{t:3}],s:"Порталы"}},groups:{t:0,b:{t:2,i:[{t:3}],s:"Группы"}},exclude:{t:0,b:{t:2,i:[{t:3}],s:"Исключения"}},portalSelection:{t:0,b:{t:2,i:[{t:3}],s:"Выбор порталов"}},doNotSelectIfNeedAll:{t:0,b:{t:2,i:[{t:3}],s:"Не выбирайте, если хотите получить все"}},filteredByGroups:{t:0,b:{t:2,i:[{t:3}],s:"Набор порталов отфильтрован по выбранным группам"}},groupSelection:{t:0,b:{t:2,i:[{t:3}],s:"Выбор групп"}},excludePortals:{t:0,b:{t:2,i:[{t:3}],s:"Исключить порталы"}},excludeGroups:{t:0,b:{t:2,i:[{t:3}],s:"Исключить группы"}},excludeIpZones:{t:0,b:{t:2,i:[{t:3}],s:"Исключить IP-зоны"}},excludeIp:{t:0,b:{t:2,i:[{t:3}],s:"Исключить IP"}},excludeDomains:{t:0,b:{t:2,i:[{t:3}],s:"Исключить домены"}},onlyWildcard:{t:0,b:{t:2,i:[{t:3}],s:"Только wildcard домены"}},saveToFile:{t:0,b:{t:2,i:[{t:3}],s:"Сохранить как файл"}},submit:{t:0,b:{t:2,i:[{t:3}],s:"Отправить"}},allData:{t:0,b:{t:2,i:[{t:3}],s:"Все данные"}},ipZones4:{t:0,b:{t:2,i:[{t:3}],s:"IP-зоны ipv4 (CIDR)"}},ipAddresses4:{t:0,b:{t:2,i:[{t:3}],s:"IP-адреса ipv4"}},domains:{t:0,b:{t:2,i:[{t:3}],s:"Домены"}},ipZones6:{t:0,b:{t:2,i:[{t:3}],s:"IP-зоны ipv6 (CIDR)"}},ipAddresses6:{t:0,b:{t:2,i:[{t:3}],s:"IP-адреса ipv6"}}},cn:{format:{t:0,b:{t:2,i:[{t:3}],s:"格式"}},dataType:{t:0,b:{t:2,i:[{t:3}],s:"数据类型"}},template:{t:0,b:{t:2,i:[{t:3}],s:"模板"}},groupName:{t:0,b:{t:2,i:[{t:3}],s:"分组名称"}},siteName:{t:0,b:{t:2,i:[{t:3}],s:"门户名称"}},data:{t:0,b:{t:2,i:[{t:3}],s:"已选数据"}},shortmask:{t:0,b:{t:2,i:[{t:3}],s:"子网掩码(简写)(用于 IP 和 CIDR)"}},mask:{t:0,b:{t:2,i:[{t:3}],s:"子网掩码(完整)(用于 IP 和 CIDR)"}},portals:{t:0,b:{t:2,i:[{t:3}],s:"门户"}},groups:{t:0,b:{t:2,i:[{t:3}],s:"分组"}},exclude:{t:0,b:{t:2,i:[{t:3}],s:"排除项"}},portalSelection:{t:0,b:{t:2,i:[{t:3}],s:"门户选择"}},doNotSelectIfNeedAll:{t:0,b:{t:2,i:[{t:3}],s:"如果需要全部,请不要选择"}},filteredByGroups:{t:0,b:{t:2,i:[{t:3}],s:"门户集合已根据所选分组进行筛选。"}},groupSelection:{t:0,b:{t:2,i:[{t:3}],s:"分组选择"}},excludePortals:{t:0,b:{t:2,i:[{t:3}],s:"排除门户"}},excludeGroups:{t:0,b:{t:2,i:[{t:3}],s:"排除分组"}},excludeIpZones:{t:0,b:{t:2,i:[{t:3}],s:"排除 IP 区域"}},excludeIp:{t:0,b:{t:2,i:[{t:3}],s:"排除 IP"}},excludeDomains:{t:0,b:{t:2,i:[{t:3}],s:"排除域名"}},onlyWildcard:{t:0,b:{t:2,i:[{t:3}],s:"仅限通配符域名"}},saveToFile:{t:0,b:{t:2,i:[{t:3}],s:"保存为文件"}},submit:{t:0,b:{t:2,i:[{t:3}],s:"提交"}},allData:{t:0,b:{t:2,i:[{t:3}],s:"所有数据"}},ipZones4:{t:0,b:{t:2,i:[{t:3}],s:"IPv4 区域(CIDR)"}},ipAddresses4:{t:0,b:{t:2,i:[{t:3}],s:"IPv4 地址"}},domains:{t:0,b:{t:2,i:[{t:3}],s:"域名"}},ipZones6:{t:0,b:{t:2,i:[{t:3}],s:"IPv6 区域(CIDR)"}},ipAddresses6:{t:0,b:{t:2,i:[{t:3}],s:"IPv6 地址"}}}}})}typeof pe=="function"&&pe(ge);const ct={};function mt(t,e){const i=ge,a=C("v-container");return R(),U(a,{class:"my-auto",fluid:""},{default:v(()=>[m(i)]),_:1})}const vt=He(ct,[["render",mt]]);export{vt as default};
|