🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

imagekitio-vue

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imagekitio-vue - npm Package Compare versions

Comparing version

to
1.0.7

37

dist/imagekitio-vue.common.js

@@ -358,8 +358,8 @@ module.exports =

/* harmony default export */ var IKContext = (component.exports);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"65962082-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/IKImage.vue?vue&type=template&id=3081d1c2&
var IKImagevue_type_template_id_3081d1c2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('img',{staticClass:"ik-image",attrs:{"src":_vm.srcImage}})}
var IKImagevue_type_template_id_3081d1c2_staticRenderFns = []
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"65962082-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/IKImage.vue?vue&type=template&id=068b8f1e&
var IKImagevue_type_template_id_068b8f1e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('img',{staticClass:"ik-image",attrs:{"src":_vm.srcImage}})}
var IKImagevue_type_template_id_068b8f1e_staticRenderFns = []
// CONCATENATED MODULE: ./src/components/IKImage.vue?vue&type=template&id=3081d1c2&
// CONCATENATED MODULE: ./src/components/IKImage.vue?vue&type=template&id=068b8f1e&

@@ -402,2 +402,12 @@ // EXTERNAL MODULE: ./node_modules/imagekit-javascript/dist/imagekit.min.js

},
publicKey: {
type: String,
default: "",
required: false
},
authenticationEndpoint: {
type: String,
default: "",
required: false
},
path: {

@@ -578,4 +588,4 @@ type: String,

components_IKImagevue_type_script_lang_js_,
IKImagevue_type_template_id_3081d1c2_render,
IKImagevue_type_template_id_3081d1c2_staticRenderFns,
IKImagevue_type_template_id_068b8f1e_render,
IKImagevue_type_template_id_068b8f1e_staticRenderFns,
false,

@@ -589,8 +599,8 @@ null,

/* harmony default export */ var IKImage = (IKImage_component.exports);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"65962082-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/IKUpload.vue?vue&type=template&id=33357834&
var IKUploadvue_type_template_id_33357834_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('input',{ref:"imageFile",attrs:{"type":"file"},on:{"change":_vm.upload}})}
var IKUploadvue_type_template_id_33357834_staticRenderFns = []
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"65962082-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/IKUpload.vue?vue&type=template&id=cefbf3fe&
var IKUploadvue_type_template_id_cefbf3fe_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('input',{ref:"imageFile",attrs:{"type":"file"},on:{"change":_vm.upload}})}
var IKUploadvue_type_template_id_cefbf3fe_staticRenderFns = []
// CONCATENATED MODULE: ./src/components/IKUpload.vue?vue&type=template&id=33357834&
// CONCATENATED MODULE: ./src/components/IKUpload.vue?vue&type=template&id=cefbf3fe&

@@ -659,2 +669,3 @@ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/IKUpload.vue?vue&type=script&lang=js&

type: String,
default: "",
required: false

@@ -757,4 +768,4 @@ },

components_IKUploadvue_type_script_lang_js_,
IKUploadvue_type_template_id_33357834_render,
IKUploadvue_type_template_id_33357834_staticRenderFns,
IKUploadvue_type_template_id_cefbf3fe_render,
IKUploadvue_type_template_id_cefbf3fe_staticRenderFns,
false,

@@ -779,3 +790,3 @@ null,

var VERSION = "1.0.6";
var VERSION = "1.0.7";
var componentMapping = {

@@ -782,0 +793,0 @@ "ik-context": IKContext,

@@ -367,8 +367,8 @@ (function webpackUniversalModuleDefinition(root, factory) {

/* harmony default export */ var IKContext = (component.exports);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"65962082-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/IKImage.vue?vue&type=template&id=3081d1c2&
var IKImagevue_type_template_id_3081d1c2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('img',{staticClass:"ik-image",attrs:{"src":_vm.srcImage}})}
var IKImagevue_type_template_id_3081d1c2_staticRenderFns = []
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"65962082-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/IKImage.vue?vue&type=template&id=068b8f1e&
var IKImagevue_type_template_id_068b8f1e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('img',{staticClass:"ik-image",attrs:{"src":_vm.srcImage}})}
var IKImagevue_type_template_id_068b8f1e_staticRenderFns = []
// CONCATENATED MODULE: ./src/components/IKImage.vue?vue&type=template&id=3081d1c2&
// CONCATENATED MODULE: ./src/components/IKImage.vue?vue&type=template&id=068b8f1e&

@@ -411,2 +411,12 @@ // EXTERNAL MODULE: ./node_modules/imagekit-javascript/dist/imagekit.min.js

},
publicKey: {
type: String,
default: "",
required: false
},
authenticationEndpoint: {
type: String,
default: "",
required: false
},
path: {

@@ -587,4 +597,4 @@ type: String,

components_IKImagevue_type_script_lang_js_,
IKImagevue_type_template_id_3081d1c2_render,
IKImagevue_type_template_id_3081d1c2_staticRenderFns,
IKImagevue_type_template_id_068b8f1e_render,
IKImagevue_type_template_id_068b8f1e_staticRenderFns,
false,

@@ -598,8 +608,8 @@ null,

/* harmony default export */ var IKImage = (IKImage_component.exports);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"65962082-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/IKUpload.vue?vue&type=template&id=33357834&
var IKUploadvue_type_template_id_33357834_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('input',{ref:"imageFile",attrs:{"type":"file"},on:{"change":_vm.upload}})}
var IKUploadvue_type_template_id_33357834_staticRenderFns = []
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"65962082-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/IKUpload.vue?vue&type=template&id=cefbf3fe&
var IKUploadvue_type_template_id_cefbf3fe_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('input',{ref:"imageFile",attrs:{"type":"file"},on:{"change":_vm.upload}})}
var IKUploadvue_type_template_id_cefbf3fe_staticRenderFns = []
// CONCATENATED MODULE: ./src/components/IKUpload.vue?vue&type=template&id=33357834&
// CONCATENATED MODULE: ./src/components/IKUpload.vue?vue&type=template&id=cefbf3fe&

