PageSourceSearch

https://sweb.ru/scripts/reusable/orderPopup/PopupStateUiManager.min.js?nc=2026091801

js sweb.ru collected 2026-09-24 18:17:52 UTC 705 bytes, 1 lines download raw bytes

1class PopupStateUiManager{constructor({$container,states,defaultState=null}){this.$container=$container,this.states=states,this.currentState=defaultState,this.currentPayload=null,this.hideAll(),defaultState&&this.setState(defaultState)}hideAll(){Object.values(this.states).forEach(cfg=>{cfg.selector&&this.$container.find(cfg.selector).addClass("hidden--important"),cfg.onExit&&cfg.onExit()})}setState(stateName,payload={}){if(!this.states[stateName])return;this.hideAll();const stateCfg=this.states[stateName];stateCfg.selector&&this.$container.find(stateCfg.selector).removeClass("hidden--important"),stateCfg.onEnter&&stateCfg.onEnter(payload),this.currentState=stateName,this.currentPayload=payload}}

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.