PageSourceSearch

https://www.costco.com.mx/spartacus/assets/chunk-SUMO55QQ.js

js costco.com.mx collected 2026-09-24 17:44:59 UTC 12,176 bytes, 1 lines download raw bytes

1import{a as te,b as R,h as A}from"./chunk-P5BIUT3A.js";import{a as j}from"./chunk-5Q42DF5J.js";import{c as x}from"./chunk-7IEM6YIL.js";import{B as y,Ba as I,Da as z,Ea as a,F as P,H as $,He as D,P as N,Qb as E,Sa as p,U as w,Wa as X,a as M,d as V,fb as o,ga as q,gb as G,hb as J,j as B,ja as U,ld as ee,m as ae,nb as d,ob as Q,p as W,pb as _,rb as K,sa as k,t as L,ta as Y,v as T,va as Z,wa as v}from"./chunk-ADQO3XXX.js";import{m as f}from"./chunk-3JMZ37NM.js";var ue=(()=>{let i=class i{set sipReplaceWith(e){e.forEach(t=>{this.replace(t)})}constructor(e){this.renderer=e}replace({container:e,replace:t,replaceWith:s}){let n=e.querySelector(":scope div[hidden]");n?n.textContent.trim()===t&&(this.renderer.removeAttribute(n,"hidden"),n.replaceWith(s)):s.remove()}};i.\u0275fac=function(t){return new(t||i)(o(d))},i.\u0275dir=a({type:i,selectors:[["","sipReplaceWith",""]],inputs:{sipReplaceWith:"sipReplaceWith"}});let r=i;return r})();var be=(()=>{let i=class i{constructor(e,t,s){this.elementRef=e,this.renderer=t,this.platformId=s,this.serverMode=ee(this.platformId)}ngOnInit(){this.serverMode&&this.renderer.removeChild(this.elementRef.nativeElement.parentNode,this.elementRef.nativeElement)}};i.\u0275fac=function(t){return new(t||i)(o(p),o(d),o(X))},i.\u0275dir=a({type:i,selectors:[["","sipRemoveSSR",""]]});let r=i;return r})();var Se=(()=>{let i=class i{constructor(e){this.element=e}observe(e={root:null,rootMargin:"0px",threshold:.5}){typeof IntersectionObserver<"u"&&(this.observer=new IntersectionObserver(t=>{t.forEach(s=>{s.isIntersecting&&(this.handleComponentVisible?.(),this.unobserve())})},e),this.observer.observe(this.element.nativeElement))}unobserve(){this.observer&&this.observer.disconnect()}ngAfterViewInit(){this.observe()}ngOnDestroy(){this.unobserve()}};i.\u0275fac=function(t){return new(t||i)(o(p))},i.\u0275dir=a({type:i,selectors:[["","sipObserve",""]],inputs:{handleComponentVisible:[I.None,"sipObserve","handleComponentVisible"]}});let r=i;return r})();var we=(()=>{let i=class i{constructor(e,t){this.el=e,this.piiMaskingService=t,this.isMasked=!0}ngOnInit(){return f(this,null,function*(){this.isMaskingEnabled=yield this.piiMaskingService.isMaskingEnabled(),this.isMaskingEnabled&&(this.isClickToRevealEnabled=yield this.piiMaskingService.isClickToRevealEnabled(),this.maskConfig=yield this.piiMaskingService.getMaskConfig(this.piiFieldType)),this.isMaskingEnabled&&Object.keys(this.maskConfig)?.length>0&&(this.inputEl=this.el.nativeElement,this.inputOriginalValue=this.inputEl.value,this.maskedValue=this.piiMaskingService.getMaskedPiiInformation(this.maskConfig,this.inputOriginalValue),this.inputEl.value=this.maskedValue,this.isMasked=!0)})}onDoubleClick(){this.isClickToRevealEnabled&&(this.isMasked?(this.inputEl.value=this.inputOriginalValue,this.isMasked=!1):(this.inputEl.value=this.maskedValue,this.isMasked=!0))}};i.\u0275fac=function(t){return new(t||i)(o(p),o(R))},i.\u0275dir=a({type:i,selectors:[["","sipInputMaskPii",""]],hostBindings:function(t,s){t&1&&E("dblclick",function(c){return s.onDoubleClick(c.target)})},inputs:{piiFieldType:"piiFieldType"}});let r=i;return r})();var De=(()=>{let i=class i{constructor(e,t,s){this.el=e,this.piiMaskingService=t,this.renderer=s}ngOnInit(){return f(this,null,function*(){let e=this.el.nativeElement.querySelectorAll(".js-pii-info-field").length;this.isMasked=new Array(e),this.originalValues=new Array(e),this.maskedValues=new Array(e),this.isMaskingEnabled=yield this.piiMaskingService.isMaskingEnabled(),this.isMaskingEnabled&&(this.isClickToRevealEnabled=yield this.piiMaskingService.isClickToRevealEnabled(),this.maskConfig=yield this.piiMaskingService.getMaskConfig(te.ADDRESS)),yield this.replaceArgumentWithAddress()})}replaceArgumentWithAddress(){return f(this,null,function*(){let e=this.el.nativeElement.querySelectorAll(".js-pii-info-field");this.originalValues=Array.from(e).map(t=>{let s=t.getAttribute("data-short-address-formatted"),n=t.getAttribute("data-long-address-formatted"),c=t.innerHTML.match(/\{(\d+)\}/),l=c?parseInt(c[1],10):null;return c?l%2===0?(this.renderer.setProperty(t,"innerHTML",s),s):(this.renderer.setProperty(t,"innerHTML",n),n):t.innerHTML}),e.forEach((t,s)=>{this.applyMask(t,s),this.renderer.listen(t,"dblclick",()=>{this.applyMaskOrUnmask(t,s)})})})}applyMask(e,t){return f(this,null,function*(){this.isMaskingEnabled&&Object.keys(this.maskConfig)?.length>0&&this.originalValues.length>0&&(this.maskedValues[t]=this.piiMaskingService.getMaskedPiiInformation(this.maskConfig,this.originalValues[t]),this.renderer.setProperty(e,"innerHTML",this.maskedValues[t]),this.isMasked[t]=!0)})}applyMaskOrUnmask(e,t){return f(this,null,function*(){this.isClickToRevealEnabled&&(this.isMasked[t]?(this.renderer.setProperty(e,"innerHTML",this.originalValues[t]),this.isMasked[t]=!1):(this.renderer.setProperty(e,"innerHTML",this.maskedValues[t]),this.isMasked[t]=!0))})}};i.\u0275fac=function(t){return new(t||i)(o(p),o(R),o(d))},i.\u0275dir=a({type:i,selectors:[["","sipMessageMaskPii",""]]});let r=i;return r})();var ie=(()=>{let i=class i{constructor(e,t,s,n,c){this.ariaService=e,this.el=t,this.renderer=s,this.attributes=n,this.layoutService=c,this._subscription$=new M}get selector(){return this.selectorObject===void 0||typeof this.selectorObject=="string"?this.selectorObject:this.selectorObject.selector}get defaultValue(){return this.selectorObject===void 0||typeof this.selectorObject=="string"?void 0:this.selectorObject.defaultValue}getAllFocusableChildren(e=this.el.nativeElement){return Array.from(e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not
1([tabindex="-1"]')).filter(t=>t.offsetParent!==null)}updateDom(e){this.attributes.forEach(t=>{this.renderer.setAttribute(this.el.nativeElement,t,e.toString())})}ngOnInit(){this.selector!==void 0&&(this._state$=this.ariaService.getState(this.selector,this.defaultValue),this._subscription$.add(this._state$.subscribe(this.updateDom.bind(this))))}ngOnDestroy(){this._subscription$.unsubscribe()}};i.\u0275fac=function(t){G()},i.\u0275dir=a({type:i});let r=i;return r})();ae();var C=new Map,le=1e3,he=50;function re(r=le,i=he){if(j.production)return t=>t;let h,e=!1;return function(t,s,n){h||(h=n.value,n.value=function(...c){let l=C.get(s);l.count++,!e&&l.count>r&&(e=!0,console.error("calls threshold reached for ",s,l.count));let O=Date.now(),H=h.apply(this,c),b=Date.now()-O;return l.total+=b,!e&&l.total>i&&(e=!0,console.error("MS threshold reached for ",s,l.total)),l.min=Math.min(b,l.min),l.max=Math.max(b,l.max),H},C.set(s,{name:s,count:0,min:Number.MAX_VALUE,max:Number.MIN_VALUE,total:0}))}}j.production||typeof window<"u"&&(window.reportMonitoring=()=>{console.table(Array.from(C.values()))});var m=class m{constructor(){this.states=new Map}toggleState(i){return this.setState(i,!this._getState(i).value),this._getState(i).value}setState(i,h){this._getState(i).next(h)}_getState(i,h=!0){if(!this.states.has(i)){let e=new V(h);this.states.set(i,e)}return this.states.get(i)}getState(i,h){let e=this._getState(i,h);return h!==void 0&&e.next(h),e.pipe($(t=>t!==void 0),w())}};m.\u0275fac=function(h){return new(h||m)},m.\u0275prov=k({token:m,factory:m.\u0275fac,providedIn:"root"});var S=m;B([re()],S.prototype,"_getState",null);var se=1024,g=(()=>{let i=class i{constructor(e){this.winRef=e,this._innerWidth$=this.generateWidth(),this.subscription=new M,this.subscription.add(this.isMobile$.subscribe(t=>this._isMobile=t))}ngOnDestroy(){this.subscription.unsubscribe()}get innerWidth$(){return this._innerWidth$}get isMobile$(){return this.innerWidth$.pipe(T(e=>this.checkMobile(e)))}get isMobile(){return this._isMobile}checkMobile(e){return e<se}generateWidth(){return this.winRef.nativeWindow?y(this.winRef.nativeWindow,"resize").pipe(N(300),U({target:this.winRef.nativeWindow}),T(e=>e.target.innerWidth),w(),q()):W(se)}};i.\u0275fac=function(t){return new(t||i)(Z(D))},i.\u0275prov=k({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();var Ne=(()=>{let i=class i extends ie{constructor(e,t,s,n){super(e,t,s,[],n),this.ariaService=e,this.el=t,this.renderer=s,this.layoutService=n}handleKeydown(e){e.key==="ArrowLeft"?(this.closeMenu(),e.preventDefault()):e.key==="ArrowRight"&&(this.openNextMenu(),e.preventDefault())}openNextMenu(){if(!this.layoutService.isMobile&&(this.ariaService.setState(this.selector,!1),this.selector)){let e=`[id='${this.selector}'] li:first-child a`,t=document.querySelector(e);t&&t.focus()}}closeMenu(){if(!this.layoutService.isMobile)if(this._parentSelector){let e=`[aria-controls='${this._parentSelector}']`,t=document.querySelector(e);t&&t.focus(),this.ariaService.toggleState(this._parentSelector)}else this.ariaService.toggleState(this.selector)}ngOnInit(){this.selector&&(this.renderer.setAttribute(this.el.nativeElement,"aria-controls",this.selector),super.ngOnInit(),this._parentSelector=this.selectorObject===void 0||typeof this.selectorObject=="string"?"":String(this.selectorObject.parentSelector))}};i.\u0275fac=function(t){return new(t||i)(o(S),o(p),o(d),o(g))},i.\u0275dir=a({type:i,selectors:[["","sip-menu-arrow-navigation",""]],hostBindings:function(t,s){t&1&&E("keydown",function(c){return s.handleKeydown(c)})},inputs:{selectorObject:[I.None,"sip-menu-arrow-navigation","selectorObject"]},features:[K]});let r=i;return r})();var Ue=(()=>{let i=class i{constructor(e,t,s){this.layoutService=e,this.templateRef=t,this.vcr=s,this.deviceType="default"}set sipDisplayForDevice(e){this.deviceType=e?.toLowerCase()}ngOnInit(){let e=this.vcr.createEmbeddedView(this.templateRef);this.subscription=this.layoutService.isMobile$.subscribe(t=>{let s=(this.deviceType==="default"||this.deviceType==="tablet"||this.deviceType==="mobile")&&t||this.deviceType==="desktop"&&!t;
1e.rootNodes.forEach(n=>{n.style.display=s?"":"none"})})}ngOnDestroy(){this.subscription?.unsubscribe()}};i.\u0275fac=function(t){return new(t||i)(o(g),o(J),o(_))},i.\u0275dir=a({type:i,selectors:[["","sipDisplayForDevice",""]],inputs:{sipDisplayForDevice:"sipDisplayForDevice"}});let r=i;return r})();var et=(()=>{let i=class i{constructor(){this.sipFixOnScrollTopMargin=A(x.spaceMd),this.sipFixOnScrollBottomMargin=A(x.spaceMd),this.translateY=0,this.el=v(p),this.renderer=v(d),this.ngZone=v(Q),this.winRef=v(D),this.layoutService=v(g)}ngAfterViewInit(){let e=this.winRef.nativeWindow;!this.winRef.isBrowser()||!e||this.ngZone.runOutsideAngular(()=>{this.subscription=P(y(e,"scroll",{passive:!0}),y(e,"resize",{passive:!0})).subscribe(()=>this.scheduleUpdate()),this.scheduleUpdate()})}ngOnDestroy(){this.subscription?.unsubscribe(),this.frameId!==void 0&&this.winRef.nativeWindow?.cancelAnimationFrame(this.frameId)}scheduleUpdate(){let e=this.winRef.nativeWindow;!e||this.frameId!==void 0||(this.frameId=e.requestAnimationFrame(()=>{this.frameId=void 0,this.update()}))}update(){return f(this,null,function*(){let e=this.winRef.nativeWindow;if(!e)return;let t=this.el.nativeElement,s=t.getBoundingClientRect();(yield L(this.layoutService.isMobile$))&&this.applyTransform(t,0);let n=s.top-this.getAppliedTranslateY(t,e),c=e.innerHeight,l=this.sipFixOnScrollTopMargin-n,O=c-this.sipFixOnScrollBottomMargin-s.height-n,b=(t.parentElement?.getBoundingClientRect().bottom??Number.POSITIVE_INFINITY)-s.height-n,oe=Math.min(O,b),F=Math.max(0,Math.min(l,oe));F!==this.translateY&&(this.translateY=F,this.applyTransform(t,F))})}applyTransform(e,t){this.renderer.setStyle(e,"transform",`translateY(${t}px)`)}getAppliedTranslateY(e,t){let s=t.getComputedStyle(e).transform;if(!s||s==="none")return 0;let n=s.match(/matrix3d\((.+)\)/);if(n)return parseFloat(n[1].split(",")[13])||0;let c=s.match(/matrix\((.+)\)/);return c&&parseFloat(c[1].split(",")[5])||0}};i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=a({type:i,selectors:[["","sipFixOnScroll",""]],inputs:{sipFixOnScrollTopMargin:"sipFixOnScrollTopMargin",sipFixOnScrollBottomMargin:"sipFixOnScrollBottomMargin"}});let r=i;return r})();var Rt=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=z({type:i}),i.\u0275inj=Y({});let r=i;return r})();export{De as a,S as b,ue as c,be as d,Se as e,we as f,ie as g,g as h,Ne as i,Ue as j,et as k,Rt as l};

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.