PageSourceSearch

https://formlabs.com/_next/static/chunks/7011.ac22754441f1e586.js

js formlabs.com collected 2026-09-24 08:35:00 UTC 58,717 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7011],{329:e=>{e.exports={upperSeparator:"MaterialsComparePage_upperSeparator__av8vm",comparedProductSelect:"MaterialsComparePage_comparedProductSelect__RVNwD"}},4307:e=>{e.exports={"resellers-form":"Forms_resellers-form__kiGUf",postfix:"Forms_postfix__QAJOv",button:"Forms_button__LeGEe",error:"Forms_error__sOWbu"}},6479:e=>{e.exports={"blog-content":"LegacyBlogContent_blog-content__0z__k",alt:"LegacyBlogContent_alt__l3dwO",even:"LegacyBlogContent_even__GAxjD"}},9743:(e,t,l)=>{"use strict";l.d(t,{A:()=>g});var i,r=l(37876),a=l(14232),n=l(77328),s=l.n(n),o=l(12028),u=l(87904),c=l(88317),d=l(11547),m=l(28131),p=l(1497),h=l(34846);let f=(0,u.w)(((i=class extends a.PureComponent{render(){let{t:e}=this.props,{path:t}=this.context;return(0,r.jsxs)(a.Fragment,{children:[(0,r.jsxs)(s(),{children:[(0,r.jsx)("title",{children:e("Page Not Found")}),(0,r.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,r.jsx)(c.wn,{hasContainer:!0,marginBefore:"4rem",children:(0,r.jsxs)(c.xA,{direction:"x",gutters:"margin",primaryAlignment:"align-center",secondaryAlignment:"align-middle",children:[(0,r.jsx)(c.fh,{mediumSize:10,mediumOrder:2,children:(0,r.jsx)(p.Ce,{src:"https://formlabs-media.formlabs.com/filer_public/8d/d8/8dd8471f-d78c-41bd-b73f-9e39b08be580/404.mp4",videoThumb:"/404.jpg",autoPlay:!0,loop:!1})}),(0,r.jsx)(c.fh,{mediumSize:10,mediumOrder:1,secondaryAlignment:"align-self-bottom",children:(0,r.jsxs)("div",{style:{marginBottom:"8rem"},children:[(0,r.jsx)(d.Y9,{level:2,displayAs:3,children:e("Sorry, that page cannot be found")}),(0,r.jsx)(h.x6,{children:(0,r.jsxs)("p",{children:["You might want to start over at the"," ",(0,r.jsx)(m.N_,{to:t,children:"Formlabs home page"})," to find what you are looking for."]})})]})})]})}),(0,r.jsx)(c.wn,{marginBefore:"4rem"})]})}}).contextType=o.A,i)),g=(0,h.CI)()(f)},14950:(e,t,l)=>{"use strict";l.d(t,{Q:()=>d,X:()=>m});var i,r=l(37876),a=l(89099),n=l(14232),s=l(98477),o=l(27331);let u=[/\/company\/contact/,/\/products\/*/],c=null!=(i=(0,o._)("FL_PUBLIC_SALES_CHATBOT_URL"))?i:"https://sales-chatbot.formlabs.com/overlay",d=e=>{let{forceStart:t=!1}=e,[l,i]=(0,n.useState)(t),[o,d]=(0,n.useState)(null),{asPath:m}=(0,a.useRouter)();return((0,n.useEffect)(()=>{let e=e=>{var t;let l=null==(t=c.match(/^https?:\/\/[^/]+/))?void 0:t[0];l&&e.origin===l&&"chatbot:close"===e.data&&i(!1)};return window.addEventListener("message",e),d(window.document.getElementById("chatbot-modal")),()=>{window.removeEventListener("message",e)}},[]),u.some(e=>RegExp("^(?:/[^/]+)?".concat(e.source,"/?(?:\\?.*)?$")).test(m)))?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{onClick:()=>{i(!0)},type:"button",className:"fixed bottom-4 right-4 z-[1000] flex items-center justify-center rounded-full bg-[#0061DC] p-4 text-white",children:(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("title",{children:"Formlabs Chatbot"}),(0,r.jsx)("path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"}),(0,r.jsx)("path",{d:"M7 11h10"}),(0,r.jsx)("path",{d:"M7 15h6"}),(0,r.jsx)("path",{d:"M7 7h8"})]})}),o&&(0,s.createPortal)((0,r.jsxs)(r.Fragment,{children:[l&&(0,r.jsx)("button",{type:"button","aria-label":"Close chatbot",className:"fixed inset-0 z-[2999] cursor-default bg-transparent",onClick:()=>i(!1)}),(0,r.jsx)("iframe",{className:"fixed bottom-0 z-[3000] h-[66dvh] w-screen rounded rounded-t border-t-2 border-solid border-gray-700 bg-white md:bottom-4 md:right-4 md:h-[650px] md:w-[500px] md:rounded md:border-2",style:{display:l?"block":"none"},title:"chatbot",src:c})]}),o)]})},m=e=>"true"===(0,o._)("FL_PUBLIC_EMBEDDED_MESSAGING_ENABLED")&&!e},22319:e=>{e.exports={banner:"NotificationBanner_banner__LhG66"}},30017:e=>{e.exports={title:"Compare_title__WJXwj",titleText:"Compare_titleText__3DfJT",buttonIcon:"Compare_buttonIcon__N_imp"}},37474:(e,t,l)=>{"use strict";l.d(t,{A:()=>u});var i=l(37876);l(14232);var r=l(71410),a=l(9712),n=l(88317),s=l(22319),o=l.n(s);let u=e=>{let{startDate:t,endDate:l,message:s}
1=e,u=new Date((0,r.A)(t)),c=new Date((0,r.A)(l));return(0,a.A)(Date.now(),{start:u,end:c})?(0,i.jsx)("div",{role:"banner",className:o().banner,children:(0,i.jsx)(n.xA,{direction:"x",hasContainer:!0,children:(0,i.jsx)(n.fh,{smallSize:24,children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:s}})})})}):null}},37982:e=>{e.exports={"social-share-links":"SocialShareButtons_social-share-links__TiC9v","social-button":"SocialShareButtons_social-button__lG17y","social-icons":"SocialShareButtons_social-icons__cy_Cs"}},42634:()=>{},44915:e=>{e.exports={"resource-posts-list":"Resources_resource-posts-list__isR3g","collection-list-container":"Resources_collection-list-container__HfLpU","collection-list":"Resources_collection-list__mcUcj","collection-selected":"Resources_collection-selected__kwqbR","selector-wrapper":"Resources_selector-wrapper__n7KRv","single-collection-list":"Resources_single-collection-list__bJUl6","single-item":"Resources_single-item__4LQP9","featured-title":"Resources_featured-title__JFTOE","featured-copy":"Resources_featured-copy___UmMd","stories-header":"Resources_stories-header__sTlno","filter-stories":"Resources_filter-stories__vJX5o",selected:"Resources_selected__yRM_a",posts:"Resources_posts__ZaUt7"}},47397:e=>{e.exports={"all-posts":"Blog_all-posts__6byyd",byline:"Blog_byline__m7GpS",item:"Blog_item__y4x_y",label:"Blog_label__vF2vd",tagsItem:"Blog_tagsItem__yo4Vs",icon:"Blog_icon__lPocA","single-post-wrapper":"Blog_single-post-wrapper__gwfPK","related-posts":"Blog_related-posts__eWXaJ","related-posts-header":"Blog_related-posts-header__ikuzy","related-post":"Blog_related-post__hcD0i","related-post-cell":"Blog_related-post-cell__Rv6du"}},47413:(e,t,l)=>{"use strict";l.d(t,{r:()=>f});var i=l(37876),r=l(15039),a=l.n(r),n=l(34846),s=l(28131),o=l(33191),u=l.n(o),c=l(14232),d=l(38815),m=l(66447);let p={openModal:!1,hasLocalPage:!1,redirectPath:"/",hideModal:()=>void 0},h="ui-font-display ui-whitespace-nowrap ui-rounded-md ui-border ui-border-solid ui-px-4 ui-py-2 ui-text-xs ui-font-semibold ui-uppercase",f=e=>{let{countrySite:t,allHrefs:l,countries:r,children:o}=e,{openModal:f,hasLocalPage:g,redirectPath:x,hideModal:v}=(e=>{let{countrySite:t,allHrefs:l,countries:i}=e,[r,a]=(0,c.useState)(p),n=(0,c.useCallback)(()=>a(p),[a]);return(0,c.useEffect)(()=>{var e,r;let s="true"===u().get(d.D5),o=null==(e=u().get(d.N6))?void 0:e.toLowerCase();if(s||!o||(0,m.H5)())a(p);else if(!t.allowedCountries.find(e=>e.iso&&e.iso.toLowerCase()===o)){let e=(0,m.Q5)(o,"",l),t=i.find(e=>{let{code:t}=e;return t.toLowerCase()===o}),s=null!=(r=null==t?void 0:t.path)?r:"/",u=new URL(e||s,"https://formlabs.com/");(0,m.NW)(),a({openModal:!0,hasLocalPage:!!e,redirectPath:u.pathname,hideModal:n})}},[]),r})({countrySite:t,countries:r,allHrefs:l}),{t:b}=(0,n.Bd)();return f?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"ui-reset ui-fixed ui-inset-0 ui-overflow-hidden",children:o}),(0,i.jsx)("div",{className:"ui-reset ui-fixed ui-top-0 ui-left-0  ui-bottom-0 ui-right-0 ui-overflow-hidden ui-bg-black/50 ui-flex ui-justify-center ui-content-center ui-flex-wrap ui-px-4",children:(0,i.jsxs)("div",{className:"ui-bg-white ui-flex ui-flex-col ui-rounded-2xl ui-p-6 ui-gap-7 ui-max-w-md ui-text-center",tabIndex:0,children:[(0,i.jsxs)("div",{className:"ui-font-sans ui-flex ui-gap-4 ui-flex-col ui-items-center ui-flex-wrap",children:[(0,i.jsx)("img",{src:"/countryredirect.svg",width:160,height:"160",alt:"There are alternate versions of formlabs pages offered for different locale"}),g&&(0,i.jsx)("p",{children:b("A version of this page is available for your region.")}),!g&&(0,i.jsx)("p",{children:b("This content is not available in your region, but you can explore local options or visit your regional homepage.")})]}),(0,i.jsxs)("div",{className:"ui-flex ui-gap-2 ui-flex-col",children:[(0,i.jsx)(s.N_,{to:x,className:a()(h,"ui-border-transparent","ui-bg-fl-accent-color-core","ui-text-white"),onClick:()=>v(),children:b("Go to the regional site")}),(0,i.jsx)("button",{className:a()(h,"ui-border-black","ui-text-black"),onClick:()=>v(),children:b("Stay here")})]})]})})]}):o}},47539:e=>{e.exports={press_list:"Press_press_list__w7d2_",date:"Press_date__MmfPW",eyebrow:"Press_eyebrow__JDzAP","outlet-name":"Press_outlet-name__3_1sN","pagination-wrapper":"Press_pagination-wrapper__kbiJC","pagination-button":"Press_pagination-button__5VXKG","release-section":"Press_release-section__hfhaH",loading:"Press_loading__hZ2Q_","draft-pill":"Press_draft-pill__KcsLv","draft-notification":"Press_draft-notification__3ySxT",press_release:"Press_press_release___gZSh"}},48332:(e,t,l)=>{"use strict";l.r(t),l.d(t,{BlogPost:()=>eB,CastingHousesList:()=>
1o,CountrySelection:()=>e$.Ay,EventsList:()=>eZ,FeaturedResource:()=>te,LegacyBlogContent:()=>eW,MaterialSelector:()=>c,MaterialsComparePage:()=>ee,MaterialsHub:()=>ep,Meshy:()=>ef,NotificationBanner:()=>eg.A,PressCoveragesList:()=>e0,PressRelease:()=>e4,PressReleasesList:()=>e8,ResellerForm:()=>eY,ResourcePostsList:()=>tl,RoiCalculator:()=>ev,SubCollectionList:()=>tr});var i=l(37876),r=l(14232),a=l(18847),n=l.n(a);let s=n()(()=>Promise.all([l.e(2844),l.e(3913)]).then(l.bind(l,72482)),{loadableGenerated:{webpack:()=>[72482]},ssr:!1,loading:()=>null}),o=e=>(0,i.jsx)(s,{...e}),u=n()(()=>Promise.all([l.e(8130),l.e(8127)]).then(l.bind(l,68978)),{loadableGenerated:{webpack:()=>[68978]},ssr:!1,loading:()=>null}),c=e=>(0,i.jsx)(u,{...e});var d=l(15039),m=l.n(d),p=l(7766),h=l.n(p),f=l(65984),g=l(34846),x=l(47173),v=l(73022),b=l(8904),y=l(48011),_=l(33085),j=l(81077);let w=e=>(0,r.useMemo)(()=>(e||[]).filter(e=>!!e),[e]),S=e=>(0,r.useMemo)(()=>(e||[]).filter(e=>!!e),[e]),k=e=>{let{products:t,filters:l,activeFilters:i}=e;return(0,r.useMemo)(()=>i.reduce((e,t)=>{let i=l.find(e=>e.urlParamName===t.filterId);if((null==i?void 0:i.urlParamName)==="price")e=e.filter((e=>t=>{var l;return!!(null==(l=t.ecommerceData)?void 0:l.price)&&t.ecommerceData.price>=e[0]&&t.ecommerceData.price<=e[1]})(t.selectedValues.map(e=>Number(e))));else if((null==i?void 0:i.filterStyle)===x.l2b.Range)e=e.filter(((e,t)=>l=>((null==l?void 0:l.materials)||[]).some(l=>{var i;return null==l||null==(i=l.measurements)?void 0:i.some(l=>l&&(null==l?void 0:l.abbreviation)===t&&null!==l.metricValue&&void 0!==l.metricValue&&l.metricValue>=e[0]&&l.metricValue<=e[1])}))(t.selectedValues.map(e=>Number(e)),i.urlParamName));else if(null==i?void 0:i.urlParamName){let l,r=(e=>({category:"family",compatibilities:"compatablePrinters",color:"colors",biocompatibilities:"bioCompatibility",characteristics:"characteristicsIds",applications:"applicationsIds",print_technology:"printTechnology",layer_thickness:"minLayerThickness"})[e]||e)(i.urlParamName);e=e.filter((l=t.selectedValues,e=>{let t=(e.materials||[]).flatMap(e=>null==e?void 0:e[r]).filter(e=>!!e).map(e=>String(e));return l.some(e=>t.includes(e))}))}return e},t),[t,l,i])},N={RELEASE_DATE:"release-date",PRICE:"price",TITLE:"title",POPULAR:"popular"},C=["popular","price","title","Ultimate Tensile Strength","Heat Deflection Temp. @ 1.8 MPa","Heat Deflection Temp. @ 0.45 MPa","Flexural Strength","Flexural Modulus","Elongation at Break","Tensile Modulus","Shore Hardness"],I=e=>{let{t}=(0,g.Bd)();return(0,r.useMemo)(()=>{let l=Array.from(new Map(e.flatMap(e=>(e.materials||[]).filter(e=>null!=e).flatMap(e=>(e.measurements||[]).filter(e=>null!=e))).map(e=>[e.name,e])).values()).map(e=>({id:e.name||"",name:e.displayName||"",order:"highest",orderLabel:t("highest")}));return[{id:N.POPULAR,name:t("Featured"),order:"highest",orderLabel:""},{id:N.RELEASE_DATE,name:t("Latest"),order:"highest",orderLabel:t("highest")},{id:N.PRICE,name:t("Price"),order:"lowest",orderLabel:t("lowest")},{id:N.TITLE,name:t("A-Z"),order:"lowest",orderLabel:""},...l].filter(e=>C.includes(e.id))},[e,t])};var P=l(53492),A=l(85615),L=l(54832),T=l(27331);let E=()=>"".concat((0,T._)("FL_PUBLIC_MAGENTO_MEDIA_URL"),"/catalog/product");function R(e,t){let l=Object.keys(e).filter(l=>e[l].toLowerCase()===t.toLowerCase());return l.length>0?l[0]:null}let D=e=>e?L.yf[R(L.yf,e)||"En"]:L.yf.En,M={new:{variant:"new",label:"New"},popular:{variant:"popular",label:"Featured"},package:{variant:"dark",label:"Package"}},F=(e,t)=>t&&{variant:t.variant,label:e(t.label)},z=(e,t)=>{var l;let i=!!(null==e||null==(l=e.attributes)?void 0:l.newsFromDate),r=null==t?void 0:t.popular,a=(null==t?void 0:t.productType)==="package";return i?M.new:r?M.popular:a?M.package:void 0},B=e=>{var t,l,i,r,a,n,s,o,u,c,d,m,p;let h=null==e||null==(t=e.materials)?void 0:t.some(e=>(null==e?void 0:e.printTechnology)==="SLA"),f=null==e||null==(l=e.materials)?void 0:l.some(e=>(null==e?void 0:e.printTechnology)==="SLS"),g=null!=(m=null==e||null==(i=e.materials)?void 0:i.some(e=>(null==e?void 0:e.printTechnology)==="SLA"))&&m,v=(null==e?void 0:e.productType)==="package",b=null==e?void 0:e.popular,y=(e=>{var t,l,i,r;return{bio:null==e||null==(t=e.materials)?void 0:t.flatMap(e=>{var t;return(null==e||null==(t=e.bioCompatibility)?void 0:t.filter(e=>!!e))||[]}),printer:null==e||null==(l=e.materials)?void 0:l.flatMap(e=>{var t;return(null==e||null==(t=e.compatiblePrintersDisplay)?void 0:t.filter(e=>!!e))||[]}),resinTank:null==e||null==(i=e.compatibleResinTanks)?void 0:i.filter(e=>!!e),buildPlatform:null==e||null==(r=e.compatibleBuildPlatforms)?void 0:r.filter(e=>!!e)}})(e);return{measurements:(e=>((null==e?void 0:e.materials)||[]).filter(e=>null!==e).flatMap(e=>((null==e?void 0:e.measurements)||[]).map(e=>({abbreviation:(null==e?void 0:e.abbreviation)||"",name:(null==e?void 0:e.name)||"",dis
1playName:(null==e?void 0:e.displayName)||"",method:(null==e?void 0:e.method)||void 0,cureState:(null==e?void 0:e.cureState)||void 0,metricValue:(null==e?void 0:e.metricValue)||0,metricUnit:(null==e?void 0:e.metricUnit)||"",imperialUnit:(null==e?void 0:e.imperialUnit)||void 0,imperialValue:(null==e?void 0:e.imperialValue)||void 0,imperialStringValue:(null==e?void 0:e.imperialStringValue)||void 0}))))(e),compatibility:y,type:(null==e?void 0:e.productType)||"",link:(null==e?void 0:e.pdpSlug)||"#",title:(null==e?void 0:e.name)||"",shortDescription:(null==e?void 0:e.shortDescription)||"",colorOptions:void 0,tags:[...(null==e||null==(a=e.materials)||null==(r=a[0])?void 0:r.printTechnology)?[null==e||null==(s=e.materials)||null==(n=s[0])?void 0:n.printTechnology]:[],...(null==e?void 0:e.infoTags)||[]],compareGroups:((null==e?void 0:e.compareGroups)||[]).map(e=>((null==e?void 0:e.group)||[]).filter(e=>!!e)).filter(e=>!!e.length),familyDisplay:(null==e||null==(u=e.materials)||null==(o=u[0])?void 0:o.familyDisplay)||"",createdAt:(null==e?void 0:e.createdAt)||"",isSLA:h,isSLS:f,materialDisplayName:(null==e||null==(d=e.materials)||null==(c=d[0])?void 0:c.displayName)||"",adminTags:(null!=(p=null==e?void 0:e.adminTags)?p:[]).filter(x.sJc),displayBannerBulkPricing:g,tag:b?M.popular:v?M.package:void 0}};function U(e){return"".concat(E(),"/600x600").concat(e)}let V=(e,t,l,i,r,a,n,s)=>{var o,u,c,d,m,p,h,f,g,x,v,b,y,j,w;let S=null==e||null==(o=e.attributes)?void 0:o.newsFromDate,k=null==e||null==(u=e.media)?void 0:u[0],N=(null==k?void 0:k.file)?U(k.file):"",C=null!=(j=null==e||null==(c=e.media)?void 0:c.map((e,t)=>t&&(null==e?void 0:e.file)?e:null).filter(e=>!!e).map(e=>({src:U(e.file),alt:(null==e?void 0:e.label)||""})))?j:[];0===C.length&&N&&C.push({src:N,alt:null!=(w=null==k?void 0:k.label)?w:""});let I=(null==e||null==(d=e.attributes)?void 0:d.thumbnail)?"".concat(E(),"/600x600").concat(null==e||null==(m=e.attributes)?void 0:m.thumbnail):"",P=((null==e?void 0:e.bundleOptions)||[]).reduce((e,t)=>{var l;if(t&&t.option_id&&t.title&&t.sku&&t.required&&(null==(l=t.product_links)?void 0:l.length)){let l=t.product_links.reduce((e,t)=>(t&&t.id&&t.name&&t.sku&&e.push({id:t.id,name:t.name,sku:t.sku}),e),[]);e.push({id:t.option_id,required:t.required,title:t.title,sku:t.sku,productLinks:l})}return e},[]),L=Number.parseInt((null==e||null==(p=e.attributes)?void 0:p.leadTime)||"0"),T=0!==L?(0,A.D)(L,r,i):"",R=((e,t,l,i,r,a)=>{var n;return(null==e||null==(n=e.configurableProductLinks)?void 0:n.reduce((n,s)=>{let o;if(s){var u,c,d,m,p,h;let o=null==e||null==(u=e.configurableProductChildren)?void 0:u.find(e=>(null==e?void 0:e.sku)===s.sku),f=Number(null==o||null==(c=o.attributes)?void 0:c.leadTime)||0,g=(null==o||null==(d=o.media)?void 0:d.reduce((e,t)=>(t&&e.push({src:"".concat(E(),"/600x600").concat(t.file),alt:(null==t?void 0:t.label)||""}),e),[]))||[];n.push({id:s.id||"",name:s.name||"",shortDescription:s.shortDescription||"",price:s.price||0,regularPrice:s.price||0,formattedPrice:(0,_.ut)(s.price||0,i,t,l),formattedRegularPrice:(0,_.ut)(s.regularPrice||0,i,t,l),configurableItemOptions:s.configurableItemOptions&&s.configurableItemOptions.length>0?(e=>e?e.reduce((e,t)=>(t&&t.optionId&&t.optionValue&&e.push({optionId:t.optionId||"",optionValue:t.optionValue||""}),e),[]):[])(s.configurableItemOptions):[],sku:s.sku||"",linkType:s.linkType||"",linkedProductSku:s.linkedProductSku||"",linkedProductType:s.linkedProductType||"",position:s.position||0,leadTime:f?(0,A.D)(Number(null==o||null==(m=o.attributes)?void 0:m.leadTime),r,a):"",leadTimeValue:f,contactSales:(null==o||null==(p=o.attributes)?void 0:p.contactSales)==="1",images:g,selectedColor:(null==o||null==(h=o.attributes)?void 0:h.selectedColor)||""})}return n.length>0&&(o=(0,_.Ri)(n,i,t,l)),o||n},[]))||[]})(e,a,n,s||0,r,i)||[],D=(e=>{var t;return null==e||null==(t=e.configurableProductChildren)?void 0:t.map(e=>{var t,l,i,r,a,n,s,o,u,c,d,m,p,h,f,g,x,v,b,y,_;return{name:null!=(c=null==e?void 0:e.name)?c:"",sku:null!=(d=null==e?void 0:e.sku)?d:"",url:null!=(m=null==e?void 0:e.url)?m:"",type:null!=(p=null==e?void 0:e.type)?p:"",attributes:{contactSales:(null==e||null==(t=e.attributes)?void 0:t.contactSales)==="true",description:null!=(h=null==e||null==(l=e.attributes)?void 0:l.description)?h:"",leadTime:null!=(f=null==e||null==(i=e.attributes)?void 0:i.leadTime)?f:"",leadTimeValue:0,urlKe
1y:null!=(g=null==e||null==(r=e.attributes)?void 0:r.urlKey)?g:"",image:null!=(x=null==e||null==(a=e.attributes)?void 0:a.image)?x:"",filterBiocompatible:null!=(v=null==e||null==(n=e.attributes)?void 0:n.filterBiocompatible)?v:0,thumbnail:null!=(b=null==e||null==(s=e.attributes)?void 0:s.thumbnail)?b:"",metaDescription:null!=(y=null==e||null==(o=e.attributes)?void 0:o.metaDescription)?y:"",selectedColor:null!=(_=null==e||null==(u=e.attributes)?void 0:u.selectedColor)?_:""}}})})(e);return{title:(null==e?void 0:e.name)||"",slug:(null==e||null==(h=e.attributes)?void 0:h.urlKey)||"",sku:(null==e?void 0:e.sku)||void 0,applicationsDescription:"",description:(null==e||null==(f=e.attributes)?void 0:f.description)||"",metaDescription:(null==e||null==(g=e.attributes)?void 0:g.metaDescription)||"",tag:S?M.new:void 0,image:N,images:C,thumbnail:I,price:(null==e?void 0:e.price)||0,compareLink:"#",datasheetLink:"#",formattedPrice:t,vatMessage:null!=l?l:"",leadTime:T,leadTimeValue:L,contactSales:(null==e||null==(x=e.attributes)?void 0:x.contactSales)==="1",includes:P.filter(e=>1===e.productLinks.length&&(null==e?void 0:e.required)).filter(e=>!!e).map(e=>({id:e.productLinks[0].id,optionId:e.id,sku:e.productLinks[0].sku,title:e.title})),newsFromDate:(null==e||null==(v=e.attributes)?void 0:v.newsFromDate)!==null&&(null==e||null==(b=e.attributes)?void 0:b.newsFromDate)?null==e||null==(y=e.attributes)?void 0:y.newsFromDate:"",relatedProductSKUs:(e=>{var t;return(null==e||null==(t=e.productLinks)?void 0:t.filter(e=>!!(null==e?void 0:e.linkedProductSku)&&(null==e?void 0:e.linkType)==="upsell").map(e=>e.linkedProductSku))||[]})(e),configurableProductLinks:R,configurableProductOptions:(e=>{var t;return(null==e||null==(t=e.configurableProductOptions)?void 0:t.reduce((e,t)=>(t&&e.push({id:t.id||"",attributeId:t.attributeId||"",label:t.label||"",position:t.position||0,productId:t.productId||"",values:t.values&&t.values.length>0?(e=>e?e.reduce((e,t)=>(t&&t.valueIndex&&t.valueLabel&&e.push({valueIndex:t.valueIndex||"",valueLabel:t.valueLabel||""}),e),[]):[])(t.values):[]}),e),[]))||[]})(e)||[],configurableProductChildren:D}};var q=l(54587),O=l.n(q),W=l(48230),$=l.n(W),G=l(94834),Z=l(426);let Q=e=>{let{card:t}=e,{link:l,linkText:r,variant:a}=t,n=(0,G.m)(),s=(0,i.jsxs)(x.ZpM,{className:"ui-flex ui-items-center ui-justify-between ui-gap-2",children:[(0,i.jsxs)("div",{className:"ui-flex ui-items-center ui-gap-2",children:["file"===a&&(0,i.jsx)(x.oSV,{className:"ui-h-6 ui-w-6 ui-text-fl-highlight-blue"}),"info"===a&&(0,i.jsx)(x.eeW,{className:"ui-h-6 ui-w-6 ui-text-fl-highlight-blue"}),(0,i.jsx)("div",{className:" ui-text-fl-highlight-blue",children:r})]}),l&&(0,i.jsx)(x.flY,{className:"ui-h-6 ui-w-6 ui-text-fl-highlight-blue"})]});if(l){let e=(0,Z.d)(l);return(0,i.jsx)($(),{href:e,as:n(e),target:"_blank",children:s})}return s},Y=e=>{let{title:t,cards:l}=e;return(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"ui-flex ui-flex-col ui-gap-2",children:[(0,i.jsx)(x.EYj,{variant:"body",className:"ui-font-semibold",children:t}),l.map(e=>(0,i.jsx)(Q,{card:e},"".concat(e.link).concat(e.linkText)))]})})},H=()=>(0,i.jsxs)("div",{className:"ui-flex ui-flex-col ui-gap-2",children:[(0,i.jsx)("div",{className:"ui-h-5 ui-w-16 ui-animate-pulse ui-rounded ui-bg-white "}),[,,,,].fill(null).map((e,t)=>(0,i.jsx)(x.ZpM,{className:"ui-animate-pulse",children:(0,i.jsx)("div",{className:"ui-h-6"})},t))]}),K=e=>{var t;let{product:l}=e,{t:r}=(0,g.Bd)(),{language:a,country:n}=(0,b.Y)(),s=null==l?void 0:l.sku,o=D(a),u=(e=>e?L.te[R(L.te,e)||"Us"]:L.te.Us)(n),{data:c,loading:d}=(0,L.wf)({sku:s,languageParam:o,countryParam:u});if(!l)return null;let m=((null==c||null==(t=c.product)?void 0:t.materials)||[]).flatMap(e=>null==e?void 0:e.pdfs),p=m.filter(e=>(null==e?void 0:e.sheetType)==="safety"),h=m.filter(e=>(null==e?void 0:e.sheetType)==="technical"),f={link:void 0,linkText:r("Datasheets for this material are coming soon!"),variant:"info"},v=[{title:r("Safety Data Sheets"),cards:p.length?p.map(e=>({variant:"file",link:(null==e?void 0:e.path)||"#",linkText:(null==e?void 0:e.displayName)||"-"})):[f]},{title:r("Technical Data Sheets"),cards:h.length?h.map(e=>({variant:"file",link:(null==e?void 0:e.path)||"#",linkText:(null==e?void 0:e.displayName)||"-"})):[f]}],y=(0,i.jsx)(O(),{className:"ui-h-28 ui-w-28 ui-object-contain",alt:l.title,src:l.image,width:400,height:400}),_=l.tags.map((e,t)=>(0,i.jsx)(x.vwO,{variant:"info",className:0===t?"ui-text-fl-highlight-blue":"",children:e},e));return(0,i.jsxs)(x.vqI,{header:_,image:y,title:l.title,children:[d?(0,i.jsx)(H,{}):v.map((e,t)=>(0,i.jsx)(Y,{title:e.title,cards:e.cards},e.title+t)),(0,i.jsx)("div",{className:"ui-flex ui-items-end ui-self-end",children:(0,i.jsx)(x.uNe,{asChild:!0,children:(0,i.jsx)(x.$nd,{variant:"primary",className:"ui-w-min",children:r("Done")})})})]})};var X=l(329),J=l.n(X);let ee=e=>{let{compareGroupSKUs:t=[],enableStore:l=!0,filters:a,products:n}=e,{showModal:s}=(0,x.k34)(),{t:o}=(0,g.Bd)(),{language:u}=(0,b.Y)(),[c,d]=(0,f.ZA)("compare",(0,f.zj)(f.tU).withDefault([])),p=(0,x.lWr)(),{products:N}=((e,t,l,i)=>{let{t:r}=(0,g.Bd)(),a=(0,y.useSelector)(e=>e.i18n.currency),{vatRate:n}=(0,j.A)(),s=(0,P.A)(),o=k({products:S(i),filters:w(l),activeFilters:[]}),u=I(o);
1return{products:o.map(l=>{var i,o;let u=(null==l||null==(i=l.ecommerceData)?void 0:i.price)||0,c=(0,_.ut)(u,n||0,e,a),d=V(null!=(o=l.ecommerceData)?o:{},c,s,r,t,e,a,n||0),m=B(l),p=F(r,z(l.ecommerceData,l));return{...d,...m,tag:p}}),sortOptions:u}})(D(u),h()((0,r.useContext)(v.A),"dateLocale",null),a,n),C=(0,r.useMemo)(()=>l?N:N.map(e=>({...e,link:"",formattedPrice:""})),[l,N]),A=(0,r.useMemo)(()=>C.filter(e=>{var t;return null==(t=e.measurements)?void 0:t.length}).map(e=>({value:e.sku||e.title,label:e.materialDisplayName||e.title,group:e.isSLA?"SLA":e.isSLS?"SLS":o("Other")})).sort((e,t)=>e.label>t.label?1:-1),[C,o]),L=(0,r.useMemo)(()=>{let e=Array.from(t);return e.splice(0,c.length,...c),e},[t,c]),T=(0,r.useMemo)(()=>{var e;return L.slice(0,(null!=(e=p.width)?e:0)>1200?3:2).map(e=>C.find(t=>t.sku===e)||null).filter(e=>null!==e)},[C,L,p]);return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(x.VDX,{children:[(0,i.jsx)(x.VDX.Section,{children:(0,i.jsx)(x.cUC,{children:(0,i.jsx)(x.EYj,{variant:"small-title",children:o("What Material is Right for You?")})})}),(0,i.jsx)(x.VDX.Divider,{className:m()(J().upperSeparator)}),(0,i.jsx)(x.VDX.Section,{className:m()(J().comparedProductSelect),children:(0,i.jsx)(x.SeN,{columnsCount:T.length,onChange:d,options:A,selectedIds:L})}),(0,i.jsx)(x.VDX.Section,{children:(0,i.jsx)(x.Gs9,{products:T,isCollapsible:!1,onDatasheetsClick:e=>{s({content:(0,i.jsx)(K,{product:e})})}})})]})})};var et=l(11806),el=l(89099),ei=l(30915),er=l.n(ei),ea=l(13929),en=l(10030),es=l(30017),eo=l.n(es);let eu=e=>{let{products:t,defaultProductSKUs:l,comparePageLink:a}=e,{showModal:n}=(0,x.k34)(),{t:s}=(0,g.Bd)(),[o,u]=(0,r.useState)(l),c=(0,x.lWr)(),d=(0,r.useMemo)(()=>{var e;return[...o.filter(e=>t.find(t=>t.sku===e)),...t.filter(e=>e.sku&&!o.includes(e.sku)).map(e=>e.sku)].slice(0,Math.min(o.length,(null!=(e=c.width)?e:0)>1200?3:2)).map(e=>t.find(t=>t.sku===e)||null).filter(e=>null!==e)},[t,o,c]),m=d.map(e=>e.sku),p=(0,r.useMemo)(()=>t.filter(e=>{var t;return null==(t=e.measurements)?void 0:t.length}).map(e=>({value:e.sku||e.title,label:e.materialDisplayName||e.title,group:e.isSLA?"SLA":e.isSLS?"SLS":s("Other")})).sort((e,t)=>e.label>t.label?1:-1),[t,s]);return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(x.wKp,{children:[(0,i.jsx)(x.wKp.Section,{children:(0,i.jsxs)(x.cUC,{className:eo().title,children:[(0,i.jsx)(x.EYj,{variant:"small-title",className:eo().titleText,children:s("What Material is Right for You?")}),a&&(0,i.jsxs)(en.z,{href:a,variant:"ghost",children:[s("Compare All Materials")," ",(0,i.jsx)(x.D01,{className:eo().buttonIcon})]})]})}),(0,i.jsx)(x.wKp.Section,{children:(0,i.jsx)(x.SeN,{columnsCount:d.length,onChange:u,options:p,selectedIds:m})}),(0,i.jsx)(x.wKp.Divider,{}),(0,i.jsx)(x.Gs9,{products:d,onDatasheetsClick:e=>{n({content:(0,i.jsx)(K,{product:e})})}})]})})};var ec=l(56683),ed=l.n(ec);let em="materialproductlist",ep=e=>{let{compareGroupSKUs:t=[],comparePageLink:l="",language:a=L.yf.En,enableStore:n=!0,filters:s,products:o,children:u}=e,{showModal:c}=(0,x.k34)(),d=(0,el.useRouter)(),[p,f]=(0,r.useState)(!1),[g,b]=(0,r.useState)(null),{vatRate:C}=(0,j.A)(),A=(0,P.A)(),T=h()((0,r.useContext)(v.A),"dateLocale",null),E=(0,y.useSelector)(e=>e.i18n.currency),R=S(o),D=w(s),M=k({products:R,filters:D,activeFilters:null!=g?g:[]}),U=I(M),q=M.map(e=>{var t,l;let i=(null==e||null==(t=e.ecommerceData)?void 0:t.price)||0,r=(0,_.ut)(i,C||0,a,E),n=V(null!=(l=e.ecommerceData)?l:{},r,A,et.t,T,a,E,C||0),s=B(e),o=F(et.t,z(e.ecommerceData,e));return{...n,...s,tag:o}}),O=n?q:q.map(e=>({...e,link:"",formattedPrice:""})),W=n?U:U.filter(e=>e.id!==N.PRICE),$=n?D:(null!=D?D:[]).filter(e=>e&&"price"!==e.urlParamName),G=(0,r.useMemo)(()=>(g||[]).flatMap(e=>{let t=$.find(t=>t.urlParamName===e.filterId);return(null==t?void 0:t.type)===L.i$.Range&&e.selectedValues.includes(String(null==t?void 0:t.maxValue))&&e.selectedValues.includes(String(null==t?void 0:t.minValue))?[]:(null==t?void 0:t.type)===L.i$.Range?{label:"".concat(t.name,": ").concat(e.selectedValues.join(" - ")),id:e.filterId,option:e.filterId}
1:(null==t?void 0:t.type)===L.i$.Text?e.selectedValues.map(l=>{var i;let r=null==t||null==(i=t.textOptions)?void 0:i.find(e=>(null==e?void 0:e.id)===l);return{label:null==r?void 0:r.text,id:e.filterId,option:null==r?void 0:r.id}}):e.selectedValues.map(l=>{var i;let r=null==t||null==(i=t.selectOptions)?void 0:i.find(e=>(null==e?void 0:e.option)===l);return{label:null==r?void 0:r.displayName,id:e.filterId,option:null==r?void 0:r.option}})}).filter(e=>!!(e.label&&e.id&&e.option)),[$,g]),[Z,Q]=(0,r.useState)(W[0]),Y=(e=>{let{products:t,sortBy:l}=e;return(0,r.useMemo)(()=>{let{id:e}=l;return(e===N.RELEASE_DATE&&t.sort((e,t)=>{let l=(e,t)=>{if(e&&t){let l=new Date(e),i=new Date(t);return(0,ea.A)(l)&&(0,ea.A)(i)?i.getTime()-l.getTime():(0,ea.A)(l)?-1:+!!(0,ea.A)(i)}return e?-1:+!!t},i=l(e.newsFromDate,t.newsFromDate);return 0!==i?i:l(e.createdAt,t.createdAt)}),e===N.PRICE)?t.sort((e,t)=>e.price-t.price):e===N.TITLE?t.sort((e,t)=>e.title.localeCompare(t.title)):e===N.POPULAR?t.sort((e,t)=>{var l,i;return(0,x.k8h)(null==(l=t.tag)?void 0:l.variant)-(0,x.k8h)(null==(i=e.tag)?void 0:i.variant)}):[...t.filter(t=>!!t.measurements&&t.measurements.some(t=>(null==t?void 0:t.name)===e)).sort((t,l)=>{var i,r;let a=(null==(i=(t.measurements||[]).find(t=>t.name===e))?void 0:i.metricValue)||0;return((null==(r=(l.measurements||[]).find(t=>t.name===e))?void 0:r.metricValue)||0)-a}),...t.filter(t=>!t.measurements||!t.measurements.find(t=>(null==t?void 0:t.name)===e))]},[t,l])})({products:O,sortBy:Z}),H=(0,r.useMemo)(()=>{let{id:e}=Z;if(!Object.values(N).includes(e))return e},[Z]);(0,r.useEffect)(()=>{d.isReady&&null===g&&b((e=>{let t=er().parse(e.search,{ignoreQueryPrefix:!0});return Object.keys(t).map(e=>({filterId:e,selectedValues:"string"==typeof t[e]?[t[e]]:Array.isArray(t[e])?t[e]:[]}))})(new URL(window.location.href)))},[d.isReady,g]),(0,r.useEffect)(()=>{if(null===g)return;let e=new URL(window.location.href);if(0===g.length)e.search="";else{let t={};null==g||g.forEach(e=>{let l=$.find(t=>t.urlParamName===e.filterId);(null==l?void 0:l.type)===L.i$.Range&&e.selectedValues.includes(String(null==l?void 0:l.maxValue))&&e.selectedValues.includes(String(null==l?void 0:l.minValue))||(t[e.filterId]=e.selectedValues)}),e.search=er().stringify(t,{addQueryPrefix:!0}),e.hash="#".concat(em)}let t="".concat(e.pathname).concat(e.search).concat(e.hash);d.push(t,void 0,{shallow:!0})},[g]);let X=()=>{b([])},J=(0,r.useMemo)(()=>{var e;return null!=(e=null==g?void 0:g.filter(e=>e.selectedValues.length>0).length)?e:0},[g]),ee=(0,r.useMemo)(()=>$.map(e=>{var t,l;return{...e,isOpen:null!=(t=e.isOpen)&&t,isCollapsible:null==(l=e.isCollapsible)||l,type:(0,x.pAn)(e.type)?e.type:L.i$.Select,filterStyle:e.filterStyle&&(0,x.k67)(e.filterStyle)?e.filterStyle:x.l2b.Select,selectOptions:e.selectOptions,textOptions:e.textOptions}}),[$]),ei=(0,r.useMemo)(()=>l?"".concat(l,"?").concat(er().stringify({compare:t},{arrayFormat:"repeat"})):"",[l,t]);return(0,i.jsx)("div",{className:m()(ed().listPage),children:(0,i.jsx)(x.sw,{isSidebarOpen:p,onOverlayClick:()=>f(!1),sidebar:(0,i.jsx)(x.Bx2,{onClose:()=>{f(!1)},onDone:()=>f(!1),filters:ee,selectedFilters:g||[],onFiltersChange:(e,t)=>
1{if(null===g)return;let l=t.includes("all");if(!t.length||l){let t=(g||[]).filter(t=>t.filterId!==e);if(!g.length&&!t.length)return;b(t)}else(null==g?void 0:g.find(t=>t.filterId===e))?b((g||[]).map(l=>l.filterId===e?{...l,selectedValues:t}:l)):b([...g||[],{filterId:e,selectedValues:t}])}}),content:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.Qnn,{className:ed().filter,filterCount:J,onClick:()=>{f(!p)},onReset:X}),(0,i.jsxs)("div",{className:ed().listContent,children:[(0,i.jsx)("div",{className:ed().listPadding,children:(0,i.jsx)(x.giK,{comparePageLink:ei})}),u,(0,i.jsx)("div",{className:m()(ed().list,ed().listPadding),id:em,children:(0,i.jsx)(x.ELT,{activeFilters:G.map(e=>({label:e.label,onClick:()=>((e,t)=>{var l;let i=null!=(l=null==g?void 0:g.findIndex(t=>t.filterId===e))?l:-1;if(!(null==g?void 0:g.length)||i<0)return;let r=[...g],a=g[i];r[i]={...a,selectedValues:e===t?[]:a.selectedValues.filter(e=>e!==t)},b(r.filter(e=>!!e.selectedValues.length))})(e.id,e.option)})),createProductCompareLink:e=>{var t;if(!l)return"";let i=null==(t=e.compareGroups)?void 0:t[0];i||(i=[,,].fill(null).reduce(e=>{let t=O.find(t=>!e.includes(t.sku));return t&&(e=[...e,t.sku]),e},[e.sku]));let r=er().stringify({compare:i},{arrayFormat:"repeat"});return"".concat(l,"?").concat(r)},isLoading:!1,items:Y,onProductDataClick:e=>{c({content:(0,i.jsx)(K,{product:O.find(t=>t.sku===e)})})},onResetFiltersClick:X,onSelectedSortChange:e=>(e=>{let t=W.find(t=>t.name===e);t?Q(t):Q(W[0])})(e),relatedItems:[],sortedMeasurement:H,sortOptions:W.map(e=>({value:e.name,label:"".concat(e.name).concat(e.order&&e.orderLabel?" (".concat(e.orderLabel,")"):"")})),sortValue:Z.name})}),!!t.length&&(0,i.jsx)("div",{className:ed().listPadding,children:(0,i.jsx)(eu,{comparePageLink:ei,products:O,defaultProductSKUs:t})})]})]})})})},eh=n()(()=>Promise.all([l.e(6446),l.e(4462),l.e(9424),l.e(1200),l.e(4259),l.e(301)]).then(l.bind(l,53347)),{loadableGenerated:{webpack:()=>[53347]},ssr:!1,loading:()=>null}),ef=e=>(0,i.jsx)(eh,{...e});var eg=l(37474);let ex=n()(()=>Promise.all([l.e(4513),l.e(7491),l.e(4797),l.e(3783)]).then(l.bind(l,99168)),{loadableGenerated:{webpack:()=>[99168]},ssr:!1,loading:()=>null}),ev=e=>(0,i.jsx)(ex,{...e});var eb=l(54459),ey=l(77328),e_=l.n(ey),ej=l(87904),ew=l(88317),eS=l(28131),ek=l(11547),eN=l(69363),eC=l(99065),eI=l(98228),eP=l(3126),eA=l(47397),eL=l.n(eA),eT=l(95062),eE=l.n(eT),eR=l(65476),eD=l(37982),eM=l.n(eD);let eF=e=>{let{title:t,type:l=null,url:r,t:a}=e,n="https://www.formlabs.com".concat(r),s=t.replace("&","%26"),o=l.replace("&","%26");return(0,i.jsxs)("div",{className:eM()["social-share-links"],children:[(0,i.jsx)("div",{className:eM()["social-button"],children:(0,i.jsx)("a",{href:encodeURI("https://www.facebook.com/sharer/sharer.php?u=".concat(n,"&title=").concat(s)),target:"_blank",rel:"noopener noreferrer","aria-label":a("Share on Facebook"),children:(0,i.jsx)(eR.I,{className:(0,eP.Zz)(eM()),iconName:"facebook"})})}),(0,i.jsx)("div",{className:eM()["social-button"],children:(0,i.jsx)("a",{href:encodeURI("https://www.twitter.com/intent/tweet?text=".concat(s,"\n").concat(a("Learn More"),": ").concat(n)),target:"_blank",rel:"noopener noreferrer","aria-label":a("Share on Twitter"),children:(0,i.jsx)(eR.I,{className:(0,eP.Zz)(eM()),iconName:"twitter"})})}),(0,i.jsx)("div",{className:eM()["social-button"],children:(0,i.jsx)("a",{href:encodeURI("mailto:?subject=Formlabs ".concat(o,": ").concat(s,"&body=").concat(s,": ").concat(n)),"aria-label":a("Share as email"),children:(0,i.jsx)(eR.I,{className:(0,eP.Zz)(eM()),iconName:"mail"})})})]})};eF.propTypes={url:eE().string.isRequired,title:eE().string.isRequired};let ez=(0,ej.w)((0,g.CI)()(eF)),eB=(0,ej.w)(e=>{let{title:t,children:l,pubDate:a,type:n,hideDate:s,url:o,relatedPosts:u,seoImage:c,tags:d}=e,{t:m,i18n:p}=(0,g.Bd)(),{dateLocale:h}=(0,r.useContext)(v.A),f=(0,eb.A)(new Date(a),"PP",{locale:h}),[x,b]=(0,r.useState)(null);u&&u.sort((e,t)=>(0,eI.Wt)(e.title,t.title,p.language)),(0,r.useEffect)(()=>{let e=[...document.querySelectorAll('[class*="text-plugin"]')].reduce((e,t)=>e+t.innerText,"").split(" ").length,t=Math.floor(parseFloat(e/200)),l=String((e/200).toFixed(2)).split(".");(l=Math.floor(parseFloat(.6*l[1]).toFixed(2)))>30&&t++,t<1&&(t="< "+ ++t),b(t)},[l]);let y="/blog/"===o.slice(0,6)?"/blog/":"/".concat(o.split("/")[1],"/blog/");return(0,i.jsxs)("div",{className:eL()["single-post-wrapper"],children:[(0,i.jsxs)(e_(),{children:[c&&(0,i.jsx)("meta",{itemProp:"image",content:c}
1,"defaultSeoImage"),c&&(0,i.jsx)("meta",{name:"twitter:image:src",content:c},"twitterSeoImage"),c&&(0,i.jsx)("meta",{property:"og:image",content:c},"ogSeoImage")]}),(0,i.jsx)(ew.Ev,{children:(0,i.jsxs)(ew.xA,{direction:"x",children:[(0,i.jsx)(ew.fh,{largeSize:24,children:(0,i.jsxs)(eS.N_,{to:y,className:eL()["all-posts"],children:[(0,i.jsx)(ek.In,{className:(0,eP.Zz)(eL()),iconName:"arrow-left"}),m("All Posts")]})}),(0,i.jsx)(ew.fh,{largeSize:18,children:(0,i.jsx)(ek.Y9,{level:1,displayAs:1,weight:"600",children:t})}),(0,i.jsx)(ew.fh,{largeSize:6,children:(0,i.jsx)(ez,{title:t,type:n,url:o})})]})}),(0,i.jsx)(ew.Ev,{children:(!s&&a||x||d)&&(0,i.jsxs)("div",{className:eL().byline,children:[!s&&(0,i.jsxs)("div",{className:eL().item,children:[(0,i.jsx)("div",{className:eL().icon,children:(0,i.jsx)(ek.In,{className:(0,eP.Zz)(eL()),iconName:"calendar"})}),(0,i.jsx)("div",{className:eL().label,children:f})]}),x&&(0,i.jsxs)("div",{className:eL().item,children:[(0,i.jsx)("div",{className:eL().icon,children:(0,i.jsx)(ek.In,{className:(0,eP.Zz)(eL()),iconName:"clock"})}),(0,i.jsx)("div",{className:eL().label,children:"< 1"!==x?m("{{count}} minute read",{count:x}):"< ".concat(m("{{count}} minute read",{count:"1"}))})]}),d.length>0&&(0,i.jsxs)("div",{className:"".concat(eL().item," ").concat(eL().tagsItem),children:[(0,i.jsx)("div",{className:eL().icon,children:(0,i.jsx)(ek.In,{className:(0,eP.Zz)(eL()),iconName:"folder_open"})}),(0,i.jsx)("div",{className:eL().label,children:d.map((e,t)=>(0,i.jsxs)("span",{children:[e,t!==d.length-1&&", "]},e))})]})]})}),(0,i.jsx)(eN.MB,{levels:[2,3],children:l}),(0,i.jsx)(ew.Ev,{children:(0,i.jsx)(ew.xA,{direction:"x",primaryAlignment:"align-left",children:u.length>0&&(0,i.jsx)(ew.fh,{smallSize:24,children:(0,i.jsxs)("div",{className:eL()["related-posts"],children:[(0,i.jsx)("div",{className:eL()["related-posts-header"],children:(0,i.jsx)(ek.Y9,{level:3,displayAs:4,children:m("Related Posts")})}),(0,i.jsx)(ew.xA,{direction:"x",gutters:"padding",children:u.map(e=>(0,i.jsx)(ew.fh,{className:eL()["related-post-cell"],mediumSize:8,children:(0,i.jsx)(eC.A,{className:eL()["related-post"],image:e.image,imagePosition:"top",imageHeight:210,imageWidth:375,imageStyle:{objectFit:"cover",borderRadius:"0.5rem"},url:e.url,eyebrowText:"",title:e.title,titleStyle:"thin",internalPadding:"none",hover:"none"})},e.title))})]})})})})]})});var eU=l(6479),eV=l.n(eU),eq=l(41963);let eO=(0,ej.w)(class extends r.PureComponent{render(){let{content:e,children:t,classes:l}=this.props;return(0,i.jsx)("div",{className:eV()["blog-content"],children:(0,i.jsx)(ew.xA,{direction:"x",className:(0,eP.Zz)(eV(),l),children:(0,i.jsx)(ew.fh,{mediumSize:24,children:(0,i.jsx)(eq.A,{body:e,children:t})})})})}});eO.propTypes={};let eW=eO;var e$=l(98964);let eG=n()(()=>Promise.all([l.e(5776),l.e(2844),l.e(8916)]).then(l.bind(l,12016)),{loadableGenerated:{webpack:()=>[12016]},ssr:!1,loading:()=>null}),eZ=e=>(0,i.jsx)(eG,{...e});var eQ=l(93669);l(4307);let eY=()=>{let{t:e}=(0,g.Bd)(),t={name:"Become_a_Reseller",errorMessage:e("There was an error submitting your request. Please try again!"),successMessage:e("Thank you for showing your interest in becoming a Formlabs Reseller. We'll be in touch shortly."),trackingLabel:"Become a Reseller Form Submitted",analyticsTrackMapping:{email:"Email"},analyticsIdentifyMapping:{userId:"Email",traits:{email:"Email",firstName:"FirstName",lastName:"LastName"}},marketoOptions:{munchkinId:"060-UIG-504",baseUrl:"https://app-sj15.marketo.com",formId:(0,T._)("FL_PUBLIC_FORM_RESELLER_INTEREST")}};return(0,i.jsx)(r.Fragment,{children:(0,i.jsxs)(eQ.EX,{...t,children:[(0,i.jsxs)(ew.xA,{direction:"x",gutters:"padding",children:[(0,i.jsx)(ew.fh,{mediumSize:24,children:(0,i.jsx)(ek.Y9,{level:3,displayAs:3,children:e("Personal Information")})}),(0,i.jsx)(ew.fh,{mediumSize:12,children:(0,i.jsx)(eQ.pd,{maxLength:"40",name:"FirstName",required:!0,size:"20",type:"text",label:e("First name")})}),(0,i.jsx)(ew.fh,{mediumSize:12,children:(0,i.jsx)(eQ.pd,{name:"LastName",required:!0,type:"text",label:e("Last name")}
1)}),(0,i.jsx)(ew.fh,{mediumSize:12,children:(0,i.jsx)(eQ.pd,{maxLength:"80",name:"Email",required:!0,type:"email",label:e("Business email")})}),(0,i.jsx)(ew.fh,{mediumSize:12,children:(0,i.jsx)(eQ.pd,{name:"Title",required:!0,label:e("Job Title"),type:"text"})})]}),(0,i.jsxs)(ew.wn,{marginBefore:"2rem",children:[(0,i.jsxs)(ew.xA,{direction:"x",gutters:"padding",children:[(0,i.jsx)(ew.fh,{mediumSize:24,children:(0,i.jsx)(ek.Y9,{level:3,displayAs:3,children:e("Company Information")})}),(0,i.jsx)(ew.fh,{mediumSize:12,children:(0,i.jsx)(eQ.pd,{name:"Company",required:!0,type:"text",label:e("Company Name")})}),(0,i.jsx)(ew.fh,{mediumSize:12,children:(0,i.jsx)(eQ.pd,{name:"Website",required:!0,type:"text",label:e("Company Website")})}),(0,i.jsx)(ew.fh,{mediumSize:8,children:(0,i.jsx)(eQ.pd,{name:"City",required:!0,type:"text",label:e("City")})}),(0,i.jsx)(ew.fh,{mediumSize:8,children:(0,i.jsx)(eQ.uL,{name:"Country",secondaryName:"Region__c",label:e("Country or Region"),type:"countryAndState",isRequired:!0})}),(0,i.jsx)(ew.fh,{mediumSize:8,children:(0,i.jsx)(eQ.uL,{name:"NumberOfEmployees",label:e("Company Size"),type:"companySize",isRequired:!0})}),(0,i.jsx)(ew.fh,{mediumSize:24,children:(0,i.jsx)(eQ.fs,{name:"What_geographic_region_s_do_you_serve__c",label:e("What geographic region(s) do you serve?"),"aria-label":e("What geographic region(s) do you serve?"),required:!0,rows:"3",type:"text",wrap:"soft"})})]}),(0,i.jsxs)(ew.xA,{direction:"x",gutters:"padding",children:[(0,i.jsx)(ew.fh,{mediumSize:24,children:(0,i.jsx)(ek.Y9,{level:3,displayAs:3,children:e("Application")})}),(0,i.jsx)(ew.fh,{mediumSize:12,children:(0,i.jsx)(eQ.fs,{name:"Key_products_in_your_portfolio__c",required:!0,rows:"3",type:"text",wrap:"soft",label:e("What are the key products in your portfolio?"),"aria-label":e("What are the key products in your portfolio?")})}),(0,i.jsx)(ew.fh,{mediumSize:12,children:(0,i.jsx)(eQ.fs,{name:"Who_are_your_target_customers__c",required:!0,rows:"3",type:"text",wrap:"soft",label:e("Who are your target customers?"),"aria-label":e("Who are your target customers?")})}),(0,i.jsx)(ew.fh,{mediumSize:12,children:(0,i.jsx)(eQ.fs,{name:"Reason_to_resell_Formlabs_products__c",required:!0,rows:"3",type:"text",wrap:"soft",label:e("Why do you want to resell Formlabs products?"),"aria-label":e("Why do you want to resell Formlabs products?")})}),(0,i.jsx)(ew.fh,{mediumSize:12,children:(0,i.jsx)(eQ.fs,{name:"Anything_else_for_us_to_know__c",required:!0,rows:"3",type:"text",wrap:"soft",label:e("Is there anything else you would like us to know?"),"aria-label":e("Is there anything else you would like us to know?")})})]})]}),(0,i.jsxs)(ew.xA,{direction:"x",gutters:"margin",children:[(0,i.jsx)(ew.fh,{backgrounmediumSize:24,children:(0,i.jsx)(eQ.hP,{label:"Submit"})}),(0,i.jsxs)(ew.fh,{mediumSize:16,secondaryAlignment:"align-self-middle",children:[(0,i.jsx)(eQ.QB,{type:"error"}),(0,i.jsx)(eQ.QB,{type:"success"})]})]})]})})};var eH=l(82425),eK=l(82406),eX=l(47539),eJ=l.n(eX);let e0=(0,ej.w)(e=>{let{classes:t,styleNames:l,styles:r,posts:a,hasNext:n,hasPrev:s,path:o}=e,{loading:u,componentRef:c}=(0,eK.A)(),d=a.map(e=>(0,i.jsx)("li",{children:(0,i.jsxs)(eS.N_,{to:e.external_url,children:[(0,i.jsx)("span",{className:eJ().date,children:e.date}),(0,i.jsx)("span",{className:eJ()["outlet-name"],children:e.outlet_name}),e.headline,(0,i.jsx)(eR.I,{className:(0,eP.Zz)(eJ()),iconName:"arrow-right"})]})},e.id));return(0,i.jsxs)("div",{className:(0,eP.Zz)(eJ(),t,l,r),children:[(0,i.jsx)("ul",{className:(0,eP.Zz)(eJ(),"press_list",{loading:u}),ref:c,children:d}),(0,i.jsx)(eH.d,{styles:eJ(),hasNext:n,hasPrev:s,path:o})]})});var e1=l(62111),e2=l(12028);let e4=(0,ej.w)(e=>{let{title:t,subtitle:l,location:a,date:n,content:s,boilerplate:o,contact_info:u,is_published:c,classes:d}=e,{language:m,defaultCountry:p}=(0,r.useContext)(e2.A),h=(0,r.useMemo)(()=>m&&p?"".concat(null==m?void 0:m.toLocaleLowerCase(),"-").concat(null==p?void 0:p.iso):"en_US",[m,p]),f=(0,r.useMemo)(()=>n?new Date(n).toLocaleDateString(h,{month:"short",day:"numeric",year:"numeric"}):"",[h,n]),g="";a&&(g=a+", "),n&&(g+=f);let x=s;return x=s.replace("<p>","<p><strong>"+g+"</strong> – "),(0,i.jsx)(ew.wn,{children:(0,i.jsx)("div",{className:eJ()["release-section"],children:(0,i.jsx)(ew.xA,{direction:"x",primaryAlignment:"align-center",children:(0,i.jsxs)(ew.fh,{smallSize:"20",mediumSize:"20",largeSize:"20",children:[!1===c&&(0,i.jsx)(e1.E,{className:eJ()["draft-notification"],message:(0,i.jsxs)("span",{children:[(0,i.jsx)("strong",{children:"Draft — not published."})," This press release is only visible in CMS preview."]})}),(0,i.jsx)("span",{className:(0,eP.Zz)(eJ(),"date eyebrow"),children:f}),(0,i.jsx)(ek.Y9,{level:1,displayAs:1,children:t}),l&&(0,i.jsx)("p",{children:(0,i.jsx)("em",{children:l})}),(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:x},className:d}),(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:o}}),(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:u}})]})})})})});var e3=l(31692);let e8=(0,ej.w)(e=>{let{classes:t,styleNames:l,styles:r,posts:a,hasNext:n,hasPrev:s,path:o}=e,{loading:u,componentRef:c}=(0,eK.A)(),d=a.map(e=>(0,i.jsx)("li",{children:(0,i.jsxs)(eS.N_,{to:"".concat(o).concat(e.slug),children:[(0,i.jsxs)("span",{className:eJ().date,children:[e.pub_date,!1===e.is_published&&(0,i.jsx)("span",{className:eJ()["draft-pill"],children:(0,i.jsx)(e3.A,{color:"warning",theme:"light",text:"Draft"})})]}),e.title,(0,i.jsx)(eR.I,{iconName:"arrow-right",size:"sm",color:"blue"})]})},e.id));return(0,i.jsxs)("div",{className:(0,eP.Zz)(eJ(),t,l,r),ref:c,children:[(0,i.jsx)("ul",{className:(0,eP.Zz)(eJ(),"press_list",{loading:u}),children:d}),(0,i.jsx)(eH.d,{styles:eJ(),hasNext:n,hasPrev:s,path:o})]})});var e7=l(1497),e6=l(44915),e9=l.n(e6);let e5=(0,ej.w)(class extends r.PureComponent{render(){let{resource:e,classes:t,t:l}=this.props;return(0,i.jsxs)(ew.xA,{direction:"x",children:[(0,i.jsx)(ew.fh,{largeSize:12,children:(0,i.jsx)(e7.VI,{largeImage:e.listingImage,imageAlt:e.listingImageAlt||"",fullBleed:!0})}),(0,i.jsx)(ew.fh,{largeSize:12,backgroundColor:"blue",contentAlignment:"align-children-middle",children:(0,i.jsx)(ew.fh,{children:(0,i.jsx)(ew.xA,{direction:"x",children:(0,i.jsx)(ew.fh,{largeSize:12,largeOff
1set:6,children:(0,i.jsxs)("div",{className:(0,eP.Zz)(e9(),"featured-copy",t),children:[(0,i.jsx)(ek.YZ,{children:e.type})," ",(0,i.jsx)("div",{className:e9()["featured-title"],children:(0,i.jsx)(ek.Y9,{level:2,displayAs:4,children:e.title})}),(0,i.jsx)(eS.$n,{to:e.url,arrow:"right",color:"white",children:l("Learn More")})]})})})})})]})}});e5.propTypes={};let te=(0,g.CI)()(e5),tt=(0,ej.w)(class extends r.PureComponent{render(){let{collections:e,classes:t,basePath:l,t:r}=this.props,{selectedCollection:a}=this.state,n=e[a];return(0,i.jsx)("div",{className:(0,eP.Zz)(e9(),"resource-posts-list",t),children:(0,i.jsxs)(ew.xA,{direction:"x",children:[(0,i.jsx)(ew.fh,{largeSize:8,backgroundColor:"blue",children:(0,i.jsxs)("div",{className:e9()["collection-list-container"],children:[(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:r("Resource Collections")})}),(0,i.jsx)("hr",{}),(0,i.jsx)("div",{className:e9()["selector-wrapper"],children:e.map((e,t)=>(0,i.jsx)("button",{className:(0,eP.Zz)(e9(),n.title===e.title?"collection-selected":"collection-list"),onClick:()=>this.handleCollectionChange(t),children:e.title},e.title))})]})}),(0,i.jsx)(ew.fh,{largeSize:16,children:(0,i.jsxs)("div",{className:e9()["single-collection-list"],children:[(0,i.jsx)(ek.Y9,{level:6,displayAs:6,weight:600,children:n.title}),(0,i.jsx)("hr",{}),(n.resources||[]).slice(0,6).map(e=>(0,i.jsx)("div",{className:e9()["single-item"],children:(0,i.jsx)(eC.A,{url:e.url,bgColor:"transparent-black",hover:"none",image:e.listingImage,imageAlt:e.listingImageAlt||"",imageWidth:58,imageHeight:40,imageStyle:{objectFit:"cover"},imageConstraint:"90px",imagePosition:"left",padding:"0",internalPadding:"none",eyebrowText:e.type,titleStyle:"micro",title:e.title})},"".concat(e.url," ").concat(e.title))),n.resourceCount>6&&(0,i.jsx)(eS.$n,{color:"light",url:"".concat(l).concat(n.slug,"/"),children:r("See all {{count}} Resources",{count:n.resourceCount})})]})})]})})}constructor(...e){super(...e),this.state={selectedCollection:0},this.handleCollectionChange=e=>{this.setState({selectedCollection:e})}}});tt.propTypes={};let tl=(0,g.CI)()(tt),ti=e=>{let{resources:t}=e;return(0,i.jsx)("div",{className:e9().posts,children:t.map(e=>(0,i.jsx)(eC.A,{url:e.url,imageConstraint:"300px",imagePosition:"left",bgColor:"white",image:e.listingImage,imageWidth:300,imageHeight:210,imageStyle:{objectFit:"contain"},padding:"35px",internalPadding:"none",eyebrowText:e.type,titleStyle:"thin",title:e.title,borderTopBottom:!0,collapseBorder:!0},e.id))})},tr=(0,ej.w)(e=>{let{resources:t}=e;return(0,i.jsx)(ti,{resources:t})})},52148:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var i=l(37876);l(14232);var r=l(28131),a=l(7477),n=l.n(a);let s=()=>(0,i.jsx)("div",{className:n()["sr-only"],children:(0,i.jsx)(r.N_,{to:"https://formlabs.com/terms-of-service/accessibility-statement/",tabIndex:1,children:"Formlabs Accessibility Notice Statement"})})},56683:e=>{e.exports={listPage:"MaterialsListPage_listPage__d5dtb",list:"MaterialsListPage_list__7RLX2",listPadding:"MaterialsListPage_listPadding__BOsTw",listContent:"MaterialsListPage_listContent__U2Gxj",filter:"MaterialsListPage_filter__FBpSt"}},83771:(e,t,l)=>{"use strict";let i;l.d(t,{e:()=>q});var r=l(37876),a=l(33191),n=l.n(a),s=l(14232),o=l(12028),u=l(8904),c=l(98228),d=l(38815),m=l(20551),p=l(72258),h=l(79936),f=l(62604);class g extends Error{constructor(){super("Cart not found"),this.name="CartNotFoundError"}}let x="\n    id\n    totalQuantity\n    cost {\n      subtotalAmount {\n        amount\n      }\n    }\n    checkoutUrl\n    lines(first: 250) {\n        nodes {\n          id\n          attributes {\n            key\n            value\n          }\n          merchandise {\n            ... on ProductVariant {\n              id\n              sku\n              selectedOptions {\n                name\n                value\n              }\n              product {\n                title\n                images(first:1) {\n                  nodes { url }\n                }\n              }\n              components(first: 250) {\n                nodes {\n                  productVariant {\n                    product { \
1n                      title                    \n                    }\n                  }\n                  quantity\n                }\n              }\n\n            }\n          }\n          cost {\n            amountPerQuantity {\n              amount\n            }\n            subtotalAmount {\n              amount\n            }\n          }\n          quantity\n        }\n    }\n ",v="\n  userErrors {\n      field\n      message\n    }\n",b="\n  mutation AddToCart($cartId: ID!, $lines: [CartLineInput!]!) {\n    cartLinesAdd(cartId: $cartId, lines: $lines) {\n      cart {\n        ".concat(x,"\n      }\n      ").concat(v,"\n    }\n  }\n");var y=l(64805);let _=(e,t)=>0===t?e:_(t,e%t),j=(e,t)=>{let l=_(e,t)||1;return{childQuantity:e/l,parentQuantity:t/l}},w=e=>{let t=e.find(e=>!e.parentVariantId),l=e.filter(e=>e.parentVariantId),i=t&&l.length>0?((e,t)=>{var l;let i=[e.variantId,...(null!=(l=e.attributes)?l:[]).map(e=>{let{key:t,value:l}=e;return"".concat(t,"=").concat(l)}).sort(),...t.map(t=>{let l=j(t.quantity,e.quantity);return"".concat(t.variantId,":").concat(l.childQuantity,"/").concat(l.parentQuantity)}).sort()].join("|");return(0,y.A)(i,f.EI)})(t,l):void 0;return e.map(e=>{let{variantId:l,quantity:r,attributes:a,parentVariantId:n}=e,s=t&&n?j(r,t.quantity):void 0,o=[...null!=a?a:[],...i?[{key:f.Wj.CONFIG_ID,value:i}]:[],...n?[{key:f.Wj.PARENT_VARIANT_ID,value:n}]:[],...s?[{key:f.Wj.PARENT_QUANTITY,value:String(s.parentQuantity)},{key:f.Wj.CHILD_QUANTITY,value:String(s.childQuantity)}]:[]];return{merchandiseId:l,quantity:r,...o.length>0&&{attributes:o}}})};var S=l(61179),k=l(27331);let N=()=>{if(!i){let e=(0,k._)(f.fB.STORE_DOMAIN),t=(0,k._)(f.fB.PUBLIC_ACCESS_TOKEN);e&&t&&(i=(0,S.S)({apiVersion:f.nF,publicAccessToken:t,storeDomain:e}))}return i},C=(e,t,l)=>{e.userErrors&&e.userErrors.length>0&&console.error("".concat(t," userErrors"),e.userErrors,l)},I=e=>{var t,l,i,r,a,n,s,o;return{items:(null==(l=e.cart)||null==(t=l.lines)?void 0:t.nodes)?e.cart.lines.nodes.map(e=>{var t;return{id:e.id,attributes:e.attributes,merchandiseId:e.merchandise.id,title:e.merchandise.product.title,sku:e.merchandise.sku,image:null==(t=e.merchandise.product.images.nodes[0])?void 0:t.url,selectedOptions:e.merchandise.selectedOptions.filter(e=>"Default Title"!==e.value),components:e.merchandise.components.nodes.map(e=>({title:e.productVariant.product.title,quantity:e.quantity})),quantity:e.quantity,amountPerQuantity:e.cost.amountPerQuantity.amount,total:e.cost.subtotalAmount.amount}}):[],cartInfo:{totalQuantity:null!=(n=null==e||null==(i=e.cart)?void 0:i.totalQuantity)?n:0,total:null!=(s=null==e||null==(r=e.cart)?void 0:r.cost.subtotalAmount.amount)?s:0,checkoutUrl:null!=(o=null==e||null==(a=e.cart)?void 0:a.checkoutUrl)?o:""}}},P=async(e,t)=>{let l=w(t),i=N();if(!i)throw Error("Shopify Storefront API client is not initialized");let{data:r}=await i.request(b,{variables:{cartId:e,lines:l}});if(!r)throw console.error("Failed to add items from cart",{cartId:e,items:t}),Error("Failed to add items from cart");if(C(r.cartLinesAdd,f.d1.ADD_TO_CART,{cartId:e,items:t}),!r.cartLinesAdd.cart)throw new g;return I(r.cartLinesAdd)},A="\n  mutation CreateCart($country: CountryCode, $lines: [CartLineInput!], $attributes: [AttributeInput!]) {\n    cartCreate(input: { buyerIdentity: { countryCode: $country }, lines: $lines, attributes: $attributes }) {\n      cart {\n        id\n      }\n      ".concat(v,"\n    }\n  }\n"),L=async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"US",l=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=N();if(!r)throw Error("Shopify Storefront API client is not initialized");return null==(e=(await r.request(A,{variables:{country:t,...l&&{lines:l},...i&&{attributes:i}}})).data)?void 0:e.cartCreate.cart.id},T="\nquery Cart($cartId: ID!) {\n    cart(id: $cartId) {\n      ".concat(x,"\n    }\n  }\n"),E=async e=>{var t;let l=N();if(!l)throw Error("Shopify Storefront API client is not initialized");let i=await l.request(T,{variables:{cartId:e}});if(null==(t=i.data)?void 0:t.cart)return I(i.data);throw Error("Cart not found")},R=e=>{if(e)return new URL(e).pathname.split("/").pop()};var D=l(49225);let M="\n  mutation RemoveCartItem($cartId: ID!, $lineIds: [ID!]!) {\n    cartLinesRemove(cartId: $cartId, lineIds: $lineIds) {\n      cart {\n        ".concat(x,"\n      }\n      ").concat(v,"\n    }\n  }\n"),F=async(e,t)=>{let l=N();if(!l)throw Error("Shopify Storefront API client is not initialized");let{data:i}=await l.request(M,{variables:{cartId:e,lineIds:t}});if(!i)throw console.error("Failed to remove items from cart",{cartId:e,lineIds:t}),Error("Failed to remove items from cart");if(C(i.cartLinesRemove,f.d1.REMOVE_FROM_CART,{cartId:e,lineIds:t}),!i.cartLinesRemove.cart)throw new g;return I(i.cartLinesRemove)},z="\nmutation cartLinesUpdate($cartId: ID!, $lines: [CartLineUpdateInput!]!) {\n  cartLinesUpdate(cartId: $cartId, lines: $lines) {\n      cart {\n        ".concat(x,"\n      }\n      ").concat(v,"\n    }\n  }\n"),B=async(e,t)=>{let l=t.map(e=>{let{lineId:t,quantity:l}=e;return{id:t,quantity:l}}),i=N();if(!i)throw Error("Shopify Storefront API client is not initialized");let{data:r}=await i.request(z,{variables:{cartId:e,lines:l}});if(!r)throw console.error("Failed to update items from cart",{cartId:e,items:t}),Error("Failed to update items from cart");if(C(r.cartLinesUpdate,f.d1.UPDATE_CART,{cartId:e,items:t}),!r.cartLinesUpdate.cart)throw new g;return I(r.cartLinesUpdate)},U={items:[],cartInfo:{totalQuantity:0,total:0,checkoutUrl:""}},V=(e,t,l)=>{let i=window.location.pathname,r=new Map(e.map(e=>[e.id,e]));
1t.forEach(e=>{let t=r.get(e.id);t?e.quantity>t.quantity?(0,m.UC)({item:e,quantityAdded:e.quantity-t.quantity,path:i,cartToken:l}):e.quantity<t.quantity&&(0,m.Gq)({item:e,quantityRemoved:t.quantity-e.quantity,path:i,cartToken:l}):(0,m.UC)({item:e,quantityAdded:e.quantity,path:i,cartToken:l})})},q=e=>{let{children:t}=e,[l,i]=(0,s.useState)(U),[a,x]=(0,s.useState)(!1),[v,b]=(0,s.useState)(!0),[y,_]=(0,s.useState)(!1),j=(0,s.useCallback)(()=>_(!0),[]),S=(0,s.useCallback)(()=>_(!1),[]),{country:k,language:N}=(0,u.Y)(),{path:C}=(0,s.useContext)(o.A),I=k.toUpperCase(),A="".concat(f.ym.CART_ID,"_").concat(I),T=(0,s.useCallback)(()=>n().get(A),[A]),M=(0,s.useCallback)(()=>{var e;return null!=(e=n().get(d.Bd))?e:"unknown"},[]),z=(0,s.useCallback)(e=>{n().set(A,e,{domain:(0,c.R2)(),expires:10})},[A]),q=(0,s.useCallback)(()=>{n().remove(A,{domain:(0,c.R2)()})},[A]),O=(0,s.useCallback)(()=>{q(),i(U)},[q]),W=(0,s.useCallback)(async e=>{let t=await L(I,w(e),[{key:"anonymousId",value:M()},{key:"countrySite",value:(e=>(null==e?void 0:e.replaceAll("/",""))||"us")(C)},{key:"country",value:I}]);if(t){z(t);let e=await E(t);e&&(i(e),V([],e.items,R(t)))}},[I,C,z,M]),$=(0,s.useCallback)(async e=>{if(!v){x(!0);try{await e()}finally{x(!1)}}},[v]);(0,s.useEffect)(()=>{(async()=>{b(!0),x(!0);let e=T();if(e)try{let t=await E(e);t&&(i(t),z(e))}catch(e){q()}x(!1),b(!1)})()},[T,z,q]);let G=(0,s.useCallback)((e,t,l)=>{i(t),z(l),V(e,t.items,R(l))},[z]),Z=(0,s.useCallback)(e=>$(async()=>{let t=T();if(!t)return W(e);try{let i=l.items,r=await P(t,e);G(i,r,t)}catch(t){if(t instanceof g)return W(e);console.error("Error adding variant to cart:",t instanceof Error?t.message:t)}}),[$,T,W,G,l.items]),Q=(0,s.useCallback)(e=>$(async()=>{let t=T();if(!t)return;let r=l.items.find(t=>t.id===e);try{let a=await F(t,((e,t)=>{let l=(0,h.V)(e).find(e=>{let{parent:l}=e;return l.id===t});return l?[t,...l.children.map(e=>e.id)]:[t]})(l.items,e));i(a),z(t),r&&(0,m.Gq)({item:r,quantityRemoved:r.quantity,path:window.location.pathname,cartToken:R(t)})}catch(e){e instanceof g?O():console.error("Error removing line from cart:",e instanceof Error?e.message:e)}}),[$,T,z,O,l.items]),Y=(0,s.useCallback)(e=>$(async()=>{let t=e.filter(e=>0===e.quantity),i=e.filter(e=>e.quantity>0);if(await Promise.all(t.map(e=>Q(e.lineId))),i.length>0){let e=T();if(!e)return;try{let t=l.items,r=await B(e,i);G(t,r,e)}catch(e){e instanceof g?O():console.error("Error updating cart lines:",e instanceof Error?e.message:e)}}}),[$,T,Q,G,O,l.items]),H=(0,s.useMemo)(()=>{let e=l.cartInfo.checkoutUrl?(0,D.B)(l.cartInfo.checkoutUrl,I,N):void 0;return{addVariantsToCart:Z,removeCartLine:Q,updateCartLines:Y,isLoading:a,cart:l,cartToken:R(T()),localizedCheckoutUrl:e,isCartOpen:y,openCart:j,closeCart:S}},[Z,Q,Y,a,l,T,N,I,y,j,S]);return(0,r.jsx)(p.Z.Provider,{value:H,children:t})}},91164:(e,t,l)=>{"use strict";l.d(t,{j:()=>o});var i=l(38815),r=l(27331);let a=["https://content.formlabs.com","https://dental-content.formlabs.com","https://careers-content.formlabs.com"],n=["AS","OC"],s=["UA"],o=(e,t)=>{let l=e.get(i.N6);e.set("showPrice",function(e,t){return"string"==typeof e?function(e,t){let l=e.find(e=>e.code===t);return void 0===l?"true":n.includes(l.continent)||s.includes(l.code)?"false":"true"}(t,e):!function(){let e=(0,r._)("FL_PUBLIC_CMS_SITE");return!!e&&a.includes(e)}()?"true":"false"}(l,t))}}}]);

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.