1import{F as e,I as t,m as n}from"../shared/vue.esm-bundler-CFJlmH2M.js";import{n as r,t as i}from"../shared/store-GA2I7hdJ.js";function a(){let e=n(()=>i.getters[`sensitiveConfirmation/showDialog`]),t=n(()=>i.getters[`sensitiveConfirmation/requires2fa`]);async function a(e){try{return await e()}catch(t){if(r(t)){let n=t.response?.data??{};return i.dispatch(`sensitiveConfirmation/requestConfirmation`,{action:e,requiresPassword:n.requires_password??!0,requires2fa:n.requires_2fa??!1,mfaSetupRequired:n.mfa_setup_required??!1,mode:n.mode??`auto`,subjectHasOtp:n.subject_has_otp??void 0,subjectHasWebauthn2fa:n.subject_has_webauthn_2fa??void 0,subjectHasPasskey:n.subject_has_passkey??void 0,subjectHasRecoveryCodes:n.subject_has_recovery_codes??void 0})}throw t}}function o(){return i.dispatch(`sensitiveConfirmation/onConfirmed`)}function s(){return i.dispatch(`sensitiveConfirmation/onCancelled`)}return{showDialog:e,requires2fa:t,withConfirmation:a,onConfirmed:o,onCancelled:s}}function o(n,r,i={}){let{private:a=!1}=i,o=null;e(()=>{if(!window.Echo){console.warn(`Echo is not initialized`);return}o=a?window.Echo.private(n):window.Echo.channel(n),Object.entries(r).forEach(([e,t])=>{o.listen(e,t)})}),t(()=>{o&&window.Echo&&window.Echo.leave(n)})}function s(e,t,n={}){let{private:r=!1}=n;if(!window.Echo)return console.warn(`Echo is not initialized`),()=>{};let i=r?window.Echo.private(e):window.Echo.channel(e);return Object.entries(t).forEach(([e,t])=>{i.listen(e,t)}),()=>{window.Echo.leave(e)}}function c(e,t,n={}){return s(e,t,{...n,private:!0})}typeof window<`u`&&(window.subscribeToChannel=s,window.subscribeToPrivateChannel=c);export{a as n,o as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.