@@ -668,2 +678,3 @@ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/IKUpload.vue?vue&type=script&lang=js&

type: String,
default: "",
required: false

@@ -766,4 +777,4 @@ },

components_IKUploadvue_type_script_lang_js_,
IKUploadvue_type_template_id_33357834_render,
IKUploadvue_type_template_id_33357834_staticRenderFns,
IKUploadvue_type_template_id_cefbf3fe_render,
IKUploadvue_type_template_id_cefbf3fe_staticRenderFns,
false,

@@ -788,3 +799,3 @@ null,

var VERSION = "1.0.6";
var VERSION = "1.0.7";
var componentMapping = {

@@ -791,0 +802,0 @@ "ik-context": IKContext,

@@ -1,2 +0,2 @@

(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["imagekitio-vue"]=e():t["imagekitio-vue"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({8875:function(t,e,n){var r,i,o;(function(n,a){i=[],r=a,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var n,r,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(d.stack)||a.exec(d.stack),u=s&&s[1]||!1,c=s&&s[2]||!1,p=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");u===p&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=n.replace(r,"$1").trim());for(var f=0;f<l.length;f++){if("interactive"===l[f].readyState)return l[f];if(l[f].src===u)return l[f];if(u===p&&l[f].innerHTML&&l[f].innerHTML.trim()===i)return l[f]}return null}}return t}))},e22a:function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";function t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?e(Object(i),!0).forEach((function(e){t(n,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(i,t))}))}return n}var r={height:"h",width:"w",aspectRatio:"ar",quality:"q",crop:"c",cropMode:"cm",x:"x",y:"y",focus:"fo",format:"f",radius:"r",background:"bg",border:"bo",rotation:"rt",blur:"bl",named:"n",overlayImage:"oi",overlayX:"ox",overlayY:"oy",overlayFocus:"ofo",overlayHeight:"oh",overlayWidth:"ow",overlayText:"ot",overlayTextFontSize:"ots",overlayTextFontFamily:"otf",overlayTextColor:"otc",overlayAlpha:"oa",overlayTextTypography:"ott",overlayBackground:"obg",overlayImageTrim:"oit",progressive:"pr",lossless:"lo",trim:"t",metadata:"md",colorProfile:"cp",defaultImage:"di",dpr:"dpr",effectSharpen:"e-sharpen",effectUSM:"e-usm",effectContrast:"e-contrast",effectGray:"e-grayscale",original:"orig"},i=["path","query"],o=function(){return"path"},a=function(t){return"query"===t.transformationPosition},s=function(t){return-1!=i.indexOf(t.transformationPosition)},u=function(t){return t&&r[t.toLowerCase()]||""},c=function(){return":"},p=function(){return","},l=function(){return"-"},f=function(t){if(!t.path&&!t.src)return"";var e,n,r;if(t.path?(r=new URL(t.urlEndpoint).pathname,e=new URL(d([t.urlEndpoint.replace(r,""),t.path]))):(e=new URL(t.src),n=!0),!e)return"";for(var i in t.sdkVersion&&""!=t.sdkVersion.trim()&&e.searchParams.append("ik-sdk-version",t.sdkVersion.trim()),t.queryParameters)e.searchParams.append(i,t.queryParameters[i]);var o=function(t){if(!Array.isArray(t))return"";for(var e=[],n=0,r=t.length;n<r;n++){var i=[];for(var o in t[n]){var a=u(o);a||(a=o),"-"===t[n][o]?i.push(a):i.push([a,t[n][o]].join(l()))}e.push(i.join(p()))}return e.join(c())}(t.transformation);return o&&o.length&&(a(t)||n?e.searchParams.append("tr",o):e.pathname=d(["tr"+c()+o,e.pathname])),e.pathname=d([r,e.pathname]),e.href};function d(t,e){var n=e||"/",r=new RegExp(n+"{1,}","g");return t.join(n).replace(r,n)}var h={MANDATORY_INITIALIZATION_MISSING:{message:"Missing urlEndpoint during SDK initialization",help:""},INVALID_TRANSFORMATION_POSITION:{message:"Invalid transformationPosition parameter",help:""},PRIVATE_KEY_CLIENT_SIDE:{message:"privateKey should not be passed on the client side",help:""},MISSING_UPLOAD_DATA:{message:"Missing data for upload",help:""},MISSING_UPLOAD_FILE_PARAMETER:{message:"Missing file parameter for upload",help:""},MISSING_UPLOAD_FILENAME_PARAMETER:{message:"Missing fileName parameter for upload",help:""},MISSING_AUTHENTICATION_ENDPOINT:{message:"Missing authentication endpoint for upload",help:""},AUTH_ENDPOINT_TIMEOUT:{message:"The authenticationEndpoint you provided timed out in 60 seconds",help:""},AUTH_ENDPOINT_NETWORK_ERROR:{message:"Request to authenticationEndpoint failed due to network error",help:""},UPLOAD_ENDPOINT_NETWORK_ERROR:{message:"Request to ImageKit upload endpoint failed due to network error",help:""}};function g(t,e,n){"function"==typeof n&&(t?n(e,null):n(null,e))}var y=function(t,e){var n=new XMLHttpRequest;n.timeout=6e4,n.open("GET",t.authenticationEndpoint),n.ontimeout=function(t){"function"==typeof e&&g(!0,h.AUTH_ENDPOINT_TIMEOUT,e)},n.onerror=function(){g(!0,h.AUTH_ENDPOINT_NETWORK_ERROR,e)},n.onload=function(){if(200===n.status)try{var t=JSON.parse(n.responseText),r={signature:t.signature,expire:t.expire,token:t.token};return void e(null,r)}catch(t){if("function"!=typeof e)return;e(t)}else try{var i=JSON.parse(n.responseText);if("function"!=typeof e)return;e(i)}catch(t){if("function"!=typeof e)return;e(t)}},n.send()},m=function(t,e){var n=new XMLHttpRequest;n.open("POST","https://upload.imagekit.io/api/v1/files/upload"),n.onerror=function(){g(!0,h.UPLOAD_ENDPOINT_NETWORK_ERROR,e)},n.onload=function(){if(200===n.status){if("function"!=typeof e)return;var t=JSON.parse(n.responseText);e(null,t)}else if(200!==n.status){if("function"!=typeof e)return;e(JSON.parse(n.responseText))}},n.send(t)},O=function(t,e,n){if(t)if(t.file)if(t.fileName)if(e.authenticationEndpoint){var r=new FormData;for(var i in t)r.append(i,t[i]);r.append("publicKey",e.publicKey),function(t,e,n){y(e,(function(e,r){if(e){if("function"!=typeof n)return;n(e,null)}else t.append("signature",r.signature||""),t.append("expire",r.expire||0),t.append("token",r.token),m(t,(function(t,e){if(t){if("function"!=typeof n)return;n(t,null)}else n(null,e)}))}))}(r,e,n)}else g(!0,h.MISSING_AUTHENTICATION_ENDPOINT,n);else g(!0,h.MISSING_UPLOAD_FILENAME_PARAMETER,n);else g(!0,h.MISSING_UPLOAD_FILE_PARAMETER,n);else g(!0,h.INVALID_UPLOAD_OPTIONS,n)},v="1.3.3";return function(t){if(t=t||{},this.options={sdkVersion:"javascript-".concat(v),publicKey:"",urlEndpoint:"",transformationPosition:o()},this.options=n(n({},this.options),t),!this.options.urlEndpoint)throw h.MANDATORY_INITIALIZATION_MISSING;if(function(t){return void 0!==t.privateKey}(this.options))throw h.PRIVATE_KEY_CLIENT_SIDE;if(!s(this.options))throw h.INVALID_TRANSFORMATION_POSITION;this.url=function(t){return function(t,e){var r=n(n({},e),t);return function(t){return!!t.urlEndpoint}(r)?f(r):""}(t,this.options)},this.upload=function(t,e,r){var i=n(n({},this.options),r);return O(t,i,e)}}}))},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"ImageKit",(function(){return U})),n.d(e,"IKContext",(function(){return f})),n.d(e,"IKImage",(function(){return P})),n.d(e,"IKUpload",(function(){return x})),n.d(e,"IKCore",(function(){return g["ImageKit"]})),"undefined"!==typeof window){var r=window.document.currentScript,i=n("8875");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var a,s,u={name:"ik-context",inheritAttrs:!1,provide:function(){var t={};return Object.assign(t,this.$attrs),{contextConfigurations:t}},render:function(){return this.$scopedSlots.default()}},c=u;function p(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var p=c.render;c.render=function(t,e){return u.call(e),p(t,e)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,u):[u]}return{exports:t,options:c}}var l=p(c,a,s,!1,null,null,null),f=l.exports,d=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("img",{staticClass:"ik-image",attrs:{src:t.srcImage}})},h=[],g=n("e22a"),y=n.n(g);function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var b={name:"ik-image",inject:{contextConfigurations:{default:{}}},data:function(){return{intersected:!1,observer:null,originalSrcLoaded:!1}},props:{urlEndpoint:{type:String,default:"",required:!1},path:{type:String,default:"",required:!1},src:{type:String,default:"",required:!1},transformation:{type:Array,required:!1},transformationPosition:{type:String,required:!1},queryParameters:{type:Object,required:!1},lqip:{type:Object,default:null,required:!1},loading:{type:String,default:""}},methods:{getMergedOptions:function(){return O(O({},this.defaultOptions),this.contextConfigurations)},getClient:function(){return new y.a({sdkVersion:"vuejs-".concat(M),urlEndpoint:this.urlEndpoint?this.urlEndpoint:this.contextConfigurations.urlEndpoint})},triggerOriginalImageLoad:function(){var t=this,e=new Image;e.onload=function(){t.originalSrcLoaded=!0},e.src=this.imageAttrs.src},getEffectiveConnection:function(){try{return navigator.connection.effectiveType}catch(t){return"4g"}}},mounted:function(){var t=this;if(window&&"IntersectionObserver"in window&&"lazy"===this.loading){var e=this.getEffectiveConnection(),n="1250px";"4g"!==e&&(n="2500px"),this.observer=new IntersectionObserver((function(e){var n=e[0];n&&n.isIntersecting&&(t.intersected=!0,t.lqip&&t.triggerOriginalImageLoad(),t.observer.disconnect())}),{rootMargin:"".concat(n," 0px ").concat(n," 0px")}),this.observer.observe(this.$el)}else this.lqip&&this.triggerOriginalImageLoad()},destroyed:function(){this.observer.disconnect()},computed:{srcImage:function(){return"lazy"!==this.loading&&null===this.lqip?this.imageAttrs.src:"lazy"!==this.loading&&this.lqip&&this.lqip.active?this.originalSrcLoaded?this.imageAttrs.src:this.imageAttrs.lqipSrc:"lazy"===this.loading&&null===this.lqip?this.intersected?this.imageAttrs.src:"":"lazy"===this.loading&&this.lqip&&this.lqip.active?this.intersected&&this.originalSrcLoaded?this.imageAttrs.src:this.imageAttrs.lqipSrc:this.imageAttrs.src},imageAttrs:function(){var t=this.getMergedOptions(),e=this.IkClient||this.getClient(),n={urlEndpoint:this.urlEndpoint?this.urlEndpoint:t.urlEndpoint,src:this.src,path:this.path,transformation:this.transformation,transformationPosition:this.transformationPosition,queryParameters:this.queryParameters},r={};if(r.src=e.url(n),this.lqip&&this.lqip.active){var i=parseInt(this.lqip.quality||this.lqip.threshold,10)||20,o=parseInt(this.lqip.blur||this.lqip.blur,10)||6,a=n.transformation||[];a.push({quality:i,blur:o}),r.lqipSrc=e.url(O(O({},n),{},{transformation:a}))}return r}}},E=b,I=p(E,d,h,!1,null,null,null),P=I.exports,S=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("input",{ref:"imageFile",attrs:{type:"file"},on:{change:t.upload}})},_=[];function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function T(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){N(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function N(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w={name:"ik-upload",inject:{contextConfigurations:{default:{}}},props:{urlEndpoint:{type:String,default:"",required:!1},publicKey:{type:String,default:"",required:!1},authenticationEndpoint:{type:String,default:"",required:!1},fileName:{type:String,default:"",required:!1},useUniqueFileName:{type:Boolean,default:!0,required:!1},tags:{type:Array,required:!1},folder:{type:String,default:"/",required:!1},isPrivateFile:{type:Boolean,default:!1,required:!1},customCoordinates:{type:String,required:!1},responseFields:{type:Array,required:!1},onError:{type:Function,required:!1},onSuccess:{type:Function,required:!1}},data:function(){return{file:{}}},methods:{getMergedOptions:function(){return T(T({},this.defaultOptions),this.contextConfigurations)},getClient:function(){return new y.a({sdkVersion:"vuejs-".concat(M),urlEndpoint:this.urlEndpoint?this.urlEndpoint:this.contextConfigurations.urlEndpoint,publicKey:this.urlEndpoint||this.contextConfigurations.urlEndpoint,authenticationEndpoint:this.authenticationEndpoint||this.contextConfigurations.authenticationEndpoint})},upload:function(){var t=this,e=this.$refs.imageFile.files[0],n=e.name,r=this.getMergedOptions(),i=this.IkClient||this.getClient(),o=this.publicKey||r.publicKey,a=this.authenticationEndpoint||r.authenticationEndpoint;o&&""!==o.trim()?a&&""!==a.trim()?i.upload({file:e,fileName:this.fileName||n,useUniqueFileName:this.useUniqueFileName,tags:this.tags,folder:this.folder,isPrivateFile:this.isPrivateFile,customCoordinates:this.customCoordinates,responseFields:this.responseFields},(function(e,n){e&&"function"===typeof t.onError?t.onError(e):e||"function"!==typeof t.onSuccess||t.onSuccess(n)}),{publicKey:o,authenticationEndpoint:a}):"function"===typeof this.onError&&this.onError({message:"Missing authenticationEndpoint"}):"function"===typeof this.onError&&this.onError({message:"Missing publicKey"})}}},A=w,q=p(A,S,_,!1,null,null,null),x=q.exports;function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function D(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?R(Object(n),!0).forEach((function(e){k(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var M="1.0.6",C={"ik-context":f,"ik-image":P,"ik-upload":x};function L(t,e){if(t.IkInstalled)throw new Error("Imagekit plugin already installed");e.defaultOptions={sdkVersion:"vuejs-".concat(M),publicKey:e.publicKey,urlEndpoint:e.urlEndpoint,authenticationEndpoint:e.authenticationEndpoint},e.IkClient=new y.a(e.defaultOptions),t.IkInstalled=!0,K(t,e)}function K(t,e){for(var n=function(){var n=e.components[r],i=C[n];i&&t.component(n,D(D({},i),{},{data:function(){return D(D({},i.data?i.data():{}),{},{IkClient:e.IkClient,defaultOptions:e.defaultOptions})}}))},r=0;r<e.components.length;r++)n()}var U={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.urlEndpoint||""===e.urlEndpoint.trim())throw new Error("urlEndpoint is required to initilize ImageKit");e.components&&0!==e.components.length||(e.components=["ik-image","ik-context","ik-upload"]),L(t,e)}};e["default"]=U}})}));
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["imagekitio-vue"]=e():t["imagekitio-vue"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({8875:function(t,e,n){var r,i,o;(function(n,a){i=[],r=a,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var n,r,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(d.stack)||a.exec(d.stack),u=s&&s[1]||!1,c=s&&s[2]||!1,p=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");u===p&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=n.replace(r,"$1").trim());for(var f=0;f<l.length;f++){if("interactive"===l[f].readyState)return l[f];if(l[f].src===u)return l[f];if(u===p&&l[f].innerHTML&&l[f].innerHTML.trim()===i)return l[f]}return null}}return t}))},e22a:function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";function t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?e(Object(i),!0).forEach((function(e){t(n,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(i,t))}))}return n}var r={height:"h",width:"w",aspectRatio:"ar",quality:"q",crop:"c",cropMode:"cm",x:"x",y:"y",focus:"fo",format:"f",radius:"r",background:"bg",border:"bo",rotation:"rt",blur:"bl",named:"n",overlayImage:"oi",overlayX:"ox",overlayY:"oy",overlayFocus:"ofo",overlayHeight:"oh",overlayWidth:"ow",overlayText:"ot",overlayTextFontSize:"ots",overlayTextFontFamily:"otf",overlayTextColor:"otc",overlayAlpha:"oa",overlayTextTypography:"ott",overlayBackground:"obg",overlayImageTrim:"oit",progressive:"pr",lossless:"lo",trim:"t",metadata:"md",colorProfile:"cp",defaultImage:"di",dpr:"dpr",effectSharpen:"e-sharpen",effectUSM:"e-usm",effectContrast:"e-contrast",effectGray:"e-grayscale",original:"orig"},i=["path","query"],o=function(){return"path"},a=function(t){return"query"===t.transformationPosition},s=function(t){return-1!=i.indexOf(t.transformationPosition)},u=function(t){return t&&r[t.toLowerCase()]||""},c=function(){return":"},p=function(){return","},l=function(){return"-"},f=function(t){if(!t.path&&!t.src)return"";var e,n,r;if(t.path?(r=new URL(t.urlEndpoint).pathname,e=new URL(d([t.urlEndpoint.replace(r,""),t.path]))):(e=new URL(t.src),n=!0),!e)return"";for(var i in t.sdkVersion&&""!=t.sdkVersion.trim()&&e.searchParams.append("ik-sdk-version",t.sdkVersion.trim()),t.queryParameters)e.searchParams.append(i,t.queryParameters[i]);var o=function(t){if(!Array.isArray(t))return"";for(var e=[],n=0,r=t.length;n<r;n++){var i=[];for(var o in t[n]){var a=u(o);a||(a=o),"-"===t[n][o]?i.push(a):i.push([a,t[n][o]].join(l()))}e.push(i.join(p()))}return e.join(c())}(t.transformation);return o&&o.length&&(a(t)||n?e.searchParams.append("tr",o):e.pathname=d(["tr"+c()+o,e.pathname])),e.pathname=d([r,e.pathname]),e.href};function d(t,e){var n=e||"/",r=new RegExp(n+"{1,}","g");return t.join(n).replace(r,n)}var h={MANDATORY_INITIALIZATION_MISSING:{message:"Missing urlEndpoint during SDK initialization",help:""},INVALID_TRANSFORMATION_POSITION:{message:"Invalid transformationPosition parameter",help:""},PRIVATE_KEY_CLIENT_SIDE:{message:"privateKey should not be passed on the client side",help:""},MISSING_UPLOAD_DATA:{message:"Missing data for upload",help:""},MISSING_UPLOAD_FILE_PARAMETER:{message:"Missing file parameter for upload",help:""},MISSING_UPLOAD_FILENAME_PARAMETER:{message:"Missing fileName parameter for upload",help:""},MISSING_AUTHENTICATION_ENDPOINT:{message:"Missing authentication endpoint for upload",help:""},AUTH_ENDPOINT_TIMEOUT:{message:"The authenticationEndpoint you provided timed out in 60 seconds",help:""},AUTH_ENDPOINT_NETWORK_ERROR:{message:"Request to authenticationEndpoint failed due to network error",help:""},UPLOAD_ENDPOINT_NETWORK_ERROR:{message:"Request to ImageKit upload endpoint failed due to network error",help:""}};function g(t,e,n){"function"==typeof n&&(t?n(e,null):n(null,e))}var y=function(t,e){var n=new XMLHttpRequest;n.timeout=6e4,n.open("GET",t.authenticationEndpoint),n.ontimeout=function(t){"function"==typeof e&&g(!0,h.AUTH_ENDPOINT_TIMEOUT,e)},n.onerror=function(){g(!0,h.AUTH_ENDPOINT_NETWORK_ERROR,e)},n.onload=function(){if(200===n.status)try{var t=JSON.parse(n.responseText),r={signature:t.signature,expire:t.expire,token:t.token};return void e(null,r)}catch(t){if("function"!=typeof e)return;e(t)}else try{var i=JSON.parse(n.responseText);if("function"!=typeof e)return;e(i)}catch(t){if("function"!=typeof e)return;e(t)}},n.send()},m=function(t,e){var n=new XMLHttpRequest;n.open("POST","https://upload.imagekit.io/api/v1/files/upload"),n.onerror=function(){g(!0,h.UPLOAD_ENDPOINT_NETWORK_ERROR,e)},n.onload=function(){if(200===n.status){if("function"!=typeof e)return;var t=JSON.parse(n.responseText);e(null,t)}else if(200!==n.status){if("function"!=typeof e)return;e(JSON.parse(n.responseText))}},n.send(t)},O=function(t,e,n){if(t)if(t.file)if(t.fileName)if(e.authenticationEndpoint){var r=new FormData;for(var i in t)r.append(i,t[i]);r.append("publicKey",e.publicKey),function(t,e,n){y(e,(function(e,r){if(e){if("function"!=typeof n)return;n(e,null)}else t.append("signature",r.signature||""),t.append("expire",r.expire||0),t.append("token",r.token),m(t,(function(t,e){if(t){if("function"!=typeof n)return;n(t,null)}else n(null,e)}))}))}(r,e,n)}else g(!0,h.MISSING_AUTHENTICATION_ENDPOINT,n);else g(!0,h.MISSING_UPLOAD_FILENAME_PARAMETER,n);else g(!0,h.MISSING_UPLOAD_FILE_PARAMETER,n);else g(!0,h.INVALID_UPLOAD_OPTIONS,n)},v="1.3.3";return function(t){if(t=t||{},this.options={sdkVersion:"javascript-".concat(v),publicKey:"",urlEndpoint:"",transformationPosition:o()},this.options=n(n({},this.options),t),!this.options.urlEndpoint)throw h.MANDATORY_INITIALIZATION_MISSING;if(function(t){return void 0!==t.privateKey}(this.options))throw h.PRIVATE_KEY_CLIENT_SIDE;if(!s(this.options))throw h.INVALID_TRANSFORMATION_POSITION;this.url=function(t){return function(t,e){var r=n(n({},e),t);return function(t){return!!t.urlEndpoint}(r)?f(r):""}(t,this.options)},this.upload=function(t,e,r){var i=n(n({},this.options),r);return O(t,i,e)}}}))},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"ImageKit",(function(){return U})),n.d(e,"IKContext",(function(){return f})),n.d(e,"IKImage",(function(){return P})),n.d(e,"IKUpload",(function(){return x})),n.d(e,"IKCore",(function(){return g["ImageKit"]})),"undefined"!==typeof window){var r=window.document.currentScript,i=n("8875");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var a,s,u={name:"ik-context",inheritAttrs:!1,provide:function(){var t={};return Object.assign(t,this.$attrs),{contextConfigurations:t}},render:function(){return this.$scopedSlots.default()}},c=u;function p(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var p=c.render;c.render=function(t,e){return u.call(e),p(t,e)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,u):[u]}return{exports:t,options:c}}var l=p(c,a,s,!1,null,null,null),f=l.exports,d=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("img",{staticClass:"ik-image",attrs:{src:t.srcImage}})},h=[],g=n("e22a"),y=n.n(g);function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var b={name:"ik-image",inject:{contextConfigurations:{default:{}}},data:function(){return{intersected:!1,observer:null,originalSrcLoaded:!1}},props:{urlEndpoint:{type:String,default:"",required:!1},publicKey:{type:String,default:"",required:!1},authenticationEndpoint:{type:String,default:"",required:!1},path:{type:String,default:"",required:!1},src:{type:String,default:"",required:!1},transformation:{type:Array,required:!1},transformationPosition:{type:String,required:!1},queryParameters:{type:Object,required:!1},lqip:{type:Object,default:null,required:!1},loading:{type:String,default:""}},methods:{getMergedOptions:function(){return O(O({},this.defaultOptions),this.contextConfigurations)},getClient:function(){return new y.a({sdkVersion:"vuejs-".concat(M),urlEndpoint:this.urlEndpoint?this.urlEndpoint:this.contextConfigurations.urlEndpoint})},triggerOriginalImageLoad:function(){var t=this,e=new Image;e.onload=function(){t.originalSrcLoaded=!0},e.src=this.imageAttrs.src},getEffectiveConnection:function(){try{return navigator.connection.effectiveType}catch(t){return"4g"}}},mounted:function(){var t=this;if(window&&"IntersectionObserver"in window&&"lazy"===this.loading){var e=this.getEffectiveConnection(),n="1250px";"4g"!==e&&(n="2500px"),this.observer=new IntersectionObserver((function(e){var n=e[0];n&&n.isIntersecting&&(t.intersected=!0,t.lqip&&t.triggerOriginalImageLoad(),t.observer.disconnect())}),{rootMargin:"".concat(n," 0px ").concat(n," 0px")}),this.observer.observe(this.$el)}else this.lqip&&this.triggerOriginalImageLoad()},destroyed:function(){this.observer.disconnect()},computed:{srcImage:function(){return"lazy"!==this.loading&&null===this.lqip?this.imageAttrs.src:"lazy"!==this.loading&&this.lqip&&this.lqip.active?this.originalSrcLoaded?this.imageAttrs.src:this.imageAttrs.lqipSrc:"lazy"===this.loading&&null===this.lqip?this.intersected?this.imageAttrs.src:"":"lazy"===this.loading&&this.lqip&&this.lqip.active?this.intersected&&this.originalSrcLoaded?this.imageAttrs.src:this.imageAttrs.lqipSrc:this.imageAttrs.src},imageAttrs:function(){var t=this.getMergedOptions(),e=this.IkClient||this.getClient(),n={urlEndpoint:this.urlEndpoint?this.urlEndpoint:t.urlEndpoint,src:this.src,path:this.path,transformation:this.transformation,transformationPosition:this.transformationPosition,queryParameters:this.queryParameters},r={};if(r.src=e.url(n),this.lqip&&this.lqip.active){var i=parseInt(this.lqip.quality||this.lqip.threshold,10)||20,o=parseInt(this.lqip.blur||this.lqip.blur,10)||6,a=n.transformation||[];a.push({quality:i,blur:o}),r.lqipSrc=e.url(O(O({},n),{},{transformation:a}))}return r}}},E=b,I=p(E,d,h,!1,null,null,null),P=I.exports,S=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("input",{ref:"imageFile",attrs:{type:"file"},on:{change:t.upload}})},_=[];function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function T(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){N(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function N(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w={name:"ik-upload",inject:{contextConfigurations:{default:{}}},props:{urlEndpoint:{type:String,default:"",required:!1},publicKey:{type:String,default:"",required:!1},authenticationEndpoint:{type:String,default:"",required:!1},fileName:{type:String,default:"",required:!1},useUniqueFileName:{type:Boolean,default:!0,required:!1},tags:{type:Array,required:!1},folder:{type:String,default:"/",required:!1},isPrivateFile:{type:Boolean,default:!1,required:!1},customCoordinates:{type:String,default:"",required:!1},responseFields:{type:Array,required:!1},onError:{type:Function,required:!1},onSuccess:{type:Function,required:!1}},data:function(){return{file:{}}},methods:{getMergedOptions:function(){return T(T({},this.defaultOptions),this.contextConfigurations)},getClient:function(){return new y.a({sdkVersion:"vuejs-".concat(M),urlEndpoint:this.urlEndpoint?this.urlEndpoint:this.contextConfigurations.urlEndpoint,publicKey:this.urlEndpoint||this.contextConfigurations.urlEndpoint,authenticationEndpoint:this.authenticationEndpoint||this.contextConfigurations.authenticationEndpoint})},upload:function(){var t=this,e=this.$refs.imageFile.files[0],n=e.name,r=this.getMergedOptions(),i=this.IkClient||this.getClient(),o=this.publicKey||r.publicKey,a=this.authenticationEndpoint||r.authenticationEndpoint;o&&""!==o.trim()?a&&""!==a.trim()?i.upload({file:e,fileName:this.fileName||n,useUniqueFileName:this.useUniqueFileName,tags:this.tags,folder:this.folder,isPrivateFile:this.isPrivateFile,customCoordinates:this.customCoordinates,responseFields:this.responseFields},(function(e,n){e&&"function"===typeof t.onError?t.onError(e):e||"function"!==typeof t.onSuccess||t.onSuccess(n)}),{publicKey:o,authenticationEndpoint:a}):"function"===typeof this.onError&&this.onError({message:"Missing authenticationEndpoint"}):"function"===typeof this.onError&&this.onError({message:"Missing publicKey"})}}},A=w,q=p(A,S,_,!1,null,null,null),x=q.exports;function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function D(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?R(Object(n),!0).forEach((function(e){k(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var M="1.0.7",C={"ik-context":f,"ik-image":P,"ik-upload":x};function L(t,e){if(t.IkInstalled)throw new Error("Imagekit plugin already installed");e.defaultOptions={sdkVersion:"vuejs-".concat(M),publicKey:e.publicKey,urlEndpoint:e.urlEndpoint,authenticationEndpoint:e.authenticationEndpoint},e.IkClient=new y.a(e.defaultOptions),t.IkInstalled=!0,K(t,e)}function K(t,e){for(var n=function(){var n=e.components[r],i=C[n];i&&t.component(n,D(D({},i),{},{data:function(){return D(D({},i.data?i.data():{}),{},{IkClient:e.IkClient,defaultOptions:e.defaultOptions})}}))},r=0;r<e.components.length;r++)n()}var U={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.urlEndpoint||""===e.urlEndpoint.trim())throw new Error("urlEndpoint is required to initilize ImageKit");e.components&&0!==e.components.length||(e.components=["ik-image","ik-context","ik-upload"]),L(t,e)}};e["default"]=U}})}));
//# sourceMappingURL=imagekitio-vue.umd.min.js.map
{
"name": "imagekitio-vue",
"version": "1.0.6",
"version": "1.0.7",
"scripts": {

@@ -5,0 +5,0 @@ "build:lib": "./node_modules/.bin/vue-cli-service build --target lib src/index.js",

@@ -83,3 +83,3 @@ [<img width="250" alt="ImageKit.io" src="https://raw.githubusercontent.com/imagekit-developer/imagekit-javascript/master/assets/imagekit-light-logo.svg"/>](https://imagekit.io)

path="/default-image.jpg"
:transformation="[{height:300,width:400}, {rotate:90}]"
:transformation="[{height:300,width:400}, {rotation:90}]"
/>

@@ -90,3 +90,3 @@

src="https://custom-domain.com/default-image.jpg"
:transformation="[{height:300,width:400}, {rotate:90}]"
:transformation="[{height:300,width:400}, {rotation:90}]"
/>

@@ -194,3 +194,3 @@

src="https://custom-domain.com/default-image.jpg"
:transformation="[{height:300,width:400}, {rotate:90}]"
:transformation="[{height:300,width:400}, {rotation:90}]"
/>

@@ -207,3 +207,3 @@

path="/default-image.jpg"
:transformation="[{height:300,width:400, custom: 'value'}, {rotate:90}]"
:transformation="[{height:300,width:400, custom: 'value'}, {rotation:90}]"
/>

@@ -222,3 +222,3 @@ ```

{
rotate: 90
rotation: 90
}

@@ -228,2 +228,4 @@ ]

See the complete list of transformations supported in ImageKit [here](https://docs.imagekit.io/features/image-transformations). The SDK gives a name to each transformation parameter e.g. `height` for `h` and `width` for `w` parameter. It makes your code more readable. If the property does not match any of the following supported options, it is added as it is.
### List of supported transformations

@@ -233,4 +235,2 @@ <details>

The complete list of transformations supported and their usage in ImageKit can be found [here](https://docs.imagekit.io/features/image-transformations). The SDK gives a name to each transformation parameter, making the code readable. If the property does not match any of the following, it is appended in the URL.
| Supported Transformation Name | Translates to parameter |

@@ -291,3 +291,3 @@ | ----------------------------- | ----------------------- |

path="/default-image.jpg"
:transformation="[{height:300,width:400}, {rotate:90}]"
:transformation="[{height:300,width:400}, {rotation:90}]"
/>

@@ -294,0 +294,0 @@ ```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet