1import{_ as B,u as j,c as a,p as b,b as t,F as D,B as F,h as y,t as u,f as M,l as o,r as p,k as R,m as n}from"./index-AIkCTHNu.js";const V={key:0,style:{display:"flex","align-items":"center","justify-content":"center","min-height":"200px"}},z={key:1,style:{width:"100%",overflow:"auto"}},I={class:"suggested-contact-content"},L={class:"suggested-contact-content__fade-wrapper"},$={class:"suggested-contact-content__wrapper",style:{"max-height":"initial","padding-bottom":"0"}},E={style:{padding:"20px","margin-right":"20px"}},O=["onClick"],Y={class:"diff-row__checkbox"},J=["checked","onClick"],W={class:"diff-row__content"},X={class:"diff-row__label u-caption"},q={class:"diff-row__value u-body"},G={key:0,style:{display:"flex",position:"relative","z-index":"2","margin-left":"61px"}},H={class:"jumpstart-confirm"},K={class:"jumpstart-confirm__btns"},Q=["disabled"],T=["disabled"],_=5,Z={__name:"ProfileSuggestedUpdatesPage",setup(ee){const k=R(),v=j(),h=o(()=>v.suggestedUpdates),l=o(()=>{var s;return((s=h.value)==null?void 0:s.diffs)||[]}),d=p(new Set),f=p(!1),i=p(!1),g=o(()=>l.value.length>_+1),w=o(()=>f.value||!g.value?l.value:l.value.slice(0,_)),x=o(()=>l.value.length-_);function S(s){return!d.value.has(s)}function m(s){const e=new Set(d.value);e.has(s)?e.delete(s):e.add(s),d.value=e}function C(s){const e=s.key||s.type||"";return{emails:"Email","phone-numbers":"Phone",phoneNumbers:"Phone",addresses:"Address",organizations:"Organization",urls:"URL",ims:"Messaging",birthday:"Birthday",dates:"Date","related-names":"Relationship",relatedNames:"Relationship",photos:"Photo",notes:"Notes","social-profiles":"Social Profile",socialProfiles:"Social Profile"}[e]||e}function P(s){const e=s.value;return e?typeof e=="string"?e:e.value?e.value:e.name?e.name:e.streetAddress?[e.streetAddress,e.locality,e.region].filter(Boolean).join(", "):JSON.stringify(e):""}function A(){v.setCompletedProfile(),k.push("/profile/view")}async function N(){i.value=!0,await v.applyUpdatesAndSave(d.value),i.value=!1}return(s,e)=>h.value?(n(),a("div",z,[t("div",I,[t("div",L,[t("div",$,[t("div",E,[(n(!0),a(D,null,F(w.value,(r,c)=>(n(),a("div",{key:c,class:"diff-row",onClick:U=>m(c)},[t("label",Y,[t("input",{type:"checkbox",checked:S(c),onClick:y(U=>m(c),["stop"])},null,8,J)]),e[2]||(e[2]=b('<div class="diff-row__icon" data-v-40d6f999><svg viewBox="0 0 24 24" width="28" height="28" fill="none" stroke="var(--subtitle-color)" stroke-width="2" data-v-40d6f999><circle cx="12" cy="12" r="10" data-v-40d6f999></circle><line x1="12" y1="8" x2="12" y2="16" data-v-40d6f999></line><line x1="8" y1="12" x2="16" y2="12" data-v-40d6f999></line></svg></div>',1)),t("div",W,[t("div",X,u(C(r)),1),t("div",q,u(P(r)),1)])],8,O))),128)),!f.value&&g.value?(n(),a("div",G,[t("a",{href:"#",class:"link",onClick:e[0]||(e[0]=y(r=>f.value=!0,["prevent"]))},"+ "+u(x.value)+" more...",1)])):M("",!0)])])]),e[3]||(e[3]=t("div",{class:"suggested-tooltip"},"We found this info around the web.",-1))]),t("div",H,[e[4]||(e[4]=t("div",{class:"jumpstart-confirm__title u-h3"},"Add this info to your profile?",-1)),e[5]||(e[5]=t("div",{class:"jumpstart-confirm__subtitle u-subtitle"},"You'll be able to make edits right after this.",-1)),t("div",K,[t("button",{class:"button button--white",style:{width:"120px"},onClick:A,disabled:i.value},"No",8,Q),t("button",{class:"button button--primary",style:{width:"120px"},onClick:N,disabled:i.value},u(i.value?"Saving...":"Yes"),9,T)])])])):(n(),a("div",V,[...e[1]||(e[1]=[b('<div class="loading" data-v-40d6f999><div class="a" data-v-40d6f999><div class="a-sub" data-v-40d6f999></div></div><div class="b" data-v-40d6f999><div class="b-sub" data-v-40d6f999></div></div><div class="c" data-v-40d6f999><div class="c-sub" data-v-40d6f999></div></div></div>',1)])]))}},se=B(Z,[["__scopeId","data-v-40d6f999"]]);export{se as default};
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.