PageSourceSearch

https://www.costco.com.au/spartacus/assets/chunk-YNCXXF72.js

js costco.com.au collected 2026-10-02 06:06:46 UTC 6,230 bytes, 1 lines download raw bytes

1import{a as h,b as v}from"./chunk-OGG4A2QW.js";import{a as m}from"./chunk-DAAXSM72.js";import{Ba as a,Da as H,Ea as l,Kc as I,Me as E,Rb as f,Ta as u,gb as o,kd as b,ob as d,sb as p,ta as D}from"./chunk-ZIECK5QA.js";var j=(()=>{let r=class r extends h{focusOut(){let e=`[id='${this.selector}'][aria-hidden]`;this._keepOpen||setTimeout(()=>{document.activeElement.closest(e)||this.ariaService.setState(this.selector,!0)},150)}close(){this.ariaService.setState(this.selector,!0)}focusTarget(e){let t=`[id='${this.selector}'][aria-hidden]`;this.focusFirstFocusableElement(t),e.preventDefault(),e.stopImmediatePropagation()}toggleState(e){if(!this.selector)return;(!this.ariaService.toggleState(this.selector)||this.layoutService.isMobile)&&e.preventDefault()}open(e){this.selector&&(e.preventDefault(),this.ariaService.toggleState(this.selector))}constructor(e,t,i,n){super(e,t,i,["aria-expanded"],n)}focusFirstFocusableElement(e){let t=document.querySelectorAll(e);if(t.length!==1){I()&&console.warn("target selector match wrong number of elements",t.length);return}let i=this.getAllFocusableChildren(t[0])[0];i&&i.focus()}updateDom(e){this.attributes.forEach(t=>{this.renderer.setAttribute(this.el.nativeElement,t,(!e).toString())})}ngOnInit(){this.selector&&(this.renderer.setAttribute(this.el.nativeElement,"aria-controls",this.selector),super.ngOnInit(),this._keepOpen=this.selectorObject===void 0||typeof this.selectorObject=="string"?!1:!!this.selectorObject.keepOpen)}};r.\u0275fac=function(t){return new(t||r)(o(m),o(u),o(d),o(v))},r.\u0275dir=l({type:r,selectors:[["","sip-aria-controls",""]],hostBindings:function(t,i){t&1&&f("focusout",function(){return i.focusOut()})("keydown.escape",function(){return i.close()})("keydown.arrowdown",function(c){return i.focusTarget(c)})("click",function(c){return i.toggleState(c)})("keydown.space",function(c){return i.open(c)})},inputs:{selectorObject:[a.None,"sip-aria-controls","selectorObject"]},features:[p]});let s=r;return s})();var R=(()=>{let r=class r extends h{set selectorObj(e){this.selectorObject=e,e&&typeof e!="string"&&(this._keepOpen=e.keepOpen,this._keepOpen||this.overrideFocus())}constructor(e,t,i,n,c){super(e,t,i,["aria-hidden"],n),this.winRef=c,this._document=this.winRef.document}get currentActiveElement(){return this._document.activeElement}handleEscape(e){e.preventDefault(),e.stopImmediatePropagation(),this.close(e.target)}close(e){let t=this.findClosestController(e);t?(t.focus(),this.ariaService.setState(t.getAttribute("aria-controls"),!0)):this.ariaService.setState(this.selector,!0)}findClosestController(e){let t=e.id,i=Array.from(this._document.querySelectorAll(`[aria-controls="${t}"]`)).find(c=>c.offsetParent!=null),n=e.parentElement;return typeof i>"u"&&n&&typeof n.id<"u"?this.findClosestController(n):i}checkFocus(){setTimeout(()=>{!this.el.nativeElement.contains(this._document.activeElement)&&this._document.activeElement.getAttribute("aria-controls")!==this.selector&&this.overrideFocus()},150)}overrideFocus(){this._keepOpen||this.ariaService.setState(this.selector,!0)}nextFocus(e){let t=this.getAllFocusableChildren(),i=t.indexOf(this.currentActiveElement),n=i+1>=t.length?0:i+1;t[n].focus(),e.preventDefault(),e.stopImmediatePropagation()}prevFocus(e){let t=this.getAllFocusableChildren(),i=t.indexOf(this.currentActiveElement),n=i-1<0?t.length-1:i-1;t[n].focus(),e.preventDefault(),e.stopImmediatePropagation()}updateDom(e){super.updateDom(e),e?(this.renderer.setAttribute(this.el.nativeElement,"hidden",e.toString()),this.renderer.setAttribute(this.el.nativeElement,"aria-hidden",e.toString())):(this.renderer.removeAttribute(this.el.nativeElement,"hidden"),this.renderer.setAttribute(this.el.nativeElement,"aria-hidden",e.toString()))}ngOnInit(){super.ngOnInit()}};r.\u0275fac=function(t){return new(t||r)(o(m),o(u),o(d),o(v),o(E))},r.\u0275dir=l({type:r,selectors:[["","sip-aria-hidden",""]],hostBindings:function(t,i){t&1&&f("keydown.escape",function(c){return i.handleEscape(c)})("focusout",function(){return i.checkFocus()})("keydown.arrowdown",function(c){return i.nextFocus(c)})("keydown.arrowup",function(c){return i.prevFocus(c)})},inputs:{selectorObj:[a.None,"sip-aria-hidden","selectorObj"]},features:[p]});let s=r;return s})();var P=(()=>{let r=class r extends h{close(){this.layoutService.isMobile||this.ariaService.setState(this.selector,!1)}open(){this.layoutService.isMobile||this.ariaService.setState(this.selector,!0)}constructor(e,t,i,n){super(e,t,i,[],n)}};r.\u0275fac=function(t){return new(t||r)(o(m),o(u),o(d),o(v))},r.\u0275dir=l({type:r,selectors:[["","sip-aria-mouse-events",""]],hostBindings:function(t,i){t&1&&f("mou
1seenter",function(){return i.close()})("mouseleave",function(){return i.open()})},inputs:{selectorObject:[a.None,"sip-aria-mouse-events","selectorObject"]},features:[p]});let s=r;return s})();var N=(()=>{let r=class r extends h{toggleState(e){!this.selector||this.hasExceptionElementsFocused(e.target.id)||this.ariaService.toggleState(this.selector)}behaveAsClick(e){e.target instanceof HTMLButtonElement&&(e.preventDefault(),e.target.click())}close(){this.ariaService.setState(this.selector,!0)}open(){this.ariaService.setState(this.selector,!1)}hasExceptionElementsFocused(e){return this._preventToggleOnFocusedElements.has(e)}constructor(e,t,i,n){super(e,t,i,["aria-expanded"],n),this._preventToggleOnFocusedElements=new Set}ngOnInit(){super.ngOnInit(),this.selectorObject!==void 0&&typeof this.selectorObject!="string"&&(this._preventToggleOnFocusedElements=new Set(this.selectorObject.preventToggleOnFocusedElements))}};r.\u0275fac=function(t){return new(t||r)(o(m),o(u),o(d),o(v))},r.\u0275dir=l({type:r,selectors:[["","sip-postal-code-aria-controls",""]],hostBindings:function(t,i){t&1&&f("click",function(c){return i.toggleState(c)})("touchstart",function(c){return i.behaveAsClick(c)})("mouseleave",function(){return i.close()})("mouseenter",function(){return i.open()})},inputs:{selectorObject:[a.None,"sip-postal-code-aria-controls","selectorObject"]},features:[p]});let s=r;return s})();var Z=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=H({type:r}),r.\u0275inj=D({imports:[b]});let s=r;return s})();export{j as a,R as b,P as c,N as d,Z as e};

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.