PageSourceSearch

https://assets0.simplero.com/packs/vite/assets/stimulus-XUUgnuWb.js

js simplero.com collected 2026-10-01 11:46:43 UTC 9,562 bytes, 2 lines download raw bytes

1function e(e){return e.replace(/(?:[_-])([a-z0-9])/g,(e,t)=>t.toUpperCase())}function t(t){return e(t.replace(/--/g,`-`).replace(/__/g,`_`))}function n(e){return e.charAt(0).toUpperCase()+e.slice(1)}function r(e){return e.replace(/([A-Z])/g,(e,t)=>`-${t.toLowerCase()}`)}var i=class{constructor(e,t){this.mutationObserverInit={attributes:!0,childList:!0,subtree:!0},this.element=e,this.started=!1,this.delegate=t,this.elements=new Set,this.mutationObserver=new MutationObserver(e=>this.processMutations(e))}start(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,this.mutationObserverInit),this.refresh())}pause(e){this.started&&=(this.mutationObserver.disconnect(),!1),e(),this.started||=(this.mutationObserver.observe(this.element,this.mutationObserverInit),!0)}stop(){this.started&&=(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),!1)}refresh(){if(this.started){let e=new Set(this.matchElementsInTree());for(let t of Array.from(this.elements))e.has(t)||this.removeElement(t);for(let t of Array.from(e))this.addElement(t)}}processMutations(e){if(this.started)for(let t of e)this.processMutation(t)}processMutation(e){e.type==`attributes`?this.processAttributeChange(e.target,e.attributeName):e.type==`childList`&&(this.processRemovedNodes(e.removedNodes),this.processAddedNodes(e.addedNodes))}processAttributeChange(e,t){let n=e;this.elements.has(n)?this.delegate.elementAttributeChanged&&this.matchElement(n)?this.delegate.elementAttributeChanged(n,t):this.removeElement(n):this.matchElement(n)&&this.addElement(n)}processRemovedNodes(e){for(let t of Array.from(e)){let e=this.elementFromNode(t);e&&this.processTree(e,this.removeElement)}}processAddedNodes(e){for(let t of Array.from(e)){let e=this.elementFromNode(t);e&&this.elementIsActive(e)&&this.processTree(e,this.addElement)}}matchElement(e){return this.delegate.matchElement(e)}matchElementsInTree(e=this.element){return this.delegate.matchElementsInTree(e)}processTree(e,t){for(let n of this.matchElementsInTree(e))t.call(this,n)}elementFromNode(e){if(e.nodeType==Node.ELEMENT_NODE)return e}elementIsActive(e){return e.isConnected==this.element.isConnected?this.element.contains(e):!1}addElement(e){this.elements.has(e)||this.elementIsActive(e)&&(this.elements.add(e),this.delegate.elementMatched&&this.delegate.elementMatched(e))}removeElement(e){this.elements.has(e)&&(this.elements.delete(e),this.delegate.elementUnmatched&&this.delegate.elementUnmatched(e))}},a=class{constructor(e,t,n){this.attributeName=t,this.delegate=n,this.elementObserver=new i(e,this)}get element(){return this.elementObserver.element}get selector(){return`[${this.attributeName}]`}start(){this.elementObserver.start()}pause(e){this.elementObserver.pause(e)}stop(){this.elementObserver.stop()}refresh(){this.elementObserver.refresh()}get started(){return this.elementObserver.started}matchElement(e){return e.hasAttribute(this.attributeName)}matchElementsInTree(e){let t=this.matchElement(e)?[e]:[],n=Array.from(e.querySelectorAll(this.selector));return t.concat(n)}elementMatched(e){this.delegate.elementMatchedAttribute&&this.delegate.elementMatchedAttribute(e,this.attributeName)}elementUnmatched(e){this.delegate.elementUnmatchedAttribute&&this.delegate.elementUnmatchedAttribute(e,this.attributeName)}elementAttributeChanged(e,t){this.delegate.elementAttributeValueChanged&&this.attributeName==t&&this.delegate.elementAttributeValueChanged(e,t)}};function o(e,t){let n=c(e);return Array.from(n.reduce((e,n)=>(l(n,t).forEach(t=>e.add(t)),e),new Set))}function s(e,t){return c(e).reduce((e,n)=>(e.push(...u(n,t)),e),[])}function c(e){let t=[];for(;e;)t.push(e),e=Object.getPrototypeOf(e);return t.reverse()}function l(e,t){let n=e[t];return Array.isArray(n)?n:[]}function u(e,t){let n=e[t];return n?Object.keys(n).map(e=>[e,n[e]]):[]}(()=>{function e(e){function t(){return Reflect.construct(e,arguments,new.target)}return t.prototype=Object.create(e.prototype,{constructor:{value:t}}),Reflect.setPrototypeOf(t,e),t}function t(){let t=e(function(){this.a.call(this)});return t.prototype.a=function(){},new t}try{return t(),e}catch{return e=>class extends e{}}})(),Object.assign(Object.assign({enter:`Enter`,tab:`Tab`,esc:`Escape`,space:` `,up:`ArrowUp`,down:`ArrowDown`,left:`ArrowLeft`,right:`ArrowRight`,home:`Home`,end:`End`},d(`abcdefghijklmnopqrstuvwxyz`.split(``).map(e=>[e,e]))),d(`0123456789`.split(``).map(e=>[e,e])));function d(e){return e.reduce((e,[t,n])=>Object.assign(Object.assign({},e),{[t]:n}),{})}function f(e){return o(e,`classes`).reduce((e,t)=>
1Object.assign(e,p(t)),{})}function p(e){return{[`${e}Class`]:{get(){let{classes:t}=this;if(t.has(e))return t.get(e);{let n=t.getAttributeName(e);throw Error(`Missing attribute "${n}"`)}}},[`${e}Classes`]:{get(){return this.classes.getAll(e)}},[`has${n(e)}Class`]:{get(){return this.classes.has(e)}}}}function m(e){return o(e,`outlets`).reduce((e,t)=>Object.assign(e,h(t)),{})}function h(e){let r=t(e);return{[`${r}Outlet`]:{get(){let t=this.outlets.find(e);if(t){let n=this.application.getControllerForElementAndIdentifier(t,e);if(n)return n;throw Error(`Missing "data-controller=${e}" attribute on outlet element for "${this.identifier}" controller`)}throw Error(`Missing outlet element "${e}" for "${this.identifier}" controller`)}},[`${r}Outlets`]:{get(){let t=this.outlets.findAll(e);return t.length>0?t.map(t=>{let n=this.application.getControllerForElementAndIdentifier(t,e);if(n)return n;console.warn(`The provided outlet element is missing the outlet controller "${e}" for "${this.identifier}"`,t)}).filter(e=>e):[]}},[`${r}OutletElement`]:{get(){let t=this.outlets.find(e);if(t)return t;throw Error(`Missing outlet element "${e}" for "${this.identifier}" controller`)}},[`${r}OutletElements`]:{get(){return this.outlets.findAll(e)}},[`has${n(r)}Outlet`]:{get(){return this.outlets.has(e)}}}}function g(e){return o(e,`targets`).reduce((e,t)=>Object.assign(e,_(t)),{})}function _(e){return{[`${e}Target`]:{get(){let t=this.targets.find(e);if(t)return t;throw Error(`Missing target element "${e}" for "${this.identifier}" controller`)}},[`${e}Targets`]:{get(){return this.targets.findAll(e)}},[`has${n(e)}Target`]:{get(){return this.targets.has(e)}}}}function v(e){let t=s(e,`values`);return t.reduce((e,t)=>Object.assign(e,y(t)),{valueDescriptorMap:{get(){return t.reduce((e,t)=>{let n=b(t,this.identifier),r=this.data.getAttributeNameForKey(n.key);return Object.assign(e,{[r]:n})},{})}}})}
1function y(e,t){let r=b(e,t),{key:i,name:a,reader:o,writer:s}=r;return{[a]:{get(){let e=this.data.get(i);return e===null?r.defaultValue:o(e)},set(e){e===void 0?this.data.delete(i):this.data.set(i,s(e))}},[`has${n(a)}`]:{get(){return this.data.has(i)||r.hasCustomDefaultValue}}}}function b([e,t],n){return E({controller:n,token:e,typeDefinition:t})}function x(e){switch(e){case Array:return`array`;case Boolean:return`boolean`;case Number:return`number`;case Object:return`object`;case String:return`string`}}function S(e){switch(typeof e){case`boolean`:return`boolean`;case`number`:return`number`;case`string`:return`string`}if(Array.isArray(e))return`array`;if(Object.prototype.toString.call(e)===`[object Object]`)return`object`}function C(e){let t=x(e.typeObject.type);if(!t)return;let n=S(e.typeObject.default);if(t!==n){let r=e.controller?`${e.controller}.${e.token}`:e.token;throw Error(`The specified default value for the Stimulus Value "${r}" must match the defined type "${t}". The provided default value of "${e.typeObject.default}" is of type "${n}".`)}return t}function w(e){let t=C({controller:e.controller,token:e.token,typeObject:e.typeDefinition}),n=S(e.typeDefinition),r=x(e.typeDefinition),i=t||n||r;if(i)return i;let a=e.controller?`${e.controller}.${e.typeDefinition}`:e.token;throw Error(`Unknown value type "${a}" for "${e.token}" value`)}function T(e){let t=x(e);if(t)return D[t];let n=e.default;return n===void 0?e:n}function E(t){let n=`${r(t.token)}-value`,i=w(t);return{type:i,key:n,name:e(n),get defaultValue(){return T(t.typeDefinition)},get hasCustomDefaultValue(){return S(t.typeDefinition)!==void 0},reader:O[i],writer:k[i]||k.default}}var D={get array(){return[]},boolean:!1,number:0,get object(){return{}},string:``},O={array(e){let t=JSON.parse(e);if(!Array.isArray(t))throw TypeError(`expected value of type "array" but instead got value "${e}" of type "${S(t)}"`);return t},boolean(e){return!(e==`0`||String(e).toLowerCase()==`false`)},number(e){return Number(e)},object(e){let t=JSON.parse(e);if(typeof t!=`object`||!t||Array.isArray(t))throw TypeError(`expected value of type "object" but instead got value "${e}" of type "${S(t)}"`);return t},string(e){return e}},k={default:j,array:A,object:A};function A(e){return JSON.stringify(e)}function j(e){return`${e}`}var M=class{constructor(e){this.context=e}static get shouldLoad(){return!0}static afterLoad(e,t){}get application(){return this.context.application}get scope(){return this.context.scope}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get targets(){return this.scope.targets}get outlets(){return this.scope.outlets}get classes(){return this.scope.classes}get data(){return this.scope.data}initialize(){}connect(){}disconnect(){}dispatch(e,{target:t=this.element,detail:n={},prefix:r=this.identifier,bubbles:i=!0,cancelable:a=!0}={}){let o=r?`${r}:${e}`:e,s=new CustomEvent(o,{detail:n,bubbles:i,cancelable:a});return t.dispatchEvent(s),s}};M.blessings=[f,g,v,m],M.targets=[],M.outlets=[],M.values={};export{M as n,a as t};
2//# sourceMappingURL=stimulus-XUUgnuWb.js.map

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.