1/** See vendor.LICENSE.txt for 3rd party license information */ 2import{i as W,a as _,e as w,ax as A,ay as M,Y as q,y as U,at as Y,av as I,F as K,a7 as Q,o as v,c as S,u as e,w as u,z as i,W as b,O as y,ac as G,V as T,T as J,m as C}from"./_withdraw-status-label-C_XHOxxk.js";import{u as k}from"./(residential)-C_-xRbuE.js";import{g as X,b as Z,d as ee}from"./use-delete-whitelist-Dh1zMnjQ.js";import{T as te}from"./OrderStatusIndicator.vue_vue_type_script_setup_true_lang-BBoeNZpA.js";import{L as ae,u as se}from"./regle-schemas.min-Bzceocc8.js";import{o as oe,p as re,s as ie}from"./order-auth-validators-DYWxMx4R.js";import{m as ne,T as c}from"./TextField-YbFGomOL.js";import{s as le,_ as ue,g as de}from"./BaseWhitelistLayout.vue_vue_type_script_setup_true_lang-SArJniFs.js";import{g as ce,u as me}from"./use-proxy-config-BQ8HDKre.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"0a9fdbed"},t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[new t.Error().stack]=(function(s){for(var r=1;r<arguments.length;r++){var o=arguments[r];if(o!=null)for(var d in o)o.hasOwnProperty(d)&&(s[d]=o[d])}return s})({},t._sentryModuleMetadata[new t.Error().stack],{"_sentryBundlerPluginAppKey:iproyal-dashboard-frontend":!0});var a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="75cd4401-3a45-43ca-ae34-58eea464746c",t._sentryDebugIdIdentifier="sentry-dbid-75cd4401-3a45-43ca-ae34-58eea464746c")}catch{}})();const he=W(()=>oe({note:re(ie(),ne(500))})),pe=t=>{const{r$:a}=ae(t,he),s=se(a);return{r$:a,field:s}},R=_({__name:"WhitelistManageLayout",props:{userHash:{},backRoute:{}},async setup(t){let a,s;const r=w(),{data:o,refetch:d,refresh:P}=A({key:()=>["residential-proxies-whitelist",t.userHash,r.params.whitelistHash],query:()=>X(t.userHash,r.params.whitelistHash)});[a,s]=M(()=>d(!0)),await a,s(),q(o.value);const{LL:x,common:n,products:p}=U("products"),{data:f}=k(),{generateConfig:$,config:E,derivedConfigItems:O}=([a,s]=M(()=>me(()=>f.value.product.identifier,()=>({additionalData:f.value.product.additionalData,user:f.value.user}),de(t.userHash),{hostname:{excluded:!0}})),a=await a,s(),a),{mutate:V,isLoading:H}=Y({mutation:async h=>await Z(t.userHash,r.params.whitelistHash,h),onSuccess:()=>{le(t.userHash,{config:E,derivedConfigItems:O}),I({id:"whitelist-update",message:p.value.whitelistsSuccess.updated()}),P()},onError:h=>{I.error(h,"whitelist-update")}}),j=ce(6),m=K({note:o.value?.note??""}),{r$:B,field:F}=pe(m),D=W(()=>$(j)),N=Q(),{startWithDialog:z,isLoading:L}=ee(async()=>await N.push(t.backRoute));return(h,l)=>(v(),S(ue,{title:e(p).editWhitelist(),"back-route":t.backRoute,regle:e(B),onSubmit:l[2]||(l[2]=g=>e(V)({configuration:e(D),note:e(m).note}))},{buttons:u(()=>[i(e(T),{type:"submit","color-scheme":"secondary",disabled:e(H),class:"sm:w-200"},{default:u(()=>[b(y(e(H)?e(n).loading():e(n).save()),1)]),_:1},8,["disabled"]),i(e(T),{type:"button",kind:"outlined","color-scheme":"error",disabled:e(L),onClick:l[1]||(l[1]=g=>e(z)({whitelistHash:e(r).params.whitelistHash,userHash:t.userHash}))},{default:u(()=>[i(e(J),{type:"trash"}),b(" "+y(e(L)?e(n).loading():e(n).delete()),1)]),_:1},8,["disabled"])]),default:u(()=>[i(e(c),{"model-value":e(o)?.ip,name:"ip",label:e(x).fields.ip(),disabled:""},{label:u(()=>[i(e(te),null,{default:u(()=>[b(y(e(p).whitelistIpTooltip()),1)]),_:1})]),_:1},8,["model-value","label"]),i(e(c),{"model-value":e(o)?.port,type:"number",label:e(x).fields.port(),name:"port",disabled:""},null,8,["model-value","label"]),i(e(c),{"model-value":e(o)?.configuration,name:"configuration",label:e(n).configuration(),disabled:""},null,8,["model-value","label"]),i(e(c),{"model-value":e(D),name:"new-configuration",label:e(n).newConfiguration(),disabled:""},null,8,["model-value","label"]),i(e(c),G({modelValue:e(m).note,"onUpdate:modelValue":l[0]||(l[0]=g=>e(m).note=g)},e(F)("note"),{as:"textarea",rows:3,label:e(n).noteOptional()}),null,16,["modelValue","label"])]),_:1},8,["title","back-route","regle"]))}}),fe=_({__name:"[whitelistHash]",setup(t){const a=w();return(s,r)=>(v(),S(R,{"user-hash":e(a).params.hash,"back-route":{name:"/[[context]]/products/[productSlug]/(residential)/sub-users/[hash]/whitelist/",params:{productSlug:e(a).params.productSlug,hash:e(a).params.hash}}},null,8,["user-hash","back-route"]))}}),De=Object.freeze(Object.defineProperty({__proto__:null,default:fe,useRoyalData:k},Symbol.toStringTag,{value:"Module"})),ge=_({__name:"[whitelistHash]",setup(t){const{data:a}=C(),s=w();return(r,o)=>(v(),S(R,{"user-hash":e(a).royalResidential.appHash,"back-route":{name:"/[[context]]/products/[productSlug]/(residential)/",params:{productSlug:e(s).params.productSlug},query:{tab:"whitelist"}}},null,8,["user-hash","back-route"]))}}),Le=Object.freeze(Object.defineProperty({__proto__:null,default:ge,useOwnerData:C,useRoyalData:k},Symbol.toStringTag,{value:"Module"}));
2export{De as _,Le as a}; 3//# sourceMappingURL=_whitelistHash_-BkFJF_Ft.js.map
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.