PageSourceSearch

https://dashboard.iproyal.com/assets/(organization)-RvNoFDjg.js

js iproyal.com collected 2026-10-01 10:41:22 UTC 10,088 bytes, 3 lines download raw bytes

1/** See vendor.LICENSE.txt for 3rd party license information */
2import{i as y,a as Q,y as X,bU as H,at as J,eV as ee,av as $,eW as se,o as l,c as D,w as v,Q as r,O as i,u as e,_ as g,z as d,ac as P,as as N,M as p,S as E,ai as L,N as U,aL as ae,V as z,W as R,F as C,e as re,bc as j,T as oe,b as F,b0 as A,eX as ne,eY as te,eZ as le,e_ as ie,e$ as de,f0 as ue}from"./_withdraw-status-label-C_XHOxxk.js";import{u as me,a as Y}from"./OrganizationDeletedDialog-DeCOWxzA.js";import{a as ce,_ as fe}from"./OrganizationUserRolePill.vue_vue_type_script_setup_true_lang-D07aBoZK.js";import{u as Is}from"./OrganizationUserRolePill.vue_vue_type_script_setup_true_lang-D07aBoZK.js";import{_ as pe}from"./InviteMemberDialogContent.vue_vue_type_script_setup_true_lang-KCryEagY.js";import{_ as ge}from"./RoutedTabsLayout.vue_vue_type_script_setup_true_lang-Cce2X9Cu.js";import{e as he}from"./members-fQVy2Yv2.js";import{O as we}from"./member-loaders-DU-ZEJ19.js";import{u as be,_ as ve}from"./use-paginated-query-D3hWjuAx.js";import{L as ye,u as _e,_ as xe}from"./regle-schemas.min-Bzceocc8.js";import{o as Oe,n as Te,p as Ie,s as ke}from"./order-auth-validators-DYWxMx4R.js";import{m as ze,T as Re}from"./TextField-YbFGomOL.js";import{S as Ce}from"./Select-BqGC1HL3.js";import{R as Me}from"./TrafficModeOption.vue_vue_type_script_setup_true_lang-Dij0dPYp.js";import"./index-DzVsRdPj.js";import"./projects-DDiJpIlV.js";import"./use-pagination-PsreJ_Jb.js";import"./Field.vue_vue_type_script_setup_true_lang-9W-nBLQ-.js";import"./OrderStatusIndicator.vue_vue_type_script_setup_true_lang-BBoeNZpA.js";import"./PhoneNumberOption.vue_vue_type_script_setup_true_lang-Dqu4aX3f.js";import"./subscription-features-Sot5Ax5k.js";
2import"./survicate-mrno6alq.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"0a9fdbed"},o._sentryModuleMetadata=o._sentryModuleMetadata||{},o._sentryModuleMetadata[new o.Error().stack]=(function(h){for(var m=1;m<arguments.length;m++){var c=arguments[m];if(c!=null)for(var _ in c)c.hasOwnProperty(_)&&(h[_]=c[_])}return h})({},o._sentryModuleMetadata[new o.Error().stack],{"_sentryBundlerPluginAppKey:iproyal-dashboard-frontend":!0});var n=new o.Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="315d9923-8b34-4f9c-8520-acd22d0137d4",o._sentryDebugIdIdentifier="sentry-dbid-315d9923-8b34-4f9c-8520-acd22d0137d4")}catch{}})();const Se=y(()=>Oe({searchTerm:Ie(ke(),ze(255)),userId:Te()})),Ve=o=>{const{r$:n}=ye(o,Se),h=_e(n);return{r$:n,field:h}},De={class:"tp-headline-s md:tp-headline-m"},Ne={class:"mt-24 flex flex-col gap-8 md:mt-40"},Ee={class:"flex flex-col gap-8 sm:flex-row"},$e={key:0,class:"text-neutral-600"},Pe={key:1},Le=["aria-label"],Ue=["inert"],je={key:0,class:"flex items-center justify-center px-16 py-24 tp-body-s"},Fe={key:1,class:"flex items-center justify-center px-16 py-24 tp-body-s text-neutral-600"},Ae=["inert","onClick"],Be={class:"mx-8 flex w-full max-w-126 flex-row gap-8 truncate xs:mx-16 sm:max-w-176"},Qe={class:"truncate tp-body-s"},Ye={class:"flex w-full flex-col-reverse truncate tp-body-xs xs:tp-body-s sm:flex-row"},Ge={class:"w-full max-w-92 truncate xs:mx-16"},Ke={class:"w-full max-w-176 truncate xs:mx-16"},Ze={class:"mt-20 flex flex-col gap-16 md:flex-row md:gap-24"},B=5,We=Q({__name:"TransferOwnershipDialogContent",props:{organizationId:{}},emits:["close"],setup(o,{emit:n}){const h=n,{common:m}=X(),{data:c}=me(),{getOwnerRoleLabel:_}=ce("organization"),M=y(()=>c.value.filter(s=>!s.isReadOnly)),f=C({searchTerm:"",userId:void 0}),{r$:I,field:k}=Ve(f),x=C(),O=H(y(()=>f.value.searchTerm),500),{data:S}=Y(),V=y(()=>Math.min(Math.max(S.value.organizationUsersCount,1),B)),{data:T,isPending:w,isLoading:t,error:u,pagination:G}=be({partialKey:()=>[we.eligibleForOwnershipTransfer(o.organizationId),O.value,x.value??"","active"],query:({signal:s},{page:b,perPage:a})=>he({page:b,perPage:a,searchTerm:O.value,roleCode:x.value,status:"active"},{signal:s}),pagination:{perPageOptions:[B],resetCurrentPageOn:[O.value]}}),K=y(()=>(T.value?.data.length??0)>0),{mutate:Z,isLoading:W}=J({mutation:ee,onError:s=>{$.error(s,"transfer-org-ownership")},onSuccess:()=>{$({id:"transfer-org-ownership",message:se()}),h("close")}}),q=()=>{f.value.userId!==void 0&&Z({organizationId:o.organizationId,userId:f.value.userId})};return(s,b)=>(l(),D(e(xe),{regle:e(I),class:"flex size-full flex-col",onSubmit:q},{default:v(()=>[r("h2",De,i(("m"in s?s.m:e(g)).dashOrgTransferOwnershipDialogTransferOwnershipTo()),1),r("div",Ne,[r("div",Ee,[d(e(Re),P(e(k)("searchTerm"),{modelValue:e(f).searchTerm,"onUpdate:modelValue":b[0]||(b[0]=a=>e(f).searchTerm=a),placeholder:("m"in s?s.m:e(g)).dashOrgTransferOwnershipDialogSearchMembers(),label:("m"in s?s.m:e(g)).dashOrgTransferOwnershipDialogSelectOwner(),name:"search","hide-empty-decorations":"",type:"search",class:"basis-1/2",size:"m"}),null,16,["modelValue","placeholder","label"]),d(e(Ce),{modelValue:e(x),"onUpdate:modelValue":b[1]||(b[1]=a=>N(x)?x.value=a:null),label:("m"in s?s.m:e(g)).dashOrgTransferOwnershipDialogFilterByRole(),options:e(M),name:"role","placeholder-as-option":"","label-key":"name","value-key":"roleCode","hide-empty-decorations":"",class:"basis-1/2",size:"m"},{placeholder:v(({insidePopup:a})=>[a?(l(),p("span",Pe,i(("m"in s?s.m:e(g)).dashOrgTransferOwnershipAllRoles()),1)):(l(),p("span",$e,i(("m"in s?s.m:e(g)).dashOrgTransferOwnershipDialogSelectRole()),1))]),_:1},8,["modelValue","label","options"])]),e(w)?(l(),p("ul",{key:0,class:"flex flex-col overflow-hidden rounded-8 border border-neutral-200","aria-label":("m"in s?s.m:e(g)).commonLoading()},[(l(!0),p(E,null,L(e(V),a=>(l(),p("li",{key:a,class:"flex flex-row items-center border-t border-neutral-200 py-14 first:border-none"},[...b[3]||(b[3]=[r("div",{class:"mx-8 flex w-full max-w-126 flex-row gap-8 xs:mx-16 sm:max-w-176"},[r("div",{class:"size-20 min-w-20 skeleton rounded-full"}),r("div",{class:"h-20 w-full skeleton rounded-8"})],-1),r("div",{class:"flex w-full flex-col-reverse sm:flex-row"},[r("div",{class:"h-16 w-full max-w-92 skeleton rounded-8 xs:mx-16 xs:
2h-20"}),r("div",{class:"h-16 w-full max-w-176 skeleton rounded-8 xs:mx-16 xs:h-20"})],-1)])]))),128))],8,Le)):(l(),p("ul",{key:1,class:U(["flex flex-col overflow-hidden rounded-8 border border-neutral-200",e(t)&&"opacity-70"]),inert:e(t)},[e(u)?(l(),p("li",je,i(e(ae)({error:e(u)})),1)):e(K)?(l(!0),p(E,{key:2},L(e(T)?.data,a=>(l(),p("li",{key:a.userId,class:U(["flex flex-row items-center border-t border-neutral-200 py-14 first:border-none",{"bg-brand-50":e(f).userId===a.userId,"opacity-60":a.roleCode==="owner","cursor-pointer":a.roleCode!=="owner"}]),inert:a.roleCode==="owner",onClick:es=>e(f).userId=a.userId},[r("div",Be,[d(e(Me),P({"model-value":e(f).userId,value:a.userId},{ref_for:!0},e(k)("userId"),{class:"min-w-20"}),null,16,["model-value","value"]),r("span",Qe,i(e(m).fullName({firstName:a.firstName,lastName:a.lastName})),1)]),r("div",Ye,[r("span",Ge,i(e(_)(a.roleCode)),1),r("span",Ke,i(a.email),1)])],10,Ae))),128)):(l(),p("li",Fe,i(("m"in s?s.m:e(g)).dashOrgTransferOwnershipDialogNoMembersFound()),1))],10,Ue))]),d(e(ve),{class:"mt-20",pagination:e(G),total:e(T)?.meta.total},null,8,["pagination","total"]),r("div",Ze,[d(e(z),{type:"submit","color-scheme":"secondary",class:"w-full md:basis-1/2",disabled:e(t)||e(W)||e(I).$invalid},{default:v(()=>[R(i(("m"in s?s.m:e(g)).dashOrgTransferOwnershipDialogTransfer()),1)]),_:1},8,["disabled"]),d(e(z),{kind:"outlined",class:"w-full md:basis-1/2",onClick:b[2]||(b[2]=a=>h("close"))},{default:v(()=>[R(i(e(m).cancel()),1)]),_:1})])]),_:1},8,["regle"]))}}),qe={class:"flex flex-col justify-between gap-18 sm:flex-row"},Xe={class:"flex min-w-0 flex-row items-center gap-8"},He=["title"],Je={class:"flex flex-col gap-8 whitespace-nowrap md:flex-row"},xs=Q({__name:"(organization)",setup(o){const{data:n}=Y(),h=re(),m=C(!1),c=C(!1),{anyValid:_}=j(ne),{canViewMembers:M,canInviteUsers:f,canTransferOwnership:I,canCreateProject:k,canViewTotalTeamUsage:x}=j(["viewMembers","inviteUsers","transferOwnership","createProject","viewTotalTeamUsage"]),O=y(()=>n.value?.projectsCount>0||k.value),S=y(()=>[x.value&&{childRoute:"statistics/",label:te()},{childRoute:"orders/",label:le()},M.value&&{childRoute:"members/",label:ie()},O.value&&{childRoute:"projects/",label:de()},_.value&&{childRoute:"settings/",label:ue()}].filter(t=>t!==!1)),V=y(()=>S.value.map(w=>({to:{name:`/[[context]]/organizations/[organizationId]/(organization)/${w.childRoute}`,params:{organizationId:h.params.organizationId}},label:w.label}))),T=y(()=>n.value.roleCode==="owner"&&I.value);return(w,t)=>(l(),p(E,null,[d(ge,{tabs:e(V)},{heading:v(()=>[r("div",qe,[r("div",Xe,[r("h1",{title:e(n).name,class:"min-w-0 flex-1 truncate tp-headline-m"},i(e(n).name),9,He),d(fe,{class:"shrink-0",role:e(n).roleCode},null,8,["role"])]),r("div",Je,[e(f)?(l(),D(e(z),{key:0,kind:"outlined",size:"m",onClick:t[0]||(t[0]=u=>m.value=!0)},{default:v(()=>[d(e(oe),{type:"plus",class:"size-20"}),R(" "+i(("m"in w?w.m:e(g)).dashOrgSharedLayoutInviteNewMember()),1)]),_:1})):F("",!0),e(T)?(l(),D(e(z),{key:1,kind:"outlined",size:"m",onClick:t[1]||(t[1]=u=>c.value=!0)},{default:v(()=>[R(i(("m"in w?w.m:e(g)).dashOrgSharedLayoutTransferOwnership()),1)]),_:1})):F("",!0)])])]),_:1},8,["tabs"]),d(e(A),{modelValue:e(m),"onUpdate:modelValue":t[2]||(t[2]=u=>N(m)?m.value=u:null),class:"flex w-full p-24 md:p-40"},{default:v(({close:u})=>[d(pe,{"organization-id":e(n).id,onClose:u},null,8,["organization-id","onClose"])]),_:1},8,["modelValue"]),d(e(A),{modelValue:e(c),"onUpdate:modelValue":t[3]||(t[3]=u=>N(c)?c.value=u:null),"animate-resize":"",class:"flex h-fit max-h-[min(90dvh,630px)] min-h-200 w-540 overflow-y-auto p-24 md:p-40"},{default:v(({close:u})=>[d(We,{"organization-id":e(n).id,onClose:u},null,8,["organization-id","onClose"])]),_:1},8,["modelValue"])],64))}});export{xs as default,Y as useOrganizationData,me as useOrganizationRolesData,Is as useProjectRolesData};
3//# sourceMappingURL=(organization)-RvNoFDjg.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.