PageSourceSearch

https://dashboard.iproyal.com/assets/create-5eAhM396.js

js iproyal.com collected 2026-10-01 10:42:29 UTC 2,785 bytes, 3 lines download raw bytes

1/** See vendor.LICENSE.txt for 3rd party license information */
2import{ae as n,af as w,y as h,n as I,at as g,av as u,a as E,c7 as S,e as M,a7 as W,v as k,o as L,c as D,u as d,aL as T}from"./_withdraw-status-label-C_XHOxxk.js";import{u as f}from"./(mobile)-CPpXj5ub.js";import{_ as P}from"./WhitelistLayout.vue_vue_type_script_setup_true_lang-D6-XCXze.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"0a9fdbed"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=(function(s){for(var r=1;r<arguments.length;r++){var a=arguments[r];if(a!=null)for(var o in a)a.hasOwnProperty(o)&&(s[o]=a[o])}return s})({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:iproyal-dashboard-frontend":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bcd48592-b25e-4a4a-a878-8b2830dd4937",e._sentryDebugIdIdentifier="sentry-dbid-bcd48592-b25e-4a4a-a878-8b2830dd4937")}catch{}})();const Q=(e,t,s)=>n({path:`v1/user-whitelisted-ips?${w({product_identifier:e,page:t.page,per_page:t.perPage})}`,signal:s?.signal}),x=(e,t)=>n({path:`v1/user-whitelisted-ips/${e}`,signal:t?.signal}),R=e=>n({path:"v1/user-whitelisted-ips",method:"POST",body:e}),j=(e,t)=>n({path:`v1/user-whitelisted-ips/${e}`,method:"PATCH",body:t}),U=e=>n({path:`v1/user-whitelisted-ips/${e}`,method:"DELETE"}),C=e=>["user-whitelisted-ips",e],K=e=>{const{products:t}=h("products"),s=I(),{mutate:r,isLoading:a}=g({mutation:i=>U(i.id),onError(i){u.error(i,"delete-whitelist")},async onSuccess(){u({id:"delete-whitelist",message:t.value.whitelistsSuccess.deleted()}),await e()}});return{deleteWhitelistedIp:i=>{s.showConfirmRemove(()=>r(i))},isDeleteIpLoading:a}},$=E({__name:"create",setup(e){const{products:t}=h("products"),{data:s}=f(),r=S(),a=M(),o=W(),i=k(),l={name:"/[[context]]/products/[productSlug]/",params:{productSlug:a.params.productSlug}},{mutate:m,isLoading:y,error:b}=g({mutation:c=>R(c),onSuccess(){u({id:"create-whitelist",message:t.value.whitelistsSuccess.created()}),r("dash_whitelist_ip_added",{product:s.value.identifier}),i.invalidateQueries({key:C(s.value.identifier)}),o.push(l)}});return(c,p)=>(L(),D(P,{title:d(t).createWhitelist(),"back-route":l,"is-loading":d(y),ip:void 0,note:void 0,"error-message":d(T)({error:d(b)}),onSubmit:p[0]||(p[0]=({ipAddress:_,note:v})=>d(m)({productIdentifier:d(s).identifier,ipAddress:_,note:v}))},null,8,["title","is-loading","error-message"]))}}),N=Object.freeze(Object.defineProperty({__proto__:null,default:$,useProductData:f},Symbol.toStringTag,{value:"Module"}));export{j as a,x as b,Q as c,N as d,C as g,K as u};
3//# sourceMappingURL=create-5eAhM396.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.