PageSourceSearch

https://cdn.zaiko.io/public/build/inertia/assets/Imgserv-D3zQGLSX.js

js zaiko.io collected 2026-09-24 15:27:30 UTC 3,324 bytes, 2 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:`2ef5c50bedec7068e55c332bb1c96e6fd6daff40`},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:zaiko-frontend":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`f0c0535a-6eaa-4779-bd04-2eaf6268b4b7`,e._sentryDebugIdIdentifier=`sentry-dbid-f0c0535a-6eaa-4779-bd04-2eaf6268b4b7`)}catch{}})();import{t as e}from"./defineProperty-DHXM213M.js";import{t}from"./httpCallHelper-DonSaWM0.js";var n=function(e){return e[e.BEST_FIT=0]=`BEST_FIT`,e[e.BOX=1]=`BOX`,e}({}),r=class r{constructor(t){e(this,`_code`,void 0),e(this,`_metadata`,void 0),e(this,`_config`,void 0),this._code=t,this._metadata=void 0,this._config={}}clone(){return new r(this._code)}code(){return this._code}metadata(){return this._metadata?Promise.resolve(this._metadata):t.doGetHttpCall(`${c.config().assetUrl}/${this._code}.json`).then(e=>(this._metadata=e,e))}width(e){return this._config.width=e,this}height(e){return this._config.height=e,this}resizeOption(e,t){return this._config.resizeOption=e,this._config.resizeOptionParams={},this._config.resizeOption===n.BOX&&(typeof t==`string`?this._config.resizeOptionParams={padColor:t}:typeof t==`object`&&t&&(this._config.resizeOptionParams=t)),this}format(e){return this._config.format=e,this}frame(e){return this._config.frame=e,this}url(){let e=[c.config().assetUrl];return this._config.width&&e.push(`w_${this._config.width}`),this._config.height&&e.push(`h_${this._config.height}`),this._config.frame&&e.push(`pg_${this._config.frame}`),this._config.resizeOption===n.BEST_FIT&&e.push(`fit_crop`),this._config.resizeOption===n.BOX&&(e.push(`fit_bgfill`),e.push(`bg_${this._config.resizeOptionParams?.padColor??`00ffffff`}`)),e.push(this._code),this._config.format?e.join(`/`)+`.${this._config.format}`:e.join(`/`)}},i=class{uploadFile(e){if(typeof e!=`object`||!e.name||!e.type||!e.size)throw Error(`Invalid parameter provided for file upload.`);let n=c.config();if(!n.apiSecret||!n.apiKey)throw Error(`Imgserv upload credentials are not configured.`);let i=new FormData;return i.append(`upload_key`,n.apiSecret+n.apiKey),i.append(`Filedata`,e),t.doPostHttpCall(n.apiUrl+`/api/upload`,i,{...n.apiOptions,headers:{...n.apiOptions.headers?n.apiOptions.headers:{},"Content-Type":`multipart/form-data`}}).then(e=>new r(e.code))}},a=class t{constructor(t){e(this,`_code`,void 0),e(this,`_config`,void 0),this._code=t,this._config={}}clone(){return new t(this._code)}code(){return this._code}url(){let e=[c.config().assetUrl];return e.push(this._code),e.join(`/`)}},o={assetUrl:`https://media.zaiko.io`,apiUrl:`https://imgserv.zaiko.services`,apiKey:void 0,apiSecret:void 0,apiOptions:{}},s=new i,c={config(e){return e&&(o={...o,...e}),o},image(e){return new r(e)},video(e){return new a(e)},upload(e){return Array.isArray(e)?Promise.all(e.map(e=>s.uploadFile(e))):s.uploadFile(e).then(e=>[e])}};export{n,c as t};
2//# sourceMappingURL=Imgserv-D3zQGLSX.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.