diff --git a/Resources/Private/Assets/AlpineCheck.js b/Resources/Private/Assets/AlpineCheck.js index 61f4438..f75fd32 100644 --- a/Resources/Private/Assets/AlpineCheck.js +++ b/Resources/Private/Assets/AlpineCheck.js @@ -1,5 +1,5 @@ import { loadScript } from './Plugins/Helper'; if (!window.Alpine) { - loadScript('/_Resources/Static/Packages/Jonnitto.PrettyEmbedHelper/Scripts/Alpine.js?v=3.13.3'); + loadScript('/_Resources/Static/Packages/Jonnitto.PrettyEmbedHelper/Scripts/Alpine.js?v=3.13.5'); } diff --git a/Resources/Public/Plugin/Metadata.js b/Resources/Public/Plugin/Metadata.js index 594b0b0..5c06aa8 100644 --- a/Resources/Public/Plugin/Metadata.js +++ b/Resources/Public/Plugin/Metadata.js @@ -1 +1 @@ -(()=>{var W=Object.create;var m=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,Z=Object.prototype.hasOwnProperty;var X=(t,e)=>()=>(t&&(e=t(t=0)),e);var u=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var B=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of x(e))!Z.call(t,r)&&r!==o&&m(t,r,{get:()=>e[r],enumerable:!(i=O(e,r))||i.enumerable});return t};var g=(t,e,o)=>(o=t!=null?W(N(t)):{},B(e||!t||!t.__esModule?m(o,"default",{value:t,enumerable:!0}):o,t));function a(t){return(...e)=>{if(window["@Neos:HostPluginAPI"]&&window["@Neos:HostPluginAPI"][`@${t}`])return window["@Neos:HostPluginAPI"][`@${t}`](...e);throw new Error("You are trying to read from a consumer api that hasn't been initialized yet!")}}var p=X(()=>{});var y=u((st,h)=>{p();h.exports=a("vendor")().React});var A=u((at,I)=>{p();I.exports=a("NeosProjectPackages")().NeosUiDecorators});p();var f=a("manifest");var n=g(y(),1),w=g(A(),1);var d={infoView:"jonnitto-prettyembed-00i6NG-infoView",propertyLabel:"jonnitto-prettyembed-00i6NG-propertyLabel","--space-between":"--jonnitto-prettyembed-00i6NG-space-between",propertyValue:"jonnitto-prettyembed-00i6NG-propertyValue"};var v=(0,w.neos)(t=>({i18nRegistry:t.get("i18n")}));function V(t){let{value:e,options:o,i18nRegistry:i}=t,r=Object.entries(o).map(([s,c])=>{let l=e[s];if(!l)return null;let G=s==="duration"?Y(l):null;return{label:i.translate(c+".label"),value:i.translate(c+".value",l,[l,G])}}).filter(s=>!!s);return r.length?n.default.createElement("dl",{className:d.infoView},r.map(({label:s,value:c})=>n.default.createElement(n.Fragment,null,n.default.createElement("dt",{className:d.propertyLabel},s),n.default.createElement("dd",{className:d.propertyValue,dangerouslySetInnerHTML:{__html:c}})))):n.default.createElement("div",null,i.translate("Jonnitto.PrettyEmbedHelper:NodeTypes.Mixin.Metadata:noMetadataSet"))}var Y=t=>{let e=s=>`0${s}`.slice(-2),o=~~(t/3600),i=~~(t%3600/60),r=t%60;return o?`${o}:${e(i)}:${e(r)}`:i?`${i}:${e(r)}`:r},C=v(V);f("Jonnitto.PrettyEmbed:Metadata",{},t=>{t.get("inspector").get("editors").set("Jonnitto.PrettyEmbed/Metadata",{component:C})});})(); +(()=>{var W=Object.create;var m=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,Z=Object.prototype.hasOwnProperty;var X=(t,e)=>()=>(t&&(e=t(t=0)),e);var u=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var B=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of x(e))!Z.call(t,r)&&r!==o&&m(t,r,{get:()=>e[r],enumerable:!(i=O(e,r))||i.enumerable});return t};var g=(t,e,o)=>(o=t!=null?W(N(t)):{},B(e||!t||!t.__esModule?m(o,"default",{value:t,enumerable:!0}):o,t));function a(t){return(...e)=>{if(window["@Neos:HostPluginAPI"]&&window["@Neos:HostPluginAPI"][`@${t}`])return window["@Neos:HostPluginAPI"][`@${t}`](...e);throw new Error("You are trying to read from a consumer api that hasn't been initialized yet!")}}var p=X(()=>{});var y=u((st,h)=>{p();h.exports=a("vendor")().React});var A=u((at,I)=>{p();I.exports=a("NeosProjectPackages")().NeosUiDecorators});p();var f=a("manifest");var n=g(y(),1),w=g(A(),1);var d={propertyValue:"jonnitto-prettyembed-00i6NG-propertyValue","--space-between":"--jonnitto-prettyembed-00i6NG-space-between",infoView:"jonnitto-prettyembed-00i6NG-infoView",propertyLabel:"jonnitto-prettyembed-00i6NG-propertyLabel"};var v=(0,w.neos)(t=>({i18nRegistry:t.get("i18n")}));function V(t){let{value:e,options:o,i18nRegistry:i}=t,r=Object.entries(o).map(([s,c])=>{let l=e[s];if(!l)return null;let G=s==="duration"?Y(l):null;return{label:i.translate(c+".label"),value:i.translate(c+".value",l,[l,G])}}).filter(s=>!!s);return r.length?n.default.createElement("dl",{className:d.infoView},r.map(({label:s,value:c})=>n.default.createElement(n.Fragment,null,n.default.createElement("dt",{className:d.propertyLabel},s),n.default.createElement("dd",{className:d.propertyValue,dangerouslySetInnerHTML:{__html:c}})))):n.default.createElement("div",null,i.translate("Jonnitto.PrettyEmbedHelper:NodeTypes.Mixin.Metadata:noMetadataSet"))}var Y=t=>{let e=s=>`0${s}`.slice(-2),o=~~(t/3600),i=~~(t%3600/60),r=t%60;return o?`${o}:${e(i)}:${e(r)}`:i?`${i}:${e(r)}`:r},C=v(V);f("Jonnitto.PrettyEmbed:Metadata",{},t=>{t.get("inspector").get("editors").set("Jonnitto.PrettyEmbed/Metadata",{component:C})});})(); diff --git a/Resources/Public/Scripts/Alpine.js b/Resources/Public/Scripts/Alpine.js index 8caf57b..6a502eb 100644 --- a/Resources/Public/Scripts/Alpine.js +++ b/Resources/Public/Scripts/Alpine.js @@ -1,5 +1,5 @@ -(()=>{var Me=!1,Te=!1,L=[],Ie=-1;function Wn(e){Un(e)}function Un(e){L.includes(e)||L.push(e),Jn()}function Tt(e){let t=L.indexOf(e);t!==-1&&t>Ie&&L.splice(t,1)}function Jn(){!Te&&!Me&&(Me=!0,queueMicrotask(Vn))}function Vn(){Me=!1,Te=!0;for(let e=0;ee.effect(t,{scheduler:n=>{Pe?Wn(n):n()}}),It=e.raw}function ht(e){H=e}function Xn(e){let t=()=>{};return[r=>{let i=H(r);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),Q(i))},i},()=>{t()}]}function Y(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function I(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>I(i,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)I(r,t,!1),r=r.nextElementSibling}function O(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var gt=!1;function Zn(){gt&&O("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),gt=!0,document.body||O("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `