1/*! For license information please see 2598.ffe8c3eac2f63fd4.js.LICENSE.txt */ 2"use strict";(self.webpackChunktinyurl=self.webpackChunktinyurl||[]).push([[2598],{72598(t,e,r){r.r(e),r.d(e,{default:()=>m});var n=r(95353),o=r(3001),i=r(25688),a=r(77063),s=r(2543);function u(t){return u="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},u(t)}function c(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof s?n:s,c=Object.create(u.prototype);return d(c,"_invoke",function(r,n,o){var i,s,u,c=0,d=o||[],l=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,r){return i=e,s=0,u=t,f.n=r,a}};function p(r,n){for(s=r,u=n,e=0;!l&&c&&!o&&e<d.length;e++){var o,i=d[e],p=f.p,b=i[2];r>3?(o=b===n)&&(u=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=r<2&&p<i[1])?(s=0,f.v=n,f.n=i[1]):p<b&&(o=r<3||i[0]>n||n>b)&&(i[4]=r,i[5]=n,f.n=b,s=0))}if(o||r>1)return a;throw l=!0,n}return function(o,d,b){if(c>1)throw TypeError("Generator is already running");for(l&&1===d&&p(d,b),s=d,u=b;(e=s<2?t:u)||!l;){i||(s?s<3?(s>1&&(f.n=-1),p(s,u)):f.n=u:f.v=u);try{if(c=2,i){if(s||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=t}else if((e=(l=f.n<0)?u:r.call(n,f))!==a)break}catch(e){i=t,s=1,u=e}finally{c=1}}return{value:e,done:l}}}(r,o,i),!0),c}var a={};function s(){}function u(){}function l(){}e=Object.getPrototypeOf;var f=[][n]?e(e([][n]())):(d(e={},n,function(){return this}),e),p=l.prototype=s.prototype=Object.create(f);function b(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,d(t,o,"GeneratorFunction")),t.prototype=Object.create(p),t}return u.prototype=l,d(p,"constructor",l),d(l,"constructor",u),u.displayName="GeneratorFunction",d(l,o,"GeneratorFunction"),d(p),d(p,o,"Generator"),d(p,n,function(){return this}),d(p,"toString",function(){return"[object Generator]"}),(c=function(){return{w:i,m:b}})()}function d(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}d=function(t,e,r,n){function i(e,r){d(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},d(t,e,r,n)}function l(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function f(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 p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach(function(e){b(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function b(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const h={name:"OrgsPageOnboarding",mixins:[i.A],setup:function(){return{notifyError:(0,a.A)().notifyError}},data:function(){return{method:"create",ready:!1}},computed:p(p({},(0,n.L8)(["organization","organizationTeam","reonboardingStep","supportTeams","user"])),{},{barWidth:function(){var t=this.currentStep.bar_width;return"width: ".concat(t,"%;")},currentStep:function(){return this.onboardingSteps[this.reonboardingStep]},onboardingSteps:function(){var t="organizations/onboarding";return[{component:(0,o.A)("".concat(t,"/Organization")),title:"Create Organization",sub_title:["Name your organization, upload a logo, write a description and assign domains"],bar_width:0},{component:(0,o.A)("".concat(t,"/Domains")),title:"Add Domains",sub_title:["Assign domain to the organization by connecting a domain you personally owned"],bar_width:20},{component:(0,o.A)("".concat(t,"/Users")),title:"Invite Super Admins",sub_title:["Invite Administrators to help you manage your Organization"],bar_width:40},{component:(0,o.A)("".concat(t,"/Team")),title:"Create a Team",sub_title:["Name your team, choose team's color and abbreviation.","You can add branded domain to your team's links"],bar_width:60},{component:(0,o.A)("".concat(t,"/Members")),title:"Invite Team Members",sub_title:["You can invite members to collaborate and observe"],bar_width:80},{component:(0,o.A)("".concat(t,"/TakeTour")),title:"Take Our Tour",sub_title:[],bar_width:100}]}}),watch:{"$route.query.org":function(){this.setupOnboarding()}},created:function(){window.addEventListener("resize",this.defineTourTitle),Bus.$on("resetOnboarding",this.resetOnboarding)},mounted:function(){this.ready=!1,Bus.$emit("resetOnboarding"),this.setupOnboarding()},beforeDestroy:function(){Bus.$off("resetOnboarding"),window.removeEventListener("resize",this.defineTourTitle)},methods:p(p(p({},(0,n.i0)(["setupReonboarding"])),(0,n.PY)(["SET_ORGANIZATION","SET_ORGANIZATION_DOMAINS","SET_ORGANIZATION_ROLES","SET_ORGANIZATION_TEAM","UPDATE_REONBOARD
2ING_STEP"])),{},{updateStep:function(t,e){var r;"page"==e?"create"==this.method&&1==t||this.UPDATE_REONBOARDING_STEP(t):"create"==this.method?0!==t&&this.notifyError({text:"You need to create an organization first."}):[1].includes(t)?null!==(r=this.organization)&&void 0!==r&&r.owner?this.UPDATE_REONBOARDING_STEP(t):this.notifyError({text:this.$t("permission_denied")}):this.UPDATE_REONBOARDING_STEP(t)},defineTourTitle:function(){var t,e,r="Take Our Tour",n=Boolean(null===(t=this.organization)||void 0===t?void 0:t.owner),o=Boolean(null===(e=this.organization)||void 0===e?void 0:e.role);window.innerWidth<767?r="Proceed to Dashboard":this.organization?(n&&localStorage.getItem("orgTourOwner")||o&&localStorage.getItem("orgTourUser"))&&(r="Proceed to Dashboard"):localStorage.getItem("orgTourOwner")&&(r="Proceed to Dashboard"),this.onboardingSteps[5].title=r},resetOnboarding:function(){var t=this;this.ready=!1,this.UPDATE_REONBOARDING_STEP(0),this.SET_ORGANIZATION(void 0),this.SET_ORGANIZATION_DOMAINS(void 0),this.SET_ORGANIZATION_ROLES(void 0),this.SET_ORGANIZATION_TEAM(void 0),this.defineTourTitle(),this.method="create",setTimeout(function(){t.ready=!0},300)},stepCursor:function(t){return"create"==this.method?0===t?"cursor-pointer":"cursor-default":1===t&&(null===(e=this.organization)||void 0===e||!e.owner)||4===t&&s.isEmpty(this.organizationTeam)?"cursor-default":"cursor-pointer";var e},notAllowed:function(t){var e=this;this.$router.push({name:"homepage"}).then(function(){e.notifyError({text:t})})},setupOnboarding:function(){var t,e=this;return(t=c().m(function t(){var r;return c().w(function(t){for(;;)switch(t.n){case 0:e.$route.query.org?(r=e.user.organizations.find(function(t){return t.slug==e.$route.query.org}))?(e.SET_ORGANIZATION(r),e.canUserReonboard?(e.setupReonboarding({params:{org:r},options:{callback:function(){}}}),e.defineTourTitle(),e.method="update",e.ready=!0):e.notAllowed(e.$t("permission_denied"))):e.notAllowed(e.$t("not_found")):e.supportTeams?e.resetOnboarding():e.notAllowed(e.$t("permission_denied"));case 1:return t.a(2)}},t)}),function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){l(i,n,o,a,s,"next",t)}function s(t){l(i,n,o,a,s,"throw",t)}a(void 0)})})()}})},g=h;const m=(0,r(14486).A)(g,function(){var t=this,e=t._self._c;return e("div",{staticClass:"organization flex-column overflow-auto"},[t.ready?[e("div",{staticClass:"onboarding-progress"},[e("div",{attrs:{id:"progress"}},[e("div",{style:t.barWidth,attrs:{id:"progress-bar"}}),t._v(" "),e("ul",{attrs:{id:"progress-steps"}},t._l(t.onboardingSteps,function(r,n){return e("li",{key:n,class:["item",{before:n<t.reonboardingStep,current:n==t.reonboardingStep,after:n>t.reonboardingStep},t.stepCursor(n)],on:{click:function(e){return t.updateStep(n,"stepper")}}},[e("div",{staticClass:"step"},[n<t.reonboardingStep?e("i",{staticClass:"fa fa-check"}):[t._v("\n "+t._s(n+1)+"\n ")]],2),t._v(" "),e("div",{staticClass:"text"},[t._v("\n "+t._s(r.title)+"\n ")])])}),0)])]),t._v(" "),e("div",{staticClass:"onboarding-page"},[t.currentStep.sub_title?e("h5",{staticClass:"font-weight-semibold text-center mx-2 my-4 pb-3"},[t._l(t.currentStep.sub_title,function(r){return[e("span",{key:"".concat(r)},[t._v(t._s(r))]),t._v(" "),e("br",{key:"".concat(r,"-br")})]})],2):t._e(),t._v(" "),e(t.currentStep.component,{tag:"Component",attrs:{method:t.method},on:{updateStep:function(e){return t.updateStep(e,"page")}}})],1)]:e("div",{staticClass:"flex-center-center h-100 w-100"},[e("Spinner")],1)],2)},[],!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.