PageSourceSearch

https://www.cinnabon.com/_next/static/chunks/7940.78dab31d12c968ec.js

js cinnabon.com collected 2026-09-24 09:21:30 UTC 3,061 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7940],{37940:function(e,t,a){a.r(t),a.d(t,{PDPQuantitySelector:function(){return y}});var i=a(27573),s=a(7653),l=a(98505),n=a(4148),r=a(48057),c=a(10607),d=a(93636),o=e=>{let{fill:t,width:a,height:s,label:l,onClick:n}=e;return(0,i.jsxs)("svg",{width:a,height:s,"aria-label":l,"aria-hidden":!0,onClick:n,viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{x:"0.5",y:"0.5",width:"43",height:"43",fill:"var(--colorBaseAlpha300)",id:"minus_qty_one"}),(0,i.jsx)("rect",{x:"0.5",y:"0.5",width:"43",height:"43",stroke:"var(--colorBaseAlpha300)",id:"minus_qty_two"}),(0,i.jsx)("path",{d:"M26.25 21.25C26.6642 21.25 27 21.5858 27 22C27 22.4142 26.6642 22.75 26.25 22.75C21.2529 22.75 23.211 22.75 17.75 22.75C17.3358 22.75 17 22.4142 17 22C17 21.5858 17.3358 21.25 17.75 21.25C23.211 21.25 21.2529 21.25 26.25 21.25Z",fill:"var(--colorBaseAlpha400)"})]})},u=e=>{let{fill:t,width:a,height:s,label:l,onClick:n}=e;return(0,i.jsxs)("svg",{width:a,height:s,"aria-label":l,"aria-hidden":!0,onClick:n,viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{width:"44",height:"44",fill:"var(--colorPrimary500)",id:"plus_qty"}),(0,i.jsx)("path",{d:"M22 17C22.4142 17 22.75 17.3358 22.75 17.75V21.25H26.25C26.6642 21.25 27 21.5858 27 22C27 22.4142 26.6642 22.75 26.25 22.75H22.75V26.25C22.75 26.6642 22.4142 27 22 27C21.5858 27 21.25 26.6642 21.25 26.25V22.75H17.75C17.3358 22.75 17 22.4142 17 22C17 21.5858 17.3358 21.25 17.75 21.25H21.25V17.75C21.25 17.3358 21.5858 17 22 17Z",fill:"white"})]})},h=a(15514),C=a(83125),p=a(20280),x=a(60329);let y=e=>{let{quantity:t,onChange:a,onChangeModifier:y}=e,{pdpAddIcon:w,pdpAddDisableIcon:v,pdpMinusIcon:m,pdpMinusDisableIcon:g}=h.assets,{t:j}=(0,l.$G)(),b=(0,x.TL)(),[q,_]=(0,s.useState)(t),{isAtomicComponent:f}=(0,n.Vb)(),k=q>=C.H$o,B=q<=C.XnB,A=k?v:w,H=B?g:m;(0,s.useEffect)(()=>{_(t)},[t]);let L=e=>{a(q+e),y(!0),b((0,p.OL)({productCount:q+e}))};return(0,i.jsxs)("div",{className:"pdpquantityselector",children:[(0,i.jsx)("p",{className:"qtyLabel",children:j("pdp.productDetailsPage.quantity.text")}),f?(0,i.jsx)(r.cr,{initialValue:q,testId:"qty",max:C.H$o,min:0,step:1,onChange:e=>{a(e),y(!0),b((0,p.OL)({productCount:e}))},variant:"secondary"}):(0,i.jsxs)("div",{className:"qtyChanger",children:[(0,i.jsx)(d.z,{title:"",onClick:()=>L(-1),disabled:B,ariaLabel:j("screenreader.reducequantity"),testid:"qty_decrease_icon",customClass:(0,c.Z)("pdpMinusIcon",{decreaseBtnAA:C.bCn&&!B}),icon:[(0,s.createElement)(o,{...H,key:null==H?void 0:H.id})]}),(0,i.jsx)("input",{type:"number",className:"qtyNumber",value:q,onChange:e=>{let t;let i=parseInt(e.target.value);a(t=i>=C.XnB&&i<=C.H$o?i:i?q:C.XnB),y(!0),b((0,p.OL)({productCount:t}))}}),(0,i.jsx)(d.z,{title:"",onClick:()=>L(1),ariaLabel:j("screenreader.addquantity"),disabled:k,customClass:(0,c.Z)("pdpPlusIcon",{increaseBtnAA:k}),testid:"qty_increase_icon",icon:[(0,s.createElement)(u,{...A,key:null==A?void 0:A.id})]})]})]})}}}]);

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.