UNPKG

@toolsie/components-top-menu

Version:

## Project setup ``` npm install ```

2 lines 25.7 kB
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["toolsie"]=e(require("vue")):t["toolsie"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(){var e={7111:function(t,e,n){var r=n(6733),o=n(9821),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a function")}},1176:function(t,e,n){var r=n(5052),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not an object")}},9540:function(t,e,n){var r=n(905),o=n(3231),i=n(9646),u=function(t){return function(e,n,u){var c,a=r(e),f=i(a),s=o(u,f);if(t&&n!=n){while(f>s)if(c=a[s++],c!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},6554:function(t,e,n){"use strict";var r=n(7400),o=n(3718),i=TypeError,u=Object.getOwnPropertyDescriptor,c=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=c?function(t,e){if(o(t)&&!u(t,"length").writable)throw i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},7079:function(t,e,n){var r=n(5968),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},7081:function(t,e,n){var r=n(8270),o=n(4826),i=n(7933),u=n(1787);t.exports=function(t,e,n){for(var c=o(e),a=u.f,f=i.f,s=0;s<c.length;s++){var l=c[s];r(t,l)||n&&r(n,l)||a(t,l,f(e,l))}}},5762:function(t,e,n){var r=n(7400),o=n(1787),i=n(5358);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},5358:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4768:function(t,e,n){var r=n(6733),o=n(1787),i=n(6039),u=n(8400);t.exports=function(t,e,n,c){c||(c={});var a=c.enumerable,f=void 0!==c.name?c.name:e;if(r(n)&&i(n,f,c),c.global)a?t[e]=n:u(e,n);else{try{c.unsafe?t[e]&&(a=!0):delete t[e]}catch(s){}a?t[e]=n:o.f(t,e,{value:n,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return t}},8400:function(t,e,n){var r=n(9859),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},7400:function(t,e,n){var r=n(4229);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},3777:function(t){var e="object"==typeof document&&document.all,n="undefined"==typeof e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},2635:function(t,e,n){var r=n(9859),o=n(5052),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},3064:function(t){var e=TypeError,n=9007199254740991;t.exports=function(t){if(t>n)throw e("Maximum allowed index exceeded");return t}},598:function(t,e,n){var r=n(1333);t.exports=r("navigator","userAgent")||""},6358:function(t,e,n){var r,o,i=n(9859),u=n(598),c=i.process,a=i.Deno,f=c&&c.versions||a&&a.version,s=f&&f.v8;s&&(r=s.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&u&&(r=u.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),t.exports=o},3837:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3103:function(t,e,n){var r=n(9859),o=n(7933).f,i=n(5762),u=n(4768),c=n(8400),a=n(7081),f=n(6541);t.exports=function(t,e){var n,s,l,p,d,v,y=t.target,g=t.global,h=t.stat;if(s=g?r:h?r[y]||c(y,{}):(r[y]||{}).prototype,s)for(l in e){if(d=e[l],t.dontCallGetSet?(v=o(s,l),p=v&&v.value):p=s[l],n=f(g?l:y+(h?".":"#")+l,t.forced),!n&&void 0!==p){if(typeof d==typeof p)continue;a(d,p)}(t.sham||p&&p.sham)&&i(d,"sham",!0),u(s,l,d,t)}}},4229:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},7188:function(t,e,n){var r=n(4229);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},266:function(t,e,n){var r=n(7188),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},1805:function(t,e,n){var r=n(7400),o=n(8270),i=Function.prototype,u=r&&Object.getOwnPropertyDescriptor,c=o(i,"name"),a=c&&"something"===function(){}.name,f=c&&(!r||r&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:a,CONFIGURABLE:f}},5968:function(t,e,n){var r=n(7188),o=Function.prototype,i=o.bind,u=o.call,c=r&&i.bind(u,u);t.exports=r?function(t){return t&&c(t)}:function(t){return t&&function(){return u.apply(t,arguments)}}},1333:function(t,e,n){var r=n(9859),o=n(6733),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},5300:function(t,e,n){var r=n(7111),o=n(9650);t.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n)}},9859:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},8270:function(t,e,n){var r=n(5968),o=n(2991),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},5977:function(t){t.exports={}},4394:function(t,e,n){var r=n(7400),o=n(4229),i=n(2635);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},9337:function(t,e,n){var r=n(5968),o=n(4229),i=n(7079),u=Object,c=r("".split);t.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?c(t,""):u(t)}:u},8511:function(t,e,n){var r=n(5968),o=n(6733),i=n(5353),u=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},6407:function(t,e,n){var r,o,i,u=n(1180),c=n(9859),a=n(5968),f=n(5052),s=n(5762),l=n(8270),p=n(5353),d=n(4399),v=n(5977),y="Object already initialized",g=c.TypeError,h=c.WeakMap,m=function(t){return i(t)?o(t):r(t,{})},b=function(t){return function(e){var n;if(!f(e)||(n=o(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return n}};if(u||p.state){var x=p.state||(p.state=new h),w=a(x.get),S=a(x.has),j=a(x.set);r=function(t,e){if(S(x,t))throw g(y);return e.facade=t,j(x,t,e),e},o=function(t){return w(x,t)||{}},i=function(t){return S(x,t)}}else{var O=d("state");v[O]=!0,r=function(t,e){if(l(t,O))throw g(y);return e.facade=t,s(t,O,e),e},o=function(t){return l(t,O)?t[O]:{}},i=function(t){return l(t,O)}}t.exports={set:r,get:o,has:i,enforce:m,getterFor:b}},3718:function(t,e,n){var r=n(7079);t.exports=Array.isArray||function(t){return"Array"==r(t)}},6733:function(t,e,n){var r=n(3777),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},6541:function(t,e,n){var r=n(4229),o=n(6733),i=/#|\.prototype\./,u=function(t,e){var n=a[c(t)];return n==s||n!=f&&(o(e)?r(e):!!e)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=u.data={},f=u.NATIVE="N",s=u.POLYFILL="P";t.exports=u},9650:function(t){t.exports=function(t){return null===t||void 0===t}},5052:function(t,e,n){var r=n(6733),o=n(3777),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===i}:function(t){return"object"==typeof t?null!==t:r(t)}},4231:function(t){t.exports=!1},9395:function(t,e,n){var r=n(1333),o=n(6733),i=n(1321),u=n(6969),c=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,c(t))}},9646:function(t,e,n){var r=n(4237);t.exports=function(t){return r(t.length)}},6039:function(t,e,n){var r=n(4229),o=n(6733),i=n(8270),u=n(7400),c=n(1805).CONFIGURABLE,a=n(8511),f=n(6407),s=f.enforce,l=f.get,p=Object.defineProperty,d=u&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),v=String(String).split("String"),y=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!i(t,"name")||c&&t.name!==e)&&(u?p(t,"name",{value:e,configurable:!0}):t.name=e),d&&n&&i(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?u&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var r=s(t);return i(r,"source")||(r.source=v.join("string"==typeof e?e:"")),t};Function.prototype.toString=y((function(){return o(this)&&l(this).source||a(this)}),"toString")},917:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},1787:function(t,e,n){var r=n(7400),o=n(4394),i=n(7137),u=n(1176),c=n(9310),a=TypeError,f=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l="enumerable",p="configurable",d="writable";e.f=r?i?function(t,e,n){if(u(t),e=c(e),u(n),"function"===typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=s(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:l in n?n[l]:r[l],writable:!1})}return f(t,e,n)}:f:function(t,e,n){if(u(t),e=c(e),u(n),o)try{return f(t,e,n)}catch(r){}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},7933:function(t,e,n){var r=n(7400),o=n(266),i=n(9195),u=n(5358),c=n(905),a=n(9310),f=n(8270),s=n(4394),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=c(t),e=a(e),s)try{return l(t,e)}catch(n){}if(f(t,e))return u(!o(i.f,t,e),t[e])}},8151:function(t,e,n){var r=n(140),o=n(3837),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},894:function(t,e){e.f=Object.getOwnPropertySymbols},1321:function(t,e,n){var r=n(5968);t.exports=r({}.isPrototypeOf)},140:function(t,e,n){var r=n(5968),o=n(8270),i=n(905),u=n(9540).indexOf,c=n(5977),a=r([].push);t.exports=function(t,e){var n,r=i(t),f=0,s=[];for(n in r)!o(c,n)&&o(r,n)&&a(s,n);while(e.length>f)o(r,n=e[f++])&&(~u(s,n)||a(s,n));return s}},9195:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},2914:function(t,e,n){var r=n(266),o=n(6733),i=n(5052),u=TypeError;t.exports=function(t,e){var n,c;if("string"===e&&o(n=t.toString)&&!i(c=r(n,t)))return c;if(o(n=t.valueOf)&&!i(c=r(n,t)))return c;if("string"!==e&&o(n=t.toString)&&!i(c=r(n,t)))return c;throw u("Can't convert object to primitive value")}},4826:function(t,e,n){var r=n(1333),o=n(5968),i=n(8151),u=n(894),c=n(1176),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(c(t)),n=u.f;return n?a(e,n(t)):e}},8885:function(t,e,n){var r=n(9650),o=TypeError;t.exports=function(t){if(r(t))throw o("Can't call method on "+t);return t}},4399:function(t,e,n){var r=n(3036),o=n(1441),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5353:function(t,e,n){var r=n(9859),o=n(8400),i="__core-js_shared__",u=r[i]||o(i,{});t.exports=u},3036:function(t,e,n){var r=n(4231),o=n(5353);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.25.2",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.2/LICENSE",source:"https://github.com/zloirock/core-js"})},4860:function(t,e,n){var r=n(6358),o=n(4229);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},3231:function(t,e,n){var r=n(3329),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},905:function(t,e,n){var r=n(9337),o=n(8885);t.exports=function(t){return r(o(t))}},3329:function(t,e,n){var r=n(917);t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},4237:function(t,e,n){var r=n(3329),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},2991:function(t,e,n){var r=n(8885),o=Object;t.exports=function(t){return o(r(t))}},2066:function(t,e,n){var r=n(266),o=n(5052),i=n(9395),u=n(5300),c=n(2914),a=n(95),f=TypeError,s=a("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,a=u(t,s);if(a){if(void 0===e&&(e="default"),n=r(a,t,e),!o(n)||i(n))return n;throw f("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},9310:function(t,e,n){var r=n(2066),o=n(9395);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},9821:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(n){return"Object"}}},1441:function(t,e,n){var r=n(5968),o=0,i=Math.random(),u=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},6969:function(t,e,n){var r=n(4860);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7137:function(t,e,n){var r=n(7400),o=n(4229);t.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1180:function(t,e,n){var r=n(9859),o=n(6733),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},95:function(t,e,n){var r=n(9859),o=n(3036),i=n(8270),u=n(1441),c=n(4860),a=n(6969),f=o("wks"),s=r.Symbol,l=s&&s["for"],p=a?s:s&&s.withoutSetter||u;t.exports=function(t){if(!i(f,t)||!c&&"string"!=typeof f[t]){var e="Symbol."+t;c&&i(s,t)?f[t]=s[t]:f[t]=a&&l?l(e):p(e)}return f[t]}},6728:function(t,e,n){"use strict";var r=n(3103),o=n(2991),i=n(9646),u=n(6554),c=n(3064),a=n(4229),f=a((function(){return 4294967297!==[].push.call({length:4294967296},1)})),s=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:f||s},{push:function(t){var e=o(this),n=i(e),r=arguments.length;c(n+r);for(var a=0;a<r;a++)e[n]=arguments[a],n++;return u(e,n),n}})},5511:function(t,e,n){"use strict";n.r(e);var r=n(9601),o=n.n(r),i=n(2609),u=n.n(i),c=u()(o());c.push([t.id,'.toolsie-top-menu-container.fixed{position:fixed;top:0;z-index:200}.toolsie-top-menu-container:after{content:"";display:table;clear:both}.toolsie-top-menu-container .toolsie-top-menu-element{text-decoration:none;float:left;cursor:pointer}.toolsie-top-menu-container.responsive.inactive .toolsie-top-menu-element.loose{display:none}.toolsie-top-menu-toggle{text-decoration:none;position:absolute;z-index:10;margin:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.toolsie-top-menu-toggle.left{left:0;padding-left:10px}.toolsie-top-menu-toggle.right{right:0;padding-right:10px}',""]),e["default"]=c},2609:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r="undefined"!==typeof e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,o,i){"string"===typeof t&&(t=[[null,t,void 0]]);var u={};if(r)for(var c=0;c<this.length;c++){var a=this[c][0];null!=a&&(u[a]=!0)}for(var f=0;f<t.length;f++){var s=[].concat(t[f]);r&&u[s[0]]||("undefined"!==typeof i&&("undefined"===typeof s[5]||(s[1]="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=i),n&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=n):s[2]=n),o&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=o):s[4]="".concat(o)),e.push(s))}},e}},9601:function(t){"use strict";t.exports=function(t){return t[1]}},8463:function(t,e,n){(function(e,r){t.exports=r(n(7203))})("undefined"!==typeof self&&self,(function(t){return function(){"use strict";var e={203:function(e){e.exports=t}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}!function(){r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}}(),function(){r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){r.p=""}();var o={};return function(){if(r.r(o),r.d(o,{useBreakpoint:function(){return i},useChildCount:function(){return u},useToggleDisplay:function(){return a},useVisibleElement:function(){return c}}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(r.p=e[1])}var n=r(203);function i(t,e=!0){const r=(0,n.ref)(!0),o=(0,n.isRef)(t)?t:(0,n.ref)(t);function i(){r.value=e?window.innerWidth<o.value:window.innerWidth>o.value}return(0,n.onMounted)((()=>{window.addEventListener("load",i),window.addEventListener("resize",i)})),(0,n.onUnmounted)((()=>{window.removeEventListener("load",i),window.removeEventListener("resize",i)})),r}function u(t,e=1){const r=(0,n.ref)((0,n.isRef)(e)?e.value:e);function o(){r.value=t.value?.childElementCount?t.value?.childElementCount:(0,n.isRef)(e)?e.value:e}return(0,n.onMounted)((()=>{o()})),(0,n.onUpdated)((()=>{o()})),r}function c(t){const e=(0,n.ref)(!1);function r(){if(!t||!window)return void(e.value=!1);const n=t.value?.getBoundingClientRect(),r=t.value.offsetHeight,o=t.value.offsetWidth,i=n.top>=-r&&n.left>=-o&&n.right<=(window.innerWidth||document.documentElement.clientWidth)+o&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)+r;e.value=i}return(0,n.onMounted)((()=>{window.addEventListener("load",r),window.addEventListener("scroll",r)})),(0,n.onUnmounted)((()=>{window.removeEventListener("load",r),window.removeEventListener("scroll",r)})),e}function a(t){function e(t,e,n="block"){return void 0==e?"none"==t?n:"none":0==e?"none":1==e?n:e}function r(r,o,i="block"){o?(0,n.isRef)(o)?null!=o.value&&(o.value.style.display=e(o.value.style.display,r,i)):o.style.display=e(o.style.display,r,i):t&&null!=t.value&&(t.value.style.display=e(t.value.style.display,r,i))}return r}}(),o}()}))},5670:function(t,e,n){(function(e,r){t.exports=r(n(7203))})("undefined"!==typeof self&&self,(function(t){return function(){"use strict";var e={203:function(e){e.exports=t}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}!function(){r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}}(),function(){r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){r.p=""}();var o={};return function(){if(r.r(o),r.d(o,{useDefaultValue:function(){return a},useModifiableProp:function(){return f},usePrioritizeFlags:function(){return l},usePrioritizeValues:function(){return s},useSetter:function(){return u},useToggle:function(){return i},useWatchProvidedValue:function(){return c}}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(r.p=e[1])}var n=r(203);function i(t=!1){const e=(0,n.isRef)(t)?t:(0,n.ref)(t),r=t=>{e.value=void 0==t?!e.value:t};return{value:e,toggle:r}}function u(t){const e=(0,n.isRef)(t)?t:(0,n.ref)(t),r=t=>{e.value=t};return{value:e,setter:r}}function c(t,e,r){(0,n.provide)(t,e),(0,n.watch)(e,r)}function a(t,e){const{value:r,setter:o}=u((0,n.ref)(t&&t.value?t.value:e));return t&&(0,n.watch)(t,(t=>o(t))),r}function f(t,e,r,o){const i=a(t,e);return(0,n.watch)(i,(t=>r(o,t))),i}function s(t,...e){const r=(0,n.computed)((()=>{let r=t;for(const t of e)if((0,n.isRef)(t)){if(t.value){r=t.value;break}}else if(void 0!=t){r=t;break}return r}));return r}function l(t,...e){const r=(0,n.computed)((()=>{let r=t;for(const t of e){const e=Object.keys(t)[0],o=t[e];if((0,n.isRef)(o)){if(o.value){r=e;break}}else if(o){r=e;break}}return r}));return r}}(),o}()}))},1857:function(t,e,n){var r=n(5511);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);var o=n(6839).Z;o("182b07f3",r,!0,{sourceMap:!1,shadowMode:!1})},6839:function(t,e,n){"use strict";n.d(e,{Z:function(){return v}});n(6728);function r(t,e){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],u=i[0],c=i[1],a=i[2],f=i[3],s={id:t+":"+o,css:c,media:a,sourceMap:f};r[u]?r[u].parts.push(s):n.push(r[u]={id:u,parts:[s]})}return n}var o="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},u=o&&(document.head||document.getElementsByTagName("head")[0]),c=null,a=0,f=!1,s=function(){},l=null,p="data-vue-ssr-id",d="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function v(t,e,n,o){f=n,l=o||{};var u=r(t,e);return y(u),function(e){for(var n=[],o=0;o<u.length;o++){var c=u[o],a=i[c.id];a.refs--,n.push(a)}e?(u=r(t,e),y(u)):u=[];for(o=0;o<n.length;o++){a=n[o];if(0===a.refs){for(var f=0;f<a.parts.length;f++)a.parts[f]();delete i[a.id]}}}}function y(t){for(var e=0;e<t.length;e++){var n=t[e],r=i[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(h(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var u=[];for(o=0;o<n.parts.length;o++)u.push(h(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:u}}}}function g(){var t=document.createElement("style");return t.type="text/css",u.appendChild(t),t}function h(t){var e,n,r=document.querySelector("style["+p+'~="'+t.id+'"]');if(r){if(f)return s;r.parentNode.removeChild(r)}if(d){var o=a++;r=c||(c=g()),e=b.bind(null,r,o,!1),n=b.bind(null,r,o,!0)}else r=g(),e=x.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var m=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function b(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=m(e,o);else{var i=document.createTextNode(o),u=t.childNodes;u[e]&&t.removeChild(u[e]),u.length?t.insertBefore(i,u[e]):t.appendChild(i)}}function x(t,e){var n=e.css,r=e.media,o=e.sourceMap;if(r&&t.setAttribute("media",r),l.ssrId&&t.setAttribute(p,e.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},7203:function(e){"use strict";e.exports=t}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={id:t,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.exports}!function(){r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,{a:e}),e}}(),function(){r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){r.p=""}();var o={};return function(){"use strict";if(r.r(o),r.d(o,{TopMenuContainer:function(){return d},TopMenuElement:function(){return h}}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(r.p=e[1])}var n=r(7203);const i=Symbol("deactivateMenu");var u=r(5670),c=r(8463);const a={active:{type:Boolean,default:!1},breakpoint:{type:Number,default:768},leftToggle:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1}},f={active:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1}},s=(0,n.defineComponent)({name:"TopMenuContainer",inheritAttrs:!0});var l=(0,n.defineComponent)({...s,props:a,emits:["update:active"],setup(t,{emit:e}){const r=t;let{active:o,breakpoint:f}=(0,n.toRefs)(r),s=(0,u.useModifiableProp)(o,!1,e,"update:active"),{toggle:l}=(0,u.useToggle)(s);const p=(0,n.ref)(!1);(0,n.provide)(i,p),(0,n.watch)(p,(()=>l(!1)));let d=(0,u.useDefaultValue)(f,a.breakpoint["default"]),v=(0,c.useBreakpoint)(d);return(t,e)=>((0,n.openBlock)(),(0,n.createElementBlock)("nav",{class:(0,n.normalizeClass)(["toolsie-top-menu-container",{active:(0,n.unref)(s),inactive:!(0,n.unref)(s),responsive:(0,n.unref)(v),fixed:t.fixed}])},[(0,n.renderSlot)(t.$slots,"default",{deactivateMenu:(0,n.unref)(l)}),(0,n.withDirectives)((0,n.createElementVNode)("p",{href:"javascript:void(0);",onClick:e[0]||(e[0]=t=>(0,n.unref)(l)()),class:(0,n.normalizeClass)(["toolsie-top-menu-toggle",{left:t.leftToggle,right:!t.leftToggle}])}," ☰ ",2),[[n.vShow,(0,n.unref)(v)]])],2))}});r(1857);const p=l;var d=p;const v=(0,n.defineComponent)({name:"TopMenuElement",inheritAttrs:!0});var y=(0,n.defineComponent)({...v,props:f,setup(t){const e=(0,n.inject)(i,(0,n.ref)(!1));let{toggle:r}=(0,u.useToggle)(e);return(t,e)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["toolsie-top-menu-element",{active:t.active,inactive:!t.active,fixed:t.fixed,loose:!t.fixed}]),onClick:e[0]||(e[0]=t=>(0,n.unref)(r)())},[(0,n.renderSlot)(t.$slots,"default")],2))}});const g=y;var h=g}(),o}()})); //# sourceMappingURL=toolsie.umd.min.js.map