PageSourceSearch

https://www.thingiverse.com/_next/static/chunks/155.f916ee90ef0340ea.js

js thingiverse.com collected 2026-10-01 08:28:59 UTC 29,725 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[155],{550:(e,t,n)=>{"use strict";n.d(t,{k:()=>a});var i=n(55434),a=function(e){var t=e.className;return(0,i.jsxs)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"37",height:"36",viewBox:"0 0 37 36",fill:"none",children:[(0,i.jsx)("path",{d:"M12.875 26.0775L10.625 23.8264L9.03763 25.4126L12.875 29.25L19.625 22.5L18.0387 20.9137L12.875 26.0775Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M32 33.75H27.5V31.5H32V18H27.5V9C27.4987 7.80694 27.0241 6.66312 26.1805 5.8195C25.3369 4.97588 24.1931 4.50134 23 4.5V2.25C24.7896 2.252 26.5053 2.96379 27.7708 4.22923C29.0362 5.49467 29.748 7.2104 29.75 9V15.75H32C32.5965 15.7506 33.1685 15.9879 33.5903 16.4097C34.0121 16.8315 34.2494 17.4035 34.25 18V31.5C34.2494 32.0965 34.0121 32.6685 33.5903 33.0903C33.1685 33.5121 32.5965 33.7494 32 33.75Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M23 15.75H20.75V9C20.75 7.20979 20.0388 5.4929 18.773 4.22703C17.5071 2.96116 15.7902 2.25 14 2.25C12.2098 2.25 10.4929 2.96116 9.22703 4.22703C7.96116 5.4929 7.25 7.20979 7.25 9V15.75H5C4.40326 15.75 3.83097 15.9871 3.40901 16.409C2.98705 16.831 2.75 17.4033 2.75 18V31.5C2.75 32.0967 2.98705 32.669 3.40901 33.091C3.83097 33.5129 4.40326 33.75 5 33.75H23C23.5967 33.75 24.169 33.5129 24.591 33.091C25.0129 32.669 25.25 32.0967 25.25 31.5V18C25.25 17.4033 25.0129 16.831 24.591 16.409C24.169 15.9871 23.5967 15.75 23 15.75ZM9.5 9C9.5 7.80653 9.97411 6.66193 10.818 5.81802C11.6619 4.97411 12.8065 4.5 14 4.5C15.1935 4.5 16.3381 4.97411 17.182 5.81802C18.0259 6.66193 18.5 7.80653 18.5 9V15.75H9.5V9ZM23 31.5H5V18H23V31.5Z",fill:"currentColor"})]})}},3501:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var i=n(55434),a=function(e){var t=e.className;return(0,i.jsx)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,i.jsx)("path",{d:"M10 1.25C8.26942 1.25 6.57769 1.76318 5.13876 2.72464C3.69983 3.6861 2.57832 5.05267 1.91606 6.65152C1.25379 8.25037 1.08051 10.0097 1.41813 11.707C1.75575 13.4044 2.58911 14.9635 3.81282 16.1872C5.03653 17.4109 6.59563 18.2443 8.29296 18.5819C9.9903 18.9195 11.7496 18.7462 13.3485 18.0839C14.9473 17.4217 16.3139 16.3002 17.2754 14.8612C18.2368 13.4223 18.75 11.7306 18.75 10C18.75 7.67936 17.8281 5.45376 16.1872 3.81282C14.5462 2.17187 12.3206 1.25 10 1.25V1.25ZM10 5C10.1854 5 10.3667 5.05498 10.5209 5.158C10.
1675 5.26101 10.7952 5.40743 10.8661 5.57873C10.9371 5.75004 10.9557 5.93854 10.9195 6.1204C10.8833 6.30225 10.794 6.4693 10.6629 6.60041C10.5318 6.73152 10.3648 6.82081 10.1829 6.85699C10.001 6.89316 9.81254 6.87459 9.64124 6.80364C9.46993 6.73268 9.32352 6.61252 9.2205 6.45835C9.11749 6.30418 9.0625 6.12292 9.0625 5.9375C9.0625 5.68886 9.16128 5.4504 9.33709 5.27459C9.51291 5.09877 9.75136 5 10 5ZM12.5 15.0781H7.5V13.6719H9.29688V10.0781H8.125V8.67188H10.7031V13.6719H12.5V15.0781Z",fill:"currentColor"})})}},6890:(e,t,n)=>{"use strict";n.d(t,{Q:()=>a});var i=n(55434),a=function(e){var t=e.className;return(0,i.jsxs)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",children:[(0,i.jsx)("path",{d:"M14.5 5.5V14.5H5.5V5.5H14.5ZM14.5 4.5H5.5C5.23478 4.5 4.98043 4.60536 4.79289 4.79289C4.60536 4.98043 4.5 5.23478 4.5 5.5V14.5C4.5 14.7652 4.60536 15.0196 4.79289 15.2071C4.98043 15.3946 5.23478 15.5 5.5 15.5H14.5C14.7652 15.5 15.0196 15.3946 15.2071 15.2071C15.3946 15.0196 15.5 14.7652 15.5 14.5V5.5C15.5 5.23478 15.3946 4.98043 15.2071 4.79289C15.0196 4.60536 14.7652 4.5 14.5 4.5Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M2.5 9.5H1.5V2.5C1.5 2.23478 1.60536 1.98043 1.79289 1.79289C1.98043 1.60536 2.23478 1.5 2.5 1.5H9.5V2.5H2.5V9.5Z",fill:"currentColor"})]})}},7956:e=>{e.exports={iconBadge:"IconBadge__iconBadge--bcv53",large:"IconBadge__large--4IZ6G",medium:"IconBadge__medium--yJDN8",small:"IconBadge__small--bXGBl",neutral:"IconBadge__neutral--i0Tie",success:"IconBadge__success--UMkOq",error:"IconBadge__error--Xig4F",warning:"IconBadge__warning--s7_kf",info:"IconBadge__info--70yzI",highlight:"IconBadge__highlight--c8G5p"}},15180:()=>{},21515:(e,t,n)=>{"use strict";n.d(t,{R:()=>a});var i=n(55434),a=function(e){var t=e.className;return(0,i.jsx)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",children:(0,i.jsx)("path",{d:"M8 1.35547C4.1 1.35547 1 4.45547 1 8.35547C1 12.2555 4.1 15.3555 8 15.3555C11.9 15.3555 15 12.2555 15 8.35547C15 4.45547 11.9 1.35547 8 1.35547ZM10.7 11.8555L8 9.15547L5.3 11.8555L4.5 11.0555L7.2 8.35547L4.5 5.65547L5.3 4.85547L8 7.55547L10.7 4.85547L11.5 5.65547L8.8 8.35547L11.5 11.0555L10.7 11.8555Z",fill:"currentColor"})})}},28990:(e,t,n)=>{"use strict";n.d(t,{A:()=>m,X:()=>h});var i=n(75839),a=n(55434),o=n(77838),r=n(55026),s=n(45408),c=n(21515),l=n(3501),d=n(8978),u=n(58945);n(31529);var f=n(39907);n(15180);let x=function(e){var t=e.closeToast,n=(0,u._)(e,["closeToast"]);return(0,a.jsx)(f.E,(0,d._)((0,i._)({},n),{onClose:t,boxShadow:!0}))};var h={autoClose:!1},g={position:"top-right",autoClose:5e3,closeOnClick:!1,pauseOnHover:!0,draggable:!0,progress:void 0,icon:!1,closeButton:!1,hideProgressBar:!0,className:"toast-wrapper-reset"};function p(e,t){return e&&t?"long":"short"}let m=function(){var e=function(e,t){return(0,o.oR)((0,a.jsx)(x,(0,i._)({},e)),(0,i._)({},g,t))};return{custom:e,success:function(t,n,o,r){return e((0,i._)({status:"success",type:p(t,n),icon:(0,a.jsx)(s._,{}),title:t,message:n},o),r)},error:function(t,n,o,r){return e((0,i._)({status:"error",type:p(t,n),icon:(0,a.jsx)(c.R,{}),title:t,message:n},o),r)},warning:function(t,n,o,s){return e((0,i._)({status:"warning",type:p(t,n),icon:(0,a.jsx)(r.Y,{}),title:t,message:n},o),s)},info:function(t,n,o,r){return e((0,i._)({status:"info",type:p(t,n),icon:(0,a.jsx)(l.N,{}),title:t,message:n},o),r)},neutral:function(t,n,a,o){return e((0,i._)({status:"neutral",type:p(t,n),title:t,message:n},a),o)},dismiss:o.oR.dismiss,update:o.oR.update,isActive:o.oR.isActive}}},31181:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});var i=n(55434),a=function(e){var t=e.className;return(0,i.jsxs)("svg",{className:t,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M13 12V14H3V12H2V14C2 14.2652 2.10536 14.5196 2.29289 14.7071C2.48043 14.8946 2.73478 15 3 15H13C13.2652 15 13.5196 14.8946 13.7071 14.7071C13.8946 14.5196 14 14.2652 14 14V12H13Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M13 7L12.295 6.295L8.5 10.085V1H7.5V10.085L3.705 6.295L3 7L8 12L13 7Z",fill:"currentColor"})]})}},39907:(e,t,n)=>{"use strict";n.d(t,{E:()=>g});var i=n(7866),a=n(24220),o=n(55434),r=n(1386),s=n.n(r),c=n(9090),l=n(25402),d=n(43298),u=n(62345),f=n(34091),x=n(41772),h=n.n(x),g=function(e){var t,n=e.status,r=e.type,x=e.icon,g=e.iconPosition,p=e.title,m=e.message,C=e.messageClass,v=e.action,j=e.actionPosition,_=void 0===j?"top":j,y=e.onClose,N=e.expandable,w=e.className,b=e.boxShadow,L=(0,a._)((0,c.useState)(!!(v&&"top"===_||y||N)),2),A=L[0],S=L[1],E=(0,a._)((0,c.useState)(!1),2),R=E[0],F=E[1];return(0,c.useEffect)(function(){S(!!(v&&("top"===_||"middle"===_)||y||N))},[v,y,N]),(0,o.jsxs)("div",{className:s()(h().notification,(0,i._)({},h().middle,"middle"===_),h()[void 0===n?"neutral":n],h()[void 0===r?"short":r],(t={}
1,(0,i._)(t,h().hasTopAction,A),(0,i._)(t,h().boxShadow,b),t),w),children:[(0,o.jsx)("div",{className:h().notificationBorderHighlight}),(0,o.jsxs)("div",{className:s()(h().notificationContentWrapper,(0,i._)({},h().iconTop,"top"===(void 0===g?"left":g))),children:[!!x&&(0,o.jsx)("div",{className:h().iconWrapper,children:x}),(0,o.jsxs)("div",{className:s()(h().notificationContent,(0,i._)({},h().isCollapsed,N&&!R)),children:[!!p&&(0,o.jsx)("div",{className:h().notificationTitle,children:p}),!!m&&(0,o.jsx)("div",{className:s()(h().notificationMessage,C,(0,i._)({},h().middle,"middle"===_)),children:m}),v&&"bottom"===_&&(0,o.jsx)("div",{className:"flex flex--justify-end",children:v})]})]}),A&&(0,o.jsxs)("div",{className:s()(h().notificationActions,(0,i._)({},h().middle,"middle"===_)),children:[("top"===_||"middle"===_)&&v,!!N&&(0,o.jsx)(l.$,{onClick:function(){F(function(e){return!e})},icon:R?(0,o.jsx)(u.r,{}):(0,o.jsx)(d.y,{}),appearance:"ghostNeutral",rounded:!0,ariaLabel:"".concat(R?"Collapse":"Expand"," Notification")}),!!y&&(0,o.jsx)(l.$,{onClick:y,icon:(0,o.jsx)(f.b,{}),appearance:"ghostNeutral",rounded:!0,ariaLabel:"Close Notification"})]})]})}},41772:e=>{e.exports={notification:"Notification__notification--M43tS",middle:"Notification__middle--6xTtd",hasTopAction:"Notification__hasTopAction--wrqDA",boxShadow:"Notification__boxShadow--U3ggG",notificationTitle:"Notification__notificationTitle--oWdDq",notificationMessage:"Notification__notificationMessage--YxSLz",notificationBorderHighlight:"Notification__notificationBorderHighlight--Ag99n",notificationContentWrapper:"Notification__notificationContentWrapper--oRXkO",iconWrapper:"Notification__iconWrapper--gfFiN",iconTop:"Notification__iconTop--DG9_i",notificationContent:"Notification__notificationContent--8fc0W",isCollapsed:"Notification__isCollapsed--iWT6a",notificationActions:"Notification__notificationActions--R7KzB",short:"Notification__short--25h2I",long:"Notification__long--JNjmT",neutral:"Notification__neutral--hECd9",success:"Notification__success--CubiD",error:"Notification__error--ZCsni",warning:"Notification__warning--Z6cZ-",info:"Notification__info--S2tvz"}},43914:(e,t,n)=>{"use strict";n.d(t,{P:()=>i.P});var i=n(49651)},45408:(e,t,n)=>{"use strict";n.d(t,{_:()=>a});var i=n(55434),a=function(e){var t=e.className;return(0,i.jsx)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",children:(0,i.jsx)("path",{d:"M10.5 1.25C8.76942 1.25 7.07769 1.76318 5.63876 2.72464C4.19983 3.6861 3.07832 5.05267 2.41606 6.65152C1.75379 8.25037 1.58051 10.0097 1.91813 11.707C2.25575 13.4044 3.08911 14.9635 4.31282 16.1872C5.53653 17.4109 7.09563 18.2442 8.79296 18.5819C10.4903 18.9195 12.2496 18.7462 13.8485 18.0839C15.4473 17.4217 16.8139 16.3002 17.7754 14.8612C18.7368 13.4223 19.25 11.7306 19.25 10C19.25 7.67936 18.3281 5.45376 16.6872 3.81282C15.0462 2.17187 12.8206 1.25 10.5 1.25ZM9.25 13.4942L6.125 10.3692L7.11913 9.375L9.25 11.5058L13.8813 6.875L14.8786 7.86619L9.25 13.4942Z",fill:"currentColor"})})}},47064:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});var i=n(55434),a=function(e){var t=e.className;return(0,i.jsxs)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,i.jsx)("path",{d:"M8 5C8.55228 5 9 4.55228 9 4C9 3.44772 8.55228 3 8 3C7.44772 3 7 3.44772 7 4C7 4.55228 7.44772 5 8 5Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M8 13C8.55228 13 9 12.5523 9 12C9 11.4477 8.55228 11 8 11C7.44772 11 7 11.4477 7 12C7 12.5523 7.44772 13 8 13Z",fill:"currentColor"})]})}},49839:(e,t,n)=>{"use strict";n.d(t,{N:()=>j});var i=n(24220),a=n(55434),o=n(9090),r=n(45255),s=n(25402),c=n(89403),l=n(1386),d=n.n(l),u=n(74336),f=n.n(u),x=function(e){var t=e.value,n=e.onChange,r=e.onEnter,s=e.error,l=function(e){n(e.map(function(e){return""===e?" ":e}).join(""))},u=function(e,t){var n=C[t],i=e.target.value.replace(n,"");if(/^(\d?)$/.test(i)){var a,o=(0,c._)(C);o[t]=i,v(o),i&&t<5&&(null==(a=j.current[t+1])||a.focus()),l(o)}},x=function(e,t){var n,i,a;"Backspace"===e.key&&(e.currentTarget.value?u({target:{value:""}},t):t>0&&(null==(n=j.current[t-1])||n.focus())),"ArrowLeft"===e.key&&t>0&&(null==(i=j.current[t-1])||i.focus()),"ArrowRight"===e.key&&t<5&&(null==(a=j.current[t+1])||a.focus())},h=function(e){"Enter"===e.key&&r&&r()},g=function(e){e.preventDefault();var t=e.clipboardData.getData("text").trim();if(6===t.length&&/^\d+$/.test(t)){var n,i=t.split("");v(i),null==(n=j.current[5])||n.focus(),l(i)}},p=function(e,t){return(0,a.jsx)("input",{className:d()(f().codeInput,"tv-input flex--equal-section",{error:s}
1),value:e,type:"tel",onChange:function(e){return u(e,t)},onKeyDown:function(e){return x(e,t)},onPaste:g,onKeyUp:function(e){return h(e)},ref:function(n){0===t&&n&&""===n.value&&n.focus(),n&&e&&5===t&&n.blur(),s&&n&&n.focus(),j.current[t]=n}},t)},m=(0,i._)((0,o.useState)(["","","","","",""]),2),C=m[0],v=m[1],j=(0,o.useRef)([]);return(0,o.useEffect)(function(){var e=t.split("").slice(0,6).map(function(e){return" "===e?"":e});v((0,c._)(e).concat((0,c._)(Array(6-e.length).fill(""))))},[t]),(0,a.jsxs)("div",{className:"flex flex--align-center flex--justify-center flex-gap--md full-width",children:[C.slice(0,3).map(p),(0,a.jsx)("div",{className:"text-color--disabled font-weight--bold",children:"-"}),C.slice(3,6).map(function(e,t){return p(e,t+3)})]})},h=n(41157),g=n(550),p=n(74601),m=n(90710),C=n(80670),v=n(74407),j=function(e){var t=e.inlineVerifyAction,n=void 0!==t&&t,c=e.onVerify,l=e.onBack,d=function(){A(C.G.Loading),c(j).then(function(){A(C.G.Complete)}).catch(function(e){var t,n;R((t=(0,v.K)(e).message,n="An error occurred during verification. Please try again later.",t?t.includes("Invalid 2FA code")?"Incorrect code.":t.includes("Too many invalid 2FA attempts")?"Code entry blocked for 15 minutes after 5 failed attempts.":t.includes("2FA login has expired")?"Session expired. Please try signing in again.":t.includes("Not currently logged in")?"It looks like you're not logged in. Please try signing in again.":n:n)),A(C.G.Failed)})},u=function(){N?d():(A(C.G.Inactive),R(""))},f=(0,i._)((0,o.useState)(""),2),j=f[0],_=f[1],y=(0,i._)((0,o.useState)(!1),2),N=y[0],w=y[1],b=(0,i._)((0,o.useState)(C.G.Inactive),2),L=b[0],A=b[1],S=(0,i._)((0,o.useState)(""),2),E=S[0],R=S[1];return(0,o.useEffect)(function(){w(m.Nw.test(j))},[j]),(0,o.useEffect)(function(){N?d():(A(C.G.Inactive),R(""))},[N]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.E,{className:"flex flex--column flex--align-center flex--justify-start",fillSpace:!0,children:[(0,a.jsx)(p.f,{icon:(0,a.jsx)(g.k,{}),appearance:"highlight"}),(0,a.jsx)("h4",{className:"margin-top--xxl",children:"Enter Unique Code"}),(0,a.jsx)("div",{className:"margin-top--xxl text-color--secondary text-align--center",children:"Enter the 6-digit code displayed for the Thingiverse account in your authenticator app."}),(0,a.jsxs)("div",{className:"margin-top--auto margin-bottom--auto",children:[(0,a.jsx)(x,{value:j,onChange:_,onEnter:u,error:L===C.G.Failed}),L===C.G.Failed&&(0,a.jsx)("div",{className:"tv-error margin-top--sm",children:E})]}),n&&(0,a.jsx)(s.$,{className:"margin-top--xxl full-width",onClick:u,loading:L===C.G.Loading,disabled:!N,ariaLabel:"Verify code",appearance:"primary",rounded:!0,children:"Verify"})]}),!n&&(0,a.jsx)(r.E,{children:(0,a.jsxs)("div",{className:"flex flex--align-center flex-gap--xxl",children:[l&&(0,a.jsx)(s.$,{title:"Back to previous step",ariaLabel:"Back to previous step",appearance:"outlineNeutral",boxShadow:"subtle",icon:(0,a.jsx)(h.J,{}),rounded:!0,onClick:l,disabled:L===C.G.Loading}),(0,a.jsx)(s.$,{className:"flex--grow",onClick:u,loading:L===C.G.Loading,disabled:!N,ariaLabel:"Verify code",appearance:"primary",rounded:!0,children:"Verify"})]})})]})}},55026:(e,t,n)=>{"use strict";n.d(t,{Y:()=>a});var i=n(55434),a=function(e){var t=e.className;return(0,i.jsxs)("svg",{className:t,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("circle",{cx:"10",cy:"10",r:"7.5",fill:"#12226B"}),(0,i.jsx)("path",{d:"M10 1.25C5.1875 1.25 1.25 5.1875 1.25 10C1.25 14.8125 5.1875 18.75 10 18.75C14.8125 18.75 18.75 14.8125 18.75 10C18.75 5.1875 14.8125 1.25 10 1.25ZM9.3125 5H10.6875V11.875H9.3125V5ZM10 15.625C9.5 15.625 9.0625 15.1875 9.0625 14.6875C9.0625 14.1875 9.5 13.75 10 13.75C10.5 13.75 10.9375 14.1875 10.9375 14.6875C10.9375 15.1875 10.5 15.625 10 15.625Z",fill:"#FFC402"})]})}},64524:(e,t,n)=>{"use strict";n.d(t,{i:()=>f});var i=n(55706),a=n(75839),o=n(8978),r=n(58945),s=n(24220),c=n(89146),l=n(55434),d=n(9090),u=n(25402),f=function(e){var t=e.text,n=void 0===t?"":t,f=e.renderButtonText,x=e.ariaLabel,h=(0,r._)(e,["text","renderButtonText","ariaLabel"]),g=(0,s._)((0,d.useState)(!1),2),p=g[0],m=g[1];return(0,l.jsx)(u.$,(0,o._)((0,a._)({},h),{ariaLabel:void 0===x?"Copy text":x,onClick:function(){return(0,i._)(function(){return(0,c.YH)(this,function(e){switch(e.label){case 0:if(p)return[2];return[4,navigator.clipboard.writeText(n)];case 1:return e.sent(),m(!0),setTimeout(function(){m(!1)},1e3),[2]}})})()},children:f?f(p):p?"Copied!":"Copy"}))}},74336:e=>{e.exports={codeInput:"CodeInput__codeInput--Tko3m"}},74601:(e,t,n)=>{"use strict";n.d(t,{f:()=>c});var i=n(55434),a=n(1386),o=n.n(a),r=n(7956),s=n.n(r),c=function(e){var t=e.icon,n=e.appearance,a=e.size,r=e.className;
1return(0,i.jsx)("div",{className:o()(s().iconBadge,s()[void 0===n?"neutral":n],s()[void 0===a?"large":a],r),children:t})}},77301:e=>{e.exports={userSecurityPage:"UserSecurityPage__userSecurityPage--l1_nt",securityNotification:"UserSecurityPage__securityNotification--eqSJM",securityNotificationMessage:"UserSecurityPage__securityNotificationMessage--piFfI"}},80155:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UserSecurityPage:()=>en,default:()=>ei});var i,a=n(75839),o=n(24220),r=n(55434),s=n(9090),c=n(71568),l=n(9106),d=n(43914),u=n(45255),f=n(49839),x=n(25402),h=n(64524),g=n(6890),p=n(31181),m=n(550),C=n(74601),v=n(80670),j=n(20560),_=n.n(j),y=n(7122);function N(){var e=(0,o._)((0,s.useState)([]),2),t=e[0],n=e[1],i=(0,o._)((0,s.useState)(v.G.Inactive),2),a=i[0],r=i[1],c=(0,o._)((0,s.useState)(!1),2),d=c[0],u=c[1];return{recoveryCodes:t,recoveryCodeState:a,recoveryCodesFileDownloaded:d,generateRecoveryCodes:function(){return new Promise(function(e,t){r(v.G.Loading),l.A.generateRecoveryCodes().then(function(t){n(t.recovery_codes),r(v.G.Complete),e(t)}).catch(function(e){r(v.G.Failed),t(e)})})},downloadRecoveryCodesFile:function(e){var n=new Blob(["These are your one-time recovery codes for Thingiverse.\n\nKeep these codes in a safe place. Each code can be used only once.\n\n"+"Generated on: ".concat(_()().format("D MMM, YYYY"),"\n\n")+t.join("\n")],{type:"text/plain"});(0,y.WN)(n,"thingiverse-recovery-codes.txt"),u(!0),e&&e()}}}var w=n(7866),b=n(1386),L=n.n(b),A=n(92285),S=n(91172),E=n.n(S),R=function(e){var t=e.codes,n=void 0===t?[]:t,i=e.blur,a=e.loading,c=e.className,l=(0,o._)((0,s.useState)(0),2),d=l[0],u=l[1];return(0,s.useEffect)(function(){u(Math.ceil(n.length/2))},[n.length]),(0,r.jsxs)("div",{className:L()(E().authCardRecoveryCodesWrapper,c),children:[a&&(0,r.jsx)(A.y,{}),!a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:E().authCardRecoveryCodesSection,children:n.slice(0,d).map(function(e,t){return(0,r.jsx)("div",{className:L()(E().authCardRecoveryCode,(0,w._)({},E().blur,i)),children:e},t)})}),(0,r.jsx)("div",{className:E().authCardRecoveryCodesSection,children:n.slice(-d).map(function(e,t){return(0,r.jsx)("div",{className:L()(E().authCardRecoveryCode,(0,w._)({},E().blur,i)),children:e},t)})})]})]})},F=function(e){var t=e.onDownload,n=e.actionSlot,i=N(),a=i.recoveryCodes,o=i.recoveryCodeState,c=i.recoveryCodesFileDownloaded,l=i.generateRecoveryCodes,d=i.downloadRecoveryCodesFile;return(0,s.useEffect)(function(){l()},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(u.E,{className:"flex flex--column flex--align-center flex--justify-start",fillSpace:!0,children:[(0,r.jsx)(C.f,{icon:(0,r.jsx)(m.k,{}),appearance:"success"}),(0,r.jsx)("h4",{className:"margin-top--xxl text-align--center",children:"Two-Factor Authentication is Enabled"}),(0,r.jsx)("div",{className:"margin-top--xxl text-color--secondary text-align--center",children:"Recovery codes can be used to access your account if you lose access to your email."}),(0,r.jsx)("div",{className:"margin-top--sm font-size--sm text-color--disabled text-align--center",children:"Keep them in a safe place"}),(0,r.jsx)(R,{className:"margin-top--xxl",codes:a,loading:o===v.G.Loading}),o===v.G.Failed&&(0,r.jsx)("div",{className:"tv-error margin-top--sm",children:"Unable to generate recovery codes"})]}),(0,r.jsxs)(u.E,{children:[(0,r.jsxs)("div",{className:"flex flex--align-center flex-gap--lg",children:[(0,r.jsx)(h.i,{className:"flex--equal-section",text:a.join("\n"),ariaLabel:"Copy Recovery Codes",disabled:!a.length,icon:(0,r.jsx)(g.Q,{}),iconPosition:"left",appearance:"outlineNeutral",boxShadow:"subtle",rounded:!0}),(0,r.jsx)(x.$,{className:"flex--equal-section",ariaLabel:"Download Recovery Codes",disabled:!a.length,onClick:function(){return d(t)},icon:(0,r.jsx)(p.f,{}),iconPosition:"left",appearance:c?"outlineNeutral":"primary",boxShadow:"subtle",rounded:!0,children:"Download"})]}),!!n&&n]})]})},V=n(45408),k=n(39907),D=n(61296),M=n(28990),B=n(34749),G=n(65814),I=n(7631);let T=n(30035).A;var H=n(77301),P=n.n(H),Z=n(54456),U=n(74740),Y=n(55026),z=n(21515),O=n(47064),W=n(5882),$="2fa-dropdown-button",q=["12ab34CD","12ab34CD","12ab34CD","12ab34CD","12ab34CD","12ab34CD"];let K=function(e){var t=e.onDisabled,n=(0,Z.zH)({dispatchUpdateUserData:I.b6},(0,c.wA)()).dispatchUpdateUserData,i=(0,M.A)(),a=(0,c.d4)(I.xu),d=N(),f=d.recoveryCodes,j=d.recoveryCodeState,y=d.recoveryCodesFileDownloaded,w=d.generateRecoveryCodes,b=d.downloadRecoveryCodesFile,A=(0,o._)((0,s.use
1State)(v.G.Inactive),2),S=A[0],E=A[1];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(u.E,{className:"flex flex--column flex--align-center flex--justify-start",fillSpace:!0,children:[(0,r.jsx)(C.f,{icon:(0,r.jsx)(m.k,{}),appearance:"success"}),(0,r.jsx)("h4",{className:"margin-top--xxl text-align--center",children:"Two-Factor Authentication is Enabled"}),(0,r.jsx)("div",{className:"margin-top--xxl text-color--secondary text-align--center",children:"Recovery codes can be used to access your account if you lose access to your authenticator app."}),(0,r.jsx)("div",{className:"margin-top--sm font-size--sm text-color--disabled text-align--center",children:"Keep them in a safe place"}),(0,r.jsx)(R,{className:"margin-top--xxl",codes:f.length?f:q,blur:j!==v.G.Complete}),j!==v.G.Failed&&(0,r.jsx)(k.E,{className:L()(P().securityNotification,"margin-top--xxl"),message:"Regenerating will disable previous codes.",messageClass:P().securityNotificationMessage,icon:(0,r.jsx)(Y.Y,{}),status:"warning",type:"long"}),j===v.G.Failed&&(0,r.jsx)(k.E,{className:L()(P().securityNotification,"margin-top--xxl"),message:"Unable to regenerate recovery codes.",messageClass:P().securityNotificationMessage,icon:(0,r.jsx)(z.R,{}),status:"error",type:"long"})]}),(0,r.jsxs)(u.E,{children:[(0,r.jsxs)("div",{className:"font-size--sm text-color--disabled text-align--center",children:["Last Generated |"," ",!!(null==a?void 0:a.recovery_codes_created_at)&&_()(a.recovery_codes_created_at).format("MMMM DD, YYYY")]}),(0,r.jsxs)("div",{className:"margin-top--sm flex flex--align-center flex-gap--sm",children:[j!==v.G.Complete&&(0,r.jsx)(x.$,{className:"flex--equal-section",onClick:function(){w().then(function(){n({recovery_codes_created_at:new Date().toISOString()})})},loading:j===v.G.Loading,disabled:!a||j===v.G.Failed,icon:(0,r.jsx)(W.C,{}),iconPosition:"left",ariaLabel:"Regenerate Recovery Codes",appearance:"primary",rounded:!0,children:"Regenerate Recovery Codes"}),j===v.G.Complete&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.i,{className:"flex--equal-section",text:f.join("\n"),ariaLabel:"Copy Recovery Codes",icon:(0,r.jsx)(g.Q,{}),iconPosition:"left",appearance:"outlineNeutral",boxShadow:"subtle",size:"medium",rounded:!0}),(0,r.jsx)(x.$,{className:"flex--equal-section",ariaLabel:"Download Recovery Codes",onClick:function(){return b()},icon:(0,r.jsx)(p.f,{}),iconPosition:"left",appearance:y?"outlineNeutral":"primary",boxShadow:"subtle",size:"medium",rounded:!0,children:"Download"})]}),(0,r.jsxs)(U.m,{closeOnContentClick:!1,alignContent:"right",id:$,ariaLabel:"Open dropdown menu",icon:(0,r.jsx)(O.C,{}),appearance:"ghostNeutral",size:j===v.G.Complete?"medium":"large",rounded:!0,children:[(0,r.jsx)(x.$,{className:"margin-left--lg margin-right--lg margin-top--sm margin-bottom--sm",onClick:function(){E(v.G.Loading),l.A.postDisable2FA().then(function(){var e=document.getElementById($);e&&e.click(),n({"2fa_enabled":!1}),(0,B.oV)(D.P.UserData),t(),E(v.G.Complete)}).catch(function(){i.error("Error while disabling 2FA","Unable to disable 2FA at the moment. Please try again later."),E(v.G.Failed)})},loading:S===v.G.Loading,disabled:!a||S===v.G.Failed,ariaLabel:"Disable Two-Factor Authentication",icon:(0,r.jsx)(z.R,{}),iconPosition:"left",appearance:"danger",size:"medium",rounded:!0,children:"Disable 2FA"}),S===v.G.Failed&&(0,r.jsx)("div",{className:"tv-error font-size--xs margin-left--lg margin-right--lg margin-bottom--sm",children:"Unable to disable 2FA"})]})]})]})]})};var Q=n(26479);let J=function(e){var t=e.isLoading,n=void 0!==t&&t,i=e.onContinue,a=e.onSkip,o=(0,c.d4)(I.xu);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(u.E,{className:"flex flex--column flex--align-center flex--justify-start",fillSpace:!0,children:[(0,r.jsx)(C.f,{icon:(0,r.jsx)(m.k,{}),appearance:"highlight"}),(0,r.jsx)("h4",{className:"margin-top--xxl",children:"Two-Factor Authentication"}),!o&&(0,r.jsx)(A.y,{className:"flex flex--column flex--align-center flex--justify-center flex--grow"}),o&&(0,r.jsx)(Q.w,{primaryInfo:"To keep your account secure, we'll verify your identity with an Authenticator App.",additionalInfo:"You can use any standard authenticator you choose. Popular options include: Google Authenticator, Authy, Microsoft Authenticator."})]}),(0,r.jsx)(u.E,{children:(0,r.jsx)(x.$,{className:"full-width",onClick:i,disabled:!o,loading:n,ariaLabel:"Enable two-factor authentication",appearance:"primary",rounded:!0,children:"Continue"})}),a&&(0,r.jsxs)(u.E,{children:[(0,r.jsx)(Q.w,{finePrint:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"text-color--secondary",children:"To enable 2FA later, navigate to:"}),(0,r.jsx)("br",{}),(0,r.jsx)("span",{className:"text-color--disabled",children:"Settings > Thingiverse Account > Security"})]})}),(0,r.jsx)(x.$,{className:"full-width margin-top--sm",onClick:a,disabled:!o,loading:n,ariaLabel:"Skip two-factor authentication setup",appearance:"secondary",rounded:!0,children:"Skip for Now"})]})]})};var X=n(46934);let ee=function(e){var t=e.QRData,n=e.onContinue;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(u.E,{className:"flex flex--column flex--align-center flex--justify-start",fillSpace:!0,children:[(0,r.jsx)(C.f,{icon:(0,r.jsx)(m.k,{}),appearance:"highlight"}),(0,r.jsx)("h4",{className:"margin-top--xxl",children:"Link Your Authenticator App"}),(0,r.jsx)("div",{className:"margin-top--xxl text-color--secondary text-align--center",children:"Using your authenticator application, scan the QR code"}),(0,r.jsx)(X.Ay,{className:"margin-top--xxl",size:278,value:(null==t?void 0:t.qr_code_url)||""})]}),(0,r.jsx)(u.E,{children:(0,r.jsx)(x.$,{className:"full-width",onClick:n,ariaLabel:"Linked Authenticator App",appearance:"primary",rounded:!0,children:"Continue"})})]})};var et=((i=et||{})[i.NOT_ENABLED=0]="NOT_ENABLED",i[i.LINK_QR=1]="LINK_QR",i[i.VERIFY=2]="VERIFY",i[i.DOWNLOAD_RECOVERY=3]="DOWNLOAD_RECOVERY",i[i.ENABLED=4]="ENABLED",i[i.VERIFIED_2FA=5]="VERIFIED_2FA",i);let en=function(){var e=function(e){scrollTo({top:0,behavior:"smooth"}),j(e)},t=function(){N(!0),p.dismiss(),l.A.postEnable2FA().then(function(t){L(t),e(1),N(!1)}).catch(function(){p.error("Error while enabling 2FA","Unable to enable 2FA at the moment. Please try again later."),N(!1)})},n=function(){g.push("/membership")},i=function(t){return new Promise(function(n,i){l.A.finalize2FA({code:t}
1).then(function(){(0,B.oV)(D.P.UserData),e(3),n()}).catch(i)})},x=function(){p.warning(void 0,"Two-Factor Authentication Disabled"),e(0)},h=function(){return(0,r.jsxs)(u.V,{hideBoxShadow:!0,children:[!m&&(0,r.jsxs)(u.E,{className:"flex flex--column flex--align-center flex--justify-start",fillSpace:!0,children:[(0,r.jsx)("h4",{className:"margin-top--xxl",children:"Two-Factor Authentication"}),(0,r.jsx)(A.y,{className:"flex flex--column flex--align-center flex--justify-center flex--grow"})]}),m&&(0,r.jsxs)(r.Fragment,{children:[0===v&&(0,r.jsx)(J,{isLoading:y,onContinue:t}),5===v&&(0,r.jsx)(J,{isLoading:y,onContinue:t,onSkip:n}),1===v&&(0,r.jsx)(ee,{QRData:b,onContinue:function(){return e(2)}}),2===v&&(0,r.jsx)(f.N,{onVerify:i,onBack:function(){return e(1)}}),3===v&&(0,r.jsx)(F,{actionSlot:(0,r.jsx)("div",{className:"margin-top--sm font-size--sm text-color--disabled text-align--center",children:"You can safely close this tab"})}),4===v&&(0,r.jsx)(K,{onDisabled:x})]})]})},g=(0,G.x_)(),p=(0,M.A)(),m=(0,c.d4)(I.xu),C=(0,o._)((0,s.useState)(),2),v=C[0],j=C[1],_=(0,o._)((0,s.useState)(!1),2),y=_[0],N=_[1],w=(0,o._)((0,s.useState)(),2),b=w[0],L=w[1],S=(0,G.WO)(),E={status:"success",type:"long",icon:(0,r.jsx)(V._,{}),title:"Verification Completed",message:"Your email address has been verified"};return(0,s.useEffect)(function(){if(m){if("/verified/2fa"===S.pathname){m&&m["2fa_enabled"]&&g.replace("/".concat(m.name,"/security")),j(m["2fa_enabled"]?4:5);return}j(4*!!m["2fa_enabled"])}},[null==m?void 0:m["2fa_enabled"],S.pathname]),5===v?(0,r.jsx)(T,{notification:(0,r.jsx)(k.E,(0,a._)({},E)),children:h()}):(0,r.jsx)(d.P,{contentClass:P().userSecurityPage,noHeaderMargin:!0,children:h()})},ei=en},91172:e=>{e.exports={authCardRecoveryCodesWrapper:"AuthCardRecoveryCodes__authCardRecoveryCodesWrapper--pM5Zu",authCardRecoveryCodesSection:"AuthCardRecoveryCodes__authCardRecoveryCodesSection--xBUfJ",authCardRecoveryCode:"AuthCardRecoveryCodes__authCardRecoveryCode--kd2Dv",blur:"AuthCardRecoveryCodes__blur--AMVUK"}}}]);

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.