PageSourceSearch

https://console.azion.com/assets/variables-service-Baqp7nUP.js

js azion.com collected 2026-09-24 09:57:29 UTC 3,385 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`7d8eaa80bf7a8452addada54ce261c290201fccb`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`3e8941d3-8bd0-45ac-87c4-1760922f8318`,e._sentryDebugIdIdentifier=`sentry-dbid-3e8941d3-8bd0-45ac-87c4-1760922f8318`)}catch{}})();import{r as e}from"./rolldown-runtime-FgGdQMz3.js";import{o as t,t as n}from"./baseService-D9rH_cRO.js";import{c as r,n as i}from"./convert-date-CEoOUzpt.js";import{n as a}from"./user-flag-DQlkQH8R.js";import{t as o}from"./adaptServiceDataResponse-DhA0w2aP.js";var s={id:e=>e.variable_id??e.uuid,key:e=>e.key,value:e=>({isSecret:e.secret,content:e.secret?e.value??`********`:e.value}),lastEditor:e=>e.last_editor,lastModified:e=>r(e.updated_at),lastModify:e=>i(e.updated_at),scope:e=>e.scope,source:e=>e.source,versionId:e=>e.version_id,state:e=>e.state??e.source},c=e=>e?o([e],null,s)[0]:null,l={transformList(e){return Array.isArray(e)?o(e,null,s):[]},transformItem:c,transformFormItem:e=>{let t=c(e);if(!t)return null;let n=t.value?.isSecret??!1;return{id:t.id,key:t.key,value:n?``:t.value?.content??t.value,secret:n,scope:t.scope}},transformPayload(e){return{key:e.key,value:e.value,secret:e.secret}},transformPayloadV6(e){return{key:e.key,value:e.value,secret:e.secret,scope:l.transformScopePayload(e.scope)}},transformScopePayload(e){return Array.isArray(e)?e.map(e=>{if(e.type===`global`)return{resource_type:`global`};let t=`${e.type}_id`;return{resource_type:e.type,resource_id:e[t]}}):[]}},u=e({VariablesService:()=>d,variablesService:()=>f}),d=class extends n{#e=`v3/variables`;#t=()=>a()?l.transformPayloadV6:l.transformPayload;#n=async(e={})=>{let{data:t}=await this.http.request({method:`GET`,url:this.#e,params:e,config:{baseURL:`/api`}}),n=Array.isArray(t)?t:t?.results??[],r=Array.isArray(t)?t.length:t?.count??n.length;return{body:l.transformList(n),count:r}};prefetchList=()=>this.usePrefetchQuery(t.variables.list(),()=>this.#n());list=async(e={})=>{let n=e?.hasFilter||e?.skipCache||e?.search;return await this.useEnsureQueryData(t.variables.list(),()=>this.#n(e),{persist:!n,skipCache:n})};getVariableFromCache=e=>{if(e)return super.getFromCache({queryKey:t.variables.all,id:e,select:e=>({id:e.id,key:e.key,value:e.value?.isSecret?``:e.value?.content??e.value,secret:e.value?.isSecret??!1,scope:e.scope}),listPath:`body`})};load=async({id:e})=>{let{data:t}=await this.http.request({method:`GET`,url:`${this.#e}/${e}`,config:{baseURL:`/api`}});return l.transformFormItem(t)};create=async e=>{let n=this.#t()(e),{data:r}=await this.http.request({method:`POST`,url:this.#e,body:n,config:{baseURL:`/api`}});this.queryClient.removeQueries({queryKey:t.variables.all});let i=l.transformItem(r);return{id:i.id,key:i.key,value:i.value?.content??i.value,secret:i.value?.isSecret??!1,scope:i.scope}};edit=async e=>{let n=this.#t()(e);return await this.http.request({method:`PUT`,url:`${this.#e}/${e.id}`,body:n,config:{baseURL:`/api`}}),this.queryClient.removeQueries({queryKey:t.variables.all}),`Your variable has been updated`};delete=async e=>(await this.http.request({method:`DELETE`,url:`${this.#e}/${e}`,config:{baseURL:`/api`}}),this.queryClient.removeQueries({queryKey:t.variables.all}),`Variable successfully deleted`)},f=new d;export{u as n,f as t};

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.