1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[403],{318:(e,t,n)=>{"use strict";n.d(t,{default:()=>u});var i=n(655),r=n(4519),a=n(3483),s=n.n(a),o=n(5496),l=n(784),d=n(1835);function c(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(e)}function u(e){var t,n,a,u,j,S,N,T,I,_;let{product:W}=e,{add:z,lines:A,unitPrice:C,discounts:M}=(0,l._$)(),[P,O]=(0,r.useState)(!1),[D,R]=(0,r.useState)(null),L=(0,r.useMemo)(()=>(0,d.Q)(W),[W]),q=null!=(a=null!=(n=null!=(t=null==L?void 0:L.options.find(e=>e.sku===D))?t:null==L?void 0:L.options.find(e=>3===e.years))?n:null==L?void 0:L.options[0])?a:null,E=A.find(e=>e.partNumber===W.partNumber),U=q?A.find(e=>e.partNumber===q.sku):null,V={productId:null!=(u=W.id)?u:null,partNumber:W.partNumber,name:W.name,unitMsrp:W.msrp,category:W.category,brand:null!=(j=W.brand)?j:"meraki",isLicense:null!=(S=W.isLicense)&&S,imageUrl:null!=(N=W.imageUrl)?N:null},F=q?p(q):null,Q=C({...V,quantity:1,addedAt:0}),Y=(0,l.Nk)(M,W.category,!1,!1,W.brand),$=Math.max(0,W.msrp-Q),B=Y>0&&Q<W.msrp,H=((null==L?void 0:L.isLicenseOnly)?0:Q)+(F?C({...F,quantity:1,addedAt:0}):0);return(0,i.jsxs)("div",{style:{display:"grid",gap:12},children:[!(null==L?void 0:L.isLicenseOnly)&&(0,i.jsxs)("div",{style:g,children:[(0,i.jsxs)("div",{style:f,children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{style:h,children:"MSRP"}),(0,i.jsx)("div",{style:{marginTop:3,fontSize:22,fontWeight:850,color:"var(--siv-ink)",opacity:(_=B)?.56:1,textDecoration:_?"line-through":"none",fontVariantNumeric:"tabular-nums"},children:c(W.msrp)})]}),B&&(0,i.jsxs)("span",{style:x,children:[Y,"% OFF"]})]}),(0,i.jsxs)("div",{style:y,children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{style:h,children:"Your price"}),(0,i.jsx)("div",{style:v,children:c(Q)})]}),B&&(0,i.jsxs)("div",{style:m,children:["You save ",c($)]})]})]}),L&&(0,i.jsxs)("div",{style:b,children:[(0,i.jsxs)("div",{style:{display:"grid",gap:5},children:[(0,i.jsx)("div",{style:k,children:L.title}),(0,i.jsx)("p",{style:{margin:0,fontSize:13,lineHeight:1.5,color:"var(--siv-ink)",opacity:.72},children:L.description})]}),(0,i.jsx)("div",{style:{display:"grid",gap:8,marginTop:12},children:L.options.map(e=>{var t,n,r;let a=e.sku===(null==q?void 0:q.sku),s=C({...p(e),quantity:1,addedAt:0}),o=(0,l.Nk)(M,e.category,!0)>0&&s<e.msrp;return(0,i.jsxs)("button",{type:"button",onClick:()=>R(e.sku),style:(n=a,{width:"100%",border:"1px solid ".concat(n?"var(--siv-forest)":"var(--siv-line)"),background:n?"rgba(27, 160, 215, 0.08)":"#fff",borderRadius:14,padding:"10px 12px",display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:12,textAlign:"left",cursor:"pointer"}),children:[(0,i.jsxs)("span",{style:{display:"grid",gap:2,minWidth:0},children:[(0,i.jsx)("span",{style:{fontSize:13,fontWeight:800,color:"var(--siv-ink)"},children:null!=(t=e.tier)?t:e.name}),(0,i.jsxs)("span",{style:{fontSize:11,color:"var(--siv-ink)",opacity:.62},children:[e.years,"Y \xb7 ",e.sku,e.tagline?" \xb7 ".concat(e.tagline):""]})]}),(0,i.jsxs)("span",{style:w,children:[(0,i.jsxs)("span",{style:{fontSize:11,fontWeight:800,color:"var(--siv-ink)",opacity:(r=o)?.52:.72,textDecoration:r?"line-through":"none",whiteSpace:"nowrap"},children:["MSRP ",c(e.msrp)]}),(0,i.jsx)("span",{style:{fontSize:14,fontWeight:950,color:a?"var(--siv-forest-deep)":"var(--siv-ink)",whiteSpace:"nowrap"},children:c(s)})]})]},e.sku)})})]}),(0,i.jsxs)("div",{style:{display:"flex",gap:10,flexWrap:"wrap",alignItems:"center"},children:[(0,i.jsx)(o.$n,{onClick:function(){(null==L?void 0:L.isLicenseOnly)||z(V),F&&z(F),O(!0),window.setTimeout(()=>O(!1),1500)},children:P?"â Added":E||U?"Add another (".concat(null!=(I=null!=(T=null==E?void 0:E.quantity)?T:null==U?void 0:U.quantity)?I:0," in cart)"):"".concat(L?"Add bundle to cart":"Add to cart"," â ").concat(c(H))}),(0,i.jsx)(s(),{href:"/cart",style:{textDecoration:"none"},children:(0,i.jsx)(o.$n,{variant:"secondary",children:"View cart â"})})]})]})}function p(e){return{productId:null,partNumber:e.sku,name:e.name,unitMsrp:e.msrp,category:e.category,brand:"meraki",isLicense:!0,imageUrl:null}}let g={border:"1px solid rgba(27, 160, 215, 0.22)",borderRadius:18,background:"linear-gradient(135deg, rgba(232,246,252,0.95), rgba(255,255,255,0.98))",padding:16,display:"grid",gap:12},f={display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:12},h={fontSize:11,fontWeight:900,letterSpacing:"0.1em",textTransform:"uppercase",color:"var(--siv-ink)",opacity:.56},y={borderTop:"1px solid var(--siv-line)",paddingTop:12,display:"flex",alignItems:"flex-end",justifyContent:"space-between",gap:12,flexWrap:"wrap"},v={marginTop:2,fontSize:30,lineHeight:1,fontWeight:950,color:"var(--siv-forest-deep)",letterSpacing:"-0.03em",fontVariantNumeric:"tabular-nums"},m={borderRadius:999,background:"rgba(27, 160, 215, 0.1)",color:"var(--siv-forest-deep)",fontSize:12,fontWeight:900,padding:"6px 10px"},x={border:"1px solid rgba(27, 160, 215, 0.22)",borderRadius:999,background:"rgba(27, 160, 215, 0.12)",color:"var(--siv-forest-deep)",fontSize:12,fontWeight:950,padding:"6px 10px",whiteSpace:"nowrap"},b={border:"1px solid var(--siv-line)",borderRadius:18,background:"linear-gradient(135deg, rgba(232,246,252,0.92), rgba(255,255,255,0.98))",padding:14},k={fontSize:11,fontWeight:900,letterSpacing:"0.1em",textTransform:"uppercase",color:"var(--siv-forest-deep)"},w={display:"grid",gap:3,justifyItems:"end",textAlign:"right",flexShrink:0}},1835:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i.Q5});var i=n(591)},3513:(e,t,n)=>{Promise.resolve().then(n.bind(n,318)),Promise.resolve().then(n.bind(n,7720)),Promise.resolve().then(n.t.bind(n,3483,23)),Promise.resolve().then(n.bind(n,9e3)),Promise.resolve().then(n.bind(n,3558))},3558:(e,t,n)=>{"use strict";n.d(t,{mfaChallengeAndVerifyDirect:()=>d,mfaChallengeDirect:()=>o,mfaVerifyDirect:()=>l});var i=n(6583);async function r(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{url:a,anonKey:s}=(0,i.W)(),o=new AbortController,l=setTimeout(()=>
1o.abort(),null!=(n=r.timeoutMs)?n:15e3);try{return await fetch("".concat(a,"/auth/v1").concat(e),{...t,signal:o.signal,headers:{"Content-Type":"application/json",apikey:s,Authorization:t.accessToken?"Bearer ".concat(t.accessToken):"Bearer ".concat(s),...t.headers||{}}})}finally{clearTimeout(l)}}async function a(e){let t="".concat(e.status," ").concat(e.statusText);try{let n=await e.json();t=n.error_description||n.msg||n.message||t}catch(e){}return Error(t)}async function s(e){var t;let{data:n}=await e.auth.getSession(),i=null==(t=n.session)?void 0:t.access_token;if(!i)throw Error("Not signed in.");return i}async function o(e,t){var n;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=await s(e),l=await r("/factors/".concat(t,"/challenge"),{method:"POST",accessToken:o,body:JSON.stringify({})},{timeoutMs:null!=(n=i.timeoutMs)?n:15e3});if(!l.ok)throw await a(l);return await l.json()}async function l(e,t){var n;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=await s(e),l=await r("/factors/".concat(t.factorId,"/verify"),{method:"POST",accessToken:o,body:JSON.stringify({challenge_id:t.challengeId,code:t.code})},{timeoutMs:null!=(n=i.timeoutMs)?n:15e3});if(!l.ok)throw await a(l);return await l.json()}async function d(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=await o(e,t.factorId,n),r=await l(e,{factorId:t.factorId,challengeId:i.id,code:t.code},n);try{await Promise.race([e.auth.setSession({access_token:r.access_token,refresh_token:r.refresh_token}),new Promise(e=>setTimeout(e,4e3))])}catch(e){}return r}}},e=>{e.O(0,[546,114,742,22,819,575,695,358],()=>e(e.s=3513)),_N_E=e.O()}]);
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.