maz-ui 3.4.4 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/MazBackdrop.js +1 -1
- package/components/MazBottomSheet.js +1 -1
- package/components/MazDialog.js +1 -1
- package/components/MazDialogPromise.js +1 -1
- package/components/MazDrawer.js +1 -1
- package/components/index.d.ts +0 -1
- package/components/index.js +0 -1
- package/maz-ui.d.ts +4 -3
- package/modules/index.js +2 -2
- package/package.json +6 -6
- package/components/MazArrowIcon.d.ts +0 -43
- package/components/MazArrowIcon.js +0 -1
package/modules/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{inject as e,createVNode as t,render as n,nextTick as r,defineComponent as o,ref as i,computed as a,onMounted as s,watchEffect as c,openBlock as u,createElementBlock as l,mergeProps as d,createCommentVNode as m,createBlock as f,Transition as h,unref as v,withCtx as p,withDirectives as y,createElementVNode as b,normalizeClass as g,toDisplayString as w,vShow as k}from"vue";function O(t,n){var r=e(t,n);if(!r)throw new Error("[maz-ui](injectStrict) Could not resolve ".concat(t));return r}function x(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=function(){t&&(clearTimeout(t),n=void 0,t=void 0)},a=function(){var e=n;i(),e&&e()},s=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];if(!r)return e.apply(this,s);var u=this,l=o&&!t;return i(),n=function(){e.apply(u,s)},t=setTimeout((function(){if(t=void 0,!l){var e=n;if(n=void 0,void 0!==e)return e()}}),r),l?n():void 0};return s.cancel=i,s.flush=a,s}function z(e){return!!e}function j(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.props,i=r.children,a=r.element,s=r.app,c=a,u=t(e,o,i);s&&s._context&&(u.appContext=s._context),c?n(u,c):"undefined"!=typeof document&&n(u,c=document.createElement("div"));var l=function(){c&&n(null,c)};return{vNode:u,destroy:l,el:c}}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L(e,t,n){return t&&P(e.prototype,t),n&&P(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(){return"undefined"!=typeof document}function T(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _=function(){function e(t,n){var r=this;E(this,e),I(this,"defaultOptions",{element:void 0,timeout:3e5,once:!1,immediate:!0}),I(this,"isIdle",!1),I(this,"isDestroy",!1),I(this,"startTime",0),I(this,"remainingTime",0),I(this,"lastClientX",-1),I(this,"lastClientY",-1),I(this,"eventNames",["DOMMouseScroll","mousedown","mousemove","mousewheel","MSPointerDown","MSPointerMove","keydown","touchmove","touchstart","wheel","click"]),I(this,"handleEvent",(function(e){try{if(r.remainingTime>0)return;if("mousemove"===e.type){var t=e.clientX,n=e.clientY;if(void 0===t&&void 0===n||t===r.lastClientX&&n===r.lastClientY)return;r.lastClientX=t,r.lastClientY=n}r.resetTimeout(),r.callback({isIdle:r.isIdle,eventType:e.type})}catch(e){throw new Error("[IdleTimeout](handleEvent) ".concat(e))}})),this.callback=t,this.options=D(D({},this.defaultOptions),n)
|
|
1
|
+
import{inject as e,createVNode as t,render as n,nextTick as r,defineComponent as o,ref as i,computed as a,onMounted as s,watchEffect as c,openBlock as u,createElementBlock as l,mergeProps as d,createCommentVNode as m,createBlock as f,Transition as h,unref as v,withCtx as p,withDirectives as y,createElementVNode as b,normalizeClass as g,toDisplayString as w,vShow as k}from"vue";function O(t,n){var r=e(t,n);if(!r)throw new Error("[maz-ui](injectStrict) Could not resolve ".concat(t));return r}function x(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=function(){t&&(clearTimeout(t),n=void 0,t=void 0)},a=function(){var e=n;i(),e&&e()},s=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];if(!r)return e.apply(this,s);var u=this,l=o&&!t;return i(),n=function(){e.apply(u,s)},t=setTimeout((function(){if(t=void 0,!l){var e=n;if(n=void 0,void 0!==e)return e()}}),r),l?n():void 0};return s.cancel=i,s.flush=a,s}function z(e){return!!e}function j(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.props,i=r.children,a=r.element,s=r.app,c=a,u=t(e,o,i);s&&s._context&&(u.appContext=s._context),c?n(u,c):"undefined"!=typeof document&&n(u,c=document.createElement("div"));var l=function(){c&&n(null,c)};return{vNode:u,destroy:l,el:c}}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L(e,t,n){return t&&P(e.prototype,t),n&&P(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(){return"undefined"!=typeof document}function T(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _=function(){function e(t,n){var r=this;E(this,e),I(this,"defaultOptions",{element:void 0,timeout:3e5,once:!1,immediate:!0,ssr:!1}),I(this,"isIdle",!1),I(this,"isDestroy",!1),I(this,"startTime",0),I(this,"remainingTime",0),I(this,"lastClientX",-1),I(this,"lastClientY",-1),I(this,"eventNames",["DOMMouseScroll","mousedown","mousemove","mousewheel","MSPointerDown","MSPointerMove","keydown","touchmove","touchstart","wheel","click"]),I(this,"handleEvent",(function(e){try{if(r.remainingTime>0)return;if("mousemove"===e.type){var t=e.clientX,n=e.clientY;if(void 0===t&&void 0===n||t===r.lastClientX&&n===r.lastClientY)return;r.lastClientX=t,r.lastClientY=n}r.resetTimeout(),r.callback({isIdle:r.isIdle,eventType:e.type})}catch(e){throw new Error("[IdleTimeout](handleEvent) ".concat(e))}})),this.callback=t,this.options=D(D({},this.defaultOptions),n),!this.options.ssr&&S()?this.start():this.options.ssr||S()||console.warn('[IdleTimeout](constructor) executed on server side - set immediate option to "false"')}return L(e,[{key:"element",get:function(){var e;return null!==(e=this.options.element)&&void 0!==e?e:document.body}},{key:"start",value:function(){if(S()){var e,t=T(this.eventNames);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.element.addEventListener(n,this.handleEvent)}}catch(e){t.e(e)}finally{t.f()}this.resetTimeout(),this.options.immediate&&this.callback({isIdle:!1})}else console.warn("[IdleTimeout](start) you should run this method on client side")}},{key:"pause",value:function(){var e=this.startTime+this.options.timeout-Date.now();e<=0||(this.remainingTime=e,this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0))}},{key:"resume",value:function(){this.remainingTime<=0||(this.resetTimeout(),this.callback({isIdle:this.isIdle}),this.remainingTime=0)}},{key:"reset",value:function(){this.isDestroy=!1,this.isIdle=!1,this.remainingTime=0,this.resetTimeout(),this.callback({isIdle:this.isIdle})}},{key:"destroy",value:function(){if(S()){this.isDestroy=!0;var e,t=T(this.eventNames);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.element.removeEventListener(n,this.handleEvent)}}catch(e){t.e(e)}finally{t.f()}this.timeoutHandler&&clearTimeout(this.timeoutHandler)}else console.warn("[IdleTimeout](destroy) you should run this method on client side")}},{key:"resetTimeout",value:function(){this.isIdle=!1,this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0),this.timeoutHandler=setTimeout(this.handleTimeout.bind(this),this.remainingTime||this.options.timeout),this.startTime=Date.now()}},{key:"handleTimeout",value:function(){this.isIdle=!0,this.callback({isIdle:this.isIdle}),this.options.once&&this.destroy()}},{key:"destroyed",get:function(){return this.isDestroy}},{key:"timeout",get:function(){return this.options.timeout},set:function(e){this.options.timeout=e}},{key:"idle",get:function(){return this.isIdle},set:function(e){e?this.handleTimeout():this.reset(),this.callback({isIdle:this.isIdle})}}]),e}();function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var N=function(){function e(t,n){E(this,e),I(this,"event","visibilitychange"),I(this,"defaultOptions",{timeout:5e3,once:!1,immediate:!0,ssr:!1}),I(this,"isVisible",!1),this.callback=t,this.options=H(H({},this.defaultOptions),n),this.eventHandlerFunction=this.eventHandler.bind(this),!this.options.ssr&&S()?this.start():this.options.ssr||S()||console.warn('[UserVisibility](constructor) executed on server side - set "ssr" option to "false"')}return L(e,[{key:"start",value:function(){S()?(this.options.immediate&&this.emitCallback(),this.addEventListener()):console.warn("[UserVisibility](start) you should run this method on client side")}},{key:"emitCallback",value:function(){this.isVisible="visible"===document.visibilityState,this.callback({isVisible:this.isVisible}),this.options.once&&this.destroy()}},{key:"eventHandler",value:function(){"visible"!==document.visibilityState||this.isVisible?"hidden"===document.visibilityState&&this.initTimeout():(this.clearTimeout(),this.emitCallback())}},{key:"clearTimeout",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){this.timeoutHandler&&(clearTimeout(this.timeoutHandler),this.timeoutHandler=void 0)}))},{key:"initTimeout",value:function(){this.clearTimeout(),this.timeoutHandler=setTimeout(this.emitCallback.bind(this),this.options.timeout)}},{key:"addEventListener",value:function(){document.addEventListener(this.event,this.eventHandlerFunction)}},{key:"removeEventListener",value:function(){document.removeEventListener(this.event,this.eventHandlerFunction)}},{key:"destroy",value:function(){this.removeEventListener(),this.timeoutHandler&&clearTimeout(this.timeoutHandler)}}]),e}(),F=function(e){return new Promise((function(t){setTimeout(t,e)}))};function q(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function B(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){q(i,r,o,a,s,"next",e)}function s(e){q(i,r,o,a,s,"throw",e)}a(void 0)}))}}var U={exports:{}},V={exports:{}};!function(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(V),function(e){var t=V.exports.default;function n(){
|
|
2
2
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
3
|
-
e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},o=Object.prototype,i=o.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),a=new E(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=m(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}r.wrap=d;var f={};function h(){}function v(){}function p(){}var y={};l(y,s,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(P([])));g&&g!==o&&i.call(g,s)&&(y=g);var w=p.prototype=h.prototype=Object.create(y);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,n){function r(o,a,s,c){var u=m(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==t(d)&&i.call(d,"__await")?n.resolve(d.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):n.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var o;this._invoke=function(e,t){function i(){return new n((function(n,o){r(e,t,n,o)}))}return o=o?o.then(i,i):i()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=m(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function z(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(z,this),this.reset(!0)}function P(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:L}}function L(){return{value:void 0,done:!0}}return v.prototype=p,l(w,"constructor",p),l(p,"constructor",v),v.displayName=l(p,u,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},r.awrap=function(e){return{__await:e}},k(O.prototype),l(O.prototype,c,(function(){return this})),r.AsyncIterator=O,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new O(d(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(w),l(w,u,"Generator"),l(w,s,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},r.values=P,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(U);var Y=U.exports(),G=Y;try{regeneratorRuntime=Y}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=Y:Function("r","regeneratorRuntime = r")(Y)}var X="__vue_click_away__",R=function(){return null===document.ontouchstart?"touchstart":"click"},$=function(){var e=B(G.mark((function e(t,n){var o,i,a,s;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(K(t),o=n.instance,i=n.value,a="function"==typeof i){e.next=6;break}throw new Error("[maz-ui](vClickOutside) the callback should be a function");case 6:return e.next=8,r();case 8:t[X]=function(e){if((!t||!t.contains(e.target))&&i&&a)return i.call(o,e)},s=R(),document.addEventListener(s,t[X],!1);case 11:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),K=function(e){var t=R();document.removeEventListener(t,e[X],!1),delete e[X]},W={mounted:$,updated:function(e,t){t.value!==t.oldValue&&$(e,t)},unmounted:K},Q={install:function(e){e.directive("click-outside",W)}};function Z(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ee=function(e,t,n,r){e.stopPropagation();var o=n.value,i=o.handler,a=o.exclude,s=!1;if(a&&a.length>0){var c,u=Z(a);try{for(u.s();!(c=u.n()).done;){var l=c.value;if(!s)s=r.context.$refs[l].contains(e.target)}}catch(e){u.e(e)}finally{u.f()}}t.contains(e.target)||s||r.context[i]()},te=function(){return null===document.ontouchstart?"touchstart":"click"},ne={mounted:function(e,t,n){var r=te();document.addEventListener(r,(function(r){return ee(r,e,t,n)}))},unmounted:function(e,t,n){var r=te();document.removeEventListener(r,(function(r){return ee(r,e,t,n)}))}},re={install:function(e){e.directive("closable",ne)}};function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ie(e){return function(e){if(Array.isArray(e))return oe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(e){return ae="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},ae(e)}var se,ce={close:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',next:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>',previous:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>',spinner:'<svg width="40px" height="40px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="currentColor" x="0px" y="0px" viewBox="0 0 50 50" xml:space="preserve" class="maz-zoom-img__loader__svg" data-v-6d1cb50c=""><path d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"></path></svg>'};function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}!function(e){e.OPEN="maz-is-open"}(se||(se={}));var de,me=function(){function e(t){if(E(this,e),I(this,"defaultOptions",{scale:!0,blur:!0,disabled:!1}),!t.value)throw new Error('[MazUI](zoom-img) Image path must be defined. Ex: `v-zoom-img="<PATH_TO_IMAGE>"`');if("object"===ae(t.value)&&!t.value.src)throw new Error("[maz-ui](zoom-img) src of image must be provided");this.buttonsAdded=!1,this.options=this.buildOptions(t),this.keydownHandler=this.keydownLister.bind(this),this.loader=this.getLoader(),this.wrapper=document.createElement("div"),this.wrapper.classList.add("maz-zoom-img__wrapper"),this.wrapper.prepend(this.loader),this.img=document.createElement("img"),this.onImgLoadedCallback=this.onImgLoaded.bind(this),this.imgEventHandler(!0)}return L(e,[{key:"buildOptions",value:function(e){return le(le({},this.defaultOptions),"object"===ae(e.value)?e.value:{src:e.value})}},{key:"allInstances",get:function(){return ie(document.querySelectorAll(".maz-zoom-img-instance"))}},{key:"create",value:function(e){var t=this;this.options.disabled||(e.style.cursor="pointer",setTimeout((function(){return e.classList.add("maz-zoom-img-instance")})),e.setAttribute("data-src",this.options.src),this.options.alt&&e.setAttribute("data-alt",this.options.alt),e.style.transition="all 300ms ease-in-out",this.mouseEnterListener=function(){return t.mouseEnter(e)},this.mouseLeaveListener=function(){return t.mouseLeave(e)},this.renderPreviewListener=function(){return t.renderPreview(e,t.options)},e.addEventListener("mouseenter",this.mouseEnterListener),e.addEventListener("mouseleave",this.mouseLeaveListener),e.addEventListener("click",this.renderPreviewListener))}},{key:"update",value:function(e){this.options=this.buildOptions(e)}},{key:"remove",value:function(e){this.imgEventHandler(!1),e.removeEventListener("mouseenter",this.mouseEnterListener),e.removeEventListener("mouseleave",this.mouseLeaveListener),e.removeEventListener("click",this.renderPreviewListener),e.classList.remove("maz-zoom-img-instance"),e.removeAttribute("data-src"),e.removeAttribute("data-alt"),e.style.cursor=""}},{key:"renderPreview",value:function(e,t){var n=this;e.classList.add(se.OPEN),this.addStyle("\n.maz-zoom-img {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n padding: 2.5rem;\n z-index: 1050;\n background-color: hsla(238, 15%, 40%, 0.7);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n}\n\n.maz-zoom-img,\n.maz-zoom-img * {\n box-sizing: border-box;\n}\n\n.maz-zoom-img .maz-zoom-img__wrapper {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 0;\n min-height: 0;\n max-width: 100%;\n max-height: 100%;\n transition: all 300ms ease-in-out;\n opacity: 0;\n transform: scale(0.5);\n}\n\n.maz-zoom-img.maz-animate .maz-zoom-img__wrapper {\n opacity: 1;\n transform: scale(1);\n}\n\n.maz-zoom-img.maz-animate .maz-zoom-img__loader {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: hsla(238, 15%, 40%, 0.7);\n border-radius: 1rem;\n z-index: 2;\n min-width: 60px;\n min-height: 60px;\n}\n.maz-zoom-img.maz-animate .maz-zoom-img__loader[hidden] {\n display: none;\n}\n\n@-webkit-keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n\n@keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n\n.maz-zoom-img.maz-animate .maz-zoom-img__loader__svg {\n animation: spin .6s linear infinite;\n}\n\n.maz-zoom-img img {\n max-width: 100%;\n max-height: 100%;\n min-width: 0;\n border-radius: 1rem;\n}\n\n.maz-zoom-img .maz-zoom-btn {\n margin: 0 auto;\n border: none;\n background-color: hsla(0, 0%, 7%, 0.5);\n box-shadow: 0 0 0.5rem 0 hsla(0, 0%, 0%, 0.2);\n height: 2.2rem;\n min-height: 2.2rem;\n width: 2.2rem;\n min-width: 2.2rem;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 2.2rem;\n cursor: pointer;\n flex: 0 0 auto;\n outline: none;\n}\n\n.maz-zoom-img .maz-zoom-btn svg {\n fill: white;\n}\n\n.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--close {\n position: absolute;\n top: 0.5rem;\n right: 0.5rem;\n z-index: 1;\n}\n\n.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--previous {\n position: absolute;\n left: 0.5rem;\n z-index: 1;\n}\n\n.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--next {\n position: absolute;\n right: 0.5rem;\n z-index: 1;\n}\n\n.maz-zoom-img .maz-zoom-btn:hover {\n background-color: hsl(0, 0%, 0%);\n}");var r=document.createElement("div");r.classList.add("maz-zoom-img"),r.setAttribute("id","MazImgPreviewFullsize"),r.addEventListener("click",(function(e){r.isEqualNode(e.target)&&n.closePreview()})),"object"===ae(t)&&(this.img.setAttribute("src",t.src),t.alt&&this.img.setAttribute("alt",t.alt),this.img.id="MazImgElement"),this.wrapper.append(this.img),r.append(this.wrapper),document.body.append(r),this.keyboardEventHandler(!0),setTimeout((function(){r&&r.classList.add("maz-animate")}),100)}},{key:"onImgLoaded",value:function(){this.wrapper.style.width="".concat(this.img.width,"px"),this.wrapper.style.minWidth="200px",this.loader.hidden=!0;var e=this.getButton(),t=[],n=this.allInstances.length>1;if(!this.buttonsAdded){if(this.buttonsAdded=!0,n){var r=this.getButton("previous"),o=this.getButton("next");t.push(r,o)}this.wrapper.append(e),n&&(this.wrapper.prepend(t[0]),this.wrapper.append(t[1]))}}},{key:"getLoader",value:function(){var e=document.createElement("div");return e.classList.add("maz-zoom-img__loader"),e.innerHTML=ce.spinner,e}},{key:"mouseLeave",value:function(e){this.options.scale&&(e.style.transform=""),this.options.blur&&(e.style.filter=""),e.style.zIndex=""}},{key:"mouseEnter",value:function(e){e.style.zIndex="1",this.options.scale&&(e.style.transform="scale(1.1)"),this.options.blur&&(e.style.filter="blur(2px)")}},{key:"keydownLister",value:function(e){e.preventDefault(),"Escape"!==e.key&&" "!==e.key||this.closePreview(),"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||this.nextPreviousImage("ArrowRight"===e.key)}},{key:"getButton",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"close",n=document.createElement("button");return n.innerHTML=ce[t],n.addEventListener("click",(function(){"close"===t?e.closePreview():e.allInstances&&e.nextPreviousImage("next"===t)})),n.classList.add("maz-zoom-btn"),n.classList.add("maz-zoom-btn--".concat(t)),n}},{key:"closePreview",value:function(){var e=document.querySelector("#MazImgPreviewFullsize"),t=document.querySelector("#MazPreviewStyle"),n=document.querySelector(".maz-zoom-img-instance.maz-is-open");n&&n.classList.remove(se.OPEN),e&&e.classList.remove("maz-animate"),this.keyboardEventHandler(!1),setTimeout((function(){e&&e.remove(),t&&t.remove()}),300)}},{key:"getNewInstanceIndex",value:function(e){return e<0?this.allInstances.length-1:e>=this.allInstances.length?0:e}},{key:"nextPreviousImage",value:function(e){var t=e,n=document.querySelector(".maz-zoom-img-instance.maz-is-open");if(n){var r=this.allInstances.indexOf(n),o=t?r+1:r-1,i=this.allInstances[this.getNewInstanceIndex(o)];i&&this.useNextInstance(n,i)}}},{key:"useNextInstance",value:function(e,t){e.classList.remove(se.OPEN),t.classList.add(se.OPEN);var n=t.getAttribute("data-src"),r=t.getAttribute("data-alt");this.wrapper.style.width="",this.loader.hidden=!1,n&&this.img.setAttribute("src",n),r&&this.img.setAttribute("alt",r)}},{key:"addStyle",value:function(e){var t=document.createElement("style");t.id="MazPreviewStyle",t.textContent=e,document.head.append(t)}},{key:"keyboardEventHandler",value:function(e){if(e)return document.addEventListener("keydown",this.keydownHandler);document.removeEventListener("keydown",this.keydownHandler)}},{key:"imgEventHandler",value:function(e){if(e)return this.img.addEventListener("load",this.onImgLoadedCallback);this.img.removeEventListener("load",this.onImgLoadedCallback)}}]),e}(),fe={created:function(e,t){(de=new me(t)).create(e)},updated:function(e,t){de.update(t)},unmounted:function(e){de.remove(e)}},he={install:function(e){e.directive("zoom-img",fe)}};function ve(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return pe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pe(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ge(e){var t,n,r,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new we(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function we(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return we=function(e){this.s=e,this.n=e.next},we.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new we(e)}var ke,Oe={baseClass:"m-lazy-img",loadedClass:"m-lazy-loaded",loadingClass:"m-lazy-loading",errorClass:"m-lazy-error",noPhotoClass:"m-lazy-no-photo",noPhoto:!1,observerOnce:!0,loadOnce:!1,noUseErrorPhoto:!1,observerOptions:{threshold:.1}},xe=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};E(this,e),I(this,"observers",[]),I(this,"defaultOptions",Oe),I(this,"hasImgLoaded",!1),this.options=this.buildOptions(t),this.onImgLoadedCallback=this.imageIsLoaded.bind(this),this.onImgErrorCallback=this.imageHasError.bind(this)}var t,n,r,o,i,a,s,c;return L(e,[{key:"loadErrorPhoto",value:(c=B(G.mark((function e(){var t,n;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,import("./no_photo-a72545e4.js");case 2:return t=e.sent,n=t.default,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)}))),function(){return c.apply(this,arguments)})},{key:"buildOptions",value:function(e){return be(be(be({},this.defaultOptions),e),{},{observerOptions:be(be({},this.defaultOptions.observerOptions),e.observerOptions)})}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeAllStateClasses",value:function(e){this.removeClass(e,this.options.loadedClass),this.removeClass(e,this.options.loadingClass),this.removeClass(e,this.options.errorClass),this.removeClass(e,this.options.noPhotoClass)}},{key:"setBaseClass",value:function(e){this.addClass(e,this.options.baseClass)}},{key:"imageIsLoading",value:function(e){var t,n;this.addClass(e,this.options.loadingClass),null===(t=(n=this.options).onLoading)||void 0===t||t.call(n,e)}},{key:"imageHasNoPhoto",value:function(e){this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.noPhotoClass),this.setDefaultPhoto(e)}},{key:"imageIsLoaded",value:function(e){var t,n;this.hasImgLoaded=!0,this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.loadedClass),null===(t=(n=this.options).onLoaded)||void 0===t||t.call(n,e)}},{key:"imageHasError",value:function(e,t){var n,r;console.warn("[maz-ui][MazLazyImg] Error while loading image",t),this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.errorClass),null===(n=(r=this.options).onError)||void 0===n||n.call(r,e),this.setDefaultPhoto(e)}},{key:"getImageUrl",value:function(e,t){var n=this.getImgElement(e).getAttribute("data-src");if(n)return n;var r="object"===ae(t.value)?t.value.src:t.value;return r||console.warn("[maz-ui][MazLazyImg] src url is not defined"),r}},{key:"setPictureSourceUrls",value:(s=B(G.mark((function e(t){var n,r,o,i,a,s,c,u;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((n=t.querySelectorAll("source")).length>0)){e.next=33;break}r=!1,o=!1,e.prev=4,a=ge(n);case 6:return e.next=8,a.next();case 8:if(!(r=!(s=e.sent).done)){e.next=15;break}c=s.value,(u=c.getAttribute("data-srcset"))?c.srcset=u:console.warn('[maz-ui][MazLazyImg] the "[data-srcset]" attribute is not provided on "<source />"');case 12:r=!1,e.next=6;break;case 15:e.next=21;break;case 17:e.prev=17,e.t0=e.catch(4),o=!0,i=e.t0;case 21:if(e.prev=21,e.prev=22,!r||null==a.return){e.next=26;break}return e.next=26,a.return();case 26:if(e.prev=26,!o){e.next=29;break}throw i;case 29:return e.finish(26);case 30:return e.finish(21);case 31:e.next=35;break;case 33:console.warn('[maz-ui][MazLazyImg] No "<source />" elements provided into the "<picture />" element'),this.imageHasError(t);case 35:case"end":return e.stop()}}),e,this,[[4,17,21,31],[22,,26,30]])}))),function(e){return s.apply(this,arguments)})},{key:"hasBgImgMode",value:function(e){return"bg-image"===e.arg}},{key:"isPictureElement",value:function(e){return e instanceof HTMLPictureElement}},{key:"getImgElement",value:function(e){return this.isPictureElement(e)?e.querySelector("img"):e}},{key:"setDefaultPhoto",value:(a=B(G.mark((function e(t){var n,r,o,i,a,s,c,u;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.options.noUseErrorPhoto){e.next=2;break}return e.abrupt("return");case 2:if(null===(n=this.options.errorPhoto)||void 0===n){e.next=6;break}e.t0=n,e.next=9;break;case 6:return e.next=8,this.loadErrorPhoto();case 8:e.t0=e.sent;case 9:if(r=e.t0,!((o=t.querySelectorAll("source")).length>0)){e.next=42;break}i=!1,a=!1,e.prev=14,c=ge(o);case 16:return e.next=18,c.next();case 18:if(!(i=!(u=e.sent).done)){e.next=24;break}u.value.srcset=r;case 21:i=!1,e.next=16;break;case 24:e.next=30;break;case 26:e.prev=26,e.t1=e.catch(14),a=!0,s=e.t1;case 30:if(e.prev=30,e.prev=31,!i||null==c.return){e.next=35;break}return e.next=35,c.return();case 35:if(e.prev=35,!a){e.next=38;break}throw s;case 38:return e.finish(35);case 39:return e.finish(30);case 40:e.next=43;break;case 42:this.setImgSrc(t,r);case 43:case"end":return e.stop()}}),e,this,[[14,26,30,40],[31,,35,39]])}))),function(e){return a.apply(this,arguments)})},{key:"addEventListenerToImg",value:function(e){var t=this,n=this.getImgElement(e);n.addEventListener("load",(function(){return t.onImgLoadedCallback(e)}),{once:!0}),n.addEventListener("error",(function(n){return t.onImgErrorCallback(e,n)}),{once:!0})}},{key:"loadImage",value:(i=B(G.mark((function e(t,n){var r;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.imageIsLoading(t),!this.isPictureElement(t)){e.next=7;break}return this.addEventListenerToImg(t),e.next=5,this.setPictureSourceUrls(t);case 5:e.next=11;break;case 7:if(r=this.getImageUrl(t,n)){e.next=10;break}return e.abrupt("return",this.imageHasError(t));case 10:this.hasBgImgMode(n)?(t.style.backgroundImage="url('".concat(r,"')"),this.imageIsLoaded(t)):(this.addEventListenerToImg(t),this.setImgSrc(t,r));case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"setImgSrc",value:function(e,t){this.getImgElement(e).src=t}},{key:"handleIntersectionObserver",value:function(e,t,n,r){this.observers.push(r);var o,i=ve(n);try{for(i.s();!(o=i.n()).done;){var a=o.value;if(a.isIntersecting){var s,c;if(null===(s=(c=this.options).onIntersecting)||void 0===s||s.call(c,a.target),this.options.observerOnce&&r.unobserve(e),this.options.loadOnce&&this.hasImgLoaded)return;this.loadImage(e,t)}}}catch(e){i.e(e)}finally{i.f()}}},{key:"createObserver",value:function(e,t){var n=this,r=this.options.observerOptions;new IntersectionObserver((function(r,o){n.handleIntersectionObserver(e,t,r,o)}),r).observe(e)}},{key:"imageHandler",value:(o=B(G.mark((function e(t,n,r){var o,i,a,s,c;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("update"!==r){e.next=29;break}o=!1,i=!1,e.prev=3,s=ge(this.observers);case 5:return e.next=7,s.next();case 7:if(!(o=!(c=e.sent).done)){e.next=13;break}c.value.unobserve(t);case 10:o=!1,e.next=5;break;case 13:e.next=19;break;case 15:e.prev=15,e.t0=e.catch(3),i=!0,a=e.t0;case 19:if(e.prev=19,e.prev=20,!o||null==s.return){e.next=24;break}return e.next=24,s.return();case 24:if(e.prev=24,!i){e.next=27;break}throw a;case 27:return e.finish(24);case 28:return e.finish(19);case 29:window.IntersectionObserver?this.createObserver(t,n):this.loadImage(t,n);case 30:case"end":return e.stop()}}),e,this,[[3,15,19,29],[20,,24,28]])}))),function(e,t,n){return o.apply(this,arguments)})},{key:"bindUpdateHandler",value:(r=B(G.mark((function e(t,n,r){return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.options.noPhoto){e.next=2;break}return e.abrupt("return",this.imageHasNoPhoto(t));case 2:return e.next=4,this.imageHandler(t,n,r);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"add",value:(n=B(G.mark((function e(t,n){var r=this;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.hasBgImgMode(n)||!this.isPictureElement(t)){e.next=2;break}throw new Error('[MazLazyImg] You can\'t use the "bg-image" mode with "<picture />" element');case 2:return setTimeout((function(){return r.setBaseClass(t)}),0),t.getAttribute("src")||this.setImgSrc(t,"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"),e.next=6,this.bindUpdateHandler(t,n,"bind");case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"update",value:(t=B(G.mark((function e(t,n){return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.value===n.oldValue){e.next=5;break}return this.hasImgLoaded=!1,this.removeAllStateClasses(t),e.next=5,this.bindUpdateHandler(t,n,"update");case 5:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"remove",value:function(e,t){this.hasImgLoaded=!1,this.hasBgImgMode(t)&&(e.style.backgroundImage=""),this.removeAllStateClasses(e);var n,r=ve(this.observers);try{for(r.s();!(n=r.n()).done;){n.value.unobserve(e)}}catch(e){r.e(e)}finally{r.f()}this.observers=[]}}]),e}(),ze={created:function(e,t){var n="object"===ae(t.value)?t.value:{};(ke=new xe(n)).add(e,t)},updated:function(e,t){ke.update(e,t)},unmounted:function(e,t){ke.remove(e,t)}};function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pe={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ee(Ee(Ee({},Oe),t),{},{observerOptions:Ee(Ee({},Oe.observerOptions),t.observerOptions)}),r=new xe(n);e.directive("lazy-img",{created:r.add.bind(r),updated:r.update.bind(r),unmounted:r.remove.bind(r)})}};function Le(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ie(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ie(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Se=[{name:"click-outside",directive:W},{name:"closable",directive:ne},{name:"zoom-img",directive:fe},{name:"lazy-img",directive:ze}],Te={install:function(e){var t,n=Le(Se);try{for(n.s();!(t=n.n()).done;){var r=t.value,o=r.name,i=r.directive;e.directive(o,i)}}catch(e){n.e(e)}finally{n.f()}}},Ae=function(e){return e?(e=e.toString()).charAt(0).toUpperCase()+e.slice(1):""};function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _e={style:"currency",minimumFractionDigits:2,round:!1},Me=function(e,t,n){var r=De(De({},_e),n);!function(e,t,n){if(void 0===e)throw new TypeError("[maz-ui](FilterCurrency) The `number` attribute is required.");if(void 0===t)throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute is required.");if("string"!=typeof t)throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute must be a string.");if(void 0===n.currency)throw new TypeError("[maz-ui](FilterCurrency) The `options.currency` attribute is required.")}(e,t,r);try{return function(e,t,n){var r=Number(e);return n.round&&(r=Math.floor(r),n.minimumFractionDigits=0),new Intl.NumberFormat(t,n).format(r)}(e,t,r)}catch(e){throw new Error("[maz-ui](FilterCurrency) ".concat(e))}},He={month:"short",day:"numeric",year:"numeric"},Ne=function(e,t,n){if(void 0===t)throw new TypeError("[maz-ui](FilterDate) The `locale` attribute is required.");if("string"!=typeof t)throw new TypeError("[maz-ui](FilterDate) The `locale` attribute must be a string.");var r=null!=n?n:He;try{var o=e instanceof Date?e:new Date(e);return new Intl.DateTimeFormat(t,r).format(o)}catch(e){throw new Error("[maz-ui](FilterDate) ".concat(e))}};function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Be={minimumFractionDigits:2},Ue=function(e,t,n){if(n=qe(qe({},Be),n),void 0===e)throw new TypeError("[maz-ui](FilterNumber) The `number` attribute is required.");if(void 0===t)throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute is required.");if("string"!=typeof t)throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute must be a string.");try{return new Intl.NumberFormat(t,n).format(Number(e))}catch(e){throw new Error("[maz-ui](FilterNumber) ".concat(e))}},Ve={capitalize:Ae,currency:Me,date:Ne,number:Ue},Ye={install:function(e){e.provide("filters",Ve)}},Ge=function(){function e(t,n){E(this,e),this.startedAt=Date.now(),this.callback=t,this.delay=n,this.start()}return L(e,[{key:"pause",value:function(){this.stop(),this.delay-=Date.now()-this.startedAt}},{key:"resume",value:function(){this.startedAt=Date.now(),this.start()}},{key:"start",value:function(){this.timer=setTimeout(this.callback,this.delay)}},{key:"stop",value:function(){clearTimeout(this.timer)}}]),e}();function Xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $e=["innerHTML"],Ke=o({__name:"MazIcon",props:{src:{type:String,default:void 0},path:{type:String,default:void 0},name:{type:String,default:void 0},size:{type:String,default:"1.5rem"},title:{type:String,default:void 0},transformSource:{type:Function,default:function(e){return e}}},emits:["loaded","unloaded","error"],setup:function(e,t){var n=t.emit,o=e,f={},h=i(),v=i(),p=a((function(){var e;return null!==(e=o.path)&&void 0!==e?e:function(){try{return O("mazIconPath")}catch(e){return}}()})),y=a((function(){return o.src?o.src:p.value?"".concat(p.value,"/").concat(o.name,".svg"):"/".concat(o.name,".svg")}));s((function(){o.name||o.src||console.error('[maz-ui](MazIcon) you should provide "name" or "src" as prop')}));var b=function(e){var t=e.cloneNode(!0);return t=o.transformSource(e),o.title&&function(e,t){var n=e.querySelectorAll("title");if(n.length>0)n[0].textContent=t;else{var r=document.createElementNS("http://www.w3.org/2000/svg","title");r.textContent=t,e.append(r)}}(t,o.title),e.innerHTML},g=function(){var e=B(G.mark((function e(t){var o;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f[t]||(f[t]=w(t)),e.prev=1,e.next=4,f[t];case 4:return o=e.sent,h.value=o,e.next=8,r();case 8:n("loaded",v.value),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(1),h.value&&(h.value=void 0,n("unloaded")),delete f[t],n("error",e.t0);case 16:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(t){return e.apply(this,arguments)}}(),w=function(e){return new Promise((function(t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.addEventListener("load",(function(){if(r.status>=200&&r.status<400)try{var e=(new DOMParser).parseFromString(r.responseText,"text/xml").querySelectorAll("svg")[0];e?(e=o.transformSource(e),t(e)):n(new Error('Loaded file is not valid SVG"'))}catch(e){n(e)}else n(new Error("Error loading SVG"))})),r.addEventListener("error",(function(){return n()})),r.send()}))};return c((function(){return g(y.value)})),function(t,n){return h.value?(u(),l("svg",d({key:0,ref_key:"svgElem",ref:v,width:"1em",height:"1em"},Re(Re({},function(e){var t={},n=e.attributes;if(!n)return t;for(var r=n.length-1;r>=0;r--)t[n[r].name]=n[r].value;return t}(h.value)),(r=t.$attrs,Object.keys(r).reduce((function(e,t){return!1!==r[t]&&null!==r[t]&&void 0!==r[t]&&(e[t]=r[t]),e}),{}))),{style:"font-size: ".concat(e.size),innerHTML:b(h.value)}),null,16,$e)):m("",!0);var r}}}),We={class:"m-toast__message-wrapper"},Qe={class:"m-toast__message"},Ze={key:0,class:"--close"},Je=o({__name:"MazToast",props:{position:{type:String,default:"bottom-right"},maxToasts:{type:[Number,Boolean],default:!1},timeout:{type:Number,default:1e4},queue:{type:Boolean,default:!1},noPauseOnHover:{type:Boolean,default:!1},type:{type:String,default:"info",validator:function(e){return["info","success","warning","danger"].includes(e)}},message:{type:String,required:!0},persistent:{type:Boolean,default:!1}},emits:["close","click"],setup:function(e,n){var r=n.emit,o=e,c=i(),d=a((function(){return o.position.includes("top")?"top":"bottom"})),O=a((function(){return o.position.includes("left")?"left":o.position.includes("right")?"right":"center"})),x=a((function(){return"center"!==O.value?"right"===O.value?"m-slide-right":"m-slide-left":"top"===d.value?"m-slide-top":"m-slide-bottom"})),z=i(!1),j=i(),E=i(),P="m-toast-container --".concat(d.value," --").concat(O.value),L=".".concat(P.replaceAll(" ",".")),I=function e(){if(function(){var e=document.querySelector(L);return!(!o.queue&&!1===o.maxToasts)&&(!1!==o.maxToasts&&e?o.maxToasts<=e.childElementCount:e&&e.childElementCount>0)}())E.value=setTimeout(e,250);else{var t=document.querySelector(L);c.value&&t&&t.prepend(c.value),z.value=!0,j.value=o.timeout?new Ge(T,o.timeout):void 0}};var S=function(e){j.value&&!o.noPauseOnHover&&(e?j.value.pause():j.value.resume())},T=function(){j.value&&j.value.stop(),E.value&&clearTimeout(E.value),z.value=!1,setTimeout((function(){var e;r("close"),null===(e=c.value)||void 0===e||e.remove();var t=document.querySelector(L);!t||null!=t&&t.hasChildNodes()||t.remove()}),300)};return s((function(){!function(){var e=document.querySelector(L);if(!e&&!e){var t=document.body,n=document.createElement("div");n.className=P,t.append(n)}}(),I()})),function(n,i){return u(),f(h,{name:v(x)},{default:p((function(){return[y(b("div",{ref_key:"Toaster",ref:c,class:g(["m-toast",["--".concat(e.type),"--".concat(v(d)),"--".concat(v(O))]]),role:"alert",onMouseover:i[0]||(i[0]=function(e){return S(!0)}),onMouseleave:i[1]||(i[1]=function(e){return S(!1)}),onClick:i[2]||(i[2]=function(e){return r("click",e),void(o.persistent||T())})},[b("div",We,[b("p",Qe,w(e.message),1)]),e.persistent?m("",!0):(u(),l("button",Ze,[t(Ke,{src:v("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20viewBox%3D%220%200%2024%2024%22%20stroke%3D%22currentColor%22%20aria-hidden%3D%22true%22%3E%20%20%3Cpath%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20d%3D%22M6%2018L18%206M6%206l12%2012%22%2F%3E%3C%2Fsvg%3E"),class:"--icon"},null,8,["src"])]))],34),[[k,z.value]])]})),_:1},8,["name"])}}});function et(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}et("\n.m-toast-container {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n position: fixed;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.m-toast-container > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));\n}\n.m-toast-container {\n padding: 1rem;\n\n z-index: 1051;\n}\n.m-toast-container.--top {\n top: 0px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.m-toast-container.--center {\n width: 100%;\n}\n@media (min-width: 768px) {\n .m-toast-container.--center {\n position: fixed;\n left: 50%;\n width: auto;\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n }\n}\n.m-toast-container.--bottom {\n bottom: 0px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n}\n.m-toast-container.--bottom > :not([hidden]) ~ :not([hidden]) {\n margin-bottom: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));\n margin-top: calc(0.5rem * var(--tw-space-y-reverse));\n}\n.m-toast-container.--right {\n right: 0px;\n width: 100%;\n}\n@media (min-width: 768px) {\n .m-toast-container.--right {\n width: auto;\n }\n}\n.m-toast-container.--left {\n left: 0px;\n width: 100%;\n}\n@media (min-width: 768px) {\n .m-toast-container.--left {\n width: auto;\n }\n}\n");function tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}et("\n.m-toast[data-v-7ccd767e] {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.m-toast *[data-v-7ccd767e] {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.m-toast[data-v-7ccd767e] {\n position: relative;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n cursor: pointer;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-item-align: center;\n align-self: center;\n border-radius: var(--maz-border-radius);\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n color: var(--maz-color-white);\n -webkit-transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;\n -webkit-transition-duration: 300ms;\n transition-duration: 300ms;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n@media (min-width: 768px) {\n .m-toast.--left[data-v-7ccd767e],\n .m-toast.--right[data-v-7ccd767e] {\n width: 20rem;\n }\n .m-toast.--center[data-v-7ccd767e] {\n width: 20rem;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n }\n}\n.m-toast__message-wrapper[data-v-7ccd767e] {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 0%;\n flex: 1 1 0%;\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n.m-toast__message[data-v-7ccd767e] {\n margin: 0px;\n font-weight: 500;\n}\n.m-toast .--close[data-v-7ccd767e] {\n margin-left: 0.25rem;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n height: 1.75rem;\n width: 1.75rem;\n border-radius: var(--maz-border-radius);\n background-color: transparent;\n padding: 0px;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.m-toast .--close[data-v-7ccd767e]:hover {\n background-color: rgb(17 24 39 / 0.2);\n}\n.m-toast .--close .--icon[data-v-7ccd767e] {\n height: 1.25rem;\n width: 1.25rem;\n cursor: pointer;\n}\n.m-toast.--info[data-v-7ccd767e] {\n background-color: var(--maz-color-info);\n color: var(--maz-color-info-contrast);\n}\n.m-toast.--info[data-v-7ccd767e]:hover {\n background-color: var(--maz-color-info-600);\n}\n.m-toast.--info .--close[data-v-7ccd767e] {\n color: var(--maz-color-info-contrast);\n}\n.m-toast.--success[data-v-7ccd767e] {\n background-color: var(--maz-color-success);\n color: var(--maz-color-success-contrast);\n}\n.m-toast.--success[data-v-7ccd767e]:hover {\n background-color: var(--maz-color-success-600);\n}\n.m-toast.--success .--close[data-v-7ccd767e] {\n color: var(--maz-color-success-contrast);\n}\n.m-toast.--warning[data-v-7ccd767e] {\n background-color: var(--maz-color-warning);\n color: var(--maz-color-warning-contrast);\n}\n.m-toast.--warning[data-v-7ccd767e]:hover {\n background-color: var(--maz-color-warning-600);\n}\n.m-toast.--warning .--close[data-v-7ccd767e] {\n color: var(--maz-color-warning-contrast);\n}\n.m-toast.--danger[data-v-7ccd767e] {\n background-color: var(--maz-color-danger);\n color: var(--maz-color-danger-contrast);\n}\n.m-toast.--danger[data-v-7ccd767e]:hover {\n background-color: var(--maz-color-danger-600);\n}\n.m-toast.--danger .--close[data-v-7ccd767e] {\n color: var(--maz-color-danger-contrast);\n}\n.m-slide-top-enter-active[data-v-7ccd767e],\n .m-slide-top-leave-active[data-v-7ccd767e] {\n opacity: 1;\n -webkit-transition: all 300ms;\n transition: all 300ms;\n -webkit-transform: translateY(0);\n transform: translateY(0);\n}\n.m-slide-top-enter-from[data-v-7ccd767e],\n .m-slide-top-leave-to[data-v-7ccd767e] {\n opacity: 0;\n -webkit-transform: translateY(-100%);\n transform: translateY(-100%);\n}\n.m-slide-bottom-enter-active[data-v-7ccd767e],\n .m-slide-bottom-leave-active[data-v-7ccd767e] {\n opacity: 1;\n -webkit-transition: all 300ms;\n transition: all 300ms;\n -webkit-transform: translateY(0);\n transform: translateY(0);\n}\n.m-slide-bottom-enter-from[data-v-7ccd767e],\n .m-slide-bottom-leave-to[data-v-7ccd767e] {\n opacity: 0;\n -webkit-transform: translateY(100%);\n transform: translateY(100%);\n}\n.m-slide-right-enter-active[data-v-7ccd767e],\n .m-slide-right-leave-active[data-v-7ccd767e] {\n opacity: 1;\n -webkit-transition: all 300ms;\n transition: all 300ms;\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n.m-slide-right-enter-from[data-v-7ccd767e],\n .m-slide-right-leave-to[data-v-7ccd767e] {\n opacity: 0;\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n}\n.m-slide-left-enter-active[data-v-7ccd767e],\n .m-slide-left-leave-active[data-v-7ccd767e] {\n opacity: 1;\n -webkit-transition: all 300ms;\n transition: all 300ms;\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n.m-slide-left-enter-from[data-v-7ccd767e],\n .m-slide-left-leave-to[data-v-7ccd767e] {\n opacity: 0;\n -webkit-transform: translateX(-100%);\n transform: translateX(-100%);\n}\n"),Je.__scopeId="data-v-7ccd767e";var rt=function(){function e(t,n){E(this,e),this.app=t,this.globalOptions=n}return L(e,[{key:"show",value:function(e,t){var n=nt({message:e},t),r=nt(nt(nt({},n),this.globalOptions),t);j(Je,{props:r,app:this.app})}},{key:"getLocalOptions",value:function(e,t){return nt({type:e},t)}},{key:"success",value:function(e,t){return this.show(e,this.getLocalOptions("success",t))}},{key:"error",value:function(e,t){return this.show(e,this.getLocalOptions("danger",t))}},{key:"info",value:function(e,t){return this.show(e,this.getLocalOptions("info",t))}},{key:"warning",value:function(e,t){return this.show(e,this.getLocalOptions("warning",t))}}]),e}();function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function it(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var at,st={position:"bottom-right",timeout:1e4,persistent:!0},ct={install:function(e,t){at=new rt(e,it(it({},st),t)),e.provide("toast",at)}},ut=function(e){return e.filter((function(e,t,n){return t===n.indexOf(e)}))},lt=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"function"==typeof t?e.findIndex((function(){return t.apply(void 0,arguments)}))>-1:e.includes(t)}},dt=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return ut([].concat(ie(e),[t]))}},mt=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.filter((function(e){return e!==t}))}},ft=function(){function e(){E(this,e),I(this,"_loaders",i([]))}return L(e,[{key:"loaders",get:function(){var e=this;return a((function(){return e._loaders.value}))}},{key:"stop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this._loaders.value=mt(this._loaders.value)(e)}},{key:"start",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._loaders.value=dt(this._loaders.value)(t),function(){return e.stop(t)}}},{key:"anyLoading",get:function(){var e=this;return a((function(){return e._loaders.value.length>0}))}},{key:"isLoading",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=a((function(){return lt(e._loaders.value)(t)}));return n.value}}]),e}(),ht=new ft,vt={install:function(e){e.provide("wait",ht)}};function pt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return yt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function yt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wt,kt=function(e){return new Promise((function(t){return setTimeout(t,e)}))},Ot={delay:100,observer:{root:void 0,rootMargin:"0px",threshold:.2},animation:{once:!0,duration:300}},xt=function(){function e(t){var n;E(this,e),this.options={delay:null!==(n=null==t?void 0:t.delay)&&void 0!==n?n:Ot.delay,observer:gt(gt({},Ot.observer),null==t?void 0:t.observer),animation:gt(gt({},Ot.animation),null==t?void 0:t.animation)}}var t;return L(e,[{key:"runAnimations",value:function(){if(S())return this.handleObserver();console.warn("[MazAos](runAnimations) should be executed on client side")}},{key:"handleObserver",value:(t=B(G.mark((function e(){var t,n,r,o,i,a;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,kt(this.options.delay);case 2:t=new IntersectionObserver(this.handleIntersect.bind(this),gt({},this.options.observer)),n=pt(document.querySelectorAll("[data-maz-aos]"));try{for(n.s();!(r=n.n()).done;)o=r.value,(i=o.getAttribute("data-maz-aos-anchor"))?(a=document.querySelector(i))?(a.setAttribute("data-maz-aos-children","true"),t.observe(a)):console.warn('[maz-ui](aos) no element found with selector "'.concat(i,'"')):t.observe(o)}catch(e){n.e(e)}finally{n.f()}case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"handleIntersect",value:function(e,t){var n,r=this,o=pt(e);try{var i=function(){var e=n.value,o="true"===e.target.getAttribute("data-maz-aos-children"),i=e.target.getAttribute("data-maz-aos")?[e.target]:[];if(o){var a,s=ie(document.querySelectorAll("[data-maz-aos-anchor]")).map((function(t){return t.getAttribute("data-maz-aos-anchor")==="#".concat(e.target.id)?t:void 0})),c=pt(s);try{for(c.s();!(a=c.n()).done;){var u=a.value;u&&i.push(u)}}catch(e){c.e(e)}finally{c.f()}}for(var l=function(){var n=m[d],o=n.getAttribute("data-maz-aos-once"),i="string"==typeof o?"true"===o:r.options.animation.once;e.intersectionRatio>r.options.observer.threshold?(n.getAttribute("data-maz-aos-duration")||(n.style.transitionDuration="".concat(r.options.animation.duration,"ms"),setTimeout((function(){n.style.transitionDuration="0"}),1e3)),n.classList.add("maz-aos-animate"),i&&t.unobserve(n)):n.classList.remove("maz-aos-animate")},d=0,m=i;d<m.length;d++)l()};for(o.s();!(n=o.n()).done;)i()}catch(e){o.e(e)}finally{o.f()}}}]),e}(),zt={install:function(e,t){wt=new xt(t),e.provide("aos",wt),null!=t&&t.router?t.router.afterEach(B(G.mark((function e(){return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:wt.runAnimations();case 1:case"end":return e.stop()}}),e)})))):wt.runAnimations()}};function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pt={darkClass:"dark",storageThemeKey:"theme",storageThemeValueDark:"dark",storageThemeValueLight:"light"},Lt=i(),It=function(e){var t=e.storageThemeKey,n=e.storageThemeValueDark,r=e.darkClass,o=e.storageThemeValueLight;localStorage[t]===n||!(t in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?(document.documentElement.classList.add(n),localStorage[t]=n,Lt.value=n):(document.documentElement.classList.remove(r),localStorage[t]=o,Lt.value=o)},St=function(e){var t=e.storageThemeKey,n=e.storageThemeValueDark,r=e.darkClass,o=e.storageThemeValueLight;localStorage[t]===n?(document.documentElement.classList.remove(r),localStorage[t]=o,Lt.value=o):(document.documentElement.classList.add(r),localStorage[t]=n,Lt.value=n)},Tt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pt,t=Et(Et({},Pt),e),n=a((function(){return Lt.value===t.storageThemeValueDark})),r=a((function(){return Lt.value===t.storageThemeValueLight}));return{autoSetTheme:function(){return It(t)},toggleTheme:function(){return St(t)},hasDarkTheme:n,hasLightTheme:r,theme:Lt}},At=function(e){var t=e.componentName,n=e.instance,r=e.providedId;return{instanceId:a((function(){return null!=r?r:"".concat(t,"-").concat(null==n?void 0:n.uid)}))}},Ct=function(){return{aos:O("aos")}},Dt=function(){return{wait:O("wait")}},_t=function(){return{toast:O("toast")}},Mt=i(),Ht=function(e){var t=e.callback,n=e.options,r=new _(t,n);return Mt.value=r,{idle:Mt}},Nt=i(),Ft=function(e){var t=e.callback,n=e.options,r=new N(t,n);return Nt.value=r,{visibility:Nt}};export{xt as AosHandler,_ as IdleTimeout,rt as ToasterHandler,N as UserVisibility,ft as WaitHandler,wt as aosInstance,Ae as capitalize,Me as currency,Ne as date,x as debounce,O as injectStrict,zt as installAos,Te as installDirectives,Ye as installFilters,ct as installToaster,vt as installWait,j as mount,Ue as number,F as sleep,Lt as theme,at as toastInstance,z as truthyFilter,Ct as useAos,Ht as useIdleTimeout,At as useInstanceUniqId,Tt as useThemeHandler,_t as useToast,Ft as useUserVisibility,Dt as useWait,W as vClickOutside,Q as vClickOutsideInstall,ne as vClosable,re as vClosableInstall,ze as vLazyImg,Pe as vLazyImgInstall,fe as vZoomImg,he as vZoomImgInstall,ht as waitInstance};
|
|
3
|
+
e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},o=Object.prototype,i=o.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),a=new E(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=m(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}r.wrap=d;var f={};function h(){}function v(){}function p(){}var y={};l(y,s,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(P([])));g&&g!==o&&i.call(g,s)&&(y=g);var w=p.prototype=h.prototype=Object.create(y);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,n){function r(o,a,s,c){var u=m(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==t(d)&&i.call(d,"__await")?n.resolve(d.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):n.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var o;this._invoke=function(e,t){function i(){return new n((function(n,o){r(e,t,n,o)}))}return o=o?o.then(i,i):i()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=m(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function z(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(z,this),this.reset(!0)}function P(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:L}}function L(){return{value:void 0,done:!0}}return v.prototype=p,l(w,"constructor",p),l(p,"constructor",v),v.displayName=l(p,u,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},r.awrap=function(e){return{__await:e}},k(O.prototype),l(O.prototype,c,(function(){return this})),r.AsyncIterator=O,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new O(d(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(w),l(w,u,"Generator"),l(w,s,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},r.values=P,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(U);var Y=U.exports(),G=Y;try{regeneratorRuntime=Y}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=Y:Function("r","regeneratorRuntime = r")(Y)}var X="__vue_click_away__",R=function(){return null===document.ontouchstart?"touchstart":"click"},$=function(){var e=B(G.mark((function e(t,n){var o,i,a,s;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(K(t),o=n.instance,i=n.value,a="function"==typeof i){e.next=6;break}throw new Error("[maz-ui](vClickOutside) the callback should be a function");case 6:return e.next=8,r();case 8:t[X]=function(e){if((!t||!t.contains(e.target))&&i&&a)return i.call(o,e)},s=R(),document.addEventListener(s,t[X],!1);case 11:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),K=function(e){var t=R();document.removeEventListener(t,e[X],!1),delete e[X]},W={mounted:$,updated:function(e,t){t.value!==t.oldValue&&$(e,t)},unmounted:K},Q={install:function(e){e.directive("click-outside",W)}};function Z(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ee=function(e,t,n,r){e.stopPropagation();var o=n.value,i=o.handler,a=o.exclude,s=!1;if(a&&a.length>0){var c,u=Z(a);try{for(u.s();!(c=u.n()).done;){var l=c.value;if(!s)s=r.context.$refs[l].contains(e.target)}}catch(e){u.e(e)}finally{u.f()}}t.contains(e.target)||s||r.context[i]()},te=function(){return null===document.ontouchstart?"touchstart":"click"},ne={mounted:function(e,t,n){var r=te();document.addEventListener(r,(function(r){return ee(r,e,t,n)}))},unmounted:function(e,t,n){var r=te();document.removeEventListener(r,(function(r){return ee(r,e,t,n)}))}},re={install:function(e){e.directive("closable",ne)}};function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ie(e){return function(e){if(Array.isArray(e))return oe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(e){return ae="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},ae(e)}var se,ce={close:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',next:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>',previous:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>',spinner:'<svg width="40px" height="40px" version="1.1" xmlns="http://www.w3.org/2000/svg" fill="currentColor" x="0px" y="0px" viewBox="0 0 50 50" xml:space="preserve" class="maz-zoom-img__loader__svg" data-v-6d1cb50c=""><path d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"></path></svg>'};function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}!function(e){e.OPEN="maz-is-open"}(se||(se={}));var de,me=function(){function e(t){if(E(this,e),I(this,"defaultOptions",{scale:!0,blur:!0,disabled:!1}),!t.value)throw new Error('[MazUI](zoom-img) Image path must be defined. Ex: `v-zoom-img="<PATH_TO_IMAGE>"`');if("object"===ae(t.value)&&!t.value.src)throw new Error("[maz-ui](zoom-img) src of image must be provided");this.buttonsAdded=!1,this.options=this.buildOptions(t),this.keydownHandler=this.keydownLister.bind(this),this.loader=this.getLoader(),this.wrapper=document.createElement("div"),this.wrapper.classList.add("maz-zoom-img__wrapper"),this.wrapper.prepend(this.loader),this.img=document.createElement("img"),this.onImgLoadedCallback=this.onImgLoaded.bind(this),this.imgEventHandler(!0)}return L(e,[{key:"buildOptions",value:function(e){return le(le({},this.defaultOptions),"object"===ae(e.value)?e.value:{src:e.value})}},{key:"allInstances",get:function(){return ie(document.querySelectorAll(".maz-zoom-img-instance"))}},{key:"create",value:function(e){var t=this;this.options.disabled||(e.style.cursor="pointer",setTimeout((function(){return e.classList.add("maz-zoom-img-instance")})),e.setAttribute("data-src",this.options.src),this.options.alt&&e.setAttribute("data-alt",this.options.alt),e.style.transition="all 300ms ease-in-out",this.mouseEnterListener=function(){return t.mouseEnter(e)},this.mouseLeaveListener=function(){return t.mouseLeave(e)},this.renderPreviewListener=function(){return t.renderPreview(e,t.options)},e.addEventListener("mouseenter",this.mouseEnterListener),e.addEventListener("mouseleave",this.mouseLeaveListener),e.addEventListener("click",this.renderPreviewListener))}},{key:"update",value:function(e){this.options=this.buildOptions(e)}},{key:"remove",value:function(e){this.imgEventHandler(!1),e.removeEventListener("mouseenter",this.mouseEnterListener),e.removeEventListener("mouseleave",this.mouseLeaveListener),e.removeEventListener("click",this.renderPreviewListener),e.classList.remove("maz-zoom-img-instance"),e.removeAttribute("data-src"),e.removeAttribute("data-alt"),e.style.cursor=""}},{key:"renderPreview",value:function(e,t){var n=this;e.classList.add(se.OPEN),this.addStyle("\n.maz-zoom-img {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n padding: 2.5rem;\n z-index: 1050;\n background-color: hsla(238, 15%, 40%, 0.7);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n}\n\n.maz-zoom-img,\n.maz-zoom-img * {\n box-sizing: border-box;\n}\n\n.maz-zoom-img .maz-zoom-img__wrapper {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 0;\n min-height: 0;\n max-width: 100%;\n max-height: 100%;\n transition: all 300ms ease-in-out;\n opacity: 0;\n transform: scale(0.5);\n}\n\n.maz-zoom-img.maz-animate .maz-zoom-img__wrapper {\n opacity: 1;\n transform: scale(1);\n}\n\n.maz-zoom-img.maz-animate .maz-zoom-img__loader {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: hsla(238, 15%, 40%, 0.7);\n border-radius: 1rem;\n z-index: 2;\n min-width: 60px;\n min-height: 60px;\n}\n.maz-zoom-img.maz-animate .maz-zoom-img__loader[hidden] {\n display: none;\n}\n\n@-webkit-keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n\n@keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n\n.maz-zoom-img.maz-animate .maz-zoom-img__loader__svg {\n animation: spin .6s linear infinite;\n}\n\n.maz-zoom-img img {\n max-width: 100%;\n max-height: 100%;\n min-width: 0;\n border-radius: 1rem;\n}\n\n.maz-zoom-img .maz-zoom-btn {\n margin: 0 auto;\n border: none;\n background-color: hsla(0, 0%, 7%, 0.5);\n box-shadow: 0 0 0.5rem 0 hsla(0, 0%, 0%, 0.2);\n height: 2.2rem;\n min-height: 2.2rem;\n width: 2.2rem;\n min-width: 2.2rem;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 2.2rem;\n cursor: pointer;\n flex: 0 0 auto;\n outline: none;\n}\n\n.maz-zoom-img .maz-zoom-btn svg {\n fill: white;\n}\n\n.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--close {\n position: absolute;\n top: 0.5rem;\n right: 0.5rem;\n z-index: 1;\n}\n\n.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--previous {\n position: absolute;\n left: 0.5rem;\n z-index: 1;\n}\n\n.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--next {\n position: absolute;\n right: 0.5rem;\n z-index: 1;\n}\n\n.maz-zoom-img .maz-zoom-btn:hover {\n background-color: hsl(0, 0%, 0%);\n}");var r=document.createElement("div");r.classList.add("maz-zoom-img"),r.setAttribute("id","MazImgPreviewFullsize"),r.addEventListener("click",(function(e){r.isEqualNode(e.target)&&n.closePreview()})),"object"===ae(t)&&(this.img.setAttribute("src",t.src),t.alt&&this.img.setAttribute("alt",t.alt),this.img.id="MazImgElement"),this.wrapper.append(this.img),r.append(this.wrapper),document.body.append(r),this.keyboardEventHandler(!0),setTimeout((function(){r&&r.classList.add("maz-animate")}),100)}},{key:"onImgLoaded",value:function(){this.wrapper.style.width="".concat(this.img.width,"px"),this.wrapper.style.minWidth="200px",this.loader.hidden=!0;var e=this.getButton(),t=[],n=this.allInstances.length>1;if(!this.buttonsAdded){if(this.buttonsAdded=!0,n){var r=this.getButton("previous"),o=this.getButton("next");t.push(r,o)}this.wrapper.append(e),n&&(this.wrapper.prepend(t[0]),this.wrapper.append(t[1]))}}},{key:"getLoader",value:function(){var e=document.createElement("div");return e.classList.add("maz-zoom-img__loader"),e.innerHTML=ce.spinner,e}},{key:"mouseLeave",value:function(e){this.options.scale&&(e.style.transform=""),this.options.blur&&(e.style.filter=""),e.style.zIndex=""}},{key:"mouseEnter",value:function(e){e.style.zIndex="1",this.options.scale&&(e.style.transform="scale(1.1)"),this.options.blur&&(e.style.filter="blur(2px)")}},{key:"keydownLister",value:function(e){e.preventDefault(),"Escape"!==e.key&&" "!==e.key||this.closePreview(),"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||this.nextPreviousImage("ArrowRight"===e.key)}},{key:"getButton",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"close",n=document.createElement("button");return n.innerHTML=ce[t],n.addEventListener("click",(function(){"close"===t?e.closePreview():e.allInstances&&e.nextPreviousImage("next"===t)})),n.classList.add("maz-zoom-btn"),n.classList.add("maz-zoom-btn--".concat(t)),n}},{key:"closePreview",value:function(){var e=document.querySelector("#MazImgPreviewFullsize"),t=document.querySelector("#MazPreviewStyle"),n=document.querySelector(".maz-zoom-img-instance.maz-is-open");n&&n.classList.remove(se.OPEN),e&&e.classList.remove("maz-animate"),this.keyboardEventHandler(!1),setTimeout((function(){e&&e.remove(),t&&t.remove()}),300)}},{key:"getNewInstanceIndex",value:function(e){return e<0?this.allInstances.length-1:e>=this.allInstances.length?0:e}},{key:"nextPreviousImage",value:function(e){var t=e,n=document.querySelector(".maz-zoom-img-instance.maz-is-open");if(n){var r=this.allInstances.indexOf(n),o=t?r+1:r-1,i=this.allInstances[this.getNewInstanceIndex(o)];i&&this.useNextInstance(n,i)}}},{key:"useNextInstance",value:function(e,t){e.classList.remove(se.OPEN),t.classList.add(se.OPEN);var n=t.getAttribute("data-src"),r=t.getAttribute("data-alt");this.wrapper.style.width="",this.loader.hidden=!1,n&&this.img.setAttribute("src",n),r&&this.img.setAttribute("alt",r)}},{key:"addStyle",value:function(e){var t=document.createElement("style");t.id="MazPreviewStyle",t.textContent=e,document.head.append(t)}},{key:"keyboardEventHandler",value:function(e){if(e)return document.addEventListener("keydown",this.keydownHandler);document.removeEventListener("keydown",this.keydownHandler)}},{key:"imgEventHandler",value:function(e){if(e)return this.img.addEventListener("load",this.onImgLoadedCallback);this.img.removeEventListener("load",this.onImgLoadedCallback)}}]),e}(),fe={created:function(e,t){(de=new me(t)).create(e)},updated:function(e,t){de.update(t)},unmounted:function(e){de.remove(e)}},he={install:function(e){e.directive("zoom-img",fe)}};function ve(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return pe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pe(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ge(e){var t,n,r,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new we(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function we(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return we=function(e){this.s=e,this.n=e.next},we.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new we(e)}var ke,Oe={baseClass:"m-lazy-img",loadedClass:"m-lazy-loaded",loadingClass:"m-lazy-loading",errorClass:"m-lazy-error",noPhotoClass:"m-lazy-no-photo",noPhoto:!1,observerOnce:!0,loadOnce:!1,noUseErrorPhoto:!1,observerOptions:{threshold:.1}},xe=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};E(this,e),I(this,"observers",[]),I(this,"defaultOptions",Oe),I(this,"hasImgLoaded",!1),this.options=this.buildOptions(t),this.onImgLoadedCallback=this.imageIsLoaded.bind(this),this.onImgErrorCallback=this.imageHasError.bind(this)}var t,n,r,o,i,a,s,c;return L(e,[{key:"loadErrorPhoto",value:(c=B(G.mark((function e(){var t,n;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,import("./no_photo-a72545e4.js");case 2:return t=e.sent,n=t.default,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)}))),function(){return c.apply(this,arguments)})},{key:"buildOptions",value:function(e){return be(be(be({},this.defaultOptions),e),{},{observerOptions:be(be({},this.defaultOptions.observerOptions),e.observerOptions)})}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeAllStateClasses",value:function(e){this.removeClass(e,this.options.loadedClass),this.removeClass(e,this.options.loadingClass),this.removeClass(e,this.options.errorClass),this.removeClass(e,this.options.noPhotoClass)}},{key:"setBaseClass",value:function(e){this.addClass(e,this.options.baseClass)}},{key:"imageIsLoading",value:function(e){var t,n;this.addClass(e,this.options.loadingClass),null===(t=(n=this.options).onLoading)||void 0===t||t.call(n,e)}},{key:"imageHasNoPhoto",value:function(e){this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.noPhotoClass),this.setDefaultPhoto(e)}},{key:"imageIsLoaded",value:function(e){var t,n;this.hasImgLoaded=!0,this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.loadedClass),null===(t=(n=this.options).onLoaded)||void 0===t||t.call(n,e)}},{key:"imageHasError",value:function(e,t){var n,r;console.warn("[maz-ui][MazLazyImg] Error while loading image",t),this.removeClass(e,this.options.loadingClass),this.addClass(e,this.options.errorClass),null===(n=(r=this.options).onError)||void 0===n||n.call(r,e),this.setDefaultPhoto(e)}},{key:"getImageUrl",value:function(e,t){var n=this.getImgElement(e).getAttribute("data-src");if(n)return n;var r="object"===ae(t.value)?t.value.src:t.value;return r||console.warn("[maz-ui][MazLazyImg] src url is not defined"),r}},{key:"setPictureSourceUrls",value:(s=B(G.mark((function e(t){var n,r,o,i,a,s,c,u;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((n=t.querySelectorAll("source")).length>0)){e.next=33;break}r=!1,o=!1,e.prev=4,a=ge(n);case 6:return e.next=8,a.next();case 8:if(!(r=!(s=e.sent).done)){e.next=15;break}c=s.value,(u=c.getAttribute("data-srcset"))?c.srcset=u:console.warn('[maz-ui][MazLazyImg] the "[data-srcset]" attribute is not provided on "<source />"');case 12:r=!1,e.next=6;break;case 15:e.next=21;break;case 17:e.prev=17,e.t0=e.catch(4),o=!0,i=e.t0;case 21:if(e.prev=21,e.prev=22,!r||null==a.return){e.next=26;break}return e.next=26,a.return();case 26:if(e.prev=26,!o){e.next=29;break}throw i;case 29:return e.finish(26);case 30:return e.finish(21);case 31:e.next=35;break;case 33:console.warn('[maz-ui][MazLazyImg] No "<source />" elements provided into the "<picture />" element'),this.imageHasError(t);case 35:case"end":return e.stop()}}),e,this,[[4,17,21,31],[22,,26,30]])}))),function(e){return s.apply(this,arguments)})},{key:"hasBgImgMode",value:function(e){return"bg-image"===e.arg}},{key:"isPictureElement",value:function(e){return e instanceof HTMLPictureElement}},{key:"getImgElement",value:function(e){return this.isPictureElement(e)?e.querySelector("img"):e}},{key:"setDefaultPhoto",value:(a=B(G.mark((function e(t){var n,r,o,i,a,s,c,u;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.options.noUseErrorPhoto){e.next=2;break}return e.abrupt("return");case 2:if(null===(n=this.options.errorPhoto)||void 0===n){e.next=6;break}e.t0=n,e.next=9;break;case 6:return e.next=8,this.loadErrorPhoto();case 8:e.t0=e.sent;case 9:if(r=e.t0,!((o=t.querySelectorAll("source")).length>0)){e.next=42;break}i=!1,a=!1,e.prev=14,c=ge(o);case 16:return e.next=18,c.next();case 18:if(!(i=!(u=e.sent).done)){e.next=24;break}u.value.srcset=r;case 21:i=!1,e.next=16;break;case 24:e.next=30;break;case 26:e.prev=26,e.t1=e.catch(14),a=!0,s=e.t1;case 30:if(e.prev=30,e.prev=31,!i||null==c.return){e.next=35;break}return e.next=35,c.return();case 35:if(e.prev=35,!a){e.next=38;break}throw s;case 38:return e.finish(35);case 39:return e.finish(30);case 40:e.next=43;break;case 42:this.setImgSrc(t,r);case 43:case"end":return e.stop()}}),e,this,[[14,26,30,40],[31,,35,39]])}))),function(e){return a.apply(this,arguments)})},{key:"addEventListenerToImg",value:function(e){var t=this,n=this.getImgElement(e);n.addEventListener("load",(function(){return t.onImgLoadedCallback(e)}),{once:!0}),n.addEventListener("error",(function(n){return t.onImgErrorCallback(e,n)}),{once:!0})}},{key:"loadImage",value:(i=B(G.mark((function e(t,n){var r;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.imageIsLoading(t),!this.isPictureElement(t)){e.next=7;break}return this.addEventListenerToImg(t),e.next=5,this.setPictureSourceUrls(t);case 5:e.next=11;break;case 7:if(r=this.getImageUrl(t,n)){e.next=10;break}return e.abrupt("return",this.imageHasError(t));case 10:this.hasBgImgMode(n)?(t.style.backgroundImage="url('".concat(r,"')"),this.imageIsLoaded(t)):(this.addEventListenerToImg(t),this.setImgSrc(t,r));case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"setImgSrc",value:function(e,t){this.getImgElement(e).src=t}},{key:"handleIntersectionObserver",value:function(e,t,n,r){this.observers.push(r);var o,i=ve(n);try{for(i.s();!(o=i.n()).done;){var a=o.value;if(a.isIntersecting){var s,c;if(null===(s=(c=this.options).onIntersecting)||void 0===s||s.call(c,a.target),this.options.observerOnce&&r.unobserve(e),this.options.loadOnce&&this.hasImgLoaded)return;this.loadImage(e,t)}}}catch(e){i.e(e)}finally{i.f()}}},{key:"createObserver",value:function(e,t){var n=this,r=this.options.observerOptions;new IntersectionObserver((function(r,o){n.handleIntersectionObserver(e,t,r,o)}),r).observe(e)}},{key:"imageHandler",value:(o=B(G.mark((function e(t,n,r){var o,i,a,s,c;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("update"!==r){e.next=29;break}o=!1,i=!1,e.prev=3,s=ge(this.observers);case 5:return e.next=7,s.next();case 7:if(!(o=!(c=e.sent).done)){e.next=13;break}c.value.unobserve(t);case 10:o=!1,e.next=5;break;case 13:e.next=19;break;case 15:e.prev=15,e.t0=e.catch(3),i=!0,a=e.t0;case 19:if(e.prev=19,e.prev=20,!o||null==s.return){e.next=24;break}return e.next=24,s.return();case 24:if(e.prev=24,!i){e.next=27;break}throw a;case 27:return e.finish(24);case 28:return e.finish(19);case 29:window.IntersectionObserver?this.createObserver(t,n):this.loadImage(t,n);case 30:case"end":return e.stop()}}),e,this,[[3,15,19,29],[20,,24,28]])}))),function(e,t,n){return o.apply(this,arguments)})},{key:"bindUpdateHandler",value:(r=B(G.mark((function e(t,n,r){return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.options.noPhoto){e.next=2;break}return e.abrupt("return",this.imageHasNoPhoto(t));case 2:return e.next=4,this.imageHandler(t,n,r);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"add",value:(n=B(G.mark((function e(t,n){var r=this;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.hasBgImgMode(n)||!this.isPictureElement(t)){e.next=2;break}throw new Error('[MazLazyImg] You can\'t use the "bg-image" mode with "<picture />" element');case 2:return setTimeout((function(){return r.setBaseClass(t)}),0),t.getAttribute("src")||this.setImgSrc(t,"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"),e.next=6,this.bindUpdateHandler(t,n,"bind");case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"update",value:(t=B(G.mark((function e(t,n){return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.value===n.oldValue){e.next=5;break}return this.hasImgLoaded=!1,this.removeAllStateClasses(t),e.next=5,this.bindUpdateHandler(t,n,"update");case 5:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"remove",value:function(e,t){this.hasImgLoaded=!1,this.hasBgImgMode(t)&&(e.style.backgroundImage=""),this.removeAllStateClasses(e);var n,r=ve(this.observers);try{for(r.s();!(n=r.n()).done;){n.value.unobserve(e)}}catch(e){r.e(e)}finally{r.f()}this.observers=[]}}]),e}(),ze={created:function(e,t){var n="object"===ae(t.value)?t.value:{};(ke=new xe(n)).add(e,t)},updated:function(e,t){ke.update(e,t)},unmounted:function(e,t){ke.remove(e,t)}};function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pe="lazy-img",Le={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ee(Ee(Ee({},Oe),t),{},{observerOptions:Ee(Ee({},Oe.observerOptions),t.observerOptions)}),r=new xe(n);e.directive(Pe,{created:r.add.bind(r),updated:r.update.bind(r),unmounted:r.remove.bind(r)})}};function Ie(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Se(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Te=[{name:"click-outside",directive:W},{name:"closable",directive:ne},{name:"zoom-img",directive:fe},{name:"lazy-img",directive:ze}],Ae={install:function(e){var t,n=Ie(Te);try{for(n.s();!(t=n.n()).done;){var r=t.value,o=r.name,i=r.directive;e.directive(o,i)}}catch(e){n.e(e)}finally{n.f()}}},Ce=function(e){return e?(e=e.toString()).charAt(0).toUpperCase()+e.slice(1):""};function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Me={style:"currency",minimumFractionDigits:2,round:!1},He=function(e,t,n){var r=_e(_e({},Me),n);!function(e,t,n){if(void 0===e)throw new TypeError("[maz-ui](FilterCurrency) The `number` attribute is required.");if(void 0===t)throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute is required.");if("string"!=typeof t)throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute must be a string.");if(void 0===n.currency)throw new TypeError("[maz-ui](FilterCurrency) The `options.currency` attribute is required.")}(e,t,r);try{return function(e,t,n){var r=Number(e);return n.round&&(r=Math.floor(r),n.minimumFractionDigits=0),new Intl.NumberFormat(t,n).format(r)}(e,t,r)}catch(e){throw new Error("[maz-ui](FilterCurrency) ".concat(e))}},Ne={month:"short",day:"numeric",year:"numeric"},Fe=function(e,t,n){if(void 0===t)throw new TypeError("[maz-ui](FilterDate) The `locale` attribute is required.");if("string"!=typeof t)throw new TypeError("[maz-ui](FilterDate) The `locale` attribute must be a string.");var r=null!=n?n:Ne;try{var o=e instanceof Date?e:new Date(e);return new Intl.DateTimeFormat(t,r).format(o)}catch(e){throw new Error("[maz-ui](FilterDate) ".concat(e))}};function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ue={minimumFractionDigits:2},Ve=function(e,t,n){if(n=Be(Be({},Ue),n),void 0===e)throw new TypeError("[maz-ui](FilterNumber) The `number` attribute is required.");if(void 0===t)throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute is required.");if("string"!=typeof t)throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute must be a string.");try{return new Intl.NumberFormat(t,n).format(Number(e))}catch(e){throw new Error("[maz-ui](FilterNumber) ".concat(e))}},Ye={capitalize:Ce,currency:He,date:Fe,number:Ve},Ge={install:function(e){e.provide("filters",Ye)}},Xe=function(){function e(t,n){E(this,e),this.startedAt=Date.now(),this.callback=t,this.delay=n,this.start()}return L(e,[{key:"pause",value:function(){this.stop(),this.delay-=Date.now()-this.startedAt}},{key:"resume",value:function(){this.startedAt=Date.now(),this.start()}},{key:"start",value:function(){this.timer=setTimeout(this.callback,this.delay)}},{key:"stop",value:function(){clearTimeout(this.timer)}}]),e}();function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ke=["innerHTML"],We=o({__name:"MazIcon",props:{src:{type:String,default:void 0},path:{type:String,default:void 0},name:{type:String,default:void 0},size:{type:String,default:"1.5rem"},title:{type:String,default:void 0},transformSource:{type:Function,default:function(e){return e}}},emits:["loaded","unloaded","error"],setup:function(e,t){var n=t.emit,o=e,f={},h=i(),v=i(),p=a((function(){var e;return null!==(e=o.path)&&void 0!==e?e:function(){try{return O("mazIconPath")}catch(e){return}}()})),y=a((function(){return o.src?o.src:p.value?"".concat(p.value,"/").concat(o.name,".svg"):"/".concat(o.name,".svg")}));s((function(){o.name||o.src||console.error('[maz-ui](MazIcon) you should provide "name" or "src" as prop')}));var b=function(e){var t=e.cloneNode(!0);return t=o.transformSource(e),o.title&&function(e,t){var n=e.querySelectorAll("title");if(n.length>0)n[0].textContent=t;else{var r=document.createElementNS("http://www.w3.org/2000/svg","title");r.textContent=t,e.append(r)}}(t,o.title),e.innerHTML},g=function(){var e=B(G.mark((function e(t){var o;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f[t]||(f[t]=w(t)),e.prev=1,e.next=4,f[t];case 4:return o=e.sent,h.value=o,e.next=8,r();case 8:n("loaded",v.value),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(1),h.value&&(h.value=void 0,n("unloaded")),delete f[t],n("error",e.t0);case 16:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(t){return e.apply(this,arguments)}}(),w=function(e){return new Promise((function(t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.addEventListener("load",(function(){if(r.status>=200&&r.status<400)try{var e=(new DOMParser).parseFromString(r.responseText,"text/xml").querySelectorAll("svg")[0];e?(e=o.transformSource(e),t(e)):n(new Error('Loaded file is not valid SVG"'))}catch(e){n(e)}else n(new Error("Error loading SVG"))})),r.addEventListener("error",(function(){return n()})),r.send()}))};return c((function(){return g(y.value)})),function(t,n){return h.value?(u(),l("svg",d({key:0,ref_key:"svgElem",ref:v,width:"1em",height:"1em"},$e($e({},function(e){var t={},n=e.attributes;if(!n)return t;for(var r=n.length-1;r>=0;r--)t[n[r].name]=n[r].value;return t}(h.value)),(r=t.$attrs,Object.keys(r).reduce((function(e,t){return!1!==r[t]&&null!==r[t]&&void 0!==r[t]&&(e[t]=r[t]),e}),{}))),{style:"font-size: ".concat(e.size),innerHTML:b(h.value)}),null,16,Ke)):m("",!0);var r}}}),Qe={class:"m-toast__message-wrapper"},Ze={class:"m-toast__message"},Je={key:0,class:"--close"},et=o({__name:"MazToast",props:{position:{type:String,default:"bottom-right"},maxToasts:{type:[Number,Boolean],default:!1},timeout:{type:Number,default:1e4},queue:{type:Boolean,default:!1},noPauseOnHover:{type:Boolean,default:!1},type:{type:String,default:"info",validator:function(e){return["info","success","warning","danger"].includes(e)}},message:{type:String,required:!0},persistent:{type:Boolean,default:!1}},emits:["close","click"],setup:function(e,n){var r=n.emit,o=e,c=i(),d=a((function(){return o.position.includes("top")?"top":"bottom"})),O=a((function(){return o.position.includes("left")?"left":o.position.includes("right")?"right":"center"})),x=a((function(){return"center"!==O.value?"right"===O.value?"m-slide-right":"m-slide-left":"top"===d.value?"m-slide-top":"m-slide-bottom"})),z=i(!1),j=i(),E=i(),P="m-toast-container --".concat(d.value," --").concat(O.value),L=".".concat(P.replaceAll(" ",".")),I=function e(){if(function(){var e=document.querySelector(L);return!(!o.queue&&!1===o.maxToasts)&&(!1!==o.maxToasts&&e?o.maxToasts<=e.childElementCount:e&&e.childElementCount>0)}())E.value=setTimeout(e,250);else{var t=document.querySelector(L);c.value&&t&&t.prepend(c.value),z.value=!0,j.value=o.timeout?new Xe(T,o.timeout):void 0}};var S=function(e){j.value&&!o.noPauseOnHover&&(e?j.value.pause():j.value.resume())},T=function(){j.value&&j.value.stop(),E.value&&clearTimeout(E.value),z.value=!1,setTimeout((function(){var e;r("close"),null===(e=c.value)||void 0===e||e.remove();var t=document.querySelector(L);!t||null!=t&&t.hasChildNodes()||t.remove()}),300)};return s((function(){!function(){var e=document.querySelector(L);if(!e&&!e){var t=document.body,n=document.createElement("div");n.className=P,t.append(n)}}(),I()})),function(n,i){return u(),f(h,{name:v(x)},{default:p((function(){return[y(b("div",{ref_key:"Toaster",ref:c,class:g(["m-toast",["--".concat(e.type),"--".concat(v(d)),"--".concat(v(O))]]),role:"alert",onMouseover:i[0]||(i[0]=function(e){return S(!0)}),onMouseleave:i[1]||(i[1]=function(e){return S(!1)}),onClick:i[2]||(i[2]=function(e){return r("click",e),void(o.persistent||T())})},[b("div",Qe,[b("p",Ze,w(e.message),1)]),e.persistent?m("",!0):(u(),l("button",Je,[t(We,{src:v("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20viewBox%3D%220%200%2024%2024%22%20stroke%3D%22currentColor%22%20aria-hidden%3D%22true%22%3E%20%20%3Cpath%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20d%3D%22M6%2018L18%206M6%206l12%2012%22%2F%3E%3C%2Fsvg%3E"),class:"--icon"},null,8,["src"])]))],34),[[k,z.value]])]})),_:1},8,["name"])}}});function tt(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}tt("\n.m-toast-container {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n position: fixed;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.m-toast-container > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));\n}\n.m-toast-container {\n padding: 1rem;\n\n z-index: 1051;\n}\n.m-toast-container.--top {\n top: 0px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.m-toast-container.--center {\n width: 100%;\n}\n@media (min-width: 768px) {\n .m-toast-container.--center {\n position: fixed;\n left: 50%;\n width: auto;\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n }\n}\n.m-toast-container.--bottom {\n bottom: 0px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: reverse;\n -ms-flex-direction: column-reverse;\n flex-direction: column-reverse;\n}\n.m-toast-container.--bottom > :not([hidden]) ~ :not([hidden]) {\n margin-bottom: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));\n margin-top: calc(0.5rem * var(--tw-space-y-reverse));\n}\n.m-toast-container.--right {\n right: 0px;\n width: 100%;\n}\n@media (min-width: 768px) {\n .m-toast-container.--right {\n width: auto;\n }\n}\n.m-toast-container.--left {\n left: 0px;\n width: 100%;\n}\n@media (min-width: 768px) {\n .m-toast-container.--left {\n width: auto;\n }\n}\n");function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}tt("\n.m-toast[data-v-7ccd767e] {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.m-toast *[data-v-7ccd767e] {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.m-toast[data-v-7ccd767e] {\n position: relative;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n cursor: pointer;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-item-align: center;\n align-self: center;\n border-radius: var(--maz-border-radius);\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n color: var(--maz-color-white);\n -webkit-transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;\n -webkit-transition-duration: 300ms;\n transition-duration: 300ms;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n@media (min-width: 768px) {\n .m-toast.--left[data-v-7ccd767e],\n .m-toast.--right[data-v-7ccd767e] {\n width: 20rem;\n }\n .m-toast.--center[data-v-7ccd767e] {\n width: 20rem;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n }\n}\n.m-toast__message-wrapper[data-v-7ccd767e] {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 0%;\n flex: 1 1 0%;\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n.m-toast__message[data-v-7ccd767e] {\n margin: 0px;\n font-weight: 500;\n}\n.m-toast .--close[data-v-7ccd767e] {\n margin-left: 0.25rem;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n height: 1.75rem;\n width: 1.75rem;\n border-radius: var(--maz-border-radius);\n background-color: transparent;\n padding: 0px;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.m-toast .--close[data-v-7ccd767e]:hover {\n background-color: rgb(17 24 39 / 0.2);\n}\n.m-toast .--close .--icon[data-v-7ccd767e] {\n height: 1.25rem;\n width: 1.25rem;\n cursor: pointer;\n}\n.m-toast.--info[data-v-7ccd767e] {\n background-color: var(--maz-color-info);\n color: var(--maz-color-info-contrast);\n}\n.m-toast.--info[data-v-7ccd767e]:hover {\n background-color: var(--maz-color-info-600);\n}\n.m-toast.--info .--close[data-v-7ccd767e] {\n color: var(--maz-color-info-contrast);\n}\n.m-toast.--success[data-v-7ccd767e] {\n background-color: var(--maz-color-success);\n color: var(--maz-color-success-contrast);\n}\n.m-toast.--success[data-v-7ccd767e]:hover {\n background-color: var(--maz-color-success-600);\n}\n.m-toast.--success .--close[data-v-7ccd767e] {\n color: var(--maz-color-success-contrast);\n}\n.m-toast.--warning[data-v-7ccd767e] {\n background-color: var(--maz-color-warning);\n color: var(--maz-color-warning-contrast);\n}\n.m-toast.--warning[data-v-7ccd767e]:hover {\n background-color: var(--maz-color-warning-600);\n}\n.m-toast.--warning .--close[data-v-7ccd767e] {\n color: var(--maz-color-warning-contrast);\n}\n.m-toast.--danger[data-v-7ccd767e] {\n background-color: var(--maz-color-danger);\n color: var(--maz-color-danger-contrast);\n}\n.m-toast.--danger[data-v-7ccd767e]:hover {\n background-color: var(--maz-color-danger-600);\n}\n.m-toast.--danger .--close[data-v-7ccd767e] {\n color: var(--maz-color-danger-contrast);\n}\n.m-slide-top-enter-active[data-v-7ccd767e],\n .m-slide-top-leave-active[data-v-7ccd767e] {\n opacity: 1;\n -webkit-transition: all 300ms;\n transition: all 300ms;\n -webkit-transform: translateY(0);\n transform: translateY(0);\n}\n.m-slide-top-enter-from[data-v-7ccd767e],\n .m-slide-top-leave-to[data-v-7ccd767e] {\n opacity: 0;\n -webkit-transform: translateY(-100%);\n transform: translateY(-100%);\n}\n.m-slide-bottom-enter-active[data-v-7ccd767e],\n .m-slide-bottom-leave-active[data-v-7ccd767e] {\n opacity: 1;\n -webkit-transition: all 300ms;\n transition: all 300ms;\n -webkit-transform: translateY(0);\n transform: translateY(0);\n}\n.m-slide-bottom-enter-from[data-v-7ccd767e],\n .m-slide-bottom-leave-to[data-v-7ccd767e] {\n opacity: 0;\n -webkit-transform: translateY(100%);\n transform: translateY(100%);\n}\n.m-slide-right-enter-active[data-v-7ccd767e],\n .m-slide-right-leave-active[data-v-7ccd767e] {\n opacity: 1;\n -webkit-transition: all 300ms;\n transition: all 300ms;\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n.m-slide-right-enter-from[data-v-7ccd767e],\n .m-slide-right-leave-to[data-v-7ccd767e] {\n opacity: 0;\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n}\n.m-slide-left-enter-active[data-v-7ccd767e],\n .m-slide-left-leave-active[data-v-7ccd767e] {\n opacity: 1;\n -webkit-transition: all 300ms;\n transition: all 300ms;\n -webkit-transform: translateX(0);\n transform: translateX(0);\n}\n.m-slide-left-enter-from[data-v-7ccd767e],\n .m-slide-left-leave-to[data-v-7ccd767e] {\n opacity: 0;\n -webkit-transform: translateX(-100%);\n transform: translateX(-100%);\n}\n"),et.__scopeId="data-v-7ccd767e";var ot=function(){function e(t,n){E(this,e),this.app=t,this.globalOptions=n}return L(e,[{key:"show",value:function(e,t){var n=rt({message:e},t),r=rt(rt(rt({},n),this.globalOptions),t);j(et,{props:r,app:this.app})}},{key:"getLocalOptions",value:function(e,t){return rt({type:e},t)}},{key:"success",value:function(e,t){return this.show(e,this.getLocalOptions("success",t))}},{key:"error",value:function(e,t){return this.show(e,this.getLocalOptions("danger",t))}},{key:"info",value:function(e,t){return this.show(e,this.getLocalOptions("info",t))}},{key:"warning",value:function(e,t){return this.show(e,this.getLocalOptions("warning",t))}}]),e}();function it(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function at(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var st,ct={position:"bottom-right",timeout:1e4,persistent:!0},ut={install:function(e,t){st=new ot(e,at(at({},ct),t)),e.provide("toast",st)}},lt="",dt=function(e){return e.filter((function(e,t,n){return t===n.indexOf(e)}))},mt=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lt;return"function"==typeof t?e.findIndex((function(){return t.apply(void 0,arguments)}))>-1:e.includes(t)}},ft=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lt;return dt([].concat(ie(e),[t]))}},ht=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lt;return e.filter((function(e){return e!==t}))}},vt=function(){function e(){E(this,e),I(this,"_loaders",i([]))}return L(e,[{key:"loaders",get:function(){var e=this;return a((function(){return e._loaders.value}))}},{key:"stop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lt;this._loaders.value=ht(this._loaders.value)(e)}},{key:"start",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lt;return this._loaders.value=ft(this._loaders.value)(t),function(){return e.stop(t)}}},{key:"anyLoading",get:function(){var e=this;return a((function(){return e._loaders.value.length>0}))}},{key:"isLoading",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lt,n=a((function(){return mt(e._loaders.value)(t)}));return n.value}}]),e}(),pt=new vt,yt={install:function(e){e.provide("wait",pt)}};function bt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return gt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ot,xt=function(e){return new Promise((function(t){return setTimeout(t,e)}))},zt={delay:100,observer:{root:void 0,rootMargin:"0px",threshold:.2},animation:{once:!0,duration:300}},jt=function(){function e(t){var n;E(this,e),this.options={delay:null!==(n=null==t?void 0:t.delay)&&void 0!==n?n:zt.delay,observer:kt(kt({},zt.observer),null==t?void 0:t.observer),animation:kt(kt({},zt.animation),null==t?void 0:t.animation)}}var t;return L(e,[{key:"runAnimations",value:function(){if(S())return this.handleObserver();console.warn("[MazAos](runAnimations) should be executed on client side")}},{key:"handleObserver",value:(t=B(G.mark((function e(){var t,n,r,o,i,a;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,xt(this.options.delay);case 2:t=new IntersectionObserver(this.handleIntersect.bind(this),kt({},this.options.observer)),n=bt(document.querySelectorAll("[data-maz-aos]"));try{for(n.s();!(r=n.n()).done;)o=r.value,(i=o.getAttribute("data-maz-aos-anchor"))?(a=document.querySelector(i))?(a.setAttribute("data-maz-aos-children","true"),t.observe(a)):console.warn('[maz-ui](aos) no element found with selector "'.concat(i,'"')):t.observe(o)}catch(e){n.e(e)}finally{n.f()}case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"handleIntersect",value:function(e,t){var n,r=this,o=bt(e);try{var i=function(){var e=n.value,o="true"===e.target.getAttribute("data-maz-aos-children"),i=e.target.getAttribute("data-maz-aos")?[e.target]:[];if(o){var a,s=ie(document.querySelectorAll("[data-maz-aos-anchor]")).map((function(t){return t.getAttribute("data-maz-aos-anchor")==="#".concat(e.target.id)?t:void 0})),c=bt(s);try{for(c.s();!(a=c.n()).done;){var u=a.value;u&&i.push(u)}}catch(e){c.e(e)}finally{c.f()}}for(var l=function(){var n=m[d],o=n.getAttribute("data-maz-aos-once"),i="string"==typeof o?"true"===o:r.options.animation.once;e.intersectionRatio>r.options.observer.threshold?(n.getAttribute("data-maz-aos-duration")||(n.style.transitionDuration="".concat(r.options.animation.duration,"ms"),setTimeout((function(){n.style.transitionDuration="0"}),1e3)),n.classList.add("maz-aos-animate"),i&&t.unobserve(n)):n.classList.remove("maz-aos-animate")},d=0,m=i;d<m.length;d++)l()};for(o.s();!(n=o.n()).done;)i()}catch(e){o.e(e)}finally{o.f()}}}]),e}(),Et={install:function(e,t){Ot=new jt(t),e.provide("aos",Ot),S()&&(null!=t&&t.router?t.router.afterEach(B(G.mark((function e(){return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ot.runAnimations();case 1:case"end":return e.stop()}}),e)})))):Ot.runAnimations())}};function Pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var It={darkClass:"dark",storageThemeKey:"theme",storageThemeValueDark:"dark",storageThemeValueLight:"light"},St=i(),Tt=function(e){var t=e.storageThemeKey,n=e.storageThemeValueDark,r=e.darkClass,o=e.storageThemeValueLight;localStorage[t]===n||!(t in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?(document.documentElement.classList.add(r),localStorage[t]=n,St.value=n):(document.documentElement.classList.remove(r),localStorage[t]=o,St.value=o)},At=function(e){var t=e.storageThemeKey,n=e.storageThemeValueDark,r=e.darkClass,o=e.storageThemeValueLight;localStorage[t]===n?(document.documentElement.classList.remove(r),localStorage[t]=o,St.value=o):(document.documentElement.classList.add(r),localStorage[t]=n,St.value=n)},Ct=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:It,t=Lt(Lt({},It),e),n=a((function(){return St.value===t.storageThemeValueDark})),r=a((function(){return St.value===t.storageThemeValueLight}));return{autoSetTheme:function(){return Tt(t)},toggleTheme:function(){return At(t)},hasDarkTheme:n,hasLightTheme:r,theme:St}},Dt=function(e){var t=e.componentName,n=e.instance,r=e.providedId;return{instanceId:a((function(){return null!=r?r:"".concat(t,"-").concat(null==n?void 0:n.uid)}))}},_t=function(){return{aos:O("aos")}},Mt=function(){return{wait:O("wait")}},Ht=function(){return{toast:O("toast")}},Nt=i(),Ft=function(e){var t=e.callback,n=e.options,r=new _(t,n);return Nt.value=r,{idle:Nt}},qt=i(),Bt=function(e){var t=e.callback,n=e.options,r=new N(t,n);return qt.value=r,{visibility:qt}};export{jt as AosHandler,_ as IdleTimeout,ot as ToasterHandler,N as UserVisibility,vt as WaitHandler,Ot as aosInstance,Ce as capitalize,He as currency,Fe as date,x as debounce,O as injectStrict,Et as installAos,Ae as installDirectives,Ge as installFilters,ut as installToaster,yt as installWait,j as mount,Ve as number,F as sleep,St as theme,st as toastInstance,z as truthyFilter,_t as useAos,Ft as useIdleTimeout,Dt as useInstanceUniqId,Ct as useThemeHandler,Ht as useToast,Bt as useUserVisibility,Mt as useWait,W as vClickOutside,Q as vClickOutsideInstall,ne as vClosable,re as vClosableInstall,ze as vLazyImg,Le as vLazyImgInstall,fe as vZoomImg,he as vZoomImgInstall,pt as waitInstance};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "maz-ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
|
|
5
5
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
6
6
|
"main": "modules/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"lint:style": "stylelint --custom-syntax postcss-html --fix \"./**/*.{vue,css,scss,postcss,pcss}\"",
|
|
24
24
|
"clean": "rimraf dist",
|
|
25
25
|
"build": "npm run clean && mkdir -p dist && npm run build:js && npm run build:css && cp package.json dist/package.json && npm run copy:tailwind",
|
|
26
|
-
"build:watch": "onchange --await-write-finish 2000 'package/**/*' -e 'package/components/index.ts' --exclude-path .gitignore -- npm run build",
|
|
26
|
+
"build:watch": "onchange --await-write-finish 2000 'package/**/*' -e 'package/components/index.ts' --exclude-path .gitignore -- npm run build:modules",
|
|
27
27
|
"build:lib": "cross-env NODE_ENV=production node --max-old-space-size=8192 node_modules/rollup/dist/bin/rollup -c build/rollup.config.js",
|
|
28
28
|
"build:tailwind": "cross-env NODE_ENV=production tailwindcss -i package/tailwindcss/css/tailwind.css -o dist/css/main.css --config tailwind.config.js --postcss --minify",
|
|
29
29
|
"copy:tailwind": "cp -R package/tailwindcss dist/tailwindcss",
|
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
"@rollup/plugin-commonjs": "^22.0.2",
|
|
85
85
|
"@rollup/plugin-node-resolve": "^14.1.0",
|
|
86
86
|
"@rollup/plugin-replace": "^4.0.0",
|
|
87
|
+
"@rollup/plugin-terser": "^0.2.0",
|
|
87
88
|
"@rollup/plugin-url": "^7.0.0",
|
|
88
89
|
"@types/dropzone": "^5.7.4",
|
|
89
90
|
"@types/google.maps": "^3.50.5",
|
|
@@ -101,6 +102,7 @@
|
|
|
101
102
|
"autoprefixer": "^10.4.11",
|
|
102
103
|
"babel-loader": "^9.1.0",
|
|
103
104
|
"c8": "^7.12.0",
|
|
105
|
+
"chalk": "^4.1.2",
|
|
104
106
|
"chart.js": "^3.9.1",
|
|
105
107
|
"cross-env": "^7.0.3",
|
|
106
108
|
"dayjs": "^1.11.6",
|
|
@@ -131,9 +133,9 @@
|
|
|
131
133
|
"rollup-plugin-dts": "^4.2.2",
|
|
132
134
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
133
135
|
"rollup-plugin-postcss": "^4.0.2",
|
|
134
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
135
136
|
"rollup-plugin-typescript2": "^0.34.1",
|
|
136
137
|
"rollup-plugin-vue": "^6.0.0",
|
|
138
|
+
"sass": "^1.56.2",
|
|
137
139
|
"semver": "^7.3.8",
|
|
138
140
|
"stylelint": "^14.15.0",
|
|
139
141
|
"stylelint-config-prettier": "^9.0.4",
|
|
@@ -151,9 +153,7 @@
|
|
|
151
153
|
"vue": "^3.2.45",
|
|
152
154
|
"vue-loader": "^17.0.1",
|
|
153
155
|
"vue-router": "^4.1.6",
|
|
154
|
-
"vuedraggable": "^2.24.3"
|
|
155
|
-
"chalk": "^4.1.2",
|
|
156
|
-
"sass": "^1.56.1"
|
|
156
|
+
"vuedraggable": "^2.24.3"
|
|
157
157
|
},
|
|
158
158
|
"engines": {
|
|
159
159
|
"node": ">= 6.0.0",
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
dark: {
|
|
3
|
-
type: BooleanConstructor;
|
|
4
|
-
default: boolean;
|
|
5
|
-
};
|
|
6
|
-
hex: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
default: undefined;
|
|
9
|
-
};
|
|
10
|
-
size: {
|
|
11
|
-
type: NumberConstructor;
|
|
12
|
-
default: number;
|
|
13
|
-
};
|
|
14
|
-
orientation: {
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
default: string;
|
|
17
|
-
};
|
|
18
|
-
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
19
|
-
[key: string]: any;
|
|
20
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
-
dark: {
|
|
22
|
-
type: BooleanConstructor;
|
|
23
|
-
default: boolean;
|
|
24
|
-
};
|
|
25
|
-
hex: {
|
|
26
|
-
type: StringConstructor;
|
|
27
|
-
default: undefined;
|
|
28
|
-
};
|
|
29
|
-
size: {
|
|
30
|
-
type: NumberConstructor;
|
|
31
|
-
default: number;
|
|
32
|
-
};
|
|
33
|
-
orientation: {
|
|
34
|
-
type: StringConstructor;
|
|
35
|
-
default: string;
|
|
36
|
-
};
|
|
37
|
-
}>>, {
|
|
38
|
-
dark: boolean;
|
|
39
|
-
hex: string;
|
|
40
|
-
size: number;
|
|
41
|
-
orientation: string;
|
|
42
|
-
}>;
|
|
43
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as t,openBlock as e,createElementBlock as n,normalizeClass as a,createElementVNode as r,pushScopeId as o,popScopeId as i}from"vue";var d=["width","height"],l=["fill"],s=function(t){return o("data-v-75728505"),t=t(),i(),t}((function(){return r("path",{fill:"none",d:"M0 0h24v24H0V0z"},null,-1)})),c=t({__name:"MazArrowIcon",props:{dark:{type:Boolean,default:!1},hex:{type:String,default:void 0},size:{type:Number,default:24},orientation:{type:String,default:"bottom"}},setup:function(t){return function(o,i){return e(),n("svg",{mlns:"http://www.w3.org/2000/svg",width:t.size,height:t.size,viewBox:"0 0 24 24",class:a(["maz-arrow-icon",[{"is-white":t.dark},t.orientation]])},[r("path",{fill:t.hex,class:a([[t.hex],"arrow"]),d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"},null,10,l),s],10,d)}}});!function(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&a.firstChild?a.insertBefore(r,a.firstChild):a.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}}("\n.maz-arrow-icon[data-v-75728505] {\n -webkit-transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);\n transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);\n}\n.maz-arrow-icon path.arrow[data-v-75728505] {\n fill: currentColor;\n}\n.maz-arrow-icon.is-white path.arrow[data-v-75728505] {\n fill: white;\n}\n.maz-arrow-icon.top[data-v-75728505] {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n.maz-arrow-icon.right[data-v-75728505] {\n -webkit-transform: rotate(-90deg);\n transform: rotate(-90deg);\n}\n.maz-arrow-icon.left[data-v-75728505] {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n"),c.__scopeId="data-v-75728505";export{c as default};
|