Demo project

This commit is contained in:
Lasse Hassing committed 2021-06-06 15:15:08 +02:00
1 parent 5e4f3540e8
commit a68267d0f0
146 files changed
+41587

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
/*! For license information please see app.js.LICENSE.txt */
(()=>{var e,t={443:function(e){e.exports=function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(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(n){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?t(Object(i),!0).forEach((function(t){e(n,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))}))}return n}function r(){return new Promise((e=>{"loading"==document.readyState?document.addEventListener("DOMContentLoaded",e):e()}))}function i(e){return Array.from(new Set(e))}function o(){return navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")}function u(e,t){return e==t}function a(e,t){"template"!==e.tagName.toLowerCase()?console.warn(`Alpine: [${t}] directive should only be added to <template> tags. See https://github.com/alpinejs/alpine#${t}`):1!==e.content.childElementCount&&console.warn(`Alpine: <template> tag with [${t}] encountered with an unexpected number of root elements. Make sure <template> has a single root element. `)}function s(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function c(e){return e.toLowerCase().replace(/-(\w)/g,((e,t)=>t.toUpperCase()))}function l(e,t){if(!1===t(e))return;let n=e.firstElementChild;for(;n;)l(n,t),n=n.nextElementSibling}function f(e,t){var n;return function(){var r=this,i=arguments,o=function(){n=null,e.apply(r,i)};clearTimeout(n),n=setTimeout(o,t)}}const p=(e,t,n)=>{if(console.warn(`Alpine Error: "${n}"\n\nExpression: "${t}"\nElement:`,e),!o())throw Object.assign(n,{el:e,expression:t}),n};function h(e,{el:t,expression:n}){try{const r=e();return r instanceof Promise?r.catch((e=>p(t,n,e))):r}catch(e){p(t,n,e)}}function d(e,t,n,r={}){return h((()=>"function"==typeof t?t.call(n):new Function(["$data",...Object.keys(r)],`var __alpine_result; with($data) { __alpine_result = ${t} }; return __alpine_result`)(n,...Object.values(r))),{el:e,expression:t})}function v(e,t,n,r={}){return h((()=>{if("function"==typeof t)return Promise.resolve(t.call(n,r.$event));let e=Function;if(e=Object.getPrototypeOf((async function(){})).constructor,Object.keys(n).includes(t)){let e=new Function(["dataContext",...Object.keys(r)],`with(dataContext) { return ${t} }`)(n,...Object.values(r));return"function"==typeof e?Promise.resolve(e.call(n,r.$event)):Promise.resolve()}return Promise.resolve(new e(["dataContext",...Object.keys(r)],`with(dataContext) { ${t} }`)(n,...Object.values(r)))}),{el:e,expression:t})}const g=/^x-(on|bind|data|text|html|model|if|for|show|cloak|transition|ref|spread)\b/;function y(e){const t=w(e.name);return g.test(t)}function m(e,t,n){let r=Array.from(e.attributes).filter(y).map(x),i=r.filter((e=>"spread"===e.type))[0];if(i){let n=d(e,i.expression,t.$data);r=r.concat(Object.entries(n).map((([e,t])=>x({name:e,value:t}))))}return n?r.filter((e=>e.type===n)):b(r)}function b(e){let t=["bind","model","show","catch-all"];return e.sort(((e,n)=>{let r=-1===t.indexOf(e.type)?"catch-all":e.type,i=-1===t.indexOf(n.type)?"catch-all":n.type;return t.indexOf(r)-t.indexOf(i)}))}function x({name:e,value:t}){const n=w(e),r=n.match(g),i=n.match(/:([a-zA-Z0-9\-:]+)/),o=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[];return{type:r?r[1]:null,value:i?i[1]:null,modifiers:o.map((e=>e.replace(".",""))),expression:t}}function _(e){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(e)}function w(e){return e.startsWith("@")?e.replace("@","x-on:"):e.startsWith(":")?e.replace(":","x-bind:"):e}function E(e,t=Boolean){return e.split(" ").filter(t)}const T="in",C="out",A="cancelled";function k(e,t,n,r,i=!1){if(i)return t();if(e.__x_transition&&e.__x_transition.type===T)return;const o=m(e,r,"transition"),u=m(e,r,"show")[0];if(u&&u.modifiers.includes("transition")){let r=u.modifiers;if(r.includes("out")&&!r.includes("in"))return t();const i=r.includes("in")&&r.includes("out");r=i?r.filter(((e,t)=>t<r.indexOf("out"))):r,j(e,r,t,n)}else o.some((e=>["enter","enter-start","enter-end"].includes(e.value)))?R(e,r,o,t,n):t()}function S(e,t,n,r,i=!1){if(i)return t();if(e.__x_transition&&e.__x_transition.type===C)return;const o=m(e,r,"transition"),u=m(e,r,"show")[0];if(u&&u.modifiers.includes("transition")){let r=u.modifiers;if(r.includes("in")&&!r.includes("out"))return t();const i=r.includes("in")&&r.includes("out");r=i?r.filter(((e,t)=>t>r.indexOf("out"))):r,O(e,r,i,t,n)}elseLine truncated