PageSourceSearch

https://www.spectrumsource.ai/assets/TabsPortfolio-DWlahjuV.js

js spectrumsource.ai collected 2026-10-05 12:43:00 UTC 23,667 bytes, 2 lines download raw bytes

1import{n as l,aU as d,cW as c,aQ as g,f as r,aN as u,aO as b,aP as y,c as m,v as x,aT as I,h,ag as C,b as o,a as p,g as F,s as _,H as P,z as A,C as B,D as O,es as R,eN as U}from"./index-W6DN-I6u.js";import{w as D}from"./index-Dwk_NOhr.js";import{B as E}from"./BaseEmpty-CWs5JZK-.js";import{B as V}from"./BaseBottomSheet-BSw1bzhP.js";import{B as N}from"./BaseFile-Bq5Cnd04.js";import{B as T}from"./BaseMenu-Dcrhxe9P.js";import{B as k}from"./BaseDialog-De6PyyPz.js";import{F as H}from"./FormSwitch-CfyqGKh5.js";import{B as M}from"./BasePickerFiles-DVLXOu92.js";import{F as q}from"./FormHtmlEditor-D_Fv358V.js";import{_ as $}from"./VForm-BlDBFi5G.js";import{_ as w}from"./VTextField-C_kgLppf.js";import{_ as S}from"./VTextarea-JiOTGE1e.js";import"./VBottomSheet-CEbWQtT-.js";import"./BaseFilePdf-D4msPQiL.js";import"./VListItemGroup-TXSKlnHx.js";import"./VListItemIcon-BysuZQkn.js";import"./VBtnToggle-VKijd-K7.js";import"./differenceBy-CTfGOIq_.js";import"./last-CknW50kv.js";import"./vue-trix.esm-BTFuhT6G.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"20260924.1"};var e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="2f5338e3-2253-4783-a84b-4eb8f0be608f",t._sentryDebugIdIdentifier="sentry-dbid-2f5338e3-2253-4783-a84b-4eb8f0be608f")}catch{}})();const j={name:"TenantPrincipalProfileFilesAndLinksListItemFile",props:{item:{type:Object,required:!0}},methods:{handleDownload(t){window.open(t.path,"_blank")},defineIsHasPdfAnalogue(t){return!!t.pdfPath}}};var Y=function(){var s;var e=this,i=e._self._c;return i(d,[i(c,{staticClass:"mr-4"},[i(g,{attrs:{rounded:"",color:"bg-gray-300"}},[i(r,{staticClass:"!text-white"},[e._v("mdi-file")])],1)],1),i(u,[i(b,{staticClass:"flex justify-between items-center"},[i("span",{staticClass:"leaders after:bottom-[2px]"},[e._v(" "+e._s((s=e.item.fileCategory)==null?void 0:s.name)+" ")]),e._t("default")],2),i(y,{staticClass:"w-full !flex !flex-col"},[i("span",[e._v(" "+e._s(e.$formatDateLong(e.item.createdAt))+" – "+e._s(e.item.originalName)+" ")]),i("div",{staticClass:"mt-2 gap-2 flex flex-wrap"},[i(m,{attrs:{color:"primary",depressed:"","x-small":""},on:{click:()=>e.$emit("show-description",e.item)}},[i(r,{attrs:{left:"","x-small":""}},[e._v("mdi-eye")]),i("span",[e._v("Preview")])],1),e._v(" "+e._s(void(e.isHasPdfAnalogue=e.defineIsHasPdfAnalogue(e.item)))+" "),i(m,{attrs:{color:"primary",outlined:"","x-small":"",depressed:""},on:{click:()=>e.handleDownload(e.item)}},[i(r,{attrs:{left:"","x-small":""}},[e._v("mdi-download")]),i("span",[e._v(" Download "+e._s(e.isHasPdfAnalogue?"the original":"")+" ("+e._s(e.$formatBytes(e.item.originalSize))+") ")])],1)],1)])],1)],1)},z=[],W=l(j,Y,z,!1,null,null);const G=W.exports,K={name:"TenantPrincipalProfileFilesAndLinksListItemLink",props:{item:{type:Object,required:!0}}};var Q=function(){var s;var e=this,i=e._self._c;return i(d,[i(c,{staticClass:"mr-4"},[i(g,{attrs:{rounded:"",color:"bg-gray-300"}},[i(r,{staticClass:"!text-white"},[e._v("mdi-link-variant")])],1)],1),i(u,[i(b,{staticClass:"flex justify-between items-center"},[i("a",{staticClass:"leaders after:bottom-[2px] text-primary",attrs:{href:e.item.value,target:"_blank"}},[i("span",{staticClass:"underline whitespace-normal break-all"},[e._v(e._s(e.item.value))]),i(r,{staticClass:"ml-1",attrs:{"x-small":"",color:"primary"}},[e._v(" mdi-open-in-new ")])],1),e._t("default")],2),i(x,{attrs:{top:"","max-width":512,disabled:!e.item.description||((s=e.item.description)==null?void 0:s.length)<100},scopedSlots:e._u([{key:"activator",fn:function({on:a,attrs:n}){return[i(y,e._g(e._b({staticClass:"min-h-[34px]"},"v-list-item-subtitle",n,!1),a),[e._v(" "+e._s(e.item.description||"–")+" ")])]}}])},[i("span",[e._v(e._s(e.item.description))])])],1)],1)},J=[],X=l(K,Q,J,!1,null,null);const Z=X.exports,ee={name:"TenantPrincipalProfileFilesAndLinksList",components:{BaseMenu:T,BaseBottomSheet:V,BaseFile:N,ListItemFile:G,ListItemLink:Z},props:{list:{type:Array,default:()=>[]},itemHeight:{type:Number,default:98},isLoading:{type:Boolean,default:!1}},data:()=>({bottomDialog:{isVisible:!1,headerTitle:"",htmlContent:"",isFileLoaded:!1},menu:{isVisible:!1}}),methods:{handleShowDescription(t){this.handleOpenBottomDialog(t)}
1,handleOpenBottomDialog(t){var e;this.bottomDialog={isVisible:!0,file:t,headerTitle:`${(e=t.fileCategory)==null?void 0:e.name} description`,htmlContent:t.description||""}},handleCloseBottomDialog(){this.bottomDialog={isVisible:!1}},handleCloseMenu(){this.menu.isVisible=!1},defineMenuButtons(t){return[{label:"Edit",color:"secondary",icon:"mdi-pencil",handler:()=>this.$emit("action-update",t)},{label:"Delete",color:"error",icon:"mdi-trash-can",handler:()=>this.$emit("action-delete",t)}]},defineIsFile(t){var e;return!!((e=t.fileCategory)!=null&&e.id)}}};var ie=function(){var e=this,i=e._self._c;return i("div",[i(I,{staticClass:"!bg-transparent",attrs:{"three-line":""}},[e.isLoading?i(d,{style:`height: ${e.itemHeight}px`},[i(c,{staticClass:"mr-4"},[i(h,{attrs:{type:"avatar"}})],1),i(u,[i(h,{attrs:{type:"sentences"}})],1)],1):[e._l(e.list,function(s){return[e.defineIsFile(s)?i("ListItemFile",{key:`file-${s.id}`,attrs:{item:s},on:{"show-description":e.handleShowDescription}},[i("BaseMenu",{attrs:{"is-visible":e.menu.isVisible,"header-title":"",buttons:e.defineMenuButtons(s)},on:{close:e.handleCloseMenu}})],1):i("ListItemLink",{key:`link-${s.id}`,attrs:{item:s}},[i("BaseMenu",{attrs:{name:"base-menu","is-visible":e.menu.isVisible,"header-title":"",buttons:e.defineMenuButtons(s)},on:{close:e.handleCloseMenu}})],1)]})]],2),e.bottomDialog.isVisible?i("BaseBottomSheet",{attrs:{"header-title":e.bottomDialog.headerTitle},on:{close:e.handleCloseBottomDialog}},[i("div",{staticClass:"gap-8 flex flex-col flex-initial"},[e.bottomDialog.htmlContent?i(C,{staticClass:"p-2 !bg-gray-100",attrs:{outlined:"",rounded:""}},[i("span",{domProps:{innerHTML:e._s(e.bottomDialog.htmlContent)}})]):e._e(),i("div",{staticClass:"gap-2 flex flex-col"},[i("span",{staticClass:"text-gray-500"},[e._v("File:")]),i("BaseFile",{staticClass:"flex flex-initial",attrs:{"is-fill-parent":"","is-download-button":"",file:e.bottomDialog.file}})],1)],1)]):e._e()],1)},te=[],se=l(ee,ie,te,!1,null,null);const ae=se.exports,v=Object.freeze({fullUrl:"",description:""}),le={name:"TenantPrincipalProfileFilesCreationDialog",components:{BaseDialog:k,FormSwitch:H,BasePickerFiles:M,FormHtmlEditor:q},props:{principal:{type:Object,required:!0},item:{type:Object,default:null},uriTypeId:{type:Number,required:!0},fileCategoryId:{type:Number,required:!0}},data:()=>({source:{isUpload:!0},form:structuredClone(v),fileRecords:{list:[],toAdd:[],toDelete:[]},isLoading:!1}),computed:{...p("principal/files",["categories"]),isFile(){var t,e;return(e=(t=this.item)==null?void 0:t.fileCategory)==null?void 0:e.id},isEditing(){return!!this.item},isCreating(){return!this.isEditing},isModified(){return this.isModifiedForm||this.isModifiedFiles},isModifiedForm(){return!P(this.defaultForm,this.form)},isModifiedFiles(){return this.fileRecords.toAdd.length||this.fileRecords.toDelete.length},headerTitle(){return this.source.isUpload?this.isCreating?"Add new file":"Update file":this.isCreating?"Add new link":"Update link"},footerButtons(){return[{text:"Cancel",attrs:{color:"grey",text:!0},handler:this.handleClose},{text:this.isCreating?"Add":"Update",attrs:{color:"primary",disabled:!this.isModified,loading:this.isLoading},handler:this.handleSubmit}].filter(Boolean)}},watch:{"source.isUpload"(){this.form.description=""}},created(){this.setInitialForm(),this.isEditing&&this.isFile&&this.setInitialFiles()},methods:{...o("principal/files",{addOne:"ADD_ONE",updateOneWithFile:"UPDATE_ONE_WITH_FILE"}),...o("uris",{saveOne:"SAVE_ONE"}),async handleSubmit(){if(!this.defineIsValid())return;const e=this.definePayload(),i=this.defineHandler();this.setIsLoading(!0);const{isSuccess:s}=await i(e);this.setIsLoading(!1),s&&this.handleSuccess()},handleSuccess(){const t=this.isCreating?"File added":"File updated";_({title:t}),this.$emit("success"),this.handleClose()},handleClose(){this.$refs["base-dialog"].handleForceClose()},defineIsValid(){const t=this.$refs.form.validate();return t||F({title:"Please fill in all the required fields"}),t},defineHandler(){return this.source.isUpload?this.isEditing?this.updateOneWithFile:this.addOne:this.saveOne},definePayload(){const t=()=>{const i={...this.isEditing?this.item:{},principalId:this.principal.id,userTypeCode:this.principal.userTypeCode,uriTypeId:this.uriTypeId,value:this.form.fullUrl,description:this.form.description};return delete i.$type,i},e=()=>{const i=new FormData;return this.isEditing&&i.append("Id",this.item.id),i.append("PrincipalId",this.principal.id),i.append("UserTypeCode",this.principal.userTypeCode),this.fileRecords.toAdd.forEac
1h(s=>{i.append("UploadedFiles",s.file)}),i.append("FileCategoryId",this.fileCategoryId),i.append("Description",this.form.description),{principal:this.principal,payload:i}};return this.source.isUpload?e():t()},setInitialForm(){this.source.isUpload=this.isFile,setTimeout(()=>{this.form=this.isEditing?{fullUrl:this.item.value,description:this.item.description}:structuredClone(v),this.defaultForm=structuredClone(this.form)})},setInitialFiles(){this.item&&(this.fileRecords.list=[this.item])},setIsLoading(t){this.isLoading=t}}};var re=function(){var e=this,i=e._self._c;return i("BaseDialog",{ref:"base-dialog",attrs:{"max-width":640,"header-title":e.headerTitle,"is-loading":e.isLoading,"is-modified":e.isModified,"footer-buttons":e.footerButtons},on:{close:function(s){return e.$emit("close")}}},[i($,{ref:"form",staticClass:"grid grid-cols-2 gap-4",attrs:{disabled:e.isLoading}},[e.isCreating?i("FormSwitch",{staticClass:"col-span-2",attrs:{buttons:[{label:"Add a file",value:!0},{label:"Add a link",value:!1}]},model:{value:e.source.isUpload,callback:function(s){e.$set(e.source,"isUpload",s)},expression:"source.isUpload"}}):e._e(),e.source.isUpload?[i("BasePickerFiles",{staticClass:"col-span-2",attrs:{"to-add":e.fileRecords.toAdd,"to-delete":e.fileRecords.toDelete,rules:[e.$rules.required]},on:{"update:toAdd":function(s){return e.$set(e.fileRecords,"toAdd",s)},"update:to-add":function(s){return e.$set(e.fileRecords,"toAdd",s)},"update:toDelete":function(s){return e.$set(e.fileRecords,"toDelete",s)},"update:to-delete":function(s){return e.$set(e.fileRecords,"toDelete",s)}},model:{value:e.fileRecords.list,callback:function(s){e.$set(e.fileRecords,"list",s)},expression:"fileRecords.list"}}),i("FormHtmlEditor",{staticClass:"col-span-2",attrs:{label:"Description",placeholder:"Description (optional but recommended)"},model:{value:e.form.description,callback:function(s){e.$set(e.form,"description",s)},expression:"form.description"}})]:[i(w,{staticClass:"col-span-2",attrs:{label:"Full URL (e.g., https://example.com)",placeholder:"https://example.com","background-color":"white",clearable:"",outlined:"",dense:"",rules:[e.$rules.required,e.$rules.url]},model:{value:e.form.fullUrl,callback:function(s){e.$set(e.form,"fullUrl",s)},expression:"form.fullUrl"}}),i(S,{staticClass:"col-span-2",attrs:{label:"Description","background-color":"white",clearable:"",outlined:"",dense:"",counter:"255",maxlength:"255",rules:[s=>e.$rules.counter(s,255)]},model:{value:e.form.description,callback:function(s){e.$set(e.form,"description",typeof s=="string"?s.trim():s)},expression:"form.description"}})]],2)],1)},ne=[],oe=l(le,re,ne,!1,null,null);const de=oe.exports,ce={name:"TenantPrincipalProfileFilesAndLinks",components:{BaseEmpty:E,PrincipalProfileFilesAndLinksList:ae,PrincipalProfileFilesAndLinksCreationDialog:de},props:{headerTitle:{type:String,default:"Personal Files"},headerSubtitle:{type:String,default:""},principal:{type:Object,required:!0},uriTypeId:{type:Number,required:!0},fileCategoryId:{type:Number,required:!0}},data:()=>({creationDialog:{isVisible:!1,item:null}}),computed:{...p("uris",["uris"]),...p("principal/files",["files"]),isList(){return this.normalizedList.length>0||this.isLoading},isLoading(){return this.files.isLoading||this.uris.isLoading},normalizedList(){var i,s;let t=((i=this.files.list)==null?void 0:i.filter(a=>{var n;return((n=a.fileCategory)==null?void 0:n.id)===this.fileCategoryId}))||[],e=((s=this.uris.list)==null?void 0:s.filter(a=>a.hubUriTypeId===this.uriTypeId))||[];return[...t,...e]}},created(){this.handleRefresh()},methods:{...o("principal/files",{fetchAllFilesByPrincipal:"FETCH_ALL_BY_PRINCIPAL",deleteOneFile:"DELETE_ONE"}),...o("uris",{fetchAllLinksByPrincipal:"FETCH_ALL_BY_PRINCIPAL",deleteOneLink:"DELETE_ONE"}),handleRefresh(){return Promise.all([this.fetchAllFilesByPrincipal(this.principal),this.fetchAllLinksByPrincipal(this.principal)])},async handleOpenCreationDialog(t){this.creationDialog={isVisible:!0,item:t}},handleCloseCreationDialog(){this.creationDialog={isVisible:!1,item:null}},async handleDelete(t){var f;const e=(f=t.fileCategory)==null?void 0:f.id,i=`Are you sure you want to delete "${e?t.normalizedName:t.value}" ${e?"file":"link"}"?`,{isConfirmed:s}=await D({text:i});if(!s)return;const a=e?this.deleteOneFile:this.deleteOneLink,{isSuccess:n}=await a({principal:this.principal,id:t.id});n&&_({title:"Deleted successfully"})}}};var ue=function(){var e=this,i=e._self._c;return i("div",[i(C,{directives:[{name:"loader",rawName:"v-loader",value:e.isLoading,expression:"isLoading"}],staticClass:"w-full overflow-hidden rounded",attrs:{outlined:""}},[i("div",{staticClass:"w-full px-4 p-2 m-0 bg-gray-200 rounded-none border-b border-gray-300"},[i("div",{staticClass:"gap-4 flex items-center justify-between"},[i("div",{staticClass:"flex flex-col text-black"},[e.headerTitle?i("small",{staticClass:"text-base font-semibold"}
1,[e._v(e._s(e.headerTitle))]):e._e(),e.headerSubtitle?i("span",{staticClass:"text-sm"},[e._v(e._s(e.headerSubtitle))]):e._e()]),i(m,{attrs:{color:"primary",outlined:""},on:{click:()=>e.handleOpenCreationDialog(null)}},[i(r,{attrs:{left:""}},[e._v("mdi-plus")]),i("span",[e._v("Add")])],1)],1)]),i("div",{staticClass:"py-2 gap-2 flex flex-wrap shadow-inner"},[e.isList?i("PrincipalProfileFilesAndLinksList",{staticClass:"max-w-screen-md w-full",attrs:{list:e.normalizedList,"is-loading":e.files.isLoading},on:{"action-update":e.handleOpenCreationDialog,"action-delete":e.handleDelete}}):i("BaseEmpty",{attrs:{title:"Empty",subtitle:["You have no files yet"]}})],1)]),e.creationDialog.isVisible?i("PrincipalProfileFilesAndLinksCreationDialog",{attrs:{principal:e.principal,item:e.creationDialog.item,"uri-type-id":e.uriTypeId,"file-category-id":e.fileCategoryId},on:{success:e.handleRefresh,close:e.handleCloseCreationDialog}}):e._e()],1)},pe=[],fe=l(ce,ue,pe,!1,null,null);const me=fe.exports,he={name:"TenantPrincipalSocialLinksList",components:{BaseMenu:T},props:{list:{type:Array,default:()=>[]},itemHeight:{type:Number,default:72},isLoading:{type:Boolean,default:!1}},data:()=>({menu:{isVisible:!1}}),methods:{handleCloseMenu(){this.menu.isVisible=!1},defineMenuButtons(t){return[{label:"Edit",color:"secondary",icon:"mdi-pencil",handler:()=>this.$emit("action-update",t)},{label:"Delete",color:"error",icon:"mdi-trash-can",handler:()=>this.$emit("action-delete",t)}]}}};var _e=function(){var e=this,i=e._self._c;return i(I,{staticClass:"!bg-transparent",attrs:{"three-line":""}},[e.isLoading?i(d,{style:`height: ${e.itemHeight}px`},[i(c,{staticClass:"mr-4"},[i(h,{attrs:{type:"avatar"}})],1),i(u,[i(h,{attrs:{type:"sentences"}})],1)],1):e._l(e.list,function(s){var a;return i(d,{key:`link-${s.id}`},[i(c,{staticClass:"mr-4"},[i(g,{attrs:{rounded:"",color:"bg-gray-300"}},[i(r,{staticClass:"!text-white"},[e._v("mdi-link-variant")])],1)],1),i(u,[i(b,{staticClass:"flex justify-between items-center"},[i("a",{staticClass:"leaders after:bottom-[2px] text-primary",attrs:{href:s.value,target:"_blank"}},[i("span",{staticClass:"underline whitespace-normal break-all"},[e._v(e._s(s.value))]),i(r,{staticClass:"ml-1",attrs:{"x-small":"",color:"primary"}},[e._v(" mdi-open-in-new ")])],1),i("BaseMenu",{attrs:{"is-visible":e.menu.isVisible,"header-title":"",buttons:e.defineMenuButtons(s)},on:{close:e.handleCloseMenu}})],1),i(x,{attrs:{top:"","max-width":512,disabled:!s.description||((a=s.description)==null?void 0:a.length)<100},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:f}){return[i(y,e._g(e._b({staticClass:"min-h-[34px]"},"v-list-item-subtitle",f,!1),n),[e._v(" "+e._s(s.description||"–")+" ")])]}}],null,!0)},[i("span",[e._v(e._s(s.description))])])],1)],1)})],2)},ge=[],be=l(he,_e,ge,!1,null,null);const ye=be.exports,L=Object.freeze({fullUrl:"",description:""}),Ce={name:"TenantPrincipalSocialLinksCreationDialog",components:{BaseDialog:k},props:{principal:{type:Object,required:!0},item:{type:Object,default:null},uriTypeId:{type:Number,required:!0}},data:()=>({form:structuredClone(L),isLoading:!1}),computed:{...p("uris",["uris"]),isEditing(){return!!this.item},isCreating(){return!this.isEditing},isModified(){return!P(this.defaultForm,this.form)},headerTitle(){return this.isCreating?"Add new link":"Update link"},footerButtons(){return[{text:"Cancel",attrs:{color:"grey",text:!0},handler:this.handleClose},{text:this.isCreating?"Add":"Update",attrs:{color:"primary",disabled:!this.isModified,loading:this.isLoading},handler:this.handleSubmit}].filter(Boolean)}},created(){this.setInitialForm()},methods:{...o("uris",{saveOne:"SAVE_ONE"}),async handleSubmit(){if(!this.defineIsValid())return;const e=this.definePayload();this.setIsLoading(!0);const{isSuccess:i}=await this.saveOne(e);this.setIsLoading(!1),i&&this.handleSuccess()},handleSuccess(){const t=this.isCreation?"Link created":"Link updated";_({title:t}),this.$emit("success"),this.handleClose()},handleClose(){this.$refs["base-dialog"].handleForceClose()},defineIsValid(){const t=this.$refs.form.validate();return t||F({title:"Please fill in all the required fields"}),t},definePayload(){const t={...this.isEditing?this.item:{},principalId:this.principal.id,userTypeCode:this.principal.userTypeCode,uriTypeId:this.uriTypeId,value:this.form.fullUrl,description:this.form.description};return delete t.$type,t},setInitialForm(){this.form=this.isEditing?{fullUrl:this.item.value,description:this.item.description}:structuredClone(L),this.defaultForm=structuredClone(this.form)},setIsLoading(t){this.isLoading=t}}};var ve=function(){var e=this,i=e._self._c;return i("BaseDialog",{ref:"base-dialog",attrs:{"max-width":512,"header-title":e.headerTitle,"is-loading":e.isLoading,"is-modified":e.isModified,"footer-buttons":e.footerButtons},on:{close:function(s){return e.$emit("close")}}},[i($,{ref:"form",staticClass:"grid grid-cols-2 gap-4",attrs:{disabled:e.isLoading}},[i(w,{staticClass:"col-span-2",attrs:{label:"Full URL (e.g., https://example.com)",placeholder:"https://example.com","background-color":"white",clearable:"",outlined:"",dense:"",rules:[e.$rules.required,e.$rules.url]},model:{value:e.form.fullUrl,callback:function(s){e.$set(e.form,"fullUrl",typeof s=="string"?s.trim():s)},expression:"form.fullUrl"}}),i(S,{staticClass:"col-span-2",attrs:{label:"Description","background-color":"white",clearable:"",outlined:"",dense:"",counter:"255",maxlength:"255",rules:[s=>e.$rules.counter(s,255)]},model:{value:e.form.description,callback:function(s){e.$set(e.form,"description",typeof s=="string"?s.trim():s)},expression:"form.description"}})],1)],1)},Le=[],xe=l(Ce,ve,Le,!1,null,null);const Ie=xe.exports,Fe={name:"TenantPrincipalSocialLinks",components:{BaseEmpty:E,PrincipalSocialLinksList:ye,PrincipalSocialLinksCreationDialog:Ie},props:{headerTitle:{type:String,default:"Social Networks"},headerSubtitle:{type:String,default:""},principal:{type:Object,required:!0},uriTypeId:{type:Number,required:!0}},data:()=>({creationDialog:{isVisible:!1,item:null}}),computed:{...p("uris",["uris"]),isList(){return this.normalizedList.length>0||this.uris.isLoading},normalizedList(){return this.uris.list.filter(t=>t.hubUriTypeId===this.uriTypeId)}},created(){this.handleRefresh()},methods:{...o("uris",{fetchAllByPrincipal:"FETCH_ALL_BY_PRINCIPAL",deleteOne:"DELETE_ONE"}),handleRefresh(){return this.fetchAllByPrincipal(this.principal)},async handleOpenCreationDialog(t){this.creationDialog={isVisible:!0,item:t}},handleCloseCreationDialog(){this.creationDialog={isVisible:!1,item:null}},async handleDelete(t){const e=`Are you sure you want to delete "${t.value}" link?`,{isConfirmed:i}=await D({text:e});if(!i)return;const s={principal:this.principal,id:t.id},{isSuccess:a}=await this.deleteOne(s);a&&_({title:"Link deleted"})}}};var Pe=function(){var e=this,i=e._self._c;return i("div",[i(C,{directives:[{name:"loader",rawName:"v-loader",value:e.uris.isLoading,expression:"uris.isLoading"}],staticClass:"w-full overflow-hidden rounded",attrs:{outlined:""}},[i("div",{staticClass:"w-full px-4 p-2 m-0 bg-gray-200 rounded-none border-b border-gray-300"},[i("div",{staticClass:"gap-4 flex items-center justify-between"},[i("div",{staticClass:"flex flex-col text-black"},[e.headerTitle?i("small",{staticClass:"text-base font-semibold"}
1,[e._v(e._s(e.headerTitle))]):e._e(),e.headerSubtitle?i("span",{staticClass:"text-sm"},[e._v(e._s(e.headerSubtitle))]):e._e()]),i(m,{attrs:{color:"primary",outlined:""},on:{click:()=>e.handleOpenCreationDialog(null)}},[i(r,{attrs:{left:""}},[e._v("mdi-plus")]),i("span",[e._v("Add")])],1)],1)]),i("div",{staticClass:"py-2 gap-2 flex flex-wrap shadow-inner"},[e.isList?i("PrincipalSocialLinksList",{staticClass:"max-w-screen-md w-full",attrs:{list:e.normalizedList,"is-loading":e.uris.isLoading},on:{"action-update":e.handleOpenCreationDialog,"action-delete":e.handleDelete}}):i("BaseEmpty",{attrs:{title:"Empty",subtitle:["You have no links yet"]}})],1)]),e.creationDialog.isVisible?i("PrincipalSocialLinksCreationDialog",{attrs:{principal:e.principal,item:e.creationDialog.item,"uri-type-id":e.uriTypeId},on:{success:e.handleRefresh,close:e.handleCloseCreationDialog}}):e._e()],1)},De=[],Ee=l(Fe,Pe,De,!1,null,null);const Te=Ee.exports,ke={name:"TenantHubProfilePortfolio",components:{PrincipalProfileFilesAndLinks:me,PrincipalSocialLinks:Te},props:{user:{type:Object,required:!0}},created(){this.FILE_CATEGORIES=R,this.HUB_URI_TYPES=U}};var $e=function(){var e=this,i=e._self._c;return i("div",{staticClass:"gap-8 flex flex-col"},[i(A,{staticClass:"transparent",attrs:{flat:""}},[i(B,{staticClass:"pt-0 px-0"},[e._v(" Company Details & Work Samples ")]),i(O,{staticClass:"p-0"},[e._v(" Upload company credentials and work samples ")])],1),i("PrincipalProfileFilesAndLinks",{attrs:{"header-title":"Company Overview",principal:e.user,"uri-type-id":e.HUB_URI_TYPES.codes.COMPANY_OVERVIEW,"file-category-id":e.FILE_CATEGORIES.codes.PORTFOLIO}}),i("PrincipalProfileFilesAndLinks",{attrs:{"header-title":"Work Samples / Case Studies",principal:e.user,"uri-type-id":e.HUB_URI_TYPES.codes.CASE_STUDY,"file-category-id":e.FILE_CATEGORIES.codes.WORK_SAMPLE}}),i("PrincipalSocialLinks",{attrs:{principal:e.user,"uri-type-id":e.HUB_URI_TYPES.codes.SOCIAL_NETWORK}}),i("PrincipalProfileFilesAndLinks",{attrs:{"header-title":"Client List",principal:e.user,"uri-type-id":e.HUB_URI_TYPES.codes.CLIENT_LIST,"file-category-id":e.FILE_CATEGORIES.codes.CLIENT_LIST}})],1)},we=[],Se=l(ke,$e,we,!1,null,null);const Ae=Se.exports,Be={name:"TenantHubProfileTabsPortfolio",components:{HubProfilePortfolio:Ae},props:{user:{type:Object,required:!0}}};var Oe=function(){var e=this,i=e._self._c;return i("HubProfilePortfolio",{attrs:{user:e.user}})},Re=[],Ue=l(Be,Oe,Re,!1,null,null);const ri=Ue.exports;export{ri as default};
2//# sourceMappingURL=TabsPortfolio-DWlahjuV.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.