PageSourceSearch

https://www.arduino.cc/pro/_next/static/chunks/2083.174ed989ff3ba38b.js

js arduino.cc collected 2026-09-24 07:19:29 UTC 16,283 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2083],{17083:(e,s,a)=>{a.d(s,{K:()=>n});var l=a(80263);let n=(0,a(53239).forwardRef)((e,s)=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 32 32",ref:s,...e,children:(0,l.jsx)("path",{fill:"currentColor",d:"M13 25a1 1 0 0 1-.71-.29l-7-7a1.004 1.004 0 0 1 1.42-1.42l6.29 6.3 13.29-13.3a1.004 1.004 0 0 1 1.42 1.42l-14 14A1 1 0 0 1 13 25"})}))},24805:(e,s,a)=>{a.r(s),a.d(s,{default:()=>T});var l=a(80263),n=a(99258),t=a(53239);a(37034);let i=t.createContext(null);function r(e){let{children:s}=e,a=(0,t.useContext)(i),[l,n]=(0,t.useState)(0),r=(0,t.useMemo)(()=>({parent:a,modalCount:l,addModal(){n(e=>e+1),a&&a.addModal()},removeModal(){n(e=>e-1),a&&a.removeModal()}}),[a,l]);return t.createElement(i.Provider,{value:r},s)}function c(e){let s,{modalProviderProps:a}={modalProviderProps:{"aria-hidden":!!(s=(0,t.useContext)(i))&&s.modalCount>0||void 0}};return t.createElement("div",{"data-overlay-container":!0,...e,...a})}function d(e){return t.createElement(r,null,t.createElement(c,e))}var o=a(17083),p=a(46842),h=a(29774),u=a(11230),m=a.n(u),x=a(25575);function _(e){let{value:s}=e;return"+"===s?(0,l.jsx)(o.K,{className:"green-color"}):"-"===s?(0,l.jsx)(p.x,{className:"red-color"}):(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:s}})}function v(e){let{title:s,description:a,values:n}=e,[i,r]=(0,t.useState)(!1);return(0,l.jsxs)("div",{className:"plans-features__row",onClick:()=>r(!i),children:[(0,l.jsx)("div",{className:"plans-features__col plans-features__col--wide",children:(0,l.jsxs)("div",{className:m()("plans-features__toggle",{"plans-features__toggle--active":i}),children:[(0,l.jsxs)("div",{className:"plans-features__title",children:[(0,l.jsx)(h.Z,{}),s]}),(0,l.jsx)("div",{className:"plans-features__description",children:a})]})}),(0,l.jsx)("div",{className:"plans-features__plans-row",children:n.map((e,s)=>(0,l.jsxs)("div",{className:"plans-features__col plans-features__col--plan",children:[(0,l.jsx)(_,{value:e.value||"".concat(e)}),e.tooltip&&(0,l.jsx)(x.A,{value:e.tooltip})]},e.value+s))})]},s)}let j=function(e){return(0,l.jsxs)("div",{className:"plans-features",children:[(0,l.jsxs)("div",{className:"plans-features__heading plans-features__row",children:[(0,l.jsx)("div",{className:"plans-features__col plans-features__col--wide",children:(0,l.jsx)("span",{className:"features-label",children:"FEATURES"})}),(0,l.jsx)("div",{className:"plans-features__plans-row",children:e.plans.map(e=>e.hideRow?null:(0,l.jsx)("div",{className:"plans-features__col plans-features__col--plan",style:e.borderColor?{borderColor:e.borderColor}:{},children:e.name},e.id))})]}),e.features&&Object.keys(e.features).map(s=>s?(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"plans-features__row",children:(0,l.jsx)("div",{className:"plans-features__col plans-features__col--wide",children:(0,l.jsx)("span",{className:"features-label",children:s})})}),(0,l.jsx)("div",{className:"plans-features__content",children:e.features[s].map(e=>(0,t.createElement)(v,{...e,key:e.title}))})]},s):null)]})},f={"For individuals":(0,l.jsx)(function(){return(0,l.jsx)("svg",{viewBox:"0 0 41 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M20.5 2.5a17.5 17.5 0 1 0 0 35 17.5 17.5 0 0 0 0-35Zm0 32.5a14.85 14.85 0 0 1-10-3.75 10.087 10.087 0 0 1 9.813-7.5h.274a10.088 10.088 0 0 1 9.913 7.5 14.85 14.85 0 0 1-10 3.75Zm-5.625-19.375a5.625 5.625 0 1 1 5.762 5.625h-.274a5.637 5.637 0 0 1-5.488-5.625Zm17.5 13.488a12.375 12.375 0 0 0-7.087-6.963 8.05 8.05 0 0 0 3.337-6.525 8.125 8.125 0 1 0-15.378 3.66 8.05 8.05 0 0 0 2.44 2.865A12.374 12.374 0 0 0 8.6 29.113 14.85 14.85 0 0 1 5.5 20a15 15 0 1 1 30 0 14.85 14.85 0 0 1-3.1 9.113h-.025Z",fill:"currentColor"})})},{}),"For business":(0,l.jsx)(function(){return(0,l.jsx)("svg",{viewBox:"0 0 35 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M33.75 5h-10V3.75A3.76 3.76 0 0 0 20 0h-5a3.76 3.76 0 0 0-3.75 3.75V5h-10A1.254 1.254 0 0 0 0 6.25v20a1.254 1.254 0 0 0 1.25 1.25h32.5A1.254 1.254 0 0 0 35 26.25v-20A1.254 1.254 0 0 0 33.75 5Zm-20-1.25A1.254 1.254 0 0 1 15 2.5h5a1.254 1.254 0 0 1 1.25 1.25V5h-7.5V3.75ZM32.5 25h-30V12.775l10 2v1.475a1.254 1.254 0 0 0 1.25 1.25h7.5a1.254 1.254 0 0 0 1.25-1.25v-1.475l10-2V25Zm0-14.775-11.5 2.3a1.248 1.248 0 0 0-1 1.225V15h-5v-1.25a1.247 1.247 0 0 0-1-1.225l-11.5-2.3V7.5h30v2.725Z",fill:"currentColor"})})},{}),"For school":(0,l.jsx)(function(){return(0,l.jsx)("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M37.5 16.112v-.075a1.25 1.25 0 0 0-.688-.925l-16.25-7.5a1.25 1.25 0 0 0-1.05 0l-16.25 7.5a1.25 1.25 0 0 0 0 2.275L8.75 20v6.7a1.25 1.25 0 0 0 .725 1.137l10 4.613a1.25 1.25 0 0 0 1.05 0l10-4.613a1.25 1.25 0 0 0 .725-1.137V20L35 18.275V27.5a1.25 1.25 0 0 0 2.5 0V16.25a.46.46 0 0 0 0-.138Zm-8.75 9.725L20 29.875l-8.75-4.038v-4.75l8.224 3.75a1.25 1.25 0 0 0 1.05 0l8.226-3.75v4.75ZM20 22.375 6.737 16.25 20 10.125l13.262 6.125L20 22.375Z",fill:"currentColor"})})},{})},g=function(e){let{active:s,onClick:a,plans:n}=e;return(0,l.jsx)("div",{className:"plans-nav",children:(0,l.jsx)("ul",{children:n.map((e,n)=>(0,l.jsxs)("li",{onClick:()=>a(e.name),className:m()("plans-nav__item",{active:s===e.name}),children:[f[e.name]||null,(0,l.jsx)("span",{children:e.name})]},e.id))})})};var w=a(66079),N=a(77358),y=a(42596);w.A.use([N.Vx,N.dK]);let b={observer:!0,observeParents:!0,observeSlideChildren:!0,centeredSlidesB
1ounds:!0,pagination:{el:".plans-prices .swiper-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{0:{slidesPerView:1.2,centeredSlides:!0,loop:!0,spaceBetween:16,initialSlide:1},768:{loop:!1,initialSlide:2,slidesPerView:2,slidesPerGroup:2,spaceBetween:16,touchRatio:1},1024:{slidesPerView:4,slidesPerGroup:4,spaceBetween:16,touchRatio:0}}},C=e=>{let{onChange:s,type:a,hideTypes:n}=e;return n?null:(0,l.jsxs)("div",{className:"plans-prices__toggle",children:[(0,l.jsxs)("div",{className:m()({active:"yearly"===a}),onClick:()=>s("yearly"),children:[(0,l.jsxs)("span",{children:[(0,l.jsx)("span",{children:"BILLED"})," YEARLY"]}),(0,l.jsx)("span",{className:"best-value best-value--percent",children:"SAVE 15%"})]}),(0,l.jsx)("div",{className:m()({active:"monthly"===a}),onClick:()=>s("monthly"),children:(0,l.jsxs)("span",{children:[(0,l.jsx)("span",{children:"BILLED"})," MONTHLY"]})})]})},k=e=>{let{seats:s}=e;return(0,l.jsx)("div",{className:"plans-prices__seats",children:s.map(e=>(0,l.jsxs)("div",{className:"plans-prices__seats-item",children:[(0,l.jsxs)("div",{className:"plans-prices__seats-title",children:[(0,l.jsx)("span",{children:e.title}),e.discount&&(0,l.jsxs)("span",{className:"best-value",children:["SAVE ",e.discount]})]}),(0,l.jsx)("div",{className:"plans-prices__seats-price",dangerouslySetInnerHTML:{__html:e.price}})]},e.title))})};function S(e){let{planLink:s,onClick:a,type:n,plan:t}=e,i=function(e){let s=e.match(/(?:\$\s*\d+(?:\.\d{1,2})?|\d+(?:\.\d{1,2})?\s*\$|\$\d+(?:\.\d{1,2})?)/);if(s){let e=12*parseFloat(s[0].replace(/[^0-9.]/g,""));return(e=Math.round(e))>100&&(e=10*Math.round(e/10)),e}return null}(t[n]);return(0,l.jsxs)("div",{className:"plans-prices__footer",children:[t[n]&&(0,l.jsx)("div",{className:"plans-prices__price",dangerouslySetInnerHTML:{__html:t[n]}}),"yearly"===n&&i&&(0,l.jsxs)("div",{className:"plans-prices__price plans-prices__price--total",children:[(0,l.jsxs)("b",{children:["$ ",i]})," billed yearly"]}),(0,l.jsx)("div",{className:"plans-prices__buttons",children:(0,l.jsx)("a",{className:"content-page__button primary",href:s,onClick:a,children:t.ctaText||"Purchase"})})]})}let L=e=>{let{addons:s,type:a,single:n}=e;return(0,l.jsxs)("div",{className:"plans-prices__addons",children:[(0,l.jsx)("div",{className:"plans-prices__title",children:"Customize your plan with optional add-ons"}),(0,l.jsx)("div",{className:"plans-prices__addons-list",children:s.map(e=>{let s=e.features.split("\n");return(0,l.jsxs)("div",{className:"plans-prices__addons-item",children:[(0,l.jsxs)("div",{className:"plans-prices__addons__title-row",children:[(0,l.jsx)("div",{className:"plans-prices__addons-title",children:(0,l.jsx)("span",{children:e.title})}),(0,l.jsx)("div",{className:"plans-prices__addons-price",dangerouslySetInnerHTML:{__html:e[a]}})]}),(0,l.jsx)("ul",{className:m()("plans-prices__list plans-prices__list--addons",{"plans-prices__list--single":n}),children:s.map((e,s)=>(0,l.jsxs)("li",{className:"plans-prices__list-item",children:[(0,l.jsx)(o.K,{}),(0,l.jsx)("span",{children:e})]},s))})]},e.title)})}),(0,l.jsx)("div",{className:"plans-prices__addons-footer",children:"Add-ons can be selected during the checkout process"})]})},M=e=>{var s,a,n,t,i,r,c,d;let{name:p,type:h,plan:u}=e,_="".concat("https://digital-store.arduino.cc","/purchase/plan?plan=").concat(u.name.replace(" ",""),"&frequency=").concat(h);"free"===u.name&&(_="".concat("https://app.arduino.cc","?get-started=true")),"For business"===p&&(_="".concat("https://digital-store.arduino.cc","/enterprise/purchase/plan?frequency=").concat(h)),"For school"===p&&(_="".concat("https://digital-store.arduino.cc","/education/purchase")),u.customUrl&&(_=u.customUrl);let v=u.features.split("\n"),j=async e=>{var s;null==(s=window)||s.dataLayer.push({event:"select_plan",plan_type:p,plan_level:u.name,billing_type:h}),e.preventDefault(),window.location.href=_},f=null==(s=u.borderColor)?void 0:s.replace("#","");return(0,l.jsxs)("div",{className:m()("plans-prices__item swiper-slide",{"plans-prices__item--seats":null==(a=u.seats)?void 0:a.length,"plans-prices__item--addons":null==(n=u.add
1ons)?void 0:n.length,["color-".concat(f)]:"".concat(u.borderColor)}),children:[(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:".color-".concat(f,"{ border-color: ").concat(u.borderColor,"}")}}),(0,l.jsxs)("div",{className:"plans-prices__content",children:[(0,l.jsxs)("div",{className:"plans-prices__col",children:[(0,l.jsxs)("div",{className:"plans-prices__title",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{children:u.name}),u.tooltip&&(0,l.jsx)(x.A,{value:u.tooltip,className:"tooltip-trigger--wide"})]}),u.bestValue&&"yearly"===h&&(0,l.jsx)("span",{className:"best-value",children:"Best value"})]}),(0,l.jsx)("ul",{className:m()("plans-prices__list",{"hide-check":v.length<=1}),children:v.map((e,s)=>(0,l.jsxs)("li",{className:"plans-prices__list-item",children:[(0,l.jsx)(o.K,{}),(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})]},s))}),!!(null==(t=u.addons)?void 0:t.length)&&(0,l.jsx)(S,{planLink:_,onClick:j,type:h,plan:u}),(null==(i=u.labelWithIconList)?void 0:i.length)>0&&(0,l.jsx)(y.A,{items:u.labelWithIconList})]}),!!(null==(r=u.seats)?void 0:r.length)&&(0,l.jsx)(k,{seats:u.seats}),!!(null==(c=u.addons)?void 0:c.length)&&(0,l.jsx)(L,{addons:u.addons,type:h,single:1===u.add
1ons.length})]}),!(null==(d=u.addons)?void 0:d.length)&&(0,l.jsx)(S,{planLink:_,onClick:j,type:h,plan:u})]},u.id)},A=e=>{let[s,a]=(0,t.useState)(),[n,i]=(0,t.useState)("yearly");return(0,t.useEffect)(()=>{null==s||s.destroy(),a(new w.A(".swiper-container",b))},[e.plans]),(0,l.jsxs)("div",{className:"plans-prices swiper-container",children:[(0,l.jsx)(C,{onChange:e=>{i(e)},type:n,hideTypes:e.hideTypes}),(0,l.jsx)("div",{className:"plans-prices__row swiper-wrapper ",children:e.plans.map(s=>"hide"===s[n]?null:(0,l.jsx)(M,{plan:s,name:e.name,type:n},s.id))}),(0,l.jsx)("div",{className:"carousel carousel--plans-prices",children:(0,l.jsx)("div",{className:"swiper-pagination"})})]})},I=function(e){return(0,l.jsx)("div",{className:"content-page two-column plans-faq",children:(0,l.jsx)("div",{className:"main-container",children:(0,l.jsx)("div",{className:"content-page__content",children:(0,l.jsxs)("div",{className:"content-page__text-box",children:[(0,l.jsx)("div",{className:"content-page__title",children:e.faqTitle}),(0,l.jsxs)("div",{className:"two-column__list",children:[(0,l.jsx)("div",{className:"two-column__item markdown",dangerouslySetInnerHTML:{__html:e.faqColumn1}}),(0,l.jsx)("div",{className:"two-column__item markdown",dangerouslySetInnerHTML:{__html:e.faqColumn2}})]})]})})})})},E={individuals:"For individuals",business:"For business",school:"For school"},T=function(e){let{plans:s}=e,[a,i]=(0,t.useState)({active:"For individuals",data:s[0]}),r=(0,t.useCallback)(e=>{let l=s.find(s=>s.name===e)||s[0];i({...a,active:e,data:l})},[]);return(0,t.useEffect)(()=>{var e;let s=null==(e=window.location.hash)?void 0:e.replace("#","");s&&("individuals"===s||"school"===s||"business"===s)&&(r(E[s]||"For individuals"),history.replaceState({},document.title,"."))},[]),(0,l.jsx)(d,{children:(0,l.jsxs)("div",{className:"plans",children:[(0,l.jsx)(g,{active:a.active,onClick:r,plans:s}),(0,l.jsxs)("div",{className:"plans-content",children:[(0,l.jsx)(A,{plans:a.data.plans,hideTypes:a.data.hideTypes,active:a.active,name:a.data.name}),(0,l.jsx)("div",{className:"plans-additional",children:a.data.additionalInfo&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.H,{}),(0,l.jsx)("div",{className:"plans-additional__content",dangerouslySetInnerHTML:{__html:a.data.additionalInfo}})]})}),(0,l.jsx)(j,{...a.data})]}),(0,l.jsx)("div",{className:"plans-annotation__wrapper",children:(0,l.jsx)("div",{className:"plans-annotation",dangerouslySetInnerHTML:{__html:a.data.annotation}})}),(0,l.jsx)("div",{className:"main-container",children:(0,l.jsx)(I,{...a.data})})]})})}},25575:(e,s,a)=>{a.d(s,{A:()=>i});var l=a(80263),n=a(53239);let t=(0,n.forwardRef)((e,s)=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 32 32",ref:s,...e,children:(0,l.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M19 7.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m-5.42 19.412a1 1 0 0 0 1.04-.132l5-4a1.001 1.001 0 1 0-1.24-1.56l-3 2.4 1.64-10.42a1 1 0 0 0-1.59-1l-4 3a1 1 0 1 0 1.2 1.6l2-1.53L13 25.85a1 1 0 0 0 .58 1.062",clipRule:"evenodd"})})),i=function(e){let{value:s,className:a,popoverPlacement:i}=e,[r,c]=(0,n.useState)(!1),d=(0,n.useRef)(null);return(0,l.jsxs)("span",{className:"tooltip-trigger ".concat(a||""),style:{position:"relative",display:"inline-block"},children:[(0,l.jsx)("span",{ref:d,className:"tooltip-trigger__trigger",onClick:()=>c(!r),onBlur:()=>c(!1),tabIndex:0,role:"button","aria-expanded":r,children:(0,l.jsx)(t,{})}),r&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"tooltip-trigger__overlay",onClick:()=>c(!1),style:{position:"fixed",inset:0,zIndex:9}}),(0,l.jsx)("div",{className:"tooltip-trigger__popover",style:{position:"absolute",zIndex:10,["left"===i?"right":"left"]:"100%",top:"50%",transform:"translateY(-50%)",background:"#fff",border:"1px solid #dae3e3",borderRadius:"4px",padding:"0.75rem",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",minWidth:"200px",fontSize:"0.875rem"},children:s})]})]})}},29774:(e,s,a)=>{a.d(s,{Z:()=>n});var l=a(80263);let n=(0,a(53239).forwardRef)((e,s)=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 32 32",ref:s,...e,children:(0,l.jsx)("path",{fill:"currentColor",d:"m20.71 15.71-4 4a1 1 0 0 1-1.42 0l-4-4a1 1 0 0 1-.21-1.09A1 1 0 0 1 12 14h8a1 1 0 0 1 .92.62 1 1 0 0 1-.21 1.09"})}))},42596:(e,s,a)=>{a.d(s,{A:()=>p});var l=a(80263),n=a(53239),t=a(11230),i=a.n(t),r=a(24010),c=a.n(r),d=a(7297);let o=e=>{let{icon:s,label:a,url:n}=e;return n?(0,l.jsxs)(d.A,{to:n,className:"label-with-icon-list__item",children:[(0,l.jsx)(c(),{src:s.url,alt:s.alt||a,width:18,height:18}),(0,l.jsx)("span",{children:a})]}):(0,l.jsxs)("div",{className:"label-with-icon-list__item",children:[(0,l.jsx)(c(),{src:s.url,alt:s.alt||a,width:18,height:18}),(0,l.jsx)("span",{children:a})]})},p=e=>{let{items:s,dark:a}=e;return(0,l.jsx)("div",{className:i()("label-with-icon-list",{"label-with-icon-list--dark":!0}),children:s.map((e,s)=>(0,n.createElement)(o,{...e,key:"labelWithIcon-".concat(s)}))})}},78123:(e,s,a)=>{a.r(s),a.d(s,{default:()=>l});function l(e){let{src:s,width:a,quality:l}=e;if(s.startsWith("/"))return s;let n=["width=".concat(a),"quality=".concat(l||60),"format=auto"].join(",");return"https://".concat("arduino.cc","/cdn-cgi/image/").concat(n,"/").concat(s.indexOf("?")>0?s.split("?")[0]:s)}}}]);

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.