julienmonnerie/kirby/panel/dist/js/vendor.min.js

17 lines
262 KiB
JavaScript
Raw Normal View History

function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t,n,r,o,i={},s={},l={},a={},c={};function h(){if(t)return c;function e(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 n(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return(o="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)}t=1,Object.defineProperty(c,"__esModule",{value:!0}),c._setTarget=void 0,c.popParams=a,c.pushParams=l,c.target=void 0,c.withParams=function(e,t){if("object"===o(e)&&void 0!==t)return n=e,r=t,u((function(e){return function(){e(n);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return r.apply(this,o)}}));var n,r;return u(e)};var i=[],s=null;c.target=s;function l(){null!==s&&i.push(s),c.target=s={}}function a(){var e=s,t=c.target=s=i.pop()||null;return t&&(Array.isArray(t.$sub)||(t.$sub=[]),t.$sub.push(e)),e}function h(e){if("object"!==o(e)||Array.isArray(e))throw new Error("params must be an object");c.target=s=n(n({},s),e)}function u(e){var t=e(h);return function(){l();try{for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.apply(this,n)}finally{a()}}}return c._setTarget=function(e){c.target=s=e},c}function u(){if(n)return a;n=1,Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var e=h().withParams;return a.default=e,a}function d(){return r||(r=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.req=e.regex=e.ref=e.len=void 0,Object.defineProperty(e,"withParams",{enumerable:!0,get:function(){return n.default}});var t,n=(t=u())&&t.__esModule?t:{default:t};function r(e){return(r="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)}var o=function(e){if(Array.isArray(e))return!!e.length;if(null==e)return!1;if(!1===e)return!0;if(e instanceof Date)return!isNaN(e.getTime());if("object"===r(e)){for(var t in e)return!0;return!1}return!!String(e).length};e.req=o;e.len=function(e){return Array.isArray(e)?e.length:"object"===r(e)?Object.keys(e).length:String(e).length};e.ref=function(e,t,n){return"function"==typeof e?e.call(t,n):n[e]};e.regex=function(e,t){return(0,n.default)({type:e},(function(e){return!o(e)||t.test(e)}))}}(l)),l}function f(){if(o)return s;o=1,Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var e=(0,d().regex)("alpha",/^[a-zA-Z]*$/);return s.default=e,s}var p,m={};function g(){if(p)return m;p=1,Object.defineProperty(m,"__esModule",{value:!0}),m.default=void 0;var e=(0,d().regex)("alphaNum",/^[a-zA-Z0-9]*$/);return m.default=e,m}var y,v={};function w(){if(y)return v;y=1,Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var e=(0,d().regex)("numeric",/^[0-9]*$/);return v.default=e,v}var b,x={};function S(){if(b)return x;b=1,Object.defineProperty(x,"__esModule",{value:!0}),x.default=void 0;var e=d();return x.default=function(t,n){return(0,e.withParams)({type:"between",min:t,max:n},(function(r){return!(0,e.req)(r)||(!/\s/.test(r)||r instanceof Date)&&+t<=+r&&+n>=+r}))},x}var k,M={};function O(){if(k)return M;k=1,Object.defineProperty(M,"__esModule",{value:!0}),M.default=void 0;var e=(0,d().regex)("email",/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0
2025-04-21 18:57:21 +02:00
/*!
* portal-vue © Thorsten Lünborg, 2019
*
* Version: 2.1.7
*
* LICENCE: MIT
*
* https://github.com/linusborg/portal-vue
*
*/function Ol(e){return(Ol="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)}function Cl(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Nl="undefined"!=typeof window;function Dl(e,t){return t.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}var Tl={},Al={},$l={},El=Vue.extend({data:function(){return{transports:Tl,targets:Al,sources:$l,trackInstances:Nl}},methods:{open:function(e){if(Nl){var t=e.to,n=e.from,r=e.passengers,o=e.order,i=void 0===o?1/0:o;if(t&&n&&r){var s,l={to:t,from:n,passengers:(s=r,Array.isArray(s)||"object"===Ol(s)?Object.freeze(s):s),order:i};-1===Object.keys(this.transports).indexOf(t)&&Vue.set(this.transports,t,[]);var a,c=this.$_getTransportIndex(l),h=this.transports[t].slice(0);-1===c?h.push(l):h[c]=l,this.transports[t]=(a=function(e,t){return e.order-t.order},h.map((function(e,t){return[t,e]})).sort((function(e,t){return a(e[1],t[1])||e[0]-t[0]})).map((function(e){return e[1]})))}}},close:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.to,r=e.from;if(n&&(r||!1!==t)&&this.transports[n])if(t)this.transports[n]=[];else{var o=this.$_getTransportIndex(e);if(o>=0){var i=this.transports[n].slice(0);i.splice(o,1),this.transports[n]=i}}},registerTarget:function(e,t,n){Nl&&(this.trackInstances&&!n&&this.targets[e]&&console.warn("[portal-vue]: Target ".concat(e," already exists")),this.$set(this.targets,e,Object.freeze([t])))},unregisterTarget:function(e){this.$delete(this.targets,e)},registerSource:function(e,t,n){Nl&&(this.trackInstances&&!n&&this.sources[e]&&console.warn("[portal-vue]: source ".concat(e," already exists")),this.$set(this.sources,e,Object.freeze([t])))},unregisterSource:function(e){this.$delete(this.sources,e)},hasTarget:function(e){return!(!this.targets[e]||!this.targets[e][0])},hasSource:function(e){return!(!this.sources[e]||!this.sources[e][0])},hasContentFor:function(e){return!!this.transports[e]&&!!this.transports[e].length},$_getTransportIndex:function(e){var t=e.to,n=e.from;for(var r in this.transports[t])if(this.transports[t][r].from===n)return+r;return-1}}}),Pl=new El(Tl),Rl=1,Il=Vue.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(Rl++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var e=this;this.$nextTick((function(){Pl.registerSource(e.name,e)}))},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){Pl.unregisterSource(this.name),this.clear()},watch:{to:function(e,t){t&&t!==e&&this.clear(t),this.sendUpdate()}},methods:{clear:function(e){var t={from:this.name,to:e||this.to};Pl.close(t)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(e){return"function"==typeof e?e(this.slotProps):e},sendUpdate:function(){var e=this.normalizeSlots();if(e){var t={from:this.name,to:this.to,passengers:Cl(e),order:this.order};Pl.open(t)}else this.clear()}},render:function(e){var t=this.$slots.default||this.$scopedSlots.default||[],n=this.tag;return t&&this.disabled?t.length<=1&&this.slim?this.normalizeOwnChildren(t)[0]:e(n,[this.normalizeOwnChildren(t)]):this.slim?e():e(n,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),zl=Vue.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProp
2025-04-21 18:57:21 +02:00
/*!
* vuex v3.6.2
* (c) 2021 Evan You
* @license MIT
*/var na=("undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function ra(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var n,r=(n=function(t){return t.original===e},t.filter(n)[0]);if(r)return r.copy;var o=Array.isArray(e)?[]:{};return t.push({original:e,copy:o}),Object.keys(e).forEach((function(n){o[n]=ra(e[n],t)})),o}function oa(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function ia(e){return null!==e&&"object"==typeof e}var sa=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},la={namespaced:{configurable:!0}};la.namespaced.get=function(){return!!this._rawModule.namespaced},sa.prototype.addChild=function(e,t){this._children[e]=t},sa.prototype.removeChild=function(e){delete this._children[e]},sa.prototype.getChild=function(e){return this._children[e]},sa.prototype.hasChild=function(e){return e in this._children},sa.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},sa.prototype.forEachChild=function(e){oa(this._children,e)},sa.prototype.forEachGetter=function(e){this._rawModule.getters&&oa(this._rawModule.getters,e)},sa.prototype.forEachAction=function(e){this._rawModule.actions&&oa(this._rawModule.actions,e)},sa.prototype.forEachMutation=function(e){this._rawModule.mutations&&oa(this._rawModule.mutations,e)},Object.defineProperties(sa.prototype,la);var aa,ca=function(e){this.register([],e,!1)};function ha(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return;ha(e.concat(r),t.getChild(r),n.modules[r])}}ca.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},ca.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},ca.prototype.update=function(e){ha([],this.root,e)},ca.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var o=new sa(t,n);0===e.length?this.root=o:this.get(e.slice(0,-1)).addChild(e[e.length-1],o);t.modules&&oa(t.modules,(function(t,o){r.register(e.concat(o),t,n)}))},ca.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},ca.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var ua=function(e){var t=this;void 0===e&&(e={}),!aa&&"undefined"!=typeof window&&window.Vue&&wa(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ca(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new aa,this._makeLocalGettersCache=Object.create(null);var o=this,i=this.dispatch,s=this.commit;this.dispatch=function(e,t){return i.call(o,e,t)},this.commit=function(e,t,n){return s.call(o,e,t,n)},this.strict=r;var l=this._modules.root.state;ga(this,l,[],this._modules.root),ma(this,l),n.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:aa.config.devtools)&&function(e){na&&(e._devtoolHook=na,na.emit("vuex:init",e),na.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){na.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){na.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},da={state:{configurable:!0}};function fa(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function pa(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;ga(e,n,[],e._modules.root,!0),ma(e,n,t)}function ma(e,t,n){var r=e._vm;e.getters={},e._makeLocalGette