1import{n as e,t}from"./@hotwired-DbSgy0qT.js";import{i as n,n as r,r as i,t as a}from"./@symfony-DHwaEcmY.js";import{n as o,r as s,t as c}from"./@kreyu-SWBytbZf.js";import{t as l}from"./@rekalogika-Bd-l5WgZ.js";/* empty css */var u=[{enabled:!0,fetch:`eager`,identifier:`kreyu--data-table-bundle--personalization`,controller:s},{enabled:!0,fetch:`eager`,identifier:`kreyu--data-table-bundle--batch`,controller:o},{enabled:!0,fetch:`eager`,identifier:`kreyu--data-table-bundle--state`,controller:c},{enabled:!0,fetch:`eager`,identifier:`rekalogika--temporary-url-bundle--autoexpire`,controller:l},{enabled:!0,fetch:`eager`,identifier:`symfony--ux-autocomplete--autocomplete`,controller:i},{enabled:!0,fetch:`eager`,identifier:`symfony--ux-chartjs--chart`,controller:r},{enabled:!0,fetch:`eager`,identifier:`live`,controller:n},{enabled:!0,fetch:`eager`,identifier:`symfony--ux-turbo--turbo-core`,controller:a}],d=/^(?:.*?controllers\/|\.?\.\/)?(.+)\.[jt]sx?\b/,f=/^(.*)(?:[/_-]controller)$/,p=/^(.*)(?:Controller)$/;function m(e,t){if(typeof t==`function`)return t(e);let[,n]=e.match(d)||[];if(!n)return null;if(t===`snakeCase`){let[,e]=n.match(f)||[];return(e??n).toLowerCase().replace(/_/g,`-`).replace(/\//g,`--`)}else if(t===`camelCase`){let[,e]=n.match(p)||[];return h(e??n)}throw Error(`unknown identifierResolutionMethod valid entries 'snakeCase' or 'camelCase' or custom function`)}function h(e){return e.split(``).map((t,n)=>t===`/`?`--`:t.toUpperCase()===t?`${n!==0&&e[n-1]!==`/`?`-`:``}${t.toLowerCase()}`:t).join(``)}function g(t,n=`default`){return class extends e{constructor(e){e.logDebugActivity=function(e){this.application.logDebugActivity(this.identifier+`-lazywrapper`,e)},super(e),this.__stimulusLazyController=!0}initialize(){this.application.controllers.find(e=>e.identifier===this.identifier&&e.__stimulusLazyController)||t().then(e=>{this.application.register(this.identifier,e[n])})}}}function _(){let e=t.start();e.debug=!1;for(let t of u)t.fetch===`lazy`?e.register(t.identifier,g(t.controller)):e.register(t.identifier,t.controller);return e.debug&&(console.groupCollapsed(`application #startStimulusApp and register controllers from controllers.json`),console.log(`controllers`,u.map(e=>e.identifier)),console.groupEnd()),e}function v(e){return typeof e==`function`}function y(t){return t.prototype instanceof e}function b(e){return!!(typeof e==`object`&&e[Symbol.toStringTag]===`Module`&&e.default)}function x(e,t){let n=[];e.debug&&console.groupCollapsed(`application #registerControllers`),Object.entries(t).forEach(([t,r])=>{let i=m(t,`snakeCase`);if(!i)throw Error(`Invalid filePath ${t}`);if(v(r))e.register(i,g(r)),n.push(i);else if(y(r))e.register(i,r),n.push(i);else if(b(r))S(e,r.default),n.push(r.default.identifier);else throw Error(`unknown Stimulus controller for ${i}. if you use import.meta.glob, don't forget to enable the eager option to true`)}),e.debug&&console.groupEnd()}function S(e,t){t.enabled&&(t.fetch===`lazy`?e.register(t.identifier,g(t.controller)):e.register(t.identifier,t.controller),e.debug&&console.log(`application #registerController ${t.identifier}`))}export{_ as n,x 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.