1import{a as H,b as W}from"./chunk-LVWNRFYQ.js";import{a as J,b as K}from"./chunk-U3YV3HY3.js";import{a as A}from"./chunk-IMXVFBW3.js";import{b as Q}from"./chunk-FRDQ23WT.js";import{b as R}from"./chunk-6B2TUTDP.js";import{a as X}from"./chunk-6YQEYWYB.js";import"./chunk-ICCNYB2D.js";import"./chunk-QWJDRFXN.js";import"./chunk-MLHRJEXS.js";import"./chunk-4RWQGJR7.js";import"./chunk-T66IJBM2.js";import{a as $,b as q}from"./chunk-LHKJW2WN.js";import"./chunk-DUB47MH6.js";import"./chunk-AQWOKZXX.js";import"./chunk-AZIPPPQW.js";import"./chunk-QEYPHCZM.js";import"./chunk-YPCGYMAZ.js";import"./chunk-MILA2ZVA.js";import"./chunk-BQDRNHMC.js";import{c as F}from"./chunk-NBYPAOFH.js";import"./chunk-I6TS23IK.js";import"./chunk-BVGVY2EB.js";import"./chunk-H3PUKYIG.js";import"./chunk-HHRO473T.js";import"./chunk-7FYHPZ6K.js";import"./chunk-TTJ4DY45.js";import"./chunk-D7X7PLKK.js";import"./chunk-LQKQZTQL.js";import{b as G}from"./chunk-GDYS5ELC.js";import"./chunk-5GUU3I72.js";import"./chunk-7GHSVRSP.js";import"./chunk-HJD2EO4X.js";import"./chunk-4LIB73GV.js";import"./chunk-BBVWCYB6.js";import"./chunk-B24LDPWT.js";import"./chunk-U7ZYD2FW.js";import{a as j,b as L,c as N}from"./chunk-VGGE5I45.js";import"./chunk-DLCRMGT5.js";import"./chunk-UYHYJ4W5.js";import"./chunk-CICHBRQ4.js";import"./chunk-HXQTWS4W.js";import"./chunk-VIZKKRXC.js";import"./chunk-JHGMH4JG.js";import"./chunk-FHYT7PC4.js";import{l as V,n as D}from"./chunk-PQZ4L2G4.js";import{t as T}from"./chunk-LVJLJXKN.js";import{D as B}from"./chunk-3MMOQILQ.js";import{Ad as U,Cb as c,Db as p,Ec as u,Fc as z,Gc as I,Ib as x,Jb as n,Kb as t,Lb as m,Sb as _,Ta as b,Ub as O,Wa as o,Wb as g,eb as w,ia as h,ja as C,jb as y,jc as i,kc as S,lc as l,mc as P,o as v,ud as E,vd as k}from"./chunk-CV6NZU66.js";import{g as M}from"./chunk-GAL4ENT6.js";function Y(r,s){if(r&1){let e=_();n(0,"p-button",7),O("onClick",function(){h(e);let a=g();return C(a.isUpdateProfileVisible=!0)}),t()}}function Z(r,s){if(r&1&&(n(0,"div",15),m(1,"i",21),i(2),t()),r&2){let e=g(2);o(2),P(" ",e.loggedInUser.countryCode," ",e.loggedInUser.phone," ")}}function ee(r,s){if(r&1&&(n(0,"div",15)(1,"p"),m(2,"i",21),i(3),t()()),r&2){let e=g(2);o(3),P(" ",e.organization.countryCode," ",e.organization.contactPhone," ")}}function te(r,s){if(r&1&&(n(0,"div",18)(1,"div",15)(2,"span"),i(3,"Website"),t(),n(4,"a",22),i(5),t()()()),r&2){let e=g(2);o(4),x("href",e.organization.website,b),o(),S(e.organization.website)}}function ne(r,s){if(r&1&&(n(0,"div",5)(1,"div",8)(2,"div",9)(3,"div",10),m(4,"p-avatar",11),n(5,"div",12)(6,"h3"),i(7),n(8,"small"),i(9),t(),n(10,"small"),i(11),t()()()(),n(12,"div",13)(13,"div",14)(14,"h4"),i(15,"Organization Admin"),t(),n(16,"div",15),m(17,"i",16),i(18),t(),c(19,Z,3,2,"div",15),c(20,ee,4,2,"div",15),t(),n(21,"div",17),c(22,te,6,2,"div",18),n(23,"div",18)(24,"div",15)(25,"span"),i(26,"TRN"),t(),i(27),t()(),n(28,"div",18)(29,"div",15)(30,"span"),i(31,"Legal Start Date"),t(),i(32),u(33,"date"),t()(),n(34,"div",18)(35,"div",15)(36,"span"),i(37,"Industry"),t(),i(38),t()(),n(39,"div",18)(40,"div",15)(41,"span"),i(42,"Discount Type"),t(),i(43),u(44,"titlecase"),t()(),n(45,"div",19)(46,"div",15)(47,"span"),i(48,"Address"),t(),n(49,"p",20),i(50),m(51,"br"),i(52),t()()(),n(53,"div",18)(54,"div",15)(55,"span"),i(56,"City"),t(),i(57),t()(),n(58,"div",18)(59,"div",15)(60,"span"),i(61,"Country"),t(),i(62),t()(),n(63,"div",18)(64,"div",15)(65,"span"),i(66,"Po Box"),t(),i(67),t()(),n(68,"div",18)(69,"div",15)(70,"span"),i(71,"Timezone"),t(),i(72),t()()()()()()()),r&2){let e=g();o(4),x("image",e.organization.logo)("label",e.organization.logo?"":e.commonService.makeInitialsLogo(e.organization.orgName)),o(3),l(" ",e.organization.orgName," "),o(2),l("Short Code: ",e.organization.shortCode),o(2),l("Currency: ",e.organization.baseCurrency),o(7),l(" ",e.loggedInUser.email," "),o(),p(e.loggedInUser.countryCode&&e.loggedInUser.phone?19:-1),o(),p(e.organization.countryCode&&e.organization.contactPhone?20:-1),o(2),p(e.organization.website?22:-1),o(5),l(" ",e.organization.taxId?e.organization.taxId:"-"," "),o(5),l(" ",I(33,19,e.organization.OrgConfig==null?null:e.organization.OrgConfig.DateAfterCompanyStartDate,"dd-MMM-yyyy")," "),o(6),l(" ",e.organization.industry," "),o(5),l(" ",z(44,22,e.organization.OrgConfig==null||e.organization.OrgConfig.discountType==null?null:e.organization.OrgConfig.discountType.replace("_"," "))," "),o(7),l(" ",e.organization.address1," "),o(2),l(" ",e.organization.address2," "),o(5),l(" ",e.organization.city," "),o(5),l(" ",e.organization.country?e.organization.country:"-"," "),o(5),l(" ",e.organization.po?e.organization.po:"-"," "),o(5),l(" ",e.organization.timezone?e.organization.timezone:"-"," ")}}function ie(r,s){r&1&&(n(0,"div",5)(1,"div",23)(2,"div",9)(3,"div",10),m(4,"p-skeleton",24),n(5,"div",25),m(6,"p-skeleton",26)(7,"p-skeleton",27)(8,"p-skeleton",28),t()(),n(9,"div",29)(10,"div",14),m(11,"p-skeleton",30)(12,"p-skeleton",31)(13,"p-skeleton",31)(14,"p-skeleton",31),t(),n(15,"div",17)(16,"div",32),m(17,"p-skeleton",33),t(),n(18,"div",32),m(19,"p-skeleton",33),t(),n(20,"div",32),m(21,"p-skeleton",33),t(),n(22,"div",32),m(23,"p-skeleton",33),t(),n(24,"div",34),m(25,"p-skeleton",33),t(),n(26,"div",35),m(27,"p-skeleton",33),t(),n(28,"div",35),m(29,"p-skeleton",33),t(),n(30,"div",35),m(31,"p-skeleton",33),t()()()()()())}function oe(r,s){if(r&1){let e=_();n(0,"app-org-profile-update",36),O("modelClose",function(a){h(e);let f=g();return C(f.modelClose(a))}),t()}if(r&2){let e=g();x("isUpdateProfileVisible",e.isUpdateProfileVisible)}}var Se=(()=>{class r{ngOnInit(){this.loadOrg(),this.loggedInUser=this.authSync.user,this.permissions=this.loggedInUser?.UserOrganizations?.[0]?.Role?.permissions||{}}
1modelClose(e){this.isUpdateProfileVisible=!1,this.loadOrg(),e.isUpdated&&this.loadOrg()}constructor(e,d,a,f){this.orgAPI=e,this.messageService=d,this.authSync=a,this.commonService=f,this.permissions={},this.organization={},this.userIcInitials="",this.loader=!1,this.loggedInUser={},this.items=[{label:"Configuration",routerLink:"/org/configuration"},{label:" Organization Profile"}],this.isUpdateProfileVisible=!1}loadOrg(){return M(this,null,function*(){this.loader=!0;try{let e=yield v(this.orgAPI.getOrg());this.organization=e,this.userIcInitials=this.makeInitialsLogo(this.organization.orgName),console.log(e)}catch(e){this.messageService.add({severity:"error",summary:"Error",detail:e?.error?.message||"Failed to load organization"}),console.error(e)}finally{this.loader=!1}})}makeInitialsLogo(e){console.log(e);let d=e.split(" ").filter(f=>f!=="");return(d[0][0]+(d[1]?d[1][0]:"")).toUpperCase()}static{this.\u0275fac=function(d){return new(d||r)(w(T),w(B),w(A),w(F))}}static{this.\u0275cmp=y({type:r,selectors:[["app-org-profile"]],decls:8,vars:5,consts:[[1,"breadcrum-nav","flex","justify-between","items-center"],[1,"max-w-full",3,"model"],[1,"flex","gap-2"],["id","cx-edit-organization","icon","ph-bold ph-pencil-simple","label","Update Organization","size","small","severity","warn"],["pButton","","variant","text","id","cx-closeButton","icon","ph-bold ph-x","pTooltip","Cancel","tooltipPosition","bottom","size","small","routerLink","/org/configuration",1,"btn-close"],[1,"grid","grid-cols-12","gap-4","!mt-12"],[3,"isUpdateProfileVisible"],["id","cx-edit-organization","icon","ph-bold ph-pencil-simple","label","Update Organization","size","small","severity","warn",3,"onClick"],[1,"col-span-12","md:col-span-8","md:col-start-3","lg:col-span-6","lg:col-start-4"],[1,"card"],[1,"bg","flex","gap-6","items-center"],["shape","circle",1,"!w-[6rem]","!h-[6rem]","!border-4","!border-white","!bg-white",3,"image","label"],[1,"!pl-6","!border-l"],[1,"card-body","!bg-white","!p-6","lg:!p-12","!pt-0","lg:!pt-0"],[1,"admin-card"],[1,"pData"],[1,"ph","ph-envelope-simple","ic","!mr-2"],[1,"grid","grid-cols-12","gap-4","items-center"],[1,"lg:col-span-6"],[1,"col-span-12"],[1,"word-break-all"],[1,"ph","ph-phone","ic","!mr-2"],["target","_blank",1,"btn-link","word-break-all",3,"href"],[1,"col-span-12","md:col-span-8","md:col-start-3","lg:col-span-6","lg:col-start-4","xl:col-span-5","xl:col-start-4"],["shape","circle","size","6rem"],[1,"!pl-6","w-full","!border-l"],["width","20rem","height","2rem",1,"!mb-2"],["width","10rem","height","1rem",1,"!mb-2"],["width","10rem","height","1rem"],[1,"card-body","!p-6","lg:!p-12","!pt-0","lg:!pt-0"],["width","20rem","height","2rem",1,"!mb-6"],["width","20rem","height","1rem",1,"!mb-2"],[1,"!mb-4","lg:col-span-6"],["width","100%","height","1rem"],[1,"!mb-4","lg:col-span-12"],[1,"!mb-4","lg:col-span-4"],[3,"modelClose","isUpdateProfileVisible"]],template:function(d,a){d&1&&(n(0,"div",0),m(1,"p-breadcrumb",1),n(2,"div",2),c(3,Y,1,0,"p-button",3),m(4,"a",4),t()(),c(5,ne,73,24,"div",5),c(6,ie,32,0,"div",5),c(7,oe,1,1,"app-org-profile-update",6)),d&2&&(o(),x("model",a.items),o(2),p(!(a.permissions==null||a.permissions.manageConfig==null)&&a.permissions.manageConfig.organization?3:-1),o(2),p(a.organization&&!a.loader?5:-1),o(),p(a.loader?6:-1),o(),p(a.isUpdateProfileVisible?7:-1))},dependencies:[q,$,N,j,L,R,Q,W,H,U,K,J,X,G,D,V,E,k],styles:['.min-w-1rem[_ngcontent-%COMP%]{min-width:1rem!important}.min-w-2rem[_ngcontent-%COMP%]{min-width:2rem!important}.min-w-3rem[_ngcontent-%COMP%]{min-width:3rem!important}.min-w-4rem[_ngcontent-%COMP%]{min-width:4rem!important}.min-w-5rem[_ngcontent-%COMP%]{min-width:5rem!important}.min-w-6rem[_ngcontent-%COMP%]{min-width:6rem!important}.min-w-7rem[_ngcontent-%COMP%]{min-width:7rem!important}.min-w-8rem[_ngcontent-%COMP%]{min-width:8rem!important}.min-w-9rem[_ngcontent-%COMP%]{min-width:9rem!important}.min-w-10rem[_ngcontent-%COMP%]{min-width:10rem!important}.min-w-11rem[_ngcontent-%COMP%]{min-width:11rem!important}.min-w-12rem[_ngcontent-%COMP%]{min-width:12rem!important}.min-w-13rem[_ngcontent-%COMP%]{min-width:13rem!important}.min-w-14rem[_ngcontent-%COMP%]{min-width:14rem!important}.min-w-15rem[_ngcontent-%COMP%]{min-width:15rem!important}.min-w-16rem[_ngcontent-%COMP%]{min-width:16rem!important}.min-w-17rem[_ngcontent-%COMP%]{min-width:17rem!important}.min-w-18rem[_ngcontent-%COMP%]{min-width:18rem!important}.min-w-19rem[_ngcontent-%COMP%]{min-width:19rem!important}.min-w-20rem[_ngcontent-%COMP%]{min-width:20rem!important}.min-w-21rem[_ngcontent-%COMP%]{min-width:21rem!important}.min-w-22rem[_ngcontent-%COMP%]{min-width:22rem!important}.min-w-23rem[_ngcontent-%COMP%]{min-width:23rem!important}.min-w-24rem[_ngcontent-%COMP%]{min-width:24rem!important}.min-w-25rem[_ngcontent-%COMP%]{min-width:25rem!important}.min-w-26rem[_ngcontent-%COMP%]{min-width:26rem!important}.min-w-27rem[_ngcontent-%COMP%]{min-width:27rem!important}.min-w-28rem[_ngcontent-%COMP%]{min-width:28rem!important}.min-w-29rem[_ngcontent-%COMP%]{min-width:29rem!important}.min-w-30rem[_ngcontent-%COMP%]{min-width:30rem!important}.min-w-31rem[_ngcontent-%COMP%]{min-width:31rem!important}.min-w-32rem[_ngcontent-%COMP%]{min-width:32rem!important}.min-w-33rem[_ngcontent-%COMP%]{min-width:33rem!important}.min-w-34rem[_ngcontent-%COMP%]{min-width:34rem!important}.min-w-35rem[_ngcontent-%COMP%]{min-width:35rem!important}.min-w-36rem[_ngcontent-%COMP%]{min-width:36rem!important}.min-w-37rem[_ngcontent-%COMP%]{min-width:37rem!important}.min-w-38rem[_ngcontent-%COMP%]{min-width:38rem!important}.min-w-39rem[_ngcontent-%COMP%]{min-width:39rem!important}.min-w-40rem[_ngcontent-%COMP%]{min-width:40rem!important}.max-w-1rem[_ngcontent-%COMP%]{max-width:1rem!important}.max-w-2rem[_ngcontent-%COMP%]{max-width:2rem!important}.max-w-3rem[_ngcontent-%COMP%]{max-width:3rem!important}.max-w-4rem[_ngcontent-%COMP%]{max-width:4rem!important}.max-w-5rem[_ngcontent-%COMP%]{max-width:5rem!important}.max-w-6rem[_ngcontent-%COMP%]{max-width:6rem!important}.max-w-7rem[_ngcontent-%COMP%]{max-width:7rem!important}.max-w-8rem[_ngcontent-%COMP%]{max-width:8rem!important}.max-w-9rem[_ngcontent-%COMP%]{max-width:9rem!important}.max-w-10rem[_ngcontent-%COMP%]{max-width:10rem!important}.max-w-11rem[_ngcontent-%COMP%]{max-width:11rem!important}.max-w-12rem[_ngcontent-%COMP%]{max-width:12rem!important}.max-w-13rem[_ngcontent-%COMP%]{max-width:13rem!important}.max-w-14rem[_ngcontent-%COMP%]{max-width:14rem!important}.max-w-15rem[_ngcontent-%COMP%]{max-width:15rem!important}.max-w-16rem[_ngcontent-%COMP%]{max-width:16rem!important}.max-w-17rem[_ngcontent-%COMP%]{max-width:17rem!important}.max-w-18rem[_ngcontent-%COMP%]{max-width:18rem!important}.max-w-19rem[_ngcontent-%COMP%]{max-width:19rem!important}.max-w-20rem[_ngcontent-%COMP%]{max-width:20rem!important}.max-w-21rem[_ngcontent-%COMP%]{max-width:21rem!important}.max-w-22rem[_ngcontent-%COMP%]{max-width:22rem!important}.max-w-23rem[_ngcontent-%COMP%]{max-width:23rem!important}.max-w-24rem[_ngcontent-%COMP%]{max-width:24rem!important}.max-w-25rem[_ngcontent-%COMP%]{max-width:25rem!important}.max-w-26rem[_ngcontent-%COMP%]{max-width:26rem!important}.max-w-27rem[_ngcontent-%COMP%]{max-width:27rem!important}.max-w-28rem[_ngcontent-%COMP%]{max-width:28rem!important}.max-w-29rem[_ngcontent-%COMP%]{max-width:29rem!important}.max-w-30rem[_ngcontent-%COMP%]{max-width:30rem!important}.max-w-31rem[_ngcontent-%COMP%]{max-width:31rem!important}.max-w-32rem[_ngcontent-%COMP%]{max-width:32rem!important}.max-w-33rem[_ngcontent-%COMP%]{max-width:33rem!important}.max-w-34rem[_ngcontent-%COMP%]{max-width:34rem!important}.max-w-35rem[_ngcontent-%COMP%]{max-width:35rem!important}.max-w-36rem[_ngcontent-%COMP%]{max-width:36rem!important}.max-w-37rem[_ngcontent-%COMP%]{max-width:37rem!important}.max-w-38rem[_ngcontent-%COMP%]{max-width:38rem!important}.max-w-39rem[_ngcontent-%COMP%]{max-width:39rem!important}.max-w-40rem[_ngcontent-%COMP%]{max-width:40rem!important}[_ngcontent-%COMP%]:root{--font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--primary-color: #8b59da;--primaryDark: rgb(121.5142857143, 63.9773399015, 212.4226600985);--primaryDarker: rgb(105.3428571429, 44.8009852217, 200.9990147783);--surface-a: #ffffff;--surface-b: #f8f9fa;--surface-c: #e9ecef;--surface-d: #dee2e6;--surface-e: #ffffff;--surface-f: #ffffff;--text-color: $textColor;--text-color-secondary: #6c757d;--primary-color-text: #ffffff;--surface-0: #ffffff;--surface-50: #fafafa;--surface-100: #f5f5f5;--surface-200: #eeeeee;--surface-300: #e0e0e0;--surface-400: #bdbdbd;--surface-500: #9e9e9e;--surface-600: #757575;--surface-700: #616161;--surface-800: #424242;--surface-900: #212121;--content-padding: 1rem;
1--inline-spacing: .5rem;--border-radius: 3px;--surface-ground: #f8f9fa;--surface-section: #ffffff;--surface-card: #ffffff;--surface-overlay: #ffffff;--surface-border: #dee2e6;--surface-hover: #e9ecef;--maskbg: rgba(0, 0, 0, .4);--highlight-bg: #8b59da;--highlight-text-color: #ffffff;--focus-ring: 0 0 0 .2rem #bfd1f6;color-scheme:light}.card[_ngcontent-%COMP%]{position:relative;border-radius:20px;margin:0;padding:0;border:0;box-shadow:0 0 15px 1px #8b59da1a;overflow:hidden}.card[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%]{position:relative;width:100%;background-color:#8b59da;margin:0 0 60px;padding:3rem 3rem 6rem;overflow:hidden}.card[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%]:after{content:"";display:inline-block;width:12rem;height:12rem;border-radius:50%;background-color:#8053c7;position:absolute;right:-2rem;bottom:-3rem}.card[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%] .border-left-1[_ngcontent-%COMP%]{border-left-color:#ae8be5}.card[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:#fff;padding:0;margin:0 0 1rem}.card[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{display:block;margin:.4rem 0 0;font-weight:400;font-size:13px;color:#fffc}.card[_ngcontent-%COMP%] .admin-card[_ngcontent-%COMP%]{position:relative;margin:-120px 0 30px;background-color:#fff;box-shadow:0 0 10px 1px #0003;padding:1rem;border-radius:10px}.card[_ngcontent-%COMP%] .userIc[_ngcontent-%COMP%]{width:60px;height:60px;border-radius:50%;background-color:#8b59da;color:#fff;font-size:30px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;letter-spacing:normal;margin:-20px 0 2rem;box-shadow:0 0 6px 1px #0003}.card[_ngcontent-%COMP%] .pData[_ngcontent-%COMP%]{margin:0 0 .5rem}.card[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:14px;padding:0 0 1rem;margin:0 0 1.5rem;border-bottom:1px solid #ced4da;color:#8b59da}.card[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{display:block;font-weight:400;color:#1c1c1c;margin:4px 0 0}.card[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] small[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{vertical-align:middle}']})}}return r})();export{Se as OrgProfileComponent};
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.