Files
elviraandClaude Opus 5.5 f7e42f1056 Deps: update packages resolved by the dev entrypoint
docker/entrypoint.sh runs `composer update "boboko/*"
--with-all-dependencies` on boot; this is what it resolved, about 55
packages. boboko/core itself is unchanged. Mostly patch releases,
notably:
- laravel/framework v12.70.0 -> v12.70.2
- filament/* v4.15.2 -> v4.16.0 (published assets in public/ updated)
- livewire/livewire v3.8.10 -> v3.8.11
- stripe/stripe-php v16.6.0 -> v16.6.1
- spatie/laravel-medialibrary 11.23.10 -> 11.23.11
- symfony/* 7.4.x/8.1.x patch releases

Kept separate from the Caddy commit so it's easy to revert. Click
through the admin panel and a Stripe test checkout before deploying.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 01:53:45 +02:00

2 lines
2.3 KiB
JavaScript

function u({isSkippable:r,isStepPersistedInQueryString:n,livewireId:d,schemaKey:c,startStep:o,stepQueryStringKey:h}){let l;return{boundResetHandler:null,step:null,init(){l=this.$nextStep;let t=this.getSteps(),e=new URLSearchParams(window.location.search).get(h);this.step=n&&t.includes(e)?e:t.at(o-1),this.$watch("step",()=>{this.updateQueryString(),this.autofocusFields()}),this.autofocusFields(!0),this.boundResetHandler=s=>{s.detail.livewireId!==d||s.detail.schemaKey!==c||n||this.$nextTick(()=>{this.step=this.getSteps().at(o-1)??this.step})},window.addEventListener("reset-schema-component-state",this.boundResetHandler)},async requestNextStep(){await l({currentStepIndex:this.getStepIndex(this.step),currentStepKey:this.step})},goToNextStep(t=null,e=null){if(!(e!==null&&this.step!==e)){if(t===null){let s=this.getStepIndex(this.step);if(s===-1)return;t=this.getSteps()[s+1]}this.getSteps().includes(t)&&(this.step=t,this.scroll())}},goToPreviousStep(){let t=this.getStepIndex(this.step)-1;t<0||(this.step=this.getSteps()[t],this.scroll())},goToStep(t){let e=this.getStepIndex(t);e<=-1||!r&&e>this.getStepIndex(this.step)||(this.step=t,this.scroll())},scroll(){this.$nextTick(()=>{this.$refs.header?.children[this.getStepIndex(this.step)].scrollIntoView({behavior:"smooth",block:"start"})})},autofocusFields(t=!1){this.$nextTick(()=>{let e=this.$el.closest(".fi-sc-wizard");if(t&&document.activeElement&&document.activeElement!==document.body&&e.compareDocumentPosition(document.activeElement)&Node.DOCUMENT_POSITION_PRECEDING)return;let s=Array.from(e.children).find(i=>i.getAttribute("x-ref")===`step-${this.step}`)?.querySelectorAll("[autofocus]")??[];for(let i of s)if(i.focus(),document.activeElement===i)break})},getStepIndex(t){return this.getSteps().findIndex(e=>e===t)},getSteps(){return JSON.parse(this.$refs.stepsData.value)},isFirstStep(){return this.getStepIndex(this.step)<=0},isLastStep(){return this.getStepIndex(this.step)+1>=this.getSteps().length},isStepAccessible(t){return this.getStepIndex(t)!==-1&&(r||this.getStepIndex(this.step)>this.getStepIndex(t))},updateQueryString(){if(!n)return;let t=new URL(window.location.href);t.searchParams.set(h,this.step),history.replaceState(null,document.title,t.toString())},destroy(){this.boundResetHandler&&window.removeEventListener("reset-schema-component-state",this.boundResetHandler)}}}export{u as default};