{"version":3,"sources":["webpack:///./src/components/CallOptions.vue?6b05","webpack:///src/components/CallOptions.vue","webpack:///./src/components/CallOptions.vue?ecf1","webpack:///./src/components/CallOptions.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","callAccepted","callEnded","on","leaveCall","_v","_e","isHost","isCalling","callToUser","_s","callingState","ref","comp","rules","required","model","value","callback","$$v","customerName","expression","caller","me","linkSent","$event","sendInvite","email","customerEmail","customerPhone","isLocalhost","key","linkKey","appHost","staticRenderFns","name","components","props","String","Boolean","Function","callUser","companyId","company_id","sendMail","sendSMS","client_id","Number","data","emailLink","link","prodHost","emailSubject","idToCall","emailBody","window","location","hostname","controlWidth","counter","pattern","test","mounted","onresize","setWidth","createEmailLink","beforeDestroy","methods","$vuetify","breakpoint","lgAndUp","screen","width","encodeURIComponent","console","log","mailData","message","subject","email_to","comp_id","isText","description","phone_number","$refs","form","validate","a","document","createElement","innerText","body","appendChild","style","target","href","click","component","VBtn","VCard","VCardTitle","VForm","VIcon","VTextField"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,SAAS,CAACE,YAAY,yBAAyBC,MAAM,CAAC,MAAQ,cAAc,KAAO,KAAK,CAACH,EAAG,SAAS,CAACE,YAAY,OAAOC,MAAM,CAAC,MAAQ,cAAc,KAAO,GAAG,KAAO,KAAK,CAAEP,EAAIQ,eAAiBR,EAAIS,UAAWL,EAAG,QAAQ,CAACG,MAAM,CAAC,KAAO,GAAG,MAAQ,WAAWG,GAAG,CAAC,MAAQV,EAAIW,YAAY,CAACP,EAAG,SAAS,CAACE,YAAY,QAAQ,CAACN,EAAIY,GAAG,sBAAsBZ,EAAIY,GAAG,cAAc,GAAGZ,EAAIa,KAAOb,EAAIc,QAAWd,EAAIQ,aAAkOR,EAAIa,KAAxNT,EAAG,QAAQ,C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MC,aAAA","file":"js/chunk-2d0e19d3.6b3bdc66.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-card',{staticClass:\"d-flex justify-center \",attrs:{\"color\":\"transparent\",\"flat\":\"\"}},[_c('v-card',{staticClass:\"pa-2\",attrs:{\"color\":\"transparent\",\"flat\":\"\",\"tile\":\"\"}},[(_vm.callAccepted && !_vm.callEnded)?_c('v-btn',{attrs:{\"text\":\"\",\"color\":\"warning\"},on:{\"click\":_vm.leaveCall}},[_c('v-icon',{staticClass:\"ma-2\"},[_vm._v(\"mdi-phone-hangup\")]),_vm._v(\" Hang Up \")],1):_vm._e(),(!_vm.isHost && !_vm.callAccepted)?_c('v-btn',{attrs:{\"text\":\"\",\"color\":\"primary\",\"loading\":_vm.isCalling},on:{\"click\":_vm.callToUser}},[_c('v-icon',{staticClass:\"ma-2\"},[_vm._v(\"mdi-phone-outgoing\")]),_vm._v(\" \"+_vm._s(_vm.callingState)+\" \")],1):_vm._e(),(_vm.isCalling && !_vm.callAccepted)?_c('div',[_vm._v(_vm._s(_vm.callingState))]):_vm._e(),(_vm.isHost && !_vm.callAccepted)?_c('v-card',{attrs:{\"color\":\"transparent\",\"flat\":\"\"}},[_c('v-form',{ref:\"form\"},[_c('v-card',{attrs:{\"color\":\"transparent\",\"flat\":\"\"}},[(!_vm.comp)?_c('v-text-field',{attrs:{\"label\":\"Customer Name\",\"full-width\":\"\",\"rules\":[_vm.rules.required],\"dense\":\"\"},model:{value:(_vm.customerName),callback:function ($$v) {_vm.customerName=$$v},expression:\"customerName\"}}):_vm._e(),(!_vm.comp)?_c('v-text-field',{attrs:{\"label\":\"Company Name\",\"full-width\":\"\",\"rules\":[_vm.rules.required],\"dense\":\"\"},model:{value:(_vm.caller),callback:function ($$v) {_vm.caller=$$v},expression:\"caller\"}}):_vm._e()],1)],1)],1):_vm._e(),(_vm.isHost && !_vm.callAccepted && _vm.me && !_vm.linkSent)?_c('v-btn',{attrs:{\"text\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.sendInvite()}}},[_c('v-icon',{staticClass:\"ma-2\"},[_vm._v(\"mdi-email\")]),_vm._v(\" Email Invite to \"+_vm._s(_vm.customerName)+\" \")],1):_vm._e(),(_vm.isHost && !_vm.callAccepted && _vm.me && !_vm.linkSent)?_c('v-text-field',{attrs:{\"label\":\"Customer Email\",\"full-width\":\"\",\"rules\":[_vm.rules.required, _vm.rules.email],\"dense\":\"\"},model:{value:(_vm.customerEmail),callback:function ($$v) {_vm.customerEmail=$$v},expression:\"customerEmail\"}}):_vm._e(),_c('br'),(_vm.isHost && !_vm.callAccepted && _vm.me && !_vm.linkSent)?_c('v-btn',{attrs:{\"text\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.sendInvite(true)}}},[_c('v-icon',{staticClass:\"ma-2\"},[_vm._v(\"mdi-message-text\")]),_vm._v(\" SMS Invite to \"+_vm._s(_vm.customerName)+\" \")],1):_vm._e(),(_vm.isHost && !_vm.callAccepted && _vm.me && !_vm.linkSent)?_c('v-text-field',{attrs:{\"label\":\"Customer Phone\",\"full-width\":\"\",\"dense\":\"\"},model:{value:(_vm.customerPhone),callback:function ($$v) {_vm.customerPhone=$$v},expression:\"customerPhone\"}}):_vm._e(),_c('br'),(_vm.linkSent && !_vm.callAccepted)?_c('h3',[_vm._v(\" Waiting for \"+_vm._s(_vm.customerName)+\" to connect \")]):_vm._e(),(_vm.isHost && !_vm.callAccepted && _vm.me && _vm.isLocalhost)?_c('a',{key:_vm.linkKey,attrs:{\"target\":\"_new\",\"href\":_vm.appHost + ':8080?callerId=' + _vm.me + '&caller=' + _vm.caller}},[_vm._v(\" Start Partner Session \")]):_vm._e()],1)],1),(!_vm.callAccepted && _vm.linkSent)?_c('v-card-title',{staticClass:\"d-flex justify-center mt-4 \"},[_vm._v(\"Inventory Video Will Appear Here\")]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","