UNPKG

vue-inner-image-zoom

Version:

A Vue.js component for magnifying an image within its parent container 🔎

1 lines • 35.3 kB
var InnerImageZoom;(()=>{"use strict";var e={262:(e,t)=>{t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{function e(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)n[o[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}function t(e){if(g(e)){const n={};for(let o=0;o<e.length;o++){const r=e[o],i=v(r)?s(r):t(r);if(i)for(const e in i)n[e]=i[e]}return n}return v(e)||_(e)?e:void 0}n.r(o),n.d(o,{InnerImageZoom:()=>Wn,default:()=>Hn});const r=/;(?![^(]*\))/g,i=/:(.+)/;function s(e){const t={};return e.split(r).forEach((e=>{if(e){const n=e.split(i);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function a(e){let t="";if(v(e))t=e;else if(g(e))for(let n=0;n<e.length;n++){const o=a(e[n]);o&&(t+=o+" ")}else if(_(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const l=[],c=()=>{},u=/^on[^a-z]/,f=e=>u.test(e),p=Object.assign,h=Object.prototype.hasOwnProperty,d=(e,t)=>h.call(e,t),g=Array.isArray,m=e=>"[object Map]"===S(e),y=e=>"function"==typeof e,v=e=>"string"==typeof e,b=e=>"symbol"==typeof e,_=e=>null!==e&&"object"==typeof e,w=Object.prototype.toString,S=e=>w.call(e),C=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,P=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},O=/-(\w)/g,k=(P((e=>e.replace(O,((e,t)=>t?t.toUpperCase():"")))),/\B([A-Z])/g),A=(P((e=>e.replace(k,"-$1").toLowerCase())),P((e=>e.charAt(0).toUpperCase()+e.slice(1)))),M=P((e=>e?`on${A(e)}`:"")),z=(e,t)=>!Object.is(e,t);const T=e=>{const t=new Set(e);return t.w=0,t.n=0,t},x=e=>(e.w&L)>0,F=e=>(e.n&L)>0,D=new WeakMap;let E,j=0,L=1;const I=Symbol(""),Z=Symbol("");let B=!0;const N=[];function $(){N.push(B),B=!1}function R(){const e=N.pop();B=void 0===e||e}function W(e,t,n){if(B&&E){let t=D.get(e);t||D.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=T()),function(e){let t=!1;j<=30?F(e)||(e.n|=L,t=!x(e)):t=!e.has(E),t&&(e.add(E),E.deps.push(e))}(o)}}function H(e,t,n,o,r,i){const s=D.get(e);if(!s)return;let a=[];if("clear"===t)a=[...s.values()];else if("length"===n&&g(e))s.forEach(((e,t)=>{("length"===t||t>=o)&&a.push(e)}));else switch(void 0!==n&&a.push(s.get(n)),t){case"add":g(e)?C(n)&&a.push(s.get("length")):(a.push(s.get(I)),m(e)&&a.push(s.get(Z)));break;case"delete":g(e)||(a.push(s.get(I)),m(e)&&a.push(s.get(Z)));break;case"set":m(e)&&a.push(s.get(I))}if(1===a.length)a[0]&&K(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);K(T(e))}}function K(e,t){const n=g(e)?e:[...e];for(const e of n)e.computed&&V(e);for(const e of n)e.computed||V(e)}function V(e,t){(e!==E||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const X=e("__proto__,__v_isRef,__isVue"),Y=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(b)),U=Q(),q=Q(!0),G=J();function J(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Ee(this);for(let e=0,t=this.length;e<t;e++)W(n,0,e+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(Ee)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){$();const n=Ee(this)[t].apply(this,e);return R(),n}})),e}function Q(e=!1,t=!1){return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&r===(e?t?ke:Oe:t?Pe:Ce).get(n))return n;const i=g(n);if(!e&&i&&d(G,o))return Reflect.get(G,o,r);const s=Reflect.get(n,o,r);return(b(o)?Y.has(o):X(o))?s:(e||W(n,0,o),t?s:Ze(s)?i&&C(o)?s:s.value:_(s)?e?Me(s):Ae(s):s)}}function ee(e=!1){return function(t,n,o,r){let i=t[n];if(xe(i)&&Ze(i)&&!Ze(o))return!1;if(!e&&(Fe(o)||xe(o)||(i=Ee(i),o=Ee(o)),!g(t)&&Ze(i)&&!Ze(o)))return i.value=o,!0;const s=g(t)&&C(n)?Number(n)<t.length:d(t,n),a=Reflect.set(t,n,o,r);return t===Ee(r)&&(s?z(o,i)&&H(t,"set",n,o):H(t,"add",n,o)),a}}const te={get:U,set:ee(),deleteProperty:function(e,t){const n=d(e,t),o=(e[t],Reflect.deleteProperty(e,t));return o&&n&&H(e,"delete",t,void 0),o},has:function(e,t){const n=Reflect.has(e,t);return b(t)&&Y.has(t)||W(e,0,t),n},ownKeys:function(e){return W(e,0,g(e)?"length":I),Reflect.ownKeys(e)}},ne={get:q,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},oe=e=>e,re=e=>Reflect.getPrototypeOf(e);function ie(e,t,n=!1,o=!1){const r=Ee(e=e.__v_raw),i=Ee(t);n||(t!==i&&W(r,0,t),W(r,0,i));const{has:s}=re(r),a=o?oe:n?Ie:Le;return s.call(r,t)?a(e.get(t)):s.call(r,i)?a(e.get(i)):void(e!==r&&e.get(t))}function se(e,t=!1){const n=this.__v_raw,o=Ee(n),r=Ee(e);return t||(e!==r&&W(o,0,e),W(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function ae(e,t=!1){return e=e.__v_raw,!t&&W(Ee(e),0,I),Reflect.get(e,"size",e)}function le(e){e=Ee(e);const t=Ee(this);return re(t).has.call(t,e)||(t.add(e),H(t,"add",e,e)),this}function ce(e,t){t=Ee(t);const n=Ee(this),{has:o,get:r}=re(n);let i=o.call(n,e);i||(e=Ee(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?z(t,s)&&H(n,"set",e,t):H(n,"add",e,t),this}function ue(e){const t=Ee(this),{has:n,get:o}=re(t);let r=n.call(t,e);r||(e=Ee(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&H(t,"delete",e,void 0),i}function fe(){const e=Ee(this),t=0!==e.size,n=e.clear();return t&&H(e,"clear",void 0,void 0),n}function pe(e,t){return function(n,o){const r=this,i=r.__v_raw,s=Ee(i),a=t?oe:e?Ie:Le;return!e&&W(s,0,I),i.forEach(((e,t)=>n.call(o,a(e),a(t),r)))}}function he(e,t,n){return function(...o){const r=this.__v_raw,i=Ee(r),s=m(i),a="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,c=r[e](...o),u=n?oe:t?Ie:Le;return!t&&W(i,0,l?Z:I),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function de(e){return function(...t){return"delete"!==e&&this}}function ge(){const e={get(e){return ie(this,e)},get size(){return ae(this)},has:se,add:le,set:ce,delete:ue,clear:fe,forEach:pe(!1,!1)},t={get(e){return ie(this,e,!1,!0)},get size(){return ae(this)},has:se,add:le,set:ce,delete:ue,clear:fe,forEach:pe(!1,!0)},n={get(e){return ie(this,e,!0)},get size(){return ae(this,!0)},has(e){return se.call(this,e,!0)},add:de("add"),set:de("set"),delete:de("delete"),clear:de("clear"),forEach:pe(!0,!1)},o={get(e){return ie(this,e,!0,!0)},get size(){return ae(this,!0)},has(e){return se.call(this,e,!0)},add:de("add"),set:de("set"),delete:de("delete"),clear:de("clear"),forEach:pe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=he(r,!1,!1),n[r]=he(r,!0,!1),t[r]=he(r,!1,!0),o[r]=he(r,!0,!0)})),[e,n,t,o]}const[me,ye,ve,be]=ge();function _e(e,t){const n=t?e?be:ve:e?ye:me;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(d(n,o)&&o in t?n:t,o,r)}const we={get:_e(!1,!1)},Se={get:_e(!0,!1)},Ce=new WeakMap,Pe=new WeakMap,Oe=new WeakMap,ke=new WeakMap;function Ae(e){return xe(e)?e:ze(e,!1,te,we,Ce)}function Me(e){return ze(e,!0,ne,Se,Oe)}function ze(e,t,n,o,r){if(!_(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>S(e).slice(8,-1))(a));var a;if(0===s)return e;const l=new Proxy(e,2===s?o:n);return r.set(e,l),l}function Te(e){return xe(e)?Te(e.__v_raw):!(!e||!e.__v_isReactive)}function xe(e){return!(!e||!e.__v_isReadonly)}function Fe(e){return!(!e||!e.__v_isShallow)}function De(e){return Te(e)||xe(e)}function Ee(e){const t=e&&e.__v_raw;return t?Ee(t):e}function je(e){return((e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})})(e,"__v_skip",!0),e}const Le=e=>_(e)?Ae(e):e,Ie=e=>_(e)?Me(e):e;function Ze(e){return!(!e||!0!==e.__v_isRef)}const Be={get:(e,t,n)=>{return Ze(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const r=e[t];return Ze(r)&&!Ze(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Ne(e,t,n,o){let r;try{r=o?e(...o):e()}catch(e){Re(e,t,n)}return r}function $e(e,t,n,o){if(y(e)){const i=Ne(e,t,n,o);return i&&(_(r=i)&&y(r.then)&&y(r.catch))&&i.catch((e=>{Re(e,t,n)})),i}var r;const i=[];for(let r=0;r<e.length;r++)i.push($e(e[r],t,n,o));return i}function Re(e,t,n,o=!0){if(t&&t.vnode,t){let o=t.parent;const r=t.proxy,i=n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,i))return;o=o.parent}const s=t.appContext.config.errorHandler;if(s)return void Ne(s,null,10,[e,r,i])}!function(e){console.error(e)}(e)}let We=!1,He=!1;const Ke=[];let Ve=0;const Xe=[];let Ye=null,Ue=0;const qe=Promise.resolve();let Ge=null;function Je(e){const t=Ge||qe;return e?t.then(this?e.bind(this):e):t}function Qe(e){Ke.length&&Ke.includes(e,We&&e.allowRecurse?Ve+1:Ve)||(null==e.id?Ke.push(e):Ke.splice(function(e){let t=Ve+1,n=Ke.length;for(;t<n;){const o=t+n>>>1;tt(Ke[o])<e?t=o+1:n=o}return t}(e.id),0,e),et())}function et(){We||He||(He=!0,Ge=qe.then(ot))}const tt=e=>null==e.id?1/0:e.id,nt=(e,t)=>{const n=tt(e)-tt(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ot(e){He=!1,We=!0,Ke.sort(nt);try{for(Ve=0;Ve<Ke.length;Ve++){const e=Ke[Ve];e&&!1!==e.active&&Ne(e,null,14)}}finally{Ve=0,Ke.length=0,function(){if(Xe.length){const e=[...new Set(Xe)];if(Xe.length=0,Ye)return void Ye.push(...e);for(Ye=e,Ye.sort(((e,t)=>tt(e)-tt(t))),Ue=0;Ue<Ye.length;Ue++)Ye[Ue]();Ye=null,Ue=0}}(),We=!1,Ge=null,(Ke.length||Xe.length)&&ot(e)}}new Set,new Map;let rt=null;const it=[Function,Array],st={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:it,onEnter:it,onAfterEnter:it,onEnterCancelled:it,onBeforeLeave:it,onLeave:it,onAfterLeave:it,onLeaveCancelled:it,onBeforeAppear:it,onAppear:it,onAfterAppear:it,onAppearCancelled:it},setup(e,{slots:t}){const n=qt(),o=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return gt((()=>{e.isMounted=!0})),mt((()=>{e.isUnmounting=!0})),e}();let r;return()=>{const i=t.default&&pt(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){let e=!1;for(const t of i)if(t.type!==Tt){s=t,e=!0;break}}const a=Ee(e),{mode:l}=a;if(o.isLeaving)return ct(s);const c=ut(s);if(!c)return ct(s);const u=lt(c,a,o,n);ft(c,u);const f=n.subTree,p=f&&ut(f);let h=!1;const{getTransitionKey:d}=c.type;if(d){const e=d();void 0===r?r=e:e!==r&&(r=e,h=!0)}if(p&&p.type!==Tt&&(!Zt(c,p)||h)){const e=lt(p,a,o,n);if(ft(p,e),"out-in"===l)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,n.update()},ct(s);"in-out"===l&&c.type!==Tt&&(e.delayLeave=(e,t,n)=>{at(o,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return s}}};function at(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function lt(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:p,onAfterLeave:h,onLeaveCancelled:d,onBeforeAppear:m,onAppear:y,onAfterAppear:v,onAppearCancelled:b}=t,_=String(e.key),w=at(n,e),S=(e,t)=>{e&&$e(e,o,9,t)},C=(e,t)=>{const n=t[1];S(e,t),g(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},P={mode:i,persisted:s,beforeEnter(t){let o=a;if(!n.isMounted){if(!r)return;o=m||a}t._leaveCb&&t._leaveCb(!0);const i=w[_];i&&Zt(e,i)&&i.el._leaveCb&&i.el._leaveCb(),S(o,[t])},enter(e){let t=l,o=c,i=u;if(!n.isMounted){if(!r)return;t=y||l,o=v||c,i=b||u}let s=!1;const a=e._enterCb=t=>{s||(s=!0,S(t?i:o,[e]),P.delayedLeave&&P.delayedLeave(),e._enterCb=void 0)};t?C(t,[e,a]):a()},leave(t,o){const r=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return o();S(f,[t]);let i=!1;const s=t._leaveCb=n=>{i||(i=!0,o(),S(n?d:h,[t]),t._leaveCb=void 0,w[r]===e&&delete w[r])};w[r]=e,p?C(p,[t,s]):s()},clone:e=>lt(e,t,n,o)};return P}function ct(e){if(ht(e))return(e=Ht(e)).children=null,e}function ut(e){return ht(e)?e.children?e.children[0]:void 0:e}function ft(e,t){6&e.shapeFlag&&e.component?ft(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function pt(e,t=!1,n){let o=[],r=0;for(let i=0;i<e.length;i++){let s=e[i];const a=null==n?s.key:String(n)+String(null!=s.key?s.key:i);s.type===Mt?(128&s.patchFlag&&r++,o=o.concat(pt(s.children,t,a))):(t||s.type!==Tt)&&o.push(null!=a?Ht(s,{key:a}):s)}if(r>1)for(let e=0;e<o.length;e++)o[e].patchFlag=-2;return o}const ht=e=>e.type.__isKeepAlive;RegExp,RegExp;const dt=e=>(t,n=Ut)=>(!Qt||"sp"===e)&&function(e,t,n=Ut,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;$(),Gt(n);const r=$e(t,n,e,o);return Jt(),R(),r});return o?r.unshift(i):r.push(i),i}}(e,t,n),gt=(dt("bm"),dt("m")),mt=(dt("bu"),dt("u"),dt("bum"));dt("um"),dt("sp"),dt("rtg"),dt("rtc");const yt=Symbol();function vt(e,t,n,o){let r;const i=n&&n[o];if(g(e)||v(e)){r=new Array(e.length);for(let n=0,o=e.length;n<o;n++)r[n]=t(e[n],n,void 0,i&&i[n])}else if("number"==typeof e){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,i&&i[n])}else if(_(e))if(e[Symbol.iterator])r=Array.from(e,((e,n)=>t(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,s=n.length;o<s;o++){const s=n[o];r[o]=t(e[s],s,o,i&&i[o])}}else r=[];return n&&(n[o]=r),r}function bt(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:M(o)]=e[o];return n}const _t=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((t=je(e.exposed),Te(t)?t:new Proxy(t,Be)),{get:(t,n)=>n in t?t[n]:n in wt?wt[n](e):void 0}));var t}(e)||e.proxy:_t(e.parent):null,wt=p(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>_t(e.parent),$root:e=>_t(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>Qe(e.update)),$nextTick:e=>e.n||(e.n=Je.bind(e.proxy)),$watch:e=>c});function St(e,t,n=!1){const o=e.children,r=t.children;if(g(o)&&g(r))for(let e=0;e<o.length;e++){const t=o[e];let s=r[e];1&s.shapeFlag&&!s.dynamicChildren&&((s.patchFlag<=0||32===s.patchFlag)&&(s=r[e]=null===(i=r[e]).el||i.memo?i:Ht(i),s.el=t.el),n||St(t,s))}var i}const Ct=e=>e&&(e.disabled||""===e.disabled),Pt=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Ot=(e,t)=>{const n=e&&e.to;if(v(n)){if(t){return t(n)}return null}return n};function kt(e,t,n,{o:{insert:o},m:r},i=2){0===i&&o(e.targetAnchor,t,n);const{el:s,anchor:a,shapeFlag:l,children:c,props:u}=e,f=2===i;if(f&&o(s,t,n),(!f||Ct(u))&&16&l)for(let e=0;e<c.length;e++)r(c[e],t,n,2);f&&o(a,t,n)}const At={__isTeleport:!0,process(e,t,n,o,r,i,s,a,l,c){const{mc:u,pc:f,pbc:p,o:{insert:h,querySelector:d,createText:g,createComment:m}}=c,y=Ct(t.props);let{shapeFlag:v,children:b,dynamicChildren:_}=t;if(null==e){const e=t.el=g(""),c=t.anchor=g("");h(e,n,o),h(c,n,o);const f=t.target=Ot(t.props,d),p=t.targetAnchor=g("");f&&(h(p,f),s=s||Pt(f));const m=(e,t)=>{16&v&&u(b,e,t,r,i,s,a,l)};y?m(n,c):f&&m(f,p)}else{t.el=e.el;const o=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Ct(e.props),m=g?n:u,v=g?o:h;if(s=s||Pt(u),_?(p(e.dynamicChildren,_,m,r,i,s,a),St(e,t,!0)):l||f(e,t,m,v,r,i,s,a,!1),y)g||kt(t,n,o,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Ot(t.props,d);e&&kt(t,e,null,c,0)}else g&&kt(t,u,h,c,1)}},remove(e,t,n,o,{um:r,o:{remove:i}},s){const{shapeFlag:a,children:l,anchor:c,targetAnchor:u,target:f,props:p}=e;if(f&&i(u),(s||!Ct(p))&&(i(c),16&a))for(let e=0;e<l.length;e++){const o=l[e];r(o,t,n,!0,!!o.dynamicChildren)}},move:kt,hydrate:function(e,t,n,o,r,i,{o:{nextSibling:s,parentNode:a,querySelector:l}},c){const u=t.target=Ot(t.props,l);if(u){const l=u._lpa||u.firstChild;if(16&t.shapeFlag)if(Ct(t.props))t.anchor=c(s(e),t,a(e),n,o,r,i),t.targetAnchor=l;else{t.anchor=s(e);let a=l;for(;a;)if(a=s(a),a&&8===a.nodeType&&"teleport anchor"===a.data){t.targetAnchor=a,u._lpa=t.targetAnchor&&s(t.targetAnchor);break}c(l,t,u,n,o,r,i)}}return t.anchor&&s(t.anchor)}},Mt=Symbol(void 0),zt=Symbol(void 0),Tt=Symbol(void 0),xt=(Symbol(void 0),[]);let Ft=null;function Dt(e=!1){xt.push(Ft=e?null:[])}function Et(e){return e.dynamicChildren=Ft||l,xt.pop(),Ft=xt[xt.length-1]||null,Ft&&Ft.push(e),e}function jt(e,t,n,o,r,i){return Et(Rt(e,t,n,o,r,i,!0))}function Lt(e,t,n,o,r){return Et(Wt(e,t,n,o,r,!0))}function It(e){return!!e&&!0===e.__v_isVNode}function Zt(e,t){return e.type===t.type&&e.key===t.key}const Bt="__vInternal",Nt=({key:e})=>null!=e?e:null,$t=({ref:e,ref_key:t,ref_for:n})=>null!=e?v(e)||Ze(e)||y(e)?{i:rt,r:e,k:t,f:!!n}:e:null;function Rt(e,t=null,n=null,o=0,r=null,i=(e===Mt?0:1),s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Nt(t),ref:t&&$t(t),scopeId:null,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};return a?(Xt(l,n),128&i&&e.normalize(l)):n&&(l.shapeFlag|=v(n)?8:16),!s&&Ft&&(l.patchFlag>0||6&i)&&32!==l.patchFlag&&Ft.push(l),l}const Wt=function(e,n=null,o=null,r=0,i=null,s=!1){if(e&&e!==yt||(e=Tt),It(e)){const t=Ht(e,n,!0);return o&&Xt(t,o),!s&&Ft&&(6&t.shapeFlag?Ft[Ft.indexOf(e)]=t:Ft.push(t)),t.patchFlag|=-2,t}if(l=e,y(l)&&"__vccOpts"in l&&(e=e.__vccOpts),n){n=function(e){return e?De(e)||Bt in e?p({},e):e:null}(n);let{class:e,style:o}=n;e&&!v(e)&&(n.class=a(e)),_(o)&&(De(o)&&!g(o)&&(o=p({},o)),n.style=t(o))}var l;return Rt(e,n,o,r,i,v(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:_(e)?4:y(e)?2:0,s,!0)};function Ht(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,a=t?Yt(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Nt(a),ref:t&&t.ref?n&&r?g(r)?r.concat($t(t)):[r,$t(t)]:$t(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Mt?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ht(e.ssContent),ssFallback:e.ssFallback&&Ht(e.ssFallback),el:e.el,anchor:e.anchor}}function Kt(e=" ",t=0){return Wt(zt,null,e,t)}function Vt(e="",t=!1){return t?(Dt(),Lt(Tt,null,e)):Wt(Tt,null,e)}function Xt(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(g(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),Xt(e,n()),n._c&&(n._d=!0)))}{n=32;const e=t._;!e&&!(Bt in t)&&(t._ctx=rt)}}else y(t)?(t={default:t,_ctx:rt},n=32):(t=String(t),64&o?(n=16,t=[Kt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Yt(...e){const n={};for(let o=0;o<e.length;o++){const r=e[o];for(const e in r)if("class"===e)n.class!==r.class&&(n.class=a([n.class,r.class]));else if("style"===e)n.style=t([n.style,r.style]);else if(f(e)){const t=n[e],o=r[e];!o||t===o||g(t)&&t.includes(o)||(n[e]=t?[].concat(t,o):o)}else""!==e&&(n[e]=r[e])}return n}Object.create(null),new WeakMap,new WeakMap,new WeakMap;let Ut=null;const qt=()=>Ut||rt,Gt=e=>{Ut=e,e.scope.on()},Jt=()=>{Ut&&Ut.scope.off(),Ut=null};let Qt=!1;Symbol(""),"undefined"!=typeof document&&document;const[en,tn]=(()=>{let e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();"undefined"!=typeof HTMLElement&&HTMLElement;const nn="transition",on="animation",rn=(e,{slots:t})=>function(e,t,n){const o=arguments.length;return 2===o?_(t)&&!g(t)?It(t)?Wt(e,null,[t]):Wt(e,t):Wt(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&It(n)&&(n=[n]),Wt(e,t,n))}(st,function(e){const t={};for(const n in e)n in sn||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=s,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=e,g=function(e){if(null==e)return null;if(_(e))return[cn(e.enter),cn(e.leave)];{const t=cn(e);return[t,t]}}(r),m=g&&g[0],y=g&&g[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:w,onLeave:S,onLeaveCancelled:C,onBeforeAppear:P=v,onAppear:O=b,onAppearCancelled:k=w}=t,A=(e,t,n)=>{fn(e,t?u:a),fn(e,t?c:s),n&&n()},M=(e,t)=>{e._isLeaving=!1,fn(e,f),fn(e,d),fn(e,h),t&&t()},z=e=>(t,n)=>{const r=e?O:b,s=()=>A(t,e,n);an(r,[t,s]),pn((()=>{fn(t,e?l:i),un(t,e?u:a),ln(r)||dn(t,o,m,s)}))};return p(t,{onBeforeEnter(e){an(v,[e]),un(e,i),un(e,s)},onBeforeAppear(e){an(P,[e]),un(e,l),un(e,c)},onEnter:z(!1),onAppear:z(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>M(e,t);un(e,f),document.body.offsetHeight,un(e,h),pn((()=>{e._isLeaving&&(fn(e,f),un(e,d),ln(S)||dn(e,o,y,n))})),an(S,[e,n])},onEnterCancelled(e){A(e,!1),an(w,[e])},onAppearCancelled(e){A(e,!0),an(k,[e])},onLeaveCancelled(e){M(e),an(C,[e])}})}(e),t);rn.displayName="Transition";const sn={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},an=(rn.props=p({},st.props,sn),(e,t=[])=>{g(e)?e.forEach((e=>e(...t))):e&&e(...t)}),ln=e=>!!e&&(g(e)?e.some((e=>e.length>1)):e.length>1);function cn(e){return(e=>{const t=parseFloat(e);return isNaN(t)?e:t})(e)}function un(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function fn(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function pn(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let hn=0;function dn(e,t,n,o){const r=e._endId=++hn,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=function(e,t){const n=window.getComputedStyle(e),o=e=>(n[e]||"").split(", "),r=o(nn+"Delay"),i=o(nn+"Duration"),s=gn(r,i),a=o(on+"Delay"),l=o(on+"Duration"),c=gn(a,l);let u=null,f=0,p=0;return t===nn?s>0&&(u=nn,f=s,p=i.length):t===on?c>0&&(u=on,f=c,p=l.length):(f=Math.max(s,c),u=f>0?s>c?nn:on:null,p=u?u===nn?i.length:l.length:0),{type:u,timeout:f,propCount:p,hasTransform:u===nn&&/\b(transform|all)(,|$)/.test(n[nn+"Property"])}}(e,t);if(!s)return o();const c=s+"end";let u=0;const f=()=>{e.removeEventListener(c,p),i()},p=t=>{t.target===e&&++u>=l&&f()};setTimeout((()=>{u<l&&f()}),a+1),e.addEventListener(c,p)}function gn(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>mn(t)+mn(e[n]))))}function mn(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}new WeakMap,new WeakMap;const yn=["ctrl","shift","alt","meta"],vn={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>yn.some((n=>e[`${n}Key`]&&!t.includes(n)))},bn=(e,t)=>(n,...o)=>{for(let e=0;e<t.length;e++){const o=vn[t[e]];if(o&&o(n,t))return}return e(n,...o)};function _n(e){return _n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_n(e)}function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(n),!0).forEach((function(t){Cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cn(e,t,n){return(t=function(e){var t=function(e){if("object"!==_n(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==_n(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===_n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pn={key:0},On=["src","width","height"],kn=["src","width","height"],An={class:"iiz__zoom-portal"},Mn=["src"],zn=["src"],Tn={key:1,class:"iiz__btn iiz__hint"};function xn(e,t){return t?{width:window.innerWidth,height:window.innerHeight,left:0,top:0}:e.getBoundingClientRect()}function Fn(e,t){return e&&window.matchMedia&&window.matchMedia("(max-width: ".concat(t,"px)")).matches}function Dn(e,t,n,o){return{x:e-n,y:t-o}}function En(e){return{x:"number"==typeof e.pageX?e.pageX:e.changedTouches[0].pageX,y:"number"==typeof e.pageY?e.pageY:e.changedTouches[0].pageY}}function jn(e,t){var n=En(e);return{x:n.x-t.offsets.x,y:n.y-t.offsets.y}}function Ln(e){return Ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ln(e)}function In(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?In(Object(n),!0).forEach((function(t){Bn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):In(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bn(e,t,n){return(t=function(e){var t=function(e){if("object"!==Ln(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Ln(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ln(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nn=($n={name:"InnerImageZoom",props:{moveType:{type:String,default:"pan"},zoomType:{type:String,default:"click"},src:{type:String,required:!0},imgAttributes:{type:Object,default:function(){return{}}},sources:Array,width:Number,height:Number,hasSpacer:Boolean,zoomSrc:String,zoomScale:{type:Number,default:1},zoomPreload:Boolean,fadeDuration:{type:Number,default:150},fullscreenOnMobile:Boolean,mobileBreakpoint:{type:Number,default:640},hideHint:Boolean,hideCloseButton:Boolean,className:String,afterZoomIn:Function,afterZoomOut:Function},data:function(){return{isActive:this.zoomPreload||!1,isTouch:!1,isZoomed:!1,isFullscreen:!1,isDragging:!1,currentMoveType:this.moveType,left:0,top:0,imgProps:{}}},created:function(){this.imgProps={onLoadCallback:null,bounds:{},offsets:{},ratios:{},eventPosition:{},scaledDimensions:{}},Fn(this.fullscreenOnMobile,this.mobileBreakpoint)&&(this.isActive=!1)},computed:{validSources:function(){return this.sources?this.sources.filter((function(e){return e.srcSet})):[]},createSpacer:function(){return this.width&&this.height&&this.hasSpacer}},methods:{handleMouseEnter:function(e){this.isActive=!0,"hover"===this.zoomType&&!this.isZoomed&&this.handleClick(e)},handleTouchStart:function(){this.isTouch=!0,this.isFullscreen=Fn(this.fullscreenOnMobile,this.mobileBreakpoint),this.currentMoveType="drag"},handleClick:function(e){this.isZoomed?this.isTouch?this.hideCloseButton&&this.handleClose():!this.isDragging&&this.zoomOut():(this.isTouch&&(this.isActive=!0),this.imgProps.zoomImg?(this.handleLoad({target:this.imgProps.zoomImg}),this.zoomIn(e)):this.imgProps.onLoadCallback=this.zoomIn.bind(this,e))},handleLoad:function(e){var t,n,o,r,i=(t=e.target,n=this.zoomScale,{width:t.naturalWidth*n,height:t.naturalHeight*n});this.imgProps.zoomImg=e.target,this.imgProps.zoomImg.setAttribute("width",i.width),this.imgProps.zoomImg.setAttribute("height",i.height),this.imgProps.scaledDimensions=i,this.imgProps.bounds=xn(this.$refs.img,!1),this.imgProps.ratios=(o=this.imgProps.bounds,{x:((r=i).width-o.width)/o.width,y:(r.height-o.height)/o.height}),this.imgProps.onLoadCallback&&(this.imgProps.onLoadCallback(),this.imgProps.onLoadCallback=null)},handleMouseMove:function(e){var t=function(e,t){var n=jn(e,t);return{left:Math.max(Math.min(n.x,t.bounds.width),0)*-t.ratios.x,top:Math.max(Math.min(n.y,t.bounds.height),0)*-t.ratios.y}}(e,this.imgProps);this.left=t.left,this.top=t.top},handleDragStart:function(e){var t=En(e);this.imgProps.offsets=Dn(t.x,t.y,this.imgProps.zoomImg.offsetLeft,this.imgProps.zoomImg.offsetTop),this.imgProps.zoomImg.addEventListener(this.isTouch?"touchmove":"mousemove",this.handleDragMove,{passive:!0}),this.isTouch||(this.imgProps.eventPosition=t)},handleDragMove:function(e){var t=function(e,t){var n=jn(e,t);return{left:Math.max(Math.min(n.x,0),-1*(t.scaledDimensions.width-t.bounds.width)),top:Math.max(Math.min(n.y,0),-1*(t.scaledDimensions.height-t.bounds.height))}}(e,this.imgProps);this.left=t.left,this.top=t.top},handleDragEnd:function(e){this.imgProps.zoomImg.removeEventListener(this.isTouch?"touchmove":"mousemove",this.handleDragMove),this.isTouch||(this.isDragging=function(e,t){var n=Math.abs(e.pageX-t.eventPosition.x),o=Math.abs(e.pageY-t.eventPosition.y);return n>5||o>5}(e,this.imgProps))},handleMouseLeave:function(e){"drag"===this.currentMoveType&&this.isZoomed?this.handleDragEnd(e):this.handleClose()},handleClose:function(){var e=this;this.zoomOut((function(){setTimeout((function(){(e.zoomPreload&&e.isTouch||!e.zoomPreload)&&(e.isActive=!1,e.imgProps={onLoadCallback:null,bounds:{},offsets:{},ratios:{},eventPosition:{},scaledDimensions:{}}),e.isTouch=!1,e.isFullscreen=!1,e.currentMoveType=e.moveType}),e.isFullscreen?0:e.fadeDuration)}))},initialMove:function(e){this.imgProps.offsets=Dn(window.pageXOffset,window.pageYOffset,-this.imgProps.bounds.left,-this.imgProps.bounds.top),this.handleMouseMove(e)},initialDragMove:function(e){var t=function(e,t,n){var o=(e.pageX-(window.pageXOffset+t.bounds.left))*-t.ratios.x,r=(e.pageY-(window.pageYOffset+t.bounds.top))*-t.ratios.y;return{pageX:o+(n?(window.innerWidth-t.bounds.width)/2:0),pageY:r+(n?(window.innerHeight-t.bounds.height)/2:0)}}(e,this.imgProps,this.isFullscreen);this.imgProps.bounds=xn(this.$refs.img,this.isFullscreen),this.imgProps.offsets=Dn(0,0,0,0),this.handleDragMove(Zn(Zn({},t),{},{preventDefault:function(){},stopPropagation:function(){}}))},zoomIn:function(e){this.isZoomed=!0,"drag"===this.currentMoveType?this.initialDragMove(e):this.initialMove(e),this.afterZoomIn&&this.afterZoomIn()},zoomOut:function(e){this.isZoomed=!1,this.afterZoomOut&&this.afterZoomOut(),e&&e()}}},y($n)?{setup:$n,name:$n.name}:$n);var $n;const Rn=(0,n(262).A)(Nn,[["render",function(e,n,o,r,i,s){return Dt(),jt("figure",Yt({class:["iiz",Sn(Sn({},e.className&&Cn({},e.className,e.className)),{},{"iiz--drag":"drag"===e.currentMoveType})],ref:"img",style:{width:"".concat(e.width,"px")}},bt({touchstart:e.isZoomed?function(){}:e.handleTouchStart,click:e.handleClick,mouseenter:e.isTouch?function(){}:e.handleMouseEnter,mousemove:"drag"!==e.currentMoveType&&e.isZoomed?e.handleMouseMove:function(){},mouseleave:e.isTouch?function(){}:e.handleMouseLeave},!0)),[Rt("div",{style:t({paddingTop:e.createSpacer?"".concat((e.height||0)/(e.width||0)*100,"%"):void 0})},[e.validSources?(Dt(),jt("picture",Pn,[(Dt(!0),jt(Mt,null,vt(e.validSources,(function(e,t){return Dt(),jt("source",Yt({key:t},e),null,16)})),128)),Rt("img",Yt(e.imgAttributes,{class:["iiz__img",[e.imgAttributes.className||"",{"iiz__img--hidden":e.isZoomed,"iiz__img--abs":e.createSpacer}]],style:{transition:"linear 0ms opacity ".concat(e.isZoomed?e.fadeDuration:0,"ms, linear 0ms visibility ").concat(e.isZoomed?e.fadeDuration:0,"ms")},src:e.src,width:e.width,height:e.height}),null,16,On)])):(Dt(),jt("img",Yt({key:1},e.imgAttributes,{class:["iiz__img",[e.imgAttributes.className||"",{"iiz__img--hidden":e.isZoomed,"iiz__img--abs":e.createSpacer}]],style:{transition:"linear 0ms opacity ".concat(e.isZoomed?e.fadeDuration:0,"ms, linear 0ms visibility ").concat(e.isZoomed?e.fadeDuration:0,"ms")},src:e.src,width:e.width,height:e.height}),null,16,kn))],4),e.isActive?(Dt(),jt(Mt,{key:0},[e.isFullscreen?(Dt(),Lt(At,{key:0,to:"body"},[Rt("div",An,[Rt("img",Yt({class:["iiz__zoom-img",{"iiz__zoom-img--visible":e.isZoomed}],alt:"",draggable:!1,style:{top:"".concat(e.top,"px"),left:"".concat(e.left,"px"),transition:"linear ".concat(e.isFullscreen?0:e.fadeDuration,"ms opacity, linear ").concat(e.isFullscreen?0:e.fadeDuration,"ms visibility")},src:e.zoomSrc||e.src},bt({load:e.handleLoad,touchstart:e.handleDragStart,touchend:e.handleDragEnd,mousedown:e.handleDragStart,mouseup:e.handleDragEnd,click:e.handleClick},!0)),null,16,Mn),e.hideCloseButton||"drag"!==e.currentMoveType?Vt("v-if",!0):(Dt(),jt("button",{key:0,type:"button",class:a(["iiz__btn iiz__close",{"iiz__close--visible":e.isZoomed}]),"aria-label":"Zoom Out",style:t({transition:"linear ".concat(e.isFullscreen?0:e.fadeDuration,"ms opacity, linear ").concat(e.isFullscreen?0:e.fadeDuration,"ms visibility")}),onClick:n[0]||(n[0]=bn((function(){return e.handleClose&&e.handleClose.apply(e,arguments)}),["stop"]))},null,6))])])):(Dt(),jt(Mt,{key:1},[Rt("img",Yt({class:["iiz__zoom-img",{"iiz__zoom-img--visible":e.isZoomed}],alt:"",draggable:!1,style:{top:"".concat(e.top,"px"),left:"".concat(e.left,"px"),transition:"linear ".concat(e.isFullscreen?0:e.fadeDuration,"ms opacity, linear ").concat(e.isFullscreen?0:e.fadeDuration,"ms visibility")},src:e.zoomSrc||e.src},bt({load:e.handleLoad,touchstart:e.handleDragStart,touchend:e.handleDragEnd,mousedown:e.handleDragStart,mouseup:e.handleDragEnd},!0)),null,16,zn),e.hideCloseButton||"drag"!==e.currentMoveType?Vt("v-if",!0):(Dt(),jt("button",{key:0,class:a(["iiz__btn iiz__close",{"iiz__close--visible":e.isZoomed}]),type:"button","aria-label":"Zoom Out",style:t({transition:"linear ".concat(e.isFullscreen?0:e.fadeDuration,"ms opacity, linear ").concat(e.isFullscreen?0:e.fadeDuration,"ms visibility")}),onClick:n[1]||(n[1]=bn((function(){return e.handleClose&&e.handleClose.apply(e,arguments)}),["stop"]))},null,6))],64))],64)):Vt("v-if",!0),e.isZoomed||e.hideHint?Vt("v-if",!0):(Dt(),jt("span",Tn))],16)}],["__scopeId","data-v-327bf390"]]),Wn=Rn,Hn=Rn})(),InnerImageZoom=o})();