PageSourceSearch

https://squareup.com/shop/hardware/v2/_next/static/chunks/9149.0094b7a73fa5a79b.js

js squareup.com collected 2026-09-24 07:35:20 UTC 7,471 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9149],{18235:function(t,e,n){n.d(e,{A:function(){return o},D:function(){return a},g:function(){return s},s:function(){return l}});var i=n(68742);let r=function(t){var e=[],n=null,i=function(){for(var i=arguments.length,r=Array(i),o=0;o<i;o++)r[o]=arguments[o];e=r,n||(n=requestAnimationFrame(function(){n=null,t.apply(void 0,e)}))};return i.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},i},o=["modal-full","modal-partial","blade","dialog","sheet"],a={"modal-full":{veil:!0},"modal-partial":{veil:!0},blade:{veil:!1},dialog:{veil:!0},sheet:{veil:!0}},s=()=>o.map(t=>(0,i.g)(`market-${t}`)).join(",");function l(t){let e=t.querySelector("main, .main"),n=t.querySelector((0,i.g)("market-header"));if(e&&n&&!n.compact){let t=null,i=()=>{let i=e.scrollTop;if(i>0){if(!n.compact){if(null===t){let e=n.shadowRoot.querySelector(".heading"),i=getComputedStyle(e);t=Number.parseInt(i.height,10)+Number.parseInt(i.marginTop,10)}e.style.paddingTop=`${t}px`,n.compact=!0}}else n.compact&&(e.style.paddingTop="",n.compact=!1)},o=r(i);e.addEventListener("scroll",o,{passive:!0})}}},68742:function(t,e,n){let i;function r(t){return new Proxy(t=>t,{apply:(t,e,n)=>Reflect.apply(null!=i?i:t,e,n)})(t)}function o(t,e){var n,i;return(null===(i=null===(n=null==t?void 0:t.tagName)||void 0===n?void 0:n.toLowerCase)||void 0===i?void 0:i.call(n))===r(e)}n.d(e,{g:function(){return r},i:function(){return o}})},19655:function(t,e,n){n.d(e,{A:function(){return r},B:function(){return s},C:function(){return l},D:function(){return $},E:function(){return H},F:function(){return M},G:function(){return O},H:function(){return z},I:function(){return _},J:function(){return j},K:function(){return P},L:function(){return R},M:function(){return V},N:function(){return L},R:function(){return W},S:function(){return F},T:function(){return B},a:function(){return o},b:function(){return i},c:function(){return c},d:function(){return a},e:function(){return g},f:function(){return C},g:function(){return k},h:function(){return p},i:function(){return q},j:function(){return y},k:function(){return f},l:function(){return m},m:function(){return v},n:function(){return w},o:function(){return d},p:function(){return x},q:function(){return D},r:function(){return b},s:function(){return N},t:function(){return u},u:function(){return T},v:function(){return E},w:function(){return S},x:function(){return I},y:function(){return h},z:function(){return A}});let i="chevron-down",r="chevron-down",o="chevron-down",a="ellipsis-horizontal",s=16,l=240,u=100,c=160,d="rgb(0, 106, 255)",h=599,f="rgb(102, 74, 46)",g="rgb(153, 8, 56)",m="rgb(25, 128, 42)",p="rgb(255, 159, 64)",v="rgb(0, 178, 59)",k="rgb(242, 91, 61)",b="rgb(217, 54, 176)",D="rgb(135, 22, 217)",C="rgb(204, 0, 35)",x="rgb(38, 147, 255)",y="rgb(166, 124, 83)",w="rgb(18, 191, 148)",E="Square Sans Text",T=14,I="Square Sans Text",S=16,q="rgb(255, 191, 0)",z="x",V=240,N=160,A=240,$=160,H=240,M=160,P=6,R=8,L=26,_=2,j=2,O="chevron-right",W="chevron-right",F=4,B=320},39149:function(t,e,n){n.r(e),n.d(e,{market_context:function(){return s}});var i=n(54982),r=n(19655),o=n(18235),a=n(68742);let s=class{constructor(t){(0,i.r)(this,t),this.marketContextContentsChanged=(0,i.c)(this,"marketContextContentsChanged",7),this.marketContextEmptied=(0,i.c)(this,"marketContextEmptied",7),this.currentDialog=void 0,this.noVeil=!1,this.hidden=!1,this.animationEnterDuration=r.C,this.animationExitDuration=r.c,this.stack=[],this.totalCount=0,this.dialogMeta={}}currentDialogWatcher(t){this.stack.push(t),this.stack=[...this.stack]}stackWatcher(t){t.forEach(t=>{this.dialogMeta[t.type].count+=1,this.totalCount+=1}),0===t.length&&(this.hidden=!0,setTimeout(()=>{this.marketContextEmptied.emit()},this.animationExitDuration)),this.setContextVeil()}doesStackContainDialogThatRequiresVeil(t){let e=Object.entries(o.D).filter(([,t])=>t.veil).map(([t])=>(0,a.g)(`market-${t}`));return e.includes(t.tagName.toLowerCase())}setContextVeil(){this.el.hasAttribute("no-veil")||0===this.stack.length||(this.noVeil=!this.stack.some(t=>this.doesStackContainDialogThatRequiresVeil(t.el)))}stackHasDialog(t){return this.stack.some(e=>e.el===t)}modalLoadedEventHandler(t){let e=t.detail.dialog,n=t.detail.type;if(e.parentElement!==this.el||this.stackHasDialog(e))return;let i=this.generateDialogID(n);e.dialogID=i,e.id=e.id||i,this.currentDialog={el:e,type:n,dialogID:e.dialogID,id:e.id,index:this.stack.length,indexOfType:this.dialogMeta[n].count+1},this.marketContextContentsChanged.emit({action:"marketNewDialogOpened",currentDialog:this.currentDialog,stack:this.stack})}dialogDismissedEventHandler(t){t.defaultPrevented||t.target.parentElement!==this.el||this.close(t.detail.dialog.dialogID)}generateDialogID(t){return`${t}-${this.dialogMeta[t].count+1}`}getDialogByID(t){return this.stack.find(e=>e.dialogID===t)}open(t){return 0===this.stack.length&&(this.noVeil=!this.doesStackContainDialogThatRequiresVeil(t)),this.el.appendChild(t),Promise.resolve()}close(t){let e;let n=this.stack.indexOf(e);if(t?(e=this.stack.find(e=>e.dialogID===t))||console.warn(`Tried to close dialog with data-dialog-id "${t}" but none were found`):e=this.currentDialog,e){if("dialog"===e.type&&e.el.persistent)return Promise.resolve();setTimeout(()=>{var t;"function"==typeof(null===(t=null==e?void 0:e.el)||void 0===t?void 0:t.remove)&&e.el.remove(),this.stack.splice(n,1),this.stack=[...this.stack],this.marketContextContentsChanged.emit({action:"marketDialogClosed",currentDialog:e,stack:this.stack})},e.el.animationExitDuration)}return Promise.resolve()}closeCurrent(){return this.close(),Promise.resolve()}connectedCallback(){o.A.forEach(t=>{this.dialogMeta[t]={count:0}})}render(){return(0,i.h)(i.H,{key:"74249d4b98ff02a74d6095fd5530a44070a6639c",class:`market-context ${this.noVeil?"no-veil":""}`},(0,i.h)("slot",{key:"abb925fac07851860fbd2269b724668c9297a83b"}))}get el(){return(0,i.g)(this)}static get watchers(){return{currentDialog:["currentDialogWatcher"],stack:["stackWatcher"]}}};s.style=":host,::slotted(*),*{box-sizing:border-box}:host([disabled]){cursor:not-allowed !important;}:host([disabled]) *,:host([disabled]) ::slotted(*){cursor:not-allowed !important;pointer-events:none !important;}:host *{outline-color:var(--core-focus-ring-color)}:host(:focus-visible),::slotted(*:focus-visible){outline:var(--core-focus-ring-border-size) solid var(--core-focus-ring-color);outline-offset:var(--core-focus-ring-buffer-size)}::slotted(a),::slotted(button){border-radius:1px}:host{position:absolute;display:grid;justify-items:center;width:100vw;height:100%;animation:var(--core-animation-enter-transition-moderate-speed-duration)\n    market-fade-in\n    forwards\n    var(--core-animation-enter-transition-easing)}:host([hidden]){opacity:0%;animation-name:market-fade-out;animation-duration:var(--core-animation-exit-transition-moderate-speed-duration);animation-timing-function:var(--core-animation-exit-transition-easing)}:host>*{pointer-events:auto}:host(:not(.no-veil)){background-color:var(--core-surface-overlay-color);opacity:100%;pointer-events:auto}:host(.no-veil){pointer-events:none}@media screen and (min-width: 800px){::slotted(.market-modal-partial){align-self:center;margin:var(--modal-partial-vertical-screen-buffer-size) var(--modal-partial-horizontal-screen-buffer-size)}}::slotted(.market-dialog){align-self:center;width:calc(100% - (2 * var(--modal-dialog-horizontal-screen-buffer-size, 16px)))}"}}]);

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.