1/*! For license information please see 791.0796b9ba.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkcustqrd=self.webpackChunkcustqrd||[]).push([[791],{3762:(e,a,s)=>{s.d(a,{L:()=>g});var n=s(9379),t=s(45),l=s(579),r=(s(5043),s(5783)),i=s(1721),d=s(9863),o=s(8038),c=s(4886),u=s(6331),m={root:"m_7341320d"};const h=["classNames","className","style","styles","unstyled","vars","autoContrast"],p={},v=(0,i.V)((e,a)=>{let{size:s,radius:n,variant:t,gradient:l,color:i,autoContrast:d}=a;const o=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:l,variant:t||"filled",autoContrast:d});return{root:{"--ti-size":(0,r.YC)(s,"ti-size"),"--ti-radius":void 0===n?void 0:(0,r.nJ)(n),"--ti-bg":i||t?o.background:void 0,"--ti-color":i||t?o.color:void 0,"--ti-bd":i||t?o.border:void 0}}}),g=(0,u.P9)((e,a)=>{const s=(0,d.Y)("ThemeIcon",p,e),{classNames:r,className:i,style:u,styles:g,unstyled:x,vars:j,autoContrast:y}=s,f=(0,t.A)(s,h),w=(0,o.I)({name:"ThemeIcon",classes:m,props:s,className:i,style:u,classNames:r,styles:g,unstyled:x,vars:j,varsResolver:v});return(0,l.jsx)(c.a,(0,n.A)((0,n.A)({ref:a},w("root")),f))});g.classes=m,g.displayName="@mantine/core/ThemeIcon"},4791:(e,a,s)=>{s.r(a),s.d(a,{default:()=>I});var n=s(5043),t=s(4868),l=s(3407),r=s(5214),i=s(461),d=s(8769),o=s(1662),c=s(4933),u=s(7783),m=s(3201),h=s(56),p=s(9848),v=s(3762),g=s(1740),x=s(4648),j=(0,x.A)("outline","mail","IconMail",[["path",{d:"M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10z",key:"svg-0"}],["path",{d:"M3 7l9 6l9 -6",key:"svg-1"}]]),y=(0,x.A)("outline","brand-google","IconBrandGoogle",[["path",{d:"M20.945 11a9 9 0 1 1 -3.284 -5.997l-2.655 2.392a5.5 5.5 0 1 0 2.119 6.605h-4.125v-3h7.945z",key:"svg-0"}]]),f=(0,x.A)("outline","brand-apple","IconBrandApple",[["path",{d:"M8.286 7.008c-3.216 0 -4.286 3.23 -4.286 5.92c0 3.229 2.143 8.072 4.286 8.072c1.165 -.05 1.799 -.538 3.214 -.538c1.406 0 1.607 .538 3.214 .538s4.286 -3.229 4.286 -5.381c-.03 -.011 -2.649 -.434 -2.679 -3.23c-.02 -2.335 2.589 -3.179 2.679 -3.228c-1.096 -1.606 -3.162 -2.113 -3.75 -2.153c-1.535 -.12 -3.032 1.077 -3.75 1.077c-.729 0 -2.036 -1.077 -3.214 -1.077z",key:"svg-0"}],["path",{d:"M12 4a2 2 0 0 0 2 -2a2 2 0 0 0 -2 2",key:"svg-1"}]]),w=s(6960),k=s(4117),b=s(9008),z=s(579);const C="password",S="google.com",A="apple.com";function I(e){const{t:a}=(0,k.Bd)();(0,b.C)(a("menu.profile"));const s=e.user,[i,d]=(0,n.useState)(s.providerData.map(e=>e.providerId)),o=i.includes(C);return(0,z.jsxs)(t.B,{maw:560,mx:"auto",py:"lg",gap:"lg",children:[(0,z.jsxs)(t.B,{gap:2,children:[(0,z.jsx)(l.h,{order:2,fz:28,fw:800,children:a("menu.profile")}),(0,z.jsx)(r.E,{c:"dimmed",size:"sm",children:s.email})]}),(0,z.jsx)(B,{user:s}),o&&(0,z.jsx)(E,{user:s}),(0,z.jsx)(M,{user:s,providers:i,onChange:async()=>{await s.reload(),d(s.providerData.map(e=>e.providerId))}})]})}function N(e){let{title:a,children:s}=e;return(0,z.jsx)(i.t,{withBorder:!0,radius:"lg",shadow:"sm",p:{base:"md",sm:"lg"},pos:"relative",children:(0,z.jsxs)(t.B,{gap:"md",children:[(0,z.jsx)(l.h,{order:3,fz:18,fw:700,children:a}),s]})})}function B(e){var a;let{user:s}=e;const{t:t}=(0,k.Bd)(),[l,i]=(0,n.useState)(!1),[m,h]=(0,n.useState)(s.displayName),[p,v]=(0,n.use
2State)(!1);return(0,z.jsxs)(N,{title:t("account.section.profile"),children:[(0,z.jsx)(d.p,{visible:l,zIndex:100,overlayProps:{radius:"sm",blur:2}}),(0,z.jsx)(o.k,{size:"md",radius:"md",label:t("account.displayName"),placeholder:t("account.displayName"),value:null!==m&&void 0!==m?m:"",onChange:e=>{h(e.currentTarget.value),v(!1)}}),p&&(0,z.jsx)(r.E,{size:"sm",c:"teal",children:t("account.updated")}),(0,z.jsx)(c.Y,{justify:"flex-end",children:(0,z.jsx)(u.$,{radius:"md",disabled:0===(null!==(a=null===m||void 0===m?void 0:m.length)&&void 0!==a?a:0)||s.displayName===m,onClick:()=>{i(!0),v(!1),(0,g.r7)(s,{displayName:m}).then(()=>{i(!1),v(!0)}).catch(e=>{i(!1),alert(e.message)})},children:t("general.update")})})]})}function E(e){let{user:a}=e;const{t:s}=(0,k.Bd)(),[t,l]=(0,n.useState)(!1),[i,o]=(0,n.useState)(""),[h,p]=(0,n.useState)(""),[v,x]=(0,n.useState)(""),[j,y]=(0,n.useState)(""),[f,w]=(0,n.useState)(!1);return(0,z.jsxs)(N,{title:s("account.section.password"),children:[(0,z.jsx)(d.p,{visible:t,zIndex:100,overlayProps:{radius:"sm",blur:2}}),(0,z.jsx)(m.y,{radius:"md",label:s("account.password.current"),value:i,onChange:e=>o(e.currentTarget.value)}),(0,z.jsx)(m.y,{radius:"md",label:s("account.password.new"),value:h,onChange:e=>p(e.currentTarget.value)}),(0,z.jsx)(m.y,{radius:"md",label:s("account.password.confirm"),value:v,onChange:e=>x(e.currentTarget.value)}),j&&(0,z.jsx)(r.E,{size:"sm",c:"red",children:j}),f&&(0,z.jsx)(r.E,{size:"sm",c:"teal",children:s("account.password.updated")}),(0,z.jsx)(c.Y,{justify:"flex-end",children:(0,z.jsx)(u.$,{radius:"md",disabled:!i||!h||!v,onClick:async()=>{if(y(""),w(!1),h.length<6)return y(s("account.password.tooShort"));if(h!==v)return y(s("account.password.mismatch"));l(!0);try{var e;const s=g.IX.credential(null!==(e=a.email)&&void 0!==e?e:"",i);await(0,g.kZ)(a,s),await(0,g.f3)(a,h),l(!1),w(!0),o(""),p(""),x("")}catch(t){var n;l(!1),y(null!==(n=null===t||void 0===t?void 0:t.message)&&void 0!==n?n:s("error.unknown"))}},children:s("account.password.change")})})]})}function M(e){let{user:a,providers:s,onChange:l}=e;const{t:i}=(0,k.Bd)(),[d,o]=(0,n.useState)(null),[m,x]=(0,n.useState)(""),b=s.length>1,I=[{id:C,label:i("account.linked.password"),icon:(0,z.jsx)(j,{size:18}),color:"gray",managed:!0},{id:S,label:i("account.linked.google",{defaultValue:"Google"}),icon:(0,z.jsx)(y,{size:18}),color:"red"},{id:A,label:i("account.linked.apple",{defaultValue:"Apple"}),icon:(0,z.jsx)(f,{size:18}),color:"dark"}];return(0,z.jsxs)(N,{title:i("account.section.linked"),children:[(0,z.jsx)(r.E,{c:"dimmed",size:"sm",mt:-8,children:i("account.linked.description")}),m&&(0,z.jsx)(h.F,{color:"red",variant:"light",radius:"md",children:m}),(0,z.jsx)(t.B,{gap:"xs",children:I.map((e,n)=>{const t=s.includes(e.id);return(0,z.jsxs)("div",{children:[n>0&&(0,z.jsx)(p.c,{mb:"xs"}),(0,z.jsxs)(c.Y,{justify:"space-between",wrap:"nowrap",children:[(0,z.jsxs)(c.Y,{gap:"sm",wrap:"nowrap",children:[(0,z.jsx)(v.L,{variant:"light",color:e.color,radius:"md",size:"lg",children:e.icon}),(0,z.jsx)(r.E,{fw:500,children:e.label})]}),t?e.managed?(0,z.jsxs)(c.Y,{gap:6,c:"teal",children:[(0,z.jsx)(w.A,{size:16}),(0,z.jsx)(r.E,{size:"sm",children:i("account.linked.connected")})]}):(0,z.jsx)(u.$,{variant:"subtle",color:"red",size:"xs",radius:"md",loading:d===e.id,disabled:!b,onClick:()=>(async e=>{if(x(""),!b)return x(i("account.linked.last"));o(e);try{await(0,g.y1)(a,e),await l()}catch(n){var s;x(null!==(s=null===n||void 0===n?void 0:n.message)&&void 0!==s?s:i("error.unknown"))}finally{o(null)}})(e.id),children:i("account.linked.disconnect")}):e.managed?null:(0,z.jsx)(u.$,{variant:"light",size:"xs",radius:"md",loading:d===e.id,onClick:()=>(async e=>{x(""),o(e);try{const s=e===S?new g.HF:new g.LD(A);await(0,g.x8)(a,s),await l()}catch(n){var s;x(null!==(s=null===n||void 0===n?void 0:n.message)&&void 0!==s?s:i("error.unknown"))}finally{o(null)}})(e.id),children:i("account.linked.connect")})]})]},e.id)})})]})}},6960:(e,a,s)=>{s.d(a,{A:()=>n});var n=(0,s(4648).A)("outline","check","IconCheck",[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]])},9008:(e,a,s)=>{s.d(a,{C:()=>l});var n=s(5043);const t="CustQRd";function l(e,a){(0,n.useEffect)(()=>
2{if(document.title=e&&e.length>0?"".concat(e," \xb7 ").concat(t):t,a){let e=document.querySelector('meta[name="description"]');e||(e=document.createElement("meta"),e.setAttribute("name","description"),document.head.appendChild(e)),e.setAttribute("content",a)}},[e,a])}}}]); 3//# sourceMappingURL=791.0796b9ba.chunk.js.map
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.