(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0c002e0a"],{"240a":function(e,t,s){"use strict";var a=s("c6a6"),i=s("b0af"),n=s("490a"),o=s("90a2"),r=function(){var e=this,t=e._self._c;return t(a["a"],{staticClass:"api-auto-complete",attrs:{dense:"",clearable:"","deletable-chips":"","return-object":"","hide-selected":"","item-text":"name","small-chips":e.multiple,"hide-details":!e.hint,"persistent-hint":!!e.hint,hint:e.hint,"search-input":e.search,placeholder:e.placeholder,label:e.label,outlined:e.outlined,multiple:e.multiple,items:e.items,disabled:e.disabled,"menu-props":{maxHeight:200,offsetY:!0,bottom:!0,maxWidth:e.menuMaxWidth}},on:{"update:searchInput":function(t){e.search=t},"update:search-input":function(t){e.search=t}},scopedSlots:e._u([{key:"append",fn:function(){return[e.searchLoader?t(n["a"],{attrs:{indeterminate:"",size:"18",width:"2",color:"primary"}}):e._e()]},proxy:!0},{key:"append-item",fn:function(){return[e.pageLoader?t("div",{staticClass:"w-100 d-flex align-center justify-center"},[t(n["a"],{attrs:{size:"18",width:"2",indeterminate:"",color:"primary"}})],1):t(i["a"],{directives:[{def:o["a"],name:"intersect",rawName:"v-intersect.quiet",value:e.getNextPage,expression:"getNextPage",modifiers:{quiet:!0}}],attrs:{height:"1"}})]},proxy:!0}]),model:{value:e.tempVal,callback:function(t){e.tempVal=t},expression:"tempVal"}})},l=[];const c=s("8718");var d={props:{value:{required:!0},outlined:{type:Boolean},placeholder:{default:"Search",type:String},label:{default:"",type:String},multiple:{default:!0,type:Boolean},apiCb:{required:!0,type:Function},menuMaxWidth:{type:String},disabled:{type:Boolean},hint:{type:String}},data:()=>({search:"",items:[],searchLoader:!1,pageLoader:!1,pagination:{page:1,itemsPerPage:25},lastPage:1}),computed:{tempVal:{get(){return this.value},set(e){this.$emit("input",e)}}},methods:{fetchRecords(e=!1){this.disabled||this.apiCb({...this.pagination,searchByName:this.search}).then(t=>{this.items=e?c(this.items,t.data,"id"):t.data,this.searchLoader=!1,this.pageLoader=!1,this.lastPage=t.pagination.lastPage})},getNextPage(e,t,s){!s||this.pagination.page>=this.lastPage||(this.pagination.page++,this.pageLoader=!0,this.fetchRecords(!0))}},watch:{search(){this.disabled||(this.pagination.page=1,this.searchLoader=!0,this.fetchRecords())},disabled(e){e||this.fetchRecords()}},created(){this.fetchRecords()}},u=d,h=(s("80b7"),s("2877")),p=Object(h["a"])(u,r,l,!1,null,"6b03be91",null);t["a"]=p.exports},"28a4":function(e,t,s){},"2bfd":function(e,t,s){},"3278c":function(e,t,s){},4534:function(e,t,s){"use strict";s.d(t,"a",(function(){return r}));var a=s("bfff"),i=s("3620"),n=s("3f2c");function o(){var e=Object(n["a"])(arguments),t=e.text,s=e.options,a=e.metadata;return Object(i["a"])(t,s,a)}function r(){return Object(a["a"])(o,arguments)}},51757:function(e,t,s){"use strict";var a=s("cc20"),i=s("b974"),n=s("2fa4"),o=function(){var e=this,t=e._self._c;return t(i["a"],{attrs:{dense:"",outlined:"","item-text":"full_name","item-value":"id",placeholder:"Select user","hide-details":!e.disableInputHint||!e.disabled,"no-data-text":e.noDataText,label:e.hideLabel?"":e.label,items:e.filteredOrgUsers,"menu-props":{maxHeight:220,offsetY:!0},"persistent-hint":!!e.disableInputHint&&e.disabled,hint:e.disableInputHint,disabled:e.disabled},scopedSlots:e._u([e.showMeLabel?{key:"selection",fn:function({item:s}){return[t("div",{staticClass:"d-flex align-center w-100"},[t("div",{staticClass:"mr-1"},[e._v(e._s(s.full_name))]),s.id===e.user.id?t("div",{staticClass:"text-caption font-weight-light"},[e._v(" (Me) ")]):e._e(),t(n["a"]),s.disabled&&e.disabledItemChipText?t(a["a"],{staticClass:"px-2 font-weight-medium",staticStyle:{height:"20px"},attrs:{label:"","x-small":""}},[e._v(" "+e._s(e.disabledItemChipText)+" ")]):e._e()],1)]}}:null,e.showMeLabel?{key:"item",fn:function({item:s}){return[t("div",{staticClass:"d-flex align-center w-100"},[t("user-avatar",{attrs:{readonly:"",disableHover:"",disableTooltip:"",value:s,size:24}}),t("div",{staticClass:"ml-2 mr-1"},[e._v(e._s(s.full_name))]),s.id===e.user.id?t("div",{staticClass:"text-caption font-weight-light"},[e._v(" (Me) ")]):e._e(),t(n["a"]),s.disabled&&e.disabledItemChipText?t(a["a"],{staticClass:"px-2 font-weight-medium",staticStyle:{height:"20px"},attrs:{label:"","x-small":""}},[e._v(" "+e._s(e.disabledItemChipText)+" ")]):e._e()],1)]}}:null],null,!0),model:{value:e.selectedUser,callback:function(t){e.selectedUser=t},expression:"selectedUser"}})},r=[],l=s("2f62"),c=s("b126"),d={components:{UserAvatar:c["default"]},name:"UserSelect",props:{value:{default:null},noDataText:{type:String},label:{type:String,default:"Assign to user"},hideLabel:{type:Boolean},hideCurrentUser:{type:Boolean},showMeLabel:{type:Boolean},disableItemFunc:{type:Function},disabledItemChipText:{type:String},disabled:{type:Boolean},disableInputHint:{type:String}},computed:{...Object(l["c"])("user",["user"]),...Object(l["c"])("orgUsers",["orgUsers"]),filteredOrgUsers(){const e=this.hideCurrentUser?this.orgUsers.filter(e=>e.id!==this.user.id):this.orgUsers;return e.map(e=>this.disableItemFunc&&this.disableItemFunc(e)?{...e,disabled:!0}:{...e,disabled:!1})},selectedUser:{get(){return this.value},set(e){this.$emit("input",e)}}}},u=d,h=s("2877"),p=Object(h["a"])(u,o,r,!1,null,null,null);t["a"]=p.exports},"5bca":function(e,t,s){"use strict";s("14d9");var a=s("2c67"),i=s("f40c");const n={aIGeneratedOutputs:e=>e?"/ai/aiGeneratedOutputs/"+e:"/ai/aiGeneratedOutputs",painPoints:e=>e?"/ai/painPoints/"+e:"/ai/painPoints",valueProps:e=>e?"/ai/valueProps/"+e:"/ai/valueProps",csvHeaderMatch:()=>"/ai/csvHeaderMatch"};t["a"]={async getAIGeneratedOutputs(e={}){let t=n.aIGeneratedOutputs(),s=[];const o=Object(i["e"])(e);o&&s.push(o),s.length&&(t+="?"+s.join("&"));const{response:r,error:l}=await Object(i["f"])(a["b"].get,t);if(r)return r;throw l},async generateAIOutput(e){const{response:t,error:s}=await Object(i["f"])(a["b"].post,n.aIGeneratedOutputs(),e);if(t)return t;throw s},async rateGeneratedOutput({id:e,rating:t}){const{response:s,error:o}=await Object(i["f"])(a["b"].put,n.aIGeneratedOutputs(e),{user_rating:t});if(s)return s;throw o},async getPainPoints(){const{response:e,error:t}=await Object(i["f"])(a["b"].get,n.painPoints());if(e)return e;throw t},async createPainPoint(e){const{response:t,error:s}=await Object(i["f"])(a["b"].post,n.painPoints(),e);if(t)return t;throw s},async deletePainPoint(e){const{response:t,error:s}=await Object(i["f"])(a["b"].delete,n.painPoints(e));if(t)return t;throw s},async getValueProps(){const{response:e,error:t}=await Object(i["f"])(a["b"].get,n.valueProps());if(e)return e;throw t},async createValueProp(e){const{response:t,error:s}=await Object(i["f"])(a["b"].post,n.valueProps(),e);if(t)return t;throw s},async deleteValueProp(e){const{response:t,error:s}=await Object(i["f"])(a["b"].delete,n.valueProps(e));if(t)return t;throw s},async getSuggestedCSVColMapping(e){const{response:t,error:s}=await Object(i["f"])(a["b"].post,n.csvHeaderMatch(),e);if(t)return t;throw s}}},"80b7":function(e,t,s){"use strict";s("28a4")},c09a:function(e,t,s){"use strict";s.r(t);var a=s("8336"),i=s("b0af"),n=s("99d9"),o=s("ac7c"),r=s("169a"),l=s("ce7e"),c=s("132d"),d=s("b974"),u=s("2fa4"),h=s("b73d"),p=s("3a2f"),m=function(){var e=this,t=e._self._c;return t(r["a"],{attrs:{scrollable:"","max-width":"700"},model:{value:e.showPreUploadDialog,callback:function(t){e.showPreUploadDialog=t},expression:"showPreUploadDialog"}},[t(i["a"],{attrs:{flat:""}},[t(n["d"],[t(c["a"],{staticClass:"mr-2"},[e._v("mdi-table")]),e._v(" Tell us about your import ")],1),t(n["c"],{staticClass:"py-2"},[t(d["a"],{attrs:{dense:"",outlined:"",clearable:"","hide-details":"","return-object":"",label:"Prospect status","item-text":"name",items:e.prospectStatuses,"menu-props":{maxHeight:220,offsetY:!0}},model:{value:e.selectedProspectStatus,callback:function(t){e.selectedProspectStatus=t},expression:"selectedProspectStatus"}}),t("div",{staticClass:"mt-1 mb-5 text-caption font-weight-medium pl-1"},[e._v(" If your file does not have a status column or some row does not have a status value. This value will be used. ")]),e.isOrgAdmin?t("user-select",{model:{value:e.assignToUser,callback:function(t){e.assignToUser=t},expression:"assignToUser"}}):e._e(),t(h["a"],{attrs:{dense:"","persistent-hint":"",label:"Automatically remove/truncate cells with errors",hint:"When turned off, you will see errors and will have to fix them before submitting."},model:{value:e.autoRemoveErroneousCSVCells,callback:function(t){e.autoRemoveErroneousCSVCells=t},expression:"autoRemoveErroneousCSVCells"}}),t("div",{staticClass:"d-flex align-center mb-1 mt-5"},[t(c["a"],{staticClass:"mr-1",attrs:{small:""}},[e._v("mdi-phone")]),t("span",{staticClass:"font-weight-medium"},[e._v("Phone numbers")])],1),t("div",{staticClass:"d-flex align-center pl-3"},[t("div",{staticClass:"w-50"},[e._v("Number of work phone columns in your file:")]),t("div",{staticClass:"w-50"},[t(d["a"],{attrs:{dense:"",outlined:"","hide-details":"","menu-props":{offsetY:!0,maxHeight:"200px"},items:[1,2,3,4,5,6,7,8,9,10]},model:{value:e.workPhoneColsCount,callback:function(t){e.workPhoneColsCount=t},expression:"workPhoneColsCount"}})],1)]),t("div",{staticClass:"d-flex align-start mt-2"},[t("div",{staticClass:"w-50 pr-2"},[t(h["a"],{staticClass:"mt-0",attrs:{dense:"","persistent-hint":"",color:"primary",label:"Prevent duplicate phone numbers",hint:"Turning this on will automatically drop duplicates by phone numbers. You can see the dropped contacts after the import."},model:{value:e.preventDuplicatePhoneNumbers,callback:function(t){e.preventDuplicatePhoneNumbers=t},expression:"preventDuplicatePhoneNumbers"}})],1),t("div",{staticClass:"w-50 pl-2"},[e.preventDuplicatePhoneNumbers&&e.isOrgAdmin?t(o["a"],{staticClass:"mt-0",attrs:{dense:"","persistent-hint":"",label:"Org-wide duplicate detection",hint:"Turning this on will check for duplicates across all user's contacts."},model:{value:e.phoneCheckAllOrg,callback:function(t){e.phoneCheckAllOrg=t},expression:"phoneCheckAllOrg"}}):e._e()],1)]),t(l["a"],{staticClass:"my-5"}),t("div",{staticClass:"d-flex align-center mb-1"},[t(c["a"],{staticClass:"mr-1",attrs:{small:""}},[e._v("mdi-email")]),t("span",{staticClass:"font-weight-medium"},[e._v("Email addresses")])],1),t("div",{staticClass:"d-flex align-center pl-3"},[t("div",{staticClass:"w-50"},[e._v("Number of work emails columns in your file:")]),t("div",{staticClass:"w-50"},[t(d["a"],{attrs:{dense:"",outlined:"","hide-details":"","menu-props":{offsetY:!0,maxHeight:"200px"},items:[1,2,3,4,5,6,7,8,9,10]},model:{value:e.workEmailColsCount,callback:function(t){e.workEmailColsCount=t},expression:"workEmailColsCount"}})],1)]),t("div",{staticClass:"d-flex align-start mt-2"},[t("div",{staticClass:"w-50 pr-2"},[t(h["a"],{staticClass:"mt-0",attrs:{dense:"","persistent-hint":"",color:"primary",label:"Prevent duplicate email addresses",hint:"Turning this on will automatically drop duplicates by email address. You can see the dropped contacts after the import."},model:{value:e.preventDuplicateEmails,callback:function(t){e.preventDuplicateEmails=t},expression:"preventDuplicateEmails"}})],1),t("div",{staticClass:"w-50 pl-2"},[e.preventDuplicateEmails&&e.isOrgAdmin?t(o["a"],{staticClass:"mt-0",attrs:{dense:"","persistent-hint":"",label:"Org-wide duplicate detection",hint:"Turning this on will check for duplicates across all user's contacts."},model:{value:e.emailCheckAllOrg,callback:function(t){e.emailCheckAllOrg=t},expression:"emailCheckAllOrg"}}):e._e()],1)]),t(l["a"],{staticClass:"my-5"}),t("div",{staticClass:"d-flex align-center mb-1"},[t(c["a"],{staticClass:"mr-1",attrs:{small:""}},[e._v("mdi-tag")]),t("span",{staticClass:"font-weight-medium"},[e._v("Tags")])],1),t("assign-prospect-tags",{attrs:{hideLabel:"",hideHint:""},model:{value:e.prospectTags,callback:function(t){e.prospectTags=t},expression:"prospectTags"}}),t("div",{staticClass:"mt-1 mb-5 text-caption font-weight-medium pl-1"},[e._v(" If your file does not have a tags column or some row do not have tags. The tags selected above will be used. ")]),t(l["a"],{staticClass:"my-4"}),e.avoidDNCNumbersInImport?t(h["a"],{attrs:{dense:"","persistent-hint":"",label:"Avoid adding contacts with DNC registered numbers",hint:"Use Symbo's AI to identify potential numbers on the federal DNC list. Any numbers we can identify will be skipped. Symbo does not assume any liability for calls you make and only provides this service as a courtesy."},model:{value:e.avoidDNCNumberContacts,callback:function(t){e.avoidDNCNumberContacts=t},expression:"avoidDNCNumberContacts"}}):e._e(),e.hasPowerDialing||e.adminCanManagePowerDialing?t(o["a"],{staticClass:"w-100 pa-0 mt-3",class:{"mt-3":!e.shouldDisablePDCheckbox},attrs:{dense:"","persistent-hint":"",label:"Create a power dial session?",hint:e.shouldDisablePDCheckbox?"The user you're assigning these contacts to doesn't have access to power dialing.":"If selected, a power dial session for the selected user will be created for prospects in your import.",disabled:e.shouldDisablePDCheckbox},model:{value:e.autoCreatePDSession,callback:function(t){e.autoCreatePDSession=t},expression:"autoCreatePDSession"}}):e._e(),t(o["a"],{staticClass:"w-100 pa-0 mt-3",attrs:{dense:"","persistent-hint":"",label:"Engage in sequence?",hint:"If selected, a sequence will be started for the selected user for prospects in your import."},model:{value:e.autoEngageInSequence,callback:function(t){e.autoEngageInSequence=t},expression:"autoEngageInSequence"}}),e.autoEngageInSequence?t("api-auto-complete",{staticClass:"mt-3",attrs:{outlined:"",label:"Sequence",menuMaxWidth:"532px",multiple:!1,apiCb:e.searchDrives},model:{value:e.drive,callback:function(t){e.drive=t},expression:"drive"}}):e._e(),t(h["a"],{staticClass:"mt-2",attrs:{dense:"","persistent-hint":"",hint:"Leads don't have separate account records. Account information is stored on the lead record."},scopedSlots:e._u([{key:"label",fn:function(){return[t("div",{staticClass:"d-flex align-center"},[e._v(" Are you importing leads? "),t(p["a"],{attrs:{bottom:"","open-delay":"100","max-width":"200"},scopedSlots:e._u([{key:"activator",fn:function({on:s}){return[t(c["a"],e._g({staticClass:"ml-3",attrs:{small:""}},s),[e._v("mdi-help-circle-outline")])]}}])},[e._v(" This only matters if you're using a CRM which has a contact/lead distinction. ")])],1)]},proxy:!0}]),model:{value:e.isLead,callback:function(t){e.isLead=t},expression:"isLead"}})],1),t(n["a"],{staticClass:"d-flex align-center px-6"},[e.csvUploadUnderMaintenance?t("span",{staticClass:"font-weight-bold orange--text"},[e._v(" CSV Upload is under maintenance. ")]):e._e(),t(u["a"]),t(p["a"],{attrs:{bottom:"","open-delay":"100"},scopedSlots:e._u([{key:"activator",fn:function({on:s}){return[t("div",e._g({},s),[t(a["a"],{attrs:{color:"primary",disabled:e.csvDisabled},on:{click:e.initUseCsv}},[e._v(" Continue to upload ")])],1)]}}])},[e._v(" You will upload your CSV in the next step ")])],1)],1)],1)},g=[],v=(s("14d9"),s("5b81"),s("2f62")),f=function(){return f=Object.assign||function(e){for(var t,s=1,a=arguments.length;s<a;s++)for(var i in t=arguments[s],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},f.apply(this,arguments)},C=[],b=[],y="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function S(e,t){if(t=t||{},void 0===e)throw new Error(y);var s,a=!0===t.prepend?"prepend":"append",i=void 0!==t.container?t.container:document.querySelector("head"),n=C.indexOf(i);return-1===n&&(n=C.push(i)-1,b[n]={}),void 0!==b[n]&&void 0!==b[n][a]?s=b[n][a]:(s=b[n][a]=w(),"prepend"===a?i.insertBefore(s,i.childNodes[0]):i.appendChild(s)),65279===e.charCodeAt(0)&&(e=e.substr(1,e.length)),s.styleSheet?s.styleSheet.cssText+=e:s.textContent+=e,s}function w(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}var x,I,P,_,k,D=S,E=S;D.insertCss=E,function(e){e["Call"]="call",e["Reply"]="reply",e["Syn"]="syn",e["SynAck"]="synAck",e["Ack"]="ack"}(x||(x={})),function(e){e["Fulfilled"]="fulfilled",e["Rejected"]="rejected"}(I||(I={})),function(e){e["ConnectionDestroyed"]="ConnectionDestroyed",e["ConnectionTimeout"]="ConnectionTimeout",e["NoIframeSrc"]="NoIframeSrc"}(P||(P={})),function(e){e["DataCloneError"]="DataCloneError"}(_||(_={})),function(e){e["Message"]="message"}(k||(k={}));var O=(e,t)=>{const s=[];let a=!1;return{destroy(i){a||(a=!0,t(e+": Destroying connection"),s.forEach(e=>{e(i)}))},onDestroy(e){a?e():s.push(e)}}},T=e=>(...t)=>{e&&console.log("[Penpal]",...t)};const M={"http:":"80","https:":"443"},U=/^(https?:)?\/\/([^/:]+)?(:(\d+))?/,F=["file:","data:"];var N=e=>{if(e&&F.find(t=>e.startsWith(t)))return"null";const t=document.location,s=U.exec(e);let a,i,n;s?(a=s[1]?s[1]:t.protocol,i=s[2],n=s[4]):(a=t.protocol,i=t.hostname,n=t.port);const o=n&&n!==M[a]?":"+n:"";return`${a}//${i}${o}`};const L=({name:e,message:t,stack:s})=>({name:e,message:t,stack:s}),V=e=>{const t=new Error;return Object.keys(e).forEach(s=>t[s]=e[s]),t};var j=(e,t,s)=>{const{localName:a,local:i,remote:n,originForSending:o,originForReceiving:r}=e;let l=!1;const c=e=>{if(e.source!==n||e.data.penpal!==x.Call)return;if("*"!==r&&e.origin!==r)return void s(`${a} received message from origin ${e.origin} which did not match expected origin ${r}`);const i=e.data,{methodName:c,args:d,id:u}=i;s(`${a}: Received ${c}() call`);const h=e=>t=>{if(s(`${a}: Sending ${c}() reply`),l)return void s(`${a}: Unable to send ${c}() reply due to destroyed connection`);const i={penpal:x.Reply,id:u,resolution:e,returnValue:t};e===I.Rejected&&t instanceof Error&&(i.returnValue=L(t),i.returnValueIsError=!0);try{n.postMessage(i,o)}catch(r){if(r.name===_.DataCloneError){const e={penpal:x.Reply,id:u,resolution:I.Rejected,returnValue:L(r),returnValueIsError:!0};n.postMessage(e,o)}throw r}};new Promise(e=>e(t[c].apply(t,d))).then(h(I.Fulfilled),h(I.Rejected))};return i.addEventListener(k.Message,c),()=>{l=!0,i.removeEventListener(k.Message,c)}};let A=0;var R=()=>++A;const $=".",H=e=>e?e.split($):[],B=e=>e.join($),Y=(e,t)=>{const s=H(t||"");return s.push(e),B(s)},q=(e,t,s)=>{const a=H(t);return a.reduce((e,t,i)=>("undefined"===typeof e[t]&&(e[t]={}),i===a.length-1&&(e[t]=s),e[t]),e),e},z=(e,t)=>{const s={};return Object.keys(e).forEach(a=>{const i=e[a],n=Y(a,t);"object"===typeof i&&Object.assign(s,z(i,n)),"function"===typeof i&&(s[n]=i)}),s},K=e=>{const t={};for(const s in e)q(t,s,e[s]);return t};var W=(e,t,s,a,i)=>{const{localName:n,local:o,remote:r,originForSending:l,originForReceiving:c}=t;let d=!1;i(n+": Connecting call sender");const u=e=>(...t)=>{let s;i(`${n}: Sending ${e}() call`);try{r.closed&&(s=!0)}catch(u){s=!0}if(s&&a(),d){const t=new Error(`Unable to send ${e}() call due to destroyed connection`);throw t.code=P.ConnectionDestroyed,t}return new Promise((s,a)=>{const d=R(),u=t=>{if(t.source!==r||t.data.penpal!==x.Reply||t.data.id!==d)return;if("*"!==c&&t.origin!==c)return void i(`${n} received message from origin ${t.origin} which did not match expected origin ${c}`);const l=t.data;i(`${n}: Received ${e}() reply`),o.removeEventListener(k.Message,u);let h=l.returnValue;l.returnValueIsError&&(h=V(h)),(l.resolution===I.Fulfilled?s:a)(h)};o.addEventListener(k.Message,u);const h={penpal:x.Call,id:d,methodName:e,args:t};r.postMessage(h,l)})},h=s.reduce((e,t)=>(e[t]=u(t),e),{});return Object.assign(e,K(h)),()=>{d=!0}},G=(e,t,s,a,i)=>{const{destroy:n,onDestroy:o}=a;let r,l;const c={};return a=>{if("*"!==t&&a.origin!==t)return void i(`Parent: Handshake - Received ACK message from origin ${a.origin} which did not match expected origin ${t}`);i("Parent: Handshake - Received ACK");const d={localName:"Parent",local:window,remote:a.source,originForSending:s,originForReceiving:t};r&&r(),r=j(d,e,i),o(r),l&&l.forEach(e=>{delete c[e]}),l=a.data.methodNames;const u=W(c,d,l,n,i);return o(u),c}},J=(e,t,s,a)=>i=>{if(!i.source)return;if("*"!==s&&i.origin!==s)return void e(`Parent: Handshake - Received SYN message from origin ${i.origin} which did not match expected origin ${s}`);e("Parent: Handshake - Received SYN, responding with SYN-ACK");const n={penpal:x.SynAck,methodNames:Object.keys(t)};i.source.postMessage(n,a)};const Q=6e4;var X=(e,t)=>{const{destroy:s,onDestroy:a}=t,i=setInterval(()=>{e.isConnected||(clearInterval(i),s())},Q);a(()=>{clearInterval(i)})},Z=(e,t)=>{let s;return void 0!==e&&(s=window.setTimeout(()=>{const s=new Error(`Connection timed out after ${e}ms`);s.code=P.ConnectionTimeout,t(s)},e)),()=>{clearTimeout(s)}},ee=e=>{if(!e.src&&!e.srcdoc){const e=new Error("Iframe must have src or srcdoc property defined.");throw e.code=P.NoIframeSrc,e}},te=e=>{let{iframe:t,methods:s={},childOrigin:a,timeout:i,debug:n=!1}=e;const o=T(n),r=O("Parent",o),{onDestroy:l,destroy:c}=r;a||(ee(t),a=N(t.src));const d="null"===a?"*":a,u=z(s),h=J(o,u,a,d),p=G(u,a,d,r,o),m=new Promise((e,s)=>{const a=Z(i,c),n=s=>{if(s.source===t.contentWindow&&s.data)if(s.data.penpal!==x.Syn)if(s.data.penpal!==x.Ack);else{const t=p(s);t&&(a(),e(t))}else h(s)};window.addEventListener(k.Message,n),o("Parent: Awaiting handshake"),X(t,r),l(e=>{window.removeEventListener(k.Message,n),e&&s(e)})});return{promise:m,destroy(){c()}}},se=["interactive","complete"],ae=function(e,t){return new Promise((function(s){e&&"function"!==typeof e&&(t=e,e=null),t=t||window.document;var a=function(){return s(void(e&&setTimeout(e)))};-1!==se.indexOf(t.readyState)?a():t.addEventListener("DOMContentLoaded",a)}))};ae.resume=function(e){return function(t){return ae(e).then((function(){return t}))}};var ie={MOUNT_URL:"https://app.usecsv.com/importer"}["MOUNT_URL"],ne=function(e,t){var s=document.getElementById("usecsv-importer-inline-wrapper"),a="modal"!==t&&s?"":".usecsv_container { position: fixed; top: 0px; bottom: 0; right: 0; left: 0; z-index: 100000; }";E("\n  ".concat(a,"\n  .usecsv_container iframe {\n    width: 100%;\n    height: 100%;\n    position: absolute;\n    border-width: 0;\n    top: 0;\n    left: 0; \n  }\n  .usecsv_container {\n    overflow: hidden;\n    overscroll-behavior-x: none;\n  }\n")),document.body.insertAdjacentHTML("beforeend","<div id=".concat(e,' class="usecsv_container loading"></div>'));var i=document.createElement("iframe");i.setAttribute("src",ie);var n=document.getElementById(e);return null===n||void 0===n||n.appendChild(i),"inline"===t&&s&&(null===s||void 0===s||s.appendChild(n)),i},oe=function(e){var t=e.importerKey,s=e.user,a=e.metadata,i=e.onData,n=e.onRecordsInitial,o=e.onRecordEdit,r=e.importerDisplay,l=void 0===r?"modal":r,c=e.onClose,d=e.theme,u=e.batchSize,h=e.sampleFileURL,p=e.downloadExampleButton,m=e.dynamicColumns,g=e.defaultLanguage,v=e.onError,C=e.customText,b=e.acceptedFileFormats,y=e.onFileUpload,S=e.columnWidth,w=e.onMatchColumns,x="usecsv-".concat(Math.round(1e8*Math.random()));return ae().then((function(){var e=ne(x,l),r=function(){var e;null===(e=document.getElementById(x))||void 0===e||e.remove()},I=function(){return c&&c(),r()},P=te({iframe:e,methods:f(f(f(f(f(f(f({closeIframe:r},i?{onData:function(e){return i(e,I)}}:{}),n?{onRecordsInitial:n}:{}),o?{onRecordEdit:o}:{}),c?{onClose:c}:{}),v?{onError:v}:{}),y?{onFileUpload:y}:{}),w?{onMatchColumns:w}:{})});return P.promise.then((function(e){var i;null===(i=document.getElementById(x))||void 0===i||i.classList.remove("loading"),e["setParams"]&&e["setParams"]({importerKey:t,user:s,metadata:a,importerDisplay:l,theme:d,batchSize:u,sampleFileURL:h,downloadExampleButton:p,dynamicColumns:m,defaultLanguage:g,customText:C,acceptedFileFormats:b,columnWidth:S})})),P}))},re=s("4534"),le=s("240a"),ce=s("51757"),de=s("5bca"),ue=s("2c67");const he={headerMaps:"/headerMaps"};var pe={getHeaderMaps(){return ue["b"].get(he.headerMaps)}},me=s("c007"),ge=s("de9a"),ve=s("5a50"),fe=s("2fa3");const Ce=s("63ea"),be=s("eed6"),ye=s("0644");var Se={components:{AssignProspectTags:()=>s.e("chunk-2d0c0a07").then(s.bind(null,"431c")),ApiAutoComplete:le["a"],UserSelect:ce["a"]},props:{sheetLisence:{type:String,required:!0}},data:()=>({currentFinalisedMapping:null,allCSVCols:[],preventDuplicatePhoneNumbers:!1,phoneCheckAllOrg:!1,preventDuplicateEmails:!1,emailCheckAllOrg:!1,workPhoneColsCount:1,workEmailColsCount:1,avoidDNCNumberContacts:!1,importer:null,showPreUploadDialog:!1,selectedProspectStatus:null,assignToUser:null,previousProspectTags:[],prospectTags:[],autoCreatePDSession:!1,autoEngageInSequence:!1,drive:null,isLead:!1,savedHeaderMapping:null}),computed:{...ge["a"],...Object(v["c"])("user",["user","getSettingByKey","isLoggedIn","isOrgAdmin","hasPowerDialing","useCsvToken","adminCanManagePowerDialing"]),...Object(v["c"])("prospectFields",["prospectFields","defaultProspectFields","customProspectFields"]),...Object(v["c"])("orgUsers",["orgUsers"]),autoRemoveErroneousCSVCells:{get(){return this.getSettingByKey(ve["n"].AUTO_REMOVE_ERRONEOUS_CSV_CELLS)},set(e){this.updateSetting({userId:this.user.id,settings:{settings_key:ve["n"].AUTO_REMOVE_ERRONEOUS_CSV_CELLS,settings_value:e}})}},csvDisabled(){return this.csvUploadUnderMaintenance},shouldDisablePDCheckbox(){if(this.assignToUser){const e=this.orgUsers.find(e=>e.id===this.assignToUser);return null===e||void 0===e||!e.has_power_dialing}return!this.hasPowerDialing},avoidDNCNumbersInImport(){return ge["a"].avoidDNCNumbersInImport()},prospectStatuses(){return this.getSettingByKey("prospectStatuses")||[]},defaultProspectStatus(){var e;return null===(e=this.prospectStatuses)||void 0===e?void 0:e.find(e=>e.is_default)},accountIndustryCol(){return{column_name:"account_industry",display_label:"Account Industry",type:"string",required:!1,validators:{max_length:255}}},accountIndustryColUseCsv(){return{name:"account_industry",displayName:"Account Industry",validationFormat:{type:"string"}}},customFieldsDynamicColsUseCsv(){return this.customProspectFields.map(e=>{var t;let s={name:e.key,displayName:e.name,valueCannotBeBlank:!!e.is_required,validationHook:["string","text"].includes(e.type),maxLength:"string"===e.type?255:"text"===e.type?3e4:null,validationFormat:{type:Object(ve["L"])(e.type)}};return"boolean"===e.type&&(s.validationFormat.format="true,false",s.example="true or false"),e.type.includes("date")?s.validationFormat.format="DD/MM/YYYY":null!==(t=e.options)&&void 0!==t&&t.length&&(s.validationFormat.format=e.options.join(","),s.example=`[${e.options.join(", ")}]`),s})||[]},extendedPhoneCols(){if(this.workPhoneColsCount<2)return[];let e=[];for(let t=1;t<=this.workPhoneColsCount-1;t++)e.push({displayName:"Work Phone "+(1+t),name:"work_phone_"+(1+t),validationHook:!0,validationFormat:{type:"phone"},example:"+1-800-555-1234 (Auto formatting supported based on your country code)"});return e},extendedEmailCols(){if(this.workEmailColsCount<2)return[];let e=[];for(let t=1;t<=this.workEmailColsCount-1;t++)e.push({displayName:"Work Email "+(1+t),name:"work_email_"+(1+t),validationHook:!0,validationFormat:{type:"email"},example:"john.doe123@gmail.com"});return e},importColsUseCsv(){let e=ve["f"].map(e=>({name:e.key,displayName:e.name,validationFormat:{type:e.useCSVType,format:e.format},maxLength:e.maxLength,example:e.example,validationHook:!!e.validationHook}));const t=e.findIndex(e=>"work_phone"===e.name);-1!==t&&(e=[...e.slice(0,t+1),...this.extendedPhoneCols,...e.slice(t+1)]);const s=e.findIndex(e=>"work_email"===e.name);return-1!==s&&(e=[...e.slice(0,s+1),...this.extendedEmailCols,...e.slice(s+1)]),e},prospectStatusColUseCsv(){return{name:"prospect_status",displayName:"Status",validationFormat:{type:"select",format:[...this.prospectStatuses.map(e=>e.name),...this.prospectStatuses.map(e=>e.value)].join(",")},validationHook:!0,example:this.prospectStatuses.map(e=>e.name).join(", ")}},prospectTagsColUseCsv(){return{name:"tag",displayName:"Tag",validationFormat:{type:"string"},validationHook:!0,example:"Tag1,Tag2"}}},watch:{assignToUser(){this.autoCreatePDSession=!1},showPreUploadDialog(e){e&&(this.setDefaultStatus(),this.setDefaultUser())},defaultProspectStatus(e,t){Ce(e,t)||this.setDefaultStatus()},user(e,t){Ce(e,t)&&this.assignToUser||this.setDefaultUser()}},methods:{...Object(v["b"])("prospectFields",["fetchProspectFields"]),...Object(v["b"])("user",["updateSetting"]),searchDrives(e){return me["a"].getDrives(e)},triggerOpen(){this.showPreUploadDialog=!0},setDefaultStatus(){this.selectedProspectStatus||(this.selectedProspectStatus=this.defaultProspectStatus)},setDefaultUser(){var e;this.assignToUser||(this.assignToUser=null===(e=this.user)||void 0===e?void 0:e.id)},healProspectStatus(e){if(e){const t=e.toLowerCase(),s=this.prospectStatuses.find(e=>e.name.toLowerCase()===t||e.value.toLowerCase()===t);if(s&&e!==s.name&&e!==s.value)return[{level:"healing",message:"Prospect status format fixed",newValue:s.name}]}return!(!this.selectedProspectStatus||e)&&[{level:"healing",message:"Fallback prospect status added",newValue:this.selectedProspectStatus.name}]},parsePhoneNumberCol(e){if(!e)return null;const t=e.replace("ph:","").split(/[;,]/).map(e=>{let t=e.replaceAll(".","").replaceAll("x","");try{var s;return null===(s=Object(re["a"])(t,this.getSettingByKey("isoCountryCode")||"US"))||void 0===s?void 0:s.number}catch(a){return console.log("error parsing phone col",e),""}});return{value:t.length?t.filter(e=>e).join(","):"",hasInvalidNumbers:t.filter(e=>!e).length>0}},healPhoneNumbers(e){const{value:t,hasInvalidNumbers:s}=this.parsePhoneNumberCol(e)||{value:null,hasInvalidNumbers:!1};if(s){let e={level:this.autoRemoveErroneousCSVCells?"healing":"error",message:this.autoRemoveErroneousCSVCells?"Removed invalid phone number":"Invalid phone number"};return this.autoRemoveErroneousCSVCells&&(e.newValue=""),[e]}return!!t&&[{level:"healing",message:"Phone formatting updated",newValue:t}]},parseEmailCol(e){if(!e)return null;const t=e.split(/[;,]/).map(e=>Object(fe["Q"])(e)&&e);return{value:t.filter(e=>!!e).join(","),hasInvalidEmails:t.filter(e=>!e).length>0}},healEmailAddresses(e){const{value:t,hasInvalidEmails:s}=this.parseEmailCol(e)||{value:null,hasInvalidEmails:!1};if(s){let e={level:this.autoRemoveErroneousCSVCells?"healing":"error",message:this.autoRemoveErroneousCSVCells?"Removed invalid email address":"Invalid email address"};return this.autoRemoveErroneousCSVCells&&(e.newValue=""),[e]}return!!t&&[{level:"healing",message:"Email formatting updated",newValue:t}]},parseTagsCol(e){if(!e)return null;const t=e.split(/[;,]/);return{value:t.filter(e=>!!e),hasInvalidTags:t.filter(e=>!e).length>0}},healTags(e){var t;const{value:s,hasInvalidTags:a}=this.parseTagsCol(e)||{value:[],hasInvalidTags:!1};if(a)return[{level:"error",message:"Invalid tags format. See example."}];if(null===(t=this.prospectTags)||void 0===t||!t.length)return!(null===s||void 0===s||!s.length)&&[{level:"healing",message:"Tags formatted",newValue:s.join(",")}];const i=this.prospectTags.map(e=>e.name),n=be([...s,...i]);return[{level:"healing",message:"Merged tags with the ones you selected in pre-import step.",newValue:n.join(",")}]},getLength(e){return e?"string"===typeof e?e.length:"number"===typeof e?e.toString().length:0:0},checkMaxLength(e,t){const s=this.getLength(e);if(e&&s>t){let s={level:this.autoRemoveErroneousCSVCells?"healing":"error",message:this.autoRemoveErroneousCSVCells?`Truncated value to max ${t} characters.`:`Error! Max ${t} characters allowed.`};return this.autoRemoveErroneousCSVCells&&(s.newValue=e.slice(0,t-1)),[s]}},fetchSavedColMapping(){pe.getHeaderMaps().then(e=>this.savedHeaderMapping=e)},initUseCsv(){var e,t,s,a;this.fetchSavedColMapping(),this.allCSVCols=[...this.importColsUseCsv,...this.customFieldsDynamicColsUseCsv,this.prospectStatusColUseCsv,this.prospectTagsColUseCsv],console.log("this.allCSVCols",this.allCSVCols),oe({importerKey:this.sheetLisence,user:{userId:null===(e=this.user)||void 0===e?void 0:e.id,assignToUser:this.assignToUser,useCsvToken:this.useCsvToken},metadata:{upload_options:JSON.stringify({avoid_dnc_number_contacts:this.avoidDNCNumberContacts,create_pd_session:this.autoCreatePDSession,drive_id:null===(t=this.drive)||void 0===t?void 0:t.id,is_lead:this.isLead,global_tags:(null===(s=this.prospectTags)||void 0===s?void 0:s.map(e=>e.name))||[],prospect_status:null===(a=this.selectedProspectStatus)||void 0===a?void 0:a.value,prevent_duplicate_phone_numbers:this.preventDuplicatePhoneNumbers,phone_check_all_org:this.phoneCheckAllOrg,prevent_duplicate_emails:this.preventDuplicateEmails,email_check_all_org:this.emailCheckAllOrg})},batchSize:500,dynamicColumns:this.allCSVCols,onFileUpload:e=>{console.log("onFileUpload"),console.log(e)},onMatchColumns:async({configuredColumns:e,uploadedFileHeaders:t})=>{console.log("onMatchColumns",e,t);let s=e,a=[];if(t.forEach(e=>{const t=this.savedHeaderMapping[e];t?s=s.filter(e=>e!==t):a.push(e)}),!s.length||!a.length)return this.currentFinalisedMapping=ye(this.savedHeaderMapping),this.savedHeaderMapping;let i=await de["a"].getSuggestedCSVColMapping({available_fields:s,csv_headers:a}).catch(()=>(console.log("caught error returning config",this.savedHeaderMapping),this.currentFinalisedMapping=ye(this.savedHeaderMapping),this.savedHeaderMapping||{}));return this.currentFinalisedMapping={...this.savedHeaderMapping,...i||{}}||{},{...this.savedHeaderMapping,...i||{}}||{}},onClose:e=>console.log("onClose",e),onData:e=>{console.log("onData",e),this.showPreUploadDialog=!1},onRecordsInitial:({rows:e})=>{console.log("onRecordsInitial",e,this.currentFinalisedMapping);const t=e.map(e=>{let t={row:e.row,data:{}};return Object.keys(e.data).forEach(s=>{const a=this.allCSVCols.find(e=>e.name===s);if("prospect_status"===s){var i;const a=this.healProspectStatus(null===(i=e.data[s])||void 0===i?void 0:i.value);a&&(t.data[s]=a)}else if(s.includes("phone")){var n;const a=this.healPhoneNumbers(null===(n=e.data[s])||void 0===n?void 0:n.value);a&&(t.data[s]=a)}else if(s.includes("email")){var o;const a=this.healEmailAddresses(null===(o=e.data[s])||void 0===o?void 0:o.value);a&&(t.data[s]=a)}else if("tag"===s){var r;const a=this.healTags(null===(r=e.data[s])||void 0===r?void 0:r.value);a&&(t.data[s]=a)}else if(null!==a&&void 0!==a&&a.validationHook&&null!==a&&void 0!==a&&a.maxLength){var l;const i=this.checkMaxLength(null===(l=e.data[s])||void 0===l?void 0:l.value,a.maxLength);i&&(t.data[s]=i)}}),t});return t},onRecordEdit:({row:e})=>{let t={row:e.row,data:{}};return Object.keys(e.data).forEach(s=>{const a=this.allCSVCols.find(e=>e.name===s);if("prospect_status"===s){var i;const a=this.healProspectStatus(null===(i=e.data[s])||void 0===i?void 0:i.value);a&&(t.data[s]=a)}else if(s.includes("phone")){var n;const a=this.healPhoneNumbers(null===(n=e.data[s])||void 0===n?void 0:n.value);a&&(t.data[s]=a)}else if(s.includes("email")){var o;const a=this.healEmailAddresses(null===(o=e.data[s])||void 0===o?void 0:o.value);a&&(t.data[s]=a)}else if("tag"===s){var r;const a=this.healTags(null===(r=e.data[s])||void 0===r?void 0:r.value);a&&(t.data[s]=a)}else if(null!==a&&void 0!==a&&a.validationHook&&null!==a&&void 0!==a&&a.maxLength){var l;const i=this.checkMaxLength(null===(l=e.data[s])||void 0===l?void 0:l.value,a.maxLength);i&&(t.data[s]=i)}}),t}}),console.log("useCsvPlugin after")}},async created(){var e,t;null!==(e=this.prospectFields)&&void 0!==e&&e.length||null===(t=this.user)||void 0===t||!t.id||await this.fetchProspectFields(),this.fetchSavedColMapping(),this.assignToUser=this.user.id}},we=Se,xe=(s("ef60"),s("2877")),Ie=Object(xe["a"])(we,m,g,!1,null,"877ad8c4",null);t["default"]=Ie.exports},c6a6:function(e,t,s){"use strict";s("2bfd");var a=s("b974"),i=s("8654"),n=s("d9f7"),o=s("80d2");const r={...a["b"],offsetY:!0,offsetOverflow:!0,transition:!1};t["a"]=a["a"].extend({name:"v-autocomplete",props:{autoSelectFirst:{type:Boolean,default:!1},filter:{type:Function,default:(e,t,s)=>s.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())>-1},hideNoData:Boolean,menuProps:{type:a["a"].options.props.menuProps.type,default:()=>r},noFilter:Boolean,searchInput:{type:String}},data(){return{lazySearch:this.searchInput}},computed:{classes(){return{...a["a"].options.computed.classes.call(this),"v-autocomplete":!0,"v-autocomplete--is-selecting-index":this.selectedIndex>-1}},computedItems(){return this.filteredItems},selectedValues(){return this.selectedItems.map(e=>this.getValue(e))},hasDisplayedItems(){return this.hideSelected?this.filteredItems.some(e=>!this.hasItem(e)):this.filteredItems.length>0},currentRange(){return null==this.selectedItem?0:String(this.getText(this.selectedItem)).length},filteredItems(){return!this.isSearching||this.noFilter||null==this.internalSearch?this.allItems:this.allItems.filter(e=>{const t=Object(o["r"])(e,this.itemText),s=null!=t?String(t):"";return this.filter(e,String(this.internalSearch),s)})},internalSearch:{get(){return this.lazySearch},set(e){this.lazySearch!==e&&(this.lazySearch=e,this.$emit("update:search-input",e))}},isAnyValueAllowed(){return!1},isDirty(){return this.searchIsDirty||this.selectedItems.length>0},isSearching(){return this.multiple&&this.searchIsDirty||this.searchIsDirty&&this.internalSearch!==this.getText(this.selectedItem)},menuCanShow(){return!!this.isFocused&&(this.hasDisplayedItems||!this.hideNoData)},$_menuProps(){const e=a["a"].options.computed.$_menuProps.call(this);return e.contentClass=("v-autocomplete__content "+(e.contentClass||"")).trim(),{...r,...e}},searchIsDirty(){return null!=this.internalSearch&&""!==this.internalSearch},selectedItem(){return this.multiple?null:this.selectedItems.find(e=>this.valueComparator(this.getValue(e),this.getValue(this.internalValue)))},listData(){const e=a["a"].options.computed.listData.call(this);return e.props={...e.props,items:this.virtualizedItems,noFilter:this.noFilter||!this.isSearching||!this.filteredItems.length,searchInput:this.internalSearch},e}},watch:{filteredItems:"onFilteredItemsChanged",internalValue:"setSearch",isFocused(e){e?(document.addEventListener("copy",this.onCopy),this.$refs.input&&this.$refs.input.select()):(document.removeEventListener("copy",this.onCopy),this.blur(),this.updateSelf())},isMenuActive(e){!e&&this.hasSlot&&(this.lazySearch=null)},items(e,t){t&&t.length||!this.hideNoData||!this.isFocused||this.isMenuActive||!e.length||this.activateMenu()},searchInput(e){this.lazySearch=e},internalSearch:"onInternalSearchChanged",itemText:"updateSelf"},created(){this.setSearch()},destroyed(){document.removeEventListener("copy",this.onCopy)},methods:{onFilteredItemsChanged(e,t){if(e!==t){if(!this.autoSelectFirst){const s=t[this.$refs.menu.listIndex];s?this.setMenuIndex(e.findIndex(e=>e===s)):this.setMenuIndex(-1),this.$emit("update:list-index",this.$refs.menu.listIndex)}this.$nextTick(()=>{this.internalSearch&&(1===e.length||this.autoSelectFirst)&&(this.$refs.menu.getTiles(),this.autoSelectFirst&&e.length&&(this.setMenuIndex(0),this.$emit("update:list-index",this.$refs.menu.listIndex)))})}},onInternalSearchChanged(){this.updateMenuDimensions()},updateMenuDimensions(){this.isMenuActive&&this.$refs.menu&&this.$refs.menu.updateDimensions()},changeSelectedIndex(e){this.searchIsDirty||(this.multiple&&e===o["x"].left?-1===this.selectedIndex?this.selectedIndex=this.selectedItems.length-1:this.selectedIndex--:this.multiple&&e===o["x"].right?this.selectedIndex>=this.selectedItems.length-1?this.selectedIndex=-1:this.selectedIndex++:e!==o["x"].backspace&&e!==o["x"].delete||this.deleteCurrentItem())},deleteCurrentItem(){const e=this.selectedIndex,t=this.selectedItems[e];if(!this.isInteractive||this.getDisabled(t))return;const s=this.selectedItems.length-1;if(-1===this.selectedIndex&&0!==s)return void(this.selectedIndex=s);const a=this.selectedItems.length,i=e!==a-1?e:e-1,n=this.selectedItems[i];n?this.selectItem(t):this.setValue(this.multiple?[]:null),this.selectedIndex=i},clearableCallback(){this.internalSearch=null,a["a"].options.methods.clearableCallback.call(this)},genInput(){const e=i["a"].options.methods.genInput.call(this);return e.data=Object(n["a"])(e.data,{attrs:{"aria-activedescendant":Object(o["p"])(this.$refs.menu,"activeTile.id"),autocomplete:Object(o["p"])(e.data,"attrs.autocomplete","off")},domProps:{value:this.internalSearch}}),e},genInputSlot(){const e=a["a"].options.methods.genInputSlot.call(this);return e.data.attrs.role="combobox",e},genSelections(){return this.hasSlot||this.multiple?a["a"].options.methods.genSelections.call(this):[]},onClick(e){this.isInteractive&&(this.selectedIndex>-1?this.selectedIndex=-1:this.onFocus(),this.isAppendInner(e.target)||this.activateMenu())},onInput(e){if(this.selectedIndex>-1||!e.target)return;const t=e.target,s=t.value;t.value&&this.activateMenu(),this.multiple||""!==s||this.deleteCurrentItem(),this.internalSearch=s,this.badInput=t.validity&&t.validity.badInput},onKeyDown(e){const t=e.keyCode;!e.ctrlKey&&[o["x"].home,o["x"].end].includes(t)||a["a"].options.methods.onKeyDown.call(this,e),this.changeSelectedIndex(t)},onSpaceDown(e){},onTabDown(e){a["a"].options.methods.onTabDown.call(this,e),this.updateSelf()},onUpDown(e){e.preventDefault(),this.activateMenu()},selectItem(e){a["a"].options.methods.selectItem.call(this,e),this.setSearch()},setSelectedItems(){a["a"].options.methods.setSelectedItems.call(this),this.isFocused||this.setSearch()},setSearch(){this.$nextTick(()=>{this.multiple&&this.internalSearch&&this.isMenuActive||(this.internalSearch=!this.selectedItems.length||this.multiple||this.hasSlot?null:this.getText(this.selectedItem))})},updateSelf(){(this.searchIsDirty||this.internalValue)&&(this.multiple||this.valueComparator(this.internalSearch,this.getValue(this.internalValue))||this.setSearch())},hasItem(e){return this.selectedValues.indexOf(this.getValue(e))>-1},onCopy(e){var t,s;if(-1===this.selectedIndex)return;const a=this.selectedItems[this.selectedIndex],i=this.getText(a);null===(t=e.clipboardData)||void 0===t||t.setData("text/plain",i),null===(s=e.clipboardData)||void 0===s||s.setData("text/vnd.vuetify.autocomplete.item+plain",i),e.preventDefault()}}})},eed6:function(e,t,s){var a=s("2c66");function i(e){return e&&e.length?a(e):[]}e.exports=i},ef60:function(e,t,s){"use strict";s("3278c")}}]);
//# sourceMappingURL=chunk-0c002e0a.8f298f50.js.map