@salesql/sql_components_vue3 1.0.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),h={DARK:"dark",LIGHT:"light",ACCENT:"accent"},Q=["aria-label","aria-hidden"],J={key:0,class:"ds-spinner__sr-only"},ee=e.defineComponent({__name:"DsSpinner",props:{size:{type:Number,default:24},tone:{type:String,default:h.DARK},label:{type:String,default:""}},setup(t){return(l,n)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["ds-spinner",`ds-spinner--${t.tone}`]),role:"status",style:e.normalizeStyle({width:`${t.size}px`,height:`${t.size}px`}),"aria-label":t.label||void 0,"aria-hidden":t.label?void 0:"true"},[t.label?(e.openBlock(),e.createElementBlock("span",J,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0)],14,Q))}}),f=(t,l)=>{const n=t.__vccOpts||t;for(const[a,o]of l)n[a]=o;return n},x=f(ee,[["__scopeId","data-v-190a8af4"]]),z="click",v="close",N="focus",C="blur",T="copy",D="correct",p="incorrect",_="sort",M="edit",V={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary",QUATERNARY:"quaternary",SPECIAL:"special"},L={SMALL:"small",MEDIUM:"medium",LARGE:"large",XLARGE:"xlarge"},F={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},te=["type","disabled","autofocus","aria-busy","aria-disabled","aria-label"],ae={key:1,class:"ds-button__icon ds-button__icon--leading"},oe={class:"material-icons","aria-hidden":"true"},le={key:2,class:"ds-button__label"},ne={key:3,class:"ds-button__icon ds-button__icon--trailing"},ie={class:"material-icons","aria-hidden":"true"},re=e.defineComponent({__name:"DsButton",props:{variant:{type:String,default:V.PRIMARY},size:{type:String,default:L.MEDIUM},nativeType:{type:String,default:F.BUTTON},leftIcon:{type:String,default:""},rightIcon:{type:String,default:""},ariaLabel:{type:String,default:""},disabled:Boolean,loading:Boolean,circle:Boolean,dashed:Boolean,autofocus:Boolean},emits:[z],setup(t,{emit:l}){const n=t,a=l,o=e.computed(()=>n.size===L.SMALL?14:20),i=e.computed(()=>n.variant===V.PRIMARY?h.LIGHT:h.DARK);function r(s){n.disabled||n.loading||a(z,s)}return(s,d)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["ds-button",[`ds-button--${t.variant}`,`ds-button--${t.size}`,{"is-disabled":t.disabled||t.loading,"is-loading":t.loading,"is-circle":t.circle,"is-dashed":t.dashed}]]),type:t.nativeType,disabled:t.disabled||t.loading,autofocus:t.autofocus,"aria-busy":t.loading||void 0,"aria-disabled":t.disabled||t.loading||void 0,"aria-label":t.ariaLabel||void 0,onClick:r},[t.loading?(e.openBlock(),e.createBlock(e.unref(x),{key:0,class:"ds-button__spinner",size:o.value,tone:i.value},null,8,["size","tone"])):e.createCommentVNode("",!0),!t.loading&&(t.leftIcon||s.$slots.leading)?(e.openBlock(),e.createElementBlock("span",ae,[e.renderSlot(s.$slots,"leading",{},()=>[e.createElementVNode("i",oe,e.toDisplayString(t.leftIcon),1)],!0)])):e.createCommentVNode("",!0),!t.loading&&s.$slots.default?(e.openBlock(),e.createElementBlock("span",le,[e.renderSlot(s.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0),!t.loading&&(t.rightIcon||s.$slots.trailing)?(e.openBlock(),e.createElementBlock("span",ne,[e.renderSlot(s.$slots,"trailing",{},()=>[e.createElementVNode("i",ie,e.toDisplayString(t.rightIcon),1)],!0)])):e.createCommentVNode("",!0)],10,te))}}),I=f(re,[["__scopeId","data-v-662e5512"]]),U={DEFAULT:"default",SUCCESS:"success",INFO:"info",WARNING:"warning",ERROR:"error"},se=["aria-label"],ce=e.defineComponent({__name:"DsTag",props:{tone:{type:String,default:U.DEFAULT},rounded:Boolean,closable:Boolean,closeLabel:{type:String,default:""}},setup(t,{emit:l}){const n=l;return(a,o)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["ds-tag",[`ds-tag--${t.tone}`,{"is-rounded":t.rounded}]])},[e.renderSlot(a.$slots,"default",{},void 0,!0),t.closable?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"ds-tag__close","aria-label":t.closeLabel||void 0,onClick:o[0]||(o[0]=i=>n(e.unref(v)))},[...o[1]||(o[1]=[e.createElementVNode("i",{class:"material-icons","aria-hidden":"true"},"close",-1)])],8,se)):e.createCommentVNode("",!0)],2))}}),de=f(ce,[["__scopeId","data-v-4507fdca"]]),$={ACCENT:"accent",GREY:"grey",INFO:"info",SUCCESS:"success",ERROR:"error",WARNING:"warning"},ue=e.defineComponent({__name:"DsBadge",props:{tone:{type:String,default:$.ACCENT}},setup(t){return(l,n)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["ds-badge",`ds-badge--${t.tone}`])},[e.renderSlot(l.$slots,"default",{},void 0,!0)],2))}}),P=f(ue,[["__scopeId","data-v-f10a17a0"]]),me=["src","alt"],fe=["aria-label"],ye=e.defineComponent({__name:"DsAvatar",props:{image:{type:String,default:""},firstName:{type:String,default:""},lastName:{type:String,default:""},uid:{type:String,default:""},size:{type:Number,default:40},circular:Boolean,alt:{type:String,default:""}},setup(t){const l=t,n=e.computed(()=>l.firstName&&l.lastName?(l.firstName.charAt(0)+l.lastName.charAt(0)).toUpperCase():""),a=e.computed(()=>l.alt||`${l.firstName} ${l.lastName}`.trim()),o=e.computed(()=>({width:`${l.size}px`,height:`${l.size}px`})),i=e.computed(()=>{const r=l.uid||l.firstName+l.lastName;let s=0;for(let c=0;c<r.length;c++)s=r.charCodeAt(c)+((s<<5)-s),s=s&s;const d=[0,0,0];for(let c=0;c<3;c++)d[c]=s>>c*8&255;const u=d[0]>=200&&d[1]>=200&&d[2]>=200;return{bg:`rgb(${d[0]}, ${d[1]}, ${d[2]})`,fg:u?"#323f4b":"#fff"}});return(r,s)=>t.image?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(["ds-avatar",{"is-circular":t.circular}]),src:t.image,alt:t.alt,style:e.normalizeStyle(o.value)},null,14,me)):n.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["ds-avatar ds-avatar--initials",{"is-circular":t.circular}]),role:"img","aria-label":a.value||void 0,style:e.normalizeStyle([o.value,{background:i.value.bg,color:i.value.fg,fontSize:`${Math.round(t.size*.4)}px`}])},e.toDisplayString(n.value),15,fe)):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["ds-avatar ds-avatar--placeholder",{"is-circular":t.circular}]),style:e.normalizeStyle(o.value),"aria-hidden":"true"},null,6))}}),ve=f(ye,[["__scopeId","data-v-e965ed47"]]),w={LEFT:"left",CENTER:"center",RIGHT:"right"},be={class:"ds-table"},ke={class:"ds-table__wrapper"},Se={class:"ds-table__table"},ge={key:0},Ee=["colspan"],Be=e.defineComponent({__name:"DsTable",props:{columns:{type:Array,required:!0},rows:{type:Array,required:!0},emptyMessage:{type:String,default:""},highlightRowId:{type:[String,Number],default:null}},setup(t){return(l,n)=>(e.openBlock(),e.createElementBlock("div",be,[e.createElementVNode("div",ke,[e.createElementVNode("table",Se,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.columns,a=>{var o;return e.openBlock(),e.createElementBlock("th",{key:a.key,class:e.normalizeClass(`ds-table__th--${(o=a.align)!=null?o:e.unref(w).LEFT}`),style:e.normalizeStyle(a.width?{width:a.width}:void 0)},e.toDisplayString(a.label),7)}),128))])]),e.createElementVNode("tbody",null,[t.rows.length===0?(e.openBlock(),e.createElementBlock("tr",ge,[e.createElementVNode("td",{class:"ds-table__empty",colspan:t.columns.length,"data-testid":"ds-table-empty"},[e.renderSlot(l.$slots,"empty",{},()=>[e.createTextVNode(e.toDisplayString(t.emptyMessage),1)],!0)],8,Ee)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.rows,a=>(e.openBlock(),e.createElementBlock("tr",{key:a.id,class:e.normalizeClass({"is-highlighted":a.id===t.highlightRowId}),"data-testid":"ds-table-row"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.columns,o=>{var i;return e.openBlock(),e.createElementBlock("td",{key:o.key,class:e.normalizeClass(`ds-table__td--${(i=o.align)!=null?i:e.unref(w).LEFT}`)},[e.renderSlot(l.$slots,`cell-${o.key}`,{row:a},()=>[e.createTextVNode(e.toDisplayString(a[o.key]),1)],!0)],2)}),128))],2))),128))])])])]))}}),he=f(Be,[["__scopeId","data-v-1735ff35"]]),E={TEXT:"text",EMAIL:"email",PASSWORD:"password",TEL:"tel",NUMBER:"number",SEARCH:"search",URL:"url"},G={SM:"sm",MD:"md"},Ne={class:"ds-input__wrap"},Ce=["id","type","placeholder","disabled","name","autocomplete","aria-invalid","aria-describedby"],Te={key:0,class:"ds-input__suffix"},De={key:0,class:"material-icons ds-input__error-icon","aria-hidden":"true"},pe=["aria-label","aria-pressed"],Ie={class:"material-icons","aria-hidden":"true"},$e=["id"],Ve=e.defineComponent({__name:"DsInput",props:e.mergeModels({type:{type:String,default:E.TEXT},size:{type:String,default:G.SM},placeholder:{type:String,default:""},disabled:Boolean,error:Boolean,errorMessage:{type:String,default:""},showErrorIcon:Boolean,name:{type:String,default:""},id:{type:String,default:""},autocomplete:{type:String,default:""},toggleLabel:{type:String,default:""}},{modelValue:{default:""},modelModifiers:{}}),emits:e.mergeModels([N,C],["update:modelValue"]),setup(t,{emit:l}){const n=e.useModel(t,"modelValue"),a=t,o=l,i=e.useSlots(),r=e.ref(!1),s=e.computed(()=>a.type===E.PASSWORD),d=e.computed(()=>s.value&&r.value?E.TEXT:a.type),u=e.computed(()=>!!i.suffix||a.error&&a.showErrorIcon||s.value);return(c,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ds-input",[`ds-input--${t.size}`,{"is-error":t.error,"is-disabled":t.disabled}]])},[e.createElementVNode("div",Ne,[e.withDirectives(e.createElementVNode("input",{id:t.id||void 0,"onUpdate:modelValue":m[0]||(m[0]=y=>n.value=y),class:e.normalizeClass(["ds-input__control",{"has-suffix":u.value}]),type:d.value,placeholder:t.placeholder,disabled:t.disabled,name:t.name||void 0,autocomplete:t.autocomplete||void 0,"aria-invalid":t.error||void 0,"aria-describedby":t.error&&t.errorMessage&&t.id?`${t.id}-error`:void 0,onFocus:m[1]||(m[1]=y=>o(e.unref(N),y)),onBlur:m[2]||(m[2]=y=>o(e.unref(C),y))},null,42,Ce),[[e.vModelDynamic,n.value]]),u.value?(e.openBlock(),e.createElementBlock("div",Te,[e.renderSlot(c.$slots,"suffix",{},void 0,!0),t.error&&t.showErrorIcon?(e.openBlock(),e.createElementBlock("i",De,"warning")):s.value?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"ds-input__toggle","aria-label":t.toggleLabel||void 0,"aria-pressed":r.value,onClick:m[3]||(m[3]=y=>r.value=!r.value)},[e.createElementVNode("i",Ie,e.toDisplayString(r.value?"visibility":"visibility_off"),1)],8,pe)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),t.error&&t.errorMessage?(e.openBlock(),e.createElementBlock("p",{key:0,id:t.id?`${t.id}-error`:void 0,class:"ds-input__error"},e.toDisplayString(t.errorMessage),9,$e)):e.createCommentVNode("",!0)],2))}}),Le=f(Ve,[["__scopeId","data-v-d4b27b55"]]),we=["id","placeholder","rows","disabled","name","aria-invalid","aria-describedby"],Re=["id"],Ae=e.defineComponent({__name:"DsTextarea",props:e.mergeModels({placeholder:{type:String,default:""},rows:{type:Number,default:4},disabled:Boolean,error:Boolean,errorMessage:{type:String,default:""},name:{type:String,default:""},id:{type:String,default:""}},{modelValue:{default:""},modelModifiers:{}}),emits:e.mergeModels([N,C],["update:modelValue"]),setup(t,{emit:l}){const n=e.useModel(t,"modelValue"),a=l;return(o,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ds-textarea",{"is-error":t.error,"is-disabled":t.disabled}])},[e.withDirectives(e.createElementVNode("textarea",{id:t.id||void 0,"onUpdate:modelValue":i[0]||(i[0]=r=>n.value=r),class:"ds-textarea__control",placeholder:t.placeholder,rows:t.rows,disabled:t.disabled,name:t.name||void 0,"aria-invalid":t.error||void 0,"aria-describedby":t.error&&t.errorMessage&&t.id?`${t.id}-error`:void 0,onFocus:i[1]||(i[1]=r=>a(e.unref(N),r)),onBlur:i[2]||(i[2]=r=>a(e.unref(C),r))},null,40,we),[[e.vModelText,n.value]]),t.error&&t.errorMessage?(e.openBlock(),e.createElementBlock("p",{key:0,id:t.id?`${t.id}-error`:void 0,class:"ds-textarea__error"},e.toDisplayString(t.errorMessage),9,Re)):e.createCommentVNode("",!0)],2))}}),Oe=f(Ae,[["__scopeId","data-v-cfa74e3d"]]),ze=["disabled","name"],_e={key:0,class:"ds-checkbox__mark",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor","stroke-width":"2.5"},Me={key:1,class:"ds-checkbox__mark",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor","stroke-width":"2.5"},xe={key:0,class:"ds-checkbox__label"},Fe=e.defineComponent({__name:"DsCheckbox",props:e.mergeModels({indeterminate:Boolean,disabled:Boolean,name:{type:String,default:""},label:{type:String,default:""}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const l=e.useModel(t,"modelValue"),n=t,a=e.ref(null);function o(){a.value&&(a.value.indeterminate=n.indeterminate)}return e.onMounted(o),e.watch(()=>n.indeterminate,o),(i,r)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["ds-checkbox",{"is-disabled":t.disabled}])},[e.withDirectives(e.createElementVNode("input",{ref_key:"inputRef",ref:a,"onUpdate:modelValue":r[0]||(r[0]=s=>l.value=s),type:"checkbox",class:"ds-checkbox__native",disabled:t.disabled,name:t.name||void 0},null,8,ze),[[e.vModelCheckbox,l.value]]),e.createElementVNode("span",{class:e.normalizeClass(["ds-checkbox__box",{"is-active":l.value||t.indeterminate}]),"aria-hidden":"true"},[t.indeterminate?(e.openBlock(),e.createElementBlock("svg",_e,[...r[1]||(r[1]=[e.createElementVNode("line",{x1:"4",y1:"8",x2:"12",y2:"8"},null,-1)])])):l.value?(e.openBlock(),e.createElementBlock("svg",Me,[...r[2]||(r[2]=[e.createElementVNode("path",{d:"M3.5 8.5l3 3 6-6"},null,-1)])])):e.createCommentVNode("",!0)],2),i.$slots.default||t.label?(e.openBlock(),e.createElementBlock("span",xe,[e.renderSlot(i.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0)])):e.createCommentVNode("",!0)],2))}}),Ue=f(Fe,[["__scopeId","data-v-0c1a3c0a"]]),Y={SUCCESS:"success",INFO:"info",WARNING:"warning",ERROR:"error"},K={LIGHT:"light",DARK:"dark"},q={success:"check_circle",info:"info",warning:"warning",error:"error"},Pe={key:0,class:"material-icons ds-alert__icon","aria-hidden":"true"},Ge={class:"ds-alert__content"},Ye={key:1,class:"ds-alert__body"},Ke=["aria-label"],qe=e.defineComponent({__name:"DsAlert",props:{type:{type:String,default:Y.INFO},effect:{type:String,default:K.LIGHT},title:{type:String,default:""},description:{type:String,default:""},showIcon:Boolean,closable:Boolean,center:Boolean,closeLabel:{type:String,default:""}},emits:[v],setup(t,{emit:l}){const n=t,a=l,o=e.useSlots(),i=e.ref(!0),r=e.computed(()=>q[n.type]),s=e.computed(()=>!!o.default||n.description.length>0);function d(){i.value=!1,a(v)}return(u,c)=>i.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["ds-alert",[`ds-alert--${t.type}`,`ds-alert--${t.effect}`,{"is-center":t.center}]]),role:"alert"},[t.showIcon?(e.openBlock(),e.createElementBlock("i",Pe,e.toDisplayString(r.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ge,[t.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["ds-alert__title",{"has-body":s.value}])},e.toDisplayString(t.title),3)):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("div",Ye,[e.renderSlot(u.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)],!0)])):e.createCommentVNode("",!0)]),t.closable?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"ds-alert__close","aria-label":t.closeLabel||void 0,onClick:d},[...c[0]||(c[0]=[e.createElementVNode("i",{class:"material-icons","aria-hidden":"true"},"close",-1)])],8,Ke)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)}}),He=f(qe,[["__scopeId","data-v-58ce7b87"]]),H={INFO:"info",WARNING:"warning",ERROR:"error"},W={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right"},X={info:"mode_edit",warning:"warning",error:"warning"},We={class:"material-icons ds-notification__icon","aria-hidden":"true"},Xe={class:"ds-notification__content"},Ze={key:0,class:"ds-notification__title"},je={key:1,class:"ds-notification__desc"},Qe=["href"],Je=["aria-label"],et=e.defineComponent({__name:"DsNotification",props:{type:{type:String,default:H.INFO},position:{type:String,default:W.BOTTOM_LEFT},title:{type:String,default:""},description:{type:String,default:""},linkTitle:{type:String,default:""},link:{type:String,default:""},showClose:{type:Boolean,default:!0},closeLabel:{type:String,default:""}},emits:[v],setup(t,{emit:l}){const n=t,a=l,o=e.ref(!0),i=e.computed(()=>X[n.type]);function r(){o.value=!1,a(v)}return(s,d)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[o.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["ds-notification",`ds-notification--${t.position}`])},[e.createElementVNode("div",{class:e.normalizeClass(["ds-notification__card",`ds-notification__card--${t.type}`]),role:"alert"},[e.createElementVNode("i",We,e.toDisplayString(i.value),1),e.createElementVNode("div",Xe,[t.title?(e.openBlock(),e.createElementBlock("span",Ze,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),t.description?(e.openBlock(),e.createElementBlock("p",je,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),t.linkTitle?(e.openBlock(),e.createElementBlock("a",{key:2,class:"ds-notification__link",href:t.link||void 0,target:"_blank",rel:"noreferrer"},e.toDisplayString(t.linkTitle),9,Qe)):e.createCommentVNode("",!0)]),t.showClose?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"ds-notification__close","aria-label":t.closeLabel||void 0,onClick:r},[...d[0]||(d[0]=[e.createElementVNode("i",{class:"material-icons","aria-hidden":"true"},"close",-1)])],8,Je)):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0)]))}}),tt=f(et,[["__scopeId","data-v-287d5c06"]]),at=["aria-label"],ot={key:0,class:"ds-modal__header"},lt={class:"ds-modal__title"},nt={class:"ds-modal__body"},it={key:1,class:"ds-modal__footer"},rt=e.defineComponent({__name:"DsModal",props:{open:Boolean,title:{type:String,default:""},showClose:{type:Boolean,default:!0},width:{type:String,default:"440px"},closeOnBackdrop:{type:Boolean,default:!0},closeLabel:{type:String,default:""}},emits:[v],setup(t,{emit:l}){const n=t,a=l,o=e.ref(null);let i=null;function r(){n.closeOnBackdrop&&a(v)}function s(){return o.value?Array.from(o.value.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(c=>c.offsetParent!==null):[]}function d(u){var g;if(u.key==="Escape"){a(v);return}if(u.key!=="Tab")return;const c=s();if(c.length===0){u.preventDefault(),(g=o.value)==null||g.focus();return}const m=c[0],y=c[c.length-1];u.shiftKey&&document.activeElement===m?(u.preventDefault(),y.focus()):!u.shiftKey&&document.activeElement===y&&(u.preventDefault(),m.focus())}return e.watch(()=>n.open,u=>{var c;typeof document!="undefined"&&(u?(i=document.activeElement,document.addEventListener("keydown",d),document.body.style.overflow="hidden",e.nextTick(()=>{var m,y;return(y=(m=s()[0])!=null?m:o.value)==null?void 0:y.focus()})):(document.removeEventListener("keydown",d),document.body.style.overflow="",(c=i==null?void 0:i.focus)==null||c.call(i)))},{immediate:!0}),e.onBeforeUnmount(()=>{typeof document!="undefined"&&(document.removeEventListener("keydown",d),document.body.style.overflow="")}),(u,c)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[t.open?(e.openBlock(),e.createElementBlock("div",{key:0,class:"ds-modal",onClick:r},[e.createElementVNode("div",{ref_key:"dialogRef",ref:o,class:"ds-modal__dialog",role:"dialog","aria-modal":"true","aria-label":t.title||"dialog",tabindex:"-1",style:e.normalizeStyle({width:t.width}),onClick:c[1]||(c[1]=e.withModifiers(()=>{},["stop"]))},[t.title||t.showClose?(e.openBlock(),e.createElementBlock("div",ot,[e.createElementVNode("span",lt,e.toDisplayString(t.title),1),t.showClose?(e.openBlock(),e.createBlock(e.unref(I),{key:0,variant:"tertiary",circle:"","left-icon":"close","aria-label":t.closeLabel||void 0,onClick:c[0]||(c[0]=m=>a(e.unref(v)))},null,8,["aria-label"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",nt,[e.renderSlot(u.$slots,"default",{},void 0,!0)]),u.$slots.footer?(e.openBlock(),e.createElementBlock("div",it,[e.renderSlot(u.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],12,at)])):e.createCommentVNode("",!0)]))}}),st=f(rt,[["__scopeId","data-v-6eecaabb"]]),B={VERIFIED:"verified",UNVERIFIED:"unverified",NEW:"new"},ct=["aria-label","title"],dt=e.defineComponent({__name:"DsVerificationIcon",props:{verified:{type:Boolean,default:null},isContactData:{type:Boolean,default:!1},size:{type:Number,default:20},label:{type:String,default:""}},setup(t){const l=t,n=e.computed(()=>l.verified===null||l.verified===void 0?{state:B.NEW,icon:"new_releases",label:"Newly found"}:l.verified?{state:B.VERIFIED,icon:"verified",label:"Verified"}:{state:B.UNVERIFIED,icon:l.isContactData?"dangerous":"error",label:"Not verified"});return(a,o)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(["material-icons ds-verification-icon",[`ds-verification-icon--${n.value.state}`,{"ds-verification-icon--email":t.isContactData}]]),style:e.normalizeStyle({fontSize:`${t.size}px`}),role:"img","aria-label":t.label||n.value.label,title:t.label||n.value.label},[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.value.icon),1)],!0)],14,ct))}}),Z=f(dt,[["__scopeId","data-v-0fd84040"]]),ut=["title"],mt={class:"ds-contact-value__marquee"},ft={class:"ds-contact-value__actions"},yt=["aria-label","title"],vt={class:"material-icons","aria-hidden":"true"},bt=["aria-label","aria-pressed","title"],kt=["aria-label","aria-pressed","title"],St=e.defineComponent({__name:"DsContactValue",props:{value:{type:String,required:!0},valueType:{type:String,default:""},verified:{type:Boolean,default:null},main:{type:Boolean,default:!1},isContactData:{type:Boolean,default:!1},showRate:{type:Boolean,default:!1},correct:{type:Boolean,default:null},copyLabel:{type:String,default:"Copy"},copiedLabel:{type:String,default:"Copied!"},correctLabel:{type:String,default:"Correct"},incorrectLabel:{type:String,default:"Incorrect"}},emits:[T,D,p],setup(t,{emit:l}){const n=t,a=l,o=e.ref(!1);let i;function r(){typeof navigator!="undefined"&&navigator.clipboard&&navigator.clipboard.writeText(n.value).catch(()=>{}),o.value=!0,clearTimeout(i),i=setTimeout(()=>{o.value=!1},1200),a(T,n.value)}function s(){a(D)}function d(){a(p)}return e.onBeforeUnmount(()=>clearTimeout(i)),(u,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ds-contact-value",{"ds-contact-value--main":t.main}])},[e.createVNode(e.unref(Z),{verified:t.verified,"is-contact-data":t.isContactData},null,8,["verified","is-contact-data"]),e.createElementVNode("span",{class:"ds-contact-value__value",title:t.value},e.toDisplayString(t.value),9,ut),e.createElementVNode("span",mt,[t.valueType?(e.openBlock(),e.createBlock(e.unref(P),{key:0,class:"ds-contact-value__badge",tone:t.main?e.unref($).ACCENT:e.unref($).GREY,"aria-hidden":"true"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.valueType),1)]),_:1},8,["tone"])):e.createCommentVNode("",!0),e.createElementVNode("span",ft,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["ds-contact-value__action",{"is-copied":o.value}]),"aria-label":o.value?t.copiedLabel:t.copyLabel,title:o.value?t.copiedLabel:t.copyLabel,onClick:r},[e.createElementVNode("i",vt,e.toDisplayString(o.value?"check":"content_copy"),1)],10,yt),t.showRate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["ds-contact-value__action",{"is-active":t.correct===!0}]),"aria-label":t.correctLabel,"aria-pressed":t.correct===!0,title:t.correctLabel,onClick:s},[e.createElementVNode("i",{class:e.normalizeClass(t.correct===!0?"material-icons":"material-icons-outlined"),"aria-hidden":"true"},"thumb_up",2)],10,bt),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["ds-contact-value__action",{"is-active":t.correct===!1}]),"aria-label":t.incorrectLabel,"aria-pressed":t.correct===!1,title:t.incorrectLabel,onClick:d},[e.createElementVNode("i",{class:e.normalizeClass(t.correct===!1?"material-icons":"material-icons-outlined"),"aria-hidden":"true"},"thumb_down",2)],10,kt)],64)):e.createCommentVNode("",!0)])])],2))}}),R=f(St,[["__scopeId","data-v-014e772b"]]),gt=["aria-label"],Et={class:"ds-data-card__heading"},Bt={class:"material-icons ds-data-card__icon","aria-hidden":"true"},ht={class:"ds-data-card__title"},Nt=["aria-label"],Ct={key:0,class:"ds-data-card__body"},Tt={key:0,class:"ds-data-card__empty"},Dt={class:"material-icons-outlined ds-data-card__empty-icon","aria-hidden":"true"},pt={key:0},It={key:0,class:"ds-data-card__section"},$t={key:1},Vt={key:0,class:"ds-data-card__section"},Lt={class:"ds-data-card__more"},wt=e.defineComponent({__name:"DsDataCard",props:{title:{type:String,required:!0},icon:{type:String,default:"email"},mostLikely:{type:Object,default:null},more:{type:Array,default:()=>[]},collapsible:{type:Boolean,default:!1},showSort:{type:Boolean,default:!0},showEdit:{type:Boolean,default:!1},showClose:{type:Boolean,default:!1},isContactData:{type:Boolean,default:!1},showRate:{type:Boolean,default:!1},editLabel:{type:String,default:"Edit"},emptyLabel:{type:String,default:"No data found"},mostLikelyLabel:{type:String,default:"MOST LIKELY"},moreLabel:{type:String,default:"MORE"},sortLabel:{type:String,default:"Sort"},toggleLabel:{type:String,default:"Toggle"},closeLabel:{type:String,default:"Close"}},emits:[T,_,M,v,D,p],setup(t,{emit:l}){const n=t,a=l,o=e.ref(!1),i=e.computed(()=>n.more.length+(n.mostLikely?1:0)),r=e.computed(()=>i.value>3),s=e.computed(()=>i.value===0),d=e.computed(()=>n.collapsible&&o.value);function u(){o.value=!o.value}function c(S){a(T,S)}function m(){a(_)}function y(){a(M)}function g(){a(v)}function A(S){a(D,S)}function O(S){a(p,S)}return(S,b)=>(e.openBlock(),e.createElementBlock("section",{class:"ds-data-card","aria-label":t.title},[e.createElementVNode("div",{class:e.normalizeClass(["ds-data-card__header",{"is-collapsed":d.value,"is-collapsible":t.collapsible}]),onClick:b[1]||(b[1]=k=>t.collapsible&&u())},[e.createElementVNode("div",Et,[e.createElementVNode("i",Bt,e.toDisplayString(t.icon),1),e.createElementVNode("span",ht,e.toDisplayString(t.title),1)]),e.createElementVNode("div",{class:"ds-data-card__actions",onClick:b[0]||(b[0]=e.withModifiers(()=>{},["stop"]))},[!d.value&&t.showEdit?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"ds-data-card__edit",onClick:y},e.toDisplayString(t.editLabel),1)):e.createCommentVNode("",!0),!d.value&&t.showSort?(e.openBlock(),e.createBlock(e.unref(I),{key:1,variant:"tertiary",size:"medium",circle:"","left-icon":"swap_vert","aria-label":t.sortLabel,onClick:m},null,8,["aria-label"])):e.createCommentVNode("",!0),t.collapsible?(e.openBlock(),e.createBlock(e.unref(I),{key:2,variant:"tertiary",size:"medium",circle:"","left-icon":o.value?"keyboard_arrow_down":"keyboard_arrow_up","aria-label":t.toggleLabel,onClick:u},null,8,["left-icon","aria-label"])):e.createCommentVNode("",!0),t.showClose?(e.openBlock(),e.createElementBlock("button",{key:3,type:"button",class:"ds-data-card__close","aria-label":t.closeLabel,onClick:g},[...b[4]||(b[4]=[e.createElementVNode("i",{class:"material-icons","aria-hidden":"true"},"close",-1)])],8,Nt)):e.createCommentVNode("",!0)])],2),d.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ct,[s.value?(e.openBlock(),e.createElementBlock("div",Tt,[e.createElementVNode("i",Dt,e.toDisplayString(t.icon),1),e.createElementVNode("span",null,e.toDisplayString(t.emptyLabel),1)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.mostLikely?(e.openBlock(),e.createElementBlock("div",pt,[r.value?(e.openBlock(),e.createElementBlock("div",It,e.toDisplayString(t.mostLikelyLabel),1)):e.createCommentVNode("",!0),e.createVNode(e.unref(R),{value:t.mostLikely.value,"value-type":t.mostLikely.type,verified:t.mostLikely.verified,correct:t.mostLikely.correct,main:"","is-contact-data":t.isContactData,"show-rate":t.showRate,onCopy:c,onCorrect:b[2]||(b[2]=k=>A(t.mostLikely)),onIncorrect:b[3]||(b[3]=k=>O(t.mostLikely))},null,8,["value","value-type","verified","correct","is-contact-data","show-rate"])])):e.createCommentVNode("",!0),t.more.length>0?(e.openBlock(),e.createElementBlock("div",$t,[r.value?(e.openBlock(),e.createElementBlock("div",Vt,e.toDisplayString(t.moreLabel),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.more,k=>(e.openBlock(),e.createBlock(e.unref(R),{key:k.value,value:k.value,"value-type":k.type,verified:k.verified,correct:k.correct,"is-contact-data":t.isContactData,"show-rate":t.showRate,onCopy:c,onCorrect:j=>A(k),onIncorrect:j=>O(k)},null,8,["value","value-type","verified","correct","is-contact-data","show-rate","onCorrect","onIncorrect"]))),128))])])):e.createCommentVNode("",!0)],64))]))],8,gt))}}),Rt=f(wt,[["__scopeId","data-v-86467226"]]);exports.DS_ALERT_EFFECTS=K;exports.DS_ALERT_ICONS=q;exports.DS_ALERT_TYPES=Y;exports.DS_BADGE_TONES=$;exports.DS_BUTTON_NATIVE_TYPES=F;exports.DS_BUTTON_SIZES=L;exports.DS_BUTTON_VARIANTS=V;exports.DS_INPUT_SIZES=G;exports.DS_INPUT_TYPES=E;exports.DS_NOTIFICATION_ICONS=X;exports.DS_NOTIFICATION_POSITIONS=W;exports.DS_NOTIFICATION_TYPES=H;exports.DS_SPINNER_TONES=h;exports.DS_TABLE_ALIGN=w;exports.DS_TAG_TONES=U;exports.DS_VERIFICATION_STATES=B;exports.DsAlert=He;exports.DsAvatar=ve;exports.DsBadge=P;exports.DsButton=I;exports.DsCheckbox=Ue;exports.DsContactValue=R;exports.DsDataCard=Rt;exports.DsInput=Le;exports.DsModal=st;exports.DsNotification=tt;exports.DsSpinner=x;exports.DsTable=he;exports.DsTag=de;exports.DsTextarea=Oe;exports.DsVerificationIcon=Z;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),T={DARK:"dark",LIGHT:"light",ACCENT:"accent"},Q=["aria-label"],J=e.defineComponent({__name:"DsSpinner",props:{size:{type:Number,default:24},tone:{type:String,default:T.DARK},label:{type:String,default:"Loading"}},setup(t){return(a,o)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["ds-spinner",`ds-spinner--${t.tone}`]),role:"status",style:e.normalizeStyle({width:`${t.size}px`,height:`${t.size}px`}),"aria-label":t.label||void 0},null,14,Q))}}),y=(t,a)=>{const o=t.__vccOpts||t;for(const[r,i]of a)o[r]=i;return o},x=y(J,[["__scopeId","data-v-4d32b0a5"]]),z="click",v="close",D="focus",p="blur",I="copy",V="correct",$="incorrect",M="sort",_="edit",h={DEFAULT:"default",PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary",QUATERNARY:"quaternary",QUINARY:"quinary",WARNING:"warning",DOTTED:"dotted"},R={SMALL:"small",MEDIUM:"medium",LARGE:"large",XLARGE:"xlarge"},F={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},ee=["type","disabled","autofocus","aria-busy","aria-disabled","aria-pressed","aria-label"],te={key:1,class:"ds-button__icon ds-button__icon--leading"},ae={class:"material-icons","aria-hidden":"true"},oe={key:2,class:"ds-button__label"},le={key:3,class:"ds-button__icon ds-button__icon--trailing"},ne={class:"material-icons","aria-hidden":"true"},ie=e.defineComponent({__name:"DsButton",props:{variant:{type:String,default:h.DEFAULT},size:{type:String,default:R.MEDIUM},nativeType:{type:String,default:F.BUTTON},leftIcon:{type:String,default:""},rightIcon:{type:String,default:""},ariaLabel:{type:String,default:""},disabled:Boolean,loading:Boolean,circle:Boolean,square:Boolean,selected:Boolean,autofocus:Boolean},emits:[z],setup(t,{emit:a}){const o=t,r=a,i=e.computed(()=>o.size===R.SMALL?14:20),l=e.computed(()=>o.variant===h.PRIMARY||o.variant===h.WARNING?T.LIGHT:T.DARK);function n(s){o.disabled||o.loading||r(z,s)}return(s,u)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["ds-button",[`ds-button--${t.variant}`,`ds-button--${t.size}`,{"is-disabled":t.disabled||t.loading,"is-loading":t.loading,"is-circle":t.circle,"is-square":t.square,"is-selected":t.selected}]]),type:t.nativeType,disabled:t.disabled||t.loading,autofocus:t.autofocus,"aria-busy":t.loading||void 0,"aria-disabled":t.disabled||t.loading||void 0,"aria-pressed":t.selected||void 0,"aria-label":t.ariaLabel||void 0,onClick:n},[t.loading?(e.openBlock(),e.createBlock(e.unref(x),{key:0,class:"ds-button__spinner",size:i.value,tone:l.value},null,8,["size","tone"])):e.createCommentVNode("",!0),!t.loading&&(t.leftIcon||s.$slots.leading)?(e.openBlock(),e.createElementBlock("span",te,[e.renderSlot(s.$slots,"leading",{},()=>[e.createElementVNode("i",ae,e.toDisplayString(t.leftIcon),1)],!0)])):e.createCommentVNode("",!0),!t.loading&&s.$slots.default?(e.openBlock(),e.createElementBlock("span",oe,[e.renderSlot(s.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0),!t.loading&&(t.rightIcon||s.$slots.trailing)?(e.openBlock(),e.createElementBlock("span",le,[e.renderSlot(s.$slots,"trailing",{},()=>[e.createElementVNode("i",ne,e.toDisplayString(t.rightIcon),1)],!0)])):e.createCommentVNode("",!0)],10,ee))}}),w=y(ie,[["__scopeId","data-v-2d17382d"]]),U={DEFAULT:"default",GREY:"grey",SUCCESS:"success",INFO:"info",WARNING:"warning",ERROR:"error"},re=["aria-label"],se=e.defineComponent({__name:"DsTag",props:{tone:{type:String,default:U.DEFAULT},rounded:Boolean,closable:Boolean,closeLabel:{type:String,default:""}},setup(t,{emit:a}){const o=a;return(r,i)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["ds-tag",[`ds-tag--${t.tone}`,{"is-rounded":t.rounded}]])},[e.renderSlot(r.$slots,"default",{},void 0,!0),t.closable?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"ds-tag__close","aria-label":t.closeLabel||void 0,onClick:i[0]||(i[0]=l=>o(e.unref(v)))},[...i[1]||(i[1]=[e.createElementVNode("i",{class:"material-icons","aria-hidden":"true"},"close",-1)])],8,re)):e.createCommentVNode("",!0)],2))}}),ce=y(se,[["__scopeId","data-v-fc383bb9"]]),L={ACCENT:"accent",GREY:"grey",INFO:"info",SUCCESS:"success",ERROR:"error",WARNING:"warning"},de=e.defineComponent({__name:"DsBadge",props:{tone:{type:String,default:L.ACCENT}},setup(t){return(a,o)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["ds-badge",`ds-badge--${t.tone}`])},[e.renderSlot(a.$slots,"default",{},void 0,!0)],2))}}),P=y(de,[["__scopeId","data-v-f10a17a0"]]),ue=["src","alt"],me=["aria-label"],fe=e.defineComponent({__name:"DsAvatar",props:{image:{type:String,default:""},firstName:{type:String,default:""},lastName:{type:String,default:""},uid:{type:String,default:""},size:{type:Number,default:40},circular:Boolean,alt:{type:String,default:""}},setup(t){const a=t,o=e.computed(()=>a.firstName&&a.lastName?(a.firstName.charAt(0)+a.lastName.charAt(0)).toUpperCase():""),r=e.computed(()=>a.alt||`${a.firstName} ${a.lastName}`.trim()),i=e.computed(()=>({width:`${a.size}px`,height:`${a.size}px`})),l=e.computed(()=>{const n=a.uid||a.firstName+a.lastName;let s=0;for(let c=0;c<n.length;c++)s=n.charCodeAt(c)+((s<<5)-s),s=s&s;const u=[0,0,0];for(let c=0;c<3;c++)u[c]=s>>c*8&255;const d=u[0]>=200&&u[1]>=200&&u[2]>=200;return{bg:`rgb(${u[0]}, ${u[1]}, ${u[2]})`,fg:d?"#323f4b":"#fff"}});return(n,s)=>t.image?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(["ds-avatar",{"is-circular":t.circular}]),src:t.image,alt:t.alt,style:e.normalizeStyle(i.value)},null,14,ue)):o.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["ds-avatar ds-avatar--initials",{"is-circular":t.circular}]),role:"img","aria-label":r.value||void 0,style:e.normalizeStyle([i.value,{background:l.value.bg,color:l.value.fg,fontSize:`${Math.round(t.size*.4)}px`}])},e.toDisplayString(o.value),15,me)):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["ds-avatar ds-avatar--placeholder",{"is-circular":t.circular}]),style:e.normalizeStyle(i.value),"aria-hidden":"true"},null,6))}}),ye=y(fe,[["__scopeId","data-v-e965ed47"]]),A={LEFT:"left",CENTER:"center",RIGHT:"right"},ve={class:"ds-table"},be={class:"ds-table__wrapper"},ke={key:0},ge=["colspan"],Se=e.defineComponent({__name:"DsTable",props:{columns:{type:Array,required:!0},rows:{type:Array,required:!0},emptyMessage:{type:String,default:""},highlightRowId:{type:[String,Number],default:null},rowHeight:{type:[String,Number],default:null}},setup(t){const a=t,o=e.computed(()=>a.rowHeight==null?void 0:{"--ds-table-row-height":typeof a.rowHeight=="number"?`${a.rowHeight}px`:a.rowHeight});return(r,i)=>(e.openBlock(),e.createElementBlock("div",ve,[e.createElementVNode("div",be,[e.createElementVNode("table",{class:e.normalizeClass(["ds-table__table",{"has-row-height":t.rowHeight!=null}]),style:e.normalizeStyle(o.value)},[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.columns,l=>{var n;return e.openBlock(),e.createElementBlock("th",{key:l.key,class:e.normalizeClass(`ds-table__th--${(n=l.align)!=null?n:e.unref(A).LEFT}`),style:e.normalizeStyle(l.width?{width:l.width}:void 0)},e.toDisplayString(l.label),7)}),128))])]),e.createElementVNode("tbody",null,[t.rows.length===0?(e.openBlock(),e.createElementBlock("tr",ke,[e.createElementVNode("td",{class:"ds-table__empty",colspan:t.columns.length,"data-testid":"ds-table-empty"},[e.renderSlot(r.$slots,"empty",{},()=>[e.createTextVNode(e.toDisplayString(t.emptyMessage),1)],!0)],8,ge)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.rows,l=>(e.openBlock(),e.createElementBlock("tr",{key:l.id,class:e.normalizeClass({"is-highlighted":l.id===t.highlightRowId}),"data-testid":"ds-table-row"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.columns,n=>{var s;return e.openBlock(),e.createElementBlock("td",{key:n.key,class:e.normalizeClass(`ds-table__td--${(s=n.align)!=null?s:e.unref(A).LEFT}`)},[e.renderSlot(r.$slots,`cell-${n.key}`,{row:l},()=>[e.createTextVNode(e.toDisplayString(l[n.key]),1)],!0)],2)}),128))],2))),128))])],6)])]))}}),Ee=y(Se,[["__scopeId","data-v-45342363"]]),N={TEXT:"text",EMAIL:"email",PASSWORD:"password",TEL:"tel",NUMBER:"number",SEARCH:"search",URL:"url"},G={SM:"sm",MD:"md"},Be={class:"ds-input__wrap"},he=["id","type","placeholder","disabled","name","autocomplete","aria-invalid","aria-describedby"],Ne={key:0,class:"ds-input__suffix"},Ce={key:0,class:"material-icons ds-input__error-icon","aria-hidden":"true"},Te=["aria-label","aria-pressed"],De={class:"material-icons","aria-hidden":"true"},pe=["id"],Ie=e.defineComponent({__name:"DsInput",props:e.mergeModels({type:{type:String,default:N.TEXT},size:{type:String,default:G.SM},placeholder:{type:String,default:""},disabled:Boolean,error:Boolean,errorMessage:{type:String,default:""},showErrorIcon:Boolean,name:{type:String,default:""},id:{type:String,default:""},autocomplete:{type:String,default:""},toggleLabel:{type:String,default:""}},{modelValue:{default:""},modelModifiers:{}}),emits:e.mergeModels([D,p],["update:modelValue"]),setup(t,{emit:a}){const o=e.useModel(t,"modelValue"),r=t,i=a,l=e.useSlots(),n=e.ref(!1),s=e.computed(()=>r.type===N.PASSWORD),u=e.computed(()=>s.value&&n.value?N.TEXT:r.type),d=e.computed(()=>!!l.suffix||r.error&&r.showErrorIcon||s.value);return(c,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ds-input",[`ds-input--${t.size}`,{"is-error":t.error,"is-disabled":t.disabled}]])},[e.createElementVNode("div",Be,[e.withDirectives(e.createElementVNode("input",{id:t.id||void 0,"onUpdate:modelValue":m[0]||(m[0]=f=>o.value=f),class:e.normalizeClass(["ds-input__control",{"has-suffix":d.value}]),type:u.value,placeholder:t.placeholder,disabled:t.disabled,name:t.name||void 0,autocomplete:t.autocomplete||void 0,"aria-invalid":t.error||void 0,"aria-describedby":t.error&&t.errorMessage&&t.id?`${t.id}-error`:void 0,onFocus:m[1]||(m[1]=f=>i(e.unref(D),f)),onBlur:m[2]||(m[2]=f=>i(e.unref(p),f))},null,42,he),[[e.vModelDynamic,o.value]]),d.value?(e.openBlock(),e.createElementBlock("div",Ne,[e.renderSlot(c.$slots,"suffix",{},void 0,!0),t.error&&t.showErrorIcon?(e.openBlock(),e.createElementBlock("i",Ce,"warning")):s.value?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"ds-input__toggle","aria-label":t.toggleLabel||void 0,"aria-pressed":n.value,onClick:m[3]||(m[3]=f=>n.value=!n.value)},[e.createElementVNode("i",De,e.toDisplayString(n.value?"visibility":"visibility_off"),1)],8,Te)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),t.error&&t.errorMessage?(e.openBlock(),e.createElementBlock("p",{key:0,id:t.id?`${t.id}-error`:void 0,class:"ds-input__error"},e.toDisplayString(t.errorMessage),9,pe)):e.createCommentVNode("",!0)],2))}}),Ve=y(Ie,[["__scopeId","data-v-fb36e573"]]),$e=["id","placeholder","rows","disabled","name","aria-invalid","aria-describedby"],we=["id"],Le=e.defineComponent({__name:"DsTextarea",props:e.mergeModels({placeholder:{type:String,default:""},rows:{type:Number,default:4},disabled:Boolean,error:Boolean,errorMessage:{type:String,default:""},name:{type:String,default:""},id:{type:String,default:""}},{modelValue:{default:""},modelModifiers:{}}),emits:e.mergeModels([D,p],["update:modelValue"]),setup(t,{emit:a}){const o=e.useModel(t,"modelValue"),r=a;return(i,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ds-textarea",{"is-error":t.error,"is-disabled":t.disabled}])},[e.withDirectives(e.createElementVNode("textarea",{id:t.id||void 0,"onUpdate:modelValue":l[0]||(l[0]=n=>o.value=n),class:"ds-textarea__control",placeholder:t.placeholder,rows:t.rows,disabled:t.disabled,name:t.name||void 0,"aria-invalid":t.error||void 0,"aria-describedby":t.error&&t.errorMessage&&t.id?`${t.id}-error`:void 0,onFocus:l[1]||(l[1]=n=>r(e.unref(D),n)),onBlur:l[2]||(l[2]=n=>r(e.unref(p),n))},null,40,$e),[[e.vModelText,o.value]]),t.error&&t.errorMessage?(e.openBlock(),e.createElementBlock("p",{key:0,id:t.id?`${t.id}-error`:void 0,class:"ds-textarea__error"},e.toDisplayString(t.errorMessage),9,we)):e.createCommentVNode("",!0)],2))}}),Re=y(Le,[["__scopeId","data-v-54fc312a"]]),Ae=["disabled","name"],Oe={key:0,class:"ds-checkbox__mark",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor","stroke-width":"2.5"},ze={key:1,class:"ds-checkbox__mark",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor","stroke-width":"2.5"},Me={key:0,class:"ds-checkbox__label"},_e=e.defineComponent({__name:"DsCheckbox",props:e.mergeModels({indeterminate:Boolean,disabled:Boolean,name:{type:String,default:""},label:{type:String,default:""}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const a=e.useModel(t,"modelValue"),o=t,r=e.ref(null);function i(){r.value&&(r.value.indeterminate=o.indeterminate)}return e.onMounted(i),e.watch(()=>o.indeterminate,i),(l,n)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["ds-checkbox",{"is-disabled":t.disabled}])},[e.withDirectives(e.createElementVNode("input",{ref_key:"inputRef",ref:r,"onUpdate:modelValue":n[0]||(n[0]=s=>a.value=s),type:"checkbox",class:"ds-checkbox__native",disabled:t.disabled,name:t.name||void 0},null,8,Ae),[[e.vModelCheckbox,a.value]]),e.createElementVNode("span",{class:e.normalizeClass(["ds-checkbox__box",{"is-active":a.value||t.indeterminate}]),"aria-hidden":"true"},[t.indeterminate?(e.openBlock(),e.createElementBlock("svg",Oe,[...n[1]||(n[1]=[e.createElementVNode("line",{x1:"4",y1:"8",x2:"12",y2:"8"},null,-1)])])):a.value?(e.openBlock(),e.createElementBlock("svg",ze,[...n[2]||(n[2]=[e.createElementVNode("path",{d:"M3.5 8.5l3 3 6-6"},null,-1)])])):e.createCommentVNode("",!0)],2),l.$slots.default||t.label?(e.openBlock(),e.createElementBlock("span",Me,[e.renderSlot(l.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0)])):e.createCommentVNode("",!0)],2))}}),xe=y(_e,[["__scopeId","data-v-8ccdf847"]]),Y={SUCCESS:"success",INFO:"info",WARNING:"warning",ERROR:"error"},H={LIGHT:"light",DARK:"dark"},q={success:"check_circle",info:"info",warning:"warning",error:"error"},Fe={key:0,class:"material-icons ds-alert__icon","aria-hidden":"true"},Ue={class:"ds-alert__content"},Pe={key:1,class:"ds-alert__body"},Ge=["aria-label"],Ye=e.defineComponent({__name:"DsAlert",props:{type:{type:String,default:Y.INFO},effect:{type:String,default:H.LIGHT},title:{type:String,default:""},description:{type:String,default:""},showIcon:Boolean,closable:Boolean,center:Boolean,closeLabel:{type:String,default:""}},emits:[v],setup(t,{emit:a}){const o=t,r=a,i=e.useSlots(),l=e.ref(!0),n=e.computed(()=>q[o.type]),s=e.computed(()=>!!i.default||o.description.length>0);function u(){l.value=!1,r(v)}return(d,c)=>l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["ds-alert",[`ds-alert--${t.type}`,`ds-alert--${t.effect}`,{"is-center":t.center}]]),role:"alert"},[t.showIcon?(e.openBlock(),e.createElementBlock("i",Fe,e.toDisplayString(n.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ue,[t.title?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["ds-alert__title",{"has-body":s.value}])},e.toDisplayString(t.title),3)):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("div",Pe,[e.renderSlot(d.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)],!0)])):e.createCommentVNode("",!0)]),t.closable?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"ds-alert__close","aria-label":t.closeLabel||void 0,onClick:u},[...c[0]||(c[0]=[e.createElementVNode("i",{class:"material-icons","aria-hidden":"true"},"close",-1)])],8,Ge)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)}}),He=y(Ye,[["__scopeId","data-v-03bbe700"]]),W={SUCCESS:"success",INFO:"info",WARNING:"warning",ERROR:"error"},K={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right"},X={success:"check_circle",info:"mode_edit",warning:"warning",error:"error"},qe={class:"material-icons ds-notification__icon","aria-hidden":"true"},We={class:"ds-notification__content"},Ke={key:0,class:"ds-notification__title"},Xe={key:1,class:"ds-notification__desc"},Ze=["href"],je=["aria-label"],Qe=e.defineComponent({__name:"DsNotification",props:{type:{type:String,default:W.INFO},position:{type:String,default:K.BOTTOM_LEFT},title:{type:String,default:""},description:{type:String,default:""},linkTitle:{type:String,default:""},link:{type:String,default:""},showClose:{type:Boolean,default:!0},closeLabel:{type:String,default:""},duration:{type:Number,default:3500}},emits:[v],setup(t,{emit:a}){const o=t,r=a,i=e.ref(!0),l=e.computed(()=>X[o.type]);let n,s=0,u=o.duration;function d(){n&&(clearTimeout(n),n=void 0)}function c(E){d(),!(o.duration<=0||!i.value)&&(s=Date.now(),n=setTimeout(g,E))}function m(){n&&(u-=Date.now()-s,d())}function f(){c(u>0?u:o.duration)}function g(){d(),i.value=!1,r(v)}return e.onMounted(()=>c(o.duration)),e.onBeforeUnmount(d),(E,B)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"ds-notification",appear:""},{default:e.withCtx(()=>[i.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["ds-notification",`ds-notification--${t.position}`])},[e.createElementVNode("div",{class:e.normalizeClass(["ds-notification__card",`ds-notification__card--${t.type}`]),role:"alert",onMouseenter:m,onMouseleave:f},[e.createElementVNode("i",qe,e.toDisplayString(l.value),1),e.createElementVNode("div",We,[t.title?(e.openBlock(),e.createElementBlock("span",Ke,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),t.description?(e.openBlock(),e.createElementBlock("p",Xe,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0),t.linkTitle?(e.openBlock(),e.createElementBlock("a",{key:2,class:"ds-notification__link",href:t.link||void 0,target:"_blank",rel:"noreferrer"},e.toDisplayString(t.linkTitle),9,Ze)):e.createCommentVNode("",!0)]),t.showClose?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"ds-notification__close","aria-label":t.closeLabel||void 0,onClick:g},[...B[0]||(B[0]=[e.createElementVNode("i",{class:"material-icons","aria-hidden":"true"},"close",-1)])],8,je)):e.createCommentVNode("",!0)],34)],2)):e.createCommentVNode("",!0)]),_:1})]))}}),Je=y(Qe,[["__scopeId","data-v-dff620c6"]]),et=["aria-label"],tt={key:0,class:"ds-modal__header"},at={class:"ds-modal__title"},ot={class:"ds-modal__body"},lt={key:1,class:"ds-modal__footer"},nt=e.defineComponent({__name:"DsModal",props:{open:Boolean,title:{type:String,default:""},showClose:{type:Boolean,default:!0},width:{type:String,default:"440px"},closeOnBackdrop:{type:Boolean,default:!0},closeLabel:{type:String,default:""}},emits:[v],setup(t,{emit:a}){const o=t,r=a,i=e.ref(null);let l=null;function n(){o.closeOnBackdrop&&r(v)}function s(){return i.value?Array.from(i.value.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(c=>c.offsetParent!==null):[]}function u(d){var g;if(d.key==="Escape"){r(v);return}if(d.key!=="Tab")return;const c=s();if(c.length===0){d.preventDefault(),(g=i.value)==null||g.focus();return}const m=c[0],f=c[c.length-1];d.shiftKey&&document.activeElement===m?(d.preventDefault(),f.focus()):!d.shiftKey&&document.activeElement===f&&(d.preventDefault(),m.focus())}return e.watch(()=>o.open,d=>{var c;typeof document!="undefined"&&(d?(l=document.activeElement,document.addEventListener("keydown",u),document.body.style.overflow="hidden",e.nextTick(()=>{var m,f;return(f=(m=s()[0])!=null?m:i.value)==null?void 0:f.focus()})):(document.removeEventListener("keydown",u),document.body.style.overflow="",(c=l==null?void 0:l.focus)==null||c.call(l)))},{immediate:!0}),e.onBeforeUnmount(()=>{typeof document!="undefined"&&(document.removeEventListener("keydown",u),document.body.style.overflow="")}),(d,c)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"ds-modal"},{default:e.withCtx(()=>[t.open?(e.openBlock(),e.createElementBlock("div",{key:0,class:"ds-modal",onClick:n},[e.createElementVNode("div",{ref_key:"dialogRef",ref:i,class:"ds-modal__dialog",role:"dialog","aria-modal":"true","aria-label":t.title||"dialog",tabindex:"-1",style:e.normalizeStyle({width:t.width}),onClick:c[1]||(c[1]=e.withModifiers(()=>{},["stop"]))},[t.title||t.showClose?(e.openBlock(),e.createElementBlock("div",tt,[e.createElementVNode("span",at,e.toDisplayString(t.title),1),t.showClose?(e.openBlock(),e.createBlock(e.unref(w),{key:0,variant:"tertiary",circle:"","left-icon":"close","aria-label":t.closeLabel||void 0,onClick:c[0]||(c[0]=m=>r(e.unref(v)))},null,8,["aria-label"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",ot,[e.renderSlot(d.$slots,"default",{},void 0,!0)]),d.$slots.footer?(e.openBlock(),e.createElementBlock("div",lt,[e.renderSlot(d.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],12,et)])):e.createCommentVNode("",!0)]),_:3})]))}}),it=y(nt,[["__scopeId","data-v-19866588"]]),C={VERIFIED:"verified",UNVERIFIED:"unverified",NEW:"new"},rt=["aria-label","title"],st=e.defineComponent({__name:"DsVerificationIcon",props:{verified:{type:Boolean,default:null},isContactData:{type:Boolean,default:!1},size:{type:Number,default:20},label:{type:String,default:""}},setup(t){const a=t,o=e.computed(()=>a.verified===null||a.verified===void 0?{state:C.NEW,icon:"new_releases",label:"Newly found"}:a.verified?{state:C.VERIFIED,icon:"verified",label:"Verified"}:{state:C.UNVERIFIED,icon:a.isContactData?"dangerous":"error",label:"Not verified"});return(r,i)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(["material-icons ds-verification-icon",[`ds-verification-icon--${o.value.state}`,{"ds-verification-icon--email":t.isContactData}]]),style:e.normalizeStyle({fontSize:`${t.size}px`}),role:"img","aria-label":t.label||o.value.label,title:t.label||o.value.label},[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.value.icon),1)],!0)],14,rt))}}),Z=y(st,[["__scopeId","data-v-0fd84040"]]),ct=["title"],dt={class:"ds-contact-value__marquee"},ut={class:"ds-contact-value__actions"},mt=["aria-label","title"],ft={class:"material-icons","aria-hidden":"true"},yt=["aria-label","aria-pressed","title"],vt=["aria-label","aria-pressed","title"],bt=e.defineComponent({__name:"DsContactValue",props:{value:{type:String,required:!0},valueType:{type:String,default:""},verified:{type:Boolean,default:null},main:{type:Boolean,default:!1},isContactData:{type:Boolean,default:!1},showRate:{type:Boolean,default:!1},correct:{type:Boolean,default:null},copyLabel:{type:String,default:"Copy"},copiedLabel:{type:String,default:"Copied!"},correctLabel:{type:String,default:"Correct"},incorrectLabel:{type:String,default:"Incorrect"}},emits:[I,V,$],setup(t,{emit:a}){const o=t,r=a,i=e.ref(!1);let l;function n(){typeof navigator!="undefined"&&navigator.clipboard&&navigator.clipboard.writeText(o.value).catch(()=>{}),i.value=!0,clearTimeout(l),l=setTimeout(()=>{i.value=!1},1200),r(I,o.value)}function s(){r(V)}function u(){r($)}return e.onBeforeUnmount(()=>clearTimeout(l)),(d,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ds-contact-value",{"ds-contact-value--main":t.main}])},[e.createVNode(e.unref(Z),{verified:t.verified,"is-contact-data":t.isContactData},null,8,["verified","is-contact-data"]),e.createElementVNode("span",{class:"ds-contact-value__value",title:t.value},e.toDisplayString(t.value),9,ct),e.createElementVNode("span",dt,[t.valueType?(e.openBlock(),e.createBlock(e.unref(P),{key:0,class:"ds-contact-value__badge",tone:t.main?e.unref(L).ACCENT:e.unref(L).GREY,"aria-hidden":"true"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.valueType),1)]),_:1},8,["tone"])):e.createCommentVNode("",!0),e.createElementVNode("span",ut,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["ds-contact-value__action",{"is-copied":i.value}]),"aria-label":i.value?t.copiedLabel:t.copyLabel,title:i.value?t.copiedLabel:t.copyLabel,onClick:n},[e.createElementVNode("i",ft,e.toDisplayString(i.value?"check":"content_copy"),1)],10,mt),t.showRate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{type:"button",class:"ds-contact-value__action","aria-label":t.correctLabel,"aria-pressed":t.correct===!0,title:t.correctLabel,onClick:s},[e.createElementVNode("i",{class:e.normalizeClass(t.correct===!0?"material-icons":"material-icons-outlined"),"aria-hidden":"true"},"thumb_up",2)],8,yt),e.createElementVNode("button",{type:"button",class:"ds-contact-value__action","aria-label":t.incorrectLabel,"aria-pressed":t.correct===!1,title:t.incorrectLabel,onClick:u},[e.createElementVNode("i",{class:e.normalizeClass(t.correct===!1?"material-icons":"material-icons-outlined"),"aria-hidden":"true"},"thumb_down",2)],8,vt)],64)):e.createCommentVNode("",!0)])])],2))}}),O=y(bt,[["__scopeId","data-v-75a78ae2"]]),kt=["aria-label"],gt={class:"ds-data-card__heading"},St={class:"material-icons ds-data-card__icon","aria-hidden":"true"},Et={class:"ds-data-card__title"},Bt=["aria-label"],ht={key:0,class:"ds-data-card__body"},Nt={key:0,class:"ds-data-card__empty"},Ct={class:"material-icons-outlined ds-data-card__empty-icon","aria-hidden":"true"},Tt={key:0},Dt={key:0,class:"ds-data-card__section"},pt={key:1},It={key:0,class:"ds-data-card__section"},Vt={class:"ds-data-card__more"},$t=e.defineComponent({__name:"DsDataCard",props:{title:{type:String,required:!0},icon:{type:String,default:"email"},mostLikely:{type:Object,default:null},more:{type:Array,default:()=>[]},collapsible:{type:Boolean,default:!1},showSort:{type:Boolean,default:!0},showEdit:{type:Boolean,default:!1},showClose:{type:Boolean,default:!1},isContactData:{type:Boolean,default:!1},showRate:{type:Boolean,default:!1},editLabel:{type:String,default:"Edit"},emptyLabel:{type:String,default:"No data found"},mostLikelyLabel:{type:String,default:"MOST LIKELY"},moreLabel:{type:String,default:"MORE"},sortLabel:{type:String,default:"Sort"},toggleLabel:{type:String,default:"Toggle"},closeLabel:{type:String,default:"Close"}},emits:[I,M,_,v,V,$],setup(t,{emit:a}){const o=t,r=a,i=e.ref(!1),l=e.computed(()=>o.more.length+(o.mostLikely?1:0)),n=e.computed(()=>l.value>3),s=e.computed(()=>l.value===0),u=e.computed(()=>o.collapsible&&i.value);function d(){i.value=!i.value}function c(S){r(I,S)}function m(){r(M)}function f(){r(_)}function g(){r(v)}function E(S){r(V,S)}function B(S){r($,S)}return(S,b)=>(e.openBlock(),e.createElementBlock("section",{class:"ds-data-card","aria-label":t.title},[e.createElementVNode("div",{class:e.normalizeClass(["ds-data-card__header",{"is-collapsed":u.value,"is-collapsible":t.collapsible}]),onClick:b[1]||(b[1]=k=>t.collapsible&&d())},[e.createElementVNode("div",gt,[e.createElementVNode("i",St,e.toDisplayString(t.icon),1),e.createElementVNode("span",Et,e.toDisplayString(t.title),1)]),e.createElementVNode("div",{class:"ds-data-card__actions",onClick:b[0]||(b[0]=e.withModifiers(()=>{},["stop"]))},[!u.value&&t.showEdit?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"ds-data-card__edit",onClick:f},e.toDisplayString(t.editLabel),1)):e.createCommentVNode("",!0),!u.value&&t.showSort?(e.openBlock(),e.createBlock(e.unref(w),{key:1,variant:"tertiary",size:"medium",circle:"","left-icon":"swap_vert","aria-label":t.sortLabel,onClick:m},null,8,["aria-label"])):e.createCommentVNode("",!0),t.collapsible?(e.openBlock(),e.createBlock(e.unref(w),{key:2,variant:"tertiary",size:"medium",circle:"","left-icon":i.value?"keyboard_arrow_down":"keyboard_arrow_up","aria-label":t.toggleLabel,onClick:d},null,8,["left-icon","aria-label"])):e.createCommentVNode("",!0),t.showClose?(e.openBlock(),e.createElementBlock("button",{key:3,type:"button",class:"ds-data-card__close","aria-label":t.closeLabel,onClick:g},[...b[4]||(b[4]=[e.createElementVNode("i",{class:"material-icons","aria-hidden":"true"},"close",-1)])],8,Bt)):e.createCommentVNode("",!0)])],2),u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ht,[s.value?(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("i",Ct,e.toDisplayString(t.icon),1),e.createElementVNode("span",null,e.toDisplayString(t.emptyLabel),1)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.mostLikely?(e.openBlock(),e.createElementBlock("div",Tt,[n.value?(e.openBlock(),e.createElementBlock("div",Dt,e.toDisplayString(t.mostLikelyLabel),1)):e.createCommentVNode("",!0),e.createVNode(e.unref(O),{value:t.mostLikely.value,"value-type":t.mostLikely.type,verified:t.mostLikely.verified,correct:t.mostLikely.correct,main:"","is-contact-data":t.isContactData,"show-rate":t.showRate,onCopy:c,onCorrect:b[2]||(b[2]=k=>E(t.mostLikely)),onIncorrect:b[3]||(b[3]=k=>B(t.mostLikely))},null,8,["value","value-type","verified","correct","is-contact-data","show-rate"])])):e.createCommentVNode("",!0),t.more.length>0?(e.openBlock(),e.createElementBlock("div",pt,[n.value?(e.openBlock(),e.createElementBlock("div",It,e.toDisplayString(t.moreLabel),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Vt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.more,k=>(e.openBlock(),e.createBlock(e.unref(O),{key:k.value,value:k.value,"value-type":k.type,verified:k.verified,correct:k.correct,"is-contact-data":t.isContactData,"show-rate":t.showRate,onCopy:c,onCorrect:j=>E(k),onIncorrect:j=>B(k)},null,8,["value","value-type","verified","correct","is-contact-data","show-rate","onCorrect","onIncorrect"]))),128))])])):e.createCommentVNode("",!0)],64))]))],8,kt))}}),wt=y($t,[["__scopeId","data-v-86467226"]]);exports.DS_ALERT_EFFECTS=H;exports.DS_ALERT_ICONS=q;exports.DS_ALERT_TYPES=Y;exports.DS_BADGE_TONES=L;exports.DS_BUTTON_NATIVE_TYPES=F;exports.DS_BUTTON_SIZES=R;exports.DS_BUTTON_VARIANTS=h;exports.DS_INPUT_SIZES=G;exports.DS_INPUT_TYPES=N;exports.DS_NOTIFICATION_ICONS=X;exports.DS_NOTIFICATION_POSITIONS=K;exports.DS_NOTIFICATION_TYPES=W;exports.DS_SPINNER_TONES=T;exports.DS_TABLE_ALIGN=A;exports.DS_TAG_TONES=U;exports.DS_VERIFICATION_STATES=C;exports.DsAlert=He;exports.DsAvatar=ye;exports.DsBadge=P;exports.DsButton=w;exports.DsCheckbox=xe;exports.DsContactValue=O;exports.DsDataCard=wt;exports.DsInput=Ve;exports.DsModal=it;exports.DsNotification=Je;exports.DsSpinner=x;exports.DsTable=Ee;exports.DsTag=ce;exports.DsTextarea=Re;exports.DsVerificationIcon=Z;
2
2
  //# sourceMappingURL=index.cjs.map