-
Notifications
You must be signed in to change notification settings - Fork 40
/
matrix-element.20.min.js
2 lines (2 loc) · 11.2 KB
/
matrix-element.20.min.js
1
2
(window["matrixElement_jsonp"]=window["matrixElement_jsonp"]||[]).push([[20],{"14da":function(t,e,a){var n=a("820c");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("35d6").default;t.exports.__inject__=function(t){i("5a6c19c6",n,t)}},"32d4":function(t,e,a){"use strict";a.r(e);var n=a("47f3");for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i)},"360a":function(t,e,a){"use strict";a.r(e);var n=a("14da");for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i)},"47f3":function(t,e,a){var n=a("f963");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("35d6").default;t.exports.__inject__=function(t){i("45a68183",n,t)}},"820c":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".phoneContact[data-v-a4230a64]{height:44px;display:flex;align-items:center;margin-top:.5em;margin-bottom:1em}.phoneContact .contactProfilePicture[data-v-a4230a64]{border-radius:50px}.phoneContact .phoneContactInfo[data-v-a4230a64]{display:flex;flex-direction:column}.phoneContact i[data-v-a4230a64]{color:rgb(var(--neutral-grad-3));font-size:44px}.phoneContact div[data-v-a4230a64]{margin:0 .5em;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.phoneContact button[data-v-a4230a64]{min-width:80px!important}.phoneContact .subLabel[data-v-a4230a64]{color:rgb(var(--neutral-grad-3));font-size:14px}",""]),t.exports=e},9885:function(t,e,a){var n=a("bc79");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("35d6").default;t.exports.__inject__=function(t){i("59f32898",n,t)}},bc79:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".topheader[data-v-c4dd3cf2]{top:0;z-index:999}",""]),t.exports=e},bd26:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"page contacts"},[e("topheader",{scopedSlots:t._u([{key:"left",fn:function(){return[e("div",{staticClass:"back",on:{click:t.back}},[e("div",{staticClass:"iconbutton"},[e("i",{staticClass:"fas fa-angle-left"})])])]},proxy:!0},{key:"info",fn:function(){return[e("span",[t._v(t._s(t.title))])]},proxy:!0},{key:"right",fn:function(){return[t.navigator.share?e("div",{staticClass:"iconbutton",on:{click:t.openMore}},[e("i",{staticClass:"fas fa-share-alt"})]):t._e()]},proxy:!0}])}),e("maincontent",{scopedSlots:t._u([{key:"content",fn:function(){return[e("inviteChoice",{ref:"inviteChoice"})]},proxy:!0}])})],1)},i=[],o=function(){var t=this,e=t._self._c;t._self._setupProxy;return t.unauthorized?e("div",{staticClass:"unauthorized"},[e("div",{staticClass:"captionWrapper"},[e("span",[t._v(t._s(t.$i18n.t("caption.accNotFound")))])])]):e("div",{class:{bin:t.pocketnet,bout:!t.pocketnet,minimized:t.minimized,fix:t.pocketnet,active:t.active},attrs:{id:"invite"}},[e("div",{staticClass:"work"},[e("div",{directives:[{name:"id",rawName:"v-id",value:"sms"==t.currentType||"email"==t.currentType,expression:"currentType == 'sms' || currentType == 'email'"}]},[e("search",{attrs:{minimize:t.minimized},on:{search:t.search}}),e("listPhoneContacts",{attrs:{phoneContacts:t.displayedPhoneContacts,type:t.currentType},on:{invitePhoneContact:t.invitePhoneContact}})],1),t.currentType&&t.loading?e("div",{staticClass:"searching"},[e("div",{staticClass:"linepreloaderWrapper"},[e("linepreloader")],1)]):t._e(),t.inputText.length>=3&&!t.displayedPhoneContacts.length&&!t.loading?e("div",{staticClass:"noSearchResult"},[e("span",[t._v(t._s(t.$i18n.t("caption.queryNoResults")))]),e("i",{staticClass:"fas fa-search"})]):t._e(),t.inputText.length>=1&&t.inputText.length<=2&&!t.loading?e("div",{staticClass:"noSearchResult"},[e("span",[t._v(t._s(t.$i18n.t("caption.needMoreCharacters")))]),e("i",{staticClass:"fas fa-search"})]):t._e(),t.displayedPhoneContacts.length||t.loading?t._e():e("div",{staticClass:"noSearchResult"},[e("span",[t._v(t._s(t.$i18n.t("caption.emptyContactList")))])])])])},s=[],r=a("2f62"),c=function(){var t=this,e=t._self._c;t._self._setupProxy;return 0!==t.contacts.length?e("div",[t.showTitle?e("div",{staticClass:"titleContacts"},[e("span",[t._v(t._s(t.$i18n.t("caption.phoneContacts")))])]):t._e(),t._l(t.contacts,(function(a){return e("div",{key:a.id,staticClass:"phoneContact"},[a.photo?e("img",{staticClass:"contactProfilePicture",attrs:{src:"data:image/jpeg;base64,"+a.photo,width:"42",height:"44"}}):e("i",{staticClass:"fas fa-user-circle"}),e("div",{staticClass:"phoneContactInfo"},[a.displayName&&a.displayName.length>0?e("span",[t._v(t._s(a.displayName))]):a.firstName||a.familyName?e("span",[t._v(t._s(a.firstName)+" "+t._s(a.familyName))]):t._e(),"email"==t.type?e("span",{staticClass:"subLabel"},[t._v(t._s(a.emails[0].value))]):t._e(),"sms"==t.type?e("span",{staticClass:"subLabel"},[t._v(t._s(a.phoneNumbers[0].value))]):t._e()]),e("button",{staticClass:"button small rounded",on:{click:function(e){return t.invitePhoneContact(a)}}},[t._v(" "+t._s(t.$i18n.t("caption.invite"))+" ")])])}))],2):t._e()},p=[],l={name:"listPhoneContacts",props:{phoneContacts:Array,showTitle:Boolean,type:String},methods:{invitePhoneContact:function(t){this.$emit("invitePhoneContact",t)}},computed:{contacts:function(){switch(this.type){case"email":return _.filter(this.phoneContacts,t=>{if(t.emails&&t.emails.length>=1)return!0});case"sms":return _.filter(this.phoneContacts,t=>{if(t.phoneNumbers&&t.phoneNumbers.length>=1)return!0});default:return this.phoneContacts}}}},d=l,u=a("2877");function h(t){var e=a("360a");e.__inject__&&e.__inject__(t)}var f=Object(u["a"])(d,c,p,!1,h,"a4230a64",null,!0),v=f.exports,m=a("3139"),b=a("ebaa"),g={name:"inviteChoice",props:{},components:{listPhoneContacts:v},data:function(){var t="pocketnet.app",e="";m["a"].deep(this,"core.user.userinfo.source.address")&&(e="?connect="+m["a"].deep(this,"core.user.userinfo.source.address")),window.testpocketnet&&(t="test.pocketnet.app"),window.pocketnetdomain&&(t=window.pocketnetdomain);var a="https://"+t+"/welcome"+e,n=this.$i18n.t("caption.hasInvitedToJoin")+": "+a;return{messageSubject:this.$i18n.t("caption.joinApp"),messageBody:n,socials:[{n:"SMS",i:"far fa-comment",t:"sms",c:"#143e50"},{n:"Email",i:"far fa-envelope",t:"email",c:"#f82a53"},{n:"Facebook",i:"fab fa-facebook-f",t:"facebook",c:"#3b5999",hideOnIos:!0},{n:"Whatsapp",i:"fab fa-whatsapp",t:"whatsapp",c:"#075e54"},{n:"Telegram",i:"fab fa-telegram-plane",t:"telegram",c:"#0088cc",hideOnIos:!0},{n:this.$i18n.t("caption.more"),i:"fas fa-ellipsis-h",t:"more",c:"rgb(112, 112, 112)"}],currentType:"sms",inputText:"",phoneContacts:[],displayedPhoneContacts:[],loading:!1,focusListener:new b["a"].focus(this.core),canGetContacts:!1}},mounted:function(){},created:function(){var t=this;this.focusListener.init(),this.focusListener.clbks.resume.core=()=>{setTimeout((function(){t.loadContacts()}),0)},window.ContactsX&&(t.loading=!0,window.ContactsX.requestPermission((function(e){t.canGetContacts=e&&e.read,t.loadContacts()}),(function(e){console.error(e),t.loading=!1})))},destroyed:function(){delete this.focusListener.clbks.resume.core},watch:{},computed:Object(r["d"])({auth:t=>t.auth,...Object(r["d"])(["contactsMap","pocketnet","minimized","active","unauthorized"])}),methods:{back:function(){this.$router.go(-1)},openMore:function(){if(window.plugins&&window.plugins.socialsharing){var t=window.plugins.socialsharing;t.share(this.messageBody,this.messageSubject)}},loadContacts:function(){var t=this;t.canGetContacts?window.ContactsX.find((function(e){t.phoneContacts=e,t.search(t.inputText),t.loading=!1}),(function(e){console.error(e),t.loading=!1}),{fields:{phoneNumbers:!0,emails:!0,photo:!0}}):t.loading=!1},invitePhoneContact:function(t){if(window.plugins&&window.plugins.socialsharing){var e=window.plugins.socialsharing,a=this;switch(this.currentType){case"email":e.canShareViaEmail((function(){e.shareViaEmail(a.messageBody,a.messageSubject,[t.emails[0].value])}));break;case"sms":e.shareViaSMS({message:a.messageSubject+" "+a.messageBody,url:this.link},t.phoneNumbers[0].value);break;default:break}}},search(t){this.inputText=t,t.length>=1&&t.length<=2?this.displayedPhoneContacts=[]:t.length>2?this.displayedPhoneContacts=_.filter(this.phoneContacts,e=>{var a=e.displayName+" "+e.firstName+" "+e.familyName;if(a.toLowerCase().match(t.toLowerCase()))return!0}):this.displayedPhoneContacts=this.phoneContacts},isios(){return"undefined"!=typeof window&&window.cordova&&window.device&&"iOS"==deep(window,"device.platform")}}},C=g;function w(t){var e=a("32d4");e.__inject__&&e.__inject__(t)}var x=Object(u["a"])(C,o,s,!1,w,"32be31ab",null,!0),y=x.exports,k={name:"pageinvite",data:function(){return{}},components:{inviteChoice:y},computed:Object(r["d"])({pocketnet:t=>t.pocketnet,minimized:t=>t.minimized,title:function(){return this.$i18n.t("caption.inviteFriend")},navigator:function(){return navigator||{}}}),methods:{back:function(){this.$refs.inviteChoice.back()},openMore:function(){this.$refs.inviteChoice.openMore()}},mounted(){}},j=k;function S(t){var e=a("fbc4");e.__inject__&&e.__inject__(t)}var P=Object(u["a"])(j,n,i,!1,S,"c4dd3cf2",null,!0);e["default"]=P.exports},f963:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".searching[data-v-32be31ab]{position:relative}.linepreloaderWrapper[data-v-32be31ab]{padding:.5em;text-align:center}.noSearchResult[data-v-32be31ab]{left:0;right:0;top:50%;padding:3em;text-align:center}.noSearchResult i[data-v-32be31ab]{font-size:1.5em}.noSearchResult i[data-v-32be31ab],.noSearchResult span[data-v-32be31ab]{display:block;color:rgb(var(--neutral-grad-3))}.noSearchResult span[data-v-32be31ab]{margin:1em 0;font-size:2em;font-weight:100}.noSearchResult .chatBtnWrapper[data-v-32be31ab],.noSearchResult .GroupBtnWrapper[data-v-32be31ab],.noSearchResult .inviteBtnWrapper[data-v-32be31ab]{position:sticky}.unauthorized[data-v-32be31ab]{padding:3em 0;text-align:center}.unauthorized .buttonWrapper[data-v-32be31ab]{padding:1em}.unauthorized .captionWrapper[data-v-32be31ab]{padding:1em;text-align:center}.unauthorized .captionWrapper span[data-v-32be31ab]{font-size:1.5em;font-weight:100}.groupNameInput[data-v-32be31ab]{padding:.5em}.groupNameInput label[data-v-32be31ab]{display:block}.groupNameInput input[data-v-32be31ab]{height:35px;width:100%;text-align:center;border-bottom:1px solid rgb(var(--neutral-grad-0))}#invite[data-v-32be31ab]{padding-top:.5em}#invite .shareButtonsWrapper[data-v-32be31ab]{display:flex;justify-content:space-evenly;margin-top:2.5em;text-align:center;flex-wrap:wrap}#invite .shareButtonsWrapper .shareButton[data-v-32be31ab]{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:.8em}#invite .shareButtonsWrapper .socialsharebtn[data-v-32be31ab]{width:50px;height:50px;background:transparent;line-height:50px;text-align:center;border-radius:50%;color:rgb(var(--text-on-bg-shadow-color));padding:0;border:0;font-size:.8em;cursor:pointer;background:rgb(var(--color-shadow-base));display:flex;justify-content:center;align-items:center;margin-bottom:.5em}#invite .shareButtonsWrapper .socialsharebtn i[data-v-32be31ab]{font-size:20px}#invite .shareButtonsWrapper .socialsharebtn[data-v-32be31ab]:hover{opacity:.8}#invite .topText[data-v-32be31ab]{text-align:center;margin-top:1em}",""]),t.exports=e},fbc4:function(t,e,a){"use strict";a.r(e);var n=a("9885");for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i)}}]);
//# sourceMappingURL=matrix-element.20.min.js.map