1/*! For license information please see 904.27c6e794d7141d5c.js.LICENSE.txt */ 2"use strict";(self.webpackChunktinyurl=self.webpackChunktinyurl||[]).push([[904,9391,9765],{79765(t,e,r){r.r(e),r.d(e,{default:()=>u});var n=r(95353),i=r(87497);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach(function(e){l(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function l(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const c={name:"RolePicker",components:{Popper:r.n(i)()},props:{description:{type:Boolean,required:!1,default:!1},level:{type:String,required:!1,default:"team"},role:{type:[String,Number],required:!0}},data:function(){return{open:!1}},computed:o(o({},(0,n.L8)(["organizationRoles"])),{},{roles:function(){var t=[];return"team"==this.level&&(t=[{name:"Admin",value:"admin",description:"Add members, connect domains, manage team settings & permissions."},{name:"Member",value:"member",description:"Create and edit TinyURL links."},{name:"Viewer",value:"viewer",description:"View team TinyURL links and view analytics."}]),"organization"==this.level&&(t=this.organizationRoles.map(function(t){return o(o({},t),{},{value:t.id})})),t},selected:function(){var t=this;return this.roles.find(function(e){return e.value==t.role})}}),methods:{select:function(t){this.$refs.rolePopper.showPopper=!1,this.$emit("select",t.value)}}};const u=(0,r(14486).A)(c,function(){var t=this,e=t._self._c;return e("popper",{ref:"rolePopper",attrs:{"append-to-body":!0,trigger:"clickToToggle",options:{placement:"left",modifiers:{offset:{offset:"0,10px"}}}},on:{show:function(e){t.open=!0},hide:function(e){t.open=!1}}},[e("div",{staticClass:"popper border rounded-xl shadow bg-white"},[e("ul",{staticClass:"role-and-team-picker"},t._l(t.roles,function(r){return e("li",{key:r.value,staticClass:"font-weight-bold",on:{click:function(e){return t.select(r)}}},[e("p",{staticClass:"font-weight-semibold mb-0"},[t._v("\n "+t._s(r.name)+"\n ")]),t._v(" "),t.description?e("p",{staticClass:"font-weight-seminormal mb-0"},[t._v("\n "+t._s(r.description)+"\n ")]):t._e()])}),0)]),t._v(" "),e("span",{staticClass:"flex-center cursor-pointer",attrs:{slot:"reference"},slot:"reference"},[e("span",{staticClass:"mr-2"},[t._v(t._s(t.selected.name))]),t._v(" "),e("i",{staticClass:"fa text-blue",class:{"fa-chevron-up":t.open,"fa-chevron-down":!t.open}})])])},[],!1,null,null,null).exports},904(t,e,r){r.r(e),r.d(e,{default:()=>w});var n=r(95353),i=r(99499),a=r(87497),s=r.n(a),o=r(69502),l=r(79765),c=r(69391),u=r(39966),m=r(77063),d=r(2543);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function v(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function a(r,n,i,a){var l=n&&n.prototype instanceof o?n:o,c=Object.create(l.prototype);return p(c,"_invoke",function(r,n,i){var a,o,l,c=0,u=i||[],m=!1,d={p:0,n:0,v:t,a:f,f
2:f.bind(t,4),d:function(e,r){return a=e,o=0,l=t,d.n=r,s}};function f(r,n){for(o=r,l=n,e=0;!m&&c&&!i&&e<u.length;e++){var i,a=u[e],f=d.p,v=a[2];r>3?(i=v===n)&&(l=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=t):a[0]<=f&&((i=r<2&&f<a[1])?(o=0,d.v=n,d.n=a[1]):f<v&&(i=r<3||a[0]>n||n>v)&&(a[4]=r,a[5]=n,d.n=v,o=0))}if(i||r>1)return s;throw m=!0,n}return function(i,u,v){if(c>1)throw TypeError("Generator is already running");for(m&&1===u&&f(u,v),o=u,l=v;(e=o<2?t:l)||!m;){a||(o?o<3?(o>1&&(d.n=-1),f(o,l)):d.n=l:d.v=l);try{if(c=2,a){if(o||(i="next"),e=a[i]){if(!(e=e.call(a,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,o<2&&(o=0)}else 1===o&&(e=a.return)&&e.call(a),o<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),o=1);a=t}else if((e=(m=d.n<0)?l:r.call(n,d))!==s)break}catch(e){a=t,o=1,l=e}finally{c=1}}return{value:e,done:m}}}(r,i,a),!0),c}var s={};function o(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][n]?e(e([][n]())):(p(e={},n,function(){return this}),e),m=c.prototype=o.prototype=Object.create(u);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,p(t,i,"GeneratorFunction")),t.prototype=Object.create(m),t}return l.prototype=c,p(m,"constructor",c),p(c,"constructor",l),l.displayName="GeneratorFunction",p(c,i,"GeneratorFunction"),p(m),p(m,i,"Generator"),p(m,n,function(){return this}),p(m,"toString",function(){return"[object Generator]"}),(v=function(){return{w:a,m:d}})()}function p(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}p=function(t,e,r,n){function a(e,r){p(t,e,function(t){return this._invoke(e,r,t)})}e?i?i(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))},p(t,e,r,n)}function b(t,e,r,n,i,a,s){try{var o=t[a](s),l=o.value}catch(t){return void r(t)}o.done?e(l):Promise.resolve(l).then(n,i)}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach(function(e){_(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==f(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const g={name:"InviteMembers2",components:{Popper:s(),RolePicker:l.default,ValidationMessage:u.default},mixins:[i.co],props:{callback:{type:Function,default:function(){}},team:{type:Object,default:function(){return{}}}},setup:function(){var t=(0,m.A)(),e=t.notifyError,r=t.notifySuccess;return{startCase:o.A,notifyError:e,notifySuccess:r}},data:function(){return{invitationForm:new SparkForm({invitations:""}),emails:[],email:"",errors:[],file_errors:[]}},computed:y(y({},(0,n.L8)(["organization","organizationTeams"])),{},{sampleFile:function(){return"bulk-invite".concat(this.isInvitingToTeam?"-to-team":"",".csv")},isInvitingToTeam:function(){return!d.isEmpty(this.team)},organizationEmails:function(){var t=this;return this.emails.filter(function(e){return!(e.invitation&&"failed"!=e.invitation||t.isTeamValid(e))})},teamEmails:function(){var t=this;return this.emails.filter(function(e){return(!e.invitation||"failed"==e.invitation)&&t.isTeamValid(e)})}}),methods:{closeModal:function(){this.$emit("close")},addEntry:function(t){this.errors=[];var e=t.target.value;if([9,32,188,13].includes(t.keyCode)){var r=e.replace(" ","").replace(",","");if(!r)return void t.preventDefault();if(this.emails.find(function(t){return t.email==r}))return this.errors.push("".concat(r," already listed.")),void t.preventDefault();if(this.emails.length>=50)return this.errors.push("You have reached the maximum limit emails."),void t.preventDefault();this.emails.push({email:r,role:t.target.role||"viewer",team:d.isEmpty(this.team)?t.target.team||null:this.team.slug}),this.email=""}},removeEntry:function(t){this.emails=this.emails.filter(function(e){return e.email!=t.email})},selectFile:function(){var t=this,e=new FileReader,r=this.$refs.bulk.files[0];"csv"==r.name.split(".").pop().toLowerCase()?(this.$refs.placeholder.value=r.name,e.readAsText(r),e.onload=function(e){var n,i,a=e.target.result,s=function(t){var e=t.split("\n").map(function(t){return t.replace("\r","")}),r=e[0].split(",").map(function(t){return t.toLowerCase()});return e.slice(1).map(function(t){return t.split(",").reduce(function(t,e,n){var i={};return i[r[n]]=e,y(y({},t),i)},{})}).map(function(t){var e,r,n;return{email:null==t||null===(e=t.email)||void 0===e?void 0:e.trim(),role:null==t||null===(r=t.role)||void 0===r?void 0:r.trim(),team:null==t||null===(n=t.team)||void 0===n?void 0:n.trim()}})};!function(e){for(var r=function(){var r=e[n],i=t.emails.some(function(t){return t.email.toLowerCase()==r.email.toLowerCase()}),a=n+2,s=t.organizationTeams.map(function(t){return t.slug});if(!r.email){var o=t.file_errors.findIndex(function(t){return t.key==a}),l="The email field is required.";-1===o?t.file_errors.push({key:a,data:r,errors:[l]}):t.file_errors[o].errors.push(l)}if(!r.role){var c=t.file_errors.findIndex(function(t){return t.key==a}),u="The role field is required.";-1===c?t.file_errors.push({key:a,data:r,errors:[u]}):t.file_errors[c].errors.push(u)}if(r.role&&!["admin","member","viewer"].includes(r.role.toLowerCase())){var m=t.file_errors.findIndex(function(t){return t.key==a}),d="The role field must be a valid role.";-1===m?t.file_errors.push({key:a,data:r,errors:[d]}):t.file_errors[m].errors.push(d)}if(!t.isInvitingToTeam)if(r.team){if(!s.includes(r.team)){var f=t.file_errors.findIndex(function(t){return t.key==a}),v="The team does not exist in our database.";-1===f?t.file_errors.push({key:a,data:r,errors:[v]}):t.file_errors[f].errors.push(v)}}else{var p=t.file_errors.findIndex(function(t){return t.key==a}),b="The team field is required.";-1===p?t.file_errors.push({key:a,data:r,errors:[b]}):t.file_errors[p].errors.push(b)}if(i){var h=t.file_errors.findIndex(function(t){return t.key==a}),y="The email ".concat(r.email," already listed.");-1===h?t.file_errors.push({key:a,data:r,errors:[y]}):t.file_errors[h].errors.push(y)}},n=0;n<e.length;n++)r()}(s(a)),n=s(a),i=n.filter(function(e,r){var n=t.emails.findIndex(function(t){return t.email.toLowerCase()===e.email.toLowerCase()});return e.email&&e.role&&["admin","member","viewer"].includes(e.role.toLowerCase())&&-1===n}
2),i.forEach(function(e){t.addEntry({keyCode:9,target:{role:e.role.toLowerCase(),value:e.email,team:e.team},preventDefault:function(){}})}),t.$refs.bulk.value="",t.file_errors.length&&Bus.$emit("showModal",c.default,{file:r.name,errors:t.file_errors,team:t.team,callback:function(){t.file_errors=[]}})}):this.notifyError({text:"Please upload a CSV file."})},updateRole:function(t,e){this.emails=this.emails.map(function(r,n){return n==t?{email:r.email,role:e,team:r.team}:r})},isTeamValid:function(t){return this.organizationTeams.some(function(e){return e.slug==t.team})},addUnattendedEmails:function(){this.email&&this.addEntry({keyCode:9,target:{value:this.email},preventDefault:function(){}})},inviteMembers:function(){var t,e=this;return(t=v().m(function t(){var r,n,i,a,s,o,l,c,u,m;return v().w(function(t){for(;;)switch(t.n){case 0:for(i in e.addUnattendedEmails(),e.errors=[],r=[],n=[],e.organizationEmails)a=e.organizationEmails[i],s={invitations:a.email,role:a.role.toLowerCase()},o=e.$apiUrl("organization/{o}/invite",{o:e.organization.slug}),r.push(axios.post(o,s)),n.push(s);for(l in e.teamEmails)c=e.teamEmails[l],u={invitations:c.email,role:c.role.toLowerCase()},m=e.$apiUrl("organization/{o}/team/{t}/invite",{o:e.organization.slug,t:c.team}),r.push(axios.post(m,u)),n.push(u);return e.busy=!0,t.n=1,Promise.allSettled(r).then(function(t){t.forEach(function(t,r){if("fulfilled"==t.status){var i=t.value.data.data[0],a=i.email,s=i.id,o=e.emails.findIndex(function(t){return t.email===a});-1!==o&&e.$set(e.emails[o],"invitation",s)}if("rejected"==t.status){var l=n[r].invitations,c=e.emails.findIndex(function(t){return t.email===l});-1!==c&&e.$set(e.emails[c],"invitation","failed");var u=t.reason.response.data.message;e.errors.push(u)}})});case 1:e.busy=!1,e.errors.length||(e.notifySuccess({text:"All members have been invited."}),e.closeModal(),e.callback());case 2:return t.a(2)}},t)}),function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function s(t){b(a,n,i,s,o,"next",t)}function o(t){b(a,n,i,s,o,"throw",t)}s(void 0)})})()}}},C=g;const w=(0,r(14486).A)(C,function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal d-block"},[e("div",{staticClass:"modal-dialog modal-dialog-centered modal-dialog-scrollable modal-xl"},[e("div",{staticClass:"modal-content"},[e("div",{staticClass:"flex-center-between pt-4 pr-4 pb-2 pl-4"},[e("h6",{staticClass:"mb-0"},[t._v("\n Invite Members\n ")]),t._v(" "),e("button",{staticClass:"close-2",attrs:{type:"button"},on:{click:t.closeModal}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("Ã")])])]),t._v(" "),e("div",{staticClass:"modal-body px-4"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-6"},[e("div",{staticClass:"form-group"},[t._m(0),t._v(" "),e("div",{staticClass:"border rounded d-flex flex-wrap overflow-y-a pl-2 pb-2",class:{"is-invalid pr-4":!!t.errors.length},staticStyle:{"max-height":"175px"},on:{click:function(e){return e.target!==e.currentTarget?null:t.$refs.email.focus()}}},[t._l(t.emails,function(r){return e("button",{key:r.email,staticClass:"btn btn-xs flex-center-center py-1 px-2 bg-gray-300 rounded mt-2 mr-2",class:{"border-danger text-danger":"failed"==r.invitation},attrs:{type:"button"},on:{click:function(e){return t.removeEntry(r)}}},[e("span",[t._v(t._s(r.email))]),t._v(" "),e("span",{staticClass:"ml-2"},[t._v("X")])])}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],ref:"email",staticClass:"w-auto border-0 mt-2 mr-2",attrs:{id:"emails",type:"text"},domProps:{value:t.email},on:{keydown:t.addEntry,input:function(e){e.target.composing||(t.email=e.target.value)}}})],2),t._v(" "),t._l(t.errors,function(t){return[e("ValidationMessage",{key:t,attrs:{message:t}})]}),t._v(" "),e("p",{staticClass:"text-sm mt-2 mb-0 d-block text-break"},[t._v("\n Enter a user email (up to 50 comma separated emails) to invite\n them to the\n "),e("strong",[t._v("\n "+t._s(t.isInvitingToTeam?"".concat(t.team.name," Team"):"".concat(t.organization.name," Organization"))+"\n ")])])],2),t._v(" "),t._m(1),t._v(" "),e("div",{staticClass:"form-group mb-0"},[e("p",{staticClass:"font-weight-seminormal mb-1"},[t._v("\n Upload CSV file with emails\n ")]),t._v(" "),e("div",{staticClass:"border rounded-xl p-3 h-100"},[e("div",{staticClass:"d-flex mb-2"},[e("input",{ref:"bulk",staticClass:"d-none",attrs:{type:"file",accept:".csv, text/csv, .xlsx, .ods"},on:{change:t.selectFile}}),t._v(" "),e("input",{ref:"placeholder",staticClass:"form-control",attrs:{type:"text",readonly:""}}),t._v(" "),e("button",{staticClass:"btn btn-blue btn-block ml-2",attrs:{type:"button"},on:{click:function(e){return t.$refs.bulk.click()}}},[t._v("\n Import\n ")])]),t._v(" "),e("a",{staticClass:"font-weight-seminormal text-blue",staticStyle:{"text-decoration":"underline !important"},attrs:{download:"".concat(t.sampleFile),href:"/images/organization/".concat(t.sampleFile),title:"".concat(t.sampleFile)}},[t._v("\n Download sample CSV file\n ")])])])]),t._v(" "),e("div",{staticClass:"col d-lg-none py-2"}),t._v(" "),e("div",{staticClass:"col-lg-6"},[e("div",{staticClass:"border rounded-xl h-100 d-flex flex-column",staticStyle:{"border-color":"#000"}},[e("div",{staticClass:"border-bottom rounded-xl rounded-bottom-none pt-4 pb-3 px-3",staticStyle:{"background-color":"#eefaff","border-bottom-left-radius":"0 !important","border-bottom-right-radius":"0 !important"}},[e("div",{staticClass:"flex-start-between"},[e("div",[e("h4",{staticClass:"font-weight-semibold mb-0"},[t._v("\n Invited Members\n ")]),t._v(" "),e("p",{staticClass:"text-sm mb-0 text-gray-500"},[t._v("\n "+t._s(t.emails.length)+" Invitations\n ")])]),t._v(" "),e("div",{staticClass:"d-flex"},[e("h4",{staticClass:"font-weight-semibold mb-0"},[t._v("\n Roles\n ")]),t._v(" "),e("popper",{attrs:{trigger:"clickToToggle",options:{placement:"bottom",modifiers:{offset:{offset:"0,10"}}}}},[e("div",{staticClass:"popper border rounded-xl shadow bg-white py-3 px-3"},[e("div",{staticClass:"mb-2"},[e("p",{staticClass:"mb-0 font-weight-bold"},[t._v("\n Admin\n ")]),t._v(" "),e("p",{staticClass:"mb-0 text-sm text-gray-500"},[t._v("\n Add members, connect domains, manage team settings\n & permissions.\n ")])]),t._v(" "),e("div",{staticClass:"mb-2"},[e("p",{staticClass:"mb-0 font-weight-bold"},[t._v("\n Member\n ")]),t._v(" "),e("p",{staticClass:"mb-0 text-sm text-gray-500"},[t._v("\n Create and edit TinyURL links.\n ")])]),t._v(" "),e("div",{staticClass:"mb-0"},[e("p",{staticClass:"mb-0 font-weight-bold"},[t._v("\n Viewer\n ")]),t._v(" "),e("p",{staticClass:"mb-0 text-sm text-gray-500"},[t._v("\n View team TinyURL links and view anal
2ytics.\n ")])])]),t._v(" "),e("i",{staticClass:"fa fa-info-circle text-blue text-2xl cursor-pointer mt-n1 ml-1",attrs:{slot:"reference"},slot:"reference"})])],1)])]),t._v(" "),e("div",{staticClass:"flex-grow-1 p-3 overflow-auto",staticStyle:{"max-height":"376px"}},[t._l(t.emails,function(r,n){return e("div",{key:r.email,staticClass:"flex-center-between"},[e("div",{staticClass:"py-1 flex-grow-1 flex-center-between",staticStyle:{gap:"10px"}},[e("span",{staticClass:"text-break"},[t._v(t._s(r.email))]),t._v(" "),"invitation"in r?e("span",{staticClass:"font-weight-semibold",class:"".concat("failed"==r.invitation?"text-danger":"text-success")},[t._v("\n "+t._s("failed"==r.invitation?"Invitation failed":"Invited")+"\n ")]):t._e()]),t._v(" "),e("div",{staticClass:"px-2"}),t._v(" "),e("div",{staticClass:"py-1 flex-center-end",staticStyle:{"min-width":"100px"}},[r.invitation&&"failed"!=r.invitation?[e("span",{staticClass:"mr-2 text-gray-500"},[t._v("\n "+t._s(t.startCase(r.role))+"\n ")]),t._v(" "),e("i",{staticClass:"fa fa-chevron-down text-gray-400"})]:e("RolePicker",{attrs:{role:r.role},on:{select:function(e){return t.updateRole(n,e)}}})],2)])}),t._v(" "),t.emails.length?t._e():e("div",{staticClass:"h-100 w-100 flex-center-center"},[t._v("\n No member(s) found.\n ")])],2)])])]),t._v(" "),e("div",{staticClass:"form-group text-center mt-4 mb-2"},[e("button",{staticClass:"btn btn-blue rounded-xl px-5",attrs:{disabled:t.invitationForm.busy||!t.emails.length&&!t.email.length},on:{click:t.inviteMembers}},[t._v("\n Invite members\n "),e("i",{directives:[{name:"show",rawName:"v-show",value:t.invitationForm.busy,expression:"invitationForm.busy"}],staticClass:"fa fa-spinner fa-spin"})])])])])])])},[function(){var t=this,e=t._self._c;return e("label",{attrs:{for:"emails"}},[t._v("\n Email Address(es) "),e("span",{staticClass:"text-danger"},[t._v("*")])])},function(){var t=this._self._c;return t("div",{staticClass:"or"},[t("span",[this._v("OR")])])}],!1,null,null,null).exports},69391(t,e,r){r.r(e),r.d(e,{default:()=>o});var n=r(99499),i=r(2543);const a={name:"MembersModal",mixins:[n.co],props:{callback:{type:Function,required:!0},errors:{type:Array,required:!0},file:{type:String,required:!0},team:{type:Object,default:function(){return{}}}},computed:{_:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){return i})},methods:{close:function(){this.$emit("close"),this.callback()}}},s=a;const o=(0,r(14486).A)(s,function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal d-block"},[e("div",{staticClass:"modal-dialog modal-dialog-centered modal-dialog-scrollable modal-xl"},[e("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:t.close,expression:"close"}],staticClass:"modal-content"},[e("div",{staticClass:"px-4 pt-4 flex-start-between"},[e("div",[e("h6",{staticClass:"mb-0"},[t._v('\n The "'+t._s(t.file)+'" bulk upload has some errors\n ')]),t._v(" "),e("p",{staticClass:"text-muted mb-0 text-sm"},[t._v("\n These entries require fixing before they can be sent to the\n server.\n ")])]),t._v(" "),e("button",{staticClass:"close-2",attrs:{type:"button"},on:{click:t.close}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("Ã")])])]),t._v(" "),t._.isEmpty(t.team)?e("div",{staticClass:"px-4 pt-4"},[t._m(0)]):t._e(),t._v(" "),e("div",{staticClass:"modal-body p-4"},[e("div",{staticClass:"table-responsive shadow-sm mb-4"},[e("table",{staticClass:"table table-striped table-valign-middle mb-0"},[e("thead",[e("tr",{staticClass:"bg-blue-dark font-weight-bold text-white"},[e("th",{staticClass:"border-top-0"},[t._v("\n Row #\n ")]),t._v(" "),e("th",{staticClass:"border-top-0"},[t._v("\n Email\n ")]),t._v(" "),t._.isEmpty(t.team)?e("th",{staticClass:"border-top-0"},[t._v("\n Team\n ")]):t._e(),t._v(" "),e("th",{staticClass:"border-top-0"},[t._v("\n Role\n ")]),t._v(" "),e("th",{staticClass:"border-top-0"},[t._v("\n Errors\n ")])])]),t._v(" "),e("tbody",t._l(t.errors,function(r){return e("tr",{key:r.key},[e("td",{staticClass:"td-fit",attrs:{width:"10%"}},[t._v("\n "+t._s(r.key)+"\n ")]),t._v(" "),e("td",{staticClass:"td-fit",attrs:{width:"15%"}},[t._v("\n "+t._s(r.data.email||"N/A")+"\n ")]),t._v(" "),t._.isEmpty(t.team)?e
2("td",{staticClass:"td-fit",attrs:{width:"15%"}},[t._v("\n "+t._s(r.data.team||"N/A")+"\n ")]):t._e(),t._v(" "),e("td",{staticClass:"td-fit",attrs:{width:"10%"}},[t._v("\n "+t._s(r.data.role||"N/A")+"\n ")]),t._v(" "),e("td",{staticClass:"td-fit",attrs:{width:"50%"}},t._l(r.errors,function(r){return e("p",{key:r,staticClass:"mb-0 text-red"},[t._v("\n "+t._s(r)+"\n ")])}),0)])}),0)])]),t._v(" "),e("button",{staticClass:"btn btn-blue rounded-xl px-5",attrs:{type:"button"},on:{click:t.close}},[t._v("\n Continue\n ")])])])])])},[function(){var t=this,e=t._self._c;return e("div",{staticClass:"alert alert-red text-red mb-0"},[e("p",{staticClass:"mb-1"},[e("i",{staticClass:"fa-solid fa-triangle-exclamation"}),t._v(" "),e("span",{staticClass:"font-weight-semibold"},[t._v("Requires your attention!")])]),t._v(" "),e("p",{staticClass:"mb-0"},[t._v("\n The invites to members with unknown teams will be pending. You can\n assign them to a valid team later from the settings page.\n ")])])}],!1,null,null,null).exports}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.