From 6587604300e629afc2241812ae781bc543944727 Mon Sep 17 00:00:00 2001 From: Afan417 Date: Wed, 7 Aug 2024 14:14:12 +0200 Subject: [PATCH 1/2] Fixed toggle value always returning true issue, closes #9 --- public/build/assets/site-35f9b7b6.js | 26 +++++++++++++++++++ public/build/manifest.json | 2 +- resources/js/form/Formatic.js | 20 ++++++-------- .../statamic/forms/fields/toggle.antlers.html | 19 +++++++------- 4 files changed, 44 insertions(+), 23 deletions(-) create mode 100644 public/build/assets/site-35f9b7b6.js diff --git a/public/build/assets/site-35f9b7b6.js b/public/build/assets/site-35f9b7b6.js new file mode 100644 index 0000000..1d5eb82 --- /dev/null +++ b/public/build/assets/site-35f9b7b6.js @@ -0,0 +1,26 @@ +var ga=!1,ma=!1,Dn=[],ba=-1;function Zc(e){Qc(e)}function Qc(e){Dn.includes(e)||Dn.push(e),el()}function Ms(e){let n=Dn.indexOf(e);n!==-1&&n>ba&&Dn.splice(n,1)}function el(){!ma&&!ga&&(ga=!0,queueMicrotask(tl))}function tl(){ga=!1,ma=!0;for(let e=0;ee.effect(n,{scheduler:t=>{va?Zc(t):t()}}),Is=e.raw}function Io(e){Qn=e}function il(e){let n=()=>{};return[r=>{let i=Qn(r);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(a=>a())}),e._x_effects.add(i),n=()=>{i!==void 0&&(e._x_effects.delete(i),Ur(i))},i},()=>{n()}]}function Dr(e,n,t={}){e.dispatchEvent(new CustomEvent(n,{detail:t,bubbles:!0,composed:!0,cancelable:!0}))}function rn(e,n){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>rn(i,n));return}let t=!1;if(n(e,()=>t=!0),t)return;let r=e.firstElementChild;for(;r;)rn(r,n),r=r.nextElementSibling}function an(e,...n){console.warn(`Alpine Warning: ${e}`,...n)}var Po=!1;function al(){Po&&an("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),Po=!0,document.body||an("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `