1"use strict";(self.webpackChunkcustqrd=self.webpackChunkcustqrd||[]).push([[143],{8143:(e,l,d)=>{d.r(l),d.d(l,{default:()=>C});var i=d(5043),n=d(8903),o=d(4868),a=d(1923),t=d(7783),s=d(1376),v=d(1586),r=d(5214),c=d(3407),u=d(1065),h=d(461),m=d(3357),p=d(3797),x=d.n(p),f=d(5899),j=d(6149),g=d(579);function y(e){var l,d,i;const n=e.field,a=e.email;return(0,g.jsx)(u.N,{onClick:()=>{if(a&&(window.location.href=(()=>{var e="mailto:".concat(null===a||void 0===a?void 0:a.value);return null!==a&&void 0!==a&&a.subject&&(e="".concat(e,"?subject=").concat(encodeURI(a.subject))),null!==a&&void 0!==a&&a.body&&(e="".concat(e,"&body=").concat(encodeURI(a.body))),e})()),n&&e.isPhone)window.location.href="tel:".concat(null===n||void 0===n?void 0:n.value);else if(n){const e=(0,j.Jf)(n.value);e&&window.open(e,"_blank","noopener,noreferrer")}},children:(0,g.jsx)(h.t,{withBorder:!0,p:"sm",pl:"md",radius:16,children:(0,g.jsxs)(o.B,{gap:0,align:"start",children:[((null===a||void 0===a?void 0:a.type)||(null===n||void 0===n?void 0:n.type))&&(0,g.jsx)(r.E,{c:"dimmed",children:null!==(l=null===a||void 0===a?void 0:a.type)&&void 0!==l?l:null===n||void 0===n?void 0:n.type}),(0,g.jsx)(r.E,{children:null!==(d=null!==(i=null===a||void 0===a?void 0:a.value)&&void 0!==i?i:null===n||void 0===n?void 0:n.user)&&void 0!==d?d:null!==n&&void 0!==n&&n.value.includes("//")?null===n||void 0===n?void 0:n.value.split("//")[1]:null===n||void 0===n?void 0:n.value})]})})})}var w=d(4991),b=d.n(w);var E=d(4978);function C(e){var l,p,j,w,C,k,z,B,L,I;const[N,A]=(0,i.useState)([]),M=e.data.theme;(0,i.useEffect)(()=>{var l,d,i,n;document.title="".concat(null===(l=e.data)||void 0===l||null===(d=l.name)||void 0===d?void 0:d.first," ").concat(null===(i=e.data)||void 0===i||null===(n=i.name)||void 0===n?void 0:n.last," VCard")}),(0,i.useEffect)(()=>{var l,d;const i=null===(l=e.data.name)||void 0===l?void 0:l.nickname,n=null===(d=e.data.company)||void 0===d?void 0:d.name,o=[];i&&o.push(i),n&&o.push(n),A(o)},[e]);return(0,g.jsx)(n.m,{px:0,size:"xs",children:(0,g.jsxs)(o.B,{gap:"sm",pb:"md",children:[(0,g.jsx)(a.s,{justify:"end",pl:"sm",pt:"sm",pr:"sm",c:M.tint,style:{zIndex:1e3},children:(0,g.jsx)(t.$,{size:"md",onClick:()=>{!function(e){var l,i,n,o,a;const t=new(b());var s,v,r,c,u,h;e.image&&t.addPhotoURL(e.image),e.name&&t.addName(null!==(s=e.name.last)&&void 0!==s?s:void 0,null!==(v=e.name.first)&&void 0!==v?v:void 0,null!==(r=e.name.additional)&&void 0!==r?r:void 0,null!==(c=e.name.prefix)&&void 0!==c?c:void 0,null!==(u=e.name.suffix)&&void 0!==u?u:void 0),null!==(l=e.name)&&void 0!==l&&l.nickname&&t.addNickname(e.name.nickname),e.addresses&&e.addresses.forEach(e=>{var l,d,i,n,o,a,s,v;t.addAddress(null!==(l=e.name)&&void 0!==l?l:void 0,null!==(d=e.extended)&&void 0!==d?d:void 0,null!==(i=e.street)&&void 0!==i?i:void 0,null!==(n=e.city)&&void 0!==n?n:void 0,null!==(o=e.region)&&void 0!==o?o:void 0,null!==(a=e.zip)&&void 0!==a?a:void 0,null!==(s=e.country)&&void 0!==s?s:void 0,null!==(v=e.type)&&void 0!==v?v:void 0)}),e.phones&&e.phones.forEach(e=>{var l,d;t.addPhoneNumber(null!==(l=e.value)&&void 0!==l?l:void 0,null!==(d=e.type)&&void 0!==d?d:void 0)}),e.urls&&e.urls.forEach(e=>{var l;t.addURL(e.value,null!==(l=e.type)&&void 0!==l?l:void 0)}),e.socials&&e.socials.forEach(e=>{var l,d;t.addSocial(e.value,null!==(l=e.type)&&void 0!==l?l:"Account",null!==(d=e.user)&&void 0!==d?d:void 0)}),e.job&&t.addJobtitle(e.job),e.note&&t.addNote(null!==(h=e.note)&&void 0!==h?h:void 0);var m=d(2450),p=new Blob([t.getOutput()],{type:"".concat(t.getContentType(),";charset=").concat(t.getCharset())});m.saveAs(p,"".concat(null===(i=e.name)||void 0===i||null===(n=i.first)||void 0===n?void 0:n.toLocaleLowerCase(),"_").concat(null===(o=e.name)||void 0===o||null===(a=o.last)||void 0===a?void 0:a.toLocaleLowerCase(),".").concat(t.getFileExtension()))}(e.data)},children:(0,E.t)("general.save")})}),(0,g.jsx)(s.o,{src:null!==(l=e.data.image)&&void 0!==l?l:"",h:300,mt:-16,pos:"relative",children:(0,g.jsxs)(o.B,{gap:0,align:"center",justify:"flex-end",h:280,children:[(0,g.jsx)(v.h,{gradient:"linear-gradient(0deg, rgba(0, 0, 0, 0.99) 0%, rgba(0, 0, 0, 0) 100%)",opacity:.85}),N.length>0&&(0,g.jsx)(r.E,{c:"white",style:{zIndex:1e3},children:N.join(" \u2022 ")}
1),(0,g.jsxs)(c.h,{ff:"heading",fz:40,c:"white",lineClamp:1,style:{zIndex:1e3},children:[null===(p=e.data.name)||void 0===p?void 0:p.prefix," ",null===(j=e.data.name)||void 0===j?void 0:j.first," ",null===(w=e.data.name)||void 0===w?void 0:w.last," ",null===(C=e.data.name)||void 0===C?void 0:C.suffix]})]})}),(0,g.jsxs)(o.B,{px:"sm",gap:"sm",children:[null===(k=e.data.phones)||void 0===k?void 0:k.map(e=>(0,g.jsx)(y,{theme:M,field:e,isPhone:!0},e.value)),null===(z=e.data.emails)||void 0===z?void 0:z.map(e=>(0,g.jsx)(y,{theme:M,email:e},e.value)),null===(B=e.data.addresses)||void 0===B?void 0:B.map(e=>{var l,d,i,n,t,s,v,c,m;return(0,g.jsx)(u.N,{onClick:()=>{var l,d;e.coordinates&&(window.location.href="https://www.google.com/maps?saddr=My+Location&daddr=".concat(null===(l=e.coordinates)||void 0===l?void 0:l.lat,",").concat(null===(d=e.coordinates)||void 0===d?void 0:d.lng))},children:(0,g.jsx)(h.t,{withBorder:!0,p:"md",radius:16,children:(0,g.jsxs)(a.s,{justify:"space-between",children:[(0,g.jsxs)(o.B,{gap:0,align:"start",children:[(0,g.jsx)(r.E,{fz:"sm",children:null!==(l=e.name)&&void 0!==l?l:e.type}),(0,g.jsx)(r.E,{children:e.street}),(0,g.jsx)(r.E,{children:e.city}),(0,g.jsx)(r.E,{children:e.region}),(0,g.jsx)(r.E,{children:e.zip}),(0,g.jsx)(r.E,{children:e.country})]}),(0,g.jsx)(h.t,{w:100,h:100,children:(0,g.jsx)("div",{style:{height:"100%",width:"100%"},children:(0,g.jsx)(f.c4,{apiKey:"AIzaSyB02WReBuW5aVkHVU7AxOTQEtIm3h-LaFY",children:(0,g.jsx)(f.T5,{center:{lat:null!==(d=null===(i=e.coordinates)||void 0===i?void 0:i.lat)&&void 0!==d?d:0,lng:null!==(n=null===(t=e.coordinates)||void 0===t?void 0:t.lng)&&void 0!==n?n:0},fullscreenControl:!1,streetViewControl:!1,defaultZoom:13,tiltInteractionEnabled:!1,headingInteractionEnabled:!1,scrollwheel:!1,scaleControl:!1,children:(0,g.jsx)(f.pH,{position:{lat:null!==(s=null===(v=e.coordinates)||void 0===v?void 0:v.lat)&&void 0!==s?s:0,lng:null!==(c=null===(m=e.coordinates)||void 0===m?void 0:m.lng)&&void 0!==c?c:0}})})})})})]})})},e.street)}),null===(L=e.data.urls)||void 0===L?void 0:L.map(e=>(0,g.jsx)(y,{theme:M,field:e},e.value)),null===(I=e.data.socials)||void 0===I?void 0:I.map(e=>(0,g.jsx)(y,{theme:M,field:e},e.value)),e.data.birthday&&(0,g.jsx)(t.$,{variant:"outline",size:"lg",justify:"start",fullWidth:!0,p:"xl",radius:16,leftSection:(0,g.jsxs)(o.B,{gap:0,align:"start",children:[(0,g.jsx)(r.E,{fz:"sm",children:"Opened"}),(0,g.jsx)(r.E,{c:"blue",children:x()(e.data.birthday.toDate()).format("dddd, Do MMMM YYYY")})]})}),e.data.note&&(0,g.jsx)(m.d,{maxHeight:150,showLabel:"Show more",hideLabel:"Hide",children:(0,g.jsx)(r.E,{children:e.data.note})})]})]})})}}}]); 2//# sourceMappingURL=143.2fa495f4.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.