1(globalThis.webpackChunksitebuilder_client=globalThis.webpackChunksitebuilder_client||[]).push([[1375],{248719:e=>{var t=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("bwe-tooltip",e._b({attrs:{"content-class":e.tooltipClass,disabled:e.isTooltipVisible,attach:e.attach},scopedSlots:e._u([{key:"activator",fn:function(t){return[i("div",{staticClass:"tooltipBtn",class:{tooltip_inlineBlock:e.inlineBlock,tooltip_fullWidth:e.fullWidth,tooltip_flexBasisZero:e.flexBasisZero,tooltip_displayInherit:e.displayInherit}},[i("div",{staticClass:"tabBtn",class:{tabBtn_disabled:!e.hasAccessToFunc,tabBtn_reversed:e.iconLeft,tabBtn_fullHeight:e.fullHeight},on:{mouseover:t.onMouseOver,mouseleave:t.onMouseLeave}},[e._t("default"),e._v(" "),e.withTitle&&!e.hasAccessToFunc?i("div",{staticClass:"withTitle",class:{tooltipWithRedirect:e.isRedirectToPaymentsEnabled},domProps:{innerHTML:e._s(e.tooltipText)},on:{click:e.goToPayment}}):e._e(),e._v(" "),e.withIcon&&!e.hasAccessToFunc?i("v-icon",{staticClass:"icon",class:e.icon.class},[e._v(e._s(e.icon.icon))]):e._e()],2)])]}}],null,!0)},"bwe-tooltip",Object.assign({},e.$attrs,e.tooltipPosition),!1),[e._v(" "),i("div",{class:{tooltipWithRedirect:e.isRedirectToPaymentsEnabled},domProps:{innerHTML:e._s(e.tooltipText)},on:{click:e.goToPayment}})])},i=[];t._withStripped=!0,e.exports=function(e){var s="function"==typeof e?e.options:e;return s.render=t,s.staticRenderFns=i,e}},521375:(e,t,i)=>{"use strict";i.d(t,{N:()=>O});var s,o,n,r=i(118657),a=i(99511),l=i(333783),c=i(76683),m=i(432562),u=(i(682241),i(789182)),h=i(623339),d=i(166156),p=i(569877),b=i(826152),T=i(522346),g=i(567042),y=i(231229),R=i(103803),v=i(420326),f=i(590905),P=i(860347),M=i(48595),A=i(248719),I=i.n(A),_=function(e,t,i,s){var o,n=arguments.length,r=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n<3?o(r):n>3?o(t,i,r):o(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},E=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let O=class extends r.lD{constructor(){super(...arguments),this.domainPaymentService=M.kL.resolve(T.k)}get permissionObj(){var e;return null!==(e=this.permission)&&void 0!==e?e:p.h[this.permissionName]}get tooltipPosition(){return{[this.position]:""}}get isHigherPlanRequired(){return!(!this.accessInProject||!this.permissionObj)&&u.l.getAccessDomainStatus(this.permissionObj)===d.d.HIGHER_PLAN_REQUIRED}get isDomainRenewalRequired(){return!!this.isDomainExpired||!(!this.accessInProject||!this.permissionObj)&&(this.optionValue?this.isLimitReached&&u.l.isExpiredDomain(this.permissionObj.currentDomain):u.l.getAccessDomainStatus(this.permissionObj)===d.d.IS_EXPIRED_DOMAIN)}get isPremiumRequired(){return this.isHigherPlanRequired||this.isLimitReached||this.isDomainRenewalRequired}get isRedirectToPaymentsEnabled(){return this.isPremiumRequired&&this.isOwner&&!this.isComingSoonFunc}get icon(){return this.isPremiumRequired?{icon:"mdi-crown-outline",class:"icon_crown"}:{icon:"mdi-lock",class:"icon_lock"}}get isMaximumPlan(){return!(!this.accessInProject||!this.permissionObj)&&this.permissionObj.translatedRequiredMinimalPlanName===d.d.IS_MAXIMUM_PLAN}get isNotAvailableInProduct(){return!(!this.accessInProject||!this.permissionObj)&&this.permissionObj.translatedRequiredMinimalPlanName===d.d.IS_NOT_AVAILABLE_IN_PRODUCT}get isUsersCountLimitReached(){return!!this.useUsersCountLimits&&(this.permissionObj.name===P.W.GUESTS_IN_PROJECT?this.useUsersCountLimits.isMaxLimitGuestsReached:this.useUsersCountLimits.isMaxLimitMembersReached)}get tooltipMessage(){return this.customTooltipText?`${this.$t(this.customTooltipText)}`:this.isComingSoonFunc?`${this.$t("members.availableSoon")}`:this.isDomainRenewalRequired?`${this.$t("dictEnums.AccessDomainStatus.DOMAIN_RENEWAL_REQUIRED")} ${this.$t("members.clickHereToUpgrade")}`:this.isLimitReached&&this.isMaximumPlan?`${this.$t("members.limitReached")}`:this.isNotAvailableInProduct?`${this.$t("dictEnums.AccessDomainStatus.IS_NOT_AVAILABLE_IN_PRODUCT")}`:this.isLimitReached||this.isUsersCountLimitReached?`${this.$t("members.reachLimit")} <b style="color: ${R.mainColorGreen};">${this.permissionObj.translatedRequiredMinimalPlanName}</b>. ${this.$t("members.clickHereToUpgrade")}`:this.isHigherPlanRequired?`${this.$t("dictEnums.AccessDomainStatus.HIGHER_PLAN_REQUIRED")}
1 <b style="color: ${R.mainColorGreen};">${this.permissionObj.translatedRequiredMinimalPlanName}</b> ${this.permissionObj.isMaximumPlanRequired?"":this.$t("members.orHigher")} ${this.$t("members.clickHereToUpgrade")}`:this.accessInProject?this.$t("featureAccessDenied"):this.$t("featureAccessDeniedToAccount")}get isComingSoonFunc(){return!!this.isComingSoon||!(!this.accessInProject||!this.permissionObj)&&(this.permissionObj.isIncomingSoon&&!b.Z.isAdmin)}get hasAccessToFunc(){return!!this.disabled||!this.isDomainExpired&&(this.useUsersCountLimits?!this.isUsersCountLimitReached:this.optionValue?!this.isLimitReached:this.permissionObj?u.l.hasAccess(this.permissionObj,this.accessInProject):this.accessCondition)}get pricingType(){return this.permissionObj.currentDomain.pricingType}get requiredMinimalPlanName(){return this.isDomainRenewalRequired?this.permissionObj.currentDomain.subscriptionType:this.permissionObj.requiredMinimalPlanName}get isTooltipVisible(){return!(this.hasAccessTooltipText&&this.isAccessTooltipTextVisible)&&this.hasAccessToFunc||this.withTitle}get tooltipText(){return this.hasAccessToFunc?this.hasAccessTooltipText:this.tooltipMessage}get isLimitReached(){return!!this.optionValue&&u.l.willReachLimit(this.permissionObj,this.optionValue)}get isOwner(){return b.Z.userDomainsPlans.some(e=>e.id===this.permissionObj.currentDomain.id)}goToPayment(){if(this.isRedirectToPaymentsEnabled){l.B.emit(c.v.PAYMENT.UPGRADE_CLICK,m.d.PERMISSION_TOOLTIP);const e=new g.E(this.permissionObj.currentDomain);e.planType=this.permissionObj.currentDomain.pricingType,e.newPlan=!this.isMaximumPlan&&this.requiredMinimalPlanName?this.requiredMinimalPlanName:this.domainPaymentService.getFirstPremiumPlanForPricing(this.pricingType),y._.setDomainForPayment(e)}}};_([(0,r.kv)({default:!0}),E("design:type",Boolean)],O.prototype,"accessInProject",void 0),_([(0,r.kv)(),E("design:type","function"==typeof(s=void 0!==h.w&&h.w)?s:Object)],O.prototype,"permission",void 0),_([(0,r.kv)(),E("design:type",String)],O.prototype,"hasAccessTooltipText",void 0),_([(0,r.kv)({default:!0}),E("design:type",Boolean)],O.prototype,"isAccessTooltipTextVisible",void 0),_([(0,r.kv)(),E("design:type",String)],O.prototype,"permissionName",void 0),_([(0,r.kv)({default:!1}),E("design:type",Boolean)],O.prototype,"withTitle",void 0),_([(0,r.kv)({default:!0}),E("design:type",Boolean)],O.prototype,"accessCondition",void 0),_([(0,r.kv)({default:!1}),E("design:type",Boolean)],O.prototype,"isComingSoon",void 0),_([(0,r.kv)({default:""}),E("design:type",String)],O.prototype,"customTooltipText",void 0),_([(0,r.kv)({default:!1}),E("design:type",Boolean)],O.prototype,"withIcon",void 0),_([(0,r.kv)({default:!1}),E("design:type",Boolean)],O.prototype,"iconLeft",void 0),_([(0,r.kv)({default:!1}),E("design:type",Boolean)],O.prototype,"inlineBlock",void 0),_([(0,r.kv)({default:!1}),E("design:type",Boolean)],O.prototype,"fullWidth",void 0),_([(0,r.kv)({default:!1}),E("design:type",Boolean)],O.prototype,"fullHeight",void 0),_([(0,r.kv)({default:!1}),E("design:type",Boolean)],O.prototype,"flexBasisZero",void 0),_([(0,r.kv)({default:!1}),E("design:type",Boolean)],O.prototype,"displayInherit",void 0),_([(0,r.kv)({default:0}),E("design:type",Number)],O.prototype,"optionValue",void 0),_([(0,r.kv)({default:!1}),E("design:type",Object)],O.prototype,"attach",void 0),_([(0,r.kv)(),E("design:type",String)],O.prototype,"tooltipClass",void 0),_([(0,r.kv)({default:v.A.BOTTOM}),E("design:type","function"==typeof(o=void 0!==v.A&&v.A)?o:Object)],O.prototype,"position",void 0),_([(0,r.kv)(),E("design:type","function"==typeof(n=void 0!==f.i&&f.i)?n:Object)],O.prototype,"useUsersCountLimits",void 0),_([(0,r.kv)({default:!1}),E("design:type",Boolean)],O.prototype,"disabled",void 0),_([(0,r.kv)({default:!1}),E("design:type",Boolean)],O.prototype,"isDomainExpired",void 0),O=_([I(),(0,r.uA)({components:{BweTooltip:a.A}})],O)},590905:(e,t,i)=>{"use strict";i.d(t,{i:()=>a});var s=i(116792),o=i(753797),n=i(789182),r=i(860347);class a{constructor(e=0,t=s.p.WEBSITE,i=o.V.FREE,n="",r=0,a=[],l=0,c=0,m=!1){this.domainId=0,this.pricingType=s.p.WEBSITE,this.subscriptionType=o.V.FREE,this.subscriptionExpirationDate="",this.currentCountGuests=0,this.emailsMembersInProject=[],this.maxLimitMembers=0,this.maxLimitGuests=0,this.toAccount=!1,this.domainId=e,this.pricingType=t,this.subscriptionType=i,this.subscriptionExpirationDate=n,this.currentCountGuests=r,this.emailsMembersInProject=a,this.maxLimitMembers=l,this.maxLimitGuests=c,this.toAccount=m}get currentCountMembers(){return[...new Set(this.emailsMembersInProject)].length}get isAllowedTransformMemberToGuest(){return!!this.toAccount||this.maxLimitGuests>=this.currentCountGuests+1}get isMaxLimitGuestsReached(){return this.maxLimitGuests<=this.currentCountGuests}
1get isMaxLimitMembersReached(){return this.maxLimitMembers<=this.currentCountMembers}setMaxLimitMembers(e){return this.maxLimitMembers=e,this}setToAccount(e=!0){return this.toAccount=e,this}setMaxLimitGuests(e){return this.maxLimitGuests=e,this}isAllowedTransformGuestToMember(e){return this.maxLimitMembers>=this.currentCountMembers+1||this.emailsMembersInProject.includes(e)}isAddNewUserAvailable(e,t){if(!e)return!1;if(this.toAccount)return!0;const i=this.getCurrentLimitTypeNameByRolesIds(t);return i===r.W.GUESTS_IN_PROJECT?this.isAllowedTransformMemberToGuest:i===r.W.MEMBERS_IN_PROJECT&&this.isAllowedTransformGuestToMember(e)}updateUserLimits(e,t){this.toAccount||(n.l.isGuestRole(e)?this.transformMemberToGuest(t):this.transformGuestToMember(t))}transformGuestToMember(e){this.currentCountGuests-=1,this.emailsMembersInProject.push(e)}transformMemberToGuest(e){this.currentCountGuests+=1,this.emailsMembersInProject.includes(e)&&this.emailsMembersInProject.splice(this.emailsMembersInProject.indexOf(e),1)}increaseUserLimits(e,t){n.l.isGuestRole(e)?this.currentCountGuests+=1:this.emailsMembersInProject.push(t)}decreaseUserLimits(e,t){n.l.isGuestRole(e)?this.currentCountGuests-=1:this.emailsMembersInProject.splice(this.emailsMembersInProject.indexOf(t),1)}getCurrentLimitTypeNameByRolesIds(e){return n.l.isGuestRole(e)?r.W.GUESTS_IN_PROJECT:r.W.MEMBERS_IN_PROJECT}getGuestOrMemberPermissionName(e){return n.l.isGuestRole(e)?r.W.MEMBERS_IN_PROJECT:r.W.GUESTS_IN_PROJECT}isAllowedChangeRole(e,t){return n.l.isGuestRole(e)?this.isAllowedTransformGuestToMember(t):this.isAllowedTransformMemberToGuest}isChangeAllowed(e,t){return n.l.isGuestRole(e)?this.isAllowedTransformMemberToGuest:this.isAllowedTransformGuestToMember(t)}}},682241:()=>{}}]); 2//# sourceMappingURL=https://bowwe.preprod/static/build/1375.4cc9f0c4c3c5adbde816.js.map
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.